.jf-page {
    --jf-bg: #0d1119;
    --jf-panel: #111722;
    --jf-panel-raised: #171f2d;
    --jf-line: #263248;
    --jf-line-soft: #1c2637;
    --jf-text: #edf3ff;
    --jf-muted: #8e9bb1;
    --jf-purple: #7c66ff;
    --jf-purple-bright: #9a87ff;
    --jf-cyan: #47d7e8;
    --jf-green: #43d19e;
    --jf-red: #ff7185;
    --jf-yellow: #f6c76a;
    width: min(1480px, calc(100% - 40px));
    margin: 0 auto;
    padding: 50px 0 0;
    color: #202634;
}

.jf-page *, .jf-page *::before, .jf-page *::after { box-sizing: border-box; }

.jf-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin: 0 8px 26px;
}

.jf-eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: #6656d7;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jf-eyebrow span {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 1px solid #d7d0ff;
    border-radius: 9px;
    background: #efedff;
    font: 700 .75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.jf-hero h1 {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.7rem);
    font-weight: 850;
    letter-spacing: -.06em;
    line-height: .98;
}

.jf-hero p {
    max-width: 760px;
    margin: 14px 0 0;
    color: #586174;
    font-size: clamp(1rem, 1.5vw, 1.17rem);
    line-height: 1.55;
}

.jf-trust {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 4px;
    color: #586174;
    font-size: .84rem;
    font-weight: 650;
}

.jf-trust-item { display: flex; align-items: center; gap: 9px; }
.jf-trust-item:first-child span { color: #23aa7c; font-size: .72rem; }
.jf-trust-item:last-child span { color: #6d59ec; font-size: 1.05rem; }
.jf-landing-link {
    margin-top: 3px;
    color: #6656d7;
    font-size: .78rem;
    font-weight: 750;
    text-decoration: none;
    text-underline-offset: 3px;
}
.jf-landing-link:hover { color: #4f3fc2; text-decoration: underline; }

.jf-workspace {
    position: relative;
    overflow: hidden;
    border: 1px solid #202a3c;
    border-radius: 22px;
    background: var(--jf-bg);
    box-shadow: 0 28px 75px rgba(27, 33, 47, .19), 0 2px 6px rgba(27, 33, 47, .12);
    color: var(--jf-text);
}

.jf-workspace:fullscreen {
    overflow: auto;
    border: 0;
    border-radius: 0;
    background: var(--jf-bg);
}

.jf-workspace:fullscreen .jf-editors { min-height: calc(100vh - 139px); }
.jf-workspace:fullscreen .jf-panel { min-height: calc(100vh - 139px); }

.jf-drop-overlay {
    position: absolute;
    z-index: 20;
    inset: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    border: 2px dashed var(--jf-purple-bright);
    border-radius: 16px;
    background: rgba(13, 17, 25, .94);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease;
}

.jf-workspace.is-dragging .jf-drop-overlay { opacity: 1; }
.jf-drop-icon { color: var(--jf-purple-bright); font-size: 2.4rem; line-height: 1; }
.jf-drop-overlay strong { font-size: 1.2rem; }
.jf-drop-overlay span { color: var(--jf-muted); font-size: .9rem; }

.jf-toolbar {
    display: flex;
    align-items: center;
    min-height: 70px;
    gap: 12px;
    padding: 12px 15px;
    border-bottom: 1px solid var(--jf-line);
    background: var(--jf-panel-raised);
}

.jf-toolbar-group, .jf-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.jf-toolbar-actions { margin-left: auto; }
.jf-toolbar-divider { width: 1px; height: 28px; background: var(--jf-line); }

.jf-button, .jf-icon-button, .jf-view-tabs button, .jf-output-tools button {
    appearance: none;
    border: 1px solid var(--jf-line);
    background: #1a2332;
    color: #cbd5e5;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, color .14s ease, transform .08s ease;
}

.jf-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 10px;
    white-space: nowrap;
}

.jf-button:hover, .jf-icon-button:hover, .jf-output-tools button:hover { border-color: #46536a; background: #222d3f; color: #fff; }
.jf-button:active, .jf-icon-button:active { transform: translateY(1px); }
.jf-button-primary, .jf-mode-group .is-active { border-color: #806bff; background: #6953eb; color: #fff; }
.jf-button-primary:hover, .jf-mode-group .is-active:hover { border-color: #a292ff; background: #7560f4; }
.jf-button-quiet { min-height: 34px; padding: 0 10px; background: transparent; color: var(--jf-muted); font-size: .79rem; }
.jf-button-small { min-height: 32px; padding: 0 10px; background: transparent; font-size: .78rem; }
.jf-button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.jf-icon-button { width: 34px; height: 34px; border-radius: 9px; background: transparent; color: var(--jf-muted); }

.jf-choice-group {
    display: flex;
    align-items: center;
    gap: 3px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.jf-choice-group legend {
    float: none;
    width: auto;
    margin: 0 6px 0 0;
    color: var(--jf-muted);
    font-size: .76rem;
    font-weight: 700;
}

.jf-choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.jf-choice-group span {
    display: grid;
    min-width: 29px;
    height: 29px;
    padding: 0 7px;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--jf-muted);
    font-size: .75rem;
    font-weight: 750;
    cursor: pointer;
}
.jf-choice-group input:checked + span { border-color: #3b465a; background: #222c3c; color: #fff; }
.jf-choice-group input:focus-visible + span { outline: 2px solid var(--jf-purple-bright); outline-offset: 2px; }

.jf-toggle { display: inline-flex; align-items: center; gap: 7px; color: var(--jf-muted); font-size: .76rem; font-weight: 700; white-space: nowrap; cursor: pointer; }
.jf-toggle input { position: absolute; opacity: 0; }
.jf-toggle-track { position: relative; width: 31px; height: 18px; border: 1px solid #445067; border-radius: 999px; background: #202a39; transition: .15s ease; }
.jf-toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 10px; height: 10px; border-radius: 50%; background: #7d8ba2; transition: .15s ease; }
.jf-toggle input:checked + .jf-toggle-track { border-color: #715cf1; background: #5e49d8; }
.jf-toggle input:checked + .jf-toggle-track::after { left: 16px; background: #fff; }
.jf-toggle input:focus-visible + .jf-toggle-track { outline: 2px solid var(--jf-purple-bright); outline-offset: 2px; }

.jf-editors { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 570px; }
.jf-panel { min-width: 0; min-height: 570px; background: var(--jf-bg); }
.jf-input-panel { border-right: 1px solid var(--jf-line); }
.jf-panel-header {
    display: flex;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 15px;
    border-bottom: 1px solid var(--jf-line-soft);
    background: var(--jf-panel);
}
.jf-panel-header > div:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.jf-panel-header strong { color: #f6f8fc; font-size: .86rem; }
.jf-panel-header span { overflow: hidden; color: var(--jf-muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.jf-panel-meta { margin-left: auto; }

.jf-input-wrap { position: relative; height: calc(100% - 54px); min-height: 516px; overflow: hidden; }
.jf-line-numbers, .jf-input, .jf-code, .jf-tree {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.62;
    tab-size: 4;
}
.jf-line-numbers {
    position: absolute;
    z-index: 1;
    inset: 0 auto 0 0;
    width: 49px;
    overflow: hidden;
    margin: 0;
    padding: 17px 11px 50px 0;
    border-right: 1px solid var(--jf-line-soft);
    background: #0b1017;
    color: #4f5d74;
    text-align: right;
    user-select: none;
}
.jf-input {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    height: 100%;
    resize: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #dfe7f4;
    caret-color: var(--jf-cyan);
    padding: 16px 18px 70px 65px;
    white-space: pre;
    overflow: auto;
}
.jf-input::placeholder { color: #505d71; }
.jf-input::selection { background: rgba(124, 102, 255, .34); }
.jf-input.is-invalid { box-shadow: inset 0 0 0 1px rgba(255, 113, 133, .42); }

.jf-output-title { display: flex; align-items: center !important; gap: 13px !important; }
.jf-view-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: #0d131d; }
.jf-view-tabs button { min-width: 48px; height: 25px; padding: 0 8px; border: 0; border-radius: 6px; background: transparent; color: var(--jf-muted); font-size: .7rem; }
.jf-view-tabs button.is-active { background: #273144; color: #fff; }
.jf-output-actions { display: flex; align-items: center; gap: 6px; }

.jf-output-tools {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--jf-line-soft);
    background: #0f151f;
}
.jf-search-wrap { display: flex; min-width: 160px; max-width: 340px; flex: 1; align-items: center; gap: 6px; padding: 0 7px; border: 1px solid #2c384c; border-radius: 8px; background: #121a26; color: #637088; }
.jf-search-wrap:focus-within { border-color: #7662ef; box-shadow: 0 0 0 2px rgba(118, 98, 239, .13); }
.jf-search-wrap input { width: 100%; min-width: 60px; height: 29px; border: 0; outline: 0; background: transparent; color: #e7edf7; font: inherit; font-size: .76rem; }
.jf-search-wrap input::placeholder { color: #657187; }
.jf-search-wrap button, .jf-tree-actions button { height: 25px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: #8795aa; font-size: .72rem; }
.jf-match-count { flex: 0 0 auto; color: #7f8da3; font-size: .67rem; white-space: nowrap; }
.jf-tree-actions { display: flex; gap: 5px; }
.jf-tree-actions button { padding: 0 8px; border: 1px solid #2b3547; }

.jf-output-body { position: relative; height: calc(100% - 54px); min-height: 516px; overflow: hidden; }
.jf-output-tools:not([hidden]) + .jf-output-body { height: calc(100% - 97px); min-height: 473px; }
.jf-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; color: var(--jf-muted); text-align: center; }
.jf-empty-mark { display: grid; width: 57px; height: 57px; margin-bottom: 7px; place-items: center; border: 1px solid #283449; border-radius: 18px; background: #131b27; color: #6658c4; font: 800 1rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.jf-empty strong { color: #aeb9ca; font-size: .9rem; }
.jf-empty span { font-size: .76rem; }

.jf-code, .jf-tree {
    position: absolute;
    inset: 0;
    overflow: auto;
    margin: 0;
    padding: 13px 0 60px;
    background: var(--jf-bg);
    color: #cdd7e5;
    white-space: pre;
}
.jf-code-line { display: block; min-width: max-content; padding-right: 20px; }
.jf-code-line:hover { background: rgba(255, 255, 255, .025); }
.jf-code-ln { display: inline-block; width: 49px; margin-right: 15px; padding-right: 11px; border-right: 1px solid var(--jf-line-soft); color: #4f5d74; text-align: right; user-select: none; }
.jf-code-txt { display: inline; }
.jf-token-key { color: #79c7ff; }
.jf-token-string { color: #a7dfad; }
.jf-token-number { color: #e9bd7d; }
.jf-token-bool { color: #c6a6ff; }
.jf-token-null { color: #7e8ca2; font-style: italic; }
.jf-token-punct { color: #aab5c7; }
.jf-code mark { border-radius: 2px; background: rgba(246, 199, 106, .32); color: inherit; outline: 1px solid rgba(246, 199, 106, .6); }
.jf-code mark.is-current { background: #f6c76a; color: #1a202c; outline-color: #f9dc9e; }

.jf-tree { padding: 13px 18px 60px; white-space: normal; }
.jf-tree details { margin-left: 17px; }
.jf-tree > details { margin-left: 0; }
.jf-tree summary { display: flex; min-height: 25px; align-items: center; gap: 6px; list-style: none; cursor: pointer; }
.jf-tree summary::-webkit-details-marker { display: none; }
.jf-tree summary::before { content: '›'; width: 12px; color: #718097; font-size: 1.05rem; transform: rotate(0); transition: transform .12s ease; }
.jf-tree details[open] > summary::before { transform: rotate(90deg); }
.jf-tree-children { margin-left: 5px; border-left: 1px solid #273247; }
.jf-tree-row { display: flex; min-height: 25px; align-items: flex-start; gap: 6px; margin-left: 34px; }
.jf-tree-key { padding: 0; border: 0; background: none; color: #79c7ff; font: inherit; cursor: copy; }
.jf-tree-key:hover { color: #b5e1ff; text-decoration: underline; text-underline-offset: 3px; }
.jf-tree-separator { color: #627087; }
.jf-tree-count { color: #627087; font-size: .72rem; }
.jf-tree-value { max-width: min(650px, 70vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jf-tree-string { color: #a7dfad; }
.jf-tree-number { color: #e9bd7d; }
.jf-tree-boolean { color: #c6a6ff; }
.jf-tree-null { color: #7e8ca2; font-style: italic; }
.jf-tree-notice { max-width: 470px; margin: 50px auto; padding: 18px; border: 1px solid #354158; border-radius: 12px; background: #141c28; color: #a9b5c7; text-align: center; }

.jf-error {
    display: flex;
    width: calc(100% - 24px);
    align-items: center;
    gap: 12px;
    margin: 0 12px 12px;
    padding: 11px 13px;
    border: 1px solid rgba(255, 113, 133, .34);
    border-radius: 11px;
    background: rgba(143, 43, 61, .17);
    color: #ffd6dd;
    text-align: left;
    cursor: pointer;
}
.jf-error:hover { background: rgba(143, 43, 61, .25); }
.jf-error-icon { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 8px; background: #8f3345; color: #fff; font-weight: 900; }
.jf-error-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.jf-error-copy strong { font-size: .78rem; }
.jf-error-copy > span { color: #f4b5c0; font-size: .73rem; }
.jf-error-copy code { overflow: hidden; color: #d88c99; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.jf-error-jump { margin-left: auto; color: #f4b5c0; font-size: .71rem; font-weight: 700; white-space: nowrap; }

.jf-statusbar {
    display: flex;
    min-height: 42px;
    align-items: center;
    gap: 16px;
    padding: 8px 15px;
    border-top: 1px solid var(--jf-line);
    background: var(--jf-panel-raised);
    color: var(--jf-muted);
    font-size: .71rem;
}
.jf-status { display: flex; align-items: center; gap: 7px; color: #a9b5c5; font-weight: 750; }
.jf-status span:first-child { color: #6e7a8d; font-size: .55rem; }
.jf-status.is-valid { color: #c9f6e6; }
.jf-status.is-valid span:first-child { color: var(--jf-green); }
.jf-status.is-invalid { color: #ffd0d8; }
.jf-status.is-invalid span:first-child { color: var(--jf-red); }
.jf-stats { display: flex; align-items: center; gap: 12px; }
.jf-stats span { white-space: nowrap; }
.jf-stats span + span::before { content: '·'; margin-right: 12px; color: #455169; }
.jf-live-hint { margin-left: auto; color: #66748a; }

.jf-info {
    margin: 28px 8px 0;
    padding: 30px;
    border: 1px solid #e2e5ec;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(35, 42, 57, .05);
}
.jf-info-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; max-width: 950px; }
.jf-info-icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; background: #efedff; color: #6e5add; font-size: 1.3rem; }
.jf-info h2 { margin: 0 0 7px; color: #242a36; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.jf-info p { margin: 0; color: #687184; font-size: .92rem; line-height: 1.65; }
.jf-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 29px; padding-top: 25px; border-top: 1px solid #eceef3; }
.jf-features article > span { color: #6c58df; font-size: 1.2rem; font-weight: 800; }
.jf-features h3 { margin: 8px 0 5px; color: #333946; font-size: .91rem; font-weight: 800; }
.jf-features p { font-size: .82rem; line-height: 1.55; }
.jf-shortcuts { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 13px 15px; border-radius: 11px; background: #f5f6f9; color: #687184; font-size: .74rem; }
.jf-shortcuts strong { margin-right: 3px; color: #343a46; }
.jf-shortcuts span { display: flex; align-items: center; gap: 4px; }
.jf-shortcuts kbd { padding: 3px 6px; border: 1px solid #d8dce5; border-bottom-width: 2px; border-radius: 5px; background: #fff; color: #4b5363; font-family: inherit; font-size: .66rem; }
.jf-seo-text { margin-top: 22px !important; color: #8b93a2 !important; font-size: .75rem !important; }

.jf-toast {
    position: fixed;
    z-index: 1200;
    left: 50%;
    bottom: 24px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #171e2b;
    box-shadow: 0 10px 35px rgba(10, 14, 21, .26);
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition: opacity .18s ease, transform .18s ease;
}
.jf-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

.jf-page button:focus-visible, .jf-page textarea:focus-visible, .jf-page input:focus-visible, .jf-page label[role="button"]:focus-visible { outline: 2px solid var(--jf-purple-bright); outline-offset: 2px; }

@media (max-width: 1180px) {
    .jf-toolbar { flex-wrap: wrap; }
    .jf-toolbar-actions { width: 100%; margin-left: 0; padding-top: 4px; border-top: 1px solid var(--jf-line-soft); }
    .jf-toolbar-actions .jf-icon-button { margin-left: auto; }
    .jf-editors, .jf-panel { min-height: 520px; }
    .jf-input-wrap, .jf-output-body { min-height: 466px; }
    .jf-output-tools:not([hidden]) + .jf-output-body { min-height: 423px; }
}

@media (max-width: 820px) {
    .jf-page { width: min(100% - 24px, 720px); padding-top: 30px; }
    .jf-hero { display: block; margin-inline: 2px; }
    .jf-hero h1 { font-size: 2.75rem; }
    .jf-trust { flex-direction: row; flex-wrap: wrap; margin-top: 17px; }
    .jf-workspace { border-radius: 17px; }
    .jf-toolbar { gap: 9px; padding: 11px; }
    .jf-toolbar-divider { display: none; }
    .jf-mode-group { width: 100%; }
    .jf-mode-group .jf-button { flex: 1; }
    .jf-toggle { margin-left: auto; }
    .jf-toolbar-actions { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
    .jf-editors { display: block; min-height: auto; }
    .jf-panel { min-height: 420px; }
    .jf-input-panel { border-right: 0; border-bottom: 1px solid var(--jf-line); }
    .jf-input-wrap, .jf-output-body { height: 366px; min-height: 366px; }
    .jf-output-tools:not([hidden]) + .jf-output-body { height: 323px; min-height: 323px; }
    .jf-output-panel { min-height: 420px; }
    .jf-panel-header > div:first-child > span { display: none; }
    .jf-statusbar { flex-wrap: wrap; gap: 8px 14px; }
    .jf-stats { order: 3; width: 100%; overflow-x: auto; }
    .jf-live-hint { margin-left: auto; }
    .jf-info { margin-inline: 2px; padding: 22px; }
    .jf-features { grid-template-columns: 1fr; gap: 18px; }
    .jf-shortcuts { display: none; }
}

@media (max-width: 520px) {
    .jf-page { width: 100%; padding-top: 26px; }
    .jf-hero { margin: 0 18px 21px; }
    .jf-eyebrow { font-size: .7rem; }
    .jf-hero h1 { font-size: 2.35rem; }
    .jf-hero p { margin-top: 10px; font-size: .93rem; }
    .jf-trust { display: grid; gap: 5px; font-size: .75rem; }
    .jf-workspace { border-right: 0; border-left: 0; border-radius: 0; }
    .jf-toolbar { gap: 8px; }
    .jf-choice-group { flex: 1 1 auto; }
    .jf-choice-group legend { display: none; }
    .jf-toggle { margin-left: 0; }
    .jf-toggle:nth-of-type(1) { margin-left: auto; }
    .jf-button { font-size: .79rem; }
    .jf-button-quiet { flex: 0 0 auto; }
    .jf-panel-header { padding-inline: 12px; }
    .jf-panel-meta { display: none; }
    .jf-output-actions .jf-button { width: 33px; padding: 0; font-size: 0; }
    .jf-output-actions .jf-button span { display: inline; font-size: .88rem; }
    .jf-output-title { gap: 8px !important; }
    .jf-view-tabs button { min-width: 41px; padding-inline: 5px; }
    .jf-output-tools { gap: 5px; padding-inline: 8px; }
    .jf-tree-actions button { padding-inline: 5px; font-size: .65rem; }
    .jf-input-wrap, .jf-output-body { height: 340px; min-height: 340px; }
    .jf-output-tools:not([hidden]) + .jf-output-body { height: 297px; min-height: 297px; }
    .jf-panel, .jf-output-panel { min-height: 394px; }
    .jf-input { padding-left: 55px; }
    .jf-line-numbers, .jf-code-ln { width: 42px; }
    .jf-code-ln { margin-right: 10px; }
    .jf-error-jump { display: none; }
    .jf-statusbar { padding-inline: 12px; }
    .jf-stats { gap: 8px; }
    .jf-stats span + span::before { margin-right: 8px; }
    .jf-info { margin: 18px 12px 0; border-radius: 16px; }
    .jf-info-lead { grid-template-columns: 1fr; gap: 11px; }
    .jf-info h2 { font-size: 1.18rem; }
}

@media (prefers-reduced-motion: reduce) {
    .jf-page *, .jf-page *::before, .jf-page *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
