/* Studioul lui Emily — design high-tech (dark, roz neon + cyan). Fonturile sunt găzduite pe server. */
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("/static/fonts/space-grotesk-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0100-02AF, U+0218-021B, U+1E00-1EFF, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #07070B; --bg-2: #0B0B12; --card: #0E0E15; --card-2: #15151F; --line: #23233A; --line-2: #30304D;
  --ink: #ECECF4; --muted: #8C8CA8; --dim: #5E5E7A;
  --pink: #FF3CA0; --pink-soft: rgba(255,60,160,.12); --cyan: #3CE8FF; --cyan-soft: rgba(60,232,255,.10);
  --green: #3CFF9B; --green-soft: rgba(60,255,155,.10); --yellow: #FFD23C; --yellow-soft: rgba(255,210,60,.10);
  --red: #FF4D5E; --red-soft: rgba(255,77,94,.12);
  --plum: var(--pink); --plum-2: var(--pink); --rose: var(--pink); --rose-soft: var(--pink-soft); --cream: var(--bg);
  --radius: 14px; --shadow: 0 0 0 1px var(--line); --glow-pink: 0 0 0 1px rgba(255,60,160,.55), 0 0 24px rgba(255,60,160,.18);
  --glow-cyan: 0 0 0 1px rgba(60,232,255,.5), 0 0 24px rgba(60,232,255,.15);
  --tab-h: 64px;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: var(--sans); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { font-size: 15px; line-height: 1.5;
  background-image: radial-gradient(1200px 600px at 85% -10%, rgba(255,60,160,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(60,232,255,.06), transparent 60%),
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px, 32px 32px; background-attachment: fixed; }
a { color: var(--cyan); }
button, input, select, textarea { font: inherit; color: inherit; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 13px; margin: 22px 0 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
h3 { font-size: 15px; margin: 4px 0 8px; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, code { font-family: var(--mono); }
code { background: var(--card-2); padding: 1px 6px; border-radius: 6px; color: var(--cyan); }
.hidden { display: none !important; }
.loading { padding: 40px; text-align: center; color: var(--muted); font-family: var(--mono); font-size: 13px; }
.loading::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--pink); }
@keyframes blink { 50% { opacity: 0; } }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

/* ── schelet ── */
#app { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
#sidebar { display: none; }
#topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: rgba(7,7,11,.82); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 15; }
#topbar .clock { font-family: var(--mono); font-size: 14px; color: var(--cyan); letter-spacing: .04em; }
#topbar .clock small { color: var(--dim); margin-left: 6px; }
#topbar .sys { font-family: var(--mono); font-size: 12px; color: var(--muted); display: flex; gap: 12px; align-items: center; text-decoration: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); margin-right: 6px; vertical-align: middle; }
.dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.yellow { background: var(--yellow); box-shadow: 0 0 8px var(--yellow); }
.dot.red { background: var(--red); box-shadow: 0 0 8px var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
#mainwrap { min-width: 0; display: flex; flex-direction: column; }
#main { min-width: 0; padding: 18px 16px calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); max-width: 1280px; width: 100%; margin: 0 auto; }
#tabbar { position: fixed; bottom: 0; left: 0; right: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: rgba(11,11,18,.94); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; z-index: 20; }
#tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
  color: var(--muted); text-decoration: none; font-size: 11px; position: relative; }
#tabbar a .ico { font-size: 20px; line-height: 1; }
#tabbar a.active { color: var(--pink); }
#tabbar a.active::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.badge { background: var(--pink); color: #000; border-radius: 999px; font-size: 10px; padding: 1px 6px; font-weight: 700; font-family: var(--mono); }
#tabbar .badge { position: absolute; top: 8px; right: calc(50% - 22px); }

@media (min-width: 960px) {
  #app { grid-template-columns: 248px minmax(0, 1fr); }
  #tabbar { display: none; }
  #sidebar { display: flex; flex-direction: column; gap: 1px; background: var(--bg-2); border-right: 1px solid var(--line);
    padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
  #sidebar .brand { padding: 2px 10px 16px; }
  #sidebar .brand b { font-size: 17px; letter-spacing: -.01em; display: block;
    background: linear-gradient(90deg, var(--pink), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
  #sidebar .brand small { display: block; color: var(--muted); font-size: 12px; font-family: var(--mono); }
  #sidebar .grp { font-size: 10.5px; letter-spacing: .18em; color: var(--dim); padding: 14px 12px 6px; font-weight: 600; }
  #sidebar a { color: #C9C9DA; text-decoration: none; padding: 8px 12px; border-radius: 10px; display: flex; gap: 10px; align-items: center; font-size: 14px;
    border: 1px solid transparent; transition: background .15s, border-color .15s; }
  #sidebar a:hover { background: var(--card-2); }
  #sidebar a.active { background: var(--pink-soft); border-color: rgba(255,60,160,.45); color: #fff; }
  #sidebar a.active span:first-child { filter: drop-shadow(0 0 6px var(--pink)); }
  #sidebar .spacer { flex: 1; min-height: 12px; }
  #sidebar .ai { font-family: var(--mono); font-size: 11px; color: var(--muted); padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; }
  #sidebar .ai b { color: var(--cyan); font-weight: 600; }
  #main { padding: 26px 32px 48px; }
}

/* ── componente ── */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { word-break: break-word; }
.eyebrow { font-family: var(--mono); font-size: 11px; color: var(--pink); letter-spacing: .2em; text-transform: uppercase; }
.card { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--line-2); }
.card.glow { box-shadow: var(--glow-pink); border-color: transparent; }
.card.tight { padding: 12px; }
.grid { display: grid; gap: 12px; }
.grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: 1fr 1fr; } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid.c4 { grid-template-columns: repeat(4, 1fr); } }
.stat { font-family: var(--mono); font-size: 28px; font-weight: 600; color: var(--ink); }
.kpi { position: relative; overflow: hidden; }
.kpi .lbl { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.kpi .val { font-family: var(--mono); font-size: 32px; font-weight: 600; line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.kpi .sub { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi .up { color: var(--green); } .kpi .down { color: var(--red); }
.kpi::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent, rgba(255,60,160,.22)), transparent 70%); }
.kpi.cyan { --accent: rgba(60,232,255,.2); } .kpi.cyan .val { color: var(--cyan); }
.kpi.pink .val { color: var(--pink); }
@media (min-width: 700px) { .kpi .val { font-size: 40px; } }
@media (min-width: 960px) { .kpi .val { font-size: 48px; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.legend .ev { display: inline-block; margin: 0; }
.stack > * + * { margin-top: 8px; }

.btn { border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; background: var(--pink); color: #0A0006; font-weight: 700; cursor: pointer;
  min-height: 44px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: box-shadow .15s, transform .1s; }
.btn:hover { box-shadow: 0 0 20px rgba(255,60,160,.45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }
.btn.secondary { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(60,232,255,.35); }
.btn.secondary:hover { box-shadow: 0 0 18px rgba(60,232,255,.3); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--pink); box-shadow: none; }
.btn.danger { background: var(--red); color: #fff; }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }

label { display: block; font-size: 12px; color: var(--muted); margin: 12px 0 5px; letter-spacing: .02em; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(60,232,255,.15); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--pink); }
label:has(> input[type=checkbox]), label:has(> input[type=radio]) { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 14px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--pink-soft); color: var(--pink);
  white-space: nowrap; font-family: var(--mono); border: 1px solid rgba(255,60,160,.25); }
.pill.red { background: var(--red-soft); color: var(--red); border-color: rgba(255,77,94,.35); }
.pill.yellow { background: var(--yellow-soft); color: var(--yellow); border-color: rgba(255,210,60,.3); }
.pill.green { background: var(--green-soft); color: var(--green); border-color: rgba(60,255,155,.3); }
.pill.grey { background: var(--card-2); color: var(--muted); border-color: var(--line-2); }
.pill.cyan { background: var(--cyan-soft); color: var(--cyan); border-color: rgba(60,232,255,.3); }
.svc { font-weight: 700; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--pink); color: #000; font-family: var(--mono); }
.svc.IE { background: var(--cyan); }

.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 6px -16px 14px; padding: 0 16px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 12px; white-space: nowrap; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; font-size: 14px; }
.tabs a.active { color: var(--ink); border-color: var(--pink); }

.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 84vw); gap: 12px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
@media (min-width: 960px) { .kanban { grid-auto-columns: 270px; } }
.kcol { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; scroll-snap-align: start; min-height: 120px; }
.kcol h4 { margin: 2px 4px 10px; font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; letter-spacing: .14em; text-transform: uppercase; }
.kcol.late h4 { color: var(--red); } .kcol.today h4 { color: var(--pink); }
.kcard { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 8px; cursor: pointer; display: block; color: inherit; text-decoration: none; }
.kcard:hover { border-color: var(--pink); }
.kcard b { display: block; }

.list-item { display: flex; gap: 10px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
table.t td.num { font-family: var(--mono); text-align: right; }
.scroll-x { overflow-x: auto; }

.alert-red { border-left: 3px solid var(--red); }
.alert-yellow { border-left: 3px solid var(--yellow); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--pink-soft); color: #FFD3EA; margin-bottom: 12px; border: 1px solid rgba(255,60,160,.3); }
.notice.red { background: var(--red-soft); color: #FFC4CA; border-color: rgba(255,77,94,.4); }
.notice.yellow { background: var(--yellow-soft); color: #FFE9A8; border-color: rgba(255,210,60,.35); }
.notice.green { background: var(--green-soft); color: #B8FFD9; border-color: rgba(60,255,155,.35); }

/* matricea de permisiuni */
.matrix { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.matrix th { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 8px 4px; text-align: center; position: sticky; top: 0; background: var(--card); }
.matrix th:first-child, .matrix td:first-child { text-align: left; padding-left: 8px; }
.matrix td { padding: 6px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.matrix tr.grp td { font-size: 10.5px; letter-spacing: .18em; color: var(--pink); padding-top: 14px; border-bottom: 0; }
.matrix input[type=radio] { width: 18px; height: 18px; }
.lvl-0 { color: var(--dim); } .lvl-1 { color: var(--cyan); } .lvl-2 { color: #9EF; } .lvl-3 { color: var(--pink); } .lvl-4 { color: var(--green); }

/* script */
.script-lv { border-top: 3px solid var(--pink); }
.scene { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.scene .svgbox svg { width: 70px; border-radius: 6px; }
.quote { background: var(--bg-2); border-left: 2px solid var(--cyan); border-radius: 8px; padding: 8px 10px; font-style: italic; }
.check-ok { color: var(--green); } .check-bad { color: var(--red); }
.diff-add { background: rgba(60,255,155,.15); } .diff-del { background: rgba(255,77,94,.15); text-decoration: line-through; }

/* chat */
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 58vh; overflow-y: auto; padding: 4px; }
.msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--pink); color: #0A0006; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.refused { border: 1px solid var(--red); }
.msg.agentie { align-self: center; background: var(--yellow-soft); font-size: 13px; }
.chat-input { display: flex; gap: 8px; margin-top: 10px; position: sticky; bottom: calc(var(--tab-h) + 8px); background: var(--bg); padding: 6px 0; }
@media (min-width: 960px) { .chat-input { bottom: 0; } }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.chip { border: 1px solid var(--line-2); background: var(--card-2); border-radius: 999px; padding: 6px 12px; font-size: 13px; white-space: nowrap; cursor: pointer; color: var(--ink); }
.chip:hover, .chip.on { border-color: var(--cyan); color: var(--cyan); }
a.chip { text-decoration: none; display: inline-block; }

/* storyboard + telefon */
.storyboard { display: grid; grid-auto-flow: column; grid-auto-columns: 130px; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.sb-card { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; font-size: 12px; }
.sb-card svg { width: 100%; border-radius: 6px; }
.sb-card.product { outline: 2px solid var(--pink); }
.phone { width: 230px; border-radius: 28px; background: #000; padding: 10px; color: #fff; flex: none; box-shadow: var(--glow-cyan); }
.phone .screen { border-radius: 20px; overflow: hidden; background: #000; position: relative; }
.phone .screen svg { width: 100%; display: block; opacity: .9; }
.phone .overlay { position: absolute; left: 10px; right: 46px; bottom: 12px; font-size: 11px; text-shadow: 0 1px 2px #000; }
.phone .label { display: inline-block; background: rgba(255,255,255,.2); border-radius: 4px; padding: 1px 6px; font-size: 10px; margin-bottom: 4px; }
.phones { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; }

/* calendar */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font-size: 10.5px; color: var(--muted); text-align: center; letter-spacing: .12em; text-transform: uppercase; }
.cal .day { background: var(--card); border: 1px solid var(--line); border-radius: 8px; min-height: 90px; padding: 4px; font-size: 11px; overflow: hidden; }
.cal .day .n { font-family: var(--mono); color: var(--muted); }
.cal .day.other { opacity: .35; } .cal .day.today { border-color: var(--pink); box-shadow: var(--glow-pink); }
.ev { display: block; padding: 3px 6px; border-radius: 5px; margin-top: 3px; background: var(--pink-soft); color: #FFB3DA; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; line-height: 1.35; }
.ev:hover { filter: brightness(1.25); }
.ev.IE { background: var(--cyan-soft); color: var(--cyan); }
.ev.task { background: var(--yellow-soft); color: var(--yellow); }
.ev.prov { border: 1px dashed currentColor; background: transparent; }
.cal .ev { font-size: 11px; }
@media (max-width: 699px) { .cal-month { display: none; } }
@media (min-width: 700px) { .cal-list { display: none; } }

/* ticker */
.ticker { overflow: hidden; white-space: nowrap; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); padding: 8px 0; margin-bottom: 14px; font-family: var(--mono); font-size: 13px; }
.ticker .track { display: inline-block; padding-left: 100%; animation: tick 60s linear infinite; }
.ticker span { margin-right: 36px; color: var(--muted); } .ticker span b { color: var(--cyan); font-weight: 500; }
@keyframes tick { to { transform: translateX(-100%); } }
.bar { height: 6px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--cyan)); }
.score { font-family: var(--mono); font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--card-2); }
.score.hi { color: var(--green); } .score.mid { color: var(--yellow); } .score.lo { color: var(--red); }

/* modal + toast */
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 700px) { #modal { align-items: center; } }
.modal-card { background: var(--card); border: 1px solid var(--line-2); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 18px 18px 0 0;
  padding: 22px 18px calc(20px + env(safe-area-inset-bottom)); position: relative; box-shadow: var(--glow-pink); }
.modal-card.wide { max-width: 980px; }
@media (min-width: 700px) { .modal-card { border-radius: 18px; } }
.modal-x { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; }
#toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 20px + env(safe-area-inset-bottom)); background: var(--card-2); color: var(--ink);
  border: 1px solid var(--cyan); padding: 10px 16px; border-radius: 10px; opacity: 0; transition: opacity .2s; z-index: 60; max-width: 90vw; pointer-events: none; box-shadow: var(--glow-cyan); }
#toast.show { opacity: 1; }

/* login */
.login { max-width: 400px; margin: 10vh auto; }
.login .logo { width: 68px; height: 68px; border-radius: 20px; background: linear-gradient(135deg, var(--pink), var(--cyan)); color: #000; display: grid; place-items: center;
  font-size: 30px; margin: 0 auto 16px; box-shadow: var(--glow-pink); font-weight: 700; }
.qr svg { width: 200px; height: 200px; display: block; margin: 8px auto; background: #fff; padding: 8px; border-radius: 10px; }
.install-hint { font-size: 13px; }
pre.stream { white-space: pre-wrap; font-size: 11px; max-height: 160px; overflow: auto; background: var(--bg-2); padding: 8px; border-radius: 8px; color: var(--muted); font-family: var(--mono); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .ticker .track { padding-left: 0; }
}
