/* SherifMortgages Social v0.2 — command centre. No external fonts, no inline styles (strict CSP). */
:root {
  --bg: #071a12; --bg2: #0c261c; --pine: #10362a; --pine2: #154232;
  --card: rgba(16, 54, 42, .55); --card-solid: #10362a;
  --line: rgba(255,255,255,.07); --line2: rgba(255,255,255,.13); --line3: rgba(255,255,255,.22);
  --teal: #2bb8a6; --teal-d: #1d8f81; --teal-soft: rgba(43,184,166,.14); --teal-ink: #052a22;
  --gold: #f2b84b; --gold-soft: rgba(242,184,75,.14); --gold-ink: #3a2600;
  --red: #ff6b5e; --red-soft: rgba(255,107,94,.14);
  --text: #f4f7f5; --muted: #a9c4b9; --dim: #6f8f82; --faint: #4e6b5f;
  --r: 18px; --r-sm: 11px; --r-xs: 8px;
  --nav-h: 66px; --safe-b: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "SamsungOne", "Noto Sans", "Noto Sans Arabic", "Segoe UI Arabic", Tahoma, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--text); font-family: var(--font); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; min-height: 100vh;
  background: radial-gradient(1100px 520px at 85% -8%, rgba(43,184,166,.16), transparent 62%), radial-gradient(800px 500px at -10% 108%, rgba(242,184,75,.07), transparent 60%), var(--bg); background-attachment: fixed; }
a { color: var(--teal); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
[dir=rtl], .ar { font-family: "Noto Sans Arabic", "Segoe UI Arabic", "Geeza Pro", Tahoma, var(--font); }
.hidden { display: none !important; }
img { max-width: 100%; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.side { display: none; }
main { min-width: 0; width: 100%; padding: 14px 14px calc(var(--nav-h) + var(--safe-b) + 28px); }
.page { max-width: 1680px; margin: 0 auto; }
.topbar { display: flex; align-items: center; gap: 12px; margin: 6px 2px 14px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; flex: 1; min-width: 120px; font-weight: 760; }
.topbar .sub { color: var(--muted); font-size: 13px; max-width: 70ch; }
.topbar .hd { flex: 1; min-width: 200px; } .topbar .hd h1 { flex: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: none; border: 2px solid rgba(43,184,166,.55); box-shadow: 0 0 0 3px rgba(43,184,166,.14); background: var(--pine); }
.avatar.big { width: 76px; height: 76px; border-width: 3px; box-shadow: 0 0 0 5px rgba(43,184,166,.12), 0 18px 40px -16px rgba(0,0,0,.7); }

.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(7,26,18,.9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); }
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--dim); font-size: 11px; font-weight: 600; position: relative; }
.bottomnav a svg { width: 23px; height: 23px; }
.bottomnav a.on { color: var(--teal); }
.bottomnav a.create { color: var(--gold-ink); }
.bottomnav a.create span.c { width: 48px; height: 48px; border-radius: 16px; background: var(--gold); display: grid; place-items: center; margin-top: -22px; box-shadow: 0 10px 24px rgba(242,184,75,.35), 0 0 0 5px var(--bg); }
.bottomnav a.create span.c svg { width: 24px; height: 24px; }
.bottomnav a.create b { color: var(--gold); font-size: 11px; font-weight: 700; }
.bottomnav a .dot, .side a .dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: var(--gold-ink); font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
.bottomnav a .dot { position: absolute; top: 8px; left: 50%; margin-left: 7px; }

@media (min-width: 1000px) {
  .shell { grid-template-columns: 244px minmax(0, 1fr); }
  .side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; padding: 18px 14px 18px; border-right: 1px solid var(--line); background: linear-gradient(180deg, rgba(12,38,28,.7), rgba(7,26,18,.4)); backdrop-filter: blur(10px); }
  .side .who { display: flex; gap: 12px; align-items: center; padding: 6px 8px 18px; }
  .side .who b { display: block; font-size: 15px; letter-spacing: -.01em; } .side .who span { color: var(--muted); font-size: 12px; display: block; line-height: 1.3; }
  .side .grp { color: var(--faint); font-size: 11.5px; font-weight: 700; padding: 14px 12px 4px; }
  .side a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; position: relative; transition: background .15s, color .15s; }
  .side a:hover { background: rgba(255,255,255,.04); color: var(--text); }
  .side a svg { width: 20px; height: 20px; }
  .side a.on { background: var(--teal-soft); color: var(--text); box-shadow: inset 2px 0 0 var(--teal); }
  .side a.on svg { color: var(--teal); }
  .side a.create { background: linear-gradient(135deg, var(--gold), #e0a02e); color: var(--gold-ink); margin: 6px 0 2px; box-shadow: 0 8px 22px -8px rgba(242,184,75,.6); }
  .side a.create svg { color: var(--gold-ink); }
  .side a.create.on { box-shadow: 0 0 0 2px rgba(242,184,75,.35), 0 8px 22px -8px rgba(242,184,75,.6); }
  .side a .dot { margin-left: auto; }
  .side .foot { margin-top: auto; color: var(--faint); font-size: 12px; padding: 0 10px; }
  .bottomnav { display: none; }
  main { padding: 26px 30px 48px; }
  .topbar h1 { font-size: 28px; }
}
@media (min-width: 1500px) { main { padding: 30px 40px 56px; } }

/* ---------- panes (cards) ---------- */
.card { position: relative; background: linear-gradient(160deg, rgba(20,64,50,.62), rgba(12,38,28,.72)); border: 1px solid var(--line2); border-radius: var(--r); padding: 16px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 24px 50px -36px rgba(0,0,0,.9); }
.card.tap { cursor: pointer; transition: border-color .15s, transform .15s var(--ease); } .card.tap:hover { border-color: var(--line3); } .card.tap:active { transform: scale(.995); }
.card h3 { margin: 0 0 12px; font-size: 15px; color: var(--text); font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: -.005em; }
.card h3 .grow { flex: 1; } .card h3 a, .card h3 .sm { font-size: 12.5px; font-weight: 600; } .card h3 svg { width: 16px; height: 16px; color: var(--teal); }
.card.flat { background: rgba(10,34,25,.5); box-shadow: none; }
.section { margin: 22px 2px 10px; display: flex; align-items: center; gap: 10px; }
.section h2 { font-size: 17px; margin: 0; flex: 1; letter-spacing: -.01em; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .small { font-size: 12.5px; } .tiny { font-size: 11px; } .gold { color: var(--gold); } .teal { color: var(--teal); } .red { color: var(--red); }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 10px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.num { font-variant-numeric: tabular-nums; }
.grid { display: grid; gap: 12px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2w { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
[data-mt] { margin-top: 12px; } [data-mb] { margin-bottom: 12px; }
.empty { text-align: center; padding: 26px 14px; color: var(--muted); }
.empty svg { width: 34px; height: 34px; color: var(--dim); margin-bottom: 6px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
.bento > * { grid-column: span 12; min-width: 0; }
.bento > .c6m { grid-column: span 6; }
@media (min-width: 1000px) {
  .bento { gap: 14px; }
  .bento > .c8 { grid-column: span 8; } .bento > .c4 { grid-column: span 4; } .bento > .c3, .bento > .c6m { grid-column: span 3; } .bento > .c5 { grid-column: span 5; } .bento > .c6 { grid-column: span 6; } .bento > .c7 { grid-column: span 7; } .bento > .c9 { grid-column: span 9; }
}

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 18px; min-height: 330px; border: 1px solid rgba(43,184,166,.28);
  background: radial-gradient(640px 360px at 78% 92%, rgba(43,184,166,.42), transparent 62%), radial-gradient(380px 300px at 86% 20%, rgba(242,184,75,.16), transparent 60%), linear-gradient(135deg, #124634 0%, #0c2e22 48%, #081f17 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 40px 80px -50px rgba(43,184,166,.45); display: flex; flex-direction: column; }
.hero .aurora { position: absolute; inset: -40% -20% -20% 30%; background: conic-gradient(from 200deg at 70% 70%, transparent 0 40%, rgba(43,184,166,.22) 50%, transparent 60%, rgba(242,184,75,.1) 75%, transparent 85%); filter: blur(30px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(5deg) translateY(-12px); } }
.hero .art { position: absolute; right: 2%; bottom: 0; height: 104%; width: 46%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.hero .art::before { content: ""; position: absolute; left: 50%; bottom: 6%; width: 78%; height: 78%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(43,184,166,.55), rgba(43,184,166,.12) 55%, transparent 72%); filter: blur(10px); }
.hero .art::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 74%; height: 34px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(0,0,0,.6), transparent 70%); }
.hero .art img { position: relative; height: 100%; width: auto; max-width: none; object-fit: contain; object-position: bottom; filter: drop-shadow(0 24px 30px rgba(0,0,0,.55)); z-index: 1; }
.hero .halo { position: absolute; left: 50%; bottom: 18%; width: 92%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; border: 1.5px solid rgba(242,184,75,.35); box-shadow: 0 0 0 14px rgba(242,184,75,.045), 0 0 60px rgba(43,184,166,.25) inset; }
.hero .txt { position: relative; z-index: 2; width: 58%; }
.hero .hi { font-size: 14px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; } .hero .hi .nw { white-space: nowrap; }
.hero .clock { font-weight: 760; color: var(--text); letter-spacing: -.02em; font-size: 15px; }
.hero .big { font-size: 30px; font-weight: 790; margin: 6px 0 2px; letter-spacing: -.025em; line-height: 1.1; max-width: 16ch; }
.hero .lead { color: var(--muted); font-size: 14px; max-width: 42ch; margin: 4px 0 0; }
.hero .radar { position: relative; z-index: 2; width: 58%; display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 16px; }
.ring { width: 104px; height: 104px; flex: none; }
.ring .track { stroke: rgba(255,255,255,.08); }
.ring .arc { transition: stroke-dasharray 1s var(--ease); }
.ring text { font-weight: 800; fill: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid var(--line2); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--text); }
.pill.gold { background: var(--gold-soft); border-color: rgba(242,184,75,.4); color: var(--gold); }
.pill.teal { background: var(--teal-soft); border-color: rgba(43,184,166,.4); color: var(--teal); }
.pill.red { background: var(--red-soft); border-color: rgba(255,107,94,.4); color: var(--red); }
.pill svg { width: 15px; height: 15px; }
@media (max-width: 999px) {
  .topbar .desk { display: none; }
  .hero { min-height: 0; padding: 16px 14px 14px; border-radius: 22px; }
  .hero .txt { width: 62%; min-height: 196px; } .hero .big { font-size: 25px; max-width: 12ch; } .hero .lead { font-size: 13px; max-width: 24ch; }
  .hero .hi { font-size: 13px; gap: 6px; }
  .hero .art { width: 44%; right: -3%; top: 0; bottom: auto; height: 224px; align-items: flex-start; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 98%); mask-image: linear-gradient(180deg, #000 62%, transparent 98%); }
  .hero .art img { height: 100%; }
  .hero .art::after { display: none; } .hero .art::before { bottom: 18%; }
  .hero .halo { bottom: 24%; width: 86%; }
  .hero .radar { width: 100%; gap: 12px; padding-top: 10px; }
  .hero .pill.opt { display: none; }
  .ring { width: 78px; height: 78px; }
}
@media (min-width: 1500px) { .hero { min-height: 360px; padding: 26px 26px 22px; } .hero .big { font-size: 34px; } }

/* ---------- stat tiles ---------- */
.tile { padding: 14px 16px 12px; display: flex; flex-direction: column; }
.tile .lab { font-size: 13px; color: var(--muted); font-weight: 650; display: flex; align-items: center; gap: 7px; }
.tile .val { font-size: 30px; font-weight: 800; letter-spacing: -.03em; margin-top: 4px; line-height: 1.1; }
.tile .delta { font-size: 12.5px; font-weight: 700; } .tile .delta.up { color: var(--teal); } .tile .delta.down { color: var(--red); } .tile .delta.flat { color: var(--dim); }
.tile .when { font-size: 11.5px; color: var(--dim); margin-top: 6px; } .tile .when.stale { color: var(--gold); }
.spark { width: 100%; height: 38px; display: block; margin-top: 8px; }
.pdot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.pbar { height: 6px; border-radius: 3px; background: var(--teal); opacity: .85; min-width: 2px; }

/* ---------- next up / timeline strip ---------- */
.strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.strip .day { border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.14); padding: 8px 6px; text-align: center; min-height: 74px; display: flex; flex-direction: column; gap: 4px; color: inherit; }
.strip .day.today { border-color: rgba(43,184,166,.5); background: var(--teal-soft); }
.strip .day .wd { font-size: 11px; color: var(--dim); font-weight: 700; } .strip .day .dn { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.strip .day .ev { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; margin-top: auto; }
.strip .day .ev i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.strip .day:hover { border-color: var(--line3); }
.ev i.ar, .lg.ar { background: var(--gold); } .ev i.en, .lg.en { background: var(--teal); } .ev i.draft { background: transparent; border: 1.5px solid var(--dim); } .ev i.past { background: var(--faint); }
.upnext { display: flex; flex-direction: column; gap: 8px; }
.upnext a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.12); color: inherit; }
.upnext a:hover { border-color: var(--line3); }
.upnext a .grow, .evt .ttl, .rank a .ellipsis, .latest .ellipsis { text-align: left; }
.upnext .t { display: flex; flex-direction: column; min-width: 54px; align-items: center; justify-content: center; border-radius: 10px; background: rgba(255,255,255,.05); padding: 4px 6px; }
.upnext .t b { font-size: 15px; letter-spacing: -.02em; } .upnext .t span { font-size: 10.5px; color: var(--dim); font-weight: 700; }
.lg { display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-weight: 800; color: var(--teal-ink); flex: none; }
.lg.ar { color: var(--gold-ink); }

/* ---------- ranked list ---------- */
.rank { display: flex; flex-direction: column; gap: 10px; }
.rank a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; color: inherit; }
.rank .n { font-size: 20px; font-weight: 800; color: var(--text); letter-spacing: -.02em; text-align: right; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.rank .n i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.rank .m { font-size: 12px; color: var(--dim); margin-top: 1px; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line3); background: rgba(255,255,255,.05); color: var(--text); font-weight: 650; cursor: pointer; white-space: nowrap; transition: border-color .15s, background .15s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { border-color: var(--teal-d); background: rgba(255,255,255,.08); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); } .btn.primary:hover { background: #3cc8b6; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); } .btn.gold:hover { background: #f7c565; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); } .btn.ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn.danger { color: var(--red); border-color: rgba(255,107,94,.35); background: transparent; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; } .btn.sm svg { width: 16px; height: 16px; }
.btn.lg { min-height: 50px; font-size: 16px; border-radius: 14px; padding: 0 20px; }
.btn.block { width: 100%; }
.btn[disabled], .btn[aria-disabled=true] { opacity: .42; cursor: not-allowed; pointer-events: none; }
.iconbtn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255,255,255,.05); display: grid; place-items: center; cursor: pointer; flex: none; color: var(--text); }
.iconbtn svg { width: 20px; height: 20px; } .iconbtn:hover { border-color: var(--line3); }
label.f { display: block; font-size: 13px; color: var(--muted); font-weight: 650; margin: 14px 0 6px; }
label.f:first-child { margin-top: 0; }
input.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(4,17,12,.55); outline: none; font-size: 15px; color: var(--text); }
select.in { appearance: auto; }
textarea.in { min-height: 130px; resize: vertical; line-height: 1.5; }
input.in:focus, select.in:focus, textarea.in:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
input.in::placeholder, textarea.in::placeholder { color: var(--faint); }
.seg { display: flex; padding: 3px; gap: 3px; border-radius: 12px; background: rgba(4,17,12,.55); border: 1px solid var(--line2); flex-wrap: wrap; }
.seg button { flex: 1; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 650; cursor: pointer; font-size: 13.5px; padding: 0 10px; }
.seg button.on { background: var(--pine2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.seg button.on.teal { background: var(--teal); color: var(--teal-ink); }
.seg button.on.gold { background: var(--gold); color: var(--gold-ink); }
.seg button.on.dim { background: #2b3f37; color: #fff; }
.seg button.on.grey { background: #3a4a44; color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 13px; font-weight: 650; cursor: pointer; }
.chip.on { background: var(--teal-soft); color: var(--teal); border-color: var(--teal-d); }
.chip.phone.on { background: var(--gold-soft); color: var(--gold); border-color: rgba(242,184,75,.5); }
.chip.sm { min-height: 26px; padding: 0 9px; font-size: 11.5px; cursor: default; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }
.chip svg { width: 13px; height: 13px; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line2); background: rgba(4,17,12,.5); cursor: pointer; }
.toggle .box { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line3); display: grid; place-items: center; flex: none; }
.toggle .box svg { width: 18px; height: 18px; }
.toggle.on { border-color: var(--teal); background: var(--teal-soft); } .toggle.on .box { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.toggle.locked { opacity: .55; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 750; border: 1px solid var(--line2); color: var(--muted); white-space: nowrap; }
.badge.teal { color: var(--teal); border-color: rgba(43,184,166,.45); background: var(--teal-soft); }
.badge.gold { color: var(--gold); border-color: rgba(242,184,75,.45); background: var(--gold-soft); }
.badge.red { color: var(--red); border-color: rgba(255,107,94,.45); background: var(--red-soft); }
.badge.grey { color: #b9c6c0; border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.06); }
.badge svg { width: 12px; height: 12px; }

/* ---------- tracker ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); margin: 0 2px 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .lm { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); display: inline-block; }
.pair { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pair .gapline { margin-top: auto; }
.pair .head { padding: 12px 14px 10px; display: flex; gap: 10px; align-items: flex-start; }
.pair .head .t { font-weight: 700; font-size: 15px; } .pair .head .t2 { color: var(--muted); font-size: 13.5px; text-align: left; }
.pairs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 1300px) { .pairs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
.seg.narrow { max-width: 420px; }
.pair .date { font-size: 12px; color: var(--dim); white-space: nowrap; }
.mx { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 12px 12px; align-items: center; }
.mx .lang { font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; border: 1px solid var(--line2); border-radius: 7px; padding: 3px 0; }
.mx .ch { font-size: 10px; color: var(--dim); text-align: center; font-weight: 700; letter-spacing: .02em; }
.cell { aspect-ratio: 1; max-height: 54px; border-radius: 12px; border: 1px solid var(--line2); display: grid; place-items: center; cursor: pointer; position: relative; background: rgba(4,17,12,.5); padding: 0; color: var(--dim); }
.cell svg { width: 18px; height: 18px; }
.cell.posted { background: var(--teal-soft); border-color: rgba(43,184,166,.55); color: var(--teal); }
.cell.skipped { border-style: dashed; color: var(--dim); background: transparent; }
.cell.phone { background: var(--gold-soft); border-color: rgba(242,184,75,.55); color: var(--gold); }
.cell.pending { color: var(--dim); }
.cell.unknown { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); color: #7c8d86; font-weight: 800; font-size: 14px; }
.cell.missing { background: var(--red-soft); border-color: var(--red); color: var(--red); animation: pulse 1.8s ease-in-out infinite; }
.cell.phone.due { animation: pulseg 2.2s ease-in-out infinite; }
.cell .nolink { position: absolute; right: 3px; top: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.cell[data-mini] { width: 18px; height: 18px; border-radius: 6px; display: inline-grid; animation: none; vertical-align: middle; font-size: 10px; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,107,94,.45); } 50% { box-shadow: 0 0 0 5px rgba(255,107,94,0); } }
@keyframes pulseg { 0%,100% { box-shadow: 0 0 0 0 rgba(242,184,75,.35); } 50% { box-shadow: 0 0 0 5px rgba(242,184,75,0); } }
.gapline { padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12.5px; display: flex; gap: 8px; flex-wrap: wrap; background: rgba(0,0,0,.12); }
.gapline.ok { color: var(--teal); }
.dots { display: inline-flex; gap: 3px; align-items: center; }
.dots i { width: 10px; height: 10px; border-radius: 3px; display: inline-grid; place-items: center; font-size: 7px; font-weight: 900; font-style: normal; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #7c8d86; }
.dots i.posted { background: var(--teal); border-color: var(--teal); } .dots i.missing { background: var(--red); border-color: var(--red); } .dots i.phone { background: var(--gold); border-color: var(--gold); }
.dots i.skipped { background: transparent; border-style: dashed; } .dots i.pending { background: transparent; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; gap: 12px; align-items: flex-start; }
.item .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(255,255,255,.05); border: 1px solid var(--line2); }
.item .ico svg { width: 20px; height: 20px; }
.item .ico.gold { background: var(--gold-soft); color: var(--gold); border-color: rgba(242,184,75,.4); }
.item .ico.teal { background: var(--teal-soft); color: var(--teal); border-color: rgba(43,184,166,.4); }
.item .ttl { font-weight: 650; }
.check { width: 30px; height: 30px; border-radius: 10px; border: 2px solid var(--line3); background: transparent; display: grid; place-items: center; cursor: pointer; flex: none; color: transparent; }
.check.on { background: var(--teal); border-color: var(--teal); color: var(--teal-ink); }
.check svg { width: 18px; height: 18px; }
.done .ttl { text-decoration: line-through; color: var(--dim); }
.bubble { padding: 10px 12px; border-radius: 14px; background: rgba(4,17,12,.5); border: 1px solid var(--line2); margin-top: 8px; white-space: pre-wrap; }
.bubble.me { background: var(--teal-soft); border-color: rgba(43,184,166,.35); }

/* ---------- findings ---------- */
.find { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 5px; }
.find li { font-size: 13px; display: flex; gap: 7px; align-items: flex-start; padding: 7px 10px; border-radius: 10px; }
.find li.error { background: var(--red-soft); color: #ffc9c3; } .find li.warn { background: var(--gold-soft); color: #ffe2a8; } .find li.ok { background: var(--teal-soft); color: #bff3ea; }
.find li svg { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.counter { font-size: 11.5px; color: var(--dim); text-align: right; margin-top: 4px; }
.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; min-height: 36px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-weight: 650; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.tab.on { background: var(--pine2); color: var(--text); border-color: var(--teal-d); }
.tab .st { width: 8px; height: 8px; border-radius: 50%; }
.st.error { background: var(--red); } .st.warn { background: var(--gold); } .st.ok { background: var(--teal); }

/* ---------- media ---------- */
.drop { border: 1.5px dashed var(--line3); border-radius: 14px; padding: 14px; display: flex; gap: 12px; align-items: center; cursor: pointer; background: rgba(4,17,12,.4); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--teal); background: var(--teal-soft); }
.drop video { width: 58px; height: 84px; object-fit: cover; border-radius: 9px; background: #000; flex: none; }
.drop video.r45 { height: 72px; }
.drop .ph { width: 58px; height: 84px; border-radius: 9px; border: 1px solid var(--line2); display: grid; place-items: center; color: var(--dim); flex: none; font-size: 11px; font-weight: 800; }
.drop .ph.r45 { height: 72px; }
.drop.big { flex-direction: column; justify-content: center; text-align: center; padding: 26px 16px; gap: 6px; min-height: 150px; }
.drop.big svg { width: 34px; height: 34px; color: var(--teal); }
.drop.big b { font-size: 16px; }
.meta { font-size: 12px; color: var(--muted); }
.progress { height: 4px; background: var(--line2); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.progress i { display: block; height: 100%; background: var(--teal); width: 0; transition: width .2s; }
code.cmd { display: block; white-space: pre-wrap; word-break: break-all; font-size: 11.5px; background: #04110c; border: 1px solid var(--line); padding: 10px; border-radius: 10px; color: #bff3ea; margin-top: 6px; }

/* file cards in the studio */
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin-top: 12px; }
.fcard { border: 1px solid var(--line2); border-radius: 14px; padding: 10px 40px 10px 10px; background: rgba(4,17,12,.45); display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; }
.fcard video { width: 54px; height: 78px; object-fit: cover; border-radius: 8px; background: #000; }
.fcard video.r45 { height: 68px; } .fcard video.r0 { height: 54px; }
.fcard .nm { font-weight: 650; font-size: 13px; }
.fcard .seg { margin-top: 6px; } .fcard .seg button { min-height: 28px; font-size: 12px; padding: 0 6px; }
.fcard .ratio { font-size: 11px; font-weight: 800; color: var(--teal); }
.fcard .ratio.bad { color: var(--red); }
.fcard .x { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 8px; }
.fcard .x svg { width: 14px; height: 14px; }
.fcard { position: relative; }
.fcard .guess { font-size: 11px; color: var(--dim); margin-top: 2px; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 700; font-size: 12px; padding: 8px 6px; border-bottom: 1px solid var(--line2); white-space: nowrap; cursor: pointer; }
.tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.r, .tbl th.r { text-align: right; }
.tbl tr:last-child td { border-bottom: 0; }
.scrollx { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }

/* ---------- chart ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart .grid line { stroke: var(--line2); stroke-width: 1; }
.chart text { fill: var(--dim); font-size: 10.5px; }
.chart .ln { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) { .chart text { font-size: 15px; } }

/* ---------- sheet / drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(2,10,7,.66); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease; backdrop-filter: blur(3px); }
.sheet { width: 100%; max-width: 680px; max-height: 92vh; overflow-y: auto; background: #0d2a1f; border: 1px solid var(--line3); border-bottom: 0; border-radius: 22px 22px 0 0; padding: 8px 16px calc(20px + var(--safe-b)); animation: up .22s var(--ease); box-shadow: 0 -20px 60px rgba(0,0,0,.5); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line3); margin: 4px auto 10px; }
.sheet .sh { display: flex; align-items: center; gap: 10px; position: sticky; top: -8px; background: #0d2a1f; padding: 6px 0 10px; z-index: 2; }
.sheet .sh h2 { margin: 0; font-size: 18px; flex: 1; letter-spacing: -.01em; }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sheet .actions .btn { flex: 1; }
.sticky-bottom { position: sticky; bottom: calc(-20px - var(--safe-b)); background: #0d2a1f; border-top: 1px solid var(--line); margin: 16px -16px calc(-20px - var(--safe-b)); padding: 12px 16px calc(16px + var(--safe-b)); }
@media (min-width: 1000px) {
  .scrim { align-items: center; } .sheet { border-radius: 22px; border-bottom: 1px solid var(--line3); max-height: 88vh; }
  .scrim.drawer { align-items: stretch; justify-content: flex-end; }
  .scrim.drawer .sheet { max-width: 600px; max-height: 100vh; height: 100vh; border-radius: 0; border: 0; border-left: 1px solid var(--line3); animation: inright .25s var(--ease); padding: 14px 24px 28px; }
  .scrim.drawer .sheet .grab { display: none; }
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes inright { from { transform: translateX(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 80; background: #e9fff9; color: #052a22; padding: 11px 16px; border-radius: 12px; font-weight: 650; font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); max-width: 92vw; animation: up .2s ease; }
.toast.err { background: #ffe1dd; color: #5a0d06; }
@media (min-width: 1000px) { .toast { bottom: 24px; } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: 100%; max-width: 400px; padding: 28px 24px; text-align: center; }
.login h1 { margin: 14px 0 2px; font-size: 24px; letter-spacing: -.02em; }
.login .brandline { color: var(--muted); font-size: 13px; }
.login label.f, .login .btn { text-align: left; } .login .btn { justify-content: center; }
.brandmark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--teal), #137e70); display: grid; place-items: center; font-weight: 800; color: var(--bg); font-size: 15px; box-shadow: 0 6px 18px rgba(43,184,166,.3); flex: none; }

/* ---------- settings ---------- */
.conn { display: flex; gap: 12px; align-items: flex-start; }
.conn .logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; color: #fff; }
.envlist { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.envlist span { font-size: 11px; font-family: ui-monospace, Menlo, Consolas, monospace; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line2); color: var(--dim); }
.envlist span.ok { color: var(--teal); border-color: rgba(43,184,166,.4); }
.off { position: relative; }
.off::after { content: "Switched off"; position: absolute; top: 12px; right: 12px; font-size: 11px; font-weight: 800; color: var(--gold); border: 1px solid rgba(242,184,75,.5); border-radius: 6px; padding: 2px 6px; }

/* ---------- library ---------- */
.lib { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 700px) { .lib { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .lib { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1500px) { .lib { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.vcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; color: inherit; }
.cover { position: relative; aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 12px; overflow: hidden; isolation: isolate; }
.cover::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 14px); mix-blend-mode: overlay; }
.cover::after { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: linear-gradient(180deg, transparent, rgba(4,17,12,.75)); }
.cover.cv0 { background: radial-gradient(120% 90% at 100% 0%, rgba(43,184,166,.55), transparent 55%), linear-gradient(160deg, #15503c, #0a2a1f); }
.cover.cv1 { background: radial-gradient(110% 80% at 0% 0%, rgba(242,184,75,.45), transparent 55%), linear-gradient(160deg, #1b4a3a, #0c261c); }
.cover.cv2 { background: radial-gradient(100% 100% at 50% 110%, rgba(43,184,166,.5), transparent 60%), linear-gradient(200deg, #0f3d2f, #071a12); }
.cover.cv3 { background: radial-gradient(90% 70% at 100% 100%, rgba(242,184,75,.35), transparent 60%), radial-gradient(80% 60% at 0% 0%, rgba(43,184,166,.35), transparent 60%), linear-gradient(160deg, #123b2d, #0a2219); }
.cover.cv4 { background: radial-gradient(100% 80% at 30% 0%, rgba(29,143,129,.6), transparent 60%), linear-gradient(160deg, #0d3528, #0b2a1f); }
.cover.cv5 { background: radial-gradient(100% 80% at 80% 20%, rgba(242,184,75,.28), transparent 55%), linear-gradient(200deg, #174b39, #081f17); }
.cover .play { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(4,17,12,.5); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; z-index: 1; }
.cover .play svg { width: 16px; height: 16px; margin-left: 2px; }
.cover .ttl { position: relative; z-index: 1; font-size: 21px; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; text-shadow: 0 2px 14px rgba(0,0,0,.5); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cover .ttl.ar { font-size: 20px; }
.cover .ttl2 { position: relative; z-index: 1; font-size: 13px; color: rgba(255,255,255,.75); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover .langs { position: absolute; top: 12px; left: 12px; display: flex; gap: 5px; z-index: 1; }
.vcard .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.vcard .views { font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.vcard .views small { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.vcard .plat { display: flex; flex-wrap: wrap; gap: 4px; }
.vcard .plat span { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: rgba(255,255,255,.06); color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.vcard .foot { display: flex; align-items: center; justify-content: space-between; gap: 4px 8px; font-size: 11.5px; color: var(--dim); flex-wrap: wrap; }
.vcard .foot .row { flex: none; gap: 6px; flex-wrap: wrap; }
@media (max-width: 699px) { .vcard .dots i { width: 8px; height: 8px; font-size: 6px; } .vcard .dots { gap: 2px; } }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters .seg { flex: none; } .filters .seg button { flex: none; }
.cover.mini { aspect-ratio: 4 / 5; width: 40px; border-radius: 9px; padding: 0; justify-content: center; align-items: center; flex: none; color: rgba(255,255,255,.85); }
.cover.mini svg { width: 16px; height: 16px; position: relative; z-index: 1; margin-left: 2px; }
.cover.mini::after { display: none; }
.cover.hero-cover { aspect-ratio: 16 / 7; border-radius: 16px; }
.bigviews b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 13.5px; }
.kv b { color: var(--muted); font-weight: 650; }

/* ---------- studio (composer) ---------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
@media (min-width: 1100px) { .studio { grid-template-columns: minmax(0, 1fr) 400px; } .studio .plan { position: sticky; top: 20px; } }
@media (min-width: 1500px) { .studio { grid-template-columns: minmax(0, 1fr) 440px; gap: 18px; } }
.step { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; }
.step .no { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-soft); color: var(--teal); border: 1px solid rgba(43,184,166,.4); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.step .no.done { background: var(--teal); color: var(--teal-ink); }
.step h3 { margin: 0; font-size: 16px; }
.step .hint { font-size: 12.5px; color: var(--dim); }
.langcols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 760px) { .langcols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.langcol { border: 1px solid var(--line2); border-radius: 14px; padding: 12px; background: rgba(4,17,12,.3); }
.langcol .lh { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-weight: 700; }
.langcol textarea.in { min-height: 120px; }
.ptabs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ptab { border: 1px solid var(--line); border-radius: 12px; background: rgba(4,17,12,.35); overflow: hidden; }
.ptab > button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: transparent; border: 0; color: var(--text); text-align: left; font-weight: 650; font-size: 13.5px; }
.ptab > button .st { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.ptab > button .tag { margin-left: auto; font-size: 11px; color: var(--dim); font-weight: 600; }
.ptab .pb { padding: 0 12px 12px; }
.ptab textarea.in { min-height: 100px; font-size: 14px; }
.plan .card { position: relative; }
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.mcal .wd { text-align: center; font-size: 11px; color: var(--dim); font-weight: 700; padding: 4px 0; }
.mcal button { aspect-ratio: 1.25; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font-weight: 600; font-size: 13px; position: relative; display: grid; place-items: center; }
.mcal button:hover { background: rgba(255,255,255,.06); }
.mcal button.out { color: var(--faint); }
.mcal button.today { border-color: rgba(43,184,166,.5); }
.mcal button.sel { background: var(--teal); color: var(--teal-ink); }
.mcal button.sel2 { background: var(--gold); color: var(--gold-ink); }
.mcal button.sel.sel2 { background: linear-gradient(135deg, var(--gold) 50%, var(--teal) 50%); color: #052a22; }
.mcal button i { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 5px; height: 5px; border-radius: 50%; background: var(--dim); }
.mcal button.sel i, .mcal button.sel2 i { background: rgba(0,0,0,.4); }
.mcal button.busy i { background: var(--gold); }
.mcal button.past { opacity: .4; }
.mhead { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mhead b { flex: 1; text-align: center; font-size: 14px; }
.sugg { display: flex; flex-direction: column; gap: 7px; }
.sugg button { text-align: left; border: 1px solid var(--line2); background: rgba(4,17,12,.4); border-radius: 12px; padding: 9px 12px; color: var(--text); display: flex; flex-direction: column; gap: 2px; }
.sugg button:hover { border-color: var(--teal-d); }
.sugg button b { font-size: 13.5px; } .sugg button span { font-size: 11.5px; color: var(--dim); line-height: 1.35; }
.sugg button .w { color: var(--teal); font-weight: 700; font-size: 12.5px; }
.approve-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.approve-row .btn { flex-direction: column; gap: 1px; min-height: 60px; line-height: 1.2; white-space: normal; text-align: center; }
.approve-row .btn small { font-weight: 600; font-size: 11px; opacity: .8; }
.okline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 6px 0; }
.okline svg { width: 14px; height: 14px; }
.okline.err { color: #ffc9c3; } .okline.ok { color: var(--teal); }
.timegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .timegrid.one { grid-template-columns: minmax(0, 1fr); }
.timegrid .lgtag { font-size: 12px; font-weight: 700; margin-bottom: 4px; }

/* ---------- calendar page ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal .wd { font-size: 11.5px; color: var(--dim); font-weight: 700; text-align: center; padding: 4px 0; }
.cal .d { min-height: 64px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0,0,0,.14); padding: 6px; position: relative; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.cal .d.out { opacity: .45; } .cal .d.today { border-color: rgba(43,184,166,.55); background: var(--teal-soft); } .cal .d.sel { border-color: var(--gold); }
.cal .d.over { border-color: var(--teal); background: rgba(43,184,166,.2); border-style: dashed; }
.cal .d .n { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal .d.today .n { color: var(--teal); }
.cal .ev { display: flex; flex-wrap: wrap; gap: 3px; }
.cal .ev i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal .evt { display: none; }
@media (min-width: 1000px) {
  .cal { gap: 6px; }
  .cal .d { min-height: 118px; padding: 8px; }
  .cal .ev { display: none; }
  .cal .evt { display: flex; flex-direction: column; gap: 4px; }
}
.evt a, .evt .pst { display: flex; align-items: center; gap: 6px; padding: 4px 7px; border-radius: 7px; font-size: 11.5px; font-weight: 650; color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); min-width: 0; }
.evt a.ar { background: rgba(242,184,75,.16); border-color: rgba(242,184,75,.4); } .evt a.en { background: rgba(43,184,166,.16); border-color: rgba(43,184,166,.4); }
.evt a.draft { border-style: dashed; }
.evt a[draggable=true] { cursor: grab; } .evt a.dragging { opacity: .4; }
.evt a .tm { font-weight: 800; color: inherit; flex: none; font-size: 11px; }
.evt a .ttl, .evt .pst .ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evt .pst { color: var(--muted); background: rgba(0,0,0,.18); }
.evt .pst svg { width: 11px; height: 11px; color: var(--teal); flex: none; }
.daylist { margin-top: 12px; }
.week { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 1000px) { .week { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.week .wcol { border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.14); padding: 8px; min-height: 60px; }
.week .wcol.today { border-color: rgba(43,184,166,.55); }
.week .wcol.over { border-color: var(--teal); border-style: dashed; }
.week .wcol .wh { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; } .week .wcol .wh b { font-size: 16px; letter-spacing: -.02em; } .week .wcol .wh span { font-size: 11.5px; color: var(--dim); font-weight: 700; }
.week .evt { display: flex; }
.week .evt a, .week .evt .pst { font-size: 12.5px; padding: 6px 8px; }
.callegend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 10px 2px 0; }
.callegend span { display: inline-flex; gap: 6px; align-items: center; }
.callegend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.callegend i.ar { background: var(--gold); } .callegend i.en { background: var(--teal); } .callegend i.past { background: var(--faint); } .callegend i.draft { border: 1.5px solid var(--dim); }

/* latest videos rows */
.latest { display: flex; flex-direction: column; gap: 10px; }
.latest a { display: flex; gap: 12px; align-items: center; color: inherit; }
.latest .meta2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; align-items: center; }
/* ---------- misc ---------- */
.note { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.note.gold { color: #ffe2a8; background: var(--gold-soft); border-color: rgba(242,184,75,.3); }
.note.teal { color: #bff3ea; background: var(--teal-soft); border-color: rgba(43,184,166,.3); }
.note svg { width: 13px; height: 13px; vertical-align: -2px; }
.fab { position: fixed; right: 18px; bottom: calc(var(--nav-h) + var(--safe-b) + 16px); z-index: 25; width: 56px; height: 56px; border-radius: 18px; border: 0; background: var(--gold); color: var(--gold-ink); display: grid; place-items: center; box-shadow: 0 10px 26px rgba(242,184,75,.35); cursor: pointer; }
.fab svg { width: 26px; height: 26px; }
@media (min-width: 1000px) { .fab { display: none; } }
.row.wrap > .grow { min-width: 210px; }
.inline-ic svg { width: 14px; height: 14px; vertical-align: -2px; }
.summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.summary .s { border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.14); padding: 10px 12px; color: inherit; display: block; }
.summary .s b { font-size: 19px; font-weight: 800; letter-spacing: -.03em; display: block; line-height: 1.1; }
.summary .s span { font-size: 12px; color: var(--dim); }

.wsteps { margin: 14px 0 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.wsteps li::marker { color: var(--teal); font-weight: 800; }
.copyrow { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 12px; background: #0a2219; }
.copyrow code { display: block; font-size: 12.5px; color: #bff3ea; word-break: break-all; margin-top: 2px; }

.cover img.thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cover.has-thumb::before { display: none; }

.login .remember { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.85); cursor: pointer; user-select: none; }
.login .remember input { width: 18px; height: 18px; accent-color: #2bb8a6; margin: 0; }
