:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-subtle: #fafafa;
    --text: #555555;
    --muted: #999999;
    --line: #e5e5e5;
    --line-strong: #d5d5d5;
    --accent: #0fd59d;
    --accent-hover: #15b374;
    --accent-soft: #edfff9;
    --danger: #f1592a;
    --danger-soft: #fff3ef;
    --warning: #a56f00;
    --warning-soft: #fff9e8;
    --dark: #555555;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-mono: "SFMono-Regular", "Cascadia Code", "JetBrains Mono", Consolas, monospace;
    --radius: 8px;
    --page: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); font-family: var(--font-sans); font-size: 14px; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a { color: inherit; }
[hidden] { display: none !important; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid rgba(15, 213, 157, .45); outline-offset: 2px; }

.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; color: white; background: var(--dark); border-radius: 5px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }

.app-header { position: sticky; z-index: 20; top: 0; min-height: 48px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 0 12px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.app-brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; white-space: nowrap; }
.app-brand__mark { width: 29px; height: 29px; display: grid; place-items: center; color: #075f47; background: var(--accent); border-radius: 5px; font: 700 10px/1 var(--font-mono); }
.app-brand > span:last-child { display: grid; line-height: 1.1; }
.app-brand strong { color: var(--accent); font-size: 13px; }
.app-brand small { margin-top: 3px; color: var(--muted); font: 700 9px/1 var(--font-mono); letter-spacing: .1em; }
.tool-tabs { min-width: 0; display: flex; align-items: stretch; align-self: stretch; overflow-x: auto; scrollbar-width: none; }
.tool-tabs::-webkit-scrollbar { display: none; }
.tool-tabs button { position: relative; min-width: max-content; padding: 0 13px; border: 0; color: var(--muted); background: transparent; font-size: 13px; }
.tool-tabs button:hover { color: var(--text); background: var(--surface-subtle); }
.tool-tabs button.is-active { color: var(--accent); font-weight: 650; }
.tool-tabs button.is-active::after { position: absolute; right: 15px; bottom: -1px; left: 15px; height: 2px; background: var(--accent); content: ""; }
.local-indicator { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.local-indicator i, .status-line i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); }

.app-main { width: calc(100% - 16px); min-height: calc(100dvh - 48px); margin: 0 auto; padding: 8px 0 18px; }
.tool-panel { width: 100%; }
.tool-heading { min-height: 38px; display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 6px; }
.tool-heading h1 { margin: 0 0 3px; font-size: 19px; line-height: 1.2; letter-spacing: -.02em; }
.tool-heading p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.tool-heading.is-json-heading { min-height: 34px; }
.keyboard-hint { align-self: center; color: var(--muted); font-size: 11px; white-space: nowrap; }
kbd { padding: 2px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; background: white; font: 11px/1.4 var(--font-mono); }

.action-bar { min-height: 42px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 5px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.action-group { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.action-group label { color: var(--muted); font-size: 12px; }
.button { min-height: 31px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--text); background: var(--surface); text-decoration: none; font-size: 12px; font-weight: 600; line-height: 1.2; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease; }
.button:hover:not(:disabled) { border-color: #aeb8bf; background: var(--surface-subtle); }
.button:active:not(:disabled) { transform: translateY(1px); }
.button.is-primary { border-color: var(--accent); color: #075f47; background: var(--accent); }
.button.is-primary:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); }
.button.is-dark { border-color: var(--dark); color: white; background: var(--dark); }
.button.is-quiet { border-color: transparent; color: var(--muted); }
.button.is-danger-quiet { border-color: transparent; color: var(--danger); background: transparent; }
.button.is-danger-quiet:hover:not(:disabled) { border-color: #eccaca; background: var(--danger-soft); }
.button.is-block { width: 100%; }
select, .select-small { min-height: 32px; padding: 4px 28px 4px 9px; border: 1px solid var(--line-strong); border-radius: 5px; background: white; }

.split-workspace { height: max(520px, calc(100dvh - 171px)); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); overflow: hidden; border: 1px solid var(--line-strong); border-radius: 5px; background: var(--surface); }
.json-workspace { height: max(560px, calc(100dvh - 126px)); grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); }
.split-workspace.is-short { height: clamp(360px, calc(100vh - 300px), 560px); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.work-pane { min-width: 0; min-height: 0; display: grid; grid-template-rows: 34px minmax(0, 1fr); }
.json-workspace .work-pane { grid-template-rows: 46px minmax(0, 1fr); }
.work-pane + .work-pane { border-left: 1px solid var(--line-strong); }
.pane-header { min-width: 0; display: flex; align-items: center; gap: 12px; padding: 0 11px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); }
.pane-header > strong { font-size: 12px; }
.pane-header > span { margin-left: auto; color: var(--muted); font: 11px/1 var(--font-mono); }
.pane-header > button, .field-label button { padding: 2px 6px; border: 0; color: var(--accent); background: transparent; font-size: 11px; }
.code-field, .text-field, .single-field { width: 100%; border: 1px solid var(--line-strong); border-radius: 5px; background: white; }
.code-field { min-width: 0; min-height: 0; height: 100%; padding: 12px 14px; resize: none; border: 0; border-radius: 0; font: 14px/1.65 var(--font-mono); tab-size: 2; }
.code-field::placeholder, .text-field::placeholder, .single-field::placeholder { color: #9ba4ab; }
.code-result-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.code-result { height: 100%; overflow: auto; padding: 8px 0 30px; counter-reset: json-line; color: #555; background: #fff; font: 14px/24px var(--font-mono); tab-size: 2; }
.json-output-header { gap: 8px; padding: 5px 8px 5px 11px; overflow: hidden; }
.json-output-header > strong { flex: 0 0 auto; }
.json-output-header > .json-result-meta { flex: 0 0 auto; margin-left: 0; white-space: nowrap; }
.json-command-bar { min-width: 0; display: flex; flex: 1 1 auto; align-items: center; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-color: #d9dfdc transparent; scrollbar-width: thin; }
.json-command-group { flex: 0 0 auto; display: flex; align-items: center; gap: 2px; padding-left: 5px; border-left: 1px solid var(--line); }
.json-command-group:first-child { padding-left: 0; border-left: 0; }
.json-command { min-height: 30px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 7px; border: 1px solid transparent; border-radius: 5px; color: #687078; background: transparent; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 100ms ease; }
.json-command svg, .json-indent-control > svg { width: 14px; height: 14px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.json-command:hover:not(:disabled) { border-color: #d8e2de; color: #166c55; background: #f1fbf7; }
.json-command:active:not(:disabled) { transform: translateY(1px); }
.json-command.is-primary { border-color: #8be7ca; color: #075f47; background: #dffbef; }
.json-command.is-primary:hover:not(:disabled) { border-color: var(--accent); background: #c9f7e7; }
.json-command.is-danger { color: #c94b29; }
.json-command.is-danger:hover:not(:disabled) { border-color: #f0d3ca; color: var(--danger); background: var(--danger-soft); }
.json-indent-control { min-height: 30px; display: inline-flex; align-items: center; gap: 4px; padding-left: 7px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.json-indent-control select { width: 84px; min-height: 28px; padding: 3px 24px 3px 7px; border-color: #d8dcda; border-radius: 5px; color: var(--text); background-color: white; font-size: 11px; }
.json-line { position: relative; min-height: 24px; display: block; padding: 0 12px 0 calc(50px + var(--indent, 0) * 22px); white-space: pre; }
.json-line::before { position: absolute; top: 0; left: 0; width: 38px; padding-right: 8px; border-right: 1px solid #eee; color: #bbb; text-align: right; counter-increment: json-line; content: counter(json-line); user-select: none; }
.line-numbers-off .json-line { padding-left: calc(12px + var(--indent, 0) * 22px); }
.line-numbers-off .json-line::before { display: none; }
.json-line:hover { background: #fafafa; }
.json-fold summary { cursor: pointer; list-style: none; }
.json-fold summary::-webkit-details-marker { display: none; }
.json-fold summary::marker { content: ""; }
.json-fold > summary:hover { background: #fafafa; }
.json-fold:not([open]) > summary { color: #666; background: #f7f7f7; }
.fold-toggle { position: absolute; top: 8px; left: calc(41px + var(--indent, 0) * 22px); width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 5px solid #b8b8b8; transform: rotate(90deg); transform-origin: 2px 4px; transition: border-color 120ms ease, transform 120ms ease; user-select: none; }
.json-fold:not([open]) > summary .fold-toggle { transform: rotate(0deg); }
.json-fold > summary:hover .fold-toggle { border-left-color: #29abe2; }
.line-numbers-off .fold-toggle { left: calc(3px + var(--indent, 0) * 22px); }
.collection-count { margin-left: 8px; color: #cecece; font: 400 9px/24px var(--font-sans); }
.fold-placeholder { color: #777; font-weight: 600; }
.json-fold[open] > summary .fold-placeholder { display: none; }
.json-fold:not([open]) > summary .collection-open,
.json-fold:not([open]) > summary .collection-count { display: none; }
.json-key { color: #92278f; font-weight: 700; }
.json-string { color: #3ab54a; font-weight: 700; }
.json-number { color: #25aae2; font-weight: 700; }
.json-boolean { color: #ffa500; font-weight: 700; }
.json-null { color: #f1592a; font-weight: 700; }
.json-line--plain { --indent: 0; }
.json-preview-truncated { color: var(--warning); background: var(--warning-soft); font-family: var(--font-sans); font-size: 12px; }
.empty-state { position: absolute; inset: 0; display: grid; place-content: center; gap: 8px; color: var(--muted); text-align: center; pointer-events: none; }
.empty-state strong { color: #b9c1c6; font: 32px/1 var(--font-mono); }
.empty-state span { font-size: 12px; }

.notice { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; padding: 9px 11px; border: 1px solid; border-radius: 5px; font-size: 12px; line-height: 1.5; }
.notice.is-error { border-color: #efcccc; color: var(--danger); background: var(--danger-soft); }
.notice.is-warning { border-color: #eadcae; color: var(--warning); background: var(--warning-soft); }
.notice ul { margin: 0; padding-left: 18px; }
.tool-footer, .card-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 7px; }
.status-line { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.status-line.is-error i { background: var(--danger); }
.status-line.is-working i { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .3; } }

.two-column-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.simple-card { min-width: 0; display: flex; flex-direction: column; gap: 11px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.card-heading { min-height: 36px; display: flex; align-items: start; justify-content: space-between; }
.card-heading span { color: var(--accent); font: 700 10px/1 var(--font-mono); letter-spacing: .09em; }
.card-heading h2 { margin: 5px 0 0; font-size: 17px; }
.card-footer { margin-top: auto; border-top: 1px solid var(--line); }
.drop-zone { min-height: 116px; display: grid; place-content: center; justify-items: center; gap: 5px; padding: 14px; border: 1px dashed #aeb9c0; border-radius: 6px; color: var(--muted); background: var(--surface-subtle); text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.drop-zone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-zone__mark { font-size: 25px; font-weight: 300; line-height: 1; }
.drop-zone strong { color: var(--text); font-size: 13px; }
.drop-zone span:last-child { font-size: 11px; }
.segmented-control { width: fit-content; display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); }
.segment { min-height: 28px; padding: 3px 10px; border: 0; border-radius: 4px; color: var(--muted); background: transparent; font-size: 11px; }
.segment.is-active { color: var(--text); background: white; box-shadow: 0 1px 2px rgba(26, 35, 42, .1); }
.progress-track { width: 100%; height: 3px; display: none; border: 0; accent-color: var(--accent); }
.progress-track.is-visible { display: block; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.text-field { min-height: 130px; padding: 10px; resize: vertical; line-height: 1.55; }
.text-field.is-code, .single-field.is-code { font-family: var(--font-mono); font-size: 12px; }
.text-field.is-result { min-height: 105px; background: var(--surface-subtle); }
.text-field.is-tall { min-height: 235px; }
.single-field { min-height: 38px; padding: 7px 10px; }
.field-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.field-row label { color: var(--muted); font-size: 11px; }
.field-row select { min-width: 135px; }
.file-result { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); }
.file-result__summary { display: flex; align-items: center; gap: 9px; }
.file-result__summary > div { min-width: 0; display: grid; gap: 2px; }
.file-result__summary strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.file-result__summary span { color: var(--muted); font-size: 10px; }
.file-result__badge { min-width: 36px; padding: 5px; color: var(--accent) !important; background: var(--accent-soft); border-radius: 4px; font: 700 9px/1 var(--font-mono); text-align: center; }
.preview-area { max-height: 240px; overflow: auto; border-radius: 4px; }
.preview-area img, .preview-area video { display: block; max-width: 100%; max-height: 220px; margin: auto; }
.preview-area pre { margin: 0; padding: 9px; overflow: auto; background: white; font: 11px/1.5 var(--font-mono); white-space: pre-wrap; }
.preview-message { margin: 0; color: var(--muted); font-size: 11px; }

.inline-status { display: inline-block; margin-top: 9px; color: var(--muted); font-size: 12px; }
.inline-status.is-success { color: var(--accent); }
.inline-status.is-error { color: var(--danger); }
.inline-status.is-working { color: var(--warning); }
.now-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.now-strip label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); background: var(--surface); font-size: 11px; }
.now-strip input { min-width: 0; border: 0; background: transparent; font: 13px/1 var(--font-mono); }
.now-strip button { border: 0; color: var(--accent); background: transparent; font-size: 11px; }
.file-hash-row { min-height: 38px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-subtle); }
.file-hash-row input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file-hash-row span { min-width: 0; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.safety-note { color: var(--muted); font-size: 11px; }
.jwt-workspace { min-height: 560px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px; }
.text-field.is-fill { min-height: 0; flex: 1 1 240px; }
.claim-grid { display: grid; grid-template-columns: minmax(90px, auto) minmax(0, 1fr); gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.claim-grid:empty { display: none; }
.claim-grid dt, .claim-grid dd { min-width: 0; margin: 0; padding: 7px 9px; border-bottom: 1px solid var(--line); }
.claim-grid dt { color: var(--muted); background: var(--surface-subtle); font-weight: 600; }
.claim-grid dd { overflow-wrap: anywhere; font-family: var(--font-mono); }
.claim-grid > :nth-last-child(-n + 2) { border-bottom: 0; }
.jwt-warning { align-items: center; }
.jwt-warning span { color: var(--text); }
.regex-controls { display: grid; grid-template-columns: minmax(280px, 1fr) auto; }
.regex-pattern { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto 64px; align-items: center; gap: 6px; color: var(--muted); font-family: var(--font-mono); }
.regex-pattern .single-field { min-width: 0; }
.regex-pattern .regex-flags { width: 64px; }
.regex-result-pane { grid-template-rows: 34px minmax(0, 1fr); }
.regex-results { position: relative; min-width: 0; min-height: 0; overflow: auto; background: white; }
.empty-state.is-static { position: static; min-height: 220px; }
.match-item { display: grid; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.match-item > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.match-item > header strong { color: var(--accent-hover); font: 700 11px/1 var(--font-mono); }
.match-item > header span { color: var(--muted); font: 10px/1 var(--font-mono); }
.match-item > code { padding: 8px; overflow-wrap: anywhere; color: var(--text); background: var(--surface-subtle); font: 12px/1.5 var(--font-mono); white-space: pre-wrap; }
.capture-list { display: grid; grid-template-columns: minmax(54px, auto) minmax(0, 1fr); margin: 0; border: 1px solid var(--line); border-bottom: 0; font: 11px/1.4 var(--font-mono); }
.capture-list dt, .capture-list dd { min-width: 0; margin: 0; padding: 5px 7px; border-bottom: 1px solid var(--line); }
.capture-list dt { color: var(--muted); background: var(--surface-subtle); }
.capture-list dd { overflow-wrap: anywhere; }
.replace-strip { display: grid; grid-template-columns: auto minmax(220px, 1fr) auto; align-items: center; gap: 8px; margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius); }
.replace-strip > label { color: var(--muted); font-size: 11px; }
.replace-strip textarea { grid-column: 1 / -1; min-height: 90px; }
.check-control { display: inline-flex; align-items: center; gap: 6px; color: var(--text) !important; }
.check-control input { accent-color: var(--accent); }
.diff-output { margin-top: 10px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: white; }
.diff-output > header { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; border-bottom: 1px solid var(--line); background: var(--surface-subtle); font-size: 12px; }
.diff-output > header span { color: var(--muted); font: 11px/1 var(--font-mono); }
.diff-table { max-height: 360px; overflow: auto; counter-reset: diff; font: 12px/20px var(--font-mono); }
.diff-row { min-width: max-content; display: grid; grid-template-columns: 24px 46px 46px minmax(600px, 1fr); }
.diff-row > * { min-height: 20px; padding: 0 7px; border-right: 1px solid #edf0f2; white-space: pre; }
.diff-row > span { color: #86919a; text-align: right; user-select: none; }
.diff-row > code { color: inherit; font: inherit; text-align: left; }
.diff-row.is-add { color: #185f45; background: #eaf7f0; }
.diff-row.is-remove { color: #8f3030; background: #fff0ef; }
.diff-row mark { padding: 0; color: inherit; background: #ffd8a8; border-radius: 2px; }
.diff-row.is-add mark { background: #bfe8cf; }

.app-footer { width: calc(100% - 16px); min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.app-footer a { text-decoration: none; }
.app-footer a:hover { color: var(--text); text-decoration: underline; }

@media (max-width: 1500px) {
    .json-command.is-icon-at-compact { width: 30px; padding-right: 4px; padding-left: 4px; }
    .json-command.is-icon-at-compact > span, .json-indent-control > span { display: none; }
}

@media (max-width: 1350px) {
    .json-command.is-icon-at-narrow { width: 30px; padding-right: 4px; padding-left: 4px; }
    .json-command.is-icon-at-narrow > span { display: none; }
}

@media (max-width: 980px) {
    .app-header { grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding-right: 12px; }
    .local-indicator { display: none; }
    .two-column-tools { grid-template-columns: 1fr; }
    .jwt-workspace { grid-template-columns: 1fr; }
    .split-workspace { height: auto; grid-template-columns: 1fr; }
    .split-workspace.is-short { grid-template-columns: 1fr; }
    .work-pane { min-height: 420px; }
    .split-workspace.is-short .work-pane { min-height: 300px; }
    .work-pane + .work-pane { border-top: 1px solid var(--line-strong); border-left: 0; }
}

@media (max-width: 680px) {
    .app-header { position: static; min-height: 0; grid-template-columns: 1fr; gap: 0; padding: 9px 12px 0; }
    .app-brand { padding-bottom: 9px; }
    .tool-tabs { width: calc(100% + 24px); margin-left: -12px; border-top: 1px solid var(--line); }
    .tool-tabs button { min-height: 43px; padding: 0 12px; }
    .app-main { width: min(calc(100% - 20px), var(--page)); padding-top: 14px; }
    .tool-heading { display: block; }
    .tool-heading h1 { font-size: 20px; }
    .keyboard-hint { display: none; }
    .action-bar { align-items: stretch; }
    .action-group { gap: 5px; }
    .action-group .button { flex: 1 1 auto; }
    .split-workspace .work-pane { min-height: 360px; }
    .split-workspace.is-short .work-pane { min-height: 270px; }
    .pane-header { gap: 6px; padding: 0 8px; }
    .json-workspace .work-pane { grid-template-rows: 42px minmax(0, 1fr); }
    .json-workspace .work-pane.is-json-result { grid-template-rows: 82px minmax(0, 1fr); }
    .json-output-header { align-content: center; flex-wrap: wrap; gap: 2px 8px; padding: 5px 8px; }
    .json-output-header > strong { order: 1; }
    .json-output-header > .json-result-meta { order: 2; margin-left: auto; }
    .json-command-bar { order: 3; flex: 1 0 100%; width: 100%; padding-bottom: 2px; }
    .json-command { min-height: 29px; }
    .json-line { padding-left: calc(42px + var(--indent, 0) * 16px); }
    .json-line::before { width: 34px; }
    .line-numbers-off .json-line { padding-left: calc(8px + var(--indent, 0) * 16px); }
    .fold-toggle { left: calc(35px + var(--indent, 0) * 16px); }
    .line-numbers-off .fold-toggle { left: calc(0px + var(--indent, 0) * 16px); }
    .now-strip { grid-template-columns: 1fr; }
    .now-strip label { grid-template-columns: 1fr auto; }
    .now-strip label > :first-child { grid-column: 1 / -1; }
    .field-row { align-items: stretch; }
    .field-row > select, .field-row > .button { flex: 1 1 auto; }
    .regex-controls { grid-template-columns: 1fr; }
    .regex-controls > .action-group { justify-content: flex-end; }
    .replace-strip { grid-template-columns: 1fr; }
    .replace-strip textarea { grid-column: auto; }
    .file-hash-row { grid-template-columns: 1fr auto; }
    .file-hash-row > label { grid-column: 1; }
    .app-footer { width: calc(100% - 20px); align-items: flex-start; flex-direction: column; padding: 13px 0; }
}

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