/* 账号工作台：结构服务于输入、数据与操作，颜色只表达层级和状态。 */
@import url('fonts/noto-sans-sc.css');

:root {
    color-scheme: light;
    --bg-0: #F5F6F8;
    --bg-1: #FFFFFF;
    --bg-2: #F0F2F5;
    --surface: #FFFFFF;
    --surface-2: #F0F2F5;
    --surface-3: #E6EAF0;
    --line: #D9DFE7;
    --line-strong: #AAB3C0;
    --ink: #202630;
    --ink-dim: #626C79;
    --ink-muted: #626C79;
    --steam-blue: #245FCC;
    --accent: #245FCC;
    --action-fill: #245FCC;
    --action-ink: #FFFFFF;
    --ok: #237343;
    --bad: #BE3434;
    --warn: #8A5B08;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-display: var(--font-body);
    --font-mono: Consolas, 'SFMono-Regular', monospace;
    --radius: 10px;
    --radius-sm: 8px;
}

:root.dark {
    color-scheme: dark;
    --bg-0: #171A20;
    --bg-1: #22262E;
    --bg-2: #292E38;
    --surface: #22262E;
    --surface-2: #292E38;
    --surface-3: #333A46;
    --line: #3B4350;
    --line-strong: #667386;
    --ink: #EDF0F5;
    --ink-dim: #AAB3C0;
    --ink-muted: #AAB3C0;
    --steam-blue: #8AB4FF;
    --accent: #8AB4FF;
    --action-fill: #8AB4FF;
    --action-ink: #171A20;
    --ok: #89D8A5;
    --bad: #FF9E9E;
    --warn: #E8BE6A;
}
/* 切换时提供轻量反馈，公共导航保持可用，避免页面突然闪白。 */
html[data-navigating="true"]::after {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 3px;
    background: var(--steam-blue);
    z-index: 200;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--ink);
    font-family: var(--font-body);
    font-synthesis: none;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
}

a { text-decoration: none; }

/* ---------- 品牌 ---------- */
.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.18rem;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin-right: 10px;
    padding: 4px 2px;
}

.brand-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* ---------- 导航 ---------- */
.glass-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.glass-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 64px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--ink-dim);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: 6px;
    transition: color 0.16s ease, background-color 0.16s ease;
    background: transparent;
    border: none;
    outline: none;
    cursor: pointer;
    min-height: 40px;
    touch-action: manipulation;
}

.nav-link:hover, .drawer-link:hover {
    color: var(--ink);
    background: var(--surface-2);
}

.nav-active-desktop {
    color: var(--accent) !important;
    background: var(--surface-2) !important;
    font-weight: 600;
    box-shadow: none;
}
.nav-link:active, .nav-active-desktop:active { background: var(--surface-3) !important; }
@media (pointer: coarse) { .nav-link { min-height: 44px; } }

#drawer-overlay {
    background: rgba(0, 0, 0, 0.55);
}

#drawer {
    background: var(--surface);
    border-right: 1px solid var(--line);
}

.drawer-link {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 12px;
    padding: 12px 16px;
    border-radius: 6px;
    color: var(--ink-dim);
    font-weight: 500;
    transition: all 0.16s;
    border: none;
    background: transparent;
    outline: none;
}

.nav-active-mobile {
    color: var(--ink) !important;
    background: var(--surface-2) !important;
    border-left: 3px solid var(--accent);
}

/* ---------- Hero ---------- */
.hero-wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 48px;
}

.hero-copy {
    text-align: left;
    margin-bottom: 20px;
}

.hero-copy::after {
    display: none;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-dim);
    font-size: .8rem;
    font-weight: 500;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    font-weight: 600;
    letter-spacing: 0;
    margin: 8px 0;
    line-height: 1.12;
    text-transform: none;
    text-wrap: balance;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--ink-dim);
    margin: 0;
    max-width: 62ch;
    line-height: 1.7;
    text-wrap: pretty;
}

.text-gradient {
    color: var(--ink);
}

/* ---------- 面板 ---------- */
.glass-panel, .glass-modal {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--ink);
}

.panel-subtitle {
    margin: 4px 0 0;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

/* ---------- 表单 ---------- */
.glass-field, .glass-select, .glass-input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    transition: border-color 0.16s, box-shadow 0.16s;
    outline: none;
}

.glass-field::placeholder, .glass-input::placeholder { color: var(--ink-muted); }

.glass-field option, .glass-select option, .input-group select option {
    background: var(--surface);
    color: var(--ink);
}

.glass-field:focus, .glass-input:focus, .glass-select:focus, .input-group:focus-within {
    border-color: var(--steam-blue);
    box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.16);
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    transition: border-color 0.16s, box-shadow 0.16s;
}

.input-group input, .input-group select {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-size: 0.95rem;
}

.input-group input::placeholder { color: var(--ink-muted); }

.field-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-dim);
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.field-label i { width: 16px; height: 16px; }

/* ---------- 按钮 ---------- */
.glass-button, .glass-button-danger, .glass-button-soft, .glass-button-ghost, .glass-button-success {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.16s ease;
    border: 1px solid transparent;
}

/* 实心主按钮帮助熟练用户快速找到提交入口。 */
.glass-button {
    background: var(--action-fill);
    color: var(--action-ink);
    border-color: var(--action-fill);
}
.glass-button:hover {
    filter: brightness(.94);
}

.glass-button-danger {
    background: rgba(225, 91, 91, 0.12);
    color: var(--bad);
    border-color: rgba(225, 91, 91, 0.32);
}
.glass-button-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }

.glass-button-success {
    background: var(--ok);
    color: #0c1710;
    border-color: var(--ok);
}
.glass-button-success:hover { opacity: 0.88; }

.glass-button-soft {
    background: var(--surface-2);
    color: var(--ink);
    border-color: var(--line);
}
.glass-button-soft:hover { background: var(--surface-3); border-color: var(--line-strong); }

.glass-button-ghost {
    background: transparent;
    color: var(--ink-dim);
}
.glass-button-ghost:hover { background: var(--surface-2); color: var(--ink); }

.glass-button:disabled, .glass-button-danger:disabled, .glass-button-soft:disabled,
.glass-button-ghost:disabled, .glass-button-success:disabled, button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* 按压反馈不改变按钮位置，避免连续操作时目标移动。 */
.glass-button:active:not(:disabled),
.glass-button-danger:active:not(:disabled),
.glass-button-soft:active:not(:disabled),
.glass-button-ghost:active:not(:disabled),
.glass-button-success:active:not(:disabled) {
    filter: brightness(.94);
}

/* ---------- 分段选择器 ---------- */
.segmented {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
}

.segmented button, .segmented a, .segmented .segment-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    border-radius: 4px; /* 外层 8px - 内边距 4px，保证同心圆角 */
    color: var(--ink-dim);
    font-family: var(--font-display);
    font-size: 0.86rem;
    transition: all 0.16s;
    cursor: pointer;
    background: transparent;
    border: none;
    font-weight: 500;
}

.tab-active, .segmented .is-active {
    color: var(--ink) !important;
    background: var(--surface-3) !important;
    box-shadow: inset 0 -2px 0 var(--accent);
    border: none !important;
}

/* ---------- 表格 ---------- */
.glass-table-wrap {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    overflow: hidden;
}

.glass-table { width: 100%; border-collapse: collapse; }

.glass-table th {
    background: var(--surface-2);
    color: var(--ink-dim);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    white-space: nowrap;
}

.glass-table td {
    padding: 11px 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.88rem;
    white-space: nowrap;
}

.glass-table tbody tr:last-child td { border-bottom: none; }
.glass-table tbody tr:hover { background: rgba(102, 192, 244, 0.05); }

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 54px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
}
.metric-row:last-child { border-bottom: none; }

/* ---------- 状态徽章 ---------- */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 0.76rem;
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.status-valid {
    background: rgba(143, 199, 138, 0.12);
    color: var(--ok);
    border: 1px solid rgba(143, 199, 138, 0.28);
}

.status-invalid {
    background: rgba(225, 91, 91, 0.12);
    color: var(--bad);
    border: 1px solid rgba(225, 91, 91, 0.28);
}

/* ---------- 复制框 ---------- */
.copy-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 48px 0 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line);
    background: var(--surface);
}

.copy-field input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
}

.copy-field .copy-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-dim);
    cursor: pointer;
    transition: all 0.16s;
}

.copy-field .copy-btn:hover { color: var(--ink); background: var(--surface-3); }
.copy-field .copy-btn:active { transform: translateY(-50%) scale(0.96); }

/* ---------- 公告 ---------- */
.announcement-card {
    position: relative;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    padding: 14px 20px;
    overflow: hidden;
}

.announcement-card::before {
    display: none;
}

.announcement-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.announcement-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink);
    font-size: .8rem;
    font-weight: 600;
}

.announcement-content {
    position: relative;
    color: var(--ink-dim);
    font-size: 0.9rem;
    line-height: 1.75;
    text-wrap: pretty;
    word-break: break-word;
}

.announcement-content b,
.announcement-content strong {
    font-weight: 600;
    color: var(--ink);
}

.announcement-content a {
    color: var(--steam-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.16s;
}
.announcement-content a:hover { color: var(--ink); }

.announcement-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ink-muted);
    font-size: 0.85rem;
}

/* ---------- 公告富文本编辑器（后台） ---------- */
.announcement-editor {
    min-height: 140px;
    max-height: 320px;
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.75;
    outline: none;
    transition: border-color 0.16s, box-shadow 0.16s;
    word-break: break-word;
}

.announcement-editor:focus {
    border-color: var(--steam-blue);
    box-shadow: 0 0 0 3px rgba(102, 192, 244, 0.16);
}

.announcement-editor a { color: var(--steam-blue); text-decoration: underline; text-underline-offset: 2px; }

.announcement-editor:empty::before {
    content: attr(data-placeholder);
    color: var(--ink-muted);
}

/* ---------- 认证卡片 ---------- */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 28px;
    margin: 40px auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    border: 1px solid var(--line);
}

.auth-tabs button {
    min-height: 40px;
    border-radius: 4px; /* 外层 8px - 内边距 4px，保证同心圆角 */
    color: var(--ink-dim);
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: transparent;
    transition: all 0.16s;
}

.hero-orb {
    display: none;
}

/* ---------- 加载指示 ---------- */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(102, 192, 244, 0.2);
    border-top-color: var(--steam-blue);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* 信息直接出现，不以入场动画延迟读取。 */
.fade-in { animation: none; }

/* 弹窗进入动画：轻微上移 + 缩放，柔和且可被中断 */
.glass-modal { animation: modalIn 0.2s cubic-bezier(0.2, 0, 0, 1) both; }

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.surface-grid { display: grid; gap: 24px; }

/* 等宽数字：避免动态数值（倒计时/计数）跳动导致布局抖动 */
.tabular-nums { font-variant-numeric: tabular-nums; }

/* ---------- 滚动条 ---------- */
.custom-scrollbar::-webkit-scrollbar { width: 10px; height: 10px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--surface-3);
    border-radius: 8px;
    border: 2px solid var(--bg-1);
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background: var(--line-strong); }

/* ---------- SweetAlert2 ---------- */
.swal2-popup {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--ink) !important;
    border-radius: var(--radius) !important;
}
.swal2-title { color: var(--ink) !important; }
.swal2-html-container { color: var(--ink-dim) !important; }

/* ---------- 响应式 ---------- */
@media (max-width: 767px) {
    .glass-nav-inner { padding: 0 16px; height: 56px; }
    .hero-wrap { padding: 24px 16px 40px; }
    .panel-header { flex-direction: column; align-items: flex-start; }
    .pagination-bar { flex-wrap: wrap; }
    .auth-card { padding: 24px; }
    .glass-panel, .glass-modal { border-radius: var(--radius); }
}

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


/* 旧页面工具类继续对应主题语义，保留业务模板及 DOM 接口。 */
.text-white, .text-slate-100, .text-slate-200 { color: var(--ink) !important; }
.text-slate-300, .text-slate-400, .text-slate-500 { color: var(--ink-dim) !important; }
.hover\:text-white:hover, .hover\:text-slate-300:hover { color: var(--ink) !important; }
.text-blue-300, .text-blue-400, .text-blue-500, .text-cyan-400, .text-cyan-500,
.text-sky-400, .text-indigo-400, .text-purple-400, .text-fuchsia-400 { color: var(--steam-blue) !important; }
.text-emerald-400, .text-green-400, .text-green-500 { color: var(--ok) !important; }
.text-amber-400, .text-yellow-400 { color: var(--warn) !important; }
.text-red-400, .text-red-500, .text-rose-400 { color: var(--bad) !important; }
.font-bold { font-weight: 600; }
.border-slate-700, .border-slate-800 { border-color: var(--line) !important; }
.border-blue-500 { border-color: var(--accent) !important; }
.border-emerald-500 { border-color: var(--ok) !important; }
.glass-button-success { color: var(--bg-0); }
.status-valid, .status-invalid, .glass-button-danger { background: transparent; }
.status-valid { border-color: var(--ok); }
.status-invalid, .glass-button-danger { border-color: var(--bad); }
.glass-button-danger:hover { background: var(--bad); color: var(--bg-0); }
.drawer-link svg, .nav-link svg, .hero-chip svg, .field-label svg { color: currentColor !important; }
button, input, textarea, select { font-family: var(--font-body); }
input[type=checkbox] { accent-color: var(--accent); }
#card-input, #res-username, #res-steamid { font-family: var(--font-mono); letter-spacing: 0; }
:is(a, button, input, textarea, select, [tabindex]):focus-visible {
    outline: 2px solid var(--accent); outline-offset: 3px;
}
.glass-nav-inner { gap: 12px; max-width: 1440px; }
.glass-nav-inner > :first-child { min-width: 0; flex: 1; }
.nav-link { padding: 8px 10px; white-space: nowrap; }
.theme-control { position: relative; display: inline-flex; flex-shrink: 0; color: var(--ink-dim); }
.theme-control select {
    appearance: none; min-height: 40px; width: 124px; padding: 8px 24px 8px 34px;
    border: 0; border-radius: var(--radius-sm); cursor: pointer;
    background: transparent; color: var(--ink); font-size: .8rem;
    touch-action: manipulation;
}
.theme-control select:hover, .theme-control select:active { background: var(--surface-2); }
.theme-control option { background: var(--surface); color: var(--ink); }
.theme-control svg { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: none; }
.theme-symbol { left: 10px; width: 16px; height: 16px; }
.theme-chevron { right: 8px; width: 14px; height: 14px; }
.theme-control:focus-within { color: var(--accent); }
@media (pointer: coarse) { .theme-control select { min-height: 44px; } }
.record-stat-total { color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); }
.record-stat-total #all-keys-stat-total { font-weight: 600; font-variant-numeric: tabular-nums; }
.theme-control-standalone { position: fixed; right: 16px; top: 16px; z-index: 80; }
.group:focus-within .group-hover\:visible { visibility: visible; }
.group:focus-within .group-hover\:opacity-100 { opacity: 1; }
.group:focus-within .group-hover\:pointer-events-auto { pointer-events: auto; }
@media (min-width: 768px) and (max-width: 1099px) {
    .nav-link { padding: 8px 6px; font-size: .8rem; gap: 4px; }
    .nav-link svg { display: none; }
    #desktop-auth > div { padding: 8px; }
    .glass-nav-inner { gap: 8px; padding: 0 12px; }
}
.bg-\[\#18181b\] { background-color: var(--surface-2) !important; }
.border-\[\#27272a\] { border-color: var(--line) !important; }
.bg-\[\#09090b\] { background-color: var(--surface-2) !important; }
.border-\[\#3f3f46\] { border-color: var(--line) !important; }
.bg-\[\#0f0f13\] { background-color: var(--surface-2) !important; }
.focus\:bg-\[\#1d2732\]:focus { background-color: var(--surface-2) !important; }
.focus\:text-\[\#e9eef3\]:focus { color: var(--ink) !important; }
.bg-\[\#27272a\] { background-color: var(--surface-2) !important; }
.hover\:border-\[\#3f3f46\]:hover { border-color: var(--line) !important; }

/* 图标对应内容类别，统一中性色避免把类别误读为成功或警告。 */
.workbench-icon { background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.panel-title svg { color: var(--ink-dim) !important; }
.placeholder\:text-slate-500::placeholder { color: var(--ink-muted); }
.bg-slate-950\/40 { background: var(--surface-2); }
.text-emerald-500 { color: var(--ok) !important; }
.border-emerald-500\/30 { border-color: var(--ok) !important; }
.border-amber-500\/30 { border-color: var(--warn) !important; }
.border-red-500\/30 { border-color: var(--bad) !important; }
.hover\:text-blue-300:hover, .hover\:text-blue-400:hover { color: var(--accent) !important; }
.hover\:text-red-400:hover { color: var(--bad) !important; }
.glass-button, .glass-button svg { color: var(--action-ink) !important; }
.glass-button-soft { color: var(--ink) !important; border-color: var(--line) !important; }
.glass-button-soft svg { color: currentColor !important; }
.glass-button-soft:hover { border-color: var(--line-strong) !important; background: var(--surface-3) !important; }
#desktop-auth svg { color: var(--ink-dim) !important; }
/* 图片上方使用固定暗遮罩，图标需保持白色以便两套主题下都能识别。 */
.avatar-upload-overlay svg { color: #FFFFFF !important; }
#drawer { transition-duration: .2s; }
.duration-300 { transition-duration: .2s; }

.onboarding-card {
    position: fixed; z-index: 90; margin: 0; padding: 20px;
    background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong);
    border-radius: var(--radius); box-shadow: 0 8px 32px rgb(0 0 0 / .16);
    font-size: .9rem;
}
.onboarding-card h2 { margin: 4px 0 10px; font-size: 1rem; font-weight: 600; }
.onboarding-card p { margin: 0; }
.onboarding-count { color: var(--ink-dim); font-size: .8rem; font-variant-numeric: tabular-nums; }
.onboarding-card #onboarding-description { color: var(--ink-dim); line-height: 1.75; }
.onboarding-error { color: var(--bad); }
.onboarding-error:not(:empty) { padding-top: 10px; }
.onboarding-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
.onboarding-actions button { min-height: 40px; }
.onboarding-highlight {
    position: fixed; z-index: 85; border: 2px solid var(--accent);
    border-radius: var(--radius-sm); pointer-events: none;
}
