/* PrimeMarket Link — Dashboard Portal */
/* Sidebar nav, widget grid, terminal aesthetic */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --bg-body: #0c0f14;
    --bg-sidebar: #0f1219;
    --bg-main: #111621;
    --bg-widget: #161c28;
    --bg-widget-hover: #1a2234;
    --bg-input: #0d1117;
    --text-white: #f0f2f5;
    --text-gray: #8b95a5;
    --text-muted: #4a5568;
    --accent: #5ba3d8;
    --accent-glow: rgba(91,163,216,.15);
    --green: #3fb950;
    --green-dim: rgba(63,185,80,.12);
    --orange: #d29922;
    --orange-dim: rgba(210,153,34,.12);
    --red: #f85149;
    --red-dim: rgba(248,81,73,.12);
    --purple: #a78bfa;
    --purple-dim: rgba(167,139,250,.12);
    --cyan: #56d4dd;
    --border: #1e2738;
    --border-hover: #2a3650;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
    --sidebar-w: 260px;
    --radius: 10px;
    --radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
    font-family: var(--font-sans);
    background: var(--bg-body);
    color: var(--text-white);
    line-height: 1.65;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
}

a { color: var(--accent); text-decoration: none; transition: all .15s; }
a:hover { color: #7fbde8; }
img { max-width: 100%; height: auto; display: block; }

/* ============= SIDEBAR ============= */
.sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 50;
    overflow-y: auto;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 24px;
    text-decoration: none;
    color: var(--text-white);
    border-bottom: 1px solid var(--border);
}

.sidebar-logo img { height: 28px; width: auto; }
.sidebar-logo span { font-weight: 700; font-size: 15px; letter-spacing: -.3px; }

.sidebar-nav { padding: 16px 12px; flex: 1; }

.sidebar-section {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 16px 12px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
    transition: all .15s;
    margin-bottom: 2px;
}

.sidebar-link:hover { background: rgba(255,255,255,.04); color: var(--text-white); }
.sidebar-link.active { background: var(--accent-glow); color: var(--accent); }

.sidebar-link-icon {
    width: 20px;
    text-align: center;
    font-size: 15px;
    flex-shrink: 0;
}

.sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-onion {
    margin: 12px;
    padding: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.sidebar-onion-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.sidebar-onion code {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent);
    word-break: break-all;
    display: block;
    line-height: 1.5;
    margin-bottom: 8px;
}

.sidebar-onion .btn-sm {
    width: 100%;
    text-align: center;
}

/* ============= MAIN CONTENT ============= */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    min-width: 0;
    max-width: 100%;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(12,15,20,.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-gray);
}

.topbar-breadcrumb {
    font-size: 12px;
    color: var(--text-muted);
}

.topbar-breadcrumb a { color: var(--text-gray); }
.topbar-breadcrumb span { color: var(--text-muted); margin: 0 6px; }

.page { padding: 28px 32px 60px; max-width: 1100px; overflow: hidden; }

.page-header { margin-bottom: 28px; }

.page-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 6px;
}

.page-desc {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 680px;
    line-height: 1.6;
}

/* ============= WIDGETS ============= */
.widget-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.grid-2-1 { grid-template-columns: 2fr 1fr; }
.grid-1-2 { grid-template-columns: 1fr 2fr; }

.widget {
    background: var(--bg-widget);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .2s;
}

.widget:hover { border-color: var(--border-hover); }

.widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.widget-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.widget-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
}

.badge-green { background: var(--green-dim); color: var(--green); }
.badge-orange { background: var(--orange-dim); color: var(--orange); }
.badge-red { background: var(--red-dim); color: var(--red); }
.badge-blue { background: var(--accent-glow); color: var(--accent); }
.badge-purple { background: var(--purple-dim); color: var(--purple); }

/* ============= STAT WIDGET ============= */
.stat-big {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-green { color: var(--green); }
.stat-accent { color: var(--accent); }

/* ============= STATUS DOT ============= */
.status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
}

.status-row:last-child { border-bottom: none; }

.status-name { color: var(--text-gray); }

.status-val {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 13px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green { background: var(--green); box-shadow: 0 0 6px rgba(63,185,80,.5); }
.dot-orange { background: var(--orange); box-shadow: 0 0 6px rgba(210,153,34,.5); }
.dot-red { background: var(--red); box-shadow: 0 0 6px rgba(248,81,73,.5); }

/* ============= TERMINAL BLOCK ============= */
.terminal {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin: 16px 0;
}

.terminal-bar {
    background: #161c28;
    padding: 8px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #333;
}

.terminal-dot:nth-child(1) { background: var(--red); }
.terminal-dot:nth-child(2) { background: var(--orange); }
.terminal-dot:nth-child(3) { background: var(--green); }

.terminal-title {
    margin-left: 8px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-gray);
    overflow-wrap: break-word;
    word-break: break-all;
}

.terminal-body .cmd { color: var(--green); }
.terminal-body .flag { color: var(--orange); }
.terminal-body .url { color: var(--accent); }
.terminal-body .comment { color: var(--text-muted); }
.terminal-body .output { color: var(--text-gray); }
.terminal-body .highlight { color: var(--cyan); }

/* ============= ONION BLOCK ============= */
.onion-box {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.onion-box code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    word-break: break-all;
    flex: 1;
}

/* ============= BUTTONS ============= */
.btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s;
    border: 1px solid var(--border);
    background: var(--bg-widget);
    color: var(--text-gray);
}

.btn-sm:hover { background: var(--bg-widget-hover); color: var(--text-white); border-color: var(--border-hover); }

.btn-accent {
    background: rgba(91,163,216,.12);
    border-color: rgba(91,163,216,.25);
    color: var(--accent);
}

.btn-accent:hover { background: rgba(91,163,216,.2); color: var(--accent); }

.btn-lg {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    border: 1px solid rgba(91,163,216,.3);
    background: rgba(91,163,216,.1);
    color: var(--accent);
    text-decoration: none;
}

.btn-lg:hover { background: rgba(91,163,216,.18); color: var(--accent); }

/* ============= CONTENT BLOCKS ============= */
.content-block { margin-bottom: 24px; }

.content-block h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -.3px;
}

.content-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-white);
}

.content-block p {
    color: var(--text-gray);
    margin-bottom: 12px;
    line-height: 1.7;
}

.content-block ul {
    list-style: none;
    margin: 12px 0;
}

.content-block li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--text-gray);
    font-size: 14px;
}

.content-block li::before {
    content: '›';
    position: absolute;
    left: 4px;
    color: var(--accent);
    font-weight: 700;
}

.content-block strong { color: var(--text-white); }

/* ============= CALLOUT ============= */
.callout {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.55;
    border-left: 3px solid;
}

.callout-info { background: rgba(91,163,216,.06); border-color: var(--accent); color: var(--text-gray); }
.callout-warn { background: rgba(210,153,34,.06); border-color: var(--orange); color: var(--text-gray); }
.callout-danger { background: rgba(248,81,73,.06); border-color: var(--red); color: var(--text-gray); }
.callout strong { color: var(--text-white); }

/* ============= FIGURE ============= */
.fig {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 16px 0;
}

.fig img { width: 100%; display: block; }

.fig-cap {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-widget);
    font-family: var(--font-mono);
}

/* ============= VIDEO ============= */
.vid {
    position: relative;
    padding-bottom: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin: 16px 0;
}

.vid iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: none;
}

/* ============= RESOURCE ROW ============= */
.res-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    transition: background .15s;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 14px;
}

.res-row:hover { background: rgba(255,255,255,.03); color: var(--text-white); }

.res-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--accent-glow);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.res-name { font-weight: 600; font-size: 13px; }
.res-desc { font-size: 11px; color: var(--text-muted); }

/* ============= TABLE ============= */
.tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tbl th, .tbl td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.tbl th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .8px;
}

.tbl td { color: var(--text-gray); }
.tbl tr:hover td { background: rgba(255,255,255,.015); }

.y { color: var(--green); }
.n { color: var(--red); }
.m { color: var(--orange); }

/* ============= TIMELINE ============= */
.tl-item {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.tl-item:last-child { border-bottom: none; }

.tl-date {
    flex-shrink: 0;
    width: 80px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 2px;
}

.tl-body h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tl-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.55;
}

.pill {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

/* ============= STEP ============= */
.step-row {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--bg-widget);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: border-color .15s;
}

.step-row:hover { border-color: var(--border-hover); }

.step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(91,163,216,.12);
    color: var(--accent);
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
}

.step-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============= CHECKLIST ============= */
.check-list { list-style: none; }

.check-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 700;
    font-size: 13px;
}

/* ============= MOBILE TOGGLE ============= */
.mobile-toggle {
    display: none;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 60;
    background: var(--bg-widget);
    border: 1px solid var(--border);
    color: var(--text-white);
    font-size: 18px;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: left .25s cubic-bezier(.4,0,.2,1);
}

.mobile-toggle.is-open {
    left: 228px;
    background: var(--bg-sidebar);
    border-color: var(--border);
}

/* ============= FOOTER ============= */
.page-footer {
    margin-top: 48px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
}

.page-footer a { color: var(--text-muted); margin-left: 16px; }
.page-footer a:hover { color: var(--text-gray); }

/* ============= OVERLAY for sidebar ============= */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 50;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-overlay.active { display: block; }

/* ============= RESPONSIVE — LARGE TABLET / SMALL DESKTOP ============= */
@media (max-width: 1100px) {
    :root { --sidebar-w: 220px; }
    .page { padding: 24px 20px 48px; }
}

/* ============= RESPONSIVE — TABLET (<= 900px) ============= */
@media (max-width: 900px) {
    /* Body: prevent horizontal scroll */
    body { display: block; }

    /* Sidebar: off-canvas overlay */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .25s cubic-bezier(.4,0,.2,1);
        z-index: 55;
        display: flex;
        flex-direction: column;
    }
    .sidebar.open {
        transform: translateX(0);
    }

    /* Main area: full width */
    .main {
        margin-left: 0;
        width: 100%;
        max-width: 100vw;
    }

    /* Mobile toggle visible */
    .mobile-toggle { display: block; }

    /* Topbar */
    .topbar {
        padding: 0 16px 0 52px;
        height: 48px;
    }

    /* Page content */
    .page {
        padding: 16px 14px 36px;
        max-width: 100%;
        overflow-x: hidden;
    }

    .page-title { font-size: 22px; }
    .page-desc { font-size: 14px; max-width: 100%; }

    /* All grids collapse to single column */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-2-1,
    .grid-1-2 {
        grid-template-columns: 1fr !important;
    }

    .widget-grid { gap: 10px; margin-bottom: 16px; }
    .widget { padding: 14px; }

    /* Onion box: stack vertically */
    .onion-box {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 12px;
    }
    .onion-box code { font-size: 11px; text-align: center; }

    /* Terminal: prevent overflow */
    .terminal { overflow: hidden; }
    .terminal-body {
        font-size: 11px;
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Table: scroll container */
    .tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -14px; padding: 0 14px; }
    .tbl { min-width: 500px; display: table; }
    .tbl th, .tbl td { padding: 8px 10px; font-size: 12px; }

    /* Status rows */
    .status-row { font-size: 13px; padding: 8px 0; gap: 8px; }
    .status-name { font-size: 12px; }
    .status-val { font-size: 12px; white-space: nowrap; }

    /* Resource rows */
    .res-row { padding: 8px 10px; font-size: 13px; }

    /* Steps */
    .step-row { padding: 12px; gap: 12px; }

    /* Timeline */
    .tl-item { gap: 10px; padding: 10px 0; }

    /* Page footer */
    .page-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        margin-top: 32px;
    }
    .page-footer a { margin-left: 8px; margin-right: 8px; }

    /* Callouts */
    .callout { padding: 10px 12px; font-size: 12px; }

    /* Content blocks */
    .content-block h2 { font-size: 18px; }
    .content-block p { font-size: 13px; }
    .content-block li { font-size: 13px; }
}

/* ============= RESPONSIVE — PHONE (<= 600px) ============= */
@media (max-width: 600px) {
    /* Toggle button */
    .mobile-toggle {
        top: 6px;
        left: 6px;
        padding: 6px 10px;
        font-size: 16px;
    }
    .mobile-toggle.is-open { left: 208px; }

    /* Topbar compact */
    .topbar {
        padding: 0 10px 0 44px;
        height: 42px;
    }
    .topbar-title { font-size: 12px; }
    .topbar-breadcrumb { display: none; }

    /* Page */
    .page { padding: 12px 10px 28px; }
    .page-header { margin-bottom: 14px; }
    .page-title { font-size: 19px; letter-spacing: -.3px; }
    .page-desc { font-size: 12px; line-height: 1.5; }

    /* Widgets */
    .widget { padding: 12px; border-radius: 8px; }
    .widget-grid { gap: 8px; margin-bottom: 12px; }
    .widget-header { margin-bottom: 8px; }
    .widget-title { font-size: 10px; letter-spacing: .5px; }
    .widget-badge { font-size: 9px; padding: 1px 6px; }

    /* Stats: 2-col on phones */
    .grid-4 { grid-template-columns: 1fr 1fr !important; }
    .stat-big { font-size: 22px; }
    .stat-label { font-size: 11px; }

    /* Timeline compact */
    .tl-item { flex-direction: column; gap: 3px; padding: 8px 0; }
    .tl-date { width: auto; font-size: 11px; }
    .tl-body h4 { font-size: 13px; flex-wrap: wrap; }
    .tl-body p { font-size: 12px; line-height: 1.5; }
    .pill { font-size: 9px; padding: 0 5px; }

    /* Steps compact */
    .step-row { flex-direction: column; padding: 10px; gap: 8px; }
    .step-num { width: 26px; height: 26px; font-size: 12px; }
    .step-body h3 { font-size: 14px; }
    .step-body p { font-size: 12px; line-height: 1.5; }

    /* Callouts */
    .callout { padding: 8px 10px; font-size: 11px; line-height: 1.5; }

    /* Content */
    .content-block { margin-bottom: 16px; }
    .content-block h2 { font-size: 16px; margin-bottom: 8px; }
    .content-block h3 { font-size: 13px; margin-bottom: 6px; }
    .content-block p { font-size: 12px; margin-bottom: 8px; line-height: 1.6; }
    .content-block li { font-size: 12px; padding: 4px 0 4px 16px; }

    /* Checklist */
    .check-list li { font-size: 12px; padding: 5px 0; gap: 6px; }

    /* Figures */
    .fig { border-radius: 6px; margin: 10px 0; }
    .fig-cap { font-size: 10px; padding: 5px 8px; }

    /* Video */
    .vid { border-radius: 6px; margin: 10px 0; }

    /* Terminal */
    .terminal { margin: 10px 0; border-radius: 8px; }
    .terminal-bar { padding: 6px 10px; }
    .terminal-dot { width: 8px; height: 8px; }
    .terminal-title { font-size: 10px; }
    .terminal-body { font-size: 10px; padding: 10px; line-height: 1.5; }

    /* Onion box */
    .onion-box { padding: 10px; gap: 6px; border-radius: 8px; }
    .onion-box code { font-size: 10px; }

    /* Sidebar when open */
    .sidebar { width: 260px; }
    .sidebar-onion code { font-size: 10px; }
    .sidebar-logo { padding: 16px 16px 18px; }
    .sidebar-logo img { height: 24px; }
    .sidebar-logo span { font-size: 14px; }

    /* Resource rows */
    .res-row { padding: 6px 8px; font-size: 12px; gap: 8px; }
    .res-icon { width: 24px; height: 24px; font-size: 11px; border-radius: 4px; }
    .res-name { font-size: 12px; }
    .res-desc { font-size: 10px; }

    /* Status rows */
    .status-row { padding: 6px 0; font-size: 12px; }
    .status-val { font-size: 11px; gap: 4px; }
    .dot { width: 6px; height: 6px; }

    /* Buttons */
    .btn-lg { padding: 9px 14px; font-size: 12px; border-radius: 8px; }
    .btn-sm { padding: 5px 10px; font-size: 11px; }

    /* Page footer */
    .page-footer { margin-top: 24px; padding-top: 14px; font-size: 11px; }
    .page-footer a { margin: 0 6px; font-size: 11px; }
}

/* ============= RESPONSIVE — SMALL PHONE (<= 380px) ============= */
@media (max-width: 380px) {
    .page { padding: 8px 8px 20px; }
    .page-title { font-size: 17px; }
    .page-desc { font-size: 11px; }
    .stat-big { font-size: 20px; }
    .grid-4 { grid-template-columns: 1fr !important; }
    .widget { padding: 10px; }
    .widget-grid { gap: 6px; }
    .topbar { padding: 0 8px 0 40px; height: 40px; }
    .topbar-title { font-size: 11px; }
    .mobile-toggle { top: 4px; left: 4px; padding: 5px 8px; font-size: 14px; }
    .mobile-toggle.is-open { left: 190px; }
    .sidebar { width: 240px; }
    .terminal-body { font-size: 9px; }
    .onion-box code { font-size: 9px; }
    .content-block p { font-size: 11px; }
    .callout { font-size: 10px; }
}
