/* =====================================================================
   TenkJS · neon after-dark theme
   ===================================================================== */

:root {
    --bg: #05050a;
    --bg-2: #0b0b16;
    --glass: rgba(18, 18, 34, 0.62);
    --glass-strong: rgba(14, 14, 28, 0.86);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --text: #eeeeff;
    --muted: #9b99bd;
    --dim: #67658a;
    --pink: #ff2d75;
    --violet: #7a5cff;
    --cyan: #21f3c8;
    --amber: #ffb547;
    --grad: linear-gradient(110deg, var(--pink), var(--violet) 55%, var(--cyan));
    --panel-w: 360px;
    --top-h: 64px;
    --radius: 22px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }

code, kbd, pre { font-family: var(--mono); }

kbd {
    display: inline-block;
    min-width: 1.6em;
    padding: 1px 6px;
    margin: 0 2px;
    border-radius: 6px;
    border: 1px solid var(--line-2);
    border-bottom-width: 2px;
    font-size: .75em;
    text-align: center;
    color: var(--text);
}

h1:focus { outline: none; }

.grad-text {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tk-muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: var(--mono); letter-spacing: .04em; }

/* ---------- ambient background ---------- */

.tk-aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% -20%, rgba(122, 92, 255, .18), transparent 60%),
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 44px 44px,
        var(--bg);
}

.tk-aurora i {
    position: absolute;
    width: 46vmax;
    height: 46vmax;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .28;
    animation: drift 26s var(--ease) infinite alternate;
}

.tk-aurora i:nth-child(1) { background: var(--pink); left: -12vmax; top: 30%; }
.tk-aurora i:nth-child(2) { background: var(--violet); right: -10vmax; top: -10%; animation-duration: 32s; }
.tk-aurora i:nth-child(3) { background: var(--cyan); left: 35%; bottom: -30vmax; opacity: .16; animation-duration: 38s; }

@keyframes drift {
    to { transform: translate3d(6vmax, -4vmax, 0) scale(1.15); }
}

/* ---------- buttons & pills ---------- */

.tk-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: var(--grad);
    background-size: 160% 100%;
    color: #fff;
    font-weight: 700;
    letter-spacing: .01em;
    text-decoration: none !important;
    box-shadow: 0 6px 24px -6px rgba(255, 45, 117, .6);
    transition: transform .2s var(--ease), background-position .4s, box-shadow .2s;
    white-space: nowrap;
}

.tk-cta:hover { transform: translateY(-1px); background-position: 100% 0; box-shadow: 0 10px 30px -6px rgba(122, 92, 255, .7); }

.tk-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    font-weight: 600;
    text-decoration: none !important;
    transition: border-color .2s, background .2s;
    white-space: nowrap;
}

.tk-ghost:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .07); }

.tk-icon-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--glass);
    backdrop-filter: blur(12px);
    font-size: 16px;
}

.tk-chip-btn {
    border: 1px solid var(--line-2);
    background: transparent;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--muted);
}

.tk-chip-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }

.tk-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid var(--line-2);
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

.tk-pill.status-live { color: var(--cyan); border-color: rgba(33, 243, 200, .4); }
.tk-pill.status-pendingverification, .tk-pill.status-awaitingapproval { color: var(--amber); border-color: rgba(255, 181, 71, .4); }
.tk-pill.status-rejected, .tk-pill.status-unpublished { color: var(--pink); border-color: rgba(255, 45, 117, .4); }

.tk-dot-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--pink);
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
}

.tk-live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 0 0 rgba(255, 45, 117, .7);
    animation: livepulse 1.6s infinite;
    vertical-align: middle;
}

@keyframes livepulse {
    70% { box-shadow: 0 0 0 9px rgba(255, 45, 117, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 45, 117, 0); }
}

/* ---------- top bar ---------- */

.tk-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    height: var(--top-h);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 20px;
    pointer-events: none;
}

.tk-top > * { pointer-events: auto; }

.tk-top-solid {
    position: sticky;
    background: rgba(5, 5, 10, .72);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
}

.tk-logo {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -.04em;
    color: #fff;
    text-decoration: none !important;
    text-shadow: 0 0 24px rgba(122, 92, 255, .5);
}

.tk-logo b { color: var(--pink); font-weight: 700; }
.tk-logo i { color: var(--cyan); font-style: normal; }

.tk-modes {
    margin: 0 auto;
    display: flex;
    padding: 4px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.tk-modes button {
    border: 0;
    background: transparent;
    padding: 7px 16px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 600;
    transition: color .2s, background .2s;
}

.tk-modes button.on { color: #fff; background: rgba(255, 255, 255, .1); }

.tk-top-links { display: flex; gap: 4px; margin-left: 12px; }
.tk-top-links a { color: var(--muted); padding: 8px 12px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.tk-top-links a.active, .tk-top-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.tk-top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.tk-top .tk-modes + .tk-top-actions { margin-left: 0; }

/* ---------- feed app shell ---------- */

.tk-app {
    position: fixed;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 0;
}

.tk-app.panel-open { grid-template-columns: minmax(0, 1fr) var(--panel-w); }
.tk-app > .tk-top { right: 0; }
.tk-app.panel-open > .tk-top { right: var(--panel-w); }

.tk-stage {
    position: relative;
    overflow: hidden;
    height: 100vh;
    height: 100dvh;
    touch-action: none;
    user-select: none;
}

.tk-track {
    position: absolute;
    inset: 0;
    transition: transform .55s var(--ease);
    will-change: transform;
}

.tk-track.dragging, .tk-track.instant { transition: none; }

.tk-slide {
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: calc(var(--top-h) + 6px) 16px 104px;
    container-type: size;
}

/* ---------- the frame ---------- */

.tk-frame {
    --hue: 280;
    position: relative;
    flex: none;
    border-radius: var(--radius);
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, hsla(var(--hue), 90%, 60%, .35), transparent 55%),
        radial-gradient(circle at 80% 90%, hsla(calc(var(--hue) + 80), 90%, 55%, .3), transparent 55%),
        #08080f;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, .08),
        0 30px 80px -20px hsla(var(--hue), 90%, 50%, .45),
        0 0 120px -40px hsla(calc(var(--hue) + 80), 90%, 60%, .5);
    transform: scale(.9);
    opacity: .35;
    transition: transform .55s var(--ease), opacity .45s, box-shadow .4s;
}

.tk-slide.active .tk-frame { transform: none; opacity: 1; }

.tk-frame.portrait {
    aspect-ratio: 9 / 16;
    width: min(calc(100cqw - 120px), calc((100cqh - 170px) * 9 / 16));
}

.tk-frame.landscape {
    aspect-ratio: 16 / 9;
    width: min(calc(100cqw - 120px), calc((100cqh - 170px) * 16 / 9));
}

.tk-frame:fullscreen { border-radius: 0; width: 100vw; transform: none; }

.tk-frame-host, .tk-frame-host iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.tk-frame-host iframe { background: #05050a; opacity: 0; transition: opacity .4s; }
.tk-slide.running .tk-frame-host iframe { opacity: 1; }

.tk-poster {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    transition: opacity .4s;
}

.tk-slide.running .tk-poster { opacity: 0; pointer-events: none; }

.tk-poster-glow {
    position: absolute;
    inset: 20%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, hsla(var(--hue), 90%, 60%, .6), hsla(calc(var(--hue) + 120), 90%, 60%, .5), hsla(var(--hue), 90%, 60%, .6));
    filter: blur(50px);
    animation: spin 8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.tk-poster-play {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    font-size: 24px;
    padding-left: 6px;
}

.tk-poster-title {
    position: relative;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    padding: 0 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, .6);
}

.tk-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 60px 18px 16px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .78));
    pointer-events: none;
    transition: opacity .5s;
}

.tk-slide.running .tk-caption { animation: captionAway .6s 4.5s forwards; }
.tk-slide.running .tk-frame:hover .tk-caption { animation: none; opacity: 1; }

@keyframes captionAway { to { opacity: 0; } }

.tk-creator { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.tk-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 181, 71, .2);
    color: var(--amber);
}

.tk-title { margin: 4px 0 2px; font-size: 20px; line-height: 1.2; }
.tk-desc { margin: 0 0 8px; color: rgba(255, 255, 255, .78); font-size: 14px; line-height: 1.4; max-width: 60ch; }

.tk-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.tk-tag {
    pointer-events: auto;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 600;
    transition: background .2s, border-color .2s;
}

.tk-tag:hover { background: rgba(255, 255, 255, .14); }
.tk-tag.on { background: var(--grad); border-color: transparent; }
.tk-tag small { opacity: .6; margin-left: 2px; }

.tk-blocked {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    text-align: center;
    color: var(--pink);
    font-weight: 600;
    background: #0a0a12;
}

.tk-heart-burst {
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 120px;
    color: var(--pink);
    text-shadow: 0 0 40px rgba(255, 45, 117, .8);
    transform: translate(-50%, -50%) scale(.2);
    animation: heart .9s var(--ease) forwards;
    pointer-events: none;
}

@keyframes heart {
    40% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
    100% { transform: translate(-50%, -80%) scale(1); opacity: 0; }
}

/* looping from the last tenk back to the first (and vice versa) animates like a normal single step */
.tk-slide.wrap-in-next { animation: wrapInNext .55s var(--ease); }
.tk-slide.wrap-in-prev { animation: wrapInPrev .55s var(--ease); }
.tk-slide.wrap-out-next { animation: wrapOutNext .55s var(--ease) forwards; pointer-events: none; }
.tk-slide.wrap-out-prev { animation: wrapOutPrev .55s var(--ease) forwards; pointer-events: none; }
@keyframes wrapInNext { from { transform: translateY(100%); } }
@keyframes wrapInPrev { from { transform: translateY(-100%); } }
@keyframes wrapOutNext { to { transform: translateY(-100%); } }
@keyframes wrapOutPrev { to { transform: translateY(100%); } }

.tk-loop-pill {
    position: absolute;
    top: calc(var(--top-h) + 14px);
    left: 50%;
    z-index: 22;
    transform: translateX(-50%);
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    pointer-events: none;
    animation: loopPill 1.7s var(--ease) forwards;
}

@keyframes loopPill {
    0% { opacity: 0; transform: translate(-50%, -8px); }
    15%, 75% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -4px); }
}

.bump-end .tk-slide.active .tk-frame { animation: bumpUp .4s var(--ease); }
.bump-start .tk-slide.active .tk-frame { animation: bumpDown .4s var(--ease); }
@keyframes bumpUp { 40% { transform: translateY(-18px); } }
@keyframes bumpDown { 40% { transform: translateY(18px); } }

/* ---------- action rail ---------- */

.tk-rail {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: flex-end;
    margin-bottom: 8px;
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity .4s .15s, transform .4s .15s var(--ease);
}

.tk-slide.active .tk-rail { opacity: 1; transform: none; }

.tk-rail-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 0;
    background: none;
    padding: 0;
    color: var(--text);
}

.tk-rail-btn .ico {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(12px);
    font-size: 18px;
    font-family: var(--mono);
    transition: transform .2s var(--ease), background .2s, border-color .2s;
}

.tk-rail-btn:not(.static):hover .ico { transform: scale(1.08); border-color: rgba(255, 255, 255, .35); }
.tk-rail-btn .n { font-size: 11px; font-weight: 600; color: var(--muted); }
.tk-rail-btn.on .ico { color: var(--pink); background: rgba(255, 45, 117, .16); border-color: rgba(255, 45, 117, .5); font-size: 22px; }
.tk-rail-btn.on .ico { animation: pop .35s var(--ease); }
.tk-rail-btn.static { cursor: default; }
.tk-comments-toggle .ico { position: relative; }
.tk-comment-count { position: absolute; top: -5px; right: -7px; min-width: 20px; padding: 2px 5px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; line-height: 16px; }
.tk-comments-toggle[aria-expanded="true"] .ico { border-color: var(--pink); color: var(--pink); }

@keyframes pop { 50% { transform: scale(1.3); } }

/* ---------- bottom dock ---------- */

.tk-dock {
    position: absolute;
    left: 50%;
    bottom: 18px;
    z-index: 20;
    transform: translateX(-50%);
    width: min(760px, calc(100% - 32px));
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px);
    box-shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
}

.tk-dock-btn {
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .07);
    font-size: 14px;
    transition: background .2s, transform .2s;
}

.tk-dock-btn:hover { background: rgba(255, 255, 255, .16); transform: scale(1.05); }

.tk-dock-strip {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 6px 4px;
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}

.tk-dock-strip::-webkit-scrollbar { display: none; }

.tk-chip {
    --hue: 280;
    position: relative;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    border: 0;
    background: linear-gradient(135deg, hsl(var(--hue), 85%, 58%), hsl(calc(var(--hue) + 70), 85%, 45%));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    opacity: .55;
    transition: transform .3s var(--ease), opacity .2s, box-shadow .3s;
}

.tk-chip:hover { opacity: .9; transform: translateY(-2px); }

.tk-chip.active {
    opacity: 1;
    transform: scale(1.18);
    box-shadow: 0 0 0 2px #fff, 0 0 22px hsla(var(--hue), 90%, 60%, .9);
}

.tk-chip-o {
    position: absolute;
    right: 3px;
    bottom: 3px;
    border: 1.5px solid rgba(255, 255, 255, .85);
    border-radius: 2px;
}

.tk-chip-o.p { width: 6px; height: 9px; }
.tk-chip-o.l { width: 9px; height: 6px; }

.tk-dock-count {
    flex: none;
    min-width: 54px;
    text-align: center;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
}

.tk-hint {
    position: absolute;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    font-size: 12px;
    color: var(--dim);
    white-space: nowrap;
    pointer-events: none;
}

/* ---------- toasts ---------- */

.tk-toasts {
    position: absolute;
    top: calc(var(--top-h) + 8px);
    right: 18px;
    z-index: 25;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.tk-toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid transparent;
    background: linear-gradient(var(--glass-strong), var(--glass-strong)) padding-box, var(--grad) border-box;
    backdrop-filter: blur(14px);
    text-align: left;
    animation: toastIn .5s var(--ease);
    box-shadow: 0 16px 40px -12px rgba(122, 92, 255, .6);
}

.tk-toast-spark { font-size: 20px; color: var(--cyan); }
.tk-toast-body { display: flex; flex-direction: column; }
.tk-toast-body small { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.tk-toast-go { color: var(--cyan); font-weight: 700; font-size: 13px; }

@keyframes toastIn { from { opacity: 0; transform: translateX(30px) scale(.95); } }

/* ---------- empty / loading ---------- */

.tk-empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; }
.tk-empty[hidden] { display: none; }

.tk-empty-card {
    text-align: center;
    padding: 40px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
}

.tk-empty-glyph { font-size: 56px; color: var(--violet); }

.tk-loading {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.tk-loading span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--grad);
    animation: blink 1s infinite alternate;
}

.tk-loading span:nth-child(2) { animation-delay: .2s; }
.tk-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { from { opacity: .2; transform: scale(.7); } }

/* ---------- side panel ---------- */

.tk-panel {
    position: relative;
    z-index: 40;
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    background: rgba(8, 8, 18, .78);
    border-left: 1px solid var(--line);
    backdrop-filter: blur(18px);
    visibility: hidden;
    overflow: hidden;
}

.tk-app.panel-open .tk-panel { visibility: visible; }
.tk-panel-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    height: var(--top-h);
    padding: 0 10px;
    border-bottom: 1px solid var(--line);
}

.tk-panel-tabs > button:not(.tk-icon-btn) {
    border: 0;
    background: none;
    padding: 8px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tk-panel-tabs > button.on { color: #fff; background: rgba(255, 255, 255, .08); }
.tk-panel-close { display: inline-grid !important; margin-left: auto; flex-shrink: 0; }

.tk-panel-body { flex: 1; overflow-y: auto; padding: 16px 14px 24px; scrollbar-width: thin; }

.tk-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }

.tk-stat {
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--line);
}

.tk-stat strong { display: block; font-size: 24px; letter-spacing: -.02em; }
.tk-stat small { color: var(--muted); }

.tk-now {
    --hue: 280;
    position: relative;
    padding: 14px 16px;
    border-radius: 16px;
    margin-bottom: 18px;
    overflow: hidden;
    background: linear-gradient(135deg, hsla(var(--hue), 80%, 50%, .28), hsla(calc(var(--hue) + 70), 80%, 45%, .14));
    border: 1px solid hsla(var(--hue), 80%, 60%, .35);
}

.tk-now small { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.tk-now strong { display: block; font-size: 18px; margin: 2px 0; }
.tk-now span { font-size: 12px; color: rgba(255, 255, 255, .7); }

.tk-comments { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-comments li { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.tk-comments small { color: var(--muted); font-size: 11px; }
.tk-comments p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

.tk-panel-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 4px 10px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--muted);
}

.tk-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.tk-list li { border-radius: 14px; }
.tk-list li.is-new { animation: newItem 1.6s var(--ease); }
.tk-list li.is-current .tk-card { background: rgba(255, 255, 255, .07); box-shadow: inset 3px 0 0 var(--pink); }

@keyframes newItem {
    0% { transform: translateX(30px); opacity: 0; }
    30% { transform: none; opacity: 1; background: rgba(33, 243, 200, .18); }
}

.tk-card {
    --hue: 280;
    width: 100%;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    text-align: left;
    transition: background .2s;
}

.tk-card:hover { background: rgba(255, 255, 255, .05); }

.tk-card-thumb {
    display: grid;
    place-items: center;
    width: 44px;
    height: 56px;
    border-radius: 10px;
    background: linear-gradient(135deg, hsl(var(--hue), 85%, 58%), hsl(calc(var(--hue) + 70), 85%, 42%));
    font-weight: 700;
    font-size: 14px;
}

.tk-card-thumb.wide { height: 32px; margin: 12px 0; }
.tk-card-main { min-width: 0; display: flex; flex-direction: column; }
.tk-card-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-card-main small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.tk-card-meta { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.5; }

.tk-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    margin-bottom: 12px;
}

.tk-search:focus-within { border-color: rgba(122, 92, 255, .6); }
.tk-search span { color: var(--muted); font-size: 18px; }
.tk-search input { flex: 1; border: 0; background: none; outline: none; padding: 11px 0; color: var(--text); font: inherit; }

.tk-tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }

.tk-submit-card {
    display: block;
    padding: 18px;
    border-radius: 18px;
    color: var(--text);
    text-decoration: none !important;
    border: 1px solid transparent;
    background: linear-gradient(#0e0e1c, #0e0e1c) padding-box, var(--grad) border-box;
    transition: transform .2s var(--ease);
}

.tk-submit-card:hover { transform: translateY(-2px); }
.tk-submit-card strong { display: block; font-size: 17px; }
.tk-submit-card span { display: block; color: var(--muted); font-size: 13px; margin: 4px 0 10px; }
.tk-submit-card em { font-style: normal; font-weight: 700; color: var(--cyan); }

/* ---------- source modal ---------- */

.tk-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    animation: fade .2s;
}

@keyframes fade { from { opacity: 0; } }

.tk-modal {
    width: min(900px, 100%);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    background: #0c0c18;
    border: 1px solid var(--line-2);
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .9);
    animation: rise .3s var(--ease);
}

@keyframes rise { from { transform: translateY(20px) scale(.98); opacity: 0; } }

.tk-modal header { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tk-modal header div { flex: 1; }
.tk-modal header small { color: var(--muted); display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.tk-modal header strong { font-size: 18px; }

.tk-code {
    margin: 0;
    padding: 18px;
    overflow: auto;
    font-size: 13px;
    line-height: 1.55;
    color: #d6d4ff;
    white-space: pre;
    tab-size: 2;
}

/* =====================================================================
   Submit / update / verify pages
   ===================================================================== */

.sb { max-width: 1200px; margin: 0 auto; padding: 28px 20px 100px; }

.sb-hero { padding: 24px 0 28px; max-width: 760px; }
.sb-hero.narrow { max-width: 680px; margin: 0 auto; text-align: center; }

.sb-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pink);
}

.sb-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1.02;
    letter-spacing: -.035em;
    margin: 10px 0 14px;
}

.sb-hero p { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; }

.sb-progress { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; }

.sb-progress span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dim);
    transition: color .3s;
}

.sb-progress i {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--dim);
    transition: all .3s;
}

.sb-progress .done { color: var(--text); }
.sb-progress .done i { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

.sb-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 28px; align-items: start; }

.sb-step {
    position: relative;
    padding: 24px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.sb-step header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.sb-step h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }

.sb-num {
    font-family: var(--mono);
    font-weight: 600;
    font-size: 14px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* drop zone */

.dz {
    position: relative;
    min-height: 168px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 2px dashed rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .02);
    transition: border-color .25s, background .25s, box-shadow .25s;
    overflow: hidden;
}

.dz:hover { border-color: rgba(122, 92, 255, .6); background: rgba(122, 92, 255, .05); }

.dz.drag {
    border-style: solid;
    border-color: var(--cyan);
    background: rgba(33, 243, 200, .06);
    box-shadow: 0 0 0 6px rgba(33, 243, 200, .08), inset 0 0 60px rgba(33, 243, 200, .08);
}

.dz.has-file { border-style: solid; border-color: rgba(33, 243, 200, .45); min-height: 100px; }
.dz.bad { border-color: rgba(255, 45, 117, .6); }

.dz input[type=file] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.dz-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px; text-align: center; }
.dz-empty strong { font-size: 18px; }
.dz-empty span { color: var(--muted); font-size: 14px; }

.dz-glyph {
    font-family: var(--mono);
    font-size: 34px;
    font-weight: 600;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: float 3s ease-in-out infinite;
}

@keyframes float { 50% { transform: translateY(-6px); } }

.dz-file { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px 20px; }
.dz-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dz-meta strong { font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dz-meta span { color: var(--muted); font-size: 13px; }
.dz-replace { font-size: 13px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 5px 12px; }
.dz-error { color: var(--pink); margin: 10px 0 0; }

.dz-ring { width: 56px; height: 56px; transform: rotate(-90deg); flex: none; }
.dz-ring circle { fill: none; stroke-width: 5; }
.dz-ring .track { stroke: rgba(255, 255, 255, .08); }
.dz-ring .fill { stroke: var(--cyan); stroke-linecap: round; transition: stroke-dasharray .8s var(--ease); filter: drop-shadow(0 0 6px rgba(33, 243, 200, .6)); }
.dz-ring.near .fill { stroke: var(--amber); }
.dz-ring.over .fill { stroke: var(--pink); }

.sb-rules { margin-top: 14px; color: var(--muted); font-size: 14px; }
.sb-rules summary { cursor: pointer; color: var(--text); font-weight: 600; }
.sb-rules ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; }
.sb-rules code { color: var(--cyan); font-size: .9em; }

/* orientation picker */

.sb-orient { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.sb-orient button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 22px 16px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .02);
    transition: all .25s var(--ease);
}

.sb-orient button:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.sb-orient button.on {
    border-color: transparent;
    background: linear-gradient(#11111f, #11111f) padding-box, var(--grad) border-box;
    box-shadow: 0 12px 40px -12px rgba(122, 92, 255, .7);
}

.sb-orient small { color: var(--muted); font-size: 13px; text-align: center; }
.sb-orient.compact button { flex-direction: row; justify-content: center; padding: 14px; }

.sb-shape {
    display: block;
    border: 3px solid var(--muted);
    border-radius: 9px;
    transition: border-color .25s, box-shadow .25s;
    margin-bottom: 4px;
}

.sb-shape.portrait { width: 36px; height: 62px; }
.sb-shape.landscape { width: 74px; height: 42px; margin: 10px 0 14px; }
.sb-orient.compact .sb-shape { margin: 0; transform: scale(.6); }
.sb-orient button.on .sb-shape { border-color: var(--cyan); box-shadow: 0 0 18px rgba(33, 243, 200, .5), inset 0 0 14px rgba(33, 243, 200, .3); }

/* libraries */

.sb-step header em { margin-left: auto; color: var(--dim); font-style: normal; font-size: 13px; }
.sb-libs-intro { margin: -6px 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.sb-libs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }

.sb-lib {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 16px 14px 44px;
    border-radius: 16px;
    border: 1px solid var(--line-2);
    background: rgba(255, 255, 255, .02);
    color: var(--text);
    text-align: left;
    transition: all .25s var(--ease);
}

.sb-lib:hover { border-color: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.sb-lib.on {
    border-color: transparent;
    background: linear-gradient(#11111f, #11111f) padding-box, var(--grad) border-box;
    box-shadow: 0 12px 40px -12px rgba(122, 92, 255, .7);
}

.sb-lib::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 16px;
    width: 16px;
    height: 16px;
    border-radius: 5px;
    border: 2px solid var(--muted);
    transition: all .2s;
}

.sb-lib.on::before { border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 12px rgba(33, 243, 200, .6); }
.sb-lib.on::after { content: "✓"; position: absolute; left: 19px; top: 13px; color: #05050a; font-weight: 800; font-size: 13px; }
.sb-lib strong { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sb-lib strong i { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.sb-lib small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.sb-lib code { color: var(--cyan); font-size: 12px; font-family: var(--mono); word-break: break-word; }
.sb-lib .sb-sound { padding: 2px 8px; border-radius: 999px; background: rgba(255, 181, 71, .14); color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.sb-lib-hint { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(33, 243, 200, .07); color: var(--cyan); font-size: 13px; }
.sb-lib-hint button { background: none; border: 0; padding: 0; margin-left: 6px; color: var(--text); text-decoration: underline; font-weight: 600; }

/* fields */

.fld { display: block; margin-bottom: 16px; }

.fld > span {
    display: flex;
    justify-content: space-between;
    margin-bottom: 7px;
    font-weight: 600;
    font-size: 14px;
}

.fld > span em { font-style: normal; color: var(--dim); font-weight: 500; font-size: 12px; }

.fld input, .fld textarea, .up-find input {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    resize: vertical;
}

.fld input:focus, .fld textarea:focus, .up-find input:focus, .tag-input:focus-within, .fld-prefix:focus-within {
    border-color: rgba(122, 92, 255, .8);
    box-shadow: 0 0 0 4px rgba(122, 92, 255, .18);
}

.fld input.mono { font-family: var(--mono); letter-spacing: .06em; }

.fld-prefix {
    display: flex;
    align-items: center;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, .3);
    padding-left: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.fld-prefix b { color: var(--muted); }
.fld-prefix input { border: 0 !important; box-shadow: none !important; background: none; padding-left: 4px; }

.tag-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 50px;
    padding: 7px 10px;
    border-radius: 14px;
    border: 1px solid var(--line-2);
    background: rgba(0, 0, 0, .3);
    transition: border-color .2s, box-shadow .2s;
}

.tag-input input { flex: 1; min-width: 140px; border: 0 !important; box-shadow: none !important; background: none; padding: 6px 4px; }

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 6px 5px 11px;
    border-radius: 999px;
    background: var(--grad);
    font-size: 13px;
    font-weight: 700;
    animation: pop .3s var(--ease);
}

.tag-chip button {
    border: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .25);
    font-size: 10px;
    padding: 0;
}

.tag-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

.tag-suggest button {
    border: 1px dashed var(--line-2);
    background: none;
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
}

.tag-suggest button:hover:not(:disabled) { color: var(--text); border-style: solid; }

.sb-agree {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin: 18px 0;
    padding: 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    cursor: pointer;
    font-size: 14px;
    line-height: 1.45;
    color: var(--muted);
}

.sb-agree input { width: 20px; height: 20px; accent-color: var(--pink); flex: none; margin-top: 1px; }

.sb-submit {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    border: 0;
    border-radius: 18px;
    background: var(--grad);
    background-size: 200% 100%;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
    overflow: hidden;
    box-shadow: 0 18px 50px -14px rgba(255, 45, 117, .7);
    transition: transform .2s var(--ease), filter .3s, opacity .3s, background-position .6s;
    margin-top: 6px;
}

.sb-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: shine 3s infinite;
}

@keyframes shine { 60%, 100% { transform: translateX(100%); } }

.sb-submit:hover:not(:disabled) { transform: translateY(-2px); background-position: 100% 0; }
.sb-submit i { font-style: normal; transition: transform .2s; }
.sb-submit:hover:not(:disabled) i { transform: translateX(4px); }
.sb-submit:disabled { filter: grayscale(.9); opacity: .4; box-shadow: none; }
.sb-submit:disabled::after { display: none; }

.sb-error {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 45, 117, .12);
    border: 1px solid rgba(255, 45, 117, .4);
    color: #ffc4d6;
}

.sb-missing { text-align: center; color: var(--dim); font-size: 13px; margin: 10px 0 0; }

.sb-side .sb-sticky { position: sticky; top: calc(var(--top-h) + 20px); }
.sb-side-h { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 22px 0 10px; }

/* preview device */

.pv-device {
    position: relative;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    background: #07070e;
    border: 1px solid transparent;
    background: linear-gradient(#07070e, #07070e) padding-box, var(--grad) border-box;
    box-shadow: 0 30px 70px -24px rgba(122, 92, 255, .6);
}

.pv.portrait .pv-device { width: 250px; aspect-ratio: 9 / 16; }
.pv.landscape .pv-device { width: 100%; aspect-ratio: 16 / 9; }

.pv-device iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 23px; }

.pv-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--muted);
    text-align: center;
    padding: 20px;
}

.pv-placeholder span { font-size: 40px; opacity: .6; }

.pv-bar { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--muted); }
.pv-live { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); }
.pv-live.on { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

/* validation checklist */

.vc-checks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.vc-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    transition: all .3s;
}

.vc-ico {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    font-size: 12px;
    font-weight: 700;
}

.vc-check.pass { color: var(--text); border-color: rgba(33, 243, 200, .3); }
.vc-check.pass .vc-ico { background: var(--cyan); color: #04211b; animation: pop .4s var(--ease); }
.vc-check.warn { color: var(--text); border-color: rgba(255, 181, 71, .35); }
.vc-check.warn .vc-ico { background: var(--amber); color: #2b1a00; animation: pop .4s var(--ease); }
.vc-check.fail { color: var(--text); border-color: rgba(255, 45, 117, .5); background: rgba(255, 45, 117, .07); }
.vc-check.fail .vc-ico { background: var(--pink); color: #fff; animation: pop .4s var(--ease); }
.vc-check.busy .vc-ico { animation: blink .6s infinite alternate; }

.vc-issues { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.vc-issues li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.4;
    background: rgba(255, 255, 255, .03);
}

.vc-issues li.err { background: rgba(255, 45, 117, .08); }
.vc-issues li.warn { background: rgba(255, 181, 71, .07); }
.vc-issues em { font-style: normal; color: var(--dim); font-family: var(--mono); font-size: 11px; margin-left: 4px; }

.vc-tag {
    flex: none;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 2px 7px;
    border-radius: 6px;
}

.err .vc-tag { background: var(--pink); }
.warn .vc-tag { background: var(--amber); color: #2b1a00; }

/* done / verify */

.sb-done {
    position: relative;
    max-width: 640px;
    margin: 6vh auto 0;
    text-align: center;
    padding: 48px 32px;
    border-radius: 28px;
    background: var(--glass);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
    overflow: hidden;
}

.sb-done h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; margin: 22px 0 10px; }
.sb-done > p { color: var(--muted); font-size: 17px; line-height: 1.5; }

.sb-done-orb {
    width: 110px;
    height: 110px;
    margin: 0 auto;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grad);
    box-shadow: 0 0 0 10px rgba(122, 92, 255, .12), 0 20px 60px -10px rgba(255, 45, 117, .7);
    animation: orb .7s var(--ease);
    font-size: 44px;
    font-weight: 700;
}

.sb-done-orb.pulse { animation: orb .7s var(--ease), glowPulse 2s 1s infinite; }
.sb-done-orb.bad { background: linear-gradient(135deg, #3a3a55, #20202f); box-shadow: none; }

@keyframes orb { from { transform: scale(0) rotate(-90deg); } }
@keyframes glowPulse { 50% { box-shadow: 0 0 0 22px rgba(122, 92, 255, .05), 0 20px 70px -10px rgba(255, 45, 117, .9); } }

.sb-done-steps { text-align: left; list-style: none; padding: 0; margin: 26px 0; display: flex; flex-direction: column; gap: 10px; }

.sb-done-steps li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    line-height: 1.45;
}

.sb-done-steps li span {
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .08);
    color: var(--text);
    font-weight: 700;
    font-size: 13px;
}

.sb-done-steps strong, .sb-done-steps em { color: var(--text); font-style: normal; }

.sb-done-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.sb-done-actions .sb-submit { width: auto; padding: 16px 32px; }

.confetti { position: absolute; inset: 0; pointer-events: none; }

.confetti i {
    position: absolute;
    top: -10px;
    left: calc(var(--i) * 4.2%);
    width: 8px;
    height: 14px;
    border-radius: 2px;
    background: hsl(calc(var(--i) * 37), 90%, 60%);
    animation: confetti 2.8s calc(var(--i) * 70ms) var(--ease) forwards;
}

@keyframes confetti {
    to { transform: translateY(110vh) rotate(calc(var(--i) * 140deg)); opacity: 0; }
}

.up-find { display: flex; gap: 10px; margin-top: 24px; }
.up-find .tk-cta { flex: none; }

/* =====================================================================
   Responsive
   ===================================================================== */

@media (max-width: 1100px) {
    .tk-app, .tk-app.panel-open { grid-template-columns: 1fr; }
    .tk-app > .tk-top, .tk-app.panel-open > .tk-top { right: 0; }

    .tk-panel {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(var(--panel-w), 92vw);
        transform: translateX(105%);
        transition: transform .4s var(--ease);
        box-shadow: -30px 0 80px rgba(0, 0, 0, .6);
    }

    .tk-app.panel-open .tk-panel { transform: none; }
    .tk-panel-close { display: inline-grid !important; }
}

@media (max-width: 960px) {
    .sb-grid { grid-template-columns: 1fr; }
    .sb-side { order: -1; }
    .sb-side .sb-sticky { position: static; }
}

@media (max-width: 700px) {
    :root { --top-h: 56px; }

    .hide-sm { display: none !important; }
    .tk-top { padding: 0 12px; gap: 8px; }
    .tk-logo { font-size: 20px; }
    .tk-modes button { padding: 6px 10px; font-size: 14px; }
    .tk-cta { padding: 9px 14px; }
    .tk-top-links { display: none; }

    .tk-slide { padding: var(--top-h) 0 84px; }
    .tk-frame { border-radius: 16px; }
    .tk-frame.portrait { width: min(calc(100cqw - 16px), calc((100cqh - 100px) * 9 / 16)); }
    .tk-frame.landscape { width: calc(100cqw - 16px); }

    .tk-rail { position: absolute; right: 12px; bottom: 120px; z-index: 5; gap: 10px; }
    .tk-rail-btn .ico { width: 42px; height: 42px; font-size: 16px; }
    .tk-caption { padding-right: 70px; }

    .tk-dock { bottom: 10px; padding: 6px; }
    .tk-dock-btn { width: 36px; height: 36px; }
    .tk-dock-count { display: none; }
    .tk-toasts { right: 10px; left: 10px; align-items: stretch; }

    .sb-orient { grid-template-columns: 1fr; }
    .vc-checks { grid-template-columns: 1fr; }
    .up-find { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Blazor validation (unused but harmless) */
.blazor-error-boundary { background: #b32121; padding: 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

/* "Share on X" rail button: the 𝕏 glyph reads a little small next to the other icons */
.tk-rail-btn .ico.x { font-family: system-ui, sans-serif; font-size: 20px; font-weight: 700; }

/* =====================================================================
   Site menu (top right)
   ===================================================================== */

.tk-menu { position: relative; }
.tk-menu > summary { list-style: none; cursor: pointer; font-size: 20px; line-height: 1; user-select: none; }
.tk-menu > summary::-webkit-details-marker { display: none; }
.tk-menu > summary:hover, .tk-menu[open] > summary { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.tk-menu > summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.tk-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: min(320px, calc(100vw - 24px));
    padding: 10px;
    border-radius: 18px;
    border: 1px solid var(--line-2);
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7);
    animation: menuin .18s var(--ease);
}

@keyframes menuin { from { opacity: 0; transform: translateY(-6px); } }

.tk-menu-tag {
    margin: 4px 10px 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pink);
}

.tk-menu-panel > a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
}

.tk-menu-panel > a:hover, .tk-menu-panel > a:focus-visible { background: rgba(255, 255, 255, .07); text-decoration: none; outline: none; }
.tk-menu-panel > a small { color: var(--muted); font-size: 13px; }
.tk-menu-foot { margin-top: 8px; padding: 10px 2px 2px; border-top: 1px solid var(--line); }
.tk-menu-foot .tk-cta { width: 100%; justify-content: center; }

/* =====================================================================
   Info pages (about, policies, guides)
   ===================================================================== */

.info-updated { margin-top: 14px !important; font-size: 14px !important; }

.info { max-width: 760px; font-size: 17px; line-height: 1.7; color: #d6d5ee; }
.info h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--text); }
.info h2:first-child { margin-top: 0; }
.info p { margin: 0 0 16px; }
.info ul { margin: 0 0 16px; padding-left: 22px; }
.info li { margin: 6px 0; }
.info li::marker { color: var(--pink); }
.info strong { color: var(--text); }
.info code { font-size: .88em; padding: 1px 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: var(--cyan); }

.info pre {
    margin: 0 0 18px;
    padding: 16px 18px;
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-2);
    font-size: 14px;
    line-height: 1.55;
}

.info pre code { padding: 0; background: none; color: var(--text); font-size: inherit; }

.info-more { max-width: 760px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); }
.info-more h2 { margin: 0 0 14px; font-size: 20px; }
.info-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }

.info-more-grid a {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--glass);
    color: var(--text);
    text-decoration: none;
    transition: border-color .2s, background .2s;
}

.info-more-grid a:hover { border-color: var(--line-2); background: rgba(255, 255, 255, .05); text-decoration: none; }
.info-more-grid small { color: var(--muted); font-size: 13px; }
.info-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

@media (max-width: 700px) {
    .info { font-size: 16px; }
    .info h2 { font-size: 22px; margin-top: 32px; }
    .tk-top .tk-icon-btn { width: 36px; height: 36px; }
}

/* Narrow phones: the feed header carries logo, modes, Submit, panel toggle and menu, so Submit shrinks to its "+". */
@media (max-width: 430px) {
    .tk-top .tk-top-actions { gap: 6px; }
    .tk-top .tk-cta-label { display: none; }
    .tk-top .tk-cta { padding: 9px 13px; }
    .tk-modes button { padding: 6px 8px; }
}

/* Tagline under the logo, styled like the menu's heading */
.tk-logo { display: inline-flex; flex-direction: column; line-height: 1; }
.tk-logo-tag {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--pink);
    text-shadow: none;
    white-space: nowrap;
}

/* Below this the feed header (logo, modes, Submit, panel toggle, menu) runs out of room */
@media (max-width: 600px) {
    .tk-logo-tag { display: none; }
}

/* Master volume for tenks that make sound (ZzFX). Shown only while such a tenk is on screen. */
.tk-volume {
    position: absolute;
    top: calc(var(--top-h) + 12px);
    left: 16px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: var(--glass-strong);
    border: 1px solid var(--line-2);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px -16px rgba(0, 0, 0, .8);
    animation: tk-vol-in .3s var(--ease);
}
.tk-volume[hidden] { display: none; }
.tk-vol-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
}
.tk-vol-btn:hover { background: rgba(255, 255, 255, .12); }
.tk-vol-range {
    -webkit-appearance: none;
    appearance: none;
    width: 110px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--pink) var(--vol, 60%), rgba(255, 255, 255, .18) var(--vol, 60%));
    cursor: pointer;
    touch-action: pan-x;
}
.tk-vol-range::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 45, 117, .35); }
.tk-vol-range::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255, 45, 117, .35); }
@keyframes tk-vol-in { from { opacity: 0; transform: translateY(-6px); } }
@media (max-width: 700px) { .tk-vol-range { width: 84px; } }

.guide-card { padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.guide-body { overflow-wrap: anywhere; }
.guide-body pre { overflow-x: auto; padding: 1rem; background: #08080f; border-radius: 10px; }
.guide-body img { max-width: 100%; height: auto; }

/* /3d: the three.js feed. Same player and panel; a badge beside the logo says which feed you're in. */
.tk-3d-badge {
    margin-left: -8px;
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--grad);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    box-shadow: 0 0 18px rgba(122, 92, 255, .45);
}
.tk-app-3d .tk-logo-tag { color: var(--cyan); }
