.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: clamp(8px, 2vh, 18px);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  padding: clamp(12px, 2.4vh, 22px) 14px clamp(10px, 1.8vh, 16px);
  background: #07070a;
  border-right: 1px solid var(--border);
}
.sidebar::-webkit-scrollbar { display: none; }
.side-logo { padding: 0 8px 4px; }
.sidebar svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-label { padding: clamp(6px, 1.6vh, 14px) 12px clamp(3px, 0.6vh, 6px); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #4f4f5e; }
.side-label:first-child { padding-top: 4px; }
.side-nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: clamp(5px, 1vh, 9px) 12px; border-radius: 9px;
  color: #8d8d9e; font-size: 0.9rem; font-weight: 500; transition: background 0.15s, color 0.15s;
}
.side-nav a svg { opacity: 0.75; transition: opacity 0.15s, color 0.15s; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.03); color: #e2e2ea; }
.side-nav a:hover svg { opacity: 1; }
.side-nav a.active { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side-nav a.active svg { opacity: 1; color: var(--accent); }
.side-nav a.active::before {
  content: ''; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--accent);
}
.side-nav a.admin-link { margin-top: 6px; color: #d98a9b; }
.side-nav a.admin-link:hover { background: rgba(255, 92, 122, 0.07); color: #ffb3c1; }

.side-cta svg { width: 15px; height: 15px; }
.side-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.side-discord:hover { background: #4752c4; border-color: #4752c4; color: #fff; }
.side-discord svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.side-discord[hidden] { display: none; }
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border);
}
.su-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  background: #15151c center / cover; font-weight: 700; font-size: 0.9rem; color: var(--accent);
  box-shadow: 0 0 0 1px var(--border);
}
.su-text { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.su-text b { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-text span { font-size: 0.74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-btn {
  width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px;
  border: none; background: none; color: var(--muted); cursor: pointer; transition: background 0.15s, color 0.15s;
}
.su-btn svg { width: 15px; height: 15px; }
.su-btn:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.su-btn.danger:hover { background: rgba(255, 92, 122, 0.1); color: var(--danger); }
.ban-notice { border-color: rgba(255, 92, 122, 0.5); background: rgba(255, 92, 122, 0.08); color: #ffc2cd; margin-bottom: 16px; }
.ban-notice .ic { margin-right: 4px; color: var(--danger); }
.tpl-featured { position: absolute; top: 8px; left: 8px; z-index: 2; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: #f5b83d; color: #1a1000; }
.card-head-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head-row h3 { margin: 0; }
.security-card p { margin-bottom: 10px; }
.sec-pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 0.75rem; font-weight: 700; border: 1px solid var(--border); }
.sec-pill.on { color: var(--ok); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.sec-pill.off { color: var(--danger); border-color: rgba(255, 92, 122, 0.35); background: rgba(255, 92, 122, 0.08); }
.warn-text { color: var(--danger); }
.session-list { display: flex; flex-direction: column; }
.session-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.session-row:last-child { border-bottom: none; }
.code-input { font-family: 'JetBrains Mono', monospace; letter-spacing: 0.15em; }
.code-input.big { text-align: center; font-size: 1.4rem; letter-spacing: 0.4em; }
.sec-form { display: flex; flex-direction: column; gap: 12px; }
.sec-form .input { margin-top: 6px; }
.error-line { color: var(--danger); font-size: 0.85rem; }
.qr-wrap { align-self: center; padding: 10px; border-radius: 12px; background: #fff; line-height: 0; }
.qr-wrap svg { width: 200px; height: 200px; }
.secret-key { display: block; margin-top: 8px; padding: 8px 10px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border); letter-spacing: 0.08em; user-select: all; word-break: break-all; }
.backup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.backup-grid code { padding: 8px; border-radius: 8px; text-align: center; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.95rem; user-select: all; }
.side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }

.dash-main { padding: 30px clamp(16px, 3vw, 40px); max-width: 1680px; width: 100%; min-width: 0; }
.dash-main section { display: none; flex-direction: column; gap: 16px; animation: fadeIn 0.25s ease; }
.dash-main section.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } }
.page-title { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 4px; }

.overview-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ov { position: relative; display: flex; flex-direction: column; gap: 2px; }
.ov .label { font-weight: 600; color: var(--text); }
.ov strong { margin-top: 6px; }
.ov-icon { position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.ov-heading { font-size: 1.05rem; font-weight: 600; margin: 28px 0 12px; letter-spacing: -0.01em; }
.ov-layout { display: grid; grid-template-columns: 1fr 300px; gap: 14px; align-items: start; }
.ov-main { display: flex; flex-direction: column; gap: 14px; }
.ov-main h3 { margin-bottom: 12px; }
.ov-progress-row { display: flex; align-items: center; gap: 12px; }
.ov-progress-row .progress { flex: 1; height: 12px; }
.ov-progress-row span { white-space: nowrap; }
.ov-status { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.ov-status i { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 800; color: #1a1300; background: #fbbf24; }
.ov-status.done i { color: #06210f; background: var(--ok); }
.ov-status strong { display: block; margin-bottom: 2px; }
.ov-checks { display: flex; flex-flow: row wrap; gap: 8px; }
.ov-checks .check { flex: 1 1 auto; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); }
.ov-checks .check.done span { text-decoration: none; color: var(--text); }

.ai-check-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.ai-check-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.ai-check-head h3 .ic { color: var(--accent); }
.ai-check-head p { margin: 0; }
.share-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.share-card-head h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; }
.share-card-head h3 .ic { color: var(--accent); }
.share-card-head p { margin: 0; max-width: 460px; }
.share-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; margin-top: 16px; align-items: start; }
.share-card-controls { display: flex; flex-direction: column; gap: 8px; }
.share-card-controls .label { margin-top: 6px; }
.share-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.share-chips button {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; border-radius: 10px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1)); background: rgba(255, 255, 255, 0.03); color: inherit; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.share-chips button small { font-size: 0.7rem; font-weight: 500; opacity: 0.6; }
.share-chips button:hover:not(:disabled) { border-color: var(--accent); }
.share-chips button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); }
.share-chips button:disabled { opacity: 0.4; cursor: not-allowed; }
.share-colors { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.share-colors label { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; cursor: pointer; }
.share-colors label[hidden] { display: none; }
.share-colors input[type="color"] { width: 34px; height: 34px; padding: 0; border: 1px solid var(--line, rgba(255, 255, 255, 0.15)); border-radius: 10px; background: none; cursor: pointer; }
.share-card-preview { display: flex; justify-content: center; }
.share-card-preview img { width: 100%; max-height: 520px; object-fit: contain; border-radius: 14px; }
.share-card-preview img:not([src]) { visibility: hidden; }
@media (max-width: 760px) { .share-card-body { grid-template-columns: 1fr; } }
#aiCheckResult { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.ai-score { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; gap: 2px 6px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.ai-score b { font-size: 2rem; line-height: 1; }
.ai-score small { color: var(--muted); }
.ai-score p { margin: 0 0 0 10px; align-self: center; }
.ai-score.good b { color: var(--ok); }
.ai-score.ok b { color: #fbbf24; }
.ai-score.low b { color: var(--danger); }
.ai-good { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-good span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 0.85rem; }
.ai-good .ic { color: var(--ok); }
.ai-tips { display: flex; flex-direction: column; gap: 8px; margin: 0; padding-left: 20px; }
.ai-tips li { padding-left: 4px; }
.ai-tips b { display: block; }
@media (max-width: 600px) { .ai-score { grid-template-columns: auto 1fr; } .ai-score p { grid-column: 1 / -1; margin: 6px 0 0; } }

.ov-side { display: flex; flex-direction: column; gap: 8px; }
.ov-side h3 { margin-top: 14px; }
.ov-side h3:first-child { margin-top: 0; }
.ov-side > p { margin: -4px 0 4px; }
.ov-actions { display: flex; flex-direction: column; gap: 8px; }
.ov-actions a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.ov-actions a:hover { background: var(--accent-soft); border-color: rgba(155, 140, 255, 0.35); }
.ov-side svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ov-side svg.fill { fill: currentColor; stroke: none; }
.ov-linkbox, .ov-conn { display: flex; align-items: center; gap: 6px; }
.ov-linkbox code { flex: 1; min-width: 0; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--accent); font-size: 0.82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-mini { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: color 0.15s, background 0.15s; }
.ov-mini:hover { color: var(--text); background: var(--accent-soft); }
.ov-conn-name { flex: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.88rem; font-weight: 600; color: var(--muted); }
.ov-conn.on .ov-conn-name { color: var(--text); }
.ov-conn.on .ov-conn-name svg { color: #5865f2; }
.ov-early { margin-top: 6px; align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; font-size: 0.74rem; font-weight: 600; color: #cfc7ff; background: var(--accent-soft); border: 1px solid rgba(155, 140, 255, 0.25); }
.ov-early:empty { display: none; }
.ov strong { font-size: 1.25rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.overview-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; }

.chart { min-width: 0; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.page-link-box { display: flex; flex-direction: column; gap: 12px; }
.page-link-box code { padding: 12px 14px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.95rem; color: var(--accent); overflow-wrap: anywhere; }
.cz-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.cz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cz-layout.cz-pc { grid-template-columns: minmax(0, 1fr) minmax(380px, 46%); }
.cz-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cz-bar {
  position: sticky; top: 12px; z-index: 5; display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 16px;
  background: color-mix(in srgb, var(--card) 92%, transparent); border: 1px solid var(--border); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, 0.7);
}
.cz-find { display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 11px; background: var(--bg-2); border: 1px solid var(--border); cursor: text; transition: border-color 0.15s; }
.cz-find:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.cz-find .ic, .cz-find svg { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.cz-find input { flex: 1; min-width: 0; padding: 10px 0; background: none; border: 0; outline: 0; font-size: 0.9rem; }
.cz-find input::-webkit-search-cancel-button { filter: invert(0.6); cursor: pointer; }
.cz-find-count { font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.cz-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cz-searching .cz-tabs button.active { background: none; box-shadow: none; color: var(--muted); }
.cz-searching .cz-pane { display: flex; }
.cz-searching .cz-pane.cz-empty { display: none; }
.cz-searching .cz-pane::before { content: attr(data-label); margin: 6px 2px -6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.cz-pane > .cz-miss { display: none !important; }
.cz-hit { animation: czHit 1.2s ease; }
@keyframes czHit { 0%, 40% { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 0 3px var(--accent-soft); } }
.cz-none { padding: 30px 10px; text-align: center; }
.cz-tabs button { flex: 1; min-width: max-content; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 14px; border-radius: 9px; border: none; background: none; color: var(--muted); font-weight: 600; font-size: 0.88rem; cursor: pointer; transition: background 0.15s, color 0.15s; }
.cz-tabs button:hover { color: #fff; }
.cz-tabs button.active { background: var(--accent-soft); color: #fff; box-shadow: inset 0 -2px 0 var(--accent); }
.cz-pane { display: none; flex-direction: column; gap: 16px; animation: fadeIn 0.2s ease; }
.cz-pane.active { display: flex; }
.cz-note { margin-top: 10px; }
.alias-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.alias-list:empty { display: none; }
.alias-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; border: 1px solid var(--line, rgba(255,255,255,.12)); background: rgba(255,255,255,.04); font-weight: 600; font-size: 13px; }
.alias-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: inherit; cursor: pointer; font-size: 11px; line-height: 1; }
.alias-chip button:hover { background: rgba(255,80,80,.25); }
.alias-chip .alias-main { width: auto; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.alias-chip .alias-main:hover { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.cz-device { display: inline-flex; padding: 2px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--border); }
.cz-device button { border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.cz-device button.on { background: var(--accent); color: #0b0b12; }
.cz-frame-wrap { position: relative; }
.cz-frame-wrap iframe { position: absolute; top: 0; left: 0; transform-origin: top left; }
#aliasForm { margin-top: 12px; }
.cz-gap { margin-top: 12px; }
.cz-select { max-width: 320px; }
.span-3 { grid-column: 1 / -1; }

.opt-list { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.opt:last-child { border-bottom: none; }
.opt > span { display: flex; flex-direction: column; gap: 2px; }
.opt b { font-weight: 600; font-size: 0.92rem; }
.opt small { color: var(--muted); font-size: 0.8rem; }
.opt input { appearance: none; width: 40px; height: 23px; border-radius: 99px; background: #1f1f29; position: relative; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.opt input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.opt input:checked { background: var(--accent); }
.opt input:checked::after { transform: translateX(17px); }
.opt-list .field { padding: 6px 0 10px; }

.cz-avatar-row, .cz-media-row { display: flex; gap: 20px; align-items: center; }
.deco-pick { margin-top: 14px; border-top: 1px solid var(--border); }
.deco-pick summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 4px; cursor: pointer; list-style: none; }
.deco-pick summary::-webkit-details-marker { display: none; }
.deco-pick summary > span:first-child { display: flex; flex-direction: column; gap: 2px; }
.deco-pick summary b { font-weight: 600; font-size: 0.92rem; }
.deco-pick summary small { color: var(--muted); font-size: 0.8rem; }
.deco-pick summary::after { content: 'Choose'; font-size: 0.8rem; color: var(--muted); padding: 5px 12px; border: 1px solid var(--border); border-radius: 8px; }
.deco-pick[open] summary::after { content: 'Close'; }
.deco-current { margin-left: auto; width: 44px; height: 44px; }
.deco-current img { width: 100%; height: 100%; }
.deco-groups { max-height: 360px; overflow-y: auto; padding: 4px 2px 8px; }
.deco-groups h4 { margin: 12px 0 6px; font-size: 0.78rem; font-weight: 600; color: var(--muted); }
.deco-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; }
.deco-opt { aspect-ratio: 1; padding: 6px; border-radius: 12px; background: #15151c; border: 1px solid var(--border); cursor: pointer; display: grid; place-items: center; }
.deco-opt img { width: 100%; height: 100%; object-fit: contain; }
.deco-opt:hover { border-color: rgba(255, 255, 255, 0.25); }
.deco-opt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
#dBadgePick { margin-top: 10px; }
#dBadgePick .hint { margin: 10px 0 0; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.dbadge-current { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; max-width: 50%; }
.dbadge-current img { width: 22px; height: 22px; }
.dbadge-grid { grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); }
.dbadge-opt { padding: 12px; }
.deco-none { aspect-ratio: auto; width: 100%; padding: 8px; color: var(--muted); font-size: 0.82rem; }
.cz-media-row .asset { width: 240px; flex-shrink: 0; }
.asset-round { width: 120px; flex-shrink: 0; }
.asset-round .asset-box { aspect-ratio: 1; border-radius: 50%; }
.asset-small { width: 90px; flex-shrink: 0; }
.cz-media-row .asset-small { width: 90px; }
.asset-small .asset-box { aspect-ratio: 1; }
.asset-progress { font-size: 0.8rem; color: var(--accent); font-weight: 600; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.swatch { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; font-size: 0.85rem; }
.swatch:hover { border-color: #2a2a36; }
.swatch input { appearance: none; width: 34px; height: 34px; border: none; border-radius: 8px; padding: 0; background: none; cursor: pointer; flex-shrink: 0; }
.swatch input::-webkit-color-swatch-wrapper { padding: 0; }
.swatch input::-webkit-color-swatch { border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 8px; }
.swatch input::-moz-color-swatch { border: 2px solid rgba(255, 255, 255, 0.15); border-radius: 8px; }
.swatch.mini { flex-shrink: 0; }
.cz-pick { display: flex; gap: 12px; align-items: center; }
.cz-pick .input { max-width: 320px; }

.cz-preview { position: sticky; top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cz-preview-head { display: flex; justify-content: space-between; align-items: center; }
.cz-frame-wrap { height: min(720px, calc(100vh - 110px)); border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #000; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.cz-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

.upload-queue { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.upload-queue:empty { display: none; }
.up-row { display: grid; grid-template-columns: minmax(0, 220px) 1fr 70px; gap: 10px; align-items: center; font-size: 0.85rem; }
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-pct { text-align: right; color: var(--muted); }

.tpl-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 48px 20px; }
.tpl-empty-icon { font-size: 1.9rem; color: var(--muted); line-height: 1; }
.tpl-empty p { max-width: 420px; }
.chart text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart .grid { stroke: #1a1a22; stroke-dasharray: 3 4; }
.chart .chart-empty { font-size: 13px; fill: #5c5c70; }

.progress { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); border-radius: 99px; transition: width 0.4s; }
.checklist { display: flex; flex-direction: column; gap: 8px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.9rem; padding: 8px 10px; border-radius: 9px; background: var(--bg-2); }
.check i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #2e2e3a; flex-shrink: 0; font-style: normal; display: grid; place-items: center; font-size: 11px; }
.check.done i { background: var(--ok); border-color: var(--ok); color: #06210f; }
.check.done span { color: var(--muted); text-decoration: line-through; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.span-2 { grid-column: span 2; }

.assets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.asset { display: flex; flex-direction: column; gap: 6px; }
.asset-box {
  position: relative; aspect-ratio: 16 / 10; border-radius: 12px; border: 1px dashed #2a2a36; background: var(--bg-2);
  display: grid; place-items: center; cursor: pointer; overflow: hidden; color: var(--muted); font-size: 0.82rem; text-align: center;
  transition: border-color 0.15s;
}
.asset-box:hover { border-color: var(--accent); }
.asset-box img, .asset-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.asset-box .asset-audio { padding: 10px; font-size: 0.8rem; word-break: break-all; }
.asset-box .asset-audio .ic { margin-right: 4px; }
.asset-box .remove {
  position: absolute; top: 6px; right: 6px; z-index: 2; width: 24px; height: 24px; border-radius: 6px; border: none;
  background: rgba(0, 0, 0, 0.7); color: var(--danger); cursor: pointer; font-weight: 700;
}
.asset-box .tag { position: absolute; bottom: 6px; left: 6px; z-index: 2; font-size: 0.7rem; padding: 2px 6px; border-radius: 5px; background: rgba(0, 0, 0, 0.7); color: #fff; }
.asset-round .asset-box, .asset-small .asset-box { overflow: visible; }
.asset-round .asset-box img, .asset-round .asset-box video, .asset-small .asset-box img, .asset-small .asset-box video { border-radius: inherit; }
.asset-round .asset-box .remove, .asset-small .asset-box .remove {
  top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--danger); font-size: 0.75rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.asset-round .asset-box .remove:hover, .asset-small .asset-box .remove:hover { background: var(--danger); color: #fff; }
.asset-round .asset-box .tag { left: 50%; bottom: -8px; transform: translateX(-50%); }

.platform-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.platform-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 8px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; font-size: 0.8rem; transition: border-color 0.15s;
}
.platform-btn:hover { border-color: var(--accent); }
.platform-btn img, .platform-btn svg { width: 26px; height: 26px; }

.link-list { display: flex; flex-direction: column; gap: 10px; }
.link-row { display: grid; grid-template-columns: 34px 120px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.link-row .l-icon img, .link-row .l-icon svg { width: 26px; height: 26px; }
.link-row .l-name { font-weight: 600; font-size: 0.9rem; }
.link-row .l-actions { display: flex; gap: 6px; }
.empty { text-align: center; padding: 30px; color: var(--muted); font-size: 0.9rem; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px; border-radius: 14px;
  border: 2px dashed #2a2a36; background: var(--bg-2); cursor: pointer; text-align: center; transition: border-color 0.15s, background 0.15s;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); }
.dz-icon { font-size: 1.8rem; line-height: 1; color: var(--muted); }
.dropzone:hover .dz-icon, .dropzone.over .dz-icon { color: var(--accent); }
.storage { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }

.upload-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.upload { background: var(--card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.upload-thumb { aspect-ratio: 16 / 10; background: var(--bg-2); display: grid; place-items: center; font-size: 1.8rem; color: var(--muted); }
.upload-thumb img, .upload-thumb video { width: 100%; height: 100%; object-fit: cover; }
.upload-info { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.upload-info strong { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 0 12px 12px; margin-top: auto; }
.upload-actions .btn { min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.upload-actions .btn:only-child { grid-column: 1 / -1; }
.upload-actions .is-locked { color: #fbbf24; border-color: rgba(251, 191, 36, 0.4); }
.ico { flex: 0 0 auto; display: block; }
.up-tag .ico { display: inline-block; vertical-align: -2px; width: 11px; height: 11px; }
.upload-thumb { position: relative; }
.up-tags { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; }
.up-tag { font-size: 0.7rem; font-weight: 600; padding: 3px 8px; border-radius: 99px; background: rgba(0, 0, 0, 0.7); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(6px); }
.up-tag.off { color: #fca5a5; border-color: rgba(248, 113, 113, 0.4); }

.season-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.season-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; border-radius: 12px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--border); transition: border-color 0.15s;
}
.season-opt:hover { border-color: #2a2a36; }
.season-opt .so-emoji { font-size: 1.8rem; }
.season-opt b { font-size: 0.88rem; }
.season-opt small { font-size: 0.7rem; color: var(--ok); font-weight: 600; }
.season-opt.on { border-color: var(--accent); cursor: default; }
.season-opt[data-look="halloween"] { background: linear-gradient(160deg, rgba(255, 138, 31, 0.12), rgba(168, 85, 247, 0.08)); }
.season-opt[data-look="christmas"] { background: linear-gradient(160deg, rgba(255, 77, 94, 0.12), rgba(34, 197, 94, 0.08)); }
.season-opt[data-look="easter"] { background: linear-gradient(160deg, rgba(249, 168, 212, 0.12), rgba(167, 139, 250, 0.08)); }
.season-opt[data-look="newyear"] { background: linear-gradient(160deg, rgba(252, 211, 77, 0.13), rgba(124, 58, 237, 0.1)); }
.season-opt[data-look="valentines"] { background: linear-gradient(160deg, rgba(255, 107, 154, 0.14), rgba(190, 18, 60, 0.08)); }
.season-opt[data-look="menshealth"] { background: linear-gradient(160deg, rgba(96, 165, 250, 0.13), rgba(45, 212, 191, 0.07)); }
.season-opt[data-look="summer"] { background: linear-gradient(160deg, rgba(251, 191, 36, 0.12), rgba(251, 113, 133, 0.08)); }

.paywall { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 34px 24px; }
.paywall h2 { margin: 0; font-size: 1.35rem; }
.paywall > p { max-width: 460px; margin: 0; }
.pw-icon { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--border); }
.pw-perks { list-style: none; padding: 0; margin: 6px 0; display: grid; gap: 6px; font-size: 0.9rem; text-align: left; }
.pw-price { font-size: 1.6rem; font-weight: 800; }
.pw-redeem { display: flex; gap: 8px; width: min(440px, 100%); margin-top: 4px; }
.pw-redeem .input { flex: 1; font-family: 'JetBrains Mono', monospace; text-transform: uppercase; letter-spacing: 0.04em; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.badge-card {
  display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--border); transition: border-color 0.15s;
}
.badge-card:hover { border-color: #2a2a36; }
.badge-card .b-icon .bico { font-size: 1.45rem; }
.badge-card .b-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.badge-card .b-text strong { font-size: 0.92rem; }
.badge-card .b-text span { font-size: 0.78rem; color: var(--muted); }
.badge-card.locked .b-icon .bico { filter: saturate(0.35) brightness(0.75); box-shadow: none; }
.b-status {
  flex-shrink: 0; max-width: 45%; font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 8px; text-align: center;
  color: var(--muted); background: var(--bg-2); border: 1px solid var(--border);
}
.b-status.owned { color: #4ade80; background: rgba(74, 222, 128, 0.08); border-color: rgba(74, 222, 128, 0.3); }
button.b-status { font-family: inherit; cursor: pointer; }
.b-status.action { color: #ff6b81; background: rgba(255, 92, 122, 0.08); border-color: rgba(255, 92, 122, 0.35); transition: background 0.15s; }
.b-status.action:hover { background: rgba(255, 92, 122, 0.16); }

.link-row.is-hidden input, .link-row.is-hidden .l-icon, .link-row.is-hidden .l-name { opacity: 0.4; }

.tpl-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tpl-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tpl-tabs .active { background: var(--accent-soft); border-color: var(--accent); }
.tpl-bar { display: grid; grid-template-columns: 1fr 180px; gap: 10px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tpl { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; transition: border-color 0.15s; }
.tpl:hover { border-color: rgba(155, 140, 255, 0.45); }
.tpl-preview { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; overflow: hidden; background-size: cover; background-position: center; }
.tpl-preview video, .tpl-preview img.tpl-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tpl-mini { position: relative; z-index: 1; width: 62%; padding: 10px 8px; border-radius: 10px; text-align: center; font-size: 0.7rem; }
.tpl-mini .m-av { width: 26px; height: 26px; border-radius: 50%; margin: 0 auto 4px; background: rgba(255, 255, 255, 0.25); }
.tpl-mini .m-name { font-weight: 700; font-size: 0.8rem; }
.tpl-mini .m-icons { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.tpl-mini .m-icons i { width: 9px; height: 9px; border-radius: 3px; }
.tpl-star { position: absolute; top: 8px; right: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; border: none; cursor: pointer; background: rgba(0, 0, 0, 0.55); font-size: 1rem; color: #888; }
.tpl-star.on { color: #ffc83c; }
.tpl-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tpl-body strong { font-size: 0.95rem; }
.tpl-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.tpl-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.tpl-tags span { font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: #d6d0ff; }
.tpl-actions { display: flex; gap: 6px; padding: 0 14px 14px; }
.tpl-actions .use { flex: 1; }
.choice-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.choice-tile { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 120px; padding: 10px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.choice-tile:hover { border-color: #3a3a50; }
.choice-tile input { position: absolute; opacity: 0; pointer-events: none; }
.choice-tile:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice-tile:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent-soft); }
.choice-tile b { font-size: 0.8rem; }
.ct-art { display: grid; place-items: center; width: 100%; height: 46px; border-radius: 8px; background: #0a0a10; }
.ct-art span { display: flex; gap: 5px; padding: 5px 7px; border-radius: 7px; }
.ct-art i { width: 12px; height: 12px; border-radius: 3px; background: var(--accent); }
.bb-one span { background: rgba(155, 140, 255, 0.25); }
.bb-each span { gap: 10px; }
.bb-each i { box-shadow: 0 0 0 4px rgba(155, 140, 255, 0.25); }

.tpl.is-preview:hover { transform: none; border-color: var(--border); }

.tpl-create { width: min(760px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; gap: 16px; }
.tc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tc-body { display: grid; grid-template-columns: 1fr 260px; gap: 20px; }
.tc-fields { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tc-fields label, .tc-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; }
.tc-count { align-self: flex-end; font-size: 0.72rem; }
.tc-tagbox { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 42px; padding: 6px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2, #0b0a10); }
.tc-tagbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tc-chips { display: contents; }
.tc-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--accent-soft); color: #d6d0ff; font-size: 0.78rem; }
.tc-chip button { width: 18px; height: 18px; border: none; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; font-size: 0.65rem; }
.tc-chip button:hover { background: rgba(255, 255, 255, 0.12); }
.tc-tagbox input { flex: 1; min-width: 120px; border: none; outline: none; background: transparent; color: inherit; font: inherit; font-size: 0.85rem; padding: 4px 2px; }
.tc-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.tc-idea { padding: 4px 10px; border-radius: 99px; border: 1px dashed var(--border); background: transparent; color: var(--muted); font-size: 0.75rem; cursor: pointer; }
.tc-idea:hover { border-color: var(--accent); color: #fff; }
.tc-info { padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.tc-info p { font-size: 0.78rem; color: var(--muted); }
.tc-info b { color: var(--text); }
.tc-preview { display: flex; flex-direction: column; gap: 8px; }
@media (max-width: 700px) { .tc-body { grid-template-columns: 1fr; } }

.inline-form { display: flex; gap: 10px; max-width: 640px; flex-wrap: wrap; }
.inline-form .input { flex: 1; min-width: 180px; }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }

a.check { color: inherit; text-decoration: none; transition: background 0.15s; }
a.check:hover { background: var(--accent-soft); }
.check-go { margin-left: auto; color: var(--accent); font-size: 1.1rem; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.seg button { padding: 6px 12px; border-radius: 7px; border: none; background: none; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.82rem; }
.seg button.on { background: var(--accent-soft); color: #fff; }

.an-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.an-grid .card, [data-panel="analytics"] > .card { margin-top: 14px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 0.86rem; margin-bottom: 4px; }
.bar-top span { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-top span img, .bar-top span svg { width: 16px; height: 16px; flex-shrink: 0; }
.bar-top b { white-space: nowrap; }
.bar { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

.widget-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.widget-picker .wp-icon { display: grid; place-items: center; width: 30px; height: 30px; }
.wp-icon img, .wp-icon svg, .wr-icon img, .wr-icon svg { width: 26px; height: 26px; }
.wr-icon { display: grid; place-items: center; }
.w-fields { display: grid; grid-template-columns: 220px 1fr; gap: 8px; }
@media (max-width: 700px) { .w-fields { grid-template-columns: 1fr; } }
.platform-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.platform-search { max-width: 260px; padding: 7px 12px; }
.platform-group + .platform-group { margin-top: 18px; }
.platform-cat { margin-bottom: 10px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.widget-list { display: flex; flex-direction: column; gap: 10px; }
.widget-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.widget-row .wr-icon { font-size: 1.6rem; text-align: center; }
.widget-row .wr-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.widget-row .l-actions { display: flex; gap: 6px; }

.page-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.page-row { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.page-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.page-row-head .l-actions { display: flex; gap: 6px; }
.page-row textarea { min-height: 120px; resize: vertical; }
.page-kinds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 540px; }
@media (max-width: 520px) { .page-kinds { grid-template-columns: repeat(3, 1fr); } }
.gal-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal-item { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; background: var(--bg-3, rgba(255, 255, 255, 0.04)); border: 1px solid var(--border); }
.gal-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--bg-2) center / cover; }
.gal-thumb .gal-tools { position: absolute; top: 4px; right: 4px; display: flex; gap: 4px; }
.gal-thumb button { width: 24px; height: 24px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.72rem; }
.gal-thumb button:disabled { opacity: 0.35; cursor: default; }
.gal-item .input { padding: 6px 8px; font-size: 0.8rem; }
.gal-add { display: grid; place-items: center; min-height: 160px; border-radius: 12px; border: 1px dashed var(--border); background: none; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; }
.gal-add:hover { border-color: var(--accent); color: var(--accent); }
.page-kinds button {
  padding: 8px 6px; border-radius: 99px; border: 1px solid var(--border); background: var(--bg-3, rgba(255, 255, 255, 0.04)); color: inherit;
  font: inherit; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.page-kinds button:hover:not(:disabled) { border-color: var(--accent); }
.page-kinds button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.page-kinds button:disabled { opacity: 0.35; cursor: not-allowed; }
.page-kind-hint { margin: 0; }
.page-kind-hint a { color: var(--accent); font-weight: 600; white-space: nowrap; }

.my-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.my-badge { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); cursor: grab; user-select: none; }
.my-badge.dragging { opacity: 0.4; border-style: dashed; }
.my-badge .mb-grip { color: var(--muted); letter-spacing: -3px; font-size: 0.8rem; }
.my-badge .mb-icon { font-size: 1.1rem; line-height: 1; display: flex; }
.my-badge.is-off .mb-icon, .my-badge.is-off .mb-name { opacity: 0.35; filter: grayscale(0.8); }
.my-badge .mb-name { font-weight: 600; font-size: 0.88rem; }
.my-badge input[type="color"] { width: 28px; height: 28px; padding: 0; border: none; border-radius: 6px; background: none; cursor: pointer; }
.tag-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; min-height: 44px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); cursor: text; }
.tag-input:focus-within { border-color: var(--accent); }
.tag-chips { display: contents; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--accent-soft); font-size: 0.82rem; font-weight: 600; }
.tag-chip button { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 0.7rem; padding: 2px 5px; border-radius: 99px; }
.tag-chip button:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.tag-input input { flex: 1; min-width: 120px; border: none; background: none; color: inherit; font: inherit; outline: none; padding: 4px; }
.tag-add { flex-shrink: 0; padding: 4px 10px; font-size: 0.78rem; }

.cz-media-row .asset-banner { width: 320px; }
.asset-banner .asset-box { aspect-ratio: 1200 / 630; }
.saves-card { margin-bottom: 16px; }
.saves-head p { margin-top: 2px; }
.saves-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px; }
.save-slot { display: flex; flex-direction: column; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-2); overflow: hidden; min-width: 0; }
.save-slot.empty {
  align-items: center; justify-content: center; gap: 4px; min-height: 168px; border-style: dashed; color: var(--muted); font: inherit; cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.save-slot.empty:hover { border-color: rgba(155, 140, 255, 0.5); color: var(--text); background: var(--accent-soft); }
.save-plus { font-size: 1.5rem; line-height: 1; }
.save-slot.empty b { font-size: 0.88rem; }
.save-slot.empty small { font-size: 0.75rem; }
.save-thumb {
  position: relative; height: 74px; display: grid; place-items: center; background-size: cover; background-position: center;
  background-color: color-mix(in srgb, var(--save-accent) 22%, #0b0b12); border-bottom: 2px solid var(--save-accent);
}
.save-av { width: 40px; height: 40px; border-radius: 50%; background: center / cover; border: 2px solid var(--save-accent); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5); }
.save-info { padding: 10px 12px 4px; display: flex; flex-direction: column; min-width: 0; }
.save-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.save-btns { display: flex; gap: 6px; padding: 8px 12px 12px; }
.save-btns .btn { padding-inline: 10px; }
.save-btns .btn.primary { flex: 1; }
@media (max-width: 800px) {
  .saves-grid { grid-template-columns: 1fr; }
  .save-slot.empty { min-height: 0; flex-direction: row; gap: 10px; padding: 14px; }
  .save-slot.empty .save-plus { font-size: 1.2rem; }
}
#czOpenPage { white-space: nowrap; flex-shrink: 0; }

.name-msg { min-height: 18px; margin-top: 8px; font-size: 0.82rem; }
.name-msg.err { color: var(--danger); }
.name-msg.ok { color: var(--ok); }
.ci-tag { margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 600; vertical-align: middle; color: #38bdf8; background: rgba(56, 189, 248, 0.14); }

.link-row .l-title { grid-column: 2 / -1; }
.link-row.is-button { border-color: rgba(155, 140, 255, 0.35); }

.embed-preview { padding: 14px; border-radius: 12px; background: #313338; font-family: 'gg sans', 'Noto Sans', Inter, sans-serif; }
.ep-msg { display: flex; gap: 14px; }
.ep-av { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; background: #5865f2 center / cover; }
.ep-body { min-width: 0; flex: 1; }
.ep-who { font-size: 0.95rem; color: #f2f3f5; }
.ep-who span { font-size: 0.72rem; color: #949ba4; margin-left: 4px; }
.ep-link { color: #00a8fc; font-size: 0.9rem; margin: 2px 0 6px; word-break: break-all; }
.ep-card { display: flex; gap: 14px; max-width: 432px; padding: 10px 14px 14px 12px; border-radius: 4px; border-left: 4px solid; background: #2b2d31; }
.ep-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.ep-text small { color: #b5bac1; font-size: 0.72rem; }
.ep-text b { color: #00a8fc; font-size: 0.95rem; }
.ep-text p { color: #dbdee1; font-size: 0.84rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ep-big { width: 100%; border-radius: 4px; margin-top: 6px; aspect-ratio: 1200 / 630; object-fit: cover; }
.ep-small { width: 80px; height: 80px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }

.embed-maker { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.embed-maker h4 { margin: 0; font-size: 0.95rem; }
.embed-maker > p { margin: -6px 0 0; }
.em-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.em-row .field { flex: 1; min-width: 200px; margin: 0; }
.embed-maker .asset-banner { width: 320px; max-width: 100%; }
.em-canvas { display: block; width: 100%; max-width: 520px; height: auto; aspect-ratio: 1200 / 630; border-radius: 10px; border: 1px solid var(--border); background: #07070b; }
.embed-maker .btn { align-self: flex-start; }

.verify-notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 9%, var(--card)), var(--card)); }
.verify-notice .vn-icon { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.verify-notice .vn-icon svg { width: 20px; height: 20px; }
.verify-notice .vn-body { flex: 1 1 260px; min-width: 0; }
.verify-notice p { margin: 4px 0 0; color: var(--muted); line-height: 1.5; }
.verify-notice p b { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.verify-notice .vn-due { display: block; margin-top: 4px; color: var(--warn, #f5a524); }
.verify-notice .vn-due b { color: inherit; }
.email-lock { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-color: rgba(250, 204, 21, 0.4); background: rgba(250, 204, 21, 0.06); }
.email-lock > .ic { font-size: 1.6rem; color: #facc15; flex: none; }
.email-lock > div:first-of-type { flex: 1; min-width: 220px; }
.email-lock p { margin: 4px 0 0; }
.email-lock-actions { display: flex; gap: 8px; flex-wrap: wrap; }
body.email-locked [data-panel] > [inert] { opacity: 0.35; filter: grayscale(0.5); user-select: none; }
.claim-notice { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; border-color: color-mix(in srgb, var(--bc) 45%, transparent); background: color-mix(in srgb, var(--bc) 8%, transparent); }
.claim-notice > div { flex: 1; min-width: 200px; }
.claim-notice p { margin: 4px 0 0; opacity: 0.8; }
.claim-icon .bico { width: 42px; height: 42px; }

.ct-art.lay { position: relative; overflow: hidden; height: 64px; }
.ct-art.lay .l-box { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 48%; padding: 6px 4px; border-radius: 5px; background: rgba(155, 140, 255, 0.18); border: 1px solid rgba(155, 140, 255, 0.35); }
.ct-art.lay i { width: 60%; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.45); }
.ct-art.lay i.l-av { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.ct-art.lay i.short { width: 38%; }
.lay-left { place-items: center start; padding-left: 8px; }
.ct-art.lay-left .l-box { align-items: flex-start; padding-left: 6px; }
.ct-art.lay-minimal .l-box { background: none; border-color: transparent; }
.ct-art.lay-wide .l-box { width: 82%; display: grid; grid-template-columns: auto 1fr; column-gap: 6px; justify-items: start; }
.ct-art.lay-wide i.l-av { grid-row: span 2; width: 16px; height: 16px; }
.ct-art.lay-wide i { width: 90%; }
.lay-fullscreen { place-items: end center; }
.lay-fullscreen::before { content: ''; position: absolute; inset: 0 0 42% 0; background: linear-gradient(135deg, #6d5bd0, #c46bd6 60%, #f59ec7); opacity: 0.75; }
.lay-fullscreen::after { content: '▶'; position: absolute; top: 9px; left: 50%; transform: translateX(-50%); font-size: 0.6rem; color: #fff; }
.ct-art.lay-fullscreen .l-box { margin-bottom: 4px; padding: 3px 4px; gap: 2px; background: rgba(20, 18, 32, 0.95); }

.cb-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cb-item { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.cb-item .b-icon .bico { font-size: 1.45rem; }
.cb-item .b-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.cb-item .b-text strong { font-size: 0.92rem; }
.cb-item .b-text span { font-size: 0.78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb-new { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px dashed rgba(155, 140, 255, 0.5); background: var(--accent-soft); color: #fff; font: inherit; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.cb-new:hover { border-color: var(--accent); }
.cb-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.cb-buy > div { flex: 1; min-width: 200px; }
.cb-buy p { margin: 2px 0 0; }
.cb-buy .pw-redeem { margin: 0; width: 100%; }
.cb-editor { display: grid; grid-template-columns: 180px 1fr; gap: 20px; margin-top: 14px; padding: 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid rgba(155, 140, 255, 0.35); }
.cb-editor[hidden] { display: none; }
.cb-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px 10px; border-radius: 12px; background: #0a0a10; text-align: center; }
.cb-preview-badge .bico { font-size: 3rem; }
.cb-preview-tip { display: flex; flex-direction: column; gap: 2px; padding: 6px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.6); font-size: 0.8rem; max-width: 100%; }
.cb-preview-tip b { overflow-wrap: anywhere; }
.cb-preview-tip small { color: var(--muted); overflow-wrap: anywhere; }
.cb-fields { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cb-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.cb-glyph { width: 120px; margin: 0; }
.cb-glyph .input { text-align: center; font-weight: 800; letter-spacing: 0.08em; }
.cb-icons { --bc: #9b8cff; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.cb-icon { display: grid; place-items: center; height: 40px; border-radius: 10px; border: 1px solid var(--border); background: #0a0a10; color: var(--muted); cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s; }
.cb-icon svg { width: 20px; height: 20px; }
.cb-icon b { font-size: 0.85rem; }
.cb-icon:hover { color: #fff; }
.cb-icon.on { color: var(--bc); border-color: var(--bc); background: color-mix(in srgb, var(--bc) 14%, #0a0a10); }
@media (max-width: 700px) { .cb-editor { grid-template-columns: 1fr; } }

@media (max-height: 740px) and (min-width: 961px) {
  .side-label { display: none; }
  .side-nav a.admin-link { margin-top: 2px; }
}

@media (max-width: 960px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 40; height: auto; overflow: visible; gap: 6px;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 8px 12px 6px;
    border-right: none; border-bottom: 1px solid var(--border);
    background: rgba(6, 6, 9, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .side-logo { padding: 0; }
  .side-logo img { height: 30px; }
  .side-nav {
    grid-column: 1 / -1; position: relative; min-width: 0; flex-direction: row; flex-wrap: nowrap; gap: 4px; margin: 0 -12px; padding: 0 12px 2px;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; white-space: nowrap; padding: 7px 11px; font-size: 0.85rem; }
  .side-nav a.admin-link { margin-top: 0; }
  .side-bottom { grid-column: 2; grid-row: 1; margin: 0; flex-direction: row; align-items: center; gap: 6px; }
  .sidebar .side-cta, .sidebar .side-discord { width: 34px; height: 34px; padding: 0; gap: 0; font-size: 0; }
  .sidebar .side-cta svg { width: 16px; height: 16px; }
  .side-user { padding: 0; gap: 2px; background: none; border: none; }
  .su-avatar, .su-text { display: none; }
  .su-btn { width: 34px; height: 34px; }
  .side-label { display: none; }
  .side-nav a.active::before { display: none; }
  .dash-main { padding-top: 18px; }
  .overview-cards, .assets, .grid-4 { grid-template-columns: 1fr 1fr; }
  .overview-grid, .grid-3, .an-grid, .ov-layout { grid-template-columns: minmax(0, 1fr); }
}
.m-tabbar, .m-sheet, .cz-fab, #czPreviewClose { display: none; }
@media (max-width: 760px) {
  body.has-tabbar .sidebar .side-nav { display: none; }
  body.has-tabbar .sidebar { padding-bottom: 8px; }
  body.has-tabbar { padding-bottom: calc(70px + env(safe-area-inset-bottom)); }
  .m-tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--card) 90%, transparent); border-top: 1px solid var(--border);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  .m-tabbar a, .m-tabbar button {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 52px; padding: 6px 2px 4px;
    border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; font-size: 0.68rem; font-weight: 600; text-decoration: none; cursor: pointer;
  }
  .m-tabbar svg { width: 22px; height: 22px; padding: 3px 14px; box-sizing: content-box; border-radius: 99px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: background 0.15s; }
  .m-tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-tabbar .active { color: var(--text); }
  .m-tabbar .active svg { color: var(--accent); background: var(--accent-soft); }
  .m-tabbar a:active svg, .m-tabbar button:active svg { transform: scale(0.92); }
  .m-dot { position: absolute; top: 5px; left: calc(50% + 10px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--card); }
  .m-sheet { display: block; position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0); transition: background 0.2s; }
  .m-sheet[hidden] { display: none; }
  .m-sheet.open { background: rgba(0, 0, 0, 0.55); }
  .m-sheet-box {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 84vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 14px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
    background: var(--card); border-top: 1px solid var(--border); box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(100%); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .m-sheet.open .m-sheet-box { transform: none; }
  .m-sheet-grip { width: 40px; height: 4px; margin: 4px auto 6px; border-radius: 99px; background: var(--border); }
  .m-sheet h4 { margin: 14px 2px 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
  .m-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .m-item {
    display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 12px; border-radius: 12px;
    background: var(--bg-2); border: 1px solid var(--border); color: var(--text); font-size: 0.86rem; font-weight: 600; text-decoration: none;
  }
  .m-item svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--muted); }
  .m-item.active { border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: var(--accent-soft); }
  .m-item.active svg { color: var(--accent); }
  .m-item .nav-count { margin-left: auto; }
  .m-item[hidden] { display: none; }
  .m-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
  .m-actions .btn { flex: 1 1 140px; justify-content: center; min-height: 44px; }
  .m-actions svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
  body.m-sheet-open { overflow: hidden; }

  .cz-fab {
    display: inline-flex; align-items: center; gap: 8px; position: fixed; right: 14px; bottom: calc(82px + env(safe-area-inset-bottom)); z-index: 60;
    padding: 12px 18px; border: 0; border-radius: 99px; background: var(--accent); color: #0b0b12; font: inherit; font-weight: 700; font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1) inset; cursor: pointer;
  }
  .cz-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .cz-layout .cz-preview { display: none; }
  body.cz-preview-open .cz-layout .cz-preview {
    display: flex; position: fixed; inset: 0; z-index: 90; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); background: rgba(4, 4, 7, 0.96);
  }
  body.cz-preview-open .cz-frame-wrap { flex: 1; height: auto; max-width: none; }
  body.cz-preview-open #czPreviewClose { display: inline-flex; }
  body.cz-preview-open { overflow: hidden; }

  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']):not([type='file']), select, textarea { font-size: 16px; }

  .cz-bar { top: 8px; margin: 0 -4px; }
  .cz-tabs { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 0 -6px; padding: 0 6px; mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 14px), transparent); }
  .cz-tabs::-webkit-scrollbar { display: none; }
  .cz-tabs button { flex: 0 0 auto; scroll-snap-align: center; min-height: 40px; padding: 8px 14px; }
  .cz-main .card { padding: 16px; }
}
@media (max-width: 1200px) {
  .cz-layout, .cz-layout.cz-pc { grid-template-columns: 1fr; }
  .cz-preview { position: static; }
  .cz-frame-wrap { height: 600px; max-width: 420px; }
  .cz-pc .cz-frame-wrap { max-width: none; }
}
.cz-sub { margin: 16px 0 8px; font-size: 0.82rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
[hidden].field, .swatch[hidden] { display: none !important; }

.bio-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 6px; }
.desc-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
#descModeNote { margin: 6px 0 8px; }
.bio-tools > button {
  min-width: 30px; height: 28px; padding: 0 8px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 0.82rem; color: var(--text, #eee);
  background: var(--bg-2); border: 1px solid var(--border);
}
.bio-tools > button:hover { border-color: var(--accent); }
.bio-colours { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.bio-colours button { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); background: var(--c); cursor: pointer; padding: 0; }
.bio-colours button:hover { border-color: rgba(255, 255, 255, 0.6); }
.bio-custom { position: relative; width: 18px; height: 18px; border-radius: 50%; overflow: hidden; cursor: pointer; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.bio-custom input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.status-row { display: grid; grid-template-columns: 64px 1fr 170px; gap: 8px; }
.status-emoji { text-align: center; font-size: 1.1rem; }
#statusExpiry { display: block; margin-top: 6px; }

.lyrics-input { min-height: 110px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.8rem; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.theme-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 12px; cursor: pointer; font: inherit; color: inherit;
  background: var(--bg-2); border: 1px solid var(--border); transition: border-color 0.15s;
}
.theme-tile:hover { border-color: var(--t-accent); }
.tt-art { display: grid; place-items: center; height: 62px; border-radius: 8px; background: var(--t-page); }
.tt-card {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 58%; padding: 6px 4px; border-radius: 6px;
  background: var(--t-card); border: 1px solid color-mix(in srgb, var(--t-accent) 45%, transparent);
}
.tt-card i { width: 12px; height: 12px; border-radius: 50%; background: var(--t-accent); }
.tt-card b { width: 70%; height: 3px; border-radius: 2px; background: var(--t-text); opacity: 0.8; }
.tt-card b.short { width: 45%; opacity: 0.45; }
.tt-name { font-size: 0.8rem; font-weight: 600; text-align: center; }

.slide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slide { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--bg-2) center / cover; border: 1px solid var(--border); }
.slide button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none; cursor: pointer; background: rgba(0, 0, 0, 0.7); color: #fff; font-size: 0.7rem; }
.slide-add { display: grid; place-items: center; font-size: 1.4rem; color: var(--muted); cursor: pointer; border-style: dashed; }
.slide-add:hover { color: var(--accent); border-color: var(--accent); }
.pl-list { display: flex; flex-direction: column; gap: 8px; }
.pl-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--border); }
.pl-row .lyrics-field { grid-column: 1 / -1; display: grid; gap: 6px; }
.pl-row .lyrics-field[hidden] { display: none; }
.lyrics-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.lyrics-tools .small { flex: 1 1 220px; }
.ly-modal { width: min(620px, 94vw); max-height: 88vh; display: flex; flex-direction: column; gap: 12px; }
.ly-modal .tc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ly-modal .tc-head h3 { margin: 0; }
.ly-search { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.ly-results { overflow-y: auto; display: grid; gap: 8px; min-height: 80px; }
.ly-result { padding: 10px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.ly-result-head { display: flex; align-items: center; gap: 10px; }
.ly-result-head > div { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ly-result pre { margin: 8px 0 0; white-space: pre-wrap; font: inherit; font-size: 0.78rem; opacity: 0.7; }
.ly-badge { font-size: 0.7rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); opacity: 0.75; }
.ly-badge.on { border-color: var(--accent); color: var(--accent); opacity: 1; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-radio { position: relative; cursor: pointer; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); font-size: 0.82rem; font-weight: 600; opacity: 0.75; transition: border-color 0.15s, opacity 0.15s, background 0.15s; }
.chip-radio:hover span { opacity: 1; }
.chip-radio input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); opacity: 1; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.opt.opt-inline { padding: 0; border: 0; background: none; gap: 10px; }
.symbol-picks { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.symbol-picks button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: inherit; font-size: 1.05rem; cursor: pointer; }
.symbol-picks button:hover { border-color: var(--accent); }
[data-splash-for][hidden] { display: none !important; }
.ly-cover { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; flex: none; background: rgba(255,255,255,.06); }
.ly-cover.none { display: grid; place-items: center; opacity: 0.5; }
.ly-extra { display: flex; align-items: center; gap: 8px; margin: 10px 0 4px; font-size: 0.82rem; opacity: 0.85; cursor: pointer; }
.cv-results { margin-top: 12px; max-height: 60vh; overflow: auto; }
.cv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.cv-item { display: flex; flex-direction: column; gap: 3px; padding: 6px; border-radius: 10px; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: inherit; text-align: left; cursor: pointer; font: inherit; min-width: 0; }
.cv-item:hover { border-color: var(--accent); }
.cv-item img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; }
.cv-item b, .cv-item small { font-size: 0.75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cv-item small { opacity: 0.6; }
.cv-item.busy { opacity: 0.5; cursor: progress; }
.ly-media { width: 100%; max-height: 200px; border-radius: 10px; background: #000; }
audio.ly-media { background: transparent; }
.ly-sync-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; max-height: 40vh; display: grid; gap: 2px; }
.ly-sync-list li { display: flex; gap: 10px; padding: 6px 10px; border-radius: 8px; opacity: 0.5; }
.ly-sync-list li time { width: 64px; flex: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 0.75rem; opacity: 0.8; }
.ly-sync-list li.done { opacity: 0.8; cursor: pointer; }
.ly-sync-list li.next { opacity: 1; background: var(--bg-2); outline: 1px solid var(--accent); font-weight: 600; }
.ly-modal .ly-progress { margin-right: auto; }
@media (max-width: 560px) { .ly-search { grid-template-columns: 1fr; } }
.pl-cover {
  width: 48px; height: 48px; border-radius: 8px; border: 1px dashed var(--border); cursor: pointer; color: var(--muted); font-size: 1.1rem;
  background: #0a0a10 center / cover;
}
.pl-cover:hover { border-color: var(--accent); }
.pl-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; min-width: 0; }
.pl-actions { display: flex; gap: 4px; }

.link-row .l-actions { flex-wrap: wrap; justify-content: flex-end; }
.l-colour { position: relative; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border); background: var(--bg-2); display: grid; place-items: center; }
.l-colour::before { content: ''; width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); }
.l-colour.set::before { background: var(--c); }
.l-colour input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.link-row.is-featured { border-color: rgba(255, 210, 90, 0.45); }

.ct-art.sk span { width: 60%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); padding: 0; }
.ct-art.sk { display: flex; align-items: center; justify-content: center; gap: 6px; }
.sk-default i { width: 18px; height: 18px; border-radius: 4px; }
.sk-minimal span { width: 80%; height: 14px; border-radius: 99px; background: rgba(155, 140, 255, 0.3); }
.sk-vinyl i { width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, var(--accent) 0 28%, #111 30%, #2a2a2a 45%, #111 60%, #262626 75%, #111 90%); }
.sk-cassette { background: linear-gradient(#2a2633, #1a1820); }
.sk-cassette i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle, #111 0 25%, #e8e2d4 26% 40%, #111 42%); border: 1px dashed #e8e2d4; }
.sk-ipod { flex-direction: column; gap: 3px !important; background: linear-gradient(160deg, #f1f1f3, #c8c9cf); }
.sk-ipod span { width: 34px !important; height: 14px !important; border-radius: 2px !important; background: #9fb8c9 !important; }
.sk-ipod i { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle, #e9e9ec 0 30%, #d0d0d6 32%); }

.ct-art.gl { background: linear-gradient(135deg, #6d5bd0, #c46bd6 55%, #f59ec7); }
.ct-art.gl span { width: 60%; height: 30px; border-radius: 6px; }
.gl-frosted span { background: rgba(20, 18, 32, 0.45); backdrop-filter: blur(6px); }
.gl-clear span { background: rgba(20, 18, 32, 0.35); border: 1px solid rgba(255, 255, 255, 0.2); }
.gl-tinted span { background: rgba(155, 140, 255, 0.45); }
.gl-liquid span { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: inset 0 1px 0 #fff, inset 0 0 10px rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px) saturate(180%); }

.ct-art.ls { display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px; padding: 6px; }
.ls-pills i { width: 26px; height: 9px; border-radius: 99px; }
.ls-buttons { flex-direction: column; }
.ls-buttons i { width: 80%; height: 7px; border-radius: 3px; }
.ls-grid { display: grid !important; grid-template-columns: repeat(3, 14px); }
.ls-grid i { width: 14px; height: 12px; }
.ls-dock { align-items: flex-end !important; }
.ls-dock i { width: 9px; height: 9px; }
.ls-dock i:nth-child(2) { width: 13px; height: 13px; }
.ls-dock i:nth-child(3) { width: 16px; height: 16px; }

.ct-art.ctr span { padding: 0; gap: 2px; font-size: 0.72rem; font-weight: 700; color: #ddd; }
.ctr-odometer i, .ctr-flip i {
  width: auto; height: auto; padding: 1px 3px; border-radius: 2px; font-style: normal; font-family: ui-monospace, monospace; background: #222; color: #fff;
}
.ctr-flip i { background: linear-gradient(#2a2a32 50%, #1b1b22 50%); }
.ctr-pixel span { padding: 3px 5px !important; background: #0b1a0b; color: #57ff6a !important; font-family: 'Courier New', monospace; text-shadow: 0 0 4px #57ff6a; border-radius: 2px; }

@media (max-width: 700px) {
  .status-row { grid-template-columns: 56px 1fr; }
  .status-row select { grid-column: 1 / -1; }
  .pl-fields { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .cz-avatar-row, .cz-media-row { flex-direction: column; align-items: stretch; }
  .cz-media-row .asset { width: 100%; }
  .cz-media-row .asset-small, .cz-avatar-row .asset-round { width: 110px; align-self: center; }
}
@media (max-width: 560px) {
  .grid-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .link-row { grid-template-columns: 30px 1fr auto; }
  .link-row .l-name { display: none; }
  .fl-go { display: none; }
}

.fl-tabs { margin: 14px 0; }
.fl-tabs b { font-size: 0.72rem; opacity: 0.7; margin-left: 2px; }
.fl-list { padding: 6px; display: flex; flex-direction: column; }
.fl-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; color: inherit; text-decoration: none; }
.fl-row + .fl-row { border-top: 1px solid var(--border); }
a.fl-row:hover, .fl-row:has(.fl-main:hover) { background: var(--bg-2); }
.fl-av { width: 42px; height: 42px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
  background: var(--accent-soft) center / cover no-repeat; color: var(--accent); }
.fl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; color: inherit; text-decoration: none; font-size: 0.9rem; }
.fl-icons { font-size: 0.85rem; color: var(--muted); }
.fl-go { color: var(--muted); font-size: 0.8rem; flex: none; }
.fl-empty { text-align: center; padding: 40px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.fl-empty-icon { font-size: 1.9rem; line-height: 1; color: var(--muted); }
.fl-empty a { color: var(--accent); }
.btn.discord-auth-btn, [data-season] .btn.primary.discord-auth-btn { display: inline-flex; align-items: center; gap: 8px; background: #5865f2; border-color: #5865f2; color: #fff; text-decoration: none; box-shadow: none; }
.btn.discord-auth-btn:hover, [data-season] .btn.primary.discord-auth-btn:hover { background: #4752c4; border-color: #4752c4; box-shadow: none; }
.dc-link-row { display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.dc-link-row .btn { flex-shrink: 0; }
@media (max-width: 560px) { .dc-link-row { flex-direction: column; align-items: flex-start; } }
.w-linked { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.font-pick { position: relative; }
.fp-btn { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; cursor: pointer; color: var(--text); }
.fp-btn span { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-btn i { font-style: normal; color: var(--muted); font-size: 0.8rem; transition: transform 0.15s; }
.font-pick.open .fp-btn i { transform: rotate(180deg); }
.fp-list {
  display: none; position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow-y: auto; padding: 6px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.font-pick.open .fp-list { display: grid; gap: 2px; }
.fp-list button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text);
  font-size: 1.15rem; line-height: 1.3; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fp-list button:hover, .fp-list button:focus-visible { background: var(--accent-soft); outline: none; }
.fp-list button.on { background: var(--accent-soft); color: var(--accent); }

.ai-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 65; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px;
  border: 0; border-radius: 99px; background: var(--accent); color: #0b0b12; font: inherit; font-weight: 700; font-size: 0.9rem; cursor: pointer;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset; transition: transform 0.15s, filter 0.15s;
}
.ai-fab:hover { transform: translateY(-2px); filter: brightness(1.06); }
.ai-fab[hidden] { display: none; }
.ai-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.has-ai .toasts { bottom: 84px; }
.ai-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; display: flex; flex-direction: column; width: min(390px, calc(100vw - 40px));
  height: min(580px, calc(100vh - 40px)); background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55); animation: aiIn 0.18s ease-out;
}
.ai-panel[hidden] { display: none; }
@keyframes aiIn { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--border); }
.ai-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ai-head small { color: var(--muted); font-size: 0.74rem; }
.ai-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.ai-head svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ai-clear, .ai-close { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.8rem; font-weight: 600; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.ai-close { display: grid; place-items: center; }
.ai-clear:hover, .ai-close:hover { background: var(--accent-soft); color: var(--text); }
.ai-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; max-width: 88%; }
.ai-msg.user { align-self: flex-end; align-items: flex-end; }
.ai-bubble { padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--bg-2); border: 1px solid var(--border); font-size: 0.88rem; line-height: 1.45; overflow-wrap: anywhere; }
.ai-msg.user .ai-bubble { border-radius: 14px 14px 4px 14px; background: var(--accent); border-color: transparent; color: #0b0b12; }
.ai-msg.err .ai-bubble { border-color: color-mix(in srgb, var(--danger) 50%, transparent); color: var(--danger); }
.ai-changed { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--ok); }
.ai-changed svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ai-changed button { border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; font-weight: 600; padding: 2px 9px; border-radius: 99px; cursor: pointer; }
.ai-changed button:hover { border-color: var(--accent); }
.ai-typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.ai-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiDot 1s infinite ease-in-out; }
.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes aiDot { 0%, 80%, 100% { opacity: 0.3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.ai-hello { margin: auto 0 0; display: flex; flex-direction: column; gap: 12px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.ai-ideas { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-ideas button { border: 1px solid var(--border); background: var(--bg-2); color: var(--text); font: inherit; font-size: 0.8rem; padding: 7px 11px; border-radius: 99px; cursor: pointer; text-align: left; }
.ai-ideas button:hover { border-color: var(--accent); background: var(--accent-soft); }
.ai-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--border); }
.ai-form textarea { flex: 1; resize: none; min-height: 42px; max-height: 120px; line-height: 1.4; overflow-y: hidden; }
.ai-form .btn { height: 42px; width: 42px; padding: 0; display: grid; place-items: center; flex-shrink: 0; }
.ai-form .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-form .btn:disabled { opacity: 0.5; cursor: wait; }
@media (max-width: 760px) {
  .ai-fab { right: 14px; bottom: calc(140px + env(safe-area-inset-bottom)); padding: 13px; }
  .ai-fab span { display: none; }
  body.has-ai .toasts { bottom: 16px; }
  .ai-panel { inset: auto 0 0 0; width: auto; height: min(88vh, 100%); border-radius: 20px 20px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
  body.ai-open { overflow: hidden; }
}
