/* Creator Hero phone app: the desktop Overview made responsive (colours of app/ui/dashboard.css), with more craft. */
:root {
  --bg: #1f2130; --head: rgba(30,32,46,.92); --card: #262839; --card-hi: #2b2d40; --card2: #2a2c3f; --ctl: #23253447; --ctlbg: #232535; --line: #34374d; --line2: #3a3d55;
  --text: #f5f6fa; --muted: #9a9db3; --soft: #c9cbdb; --blue: #2d8cf0; --blue2: #4aa3ff; --green: #3ecf8e;
  --pink: #f0308f; --purple: #a43be0; --teal: #12c6c9; --amber: #f5b840;
  --hh: 60px; --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px -12px rgba(0,0,0,.55);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
/* Nothing may move sideways: clip horizontal overflow, no rubber-band, dark behind everything. */
html, body { margin: 0; padding: 0; width: 100%; max-width: 100%; overflow-x: hidden; background: var(--bg); color: var(--text);
  overscroll-behavior: none; touch-action: manipulation; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font: 15px/1.45 var(--font); font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh;
  background: radial-gradient(120% 60% at 0% 0%, #26294000 0%, #1f2130 60%), var(--bg); }
body.locked { position: fixed; left: 0; right: 0; overflow: hidden; }
img, svg { max-width: 100%; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s; }
button:active { transform: scale(.98); }
/* iOS zooms on focus below 16px. */
input, select, textarea { font-size: 16px !important; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* ---------- fixed header ---------- */
.top { position: fixed; top: 0; left: 0; right: 0; z-index: 40; display: flex; align-items: center; gap: 10px;
  height: calc(var(--hh) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) calc(14px + env(safe-area-inset-right)) 0 calc(8px + env(safe-area-inset-left));
  background: var(--head); border-bottom: 1px solid rgba(255,255,255,.06); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
.hb { flex: none; width: 42px; height: 42px; border: 0; border-radius: 10px; background: none; color: #fff; display: flex; align-items: center; justify-content: center; padding: 0; }
.hb:active { background: rgba(255,255,255,.06); }
.hb svg.i { width: 24px; height: 24px; }
.top-logo { width: 30px; height: 30px; border-radius: 8px; flex: none; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.sp { flex: 1 1 auto; min-width: 0; }
.tz { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; font-size: 13.5px; font-weight: 500; white-space: nowrap; color: var(--soft); }
.acc { flex: none; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px 0 4px; border: 1px solid var(--line2); border-radius: 10px; background: var(--ctlbg); }
.acc .av { width: 30px; height: 30px; font-size: 13px; }
.main { padding: calc(var(--hh) + env(safe-area-inset-top) + 18px) calc(16px + env(safe-area-inset-right)) calc(32px + env(safe-area-inset-bottom)) calc(16px + env(safe-area-inset-left));
  width: 100%; max-width: 720px; margin: 0 auto; min-width: 0; }
.fade { animation: fade .22s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- popovers / account dropdown ---------- */
.shade { position: fixed; inset: 0; z-index: 44; background: transparent; }
.shade.dim { background: rgba(8,9,15,.6); z-index: 49; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.acc-pop { position: fixed; z-index: 45; top: calc(var(--hh) + env(safe-area-inset-top) + 8px); left: calc(16px + env(safe-area-inset-left)); right: calc(16px + env(safe-area-inset-right));
  background: var(--card-hi); border: 1px solid var(--line2); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.55); max-width: 420px; margin-left: auto; animation: pop .16s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.acc-card { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); margin-bottom: 6px; min-width: 0; }
.acc-card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.acc-card small { color: var(--muted); font-size: 12.5px; }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-size: 15px; text-align: left; }
.mrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow:hover, .mrow:active { background: rgba(255,255,255,.05); }
.mrow svg.i { color: var(--muted); }

/* ---------- drawer ---------- */
.drawer { position: fixed; z-index: 50; top: 0; bottom: 0; left: 0; width: min(300px, 84vw); background: #22243a; border-right: 1px solid rgba(255,255,255,.06);
  padding: calc(env(safe-area-inset-top) + 14px) 14px calc(env(safe-area-inset-bottom) + 14px) calc(14px + env(safe-area-inset-left));
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; transform: translateX(-105%); transition: transform .26s cubic-bezier(.2,.8,.2,1);
  scrollbar-width: thin; scrollbar-color: #4a4d66 transparent; box-shadow: 20px 0 60px rgba(0,0,0,.4); }
.drawer::-webkit-scrollbar { width: 4px; } .drawer::-webkit-scrollbar-thumb { background: #4a4d66; border-radius: 2px; }
.drawer.open { transform: none; }
.dr-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; margin: 2px 0 16px; min-width: 0; letter-spacing: -.01em; }
.dr-brand img { width: 34px; height: 34px; border-radius: 9px; }
.dr-brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-brand small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; }
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--ctlbg); margin-bottom: 12px; min-width: 0; }
.search:focus-within { border-color: var(--blue); }
.search svg.i { color: var(--muted); }
.search input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; height: 100%; padding: 0; }
.cpick { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 12px; background: var(--card-hi); text-align: left; margin-bottom: 8px; min-width: 0; box-shadow: var(--shadow); }
.cpick b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 15.5px; }
.cpick svg.i { color: var(--muted); }
.clist { border: 1px solid var(--line2); border-radius: 12px; background: var(--card); overflow: hidden; margin-bottom: 8px; }
.clist .search { margin: 8px; }
.clist-sc { max-height: 46vh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.crow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 12px; border: 0; background: none; text-align: left; font-size: 15px; min-width: 0; }
.crow > span:not(.av):not(.ck) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crow.on { background: rgba(45,140,240,.12); } .crow:hover { background: rgba(255,255,255,.05); }
.ck { flex: none; width: 20px; height: 20px; border-radius: 5px; border: 2px solid #5a5e78; display: flex; align-items: center; justify-content: center; }
.ck.on { background: var(--blue); border-color: var(--blue); }
.ck svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ck.part { background: var(--blue); border-color: var(--blue); } .ck.part::after { content: ""; width: 10px; height: 2px; background: #fff; border-radius: 1px; }
.nav { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.nav-t { color: #6f7390; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 8px 14px 4px; }
.nav button { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border: 0; border-radius: 10px; background: none; color: var(--soft); font-size: 15.5px; font-weight: 500; text-align: left; }
.nav button:hover { background: rgba(255,255,255,.05); }
.nav button.on { background: linear-gradient(180deg, #3796f5, #2483e6); color: #fff; box-shadow: 0 6px 18px -6px rgba(45,140,240,.7); }
.av { flex: none; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; color: #fff; background: var(--blue); position: relative; }
.av.sm { width: 28px; height: 28px; font-size: 12px; }
.av.all { background: linear-gradient(135deg, #4a4d66, #34374d); }

/* ---------- overview ---------- */
.greet-row { display: flex; align-items: flex-start; gap: 12px; margin: 2px 0 16px; min-width: 0; }
.greet { flex: 1; min-width: 0; font-size: 25px; font-weight: 700; line-height: 1.18; letter-spacing: -.02em; overflow-wrap: anywhere; min-height: 30px; margin: 0; }
.greet small { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.bell { flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line2); background: var(--ctlbg); display: flex; align-items: center; justify-content: center; color: var(--soft); position: relative; }
.bell .on-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--ctlbg); }
.ctrls { display: grid; grid-template-columns: 42px minmax(0,1fr) 42px; gap: 8px; margin: 0 0 16px; min-width: 0; position: relative; }
.ctrls .r1 { grid-column: 1 / -1; display: flex; gap: 8px; min-width: 0; }
.ctrls .r1 .ctl.grow1 { flex: 1 1 auto; justify-content: space-between; padding: 0 12px 0 14px; }
.ctrls > .ctl { width: auto; }
.ctl { height: 42px; border: 1px solid var(--line2); border-radius: 10px; background: var(--ctlbg); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; font-size: 14.5px; font-weight: 500; white-space: nowrap; min-width: 0; }
.ctl.sq { flex: none; width: 40px; padding: 0; }
.ctl.grow1 { flex: 1 1 0; }
.ctl.open { border-color: var(--blue); }
.ctl .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ctl:disabled { color: #5c5f78; }
.ctl.spin svg { animation: spin .8s linear infinite; } @keyframes spin { to { transform: rotate(360deg); } }
.card { background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid rgba(255,255,255,.04); border-radius: 16px; padding: 18px; margin: 0 0 14px; min-width: 0; box-shadow: var(--shadow); }
.kgrid { display: grid; grid-template-columns: 1fr; gap: 0; }
.spark { display: block; width: 100%; height: 96px; margin-bottom: 10px; }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.15; min-height: 35px; overflow-wrap: anywhere; letter-spacing: -.02em; }
.kpi .l { color: var(--muted); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.kpi .l svg.i { width: 15px; height: 15px; opacity: .7; }
.donut-wrap { position: relative; width: 190px; height: 190px; margin: 6px auto 12px; }
.donut { display: block; width: 100%; height: 100%; }
.donut-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.donut-c b { font-size: 20px; letter-spacing: -.02em; } .donut-c small { color: var(--muted); font-size: 12px; }
.btile { border-radius: 10px; border-left: 4px solid; padding: 11px 14px; margin-top: 10px; min-width: 0; display: flex; align-items: center; gap: 10px; }
.btile > div { flex: 1; min-width: 0; }
.btile .v { font-size: 18px; font-weight: 650; letter-spacing: -.01em; } .btile .l { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.btile .pct { flex: none; color: var(--soft); font-size: 13px; font-weight: 600; }
.b-pink { border-color: var(--pink); background: linear-gradient(90deg, rgba(240,48,143,.16), rgba(240,48,143,.05)); }
.b-purple { border-color: var(--purple); background: linear-gradient(90deg, rgba(164,59,224,.18), rgba(164,59,224,.05)); }
.b-teal { border-color: var(--teal); background: linear-gradient(90deg, rgba(18,198,201,.15), rgba(18,198,201,.04)); }
.ch-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ch-h .t { color: var(--muted); font-size: 14px; font-weight: 500; } .ch-h .v { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--soft); font-size: 13px; margin-bottom: 8px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.chart { display: block; width: 100%; height: 180px; }
.chart text { fill: #7f839c; font-size: 10px; font-family: var(--font); }
.nodata { color: var(--muted); font-size: 12.5px; text-align: center; padding: 4px 0 0; }
.sec-t { font-size: 21px; font-weight: 700; letter-spacing: -.02em; margin: 26px 2px 12px; }
.sec-ctl { display: flex; gap: 8px; margin: 0 0 12px; min-width: 0; position: relative; }
.ddpop { position: absolute; z-index: 30; top: 48px; left: 0; width: min(300px, 78vw); background: var(--card-hi); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.55); overflow: hidden; animation: pop .16s ease; }
.ddpop .search { margin: 8px; }
.ddpop .clist-sc { max-height: 320px; }

/* Tables scroll sideways INSIDE their card only; the page never moves. */
.tcard { background: var(--card); border: 1px solid rgba(255,255,255,.04); border-radius: 16px; margin: 0 0 12px; min-width: 0; overflow: hidden; box-shadow: var(--shadow); }
.tscroll { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: #4a4d66 transparent; }
.tscroll::-webkit-scrollbar { height: 4px; } .tscroll::-webkit-scrollbar-thumb { background: #4a4d66; border-radius: 2px; }
table.t { border-collapse: collapse; width: max-content; min-width: 100%; font-size: 14px; }
table.t th { color: #8b8fa8; font-weight: 500; font-size: 12.5px; text-align: left; padding: 14px 12px; white-space: normal; line-height: 1.25; min-width: 96px; max-width: 120px; vertical-align: middle; user-select: none; }
table.t th.srt { cursor: pointer; } table.t th.on { color: #fff; }
table.t th .ar { opacity: .7; margin-left: 2px; }
table.t td { padding: 0 12px; height: 60px; border-top: 1px solid var(--line); white-space: nowrap; font-weight: 500; font-variant-numeric: tabular-nums; }
table.t .first { position: sticky; left: 0; z-index: 1; background: var(--card); width: 172px; min-width: 172px; max-width: 172px; padding-left: 14px; box-shadow: 8px 0 12px -10px rgba(0,0,0,.6); }
table.t td.first > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
table.t td.first span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.t tr.tot td { font-weight: 700; background: rgba(255,255,255,.02); }
table.t tr.tot td.first { background: #2a2c3e; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin: 8px 0 8px; font-size: 14px; color: var(--soft); }
.pager select { height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--ctlbg); padding: 0 8px; }
.pager .pn { display: flex; gap: 8px; width: 100%; justify-content: center; }
.pager .pn .ctl { padding: 0 16px; }
.hint { color: var(--muted); font-size: 13px; margin: 8px 2px 0; line-height: 1.5; }
.updated { color: var(--muted); font-size: 12.5px; margin: -4px 2px 12px; display: flex; align-items: center; gap: 6px; }
.updated i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }

/* ---------- date picker panel ---------- */
.dp { position: absolute; z-index: 30; top: 100px; left: 0; right: 0; max-width: 360px; margin: 0 auto; background: var(--card-hi); border: 1px solid var(--line2); border-radius: 14px; padding: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: pop .16s ease; }
.dp-pre-b { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 10px; background: var(--card); font-size: 15.5px; }
.dp-pre-b span { flex: 1; text-align: left; } .dp-pre-b svg.i { color: var(--muted); }
.dp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.dp-grid button { height: 42px; border: 1px solid var(--line2); border-radius: 9px; background: var(--card); font-size: 14px; font-weight: 500; }
.dp-grid button.on { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: #fff; background: rgba(45,140,240,.1); }
.dp-sel { color: var(--muted); font-size: 13.5px; margin: 14px 0 2px; }
.dp-big { font-size: 22px; font-weight: 700; margin-bottom: 10px; overflow-wrap: anywhere; letter-spacing: -.02em; } .dp-big small { color: var(--muted); font-size: 12.5px; font-weight: 600; margin-left: 6px; letter-spacing: 0; }
.dp-mh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-weight: 700; }
.dp-mh button { width: 36px; height: 36px; border: 1px solid var(--line2); border-radius: 9px; background: none; display: flex; align-items: center; justify-content: center; }
.dp-mh button:disabled { opacity: .3; }
.dp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; text-align: center; }
.dp-cal .wd { color: var(--muted); font-size: 12.5px; padding: 6px 0; }
.dp-cal button { height: 38px; border: 0; border-radius: 9px; background: none; font-size: 14px; padding: 0; font-variant-numeric: tabular-nums; }
.dp-cal button.out { color: #6c6f86; } .dp-cal button:disabled { color: #45485e; }
.dp-cal button.in { background: rgba(45,140,240,.16); border-radius: 0; }
.dp-cal button.edge { background: rgba(45,140,240,.35); border-radius: 9px; }
.dp-cal button.today { background: var(--blue); color: #fff; border-radius: 9px; }
.dp-hint { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 8px; min-height: 18px; }

/* ---------- purchases + notifications pages ---------- */
.pg-t { font-size: 25px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 6px; }
.pg-s { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--soft); font-size: 13px; font-weight: 500; margin: 0 2px 12px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(62,207,142,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(62,207,142,0); } 100% { box-shadow: 0 0 0 0 rgba(62,207,142,0); } }
.list { background: var(--card); border: 1px solid rgba(255,255,255,.04); border-radius: 16px; overflow: hidden; margin-bottom: 12px; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); min-width: 0; min-height: 64px; }
.row:first-child { border-top: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.grow b, .grow small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grow b { font-weight: 600; font-size: 15px; } .grow small { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.amt { flex: none; font-weight: 700; font-size: 15.5px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.daysep { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 10px 14px 6px; background: rgba(255,255,255,.02); border-top: 1px solid var(--line); }
.daysep:first-child { border-top: 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; }
.t-ppv { background: rgba(45,140,240,.18); color: #7cc0ff; } .t-tip { background: rgba(245,184,64,.16); color: #ffd46b; } .t-paid_sub { background: rgba(62,207,142,.16); color: #5fe0a5; }
.t-free_sub { background: rgba(255,255,255,.08); color: #c9cbdb; } .t-renewal { background: rgba(164,59,224,.18); color: #e19cff; }
.empty { color: var(--muted); text-align: center; padding: 28px 12px; }
.ns-hero { display: flex; align-items: center; gap: 14px; }
.ns-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.06); color: var(--soft); }
.ns-ic.on { background: rgba(62,207,142,.15); color: var(--green); }
.ns-ic svg.i { width: 24px; height: 24px; }
.ns-hero b { display: block; font-size: 16px; } .ns-hero small { color: var(--muted); font-size: 13px; }
.trow { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--line); min-width: 0; cursor: pointer; }
.trow:first-child { border-top: 0; } .trow.dim { opacity: .45; }
.trow .tic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.sw { flex: none; width: 48px; height: 29px; border-radius: 15px; background: #44475e; position: relative; transition: background .18s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 23px; height: 23px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.3); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.sw.on { background: var(--green); } .sw.on::after { transform: translateX(19px); }
.minrow { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border-top: 1px solid var(--line); min-width: 0; }
.minbox { flex: none; display: flex; align-items: center; height: 42px; border-radius: 10px; border: 1px solid var(--line2); background: var(--ctlbg); padding: 0 10px; width: 104px; }
.minbox span { color: var(--muted); margin-right: 4px; }
.minbox input { width: 100%; min-width: 0; border: 0; background: none; outline: none; padding: 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border: 0; border-radius: 12px; background: linear-gradient(180deg, #3796f5, #2483e6); color: #fff; font-size: 16px; font-weight: 600; margin: 14px 0 0; box-shadow: 0 8px 20px -8px rgba(45,140,240,.8); }
.btn.ghost { background: var(--card2); border: 1px solid var(--line2); color: var(--soft); box-shadow: none; } .btn:disabled { opacity: .5; }
.btn-row { display: flex; gap: 8px; } .btn-row .btn { flex: 1; min-width: 0; font-size: 15px; }
.ios { background: rgba(45,140,240,.08); border: 1px solid rgba(45,140,240,.3); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--soft); margin-top: 12px; line-height: 1.55; }
.ios b { color: #fff; }
.sec { color: #8b8fa8; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 22px 4px 8px; }

/* Skeletons reserve the real height so nothing jumps when data arrives. */
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, #2a2c3e 0%, #34364b 50%, #2a2c3e 100%); background-size: 200% 100%; animation: sk 1.2s linear infinite; color: transparent !important; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: 4px 0; }

.gate { text-align: center; padding: 40px 20px; }
.gate img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.gate h2 { margin: 18px 0 6px; font-size: 22px; } .gate p { color: var(--muted); margin: 0 0 20px; }
.keyin { width: 100%; height: 50px; border-radius: 12px; border: 1px solid var(--line2); background: var(--ctlbg); padding: 0 14px; outline: none; text-align: center; letter-spacing: .04em; }
.keyin:focus { border-color: var(--blue); }
body.gated .hb, body.gated .acc { visibility: hidden; }
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 20px); transform: translateX(-50%); z-index: 60; max-width: calc(100vw - 32px); width: max-content;
  background: #34374d; color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,.5); text-align: center; overflow-wrap: anywhere; animation: pop .16s ease; }
.toast.err { background: #7a2633; }
.demo { background: rgba(245,184,64,.1); color: #ffd46b; border: 1px solid rgba(245,184,64,.35); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin: 0 0 14px; }
@media (max-width: 370px) { .tz { padding: 0 8px; font-size: 12.5px; } .tz svg.i { display: none; } .greet { font-size: 22px; } .kpi .v { font-size: 27px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
