/* =====================================================================
   ARCHIVE//YCMB — hidden section, only built when the URL ends in #YCMB
   Everything is scoped under #ycmb so it can't leak into the portfolio.
   ===================================================================== */

@property --denial {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

#ycmb {
    --ink: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1));
    --ink-rgb: calc(61 + 194 * var(--denial, 0)), calc(255 - 223 * var(--denial, 0)), calc(122 - 90 * var(--denial, 0));
    --ink-soft: color-mix(in srgb, #2bc95d calc((1 - var(--denial, 0)) * 100%), rgba(201,21,21,1));
    --ink-dim: color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1));
    --ink-faint: color-mix(in srgb, #0f3d1f calc((1 - var(--denial, 0)) * 100%), rgba(61,7,7,1));
    --bg: color-mix(in srgb, #020604 calc((1 - var(--denial, 0)) * 100%), rgba(6,2,2,1));
    --panel: color-mix(in srgb, rgba(3, 14, 7, 0.94) calc((1 - var(--denial, 0)) * 100%), rgba(14.0,3.0,3.0,0.94));
    --panel-solid: color-mix(in srgb, #04120a calc((1 - var(--denial, 0)) * 100%), rgba(18,2,2,1));
    --warn: #ffbf3d;
    --err: #ff5a5a;
    --mono: 'JetBrains Mono', 'Cascadia Mono', 'Consolas', ui-monospace, monospace;
    --crt: 'VT323', 'JetBrains Mono', ui-monospace, monospace;

    position: fixed;
    inset: 0;
    z-index: 1000;
    font-family: var(--mono);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}
#ycmb *, #ycmb *::before, #ycmb *::after { box-sizing: border-box; }
#ycmb button { font: inherit; color: inherit; }
#ycmb ::selection { background: var(--ink); color: var(--bg); }

/* scanlines + vignette over every stage */
#ycmb .crt::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        repeating-linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0) 2px, rgba(0,0,0,0.22) 3px),
        radial-gradient(ellipse at center, rgba(0,0,0,0) 60%, rgba(0,0,0,0.55) 100%);
    z-index: 50;
}
#ycmb .glow { text-shadow: 0 0 6px rgba(var(--ink-rgb), 0.55); }

/* ------------------------------------------------------------- GATE */
#ycmb .gate {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: color-mix(in srgb, rgba(2, 6, 4, 0.82) calc((1 - var(--denial, 0)) * 100%), rgba(6.0,2.0,2.0,0.82));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: ycmb-fade 0.5s ease both;
    overflow-y: auto;
}
#ycmb .gate-box {
    width: min(420px, 100%);
    border: 1px solid var(--ink-dim);
    background: var(--panel);
    padding: 26px 22px 20px;
    box-shadow: 0 0 0 1px rgba(var(--ink-rgb),0.08), 0 0 40px rgba(var(--ink-rgb),0.12);
    text-align: center;
    position: relative;
}
#ycmb .lock { width: 64px; height: 76px; margin: 0 auto 6px; display: block; overflow: visible; }
#ycmb .lock .shackle { transition: transform 0.6s cubic-bezier(.3,1.6,.5,1); transform-origin: 44px 30px; }
#ycmb .lock.open .shackle { transform: translateY(-12px) rotate(28deg); }
#ycmb .lock .body { transition: fill 0.4s ease; }
#ycmb .lock.open .body { fill: var(--ink); }
#ycmb .status {
    font-size: 12px;
    letter-spacing: 0.3em;
    color: var(--ink-soft);
    margin-bottom: 18px;
    min-height: 1.2em;
}
#ycmb .status.ok { color: var(--ink); text-shadow: 0 0 8px rgba(var(--ink-rgb),0.8); }
#ycmb .url {
    font-size: 14px;
    text-align: left;
    border: 1px solid var(--ink-faint);
    background: color-mix(in srgb, #010402 calc((1 - var(--denial, 0)) * 100%), rgba(4,2,2,1));
    padding: 9px 10px;
    margin-bottom: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--ink-soft);
}
#ycmb .url .hl { color: var(--bg); background: var(--ink); }
#ycmb .url .hash { color: var(--ink); }
#ycmb .caret { display: inline-block; width: 8px; height: 1em; background: var(--ink); vertical-align: -2px; animation: ycmb-blink 1s steps(1) infinite; }
#ycmb .slots { display: flex; justify-content: center; gap: 10px; margin-bottom: 18px; }
#ycmb .slot {
    width: 48px; height: 58px;
    border: 1px solid var(--ink-dim);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
#ycmb .slot b { font-family: var(--crt); font-size: 36px; line-height: 1; font-weight: 400; color: var(--ink-dim); }
#ycmb .slot i { font-style: normal; font-size: 10px; letter-spacing: 0.2em; color: var(--ink-dim); height: 12px; }
#ycmb .slot.set { border-color: var(--ink); box-shadow: 0 0 12px rgba(var(--ink-rgb),0.25) inset; }
#ycmb .slot.set b, #ycmb .slot.set i { color: var(--ink); }
#ycmb .keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 20px; }
#ycmb .key {
    background: transparent;
    border: 1px solid var(--ink-faint);
    padding: 7px 0 5px;
    display: flex; flex-direction: column; align-items: center;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
#ycmb .key b { font-size: 18px; font-weight: 500; line-height: 1.1; }
#ycmb .key small { font-size: 9px; letter-spacing: 0.18em; color: var(--ink-dim); min-height: 11px; }
#ycmb .key.press { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(0.94); }
#ycmb .key.press small { color: var(--bg); }
#ycmb .access {
    width: 100%;
    padding: 13px 0;
    background: transparent;
    border: 1px solid var(--ink);
    letter-spacing: 0.32em;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s, transform 0.4s, background 0.15s, color 0.15s;
    pointer-events: none;
}
#ycmb .access.show { opacity: 1; transform: none; pointer-events: auto; animation: ycmb-pulse 1.8s ease-in-out infinite; }
#ycmb .access:hover, #ycmb .access:focus-visible { background: var(--ink); color: var(--bg); outline: none; }
#ycmb .back {
    display: inline-block;
    margin-top: 14px;
    font-size: 11px;
    color: var(--ink-dim);
    background: none; border: 0; cursor: pointer;
    letter-spacing: 0.1em;
}
#ycmb .back:hover { color: var(--ink); }

/* ------------------------------------------------------------- BOOT */
#ycmb .boot {
    position: absolute;
    inset: 0;
    background: #000;
    padding: 18px 16px;
    overflow: hidden;
    font-family: var(--crt);
    font-size: 19px;
    line-height: 1.22;
}
#ycmb .boot pre { margin: 0; font: inherit; white-space: pre-wrap; word-break: break-word; }
#ycmb .boot .ok { color: var(--ink); }
#ycmb .boot .dim { color: var(--ink-dim); }
#ycmb .boot .warn { color: var(--warn); }
#ycmb .boot .w { color: color-mix(in srgb, #c8ffd8 calc((1 - var(--denial, 0)) * 100%), rgba(255,100,100,1)); }
@media (max-width: 600px) { #ycmb .boot { font-size: 15px; } }

/* ------------------------------------------------------------- DESKTOP */
#ycmb .os {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 30%, rgba(var(--ink-rgb),0.07), transparent 60%),
        linear-gradient(rgba(var(--ink-rgb),0.035) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(var(--ink-rgb),0.035) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--bg);
    overflow: hidden;
    animation: ycmb-fade 0.6s ease both;
    font-size: 13px;
}
#ycmb .wall {
    position: absolute;
    right: 4vw; bottom: 64px;
    font-family: var(--crt);
    font-size: clamp(12px, 1.4vw, 18px);
    line-height: 1;
    color: var(--ink-faint);
    display: flex; flex-direction: column; align-items: center; gap: 1.5em;
    pointer-events: none;
    user-select: none;
}
#ycmb .bar {
    position: absolute; left: 0; right: 0; top: 0;
    height: 30px;
    display: flex; align-items: center; gap: 12px;
    padding: 0 10px;
    background: color-mix(in srgb, rgba(1, 6, 3, 0.92) calc((1 - var(--denial, 0)) * 100%), rgba(6.0,1.0,1.0,0.92));
    border-bottom: 1px solid var(--ink-faint);
    z-index: 40;
    font-size: 12px;
}
#ycmb .bar .ws { display: flex; gap: 4px; }
#ycmb .bar .ws span { padding: 1px 7px; border: 1px solid var(--ink-faint); color: var(--ink-dim); }
#ycmb .bar .ws span.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
#ycmb .bar .title { flex: 1; text-align: center; letter-spacing: 0.28em; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ycmb .bar .clock { color: var(--ink-soft); }
#ycmb .bar .pwr { background: none; border: 1px solid var(--ink-faint); padding: 1px 8px; cursor: pointer; }
#ycmb .bar .pwr:hover { border-color: var(--err); color: var(--err); }

#ycmb .icons {
    position: absolute;
    top: 46px; left: 14px;
    display: grid;
    grid-template-columns: repeat(1, 92px);
    gap: 10px;
    z-index: 1;
}
#ycmb .icon {
    background: none; border: 1px solid transparent;
    padding: 8px 4px 6px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer;
    text-align: center;
}
#ycmb .icon:hover, #ycmb .icon:focus-visible { border-color: var(--ink-dim); background: rgba(var(--ink-rgb),0.06); outline: none; }
#ycmb .icon svg { width: 38px; height: 38px; }
#ycmb .icon span { font-size: 11px; line-height: 1.2; word-break: break-all; }

#ycmb .dock {
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 34px;
    display: flex; align-items: center; gap: 6px;
    padding: 0 8px;
    background: color-mix(in srgb, rgba(1, 6, 3, 0.92) calc((1 - var(--denial, 0)) * 100%), rgba(6.0,1.0,1.0,0.92));
    border-top: 1px solid var(--ink-faint);
    z-index: 40;
    overflow-x: auto;
    scrollbar-width: none;
}
#ycmb .dock::-webkit-scrollbar { display: none; }
#ycmb .dock .launch { color: var(--ink-dim); padding-right: 6px; border-right: 1px solid var(--ink-faint); margin-right: 2px; white-space: nowrap; font-size: 12px; }
#ycmb .dock button.task {
    background: none;
    border: 1px solid var(--ink-faint);
    padding: 3px 10px;
    font-size: 12px;
    white-space: nowrap;
    cursor: pointer;
    color: var(--ink-dim);
}
#ycmb .dock button.task.on { color: var(--ink); border-color: var(--ink-dim); background: rgba(var(--ink-rgb),0.08); }

/* ------------------------------------------------------------- WINDOWS */
#ycmb .win {
    position: absolute;
    display: flex; flex-direction: column;
    min-width: 260px; min-height: 160px;
    background: var(--panel-solid);
    border: 1px solid var(--ink-dim);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(var(--ink-rgb),0.05);
    animation: ycmb-pop 0.18s ease-out both;
    z-index: 10;
}
#ycmb .win.interacted { animation: none; }
#ycmb .win.interacting { will-change: transform; }
#ycmb .win.focus { border-color: var(--ink); box-shadow: 0 10px 40px rgba(0,0,0,0.7), 0 0 24px rgba(var(--ink-rgb),0.12); }
#ycmb .win.min { display: none; }
#ycmb .win.max, #ycmb.narrow .win {
    left: 0 !important; top: 30px !important;
    width: 100% !important; height: calc(100% - 64px) !important;
    border-left: 0; border-right: 0;
    animation: none;
}
#ycmb .tb {
    display: flex; align-items: center; gap: 8px;
    height: 28px; padding: 0 4px 0 10px;
    border-bottom: 1px solid var(--ink-faint);
    cursor: grab;
    touch-action: none;
    user-select: none; -webkit-user-select: none;
    flex: 0 0 auto;
}
#ycmb .win.focus .tb { background: rgba(var(--ink-rgb),0.07); }
#ycmb .tb .t { flex: 1; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ycmb .tb .t::before { content: "▍"; color: var(--ink-dim); margin-right: 4px; }
#ycmb .tb button {
    width: 24px; height: 20px;
    background: none; border: 1px solid transparent;
    cursor: pointer; line-height: 1; font-size: 12px;
}
#ycmb .tb button:hover { border-color: var(--ink-dim); }
#ycmb .tb button.x:hover { border-color: var(--err); color: var(--err); }
#ycmb.narrow .tb button.mx { display: none; }
#ycmb .wb { flex: 1; overflow: auto; position: relative; min-height: 0; }
#ycmb .wb::-webkit-scrollbar { width: 8px; height: 8px; }
#ycmb .wb::-webkit-scrollbar-thumb { background: var(--ink-faint); }
#ycmb .grip { position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; cursor: nwse-resize; touch-action: none;
    background: linear-gradient(135deg, transparent 50%, var(--ink-dim) 50%, var(--ink-dim) 60%, transparent 60%, transparent 72%, var(--ink-dim) 72%, var(--ink-dim) 82%, transparent 82%); }
#ycmb.narrow .grip, #ycmb .win.max .grip { display: none; }

/* ------------------------------------------------------------- FILES */
#ycmb .fm-nav { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--ink-faint); position: sticky; top: 0; background: var(--panel-solid); z-index: 2; }
#ycmb .fm-nav button { background: none; border: 1px solid var(--ink-faint); padding: 2px 8px; cursor: pointer; }
#ycmb .fm-nav button:disabled { opacity: 0.35; cursor: default; }
#ycmb .crumbs { flex: 1; font-size: 12px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
#ycmb .crumbs a { color: var(--ink-soft); cursor: pointer; text-decoration: none; }
#ycmb .crumbs a:hover { color: var(--ink); text-decoration: underline; }
#ycmb .fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; padding: 12px; }
#ycmb .fm-item {
    background: none; border: 1px solid transparent;
    padding: 8px 6px;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    cursor: pointer; text-align: center;
    min-width: 0;
}
#ycmb .fm-item:hover, #ycmb .fm-item:focus-visible { border-color: var(--ink-dim); background: rgba(var(--ink-rgb),0.06); outline: none; }
#ycmb .fm-item svg { width: 44px; height: 44px; }
#ycmb .fm-item .thumb { width: 100%; height: 64px; object-fit: cover; border: 1px solid var(--ink-faint); display: block; }
#ycmb .fm-item .nm { font-size: 11.5px; line-height: 1.25; word-break: break-word; }
#ycmb .fm-item .meta { font-size: 10px; color: var(--ink-dim); }
#ycmb .fm-about { padding: 12px 14px 0; font-size: 12.5px; line-height: 1.6; color: color-mix(in srgb, #b8f5c9 calc((1 - var(--denial, 0)) * 100%), rgba(245,92,92,1)); }
#ycmb .fm-about h4 { margin: 0 0 2px; font-size: 15px; color: var(--ink); font-weight: 600; }
#ycmb .fm-about .meta { color: var(--ink-dim); font-size: 11px; margin-bottom: 8px; }
#ycmb .fm-about p { margin: 0 0 8px; }

/* ------------------------------------------------------------- TEXT / VIEWER */
#ycmb .txt { padding: 14px 16px; margin: 0; white-space: pre-wrap; font: 13px/1.65 var(--mono); color: color-mix(in srgb, #b8f5c9 calc((1 - var(--denial, 0)) * 100%), rgba(245,92,92,1)); }
#ycmb .viewer { display: flex; flex-direction: column; height: 100%; background: #000; }
#ycmb .viewer .stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 8px; }
#ycmb .viewer img { max-width: 100%; max-height: 100%; object-fit: contain; width: auto; pointer-events: auto; }
#ycmb .viewer .ctl { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-top: 1px solid var(--ink-faint); font-size: 12px; }
#ycmb .viewer .ctl span { flex: 1; text-align: center; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#ycmb .viewer .ctl button { background: none; border: 1px solid var(--ink-faint); padding: 2px 12px; cursor: pointer; }

/* ------------------------------------------------------------- TERMINAL */
#ycmb .term { padding: 10px 12px; font: 13px/1.5 var(--mono); min-height: 100%; cursor: text; }
#ycmb .term .out { white-space: pre-wrap; word-break: break-word; }
#ycmb .term .out .d { color: var(--ink-dim); }
#ycmb .term .out .e { color: var(--err); }
#ycmb .term .out .w { color: color-mix(in srgb, #c8ffd8 calc((1 - var(--denial, 0)) * 100%), rgba(255,100,100,1)); }
#ycmb .term .out .a { color: #7fd8ff; }
#ycmb .term .line { display: flex; gap: 8px; }
#ycmb .term .ps1 { color: var(--ink-soft); white-space: nowrap; }
#ycmb .term input {
    flex: 1; min-width: 0;
    background: none; border: 0; outline: none;
    color: var(--ink); font: inherit; caret-color: var(--ink);
    padding: 0;
}

/* ------------------------------------------------------------- CARD PREVIEW */
#ycmb .pv { display: grid; grid-template-columns: minmax(240px, 320px) 1fr; min-height: 100%; }
#ycmb .pv-form { padding: 12px; border-right: 1px solid var(--ink-faint); display: flex; flex-direction: column; gap: 10px; }
#ycmb .pv-form label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: 0.08em; color: var(--ink-soft); }
#ycmb .pv-form input[type=text], #ycmb .pv-form textarea, #ycmb .pv-form select {
    background: color-mix(in srgb, #010402 calc((1 - var(--denial, 0)) * 100%), rgba(4,2,2,1)); border: 1px solid var(--ink-faint);
    color: color-mix(in srgb, #d6ffe2 calc((1 - var(--denial, 0)) * 100%), rgba(255,107,107,1)); font: 12.5px/1.45 var(--mono);
    padding: 7px 8px; resize: vertical; outline: none; width: 100%;
}
#ycmb .pv-form input[type=text]:focus, #ycmb .pv-form textarea:focus, #ycmb .pv-form select:focus { border-color: var(--ink-dim); }
#ycmb .pv-form .hint { font-size: 10.5px; color: var(--ink-dim); letter-spacing: 0; }
#ycmb .pv-row { display: flex; gap: 6px; }
#ycmb .pv-row input[type=text] { flex: 1; }
#ycmb .pv-file { border: 1px solid var(--ink-faint); padding: 6px 8px; font-size: 11px; cursor: pointer; white-space: nowrap; color: var(--ink); letter-spacing: 0; display: block; }
#ycmb .pv-file input { display: none; }
#ycmb .pv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
#ycmb .pv-tags label { flex-direction: row; align-items: center; gap: 0; letter-spacing: 0; }
#ycmb .pv-tags input { display: none; }
#ycmb .pv-tags span { border: 1px solid var(--ink-faint); padding: 3px 7px; font-size: 11px; cursor: pointer; color: var(--ink-dim); }
#ycmb .pv-tags input:checked + span { border-color: var(--ink); color: var(--bg); background: var(--ink); }
#ycmb .pv-actions { display: flex; gap: 6px; }
#ycmb .pv-actions > button { flex: 1; min-width: 0; }
#ycmb .pv-form select { min-width: 0; text-overflow: ellipsis; }
#ycmb .pv-form .hint:empty { display: none; }
#ycmb .pv-save {
    margin-top: 4px; padding: 10px 0;
    background: transparent; border: 1px solid var(--ink);
    letter-spacing: 0; cursor: pointer;
}
#ycmb .pv-save:hover { background: var(--ink); color: var(--bg); }
#ycmb .pv-out { padding: 12px; display: flex; flex-direction: column; gap: 14px; min-width: 0; justify-content: flex-start; background:
    radial-gradient(ellipse at 30% 0%, color-mix(in srgb, rgba(153,162,255,0.10) calc((1 - var(--denial, 0)) * 100%), rgba(255.0,70.0,70.0,0.1)), transparent 70%); }
#ycmb .pv-label { font-size: 11px; letter-spacing: 0.14em; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
#ycmb .pv-label .chk { letter-spacing: 0; }
#ycmb .pv-label .good { color: var(--ink); }
#ycmb .pv-label .bad { color: var(--warn); }
#ycmb .pv-stage { position: relative; flex: none; overflow: hidden; background: color-mix(in srgb, rgb(76, 84, 140) calc((1 - var(--denial, 0)) * 100%), rgba(140.0,45.0,45.0,1)); border: 1px solid var(--ink-faint); }
#ycmb .pv-canvas {
    position: absolute; left: 0; top: 0;
    container-type: inline-size;
    transform-origin: 0 0;
    padding: 0;
}
#ycmb .pv-canvas .row { margin: 0; transform: none !important; }
#ycmb .pv-phone-wrap { display: flex; justify-content: center; }
#ycmb .pv-phone { width: 200px; border: 1px solid var(--ink-dim); border-radius: 18px; padding: 10px 6px 14px; background: #0b0f14; }
#ycmb .pv-phone .pv-stage { border-radius: 4px; }
#ycmb.narrow .pv { grid-template-columns: 1fr; }
#ycmb.narrow .pv-form { border-right: 0; border-bottom: 1px solid var(--ink-faint); }

/* ------------------------------------------------------------- TOAST */
#ycmb .toast {
    position: absolute; left: 50%; bottom: 46px; transform: translateX(-50%);
    background: var(--panel-solid); border: 1px solid var(--err); color: var(--err);
    padding: 8px 14px; font-size: 12px; z-index: 60; max-width: calc(100% - 32px);
    animation: ycmb-fade 0.2s ease both;
}

@keyframes ycmb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ycmb-pop { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes ycmb-blink { 50% { opacity: 0; } }
@keyframes ycmb-pulse { 0%,100% { box-shadow: 0 0 0 rgba(var(--ink-rgb),0); } 50% { box-shadow: 0 0 18px rgba(var(--ink-rgb),0.45); } }
@keyframes ycmb-shake { 25% { transform: translateX(-5px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

#ycmb .url[hidden] { display: none; }
#ycmb .key:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#ycmb .gate .status { line-height: 1.5; letter-spacing: .12em; }

/* Opaque stage backing keeps the portfolio out of archive transitions. */
#ycmb { background: #000; }
#ycmb .bar .pwr { flex: 0 0 34px; min-width: 34px; line-height: 22px; padding: 0; display: grid; place-items: center; }
#ycmb .tb button { flex-shrink: 0; min-width: 24px; }
#ycmb .tb .t { min-width: 0; }
#ycmb .bar .ws button { background: none; padding: 1px 7px; border: 1px solid var(--ink-faint); color: var(--ink-dim); cursor: pointer; }
#ycmb .bar .ws button.on { background: var(--ink); color: var(--bg); }
#ycmb .other-workspace { display: none; }
#ycmb .icons { right: 0; bottom: 40px; display: block; pointer-events: none; }
#ycmb .icon { position: absolute; width: 92px; left: 0; pointer-events: auto; touch-action: none; animation: ycmb-icon-in .45s ease both; }
#ycmb .icon:nth-child(1) { top: 0; animation-delay: .12s; }
#ycmb .icon:nth-child(2) { top: 90px; animation-delay: .2s; }
#ycmb .icon:nth-child(3) { top: 180px; animation-delay: .28s; }
#ycmb .icon:nth-child(4) { top: 270px; animation-delay: .36s; }
#ycmb .icon:nth-child(5) { top: 360px; animation-delay: .44s; }
#ycmb .icon.moved { animation: none; }
#ycmb .bar { animation: ycmb-bar-in .45s ease both; }
#ycmb .dock { animation: ycmb-dock-in .45s .15s ease both; }
#ycmb .access-feedback { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 38px 48px; border: 2px solid currentColor; background: #000; color: var(--ink); font: bold clamp(24px, 4vw, 38px) var(--mono); z-index: 90; white-space: nowrap; pointer-events: none; animation: ycmb-feedback 1.4s ease both; }
#ycmb .access-feedback.denied { color: var(--ink); }
#ycmb .logout-confirm { position: absolute; inset: 0; z-index: 110; background: #000b; display: grid; place-items: center; }
#ycmb .logout-confirm > div { padding: 28px; border: 1px solid var(--ink); background: var(--panel-solid); }
#ycmb .logout-confirm button, #ycmb .music-player button { background: transparent; border: 1px solid var(--ink-dim); padding: 6px 12px; margin-right: 8px; cursor: pointer; }
#ycmb .music-player { padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; }
#ycmb .music-player p { margin: 0; }
#ycmb .music-player input { accent-color: var(--ink); }
#ycmb .music-viz { position: absolute; bottom: 34px; left: 0; width: 100%; height: calc(100vh - 64px); opacity: .16; pointer-events: none; }
.archive-page-toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); padding: 10px 18px; background: color-mix(in srgb, #04120a calc((1 - var(--denial, 0)) * 100%), rgba(18,2,2,1)); border: 1px solid color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); color: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); font: 12px monospace; z-index: 1200; }
@keyframes ycmb-bar-in { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ycmb-dock-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ycmb-icon-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ycmb-feedback { 0% { opacity: 0; } 12%,80% { opacity: 1; } 100% { opacity: 0; } }
#ycmb .layer { position: absolute; inset: 0; pointer-events: none; }
#ycmb .win { pointer-events: auto; }
#ycmb.access-denied .lock .body { fill: var(--ink-faint); }
#ycmb.access-denied .lock path, #ycmb.access-denied .lock .body { stroke: var(--ink); }
@media (max-height: 560px) {
    #ycmb .icon:nth-child(4) { left: 100px; top: 0; }
    #ycmb .icon:nth-child(5) { left: 100px; top: 90px; }
}
#ycmb .music-credit { display: flex; flex-direction: column; gap: 4px; }
#ycmb .music-credit a { color: var(--ink); text-decoration: none; width: fit-content; }
#ycmb .music-credit a:last-child { font-size: 10px; color: var(--ink-soft); letter-spacing: .08em; }
#ycmb .music-credit a:hover, #ycmb .music-credit a:focus-visible { text-decoration: underline; }

/* Optical controls are independent of the platform's symbol font. */
#ycmb .control-icon { display: inline-flex; align-items: center; justify-content: center; }
#ycmb .control-icon svg { display: block; width: 18px; height: 18px; }
#ycmb .tb { height: 32px; gap: 4px; }
#ycmb .tb button { display: grid; place-items: center; width: 30px; min-width: 30px; height: 26px; padding: 0; }
#ycmb .music-player { padding: 16px; gap: 12px; }
#ycmb .music-player > p { font-size: 10px; letter-spacing: .08em; color: var(--ink-dim); }
#ycmb .radio-progress { display: block; width: 100%; height: 3px; border: 0; appearance: none; background: var(--ink-faint); accent-color: var(--ink); }
#ycmb .radio-progress::-webkit-progress-bar { background: var(--ink-faint); }
#ycmb .radio-progress::-webkit-progress-value { background: var(--ink); }
#ycmb .radio-progress::-moz-progress-bar { background: var(--ink); }
#ycmb .radio-playback { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#ycmb .music-player .radio-transport { display: grid; place-items: center; width: 36px; height: 32px; padding: 0; margin: 0; border-color: var(--ink-dim); background: rgba(var(--ink-rgb), .03); }
#ycmb .radio-transport:hover { background: rgba(var(--ink-rgb), .09); }
#ycmb .radio-time { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
#ycmb .radio-settings { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--ink-faint); padding-top: 12px; }
#ycmb .radio-volume { display: flex; flex: 1; min-width: 0; align-items: center; gap: 8px; font-size: 10px; line-height: 1; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"]) { width: 100%; min-width: 36px; height: 18px; margin: 0; }
#ycmb .radio-viz-toggle { display: flex; align-items: center; gap: 6px; font-size: 10px; white-space: nowrap; cursor: pointer; }
#ycmb .radio-viz-toggle input {
    appearance: none;
    width: 13px;
    height: 13px;
    flex: none;
    margin: 0;
    border: 1px solid var(--ink-dim);
    border-radius: 1px;
    background: var(--bg);
    display: grid;
    place-content: center;
    cursor: inherit;
}
#ycmb .radio-viz-toggle input::before {
    content: "";
    width: 8px;
    height: 8px;
    background: var(--bg);
    clip-path: polygon(14% 44%, 0 59%, 39% 100%, 100% 17%, 83% 3%, 37% 67%);
    visibility: hidden;
}
#ycmb .radio-viz-toggle input:checked { background: var(--ink); border-color: var(--ink); }
#ycmb .radio-viz-toggle input:checked::before { visibility: visible; }
#ycmb .radio-viz-toggle input:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
#ycmb .radio-viz-toggle:has(input:disabled) { opacity: .45; cursor: default; }
#ycmb .music-viz { opacity: .2; filter: blur(2px); }

/* A stationary glass layer adds depth without distorting hit targets or text. */
#ycmb .screen-glass { position: absolute; inset: 0; z-index: 70; pointer-events: none; border-radius: 12px; box-shadow: inset 0 0 90px 24px #0008, inset 0 0 2px 1px color-mix(in srgb, #91ffb426 calc((1 - var(--denial, 0)) * 100%), rgba(255,72,72,0.14901960784313725)); background: radial-gradient(ellipse at 50% 20%, color-mix(in srgb, #b9ffd004 calc((1 - var(--denial, 0)) * 100%), rgba(255,92,92,0.01568627450980392)), transparent 65%); }
#ycmb .screen-glass::after { content: ''; position: absolute; inset: -25% 0; background: linear-gradient(transparent 40%, rgba(var(--ink-rgb), .02) 50%, transparent 60%); animation: ycmb-scan-drift 18s linear infinite; }
#ycmb .os::before { content: ''; position: absolute; inset: -15%; pointer-events: none; background: radial-gradient(ellipse at 30% 35%, rgba(var(--ink-rgb), .03), transparent 50%), radial-gradient(ellipse at 75% 65%, rgba(var(--ink-rgb), .02), transparent 45%); animation: ycmb-phosphor-drift 24s ease-in-out infinite alternate; }
#ycmb .wall { text-shadow: 0 0 22px rgba(var(--ink-rgb), .09); }
#ycmb .win { box-shadow: 0 14px 42px #0009, inset 0 1px rgba(var(--ink-rgb), .02); }
@keyframes ycmb-scan-drift { from { transform: translateY(-45%); } to { transform: translateY(45%); } }
@keyframes ycmb-phosphor-drift { from { transform: translate(-2%, -2%); opacity: .5; } to { transform: translate(2%, 3%); opacity: 1; } }

/* Standards-based scrollbar colors, with WebKit fallback for older engines. */
#ycmb, #ycmb * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)) color-mix(in srgb, #020604 calc((1 - var(--denial, 0)) * 100%), rgba(6,2,2,1)); }
#ycmb *::-webkit-scrollbar { width: 8px; height: 8px; }
#ycmb *::-webkit-scrollbar-track { background: color-mix(in srgb, #020604 calc((1 - var(--denial, 0)) * 100%), rgba(6,2,2,1)); }
#ycmb *::-webkit-scrollbar-thumb { background: color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)); border: 2px solid color-mix(in srgb, #020604 calc((1 - var(--denial, 0)) * 100%), rgba(6,2,2,1)); border-radius: 4px; }
#ycmb *::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, #2bc95d calc((1 - var(--denial, 0)) * 100%), rgba(201,21,21,1)); }
#ycmb .dock { scrollbar-width: none; }
#ycmb .dock::-webkit-scrollbar { display: none; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"]) { appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"])::-webkit-slider-runnable-track { height: 5px; background: color-mix(in srgb, #0f3d1f calc((1 - var(--denial, 0)) * 100%), rgba(61,7,7,1)); border: 1px solid color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)); border-radius: 0; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"])::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 9px; height: 13px; margin-top: -5px; background: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); border: 1px solid color-mix(in srgb, #a2ffbe calc((1 - var(--denial, 0)) * 100%), rgba(255,81,81,1)); border-radius: 1px; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"])::-moz-range-track { height: 4px; background: color-mix(in srgb, #0f3d1f calc((1 - var(--denial, 0)) * 100%), rgba(61,7,7,1)); border: 1px solid color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)); border-radius: 0; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"])::-moz-range-progress { height: 4px; background: color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)); }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"])::-moz-range-thumb { width: 7px; height: 11px; background: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); border: 1px solid color-mix(in srgb, #a2ffbe calc((1 - var(--denial, 0)) * 100%), rgba(255,81,81,1)); border-radius: 1px; }
#ycmb :is(.radio-volume input, .fx-setting input[type="range"]):focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
#ycmb .music-viz { filter: none; opacity: .26; }
#ycmb .preview-body { overflow: hidden; }
#ycmb .pv { height: 100%; min-height: 0; overflow: hidden; }
#ycmb .pv-form, #ycmb .pv-out { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#ycmb .pv-form > * { flex-shrink: 0; }
#ycmb .pv-out > * { flex-shrink: 0; }
#ycmb.narrow .pv { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); }
#ycmb .bar .pwr { width: 34px; height: 26px; overflow: visible; }
#ycmb .bar .pwr .control-icon svg { width: 17px; height: 17px; }
#ycmb .shutdown { position: absolute; inset: 0; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; }
#ycmb .logout-spinner { width: 24px; height: 24px; border: 2px solid color-mix(in srgb, #0f3d1f calc((1 - var(--denial, 0)) * 100%), rgba(61,7,7,1)); border-top-color: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); border-radius: 50%; animation: ycmb-spinner .65s linear infinite; }
#ycmb .logout-log { width: min(580px, calc(100% - 40px)); min-height: 100px; margin: 0; color: color-mix(in srgb, #97caa5 calc((1 - var(--denial, 0)) * 100%), rgba(202,75,75,1)); font: 12px/1.7 var(--mono); white-space: pre-wrap; }
#ycmb .coderain-screen { position: absolute; inset: 0; z-index: 2; background: #000; }
#ycmb .coderain-screen canvas { width: 100%; height: 100%; display: block; }
#ycmb .coderain-screen button { position: absolute; right: 20px; bottom: 20px; background: color-mix(in srgb, #020604e6 calc((1 - var(--denial, 0)) * 100%), rgba(6,2,2,0.9019607843137255)); border: 1px solid color-mix(in srgb, #1c7a3c calc((1 - var(--denial, 0)) * 100%), rgba(122,14,14,1)); color: color-mix(in srgb, #3dff7a calc((1 - var(--denial, 0)) * 100%), rgba(255,30,30,1)); padding: 8px 12px; cursor: pointer; }
@keyframes ycmb-spinner { to { transform: rotate(360deg); } }

#ycmb .wb.coderain-running { overflow: hidden; }
#ycmb .coderain-running .term { visibility: hidden; }

.archive-page-toast.archive-indicator {
    top: 24px; bottom: auto; width: max-content; max-width: min(560px, calc(100% - 40px));
    box-sizing: border-box; padding: 16px 22px; border-radius: 12px;
    background: #e4e7f4f5; color: #35435e; border: 1px solid #ffffff80;
    box-shadow: 0 8px 32px #17233830; font: 14px/1.6 Arial, sans-serif;
    text-align: center; letter-spacing: .01em;
}
#ycmb .neofetch { display: flex; align-items: flex-start; gap: 18px; margin: 10px 0; }
#ycmb .neofetch-art { display: block; flex: none; width: 6.6em; height: 10em; margin: .3em 0 0; color: var(--ink); }
#ycmb .neofetch-stats { min-width: 0; white-space: pre-wrap; }
@media (max-width: 420px) {
    #ycmb .neofetch { flex-wrap: wrap; gap: 12px; }
}

#ycmb .wall-caption { display: block; text-align: center; white-space: nowrap; }

/* FX: static picture controls do not add per-frame drawing. */
#ycmb .crt::after {
    background:
        repeating-linear-gradient(to bottom, transparent 0 2px, rgb(0 0 0 / var(--fx-scanlines, .3)) 3px),
        radial-gradient(ellipse at center, transparent 55%, rgb(0 0 0 / var(--fx-vignette, .6)) 100%);
}
#ycmb .os {
    background:
        radial-gradient(ellipse at 70% 30%, rgba(var(--ink-rgb), calc(var(--fx-illumination, .25) * .32)), transparent 65%),
        linear-gradient(rgba(var(--ink-rgb), calc(var(--fx-grid, .2) * .25)) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(var(--ink-rgb), calc(var(--fx-grid, .2) * .25)) 1px, transparent 1px) 0 0 / 32px 32px,
        var(--bg);
}
#ycmb .screen-glass {
    box-shadow: inset 0 0 90px 24px rgb(0 0 0 / calc(var(--fx-glass, .65) * .85)), inset 0 0 2px 1px rgba(var(--ink-rgb), calc(var(--fx-glass, .65) * .35));
    background: radial-gradient(ellipse at 50% -25%, rgba(var(--ink-rgb), calc(var(--fx-reflection, .28) * .13)), transparent 65%);
}
#ycmb .screen-noise {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: var(--fx-noise, 0);
    pointer-events: none;
}
/* A rolling CRT refresh band: dim phosphor wake and a narrow bright edge.
   Neutral light modulates the picture without painting a green stripe over it. */
#ycmb .screen-glass::after {
    inset: auto 0 auto;
    top: -20%;
    height: 20%;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(var(--ink-rgb), .015) 35%,
        rgba(var(--ink-rgb), .045) 78%,
        rgba(var(--ink-rgb), .10) 96%,
        rgba(var(--ink-rgb), .16) 98%,
        transparent 100%);
    mix-blend-mode: screen;
    opacity: var(--fx-sweepStrength, .35);
    animation: fx-sweep-occasional 20s linear infinite;
}
#ycmb[data-sweep="off"] .screen-glass::after { display: none; }
#ycmb[data-sweep="continuous"] .screen-glass::after { animation: fx-sweep-continuous 7.4s linear infinite; }
@keyframes fx-sweep-occasional {
    0% { transform: translateY(0); }
    28%, 100% { transform: translateY(600%); }
}
@keyframes fx-sweep-continuous {
    from { transform: translateY(0); }
    to { transform: translateY(600%); }
}
#ycmb[data-drift="off"] .os::before { display: none; }
#ycmb .win { box-shadow: 0 14px 42px rgb(0 0 0 / calc(var(--fx-shadows, .65) * .85)); }
#ycmb .win.focus { box-shadow: 0 14px 42px rgb(0 0 0 / calc(var(--fx-shadows, .65) * .95)), 0 0 24px rgba(var(--ink-rgb), calc(var(--fx-glow, .35) * .45)); }
#ycmb .music-viz { opacity: var(--fx-vizStrength, .4); }
#ycmb .gate { backdrop-filter: none; -webkit-backdrop-filter: none; }
#ycmb[data-gate-blur="on"] .gate { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#ycmb .access { position: relative; }
#ycmb .access.show { animation: none; }
#ycmb .access.show::before { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: 0 0 18px rgba(var(--ink-rgb), .45); opacity: 0; }
#ycmb[data-gate-pulse="on"] .access.show::before { animation: fx-halo 1.8s ease-in-out infinite; }
@keyframes fx-halo { 50% { opacity: 1; } }
#ycmb .fx-power-line { position: absolute; z-index: 75; pointer-events: none; left: 5%; right: 5%; top: 50%; height: 2px; background: var(--ink); box-shadow: 0 0 16px var(--ink); animation: fx-power .38s ease-out both; }
@keyframes fx-power { 0% { transform: scaleX(.02); opacity: .8; } 50% { transform: scaleX(1); opacity: .5; } 100% { transform: scaleX(1); opacity: 0; } }
#ycmb[data-afterglow="on"] .terminal-output { animation: fx-afterglow .6s ease-out; }
@keyframes fx-afterglow { from { text-shadow: 0 0 7px rgba(var(--ink-rgb), .7); } to { text-shadow: 0 0 0 transparent; } }
#ycmb .activity-light { width: 5px; height: 5px; flex: 0 0 5px; background: var(--ink); opacity: .18; }
#ycmb[data-activity="off"] .activity-light { visibility: hidden; }
#ycmb.fx-sleep *, #ycmb.fx-sleep *::before, #ycmb.fx-sleep *::after { animation-play-state: paused !important; }
#ycmb.fx-still *, #ycmb.fx-still *::before, #ycmb.fx-still *::after { animation: none !important; transition: none !important; }
#ycmb.fx-still .screen-glass::after, #ycmb.fx-still .os::before, #ycmb.fx-still .fx-power-line { display: none; }

/* Sixth desktop app: keep the existing last-icon music cue unchanged. */
#ycmb .icon:nth-child(6) { top: 450px; animation-delay: .44s; }
@media (max-height: 690px) { #ycmb .icon:nth-child(6) { left: 100px; top: 180px; } }
@media (max-height: 560px) { #ycmb .icon:nth-child(6) { left: 100px; top: 180px; } }
@media (max-height: 390px) {
    #ycmb .icon:nth-child(3) { left: 100px; top: 0; }
    #ycmb .icon:nth-child(4) { left: 100px; top: 90px; }
    #ycmb .icon:nth-child(5) { left: 200px; top: 0; }
    #ycmb .icon:nth-child(6) { left: 200px; top: 90px; }
}

/* FX app */
#ycmb .fx-app { padding: 10px 12px; font-size: 11px; }
#ycmb .fx-toolbar, #ycmb .fx-presets { display: flex; align-items: center; gap: 6px; }
#ycmb .fx-toolbar { flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
#ycmb .fx-presets > span, #ycmb .fx-current { color: var(--ink-soft); }
#ycmb .fx-current { font-size: 10px; }
#ycmb .fx-presets button, #ycmb .fx-tabs button, #ycmb .fx-restore { border: 1px solid var(--ink-faint); padding: 3px 6px; background: none; font: inherit; cursor: pointer; }
#ycmb .fx-presets button[aria-pressed="true"] { border-color: var(--ink); }
#ycmb .fx-tabs { display: flex; gap: 6px; padding-bottom: 8px; border-bottom: 1px solid var(--ink-faint); }
#ycmb .fx-tabs button { color: var(--ink-soft); }
#ycmb .fx-tabs button[aria-selected="true"] { color: var(--bg); background: var(--ink); border-color: var(--ink); }
#ycmb .fx-panel[hidden] { display: none; }
#ycmb .fx-setting { display: grid; grid-template-columns: minmax(0, 1fr) 155px; align-items: center; gap: 12px; min-height: 28px; padding: 3px 0; }
#ycmb .fx-setting label { color: var(--ink); }
#ycmb .fx-setting-control { display: flex; gap: 8px; align-items: center; min-width: 0; }
#ycmb .fx-setting input[type="range"] { flex: 1; width: 110px; min-width: 0; margin: 0; accent-color: var(--ink); cursor: pointer; }
#ycmb .fx-setting output { width: 36px; text-align: right; font-size: 10px; font-variant-numeric: tabular-nums; }
#ycmb .fx-setting select { width: 100%; border: 1px solid var(--ink-faint); padding: 2px 4px; font: inherit; color: var(--ink); background: var(--panel-solid); }
#ycmb .fx-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--ink-faint); font-size: 10px; color: var(--ink-soft); }
#ycmb .fx-app button:hover { background-color: rgba(var(--ink-rgb), .09); }
#ycmb .fx-tabs button[aria-selected="true"]:hover { background: var(--ink); }
#ycmb .fx-app :is(button, input, select):focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
@media (max-width: 700px) {
    #ycmb .fx-setting { grid-template-columns: minmax(0, 1fr) 120px; gap: 8px; }
}

/* Preview content and captures join the same temporary denial tint. */
#ycmb.access-denied .pv-stage img, #ycmb.access-denied .fm-thumb img, #ycmb.access-denied .viewer img {
    filter: grayscale(var(--denial, 0)) sepia(var(--denial, 0)) saturate(calc(1 + 7 * var(--denial, 0))) hue-rotate(calc(-50deg * var(--denial, 0)));
}
