/* ================================================================
   OpenCodex+ styles — ChatGPT-inspired light theme
   白底 + 绿色点缀 · 参考 chatgpt.com
   ================================================================ */

:root {
    /* Base surfaces */
    --bg:           #ffffff;
    --bg-elev:      #f7f7f8;         /* ChatGPT sidebar gray */
    --bg-card:      #ffffff;
    --bg-input:     #ffffff;
    --bg-hover:     #f2f2f3;

    /* Borders */
    --border:       #e5e5e5;
    --border-soft:  #ececec;
    --border-focus: #10a37f;

    /* Text */
    --text:         #171717;
    --text-dim:     #565869;
    --text-mute:    #8e8ea0;
    --text-placeholder: #c5c5d2;

    /* ChatGPT green */
    --accent:       #10a37f;
    --accent-hi:    #0d8c6d;
    --accent-dim:   #e6f4ef;
    --accent-soft:  rgba(16,163,127,.06);

    /* States */
    --warn:         #b45309;
    --warn-bg:      #fef3c7;
    --warn-border:  #fde68a;
    --danger:       #b91c1c;
    --danger-bg:    #fef2f2;
    --danger-border:#fecaca;
    --success:      #10a37f;

    /* Shape */
    --radius:       12px;
    --radius-sm:    8px;
    --radius-xs:    4px;

    /* Shadows */
    --shadow-sm:    0 1px 2px rgba(0,0,0,.04);
    --shadow:       0 1px 3px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.03);
    --shadow-md:    0 4px 12px rgba(0,0,0,.06);
    --shadow-lg:    0 8px 24px rgba(0,0,0,.08);

    /* Typography */
    --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Roboto Mono', Consolas, Menlo, monospace;
    --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, 'PingFang SC',
            'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ====== decorative backgrounds (subtle for light) ====== */
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20% 0%, rgba(16,163,127,.04) 0%, transparent 40%),
        radial-gradient(circle at 80% 10%, rgba(16,163,127,.025) 0%, transparent 45%);
}
.bg-glow { display: none; }

/* ====== header ====== */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.85);
    backdrop-filter: saturate(180%) blur(10px);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    position: sticky; top: 0;
    z-index: 10;
}
.site-header .wrap,
.site-footer .wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
}
.brand-mark {
    font-family: var(--mono);
    color: var(--accent);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--accent-dim);
    border-radius: 6px;
    letter-spacing: -.05em;
    /* 光标闪烁：整块 0.3↔1 透明度渐变，模拟终端光标 */
    animation: caret-blink 1.1s steps(2, start) infinite;
}
@keyframes caret-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}
.brand-name {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -.01em;
}
.nav-link {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 14px;
    padding: 7px 12px;
    border-radius: var(--radius-xs);
    transition: color .15s, background .15s;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--text);
    background: var(--bg-elev);
}
nav { display: flex; gap: 4px; }

/* ====== main ====== */
.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

/* hero */
.hero {
    text-align: center;
    margin-bottom: 44px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--accent);
    background: var(--accent-dim);
    margin-bottom: 22px;
    text-transform: uppercase;
}
.badge::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}
.hero h1 {
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
    letter-spacing: -.025em;
    margin: 0 0 14px;
    font-weight: 600;
    color: var(--text);
}
.accent { color: var(--accent); }
.lead {
    color: var(--text-dim);
    font-size: 16px;
    margin: 0;
    line-height: 1.6;
}

/* ====== stepper ====== */
.stepper {
    list-style: none;
    padding: 4px;
    margin: 0 0 26px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.stepper li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--text-mute);
    position: relative;
    border-radius: calc(var(--radius) - 4px);
    transition: all .2s;
    font-weight: 500;
}
.stepper li span {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 11px;
    opacity: .7;
}
.stepper li em { font-style: normal; }
.stepper li.active {
    color: var(--accent);
    background: var(--bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
}
.stepper li.active span { opacity: 1; }
.stepper li.done { color: var(--text-dim); }
.stepper li.done::after {
    content: '✓';
    position: absolute;
    right: 12px;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

/* ====== card ====== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 22px;
    animation: cardIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.card-head {
    padding: 22px 28px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.card-head h2 {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -.015em;
    color: var(--text);
}
.card-head p {
    margin: 0;
    color: var(--text-dim);
    font-size: 14px;
}
.card-body { padding: 24px 28px 28px; }
.hidden { display: none !important; }

/* ====== form ====== */
.field { display: block; margin-bottom: 18px; }
.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 7px;
}
.field-hint {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    color: var(--text-mute);
    line-height: 1.55;
}
.input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text);
    font-size: 15px;
    font-family: var(--sans);
    transition: border-color .15s, box-shadow .15s;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.input.mono {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .01em;
}
.input::placeholder { color: var(--text-placeholder); }
.input:hover { border-color: #d4d4d4; }
.input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea.input {
    resize: vertical;
    min-height: 110px;
    line-height: 1.6;
    font-family: var(--mono);
    font-size: 13px;
}

/* ====== buttons ====== */
.btn-primary, .btn-ghost, .btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--sans);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
    min-height: 38px;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover:not(:disabled) {
    background: var(--accent-hi);
    border-color: var(--accent-hi);
}
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover {
    background: var(--bg-elev);
    border-color: #d4d4d4;
}
.btn-accent {
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    font-size: 15px;
    border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hi); border-color: var(--accent-hi); }

.actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 22px;
}
.actions.center { justify-content: center; }

/* ====== notice ====== */
.notice {
    padding: 13px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.65;
    margin: 14px 0;
}
.notice strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
}
.notice.warn {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: #78350f;
}
.notice.warn strong { color: var(--warn); }
.notice.danger {
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: #7f1d1d;
}
.notice.danger strong { color: var(--danger); }
.notice ul {
    margin: 6px 0 0;
    padding-left: 18px;
}
.notice ul li { margin: 3px 0; }
.notice ul b { color: var(--text); font-weight: 600; }

/* ====== CDK chip ====== */
.cdk-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.chip-label {
    color: var(--text-mute);
    font-size: 12px;
    font-weight: 500;
}
.cdk-chip code {
    flex: 1;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text);
    min-width: 140px;
    font-weight: 500;
}
.chip-plan {
    padding: 3px 9px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-family: var(--sans);
    border: 1px solid rgba(16,163,127,.2);
}
.chip-plan.plan-pro {
    background: #f3e8ff;
    color: #7c3aed;
    border-color: rgba(124,58,237,.2);
}
.chip-plan.plan-pro-20x {
    background: #fef3c7;
    color: #b45309;
    border-color: rgba(180,83,9,.2);
}
.chip-plan.plan-plus-1y {
    background: #e0f2fe;
    color: #0369a1;
    border-color: rgba(3,105,161,.2);
}

/* ====== guide ====== */
.guide {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: step;
}
.guide li {
    position: relative;
    padding: 11px 14px 11px 42px;
    margin-bottom: 6px;
    color: var(--text);
    font-size: 13.5px;
    line-height: 1.7;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    counter-increment: step;
}
.guide li::before {
    content: counter(step);
    position: absolute;
    left: 11px;
    top: 11px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 600;
}
.guide li b { color: var(--text); font-weight: 600; }

.link-outline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 6px;
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--accent);
    border-radius: var(--radius-xs);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all .15s;
}
.link-outline:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

kbd {
    display: inline-block;
    padding: 1px 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    line-height: 1.4;
}

/* ====== confirm list ====== */
.confirm-list {
    margin: 0 0 18px;
    padding: 0;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.confirm-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
    gap: 16px;
}
.confirm-list div:last-child { border-bottom: none; }
.confirm-list dt {
    color: var(--text-dim);
    font-size: 13px;
    margin: 0;
    font-weight: 500;
}
.confirm-list dd {
    margin: 0;
    font-size: 14px;
    color: var(--text);
    text-align: right;
    word-break: break-all;
    font-weight: 500;
}

/* ====== result states ====== */
.result-body {
    padding: 48px 28px;
    text-align: center;
}
.result-body h2 {
    margin: 18px 0 6px;
    font-size: 22px;
    letter-spacing: -.02em;
    font-weight: 600;
}
.result-body p.muted {
    color: var(--text-dim);
    margin: 0 0 24px;
    font-size: 14px;
}
.result-body .confirm-list {
    text-align: left;
    max-width: 440px;
    margin: 20px auto;
}
.result-body .notice {
    text-align: left;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.result-body .actions { flex-wrap: wrap; }

.spinner-big {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    margin: 0 auto;
    animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.status-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn .35s cubic-bezier(.34,1.6,.64,1);
}
@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.status-icon.success {
    background: var(--accent-dim);
    color: var(--accent);
}
.status-icon.failed {
    background: #fef2f2;
    color: var(--danger);
}

.progress-log {
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-dim);
    max-width: 440px;
    margin: 22px auto 0;
    text-align: left;
    max-height: 150px;
    overflow-y: auto;
    line-height: 1.7;
}
.progress-log div span { color: var(--accent); font-weight: 600; }

/* ====== queue info pills ====== */
.queue-info {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin: 18px auto 0;
    max-width: 440px;
}
.queue-pill {
    flex: 1;
    min-width: 140px;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.queue-pill-label {
    font-size: 11px;
    color: var(--text-mute);
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 500;
}
.queue-pill-value {
    font-family: var(--mono);
    font-size: 18px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: -.01em;
}
.queue-pill-value.neutral { color: var(--text); }

/* ====== progress bar ====== */
.progress-bar {
    max-width: 440px;
    margin: 14px auto 0;
    height: 6px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hi));
    width: 0%;
    transition: width .8s cubic-bezier(.4,0,.2,1);
    border-radius: 999px;
}

/* ====== queue preview (Step 3 确认页) ====== */
.queue-preview {
    margin: 14px 0 0;
    padding: 14px 16px;
    background: var(--accent-soft);
    border: 1px solid rgba(16,163,127,.15);
    border-radius: var(--radius-sm);
    animation: cardIn .3s cubic-bezier(.2,.8,.2,1);
}
.queue-preview-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.queue-preview-row + .queue-preview-row {
    border-top: 1px dashed rgba(16,163,127,.18);
    padding-top: 8px;
    margin-top: 4px;
}
.queue-preview-label {
    color: var(--text-dim);
    font-size: 13px;
    font-weight: 500;
}
.queue-preview-value {
    font-family: var(--mono);
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}
.queue-preview-value.busy { color: var(--warn); }
.queue-preview-hint {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(16,163,127,.18);
    font-size: 12px;
    color: var(--text-mute);
    text-align: center;
}

/* ====== faq ====== */
.faq {
    margin-top: 44px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.faq h3 {
    margin: 0 0 16px;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.faq details {
    border-top: 1px solid var(--border-soft);
    padding: 12px 0;
}
.faq details:first-of-type {
    border-top: none;
    padding-top: 0;
}
.faq summary {
    cursor: pointer;
    font-weight: 500;
    color: var(--text);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 0;
    transition: color .15s;
    font-size: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: '+';
    font-family: var(--mono);
    color: var(--accent);
    font-size: 18px;
    transition: transform .2s;
    font-weight: 400;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--accent); }
.faq details p {
    margin: 6px 0 0;
    color: var(--text-dim);
    font-size: 13.5px;
    line-height: 1.7;
}
.faq code {
    background: var(--bg-elev);
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-soft);
    font-size: 13px;
    color: var(--text);
    font-family: var(--mono);
}

/* ====== toast ====== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1a1a1a;
    border: 1px solid #1a1a1a;
    border-radius: var(--radius-sm);
    padding: 11px 16px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    opacity: 0;
    transition: transform .3s, opacity .3s;
    max-width: 90vw;
    display: flex;
    align-items: center;
    gap: 8px;
}
.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}
.toast.error {
    background: #fef2f2;
    border-color: var(--danger-border);
    color: #991b1b;
}
.toast.error::before { content: '✕'; color: var(--danger); font-weight: 700; }
.toast.success {
    background: var(--accent-dim);
    border-color: rgba(16,163,127,.25);
    color: #065f46;
}
.toast.success::before { content: '✓'; color: var(--accent); font-weight: 700; }

/* ====== footer ====== */
.site-footer {
    border-top: 1px solid var(--border-soft);
    margin-top: 40px;
    color: var(--text-mute);
    font-size: 13px;
    background: var(--bg-elev);
}
.site-footer .wrap { padding: 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-mute); }
.small { font-size: 12px; }

/* ====== spinner in button ====== */
.btn-primary .spinner,
.btn-accent .spinner,
.btn-ghost .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-ghost .spinner {
    border-color: #d4d4d4;
    border-top-color: var(--text);
}

/* ====== responsive ====== */
@media (max-width: 640px) {
    .container { padding: 36px 16px 60px; }
    .card-head, .card-body { padding-left: 20px; padding-right: 20px; }
    .hero h1 { font-size: 28px; }
    .stepper { grid-template-columns: repeat(4, 1fr); padding: 3px; gap: 3px; }
    .stepper li { padding: 8px 6px; font-size: 11px; flex-direction: column; gap: 2px; text-align: center; }
    .stepper li.done::after { top: 3px; right: 3px; font-size: 10px; }
    .actions { flex-direction: column-reverse; }
    .actions button, .actions a { width: 100%; }
    .confirm-list div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; }
    .confirm-list dd { text-align: left; }
    .site-header .wrap { padding: 12px 16px; }
    .site-footer .wrap { flex-direction: column; gap: 8px; text-align: center; }
}

/* ====== query page ====== */
.query-results {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.query-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    background: var(--bg-elev);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.query-row .q-code {
    font-family: var(--mono);
    color: var(--text);
    font-weight: 500;
}
.query-row .q-meta {
    color: var(--text-dim);
    font-size: 12px;
    margin-top: 3px;
}
.q-badge {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--sans);
    letter-spacing: .02em;
    border: 1px solid transparent;
    white-space: nowrap;
}
.q-badge.unused     { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.q-badge.processing { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.q-badge.used       { background: var(--accent-dim); color: var(--accent); border-color: rgba(16,163,127,.2); }
.q-badge.failed     { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.q-badge.not_found  { background: #f5f5f5; color: #737373; border-color: #e5e5e5; }

/* ====== scrollbar (light) ====== */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 10px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* ====== selection ====== */
::selection {
    background: var(--accent-dim);
    color: var(--accent);
}