/* WieErklärt Studio: neutral dark UI, coral accent, small radii, status colours. */
:root {
  --ink: #111114;
  --ink-2: #18181c;
  --ink-3: #222227;
  --line: #2a2a31;
  --line-hi: #3a3a43;
  --paper: #f6f1e9;
  --text: #f3eee6;
  --text-2: #a8a8b3;
  --text-3: #74747f;
  --coral: #f0573b;
  --coral-hi: #f46b52;
  --sun: #ffc945;
  --mint: #3ddc97;
  --sky: #6aa8ff;
  --lilac: #9d8cd9;
  --danger: #ff5d6c;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 8px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; }
body { min-height: 100%; margin: 0; display: flex; flex-direction: column; background: var(--ink); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(900px 400px at 85% -10%, rgba(240, 87, 59, .05), transparent 70%); }
/* Chat fills the window and scrolls inside; gallery and team scroll with the page. */
body:has(.st-chat:not(.is-hidden)) { height: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--coral-hi); }
.is-hidden { display: none !important; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 2px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }

/* ---- buttons ---------------------------------------------------------------------- */
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: var(--ink-3); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.st-btn:hover { border-color: var(--text-3); }
.st-btn.primary { background: var(--coral); border-color: var(--coral); color: #fff; }
.st-btn.primary:hover { background: var(--coral-hi); }
.st-btn.light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.st-btn.danger { height: 30px; padding: 0 12px; font-size: 12px; background: transparent; border-color: rgba(255, 93, 108, .5); color: #ff9aa4; }
.st-btn.small { height: 32px; padding: 0 12px; font-size: 12.5px; }
.st-btn:disabled { opacity: .45; cursor: not-allowed; }
.st-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); background: transparent; color: var(--text-2); font-size: 15px; }
.st-icon:hover { color: var(--text); border-color: var(--line-hi); }
.st-icon:disabled { opacity: .35; cursor: not-allowed; }

/* ---- top bar ---------------------------------------------------------------------- */
.st-top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(21, 19, 27, .84); backdrop-filter: blur(14px); }
.st-top-inner { max-width: 1440px; height: 64px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 18px; }
.st-brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 16px; letter-spacing: -.01em; white-space: nowrap; }
.st-brand span { color: var(--text-3); font-weight: 600; }
.st-mark { width: 26px; height: 26px; flex: none; }
.st-tabs { display: flex; align-self: stretch; gap: 2px; margin-left: 24px; }
.st-tab { border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 0 14px; border-radius: 0; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-tab:hover { color: var(--text); }
.st-tab.active { border-bottom-color: var(--coral); color: var(--text); }
.st-count { display: inline-block; min-width: 18px; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: var(--ink-3); color: var(--text-2); font-size: 11px; font-weight: 600; }
.st-tab.active .st-count { background: var(--coral); color: #fff; }
.st-worker { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: var(--r-md); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; white-space: nowrap; }
.st-worker i { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); }
.st-worker.online i { background: var(--mint); }
.st-worker.offline i { background: var(--sun); }
.st-user { position: relative; }
.st-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-hi); background: var(--ink-3); color: var(--text); font-weight: 600; font-size: 12.5px; }
.st-menu { position: absolute; right: 0; top: 44px; min-width: 200px; padding: 6px; border-radius: var(--r-md); background: var(--ink-2); border: 1px solid var(--line-hi); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.st-menu small { display: block; padding: 8px 10px 6px; color: var(--text-3); }
.st-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: var(--r-sm); background: transparent; text-align: left; color: var(--text); }
.st-menu button:hover { background: var(--ink-3); }

/* ---- layout ----------------------------------------------------------------------- */
.st-main { flex: 1; min-height: 0; width: 100%; max-width: 1440px; margin: 0 auto; padding: 22px 24px; display: flex; }
.st-panel { flex: 1; min-height: 0; }
.st-chat { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); gap: 18px; }

/* ---- threads ---------------------------------------------------------------------- */
.st-threads { display: flex; flex-direction: column; gap: 10px; min-height: 0; padding: 14px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); }
.st-label { margin: 2px 4px 0; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.st-new { width: 100%; height: 38px; }
.st-thread-list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; margin: 0 -4px; padding: 0 4px; }
.st-thread { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--r-md); background: transparent; text-align: left; color: var(--text-2); }
.st-thread:hover { background: rgba(255, 255, 255, .03); color: var(--text); }
.st-thread.active { background: var(--ink-3); color: var(--text); }
.st-thread b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-thread small { display: flex; align-items: center; gap: 6px; color: var(--text-3); font-size: 11.5px; }
.st-thread-empty { padding: 18px 8px; color: var(--text-3); font-size: 13px; text-align: center; }
.st-badge { padding: 1px 6px; border-radius: 3px; font-size: 10.5px; font-weight: 600; }
.st-badge.running { background: rgba(61, 220, 151, .16); color: var(--mint); }
.st-badge.queued { background: rgba(255, 201, 69, .16); color: var(--sun); }
.st-badge.error { background: rgba(255, 93, 108, .16); color: #ff9aa4; }

/* ---- conversation ------------------------------------------------------------------ */
.st-conversation { min-height: 0; display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.st-conv-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.st-conv-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.st-conv-title b { font-size: 15px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-conv-title small { color: var(--text-3); font-size: 12px; }
.st-conv-actions { display: flex; gap: 6px; }
.st-back { display: none; }
.st-messages { flex: 1; overflow-y: auto; padding: 22px 22px 10px; display: flex; flex-direction: column; gap: 14px; }
.st-empty { margin: auto; max-width: 560px; text-align: center; padding: 20px; }
.st-empty h2 { margin: 0 0 8px; font-size: 24px; letter-spacing: -.02em; font-weight: 650; }
.st-empty h2 em { font-style: normal; color: inherit; }
.st-empty p { margin: 0 0 18px; color: var(--text-2); }
.st-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.st-chips button { padding: 7px 12px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.st-chips button:hover { border-color: var(--coral); color: var(--text); }
.st-msg { max-width: min(760px, 82%); line-height: 1.6; overflow-wrap: anywhere; }
.st-msg-who { display: block; margin-bottom: 3px; font-size: 11px; color: var(--text-3); }
.st-msg.user { align-self: flex-end; padding: 12px 16px; border-radius: var(--r-lg); background: #2b2b32; color: var(--text); white-space: pre-wrap; }
.st-msg.user .st-msg-who { color: var(--text-3); }
.st-msg.assistant { align-self: flex-start; padding: 12px 16px; border-radius: var(--r-lg); background: transparent; border: 1px solid var(--line); }
.st-msg.assistant p { margin: 0 0 8px; }
.st-msg.assistant p:last-child { margin-bottom: 0; }
.st-msg.assistant h3 { margin: 10px 0 6px; font-size: 14.5px; }
.st-msg.assistant ul, .st-msg.assistant ol { margin: 4px 0 8px; padding-left: 20px; }
.st-msg.assistant code { padding: 1px 5px; border-radius: 3px; background: var(--ink); font-size: 12.5px; }
.st-msg.assistant pre { margin: 6px 0; padding: 10px 12px; border-radius: var(--r-sm); background: var(--ink); border: 1px solid var(--line); overflow-x: auto; }
.st-msg.assistant pre code { padding: 0; background: none; }
.st-msg.assistant table { display: block; overflow-x: auto; margin: 4px 0 10px; border-collapse: collapse; font-size: 13px; }
.st-msg.assistant th, .st-msg.assistant td { padding: 5px 10px; border: 1px solid var(--line-hi); text-align: left; }
.st-msg.assistant th { background: var(--ink-2); }
.st-msg.system { align-self: center; max-width: 90%; padding: 6px 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .04); color: var(--text-3); font-size: 12.5px; text-align: center; }
.st-steps { align-self: flex-start; max-width: min(760px, 82%); padding-left: 14px; border-left: 2px solid var(--line-hi); color: var(--text-3); font-size: 12.5px; }
.st-steps summary { cursor: pointer; padding: 2px 0; }
.st-steps ol { margin: 4px 0 2px; padding-left: 18px; max-height: 260px; overflow-y: auto; }
.st-steps li { margin: 2px 0; font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; overflow-wrap: anywhere; }
.st-status { display: flex; align-items: center; gap: 10px; margin: 0 18px 8px; padding: 9px 12px; border-radius: var(--r-md); background: rgba(255, 106, 77, .1); border: 1px solid rgba(255, 106, 77, .3); color: var(--text-2); font-size: 12.5px; }
.st-status span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-spinner { width: 14px; height: 14px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 106, 77, .3); border-top-color: var(--coral); animation: st-spin .8s linear infinite; }
@keyframes st-spin { to { transform: rotate(360deg); } }
.st-composer { display: flex; align-items: flex-end; gap: 10px; margin: 0 14px 14px; padding: 6px; border-radius: var(--r-lg); background: var(--ink); border: 1px solid var(--line-hi); }
.st-composer:focus-within { border-color: var(--coral); }
.st-composer textarea { flex: 1; resize: none; max-height: 200px; min-height: 40px; padding: 9px 6px; border: 0; background: transparent; outline: none; line-height: 1.45; }
.st-attach { position: relative; overflow: hidden; cursor: pointer; border: 0; }
.st-attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.st-upload { margin: -6px 18px 12px; font-size: 12px; color: var(--text-2); }
.st-upload i { display: block; height: 3px; margin-top: 4px; border-radius: 1px; background: var(--line); overflow: hidden; }
.st-upload b { display: block; height: 100%; width: 0; background: var(--coral); transition: width .2s; }

/* ---- page heads (gallery, team) ------------------------------------------------------ */
.st-gallery, .st-team { display: flex; flex-direction: column; }
.st-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.st-head h1 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; font-weight: 650; }
.st-head h1 em { font-style: normal; color: inherit; }
.st-head p { margin: 6px 0 0; color: var(--text-2); }
.st-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.st-chip { padding: 6px 11px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.st-chip:hover { color: var(--text); }
.st-chip.active { background: var(--ink-3); border-color: var(--text-3); color: var(--text); }
.st-search { width: 230px; height: 34px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: var(--ink-2); outline: none; }
.st-search:focus { border-color: var(--coral); }

/* ---- gallery ---------------------------------------------------------------------- */
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.st-gallery-empty { grid-column: 1 / -1; padding: 60px 20px; border-radius: var(--r-lg); border: 1px dashed var(--line-hi); color: var(--text-3); text-align: center; }
.st-card { --status: var(--line); position: relative; display: flex; flex-direction: column; padding: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--ink-2); overflow: hidden; text-align: left; transition: border-color .15s; }
.st-card:hover { border-color: var(--line-hi); }
.st-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--status); }
.st-card.status-in_progress { --status: var(--coral); }
.st-card.status-done { --status: var(--sun); }
.st-card.status-scheduled { --status: var(--sky); }
.st-card.status-posted { --status: var(--mint); }
.st-card-cover { position: relative; aspect-ratio: 9 / 16; background: #1c1c21; }
.st-card-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-card-cover > span { position: absolute; top: 12px; right: 12px; padding: 2px 6px; border-radius: 3px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 11px; }
.st-card-placeholder { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 14px; font-size: 16px; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; color: var(--text-2); }
.st-card-status { position: absolute; top: 12px; left: 12px; padding: 2px 7px 2px 9px; border-radius: 3px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-style: normal; font-weight: 600; box-shadow: inset 2px 0 0 var(--status); }
.st-card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.st-card-note { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.st-card-note::before { content: "Notiz: "; color: var(--text-3); }
.st-by { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-3); }
.st-by i { width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--ink-3); color: var(--text-2); font-style: normal; font-size: 10px; font-weight: 600; display: grid; place-items: center; }

/* ---- episode modal ------------------------------------------------------------------ */
.st-modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 7, 12, .78); backdrop-filter: blur(4px); }
.st-modal-card { position: relative; display: grid; grid-template-columns: auto minmax(300px, 420px); gap: 22px; max-height: calc(100vh - 40px); padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line-hi); background: var(--ink-2); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.st-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.st-player video { display: block; height: min(78vh, 780px); aspect-ratio: 9 / 16; max-width: 100%; border-radius: var(--r-md); background: #000; }
.st-episode-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-height: calc(100vh - 76px); padding: 26px 4px 0 0; overflow-y: auto; }
.st-episode-info h3 { margin: 0; font-size: 18px; line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.st-episode-info small { color: var(--text-3); }
.st-desc-label { margin-top: 12px; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.st-episode-info textarea { flex: none; min-height: 120px; resize: vertical; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: var(--ink); line-height: 1.5; font-size: 13.5px; outline: none; }
.st-episode-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.st-btn.tiktok { background: #fe2c55; border-color: #fe2c55; color: #fff; }
.st-btn.tiktok:hover { background: #ff4468; }
.st-btn.tiktok.is-ready { background: #25f4ee; border-color: #25f4ee; color: #000; }
.st-tiktok-hint { margin: 2px 0 0; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.st-status-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.st-status-pick button { --status: var(--text-3); display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; text-align: left; white-space: nowrap; }
.st-status-pick button::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 2px; border: 1.5px solid var(--text-3); }
.st-status-pick [data-status="in_progress"] { --status: var(--coral); }
.st-status-pick [data-status="done"] { --status: var(--sun); }
.st-status-pick [data-status="scheduled"] { --status: var(--sky); }
.st-status-pick [data-status="posted"] { --status: var(--mint); }
.st-status-pick button.active { border-color: var(--status); color: var(--text); background: color-mix(in srgb, var(--status) 14%, transparent); }
.st-status-pick button.active::before { content: "✓"; border-color: var(--status); background: var(--status); color: #111; font-size: 9px; line-height: 10px; text-align: center; }
.st-status-pick button:disabled { opacity: .5; }
.st-status-meta:empty { display: none; }
.st-upload-hints { margin-top: 10px; padding: 12px 14px; border-radius: var(--r-md); border: 1px dashed var(--line-hi); }
.st-upload-hints ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 12.5px; line-height: 1.5; }
.st-notes { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.st-note-form { display: flex; gap: 8px; align-items: flex-end; }
.st-episode-info .st-note-form textarea { flex: 1; min-height: 42px; max-height: 140px; }
.st-note-list { list-style: none; margin: 0; padding: 0 0 6px; display: flex; flex-direction: column; gap: 6px; }
.st-note-list li { position: relative; padding: 9px 32px 9px 12px; border-radius: var(--r-md); background: var(--ink); border: 1px solid var(--line); font-size: 13px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.st-note-list li small { display: block; margin-top: 3px; font-size: 11px; white-space: normal; }
.st-note-list li button { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border: 0; border-radius: 3px; background: transparent; color: var(--text-3); font-size: 15px; line-height: 1; }
.st-note-list li button:hover { color: #ff9aa4; background: var(--ink-3); }

/* ---- team ------------------------------------------------------------------------- */
.st-team-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.st-box { padding: 18px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); }
.st-box h2 { margin: 0 0 12px; font-size: 16px; }
.st-member { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.st-member:first-of-type { border-top: 0; }
.st-member .st-avatar { width: 38px; height: 38px; flex: none; display: grid; place-items: center; }
.st-member div { flex: 1; min-width: 0; }
.st-member b { display: block; }
.st-member small { color: var(--text-3); }
.st-member.inactive { opacity: .55; }
.st-tag { margin-left: 6px; padding: 1px 6px; border-radius: 3px; background: var(--ink-3); color: var(--text-2); font-size: 10.5px; font-weight: 600; }
.st-form { display: flex; flex-direction: column; gap: 10px; }
.st-form label { display: flex; flex-direction: column; gap: 5px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.st-form input[type="text"], .st-form input[type="email"], .st-form input[type="password"] { height: 38px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: var(--ink); outline: none; font-weight: 400; }
.st-form input:focus { border-color: var(--coral); }
.st-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.st-linkbox { padding: 10px 12px; border-radius: var(--r-md); background: var(--ink); border: 1px dashed var(--coral); font-size: 12px; overflow-wrap: anywhere; }

/* ---- reauth ----------------------------------------------------------------------- */
.st-reauth { display: flex !important; flex-direction: column; gap: 12px; width: min(400px, 100%); }
.st-reauth h3 { margin: 0; }
.st-reauth p { margin: 0; color: var(--text-2); font-size: 13px; }

/* ---- toasts ----------------------------------------------------------------------- */
.st-toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.st-toast { max-width: 360px; padding: 11px 15px; border-radius: var(--r-md); background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.st-toast.error { background: var(--danger); color: #fff; }

/* ---- login / link pages -------------------------------------------------------------- */
.st-auth { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 16px; }
.st-auth-card { width: min(420px, 100%); padding: 30px 28px; border-radius: var(--r-lg); background: var(--ink-2); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.st-auth-card .st-brand { margin-bottom: 26px; }
.st-auth-card h1 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.02em; font-weight: 650; }
.st-auth-card h1 em { font-style: normal; color: inherit; }
.st-auth-card > p { margin: 0 0 20px; color: var(--text-2); }
.st-auth-card .st-btn.primary { height: 40px; margin-top: 4px; }
.st-auth-msg { min-height: 20px; margin: 4px 0 0; font-size: 13px; color: #ff9aa4; }
.st-auth-msg.ok { color: var(--mint); }
.st-auth-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; font-size: 12.5px; }
.st-auth-foot button { border: 0; background: none; padding: 0; color: var(--coral-hi); }
.st-legal { padding: 16px; text-align: center; font-size: 12px; color: var(--text-3); }
.st-legal a { color: var(--text-3); margin: 0 8px; }

/* ---- mobile ----------------------------------------------------------------------- */
@media (max-width: 860px) {
  .st-top-inner { flex-wrap: wrap; height: auto; min-height: 56px; gap: 10px; padding: 8px 12px; }
  .st-brand span { display: none; }
  .st-tabs { order: 3; width: 100%; margin-left: 0; align-self: auto; }
  .st-tab { height: 38px; }
  .st-tab { flex: 1; }
  .st-main { padding: 12px; }
  .st-chat { grid-template-columns: 1fr; }
  .st-chat .st-conversation { display: none; }
  .st-chat.show-conversation .st-threads { display: none; }
  .st-chat.show-conversation .st-conversation { display: flex; }
  .st-back { display: inline-flex; }
  .st-messages { padding: 14px 12px 6px; }
  .st-msg { max-width: 92%; }
  .st-head h1 { font-size: 28px; }
  .st-search { width: 100%; }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .st-team-grid { grid-template-columns: 1fr; }
  .st-modal { padding: 0; align-items: stretch; }
  .st-modal-card { grid-template-columns: 1fr; max-height: 100vh; overflow-y: auto; border-radius: 0; gap: 12px; }
  .st-player video { height: auto; width: 100%; max-height: 70vh; margin: 0 auto; }
  .st-episode-info { max-height: none; overflow: visible; padding-right: 0; }
}
.st-ico { display: block; flex: none; }
.st-btn .st-ico { width: 16px; height: 16px; }

/* ---- tiktok ----------------------------------------------------------------------- */
.st-tiktok { display: flex; flex-direction: column; }
.st-tt-account { display: flex; align-items: center; gap: 14px; }
.st-tt-avatar { width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--line-hi); object-fit: cover; }
.st-linkbtn { border: 0; padding: 0; background: none; color: var(--coral-hi); font: inherit; cursor: pointer; }
.st-linkbtn:hover { text-decoration: underline; }
.st-muted { color: var(--text-3); font-size: 12.5px; }
.st-select { height: 34px; padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--line-hi); background: var(--ink-2); color: var(--text); font-size: 12.5px; outline: none; }
.st-select:focus { border-color: var(--coral); }
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--line); overflow: hidden; }
.st-kpis:empty { display: none; }
.st-kpi { padding: 12px 16px; background: var(--ink-2); }
.st-kpi small { display: block; color: var(--text-3); font-size: 11.5px; }
.st-kpi b { display: block; margin-top: 2px; font-size: 20px; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.st-tt-setup { max-width: 640px; }
.st-tt-setup p { margin: 0 0 12px; color: var(--text-2); line-height: 1.55; }
.st-tt-setup .st-linkbox { margin-bottom: 12px; border-style: solid; border-color: var(--line-hi); font-family: ui-monospace, Consolas, monospace; }
.st-tt-setup code { padding: 1px 5px; border-radius: 3px; background: var(--ink); font-size: 12px; }
.st-tt-error { margin-bottom: 14px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid rgba(255, 93, 108, .4); background: rgba(255, 93, 108, .08); color: #ff9aa4; font-size: 12.5px; }
.st-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-2); }
.st-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { position: sticky; top: 0; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--ink-2); color: var(--text-3); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: left; white-space: nowrap; }
.st-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.st-table tbody tr:last-child td { border-bottom: 0; }
.st-table tbody tr:hover td { background: rgba(255, 255, 255, .02); }
.st-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-delta { display: block; color: var(--mint); font-size: 11px; }
.st-tt-cover { width: 52px; }
.st-tt-cover img, .st-tt-cover:empty::before { display: block; width: 40px; height: 71px; border-radius: 3px; object-fit: cover; background: #1c1c21; }
.st-tt-cover:empty::before { content: ""; }
.st-tt-caption { min-width: 240px; max-width: 460px; }
.st-tt-caption b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.st-tt-caption small { display: block; margin-top: 3px; color: var(--text-3); font-size: 11.5px; }
.st-tt-open { width: 1%; }
.st-tt-foot { margin: 10px 2px 0; }
.st-card-tt { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 11.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.st-card-tt span:first-child { color: var(--text); font-weight: 600; }
.st-tt-episode { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.st-tt-episode-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.st-tt-episode-stats small { display: block; color: var(--text-3); font-size: 11px; }
.st-tt-episode-stats b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.st-tt-episode-stats p { margin: 0; }
.st-tt-link-pick { display: flex; flex-direction: column; gap: 5px; color: var(--text-3); font-size: 12px; }
.st-tt-link-pick .st-select { width: 100%; }
@media (max-width: 860px) {
  .st-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-tt-caption { min-width: 180px; }
}
