/* ==========================================================================
   Variant "workspace": the site as a code editor (loaded after site.css)
   ========================================================================== */

:root {
    --ws-win: #0f1311;
    --ws-side: #0c0f0e;
    --ws-bar: #090b0a;
    --ws-line: rgba(255, 255, 255, .065);
    --ws-hover: rgba(255, 255, 255, .035);
    --ws-gutter: #46514a;
    --ws-k: #c79bf2;
    --ws-s: #e7c27d;
    --ws-f: #82aaff;
    --ws-n: #f7966c;
    --ws-p: #7fdbca;
    --ws-t: #f07178;
    --ws-c: #64716a;
    --ws-v: #e6ece8;
    --ws-shadow: 0 40px 120px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
:root[data-theme="light"] {
    --ws-win: #ffffff;
    --ws-side: #f5f6f3;
    --ws-bar: #eceee9;
    --ws-line: rgba(16, 22, 16, .08);
    --ws-hover: rgba(16, 22, 16, .035);
    --ws-gutter: #a7b0aa;
    --ws-k: #8a3ffc;
    --ws-s: #9a5b00;
    --ws-f: #1f62c8;
    --ws-n: #c4501c;
    --ws-p: #0f7c6c;
    --ws-t: #c0392b;
    --ws-c: #8a948d;
    --ws-v: #1d221f;
    --ws-shadow: 0 40px 100px -40px rgba(20, 40, 20, .35), 0 0 0 1px rgba(16, 22, 16, .08);
}

body.variant-workspace:has(.is-bare) { overflow: hidden; }
.is-bare { height: 100vh; height: 100dvh; }

/* ---------- Stage and aurora ---------- */

.ws-stage { position: fixed; inset: 0; overflow: hidden; overflow: clip; background: var(--bg); perspective: 1800px; }
.ws-aurora { position: absolute; inset: -20%; filter: blur(80px) saturate(140%); opacity: .75; }
.ws-aurora span { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; mix-blend-mode: screen; animation: ws-float 26s ease-in-out infinite alternate; }
.ws-aurora span:nth-child(1) { left: 5%; top: 0; background: rgba(123, 191, 106, .35); }
.ws-aurora span:nth-child(2) { right: 0; top: 20%; background: rgba(80, 150, 230, .28); animation-duration: 32s; animation-direction: alternate-reverse; }
.ws-aurora span:nth-child(3) { left: 30%; bottom: -10%; background: rgba(170, 110, 240, .22); animation-duration: 38s; }
:root[data-theme="light"] .ws-aurora { opacity: .5; }
:root[data-theme="light"] .ws-aurora span { mix-blend-mode: multiply; }
@keyframes ws-float { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(8%, -6%, 0) scale(1.15); } 100% { transform: translate3d(-6%, 8%, 0) scale(.95); } }
.ws-stage::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, #000 100%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, transparent 40%, #000 100%);
    opacity: .6;
}

/* ---------- Window ---------- */

.ws-window {
    position: absolute; inset: clamp(10px, 2.6vw, 34px); z-index: 2;
    display: grid; grid-template-rows: 44px minmax(0, 1fr) 26px;
    border-radius: 14px; overflow: hidden; overflow: clip;
    background: var(--ws-win); box-shadow: var(--ws-shadow);
    transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .6s var(--ease);
    font-family: var(--font-mono);
}
.ws-stage.is-booting .ws-window { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(6px); }
/* the window stays hidden until workspace.js opens it, so it appears once, with its animation, instead of empty first */
.js .ws-stage:not(.is-open) .ws-window { opacity: 0; }
.js .ws-stage.is-open .ws-window { animation: ws-open .9s var(--ease) backwards; }
@keyframes ws-open { from { opacity: 0; transform: translateY(24px) scale(.94); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* Title bar */
.ws-titlebar { display: flex; align-items: center; gap: 10px; padding: 0 12px; background: var(--ws-bar); border-bottom: 1px solid var(--ws-line); }
.ws-lights { display: flex; gap: 7px; margin-right: 6px; }
.ws-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.ws-lights i:nth-child(2) { background: #febc2e; }
.ws-lights i:nth-child(3) { background: #28c840; }
.ws-search {
    display: flex; align-items: center; gap: 10px; margin: 0 auto; width: min(460px, 46%); height: 28px; padding: 0 10px;
    border: 1px solid var(--ws-line); border-radius: 7px; background: var(--ws-hover); color: var(--muted);
    font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .2s, color .2s;
}
.ws-search:hover { border-color: var(--border-strong); color: var(--text); }
.ws-search .icon { width: 14px; height: 14px; }
.ws-search span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-search kbd, .ws-palette kbd { padding: 1px 6px; border: 1px solid var(--ws-line); border-radius: 4px; font: inherit; font-size: 11px; color: var(--faint); }
.ws-actions { display: flex; align-items: center; gap: 6px; }
.ws-icon { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 8px; border: 0; border-radius: 6px; background: none; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ws-icon:hover { background: var(--ws-hover); color: var(--text); }
.ws-icon .icon { width: 16px; height: 16px; }
.ws-cv { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); font-size: 12.5px; font-weight: 600; }
.ws-cv .icon { width: 14px; height: 14px; }
.ws-explorer-toggle { display: none; }

/* Body */
.ws-body { display: flex; min-height: 0; }
.ws-activity { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 48px; padding: 8px 0; background: var(--ws-bar); border-right: 1px solid var(--ws-line); }
.ws-activity button { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: none; color: var(--faint); cursor: pointer; transition: color .2s, background-color .2s; }
.ws-activity button:hover, .ws-activity button.is-on { color: var(--text); }
.ws-activity button.is-on::before { content: ''; position: absolute; left: -4px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); }
.ws-activity button .icon { width: 20px; height: 20px; }
.ws-activity-end { margin-top: auto; }

.ws-sidebar { width: 250px; flex: none; overflow-y: auto; background: var(--ws-side); border-right: 1px solid var(--ws-line); font-size: 13px; transition: margin-left .35s var(--ease); }
.ws-stage.is-sidebar-hidden .ws-sidebar { margin-left: -250px; }
.ws-sidebar-title { padding: 12px 16px 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.ws-root { padding: 4px 16px; font-weight: 600; color: var(--text); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.ws-tree { padding: 2px 0 16px; }
.ws-tree ul { padding-left: 12px; }
.ws-dir > span { display: block; padding: 3px 16px; color: var(--muted); }
.ws-file { display: flex; align-items: center; gap: 8px; padding: 3px 16px 3px 24px; color: var(--muted); border-left: 2px solid transparent; transition: background-color .15s, color .15s; }
.ws-file:hover { background: var(--ws-hover); color: var(--text); }
.ws-file.is-active { background: var(--accent-soft); color: var(--text); border-left-color: var(--accent); }
.fi { display: inline-grid; place-items: center; min-width: 20px; height: 16px; padding: 0 3px; border-radius: 3px; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: -.02em; }
.fi-md { color: #61afef; } .fi-vue { color: #42b883; } .fi-py { color: #f2c94c; } .fi-ts { color: #3b82f6; }
.fi-json { color: #e5c07b; } .fi-log { color: #f78c6c; } .fi-sh { color: #98c379; } .fi-cmd { color: var(--accent); }

/* Editor */
.ws-editor { position: relative; flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
.ws-tabs { display: flex; overflow-x: auto; scrollbar-width: none; background: var(--ws-side); border-bottom: 1px solid var(--ws-line); }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tab {
    position: relative; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 14px; flex: none;
    border: 0; border-right: 1px solid var(--ws-line); background: none; color: var(--faint); font: inherit; font-size: 12.5px; cursor: pointer;
    animation: ws-tab-in .3s var(--ease);
}
.ws-tab.is-active { background: var(--ws-win); color: var(--text); }
.ws-tab.is-active::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--accent); }
.ws-tab-close { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: var(--faint); opacity: 0; }
.ws-tab:hover .ws-tab-close, .ws-tab.is-active .ws-tab-close { opacity: 1; }
.ws-tab-close:hover { background: var(--ws-hover); color: var(--text); }
@keyframes ws-tab-in { from { opacity: 0; transform: translateY(-6px); } }
.ws-breadcrumb { height: 26px; padding: 0 20px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); border-bottom: 1px solid var(--ws-line); }
.ws-breadcrumb b { color: var(--muted); font-weight: 500; }
html:not(.js) .ws-tabs, html:not(.js) .ws-breadcrumb, html:not(.js) .ws-palette { display: none; }

.ws-scroll { position: relative; overflow-y: auto; overflow-x: hidden; padding: 18px 92px 80px 0; scroll-behavior: smooth; }
.js .ws-panel { display: none; }
.js .ws-panel.is-active { display: block; }
.ws-panel + .ws-panel { border-top: 1px dashed var(--ws-line); margin-top: 32px; padding-top: 32px; }
.js .ws-panel + .ws-panel { border: 0; margin: 0; padding: 0; }

/* Lines */
.ws-doc { counter-reset: line; }
.l {
    position: relative; counter-increment: line;
    min-height: 1.75em; padding: 1px 0 1px 70px;
    font-size: 13.5px; line-height: 1.75; color: var(--ws-v);
}
.l::before {
    content: counter(line); position: absolute; left: 0; top: 1px; width: 46px; text-align: right;
    font-size: 12px; color: var(--ws-gutter); font-variant-numeric: tabular-nums;
}
.l:hover { background: var(--ws-hover); }
.l:hover::before { color: var(--muted); }
.l.i1 { padding-left: 98px; }
.l.i2 { padding-left: 126px; }
.js .ws-panel.is-active .l { animation: ws-line .5s var(--ease) both; animation-delay: calc(var(--i) * 24ms); }
@keyframes ws-line { from { opacity: 0; transform: translateX(-8px); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
.js .ws-panel.is-active .ws-doc > .l:last-child::after { content: ''; display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -3px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }

/* Markdown-ish lines */
.md { color: var(--ws-gutter); font-weight: 400; margin-right: 4px; }
.l.prose, .l.li, .l.quote, .l.h1, .l.h2, .l.title, .l.heroline { font-family: var(--font-sans); }
.l.prose, .l.li { font-size: 15.5px; line-height: 1.7; max-width: calc(78ch + 70px); }
.l.prose { color: var(--text); }
.ws-code .l.prose { color: var(--muted); }
.l.h1 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.5; padding-top: 4px; }
.l.h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; padding-top: 8px; }
.l.h2 .icon, .l.li.has-icon .icon { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; color: var(--accent); }
.l.quote { color: var(--muted); font-style: normal; }
.l.quote .icon { display: inline-block; width: 1em; height: 1em; vertical-align: -2px; color: var(--accent); }
.l.title { padding-top: 4px; }
.ws-title { display: block; max-width: 24ch; font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 600; line-height: 1.15; letter-spacing: -.035em; }
.ws-title em, .ws-hero em { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--accent); letter-spacing: -.02em; }
.l.heroline { padding-top: 10px; padding-bottom: 6px; }
.ws-hero { margin: 0; max-width: 17ch; font-size: clamp(2.2rem, 5.4vw, 4.6rem); font-weight: 600; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.ws-hero.is-typing::after { content: ''; display: inline-block; width: .08em; height: .9em; margin-left: .06em; vertical-align: -.08em; background: var(--accent); animation: blink .8s steps(1) infinite; }
.ws-inline-title { font-family: var(--font-sans); font-weight: 650; font-size: 1.15em; color: var(--text); }
.l a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent); text-underline-offset: 3px; }
.l .muted { color: var(--muted); }
.l code { padding: 1px 6px; border-radius: 4px; background: var(--ws-hover); border: 1px solid var(--ws-line); font-size: 12px; margin-right: 4px; }

/* Syntax */
.k { color: var(--ws-k); } .s { color: var(--ws-s); } .f { color: var(--ws-f); } .n { color: var(--ws-n); }
.p { color: var(--ws-p); } .t { color: var(--ws-t); } .v { color: var(--ws-v); } .o { color: var(--ws-k); }
.c, .c a { color: var(--ws-c); font-style: italic; }
.c a { text-decoration-color: currentColor; }
.l.sdoc { color: var(--ws-s); }
.ws-code .l.prose.sdoc { color: color-mix(in srgb, var(--ws-s) 75%, var(--text)); }
.ws-code .l.h-comment .c { font-style: normal; font-weight: 600; color: var(--text); font-family: var(--font-sans); font-size: 1.1rem; }
.prompt { color: var(--accent); }
.ref { color: var(--ws-p); }

/* Blocks inside lines */
.l.block { padding-top: 10px; padding-bottom: 10px; }
.l.block:hover { background: none; }
.ws-block-narrow { max-width: 620px; }
.ws-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 860px; font-family: var(--font-sans); }
.ws-stats div { display: grid; padding: 14px 16px; border: 1px solid var(--ws-line); border-radius: 10px; background: var(--ws-hover); }
.ws-stats b { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 650; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ws-stats span { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-top: 4px; }
.ws-stats small { font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 6px; }
.ws-ctas { display: flex; flex-wrap: wrap; gap: 10px; font-family: var(--font-sans); }
.ws-term { display: grid; gap: 4px; max-width: 760px; padding: 14px 16px; border-radius: 10px; background: #070908; border: 1px solid rgba(255, 255, 255, .08); color: #d5ddd6; font-size: 13px; }
.ws-term .out { color: #e6ece8; }
.ws-term .hint { color: #6a756d; }
.ws-term .prompt { color: #9be07a; }
.l .terminal { font-size: 12.5px; }
.l .flow { font-family: var(--font-sans); }

/* kiosk.vue: code + preview */
.ws-split { display: grid !important; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.js .ws-split:not(.is-active) { display: none !important; }
.ws-preview { position: sticky; top: 0; padding: 16px 0 24px; border: 1px solid var(--ws-line); border-radius: 12px; background: radial-gradient(circle at 50% 35%, var(--accent-soft), transparent 70%); animation: ws-preview-in .8s var(--ease) .35s both; }
.ws-preview-label { margin: 0 0 12px 16px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.ws-preview .kiosk-screen { font-family: var(--font-sans); width: 240px; }
@keyframes ws-preview-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* house.py run */
.ws-run { max-width: 680px; font-size: 12.5px; }
.js .ws-run .ws-log, .js .ws-run .ws-log-done { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s var(--ease); }
.js .ws-run .is-shown { opacity: 1 !important; transform: none !important; }
.ws-run .ws-log::before { content: '●'; margin-right: 6px; font-size: 9px; vertical-align: 2px; color: #9be07a; }
.ws-run .log-heat::before { color: #ff9f6b; } .ws-run .log-sun::before { color: #ffd166; }
.ws-run .log-rain::before { color: #7fb6ff; } .ws-run .log-shade::before { color: #b9a4ff; }
.ws-run span { white-space: normal; }

/* career.log: git graph */
.ws-git .ws-doc { position: relative; }
.ws-git .ws-doc::after {
    content: ''; position: absolute; left: 56px; top: 3.6em; bottom: 2em; width: 2px; border-radius: 2px;
    background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 20%, transparent));
    transform-origin: top; animation: ws-graph 1.6s var(--ease) .2s both;
}
.ws-git .l { padding-left: 82px; }
.ws-git .l.i1 { padding-left: 106px; }
.ws-git .l.commit::after { content: ''; position: absolute; left: 51px; top: .55em; width: 12px; height: 12px; border-radius: 50%; background: var(--ws-win); border: 2px solid var(--accent); z-index: 1; }
.ws-git .l.commit:first-of-type::after { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.ws-git .l.meta { color: var(--muted); }
@keyframes ws-graph { from { transform: scaleY(0); } }

/* contact.sh */
.ws-cmd { text-decoration: none !important; border-bottom: 1px dashed currentColor; }
.ws-form { max-width: 640px; font-family: var(--font-sans); }
.ws-form .contact-form { box-shadow: none; background: var(--ws-side); border-color: var(--ws-line); }
.ws-form .input { background: var(--ws-win); }

/* Minimap */
.ws-minimap { position: absolute; right: 10px; top: 72px; bottom: 10px; width: 64px; overflow: hidden; cursor: pointer; opacity: .8; }
.ws-minimap-lines { display: grid; gap: 2px; }
.ws-minimap-lines i { display: block; height: 2px; border-radius: 1px; background: var(--ws-gutter); opacity: .55; animation: ws-mini .4s var(--ease) both; animation-delay: calc(var(--i) * 8ms); }
.ws-minimap-lines i.is-head { background: var(--accent); opacity: .8; }
@keyframes ws-mini { from { transform: scaleX(0); transform-origin: left; } }
.ws-minimap-view { position: absolute; left: 0; right: 0; top: 0; height: 40px; border-radius: 3px; background: var(--ws-hover); border: 1px solid var(--ws-line); transition: top .08s linear; }

/* Status bar */
.ws-statusbar { display: flex; align-items: center; gap: 16px; padding: 0 12px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.ws-status-accent { font-weight: 600; }
.ws-status-spacer { flex: 1; }
.ws-status-ready { display: inline-flex; align-items: center; gap: 6px; }
.ws-status-ready i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: ping-soft 2s infinite; }
@keyframes ping-soft { 50% { opacity: .3; } }

/* ---------- Boot sequence ---------- */

.ws-boot { position: absolute; inset: 0; z-index: 5; display: none; place-items: center; background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); cursor: pointer; }
.ws-stage.is-booting .ws-boot { display: grid; }
.ws-stage.is-booted .ws-boot { display: grid; animation: ws-boot-out .5s var(--ease) forwards; pointer-events: none; }
@keyframes ws-boot-out { to { opacity: 0; transform: scale(1.03); } }
.ws-boot-term { width: min(560px, 90vw); padding: 22px 24px; border-radius: 12px; background: #070908; border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7); font-family: var(--font-mono); font-size: 13.5px; color: #d5ddd6; }
.ws-boot-term p { min-height: 1.6em; margin: 0; }
.ws-boot-term p:nth-of-type(odd) { color: #9be07a; }
.ws-boot-term p.is-typing::after { content: '█'; margin-left: 2px; animation: blink .7s steps(1) infinite; color: #9be07a; }
.ws-boot-bar { height: 3px; margin: 16px 0 10px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ws-boot-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #7bbf6a, #9be07a, #7fb6ff); transition: width .3s var(--ease); }
.ws-boot-skip { font-size: 11.5px; color: #6a756d !important; }

/* ---------- Command palette ---------- */

.ws-palette { position: absolute; inset: 0; z-index: 8; display: flex; justify-content: center; align-items: flex-start; padding-top: 12vh; background: rgba(5, 8, 6, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ws-palette[hidden] { display: none; }
.ws-palette-box { width: min(640px, 92vw); max-height: 70vh; display: flex; flex-direction: column; border-radius: 12px; overflow: hidden; background: var(--ws-win); box-shadow: var(--ws-shadow); font-family: var(--font-mono); animation: ws-pop .28s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes ws-pop { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.ws-palette-input { width: 100%; padding: 16px 18px; border: 0; border-bottom: 1px solid var(--ws-line); background: transparent; color: var(--text); font: inherit; font-size: 15px; outline: none; }
.ws-palette-list { overflow-y: auto; padding: 6px; }
.ws-palette-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; font-size: 13px; color: var(--muted); cursor: pointer; }
.ws-palette-list li span { color: var(--text); }
.ws-palette-list li small { margin-left: auto; color: var(--faint); font-size: 11.5px; }
.ws-palette-list li.is-active { background: var(--accent-soft); }
.ws-palette-list li.is-active span { color: var(--accent); }
.ws-palette-list .ws-palette-group { padding: 10px 10px 4px; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); cursor: default; }
.ws-palette-list .ws-palette-group:hover { background: none; }
.ws-palette-empty { justify-content: center; color: var(--faint) !important; }

/* Variant switcher above the status bar */
.variant-workspace .xp { bottom: 34px; left: 14px; }

/* ---------- Small screens ---------- */

@media (max-width: 900px) {
    .ws-window { inset: 0; border-radius: 0; grid-template-rows: 48px minmax(0, 1fr) 24px; }
    .ws-lights, .ws-activity, .ws-minimap { display: none; }
    .ws-explorer-toggle { display: inline-grid; }
    .ws-search { width: auto; flex: 1; min-width: 0; margin: 0; }
    .ws-titlebar { gap: 4px; padding: 0 8px; }
    .ws-actions { gap: 2px; flex: none; }
    .l code { word-break: break-all; }
    .ws-search kbd { display: none; }
    .ws-sidebar { position: absolute; z-index: 4; top: 48px; bottom: 24px; left: 0; width: min(290px, 82vw); box-shadow: 20px 0 60px -20px rgba(0, 0, 0, .6); transform: translateX(-105%); transition: transform .3s var(--ease); margin: 0 !important; }
    .ws-stage.is-sidebar-open .ws-sidebar { transform: none; }
    .ws-scroll { padding: 14px 14px 60px 0; }
    .l { padding-left: 44px; font-size: 13px; }
    .l::before { width: 30px; font-size: 11px; }
    .l.i1 { padding-left: 60px; }
    .l.i2 { padding-left: 76px; }
    .l.prose, .l.li { font-size: 15px; }
    .ws-git .l { padding-left: 56px; } .ws-git .l.i1 { padding-left: 70px; }
    .ws-git .ws-doc::after { left: 36px; } .ws-git .l.commit::after { left: 31px; }
    .ws-split { grid-template-columns: 1fr; }
    .ws-preview { position: static; margin-left: 44px; }
    .ws-stats { grid-template-columns: 1fr 1fr; }
    .ws-statusbar span:nth-child(n+5):not(.ws-status-ready) { display: none; }
    .ws-cv span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ws-aurora span, .ws-window, .ws-boot { animation: none !important; }
    .js .ws-stage .ws-window { opacity: 1; transform: none !important; filter: none; }
    .js .ws-panel.is-active .l { animation: none; }
    .js .ws-run .ws-log, .js .ws-run .ws-log-done { opacity: 1; transform: none; }
}

/* Buttons inside editor lines keep their own colours */
.l a.btn { text-decoration: none; }
.l a.btn-primary { color: var(--accent-ink); }
.l a.btn-ghost { color: var(--text); }
.l a.btn-link { color: var(--muted); }
.l a.btn-link:hover { color: var(--text); }
.ws-palette-list li[hidden] { display: none; }
