/* QuantumFloww portal — Apple-style light UI (system font, grouped white cards, one accent colour, pill buttons) */
:root {
  --bg: #f5f5f7; --card: #fff; --ink: #1d1d1f; --mut: #6e6e73; --dim: #86868b;
  --line: rgba(0, 0, 0, .08); --fill: rgba(118, 118, 128, .12); --fill2: rgba(118, 118, 128, .2);
  --cy: #0071e3; --cy2: #2997ff; --navy: #0b1b3f; --green: #1d8a3e; --amber: #b25e00; --red: #d70015; --vi: #6e4bd8; --pink: #b62a74; --violet: #8b7cff;
  --glass: #fff; --glass2: var(--fill);
  --r: 20px; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 28px rgba(0, 0, 0, .05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Inter, Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.47; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; }
a { color: var(--cy); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; }
h2 { font-size: 19px; line-height: 1.25; font-weight: 600; letter-spacing: -.018em; }
h3 { font-size: 15px; font-weight: 600; }
.mut { color: var(--mut); } .dim { color: var(--dim); } .sm { font-size: 13.5px; } .xs { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; } .wrap { flex-wrap: wrap; } .between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; } .stack { display: flex; flex-direction: column; gap: 16px; }
.hide { display: none !important; } .trunc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:focus-visible { outline: 3px solid rgba(0, 113, 227, .35); outline-offset: 2px; }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px; }
.card.tight { padding: 16px; }
.card.click { cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.card.click:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0, 0, 0, .05), 0 14px 36px rgba(0, 0, 0, .09); }
.card .card { box-shadow: none; background: var(--bg); }

button { font: inherit; color: inherit; cursor: pointer; letter-spacing: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; border: 0; background: var(--fill); color: var(--ink);
  min-height: 38px; padding: 8px 16px; border-radius: 980px; font-weight: 500; font-size: 14.5px; transition: background .15s, transform .1s; }
.btn:hover { background: var(--fill2); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn.pri { background: var(--cy); color: #fff; }
.btn.pri:hover { background: #0077ed; }
.btn.ok { background: rgba(52, 199, 89, .16); color: var(--green); }
.btn.ghost { background: transparent; color: var(--cy); }
.btn.s { min-height: 30px; padding: 5px 12px; font-size: 13px; }
.btn.block { width: 100%; min-height: 46px; font-size: 16px; }
.btn svg { width: 16px; height: 16px; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--fill); border: 1px solid transparent; border-radius: 12px; padding: 11px 13px; width: 100%; outline: none; letter-spacing: inherit; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, select:focus, textarea:focus { background: #fff; border-color: var(--cy); box-shadow: 0 0 0 4px rgba(0, 113, 227, .15); }
textarea { resize: vertical; min-height: 88px; }
label.f { display: block; font-size: 13px; color: var(--mut); margin-bottom: 6px; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; background: var(--fill); color: var(--mut); white-space: nowrap; border: 0; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.plain::before { display: none; }
.pill.cy { color: var(--cy); background: rgba(0, 113, 227, .1); }
.pill.gr { color: var(--green); background: rgba(52, 199, 89, .15); }
.pill.am { color: var(--amber); background: rgba(255, 149, 0, .15); }
.pill.rd { color: var(--red); background: rgba(255, 59, 48, .12); }
.pill.vi { color: var(--vi); background: rgba(139, 124, 255, .15); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dim); flex: none; }
.dot.gr { background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, .18); } .dot.am { background: #ff9500; box-shadow: 0 0 0 4px rgba(255, 149, 0, .18); }

.av { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; flex: none; background: linear-gradient(145deg, #e9eef7, #d8e2f2); display: grid; place-items: center; font-weight: 600; color: var(--navy); }
.av.s { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; }
.av.l { width: 60px; height: 60px; border-radius: 16px; font-size: 20px; }
.av.xl { width: 96px; height: 96px; font-size: 34px; }
.av.round { border-radius: 50%; }
.av svg { width: 16px; height: 16px; }

/* shell */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 22px 14px; display: flex; flex-direction: column; gap: 2px; background: rgba(255, 255, 255, .72); border-right: 1px solid var(--line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 20px; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; font-size: 16px; letter-spacing: -.02em; }
.brand span { font-size: 12px; color: var(--mut); }
.nav { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14.5px; border: 0; background: none; text-align: left; width: 100%; }
.nav svg { width: 19px; height: 19px; flex: none; color: var(--cy); }
.nav:hover { background: var(--fill); }
.nav.on { background: var(--cy); color: #fff; }
.nav.on svg { color: #fff; }
.badge { margin-left: auto; background: #ff3b30; color: #fff; border-radius: 980px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.nav.on .badge { background: #fff; color: var(--cy); }
.side .foot { margin-top: auto; padding: 0 4px; }
.main { padding: 40px 44px 80px; max-width: 1200px; width: 100%; min-width: 0; margin: 0 auto; }
.col { min-width: 0; }
.top, .tabs { display: none; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 26px; flex-wrap: wrap; }
.head p { color: var(--mut); margin-top: 6px; font-size: 17px; letter-spacing: -.015em; }
.lock { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--mut); background: var(--fill); padding: 5px 12px; border-radius: 980px; }
.lock svg { width: 12px; height: 12px; }

.grid { display: grid; gap: 16px; }
.grid > *, .inv-wrap > *, .rvbody > *, .chatwrap > * { min-width: 0; }
.g4 { grid-template-columns: repeat(4, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g2 { grid-template-columns: repeat(2, 1fr); } .g21 { grid-template-columns: 1.6fr 1fr; }
.stat .k { font-size: 13px; color: var(--mut); }
.stat .v { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin-top: 6px; }
.stat .d { font-size: 13px; color: var(--mut); margin-top: 4px; }
.hero { background: linear-gradient(140deg, #071230 0%, #0c2a63 55%, #0b63c4 130%); color: #fff; }
.hero .k, .hero .d, .hero .mut { color: rgba(255, 255, 255, .72); }
.hero .bar { background: rgba(255, 255, 255, .2); } .hero .bar i { background: #6ad7ff; }
.up { color: var(--green); }

.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); min-height: 48px; }
.li:first-child { border-top: 0; }
.li.click { cursor: pointer; margin: 0 -10px; padding-left: 10px; padding-right: 10px; border-radius: 12px; }
.li.click:hover { background: var(--fill); border-top-color: transparent; }
.li.click:hover + .li { border-top-color: transparent; }
.bar { height: 6px; border-radius: 99px; background: var(--fill); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--cy); transition: width .5s; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { min-height: 34px; padding: 6px 14px; border-radius: 980px; border: 0; background: var(--fill); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.chip.on { background: var(--ink); color: #fff; }

.chart { width: 100%; height: auto; display: block; margin-top: 8px; }
.chart text { fill: var(--dim); font-size: 10px; font-family: var(--font); }
.chart .val { fill: var(--ink); font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.track div { font-size: 12px; color: var(--dim); font-weight: 500; padding-top: 8px; border-top: 3px solid var(--fill2); }
.track div.on { color: var(--ink); border-color: var(--cy); }
.track div.now { color: var(--cy); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--mut); font-weight: 400; padding: 8px 10px; }
.tbl td { padding: 12px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl .r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(0, 0, 0, .025); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.kan { display: grid; grid-template-columns: repeat(5, minmax(190px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: rgba(0, 0, 0, .035); border-radius: 16px; padding: 10px; min-height: 120px; }
.kcol h3 { display: flex; justify-content: space-between; color: var(--mut); padding: 4px 6px 10px; font-size: 13px; }
.lead { background: #fff; border-radius: 12px; padding: 12px; margin-bottom: 8px; box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }

/* sheets */
.ov { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .32); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); display: grid; place-items: center; padding: 20px; animation: fade .2s; }
.sheet { width: min(620px, 100%); max-height: 90vh; overflow: auto; background: #fff; border-radius: 22px; padding: 26px; box-shadow: 0 30px 90px rgba(0, 0, 0, .28); animation: pop .28s cubic-bezier(.2, .9, .3, 1); }
.sheet.wide { width: min(980px, 100%); }
.sheet .x { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--fill); color: var(--mut); display: grid; place-items: center; flex: none; }
.ov.still, .ov.still .sheet { animation: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }

/* chat */
.thread { display: flex; flex-direction: column; gap: 6px; max-height: 300px; overflow-y: auto; padding: 4px 2px; }
.thread.tall { max-height: none; height: min(48vh, 420px); }
.bub { align-self: flex-start; max-width: 78%; background: #e9e9eb; border-radius: 18px 18px 18px 5px; padding: 8px 13px; font-size: 15px; overflow-wrap: anywhere; }
.bub.me { align-self: flex-end; background: var(--cy); color: #fff; border-radius: 18px 18px 5px 18px; }
.bub.me a { color: #fff; text-decoration: underline; }
.bub .who { color: var(--mut); font-weight: 600; } .bub.me .who { display: none; }
.bub .when { color: var(--dim); margin-top: 1px; font-size: 11px; } .bub.me .when { color: rgba(255, 255, 255, .75); }
.ev { align-self: center; text-align: center; font-size: 12px; color: var(--dim); padding: 3px 10px; }
.chatwrap { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.plist { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.pitem { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; border: 0; background: none; text-align: left; min-width: 0; }
.pitem .pl { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitem:hover { background: var(--fill); }
.pitem.on { background: var(--cy); color: #fff; } .pitem.on .mut, .pitem.on .dim { color: rgba(255, 255, 255, .8); }
.script { white-space: pre-wrap; background: var(--fill); border-radius: 12px; padding: 12px 14px; margin-top: 6px; font-size: 14px; max-height: 190px; overflow-y: auto; overflow-wrap: anywhere; }

/* leaderboard */
.lb .rank { width: 30px; font-size: 26px; font-weight: 700; color: var(--dim); text-align: center; letter-spacing: -.03em; }
.lb.first .rank { color: #d4a017; }
.lb .v { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.mini { margin-top: 18px; gap: 8px; }
.mini > div { background: var(--bg); border-radius: 14px; padding: 12px; }
.mini b { display: block; font-size: 18px; letter-spacing: -.02em; } .mini span { font-size: 12px; color: var(--mut); }

#toasts { position: fixed; z-index: 90; left: 50%; transform: translateX(-50%); bottom: 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { background: rgba(29, 29, 31, .92); color: #fff; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-radius: 16px; padding: 12px 18px; font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); animation: pop .3s cubic-bezier(.2, .9, .3, 1); }
.toast b { color: #64d2ff; font-weight: 600; }

/* sign in */
.signin { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, #dfeeff, transparent 70%); }
.signin .box { width: min(440px, 100%); padding: 36px 32px; border-radius: 28px; box-shadow: 0 2px 6px rgba(0, 0, 0, .04), 0 30px 80px rgba(11, 27, 63, .12); }
.signin .logo { width: 76px; height: 76px; border-radius: 14px; }
.signin h1 { font-size: 30px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--fill); border-radius: 10px; padding: 2px; gap: 0; }
.seg button { border: 0; background: none; min-height: 34px; padding: 6px 4px; border-radius: 8px; font-weight: 500; color: var(--ink); font-size: 14px; }
.seg button.on { background: #fff; font-weight: 600; box-shadow: 0 1px 4px rgba(0, 0, 0, .14), 0 0 0 .5px rgba(0, 0, 0, .04); }
.who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.who button { border: 2px solid transparent; background: var(--fill); border-radius: 14px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink); min-width: 0; }
.who button.on { border-color: var(--cy); background: rgba(0, 113, 227, .08); }
.who button span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proto { font-size: 12.5px; color: var(--mut); background: var(--fill); border-radius: 12px; padding: 10px 14px; }

/* invoice paper (invoice-generator layout) */
.inv-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 284px; gap: 20px; align-items: start; }
.inv-side { position: sticky; top: 20px; }
.paper { background: #fff; color: var(--ink); border-radius: 24px; padding: 46px 46px 40px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 50px rgba(0, 0, 0, .08); font-size: 14px; max-width: 880px; }
.paper input, .paper textarea { background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 8px; padding: 7px 9px; font: inherit; width: 100%; box-shadow: none; transition: background .15s, border-color .15s, box-shadow .15s; }
.paper input:hover, .paper textarea:hover { background: #f5f5f7; }
.paper input:focus, .paper textarea:focus { background: #fff; border-color: var(--cy); box-shadow: 0 0 0 4px rgba(0, 113, 227, .14); outline: 0; }
.paper textarea { min-height: 72px; resize: vertical; line-height: 1.45; display: block; }
.paper .pmeta textarea, .paper .pbot textarea, .paper tbody td:first-child input { margin-left: -10px; width: calc(100% + 10px); }
.paper .pmeta textarea { min-height: 104px; }
.paper .ptop { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.paper .plogo { width: 112px; height: 112px; border-radius: 12px; }
.paper input.b { font-weight: 600; } .paper td input.r { text-align: right; }
.paper .pt { text-align: right; }
.paper .ptitle { font-size: 46px; font-weight: 700; letter-spacing: -.035em; line-height: 1; }
.paper .pnum { color: var(--mut); margin-top: 8px; font-variant-numeric: tabular-nums; }
.paper .pnum input { text-align: right; width: 180px; color: var(--mut); margin-right: -10px; }
.paper .pt .pill { margin-top: 8px; }
.paper .pmeta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 206px; gap: 22px; margin-top: 40px; }
.paper .pre { white-space: pre-line; overflow-wrap: anywhere; color: var(--mut); line-height: 1.5; } .paper .pre::first-line { color: var(--ink); font-weight: 600; }
.paper .lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.paper .kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; align-content: start; }
.paper .kv span { color: var(--mut); white-space: nowrap; }
.paper .kv input, .paper .kv b { text-align: right; font-weight: 600; } .paper .kv b { padding: 6px 0; }
.paper table { width: 100%; border-collapse: collapse; margin-top: 38px; }
.paper thead th { text-align: left; padding: 0 9px 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1.5px solid var(--ink); }
.paper thead th:first-child { padding-left: 0; } .paper .cq { width: 72px; } .paper .cr { width: 100px; }
.paper tbody td { padding: 7px 0; vertical-align: top; border-bottom: 1px solid var(--line); }
.paper .r, .paper thead th.r { text-align: right; }
.paper .auto { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--cy); background: rgba(0, 113, 227, .1); border-radius: 5px; padding: 1px 6px; margin-left: 8px; vertical-align: middle; }
.paper .ro { padding: 8px 9px; } .paper .sub { color: var(--dim); font-size: 12px; padding: 0 9px 4px; margin-top: -4px; }
.paper td:first-child .ro, .paper td:first-child .sub { padding-left: 0; }
.paper .addl { color: var(--cy); background: rgba(0, 113, 227, .08); border: 0; border-radius: 980px; padding: 7px 15px; font-size: 13px; font-weight: 500; margin-top: 12px; cursor: pointer; }
.paper .addl:hover { background: rgba(0, 113, 227, .14); }
.paper .rm { border: 0; background: none; color: #b0b7c3; font-size: 17px; padding: 6px; cursor: pointer; } .paper .rm:hover { color: var(--red); }
.paper .pbot { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 36px; margin-top: 32px; }
.paper .tot { display: grid; grid-template-columns: 1fr 120px; gap: 4px 8px; align-items: center; padding: 0 18px; }
.paper .tot span { color: var(--mut); } .paper .tot b, .paper .tot input { text-align: right; } .paper .tot b { padding: 6px 0; } .paper .tot input { margin-right: -10px; }
.paper .due { display: flex; justify-content: space-between; align-items: center; background: var(--navy); color: #fff; border-radius: 16px; padding: 16px 18px; margin-top: 14px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.paper .due span { color: #c9d6f2; } .paper .due b { font-size: 25px; letter-spacing: -.025em; }
.dlc { display: flex; flex-direction: column; gap: 12px; }
.pdfi { width: 40px; height: 48px; border-radius: 9px; background: linear-gradient(#ff6259, #e0352b); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .05em; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 7px; flex: none; box-shadow: 0 4px 10px rgba(224, 53, 43, .25); }
.pdfi.sm2 { width: 32px; height: 38px; font-size: 8.5px; padding-bottom: 5px; border-radius: 7px; }
.steps { display: flex; margin-top: 14px; }
.steps div { flex: 1; text-align: center; font-size: 10.5px; color: var(--dim); position: relative; }
.steps i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #d1d1d6; margin: 0 auto 7px; position: relative; z-index: 1; }
.steps div::before { content: ""; position: absolute; top: 4px; left: -50%; width: 100%; height: 2px; background: #d1d1d6; } .steps div:first-child::before { display: none; }
.steps .was i, .steps .on i, .steps .was::before, .steps .on::before { background: var(--cy); }
.steps .on { color: var(--ink); font-weight: 600; } .steps .on i { box-shadow: 0 0 0 4px rgba(0, 113, 227, .18); }
.btn.ic { width: 34px; min-height: 34px; padding: 0; border-radius: 50%; flex: none; }
.amt { min-width: 60px; text-align: right; }
.toast svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }

/* review-site mock keeps the dark look of qf-review */
.rv { background: #0d0d12; border-radius: 16px; overflow: hidden; color: #e9e9f1; }
.rv .rvbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #23232e; font-size: 13px; flex-wrap: wrap; }
.rv .url { background: #17171f; border: 1px solid #2a2a38; border-radius: 8px; padding: 4px 10px; color: #a9a9bd; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.rv .rvbody { display: grid; grid-template-columns: 1fr 300px; }
.rv .player { padding: 18px; display: grid; place-items: center; background: #08080c; }
.rv .screen { width: 190px; aspect-ratio: 9/16; border-radius: 12px; background: linear-gradient(160deg, #1b2a55, #0c1024 60%, #2a1b55); display: grid; place-items: center; position: relative; overflow: hidden; }
.rv .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: blur(2px); }
.rv .play { width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: #111; position: relative; }
.rv .scrub { width: 100%; height: 6px; background: #23232e; border-radius: 9px; margin-top: 14px; position: relative; }
.rv .scrub i { position: absolute; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--violet); border: 2px solid #0d0d12; }
.rv .notes { border-left: 1px solid #23232e; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rv .note { background: #17171f; border-radius: 10px; padding: 9px 10px; font-size: 13px; }
.rv .note b { color: #b3a9ff; margin-right: 6px; }
.rv input { background: #17171f; border-color: #2a2a38; color: #e9e9f1; }
.rv .btn { background: #23232e; color: #e9e9f1; } .rv .btn.ok { background: rgba(61, 220, 151, .16); color: #8ff0c6; }
.rv .vbtn { background: var(--violet); color: #fff; border: 0; border-radius: 980px; padding: 9px 12px; font-weight: 600; }

.integ .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 19px; flex: none; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.flow span { background: var(--fill); border-radius: 980px; padding: 6px 12px; font-weight: 500; }
.flow i { color: var(--dim); font-style: normal; }
.tl { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 16px; display: flex; flex-direction: column; gap: 12px; }

/* phone */
/* colour status cards */
.todo { --c: #6b6b72; --t: #efeff2; --s: #a1a1a8; } .prog { --c: #8a5f00; --t: #fff3c4; --s: #f5b800; } .rev { --c: #a9480a; --t: #ffe5cf; --s: #ff8a1f; }
.ok { --c: #18793a; --t: #dbf4e2; --s: #30b85a; } .post { --c: #b02670; --t: #ffe0ee; --s: #f0569f; } .new { --c: #5a3fc0; --t: #ebe6ff; --s: #8b7cff; } .stg.all { --c: var(--ink); --t: #e8e8ed; --s: var(--ink); }
.stg { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font: inherit; font-size: 11.5px; font-weight: 600; border: 0; border-radius: 980px; padding: 3px 10px 3px 8px; background: var(--t); color: var(--c); white-space: nowrap; }
.stg i { width: 7px; height: 7px; border-radius: 50%; background: var(--s); flex: none; }
.lg { gap: 6px; } .lg .stg { cursor: pointer; padding: 6px 12px 6px 10px; font-size: 12.5px; transition: transform .15s, box-shadow .15s; } .lg .stg:hover { transform: translateY(-1px); } .lg .stg.on { box-shadow: 0 0 0 2px var(--s); }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.vgrid.wide { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } .vgrid.tiny { grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 8px; }
.vgrid > .card, .vgrid > .sm { grid-column: 1 / -1; }
.vc { position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 126px; padding: 14px 14px 14px 17px; border-radius: 18px; background: var(--t); overflow: hidden; transition: transform .22s cubic-bezier(.2, .8, .2, 1), box-shadow .22s; }
.vc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--s); }
.vc .stg { background: rgba(255, 255, 255, .72); } .vc .xs { color: var(--c); } .vc a { color: var(--c); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.vc .t2, .clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .vc .t2 { font-size: 14.5px; line-height: 1.3; letter-spacing: -.012em; }
.vc.click { cursor: pointer; } .vc.click:hover, .vc.big:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0, 0, 0, .1); } .vc.click:active { transform: scale(.98); }
.vc .go { margin-top: auto; font-size: 12.5px; font-weight: 600; color: var(--c); }
.vc.big { min-height: 176px; } .vc.ghost { opacity: .72; }
.vc .btn.s { background: rgba(255, 255, 255, .85); } .vc .btn.pri { background: var(--cy); color: #fff; }
.vc .thumb { height: 56px; border-radius: 12px; background: rgba(255, 255, 255, .62); display: grid; place-items: center; color: var(--s); } .vc .thumb svg { width: 22px; height: 22px; }
.vgrid.tiny .vc { min-height: 0; padding: 9px 10px 10px 14px; border-radius: 14px; gap: 5px; } .vgrid.tiny .t2 { font-size: 12.5px; }
.sbar { display: flex; gap: 3px; height: 8px; margin-top: 12px; } .sbar i { border-radius: 99px; background: var(--s); min-width: 6px; }
.ring { width: 108px; height: 108px; flex: none; } .ring .bg { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 10; } .ring .fg { fill: none; stroke: #6ad7ff; stroke-width: 10; stroke-linecap: round; }
.ring .n { fill: #fff; font-size: 32px; font-weight: 700; letter-spacing: -1px; } .ring .t { fill: rgba(255, 255, 255, .72); font-size: 12px; }
.chero .v2 { font-size: 24px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; margin-top: 2px; }
.gsi { width: 38px; height: 38px; border-radius: 10px; background: #e3f5e8; color: #188038; display: grid; place-items: center; font-size: 19px; flex: none; }
input.bad { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(215, 0, 21, .12) !important; }
.brand b { white-space: nowrap; font-size: 15px; } .brand b em, .wm em, .signin h1 em { font-style: normal; color: var(--cy); }
.signin h1 { font-size: 26px; white-space: nowrap; }
.seg.look { grid-template-columns: 1fr 1fr; } .seg.look button { font-size: 12px; padding: 6px 4px; }
.tone.gr .v, .tone.gr .dl { color: var(--green); } .tone.am .v, .tone.am .dl { color: var(--amber); } .tone.rd .v, .tone.rd .dl { color: var(--red); } .dl { font-weight: 600; }
.hero.tone.gr .v, .hero.tone.gr .dl { color: #86eba8; } .hero.tone.am .v, .hero.tone.am .dl { color: #ffd27a; } .hero.tone.rd .v, .hero.tone.rd .dl { color: #ff9a91; }
@media (max-width: 860px) { .vgrid, .vgrid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .ring { width: 86px; height: 86px; } .chero .v2 { font-size: 20px; } .vc { padding: 12px 12px 12px 15px; } }

@media (max-width: 860px) {
  .shell { display: block; } .side { display: none; }
  .main { padding: 14px 16px calc(96px + env(safe-area-inset-bottom)); }
  .top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; padding: 10px 16px; background: rgba(245, 245, 247, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); }
  .top img.lg { width: 28px; height: 28px; border-radius: 8px; }
  .tabs { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .82); border-top: 1px solid var(--line); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
  .tabs button { flex: 1; min-width: 0; min-height: 48px; border: 0; background: none; color: #8e8e93; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 500; position: relative; }
  .tabs button svg { width: 24px; height: 24px; }
  .tabs button.on { color: var(--cy); }
  .tabs .badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; font-size: 10px; padding: 0 5px; }
  h1 { font-size: 30px; }
  .head { margin-bottom: 18px; } .head p { font-size: 15px; }
  .g4, .g3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .g2, .g21, .inv-wrap, .chatwrap { grid-template-columns: 1fr; }
  .stat .v { font-size: 26px; }
  .card { padding: 18px; border-radius: 18px; }
  .ov { padding: 0; place-items: end center; }
  .sheet { border-radius: 16px 16px 0 0; max-height: 92vh; padding: 10px 18px calc(26px + env(safe-area-inset-bottom)); width: 100%; animation-name: up; }
  .sheet::before { content: ""; display: block; width: 36px; height: 5px; border-radius: 3px; background: var(--fill2); margin: 0 auto 14px; }
  @keyframes up { from { transform: translateY(40%); opacity: .4; } }
  .inv-side { position: static; order: -1; }
  .paper { padding: 24px 18px; border-radius: 20px; font-size: 13.5px; }
  .paper .pmeta, .paper .pbot { grid-template-columns: 1fr; gap: 18px; } .paper .pmeta { margin-top: 26px; }
  .paper .ptitle { font-size: 34px; } .paper .plogo { width: 84px; height: 84px; border-radius: 10px; } .paper .hq { display: none; }
  .paper .auto { display: none; } .paper th.noprint { width: 20px !important; } .paper .rm { padding: 6px 0 6px 6px; }
  .paper .cq { width: 38px; } .paper .cr { width: 78px; } .paper td input { padding: 7px 4px; } .g3 { } .paper .ro { padding: 8px 4px; } .paper .tot { padding: 0 4px; } .paper table { margin-top: 26px; }
  .rv .rvbody { grid-template-columns: 1fr; } .rv .notes { border-left: 0; border-top: 1px solid #23232e; } .rv .screen { width: 130px; }
  #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .hide-m { display: none !important; }
  .g3.keep { grid-template-columns: repeat(3, 1fr); gap: 8px; } .g3.keep .card { padding: 14px; }
  .mini { grid-template-columns: repeat(2, 1fr); }
  .sheet .li { flex-wrap: wrap; } .sheet .li > .grow { flex-basis: 100%; }
  .sheet .li.click { flex-wrap: nowrap; } .sheet .li.click > .grow { flex-basis: auto; }
  .sheet .g3 { grid-template-columns: 1fr 1fr; }
  .plist { flex-direction: row; overflow-x: auto; } .pitem { flex: none; max-width: 150px; } .pitem .pl { display: none; }
  .thread.tall { height: 44vh; }
}
@media (min-width: 861px) { .hide-d { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

@media print {
  @page { margin: 12mm; }
  body { background: #fff !important; }
  .side, .top, .tabs, .head, .inv-side, #toasts, .noprint { display: none !important; }
  .shell, .inv-wrap { display: block; }
  .main { padding: 0; max-width: none; }
  .paper { box-shadow: none; padding: 0; border-radius: 0; }
  .paper input, .paper textarea { border-color: transparent !important; resize: none; }
  .paper thead th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
