:root {
    --bg: #eef1f6;
    --bg-grad-a: #eef2ff;
    --bg-grad-b: #f3f6fb;
    --fg: #1b2130;
    --muted: #6b7280;
    --line: #d8dde6;
    --card: #ffffff;
    --accent: #4f46e5;
    --accent-2: #6366f1;
    --accent-soft: #eef0ff;
    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --ok: #15a34a;
    --ok-soft: #dcfce7;
    --warn: #b45309;
    --shadow: 0 1px 2px rgba(20, 24, 40, .05), 0 8px 24px rgba(20, 24, 40, .06);
    --radius: 10px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font: 15px/1.5 -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--fg);
    background:
        radial-gradient(1100px 520px at 100% -10%, rgba(99, 102, 241, .22), transparent 60%),
        radial-gradient(900px 500px at -10% 8%, rgba(79, 70, 229, .18), transparent 60%),
        linear-gradient(120deg, #0b0f18, #131b2e, #1b2440, #101728, #0b0f18);
    background-size: cover, cover, 300% 300%;
    background-attachment: fixed;
    animation: bgshift 32s ease-in-out infinite alternate;
    min-height: 100vh;
}

@keyframes bgshift {
    0%   { background-position: center, center, 0% 50%; }
    100% { background-position: center, center, 100% 50%; }
}

@media (prefers-reduced-motion: reduce) {
    body { animation: none; }
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-2); text-decoration: underline; }

/* Header */
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 22px;
    height: 56px;
    background: linear-gradient(120deg, #1b2130, #2a3350);
    color: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 10;
}
.topbar .brand { color: #fff; font-weight: 700; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 10px; }
.topbar .brand:hover { text-decoration: none; }
.brand__logo { display: block; filter: drop-shadow(0 2px 5px rgba(79, 70, 229, .5)); }
.brand__name { line-height: 1; }
.topbar nav { display: flex; gap: 18px; flex: 1; align-items: center; }
.topbar nav > a { color: #c3c9d6; transition: color .15s ease; display: inline-flex; align-items: center; gap: 6px; }
.topbar nav > a:hover { color: #fff; text-decoration: none; }
.topbar nav .right { margin-left: auto; }

/* Layout */
.container { max-width: 900px; margin: 28px auto; padding: 0 20px; animation: rise .3s ease both; }
.container.wide { max-width: 1240px; }

.btn.small { padding: 5px 12px; font-size: 13px; }

/* Mode tabs (reused by the logs viewer) */
.tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.tabs .tab {
    border: 1px solid transparent;
    border-bottom: none;
    background: none;
    padding: 8px 18px;
    font: inherit;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: color .15s ease, background .15s ease;
}
.tabs .tab:hover { color: var(--accent); }
.tabs .tab.is-active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--line);
    margin-bottom: -1px;
    border-bottom: 1px solid var(--accent-soft);
}
.is-hidden { display: none !important; }

.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.page-head h1 { font-size: 23px; margin: 0; color: #eef1f8; }
.page-head__count {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
    vertical-align: middle;
}
.page-head__count::before { content: '('; }
.page-head__count::after { content: ')'; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    animation: rise .3s ease both;
}

.muted { color: var(--muted); }
.container > .muted { color: #aeb7ca; }
.right { text-align: right; }

/* Buttons */
.btn, button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 17px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #fff;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow .15s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
    box-shadow: 0 1px 2px rgba(79, 70, 229, .25);
}
.btn:hover { background: linear-gradient(120deg, #4338ca, #4f46e5); box-shadow: 0 2px 10px rgba(79, 70, 229, .35); color: #fff; text-decoration: none; }
.btn:active { background: linear-gradient(120deg, #3730a3, #4338ca); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .2); }
.btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.btn.ghost {
    background: #fff;
    color: var(--fg);
    border-color: var(--line);
    box-shadow: none;
}
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent-2); color: var(--accent); box-shadow: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
button.link {
    border: none;
    background: none;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
    padding: 0;
    transition: color .15s ease;
}
button.link:hover { color: var(--accent-2); text-decoration: underline; }
button.link.danger { color: var(--danger); }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 5px; font-weight: 500; cursor: pointer; }
.field input[type=text],
.field input[type=password],
.field select,
.field textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[type=text]:focus,
.field input[type=password]:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.field textarea { resize: vertical; }
.field .mono, textarea.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; }
.field small { display: block; margin-top: 5px; font-size: 12px; }
.field small.hint { color: var(--muted); }
.field small.err { color: var(--danger); }
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus { box-shadow: 0 0 0 3px rgba(220, 38, 38, .15); }

/* Animated switch */
.field.toggle { margin-bottom: 14px; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; font-weight: 400; cursor: pointer; user-select: none; line-height: 1.35; }
.switch input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 20px;
    background: #cbd2de;
    transition: background .2s ease;
    flex: none;
}
.switch .knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .2s ease;
}
.switch input:checked + .track { background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.switch input:checked + .track .knob { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: 0 0 0 3px rgba(99, 102, 241, .25); }
.switch-label { color: var(--fg); flex: 1 1 auto; }

/* Flash */
.flash { padding: 11px 15px; border-radius: 8px; margin-bottom: 16px; border: 1px solid transparent; animation: fade .25s ease both; }
.flash.success { background: var(--ok-soft); color: var(--ok); border-color: #bbf7d0; }
.flash.error { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }

/* CodeMirror */
.CodeMirror { border: 1px solid var(--line); border-radius: 8px; height: auto; box-shadow: inset 0 1px 2px rgba(0,0,0,.03); }
.CodeMirror-focused { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(99, 102, 241, .15); }

/* Auth */
body.auth { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.card.login { width: 330px; margin: 0; }
.card.login h1 { margin: 0 0 16px; font-size: 20px; text-align: center; }
.card.login .btn { width: 100%; }

/* Animations */
@keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}

/* SVG icons */
.icon { display: inline-block; vertical-align: -3px; flex: 0 0 auto; }
.btn .icon { margin-right: 6px; }
.btn.small .icon { margin-right: 5px; }
.btn.small .icon:last-child { margin-right: 0; }
.btn > span:empty { display: none; }

/* Icon-only buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: inherit;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn.small { width: 28px; height: 28px; }
.icon-btn .icon { margin: 0; }

/* Header tool buttons */
.topbar__tools { display: flex; gap: 4px; align-items: center; }
.topbar__tools form { display: inline; margin: 0; }
.topbar__tools .icon-btn {
    color: #c3c9d6;
    border-color: rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .06);
}
.topbar__tools .icon-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); }

/* Host cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 18px;
    animation: rise .3s ease both;
}

/* Hosts list toolbar: live search + sort */
.hosts-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.hosts-search { flex: 0 1 380px; max-width: 460px; background: var(--card); border-radius: 9px; box-shadow: var(--shadow); }
.hosts-search .input-addon__icon { color: var(--muted); }
.hosts-search input {
    border: 1px solid var(--line) !important;
    border-left: none !important;
    border-radius: 0 9px 9px 0 !important;
    padding: 9px 12px;
    font: inherit;
    width: 100%;
    background: var(--card);
}
.hosts-search .input-addon__icon { border: 1px solid var(--line); border-right: none; background: var(--card); }
.hosts-search input:focus { outline: none; border-color: var(--accent-2) !important; box-shadow: 0 0 0 3px rgba(99, 102, 241, .16); }
.hosts-sort { display: flex; align-items: center; gap: 8px; }
.hosts-sort select {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card);
    font: inherit;
    cursor: pointer;
}
#host-sort-dir[data-dir="desc"] .icon { transform: scaleY(-1); }
.hosts-empty { text-align: center; padding: 30px 0; font-size: 15px; }

/* Live-search highlight */
.host-card__title-text mark {
    background: rgba(99, 102, 241, .22);
    color: inherit;
    border-radius: 3px;
    padding: 0 1px;
}

/* Card enter animation on filter/sort update */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(6px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.card-grid.is-updating .host-card { animation: cardIn .26s ease both; }

.host-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .12s ease, box-shadow .15s ease;
}
.host-card > *:not(.host-card__bg) { position: relative; z-index: 1; }
.host-card__bg {
    position: absolute;
    inset: -25%;
    z-index: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(30px) saturate(1.5);
    opacity: .32;
    transform: scale(1);
    transition: transform .4s ease, opacity .3s ease;
    pointer-events: none;
}
.host-card:hover .host-card__bg { transform: scale(1.18); opacity: .5; }
.host-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20, 24, 40, .1); }
.host-card.is-off { opacity: .72; }
.host-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}
.host-card__mode {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--muted);
    background: #f2f4f9;
    padding: 2px 8px;
    border-radius: 20px;
}
.host-card__mode--proxy { color: var(--accent); background: var(--accent-soft); }
.host-card__mode--local { color: var(--ok); background: var(--ok-soft); }
.host-card__toggle { margin: 0; }
.host-card__toggle .switch { display: inline-flex; }
.host-card__media { margin: 4px 0 12px; }
.host-favicon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    padding: 9px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
    color: var(--muted);
    cursor: pointer;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: border-color .15s ease, color .15s ease, box-shadow .15s ease, background .15s ease, transform .12s ease;
}
.host-favicon:hover { border-color: var(--accent-2); color: var(--accent); box-shadow: 0 6px 18px rgba(79, 70, 229, .18); }
.host-favicon:active { transform: translateY(1px); }
.host-favicon:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.host-favicon__img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; display: block; }
.host-favicon__img[hidden] { display: none; }
.host-favicon__ph { display: inline-flex; }
.host-favicon__ph[hidden] { display: none; }
.host-favicon.is-loading { opacity: .6; cursor: progress; }
.host-favicon.is-error {
    border-color: var(--danger);
    color: var(--danger);
    background: var(--danger-soft);
}
.host-card__title { margin: 0 0 4px; font-size: 16px; display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 10px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.host-card__title-text { word-break: break-all; }
.host-card__open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    color: var(--muted);
    transition: color .15s ease, background .15s ease;
}
.host-card__open:hover { color: var(--accent); background: var(--accent-soft); text-decoration: none; }
.host-card__aliases { font-size: 12px; margin: 0 0 8px; word-break: break-all; padding: 4px 10px; border-radius: 8px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.host-card__meta { margin: 4px 0 14px; display: flex; flex-direction: column; gap: 6px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.host-card__meta > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.host-card__meta dt { color: var(--muted); flex: none; }
.host-card__meta dd { margin: 0; text-align: right; word-break: break-all; }
.host-card__meta dd.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; }

.host-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-top: auto;
    padding-top: 12px;
    width: 100%;
}
.host-card__actions form { display: inline; margin: 0; }
.host-card__action { flex: 1 1 0; min-width: 92px; justify-content: center; }
.host-card__actions form { flex: 1 1 0; min-width: 92px; display: flex; }
.host-card__actions form .host-card__action { width: 100%; }
.host-card__actions .btn.danger { color: var(--danger); }
.host-card__actions .btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }

/* Logs viewer */
.logs__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.logs__tabs { margin-bottom: 0; border-bottom: none; }
.logs__controls { display: flex; align-items: center; gap: 12px; }
.logs__lines { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.logs__lines select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.logs__output {
    margin: 0;
    padding: 14px 16px;
    background: #0f1420;
    color: #d7dce8;
    border-radius: var(--radius);
    max-height: 70vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Input with leading icon addon + path autocomplete */
.input-addon { position: relative; display: flex; align-items: stretch; }
.input-addon__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    color: var(--muted);
    background: #f5f6fb;
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 8px 0 0 8px;
    flex: 0 0 auto;
}
.input-addon > input { border-radius: 0 8px 8px 0 !important; flex: 1 1 auto; min-width: 0; }

/* Custom edge-aware tooltips */
.tooltip {
    position: fixed;
    z-index: 1000;
    max-width: 260px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #11151f;
    color: #eef1f8;
    font-size: 12.5px;
    line-height: 1.35;
    box-shadow: 0 8px 26px rgba(0, 0, 0, .32);
    pointer-events: none;
    opacity: 0;
    transform: translateY(3px);
    transition: opacity .12s ease, transform .12s ease;
}
.tooltip.is-visible { opacity: 1; transform: none; }
.tooltip::after {
    content: '';
    position: absolute;
    left: var(--tip-arrow, 50%);
    width: 9px;
    height: 9px;
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
}
.tooltip[data-pos="above"]::after { bottom: -4px; }
.tooltip[data-pos="below"]::after { top: -4px; }

@media (prefers-reduced-motion: reduce) {
    .card-grid.is-updating .host-card { animation: none; }
    .tooltip { transition: none; }
}

/* Unified config editor (full-width single column) */
.editor-page .container { max-width: 1100px; }
.editor { display: flex; flex-direction: column; gap: 4px; }
.editor .field:last-of-type { margin-bottom: 12px; }
.editor .CodeMirror { height: calc(100vh - 340px); min-height: 320px; }
.editor__actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; }
.editor input[readonly] { background: #f5f6fb; color: var(--muted); cursor: default; }

/* Label row with the "apply template" dropdown */
.field__labelrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 5px; }
.field__labelrow > label { margin-bottom: 0; }

/* Dropdown menu */
.menu { position: relative; }
.menu__list {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 40;
    width: 280px;
    padding: 6px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(20, 24, 40, .18);
    animation: fade .12s ease both;
}
.menu__item {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    font: inherit;
    color: var(--fg);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.menu__item:hover { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent); }
.menu__item .icon { flex: 0 0 auto; color: var(--accent); }
.menu__item span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.menu__item strong { font-size: 13.5px; font-weight: 600; }
.menu__item em { font-style: normal; font-size: 11.5px; color: var(--muted); }
.menu__item:hover em { color: var(--accent); }

/* Response tester */
.tester__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.tester__head h2 { margin: 0; font-size: 18px; }
.tester__controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.tester__field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.tester__field > span { font-weight: 500; }
.tester__field select,
.tester__field input {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font: inherit;
    color: var(--fg);
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.tester__field select:focus,
.tester__field input:focus {
    outline: none;
    border-color: var(--accent-2);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, .18);
}
.tester__field--port input { width: 96px; }
.tester__note { margin: -6px 0 16px; font-size: 12.5px; }
.tester__note code { background: rgba(99, 102, 241, .1); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.tester__status { font-size: 13px; font-weight: 500; color: var(--muted); }
.tester__status[data-state="pending"] { color: var(--accent); }
.tester__status[data-state="ok"] { color: var(--ok); }
.tester__status[data-state="warn"] { color: var(--warn); }
.tester__status[data-state="err"] { color: var(--danger); }
.tester__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tester__block { min-width: 0; }
.tester__block--wide { grid-column: 1 / -1; }
.tester__block h3 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.tester__block h3 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.tester__pre {
    margin: 0;
    padding: 12px 14px;
    background: #0f1420;
    color: #d7dce8;
    border-radius: 10px;
    max-height: 42vh;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}
.tester__pre--code { font-size: 20px; font-weight: 600; padding: 16px; }
.tester__pre--code[data-state="ok"] { color: #7ee2a8; }
.tester__pre--code[data-state="warn"] { color: #f0c674; }
.tester__pre--code[data-state="err"] { color: #f6a6a6; }

@media (max-width: 860px) {
    .editor .CodeMirror { height: 60vh; }
    .tester__grid { grid-template-columns: 1fr; }
}

