/* ==========================================
   NKCode.dev — Light Workstation Theme
========================================== */

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

:root {
    --ws-bg: #f4f7fb;
    --ws-panel: #ffffff;
    --ws-card: #ffffff;
    --ws-border: rgba(15, 23, 42, 0.1);
    --ws-text: #0f172a;
    --ws-muted: #64748b;
    --ws-blue: #2563eb;
    --ws-green: #059669;
    --ws-red: #dc2626;
    --ws-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Do NOT force position:relative on overlays — that broke modal centering */
body.theme-dev-console > .nk-modal,
body.theme-dev-console > .newsletter-modal,
body.theme-dev-console > .nk-loader {
    position: fixed !important;
}

body.theme-dev-console {
    background: var(--ws-bg);
    color: var(--ws-text);
    font-family: 'Inter', system-ui, sans-serif;
}

body.theme-dev-console.home-workstation {
    background:
        radial-gradient(ellipse 80% 45% at 80% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
        linear-gradient(180deg, #eef3fa 0%, var(--ws-bg) 40%, #e8eef7 100%);
}

body.theme-dev-console.home-workstation::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(100, 116, 139, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 116, 139, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
}

body.theme-dev-console .home-page,
body.theme-dev-console .ws-shell,
body.theme-dev-console .site-footer,
body.theme-dev-console .page-content {
    position: relative;
    z-index: 1;
}

/* Site header — light console nav (all pages) */
body.theme-dev-console .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--ws-border);
    backdrop-filter: blur(12px);
}

body.theme-dev-console .site-header-inner {
    max-width: 1440px;
}

body.theme-dev-console .site-brand {
    color: var(--ws-text);
}

body.theme-dev-console .site-brand--path {
    gap: 12px;
}

.site-brand-path {
    font-family: var(--ws-mono);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--ws-blue);
    line-height: 1.2;
}

body.theme-dev-console .site-brand-text {
    color: var(--ws-text);
}

body.theme-dev-console .site-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px 10px;
}

body.theme-dev-console .site-nav a {
    font-family: var(--ws-mono);
    font-size: 12px;
    color: var(--ws-muted);
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
}

body.theme-dev-console .site-nav a.is-active,
body.theme-dev-console .site-nav a:hover {
    color: var(--ws-blue);
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.16);
}

body.theme-dev-console .site-nav a.is-active::after {
    display: none;
}

@media (max-width: 768px) {
    body.theme-dev-console .site-nav {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--ws-border);
    }

    body.theme-dev-console .site-nav a {
        color: var(--ws-muted);
        border-bottom: none;
    }

    body.theme-dev-console .site-nav-toggle span {
        background: var(--ws-text);
    }
}

body.theme-dev-console .dc-status {
    border-color: rgba(5, 150, 105, 0.25);
    background: rgba(5, 150, 105, 0.08);
    color: var(--ws-green);
}

/* ========== Workstation shell ========== */
.ws-shell {
    display: grid;
    grid-template-columns: 270px 1fr;
    min-height: 100vh;
    max-width: 1440px;
    margin: 0 auto;
}

.ws-sidebar {
    position: sticky;
    top: 0;
    align-self: start;
    height: auto;
    max-height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.92);
    border-right: 1px solid var(--ws-border);
    backdrop-filter: blur(10px);
}

.ws-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-decoration: none;
    color: inherit;
}

.ws-brand .site-brand-path {
    font-size: 18px;
}

.ws-online {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    font-family: var(--ws-mono);
    font-size: 11px;
    color: var(--ws-green);
}

.ws-online i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ws-green);
    box-shadow: 0 0 10px rgba(5, 150, 105, 0.55);
    animation: ws-pulse 2s ease-in-out infinite;
}

@keyframes ws-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.ws-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
}

.ws-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    flex-shrink: 0;
}

.ws-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ws-text);
}

.ws-role {
    font-size: 11px;
    color: var(--ws-muted);
    margin-top: 2px;
}


.ws-terminal {
    margin-top: 4px;
    flex-shrink: 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ws-border);
    background: #0b1220;
    color: #e2e8f0;
}

.ws-terminal-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #121a2a;
    font-family: var(--ws-mono);
    font-size: 10px;
    color: #94a3b8;
}

.ws-terminal-controls {
    display: flex;
    gap: 5px;
}

.ws-terminal-controls i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #334155;
    display: block;
}

.ws-terminal-controls i:nth-child(1) { background: #ef4444; }
.ws-terminal-controls i:nth-child(2) { background: #eab308; }
.ws-terminal-controls i:nth-child(3) { background: #22c55e; }

.ws-terminal-body {
    padding: 10px 12px 12px;
    font-family: var(--ws-mono);
    font-size: 11px;
    line-height: 1.7;
    color: #cbd5e1;
    min-height: 110px;
}

.ws-terminal-body .ok { color: #34d399; }

.ws-terminal-prompt .blink {
    color: #34d399;
    animation: ws-blink 1s steps(1) infinite;
}

@keyframes ws-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.ws-main {
    padding: 18px 22px 40px;
    min-width: 0;
}

.ws-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 10px 14px;
    border-radius: 12px;
    font-family: var(--ws-mono);
    font-size: 12px;
    color: var(--ws-muted);
    flex-wrap: wrap;
    position: sticky;
    top: 12px;
    z-index: 40;
}

.ws-topbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.ws-path { color: var(--ws-blue); font-weight: 600; }
.ws-sep { opacity: 0.5; }

.ws-topbar .ws-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.ws-topbar .ws-nav a {
    font-family: var(--ws-mono);
    font-size: 11px;
    color: var(--ws-muted);
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.ws-topbar .ws-nav a:hover,
.ws-topbar .ws-nav a.is-active {
    color: var(--ws-blue);
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.16);
}

.ws-topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.ws-chip {
    appearance: none;
    border: 1px solid var(--ws-border);
    background: #f8fafc;
    color: var(--ws-text);
    font-family: var(--ws-mono);
    font-size: 11px;
    font-weight: 600;
    padding: 7px 10px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.ws-chip:hover {
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--ws-blue);
}

.ws-chip--primary {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
    font-size: 12px;
    padding: 9px 14px;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.ws-chip--primary:hover {
    background: #1d4ed8;
    border-color: #1e40af;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}

.ws-chip--accent {
    background: linear-gradient(135deg, #0f766e, #059669);
    border-color: #047857;
    color: #ecfdf5;
    font-size: 12px;
    padding: 9px 14px;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.28);
}

.ws-chip--accent:hover {
    background: linear-gradient(135deg, #0d9488, #047857);
    border-color: #065f46;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(5, 150, 105, 0.35);
}

.ws-mobile-toggle { display: none; }
.ws-mobile-nav { display: none; }

.ws-intro {
    margin-bottom: 22px;
    padding: 22px;
    border-radius: 16px;
}

.ws-eyebrow {
    font-family: var(--ws-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ws-blue);
    margin-bottom: 10px;
}

.ws-intro h1 {
    font-size: clamp(26px, 3.4vw, 38px);
    line-height: 1.15;
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: var(--ws-text);
}

.ws-lead {
    color: var(--ws-muted);
    max-width: 720px;
    line-height: 1.7;
    margin: 0 0 18px;
}

.ws-intro-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

/* Social media agent — matches robot crew cards */
.ws-social-dock {
    padding: 10px;
    border-radius: 14px;
}

.ws-social-agent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.28);
    background: #fff;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.ws-social-agent .robot {
    width: 40px;
    flex-shrink: 0;
}

.ws-social-agent .robot__antenna { height: 8px; }
.ws-social-agent .robot__antenna span {
    width: 6px;
    height: 6px;
    top: -4px;
    margin-left: -3px;
}
.ws-social-agent .robot__head {
    width: 32px;
    height: 26px;
    border-radius: 10px 10px 8px 8px;
    gap: 3px;
}
.ws-social-agent .robot__eyes { gap: 6px; }
.ws-social-agent .robot__eyes i { width: 5px; height: 5px; }
.ws-social-agent .robot__mouth { width: 10px; height: 3px; }
.ws-social-agent.is-active .robot__mouth {
    width: 7px;
    height: 7px;
}
.ws-social-agent .robot__body {
    width: 28px;
    height: 22px;
    border-radius: 6px 6px 8px 8px;
}
.ws-social-agent .robot__chest { width: 10px; height: 7px; }
.ws-social-agent .robot__arms { inset: 4px -7px auto; }
.ws-social-agent .robot__arms span { width: 6px; height: 12px; }

.ws-social-agent.is-active .robot {
    animation: robot-work 0.7s ease-in-out infinite;
}

.ws-social-agent.is-active .robot__arms span:first-child {
    animation: arm-left 0.7s ease-in-out infinite;
}

.ws-social-agent.is-active .robot__arms span:last-child {
    animation: arm-right 0.7s ease-in-out infinite;
}

.ws-social-agent.is-active .robot__mouth {
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.28);
    animation: mouth-talk 0.45s ease-in-out infinite;
}

.robot--social {
    --bot: #db2777;
    --bot-2: #7c3aed;
    --eye: #fbcfe8;
}

.ws-social-agent__info { min-width: 0; flex: 1; }

.ws-social-agent__name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 2px;
}

.ws-social-agent__name-row h3 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--ws-text);
}

.ws-social-agent__role {
    display: block;
    font-family: var(--ws-mono);
    font-size: 9px;
    color: var(--ws-muted);
    margin-bottom: 4px;
}

.ws-social-agent__task {
    margin: 0 0 6px;
    font-family: var(--ws-mono);
    font-size: 10px;
    line-height: 1.35;
    color: #334155;
}

.ws-social-agent__bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
    margin-bottom: 6px;
}

.ws-social-agent__bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #db2777, #7c3aed);
}

.ws-social-agent__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-family: var(--ws-mono);
    font-size: 9px;
    color: #94a3b8;
}

.ws-social-dock__rail {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ws-social-dock__node {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0;
    max-width: 40px;
    height: 40px;
    padding: 0 10px;
    overflow: hidden;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #fff;
    color: var(--ws-text);
    text-decoration: none;
    transition: max-width 0.35s ease, gap 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.ws-social-dock__icon {
    width: 20px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 14px;
    line-height: 1;
}

.ws-social-dock__name {
    font-family: var(--ws-mono);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 0.2s ease 0.05s, transform 0.2s ease 0.05s;
}

.ws-social-dock__node:hover,
.ws-social-dock__node:focus-visible {
    max-width: 160px;
    gap: 8px;
    outline: none;
    transform: translateY(-1px);
    border-color: rgba(37, 99, 235, 0.28);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.ws-social-dock__node:hover .ws-social-dock__name,
.ws-social-dock__node:focus-visible .ws-social-dock__name {
    opacity: 1;
    transform: none;
}

.ws-social-dock__node--instagram:hover,
.ws-social-dock__node--instagram:focus-visible {
    border-color: rgba(219, 39, 119, 0.35);
    box-shadow: 0 8px 20px rgba(219, 39, 119, 0.14);
}

.ws-social-dock__node--medium:hover,
.ws-social-dock__node--medium:focus-visible {
    border-color: rgba(15, 23, 42, 0.35);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

.ws-social-dock__node--linkedin:hover,
.ws-social-dock__node--linkedin:focus-visible {
    border-color: rgba(37, 99, 235, 0.4);
}

.ws-social-dock__node--github:hover,
.ws-social-dock__node--github:focus-visible {
    border-color: rgba(15, 23, 42, 0.4);
}

.ws-social-dock__node--youtube:hover,
.ws-social-dock__node--youtube:focus-visible {
    border-color: rgba(220, 38, 38, 0.4);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.12);
}

.ws-social-dock__node--twitter:hover,
.ws-social-dock__node--twitter:focus-visible {
    border-color: rgba(15, 23, 42, 0.35);
}

.ws-social-dock__node--facebook:hover,
.ws-social-dock__node--facebook:focus-visible {
    border-color: rgba(37, 99, 235, 0.4);
}

@media (prefers-reduced-motion: reduce) {
    .ws-social-agent .robot,
    .ws-social-agent.is-active .robot,
    .ws-social-agent.is-active .robot__mouth,
    .ws-social-agent.is-active .robot__arms span,
    .ws-social-dock__node,
    .ws-social-dock__name {
        animation: none !important;
        transition: none !important;
    }

    .ws-social-dock__node:hover,
    .ws-social-dock__node:focus-visible {
        max-width: 160px;
    }
}

.ws-board-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ws-board-head h2 {
    margin: 0;
    font-size: 20px;
    color: var(--ws-text);
}

.ws-link {
    font-family: var(--ws-mono);
    font-size: 12px;
    color: var(--ws-blue);
    text-decoration: none;
}

.ws-link:hover { color: #1d4ed8; }

.ws-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 16px;
    align-items: start;
}

.ws-resources {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 14px;
}

/* Shared 3D tile elevation */
body.home-workstation .ws-intro,
body.home-workstation .ws-topbar,
body.home-workstation .ws-panel,
body.home-workstation .ws-util-card,
body.home-workstation .ws-utils-note,
body.home-workstation .ws-profile,
body.home-workstation .ws-social-dock,
body.theme-dev-console .res-card,
body.theme-dev-console .tool-card,
body.theme-dev-console .student-code-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 24px rgba(15, 23, 42, 0.08),
        0 2px 6px rgba(15, 23, 42, 0.06),
        0 18px 40px rgba(37, 99, 235, 0.05);
    transform: translateZ(0);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

body.home-workstation .ws-intro:hover,
body.home-workstation .ws-panel:hover,
body.home-workstation .ws-util-card:hover,
body.home-workstation .ws-profile:hover,
body.home-workstation .ws-social-dock:hover,
body.theme-dev-console .res-card:hover,
body.theme-dev-console .tool-card:hover,
body.theme-dev-console .student-code-panel:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 1) inset,
        0 16px 36px rgba(15, 23, 42, 0.12),
        0 6px 12px rgba(15, 23, 42, 0.08),
        0 28px 50px rgba(37, 99, 235, 0.1);
}

body.theme-dev-console .res-card {
    border-radius: 14px;
    padding: 16px;
    gap: 10px;
}

body.theme-dev-console .res-code {
    box-shadow:
        0 8px 18px rgba(2, 6, 23, 0.35),
        0 2px 4px rgba(2, 6, 23, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-dev-console .res-btn,
body.theme-dev-console .tool-card-actions .res-btn {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.55) inset,
        0 4px 10px rgba(15, 23, 42, 0.08);
}

body.theme-dev-console .res-btn-primary {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 8px 18px rgba(15, 23, 42, 0.22);
}

body.theme-dev-console .tool-card {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border-color: rgba(15, 23, 42, 0.08);
    color: var(--ws-text);
}

body.theme-dev-console .tool-card-icon {
    background: linear-gradient(145deg, #2563eb, #4f46e5);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    box-shadow:
        0 8px 16px rgba(37, 99, 235, 0.28),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

body.theme-dev-console .tool-card h3,
body.theme-dev-console .tool-card-tagline,
body.theme-dev-console .tool-card-desc,
body.theme-dev-console .tool-card-bullets {
    color: var(--ws-text);
}

body.theme-dev-console .tool-card-tagline,
body.theme-dev-console .tool-card-desc,
body.theme-dev-console .tool-card-bullets {
    color: var(--ws-muted);
}

@media (prefers-reduced-motion: reduce) {
    body.home-workstation .ws-intro,
    body.home-workstation .ws-panel,
    body.home-workstation .ws-util-card,
    body.home-workstation .ws-profile,
    body.home-workstation .ws-social-dock,
    body.theme-dev-console .res-card,
    body.theme-dev-console .tool-card,
    body.theme-dev-console .student-code-panel {
        transition: none;
    }

    body.home-workstation .ws-intro:hover,
    body.home-workstation .ws-panel:hover,
    body.home-workstation .ws-util-card:hover,
    body.home-workstation .ws-profile:hover,
    body.home-workstation .ws-social-dock:hover,
    body.theme-dev-console .res-card:hover,
    body.theme-dev-console .tool-card:hover,
    body.theme-dev-console .student-code-panel:hover {
        transform: none;
    }
}

body.theme-dev-console .res-type {
    font-family: var(--ws-mono);
    font-size: 10px;
    border-radius: 5px;
}

body.theme-dev-console .res-type::before { content: '['; }
body.theme-dev-console .res-type::after { content: ']'; }

body.theme-dev-console .type-pdf { background: rgba(220, 38, 38, 0.1); color: #b91c1c; }
body.theme-dev-console .type-doc { background: rgba(37, 99, 235, 0.1); color: #1d4ed8; }
body.theme-dev-console .type-ppt { background: rgba(234, 88, 12, 0.12); color: #c2410c; }
body.theme-dev-console .type-zip { background: rgba(202, 138, 4, 0.14); color: #a16207; }

body.theme-dev-console .res-category {
    font-family: var(--ws-mono);
    font-size: 11px;
    color: var(--ws-muted);
}

body.theme-dev-console .res-title {
    font-size: 16px;
    margin: 0;
}

body.theme-dev-console .res-title a {
    color: var(--ws-text);
    text-decoration: none;
}

body.theme-dev-console .res-title a:hover { color: var(--ws-blue); }

body.theme-dev-console .res-excerpt {
    color: var(--ws-muted);
}

body.theme-dev-console .res-meta {
    font-family: var(--ws-mono);
    font-size: 11px;
    color: #7c8aa0;
}

body.theme-dev-console .res-meta li::before {
    content: '•';
    margin-right: 6px;
    color: #94a3b8;
}

body.theme-dev-console .res-meta li:first-child::before {
    content: none;
    margin: 0;
}

.res-code {
    margin-top: 2px;
    padding: 12px;
    border-radius: 10px;
    background: #0b1220;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-family: var(--ws-mono);
    font-size: 11px;
    line-height: 1.65;
    color: #94a3b8;
    overflow: hidden;
}

.res-code .c-key { color: #c084fc; }
.res-code .c-str { color: #86efac; }
.res-code .c-cmt { color: #64748b; }

body.theme-dev-console .res-btn {
    font-family: var(--ws-mono);
    font-size: 12px;
    border-radius: 9px;
}

body.theme-dev-console .res-btn-outline {
    border: 1px solid var(--ws-border);
    background: #fff;
    color: var(--ws-text);
}

body.theme-dev-console .res-btn-primary {
    background: #0f172a;
    color: #fff;
    border: none;
}

body.theme-dev-console .res-btn-primary:hover {
    background: #1e293b;
    color: #fff;
}

.ws-utils {
    display: grid;
    gap: 10px;
    position: sticky;
    top: 18px;
}

.ws-utils-title {
    margin: 0 0 2px;
    font-family: var(--ws-mono);
    font-size: 12px;
    color: var(--ws-muted);
    font-weight: 600;
}

.ws-util-card {
    display: block;
    padding: 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
}

.ws-util-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}

.ws-util-top strong {
    font-size: 14px;
    color: var(--ws-text);
}

.ws-util-live {
    font-family: var(--ws-mono);
    font-size: 10px;
    color: var(--ws-green);
    white-space: nowrap;
}

.ws-util-card p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--ws-muted);
}

.ws-utils-note {
    padding: 14px;
    border-radius: 12px;
    border-style: dashed;
    border-color: rgba(37, 99, 235, 0.35);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.03) 100%);
}

.ws-utils-note strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--ws-text);
}

.ws-utils-note p {
    margin: 0 0 12px;
    font-size: 12px;
    color: var(--ws-muted);
    line-height: 1.5;
}

.ws-utils-note .res-btn { width: 100%; }

.ws-panel {
    margin-top: 18px;
    padding: 22px;
    border-radius: 16px;
}

.ws-panel h2 {
    margin: 0 0 10px;
    font-size: 22px;
    color: var(--ws-text);
}

.ws-panel p {
    color: var(--ws-muted);
    line-height: 1.65;
    margin: 0 0 14px;
}

.ws-newsletter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.ws-unsubscribe-btn {
    min-width: 140px;
    border-color: rgba(15, 23, 42, 0.18);
    color: #334155;
    background: #fff;
}

.ws-unsubscribe-btn:hover {
    border-color: rgba(220, 38, 38, 0.35);
    color: #b91c1c;
    background: rgba(254, 242, 242, 0.9);
}

.ws-contact input,
.ws-contact textarea {
    width: 100%;
    margin-bottom: 12px;
    border-radius: 10px;
    border: 1px solid var(--ws-border);
    background: #fff;
    color: var(--ws-text);
    padding: 12px 14px;
    font: inherit;
}

.ws-contact button {
    border: none;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-family: var(--ws-mono);
    font-weight: 600;
    padding: 12px 16px;
    cursor: pointer;
}

.ws-alert {
    grid-column: 1 / -1;
    margin: 12px 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.25);
    color: #991b1b;
}

body.home-workstation .site-footer {
    width: 100%;
    max-width: none;
    margin: 28px 0 0;
    padding: 28px 28px 22px;
    border: 1px solid var(--ws-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    color: var(--ws-muted);
    box-sizing: border-box;
}

body.theme-dev-console:not(.home-workstation) .site-footer {
    width: 100%;
    max-width: none;
    margin: 28px 0 0;
    padding: 28px 28px 22px;
    border: 1px solid var(--ws-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    color: var(--ws-muted);
    box-sizing: border-box;
}

body.home-workstation .site-footer-inner,
body.theme-dev-console:not(.home-workstation) .site-footer-inner {
    max-width: none;
    width: 100%;
    margin: 0;
}

body.home-workstation .site-footer-copy,
body.home-workstation .site-footer-tagline,
body.home-workstation .site-footer-sub,
body.theme-dev-console:not(.home-workstation) .site-footer-copy,
body.theme-dev-console:not(.home-workstation) .site-footer-tagline,
body.theme-dev-console:not(.home-workstation) .site-footer-sub {
    text-align: center;
}

body.home-workstation .site-footer-top,
body.theme-dev-console .site-footer-top {
    grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom-color: var(--ws-border);
}

body.home-workstation .site-footer-brand,
body.theme-dev-console .site-footer-brand {
    font-family: var(--ws-mono);
    color: var(--ws-text);
}

body.home-workstation .site-footer-top p,
body.theme-dev-console .site-footer-top p {
    color: #64748b;
}

body.home-workstation .site-footer-col-title,
body.theme-dev-console .site-footer-col-title {
    color: #2563eb;
    letter-spacing: 0.06em;
}

body.home-workstation .site-footer-links a,
body.theme-dev-console .site-footer-links a,
body.home-workstation .site-footer a,
body.theme-dev-console .site-footer a {
    color: #334155;
}

body.home-workstation .site-footer-links a:hover,
body.theme-dev-console .site-footer-links a:hover,
body.home-workstation .site-footer a:hover,
body.theme-dev-console .site-footer a:hover {
    color: #2563eb;
}

body.home-workstation .site-footer-copy,
body.theme-dev-console .site-footer-copy {
    font-family: var(--ws-mono);
    color: #475569;
}

body.home-workstation .site-footer-copy strong,
body.theme-dev-console .site-footer-copy strong {
    color: var(--ws-text);
}

body.home-workstation .site-footer-tagline,
body.theme-dev-console .site-footer-tagline {
    color: #475569;
}

body.home-workstation .site-footer-sub,
body.theme-dev-console .site-footer-sub {
    color: #64748b;
}

body.home-workstation .site-footer-badge,
body.theme-dev-console .site-footer-badge {
    background: rgba(37, 99, 235, 0.1);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

body.theme-dev-console .section-eyebrow,
body.theme-dev-console .section-eyebrow.light {
    color: var(--ws-blue);
}

body.theme-dev-console .section-text,
body.theme-dev-console .section-sub {
    color: var(--ws-muted);
}

body.theme-dev-console .text-link {
    color: var(--ws-blue);
}

/* Light overrides for shared dark base styles */
body.theme-dev-console h1,
body.theme-dev-console h2,
body.theme-dev-console h3 {
    color: var(--ws-text);
}

body.theme-dev-console .btn.website,
body.theme-dev-console .btn.github {
    color: #fff;
}

body.theme-dev-console .subscribe-btn {
    background: #0f172a;
    color: #fff;
}

/* Resources listing — light pagination + toolbar */
body.theme-dev-console .resources-page {
    padding: 28px 0 48px;
}

body.theme-dev-console .resources-hero-lead {
    color: #475569;
}

body.theme-dev-console .resources-toolbar {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 10px 28px rgba(15, 23, 42, 0.06);
}

body.theme-dev-console .resources-search input,
body.theme-dev-console .resources-filters select {
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--ws-text);
}

body.theme-dev-console .resources-result-count {
    color: #64748b;
}

body.theme-dev-console .resources-pagination {
    gap: 10px;
    margin-top: 32px;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

body.theme-dev-console .page-btn {
    color: #334155;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-family: var(--ws-mono);
    font-size: 12px;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.theme-dev-console .page-btn:hover,
body.theme-dev-console .page-btn.is-active {
    background: #2563eb;
    border-color: #1d4ed8;
    color: #fff;
}

body.theme-dev-console .page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    background: #f8fafc;
    color: #94a3b8;
    border-color: rgba(15, 23, 42, 0.08);
}

body.theme-dev-console .page-ellipsis {
    display: inline-flex;
    align-items: center;
    color: #94a3b8;
    padding: 0 4px;
    font-family: var(--ws-mono);
}

body.theme-dev-console .resources-empty {
    background: #fff;
    border: 1px dashed rgba(15, 23, 42, 0.15);
}

body.theme-dev-console .resources-empty p {
    color: #64748b;
}

body.theme-dev-console .resources-page .site-footer {
    width: 100%;
    max-width: 1100px;
    margin: 36px auto 0;
    box-sizing: border-box;
}

/* Inner pages — about / legal / content cards */
body.theme-dev-console .page-content.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 28px 20px 36px;
}

body.theme-dev-console .legal-page,
body.theme-dev-console .about-page,
body.theme-dev-console .error-page-card {
    background:
        linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 32px rgba(15, 23, 42, 0.08),
        0 4px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: none;
    color: var(--ws-text);
}

body.theme-dev-console .legal-page h1,
body.theme-dev-console .about-page h1 {
    color: var(--ws-text);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

body.theme-dev-console .legal-lead {
    color: #475569;
    font-size: 17px;
}

body.theme-dev-console .legal-meta {
    color: #64748b;
}

body.theme-dev-console .legal-page h2,
body.theme-dev-console .about-page-body h2 {
    color: var(--ws-text);
    font-size: 18px;
    margin: 0 0 8px;
}

body.theme-dev-console .legal-page p,
body.theme-dev-console .legal-page li,
body.theme-dev-console .about-page-body p,
body.theme-dev-console .about-page-body li {
    color: #334155;
}

body.theme-dev-console .legal-page strong,
body.theme-dev-console .about-page-body strong {
    color: var(--ws-text);
}

body.theme-dev-console .legal-page a,
body.theme-dev-console .about-page-body a {
    color: var(--ws-blue);
    font-weight: 600;
}

body.theme-dev-console .legal-page a:hover,
body.theme-dev-console .about-page-body a:hover {
    color: #1d4ed8;
}

body.theme-dev-console .about-page-body section,
body.theme-dev-console .legal-page section {
    padding-top: 4px;
    margin-bottom: 26px;
}

body.theme-dev-console .about-page-body ul {
    color: #334155;
}

@media (max-width: 980px) {
    .ws-shell { grid-template-columns: 1fr; }
    .ws-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--ws-border);
    }
    .ws-terminal {
        display: block;
        max-width: 320px;
        margin: 0;
        align-self: flex-start;
    }
    .ws-grid { grid-template-columns: 1fr; }
    .ws-utils {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ws-utils-title,
    .ws-utils-note { grid-column: 1 / -1; }
    .ws-topbar .ws-nav {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    .ws-main { padding: 14px; }
    .ws-mobile-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        background: none;
        border: 1px solid var(--ws-border);
        border-radius: 8px;
        padding: 8px;
        cursor: pointer;
    }
    .ws-mobile-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--ws-text);
        border-radius: 2px;
    }
    .ws-topbar .ws-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        order: 3;
        padding-top: 8px;
        border-top: 1px solid var(--ws-border);
    }
    .ws-topbar .ws-nav.is-open {
        display: flex;
    }
    .ws-topbar .ws-nav a {
        padding: 10px 8px;
    }
    .ws-utils { grid-template-columns: 1fr; }
    body.home-workstation .site-footer-top { grid-template-columns: 1fr; }
}
