:root {
    --navy: #0b1f33;
    --navy-soft: #132b43;
    --blue: #176bff;
    --blue-soft: #eaf1ff;
    --ink: #172132;
    --muted: #718096;
    --line: #e5eaf0;
    --surface: #ffffff;
    --background: #f5f7fa;
    --success: #0f9f6e;
    --danger: #dc4b4b;
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
    color: var(--ink);
    background: var(--background);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a.nav-item { text-decoration: none; }

.app-shell { min-height: 100vh; }

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    width: 238px;
    display: flex;
    flex-direction: column;
    padding: 30px 18px 22px;
    color: #fff;
    background: var(--navy);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 10px 34px;
    color: #fff;
    text-decoration: none;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: var(--navy);
    background: #fff;
    font-size: 21px;
    font-weight: 800;
}

.brand strong { display: block; font-size: 21px; letter-spacing: .2px; }
.brand small { display: block; margin-top: 2px; color: #8ba2b8; font-size: 9px; letter-spacing: 3.2px; }

.nav-list { display: grid; gap: 7px; }

.nav-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 13px 14px;
    border: 0;
    border-radius: 10px;
    color: #a9b9c8;
    background: transparent;
    text-align: left;
    transition: .2s ease;
}

.nav-item:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-item.active { color: #fff; background: var(--blue); box-shadow: 0 9px 24px rgba(23, 107, 255, .24); }
.nav-icon { width: 25px; font: 700 14px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.clock-icon { width: 17px; height: 17px; margin: 0 4px; border: 1.8px solid currentColor; border-radius: 50%; position: relative; }
.clock-icon::before { content: ""; position: absolute; left: 7px; top: 3px; width: 1.5px; height: 5px; background: currentColor; }
.clock-icon::after { content: ""; position: absolute; left: 7px; top: 7px; width: 4px; height: 1.5px; background: currentColor; transform: rotate(25deg); transform-origin: left; }

.sidebar-note {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
}

.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #47d7a0; box-shadow: 0 0 0 4px rgba(71, 215, 160, .1); }
.sidebar-note strong, .sidebar-note small { display: block; }
.sidebar-note strong { font-size: 12px; }
.sidebar-note small { margin-top: 3px; color: #7890a6; font-size: 10px; }

.main-content { min-height: 100vh; margin-left: 238px; }

.topbar {
    height: 72px;
    display: flex;
    align-items: center;
    padding: 0 clamp(24px, 4vw, 62px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .92);
}

.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.breadcrumb span { color: var(--muted); }
.breadcrumb b { color: #c4ccd5; font-weight: 400; }
.version { margin-left: auto; color: #a5afbb; font-size: 11px; }
.mobile-menu { display: none; border: 0; background: transparent; margin-right: 12px; font-size: 22px; }

.tool-page { display: none; padding: 48px clamp(24px, 5vw, 74px) 28px; }
.tool-page.active { display: block; animation: pageIn .25s ease; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.eyebrow { color: var(--blue); font-size: 10px; font-weight: 750; letter-spacing: 2.1px; }
h1 { margin: 8px 0 7px; font-size: clamp(28px, 3vw, 39px); letter-spacing: -1.2px; }
.page-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.privacy-badge { padding: 9px 13px; border: 1px solid #dce5ef; border-radius: 999px; color: #66768a; background: #fff; font-size: 11px; }

.toolbar {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: var(--radius) var(--radius) 0 0;
    background: #fff;
}

.primary-btn, .soft-btn, .text-btn, .copy-btn {
    border: 0;
    border-radius: 8px;
    transition: .18s ease;
}

.primary-btn { padding: 10px 19px; color: #fff; background: var(--blue); font-weight: 650; box-shadow: 0 6px 15px rgba(23, 107, 255, .18); }
.primary-btn:hover { background: #0759da; transform: translateY(-1px); }
.soft-btn { padding: 10px 15px; color: #41536a; background: #f2f5f8; }
.soft-btn:hover { background: #e9eef4; }
.json-action.active, .field-action.active { color: #fff; background: var(--blue); font-weight: 650; box-shadow: 0 6px 15px rgba(23, 107, 255, .18); }
.json-action.active:hover, .field-action.active:hover { background: #0759da; transform: translateY(-1px); }
.text-btn { padding: 8px 10px; color: #728197; background: transparent; }
.text-btn:hover { color: var(--blue); background: var(--blue-soft); }
.toolbar-spacer { flex: 1; }

.jsonpath-bar {
    display: none;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 10px 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #fff;
}

.jsonpath-bar.active { display: grid; }
.jsonpath-input-row { display: flex; min-width: 0; gap: 10px; }
.jsonpath-input-row input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #dce3ea;
    border-radius: 8px;
    outline: 0;
    color: var(--ink);
    font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
}
.jsonpath-input-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 107, 255, .08); }
.jsonpath-examples { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.jsonpath-examples .text-btn { font-size: 11px; }
.jsonpath-bar.active ~ .editor-grid, .field-filter-panel.active ~ .editor-grid { border-radius: 0 0 var(--radius) var(--radius); }

.field-filter-panel, .compare-panel {
    display: none;
    border: 1px solid var(--line);
    border-bottom: 0;
    background: #fff;
}

.field-filter-panel.active { display: block; }
.compare-panel.active { display: block; border-bottom: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.compare-panel.active + .editor-grid { display: none; }
.field-filter-actions, .compare-actions {
    min-height: 58px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
}
.field-filter-actions small { margin-left: auto; color: var(--muted); font-size: 11px; }
.compare-actions small { margin-left: auto; color: var(--muted); font-size: 11px; }
.field-filter-grid { display: grid; grid-template-columns: 1.25fr .75fr; min-height: 210px; }
.field-tree-panel, .selected-field-panel { min-width: 0; display: flex; flex-direction: column; }
.selected-field-panel { border-left: 1px solid var(--line); background: #fbfcfe; }
.field-tree, .selected-fields {
    min-height: 166px;
    max-height: 260px;
    overflow: auto;
    padding: 11px 13px;
}
.field-node {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 7px;
    border-radius: 7px;
    color: #33445a;
    font: 12px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.field-node:hover { background: #f4f7fb; }
.field-node input { width: 14px; height: 14px; margin: 0; accent-color: var(--blue); }
.field-node-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field-node-type { margin-left: auto; color: #99a7b7; font-size: 10px; }
.field-children { margin-left: 20px; border-left: 1px dashed #dce3ea; padding-left: 7px; }
.field-path-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
    padding: 8px 10px;
    border-radius: 8px;
    color: #244a7c;
    background: var(--blue-soft);
    font: 11px/1.45 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.field-path-chip button {
    margin-left: auto;
    border: 0;
    color: #6d7c90;
    background: transparent;
    font-size: 14px;
}

.compare-input-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
}
.compare-input-card, .compare-result-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}
.compare-input-card textarea {
    min-height: 190px;
    display: block;
}
.compare-result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    min-height: 250px;
    padding: 12px;
}
.compare-result-grid.compare-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.compare-result-grid.compare-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.compare-code {
    max-height: 520px;
    overflow: auto;
    padding: 14px;
    background: #fbfcfe;
    font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.compare-line {
    display: block;
    min-height: 20px;
    padding: 0 4px;
    border-radius: 4px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.compare-line.diff {
    color: #b42318;
    background: #fff0f0;
}
.compare-missing {
    margin: 0 14px 12px;
    padding: 9px 10px;
    border: 1px solid #ffd0d0;
    border-radius: 8px;
    color: #b42318;
    background: #fff7f7;
    font-size: 11px;
}

.editor-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 515px; border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.editor-panel { min-width: 0; display: flex; flex-direction: column; }
.result-panel { border-left: 1px solid var(--line); background: #fbfcfe; }
.panel-header { height: 43px; display: flex; align-items: center; padding: 0 17px; border-bottom: 1px solid var(--line); color: #637186; font-size: 12px; font-weight: 650; }
.panel-header small { margin-left: auto; color: #a0aab6; font-weight: 400; }
.copy-btn { margin-left: auto; padding: 5px 9px; color: var(--blue); background: var(--blue-soft); font-size: 11px; }
.copy-btn + .copy-btn { margin-left: 6px; }
.tree-btn { margin-left: 6px; color: #637186; background: #f2f5f8; }
.copy-btn:hover { color: #fff; background: var(--blue); }

textarea, .code-output {
    width: 100%;
    flex: 1;
    margin: 0;
    padding: 21px;
    border: 0;
    outline: 0;
    color: #26364a;
    background: transparent;
    font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    tab-size: 2;
}

textarea { resize: none; }
textarea::placeholder, .placeholder { color: #b1bbc7; }
.code-output { overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.json-tree { min-width: max-content; white-space: nowrap; }
.json-tree-line {
    min-height: 22px;
    padding-left: calc(var(--depth) * 18px);
    white-space: pre;
}
.json-tree-node > .json-tree-line { display: flex; align-items: center; gap: 3px; }
.json-tree-toggle {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    margin: 0 1px 0 -19px;
    border: 0;
    border-radius: 4px;
    color: #5c6c82;
    background: transparent;
    font: 11px/1 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.json-tree-toggle:hover { color: #fff; background: var(--blue); }
.json-tree-summary { display: none; color: #99a7b7; }
.json-tree-node.collapsed .json-tree-summary { display: inline; }
.json-tree-node.collapsed .json-tree-children, .json-tree-node.collapsed .json-tree-close { display: none; }
.json-tree-key { color: #1d4f91; }
.json-tree-string { color: #0f7a56; }
.json-tree-number { color: #9b4d00; }
.json-tree-boolean { color: #7342c8; }
.json-tree-null { color: #8b98a8; }
.json-tree-punctuation { color: #435268; }
.json-tree-comma { color: #9aa7b7; }
.message { min-height: 28px; padding: 10px 2px 0; font-size: 12px; }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }

.toast {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 30;
    min-width: 180px;
    max-width: min(360px, calc(100vw - 32px));
    padding: 12px 16px;
    border: 1px solid rgba(15, 31, 51, .08);
    border-radius: 10px;
    color: #fff;
    background: rgba(23, 33, 50, .94);
    box-shadow: 0 16px 34px rgba(15, 31, 51, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .18s ease, transform .18s ease;
    font-size: 13px;
    font-weight: 650;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background: rgba(15, 159, 110, .96); }
.toast.error { background: rgba(220, 75, 75, .96); }

.live-time { min-width: 190px; padding-left: 22px; border-left: 2px solid var(--blue); text-align: right; }
.live-time small, .live-time span { display: block; color: var(--muted); font-size: 10px; }
.live-time strong { display: block; margin: 2px 0; font: 700 27px/1.1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 1px; }

.time-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tool-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 12px 35px rgba(27, 43, 65, .04); }
.card-title { display: flex; align-items: center; gap: 13px; margin-bottom: 25px; }
.number { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 750; }
.card-title h2 { margin: 0 0 3px; font-size: 17px; }
.card-title p { margin: 0; color: var(--muted); font-size: 11px; }
.tool-card label { display: block; margin: 16px 0 7px; color: #5d6a7b; font-size: 11px; font-weight: 650; }
.tool-card input, .tool-card select { height: 44px; padding: 0 13px; border: 1px solid #dce3ea; border-radius: 8px; outline: 0; color: #26364a; background: #fff; }
.tool-card input:focus, .tool-card select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 107, 255, .08); }
.input-row { display: grid; grid-template-columns: 1fr 105px; gap: 8px; }
.full-select, .tool-card input[type="datetime-local"] { width: 100%; }
.full-btn { width: 100%; margin-top: 20px; }
.result-box { min-height: 69px; display: flex; flex-direction: column; justify-content: center; margin-top: 15px; padding: 12px 15px; border-radius: 9px; background: #f6f8fb; }
.result-box span, .dual-result span { color: var(--muted); font-size: 10px; }
.result-box strong { margin-top: 4px; font: 650 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dual-result { display: grid; grid-template-columns: 1fr 1.35fr; gap: 1px; margin-top: 15px; border-radius: 9px; overflow: hidden; background: var(--line); }
.dual-result div { min-width: 0; padding: 12px 14px; background: #f6f8fb; }
.dual-result span, .dual-result strong { display: block; }
.dual-result strong { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; font: 650 13px ui-monospace, SFMono-Regular, Menlo, monospace; }

.timezone-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.zone-item { padding: 19px 21px; border-right: 1px solid var(--line); }
.zone-item:last-child { border-right: 0; }
.zone-item span, .zone-item small { display: block; color: var(--muted); font-size: 10px; }
.zone-item strong { display: block; margin: 4px 0; font: 700 18px ui-monospace, SFMono-Regular, Menlo, monospace; }

.regex-builder, .lookup-bar, .ip-hero {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.regex-builder { padding: 16px; border-radius: var(--radius) var(--radius) 0 0; }
.regex-input-row { display: flex; align-items: center; gap: 10px; color: #93a0ae; font: 700 19px ui-monospace, SFMono-Regular, Menlo, monospace; }
.regex-input-row input { min-width: 0; height: 45px; padding: 0 13px; border: 1px solid #dce3ea; border-radius: 8px; outline: 0; color: var(--ink); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.regex-input-row input:focus, .lookup-bar input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23, 107, 255, .08); }
#regexPattern { flex: 1; }
#regexFlags { width: 72px; text-align: center; }
.flag-help { display: flex; align-items: center; gap: 16px; padding: 11px 3px 0; color: var(--muted); font-size: 10px; }
.flag-help b { color: var(--blue); font: 700 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.flag-help .text-btn { margin-left: auto; }
.regex-grid { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 480px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; background: #fff; }
.regex-editor { min-height: 480px; }
.regex-results { min-width: 0; border-left: 1px solid var(--line); background: #fbfcfe; }
.highlight-output { min-height: 230px; max-height: 300px; padding: 20px; overflow: auto; border-bottom: 1px solid var(--line); color: #344359; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, monospace; }
.highlight-output mark { padding: 1px 2px; border-radius: 3px; color: #123666; background: #bcd5ff; box-shadow: inset 0 -1px 0 #6ea4ff; }
.match-list { max-height: 240px; overflow: auto; }
.match-row { display: grid; grid-template-columns: 46px minmax(90px, 1fr) 90px; gap: 7px 12px; padding: 11px 17px; border-bottom: 1px solid #edf0f4; align-items: center; font-size: 11px; }
.match-row:last-child { border-bottom: 0; }
.match-row span { color: var(--muted); }
.match-row code { overflow: hidden; color: #244a7c; text-overflow: ellipsis; white-space: nowrap; }
.match-row .match-groups { grid-column: 2 / -1; overflow-wrap: anywhere; }

.ip-hero { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px; background: linear-gradient(120deg, #fff, #f4f8ff); }
.ip-hero small, .ip-hero span { display: block; color: var(--muted); font-size: 10px; }
.ip-hero strong { display: block; margin: 5px 0; font: 750 clamp(22px, 3vw, 31px) ui-monospace, SFMono-Regular, Menlo, monospace; }
.lookup-bar { display: flex; gap: 10px; margin-top: 18px; padding: 12px; }
.lookup-bar input { flex: 1; min-width: 0; height: 45px; padding: 0 14px; border: 1px solid #dce3ea; border-radius: 8px; outline: 0; color: var(--ink); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.quick-examples { display: flex; align-items: center; gap: 3px; padding: 7px 4px 0; color: var(--muted); font-size: 10px; }
.quick-examples .text-btn { font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ip-result-grid { min-height: 280px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.ip-data-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ip-data-card small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.ip-data-card strong { display: block; overflow-wrap: anywhere; font-size: 15px; }
.ip-data-card.wide { grid-column: span 2; }
.empty-state { grid-column: 1 / -1; display: grid; place-items: center; align-content: center; min-height: 275px; border: 1px dashed #d8e0e9; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state .empty-icon { width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 13px; color: var(--blue); background: var(--blue-soft); font: 750 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.empty-state strong { color: var(--ink); font-size: 15px; }
.empty-state p { margin: 6px 0 0; font-size: 11px; }

.url-editor-grid { min-height: 400px; }
.parameter-panel { margin-top: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.parameter-panel:empty { display: none; }
.parameter-heading { padding: 14px 17px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.parameter-row { display: grid; grid-template-columns: minmax(100px, .7fr) minmax(160px, 1.6fr); gap: 15px; padding: 11px 17px; border-bottom: 1px solid #edf0f4; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
.parameter-row:last-child { border-bottom: 0; }
.parameter-row b, .parameter-row span { overflow-wrap: anywhere; }
.parameter-row b { color: #24508a; }
.parameter-row span { color: #566579; }

footer { padding: 24px 0 30px; color: #a2acb8; text-align: center; font-size: 9px; letter-spacing: 1.5px; }

@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: transform .25s ease; }
    .sidebar.open { transform: translateX(0); box-shadow: 16px 0 45px rgba(4, 18, 32, .25); }
    .main-content { margin-left: 0; }
    .mobile-menu { display: block; }
    .editor-grid, .time-grid, .regex-grid, .field-filter-grid, .compare-input-grid,
    .compare-result-grid, .compare-result-grid.compare-cols-3, .compare-result-grid.compare-cols-4 { grid-template-columns: 1fr; }
    .result-panel { min-height: 360px; border-top: 1px solid var(--line); border-left: 0; }
    .selected-field-panel { border-top: 1px solid var(--line); border-left: 0; }
    .regex-results { border-top: 1px solid var(--line); border-left: 0; }
    .timezone-strip { grid-template-columns: 1fr 1fr; }
    .ip-result-grid { grid-template-columns: 1fr 1fr; }
    .zone-item:nth-child(2) { border-right: 0; }
    .zone-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 580px) {
    .tool-page { padding: 31px 16px 20px; }
    .topbar { height: 62px; padding: 0 14px; }
    .toast { top: 14px; right: 14px; left: 14px; max-width: none; text-align: center; }
    .page-heading { align-items: flex-start; }
    .privacy-badge, .live-time { display: none; }
    .toolbar { align-items: stretch; flex-wrap: wrap; }
    .toolbar-spacer { display: none; }
    .primary-btn, .soft-btn { flex: 1; padding-inline: 10px; font-size: 12px; }
    .field-filter-actions, .compare-actions { align-items: stretch; flex-wrap: wrap; }
    .field-filter-actions small, .compare-actions small { flex-basis: 100%; margin-left: 0; }
    .jsonpath-bar { grid-template-columns: 1fr; }
    .jsonpath-input-row { flex-direction: column; }
    .jsonpath-examples { justify-content: flex-start; }
    .editor-grid { min-height: 760px; }
    .editor-panel { min-height: 360px; }
    .tool-card { padding: 20px; }
    .regex-input-row { flex-wrap: wrap; }
    #regexPattern { flex-basis: calc(100% - 32px); }
    .regex-input-row .primary-btn { flex-basis: 100%; }
    .flag-help { flex-wrap: wrap; gap: 8px 13px; }
    .flag-help .text-btn { margin-left: 0; }
    .ip-hero { align-items: flex-start; gap: 14px; }
    .lookup-bar { align-items: stretch; flex-direction: column; }
    .ip-result-grid { grid-template-columns: 1fr; }
    .ip-data-card.wide { grid-column: auto; }
    .parameter-row { grid-template-columns: 1fr; gap: 4px; }
    .timezone-strip { grid-template-columns: 1fr; }
    .zone-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .zone-item:last-child { border-bottom: 0; }
}
