/* ============================================================================
   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, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", "Noto Sans Devanagari", "Nirmala UI", "Mangal", 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;
}
/* Mode fullscreen (APK/PWA): jangan sisakan ruang kosong setinggi status bar.
   Sisakan sedikit saja (35% dari safe-area) supaya header tetap aman dari lubang kamera. */
@media (display-mode: fullscreen) {
    .app-header { padding-top: calc(env(safe-area-inset-top, 0px) * 0.35); }
}
.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-options-col .wiz-option { width: 100%; min-width: 0; flex-shrink: 1; }
.wiz-os-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    background: var(--bg-3); border: 1px solid var(--accent); border-radius: var(--r);
    padding: 10px 12px; color: var(--text-primary); font-family: inherit; font-size: var(--fs-sm);
    text-align: left; cursor: pointer; min-height: 46px;
}
.wiz-os-cur { display: flex; flex-direction: column; }
.wiz-os-caret { color: var(--accent); transition: transform 0.15s; }
.wiz-os-toggle.open .wiz-os-caret { transform: rotate(180deg); }
.wiz-os-menu { margin-top: 6px; max-height: 240px; overflow-y: auto; }

.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 {
    --ls-bg: #f6efe2; --ls-ink: #1b2a4a; --ls-blue: #1b5fc4; --ls-sky: #3b9aea;
    position: fixed; inset: 0; background: var(--ls-bg);
    z-index: 999; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    transition: opacity 0.8s cubic-bezier(.4, 0, .2, 1);
}
.loading-screen.ls-done { opacity: 0; pointer-events: none; }
.loading-screen.ls-done .ls-art { transform: scale(1.035); animation: none; }
.loading-screen.ls-done .ls-meter { opacity: 0; transform: translateY(6px); }
/* Latar berlapis: gambar yang sama diburamkan (mengisi sisi layar lebar), aksen biru lembut yang
   melayang pelan, vinyet tepi, dan butiran kertas halus. Gambar utama tetap utuh di atasnya. */
.loading-screen .ls-backdrop {
    position: absolute; inset: -10%; z-index: 0; pointer-events: none;
    background-size: cover; background-position: center;
    filter: blur(70px) saturate(1.25); opacity: .5; transform: translateZ(0);
}
/* aksen biru lembut yang melayang pelan (tanpa filter, hanya transform => ringan) */
.loading-screen::after {
    content: ''; position: absolute; z-index: 1; pointer-events: none;
    left: -30vmax; top: -24vmax; width: 78vmax; height: 78vmax; border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--ls-sky) 30%, transparent), transparent 68%);
    animation: ls-drift 15s ease-in-out infinite alternate; will-change: transform;
}
@keyframes ls-drift { to { transform: translate3d(70vmax, 56vmax, 0) scale(1.08); } }
.loading-screen::before {
    content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 46%, transparent 52%, color-mix(in srgb, var(--ls-ink) 14%, transparent) 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .16 0 0 0 0 .29 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
    background-size: auto, 160px 160px; opacity: .55; mix-blend-mode: multiply;
}
/* Gambar (rasio 2:3 / 9:16) ditampilkan UTUH (contain); tepi atas/bawah dipudarkan agar menyatu. */
.loading-screen .ls-art-wrap {
    position: relative; z-index: 2;
    flex: 1 1 auto; min-height: 0; width: 100%;
    display: flex; align-items: center; justify-content: center;
}
.loading-screen .ls-art {
    display: block; max-width: 100%; max-height: 100%;
    width: auto; height: auto; object-fit: contain;
    opacity: 0; transform: scale(1.02);
    transition: opacity 0.9s ease-out, transform 1.4s cubic-bezier(.2, .7, .2, 1);
    will-change: opacity, transform;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 97%, transparent 100%);
    user-select: none; -webkit-user-drag: none; pointer-events: none;
}
.loading-screen .ls-art.ls-in { opacity: 1; transform: none; animation: ls-breathe 7s ease-in-out 1.6s infinite alternate; }
@keyframes ls-breathe { from { transform: scale(1); } to { transform: scale(1.014) translateY(-3px); } }
/* Panel progres: teks status + bar, di strip bawah (tidak menimpa teks/logo pada gambar) */
.loading-screen .ls-meter {
    position: relative; z-index: 3;
    flex: 0 0 auto; width: min(76%, 380px);
    padding: 8px 0 clamp(16px, 3dvh, 30px);
    display: flex; flex-direction: column; align-items: stretch; gap: 8px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.loading-screen .ls-status {
    min-height: 1.3em; text-align: center;
    font: 700 clamp(11px, 1.7dvh, 14px)/1.3 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.06em; color: color-mix(in srgb, var(--ls-ink) 78%, transparent);
}
.loading-screen .ls-status.ls-swap { animation: ls-status-in .45s ease-out both; }
@keyframes ls-status-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.loading-screen .ls-bar { display: flex; align-items: center; gap: 10px; }
.loading-screen .ls-track {
    flex: 1; height: 9px; border-radius: 99px; padding: 1.5px; box-sizing: border-box;
    background: color-mix(in srgb, var(--ls-ink) 14%, transparent);
    box-shadow: inset 0 1px 2px color-mix(in srgb, var(--ls-ink) 28%, transparent), 0 1px 0 rgba(255,255,255,.7);
    overflow: hidden;
}
.loading-screen .ls-fill {
    position: relative; width: 100%; height: 100%; border-radius: 99px;
    background: linear-gradient(90deg, var(--ls-blue), var(--ls-sky));
    box-shadow: 0 0 10px color-mix(in srgb, var(--ls-sky) 70%, transparent);
    transform: scaleX(0); transform-origin: left center; will-change: transform;
}
/* kilau halus yang berjalan di bar (GPU, hanya transform) */
.loading-screen .ls-fill::after {
    content: ''; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(90deg, transparent 0, rgba(255,255,255,.6) 50%, transparent 100%);
    transform: translateX(-100%); animation: ls-sheen 1.6s ease-in-out infinite;
}
@keyframes ls-sheen { to { transform: translateX(100%); } }
html[data-perf="lite"] .loading-screen .ls-fill::after { animation: none; display: none; }
html[data-perf="lite"] .loading-screen .ls-backdrop { display: none; }
html[data-perf="lite"] .loading-screen::after { animation: none; }
html[data-perf="lite"] .loading-screen::before { display: none; }
html[data-perf="lite"] .loading-screen .ls-art.ls-in { animation: none; }
@media (prefers-reduced-motion: reduce) {
    .loading-screen .ls-fill::after { animation: none; display: none; }
    .loading-screen::after,
    .loading-screen .ls-art.ls-in, .loading-screen .ls-status.ls-swap { animation: none; }
    .loading-screen .ls-art, .loading-screen.ls-done .ls-art { transition-duration: .2s; transform: none; }
}
.loading-screen .ls-pct {
    min-width: 3.4em; text-align: right;
    font: 800 clamp(11px, 1.7dvh, 16px)/1 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    letter-spacing: 0.04em; color: var(--ls-ink); font-variant-numeric: tabular-nums;
}
.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; }
/* [FIX UX] Tutorial (z 10002) menutup & memblokir toko Silicon (z 9999): pemain baru tak bisa top-up. Sembunyikan selama toko terbuka. */
body:has([data-modal-id="silicon-store"]) .tut-root,
body:has([data-modal-id="payment-qr"]) .tut-root { visibility: hidden; pointer-events: none; }
.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;
    /* PERF: animasi bgDrift dihapus — menggambar ulang satu layar penuh tiap frame selama 80 dtk, boros baterai. */
}
[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) and (any-pointer: fine) {
    .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 — PETA PENUH + DOCK (v2027.41a)
   Satu-satunya sumber aturan tata letak halaman Home. Menggantikan section
   64 / 65 / 66 / 67 / 68 / 101 lama yang saling menimpa (!important).

   Susunan satu layar (tanpa scroll halaman):
       header
       peta 3D        ← mengisi semua sisa tinggi layar (flex: 1)
       dock           ← baris tab (Fokus · Berita · Aktivitas) + carousel
       nav bawah

   Warna, kartu, tab pill, dan tipografi memakai token yang sudah ada —
   yang berubah hanya posisi & ukuran.
   ============================================================================ */
:root {
    --home-tabs-h: 40px;
    --home-slide-h: clamp(160px, 28vh, 280px);
    --home-gap: 8px;
}
@supports (height: 1dvh) {
    :root { --home-slide-h: clamp(160px, 28dvh, 280px); }
}

/* View Home = satu layar penuh. Halaman lain tetap scroll seperti biasa. */
.app-view.view-home {
    overflow: hidden;
    padding: 8px 10px 10px;
}

.home-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--home-gap);
    height: 100%;
    min-height: 0;
}

/* ---------- PETA ---------- */
.home-map {
    flex: 1 1 auto;
    min-height: 160px;
    padding: 0;
    margin: 0;
    position: relative;
    overflow: hidden;
    contain: layout paint;        /* isolasi layer: canvas 3D tidak ikut repaint carousel */
    touch-action: none;           /* drag & pinch milik peta */
}
.home-map canvas { display: block; touch-action: none; }
/* Vignette lembut: fokus ke tengah peta, tepi tampak rapi (tidak menangkap sentuhan) */
.home-map:not(.office-map)::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse at 50% 45%, transparent 58%, rgba(15, 23, 42, .16) 100%);
}
html[data-theme="dark"] .home-map:not(.office-map)::after {
    background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(0, 0, 0, .34) 100%);
}
html[data-perf="lite"] .home-map:not(.office-map)::after { display: none; }

/* ---------- DOCK ---------- */
.home-dock {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--home-gap);
}
.home-dockbar {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Tab pill (gaya lama v2027.17a) */
.home-tabs {
    flex: 1;
    min-width: 0;
    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;
    min-width: 0;
    min-height: calc(var(--home-tabs-h) - 8px);
    padding: 6px 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 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;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
}
.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);
}
.home-tab-badge {
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--r-pill);
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: var(--fw-bold);
    line-height: 16px;
    text-align: center;
    box-sizing: border-box;
}
.home-tab-badge[hidden] { display: none; }

/* Tombol ciutkan / bentangkan dock */
.home-dock-toggle {
    flex: 0 0 auto;
    width: var(--home-tabs-h);
    height: var(--home-tabs-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-2);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s, color 0.15s;
}
.home-dock-toggle:active { transform: scale(0.94); }
.home-dock-toggle svg { width: 18px; height: 18px; transition: transform 0.2s; }
.home-dock.collapsed .home-dock-toggle svg { transform: rotate(180deg); }

/* ---------- CAROUSEL (scroll-snap native) ---------- */
.home-carousel {
    display: flex;
    flex-wrap: nowrap;
    height: var(--home-slide-h);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.home-carousel::-webkit-scrollbar { display: none; }

/* Dock diciutkan: carousel 0 tinggi (tetap di DOM supaya posisi scroll aman) */
.home-dock.collapsed .home-carousel {
    height: 0;
    visibility: hidden;
    pointer-events: none;
}
.home-dock.collapsed { gap: 0; }

/* Setiap slide scroll vertikal sendiri; geser horizontal diteruskan ke carousel */
.home-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    height: 100%;
    box-sizing: border-box;
    padding: 1px;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    overflow-x: hidden;
    overflow-y: auto;
    /* y saja! `contain` di sumbu x memutus penerusan swipe horizontal ke carousel */
    overscroll-behavior-y: contain;
    overscroll-behavior-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.home-slide::-webkit-scrollbar { display: none; }
.home-slide > .card:first-child { margin-top: 0; }
.home-slide > .card:last-child { margin-bottom: 0; }
.home-slide > .card:only-child { min-height: calc(100% - 2px); box-sizing: border-box; }  /* dock selalu terlihat seragam */
.home-slide[data-home-slide="focus"] .card,
.home-slide[data-home-slide="news"] .card,
.home-slide[data-home-slide="activity"] .card { padding: 12px 14px; }

/* ---------- Tombol Asisten Bisnis: naik di atas dock supaya tidak menutupi kartu ---------- */
body.is-home .advisor-fab {
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px
                 + var(--home-tabs-h) + var(--home-slide-h) + (var(--home-gap) * 2) + 10px);
}
body.is-home.home-dock-collapsed .advisor-fab {
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 10px
                 + var(--home-tabs-h) + var(--home-gap) + 10px);
}

/* ---------- Layar lebar & layar pendek ---------- */
@media (min-width: 768px) and (any-pointer: fine) {
    .app-view.view-home { padding: 18px; }
    body.is-home .advisor-fab {
        bottom: calc(18px + var(--home-tabs-h) + var(--home-slide-h) + (var(--home-gap) * 2) + 10px);
    }
    body.is-home.home-dock-collapsed .advisor-fab {
        bottom: calc(18px + var(--home-tabs-h) + var(--home-gap) + 10px);
    }
}
@media (max-height: 600px) {
    :root { --home-slide-h: 132px; }
    .app-view.view-home { overflow-y: auto; }
    .home-wrapper { height: auto; min-height: 100%; }
    .home-map { min-height: 220px; }
}

/* ============================================================================
   99. ASISTEN BISNIS (v2027.36a) — tombol melayang + panel saran
   ============================================================================ */
.advisor-fab {
    position: fixed; right: 14px;
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 14px);
    width: 46px; height: 46px; border-radius: var(--r-pill);
    display: flex; align-items: center; justify-content: center;
    background: var(--accent); color: #ffffff; border: none; cursor: pointer;
    box-shadow: 0 4px 14px var(--accent-glow), var(--shadow);
    z-index: 21; -webkit-tap-highlight-color: transparent;
    transition: transform 0.15s ease, opacity 0.2s ease;
}
.advisor-fab:active { transform: scale(0.92); }
.advisor-fab.is-hidden { opacity: 0; pointer-events: none; transform: scale(0.8); }
.advisor-fab.critical { background: var(--danger); box-shadow: 0 4px 14px var(--danger-soft), var(--shadow); animation: advisorPulse 2s ease-in-out infinite; }
.advisor-badge {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
    border-radius: var(--r-pill); background: var(--danger); color: #fff;
    font-size: 10px; font-weight: var(--fw-bold); line-height: 18px; text-align: center;
    border: 2px solid var(--bg-1); box-sizing: content-box;
}
.advisor-badge[hidden] { display: none; }
.advisor-fab.critical .advisor-badge { background: #fff; color: var(--danger); }
@keyframes advisorPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }
@media (min-width: 768px) and (any-pointer: fine) { .advisor-fab { bottom: 18px; right: 18px; } }
@media (prefers-reduced-motion: reduce) { .advisor-fab.critical { animation: none; } }

.advisor-list { display: flex; flex-direction: column; gap: 8px; }
.advisor-item {
    display: flex; gap: 10px; padding: 10px 12px; border-radius: var(--r-lg);
    background: var(--bg-3); border: 1px solid var(--border); border-left-width: 3px;
}
.advisor-item.sev-critical { border-left-color: var(--danger); background: var(--danger-soft); }
.advisor-item.sev-warn     { border-left-color: var(--warn);   background: var(--warn-soft); }
.advisor-item.sev-tip      { border-left-color: var(--info); }
.advisor-item.sev-info     { border-left-color: var(--success); }
.advisor-ico { font-size: 20px; line-height: 1.2; flex-shrink: 0; }
.advisor-body { min-width: 0; flex: 1; }
.advisor-title { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-primary); }
.advisor-detail { font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-base); margin-top: 2px; }
.advisor-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.advisor-btn { padding: 6px 12px; font-size: var(--fs-sm); border-radius: var(--r-md); }
.advisor-ask { margin-top: 12px; }
.advisor-ask-row { display: flex; gap: 6px; }
.advisor-input {
    flex: 1; min-width: 0; padding: 8px 10px; border-radius: var(--r-md);
    background: var(--bg-3); color: var(--text-primary); border: 1px solid var(--border-strong);
    font: inherit; font-size: var(--fs-base);
}
.advisor-answer {
    margin-top: 8px; padding: 10px 12px; border-radius: var(--r-lg); background: var(--bg-3);
    border: 1px solid var(--border); font-size: var(--fs-sm); line-height: var(--lh-base);
    color: var(--text-primary); white-space: pre-wrap;
}
.advisor-answer[hidden] { display: none; }

/* ============================================================================
   102. GUIDE — step, system, collapsible overrides (v2027.14a)
   ============================================================================ */
.guide-step {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.guide-step:last-child { border-bottom: none; }
.guide-step-num {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 11px; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    margin-top: 1px;
}
.guide-step-text {
    font-size: 12.5px;
    color: var(--text-primary);
    line-height: 1.5;
}

.guide-sys-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.guide-sys-row:last-child { border-bottom: none; }
.guide-sys-icon {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
}
.guide-sys-icon svg { display: block; flex-shrink: 0; }
[data-theme="light"] .guide-sys-icon { background: rgba(37, 99, 235, 0.10); }
.guide-sys-body { flex: 1; min-width: 0; }
.guide-sys-title {
    font-size: 13px; font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    margin-bottom: 2px;
}
.guide-sys-desc {
    font-size: 11.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ============================================================================
   103. HEADER WALLET — cash + silicon (v2027.4a)
   Cash jadi minimalis, silicon button di bawahnya.
   ============================================================================ */
.header-wallet {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-wallet .header-cash {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.header-silicon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(139,92,246,0.16));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s, border-color 0.15s;
    line-height: 1;
    padding-top: 4px;
    padding-bottom: 4px;
}
.header-silicon:active { transform: scale(0.94); }
.header-silicon:hover { border-color: rgba(139,92,246,0.5); }

.header-silicon-ico {
    font-size: 11px;
    line-height: 1;
}

.header-silicon-value {
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

/* ============================================================================
   103. HEADER WALLET (v2027.4a)
   ============================================================================ */
.header-wallet {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
    margin-left: auto;
}
.header-wallet .header-cash {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.header-silicon {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(79,140,255,0.16), rgba(139,92,246,0.16));
    border: 1px solid rgba(139,92,246,0.3);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.12s, background 0.15s, border-color 0.15s;
    line-height: 1;
}
.header-silicon:active { transform: scale(0.94); }
.header-silicon:hover { border-color: rgba(139,92,246,0.5); }
.header-silicon-ico { font-size: 11px; line-height: 1; }
.header-silicon-value { font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ============================================================================
   104. SILICON — wallet, aksi, top-up, riset (v2027.40)
   Memakai token & pola yang sama dengan node-list / slot-strip / diff-btn.
   ============================================================================ */
.header-silicon-plus {
    display: inline-flex; align-items: center; justify-content: center;
    width: 13px; height: 13px; margin-left: 2px; border-radius: 50%;
    background: var(--accent); color: #fff;
    font-size: 11px; font-weight: var(--fw-black); line-height: 1;
}

/* Kartu saldo */
.sil-balance {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: linear-gradient(135deg, rgba(79,140,255,0.14), rgba(139,92,246,0.14));
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: var(--r-lg); padding: 12px 14px; margin-bottom: 4px;
}
.sil-balance-compact { justify-content: space-between; padding: 10px 14px; }
.sil-balance-label {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-secondary);
}
.sil-balance-value {
    font-size: var(--fs-2xl); font-weight: var(--fw-black); color: var(--accent);
    letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.sil-balance-value span { font-size: var(--fs-md); color: var(--text-secondary); font-weight: var(--fw-bold); }
.sil-balance-compact .sil-balance-value { font-size: var(--fs-xl); }
.sil-topup-btn { padding: 9px 14px; font-size: var(--fs-sm); white-space: nowrap; }

/* Pill harga SIL */
.sil-cost {
    flex-shrink: 0; padding: 3px 9px; border-radius: var(--r-pill);
    background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.3);
    color: var(--text-primary); font-size: var(--fs-xs); font-weight: var(--fw-black);
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Baris aksi di modal Silicon */
.sil-row {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 12px; background: transparent; border: none;
    border-bottom: 1px solid var(--border); color: var(--text-primary);
    font-family: inherit; text-align: left; cursor: pointer;
    transition: background 0.12s, transform 0.08s;
}
.sil-row:last-child { border-bottom: none; }
.sil-row:hover { background: var(--bg-3); }
.sil-row:active { transform: scale(0.99); }
.sil-row-ico { font-size: 18px; width: 26px; text-align: center; flex-shrink: 0; }
.sil-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sil-row-title { font-size: var(--fs-base); font-weight: var(--fw-bold); letter-spacing: -0.005em; }
.sil-row-desc { font-size: var(--fs-xs); color: var(--text-tertiary); line-height: 1.35; }
.sil-row.is-short .sil-cost,
.sil-btn.is-short .sil-cost { background: var(--danger-soft); border-color: rgba(239,68,68,0.35); color: var(--danger); }
.sil-row.is-short { opacity: 0.8; }

.sil-empty { font-size: var(--fs-xs); color: var(--text-tertiary); padding: 6px 2px; }
.sil-hist-row {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 8px 12px; font-size: var(--fs-xs); border-bottom: 1px solid var(--border);
}
.sil-hist-row:last-child { border-bottom: none; }
.sil-hist-reason { color: var(--text-secondary); min-width: 0; }
.sil-hist-delta { font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.sil-hist-delta.pos { color: var(--success); }
.sil-hist-delta.neg { color: var(--danger); }
.sil-hist-delta.warn { color: var(--warn); }

/* Blok SIL di modal detail riset */
.sil-block {
    margin-top: 12px; padding: 10px 12px;
    background: linear-gradient(135deg, rgba(79,140,255,0.08), rgba(139,92,246,0.08));
    border: 1px solid rgba(139,92,246,0.25); border-radius: var(--r);
}
.sil-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sil-block-title {
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-secondary);
}
.sil-block-bal { font-size: var(--fs-xs); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.sil-btn {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
    padding: 9px 12px; margin-top: 6px; background: var(--bg-3);
    border: 1px solid var(--border); border-radius: var(--r);
    color: var(--text-primary); font-family: inherit; text-align: left; cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.08s;
}
.sil-btn:first-of-type { margin-top: 0; }
.sil-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.sil-btn:active { transform: scale(0.98); }
.sil-btn-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sil-btn-title { font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.sil-btn-sub { font-size: var(--fs-2xs); color: var(--text-tertiary); line-height: 1.35; }
.sil-hint { font-size: var(--fs-xs); color: var(--text-tertiary); line-height: 1.4; }

/* Tombol boost kecil di slot-strip */
.slot-strip-item-boost { display: flex; justify-content: flex-end; margin-top: 6px; }
.slot-boost {
    padding: 3px 9px; border-radius: var(--r-pill);
    background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.3);
    color: var(--text-primary); font-family: inherit; font-size: var(--fs-2xs);
    font-weight: var(--fw-bold); cursor: pointer; font-variant-numeric: tabular-nums;
    transition: transform 0.08s, border-color 0.12s;
}
.slot-boost:hover { border-color: rgba(139,92,246,0.6); }
.slot-boost:active { transform: scale(0.94); }
.slot-boost[data-sil-short] { color: var(--danger); border-color: rgba(239,68,68,0.35); background: var(--danger-soft); }

/* Top Up — paket */
.sil-pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sil-pkg {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px;
    padding: 14px 6px 10px; background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--text-primary); font-family: inherit; cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.06s;
}
.sil-pkg:active { transform: scale(0.97); }
.sil-pkg.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.sil-pkg-ico { font-size: 20px; line-height: 1; }
.sil-pkg-amt { font-size: var(--fs-lg); font-weight: var(--fw-black); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sil-pkg-bonus { font-size: var(--fs-2xs); font-weight: var(--fw-bold); color: var(--success); min-height: 13px; }
.sil-pkg-price { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-secondary); margin-top: 2px; }
.sil-pkg-tag {
    position: absolute; top: -7px; left: 50%; transform: translateX(-50%);
    padding: 1px 7px; border-radius: var(--r-pill); white-space: nowrap;
    font-size: 9px; font-weight: var(--fw-black); letter-spacing: 0.4px; text-transform: uppercase;
    background: var(--accent); color: #fff;
}
.sil-pkg-tag-best { background: var(--warn); color: #1a1a1a; }

/* Top Up — slot metode bayar */
.sil-methods { display: flex; flex-direction: column; }
.sil-method-group {
    margin: 10px 2px 4px; font-size: var(--fs-2xs); font-weight: var(--fw-bold);
    letter-spacing: 0.7px; text-transform: uppercase; color: var(--text-tertiary);
}
.sil-method-group:first-child { margin-top: 0; }
.sil-method {
    display: flex; align-items: center; gap: 10px; width: 100%; margin-bottom: 6px;
    padding: 10px 12px; background: var(--bg-3); border: 1px solid var(--border);
    border-radius: var(--r); color: var(--text-primary); font-family: inherit; text-align: left; cursor: pointer;
    transition: border-color 0.15s, background 0.15s, transform 0.06s;
}
.sil-method:active { transform: scale(0.99); }
.sil-method.active { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.sil-method.is-soon { opacity: 0.55; cursor: not-allowed; border-style: dashed; }
.sil-method-ico { font-size: 16px; width: 22px; text-align: center; flex-shrink: 0; }
.sil-method-name { flex: 1; min-width: 0; font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.sil-badge {
    padding: 1px 7px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--text-tertiary);
    font-size: var(--fs-2xs); font-weight: var(--fw-bold);
}
.sil-badge-on { background: var(--success-soft); color: var(--success); }
.sil-radio {
    width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0;
    border: 2px solid var(--border-strong); position: relative;
}
.sil-method.active .sil-radio { border-color: var(--accent); }
.sil-method.active .sil-radio::after {
    content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent);
}
.sil-method.is-soon .sil-radio { display: none; }
.sil-summary { margin-top: 12px; }


/* ============================================================================
   PHONE MOCKUP V3 — view toggle, caption, static mode
   ============================================================================ */
.phone-static { animation: none !important; }
.phone-mockup-wrap svg rect[fill^="url"] { animation: none; }
.phone-cap {
    text-align: center; font-size: 10.5px; font-weight: 600;
    letter-spacing: 0.3px; color: var(--text-tertiary);
    margin-top: 6px; user-select: none;
}
.wiz-mockup-live { flex-direction: column; gap: 0; }
.wiz-mockup-actions { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.wiz-view-toggle {
    display: inline-flex; border: 1px solid var(--border);
    border-radius: 999px; overflow: hidden; background: var(--bg-3);
}
.wiz-view-toggle button {
    border: 0; background: transparent; color: var(--text-secondary);
    font-size: 12px; font-weight: 600; padding: 7px 14px; min-height: 34px;
    cursor: pointer; transition: background 0.15s, color 0.15s;
}
.wiz-view-toggle button.active { background: var(--accent); color: #fff; }

/* ===== Katalog produk (v2027.4) ===== */
.cat-summary { margin-bottom: 10px; grid-template-columns: repeat(3, 1fr); }
.cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.prod-card.is-disc { opacity: 0.72; }
.cat-rate.good { color: var(--success); font-weight: 700; }
.cat-rate.mid  { color: var(--warning, #f5b942); font-weight: 700; }
.cat-rate.bad  { color: var(--danger); font-weight: 700; }
.cat-stock { margin-top: 8px; }
.cat-stock-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-mute); margin-bottom: 4px; }
.cat-warn { color: var(--danger); font-weight: 700; }
.cat-bar { height: 6px; border-radius: 6px; background: var(--bg-4); overflow: hidden; }
.cat-bar-fill { height: 100%; border-radius: 6px; background: var(--success); transition: width 0.3s ease; }
.cat-bar-fill.low { background: var(--warning, #f5b942); }
.cat-bar-fill.out { background: var(--danger); }
.cat-auto { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border, rgba(255,255,255,0.08)); font-size: 12px; color: var(--text-secondary); }
.cat-auto .toggle-switch { touch-action: manipulation; }


/* ============================================================================
   OV — HQ OVERVIEW (v2027.31a)
   Semua class berawalan "ov-" supaya tidak bentrok dengan panel lain.
   Padding bawah aman: .app-view sudah menambah nav-h + safe-area-inset-bottom.
   ============================================================================ */
.ov-wrap { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; min-width: 0; }
.ov-wrap > .collapsible-card { margin-bottom: 0; }
.ov-sec { min-width: 0; }

.ov-card {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-xl); padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.ov-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; min-width: 0; }
.ov-sec-title {
    margin: 0; font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: 0.7px;
    text-transform: uppercase; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.ov-label {
    font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: 0.6px;
    text-transform: uppercase; color: var(--text-secondary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.ov-muted { font-size: var(--fs-xs); color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* chip ikon kecil (kanan atas kartu) */
.ov-chip {
    display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
    width: 26px; height: 26px; border-radius: 9px;
    color: var(--ov-tone, var(--accent)); background: var(--bg-4);
}
.ov-chip svg { display: block; }

/* pill perubahan */
.ov-delta {
    display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
    font-size: var(--fs-xs); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums;
    padding: 2px 8px; border-radius: var(--r-pill); white-space: nowrap;
    color: var(--text-secondary); background: var(--bg-4);
}
.ov-delta.up   { color: var(--success); }
.ov-delta.down { color: var(--danger); }

/* ① HERO */
.ov-hero {
    position: relative; overflow: hidden; padding: 16px;
    background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 70%);
    border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.ov-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(120% 90% at 100% 0%, rgba(59, 130, 246, 0.16), transparent 60%);
}
.ov-hero--neg::before { background: radial-gradient(120% 90% at 100% 0%, rgba(239, 68, 68, 0.16), transparent 60%); }
.ov-hero > * { position: relative; }
.ov-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-hero-value {
    margin-top: 6px; font-size: var(--fs-3xl); font-weight: var(--fw-black);
    letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums;
    color: var(--accent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-hero-sub { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.ov-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.ov-stat {
    min-width: 0; padding: 10px 12px; background: var(--bg-1);
    border: 1px solid var(--border); border-radius: var(--r-lg);
}
.ov-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; color: var(--ov-tone, var(--text-secondary)); }
.ov-stat-value {
    margin-top: 4px; font-size: var(--fs-lg); font-weight: var(--fw-black);
    font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-runway {
    display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
    font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.4;
    color: var(--ov-tone, var(--text-secondary));
}
.ov-runway svg { flex: 0 0 auto; margin-top: 1px; }

/* ② METRICS 2x2 */
.ov-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ov-metric {
    min-width: 0; display: flex; flex-direction: column; padding: 12px 14px;
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-xl); box-shadow: var(--shadow-sm);
}
.ov-metric-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.ov-metric-value {
    margin: 8px 0 8px; font-size: var(--fs-2xl); font-weight: var(--fw-black); line-height: 1;
    letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ov-metric-unit { margin-left: 3px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); letter-spacing: 0; color: var(--text-tertiary); }
.ov-meter { height: 5px; border-radius: var(--r-pill); background: var(--bg-4); overflow: hidden; }
.ov-meter > i { display: block; height: 100%; width: var(--w, 0%); background: var(--ov-tone, var(--accent)); border-radius: inherit; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.ov-meter--off { visibility: hidden; }
.ov-metric-sub {
    margin-top: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold);
    color: var(--ov-tone, var(--text-secondary)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ③ LIVE FEED */
.ov-live { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: var(--fw-bold); letter-spacing: 0.8px; color: var(--success); }
.ov-live-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: ovPulse 1.8s ease-in-out infinite; }
@keyframes ovPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.7); } }
.ov-feed-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 0; font-size: var(--fs-sm); }
.ov-feed-row + .ov-feed-row { border-top: 1px solid var(--border); }
.ov-feed-dot { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 auto; background: var(--ov-tone, var(--text-tertiary)); }
.ov-feed-time { flex: 0 0 auto; min-width: 32px; font-size: var(--fs-2xs); color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.ov-feed-text { flex: 1 1 auto; min-width: 0; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-feed-empty { padding: 8px 0 2px; font-size: var(--fs-sm); color: var(--text-tertiary); }

/* ④ CHART */
.ov-chart .chart-canvas { touch-action: pan-y; }

/* ⑤ QUICK ACTIONS */
.ov-qa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ov-qa {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-width: 0; min-height: 76px; padding: 10px 6px; font-family: inherit;
    font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-primary);
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm); cursor: pointer; -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.15s;
}
.ov-qa:active { transform: scale(0.96); background: var(--bg-3); }
.ov-qa .ov-chip { width: 34px; height: 34px; border-radius: 11px; }
.ov-qa-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* SOROTAN PUBLIK (ringkas) */
.ov-pulse {
    display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px;
    text-align: left; font-family: inherit; color: inherit;
    background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-sm); cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ov-pulse:active { background: var(--bg-3); }
.ov-pulse-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ov-pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ov-pulse-score { flex: 0 0 auto; font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--ov-tone, var(--text-secondary)); }
.ov-pulse-viral { font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ov-pulse-text {
    font-size: var(--fs-sm); line-height: 1.4; color: var(--text-primary);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ov-pulse-go { flex: 0 0 auto; font-size: 20px; line-height: 1; color: var(--text-tertiary); }

/* tint modern bila browser mendukung color-mix */
@supports (background: color-mix(in srgb, red 10%, transparent)) {
    .ov-chip { background: color-mix(in srgb, var(--ov-tone, var(--accent)) 16%, transparent); }
    .ov-delta.up   { background: color-mix(in srgb, var(--success) 15%, transparent); }
    .ov-delta.down { background: color-mix(in srgb, var(--danger) 15%, transparent); }
}

/* animasi masuk (ikut view-fresh yang sudah ada) */
.view-fresh .ov-sec { animation: viewCardIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) both; }
.view-fresh .ov-wrap > .ov-sec:nth-child(2) { animation-delay: 0.03s; }
.view-fresh .ov-wrap > .ov-sec:nth-child(3) { animation-delay: 0.06s; }
.view-fresh .ov-wrap > .ov-sec:nth-child(4) { animation-delay: 0.09s; }
.view-fresh .ov-wrap > .ov-sec:nth-child(n+5) { animation-delay: 0.12s; }
@media (prefers-reduced-motion: reduce) {
    .ov-live-dot, .view-fresh .ov-sec { animation: none; }
}

/* layar sempit */
@media (max-width: 360px) {
    .ov-hero-value { font-size: 28px; }
    .ov-metric-value { font-size: 22px; }
}

/* mode compact (density.css tidak perlu diubah) */
html[data-density="compact"] .ov-wrap { gap: 8px; }
html[data-density="compact"] .ov-card { padding: 10px 12px; }
html[data-density="compact"] .ov-hero { padding: 12px; }
html[data-density="compact"] .ov-hero-value { font-size: var(--fs-2xl); }
html[data-density="compact"] .ov-split { margin-top: 10px; }
html[data-density="compact"] .ov-metric { padding: 9px 11px; }
html[data-density="compact"] .ov-metric-value { font-size: var(--fs-xl); margin: 6px 0; }
html[data-density="compact"] .ov-qa { min-height: 62px; }
/* ============================================================================
   iCLOUD LAYER v2027.11 — padat, pekat, tajam, nyaman di mata
   Dimuat paling akhir. Mengganti blok "Precision Navigation Bar" lama.
   Prinsip: permukaan solid (tanpa blur keruh), garis hairline 1px,
   kontras teks tinggi, radius kecil, bayangan nyaris tak terlihat,
   angka tabular, font SF dengan antialiasing tajam.
   Density compact sudah menyatu di sini (density.css tidak diperlukan).
   ============================================================================ */

/* ---------- 1. Token warna: iCloud light & dark ---------- */
:root,
[data-theme="dark"] {
    --bg-0: #000000; --bg-1: #121214; --bg-2: #1c1c1e;
    --bg-3: #2c2c2e; --bg-4: #3a3a3c;
    --border: #2f2f33;
    --border-strong: #48484c;
    --text-primary: #f5f5f7; --text-secondary: #b4b4ba;
    --text-tertiary: #8e8e93; --text-disabled: #5a5a5f;
    --shadow-sm: 0 0 0 0 transparent;
    --shadow: 0 1px 3px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.65);
    --bg-overlay: rgba(0,0,0,0.65);
    --bg-header: #121214;
    --bg-nav: #121214;
}
[data-theme="light"] {
    --bg-0: #f5f5f7; --bg-1: #ffffff; --bg-2: #ffffff;
    --bg-3: #f0f0f3; --bg-4: #e4e4e9;
    --border: #e1e1e6;
    --border-strong: #c7c7cc;
    --text-primary: #1d1d1f; --text-secondary: #515154;
    --text-tertiary: #6e6e73; --text-disabled: #aeaeb2;
    --shadow-sm: 0 0 0 0 transparent;
    --shadow: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 28px rgba(0,0,0,0.16);
    --bg-overlay: rgba(0,0,0,0.42);
    --bg-header: #ffffff;
    --bg-nav: #ffffff;
}
/* aksen biru ala Apple (lebih tajam) */
[data-theme="light"][data-accent="blue"] { --accent:#0071e3; --accent-hover:#0062c4; --accent-soft:rgba(0,113,227,0.10); --accent-glow:rgba(0,113,227,0.0); }
[data-theme="dark"][data-accent="blue"]  { --accent:#0a84ff; --accent-hover:#409cff; --accent-soft:rgba(10,132,255,0.16); --accent-glow:rgba(10,132,255,0.0); }

/* ---------- 2. Tipografi: tajam & padat ---------- */
:root { --nav-h: 54px; --r-sm: 5px; --r: 8px; --r-md: 10px; --r-lg: 12px; --r-xl: 14px; }
body {
    font-size: 13px; line-height: 1.4; letter-spacing: -0.01em;
    font-feature-settings: "tnum" 1, "cv11" 1;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
.kpi-value, .header-cash, .sum-row, td, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- 3. Header: solid, tipis, garis hairline ---------- */
.app-header {
    background: var(--bg-header) !important;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    border-bottom: 1px solid var(--border);
}
.header-inner { gap: 1px; padding: 6px 12px; }
.header-row { min-height: 20px; }
.header-company { font-weight: 700; letter-spacing: -0.02em; }
.header-meta { font-size: 10.5px; color: var(--text-secondary); }
.btn-icon {
    min-width: 30px; height: 24px; padding: 0 6px; font-size: 10.5px;
    background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-sm);
}

/* ---------- 4. Konten ---------- */
.app-view {
    padding: 8px 8px 0;
    padding-bottom: calc(12px + var(--nav-h) + env(safe-area-inset-bottom));
}

/* ---------- 5. Kartu: datar, garis tipis, padat ---------- */
.card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 10px 12px; margin-bottom: 6px;
    box-shadow: none;
}
@media (hover: hover) { .card:hover { transform: none; box-shadow: none; border-color: var(--border-strong); } }
.card-title {
    margin-bottom: 6px; font-weight: 700; letter-spacing: 0.4px;
    color: var(--text-secondary);
}
.kpi-grid { gap: 6px; margin-bottom: 6px; }
.kpi {
    background: var(--bg-2); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 8px 10px; box-shadow: none;
}
.kpi::before { width: 2px; animation: none; opacity: 0.9; }
.kpi-label { margin-bottom: 2px; color: var(--text-secondary); font-weight: 700; }
.kpi-value { font-size: 17px; font-weight: 800; letter-spacing: -0.03em; }
.kpi-sub { margin-top: 2px; }

/* ---------- 6. Baris & daftar: rapat dengan pemisah tipis ---------- */
.sum-row { padding: 6px 0; border-bottom: 1px solid var(--border); }
.sum-row:last-child { border-bottom: 0; }
.sum-row.total { padding-top: 8px; margin-top: 2px; font-weight: 700; }
.log-entry { padding: 4px 0; border-bottom: 1px solid var(--border); }
.quest-item { padding: 6px 0; gap: 8px; }
.settings-row { padding: 9px 12px; }
.node-row-wrap, .os-row, .cand-row { padding: 7px 10px; }
.os-hero { padding: 9px 12px; }

/* ---------- 7. Tombol & form: tegas ---------- */
.btn-primary, .btn-secondary, .btn-danger {
    min-height: 36px; padding: 7px 12px; box-shadow: none;
    border-radius: var(--r); font-weight: 600; letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: none; }
.btn-secondary { background: var(--bg-3); border-color: var(--border-strong); }
.btn-toggle { padding: 5px 10px; }
.field-label { margin: 4px 0; font-weight: 600; color: var(--text-secondary); }
.field-input {
    padding: 9px 12px; font-size: 13px;
    background: var(--bg-1); border: 1px solid var(--border-strong); border-radius: var(--r);
}
.field-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: none; }
.diff-grid { gap: 6px; }
.diff-btn { padding: 8px 12px; min-height: 48px; }

/* ---------- 8. Sub-tab (segmented control ala iOS) ---------- */
.subtab-bar {
    margin-bottom: 8px; padding: 2px; box-shadow: none;
    background: var(--bg-3); border: 0; border-radius: var(--r);
}
.subtab-btn { padding: 6px; min-height: 30px; border-radius: 6px; font-weight: 600; }
.subtab-btn.active {
    background: var(--bg-2); color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,0.18); border: 0;
}
[data-theme="dark"] .subtab-btn.active { background: var(--bg-4); box-shadow: none; }

/* ---------- 9. Lain-lain ---------- */
.progress { height: 5px; border-radius: 3px; }
.progress-label { margin-bottom: 4px; }
.empty { padding: 28px 16px; }
.chart-wrap, .chart-canvas { height: 130px; }
.ov-wrap { gap: 8px; }
.ov-card, .ov-qa, .ov-pulse, .ov-metric { box-shadow: none; border-radius: var(--r-md); }
.ov-card { padding: 10px 12px; }
.ov-hero { padding: 12px; }
.ov-hero-value { font-size: var(--fs-2xl); }
.ov-metric { padding: 9px 11px; }
.ov-metric-value { font-size: var(--fs-xl); margin: 6px 0; }
.ov-qa { min-height: 62px; }

/* ---------- 10. NAVIGASI BAWAH: putih, mengikuti tema UI ---------- */
.mobile-nav {
    position: fixed !important; left: 0; right: 0; bottom: 0;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom) !important;
    /* kaca: konten di belakang tampak kabur & menyala menembus bar (seperti header iCloud) */
    background: rgba(255,255,255,0.58) !important;
    -webkit-backdrop-filter: blur(28px) saturate(210%) brightness(1.04) !important;
    backdrop-filter: blur(28px) saturate(210%) brightness(1.04) !important;
    border-top: 1px solid rgba(255,255,255,0.65) !important;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.06), 0 -8px 24px rgba(0,0,0,0.05);
    z-index: 30;
}
[data-theme="dark"] .mobile-nav {
    background: rgba(28,28,30,0.55) !important;
    -webkit-backdrop-filter: blur(28px) saturate(190%) brightness(1.15) !important;
    backdrop-filter: blur(28px) saturate(190%) brightness(1.15) !important;
    border-top: 1px solid rgba(255,255,255,0.14) !important;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.5), 0 -8px 24px rgba(0,0,0,0.25);
}
/* header ikut kaca tipis */
.app-header {
    background: rgba(255,255,255,0.72) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important; backdrop-filter: blur(24px) saturate(200%) !important;
}
[data-theme="dark"] .app-header {
    background: rgba(18,18,20,0.68) !important;
}
.nav-btn {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px !important; padding: 4px 0 !important; min-height: 44px;
    background: transparent !important;
    color: var(--text-tertiary) !important;
    transition: color 0.2s ease !important;
    z-index: 2;
}
.nav-btn.active { color: var(--accent) !important; }
.mobile-nav .nav-btn:not(.active) { color: #515154 !important; }
[data-theme="dark"] .mobile-nav .nav-btn:not(.active) { color: rgba(235,235,245,0.78) !important; text-shadow: 0 1px 2px rgba(0,0,0,0.45); }
[data-theme="dark"] .mobile-nav .nav-btn.active { color: #4da3ff !important; }
.nav-btn:active { transform: scale(0.94); transition: transform 0.1s; }
.nav-ico-wrap { height: 24px; display: flex; align-items: center; justify-content: center; position: relative; }
.nav-btn .nav-ico { width: 22px; height: 22px; }
.nav-btn .nav-ico svg { width: 22px !important; height: 22px !important; stroke-width: 1.9px !important; }
.nav-btn.active .nav-ico { transform: none; animation: none; }
.nav-btn .nav-label {
    font-size: 10px !important; font-weight: 500 !important;
    line-height: 1 !important; letter-spacing: 0 !important; margin-top: 1px;
}
.nav-btn.active .nav-label { font-weight: 700 !important; }
/* Slider kaca (liquid glass): kapsul di belakang ikon+label, bisa digeser */
.nav-slider {
    position: absolute; left: 0; top: 4px !important;
    height: calc(var(--nav-h) - 8px) !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    border-radius: 16px !important;
    transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1), width 0.38s cubic-bezier(0.32, 0.72, 0, 1) !important;
    pointer-events: none; z-index: 1; will-change: transform, width;
}
.nav-slider::before {            /* lensa kaca */
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.40) 0%, rgba(0,113,227,0.10) 100%);
    border: 1px solid rgba(255,255,255,0.85);
    -webkit-backdrop-filter: blur(6px) saturate(220%) brightness(1.08); backdrop-filter: blur(6px) saturate(220%) brightness(1.08);
    box-shadow: 0 2px 10px rgba(0,40,120,0.16), 0 0 0 1px rgba(0,113,227,0.14),
                inset 0 1px 1px rgba(255,255,255,1),
                inset 0 -8px 14px rgba(0,113,227,0.10);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s;
}
.nav-slider::after {             /* kilau tepi bawah (refleksi) */
    content: ""; position: absolute; left: 18%; right: 18%; bottom: 3px; height: 22%;
    border-radius: 0 0 14px 14px;
    background: linear-gradient(0deg, rgba(255,255,255,0.55), rgba(255,255,255,0));
    opacity: 0.7; pointer-events: none;
}
[data-theme="dark"] .nav-slider::before {
    background:
        radial-gradient(120% 90% at 50% 0%, rgba(255,255,255,0.32) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(10,132,255,0.20) 100%);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 2px 12px rgba(0,0,0,0.5), 0 0 0 1px rgba(10,132,255,0.22),
                inset 0 1px 1px rgba(255,255,255,0.45),
                inset 0 -8px 14px rgba(10,132,255,0.22);
}
[data-theme="dark"] .nav-slider::after { background: linear-gradient(0deg, rgba(255,255,255,0.22), rgba(255,255,255,0)); }
/* saat digeser: kaca membesar sedikit & lebih terang, tanpa delay */
.mobile-nav.dragging .nav-slider { transition: none !important; }
.mobile-nav.dragging .nav-slider::before {
    transform: scale(1.12, 1.16);
    box-shadow: 0 8px 26px rgba(0,40,120,0.24), 0 0 0 1px rgba(0,113,227,0.20),
                inset 0 1px 1px rgba(255,255,255,1),
                inset 0 -8px 14px rgba(0,113,227,0.14);
}
[data-theme="dark"] .mobile-nav.dragging .nav-slider::before {
    background: linear-gradient(180deg, rgba(255,255,255,0.24) 0%, rgba(10,132,255,0.32) 100%);
    box-shadow: 0 10px 26px rgba(0,0,0,0.65),
                inset 0 1px 0 rgba(255,255,255,0.38),
                inset 0 -1px 0 rgba(10,132,255,0.35);
}
.mobile-nav { touch-action: pan-y; }
.mobile-nav .nav-btn.drag-hover { color: var(--accent) !important; transform: none; }
.mobile-nav.dragging .nav-btn.active:not(.drag-hover) { color: #8e8e93 !important; }
.mobile-nav .nav-btn.drag-hover .nav-ico { transform: scale(1.12); }
.nav-btn .nav-ico { transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), color 0.15s; }

/* ---------- 11. Desktop ---------- */
@media (min-width: 768px) and (any-pointer: fine) {
    .app-view { padding: 12px 12px 0; padding-bottom: 12px; }
}

/* ============================================================================
   59. NAVIGASI BAWAH — gaya Apple "Liquid Glass" (tab bar iOS 26)
   Kapsul melayang, kaca bening berlapis (blur + saturasi + rim light spekular),
   pil pilihan kaca, drag = lensa membesar. Blok ini sengaja di paling akhir
   agar menimpa semua aturan .mobile-nav / .nav-* sebelumnya.
   ============================================================================ */
:root {
    --lg-bar-h: 62px;                                  /* tinggi kapsul bar */
    --lg-side: 16px;                                   /* jarak kiri/kanan */
    --lg-gap: 10px;                                    /* jarak ke bawah layar */
    --nav-h: 76px;                                     /* ruang yang dipesan untuk konten/FAB */
    --lg-spring: cubic-bezier(0.32, 0.72, 0, 1);
    --lg-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-nav {
    position: fixed !important;
    left: var(--lg-side) !important; right: var(--lg-side) !important;
    bottom: calc(var(--lg-gap) + env(safe-area-inset-bottom) * 0.55) !important;
    height: var(--lg-bar-h) !important;
    padding: 0 !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: rgba(255, 255, 255, 0.30) !important;
    -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.06) !important;
    backdrop-filter: blur(26px) saturate(190%) brightness(1.06) !important;
    box-shadow:
        0 10px 32px rgba(15, 25, 50, 0.16),
        0 2px 8px rgba(15, 25, 50, 0.08),
        inset 0 1px 1px rgba(255, 255, 255, 0.85),
        inset 0 -1px 1px rgba(255, 255, 255, 0.35),
        inset 0 0 18px rgba(255, 255, 255, 0.28) !important;
    z-index: 30;
    isolation: isolate;
    transition: transform 0.35s var(--lg-spring);
}
/* kilau spekular dari atas (pantulan cahaya di permukaan kaca) */
.mobile-nav::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background:
        radial-gradient(90% 120% at 18% -30%, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 48%);
    pointer-events: none; z-index: 0;
}
/* garis tepi (rim light) bergradien: terang di sudut, tipis di tengah */
.mobile-nav::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg,
        rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.18) 28%,
        rgba(255,255,255,0.06) 55%, rgba(255,255,255,0.18) 78%, rgba(255,255,255,0.85) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none; z-index: 3;
}
[data-theme="dark"] .mobile-nav {
    background: rgba(44, 44, 50, 0.34) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%) brightness(1.12) !important;
    backdrop-filter: blur(30px) saturate(180%) brightness(1.12) !important;
    box-shadow:
        0 14px 36px rgba(0, 0, 0, 0.50),
        0 2px 8px rgba(0, 0, 0, 0.30),
        inset 0 1px 1px rgba(255, 255, 255, 0.24),
        inset 0 -1px 1px rgba(255, 255, 255, 0.06),
        inset 0 0 16px rgba(255, 255, 255, 0.05) !important;
}
[data-theme="dark"] .mobile-nav::before {
    background:
        radial-gradient(90% 120% at 18% -30%, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 48%);
}
[data-theme="dark"] .mobile-nav::after {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.50) 0%, rgba(255,255,255,0.08) 28%,
        rgba(255,255,255,0.02) 55%, rgba(255,255,255,0.08) 78%, rgba(255,255,255,0.38) 100%);
}

/* ---------- tombol ---------- */
.mobile-nav .nav-btn {
    gap: 3px !important; padding: 7px 0 6px !important; min-height: 0;
    background: transparent !important;
    color: rgba(60, 60, 67, 0.72) !important;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.25s ease, transform 0.35s var(--lg-bounce) !important;
    z-index: 2;
}
[data-theme="dark"] .mobile-nav .nav-btn:not(.active) {
    color: rgba(235, 235, 245, 0.62) !important; text-shadow: none;
}
.mobile-nav .nav-btn.active { color: var(--accent) !important; }
[data-theme="dark"] .mobile-nav .nav-btn.active { color: #4da3ff !important; }
.mobile-nav .nav-btn:active { transform: scale(0.92); transition: transform 0.12s ease !important; }
.mobile-nav .nav-ico-wrap { height: 25px; }
.mobile-nav .nav-btn .nav-ico { width: 24px; height: 24px; }
.mobile-nav .nav-btn .nav-ico svg { width: 24px !important; height: 24px !important; stroke-width: 1.75px !important; }
.mobile-nav .nav-btn .nav-label {
    font-size: 10px !important; font-weight: 500 !important;
    letter-spacing: 0.01em !important; margin-top: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
}
.mobile-nav .nav-btn.active .nav-label { font-weight: 600 !important; }
/* ikon aktif "terisi" seperti SF Symbols terpilih */
.mobile-nav .nav-btn.active[data-nav="dashboard"] .nav-ico svg,
.mobile-nav .nav-btn.active[data-nav="team"] .nav-ico svg,
.mobile-nav .nav-btn.active[data-nav="research"] .nav-ico svg,
.mobile-nav .nav-btn.active[data-nav="products"] .nav-ico svg { fill: currentColor; fill-opacity: 0.22; }
.mobile-nav .nav-btn .nav-ico { transition: transform 0.3s var(--lg-bounce), color 0.2s !important; }
.mobile-nav .nav-btn.active .nav-ico { transform: none; animation: none; }

/* ---------- pil kaca terpilih (kapsul) ---------- */
.mobile-nav .nav-slider {
    top: 4px !important; height: calc(var(--lg-bar-h) - 8px) !important;
    border-radius: 999px !important;
    background: transparent !important; border: 0 !important; box-shadow: none !important;
    transition: transform 0.45s var(--lg-spring), width 0.45s var(--lg-spring) !important;
    z-index: 1;
}
.mobile-nav .nav-slider::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.10) 100%),
        rgba(120, 120, 135, 0.16);
    border: 0;
    -webkit-backdrop-filter: blur(4px) saturate(200%) brightness(1.05);
    backdrop-filter: blur(4px) saturate(200%) brightness(1.05);
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.10),
        inset 0 1px 1px rgba(255, 255, 255, 0.95),
        inset 0 -1px 1px rgba(255, 255, 255, 0.55),
        inset 0 0 10px rgba(255, 255, 255, 0.45);
    transition: transform 0.4s var(--lg-bounce), box-shadow 0.25s, background 0.25s;
}
.mobile-nav .nav-slider::after { display: none; }
[data-theme="dark"] .mobile-nav .nav-slider::before {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0.04) 100%),
        rgba(255, 255, 255, 0.10);
    border: 0;
    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.35),
        inset 0 1px 1px rgba(255, 255, 255, 0.42),
        inset 0 -1px 1px rgba(255, 255, 255, 0.10),
        inset 0 0 10px rgba(255, 255, 255, 0.08);
}

/* ---------- saat digeser: lensa kaca membesar, bening, menonjol keluar bar ---------- */
.mobile-nav.dragging .nav-slider { transition: none !important; }
.mobile-nav.dragging .nav-slider::before {
    transform: scale(1.22, 1.28);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0) 65%),
        rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(1px) saturate(240%) brightness(1.12);
    backdrop-filter: blur(1px) saturate(240%) brightness(1.12);
    box-shadow:
        0 10px 28px rgba(15, 25, 50, 0.26),
        0 2px 6px rgba(15, 25, 50, 0.12),
        inset 0 1.5px 1px rgba(255, 255, 255, 1),
        inset 0 -2px 3px rgba(255, 255, 255, 0.7),
        inset 0 0 14px rgba(255, 255, 255, 0.5);
}
[data-theme="dark"] .mobile-nav.dragging .nav-slider::before {
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 65%),
        rgba(255, 255, 255, 0.12);
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.6),
        inset 0 1.5px 1px rgba(255, 255, 255, 0.6),
        inset 0 -2px 3px rgba(255, 255, 255, 0.18),
        inset 0 0 14px rgba(255, 255, 255, 0.14);
}
.mobile-nav.dragging .nav-btn.active:not(.drag-hover) { color: rgba(60,60,67,0.72) !important; }
[data-theme="dark"] .mobile-nav.dragging .nav-btn.active:not(.drag-hover) { color: rgba(235,235,245,0.62) !important; }
.mobile-nav .nav-btn.drag-hover { color: var(--accent) !important; transform: none; }
[data-theme="dark"] .mobile-nav .nav-btn.drag-hover { color: #4da3ff !important; }
.mobile-nav .nav-btn.drag-hover .nav-ico { transform: scale(1.14); }

/* ---------- fallback ---------- */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .mobile-nav { background: rgba(245, 245, 250, 0.94) !important; }
    [data-theme="dark"] .mobile-nav { background: rgba(38, 38, 42, 0.94) !important; }
}
@media (prefers-reduced-transparency: reduce) {
    .mobile-nav { background: rgba(245, 245, 250, 0.96) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    [data-theme="dark"] .mobile-nav { background: rgba(38, 38, 42, 0.96) !important; }
}
@media (prefers-reduced-motion: reduce) {
    .mobile-nav .nav-slider, .mobile-nav .nav-slider::before, .mobile-nav .nav-btn { transition: none !important; }
}
@media (min-width: 768px) and (any-pointer: fine) { .mobile-nav { display: none !important; } }


/* ============================================================================
   PERFORMANCE LAYER (hemat baterai / HP kelas bawah) — resolusi & fitur tidak dikurangi
   Prinsip: animasi tanpa henti hanya boleh memakai transform/opacity (jalur GPU compositor).
   Animasi box-shadow / filter / background-position memaksa repaint terus-menerus.
   ============================================================================ */
/* Redefinisi keyframes: yang terakhir menang. Tampilan hampir sama, biaya jauh lebih kecil. */
@keyframes kpiGlowStrong { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.kpi::before { box-shadow: 0 0 8px 1px var(--accent-glow); }
@keyframes questBreath   { 0%, 100% { opacity: 0.7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.25); } }
.quest-dot { box-shadow: 0 0 0 3px var(--warn-soft), 0 0 8px var(--warn); }
@keyframes newsPulse     { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(1.25); } }
@keyframes tlPulse       { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
/* filter drop-shadow animasi tanpa henti pada container toast: dibuang */
.toast-container:not(:empty) { animation: none; }
/* shimmer progress bar menganimasikan background-position (repaint) -> statis */
.progress-bar:not([style*="width:0%"]) { animation: none; }
/* efek denyut halus pada SVG (opacity 0.92 / 0.85) nyaris tak terlihat tapi memaksa repaint SVG */
.phone-mockup-wrap svg rect[fill^="url"], .radar-chart-wrap polygon[fill] { animation: none; }
/* elemen yang tidak terlihat tidak perlu dianimasikan */
[hidden], .is-hidden { animation: none !important; }

/* Mode hemat (HP lemah / baterai rendah / Data Saver) — diatur oleh skrip di index.html */
html[data-perf="lite"] *, html[data-perf="lite"] *::before, html[data-perf="lite"] *::after {
    animation-iteration-count: 1 !important;
}
html[data-perf="lite"] .app-header,
html[data-perf="lite"] .mobile-nav,
html[data-perf="lite"] .modal-backdrop,
html[data-perf="lite"] [class*="backdrop"] {
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
}
html[data-perf="lite"] .app-header { background: rgba(255,255,255,0.97) !important; }
html[data-perf="lite"][data-theme="dark"] .app-header { background: rgba(18,18,20,0.97) !important; }
html[data-perf="lite"] .mobile-nav { background: rgba(250,250,252,0.98) !important; }
html[data-perf="lite"][data-theme="dark"] .mobile-nav { background: rgba(28,28,30,0.98) !important; }
/* layar OLED/LCD hemat: tidak ada lagi gradien fixed yang di-repaint saat scroll */
html[data-perf="lite"] body { background-attachment: scroll !important; }
/* ============================================================================
   UX POLISH: STICKY HEADER & OS SUB-TABS
   ============================================================================ */

/* Sticky Search & Filter (Hanya menempel di dalam area pandang) */
.sticky-header-area {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-0);
    padding-top: 4px;
    padding-bottom: 8px;
    margin-bottom: 8px;
    /* Efek bayangan tipis saat menempel */
    box-shadow: 0 4px 12px -6px rgba(0,0,0,0.3); 
}

/* Navigasi Tab di dalam Panel OS */
.os-subtabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: var(--bg-2);
    padding: 4px;
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
}
.os-subtabs::-webkit-scrollbar { display: none; }
.os-subtab-btn {
    flex: 1;
    padding: 8px 12px;
    font-size: var(--fs-xs);
    font-weight: var(--fw-bold);
    background: transparent;
    color: var(--text-secondary);
    border: none;
    border-radius: var(--r-sm);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}
.os-subtab-btn.active {
    background: var(--bg-4);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

/* Utilitas Animasi Halus */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   ONBOARDING · MASUK / DAFTAR (v2028.40)
   Memakai token tema yang sudah ada (--accent, --bg-*, --border, ...) sehingga
   otomatis mengikuti tema gelap/terang & warna aksen pilihan pemain.
   ============================================================================ */
.onb-view { animation: onbIn 0.22s ease-out; }
@keyframes onbIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Baris aksi: "Mulai Bermain" + "Masuk" berdampingan */
.onb-actions { display: flex; gap: 10px; align-items: stretch; margin-top: 16px; }
.onb-actions .btn-primary { flex: 1.35 1 0; min-width: 0; }
.onb-actions .btn-secondary { flex: 1 1 0; min-width: 0; }
.onb-actions .btn-primary:only-child { flex: 1 1 auto; }
.onb-login-btn svg { flex: none; opacity: 0.9; }

.onb-hint {
    display: flex; align-items: flex-start; gap: 6px;
    margin-top: 10px; font-size: var(--fs-xs);
    color: var(--text-tertiary); line-height: 1.45;
}
.onb-hint svg { flex: none; margin-top: 1px; }

/* Chip akun (sudah masuk) */
.onb-account {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; margin-bottom: 4px;
    background: var(--accent-soft);
    border: 1px solid var(--border); border-radius: var(--r-lg);
}
.onb-account__icon { flex: none; display: inline-flex; color: var(--accent); }
.onb-account__txt { flex: 1; min-width: 0; }
.onb-account__label { font-size: var(--fs-2xs); color: var(--text-tertiary); letter-spacing: 0.02em; }
.onb-account__email {
    font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Tautan teks */
.onb-link {
    background: none; border: 0; padding: 8px 4px; cursor: pointer;
    color: var(--accent); font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.onb-link:disabled { opacity: 0.5; cursor: default; }
.onb-forgot { display: block; margin-top: 4px; padding-left: 0; }
.onb-switch { display: block; width: 100%; margin-top: 10px; text-align: center; color: var(--text-secondary); }
.onb-switch:hover { color: var(--accent); }

.onb-back {
    display: inline-flex; align-items: center; gap: 4px;
    margin: -4px 0 8px -4px; padding: 6px 8px; border: 0; border-radius: var(--r);
    background: none; color: var(--text-secondary); cursor: pointer;
    font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-semibold);
}
.onb-back:hover { background: var(--bg-3); color: var(--text-primary); }

/* Tab Masuk | Daftar (segmented) */
.onb-seg {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; margin-bottom: 14px;
    background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--r-lg);
}
.onb-seg button {
    min-height: 38px; border: 0; border-radius: calc(var(--r-lg) - 3px);
    background: transparent; color: var(--text-secondary); cursor: pointer;
    font: inherit; font-size: var(--fs-base); font-weight: var(--fw-semibold);
    transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.onb-seg button.active { background: var(--accent); color: #fff; box-shadow: 0 2px 8px var(--accent-glow); }

/* Password + tombol tampilkan */
.onb-passwrap { position: relative; }
.onb-passwrap .field-input { padding-right: 46px; }
.onb-eye {
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
    width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: var(--r); background: none; cursor: pointer;
    color: var(--text-tertiary);
}
.onb-eye:hover { color: var(--text-primary); }

.onb-msg { margin-top: 8px; font-size: var(--fs-sm); line-height: 1.4; }
.onb-wide { width: 100%; margin-top: 14px; }

/* Kartu progres cloud */
.onb-save {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; margin-bottom: 4px;
    background: var(--bg-3); border: 1px solid var(--accent); border-radius: var(--r-lg);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.onb-save__icon {
    flex: none; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--r-lg); background: var(--accent-soft); color: var(--accent);
}
.onb-save__txt { min-width: 0; }
.onb-save__name {
    font-size: var(--fs-md); font-weight: var(--fw-bold); letter-spacing: -0.01em;
    color: var(--text-primary); word-break: break-word;
}
.onb-save__meta { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: 2px; }

/* Memeriksa progres */
.onb-center { display: flex; flex-direction: column; align-items: center; padding: 28px 0 20px; }
.onb-spin {
    width: 30px; height: 30px; border-radius: 50%;
    border: 3px solid var(--border-strong, var(--border)); border-top-color: var(--accent);
    animation: onbSpin 0.8s linear infinite;
}
@keyframes onbSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
    .onb-view { animation: none; }
    .onb-spin { animation-duration: 1.6s; }
}

/* Layar sangat sempit: tombol ditumpuk agar teks tidak terpotong */
@media (max-width: 340px) {
    .onb-actions { flex-direction: column; }
    .onb-actions .btn-primary, .onb-actions .btn-secondary { flex: 1 1 auto; }
}

/* ===== Manufaktur (sub-tab Riset) ===== */
.mf-hero { padding: 12px; margin: 8px 0; border-radius: 12px; background: var(--surface, rgba(255,255,255,.04)); }
.mf-hero-title { font-weight: 700; font-size: 15px; }
.mf-hero-sub { font-size: 12px; color: var(--text-dim); margin: 4px 0 8px; line-height: 1.4; }
.mf-hero-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-mute); }
.mf-hero-stats b { color: var(--text); }
.mf-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.mf-row { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface, rgba(255,255,255,.04)); }
.mf-row-mystery { opacity: .55; filter: grayscale(1); }
.mf-ico { flex: 0 0 auto; width: 32px; text-align: center; }
.mf-main { flex: 1 1 auto; min-width: 0; }
.mf-name { font-weight: 600; font-size: 14px; }
.mf-desc, .mf-reason { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
.mf-reason { color: var(--text-mute); margin-top: 2px; }
.mf-buy { flex: 0 0 auto; }
.mf-buy-btn { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
.mf-buy-btn[disabled] { opacity: .45; }
.mf-short { font-size: 10.5px; color: var(--text-mute); margin-top: 3px; text-align: right; }
.mf-year { font-weight: 700; color: var(--text-mute); }

/* Lencana komponen buatan sendiri (pabrik komponen) di mockup tampak belakang */
.phone-inhouse { display:flex; flex-wrap:wrap; gap:3px; justify-content:center; align-items:center; margin-top:4px; font-size:10px; line-height:1; }
.phone-inhouse-lbl { color: var(--text-mute); font-weight:600; text-transform:uppercase; letter-spacing:.04em; }
.phone-inhouse-chip { padding:2px 5px; border-radius:6px; background: var(--surface, rgba(255,255,255,.06)); border:1px solid var(--border, rgba(255,255,255,.12)); color: var(--text-dim); }


/* ============================================================================
   iCLOUD.COM THEME v2 + GLASS NAV (override terakhir — letakkan paling bawah)
   Terang : kanvas abu #f5f5f7, kartu putih, garis hairline, bayangan sangat lembut
   Gelap  : kanvas hitam murni, kartu #1c1c1e, lapisan naik #2c2c2e (seperti iOS/iCloud)
   Nav    : "Liquid Glass" — kaca berlapis, tepi spekular, pil pilihan membiaskan cahaya
   ============================================================================ */

/* ---------- 1. Token ---------- */
:root, [data-theme="dark"] {
    --bg-0: #000000; --bg-1: #0d0d0f; --bg-2: #1c1c1e;
    --bg-3: #2c2c2e; --bg-4: #3a3a3c;
    --border: rgba(255,255,255,0.10);
    --border-strong: rgba(255,255,255,0.18);
    --text-primary: #f5f5f7;
    --text-secondary: rgba(235,235,245,0.68);
    --text-tertiary: rgba(235,235,245,0.46);
    --text-disabled: rgba(235,235,245,0.26);
    --shadow-sm: 0 0 0 0 transparent;
    --shadow: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.7);
    --bg-overlay: rgba(0,0,0,0.55);
    --bg-header: rgba(0,0,0,0.62);
    --bg-nav: rgba(28,28,30,0.6);
    --fill: rgba(118,118,128,0.24);
    --seg-active: #636366;
    --r-sm: 8px; --r: 10px; --r-md: 14px; --r-lg: 16px; --r-xl: 20px;
}
[data-theme="light"] {
    --bg-0: #f5f5f7; --bg-1: #fbfbfd; --bg-2: #ffffff;
    --bg-3: #f2f2f5; --bg-4: #e6e6eb;
    --border: rgba(60,60,67,0.13);
    --border-strong: rgba(60,60,67,0.26);
    --text-primary: #1d1d1f;
    --text-secondary: rgba(60,60,67,0.74);
    --text-tertiary: rgba(60,60,67,0.55);
    --text-disabled: rgba(60,60,67,0.30);
    --shadow-sm: 0 0 0 0 transparent;
    --shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 14px rgba(0,0,0,0.05);
    --shadow-lg: 0 14px 44px rgba(0,0,0,0.16);
    --bg-overlay: rgba(0,0,0,0.36);
    --bg-header: rgba(245,245,247,0.72);
    --bg-nav: rgba(255,255,255,0.6);
    --fill: rgba(118,118,128,0.12);
    --seg-active: #ffffff;
}

/* warna aksen = warna sistem Apple (terang & gelap punya nada sendiri) */
[data-theme="light"][data-accent="emerald"] { --accent:#30b350; --accent-hover:#248a3d; --accent-soft:rgba(48,179,80,0.12);  --accent-glow:rgba(0,0,0,0); }
[data-theme="dark"][data-accent="emerald"]  { --accent:#30d158; --accent-hover:#5fe07f; --accent-soft:rgba(48,209,88,0.18);  --accent-glow:rgba(0,0,0,0); }
[data-theme="light"][data-accent="violet"]  { --accent:#af52de; --accent-hover:#9a3fc9; --accent-soft:rgba(175,82,222,0.12); --accent-glow:rgba(0,0,0,0); }
[data-theme="dark"][data-accent="violet"]   { --accent:#bf5af2; --accent-hover:#d17fff; --accent-soft:rgba(191,90,242,0.20); --accent-glow:rgba(0,0,0,0); }
[data-theme="light"][data-accent="amber"]   { --accent:#ff9500; --accent-hover:#e08400; --accent-soft:rgba(255,149,0,0.14);  --accent-glow:rgba(0,0,0,0); }
[data-theme="dark"][data-accent="amber"]    { --accent:#ff9f0a; --accent-hover:#ffb340; --accent-soft:rgba(255,159,10,0.20); --accent-glow:rgba(0,0,0,0); }
[data-theme="light"][data-accent="rose"]    { --accent:#ff2d55; --accent-hover:#e0204a; --accent-soft:rgba(255,45,85,0.11);  --accent-glow:rgba(0,0,0,0); }
[data-theme="dark"][data-accent="rose"]     { --accent:#ff453a; --accent-hover:#ff6961; --accent-soft:rgba(255,69,58,0.20);  --accent-glow:rgba(0,0,0,0); }
[data-theme="light"][data-accent="cyan"]    { --accent:#32ade6; --accent-hover:#1f98d0; --accent-soft:rgba(50,173,230,0.13); --accent-glow:rgba(0,0,0,0); }
[data-theme="dark"][data-accent="cyan"]     { --accent:#64d2ff; --accent-hover:#8be0ff; --accent-soft:rgba(100,210,255,0.20);--accent-glow:rgba(0,0,0,0); }

/* ---------- 2. Kanvas rata (tanpa gradien warna-warni) ---------- */
html[data-theme] body { background: var(--bg-0) !important; }

/* ---------- 3. Header kaca tipis ---------- */
html .app-header {
    background: var(--bg-header) !important;
    -webkit-backdrop-filter: blur(28px) saturate(180%) !important;
    backdrop-filter: blur(28px) saturate(180%) !important;
    border-bottom: 0.5px solid var(--border);
}
html[data-theme="dark"] .app-header { background: var(--bg-header) !important; }

/* ---------- 4. Kartu ---------- */
.card, .kpi, .ov-card, .ov-qa, .ov-pulse, .ov-metric { border-radius: var(--r-md); }
html[data-theme="light"] .card,
html[data-theme="light"] .kpi { box-shadow: var(--shadow); border-color: var(--border); }
html[data-theme="dark"] .card,
html[data-theme="dark"] .kpi { background: var(--bg-2); border-color: var(--border); }

/* ---------- 5. Segmented control ala iOS ---------- */
html .settings-segment, html .subtab-bar {
    background: var(--fill); border: 0; border-radius: 10px; padding: 2px;
}
html .settings-seg-btn, html .subtab-btn { border-radius: 8px; }
html .settings-seg-btn.active, html .subtab-btn.active {
    background: var(--seg-active); color: var(--text-primary);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12), 0 1px 1px rgba(0,0,0,0.06);
}
html[data-theme="dark"] .settings-seg-btn.active,
html[data-theme="dark"] .subtab-btn.active { box-shadow: 0 2px 6px rgba(0,0,0,0.4); }

/* ---------- 6. Toast kaca ---------- */
html .toast {
    background: var(--bg-nav); color: var(--text-primary);
    -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
    border: 0.5px solid var(--border); border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   7. NAVIGASI BAWAH — LIQUID GLASS
   ============================================================================ */
html .mobile-nav {
    background: linear-gradient(180deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.22) 100%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(220%) brightness(1.05) contrast(1.02) !important;
    backdrop-filter: blur(36px) saturate(220%) brightness(1.05) contrast(1.02) !important;
    box-shadow:
        0 0 0 0.5px rgba(0,0,0,0.10),                    /* garis luar: bar tetap terbaca di latar terang */
        0 20px 40px -10px rgba(20,30,60,0.24),
        0 4px 12px rgba(20,30,60,0.10),
        inset 0 1.5px 1px rgba(255,255,255,0.95),        /* tepi atas menyala */
        inset 0 -1.5px 1px rgba(255,255,255,0.55),
        inset 1px 0 1px rgba(255,255,255,0.45),
        inset -1px 0 1px rgba(255,255,255,0.45),
        inset 0 0 24px rgba(255,255,255,0.35) !important;
}
/* kilau spekular: dua pantulan (kiri-atas & kanan-bawah) seperti kaca asli */
html .mobile-nav::before {
    background:
        radial-gradient(70% 150% at 10% -45%, rgba(255,255,255,0.80) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(60% 130% at 94% 155%, rgba(255,255,255,0.50) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.20) 0%, rgba(255,255,255,0) 50%);
}
html .mobile-nav::after {
    background: linear-gradient(135deg,
        rgba(255,255,255,1) 0%, rgba(255,255,255,0.28) 26%,
        rgba(255,255,255,0.10) 52%, rgba(255,255,255,0.30) 76%, rgba(255,255,255,0.95) 100%);
}
html[data-theme="dark"] .mobile-nav {
    background: linear-gradient(180deg, rgba(118,118,128,0.34) 0%, rgba(58,58,62,0.20) 100%) !important;
    -webkit-backdrop-filter: blur(40px) saturate(200%) brightness(1.18) !important;
    backdrop-filter: blur(40px) saturate(200%) brightness(1.18) !important;
    box-shadow:
        0 0 0 0.5px rgba(255,255,255,0.10),
        0 22px 44px -10px rgba(0,0,0,0.70),
        0 4px 12px rgba(0,0,0,0.40),
        inset 0 1.5px 1px rgba(255,255,255,0.30),
        inset 0 -1px 1px rgba(255,255,255,0.08),
        inset 0 0 22px rgba(255,255,255,0.06) !important;
}
html[data-theme="dark"] .mobile-nav::before {
    background:
        radial-gradient(70% 150% at 10% -45%, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0) 60%),
        radial-gradient(60% 130% at 94% 155%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0) 60%),
        linear-gradient(180deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 50%);
}
html[data-theme="dark"] .mobile-nav::after {
    background: linear-gradient(135deg,
        rgba(255,255,255,0.65) 0%, rgba(255,255,255,0.10) 26%,
        rgba(255,255,255,0.03) 52%, rgba(255,255,255,0.10) 76%, rgba(255,255,255,0.50) 100%);
}

/* ikon & label */
html .mobile-nav .nav-btn:not(.active) { color: rgba(60,60,67,0.80) !important; }
html[data-theme="dark"] .mobile-nav .nav-btn:not(.active) { color: rgba(235,235,245,0.70) !important; }

/* pil pilihan: kaca padat dengan tint aksen, tebal di tepi bawah */
html .mobile-nav .nav-slider::before {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.90) 0%, rgba(255,255,255,0.30) 55%, rgba(255,255,255,0.55) 100%),
        var(--accent-soft);
    -webkit-backdrop-filter: blur(2px) saturate(230%) brightness(1.08);
    backdrop-filter: blur(2px) saturate(230%) brightness(1.08);
    box-shadow:
        0 1px 2px rgba(0,0,0,0.10),
        0 8px 18px -4px rgba(20,30,60,0.22),
        0 0 0 0.5px rgba(0,0,0,0.06),
        inset 0 1.5px 1px #ffffff,
        inset 0 -2px 4px rgba(255,255,255,0.75),
        inset 0 0 12px rgba(255,255,255,0.60);
}
html .mobile-nav .nav-slider::after {          /* kilau tipis di tepi atas pil */
    display: block; content: ""; position: absolute; left: 16%; right: 16%; top: 2px; height: 34%;
    border-radius: 999px; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0));
}
html[data-theme="dark"] .mobile-nav .nav-slider::before {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 60%, rgba(255,255,255,0.12) 100%),
        var(--accent-soft);
    box-shadow:
        0 1px 3px rgba(0,0,0,0.40),
        0 8px 18px -4px rgba(0,0,0,0.55),
        0 0 0 0.5px rgba(255,255,255,0.12),
        inset 0 1.5px 1px rgba(255,255,255,0.50),
        inset 0 -1.5px 2px rgba(255,255,255,0.12),
        inset 0 0 12px rgba(255,255,255,0.10);
}
html[data-theme="dark"] .mobile-nav .nav-slider::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.30), rgba(255,255,255,0));
}

/* saat digeser: lensa membesar, hampir bening, membiaskan latar */
html .mobile-nav.dragging .nav-slider::before {
    transform: scale(1.20, 1.28);
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.60) 0%, rgba(255,255,255,0) 65%),
        rgba(255,255,255,0.14);
    -webkit-backdrop-filter: blur(0.5px) saturate(280%) brightness(1.16);
    backdrop-filter: blur(0.5px) saturate(280%) brightness(1.16);
    box-shadow:
        0 14px 30px rgba(15,25,50,0.28),
        0 2px 6px rgba(15,25,50,0.14),
        0 0 0 0.5px rgba(0,0,0,0.06),
        inset 0 2px 1px #ffffff,
        inset 0 -3px 4px rgba(255,255,255,0.80),
        inset 0 0 16px rgba(255,255,255,0.55);
}
html[data-theme="dark"] .mobile-nav.dragging .nav-slider::before {
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(255,255,255,0.34) 0%, rgba(255,255,255,0) 65%),
        rgba(255,255,255,0.10);
    box-shadow:
        0 16px 32px rgba(0,0,0,0.65),
        0 0 0 0.5px rgba(255,255,255,0.18),
        inset 0 2px 1px rgba(255,255,255,0.60),
        inset 0 -3px 4px rgba(255,255,255,0.16),
        inset 0 0 16px rgba(255,255,255,0.14);
}

/* fallback (ditaruh setelah override di atas agar tetap menang) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    html .mobile-nav { background: rgba(245,245,250,0.94) !important; }
    html[data-theme="dark"] .mobile-nav { background: rgba(38,38,42,0.94) !important; }
}
@media (prefers-reduced-transparency: reduce) {
    html .mobile-nav, html .app-header, html .toast { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
    html .mobile-nav { background: rgba(245,245,250,0.97) !important; }
    html[data-theme="dark"] .mobile-nav { background: rgba(38,38,42,0.97) !important; }
    html .app-header { background: var(--bg-1) !important; }
}

/* ---- Assembly (panel Manufaktur) ---- */
.asm-badge { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255,122,61,.16); color: #ff7a3d; vertical-align: middle; }
.asm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 8px 0; }
.asm-kpi { padding: 8px 10px; border-radius: 10px; background: var(--surface, rgba(255,255,255,.04)); }
.asm-kv { font-weight: 700; font-size: 15px; }
.asm-kv small { font-weight: 500; font-size: 10.5px; color: var(--text-mute); }
.asm-kl { font-size: 10.5px; color: var(--text-mute); margin-top: 2px; }
.asm-warn .asm-kv { color: var(--danger, #e5484d); }
.asm-sec { margin: 12px 0 6px; }
.asm-note { margin: 4px 2px 8px; }
.asm-count { font-weight: 500; font-size: 12px; color: var(--text-mute); margin-left: 4px; }
.asm-bar { height: 5px; border-radius: 3px; background: rgba(127,127,127,.2); margin: 5px 0 3px; overflow: hidden; }
.asm-bar i { display: block; height: 100%; background: #ff7a3d; border-radius: 3px; }
.asm-btns { display: flex; gap: 4px; }

/* ============================================================================
   KATALOG v2 — dashboard manajemen produk (gaya game simulasi profesional)
   ============================================================================ */
.cat2-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
.cat2-hud-tile {
    position: relative; display: flex; flex-direction: column; gap: 3px;
    padding: 9px 10px 8px; border-radius: var(--r-md);
    background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
    border: 1px solid var(--border); overflow: hidden; min-width: 0;
}
.cat2-hud-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--info); }
.cat2-hud-tile.ok::before { background: var(--success); }
.cat2-hud-tile.warn::before { background: var(--warn); }
.cat2-hud-tile.accent::before { background: var(--accent, var(--info)); }
.cat2-hud-l { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat2-hud-v { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cat2-hud-v small { font-size: 11px; font-weight: 600; color: var(--text-tertiary); margin-left: 1px; }
.cat2-hud-tile.warn .cat2-hud-v { color: var(--warn); }
.cat2-hud-tile.accent .cat2-hud-v { color: var(--accent, var(--info)); }

.cat2-toolbar { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.cat2-seg {
    display: flex; gap: 2px; padding: 3px; border-radius: var(--r-md);
    background: var(--bg-1); border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; align-items: center;
}
.cat2-seg::-webkit-scrollbar { display: none; }
.cat2-seg-cap { padding: 0 8px 0 6px; font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-tertiary); flex-shrink: 0; }
.cat2-hidden-note { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; font-size: 12px; color: var(--text-tertiary); background: color-mix(in srgb, var(--text-tertiary) 10%, transparent); border: 1px dashed color-mix(in srgb, var(--text-tertiary) 35%, transparent); }
.cat2-hidden-btn { flex-shrink: 0; padding: 5px 12px; border: 0; border-radius: 99px; font: inherit; font-weight: 700; font-size: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); cursor: pointer; }
.cat2-hidden-btn:active { transform: scale(.95); }
.cat2-seg-btn {
    flex: 1 0 auto; min-height: 32px; padding: 0 12px; border: 0; border-radius: calc(var(--r-md) - 3px);
    background: transparent; color: var(--text-secondary); font: inherit; font-size: 12px; font-weight: 700;
    cursor: pointer; white-space: nowrap; transition: background .15s, color .15s;
}
.cat2-seg-btn.active { background: var(--bg-4); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-strong); }
.cat2-seg-sort .cat2-seg-btn { flex: 1 1 0; padding: 0 8px; }
.cat2-seg-sort .cat2-seg-btn.active { background: var(--accent-soft, var(--info-soft)); color: var(--accent, var(--info)); box-shadow: inset 0 0 0 1px var(--accent, var(--info)); }

.cat2-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.cat2-card {
    --stripe: var(--success);
    position: relative; padding: 12px 12px 10px 15px; border-radius: var(--r-lg);
    background: linear-gradient(160deg, var(--bg-3) 0%, var(--bg-2) 55%, var(--bg-1) 100%);
    border: 1px solid var(--border); box-shadow: var(--shadow-sm);
    cursor: pointer; overflow: hidden; min-width: 0;
    transition: border-color .16s, transform .16s, box-shadow .16s;
}
.cat2-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--stripe); box-shadow: 0 0 14px var(--stripe); opacity: .9; }
.cat2-card.is-low { --stripe: var(--warn); }
.cat2-card.is-out { --stripe: var(--danger); }
.cat2-card.is-disc { --stripe: var(--text-disabled); opacity: .78; }
.cat2-card.is-disc::before { box-shadow: none; }
@media (hover: hover) { .cat2-card:hover { border-color: var(--border-strong); transform: translateY(-1px); box-shadow: var(--shadow); } }
.cat2-card:active { transform: scale(.992); }

.cat2-head { display: flex; gap: 12px; align-items: center; }
.cat2-thumb {
    flex: 0 0 62px; height: 84px; display: flex; align-items: flex-end; justify-content: center;
    border-radius: var(--r-md); background: radial-gradient(ellipse at 50% 85%, var(--bg-4), var(--bg-1) 75%);
    border: 1px solid var(--border); padding: 4px 0 2px; overflow: hidden;
}
.cat2-thumb svg { max-height: 100%; width: auto; height: 100%; }
.cat2-id { flex: 1; min-width: 0; }
.cat2-name { font-size: 15px; font-weight: 800; letter-spacing: -.01em; color: var(--text-primary); line-height: 1.2; overflow-wrap: anywhere; }
.cat2-name em { font-style: normal; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--accent, var(--info)); background: var(--accent-soft, var(--info-soft)); padding: 1px 6px; border-radius: var(--r-pill); vertical-align: 2px; margin-left: 4px; }
.cat2-date { margin-top: 2px; font-size: 11px; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.cat2-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.cat2-led { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); flex-shrink: 0; }
.cat2-led.low { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.cat2-led.out { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.cat2-led.disc { background: var(--text-disabled); box-shadow: none; }
.cat2-status { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cat2-status.selling { color: var(--success); }
.cat2-status.disc { color: var(--text-tertiary); }
.cat2-rate { margin-left: auto; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); background: var(--bg-4); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.cat2-rate small { font-size: 9.5px; font-weight: 600; opacity: .7; }
.cat2-rate.good { background: var(--success-soft); color: var(--success); }
.cat2-rate.mid { background: var(--warn-soft); color: var(--warn); }
.cat2-rate.bad { background: var(--danger-soft); color: var(--danger); }

.cat2-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-1); overflow: hidden; }
.cat2-stats > div { display: flex; flex-direction: column; gap: 2px; padding: 7px 8px; min-width: 0; border-left: 1px solid var(--border); }
.cat2-stats > div:first-child { border-left: 0; }
.cat2-sl { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat2-sv { font-size: 13.5px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat2-sv.money { color: var(--success); }

.cat2-trend { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cat2-trend-l { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; max-width: 46%; }
.cat2-delta { font-size: 12px; font-weight: 800; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.cat2-delta.up { color: var(--success); }
.cat2-delta.down { color: var(--danger); }
.cat2-spark, .cat2-spark-empty { flex: 1; height: 28px; min-width: 0; }
.cat2-spark-empty { display: flex; align-items: center; justify-content: center; color: var(--text-disabled); }
.cat2-spark-line { fill: none; stroke: var(--accent, var(--info)); stroke-width: 1.6; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.cat2-spark-area { fill: var(--accent-soft, var(--info-soft)); stroke: none; }

.cat2-stock { margin-top: 10px; }
.cat2-stock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.cat2-stock-n { font-size: 13px; font-weight: 800; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cat2-stock-n small { font-size: 10.5px; font-weight: 600; color: var(--text-tertiary); }
.cat2-meter { display: grid; grid-template-columns: repeat(20, 1fr); gap: 2px; height: 10px; }
.cat2-meter i { border-radius: 2px; background: var(--bg-4); }
.cat2-meter i.on { background: var(--success); box-shadow: 0 0 6px -1px var(--success); }
.cat2-meter.low i.on { background: var(--warn); box-shadow: 0 0 6px -1px var(--warn); }
.cat2-meter.out i.on { background: var(--danger); }
.cat2-flags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.cat2-flag { font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: var(--r-pill); letter-spacing: .02em; }
.cat2-flag.danger { background: var(--danger-soft); color: var(--danger); }
.cat2-flag.warn { background: var(--warn-soft); color: var(--warn); }
.cat2-flag.info { background: var(--info-soft); color: var(--info); margin-left: auto; }

.cat2-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px -12px -10px -15px; padding: 9px 12px 9px 15px; background: var(--bg-1); border-top: 1px solid var(--border); }
.cat2-auto-l { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cat2-auto-l b { font-size: 12px; color: var(--text-primary); }
.cat2-auto-l span { font-size: 10.5px; color: var(--text-tertiary); }
.cat2-foot .toggle-switch { touch-action: manipulation; }

@media (min-width: 720px) {
    .cat2-toolbar { flex-direction: row; justify-content: space-between; align-items: center; }
    .cat2-seg-sort .cat2-seg-btn { flex: 0 0 auto; padding: 0 14px; }
    .cat2-list { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
    .cat2-hud-v { font-size: 20px; }
}
@media (max-width: 340px) { .cat2-hud { grid-template-columns: 1fr 1fr; } .cat2-stats { grid-template-columns: 1fr 1fr; } .cat2-stats > div:nth-child(3) { border-left: 0; } .cat2-stats > div:nth-child(n+3) { border-top: 1px solid var(--border); } }
@media (prefers-reduced-motion: reduce) { .cat2-card, .cat2-seg-btn { transition: none; } }
.cat2-card { display: flex; flex-direction: column; }
.cat2-foot { margin-top: auto; }
.cat2-stock { margin-bottom: 10px; }

/* ============================================================================
   LIGHT-MODE FIX — token alias yang dipakai panel (JS-injected style) tapi
   sebelumnya TIDAK pernah didefinisikan, sehingga jatuh ke fallback putih
   (rgba(255,255,255,.x)) dan tak terbaca di tema terang.
   ============================================================================ */
:root, [data-theme="dark"] {
    --text-mute: rgba(235,235,245,0.56);
    --text-dim: rgba(235,235,245,0.68);
    --surface: rgba(255,255,255,0.04);
    --surface-2: rgba(255,255,255,0.07);
    --surface-secondary: rgba(255,255,255,0.06);
    --surface-glass: rgba(44,44,46,0.82);
    --border-subtle: rgba(255,255,255,0.10);
    --warning: #f5b942;
}
[data-theme="light"] {
    --text-mute: #6b6b72;
    --text-dim: #48484d;
    --surface: rgba(60,60,67,0.05);
    --surface-2: rgba(60,60,67,0.08);
    --surface-secondary: rgba(60,60,67,0.07);
    --surface-glass: rgba(255,255,255,0.88);
    --border-subtle: rgba(60,60,67,0.14);
    --warning: #b45309;
}

/* Light mode: teks sekunder/tersier dibuat solid agar kontras ≥ 4.5:1 */
[data-theme="light"] {
    --text-secondary: #3c3c43;
    --text-tertiary: #6e6e73;
}

/* Light mode: warna semantik (teks hijau/kuning/merah) lebih pekat agar terbaca di latar putih */
[data-theme="light"] {
    --success: #138043;
    --warn: #a85d00;
    --danger: #d12f26;
    --info: #1f5fd1;
    --warning: #a85d00;
}
/* Item terkunci: tetap dimmed tapi teks tetap terbaca di light mode */
[data-theme="light"] .node-row-wrap.node-locked { opacity: 0.82; }
[data-theme="light"] .tech-node.tech-locked,
[data-theme="light"] .feature-locked,
[data-theme="light"] .os-feat-locked,
[data-theme="light"] .os-lic-row.os-lic-locked { opacity: 0.82; }
[data-theme="light"] .license-item.locked { opacity: 0.75; }
[data-theme="light"] .rg-tag.good { color: #138043; }

/* Light mode — perbaikan kontras lanjutan (hasil audit browser) */
[data-theme="light"] .rnd-bonus { color: var(--success); }
[data-theme="light"] .fp-card.fp-locked { opacity: .9; }
[data-theme="light"] .fp-tag { background: rgba(60,60,67,.10); color: var(--text-dim); }
[data-theme="light"] .fp-status { color: var(--text-dim); }
[data-theme="light"] .mf-row-mystery { opacity: .85; }
[data-theme="light"] .mf-year, [data-theme="light"] .mf-desc { color: var(--text-dim); }
[data-theme="light"] .asm-badge { background: rgba(200,80,20,.14); color: #a8460f; }
[data-theme="light"] .settings-row-chevron { color: var(--text-secondary); }
[data-theme="light"] .settings-row-hint { color: var(--text-secondary); }
[data-theme="light"] .ch-year.active { color: #0057b8; }
[data-theme="light"] .btn-primary:disabled,
[data-theme="light"] .btn-secondary:disabled,
[data-theme="light"] .btn-danger:disabled { opacity: .72; }
[data-theme="light"] .node-row-cta-locked { color: var(--text-secondary); }
[data-theme="light"] .fab-tier-card.disabled { opacity: .85; }
[data-theme="light"] .kpi-value[style*="60a5fa"],
[data-theme="light"] .kpi-value[style*="96, 165, 250"] { color: var(--accent) !important; }
/* inisial ticker berwarna pastel (inline color) → gelapkan teks di tema terang */
[data-theme="light"] .ex-ava { filter: brightness(.68) saturate(1.2); }

/* ============================================================================
   v2027.70 — Perbaikan visual peta Home
   1) Bug: .card (padding 10px 12px, didefinisikan setelah .home-map) membuat kanvas 3D
      tidak memenuhi bingkai -> ada tepi gelap di sekeliling peta. Spesifisitas dinaikkan.
   2) Teks petunjuk di atas laut/pulau terang tidak terbaca -> dijadikan pil kontras.
   ============================================================================ */
.card.home-map { padding: 0; margin: 0; }
.home-map .map-hint {
    padding: 4px 10px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, .58);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
    line-height: 1.2;
}
html[data-perf="lite"] .home-map .map-hint { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(15, 23, 42, .78); }

/* ============================================================
   MANUFAKTUR v2 — navigasi bagian, ringkasan, Assembly, kartu pabrik
   (mfx-* = hub/komponen, asm2-* = Assembly). Aman untuk tema gelap & terang.
   ============================================================ */
.mfx-root { --mfx-ok: var(--success, #10b981); --mfx-warn: #f59e0b; --mfx-bad: var(--danger, #ef4444); --mfx-info: var(--info, #3b82f6); --mfx-mute: var(--text-mute, #8b93a1); --mfx-card: var(--surface, rgba(255,255,255,.04)); }
.mfx-root button { font-family: inherit; }

/* segmented sticky */
.mfx-seg { position: sticky; top: 0; z-index: 5; display: flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 12px; background: var(--bg-3, rgba(127,127,127,.14)); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.mfx-seg-b { flex: 1 1 0; min-width: 0; position: relative; padding: 8px 4px; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-dim); font-size: 12.5px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mfx-seg-b small { margin-left: 4px; font-size: 10.5px; color: var(--text-mute); font-weight: 500; }
.mfx-seg-b.active { background: var(--bg-2, var(--mfx-card)); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.mfx-dot { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--mfx-warn); }
.mfx-dot.bad { background: var(--mfx-bad); }

/* hub + rantai */
.mfx-hub { padding: 12px; margin: 0 0 8px; border-radius: 14px; background: var(--mfx-card); }
.mfx-hub-t { font-weight: 700; font-size: 15px; }
.mfx-hub-s { font-size: 12px; color: var(--text-dim); line-height: 1.4; margin: 3px 0 0; }
.mfx-chain { display: flex; align-items: stretch; gap: 2px; margin-top: 10px; }
.mfx-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; border: 1px solid var(--border, rgba(127,127,127,.2)); border-radius: 10px; background: transparent; color: var(--text); cursor: pointer; text-align: center; }
.mfx-node:active { transform: scale(.97); }
.mfx-node-i { font-size: 18px; line-height: 1; }
.mfx-node-n { font-size: 11px; font-weight: 700; }
.mfx-node-v { font-size: 9.5px; color: var(--text-mute); line-height: 1.2; overflow-wrap: anywhere; }
.mfx-node.ok { border-color: var(--mfx-ok); } .mfx-node.warn { border-color: var(--mfx-warn); }
.mfx-node.bad { border-color: var(--mfx-bad); } .mfx-node.info { border-color: var(--mfx-info); } .mfx-node.mute { opacity: .7; }
.mfx-arrow { align-self: center; color: var(--text-mute); font-size: 16px; }

.mfx-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; }
.mfx-stat { padding: 9px 11px; border-radius: 12px; background: var(--mfx-card); }
.mfx-sv { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.mfx-sl { font-size: 10.5px; color: var(--text-mute); margin-top: 2px; }
.mfx-stat.warn .mfx-sv { color: var(--mfx-bad); }
.mfx-sec { margin: 14px 2px 6px; font-weight: 700; font-size: 13px; }

/* kartu pabrik komponen */
.mfx-pl { margin: 0 0 8px; border-radius: 14px; background: var(--mfx-card); overflow: hidden; }
.mfx-pl-head { display: flex; align-items: center; gap: 8px; padding: 10px; }
.mfx-pl-tog { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.mfx-pl-tog.static { cursor: default; }
.mfx-pl-ico { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(127,127,127,.14); }
.mfx-pl-main { flex: 1 1 auto; min-width: 0; }
.mfx-pl-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mfx-pl-st { font-size: 11px; color: var(--text-mute); line-height: 1.35; margin-top: 2px; }
.mfx-pl-st.bad { color: var(--mfx-bad); } .mfx-pl-st.warn { color: var(--mfx-warn); }
.mfx-pl-chev { flex: 0 0 auto; color: var(--text-mute); font-size: 14px; }
.mfx-pl-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; }
.mfx-pl-body { padding: 0 10px 10px; border-top: 1px solid var(--border, rgba(127,127,127,.15)); padding-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.mfx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mfx-chips span { padding: 3px 8px; border-radius: 999px; background: rgba(127,127,127,.14); font-size: 11px; color: var(--text-mute); }
.mfx-chips span b { color: var(--text); }
.mfx-chips span.bad { color: var(--mfx-bad); }
.mfx-prod { padding: 8px 10px; border-radius: 10px; background: rgba(245,158,11,.1); }
.mfx-batch { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--text-mute); }
.mfx-bch-row { display: flex; flex-wrap: wrap; gap: 6px; }
.mfx-bch { padding: 6px 10px; min-height: 32px; border-radius: 999px; border: 1px solid var(--border-strong, rgba(127,127,127,.3)); background: transparent; color: var(--text); font-size: 12px; cursor: pointer; }
.mfx-bch.on { background: var(--accent, #6366f1); border-color: var(--accent, #6366f1); color: #fff; }
.mfx-comp { padding: 9px 10px; border-radius: 10px; background: rgba(127,127,127,.09); }
.mfx-comp-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13px; }
.mfx-comp-s { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
.mfx-comp-s.zero { color: var(--mfx-warn); }
.mfx-comp-b { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }

/* Assembly */
.asm2-hero { padding: 12px; margin: 0 0 8px; border-radius: 14px; background: var(--mfx-card); }
.asm2-hero-top { display: flex; align-items: center; gap: 10px; }
.asm2-hero-ico { width: 38px; height: 38px; display: grid; place-items: center; font-size: 20px; border-radius: 11px; background: rgba(255,122,61,.16); flex: 0 0 auto; }
.asm2-hero-tt { flex: 1 1 auto; min-width: 0; }
.asm2-hero-name { font-weight: 700; font-size: 15px; }
.asm2-hero-sub { font-size: 11.5px; color: var(--text-dim); line-height: 1.35; }
.asm2-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; white-space: nowrap; background: rgba(127,127,127,.18); color: var(--text-dim); }
.asm2-chip.ok { background: rgba(16,185,129,.16); color: var(--mfx-ok); } .asm2-chip.warn { background: rgba(245,158,11,.18); color: #d97706; }
.asm2-chip.bad { background: rgba(239,68,68,.16); color: var(--mfx-bad); } .asm2-chip.info { background: rgba(59,130,246,.16); color: var(--mfx-info); }
.asm2-gauge { height: 8px; margin: 10px 0 4px; border-radius: 5px; background: rgba(127,127,127,.2); overflow: hidden; }
.asm2-gauge.sm { height: 5px; margin: 6px 0 4px; }
.asm2-gauge i { display: block; height: 100%; border-radius: 5px; background: var(--mfx-ok); transition: width .3s; }
.asm2-gauge.warn i { background: var(--mfx-warn); } .asm2-gauge.bad i { background: var(--mfx-bad); }
.asm2-gauge-l { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--text-mute); }
.asm2-gauge-l b { color: var(--text); }

.asm2-alerts { display: flex; flex-direction: column; gap: 6px; margin: 0 0 8px; }
.asm2-alert { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--mfx-card); border-left: 3px solid var(--mfx-info); }
.asm2-alert.warn { border-left-color: var(--mfx-warn); } .asm2-alert.danger { border-left-color: var(--mfx-bad); }
.asm2-alert-dot { display: none; }
.asm2-alert-t { flex: 1 1 auto; min-width: 0; font-size: 12px; line-height: 1.4; }
.asm2-alert-b { flex: 0 0 auto; }

.asm2-flow { display: flex; align-items: stretch; gap: 2px; margin: 0 0 8px; }
.asm2-node { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px; border: 1px solid var(--border, rgba(127,127,127,.2)); border-radius: 10px; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.asm2-node.on { border-color: #ff7a3d; cursor: default; }
.asm2-node-t { font-size: 11px; font-weight: 700; }
.asm2-node-v { font-size: 10px; color: var(--text-mute); line-height: 1.25; }
.asm2-arrow { align-self: center; color: var(--text-mute); }

.asm2-groups { display: flex; flex-direction: column; gap: 8px; margin: 0 0 8px; }
.asm2-group { padding: 10px; border-radius: 12px; background: var(--mfx-card); }
.asm2-group-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-mute); margin-bottom: 6px; }
.asm2-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.asm2-kv { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.asm2-kv small { font-weight: 500; font-size: 10.5px; color: var(--text-mute); }
.asm2-kl { font-size: 10.5px; color: var(--text-mute); margin-top: 1px; }
.asm2-kl em { font-style: normal; opacity: .7; }
.asm2-kpi.warn .asm2-kv { color: var(--mfx-bad); }

.asm2-sec { margin: 14px 2px 6px; font-weight: 700; font-size: 13px; }
.asm2-sec-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.asm2-count { font-weight: 500; font-size: 12px; color: var(--text-mute); margin-left: 4px; }
.asm2-card { padding: 10px 12px; margin: 0 0 8px; border-radius: 12px; background: var(--mfx-card); }
.asm2-card-t { font-weight: 700; font-size: 13.5px; }
.asm2-row { display: flex; align-items: center; gap: 10px; }
.asm2-grow { flex: 1 1 auto; min-width: 0; }
.asm2-empty { font-size: 12px; color: var(--text-mute); text-align: center; }
.asm2-note { font-size: 11px; color: var(--text-mute); line-height: 1.4; margin: 6px 2px 8px; }
.asm2-bul { margin: 6px 0; padding-left: 18px; font-size: 12px; line-height: 1.5; color: var(--text-dim); }
.asm2-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 8px 0; }
.asm2-facts div { display: flex; flex-direction: column; font-size: 11px; color: var(--text-mute); }
.asm2-facts b { font-size: 13px; color: var(--text); }
.asm2-wide { width: 100%; padding: 11px 12px; margin-top: 6px; }
.asm2-queue .asm2-q { padding: 4px 0; }
.asm2-q-h { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; align-items: baseline; }
.asm2-q-h span { font-size: 11px; color: var(--text-mute); text-align: right; }

.asm2-roles { display: flex; flex-direction: column; gap: 8px; }
.asm2-role { padding: 10px 12px; border-radius: 12px; background: var(--mfx-card); }
.asm2-role-h { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; font-size: 13px; }
.asm2-role-c { font-weight: 700; font-size: 12.5px; } .asm2-role-c small { font-weight: 500; color: var(--text-mute); }
.asm2-role-c.ok { color: var(--mfx-ok); } .asm2-role-c.warn { color: var(--mfx-warn); } .asm2-role-c.bad { color: var(--mfx-bad); }
.asm2-role-m { font-size: 11px; color: var(--text-mute); margin-bottom: 8px; }
.asm2-steps { display: flex; gap: 6px; }
.asm2-steps .mf-buy-btn { flex: 1 1 0; min-width: 0; padding: 8px 4px; }

.asm2-cmp { display: flex; flex-direction: column; gap: 4px; }
.asm2-cmp-h, .asm2-cmp-r { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 6px; font-size: 11.5px; align-items: baseline; }
.asm2-cmp-h { color: var(--text-mute); font-size: 10.5px; text-transform: uppercase; letter-spacing: .03em; }
.asm2-cmp-h span:not(:first-child), .asm2-cmp-r span:not(:first-child), .asm2-cmp-r b { text-align: right; }
.asm2-cmp-r span:first-child { color: var(--text-mute); }
.asm2-cmp-r b { color: var(--mfx-ok); }
.asm2-help-b { display: flex; justify-content: space-between; width: 100%; margin: 6px 0 4px; padding: 8px 4px; border: 0; background: transparent; color: var(--text-mute); font-size: 12px; cursor: pointer; }

@media (min-width: 640px) {
    .mfx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .asm2-groups { flex-direction: row; }
    .asm2-group { flex: 1 1 0; }
    .asm2-roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mfx-node-v { font-size: 11px; }
}
[data-theme="light"] .asm2-chip.warn { color: #b45309; }
[data-theme="light"] .mfx-seg-b.active { box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ============================================================================
   [a11y] Modal & sentuhan (Tahap 2)
   - Pinch-zoom halaman diizinkan (meta viewport); kontrol game memakai
     touch-action: manipulation agar ketukan ganda tidak memicu zoom.
   - Kartu modal fokus programatik tanpa outline; scroll tidak merambat ke belakang.
   ============================================================================ */
button, [role="button"], .nav-btn, .subtab-btn, .sil-speed-btn,
.btn-primary, .btn-secondary, .toggle-switch { touch-action: manipulation; }
.modal-backdrop, .modal-card { overscroll-behavior: contain; }
.modal-card:focus { outline: none; }
body.modal-open { overflow: hidden; }

/* ============================================================================
   48. GALERI GENERASI (0.2.12) — Produk → Desain → Ponsel
   Hero mengambang di atas panggung bernuansa era, timeline 17 generasi.
   Warna diambil dari --gen-accent / --gen-bg (aesthetic era) lewat inline style.
   ============================================================================ */
.gen-wrap { padding: 14px 14px 12px; }
.gen-stage {
    position: relative; overflow: hidden; isolation: isolate;
    display: flex; flex-direction: column; align-items: center;
    padding: 18px 12px 12px; border-radius: 18px;
    background:
        radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--gen-accent) 30%, transparent) 0%, transparent 62%),
        linear-gradient(180deg, var(--gen-bg) 0%, #05070d 100%);
    border: 1px solid color-mix(in srgb, var(--gen-accent) 38%, transparent);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 14px 34px rgba(0,0,0,0.35);
}
.gen-stage::before {
    content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0.55;
    background-image:
        linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}
.gen-stage::after {
    content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 2;
    background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0.13) 50%, transparent 62%);
    transform: translateX(-100%);
    animation: genSheen 6s ease-in-out infinite;
}
.gen-stage-glow {
    position: absolute; left: 50%; top: 42%; width: 190px; height: 190px; z-index: -1;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--gen-accent) 45%, transparent) 0%, transparent 68%);
    filter: blur(6px);
    animation: genGlow 4.5s ease-in-out infinite;
}
.gen-hero-phone { position: relative; animation: genFloat 6s ease-in-out infinite; }
.gen-hero-cap {
    margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.8px;
    text-transform: uppercase; color: color-mix(in srgb, var(--gen-accent) 70%, #fff);
    text-align: center; user-select: none;
}
.gen-hero-meta { text-align: center; margin: 12px 0 4px; }
.gen-hero-name { font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }
.gen-hero-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 2px; }
.gen-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 8px 0 14px; }
.gen-chip {
    font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    background: color-mix(in srgb, var(--gen-accent) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--gen-accent) 32%, transparent);
    color: var(--text);
}
.gen-rail-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap;
    font-size: 12px; font-weight: 700; color: var(--text); margin: 4px 0 8px;
}
.gen-rail-head span:last-child { font-size: 11px; font-weight: 500; color: var(--text-mute); }
.gen-rail {
    display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.gen-card {
    position: relative; flex: 0 0 116px; scroll-snap-align: start;
    padding: 8px 6px 9px; text-align: center; border-radius: 14px;
    background: var(--surface-2, rgba(255,255,255,0.04));
    border: 1px solid var(--border, rgba(255,255,255,0.08));
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.gen-card.is-past { opacity: 0.82; }
.gen-card.is-future { opacity: 0.5; filter: grayscale(0.7); }
.gen-card.is-research { opacity: 0.6; border-style: dashed; }
.gen-card.is-now {
    border-color: var(--gen-accent);
    box-shadow: 0 0 0 1px var(--gen-accent), 0 10px 24px color-mix(in srgb, var(--gen-accent) 25%, transparent);
    background: linear-gradient(180deg, color-mix(in srgb, var(--gen-accent) 16%, transparent), transparent 70%), var(--surface-2, rgba(255,255,255,0.04));
}
.gen-card-pill {
    position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
    font-size: 9px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase;
    padding: 2px 8px; border-radius: 999px; background: var(--gen-accent); color: #05070d;
}
.gen-card-thumb { height: 104px; display: flex; align-items: center; justify-content: center; }
.gen-card-thumb svg { display: block; }
.gen-card-no { font-size: 9px; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase; color: var(--text-mute); }
.gen-card-name { font-size: 11.5px; font-weight: 700; line-height: 1.25; margin: 2px 0 1px; min-height: 28px; }
.gen-card-yr { font-size: 10.5px; color: var(--text-mute); }
.gen-card-st { font-size: 10px; margin-top: 4px; color: var(--text-dim); }
.gen-card.is-now .gen-card-st { color: var(--gen-accent); font-weight: 700; }
.gen-note { font-size: 11px; color: var(--text-mute); line-height: 1.55; margin-top: 4px; }

/* Galeri sampel layar lipat & ganda (0.2.14): kartu redup sampai tahun/riset terpenuhi. */
.gen-fold-head { margin-top: 14px; }
.gen-fold-card .gen-card-thumb { height: 104px; }
.gen-fold-card.is-open { opacity: 1; border-color: color-mix(in srgb, var(--gen-accent) 45%, transparent); }
.gen-fold-card.is-open .gen-card-st { color: var(--gen-accent); font-weight: 700; }

@keyframes genFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes genGlow { 0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } }
@keyframes genSheen { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

@media (prefers-reduced-motion: reduce) {
    .gen-hero-phone, .gen-stage-glow, .gen-stage::after { animation: none !important; }
}

/* ============================================================================
   HOME + NAV MELAYANG: sisakan ruang di bawah untuk bar navigasi kaca.
   Bar nav sekarang position:fixed (tidak lagi memakan tinggi layout), sehingga
   view Home sebelumnya memanjang sampai ke tepi bawah dan dock (tab Fokus/Berita/
   Aktivitas + tombol ciutkan/bentangkan peta) tertutup bar nav, terutama saat
   dock diciutkan. Angkanya sama dengan yang dipakai posisi tombol Asisten (FAB).
   Desktop (tanpa bar nav bawah) tidak terpengaruh.
   ============================================================================ */
@media not all and (min-width: 768px) and (any-pointer: fine) {
    .app-view.view-home {
        padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px) + 10px);
    }
}
