/* ==============================================================
   Deep Link Tester — shared stylesheet
   Used by index.html, about.html, contact.html, privacy.html
   ============================================================== */

:root {
    --bg:           #0a0a0d;
    --bg-elev:      #101015;
    --surface:      #1a1a23;
    --surface-2:    #24242e;
    --border:       #2e2e3a;
    --border-hi:    #444454;
    --text:         #e7e7ec;
    --text-muted:   #9c9cab;
    --text-faint:   #7c7c8c;
    --accent:       #d4f562;
    --accent-dim:   #a4c33d;
    --accent-soft:  rgba(212, 245, 98, 0.08);
    --accent-glow:  rgba(212, 245, 98, 0.18);
    --danger:       #ff7676;
    --danger-bg:    rgba(255, 118, 118, 0.08);
    --info:         #7dd3fc;

    --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
    --font-body:    'DM Sans', system-ui, sans-serif;
    --font-mono:    'JetBrains Mono', ui-monospace, monospace;

    --radius-sm: 6px;
    --radius:    10px;
    --radius-lg: 16px;

    --shadow:       0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow:  0 0 0 1px var(--accent-glow), 0 8px 32px rgba(212, 245, 98, 0.08);
}

/* --- reset & base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(212, 245, 98, 0.06), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 30%, rgba(125, 211, 252, 0.03), transparent 70%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
body::before {
    content: "";
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }
code, pre { font-family: var(--font-mono); }
::selection { background: var(--accent); color: var(--bg); }

.sr-only {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 24px 24px 80px;
    position: relative;
    z-index: 1;
}

/* --- site header / nav ---------------------------------------- */
.site-header {
    position: relative;
    z-index: 2;
    border-bottom: 1px solid var(--border);
    background: rgba(10, 10, 13, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.site-header__inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.site-logo:hover { text-decoration: none; color: var(--text); }
.site-logo__dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}
.site-nav {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.site-nav a {
    padding: 8px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.site-nav a.is-current { color: var(--accent); background: var(--accent-soft); }

/* --- hero (home page) ----------------------------------------- */
.hero { padding: 32px 0 56px; }
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}
.hero__eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}
.hero__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 20px;
    color: var(--text);
}
.hero__title .accent { color: var(--accent); }
.hero__sub {
    font-size: clamp(16px, 1.6vw, 19px);
    color: var(--text-muted);
    max-width: 620px;
    margin: 0;
    line-height: 1.5;
}
.hero__sub code {
    font-size: 0.9em;
    background: var(--surface);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* --- page header (subpages) ----------------------------------- */
.page-header { padding: 48px 0 40px; max-width: 760px; }
.page-header__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    margin-bottom: 18px;
}
.page-header__eyebrow::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent);
}
.page-header__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
}
.page-header__sub {
    font-size: 18px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* --- article body --------------------------------------------- */
.article {
    max-width: 720px;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 16px;
}
.article h2 {
    font-family: var(--font-display);
    color: var(--text);
    font-weight: 600;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 48px 0 16px;
}
.article h3 {
    font-family: var(--font-body);
    color: var(--text);
    font-weight: 600;
    font-size: 17px;
    margin: 32px 0 10px;
}
.article p { margin: 0 0 16px; }
.article ul, .article ol { padding-left: 22px; margin: 0 0 18px; }
.article li { margin-bottom: 8px; }
.article strong { color: var(--text); font-weight: 600; }
.article code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.9em;
    border: 1px solid var(--border);
}
.article hr {
    border: 0;
    height: 1px;
    background: var(--border);
    margin: 36px 0;
}
.article .lede {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.4;
    color: var(--text);
    font-weight: 500;
    margin-bottom: 28px;
}
.article .meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* --- panel (used on home tool page) --------------------------- */
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}
.panel__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.panel__label .badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    text-transform: uppercase;
    transition: all 0.2s;
    opacity: 0;
    transform: translateY(-2px);
}
.panel__label .badge.is-visible { opacity: 1; transform: translateY(0); }
.panel__label .badge.type-universal { background: rgba(125, 211, 252, 0.08); color: var(--info); border-color: rgba(125, 211, 252, 0.25); }
.panel__label .badge.type-invalid { background: var(--danger-bg); color: var(--danger); border-color: rgba(255, 118, 118, 0.25); }

/* --- workspace (home page split) ------------------------------ */
.workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 880px) {
    .workspace { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; }
}

/* --- input & buttons ------------------------------------------ */
.input-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 560px) { .input-row { flex-direction: row; } }
.input-wrap { position: relative; flex: 1; min-width: 0; }
.input, .field {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--text);
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
}
.input { padding: 18px 44px 18px 18px; }
.input::placeholder, .field::placeholder { color: var(--text-faint); }
.input:focus, .field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field--body { font-family: var(--font-body); }
textarea.field { min-height: 140px; resize: vertical; line-height: 1.5; }

.input-clear {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    width: 28px; height: 28px;
    display: none;
    align-items: center; justify-content: center;
    border-radius: 50%;
    color: var(--text-faint);
    transition: background 0.15s, color 0.15s;
}
.input-clear:hover { background: var(--surface-2); color: var(--text); }
.input-clear.is-visible { display: flex; }
.input-clear svg { width: 14px; height: 14px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 26px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius);
    transition: transform 0.1s, background 0.15s, color 0.15s, border-color 0.15s;
    white-space: nowrap;
}
.btn--primary { background: var(--accent); color: var(--bg); }
.btn--primary:hover { background: #e2ff85; text-decoration: none; }
.btn--primary:active { transform: translateY(1px); }
.btn--primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--border-hi); text-decoration: none; }
.btn--icon {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    border-radius: var(--radius-sm);
}
.btn--icon:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-hi); text-decoration: none; }
.btn--icon svg { width: 14px; height: 14px; }

.error-box {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--danger-bg);
    border: 1px solid rgba(255, 118, 118, 0.25);
    color: var(--danger);
    border-radius: var(--radius);
    font-size: 14px;
    display: none;
}
.error-box.is-visible { display: block; }

/* --- chips (quick examples) ----------------------------------- */
.examples {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.examples__summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color 0.15s;
}
.examples__summary:hover { color: var(--text-muted); }
.examples__summary::-webkit-details-marker { display: none; }
.examples__summary::after {
    content: "+";
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 400;
    color: var(--text-faint);
    transition: color 0.15s;
}
details.examples[open] > .examples__summary { margin-bottom: 12px; }
details.examples[open] > .examples__summary::after { content: "−"; color: var(--accent); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 7px 12px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.15s;
}
.chip:hover { background: var(--surface-2); color: var(--accent); border-color: var(--accent-glow); }

/* Reuse-base shortcut — the base of the last generated link, surfaced
   below the examples so the next test link can start from it. Its own
   dashed-separated section, mirroring the examples block, so it reads as
   an intentional sibling rather than a stray control. Hidden until the
   first successful generate. */
.reuse-base {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.reuse-base.is-visible { display: flex; }
.reuse-base__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.reuse-base__chip {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, transform 0.1s;
}
.reuse-base__chip:hover {
    background: var(--surface-2);
    border-color: var(--accent);
}
.reuse-base__chip:active { transform: translateY(1px); }
.reuse-base__chip svg {
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}
.reuse-base__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- output / qr / inspector ---------------------------------- */
.output-panel { display: flex; flex-direction: column; min-height: 100%; }

/* One-shot border highlight when a result is generated. The class is
   added by JS and re-armed on every Generate press via a reflow. */
@keyframes output-panel-flash {
    0% {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px var(--accent), 0 0 26px -4px var(--accent-glow);
    }
    60% {
        border-color: var(--accent);
        box-shadow: 0 0 0 1px var(--accent), 0 0 22px -6px var(--accent-glow);
    }
    100% {
        border-color: var(--border);
        box-shadow: 0 0 0 0 transparent, 0 0 0 0 transparent;
    }
}
.output-panel.is-generated {
    animation: output-panel-flash 1100ms cubic-bezier(0.22, 0.61, 0.36, 1);
}
@media (prefers-reduced-motion: reduce) {
    .output-panel.is-generated { animation: none; }
}
.qr-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    aspect-ratio: 1;
    max-width: 280px;
    margin: 0 auto 18px;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.qr-stage.is-empty .qr-empty { display: flex; }
.qr-stage:not(.is-empty) .qr-empty { display: none; }
.qr-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-faint);
    text-align: center;
    padding: 20px;
}
.qr-empty svg { width: 36px; height: 36px; opacity: 0.5; }
.qr-empty span {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
}
.qr-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.qr-container canvas { display: block; max-width: 100%; height: auto; border-radius: 4px; }
.qr-container img { display: none; }

.qr-hint {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 10px 12px;
    margin-bottom: 16px;
    background: rgba(245, 197, 24, 0.06);
    border: 1px solid rgba(245, 197, 24, 0.22);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.5;
}
.qr-hint[hidden] { display: none; }
.qr-hint svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: #f5c518;
    margin-top: 2px;
}
.qr-hint strong { color: var(--text); font-weight: 600; }
.qr-hint code {
    font-family: var(--font-mono);
    font-size: 0.92em;
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border);
}

/* Device hint — desktop-only "send this to your phone" callout, shown
   after the first generate. Desktop only: the .is-visible rule is gated
   behind a min-width media query, so it never shows on mobile-width
   viewports even though JS may have armed it. JS additionally skips
   touch devices. */
.device-hint {
    display: none;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    margin-bottom: 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
@media (min-width: 880px) {
    .device-hint.is-visible { display: flex; }
}
.device-hint__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
}
.device-hint__icon svg { width: 16px; height: 16px; }
.device-hint__text {
    flex: 1;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
}
.device-hint__text strong { color: var(--text); font-weight: 600; }
.device-hint__dismiss {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: none;
    color: var(--text-faint);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.device-hint__dismiss:hover {
    background: var(--surface-2);
    color: var(--text);
}
.device-hint__dismiss svg { width: 14px; height: 14px; }

.link-display {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px;
    min-height: 64px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.link-display.is-empty { color: var(--text-faint); font-style: italic; font-size: 14px; }
.link-display a {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent);
    word-break: break-all;
    line-height: 1.4;
}
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.actions-row .btn--icon { flex: 1; min-width: 0; }

.inspector {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
    display: none;
}
.inspector.is-visible { display: block; }
.inspector__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 10px;
}
.inspector__rows { display: grid; gap: 6px; }
.inspector__row {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 12px;
    align-items: baseline;
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 6px 0;
}
.inspector__row .key { color: var(--text-faint); }
.inspector__row .val { color: var(--text); word-break: break-all; }
.inspector__row .val.empty { color: var(--text-faint); font-style: italic; }

/* --- QR download button --------------------------------------- */
.qr-download {
    display: none;
    align-items: center;
    gap: 6px;
    align-self: center;
    margin-bottom: 14px;
    padding: 6px 13px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.qr-download.is-visible { display: inline-flex; }
.qr-download:hover { color: var(--accent); border-color: var(--accent-glow); }

/* --- deep-link linter ----------------------------------------- */
.linter { display: grid; gap: 6px; margin-bottom: 14px; }
.linter:empty { display: none; }
.linter__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 11px;
    background: rgba(245, 197, 24, 0.06);
    border: 1px solid rgba(245, 197, 24, 0.22);
    border-radius: var(--radius-sm);
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
}
.linter__item svg { flex-shrink: 0; color: #f5c518; margin-top: 1px; }

/* --- editable query parameters (inspector) -------------------- */
.param-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}
.param-section__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.param-add {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: 999px;
    padding: 4px 11px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.param-add:hover { background: var(--surface-2); border-color: var(--accent); }
.param-list { display: grid; gap: 6px; }
.param-list:empty { display: none; }
.param-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) auto;
    gap: 6px;
    align-items: center;
}
.param-row__key,
.param-row__val {
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    transition: border-color 0.15s;
}
.param-row__key::placeholder,
.param-row__val::placeholder { color: var(--text-faint); }
.param-row__key:focus,
.param-row__val:focus { border-color: var(--accent); }
.param-row__del {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    color: var(--text-faint);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.param-row__del:hover {
    color: var(--danger);
    border-color: rgba(255, 118, 118, 0.35);
    background: var(--danger-bg);
}

/* --- Android intent:// URL ------------------------------------ */
.intent-url { display: none; margin-top: 18px; }
.intent-url.is-visible { display: block; }
.intent-url__label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 8px;
}
.intent-url__label code {
    font-size: 0.95em;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}
.intent-url__box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.intent-url__box code {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    word-break: break-all;
    line-height: 1.5;
}
.intent-url__copy {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--text-faint);
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.intent-url__copy:hover { color: var(--accent); border-color: var(--accent-glow); }
.intent-url__note {
    margin: 8px 0 0;
    font-size: 11px;
    line-height: 1.55;
    color: var(--text-faint);
}
.intent-url__note code {
    font-family: var(--font-mono);
    font-size: 0.95em;
    color: var(--text-muted);
}

/* --- platform behavior panel ---------------------------------- */
.platform-panel {
    display: none;
    margin-bottom: 32px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}
.platform-panel.is-visible { display: block; }
.platform-panel__title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 500;
}
.platform-panel__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .platform-panel__grid { grid-template-columns: 1fr 1fr; }
}
.platform-card {
    padding: 16px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.platform-card__os {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--accent);
    margin: 0 0 8px;
}
.platform-card__body {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* --- history -------------------------------------------------- */
.history-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.history-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s, background 0.15s;
    min-width: 0;
}
.history-item:hover { border-color: var(--border-hi); }
.history-item__link {
    flex: 1;
    min-width: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.history-item__link:hover { color: var(--accent); }
.history-item__del {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint);
    border-radius: 4px;
    flex-shrink: 0;
}
.history-item__del:hover { color: var(--danger); background: var(--danger-bg); }
.history-item__del svg { width: 14px; height: 14px; }
.history-empty {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
    padding: 22px 0;
}

/* --- ad slot -------------------------------------------------- */

/* --- info / faq cards ----------------------------------------- */
.info-grid { display: grid; gap: 16px; margin-bottom: 32px; }
.info-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
details.info-card[open] { border-color: var(--border-hi); }
details.info-card > summary {
    cursor: pointer;
    list-style: none;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--text);
    transition: color 0.15s;
}
details.info-card > summary:hover { color: var(--accent); }
details.info-card > summary::-webkit-details-marker { display: none; }
details.info-card > summary::after {
    content: "+";
    font-family: var(--font-mono);
    font-size: 22px;
    font-weight: 400;
    color: var(--text-faint);
    transition: transform 0.2s;
}
details.info-card[open] > summary::after { content: "−"; color: var(--accent); }
.info-card__body {
    padding: 0 26px 26px;
    color: var(--text-muted);
    line-height: 1.65;
}
.info-card__body p { margin: 0 0 12px; }
.info-card__body ol, .info-card__body ul { padding-left: 22px; margin: 0 0 12px; }
.info-card__body li { margin-bottom: 8px; }
.info-card__body strong { color: var(--text); font-weight: 600; }
.info-card__body code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 0.88em;
    border: 1px solid var(--border);
}

/* --- resources grid ------------------------------------------- */
.resources-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    margin-bottom: 40px;
}
@media (min-width: 720px) { .resources-grid { grid-template-columns: 1fr 1fr; } }
.res-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
}
.res-card h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    margin: 0 0 16px;
}
.res-card h3 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    margin: 18px 0 8px;
}
.res-card p { color: var(--text-muted); margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.res-card pre {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    overflow-x: auto;
    font-size: 12px;
    color: var(--text);
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}
.res-card .small-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-faint);
    text-transform: uppercase;
    display: block;
    margin-bottom: 6px;
}
.res-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.res-list li {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    transition: border-color 0.15s, background 0.15s;
}
.res-list li:hover { border-color: var(--accent-glow); }
.res-list a { color: var(--accent); font-weight: 500; font-size: 14px; }
.res-list p { font-size: 13px; margin: 4px 0 0; color: var(--text-faint); }

/* --- form (contact) ------------------------------------------- */
.form-grid { display: grid; gap: 16px; max-width: 560px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.form-msg {
    padding: 14px 16px;
    border-radius: var(--radius);
    font-size: 14px;
    line-height: 1.5;
    display: none;
}
.form-msg.is-visible { display: block; }
.form-msg.is-success {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
}
.form-msg.is-error {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(255, 118, 118, 0.25);
}
/* honeypot — hidden from real users, visible to bots */
.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px; height: 1px;
    overflow: hidden;
    opacity: 0;
}

/* --- footer --------------------------------------------------- */
footer.site-footer {
    text-align: center;
    color: var(--text-faint);
    font-size: 13px;
    padding: 40px 0 0;
    border-top: 1px solid var(--border);
}
footer.site-footer p { margin: 6px 0; max-width: 580px; margin-left: auto; margin-right: auto; }
footer.site-footer .privacy { font-size: 11px; line-height: 1.6; }
footer.site-footer .footer-nav {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 14px 0;
    flex-wrap: wrap;
}
footer.site-footer .footer-nav a {
    color: var(--text-muted);
    font-size: 13px;
}
footer.site-footer .footer-nav a:hover { color: var(--accent); }

/* --- toast ---------------------------------------------------- */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--accent);
    color: var(--bg);
    padding: 10px 18px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --- animations & motion -------------------------------------- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeUp 0.32s ease-out backwards; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =================================================================
   ADB command generator page
   ================================================================= */

.adb-form { display: flex; flex-direction: column; gap: 28px; }

.form-group {
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.form-group:first-child { padding-top: 0; border-top: 0; }
.form-group__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 14px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}
.form-group__opt {
    color: var(--text-faint);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 400;
}
.form-group__title code,
.form-group__opt code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 0.92em;
    border: 1px solid var(--border);
    text-transform: none;
    letter-spacing: 0;
}

.form-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 620px) {
    .form-cols { grid-template-columns: 1fr 1fr; }
}

.form-row label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 6px;
}
.form-row label code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.92em;
    border: 1px solid var(--border);
}

.checkbox-grid { display: grid; gap: 10px; }
.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.checkbox-row:hover { border-color: var(--border-hi); }
.checkbox-row input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    flex-shrink: 0;
    width: 16px; height: 16px;
    border: 1.5px solid var(--border-hi);
    border-radius: 4px;
    background: var(--bg);
    cursor: pointer;
    margin-top: 1px;
    transition: background 0.15s, border-color 0.15s;
    position: relative;
}
.checkbox-row input[type="checkbox"]:checked {
    background: var(--accent);
    border-color: var(--accent);
}
.checkbox-row input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4px; top: 1px;
    width: 4px; height: 8px;
    border: solid var(--bg);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.checkbox-row strong { color: var(--text); font-weight: 600; }
.checkbox-row code {
    background: var(--bg);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.92em;
    border: 1px solid var(--border);
}

.field-inline {
    width: 60px;
    padding: 4px 8px;
    margin-left: 6px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
}
.field-inline:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.extras-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1.4fr auto;
    gap: 8px;
    margin-bottom: 8px;
    align-items: center;
}
@media (max-width: 580px) {
    .extras-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .extras-row .extra-value { grid-column: 1 / 3; }
    .extras-row .extra-remove { grid-column: 1 / 3; justify-self: end; }
}

/* command output */
.cmd-toggle {
    display: inline-flex;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 2px;
    text-transform: none;
    letter-spacing: 0;
}
.seg-btn {
    padding: 4px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active { background: var(--surface-2); color: var(--accent); }

.command-output {
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-all;
    overflow-x: auto;
    min-height: 70px;
    outline: none;
}
.command-output:focus { border-color: var(--accent); }

/* recipes */
.recipe-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .recipe-grid { grid-template-columns: 1fr 1fr; }
}
.recipe-card {
    text-align: left;
    padding: 16px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.recipe-card:hover {
    border-color: var(--accent-glow);
    background: var(--surface-2);
}
.recipe-card:active { transform: translateY(1px); }
.recipe-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    line-height: 1.3;
}
.recipe-card__desc {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}
.recipe-card__cta {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.02em;
}

/* small "test in emulator" link on the home page */
.adb-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px 12px;
    width: 100%;
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    transition: border-color 0.15s, color 0.15s;
    text-decoration: none;
    justify-content: center;
}
.adb-cta:hover {
    border-color: var(--accent-glow);
    color: var(--accent);
    text-decoration: none;
}
.adb-cta svg { width: 13px; height: 13px; }

/* =================================================================
   ADB showcase (home-page feature section)
   ================================================================= */
.adb-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 32px;
    padding: 32px;
    background:
        radial-gradient(ellipse 60% 80% at 100% 0%, var(--accent-soft) 0%, transparent 60%),
        linear-gradient(135deg, var(--surface) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.adb-showcase::after {
    /* faint grid texture for the dev-tool feel */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(212, 245, 98, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(212, 245, 98, 0.025) 1px, transparent 1px);
    background-size: 32px 32px;
    background-position: -1px -1px;
    mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 0%, #000 0%, transparent 70%);
}
@media (min-width: 880px) {
    .adb-showcase { grid-template-columns: 1.4fr 1fr; align-items: center; gap: 40px; padding: 40px; }
}

/* terminal mockup */
.terminal {
    background: #050507;
    border: 1px solid #2a2a35;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 1px 0 0 rgba(255, 255, 255, 0.04) inset,
        0 16px 48px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(212, 245, 98, 0.05);
    position: relative;
    z-index: 1;
}
.terminal__bar {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    background: linear-gradient(to bottom, #1d1d27, #14141c);
    border-bottom: 1px solid #2a2a35;
}
.terminal__dots { display: flex; gap: 7px; flex-shrink: 0; }
.terminal__dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    display: block;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3) inset;
}
.terminal__dot--red    { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green  { background: #28c840; }
.terminal__title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
}
.terminal__spacer { width: 57px; flex-shrink: 0; }
.terminal__body {
    padding: 20px 18px 24px;
    background: #050507;
    min-height: 100px;
    overflow-x: auto;
}
.terminal__line {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: #e7e7ec;
    white-space: nowrap;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.terminal__prompt {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    font-size: 14px;
}
.terminal__cmd { color: #e7e7ec; }
.terminal__cursor {
    display: inline-block;
    color: var(--accent);
    animation: terminalBlink 1.05s steps(2) infinite;
    font-size: 14px;
    line-height: 1;
    transform: translateY(1px);
    margin-left: -4px;
}
@keyframes terminalBlink {
    0%, 49%   { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* CTA panel */
.adb-showcase__cta { position: relative; z-index: 1; }
.adb-showcase__eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    text-shadow: 0 0 16px rgba(212, 245, 98, 0.4);
}
.adb-showcase__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.0;
    letter-spacing: -0.025em;
    color: var(--text);
    margin: 0 0 14px;
}
.adb-showcase__desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
    max-width: 380px;
}
.adb-showcase__desc code {
    background: var(--bg);
    color: var(--accent);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--border);
    font-size: 0.92em;
}
.adb-showcase__btn { padding: 14px 22px; }
.adb-showcase__more {
    display: inline-block;
    margin-top: 14px;
    margin-left: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    text-decoration: none;
}
.adb-showcase__more:hover {
    color: var(--accent);
    text-decoration: none;
}

/* =================================================================
   Tools index page
   ================================================================= */
.tools-section__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 720px) {
    .tools-grid { grid-template-columns: 1fr 1fr; }
}

.tool-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.18s, transform 0.1s, background 0.18s;
    position: relative;
}
.tool-card[data-status="live"] {
    cursor: pointer;
}
.tool-card[data-status="live"]:hover {
    border-color: var(--accent-glow);
    transform: translateY(-2px);
    background: var(--surface-2);
    text-decoration: none;
}
.tool-card[data-status="soon"] {
    cursor: default;
    opacity: 0.78;
}
.tool-card[data-status="soon"]:hover {
    border-color: var(--border-hi);
}

.tool-card__icon {
    width: 44px; height: 44px;
    border: 1.5px solid var(--accent-glow);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elev);
    color: var(--accent);
    flex-shrink: 0;
}
.tool-card[data-status="soon"] .tool-card__icon {
    border-color: var(--border-hi);
    color: var(--text-faint);
}
.tool-card__icon svg { width: 22px; height: 22px; }

.tool-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 22px;
    color: var(--text);
    margin: 0;
    line-height: 1.2;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-card__badge {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    text-transform: uppercase;
    font-weight: 500;
    line-height: 1;
}
.tool-card__badge--soon {
    background: rgba(125, 211, 252, 0.08);
    color: var(--info);
    border-color: rgba(125, 211, 252, 0.25);
}

.tool-card__desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    flex: 1;
}
.tool-card__desc code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.9em;
}

.tool-card__cta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin-top: 4px;
}
.tool-card[data-status="soon"] .tool-card__cta {
    color: var(--text-faint);
}

/* "missing something" CTA at the bottom of tools page */
.suggest-cta {
    padding: 32px;
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}
.suggest-cta__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 24px;
    color: var(--text);
    margin: 0 0 10px;
}
.suggest-cta__desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.55;
    margin: 0 auto 22px;
    max-width: 540px;
}

/* =================================================================
   FCM Notification Preview page
   ================================================================= */
.fcm-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .fcm-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

.brand-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}
.brand-row__field label {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.04em;
    color: var(--text-faint);
    margin-bottom: 6px;
}

.payload-input {
    width: 100%;
    min-height: 360px;
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.payload-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.warn-box {
    margin-top: 12px;
    padding: 10px 14px;
    background: rgba(245, 197, 24, 0.06);
    border: 1px solid rgba(245, 197, 24, 0.22);
    color: #f5c518;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
    display: none;
}
.warn-box.is-visible { display: block; }

/* Preview panel */
.preview-panel { position: sticky; top: 16px; }
@media (max-width: 979px) { .preview-panel { position: static; } }

.view-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow-x: auto;
}
.view-tab {
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 999px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}
.view-tab:hover { color: var(--text); }
.view-tab.is-active { background: var(--surface-2); color: var(--accent); }

.device-stage {
    display: flex;
    justify-content: center;
    padding: 16px 0;
}
.device { display: flex; justify-content: center; }
.device[hidden] { display: none; }

/* Phone frame */
.phone {
    width: 280px;
    height: 588px;
    background: #0a0a0d;
    border: 2px solid #2a2a35;
    border-radius: 38px;
    padding: 8px;
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    position: relative;
}
.phone__screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    color: #fff;
    font-family: var(--font-body);
    font-size: 13px;
    -webkit-font-smoothing: antialiased;
}
.phone__home-indicator {
    position: absolute;
    bottom: 6px; left: 50%;
    transform: translateX(-50%);
    width: 100px; height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
}

/* Lockscreen */
.lock-screen {
    background:
        radial-gradient(circle at 30% 20%, rgba(63, 81, 181, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(212, 245, 98, 0.15) 0%, transparent 50%),
        linear-gradient(180deg, #0a0a14 0%, #1a1a2e 100%);
    padding: 0;
}
.lock-clock {
    text-align: center;
    margin-top: 56px;
    color: #fff;
}
.lock-clock__time {
    font-family: var(--font-display);
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.02em;
}
.lock-clock__date {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 6px;
    font-weight: 400;
}
.lock-locked {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.5);
}
.lock-locked svg { width: 16px; height: 16px; }
.lock-notif-area {
    position: absolute;
    bottom: 60px;
    left: 12px; right: 12px;
}

/* Notification shade */
.panel-screen {
    background: #1a1a22;
    padding: 0;
}
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px 6px;
    font-size: 11px;
    color: #fff;
    font-weight: 500;
}
.status-bar--shade { background: rgba(255, 255, 255, 0.04); }
.status-bar__icons { display: flex; gap: 6px; align-items: center; }
.bar-icon { font-size: 10px; opacity: 0.85; letter-spacing: -0.5px; }

.shade-tiles {
    display: flex;
    gap: 6px;
    padding: 12px 12px 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    overflow-x: auto;
}
.shade-tile {
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.85);
    flex-shrink: 0;
    font-weight: 500;
}
.shade-section {
    padding: 12px 14px 6px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    font-family: var(--font-mono);
    font-weight: 500;
}
.panel-notif-area { padding: 0 12px; }

/* Heads-up (HUN) */
.hun-screen {
    background: linear-gradient(180deg, #1a1a2e 0%, #0a0a14 100%);
    padding: 0;
    position: relative;
}
.hun-area {
    padding: 6px 10px;
    position: relative;
    z-index: 2;
}
.hun-bg {
    position: absolute;
    top: 100px; left: 16px; right: 16px;
    bottom: 80px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 16px;
    z-index: 1;
}
.hun-bg__app {
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
}

/* Notification card (shared base) */
.notif-card {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    border-radius: 16px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.notif-card--lock {
    background: rgba(40, 40, 50, 0.85);
    color: #fff;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
}
.notif-card--panel {
    background: #2a2a35;
    color: #fff;
    margin-bottom: 8px;
}
.notif-card--hun {
    background: rgba(255, 255, 255, 0.97);
    color: #1a1a1a;
    border-radius: 14px;
    padding: 11px 13px;
}

.notif-head {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    margin-bottom: 4px;
    color: inherit;
    opacity: 0.75;
    font-weight: 500;
}
.notif-icon {
    width: 14px; height: 14px;
    border-radius: 4px;
    font-size: 9px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}
.notif-icon--small { width: 12px; height: 12px; font-size: 8px; }
.notif-app { font-weight: 600; }
.notif-dot { opacity: 0.6; }
.notif-time { opacity: 0.7; }

.notif-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 2px;
    color: inherit;
}
.notif-body {
    font-size: 12px;
    line-height: 1.4;
    color: inherit;
    opacity: 0.85;
    overflow-wrap: break-word;
}
.notif-body--full {
    -webkit-line-clamp: unset;
    display: block;
    opacity: 0.9;
}

.notif-image {
    margin-top: 10px;
    width: 100%;
    height: 110px;
    background-size: cover;
    background-position: center;
    background-color: rgba(0,0,0,0.2);
    border-radius: 10px;
}
.notif-count {
    margin-top: 8px;
    display: inline-block;
    font-size: 10px;
    padding: 3px 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-weight: 500;
}

.notif-empty {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}
.notif-empty--wear {
    padding: 8px;
    font-size: 10px;
}

/* Wear OS */
.watch {
    width: 240px;
    height: 240px;
    background: #050507;
    border: 2px solid #2a2a35;
    border-radius: 50%;
    padding: 6px;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.6),
        0 0 0 6px #1a1a22,
        0 0 0 8px #2a2a35;
    margin-top: 32px;
}
.watch__screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #0a0a14 0%, #1a1a2e 100%);
    border-radius: 50%;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 30px 28px 20px;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}
.watch-time {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 14px;
    color: rgba(255,255,255,0.95);
}
.watch-card {
    background: rgba(40, 40, 50, 0.9);
    border-radius: 14px;
    padding: 8px 10px;
    width: 100%;
    text-align: center;
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}
.watch-card__head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-bottom: 4px;
    font-size: 9px;
    opacity: 0.8;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}
.wear-app { font-weight: 600; }
.wear-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 2px;
    color: #fff;
}
.wear-body {
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.8);
    overflow-wrap: break-word;
}

/* Data payload box (below preview) */
.data-payload-box {
    margin-top: 24px;
    padding: 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.data-payload-box__title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.02em;
    margin-bottom: 8px;
    line-height: 1.5;
}
.data-payload-box__title code {
    background: var(--bg);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.95em;
}
.data-payload-box pre {
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

/* =================================================================
   Related tools (cross-promotion at bottom of every tool page)
   ================================================================= */
.related-tools {
    margin-bottom: 40px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}
.related-tools__title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 500;
}
.related-tools__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .related-tools__grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
    .related-tools__grid { grid-template-columns: repeat(4, 1fr); }
}
.related-tool-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.related-tool-card:hover {
    border-color: var(--accent-glow);
    background: var(--surface-2);
    text-decoration: none;
    transform: translateY(-1px);
}
.related-tool-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.related-tool-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}
.related-tool-card--browse {
    align-items: center;
    justify-content: center;
    text-align: center;
    background: transparent;
    border-style: dashed;
}
.related-tool-card--browse:hover { background: var(--accent-soft); }
.related-tool-card--browse .related-tool-card__title {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* =================================================================
   Intent-filter generator page
   ================================================================= */
.if-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .if-workspace { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

.match-explain {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.match-explain code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.92em;
}
.match-explain__pill {
    display: inline-block;
    padding: 2px 8px;
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-glow);
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-right: 4px;
}

.match-tester {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}
.match-tester__title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.match-tester input.field {
    margin-bottom: 12px;
}

.match-result {
    padding: 12px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    line-height: 1.5;
    display: none;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}
.match-result.is-match,
.match-result.is-nomatch { display: flex; }
.match-result.is-match {
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    color: var(--text);
}
.match-result.is-nomatch {
    background: var(--danger-bg);
    border: 1px solid rgba(255, 118, 118, 0.25);
    color: var(--text);
}
.match-result__icon {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 16px;
    flex-shrink: 0;
}
.match-result.is-match .match-result__icon { color: var(--accent); }
.match-result.is-nomatch .match-result__icon { color: var(--danger); }
.match-result__reason {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* =================================================================
   Commands cheatsheet page
   ================================================================= */
.cmd-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cmd-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmd-search__icon {
    width: 18px;
    height: 18px;
    color: var(--text-faint);
    flex-shrink: 0;
}
.cmd-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text);
    padding: 0;
}
.cmd-search__input::placeholder { color: var(--text-faint); }
.cmd-search__count {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.cmd-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 28px;
}
.cmd-cats__chip {
    padding: 6px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    letter-spacing: 0.02em;
    white-space: nowrap;
}
.cmd-cats__chip:hover {
    color: var(--text);
    border-color: var(--accent-glow);
}
.cmd-cats__chip.is-active {
    background: var(--accent-soft);
    border-color: var(--accent-glow);
    color: var(--accent);
}

.cmd-section { margin-bottom: 36px; }
.cmd-section[hidden] { display: none; }
.cmd-section__title {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}
.cmd-section__intro {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 720px;
}

.cmd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 960px) {
    .cmd-grid { grid-template-columns: 1fr 1fr; }
}

.cmd {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: border-color 0.15s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}
.cmd[hidden] { display: none; }
.cmd:hover { border-color: var(--accent-glow); }
.cmd__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}
.cmd__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.cmd__anchor {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.18s, color 0.18s;
    flex-shrink: 0;
}
.cmd:hover .cmd__anchor,
.cmd:focus-within .cmd__anchor {
    opacity: 1;
}
.cmd__anchor:hover,
.cmd__anchor:focus {
    color: var(--accent);
    outline: none;
}
.cmd--highlighted {
    animation: cmdPulse 2s ease-out;
}
@keyframes cmdPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 245, 98, 0.6); border-color: var(--accent); }
    50% { box-shadow: 0 0 0 6px rgba(212, 245, 98, 0.12); border-color: var(--accent); }
    100% { box-shadow: 0 0 0 0 rgba(212, 245, 98, 0); }
}
/* On touch devices anchors don't get hover, so always show */
@media (hover: none) {
    .cmd__anchor { opacity: 0.5; }
}
.cmd__body {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    border-left: 2px solid var(--accent);
    min-width: 0;
}
.cmd__line {
    flex: 1;
    margin: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    min-width: 0;
}
.cmd__copy {
    flex-shrink: 0;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 5px 7px;
    border-radius: 4px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}
.cmd__copy:hover {
    color: var(--accent);
    border-color: var(--accent-glow);
}
.cmd__copy svg { width: 13px; height: 13px; display: block; }
.cmd__desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--text-muted);
}
.cmd__link {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.cmd__link:hover { text-decoration: underline; }

.cmd-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin-bottom: 32px;
}
.cmd-empty p { margin: 0; font-size: 14px; }

/* =================================================================
   Quick-reference shortcut card (used on the home page)
   ================================================================= */
.quick-ref {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--bg-elev) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    margin-bottom: 32px;
    transition: border-color 0.15s, transform 0.1s;
}
.quick-ref:hover {
    border-color: var(--accent-glow);
    transform: translateY(-1px);
    text-decoration: none;
}
.quick-ref__icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.quick-ref__icon svg { width: 22px; height: 22px; }
.quick-ref__text { flex: 1; min-width: 0; }
.quick-ref__title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 2px;
    line-height: 1.3;
}
.quick-ref__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}
.quick-ref__cta {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.02em;
}
@media (max-width: 600px) {
    .quick-ref { padding: 14px 16px; gap: 12px; }
    .quick-ref__cta { display: none; }
    .quick-ref__icon { width: 38px; height: 38px; }
    .quick-ref__icon svg { width: 18px; height: 18px; }
}

/* =================================================================
   Footer support / Buy Me a Coffee link
   ================================================================= */
.footer-support {
    margin: 16px 0 0;
    font-size: 13px;
    color: var(--text-faint);
    text-align: center;
}
.footer-support a {
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    transition: color 0.15s;
}
.footer-support a:hover { color: var(--accent); }

/* =================================================================
   Material 3 theme generator page
   ================================================================= */
.m3-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
@media (min-width: 980px) {
    .m3-workspace { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px; align-items: start; }
}

/* Color input */
.m3-color-input {
    display: flex;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 18px;
}
.m3-color-picker {
    width: 64px; height: 48px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
    cursor: pointer;
    flex-shrink: 0;
}
.m3-color-picker::-webkit-color-swatch-wrapper { padding: 4px; }
.m3-color-picker::-webkit-color-swatch { border: none; border-radius: 6px; }
.m3-color-picker::-moz-color-swatch { border: none; border-radius: 6px; }
.m3-color-input .field {
    flex: 1;
    font-family: var(--font-mono);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Presets */
.m3-presets-label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}
.m3-presets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.m3-preset {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-size: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, color 0.15s;
}
.m3-preset:hover {
    border-color: var(--accent-glow);
    color: var(--text);
}
.m3-preset__swatch {
    width: 16px; height: 16px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.m3-share {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* ----- Advanced section (HCT picker, image-to-seed) ----- */
.m3-advanced {
    margin-top: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    overflow: hidden;
}
.m3-advanced + .m3-advanced { margin-top: 10px; }
.m3-advanced__summary {
    list-style: none;
    cursor: pointer;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    user-select: none;
    display: flex;
    align-items: center;
    gap: 8px;
}
.m3-advanced__summary::-webkit-details-marker { display: none; }
.m3-advanced__summary::before {
    content: "▸";
    color: var(--text-faint);
    transition: transform 0.15s;
    display: inline-block;
}
.m3-advanced[open] > .m3-advanced__summary::before {
    transform: rotate(90deg);
}
.m3-advanced__summary:hover { color: var(--text); }
.m3-advanced__body {
    padding: 4px 14px 14px;
    border-top: 1px solid var(--border);
}
.m3-advanced__hint {
    margin: 10px 0 14px;
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--text-muted);
}

/* ----- HCT picker ----- */
.m3-hct {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m3-hct-row {
    display: grid;
    grid-template-columns: 64px 1fr 60px;
    align-items: center;
    gap: 10px;
}
.m3-hct__label {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.m3-hct__slider {
    width: 100%;
    accent-color: var(--accent);
}
.m3-hct__num {
    width: 100%;
    padding: 4px 6px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: right;
}
.m3-hct-swatch {
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #6750A4;
    margin-top: 4px;
}

/* ----- Image-to-seed dropzone ----- */
.m3-img-drop {
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    padding: 18px 14px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
}
.m3-img-drop:hover,
.m3-img-drop:focus-visible {
    border-color: var(--accent);
    outline: none;
}
.m3-img-drop.is-dragover {
    border-color: var(--accent);
    background: var(--bg-elev);
}
.m3-img-drop__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 12px;
}
.m3-img-drop__inner svg {
    width: 28px;
    height: 28px;
    color: var(--text-faint);
}
.m3-img-drop__thumb {
    max-width: 96px;
    max-height: 96px;
    width: auto;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border);
    object-fit: cover;
}
.m3-img-status {
    margin-top: 10px;
    font-size: 11.5px;
    color: var(--text-muted);
}
.m3-img-status.is-error { color: var(--danger); }

/* ----- Tonal palettes (override individual tones) ----- */
.m3-palettes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.m3-palette-row {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 10px;
}
.m3-palette-row__name {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.m3-palette-row__tones {
    display: grid;
    grid-template-columns: repeat(13, 1fr);
    gap: 2px;
}
.m3-palette-tone-wrap {
    position: relative;
    width: 100%;
}
.m3-palette-tone {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    padding: 0;
    border-radius: 3px;
    background: transparent;
    cursor: pointer;
    height: 26px;
    width: 100%;
    display: block;
}
.m3-palette-tone::-webkit-color-swatch-wrapper { padding: 0; border-radius: 3px; }
.m3-palette-tone::-webkit-color-swatch { border: none; border-radius: 3px; }
.m3-palette-tone::-moz-color-swatch { border: none; border-radius: 3px; }
.m3-palette-tone:hover {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
    z-index: 1;
    position: relative;
}
.m3-palette-tone--overridden {
    box-shadow: 0 0 0 2px var(--accent);
}
.m3-palette-tone__num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 8.5px;
    font-weight: 500;
    pointer-events: none;
    letter-spacing: 0.02em;
}
.m3-palette-tone.is-dark + .m3-palette-tone__num {
    color: rgba(255, 255, 255, 0.92);
}
.m3-palette-tone.is-light + .m3-palette-tone__num {
    color: rgba(0, 0, 0, 0.72);
}
.m3-palettes__actions {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.m3-palettes__actions .btn--icon:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.m3-palettes__count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
}

/* Previews */
.m3-previews {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
@media (max-width: 740px) {
    .m3-previews { grid-template-columns: 1fr; }
}
.m3-preview {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    --m3-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.m3-mockup-frame {
    background: var(--m3-surface);
    color: var(--m3-onsurface);
    font-family: var(--font-body);
    font-size: 12px;
    -webkit-font-smoothing: antialiased;
    position: relative;
}

/* ----- TopAppBar (small) ----- */
.m3-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--m3-surface);
    color: var(--m3-onsurface);
}
.m3-topbar__lead svg,
.m3-topbar__trail svg {
    width: 18px; height: 18px;
    color: var(--m3-onsurface);
    display: block;
}
.m3-topbar__title {
    flex: 1;
    font-weight: 600;
    font-size: 15px;
    letter-spacing: -0.005em;
}
.m3-topbar__trail {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ----- Body container ----- */
.m3-body {
    padding: 14px 14px 84px;     /* room for NavBar + FAB at bottom */
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: var(--m3-surface);
    color: var(--m3-onsurface);
}

/* ----- Card (filled) ----- */
.m3-card {
    background: var(--m3-surfacevariant);
    color: var(--m3-onsurface);
    border-radius: 12px;
    padding: 14px 14px 10px;
}
.m3-card__title {
    font-weight: 600;
    font-size: 13.5px;
    letter-spacing: -0.005em;
    margin-bottom: 4px;
    color: var(--m3-onsurface);
}
.m3-card__body {
    font-size: 11.5px;
    line-height: 1.45;
    color: var(--m3-onsurfacevariant);
    margin-bottom: 10px;
}
.m3-card__actions {
    display: flex;
    gap: 6px;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ----- Rows ----- */
.m3-row {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.m3-row--chips { gap: 6px; }
.m3-row--controls { gap: 14px; align-items: center; }

/* ----- Buttons ----- */
.m3-btn {
    height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: opacity 0.15s;
}
.m3-btn--filled {
    background: var(--m3-primary);
    color: var(--m3-onprimary);
}
.m3-btn--tonal {
    background: var(--m3-secondarycontainer);
    color: var(--m3-onsecondarycontainer);
}
.m3-btn--outlined {
    background: transparent;
    color: var(--m3-primary);
    border: 1px solid var(--m3-outline);
}
.m3-btn--text {
    background: transparent;
    color: var(--m3-primary);
    padding: 0 10px;
}

/* ----- Text field (outlined) ----- */
.m3-textfield {
    position: relative;
    border: 1px solid var(--m3-outline);
    border-radius: 4px;
    padding: 12px 12px 8px;
    background: transparent;
    color: var(--m3-onsurface);
    line-height: 1.2;
}
.m3-textfield__label {
    position: absolute;
    top: -7px;
    left: 10px;
    padding: 0 4px;
    background: var(--m3-surface);
    color: var(--m3-primary);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.m3-textfield__value {
    font-size: 12px;
    color: var(--m3-onsurface);
}
.m3-textfield__cursor {
    display: inline-block;
    width: 1px;
    height: 12px;
    background: var(--m3-primary);
    vertical-align: middle;
    margin-left: 2px;
    animation: m3-cursor-blink 1.1s steps(1) infinite;
}
@keyframes m3-cursor-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

/* ----- Chips ----- */
.m3-chip {
    padding: 4px 12px 4px 8px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid var(--m3-outline);
    color: var(--m3-onsurfacevariant);
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1.4;
}
.m3-chip svg {
    width: 13px;
    height: 13px;
}
.m3-chip--selected {
    background: var(--m3-secondarycontainer);
    color: var(--m3-onsecondarycontainer);
    border-color: transparent;
}

/* ----- Switch ----- */
.m3-switch {
    --m3-switch-track-bg: var(--m3-surfacevariant);
    --m3-switch-track-border: var(--m3-outline);
    --m3-switch-thumb-bg: var(--m3-outline);
    --m3-switch-thumb-pos: 2px;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: var(--m3-switch-track-bg);
    border: 2px solid var(--m3-switch-track-border);
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.18s, border-color 0.18s;
}
.m3-switch.is-on {
    --m3-switch-track-bg: var(--m3-primary);
    --m3-switch-track-border: var(--m3-primary);
    --m3-switch-thumb-bg: var(--m3-onprimary);
    --m3-switch-thumb-pos: 18px;
}
.m3-switch__thumb {
    position: absolute;
    top: 50%;
    left: var(--m3-switch-thumb-pos);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--m3-switch-thumb-bg);
    transform: translateY(-50%);
    transition: left 0.2s, width 0.2s, height 0.2s, background 0.18s;
}
.m3-switch.is-on .m3-switch__thumb {
    width: 18px;
    height: 18px;
    left: 16px;
}

/* ----- Extended FAB ----- */
.m3-extfab {
    height: 32px;
    padding: 0 14px 0 12px;
    border-radius: 12px;
    background: var(--m3-primarycontainer);
    color: var(--m3-onprimarycontainer);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: var(--m3-shadow);
}
.m3-extfab svg {
    width: 14px; height: 14px;
}

/* ----- Snackbar ----- */
.m3-snackbar {
    background: var(--m3-inversesurface);
    color: var(--m3-inverseonsurface);
    border-radius: 6px;
    padding: 10px 8px 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    box-shadow: var(--m3-shadow);
    font-size: 11.5px;
}
.m3-snackbar__action {
    background: transparent;
    border: none;
    color: var(--m3-inverseprimary);
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
}

/* ----- Error pill ----- */
.m3-error {
    background: var(--m3-errorcontainer);
    color: var(--m3-onerrorcontainer);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.m3-error__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--m3-error);
    flex-shrink: 0;
}

/* ----- FAB (large primary, anchored above NavBar) ----- */
.m3-fab {
    position: absolute;
    right: 14px;
    bottom: 70px;                /* above the NavBar */
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--m3-primarycontainer);
    color: var(--m3-onprimarycontainer);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--m3-shadow);
    cursor: default;
    user-select: none;
}
.m3-fab svg { width: 18px; height: 18px; }

/* ----- Navigation bar ----- */
.m3-navbar {
    position: absolute;
    left: 0; right: 0;
    bottom: 0;
    background: var(--m3-surfacevariant);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 8px;
    border-top: 1px solid var(--m3-outlinevariant);
}
.m3-navbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: var(--m3-onsurfacevariant);
    flex: 1;
    cursor: default;
}
.m3-navbar__indicator {
    width: 40px;
    height: 22px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;
}
.m3-navbar__indicator svg {
    width: 16px; height: 16px;
}
.m3-navbar__item.is-selected {
    color: var(--m3-onsecondarycontainer);
}
.m3-navbar__item.is-selected .m3-navbar__indicator {
    background: var(--m3-secondarycontainer);
}
.m3-navbar__label {
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.m3-navbar__item.is-selected .m3-navbar__label {
    color: var(--m3-onsurface);
    font-weight: 600;
}

/* ----- Mode tag (LIGHT / DARK badge) ----- */
.m3-mode-tag {
    position: absolute;
    top: 8px; right: 10px;
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    z-index: 2;
}
.m3-preview--light .m3-mode-tag { background: rgba(0, 0, 0, 0.28); }

/* Output panel */
.m3-output { margin-top: 4px; }
.m3-output[hidden] { display: none; }

.actions-row {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

/* Color tokens grid */
.m3-tokens-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}
@media (min-width: 720px) {
    .m3-tokens-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
}
.m3-token-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.m3-token-row__name {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.m3-token-row__swatches {
    display: flex;
    gap: 6px;
}
.m3-swatch {
    width: 90px;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    text-align: right;
}
.m3-swatch__hex {
    font-weight: 500;
    letter-spacing: 0.02em;
}
.m3-swatch__label {
    font-size: 8px;
    opacity: 0.85;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
/* Paired swatch: bg = role color, sample text + hex = on-color */
.m3-swatch--pair {
    width: 130px;
    padding: 8px 10px;
    position: relative;
    text-shadow: none;
}
.m3-swatch__sample {
    font-family: var(--font-display, var(--font-body));
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    text-align: left;
}
.m3-contrast {
    position: absolute;
    top: 6px;
    right: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 2px 5px;
    border-radius: 3px;
    text-shadow: none;
    line-height: 1.2;
}
.m3-contrast--aaa  { background: #1f6f3a; color: #d6f5e0; }
.m3-contrast--aa   { background: #2f5e8a; color: #d6e6f5; }
.m3-contrast--aal  { background: #7a5a1f; color: #f5e8c8; }
.m3-contrast--fail { background: #7a2222; color: #ffd6d6; }

/* =================================================================
   Logcat Filter Builder page
   ================================================================= */
.lc-mode-tabs {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 24px;
    padding: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.lc-mode-tab {
    padding: 8px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    border-radius: 999px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    letter-spacing: 0.02em;
}
.lc-mode-tab:hover { color: var(--text); }
.lc-mode-tab.is-active { background: var(--surface-2); color: var(--accent); }

.lc-mode-panel[hidden] { display: none; }

.lc-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .lc-workspace { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

/* Tag filter row */
.lc-tag-row {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}
.lc-tag-input { font-family: var(--font-mono); font-size: 13px; }
.lc-tag-priority { font-family: var(--font-mono); font-size: 12px; }
.lc-tag-remove {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 40px; height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: color 0.15s, border-color 0.15s;
}
.lc-tag-remove:hover { color: var(--danger); border-color: var(--danger); }

/* Priority pills (default priority) */
.lc-priority-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.lc-pill {
    width: 36px; height: 36px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.lc-pill:hover {
    color: var(--text);
    border-color: var(--accent-glow);
}
.lc-pill.is-active {
    background: var(--accent-soft);
    border-color: var(--accent-glow);
    color: var(--accent);
}

.lc-priority-help {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
    padding: 8px 12px;
    background: var(--bg-elev);
    border-left: 2px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.lc-priority-help code {
    background: var(--bg);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.92em;
}

/* Shell tabs */
.lc-shell-tabs {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.lc-shell-tab {
    padding: 6px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.lc-shell-tab:hover { color: var(--text); }
.lc-shell-tab.is-active { background: var(--surface-2); color: var(--accent); }

/* Explanation list */
.lc-explanation {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px dashed var(--border);
}
.lc-explanation__empty {
    color: var(--text-faint);
    font-style: italic;
    margin: 0;
}
.lc-explanation__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.lc-explanation__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text);
}
.lc-explanation__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    margin-top: 1px;
}
.lc-explanation__item code {
    background: var(--bg-elev);
    color: var(--accent);
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--border);
    font-size: 0.92em;
}

/* =================================================================
   strings.xml Escape Fixer page
   ================================================================= */
.es-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .es-workspace { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
}

.es-diag-summary {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--border);
}

.lc-explanation__item.es-diag-warn .lc-explanation__icon {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

/* =================================================================
   Manifest Helper page
   ================================================================= */
.mh-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .mh-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

.mh-aspect-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.mh-mini-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    font-family: var(--font-mono);
    letter-spacing: 0.02em;
}

.mh-behavior-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.mh-behavior {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.mh-behavior-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border-left: 3px solid var(--border);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 13px;
    line-height: 1.5;
}
.mh-behavior-row__device {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}
.mh-behavior-row__text {
    color: var(--text);
}
.mh-behavior-row--ok {
    border-left-color: var(--accent);
}
.mh-behavior-row--note {
    border-left-color: var(--info);
}
.mh-behavior-row--warn {
    border-left-color: #f59e0b;
}
@media (max-width: 600px) {
    .mh-behavior-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* =================================================================
   App Icon Variant Badger page
   ================================================================= */
.ib-workspace {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
@media (min-width: 980px) {
    .ib-workspace { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
}

/* Drop zone */
.ib-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    background: var(--bg-elev);
}
.ib-dropzone:hover {
    border-color: var(--accent-glow);
    background: rgba(212, 245, 98, 0.03);
}
.ib-dropzone.is-drag {
    border-color: var(--accent);
    background: rgba(212, 245, 98, 0.06);
}
.ib-dropzone__icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 12px;
    color: var(--text-muted);
}
.ib-dropzone__icon svg { width: 100%; height: 100%; }
.ib-dropzone:hover .ib-dropzone__icon,
.ib-dropzone.is-drag .ib-dropzone__icon { color: var(--accent); }
.ib-dropzone__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.ib-dropzone__sub {
    font-size: 12px;
    color: var(--text-muted);
}

/* File info after upload */
.ib-file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ib-file-info__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.ib-file-info__name {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ib-file-info__dim {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}
.ib-file-info__change { font-size: 12px; padding: 6px 12px; }

/* Warning box (specific to icon-badger) */
.ib-warn {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius-sm);
    color: #f59e0b;
    font-size: 12px;
    line-height: 1.5;
}

.ib-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 22px 0;
}

/* Style selector grid (4 mini visual buttons) */
.ib-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.ib-style-btn {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    padding: 12px 8px 10px;
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.15s;
}
.ib-style-btn:hover {
    border-color: var(--accent-glow);
    color: var(--text);
}
.ib-style-btn.is-active {
    border-color: var(--accent);
    background: rgba(212, 245, 98, 0.06);
    color: var(--accent);
}
.ib-style-thumb {
    width: 56px;
    height: 56px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #4a4a55, #2a2a32);
    flex-shrink: 0;
}
.ib-style-thumb__icon { display: none; }
.ib-style-thumb__pill {
    position: absolute;
    top: 5px; right: 5px;
    background: #E53935;
    color: #fff;
    font-size: 7px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 999px;
    line-height: 1;
}
.ib-style-thumb__solid {
    position: absolute;
    bottom: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 0 22px 22px;
    border-color: transparent transparent #1976D2 transparent;
}
.ib-style-thumb__ribbon {
    position: absolute;
    top: 12px;
    left: -10px;
    width: 80px;
    height: 10px;
    background: #F57C00;
    transform: rotate(-45deg);
    transform-origin: center;
}
.ib-style-thumb__strip {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 14px;
    background: #388E3C;
}
.ib-style-name {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    text-align: center;
}

/* Position grid (4 corners) */
.ib-position-grid {
    display: grid;
    grid-template-columns: repeat(4, 56px);
    gap: 8px;
}
.ib-pos-btn {
    width: 56px; height: 56px;
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.ib-pos-btn svg { width: 100%; height: 100%; }
.ib-pos-btn:hover {
    border-color: var(--accent-glow);
    color: var(--text);
}
.ib-pos-btn.is-active {
    border-color: var(--accent);
    background: rgba(212, 245, 98, 0.06);
    color: var(--accent);
}

/* Color rows */
.ib-color-row {
    display: grid;
    grid-template-columns: 80px 48px 1fr;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
}
.ib-color-label {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.ib-color-picker {
    width: 48px; height: 36px;
    padding: 0;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-elev);
    cursor: pointer;
}
.ib-color-picker::-webkit-color-swatch-wrapper { padding: 3px; }
.ib-color-picker::-webkit-color-swatch { border: none; border-radius: 4px; }
.ib-color-picker::-moz-color-swatch { border: none; border-radius: 4px; }
.ib-color-hex {
    font-family: var(--font-mono);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Size pills */
.ib-size-pills {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.ib-size-pill {
    padding: 6px 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ib-size-pill:hover { color: var(--text); }
.ib-size-pill.is-active { background: var(--surface-2); color: var(--accent); }

/* Preview */
.ib-preview-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 22px;
}
.ib-preview-checker {
    /* Checkered transparent-indicator background */
    background-color: #2a2a32;
    background-image:
        linear-gradient(45deg, #1f1f25 25%, transparent 25%),
        linear-gradient(-45deg, #1f1f25 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1f1f25 75%),
        linear-gradient(-45deg, transparent 75%, #1f1f25 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    padding: 14px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.ib-preview {
    display: block;
    width: 100%;
    max-width: 320px;
    height: auto;
    aspect-ratio: 1 / 1;
}

/* Download buttons */
.ib-downloads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ib-dl {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 16px;
    text-align: left;
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
    transition: all 0.15s;
    font-size: 13px;
    font-weight: 500;
}
.ib-dl:hover { border-color: var(--accent-glow); color: var(--accent); }
.ib-dl:disabled { opacity: 0.5; cursor: not-allowed; }
.ib-dl svg { width: 18px; height: 18px; flex-shrink: 0; }
.ib-dl--primary {
    background: var(--accent);
    color: var(--bg);
    border-color: var(--accent);
}
.ib-dl--primary:hover { background: var(--accent-bright); color: var(--bg); border-color: var(--accent-bright); }
.ib-dl__sub {
    font-family: var(--font-mono);
    font-size: 11px;
    opacity: 0.75;
    font-weight: 400;
    grid-column: 2;
    grid-row: 2;
    margin-top: -2px;
}
.ib-dl > span:not(.ib-dl__sub) { grid-column: 2; grid-row: 1; }


/* =================================================================
   Commands cheatsheet page
   ================================================================= */
.cmd-search {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg);
    padding: 14px 0 12px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}
.cmd-search__icon {
    width: 18px;
    height: 18px;
    color: var(--text-faint);
    flex-shrink: 0;
    margin-left: 4px;
}
.cmd-search__input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    font-size: 15px;
    color: var(--text);
    background: var(--bg-elev);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.cmd-search__input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.cmd-search__count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-faint);
    flex-shrink: 0;
    padding: 0 4px;
    white-space: nowrap;
}

.cmd-cats {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.cmd-cats__chip {
    padding: 7px 14px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    white-space: nowrap;
    flex-shrink: 0;
    cursor: pointer;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
    letter-spacing: 0.01em;
}
.cmd-cats__chip:hover {
    color: var(--text);
    border-color: var(--accent-glow);
}
.cmd-cats__chip.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    border-color: var(--accent-glow);
}

.cmd-section { margin-bottom: 36px; }
.cmd-section[hidden] { display: none; }
.cmd-section__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 22px;
    margin: 0 0 6px;
    color: var(--text);
    letter-spacing: -0.01em;
}
.cmd-section__intro {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 18px;
    max-width: 720px;
}

.cmd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
@media (min-width: 760px) {
    .cmd-grid { grid-template-columns: 1fr 1fr; }
}

.cmd {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: border-color 0.15s;
    min-width: 0;
}
.cmd[hidden] { display: none; }
.cmd:hover { border-color: var(--accent-glow); }
.cmd__head { margin-bottom: 4px; }
.cmd__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    margin: 0;
    color: var(--text);
}
.cmd__body {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin: 10px 0 8px;
    min-width: 0;
}
.cmd__line {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 9px 11px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--border);
    border-left: 2px solid var(--accent);
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre;
    -webkit-overflow-scrolling: touch;
}
.cmd__copy {
    flex-shrink: 0;
    padding: 0 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cmd__copy:hover {
    color: var(--accent);
    border-color: var(--accent-glow);
}
.cmd__copy svg { width: 14px; height: 14px; }
.cmd__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}
.cmd__link {
    display: inline-block;
    margin-top: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.02em;
}
.cmd__link:hover { text-decoration: underline; }

.cmd-empty {
    text-align: center;
    padding: 36px 20px;
    color: var(--text-muted);
    font-size: 14px;
    background: var(--bg-elev);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    margin: 24px 0;
}
.cmd-empty p { margin: 0; }

/* =================================================================
   Quick-ref shortcut card (used on the home page)
   ================================================================= */
.quick-ref {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
    margin-bottom: 32px;
}
.quick-ref:hover {
    border-color: var(--accent-glow);
    background: var(--surface-2);
    text-decoration: none;
    transform: translateY(-1px);
}
.quick-ref__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border: 1px solid var(--accent-glow);
    border-radius: 8px;
    color: var(--accent);
}
.quick-ref__icon svg { width: 20px; height: 20px; }
.quick-ref__body { flex: 1; min-width: 0; }
.quick-ref__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
    margin: 0 0 2px;
    line-height: 1.3;
}
.quick-ref__desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.quick-ref__cta {
    flex-shrink: 0;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: 0.02em;
    white-space: nowrap;
}
@media (max-width: 540px) {
    .quick-ref__cta { display: none; }
}

/* =================================================================
   Sister sites (cross-promotion to schemapreview.com, cronpreview.com)
   ================================================================= */
.sister-sites {
    margin-bottom: 40px;
    padding-top: 28px;
    border-top: 1px dashed var(--border);
}
.sister-sites__title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-faint);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 14px;
    font-weight: 500;
}
.sister-sites__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 600px) {
    .sister-sites__grid { grid-template-columns: 1fr 1fr; }
}
.sister-site-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.sister-site-card:hover {
    border-color: var(--accent-glow);
    background: var(--surface-2);
    text-decoration: none;
    transform: translateY(-1px);
}
.sister-site-card__title {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}
.sister-site-card__domain {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 0.02em;
    margin: 0;
}
.sister-site-card__desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    flex: 1;
}

.footer-sisters {
    margin: 16px 0 0;
    font-size: 12px;
    color: var(--text-faint);
    text-align: center;
}
.footer-sisters a {
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px dashed var(--border);
    transition: color 0.15s, border-color 0.15s;
}
.footer-sisters a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.footer-sisters .sep {
    margin: 0 6px;
    color: var(--text-faint);
    opacity: 0.6;
}

/* =================================================================
   Global keyboard focus indicator — applies whenever the user is
   navigating via keyboard (not mouse). Restores a visible focus ring
   on elements where `outline: none` removed the default, without
   re-introducing the ring on click.
   ================================================================= */
*:focus { outline: none; }

*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Buttons and links that already have their own focus state get a
   tighter ring sitting just outside their border. */
button:focus-visible,
a:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Inputs/textareas already use a border-color + box-shadow on :focus —
   keep that as the primary indicator and add a subtle outline only for
   keyboard focus, to avoid double rings on click-focus. */
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline-offset: 1px;
}
