/* ============================================================================
   SMARTPHONE EMPIRE — Data-Dense Pro Theme
   Consolidated v2027.10 final.
   ============================================================================ */

/* ============================================================================
   1. DESIGN TOKENS
   ============================================================================ */
:root {
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
    --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

    --fs-2xs: 10px; --fs-xs: 11px; --fs-sm: 12px; --fs-base: 13px;
    --fs-md: 14px; --fs-lg: 16px; --fs-xl: 20px; --fs-2xl: 26px; --fs-3xl: 32px;

    --lh-tight: 1.15; --lh-base: 1.45; --lh-loose: 1.6;

    --fw-normal: 400; --fw-medium: 500; --fw-semibold: 600;
    --fw-bold: 700; --fw-black: 800;

    --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
    --sp-5: 20px; --sp-6: 24px; --sp-8: 32px;

    --r-sm: 4px; --r: 8px; --r-md: 10px;
    --r-lg: 12px; --r-xl: 16px; --r-pill: 999px;

    --nav-h: 62px;

    --success: #10b981;
    --warn: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --success-soft: rgba(16,185,129,0.14);
    --warn-soft: rgba(245,158,11,0.14);
    --danger-soft: rgba(239,68,68,0.14);
    --info-soft: rgba(59,130,246,0.14);
}

/* ============================================================================
   2. THEME DARK / LIGHT
   ============================================================================ */
:root,
[data-theme="dark"] {
    --bg-0: #0a0c10; --bg-1: #0f1218; --bg-2: #161b24;
    --bg-3: #1e2530; --bg-4: #2a3341;
    --border: rgba(255,255,255,0.07);
    --border-strong: rgba(255,255,255,0.13);
    --text-primary: #e8eaee; --text-secondary: #a0a8b3;
    --text-tertiary: #6a7280; --text-disabled: #4a5260;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
    --shadow: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.55);
    --bg-overlay: rgba(0,0,0,0.72);
    --bg-header: rgba(15,18,24,0.88);
    --bg-nav: rgba(15,18,24,0.92);
}

[data-theme="light"] {
    --bg-0: #ffffff; --bg-1: #f8f9fb; --bg-2: #f1f3f7;
    --bg-3: #e5e8ee; --bg-4: #d0d5dd;
    --border: rgba(0,0,0,0.08);
    --border-strong: rgba(0,0,0,0.15);
    --text-primary: #0f1218; --text-secondary: #4a5260;
    --text-tertiary: #6a7280; --text-disabled: #a0a8b3;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.16);
    --bg-overlay: rgba(15,18,24,0.5);
    --bg-header: rgba(255,255,255,0.9);
    --bg-nav: rgba(255,255,255,0.94);
}

/* ============================================================================
   3. ACCENT COLORS
   ============================================================================ */
[data-accent="blue"]    { --accent:#2563eb; --accent-hover:#1d4ed8; --accent-soft:rgba(37,99,235,0.14); --accent-glow:rgba(37,99,235,0.28); }
[data-accent="emerald"] { --accent:#10b981; --accent-hover:#059669; --accent-soft:rgba(16,185,129,0.14); --accent-glow:rgba(16,185,129,0.28); }
[data-accent="violet"]  { --accent:#8b5cf6; --accent-hover:#7c3aed; --accent-soft:rgba(139,92,246,0.14); --accent-glow:rgba(139,92,246,0.28); }
[data-accent="amber"]   { --accent:#f59e0b; --accent-hover:#d97706; --accent-soft:rgba(245,158,11,0.16); --accent-glow:rgba(245,158,11,0.3); }
[data-accent="rose"]    { --accent:#f43f5e; --accent-hover:#e11d48; --accent-soft:rgba(244,63,94,0.14); --accent-glow:rgba(244,63,94,0.28); }
[data-accent="cyan"]    { --accent:#06b6d4; --accent-hover:#0891b2; --accent-soft:rgba(6,182,212,0.14); --accent-glow:rgba(6,182,212,0.28); }

/* ============================================================================
   4. RESET & BASE
   ============================================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; }
body {
    background: var(--bg-0);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior: none;
    user-select: none;
    transition: background 0.25s, color 0.25s;
}
#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }

/* ============================================================================
   5. HEADER
   ============================================================================ */
.app-header {
    flex: 0 0 auto;
    background: var(--bg-header);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    padding-top: env(safe-area-inset-top);
    position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px 11px; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.header-company-btn {
    display: flex; align-items: center; gap: 4px;
    background: transparent; border: none; padding: 2px 4px;
    cursor: pointer; color: inherit; font: inherit;
    min-width: 0; max-width: 60%; text-align: left;
    border-radius: var(--r-sm); transition: background 0.15s;
}
.header-company-btn:active { background: var(--accent-soft); }
.header-company {
    font-size: var(--fs-md); font-weight: var(--fw-bold);
    letter-spacing: -0.02em; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.header-chevron { color: var(--text-tertiary); font-size: 14px; font-weight: 400; line-height: 1; flex-shrink: 0; }
.header-cash {
    font-size: var(--fs-md); font-weight: var(--fw-bold);
    color: var(--accent); font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em; flex-shrink: 0;
}
.header-meta {
    display: flex; align-items: center; gap: 5px;
    font-size: var(--fs-xs); color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
    flex: 1; min-width: 0; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis;
}
.header-status { font-weight: var(--fw-bold); color: var(--warn); }
.header-status.running { color: var(--success); }
.header-controls { display: flex; gap: 5px; flex-shrink: 0; }
.header-warn {
    background: var(--warn); color: #1a1a1a;
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 2px 6px; border-radius: var(--r-pill);
    margin-right: 4px; flex-shrink: 0;
}
.btn-icon {
    min-width: 34px; height: 30px; padding: 0 8px;
    background: var(--bg-3); color: var(--text-primary);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    cursor: pointer; display: inline-flex;
    align-items: center; justify-content: center;
    transition: background 0.12s, transform 0.06s, border-color 0.12s;
    font-family: inherit;
}
.btn-icon:hover { background: var(--bg-4); border-color: var(--border-strong); }
.btn-icon:active { transform: scale(0.94); }

/* ============================================================================
   6. VIEW
   ============================================================================ */
.app-view {
    flex: 1 1 auto; overflow-y: auto; overflow-x: hidden;
    padding: 12px 12px 0;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(20px + var(--nav-h) + env(safe-area-inset-bottom));
    background: transparent; touch-action: pan-y;
}
#sidebar { display: none; }

/* ============================================================================
   7. BOTTOM NAV
   ============================================================================ */
.mobile-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg-nav);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-top: 1px solid var(--border);
    display: grid; grid-template-columns: repeat(6, 1fr);
    z-index: 20; touch-action: none;
    position: relative;
}
.nav-btn {
    background: transparent; border: none;
    color: var(--text-tertiary); font-size: 9.5px;
    font-weight: var(--fw-semibold);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2px;
    cursor: pointer; padding: 6px 2px;
    position: relative;
    transition: color 0.15s, transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 44px; font-family: inherit;
    letter-spacing: -0.005em; z-index: 1;
}
.nav-btn.active { color: var(--accent); }
.nav-btn:active { transform: scale(0.94); }
.nav-btn .nav-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; line-height: 1; color: inherit;
    transition: transform 0.15s, color 0.15s;
}
.nav-btn .nav-ico svg { width: 100%; height: 100%; display: block; }
.nav-btn.active .nav-ico {
    transform: scale(1.1);
    animation: rotateSubtle 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-btn:active .nav-ico { transform: scale(0.92); }
.nav-btn .nav-label {
    font-size: 9.5px; font-weight: var(--fw-semibold);
    letter-spacing: -0.005em; line-height: 1; margin-top: 2px;
}

/* Liquid Glass Nav Slider */
.nav-slider {
    position: absolute; top: 6px;
    height: calc(100% - 12px); left: 0; width: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 2px 14px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
                width 0.42s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none; z-index: 0;
    will-change: transform, width;
}
[data-theme="light"] .nav-slider {
    background: rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow:
        0 2px 12px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}
.mobile-nav.dragging { cursor: grabbing; }
.mobile-nav.dragging .nav-slider {
    transition: none !important;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .mobile-nav.dragging .nav-slider {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.15);
}
.mobile-nav .nav-btn.drag-hover { color: var(--text-primary); transform: scale(1.06); }
.mobile-nav .nav-btn.drag-hover .nav-ico { transform: scale(1.12); }

/* ============================================================================
   8. CARDS
   ============================================================================ */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.18s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.18s, background 0.15s;
}
@media (hover: hover) {
    .card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
        border-color: var(--border-strong);
    }
}
.card-title {
    font-size: var(--fs-2xs); color: var(--text-secondary);
    font-weight: var(--fw-bold); letter-spacing: 0.7px;
    text-transform: uppercase; margin-bottom: 10px;
}

/* ============================================================================
   9. KPI
   ============================================================================ */
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.kpi {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px 14px;
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.kpi::before {
    content: ""; position: absolute;
    top: 0; left: 0; bottom: 0; width: 3px;
    background: var(--accent);
    animation: kpiGlowStrong 4s ease-in-out infinite;
}
.kpi.blue::before  { background: var(--info); }
.kpi.warn::before  { background: var(--warn); }
.kpi.green::before { background: var(--success); }
.kpi.danger::before{ background: var(--danger); }
.kpi-label {
    font-size: var(--fs-2xs); color: var(--text-secondary);
    margin-bottom: 4px; text-transform: uppercase;
    letter-spacing: 0.6px; font-weight: var(--fw-semibold);
}
.kpi-value {
    font-size: var(--fs-xl); font-weight: var(--fw-black);
    font-variant-numeric: tabular-nums; line-height: 1.1;
    letter-spacing: -0.025em; color: var(--text-primary);
}
.kpi-sub {
    font-size: 10px; font-weight: var(--fw-semibold);
    letter-spacing: 0.2px; margin-top: 3px;
    color: var(--text-tertiary);
}

/* ============================================================================
   10. PROGRESS
   ============================================================================ */
.progress {
    height: 6px; background: var(--bg-4);
    border-radius: var(--r-pill); overflow: hidden; position: relative;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent));
    border-radius: var(--r-pill);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%; min-width: 0;
}
.progress-bar:not([style*="width:0%"]) {
    background-size: 200% 100%;
    background-image: linear-gradient(
        90deg, var(--accent-hover) 0%, var(--accent) 40%,
        var(--accent-hover) 60%, var(--accent) 100%
    );
    animation: progressShimmer 2.4s linear infinite;
}
.progress-label {
    display: flex; justify-content: space-between;
    font-size: var(--fs-xs); color: var(--text-secondary);
    margin-bottom: 6px; font-weight: var(--fw-medium);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   11. EMPTY STATE
   ============================================================================ */
.empty { text-align: center; padding: 48px 20px; color: var(--text-secondary); }
.empty-ico { font-size: 40px; margin-bottom: 12px; opacity: 0.5; }
.empty-title {
    font-size: var(--fs-lg); font-weight: var(--fw-bold);
    color: var(--text-primary); margin-bottom: 6px;
    letter-spacing: -0.015em;
}
.empty-desc {
    font-size: var(--fs-sm); color: var(--text-secondary);
    margin-bottom: 14px; line-height: var(--lh-loose);
}
.empty-hint {
    display: inline-block;
    background: var(--accent-soft);
    padding: 4px 12px; border-radius: var(--r-pill);
    font-size: var(--fs-xs); color: var(--accent);
    font-weight: var(--fw-bold); letter-spacing: 0.3px;
}

/* ============================================================================
   12. LOG
   ============================================================================ */
.log-entry {
    display: flex; gap: 8px; padding: 6px 0;
    font-size: var(--fs-sm); line-height: var(--lh-base);
    border-bottom: 1px solid var(--border);
}
.log-entry:last-child { border-bottom: none; }
.log-time {
    color: var(--text-tertiary); flex-shrink: 0;
    font-size: var(--fs-2xs); padding-top: 1px;
    font-variant-numeric: tabular-nums; min-width: 52px;
}
.log-text { color: var(--text-primary); flex: 1; word-break: break-word; }
.log-empty { color: var(--text-tertiary); font-size: var(--fs-sm); padding: 4px 0; }

/* ============================================================================
   13. MILESTONE
   ============================================================================ */
.ms-list { display: flex; flex-direction: column; gap: 6px; }
.ms-row { display: flex; gap: 10px; font-size: var(--fs-sm); line-height: var(--lh-base); }
.ms-year {
    color: var(--accent); font-weight: var(--fw-bold);
    flex-shrink: 0; min-width: 40px;
    font-variant-numeric: tabular-nums;
}
.ms-text { color: var(--text-primary); flex: 1; }

/* ============================================================================
   14. QUEST
   ============================================================================ */
.quest-item {
    display: flex; gap: 10px; padding: 8px 0;
    align-items: flex-start; border-bottom: 1px solid var(--border);
}
.quest-item:last-child { border-bottom: none; }
.quest-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--warn); margin-top: 6px; flex-shrink: 0;
    animation: questBreath 2.4s ease-in-out infinite;
}
.quest-title {
    font-size: var(--fs-base); font-weight: var(--fw-semibold);
    color: var(--text-primary); margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.quest-desc { font-size: var(--fs-xs); color: var(--text-secondary); line-height: var(--lh-base); }

/* ============================================================================
   15. CHART
   ============================================================================ */
.chart-wrap { position: relative; width: 100%; height: 150px; }
.chart-canvas { display: block; width: 100%; height: 150px; }
.chart-empty {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-sm); color: var(--text-tertiary);
}

/* ============================================================================
   16. BUTTONS
   ============================================================================ */
.btn-primary, .btn-secondary, .btn-danger {
    min-height: 42px; padding: 10px 16px;
    border-radius: var(--r); border: 1px solid transparent;
    font-size: var(--fs-base); font-weight: var(--fw-semibold);
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.15s, border-color 0.15s,
                box-shadow 0.15s, opacity 0.15s;
    font-family: inherit; letter-spacing: -0.005em;
}
.btn-primary { background: var(--accent); color: #ffffff; box-shadow: 0 2px 8px var(--accent-glow); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.96); }
@media (hover: hover) { .btn-primary:hover { box-shadow: 0 4px 14px var(--accent-glow); } }
.btn-secondary { background: var(--bg-3); color: var(--text-primary); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg-4); border-color: var(--border-strong); }
.btn-secondary:active { transform: scale(0.96); }
.btn-danger { background: var(--danger-soft); color: var(--danger); border-color: rgba(239,68,68,0.28); }
.btn-danger:hover { background: rgba(239,68,68,0.22); }
.btn-danger:active { transform: scale(0.96); }
.btn-primary:disabled, .btn-secondary:disabled, .btn-danger:disabled {
    opacity: 0.45; cursor: not-allowed; transform: none !important;
}
.btn-toggle {
    background: var(--bg-3); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: var(--r-sm);
    padding: 7px 12px; font-size: var(--fs-xs);
    font-weight: var(--fw-bold); cursor: pointer;
    min-width: 60px; font-family: inherit;
    transition: background 0.15s;
}
.btn-toggle.on { background: var(--accent); color: #ffffff; border-color: var(--accent); }

/* ============================================================================
   17. FORM FIELDS
   ============================================================================ */
.field-label {
    display: block; font-size: var(--fs-xs);
    color: var(--text-secondary); margin-bottom: 6px;
    margin-top: 6px; font-weight: var(--fw-semibold); letter-spacing: 0.2px;
}
.field-input {
    width: 100%; padding: 12px 14px;
    border-radius: var(--r); background: var(--bg-3);
    color: var(--text-primary); border: 1px solid var(--border);
    font-size: var(--fs-md); outline: none; font-family: inherit;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.field-input:focus {
    border-color: var(--accent); background: var(--bg-2);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.field-textarea {
    width: 100%; padding: 10px 12px;
    border-radius: var(--r); background: var(--bg-3);
    color: var(--text-primary); border: 1px solid var(--border);
    font-size: var(--fs-2xs); font-family: var(--font-mono);
    resize: vertical; min-height: 120px; outline: none;
    line-height: var(--lh-base);
}

/* ============================================================================
   18. DIFFICULTY SELECTOR
   ============================================================================ */
.diff-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.diff-btn {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); padding: 12px 14px;
    text-align: left; cursor: pointer; color: var(--text-primary);
    min-height: 60px;
    transition: border-color 0.15s, background 0.15s, transform 0.06s;
    font-family: inherit;
}
.diff-btn:active { transform: scale(0.99); }
.diff-btn.active {
    border-color: var(--accent); background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.diff-label { font-size: var(--fs-base); font-weight: var(--fw-bold); margin-bottom: 2px; letter-spacing: -0.01em; }
.diff-desc { font-size: var(--fs-xs); color: var(--text-secondary); line-height: var(--lh-base); }

/* ============================================================================
   19. SUMMARY ROWS
   ============================================================================ */
.sum-row {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; padding: 9px 0;
    font-size: var(--fs-base); color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    line-height: var(--lh-base);
}
.sum-row:last-of-type { border-bottom: none; }
.sum-row.total {
    font-weight: var(--fw-bold); font-size: var(--fs-md);
    padding-top: 12px; border-top: 1px solid var(--border-strong);
    border-bottom: none; margin-top: 4px; letter-spacing: -0.01em;
}
.sum-row b {
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fw-semibold);
}

/* ============================================================================
   20. GLOSSARY / TIPS
   ============================================================================ */
.gloss-row {
    display: flex; flex-direction: column; gap: 2px;
    padding: 8px 0; border-bottom: 1px solid var(--border);
    font-size: var(--fs-sm);
}
.gloss-row:last-child { border-bottom: none; }
.gloss-row b { color: var(--accent); font-size: var(--fs-base); font-weight: var(--fw-bold); }
.gloss-row span { color: var(--text-secondary); line-height: var(--lh-base); }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.tips-list li {
    font-size: var(--fs-sm); color: var(--text-secondary);
    padding-left: 16px; position: relative; line-height: var(--lh-base);
}
.tips-list li::before {
    content: "→"; position: absolute; left: 0;
    color: var(--accent); font-weight: var(--fw-bold);
}
/* ============================================================================
   21. SUB-TAB BAR
   ============================================================================ */
.subtab-bar {
    display: flex; gap: 2px; margin-bottom: 12px;
    background: var(--bg-2); padding: 4px;
    border-radius: var(--r-md); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.subtab-btn {
    flex: 1; padding: 9px 6px;
    background: transparent; color: var(--text-secondary);
    border: none; border-radius: var(--r-sm);
    font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    cursor: pointer; min-height: 38px;
    transition: background 0.15s, color 0.15s,
                transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: inherit; letter-spacing: -0.005em;
}
.subtab-btn.active {
    background: var(--bg-4); color: var(--text-primary);
    box-shadow: var(--shadow-sm), 0 1px 3px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px var(--border-strong);
}
.subtab-btn:active { transform: scale(0.97); }

/* ============================================================================
   22. CHIP FILTER
   ============================================================================ */
.chip-bar {
    display: flex; gap: 6px; overflow-x: auto;
    padding-bottom: 8px; margin-bottom: 8px;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.chip-bar::-webkit-scrollbar { display: none; }
.chip {
    flex-shrink: 0; padding: 7px 14px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-pill); color: var(--text-secondary);
    font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    cursor: pointer; white-space: nowrap;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.15s, color 0.15s,
                border-color 0.15s, box-shadow 0.15s;
    font-family: inherit; letter-spacing: -0.005em;
}
@media (hover: hover) {
    .chip:hover:not(.active) { border-color: var(--border-strong); transform: translateY(-1px); }
}
.chip.active {
    background: var(--accent); color: #ffffff; border-color: var(--accent);
    box-shadow: 0 2px 10px var(--accent-glow), 0 0 0 2px var(--accent-soft);
}
.chip:active { transform: scale(0.94); }

.chip-small {
    background: var(--bg-3); border: 1px solid var(--border);
    color: var(--text-secondary); padding: 7px 12px;
    border-radius: var(--r-pill); font-size: var(--fs-xs);
    font-weight: var(--fw-semibold); cursor: pointer;
    font-family: inherit; min-height: 34px;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.15s, color 0.15s, border-color 0.15s;
}
.chip-small.active {
    background: var(--accent); color: #ffffff; border-color: var(--accent);
    box-shadow: 0 2px 6px var(--accent-glow);
}
.chip-small:active { transform: scale(0.94); }

/* ============================================================================
   23. TECH NODE
   ============================================================================ */
.tech-node-list { display: flex; flex-direction: column; gap: 8px; }
.tech-node {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 12px 14px;
    cursor: pointer; border-left: 3px solid var(--text-disabled);
    transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.16s, background 0.16s, border-left-color 0.16s;
    box-shadow: var(--shadow-sm);
}
@media (hover: hover) {
    .tech-node:hover {
        background: var(--bg-3);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
        transform: translateX(2px);
    }
}
.tech-node:active { transform: scale(0.985); }
.tech-node.tech-available { border-left-color: var(--info); }
.tech-node.tech-running   { border-left-color: var(--warn); }
.tech-node.tech-done      { border-left-color: var(--success); opacity: 0.75; }
.tech-node.tech-locked    { opacity: 0.58; }

.tech-node-head {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 8px; margin-bottom: 6px;
}
.tech-node-title {
    font-size: var(--fs-base); font-weight: var(--fw-bold);
    color: var(--text-primary); margin-bottom: 2px;
    letter-spacing: -0.01em;
}
.tech-node-cat { font-size: var(--fs-2xs); color: var(--text-tertiary); }
.tech-node-desc {
    font-size: var(--fs-sm); color: var(--text-secondary);
    line-height: var(--lh-base); margin-bottom: 8px;
}
.tech-node-foot {
    display: flex; gap: 12px;
    font-size: var(--fs-xs); color: var(--text-secondary);
    flex-wrap: wrap; align-items: center;
    font-variant-numeric: tabular-nums;
}
.tech-node-reason {
    color: var(--warn); font-size: var(--fs-2xs);
    flex-basis: 100%; margin-top: 3px;
    font-weight: var(--fw-medium);
}
.tech-status-badge {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 4px 9px; border-radius: var(--r-pill);
    white-space: nowrap; flex-shrink: 0; letter-spacing: 0.2px;
}
.badge-done      { background: var(--success-soft); color: var(--success); }
.badge-running   { background: var(--warn-soft);    color: var(--warn); }
.badge-available { background: var(--info-soft);    color: var(--info); }
.badge-locked    { background: var(--bg-4);          color: var(--text-tertiary); }

.active-research-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-top: 10px; margin-bottom: 4px;
}

/* ============================================================================
   24. OS STAT BAR
   ============================================================================ */
.os-stat-grid { display: flex; flex-direction: column; gap: 6px; }
.os-stat-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-xs); }
.os-stat-row.compact { font-size: var(--fs-2xs); }
.os-stat-label {
    flex: 0 0 72px; color: var(--text-secondary);
    font-size: var(--fs-2xs); font-weight: var(--fw-medium);
}
.os-stat-bar {
    flex: 1; height: 5px; background: var(--bg-4);
    border-radius: var(--r-pill); overflow: hidden;
}
.os-stat-fill {
    height: 100%; border-radius: var(--r-pill);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.os-stat-value {
    flex: 0 0 28px; text-align: right;
    font-weight: var(--fw-bold);
    font-variant-numeric: tabular-nums; font-size: var(--fs-2xs);
}

/* ============================================================================
   25. OS FEATURES
   ============================================================================ */
.era-group { margin-bottom: 14px; }
.era-label {
    font-size: var(--fs-2xs); color: var(--text-tertiary);
    font-weight: var(--fw-bold); letter-spacing: 0.7px;
    text-transform: uppercase; margin-bottom: 6px; margin-top: 4px;
}
.feature-item {
    display: flex; justify-content: space-between;
    align-items: center; gap: 8px;
    padding: 9px 11px; background: var(--bg-3);
    border-radius: var(--r); margin-bottom: 5px;
    cursor: pointer; border-left: 3px solid transparent;
    transition: background 0.15s, transform 0.06s;
}
.feature-item:active { transform: scale(0.99); background: var(--bg-4); }
.feature-owned      { border-left-color: var(--success); }
.feature-developing { border-left-color: var(--warn); }
.feature-available  { border-left-color: var(--info); }
.feature-locked     { opacity: 0.55; }
.feature-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.feature-status { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }
.feature-badge {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 3px 8px; border-radius: var(--r-pill); flex-shrink: 0;
}
.badge-owned      { background: var(--success-soft); color: var(--success); }
.badge-developing { background: var(--warn-soft);    color: var(--warn); }
.badge-available  { background: var(--info-soft);    color: var(--info); }
.badge-locked     { background: var(--bg-4);          color: var(--text-tertiary); }

/* ============================================================================
   26. BUGS
   ============================================================================ */
.bug-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--border);
}
.bug-item:last-child { border-bottom: none; }
.bug-name {
    font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    color: var(--warn);
}
.bug-name::before {
    content: ""; display: inline-block;
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--warn); margin-right: 8px;
    vertical-align: middle;
    box-shadow: 0 0 0 3px var(--warn-soft);
    animation: bugAlert 1.6s ease-in-out infinite;
}
.bug-meta { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }
.bug-badge {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 3px 8px; border-radius: var(--r-pill);
    background: var(--warn-soft); color: var(--warn);
}

/* ============================================================================
   27. APPS
   ============================================================================ */
.app-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 0; border-bottom: 1px solid var(--border);
}
.app-item:last-child { border-bottom: none; }
.app-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.app-meta { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }
.app-badge {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 3px 8px; border-radius: var(--r-pill);
    background: var(--success-soft); color: var(--success);
}
.app-badge.locked { background: var(--bg-4); color: var(--text-tertiary); }

/* ============================================================================
   28. LICENSE
   ============================================================================ */
.license-item {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 12px; background: var(--bg-3);
    border-radius: var(--r); margin-bottom: 6px;
}
.license-item.locked { opacity: 0.45; }
.license-name { font-size: var(--fs-base); font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.license-meta { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }
.license-stat {
    font-size: var(--fs-md); font-weight: var(--fw-bold);
    color: var(--accent); background: var(--accent-soft);
    padding: 4px 10px; border-radius: var(--r-sm);
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   29. WIZARD / DESIGN
   ============================================================================ */
.wiz-step-indicator { display: flex; gap: 6px; justify-content: center; margin: 8px 0 4px; }
.wiz-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--bg-4);
    transition: background 0.25s, transform 0.25s;
}
.wiz-dot.active {
    background: var(--accent); transform: scale(1.3);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.wiz-dot.done { background: var(--accent); opacity: 0.5; }

.wiz-options { display: flex; flex-direction: column; gap: 6px; }
.wiz-options-row {
    display: flex; gap: 6px; overflow-x: auto;
    padding-bottom: 6px; scrollbar-width: none;
}
.wiz-options-row::-webkit-scrollbar { display: none; }

.wiz-option {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); padding: 10px 12px;
    color: var(--text-primary); font-size: var(--fs-sm);
    text-align: left; cursor: pointer;
    min-height: 46px; min-width: 130px; flex-shrink: 0;
    font-family: inherit;
    transition: border-color 0.15s, background 0.15s,
                transform 0.06s, box-shadow 0.15s;
    line-height: 1.35;
}
.wiz-option:active { transform: scale(0.98); }
.wiz-option.selected {
    border-color: var(--accent); background: var(--accent-soft);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.wiz-opt-name { font-weight: var(--fw-semibold); letter-spacing: -0.005em; }
.wiz-opt-meta { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }

.wiz-cat { margin-bottom: 14px; }
.wiz-cat-title {
    font-size: var(--fs-2xs); color: var(--text-secondary);
    font-weight: var(--fw-bold); letter-spacing: 0.5px;
    text-transform: uppercase; margin-bottom: 6px;
}
.wiz-empty { font-size: var(--fs-sm); color: var(--text-tertiary); padding: 8px 0; }

.wiz-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.wiz-color {
    width: 36px; height: 36px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.wiz-color.selected {
    border-color: var(--accent); transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.wiz-color:active { transform: scale(0.92); }

.wiz-nav { display: flex; gap: 8px; margin-top: 14px; }
.wiz-feature {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--bg-3);
    border-radius: var(--r); margin-bottom: 6px;
    cursor: pointer; transition: background 0.15s;
}
.wiz-feature:active { background: var(--bg-4); }
.wiz-feature input[type="checkbox"] {
    width: 20px; height: 20px; accent-color: var(--accent);
    cursor: pointer; flex-shrink: 0;
}
.wiz-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.wiz-meta { font-size: var(--fs-2xs); color: var(--text-tertiary); margin-top: 2px; }

.wiz-era-banner {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: var(--r);
    border: 1px solid; margin-bottom: 12px;
    background: linear-gradient(90deg, var(--bg-3) 0%, var(--bg-2) 100%);
}
.wiz-era-year {
    font-size: 24px; font-weight: 800;
    letter-spacing: -0.03em; color: var(--text-primary);
    font-variant-numeric: tabular-nums; line-height: 1; flex-shrink: 0;
}
.wiz-era-info { flex: 1; min-width: 0; }
.wiz-era-label { font-size: 13px; font-weight: 700; margin-bottom: 2px; letter-spacing: -0.005em; }
.wiz-era-desc { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }

.wiz-preview-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) {
    .wiz-preview-layout { flex-direction: row; align-items: flex-start; }
    .wiz-preview-left  { flex: 0 0 180px; }
    .wiz-preview-right { flex: 1; min-width: 0; }
}
.wiz-preview-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.wiz-preview-device {
    padding: 12px;
    background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-2) 100%);
    border-radius: var(--r-lg); border: 1px solid var(--border);
    display: flex; justify-content: center; align-items: center;
    min-height: 200px;
}
.wiz-preview-radar { display: flex; justify-content: center; align-items: center; }
.wiz-preview-right { display: flex; flex-direction: column; }

.wiz-price-layout { display: flex; gap: 10px; margin-top: 4px; }
.wiz-price-layout > div { flex: 1; min-width: 0; }

.wiz-mockup-live {
    display: flex; justify-content: center; align-items: center;
    padding: 12px 0 14px; min-height: 190px;
    background: linear-gradient(180deg, var(--bg-3) 0%, transparent 100%);
    border-radius: var(--r-lg); margin-bottom: 12px;
    animation: wizMockupIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ============================================================================
   30. PREVIEW ROWS
   ============================================================================ */
.preview-row {
    display: flex; justify-content: space-between; align-items: center;
    font-size: var(--fs-sm); padding: 7px 0;
    border-bottom: 1px solid var(--border);
    line-height: var(--lh-base);
}
.preview-row:last-of-type { border-bottom: none; }
.preview-row b { font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); }

/* ============================================================================
   31. PRODUCT & COMPETITOR
   ============================================================================ */
.prod-list, .comp-list { display: flex; flex-direction: column; gap: 8px; }
.prod-card, .comp-card {
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.16s, background 0.16s;
}
@media (hover: hover) {
    .prod-card:hover, .comp-card:hover {
        background: var(--bg-3);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    }
}
.prod-card:active, .comp-card:active { transform: scale(0.99); }
.prod-badge {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    padding: 3px 8px; border-radius: var(--r-pill);
    flex-shrink: 0; letter-spacing: 0.2px;
}
.prod-badge.selling { background: var(--success-soft); color: var(--success); }
.prod-badge.disc    { background: var(--bg-4); color: var(--text-tertiary); }
.prod-stats-mini {
    display: flex; gap: 12px;
    font-size: var(--fs-xs); color: var(--text-secondary);
    margin-top: 6px; flex-wrap: wrap;
    font-variant-numeric: tabular-nums;
}

/* ============================================================================
   32. MODAL
   ============================================================================ */
.modal-root { position: fixed; inset: 0; pointer-events: none; z-index: 9999; }
.modal-backdrop {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0; opacity: 0;
    transition: opacity 0.22s;
    pointer-events: auto; z-index: 9999;
}
.modal-backdrop.visible { opacity: 1; animation: backdropIn 0.22s ease-out; }
.modal-card {
    background: var(--bg-2); color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
    width: 100%; max-width: 480px; max-height: 88vh;
    overflow-y: auto; transform: translateY(24px);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 0 -8px 40px rgba(0,0,0,0.5);
    animation: modalSlideIn 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.modal-backdrop.visible .modal-card { transform: translateY(0); }
.modal-title {
    font-size: var(--fs-lg); font-weight: var(--fw-bold);
    margin-bottom: 4px; letter-spacing: -0.02em;
}
.modal-sub {
    font-size: var(--fs-sm); color: var(--text-secondary);
    margin-bottom: 16px; line-height: var(--lh-base);
}
@media (min-width: 768px) {
    .modal-backdrop { align-items: center; padding: 24px; }
    .modal-card { border-radius: var(--r-xl); max-height: 86vh; }
             }
/* ============================================================================
   33. TOAST
   ============================================================================ */
.toast-container {
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    left: 50%; transform: translateX(-50%);
    z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
    width: min(94vw, 420px); pointer-events: none;
}
.toast-container > * { pointer-events: auto; }
.toast-container:not(:empty) { animation: toastContainerHint 4s ease-in-out infinite; }
.toast {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); padding: 11px 14px;
    font-size: var(--fs-sm); color: var(--text-primary);
    box-shadow: var(--shadow);
    animation: toastIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.toast.out { animation: toastOut 0.25s forwards; }
.notif-action-btn {
    display: inline-block; margin-top: 8px;
    padding: 6px 14px; background: var(--accent); color: #ffffff;
    border: none; border-radius: 6px;
    font-size: 12px; font-weight: 700;
    cursor: pointer; font-family: -apple-system, sans-serif;
    letter-spacing: 0.2px;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
    min-height: 32px;
}
.notif-action-btn:hover { background: var(--accent-hover); }
.notif-action-btn:active { transform: scale(0.94); }
.notif-island .notif-action-btn { background: var(--accent); color: #fff; }
.notif-island.expanded .notif-action-btn { margin-top: 10px; }

/* ============================================================================
   34. LOADING & ERROR
   ============================================================================ */
.loading-screen {
    position: fixed; inset: 0; background: var(--bg-0);
    display: flex; align-items: center; justify-content: center;
    font-size: var(--fs-base); color: var(--text-secondary);
    z-index: 999; animation: loadBreath 2.4s ease-in-out infinite;
}
.error-message {
    display: none;
    position: fixed;
    top: calc(env(safe-area-inset-top) + 12px);
    left: 12px; right: 12px;
    background: var(--danger); color: #fff;
    padding: 12px 14px; border-radius: var(--r);
    font-size: var(--fs-sm); line-height: var(--lh-base);
    z-index: 10001; box-shadow: var(--shadow-lg);
    font-weight: var(--fw-medium);
}

/* ============================================================================
   35. TUTORIAL OVERLAY
   ============================================================================ */
.tut-root {
    position: fixed; inset: 0; pointer-events: none;
    z-index: 10002; opacity: 0; transition: opacity 0.22s;
}
.tut-root.visible { opacity: 1; pointer-events: auto; }
.tut-dim { position: absolute; inset: 0; background: rgba(0,0,0,0.78); }
.tut-hole {
    position: absolute; border-radius: var(--r);
    box-shadow: 0 0 0 3px var(--accent), 0 0 0 9999px rgba(0,0,0,0.78);
    background: transparent;
    transition: all 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
}
.tut-bubble {
    position: absolute; background: var(--bg-2);
    border: 1px solid var(--border); border-radius: var(--r-lg);
    padding: 14px; box-shadow: var(--shadow-lg);
    z-index: 10003; transition: top 0.25s, bottom 0.25s;
}
.tut-title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin-bottom: 6px; letter-spacing: -0.015em; }
.tut-text { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-base); margin-bottom: 12px; }
.tut-actions { display: flex; gap: 8px; justify-content: flex-end; }
.tut-skip {
    background: transparent; border: none; color: var(--text-tertiary);
    font-size: var(--fs-xs); cursor: pointer; padding: 9px 12px;
    border-radius: var(--r-sm); font-family: inherit; font-weight: var(--fw-semibold);
}
.tut-next {
    background: var(--accent); color: #fff; border: none;
    padding: 9px 16px; border-radius: var(--r-sm);
    font-size: var(--fs-xs); font-weight: var(--fw-bold);
    cursor: pointer; min-height: 40px;
    display: inline-flex; align-items: center;
    font-family: inherit; box-shadow: 0 2px 8px var(--accent-glow);
}

/* ============================================================================
   36. GAME OVER
   ============================================================================ */
.gameover-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.9);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 10004;
    opacity: 0; transition: opacity 0.35s; pointer-events: auto;
}
.gameover-backdrop.visible { opacity: 1; }
.gameover-root { text-align: center; }
.gameover-title { font-size: var(--fs-2xl); font-weight: var(--fw-black); color: var(--danger); margin-bottom: 6px; letter-spacing: -0.03em; }
.gameover-sub { font-size: var(--fs-md); color: var(--text-secondary); margin-bottom: 18px; }
.gameover-fact {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 14px;
    margin-bottom: 18px; font-size: var(--fs-sm);
    color: var(--text-secondary); line-height: 1.8; text-align: left;
}

/* ============================================================================
   37. NOTIFIKASI PER ERA
   ============================================================================ */
.notif-out {
    opacity: 0 !important;
    transform: translateY(-20px) scale(0.9) !important;
    transition: opacity 0.3s, transform 0.3s;
}
.notif-classic {
    max-width: min(340px, calc(100vw - 32px));
    margin: 0 auto;
    background: #cfcfc0; color: #1a1a1a;
    border: 2px solid #4a4a4a; border-radius: 3px;
    padding: 8px 10px 4px;
    font-family: ui-monospace, "Courier New", monospace;
    font-size: 12px; line-height: 1.35;
    box-shadow: 2px 2px 0 #2a2a2a;
    animation: notifClassicIn 0.28s ease;
}
.notif-classic-head {
    display: flex; align-items: center; gap: 5px;
    border-bottom: 1px solid #4a4a4a;
    padding-bottom: 4px; margin-bottom: 5px;
    font-weight: 700; letter-spacing: 0.5px;
    font-size: 10.5px; text-transform: uppercase;
}
.notif-classic-ico { font-size: 10px; }
.notif-classic-body { word-break: break-word; padding-bottom: 5px; font-size: 12px; }
.notif-classic-bar {
    height: 3px; margin: 0 -10px -4px;
    background: repeating-linear-gradient(90deg, #4a4a4a 0 2px, transparent 2px 4px);
}
.notif-classic.notif-success .notif-classic-ico,
.notif-classic.notif-success .notif-classic-title { color: #0a4d1a; }
.notif-classic.notif-warning { background: #d4c890; }
.notif-classic.notif-error { background: #d4a8a8; }
.notif-classic.notif-error .notif-classic-ico,
.notif-classic.notif-error .notif-classic-title { color: #6a0000; }

.notif-glossy {
    max-width: min(360px, calc(100vw - 32px));
    margin: 0 auto;
    display: flex; align-items: center; gap: 10px;
    background: linear-gradient(180deg, #3a3a3a 0%, #1a1a1a 55%, #0a0a0a 100%);
    color: #fff; border: 1px solid #555;
    border-radius: 12px; padding: 10px 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.25);
    position: relative; overflow: hidden;
    animation: notifGlossyIn 0.36s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.notif-glossy::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 45%;
    background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0.05) 60%, rgba(255,255,255,0) 100%);
    pointer-events: none; border-radius: 12px 12px 0 0;
}
.notif-glossy-icon {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 2px 4px rgba(0,0,0,0.5);
}
.notif-glossy-content { flex: 1; min-width: 0; }
.notif-glossy-text { font-size: 13px; line-height: 1.4; font-weight: 500; word-break: break-word; text-shadow: 0 -1px 0 rgba(0,0,0,0.5); }

.notif-flat {
    max-width: min(380px, calc(100vw - 32px));
    margin: 0 auto;
    display: flex; align-items: stretch;
    background: #202020; border-radius: 10px;
    overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    animation: notifFlatIn 0.3s ease-out;
}
.notif-flat-accent { width: 4px; flex-shrink: 0; }
.notif-flat-icon {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
    margin: 10px 10px 10px 12px; align-self: flex-start;
}
.notif-flat-body { flex: 1; min-width: 0; padding: 10px 14px 10px 0; display: flex; align-items: center; }
.notif-flat-msg { font-size: 13px; color: #e8e8e8; line-height: 1.4; word-break: break-word; }

.notif-island {
    max-width: calc(100vw - 40px);
    margin: 0 auto;
    background: #000; color: #fff;
    border-radius: 22px;
    padding: 9px 16px 9px 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: notifIslandIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    user-select: none; -webkit-user-select: none;
}
.notif-island-compact { display: flex; align-items: center; gap: 8px; }
.notif-island-ico { font-size: 14px; flex-shrink: 0; }
.notif-island-text-compact {
    flex: 1; min-width: 0; font-size: 12.5px; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notif-island-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    animation: islandPulse 1.6s ease-in-out infinite;
}
.notif-island-expanded {
    display: none; margin-top: 10px; padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.notif-island-expanded-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notif-island-ico-big { font-size: 18px; }
.notif-island-type { font-size: 10.5px; font-weight: 700; letter-spacing: 0.6px; opacity: 0.75; }
.notif-island-text-full { font-size: 13px; line-height: 1.45; word-break: break-word; }
.notif-island.expanded { border-radius: 16px; padding: 12px 16px; }
.notif-island.expanded .notif-island-compact { display: none; }
.notif-island.expanded .notif-island-expanded { display: block; }

/* ============================================================================
   38. AUTO-RESTOCK & TOGGLE SWITCH
   ============================================================================ */
.auto-restock-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 0; border-bottom: 1px solid var(--border);
}
.auto-restock-sub { padding: 6px 0; animation: fadeIn 0.25s ease; }
.auto-label {
    font-size: var(--fs-xs); color: var(--text-secondary);
    margin-top: 8px; margin-bottom: 6px; font-weight: var(--fw-semibold);
}
.threshold-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.toggle-switch {
    position: relative; width: 48px; height: 28px;
    background: var(--bg-4); border-radius: 28px; border: none;
    cursor: pointer; padding: 0; flex-shrink: 0;
    transition: background 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.12s;
    font-family: inherit; min-width: 48px;
}
.toggle-switch.on { background: var(--success); }
.toggle-switch:active { transform: scale(0.94); }
.toggle-thumb {
    position: absolute; top: 2px; left: 2px;
    width: 24px; height: 24px;
    background: #ffffff; border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.toggle-switch.on .toggle-thumb { transform: translateX(20px); }

/* ============================================================================
   39. TEAM PANEL — staff, candidates, modal
   ============================================================================ */
.staff-list { display: flex; flex-direction: column; gap: 6px; }
.staff-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; background: var(--bg-3);
    border-radius: var(--r); cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.16s, background 0.16s;
}
@media (hover: hover) {
    .staff-row:hover {
        background: var(--bg-4);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    }
}
.staff-row:active { transform: scale(0.99); }
.staff-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.15);
}
.staff-info { flex: 1; min-width: 0; }
.staff-name-row { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.staff-name {
    font-size: var(--fs-base); font-weight: var(--fw-semibold);
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1; min-width: 0;
}
.staff-country { font-size: 13px; line-height: 1; flex-shrink: 0; }
.staff-tier {
    font-size: 10px; font-weight: var(--fw-bold);
    padding: 2px 6px; border-radius: var(--r-pill);
    background: var(--bg-3); flex-shrink: 0;
    text-transform: none; letter-spacing: -0.005em;
}
.staff-traits { font-size: 10px; letter-spacing: 2px; flex-shrink: 0; }
.staff-meta-row {
    display: flex; gap: 6px;
    font-size: var(--fs-xs); color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.staff-arrow { color: var(--text-tertiary); font-size: 18px; font-weight: 300; flex-shrink: 0; }

.recruit-header { padding: 4px 6px 8px; }
.recruit-header-line {
    font-size: 11.5px; color: var(--text-tertiary);
    display: flex; align-items: baseline; gap: 5px;
    font-variant-numeric: tabular-nums;
}
.recruit-header-count {
    color: var(--text-primary); font-size: 15px;
    font-weight: var(--fw-bold); letter-spacing: -0.01em;
}
.recruit-header-label { color: var(--text-tertiary); }
.recruit-header-dot { color: var(--text-tertiary); opacity: 0.5; }

.cand-list { display: flex; flex-direction: column; gap: 6px; }
.cand-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); cursor: pointer;
    transition: background 0.12s, transform 0.06s, border-color 0.15s;
    position: relative;
}
.cand-row:hover { background: var(--bg-3); border-color: var(--border-strong); }
.cand-row:active { transform: scale(0.995); }
.cand-row-avatar { flex-shrink: 0; display: flex; align-items: center; }
.cand-row-avatar .avatar-wrap { box-shadow: none; }
.cand-row-main { flex: 1; min-width: 0; }
.cand-row-head { display: flex; align-items: center; gap: 5px; margin-bottom: 2px; min-width: 0; }
.cand-row-name {
    font-size: 13.5px; font-weight: var(--fw-bold);
    color: var(--text-primary); letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1; min-width: 0;
}
.cand-row-flag { font-size: 14px; line-height: 1; flex-shrink: 0; }
.cand-row-head .trait-dots { display: inline-flex; gap: 3px; margin-left: auto; flex-shrink: 0; }
.trait-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.cand-row-meta {
    font-size: 11.5px; color: var(--text-secondary);
    display: flex; flex-wrap: wrap; align-items: center; gap: 3px;
    margin-bottom: 3px; line-height: 1.35;
}
.cand-row-dot { color: var(--text-tertiary); opacity: 0.5; }
.cand-row-foot {
    font-size: 11px; color: var(--text-tertiary);
    display: flex; align-items: baseline; gap: 5px;
    font-variant-numeric: tabular-nums;
}
.cand-row-salary { color: var(--accent); font-weight: var(--fw-bold); font-size: 12px; }
.cand-row-salary-unit {
    font-size: 10px; font-weight: var(--fw-medium);
    color: var(--text-tertiary); margin-left: 1px;
}
.cand-row-total { color: var(--text-tertiary); }
.cand-row-actions { flex-shrink: 0; display: flex; align-items: center; }
.cand-cta {
    width: 32px; height: 32px; border-radius: var(--r-sm);
    background: var(--accent); color: #ffffff;
    border: 1px solid var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-family: inherit;
    transition: background 0.12s, transform 0.08s;
    padding: 0; box-shadow: 0 2px 8px var(--accent-glow);
}
.cand-cta:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.cand-cta:active { transform: scale(0.92); }
.cand-cta svg { display: block; }

.cand-modal { display: flex; flex-direction: column; gap: 14px; }
.cand-modal-header { display: flex; align-items: center; gap: 14px; }
.cand-modal-avatar .avatar-wrap { box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.cand-modal-identity { flex: 1; min-width: 0; }
.cand-modal-name {
    font-size: 18px; font-weight: var(--fw-black);
    color: var(--text-primary); letter-spacing: -0.02em;
    line-height: 1.2; margin-bottom: 3px;
}
.cand-modal-country {
    font-size: 12px; color: var(--text-secondary);
    display: flex; align-items: center; gap: 5px; margin-bottom: 4px;
}
.cand-modal-role {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: var(--fw-semibold);
    letter-spacing: -0.005em;
}
.cand-modal-sep { color: var(--text-tertiary); opacity: 0.6; }
.cand-modal-section-title {
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-tertiary); margin-top: 4px;
}
.cand-modal-section-title svg { opacity: 0.7; }
.cand-modal-traits { display: flex; flex-direction: column; gap: 6px; }
.cand-modal-trait {
    display: flex; gap: 10px; padding: 10px 12px;
    background: var(--bg-3); border-radius: var(--r);
    border-left: 3px solid currentColor; align-items: flex-start;
}
.cand-modal-trait-icon { flex-shrink: 0; margin-top: 1px; }
.cand-modal-trait-body { flex: 1; min-width: 0; }
.cand-modal-trait-name {
    font-size: 13px; font-weight: var(--fw-bold);
    letter-spacing: -0.005em; margin-bottom: 2px;
}
.cand-modal-trait-desc { font-size: 11.5px; color: var(--text-secondary); line-height: 1.45; }
.cand-modal-empty { font-size: 12px; color: var(--text-tertiary); padding: 4px 0; }
.cand-modal-details {
    display: flex; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.cand-modal-detail-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-bottom: 1px solid var(--border); gap: 10px;
}
.cand-modal-detail-row:last-child { border-bottom: none; }
.cand-modal-detail-label { font-size: 12.5px; color: var(--text-secondary); flex-shrink: 0; }
.cand-modal-detail-value {
    font-size: 12.5px; font-weight: var(--fw-semibold);
    color: var(--text-primary); text-align: right;
    font-variant-numeric: tabular-nums;
}
.cand-modal-costs {
    display: flex; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.cand-modal-cost-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 12px; border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.cand-modal-cost-row:last-child { border-bottom: none; }
.cand-modal-cost-row span { color: var(--text-secondary); }
.cand-modal-cost-row b {
    font-variant-numeric: tabular-nums;
    color: var(--text-primary); font-weight: var(--fw-semibold);
}
.cand-modal-cost-total { background: var(--accent-soft); padding: 12px; }
.cand-modal-cost-total span { color: var(--text-primary); font-weight: var(--fw-semibold); }
.cand-modal-cost-total b { color: var(--accent); font-size: 15px; font-weight: var(--fw-black); }
.cand-modal-actions { display: flex; gap: 8px; margin-top: 4px; }
.cand-modal-note {
    display: flex; gap: 10px;
    padding: 12px 14px;
    background: var(--warn-soft);
    border: 1px solid rgba(245,158,11,0.28);
    border-radius: var(--r);
    font-size: 12px; line-height: 1.5;
    color: var(--text-secondary); align-items: flex-start;
}
.cand-modal-note svg { flex-shrink: 0; color: var(--warn); margin-top: 1px; }

/* ============================================================================
   40. HQ SECTION DIVIDER
   ============================================================================ */
.hq-section-divider {
    display: flex; align-items: center; gap: 8px;
    margin: 18px 2px 8px; padding-top: 14px;
    border-top: 1px solid var(--border);
}
.hq-section-divider:first-child {
    padding-top: 4px; border-top: none; margin-top: 4px;
}
.hq-section-icon {
    color: var(--text-tertiary);
    display: inline-flex; align-items: center; flex-shrink: 0;
}
.hq-section-label {
    font-size: 10.5px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-tertiary); white-space: nowrap; flex-shrink: 0;
}
.hq-section-line { flex: 1; height: 1px; background: var(--border); }

/* ============================================================================
   41. TEAM DROPDOWN
   ============================================================================ */
.team-dropdown {
    position: relative;
    margin-bottom: 14px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: visible;
}
.team-dropdown-trigger {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; cursor: pointer;
    list-style: none; user-select: none;
    color: var(--text-primary);
    font-size: 13.5px; font-weight: var(--fw-bold);
    letter-spacing: -0.005em;
    border-radius: var(--r);
    transition: background 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.team-dropdown-trigger::-webkit-details-marker { display: none; }
.team-dropdown-trigger::marker { display: none; content: ''; }
.team-dropdown-trigger:hover { background: var(--bg-3); }
.team-dropdown-trigger:active { background: var(--bg-4); }
.team-dropdown-trigger svg { flex-shrink: 0; color: var(--accent); }
.team-dropdown-current { flex: 1; min-width: 0; color: var(--text-primary); }
.team-dropdown-chevron {
    display: inline-flex; align-items: center; justify-content: center;
    width: 16px; height: 16px;
    color: var(--text-tertiary); font-size: 14px; line-height: 1;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.team-dropdown-chevron::before { content: "▾"; display: inline-block; }
.team-dropdown[open] .team-dropdown-chevron { transform: rotate(180deg); }
.team-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--r);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow: hidden; padding: 4px;
    animation: teamDropdownIn 0.16s ease-out;
}
.team-dropdown-item {
    display: flex; align-items: center; gap: 10px;
    width: 100%; padding: 10px 12px;
    background: transparent; border: none;
    border-radius: var(--r-sm);
    color: var(--text-primary);
    font-size: 13px; font-weight: var(--fw-semibold);
    font-family: inherit; letter-spacing: -0.005em;
    cursor: pointer; text-align: left;
    transition: background 0.12s; min-height: 40px;
}
.team-dropdown-item:hover { background: var(--bg-3); }
.team-dropdown-item:active { background: var(--bg-4); }
.team-dropdown-item.active { background: var(--accent-soft); color: var(--accent); }
.team-dropdown-item svg { flex-shrink: 0; color: inherit; opacity: 0.85; }
.team-dropdown-item-label { flex: 1; min-width: 0; }
.team-dropdown-check {
    flex-shrink: 0; color: var(--accent);
    font-size: 13px; font-weight: var(--fw-bold); line-height: 1;
}

/* ============================================================================
   42. SETTINGS — Executive Console
   ============================================================================ */
.settings-actions { display: flex; flex-direction: column; gap: 8px; }
.settings-section { margin-bottom: 14px; animation: fadeIn 0.22s ease-out; }
.settings-label {
    font-size: var(--fs-xs); color: var(--text-secondary);
    font-weight: var(--fw-semibold); letter-spacing: 0.3px;
    margin-bottom: 8px; text-transform: uppercase;
}
.settings-hint {
    font-size: var(--fs-xs); color: var(--text-tertiary);
    line-height: var(--lh-base); margin-top: 6px;
}
.settings-hero {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 16px; margin-bottom: 12px;
    box-shadow: var(--shadow-sm);
    animation: fadeIn 0.25s ease-out;
}
.settings-hero-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.settings-hero-logo {
    flex-shrink: 0; width: 48px; height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff; font-size: 22px; font-weight: var(--fw-black);
    display: flex; align-items: center; justify-content: center;
    letter-spacing: -0.03em;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.settings-hero-info { flex: 1; min-width: 0; }
.settings-hero-name {
    font-size: 17px; font-weight: var(--fw-bold);
    color: var(--text-primary); letter-spacing: -0.015em;
    line-height: 1.2; margin-bottom: 3px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.settings-hero-meta {
    font-size: 11.5px; color: var(--text-tertiary);
    font-variant-numeric: tabular-nums; letter-spacing: 0.1px;
}
.settings-hero-kpi {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 8px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.settings-kpi { min-width: 0; }
.settings-kpi-label {
    font-size: 10px; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--text-tertiary);
    font-weight: var(--fw-semibold); margin-bottom: 3px;
}
.settings-kpi-value {
    font-size: 14px; font-weight: var(--fw-bold);
    color: var(--text-primary); font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.settings-tabs {
    display: flex; gap: 2px; margin-bottom: 12px;
    background: var(--bg-2); padding: 4px;
    border-radius: var(--r-md); border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.settings-tabs::-webkit-scrollbar { display: none; }
.settings-tab {
    flex: 1 0 auto; min-width: 68px;
    padding: 8px 10px; background: transparent;
    border: none; border-radius: var(--r-sm);
    color: var(--text-secondary); font-size: 11.5px;
    font-weight: var(--fw-semibold); font-family: inherit;
    letter-spacing: -0.005em; cursor: pointer;
    display: inline-flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 3px;
    min-height: 44px;
    transition: background 0.15s, color 0.15s, transform 0.12s;
}
.settings-tab svg { flex-shrink: 0; }
.settings-tab:active { transform: scale(0.96); }
.settings-tab.active { background: var(--bg-4); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.settings-section-head {
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-tertiary);
    margin: 0 4px 6px; padding-top: 4px;
}
.settings-section-head svg { opacity: 0.7; flex-shrink: 0; }
.settings-section-danger .settings-section-head { color: var(--danger); opacity: 0.8; }
.settings-list {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.settings-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s; position: relative;
}
.settings-row:last-child { border-bottom: none; }
.settings-row-action { cursor: pointer; }
.settings-row-action:hover { background: var(--bg-3); }
.settings-row-action:active { background: var(--bg-4); }
.settings-row-danger .settings-row-label { color: var(--danger); }
.settings-row-danger.settings-row-action:hover { background: var(--danger-soft); }
.settings-row-main { flex: 1; min-width: 0; }
.settings-row-label {
    font-size: 13.5px; font-weight: var(--fw-semibold);
    color: var(--text-primary); letter-spacing: -0.005em;
    line-height: 1.3;
}
.settings-row-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; line-height: 1.4; }
.settings-row-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.settings-row-value {
    font-size: 12.5px; color: var(--text-secondary);
    font-weight: var(--fw-medium); font-variant-numeric: tabular-nums;
    max-width: 180px; text-align: right;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.settings-row-chevron {
    color: var(--text-tertiary); font-size: 18px;
    font-weight: var(--fw-normal); line-height: 1;
    flex-shrink: 0; opacity: 0.6;
}
.settings-empty { padding: 14px; font-size: 12px; color: var(--text-tertiary); text-align: center; }
.settings-picker-block { padding: 12px 14px; border-bottom: 1px solid var(--border); }
.settings-picker-block:last-child { border-bottom: none; }
.settings-picker-label {
    font-size: 12px; color: var(--text-secondary);
    font-weight: var(--fw-semibold); letter-spacing: 0.1px;
    margin-bottom: 8px;
}
.settings-picker-hint { font-size: 11px; color: var(--text-tertiary); margin-top: 8px; line-height: 1.4; }
.settings-segment {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4px; background: var(--bg-3);
    border-radius: var(--r-sm); padding: 3px;
}
.settings-seg-btn {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px; padding: 9px 12px;
    background: transparent; border: none;
    border-radius: var(--r-sm); color: var(--text-secondary);
    font-family: inherit; font-size: 12.5px;
    font-weight: var(--fw-semibold); cursor: pointer;
    min-height: 40px;
    transition: background 0.15s, color 0.15s, transform 0.1s;
}
.settings-seg-btn:active { transform: scale(0.97); }
.settings-seg-btn.active { background: var(--bg-2); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.settings-accent-picker { display: flex; flex-wrap: wrap; gap: 10px; padding: 2px 0; }
.settings-accent-picker .accent-dot { width: 34px; height: 34px; }
.settings-footer {
    text-align: center; font-size: 10.5px;
    color: var(--text-tertiary); letter-spacing: 0.2px;
    margin-top: 18px; padding: 12px 0 6px;
    opacity: 0.7; font-variant-numeric: tabular-nums;
}
.settings-list-langs {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.settings-lang-row {
    display: flex; align-items: center; gap: 12px;
    width: 100%; padding: 14px;
    background: transparent; border: none;
    border-bottom: 1px solid var(--border);
    color: inherit; font-family: inherit;
    text-align: left; cursor: pointer;
    min-height: 56px; transition: background 0.12s;
}
.settings-lang-row:last-child { border-bottom: none; }
.settings-lang-row:hover { background: var(--bg-3); }
.settings-lang-row:active { background: var(--bg-4); }
.settings-lang-row.active { background: var(--accent-soft); }
.settings-lang-main { flex: 1; min-width: 0; }
.settings-lang-label {
    font-size: 14px; font-weight: var(--fw-semibold);
    color: var(--text-primary); letter-spacing: -0.005em; line-height: 1.3;
}
.settings-lang-row.active .settings-lang-label { color: var(--accent); font-weight: var(--fw-bold); }
.settings-lang-meta {
    font-size: 11px; color: var(--accent);
    margin-top: 3px; font-weight: var(--fw-semibold);
    letter-spacing: 0.3px; text-transform: uppercase;
}
.settings-lang-check {
    flex-shrink: 0; font-size: 16px;
    font-weight: var(--fw-bold); color: var(--accent); line-height: 1;
}
.settings-lang-hint { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; padding: 8px 6px 0; }

/* ============================================================================
   43. COMPANY PROFILE
   ============================================================================ */
.profile-hero {
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 22px 18px;
    text-align: center; margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
}
.profile-logo {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: var(--fw-black);
    color: #ffffff; margin: 0 auto 12px;
    box-shadow: 0 6px 20px var(--accent-glow);
    letter-spacing: -0.03em;
}
.profile-name {
    font-size: var(--fs-xl); font-weight: var(--fw-black);
    letter-spacing: -0.03em; margin-bottom: 5px; word-break: break-word;
}
.profile-meta {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; font-size: var(--fs-xs);
    color: var(--text-secondary); margin-bottom: 3px;
}
.profile-difficulty { font-weight: var(--fw-bold); }
.profile-era { font-size: var(--fs-xs); color: var(--text-tertiary); margin-top: 4px; }

/* ============================================================================
   44. ACCENT DOT
   ============================================================================ */
.accent-dot {
    width: 38px; height: 38px; border-radius: 50%;
    border: 3px solid transparent; cursor: pointer;
    transition: transform 0.14s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.15s, box-shadow 0.15s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    padding: 0; outline: none;
}
.accent-dot:hover { transform: scale(1.08); }
.accent-dot:active { transform: scale(0.92); }
.accent-dot.active {
    border-color: var(--bg-2);
    box-shadow: 0 0 0 3px var(--accent), 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

/* ============================================================================
   45. ILLUSTRATIONS & AVATARS
   ============================================================================ */
.illus-wrap {
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    animation: illusFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.illus-wrap svg {
    width: 100%; height: 100%; display: block;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.avatar-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; border-radius: 50%; overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.15s;
}
.avatar-wrap:hover { transform: scale(1.05); }
.avatar-wrap svg { display: block; width: 100%; height: 100%; }
.logo-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0; border-radius: 22%; overflow: hidden;
    box-shadow: 0 4px 14px var(--accent-glow);
}

/* ============================================================================
   46. ICON SYSTEM
   ============================================================================ */
.icon-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px; background: var(--accent-soft);
    color: var(--accent); flex-shrink: 0;
    transition: background 0.15s,
                transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}
.icon-wrap svg { display: block; flex-shrink: 0; }
.icon-wrap.outline { background: transparent; color: var(--text-secondary); }
.icon-wrap:active { transform: scale(0.94); }
.icon-hero {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 20px; background: var(--accent-soft);
    color: var(--accent); margin: 0 auto 14px;
    will-change: transform;
}
[data-theme="light"] .icon-wrap { background: rgba(37, 99, 235, 0.10); color: var(--accent); }
[data-theme="light"] .icon-wrap.outline { background: transparent; color: var(--text-secondary); }

/* ============================================================================
   47. PHONE MOCKUP & RADAR
   ============================================================================ */
.phone-mockup-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    position: relative;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.35));
    transition: filter 0.3s;
    animation: phoneIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.phone-mockup-wrap svg { display: block; width: 100%; height: 100%; }
.phone-mockup-wrap svg rect[fill^="url"] { animation: screenGlow 3s ease-in-out infinite; }
.radar-chart-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    animation: radarIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.radar-chart-wrap svg { display: block; width: 100%; height: 100%; overflow: visible; }
.radar-chart-wrap polygon[fill] { animation: polygonPulse 4s ease-in-out infinite; }

.phone-era-era_lcd_mono         { filter: drop-shadow(0 4px 12px rgba(122,154,106,0.35)); }
.phone-era-era_tft_color        { filter: drop-shadow(0 6px 16px rgba(90,160,208,0.35)); }
.phone-era-era_touch_revolution { filter: drop-shadow(0 8px 20px rgba(10,138,239,0.4)); }
.phone-era-era_smartphone_modern{ filter: drop-shadow(0 6px 16px rgba(79,140,255,0.3)); }
.phone-era-era_premium          { filter: drop-shadow(0 10px 28px rgba(201,169,97,0.35)); }
.phone-era-era_ai_era           { filter: drop-shadow(0 12px 32px rgba(0,212,255,0.4)); }
.phone-era-era_foldable         { filter: drop-shadow(0 14px 36px rgba(168,85,247,0.45)); }

.phone-spec-ms_notch         { filter: drop-shadow(0 6px 20px rgba(255,255,255,0.08)); }
.phone-spec-ms_teardrop      { filter: drop-shadow(0 6px 20px rgba(255,255,255,0.06)); }
.phone-spec-ms_punch_hole    { filter: drop-shadow(0 8px 24px rgba(0,0,0,0.5)); }
.phone-spec-ms_5g            { filter: drop-shadow(0 8px 24px rgba(59,130,246,0.25)); }
.phone-spec-ms_120hz         { filter: drop-shadow(0 10px 26px rgba(59,130,246,0.28)); }
.phone-spec-ms_dynamic_island{ filter: drop-shadow(0 10px 28px rgba(0,212,255,0.35)); }
.phone-spec-ms_ai_refined    { filter: drop-shadow(0 10px 28px rgba(0,212,255,0.3)); }
.phone-spec-ms_tri_fold,
.phone-spec-ms_future        { filter: drop-shadow(0 12px 32px rgba(168,85,247,0.35)); }
.phone-spec-ms_mono          { filter: drop-shadow(0 4px 12px rgba(122,154,106,0.35)); }
.phone-spec-ms_camera_debut  { filter: drop-shadow(0 5px 14px rgba(90,160,208,0.3)); }
.phone-spec-ms_multimedia    { filter: drop-shadow(0 5px 14px rgba(90,160,208,0.32)); }

.phone-brand {
    text-align: center; font-size: 9.5px; font-weight: 700;
    letter-spacing: 0.8px; color: var(--text-tertiary);
    text-transform: uppercase; margin-top: 4px;
    user-select: none;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 100%;
}

/* ============================================================================
   48. CHIP DESIGNER & FAB
   ============================================================================ */
.chip-mockup-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    filter: drop-shadow(0 10px 28px rgba(10,42,154,0.35));
    animation: chipIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.chip-mockup-wrap svg { display: block; width: 100%; height: 100%; }
.chip-wiz-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--bg-2) 0%, var(--bg-3) 100%);
    border-radius: var(--r); border: 1px solid var(--border);
    margin-bottom: 12px;
}
.chip-wiz-icon {
    width: 42px; height: 42px;
    background: linear-gradient(135deg, #1a4a8a, #0a2a9a);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(10,42,154,0.35);
    flex-shrink: 0;
}
.chip-wiz-title { font-size: 14px; font-weight: 700; letter-spacing: -0.015em; }
.chip-wiz-sub { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.radar-chart-wrap.chip-radar polygon[fill] { filter: drop-shadow(0 0 6px rgba(10,42,154,0.4)); }
.chip-preview-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) {
    .chip-preview-layout { flex-direction: row; align-items: flex-start; }
    .chip-preview-left  { flex: 0 0 200px; }
    .chip-preview-right { flex: 1; min-width: 0; }
}
.chip-preview-left { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.chip-preview-device {
    padding: 12px;
    background: linear-gradient(135deg, #0a0a15 0%, #0a1525 100%);
    border-radius: var(--r-lg); border: 1px solid var(--border);
    display: flex; justify-content: center; align-items: center;
    min-height: 210px;
}
.chip-preview-radar { display: flex; justify-content: center; align-items: center; }

.fab-warning {
    background: var(--warn-soft);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--r); padding: 12px 14px;
    font-size: 12.5px; color: var(--warn);
    line-height: 1.5; margin-bottom: 12px;
}
.fab-tier-list {
    display: flex; flex-direction: column; gap: 10px;
    max-height: 55vh; overflow-y: auto;
}
.fab-tier-card {
    background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r-lg); padding: 14px;
    transition: border-color 0.15s;
}
.fab-tier-card.disabled { opacity: 0.6; }
.fab-tier-head {
    display: flex; justify-content: space-between;
    align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.fab-tier-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 3px; }
.fab-tier-desc { font-size: 11.5px; color: var(--text-mute); line-height: 1.4; }
.fab-tier-badge {
    font-size: 11px; font-weight: 700;
    padding: 4px 10px; background: var(--accent-soft);
    color: var(--accent); border-radius: var(--r-pill); flex-shrink: 0;
}
.fab-tier-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 6px; }
.fab-stat { min-width: 0; }
.fab-stat-label {
    font-size: 10px; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px;
}
.fab-stat-value {
    font-size: 12.5px; font-weight: 700; color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip-list { display: flex; flex-direction: column; gap: 8px; }
.chip-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; background: var(--bg-3);
    border-radius: var(--r); cursor: pointer;
    transition: background 0.15s, transform 0.08s;
}
.chip-row:hover { background: var(--bg-4); }
.chip-row:active { transform: scale(0.99); }
.chip-row-mockup {
    width: 70px; height: 70px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: #050510; border-radius: 8px; overflow: hidden;
}
.chip-row-mockup .chip-mockup-wrap {
    width: 70px !important; height: 70px !important;
    filter: none; animation: none;
}
.chip-row-info { flex: 1; min-width: 0; }
.chip-row-name { font-size: 13.5px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.01em; }
.chip-row-meta { font-size: 11px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.chip-row-meta b { color: var(--text-primary); font-weight: 600; }
.chip-lifecycle { font-size: 10.5px; font-weight: 600; margin-top: 4px; }
.chip-detail-layout { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 480px) {
    .chip-detail-layout { flex-direction: row; }
    .chip-detail-left  { flex: 0 0 180px; }
    .chip-detail-right { flex: 1; min-width: 0; }
}
.chip-detail-left { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.chip-detail-device {
    background: linear-gradient(135deg, #050510 0%, #0a1525 100%);
    border-radius: var(--r-lg); border: 1px solid var(--border);
    padding: 8px; display: flex; justify-content: center; align-items: center;
    min-height: 180px; min-width: 180px;
}
.chip-detail-radar { display: flex; justify-content: center; align-items: center; }

/* ============================================================================
   49. SWIPE NAVIGATION
   ============================================================================ */
@keyframes swipeInLeft {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes swipeInRight {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
.app-view.swipe-in-left {
    animation: swipeInLeft 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, opacity;
}
.app-view.swipe-in-right {
    animation: swipeInRight 0.24s cubic-bezier(0.25, 0.8, 0.25, 1);
    will-change: transform, opacity;
}

/* ============================================================================
   50. NEWS & MEDIA
   ============================================================================ */
.news-list { display: flex; flex-direction: column; gap: 8px; }
.news-row {
    padding: 10px 12px; background: var(--bg-3);
    border-radius: var(--r); cursor: pointer;
    border-left: 3px solid transparent;
    transition: background 0.15s, transform 0.08s, border-color 0.15s;
}
.news-row:hover { background: var(--bg-4); }
.news-row:active { transform: scale(0.99); }
.news-row.unread { border-left-color: var(--accent); }
.news-row-top {
    display: flex; align-items: center; gap: 6px;
    margin-bottom: 4px; font-size: 10.5px; color: var(--text-mute);
}
.news-flag {
    display: inline-block;
    background: var(--bg-4); color: var(--text-secondary);
    padding: 1px 5px; border-radius: 3px;
    font-size: 9px; font-weight: 700; letter-spacing: 0.5px;
}
.news-row-source { font-weight: 600; color: var(--text-secondary); font-size: 10.5px; }
.news-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-left: auto; }
.news-dot.positive { background: var(--success); animation: newsPulse 2s ease-in-out infinite; }
.news-dot.mixed    { background: var(--warn); }
.news-dot.negative { background: var(--danger); animation: newsPulse 1.4s ease-in-out infinite; }
.news-row-headline {
    font-size: 12.5px; font-weight: 600;
    line-height: 1.4; color: var(--text-primary);
    margin-bottom: 4px; letter-spacing: -0.01em;
}
.news-row-meta { font-size: 10.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.news-badge {
    background: var(--accent); color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 2px 7px; border-radius: var(--r-pill);
    margin-left: 4px; letter-spacing: 0.3px;
}

.news-article { font-family: Georgia, 'Times New Roman', serif; }
.news-masthead {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 10px; border-bottom: 2px solid var(--border-strong);
    margin-bottom: 14px;
}
.news-source {
    font-size: 15px; font-weight: 800;
    letter-spacing: -0.02em; color: var(--text-primary);
    font-family: -apple-system, sans-serif;
}
.news-source-meta {
    font-size: 10.5px; color: var(--text-mute);
    font-family: -apple-system, sans-serif; text-align: right;
}
.news-headline {
    font-size: 22px; font-weight: 800;
    line-height: 1.15; letter-spacing: -0.02em;
    color: var(--text-primary); margin-bottom: 10px;
    font-family: -apple-system, sans-serif;
}
.news-subheadline {
    font-size: 14px; font-style: italic;
    color: var(--text-secondary); line-height: 1.5;
    margin-bottom: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    font-family: Georgia, serif;
}
.news-byline {
    font-size: 12px; color: var(--text-secondary);
    margin-bottom: 2px;
    font-family: -apple-system, sans-serif; letter-spacing: 0.2px;
}
.news-byline b { color: var(--text-primary); font-weight: 700; }
.news-dateline {
    font-size: 11px; color: var(--text-mute);
    margin-bottom: 18px;
    font-family: -apple-system, sans-serif;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.news-body { color: var(--text-primary); }
.news-para {
    font-size: 14px; line-height: 1.7;
    margin-bottom: 14px; color: var(--text-primary);
    text-align: justify;
}
.news-para:first-of-type::first-letter {
    font-size: 38px; font-weight: 800;
    float: left; line-height: 0.9;
    padding: 4px 8px 0 0; color: var(--accent);
    font-family: Georgia, serif;
}
.news-pullquote {
    font-size: 16px; font-style: italic;
    line-height: 1.4; color: var(--text-primary);
    padding: 12px 0 12px 16px; margin: 16px 0;
    border-left: 3px solid var(--accent);
    font-family: Georgia, serif; letter-spacing: -0.005em;
}
.news-score-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px; background: var(--bg-3);
    border-radius: var(--r); margin-top: 20px;
    font-family: -apple-system, sans-serif;
    border-left: 3px solid var(--accent);
}
.news-score-label {
    font-size: 11px; color: var(--text-mute);
    text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600;
}
.news-score-value { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.news-score-sentiment { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.3px; }
.news-footer { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.news-footer-meta {
    font-size: 11px; color: var(--text-mute);
    font-family: -apple-system, sans-serif;
    text-align: center; line-height: 1.5;
}

/* ============================================================================
   51. TIMELINE PANEL
   ============================================================================ */
.tl-list { display: flex; flex-direction: column; margin-top: 8px; }
.tl-item {
    display: flex; gap: 12px; padding: 10px 0;
    position: relative;
    transition: background 0.15s, transform 0.16s cubic-bezier(0.4, 0, 0.2, 1);
}
.tl-item + .tl-item { border-top: 1px solid var(--border); }
.tl-item:active { transform: scale(0.995); }
@media (hover: hover) { .tl-item:hover { background: var(--bg-2); } }
.tl-marker { flex: 0 0 32px; display: flex; justify-content: center; position: relative; }
.tl-marker::before {
    content: ""; position: absolute;
    top: 32px; bottom: -10px; left: 50%;
    transform: translateX(-50%); width: 2px; background: var(--border);
}
.tl-item:last-child .tl-marker::before { display: none; }
.tl-marker-icon {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-3); border: 2px solid var(--border-strong);
    color: var(--text-secondary); flex-shrink: 0; z-index: 1;
}
.tl-item.tl-past .tl-marker-icon { background: var(--bg-2); border-color: var(--text-tertiary); color: var(--text-secondary); }
.tl-item.tl-current .tl-marker-icon {
    background: var(--accent); border-color: var(--accent);
    color: #ffffff; box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-item.tl-future { opacity: 0.55; }
.tl-item.tl-future .tl-marker-icon { border-color: var(--border); color: var(--text-tertiary); }
.tl-content { flex: 1; min-width: 0; }
.tl-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; flex-wrap: wrap; }
.tl-year { font-size: 13px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.tl-kind-label {
    font-size: 9.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-tertiary); background: var(--bg-3);
    padding: 2px 7px; border-radius: var(--r-pill);
}
.tl-spec-badge {
    font-size: 9px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.4px;
    background: var(--warn-soft); color: var(--warn);
    padding: 2px 6px; border-radius: var(--r-pill);
}
.tl-title {
    font-size: 13.5px; font-weight: 700;
    color: var(--text-primary); margin-bottom: 2px;
    letter-spacing: -0.01em; line-height: 1.3;
}
.tl-subtitle { font-size: 11px; color: var(--text-secondary); margin-bottom: 4px; }
.tl-text { font-size: 12px; color: var(--text-secondary); line-height: 1.5; }
.tl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tl-tag {
    font-size: 9px; font-weight: 600;
    color: var(--text-tertiary); background: var(--bg-3);
    padding: 2px 7px; border-radius: var(--r-pill); letter-spacing: 0.2px;
}
.tl-now-marker { display: flex; align-items: center; gap: 12px; padding: 14px 0; margin: 6px 0; }
.tl-now-dot { flex: 0 0 32px; display: flex; justify-content: center; align-items: center; position: relative; }
.tl-now-dot::before {
    content: ""; display: block;
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
    animation: tlPulse 2s ease-in-out infinite;
}
.tl-now-label {
    display: flex; align-items: center; gap: 10px;
    background: var(--accent-soft); padding: 6px 12px;
    border-radius: var(--r-pill); border: 1px solid var(--accent);
}
.tl-now-text {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--accent);
}
.tl-now-year {
    font-size: 14px; font-weight: 800;
    color: var(--accent); font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
}

/* ============================================================================
   52. OS ACTIVE HERO
   ============================================================================ */
.os-active-hero { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.os-active-screen { flex: 0 0 120px; display: flex; justify-content: center; align-items: flex-start; }
.os-active-details { flex: 1; min-width: 0; padding-top: 4px; }
.os-screen-wrap {
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06);
    background: #000; flex-shrink: 0;
}
.os-screen-wrap svg { display: block; }

/* ============================================================================
   53. RESEARCH/OS PANEL v2026.x — slot strip, sections, node rows
   ============================================================================ */
.slot-strip {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); padding: 10px 12px; margin-bottom: 10px;
}
.slot-strip-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.slot-strip-label {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-secondary);
}
.slot-strip-count {
    font-size: var(--fs-sm); font-weight: var(--fw-bold);
    color: var(--accent); font-variant-numeric: tabular-nums;
}
.slot-strip-hint { font-size: 11px; color: var(--text-tertiary); line-height: 1.4; margin-top: 2px; }
.slot-strip-empty { padding-bottom: 12px; }
.slot-strip-item { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.slot-strip-item:first-child { border-top: none; padding-top: 0; margin-top: 0; }
.slot-strip-item-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; gap: 8px; }
.slot-strip-item-name {
    font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    color: var(--text-primary); letter-spacing: -0.005em;
}
.slot-strip-item-pct {
    font-size: var(--fs-sm); font-weight: var(--fw-bold);
    color: var(--accent); font-variant-numeric: tabular-nums; flex-shrink: 0;
}
.slot-strip-item-progress { height: 4px; margin-bottom: 3px; }
.slot-strip-item-eta {
    font-size: 10px; color: var(--text-tertiary);
    text-align: right; font-variant-numeric: tabular-nums;
}
.section-label { display: flex; align-items: center; gap: 8px; margin: 14px 2px 6px; }
.section-label-text {
    font-size: 10px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-tertiary); white-space: nowrap;
}
.section-label-line { flex: 1; height: 1px; background: var(--border); }
.section-collapsible { margin-top: 14px; }
.section-summary {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; list-style: none; padding: 6px 2px; user-select: none;
}
.section-summary::-webkit-details-marker { display: none; }
.section-summary::before {
    content: "▸"; font-size: 10px; color: var(--text-tertiary);
    transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block; flex-shrink: 0;
}
.section-collapsible[open] .section-summary::before { transform: rotate(90deg); }
.section-summary-text {
    font-size: 10px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.8px;
    color: var(--text-tertiary); white-space: nowrap;
}
.section-summary-line { flex: 1; height: 1px; background: var(--border); }
.section-summary:hover .section-summary-text { color: var(--text-secondary); }
.section-collapsible > .node-list { margin-top: 6px; }

.node-list {
    display: flex; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.node-row-wrap {
    display: flex; align-items: flex-end; gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: relative; transition: background 0.12s;
}
.node-row-wrap:last-child { border-bottom: none; }
.node-row-wrap::before {
    content: ""; position: absolute;
    left: 0; top: 10px; bottom: 10px; width: 2px;
    border-radius: 0 2px 2px 0; background: transparent;
    transition: background 0.15s;
}
.node-row-wrap.node-running::before { background: var(--warn); }
.node-row-wrap.node-available::before { background: var(--info); }
.node-row-wrap:hover { background: var(--bg-3); }
.node-row-wrap:hover::before { width: 3px; }
.node-row-content { flex: 1; min-width: 0; cursor: pointer; }
.node-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 3px; }
.node-row-title {
    font-size: var(--fs-base); font-weight: var(--fw-bold);
    color: var(--text-primary); letter-spacing: -0.005em;
    line-height: 1.25; flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.node-row-year {
    font-size: 10.5px; font-weight: var(--fw-bold);
    color: var(--text-secondary); background: var(--bg-3);
    padding: 2px 6px; border-radius: var(--r-sm);
    font-variant-numeric: tabular-nums; letter-spacing: 0.3px; flex-shrink: 0;
}
.node-row-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 11px; margin-bottom: 4px; }
.node-row-cat {
    display: inline-flex; align-items: center; gap: 3px;
    color: var(--text-tertiary); letter-spacing: 0.2px; flex-shrink: 0;
}
.node-row-cat svg { vertical-align: middle; opacity: 0.7; flex-shrink: 0; }
.node-row-effects { color: var(--text-secondary); letter-spacing: -0.005em; line-height: 1.4; }
.node-eff-num { color: var(--success); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.node-eff-sep { color: var(--text-tertiary); margin: 0 2px; }
.node-eff-tag {
    display: inline-block; font-size: 9.5px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.4px;
    color: var(--text-tertiary); background: var(--bg-3);
    padding: 1px 5px; border-radius: var(--r-sm); margin-right: 3px;
}
.node-row-progress {
    height: 3px; background: var(--bg-4);
    border-radius: var(--r-pill); overflow: hidden;
    margin-top: 4px; margin-bottom: 4px;
}
.node-row-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-hover), var(--accent));
    border-radius: var(--r-pill);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.node-row-foot {
    display: flex; align-items: baseline; gap: 4px;
    font-size: 11px; color: var(--text-secondary);
    font-variant-numeric: tabular-nums; letter-spacing: -0.005em;
}
.node-row-cost { font-weight: var(--fw-bold); color: var(--text-primary); }
.node-row-dot { color: var(--text-tertiary); }
.node-row-dur { color: var(--text-tertiary); }
.node-row-eta { font-size: 11px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.node-row-actions { flex-shrink: 0; padding-bottom: 1px; }
.node-row-cta {
    width: 30px; height: 30px; border-radius: var(--r-sm);
    border: 1px solid var(--border); background: var(--bg-3);
    color: var(--accent); font-size: 17px; font-weight: var(--fw-bold);
    line-height: 1; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: inherit;
    transition: background 0.12s, transform 0.08s, border-color 0.12s;
    padding: 0;
}
.node-row-cta:hover { background: var(--accent-soft); border-color: var(--accent); }
.node-row-cta:active { transform: scale(0.92); }
.node-row-cta-danger { color: var(--danger); }
.node-row-cta-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.node-row-cta-locked {
    color: var(--text-tertiary); background: transparent;
    border-color: transparent; cursor: default;
    font-size: 12px; opacity: 0.6;
}
.node-row-cta-locked:hover { background: transparent; border-color: transparent; }
.node-row-wrap.node-done .node-row-title { color: var(--text-secondary); }
.node-row-wrap.node-locked { opacity: 0.55; }
.node-row-wrap.node-locked .node-row-title { color: var(--text-secondary); }

.os-hero { padding: 12px 14px; }
.os-hero-top { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.os-hero-screen { flex: 0 0 auto; display: flex; justify-content: center; }
.os-hero-screen .os-screen-wrap { box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.os-hero-info { flex: 1; min-width: 0; display: flex; flex-direction: column; padding-top: 4px; }
.os-hero-name {
    font-size: 17px; font-weight: var(--fw-bold);
    letter-spacing: -0.015em; color: var(--text-primary);
    line-height: 1.2; margin-bottom: 3px;
}
.os-hero-version {
    font-size: 12px; color: var(--text-secondary);
    margin-bottom: 10px; font-variant-numeric: tabular-nums;
}
.os-hero-cta { width: 100%; font-size: 12.5px; padding: 9px 14px; min-height: 38px; }
.os-hero-empty-stat {
    font-size: 12px; color: var(--text-tertiary);
    padding: 8px 0; text-align: center;
}
.os-hero-stats { padding-top: 10px; border-top: 1px solid var(--border); }
.os-dev-cancel {
    width: 100%; margin-top: 10px;
    font-size: 12px; padding: 8px 12px; min-height: 36px;
}
.os-list {
    display: flex; flex-direction: column;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r); overflow: hidden;
}
.os-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    position: relative; transition: background 0.12s;
}
.os-row:last-child { border-bottom: none; }
.os-row:hover { background: var(--bg-3); }
.os-row-main { flex: 1; min-width: 0; cursor: pointer; }
.os-row-title {
    font-size: var(--fs-base); font-weight: var(--fw-bold);
    color: var(--text-primary); letter-spacing: -0.005em;
    line-height: 1.25; display: flex; align-items: baseline;
    gap: 6px; flex-wrap: wrap; margin-bottom: 3px;
}
.os-row-year {
    font-size: 10.5px; font-weight: var(--fw-bold);
    color: var(--text-secondary); background: var(--bg-3);
    padding: 2px 6px; border-radius: var(--r-sm);
    font-variant-numeric: tabular-nums; letter-spacing: 0.3px; flex-shrink: 0;
}
.os-row-meta {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; font-size: 11px;
    color: var(--text-tertiary); margin-bottom: 4px; letter-spacing: 0.2px;
}
.os-row-dot { color: var(--text-tertiary); opacity: 0.5; }
.os-row-foot {
    display: flex; align-items: baseline; gap: 4px;
    font-size: 11px; color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}
.os-row-cost { font-weight: var(--fw-bold); color: var(--text-primary); }
.os-row-dur { color: var(--text-tertiary); }
.os-row-actions { flex-shrink: 0; display: flex; gap: 5px; align-items: center; }
.os-status-badge {
    display: inline-block; font-size: 9.5px; font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 3px 7px; border-radius: var(--r-sm); white-space: nowrap;
}
.os-status-owned      { background: var(--success-soft); color: var(--success); }
.os-status-developing { background: var(--warn-soft);    color: var(--warn); }
.os-status-available  { background: var(--info-soft);    color: var(--info); }
.os-status-locked     { background: var(--bg-4);          color: var(--text-tertiary); }
.os-status-running    { background: var(--warn-soft);    color: var(--warn); }
.os-mini-btn {
    font-size: 11px; font-weight: var(--fw-semibold);
    padding: 5px 10px; border-radius: var(--r-sm);
    border: 1px solid var(--border); background: var(--bg-3);
    color: var(--text-primary); cursor: pointer;
    min-height: 28px; font-family: inherit;
    transition: background 0.12s, border-color 0.12s, transform 0.06s;
    white-space: nowrap;
}
.os-mini-btn:hover { background: var(--bg-4); border-color: var(--border-strong); }
.os-mini-btn:active { transform: scale(0.95); }
.os-mini-btn-ghost { background: transparent; color: var(--text-tertiary); border-color: transparent; }
.os-mini-btn-ghost:hover { background: var(--bg-3); color: var(--text-secondary); }
.os-mini-btn-primary { background: var(--accent); color: #ffffff; border-color: var(--accent); }
.os-mini-btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.os-bug-dot {
    display: inline-block; width: 6px; height: 6px;
    border-radius: 50%; background: var(--warn);
    box-shadow: 0 0 0 3px var(--warn-soft);
    animation: bugAlert 1.6s ease-in-out infinite;
    vertical-align: middle; margin-right: 6px;
}
.os-bug-sev { color: var(--warn); font-weight: var(--fw-semibold); }
.os-feat-row::before {
    content: ""; position: absolute;
    left: 0; top: 10px; bottom: 10px;
    width: 2px; border-radius: 0 2px 2px 0;
    background: transparent; transition: background 0.15s;
}
.os-feat-available::before  { background: var(--info); }
.os-feat-developing::before { background: var(--warn); }
.os-feat-owned::before      { background: var(--success); opacity: 0.5; }
.os-feat-locked             { opacity: 0.6; }
.os-stat-chip {
    display: inline-block; font-size: 10px;
    font-weight: var(--fw-semibold); color: var(--success);
    background: var(--success-soft); padding: 1px 6px;
    border-radius: var(--r-sm); font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}
.os-stat-chip + .os-stat-chip { margin-left: 3px; }
.os-apps-summary {
    font-size: 11px; color: var(--text-tertiary);
    padding: 0 4px 6px; font-variant-numeric: tabular-nums;
}
.os-apps-invite {
    width: 100%; margin-top: 10px;
    font-size: 12px; padding: 9px 12px; min-height: 38px;
}
.os-lic-row.os-lic-locked { opacity: 0.55; }
.os-lic-stat {
    display: inline-block; font-size: 13px; font-weight: var(--fw-bold);
    color: var(--accent); background: var(--accent-soft);
    padding: 3px 9px; border-radius: var(--r-sm);
    font-variant-numeric: tabular-nums;
    min-width: 32px; text-align: center;
}

/* ============================================================================
   54. DASHBOARD v2026.1 — Fokus Hari Ini + Collapsible
   ============================================================================ */
.focus-section-label {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-secondary); margin-top: 4px; margin-bottom: 6px;
}
.focus-section-label:not(:first-child) {
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid var(--border);
}
.focus-section-meta {
    font-size: 10px; color: var(--text-tertiary);
    margin-bottom: 8px; font-variant-numeric: tabular-nums;
}
.focus-item { margin-bottom: 10px; }
.focus-item:last-child { margin-bottom: 0; }
.focus-quest { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.focus-quest + .focus-quest { border-top: 1px solid var(--border); }
.focus-quest-title {
    font-size: var(--fs-sm); font-weight: var(--fw-semibold);
    color: var(--text-primary); letter-spacing: -0.005em; margin-bottom: 2px;
}
.focus-quest-desc { font-size: var(--fs-xs); color: var(--text-secondary); line-height: var(--lh-base); }
.focus-empty { padding: 6px 0 2px; text-align: center; }
.focus-empty-title {
    font-size: var(--fs-base); font-weight: var(--fw-bold);
    color: var(--text-primary); letter-spacing: -0.01em; margin-bottom: 4px;
}
.focus-empty-desc { font-size: var(--fs-xs); color: var(--text-secondary); line-height: var(--lh-base); }
.viral-line { font-size: 12px; font-weight: var(--fw-semibold); margin: 6px 0 4px; }
.feedback-quote {
    padding: 8px 0 4px;
    border-top: 1px dashed var(--border);
    margin-top: 6px;
}
.feedback-quote-meta {
    font-size: 10.5px; color: var(--text-tertiary);
    margin-bottom: 3px; font-weight: var(--fw-semibold); letter-spacing: 0.2px;
}
.feedback-quote-text {
    font-size: var(--fs-sm); color: var(--text-primary);
    line-height: 1.5; font-style: italic;
}
.collapsible-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-lg); margin-bottom: 10px;
    box-shadow: var(--shadow-sm); overflow: hidden;
    transition: background 0.15s, border-color 0.15s;
}
.collapsible-summary {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 16px; cursor: pointer; list-style: none;
    user-select: none; font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    letter-spacing: 0.7px; text-transform: uppercase;
    color: var(--text-secondary); transition: color 0.15s;
}
.collapsible-summary::-webkit-details-marker { display: none; }
.collapsible-summary::after {
    content: "▼"; font-size: 10px; color: var(--text-tertiary);
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.collapsible-card[open] .collapsible-summary::after { transform: rotate(180deg); }
.collapsible-summary:hover { color: var(--text-primary); }
.collapsible-body { padding: 0 16px 16px; animation: fadeIn 0.22s ease-out; }
.collapsible-body > .card:first-child {
    padding: 0 0 10px; background: transparent;
    border: none; box-shadow: none; border-radius: 0;
    border-bottom: 1px solid var(--border); margin-bottom: 10px;
}

/* ============================================================================
   55. ANIMASI MASUK (view-fresh)
   ============================================================================ */
@keyframes viewCardIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes viewKpiIn {
    from { opacity: 0; transform: translateY(6px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.view-fresh .card { animation: viewCardIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) both; }
.view-fresh .card:nth-child(1) { animation-delay: 0.00s; }
.view-fresh .card:nth-child(2) { animation-delay: 0.03s; }
.view-fresh .card:nth-child(3) { animation-delay: 0.06s; }
.view-fresh .card:nth-child(4) { animation-delay: 0.09s; }
.view-fresh .card:nth-child(5) { animation-delay: 0.12s; }
.view-fresh .card:nth-child(n+6) { animation-delay: 0.15s; }
.view-fresh .kpi { animation: viewKpiIn 0.30s cubic-bezier(0.4, 0, 0.2, 1) both; }
.view-fresh .kpi-value {
    animation: viewKpiIn 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    animation-delay: 0.05s;
}
.view-fresh .tech-node { animation: viewCardIn 0.30s cubic-bezier(0.4, 0, 0.2, 1) both; }
.view-fresh .tech-node:nth-child(2) { animation-delay: 0.02s; }
.view-fresh .tech-node:nth-child(3) { animation-delay: 0.04s; }
.view-fresh .tech-node:nth-child(4) { animation-delay: 0.06s; }
.view-fresh .tech-node:nth-child(5) { animation-delay: 0.08s; }
.view-fresh .tech-node:nth-child(n+6) { animation-delay: 0.10s; }

.app-view.soft-update,
.app-view.soft-update *,
.app-view.soft-update *::before,
.app-view.soft-update *::after {
    animation: none !important;
    transition: none !important;
}

/* ============================================================================
   56. KEYFRAMES
   ============================================================================ */
@keyframes toastIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes toastOut {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-10px) scale(0.98); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes progressShimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.15); }
}
@keyframes rotateSubtle {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes kpiGlowStrong {
    0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
    50%      { box-shadow: 0 0 14px 2px var(--accent-glow); }
}
@keyframes loadBreath {
    0%, 100% { opacity: 0.4; transform: scale(0.98); }
    50%      { opacity: 1; transform: scale(1.02); }
}
@keyframes backdropIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes toastContainerHint {
    0%, 100% { filter: drop-shadow(0 0 0 transparent); }
    50%      { filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15)); }
}
@keyframes modalSlideIn {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}
@keyframes bugAlert {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.4); opacity: 0.6; }
}
@keyframes newsPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 currentColor; }
    50%      { transform: scale(1.25); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0); }
}
@keyframes questBreath {
    0%, 100% {
        box-shadow: 0 0 0 3px var(--warn-soft), 0 0 8px var(--warn);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px var(--warn-soft), 0 0 14px var(--warn);
        transform: scale(1.15);
    }
}
@keyframes statusPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.55; }
}
.header-status.running { animation: statusPulse 2.8s ease-in-out infinite; }
@keyframes illusFadeIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes phoneIn {
    from { opacity: 0; transform: translateY(8px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes screenGlow {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.92; }
}
@keyframes radarIn {
    from { opacity: 0; transform: scale(0.9) rotate(-4deg); }
    to   { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes polygonPulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.85; }
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(0.9) rotateY(-10deg); }
    to   { opacity: 1; transform: scale(1) rotateY(0); }
}
@keyframes wizMockupIn {
    from { opacity: 0; transform: translateY(-6px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes tlPulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); }
    50%      { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
@keyframes notifClassicIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes notifGlossyIn {
    0%   { opacity: 0; transform: translateY(-24px) scale(0.92); }
    60%  { opacity: 1; transform: translateY(3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes notifFlatIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes notifIslandIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.6); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes islandPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%      { opacity: 1; transform: scale(1.3); }
}
@keyframes teamDropdownIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   57. AMBIENT BACKGROUND
   ============================================================================ */
@keyframes bgDrift {
    0%   { background-position: 0% 0%, 100% 100%, 0 0; }
    25%  { background-position: 25% 15%, 75% 85%, 0 0; }
    50%  { background-position: 50% 30%, 50% 70%, 0 0; }
    75%  { background-position: 20% 40%, 80% 60%, 0 0; }
    100% { background-position: 0% 0%, 100% 100%, 0 0; }
}
body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(37, 99, 235, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(139, 92, 246, 0.08) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    animation: bgDrift 80s ease-in-out infinite;
    will-change: background-position;
}
[data-accent="emerald"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(16, 185, 129, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}
[data-accent="violet"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(139, 92, 246, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}
[data-accent="amber"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(245, 158, 11, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(239, 68, 68, 0.06) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}
[data-accent="rose"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(244, 63, 94, 0.10) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(236, 72, 153, 0.08) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}
[data-accent="cyan"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(6, 182, 212, 0.11) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}
[data-theme="light"] body {
    background:
        radial-gradient(ellipse 70% 50% at 20% 10%, rgba(37, 99, 235, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 80% 90%, rgba(139, 92, 246, 0.04) 0%, transparent 55%),
        var(--bg-0);
    background-size: 200% 200%; background-repeat: no-repeat; background-attachment: fixed;
}

/* ============================================================================
   58. RESPONSIVE
   ============================================================================ */
@media (min-width: 768px) {
    .mobile-nav { display: none; }
    .app-view { padding: 18px 18px 0; padding-bottom: 18px; }
    .kpi-grid { grid-template-columns: repeat(4, 1fr); }
    .kpi-sub { font-size: 11px; }
}

@media (max-width: 380px) {
    .nav-btn { font-size: 9px; }
    .nav-btn .nav-ico { width: 20px; height: 20px; }
    .nav-btn .nav-label { font-size: 9px; }
    .header-company { font-size: var(--fs-base); }
    .header-cash { font-size: var(--fs-base); }
    .kpi-value { font-size: var(--fs-lg); }
    .notif-island-text-compact { font-size: 11.5px; }
    .notif-island { padding: 8px 14px 8px 12px; }
    .os-active-hero { flex-direction: column; align-items: center; text-align: center; }
    .os-active-screen { flex: 0 0 auto; }
    .os-active-details { width: 100%; text-align: center; }
    .wiz-price-layout { flex-direction: column; }
    .node-row-title { font-size: 12.5px; }
    .node-row-wrap { padding: 9px 10px; }
    .os-hero-name { font-size: 15px; }
    .os-hero-top { gap: 10px; }
    .os-row { padding: 9px 10px; gap: 8px; }
    .os-mini-btn { font-size: 10.5px; padding: 4px 8px; }
    .os-status-badge { font-size: 9px; padding: 2px 6px; }
    .settings-hero-name { font-size: 15px; }
    .settings-hero-logo { width: 42px; height: 42px; font-size: 19px; }
    .settings-kpi-value { font-size: 13px; }
    .settings-tab { font-size: 10.5px; padding: 7px 8px; }
    .settings-row { padding: 11px 12px; }
    .settings-row-label { font-size: 13px; }
    .cand-row { padding: 9px 10px; gap: 8px; }
    .cand-row-name { font-size: 13px; }
    .cand-cta { width: 30px; height: 30px; }
    .cand-modal-name { font-size: 16px; }
}

/* ============================================================================
   59. PREFERS-REDUCED-MOTION
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .nav-slider { transition: none !important; }
    .mobile-nav .nav-btn .nav-ico,
    .mobile-nav .nav-btn .nav-label { transition: none !important; }
    .app-view.swipe-in-left,
    .app-view.swipe-in-right { animation: none !important; }
    body { animation: none !important; }
    .bug-name::before,
    .news-dot.positive,
    .news-dot.negative,
    .quest-dot,
    .header-status.running,
    .kpi::before,
    .loading-screen,
    .toast-container:not(:empty) { animation: none !important; }
    .card:hover, .card:active,
    .tech-node:hover, .tech-node:active,
    .cand-card:hover, .cand-card:active,
    .staff-row:hover, .staff-row:active,
    .prod-card:hover, .prod-card:active,
    .comp-card:hover, .comp-card:active,
    .chip:active, .chip-small:active,
    .subtab-btn:active, .nav-btn:active,
    .icon-wrap:active, .toggle-switch:active,
    .btn-primary:active, .btn-secondary:active, .btn-danger:active {
        transform: none !important;
    }
                             }
/* ============================================================================
   60. WIZ SPEC STRIP (v2027.11a)
   ============================================================================ */
.wiz-spec-strip {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 10px 12px;
    margin-bottom: 12px;
}
.wiz-spec-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.wiz-spec-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wiz-spec-price {
    font-size: var(--fs-md);
    font-weight: var(--fw-black);
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}
.wiz-spec-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
}
.wiz-spec-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    min-width: 0;
    font-size: var(--fs-xs);
}
.wiz-spec-label {
    color: var(--text-tertiary);
    font-weight: var(--fw-semibold);
    flex-shrink: 0;
}
.wiz-spec-value {
    color: var(--text-primary);
    font-weight: var(--fw-semibold);
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    text-align: right;
}
.wiz-spec-trunc {
    max-width: 110px;
}
@media (max-width: 380px) {
    .wiz-spec-trunc { max-width: 90px; }
    .wiz-spec-meta { grid-template-columns: 1fr; }
}
/* ============================================================================
   61. WIZ AUTOFILL BUTTON (v2027.12a)
   ============================================================================ */
.wiz-autofill-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    padding: 12px 16px;
    min-height: 46px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #ffffff;
    border: none;
    border-radius: var(--r);
    font-family: inherit;
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    letter-spacing: -0.005em;
    cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow);
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 0.18s, opacity 0.15s;
}
.wiz-autofill-btn:hover { box-shadow: 0 6px 20px var(--accent-glow); }
.wiz-autofill-btn:active { transform: scale(0.97); }
.wiz-autofill-ico { font-size: 16px; line-height: 1; }
.wiz-autofill-hint {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 6px;
    line-height: 1.4;
}
/* ============================================================================
   63. CAMPUS MANAGER PANEL (v2027.16a)
   ============================================================================ */
.campus-list {
    display: flex;
    flex-direction: column;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 14px;
}

.campus-row {
    display: flex;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.campus-row:last-child { border-bottom: none; }
.campus-row:hover { background: var(--bg-3); }

.campus-row-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}

.campus-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.campus-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 2px;
}

.campus-row-name {
    font-size: var(--fs-md);
    font-weight: var(--fw-bold);
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.campus-row-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: var(--fw-bold);
    padding: 2px 7px;
    border-radius: var(--r-pill);
    background: var(--bg-3);
    color: var(--text-secondary);
    letter-spacing: 0.2px;
    font-variant-numeric: tabular-nums;
}
.campus-row-badge.max {
    background: var(--accent-soft);
    color: var(--accent);
}

.campus-row-desc {
    font-size: var(--fs-xs);
    color: var(--text-tertiary);
    line-height: 1.4;
    margin-bottom: 2px;
}

.campus-row-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.005em;
}

.campus-row-dot {
    color: var(--text-tertiary);
    opacity: 0.5;
}

@media (max-width: 380px) {
    .campus-row { padding: 10px 12px; gap: 10px; }
    .campus-row-icon { width: 38px; height: 38px; border-radius: 10px; }
    .campus-row-name { font-size: var(--fs-base); }
}
/* ============================================================================
   64. HOME — MAP + TAB CAROUSEL (v2027.17a)
   ============================================================================ */

.home-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.home-map {
    padding: 0;
    height: min(42vh, 380px);
    min-height: 260px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

/* ---------- TAB PILLS ---------- */
.home-tabs {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
}

.home-tab {
    flex: 1;
    padding: 9px 6px;
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
    letter-spacing: -0.005em;
    cursor: pointer;
    min-height: 36px;
    transition: background 0.15s, color 0.15s, transform 0.12s;
}
.home-tab:active { transform: scale(0.97); }
.home-tab.active {
    background: var(--bg-4);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm),
                inset 0 0 0 1px var(--border-strong);
}

/* ---------- CAROUSEL ---------- */
.home-carousel {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-x;
    gap: 0;
}
.home-carousel::-webkit-scrollbar { display: none; }

.home-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 0 2px;
    box-sizing: border-box;
    /* Batasi tinggi supaya halaman tidak scroll panjang */
    max-height: 42vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* Card di dalam slide tidak perlu margin luar besar */
.home-slide > .card:first-child { margin-top: 0; }
.home-slide > .card:last-child { margin-bottom: 0; }

/* Khusus slide Focus: quest & research ringkas */
.home-slide[data-home-slide="focus"] .card { padding: 12px 14px; }
.home-slide[data-home-slide="news"] .card { padding: 12px 14px; }
.home-slide[data-home-slide="activity"] .card { padding: 12px 14px; }

@media (max-width: 380px) {
    .home-map { height: min(38vh, 320px); min-height: 220px; }
    .home-slide { max-height: 38vh; }
    .home-tab { font-size: var(--fs-xs); padding: 8px 4px; }
}
