/* =============================================================================================
   Studio Companion — layout and feature styles. Shared look (tokens, buttons, chips, forms, sidebar,
   modals, tooltips) comes from ds.css; only use its tokens here. See DESIGN_SYSTEM.md.
   ============================================================================================= */

/* ---------- login ---------- */
#login { min-height: 100vh; display: grid; place-items: center; padding: 24px; color: #fff;
  background: var(--night); }
#login .box { width: 100%; max-width: 340px; text-align: center; }
#login .logo { width: 74px; display: block; margin: 0 auto 22px; opacity: .92; }
#login .appname { font: 800 30px/1.05 var(--font); letter-spacing: -.02em; color: #fff; }
#login .tag { font: 600 10.5px var(--font); letter-spacing: .22em; color: var(--on-night-muted); text-transform: uppercase; margin: 10px 0 34px; }
#login .tag::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--red); margin-right: 8px; vertical-align: 1px; animation: pulse 1.6s infinite; }
#login label { display: block; text-align: left; font-size: 12px; font-weight: 600; color: var(--on-night-muted); margin: 12px 0 6px; }
#login input { width: 100%; padding: 13px 14px; border-radius: var(--r-lg); border: 1px solid var(--night-line); background: var(--night-2); color: #fff; font-size: 16px; }
#login input:focus { border-color: #555; outline: none; }
#login button { width: 100%; margin-top: 18px; padding: 14px; border: 0; border-radius: var(--r-lg); background: #fff; color: var(--ink); font-weight: 700; font-size: 15px; }
#login button:disabled { opacity: .6; }
#login .err { color: #ff8a80; min-height: 20px; margin-top: 14px; font-size: 13px; }
#login .help { color: var(--muted); font-size: 12px; margin-top: 26px; }
#login .linkbtn { background: none; border: 0; color: var(--on-night-muted); width: auto; margin: 16px auto 0; padding: 4px 6px; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; display: block; }
#login .linkbtn:hover { color: #fff; }
#login .ok { color: #8fe3b4; font-size: 13px; margin-top: 12px; }
#login .legal { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--night-line); color: var(--muted); font-size: 11.5px; line-height: 1.6; }
#login .legal b { color: var(--on-night-muted); font-weight: 600; }
#login .legal a { color: var(--on-night-muted); }
#login .legal .row { display: flex; justify-content: center; gap: 14px; margin-top: 8px; flex-wrap: wrap; }
#login .secure { display: inline-flex; align-items: center; gap: 6px; font: 600 10.5px var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-faint); margin-top: 14px; }
#login .secure svg { width: 13px; height: 13px; }
#login .codein { letter-spacing: .4em; text-align: center; font: 700 22px var(--font); }
/* spinners */
.loading .spin { width: 28px; height: 28px; border-width: 3px; display: block; margin: 0 auto 14px; color: var(--ink); }
.btn.dark.busy::after, .btn.red.busy::after, #login button.busy::after { border-color: #fff; border-right-color: transparent; }
#login button.busy::after { border-color: var(--ink); border-right-color: transparent; }
#busybar { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--red); z-index: 200; opacity: 0; transition: width .4s ease, opacity .3s; pointer-events: none; }
#busybar.on { opacity: 1; width: 70%; transition: width 6s cubic-bezier(.1,.7,.2,1), opacity .2s; }
#busybar.done { opacity: 0; width: 100%; transition: width .2s, opacity .4s .2s; }
#offline { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--night-2); color: #fff; padding: 8px 14px; border-radius: var(--r-pill); font-size: 12.5px; z-index: 120; }
/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side .me { margin-top: auto; padding: 12px 8px 0; border-top: 1px solid var(--night-line); display: flex; align-items: center; gap: 10px; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: #fff; text-align: left; width: 100%; }
.side .me b { display: block; font-size: 13px; }
.side .me span { font-size: 11px; color: var(--on-night-muted); }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 15; background: rgba(245, 245, 245, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topin { display: flex; align-items: center; gap: 10px; padding: 10px 28px; max-width: 1300px; width: 100%; margin: 0 auto; position: relative; }
.topin .mlogo { display: none; }
.crumb { font-size: 12px; color: var(--muted); }
.ptitle { font: 700 19px/1.1 var(--font); letter-spacing: -.01em; }
.top .sp { flex: 1; }
.search { position: relative; width: 280px; max-width: 36vw; }
.search input { width: 100%; padding: 8px 12px 8px 33px; border: 1px solid var(--line2); border-radius: var(--r-md); background: var(--paper); height: 40px; }
.search > svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font: 600 11px var(--font); color: var(--faint); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; }
.pop { position: absolute; top: calc(100% + 6px); right: 0; background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-lg); box-shadow: 0 18px 50px rgba(0,0,0,.16); z-index: 30; max-height: 74vh; overflow-y: auto; }
.sres { left: 0; min-width: 300px; }
.sres .grp { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px 4px; }
.sres button { display: flex; width: 100%; gap: 10px; align-items: baseline; padding: 8px 12px; border: 0; background: none; text-align: left; }
.sres button:hover, .sres button.kb { background: var(--wash); }
.sres button span { color: var(--muted); font-size: 12px; margin-left: auto; white-space: nowrap; }
.iconbtn .badge { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-md); background: var(--red); color: #fff; font: 700 10px/15px var(--font); text-align: center; border: 2px solid var(--wash); }
.savestate { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.livebtn { display: inline-flex; align-items: center; gap: 8px; border: 0; background: var(--red); color: #fff; border-radius: var(--r-md); padding: 0 13px; height: 40px; font-weight: 700; font-size: 13px; white-space: nowrap; }
.livebtn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.livebtn.next { background: var(--ink); }
.livebtn.next::before { animation: none; background: var(--red); }
@keyframes pulse { 50% { opacity: .25; } }
.page { padding: 22px 28px 110px; max-width: 1300px; width: 100%; margin: 0 auto; }
/* ---------- building blocks ---------- */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); }
.card + .card, .grid + .card, .card + .grid, .grid + .grid, .sec + .sec { margin-top: 16px; }
.grid > .card, .grid > .grid { margin-top: 0; }
.ch { display: flex; align-items: center; gap: 10px; padding: 15px 18px 10px; }
.ch h2 { margin: 0; font: 800 16px/1.3 var(--font); letter-spacing: -.01em; }
.ch .sp { flex: 1; }
.ch .hint { font-size: 12px; color: var(--muted); }
.cb { padding: 0 18px 18px; }
.grid { display: grid; gap: 16px; align-items: start; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g21 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.g2 > *, .g3 > *, .g21 > *, .g4 > * { min-width: 0; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.controls .sp { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.s-up { background: var(--bluesoft); color: var(--blue-ink); }
.status.s-rec { background: var(--redsoft); color: var(--red-ink); }
.status.s-todo { background: var(--ambersoft); color: var(--amber-ink); }
.status.s-sent { background: var(--oksoft); color: var(--ok-ink); }
.status.s-done { background: var(--sunken); color: var(--muted); }
.status.s-cx { background: var(--sunken); color: var(--faint); }
.hostchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.notes { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.4; }
.notes svg { width: 13px; height: 13px; flex: none; margin-top: 2px; color: var(--muted); }
.notes span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ic { width: 34px; height: 34px; border-radius: var(--r-md); display: grid; place-items: center; flex: none; background: var(--wash); color: var(--ink-2); }
.ic svg { width: 17px; height: 17px; }
.ic.red { background: var(--redsoft); color: var(--red-ink); }
.ic.amber { background: var(--ambersoft); color: var(--amber-ink); }
.ic.green { background: var(--oksoft); color: var(--ok-ink); }
.ic.blue { background: var(--bluesoft); color: var(--blue-ink); }
.ic.dark { background: var(--ink); color: #fff; }
.inrow { display: flex; gap: 6px; }
.inrow .in { flex: 1; min-width: 0; }
.note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.note.red { color: var(--red-ink); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 13px; }
.kv .k { color: var(--muted); }
.kv .v { word-break: break-word; }
.up { color: var(--ok-ink); font-weight: 600; }
.down { color: var(--red-ink); font-weight: 600; }
/* ---------- home ---------- */
.hello { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.hello h1 { margin: 0; font: 800 30px/1.05 var(--font); letter-spacing: -.03em; }
.hello .d { color: var(--muted); font-size: 14px; padding-bottom: 4px; }
.hero { position: relative; overflow: hidden; border-radius: var(--r-2xl); background: var(--night); color: var(--on-night); padding: 26px 28px; }
.hero.onair { box-shadow: inset 0 0 0 2px var(--red); }
.hero > * { position: relative; z-index: 1; }
.hero .lbl { font: 700 11px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--on-night-muted); display: flex; align-items: center; gap: 8px; }
.hero.onair .lbl { color: #ffb4ad; }
.hero.onair .lbl::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.3s infinite; }
.hero .who { font: 800 40px/1.02 var(--font); letter-spacing: -.02em; margin: 10px 0 4px; }
.hero .pod { color: var(--on-night-muted); font-size: 15px; }
.hero .when { font: 700 15px var(--font); margin-top: 14px; display: flex; gap: 14px; flex-wrap: wrap; align-items: baseline; }
.hero .when span { color: var(--on-night-muted); font-weight: 500; }
.hero .facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .fact { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 10px 12px; min-width: 120px; }
.hero .fact small { display: block; font-size: 11px; color: var(--on-night-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.hero .fact b { display: block; font-size: 14px; margin-top: 3px; }
.hero .fact.warn { border-color: rgba(229,55,43,.6); background: rgba(229,55,43,.16); }
.hero .acts { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.hero .btn { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; }
.hero .btn.red { background: var(--red); border-color: var(--red); }
.hero .btn.white { background: #fff; color: var(--ink); border-color: #fff; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px 16px; text-align: left; display: flex; gap: 12px; align-items: center; }
.tile:hover { border-color: var(--line2); }
.tile b { display: block; font: 800 24px/1 var(--font); letter-spacing: -.02em; }
.tile span { font-size: 12px; color: var(--muted); }
.todo .it { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.todo .it:first-child { border-top: 0; }
.todo .it .w { flex: 1; min-width: 0; cursor: pointer; }
.todo .it .w b { display: block; font-size: 13.5px; }
.todo .it .w span { font-size: 12px; color: var(--muted); }
.todo .more { padding: 10px 18px; border-top: 1px solid var(--line); }
.rundown { position: relative; overflow-x: auto; overflow-y: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px 0 10px; scrollbar-width: thin; }
.rd-in { position: relative; height: 84px; }
.rd-tick { position: absolute; top: 0; bottom: 0; border-left: 1px dashed var(--line); }
.rd-tick span { position: absolute; top: -2px; left: 5px; font: 500 10px var(--font); color: var(--faint); }
.rd-blk { position: absolute; top: 20px; height: 58px; border-radius: var(--r-md); background: var(--wash); color: var(--ink); padding: 7px 10px; overflow: hidden; border: 0; text-align: left; border-left: 4px solid var(--ink); }
.rd-blk:hover { background: var(--sunken); }
.rd-blk b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-blk small { display: block; font: 500 11px var(--font); color: var(--muted); white-space: nowrap; }
.rd-blk.done { opacity: .5; }
.rd-blk.now { background: var(--ink); color: #fff; }
.rd-blk.now small { color: #bbb; }
.rd-now { position: absolute; top: 12px; bottom: 0; width: 2px; background: var(--red); z-index: 2; }
.rd-now span { position: absolute; top: -12px; left: -21px; font: 700 10px var(--font); color: #fff; background: var(--red); padding: 1px 5px; border-radius: 4px; }
/* ---------- sessions list ---------- */
.dayh { display: flex; align-items: baseline; gap: 10px; padding: 20px 2px 8px; flex-wrap: wrap; }
.dayh b { font: 800 14px var(--font); }
.dayh.today b { color: var(--red); }
.dayh span { font-size: 12px; color: var(--muted); }
.list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.sess { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.sess:first-child { border-top: 0; }
.sess:hover { background: var(--hover); }
.sess.cx { opacity: .5; }
.sess .t { font: 700 15px var(--font); }
.sess .t small { display: block; font: 500 11px var(--font); color: var(--muted); margin-top: 2px; }
.sess .n { font: 700 15px var(--font); display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.sess .n em { font: 500 13px var(--font); font-style: normal; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sess .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.sess .end { display: flex; align-items: center; gap: 12px; }
.sess .val { font: 700 13px var(--font); }
/* ---------- deliver ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: var(--sunken); border-radius: var(--r-xl); padding: 10px; min-height: 120px; }
.col h3 { margin: 4px 6px 10px; font: 800 13.5px var(--font); display: flex; gap: 8px; align-items: center; }
.col h3 span { font: 600 12px var(--font); color: var(--muted); }
.dcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 13px; margin-bottom: 8px; }
.dcard .n { font: 700 15px var(--font); cursor: pointer; }
.dcard .sub { font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.steps { display: flex; flex-direction: column; gap: 6px; }
.stp { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-md); padding: 8px 10px; text-align: left; font-size: 13px; font-weight: 600; width: 100%; }
.stp .bx { width: 20px; height: 20px; border-radius: var(--r-xs); border: 2px solid var(--line2); display: grid; place-items: center; flex: none; color: #fff; font-size: 12px; }
.stp.done { background: var(--oksoft); border-color: rgba(46, 139, 69, .28); color: var(--ok-ink); }
.stp.done .bx { background: var(--ok); border-color: var(--ok); }
.stp small { margin-left: auto; font-weight: 500; color: var(--muted); font-size: 11px; }
.stp.next { border-color: var(--ink); }
.dcard .foot { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
/* ---------- storage ---------- */
.sgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.drive { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.drive.clear { border-color: rgba(46, 139, 69, .28); }
.drive.full { border-color: rgba(224, 164, 0, .32); }
.drive.faulty { border-color: rgba(211, 47, 47, .28); }
.drive .top1 { display: flex; align-items: center; gap: 10px; }
.drive .top1 b { font: 700 15px var(--font); display: block; }
.drive .top1 span { font-size: 12px; color: var(--muted); }
.drive .state { font: 800 18px var(--font); letter-spacing: -.01em; }
.drive.clear .state { color: var(--ok-ink); }
.drive.full .state { color: var(--amber-ink); }
.drive.wipe .state { color: var(--blue-ink); }
.drive.faulty .state { color: var(--red-ink); }
.drive .on { font-size: 12.5px; display: flex; flex-direction: column; gap: 4px; }
.drive .on div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; min-height: 26px; }
.drive .on div span { color: var(--muted); }
.drive details summary { font-size: 12px; color: var(--muted); cursor: pointer; }
.rule { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.rule div { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; font-size: 13px; display: flex; align-items: center; gap: 10px; }
.rule div b { font: 800 12px var(--font); width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.h2 { font: 800 16px var(--font); letter-spacing: -.01em; margin: 0 0 10px; }
/* ---------- wall ---------- */
.composer { padding: 16px; }
.composer .types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.tbtn { border: 1px solid var(--line2); background: var(--paper); border-radius: var(--r-pill); padding: 6px 12px; font-size: 13px; font-weight: 600; }
.tbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.composer .row { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.posts { display: flex; flex-direction: column; gap: 12px; }
.post { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 14px 16px; }
.post.pinned { border-color: var(--ink); }
.post.t-Restock { border-left: 4px solid var(--blue); }
.post.t-Issue { border-left: 4px solid var(--red); }
.post.t-Shout-out { border-left: 4px solid var(--amber); }
.post .hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post .hd b { font-size: 13.5px; }
.post .hd > div > span { font-size: 12px; color: var(--muted); }
.post .hd .sp { flex: 1; }
.post .tx { font-size: 15px; margin: 10px 0 4px; white-space: pre-wrap; word-break: break-word; line-height: 1.45; }
.post.isdone .tx { text-decoration: line-through; color: var(--muted); }
.post .ft { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.react { border: 1px solid var(--line); background: var(--wash); border-radius: var(--r-pill); padding: 3px 9px; font-size: 13px; }
.react.on { background: var(--bluesoft); border-color: rgba(42, 111, 214, .25); }
.react b { font: 600 11px var(--font); margin-left: 3px; }
.react.add { opacity: .55; }
.pulse { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: 16px 18px; display: flex; gap: 24px; flex-wrap: wrap; align-items: center; }
.pulse div { font-size: 12px; color: var(--on-night-muted); }
.pulse b { display: block; font: 800 22px var(--font); color: #fff; letter-spacing: -.02em; }
.pulse .trophy b { font-size: 16px; }
/* ---------- calendar ---------- */
.cal { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.cal-h { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-h div { padding: 9px 10px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.cal-m { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-d { min-height: 116px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); padding: 6px; cursor: pointer; min-width: 0; }
.cal-d:nth-child(7n) { border-right: 0; }
.cal-d:nth-child(-n+7) { border-top: 0; }
.cal-d.out { background: var(--hover); }
.cal-d.out .num { color: var(--faint); }
.cal-d .num { font: 700 12px var(--font); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.cal-d.today .num b { background: var(--red); color: #fff; border-radius: var(--r-xs); padding: 0 6px; }
.ev { display: flex; align-items: center; gap: 5px; width: 100%; border: 0; text-align: left; font-size: 11.5px; padding: 3px 6px; border-radius: var(--r-xs); margin-bottom: 3px; background: var(--wash); white-space: nowrap; overflow: hidden; border-left: 3px solid var(--hc, var(--ink)); }
.ev b { font: 700 10.5px var(--font); flex: none; }
.ev span { overflow: hidden; text-overflow: ellipsis; }
.ev i { font-style: normal; font: 700 9px var(--font); margin-left: auto; color: var(--muted); flex: none; }
.ev.cx { opacity: .45; text-decoration: line-through; }
.ev.tour { background: #fff; border: 1px dashed var(--line2); border-left: 3px solid var(--hc, var(--ink)); }
.more { font-size: 11px; color: var(--muted); padding: 2px 6px; font-weight: 600; }
.wk { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); position: relative; }
.wk-h { display: grid; grid-template-columns: 52px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.wk-h div { padding: 8px 6px; font-size: 12px; font-weight: 700; text-align: center; }
.wk-h div small { display: block; font: 500 11px var(--font); color: var(--muted); }
.wk-h div.today { color: var(--red); }
.wk-col { position: relative; border-left: 1px solid var(--line); min-width: 0; }
.wk.day, .wk-h.day { grid-template-columns: 52px repeat(var(--cols, 1), minmax(0, 1fr)); }
.wk-col.pick { cursor: cell; }
.wk-col.pick:hover { background: var(--hover); }
.wk-hr { height: 46px; border-top: 1px solid var(--line); font: 500 10px var(--font); color: var(--faint); padding: 2px 6px; }
.wk-ev { position: absolute; left: 3px; right: 3px; border-radius: var(--r-sm); padding: 4px 6px; font-size: 11px; overflow: hidden; border: 0; text-align: left; background: #eef3fb; background: color-mix(in srgb, var(--hc, #111) 14%, #fff); border-left: 3px solid var(--hc, var(--ink)); }
.wk-ev b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-ev small { font: 500 10px var(--font); color: var(--ink-2); }
.wk-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--red); z-index: 3; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* ---------- tables, team, insights ---------- */
.ctable { width: 100%; border-collapse: collapse; }
.ctable th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: pointer; user-select: none; }
.ctable th.r, .ctable td.r { text-align: right; }
.ctable th.on { color: var(--ink); }
.ctable td { padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.ctable tbody tr { cursor: pointer; }
.ctable tbody tr:hover { background: var(--hover); }
.ctable td b { display: block; }
.ctable td small { color: var(--muted); font-size: 12px; }
.xt { width: 100%; border-collapse: collapse; font-size: 13px; }
.xt th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 6px 18px; }
.xt td { padding: 8px 18px; border-top: 1px solid var(--line); }
.xt td:first-child { white-space: nowrap; }
.xt .r { text-align: right; }
.bar { height: 8px; border-radius: 0 4px 4px 0; background: var(--s2); }
.bar.s1 { background: var(--s1); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); }
.kpis.two { grid-template-columns: 1fr 1fr; }
.kpis.three { grid-template-columns: repeat(3, 1fr); }
.kpi { padding: 15px 18px; border-left: 1px solid var(--line); min-width: 0; }
.kpis > .kpi:first-child, .kpis.four > .kpi:nth-child(4n+1), .kpis.two > .kpi:nth-child(odd), .kpis.three > .kpi:nth-child(3n+1) { border-left: 0; }
.kpis.two > .kpi:nth-child(n+3), .kpis.three > .kpi:nth-child(n+4), .kpis.four > .kpi:nth-child(n+5) { border-top: 1px solid var(--line); }
.kpi .l { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.kpi .v { margin-top: 6px; font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.kpi .d { font-size: 12px; margin-top: 2px; color: var(--muted); }
.says { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; padding: 0 18px 18px; }
.say { background: var(--wash); border-radius: var(--r-lg); padding: 12px 14px; font-size: 13px; line-height: 1.5; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.chart .lbl { font-family: var(--font); fill: var(--ink); font-weight: 700; }
.hm { display: grid; gap: 2px; font-size: 11px; }
.hm div { height: 22px; border-radius: 3px; }
.hm .hl { color: var(--muted); display: flex; align-items: center; height: 22px; font-size: 11px; }
.hm .hh { color: var(--muted); font: 500 10px var(--font); text-align: center; height: 16px; }
.scale { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); padding: 10px 0 0; }
.scale i { width: 18px; height: 10px; border-radius: 2px; display: inline-block; }
.toplist .tr { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-top: 1px solid var(--line); cursor: pointer; }
.toplist .tr:hover { background: var(--hover); }
.toplist .tr .w { flex: 1; min-width: 0; }
.toplist .tr .w b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist .tr .w span { font-size: 12px; color: var(--muted); }
.ditem { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); }
.ditem .w { flex: 1; min-width: 0; cursor: pointer; }
.ditem .w b { display: block; font-size: 13.5px; }
.ditem .w span { font-size: 12px; color: var(--muted); }
.acts2 { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.tcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px; text-align: left; }
.tcard .top1 { display: flex; align-items: center; gap: 12px; }
.tcard .top1 b { display: block; font: 700 16px var(--font); }
.tcard .top1 div span { font-size: 12px; color: var(--muted); }
.tcard .tstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tcard .tstats div { font-size: 11px; color: var(--muted); }
.tcard .tstats b { display: block; font: 800 18px var(--font); color: var(--ink); }
.meter { height: 6px; background: var(--wash); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.qual { margin-top: 12px; display: grid; gap: 8px; }
.qual div { font-size: 12px; color: var(--muted); }
.qual div b { color: var(--ink); float: right; font-family: var(--font); }
.stabseg { display: flex; width: max-content; max-width: 100%; margin: 0; }
.stabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.stabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.stabs button.on { color: var(--ink); border-bottom-color: var(--ink); }
.form { padding: 18px; display: grid; gap: 14px; max-width: 760px; }
.frow { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; }
.frow .lab b { display: block; font-size: 13px; }
.frow .lab span { font-size: 12px; color: var(--muted); }
.etable { width: 100%; border-collapse: collapse; }
.etable td { padding: 6px 8px; border-top: 1px solid var(--line); }
.etable td:first-child { padding-left: 18px; }
.formfoot { display: flex; gap: 10px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
/* ---------- drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(14,14,14,.4); display: flex; justify-content: flex-end; }
.dpanel { width: 100%; max-width: 580px; height: 100%; background: var(--wash); overflow-y: auto; display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(24px); opacity: .6; } }
.dh { position: sticky; top: 0; z-index: 3; background: var(--ink); color: #fff; padding: 18px 20px 0; }
.dh .row1 { display: flex; gap: 12px; align-items: flex-start; }
.dh h2 { margin: 0; font: 800 26px/1.05 var(--font); letter-spacing: -.02em; }
.dh .sub { color: var(--on-night-muted); font: 500 12.5px var(--font); margin-top: 6px; }
.dh .sp { flex: 1; }
.dh .x { background: none; border: 1px solid var(--night-line); color: #fff; border-radius: var(--r-md); width: 36px; height: 36px; font-size: 16px; flex: none; }
.dh .cbar { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12px; color: var(--on-night-muted); align-items: center; }
.dh .cbar b { color: #fff; }
.dh .cbar button { background: none; border: 0; color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: 0; font-size: 12px; }
.dtabs { display: flex; gap: 2px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.dtabs button { border: 0; background: none; color: var(--on-night-muted); padding: 11px 12px; font-weight: 600; font-size: 13px; border-bottom: 2px solid transparent; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.dtabs button.on { color: #fff; border-bottom-color: #fff; }
.dtabs button i { font-style: normal; font: 700 10px var(--font); background: var(--night-2); border-radius: var(--r-sm); padding: 0 6px; }
.qacts { display: flex; gap: 8px; padding: 12px 12px 0; flex-wrap: wrap; }
.qacts .btn { flex: 1; }
.dsect { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); margin: 12px 12px 0; padding: 15px; }
.dsect h3 { margin: 0 0 12px; font: 800 14px var(--font); display: flex; gap: 8px; align-items: center; }
.dsect h3 .sp { flex: 1; }
.dsect h3 span { font: 500 12px var(--font); color: var(--muted); }
details.dsect summary { font: 700 13px var(--font); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.dsect summary::-webkit-details-marker { display: none; }
details.dsect summary::after { content: '+'; margin-left: auto; font: 600 16px var(--font); color: var(--muted); }
details.dsect[open] summary::after { content: '–'; }
details.dsect[open] summary { margin-bottom: 12px; }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tbox { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-width: 0; }
.tbox label { font-size: 11px; color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
.tbox input { border: 0; padding: 0; font: 700 18px var(--font); width: 100%; background: none; }
.tbox button { margin-top: 6px; }
.badges { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.mk { display: flex; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: flex-start; font-size: 13px; }
.mk:first-child { border-top: 0; }
.mk .tm { font: 700 12px var(--font); width: 64px; flex: none; }
.mk .tm small { display: block; font-weight: 500; color: var(--muted); font-size: 10.5px; }
.mk .b { flex: 1; min-width: 0; }
.mk .b b { display: block; }
.mk button.x2 { border: 0; background: none; color: var(--faint); font-size: 16px; padding: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line2); background: var(--paper); border-radius: var(--r-xl); padding: 6px 12px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips button.bad { color: var(--red-ink); border-color: rgba(211, 47, 47, .28); }
.chips button small { font-weight: 500; opacity: .75; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.photos button { aspect-ratio: 1; border: 0; padding: 0; border-radius: var(--r-md); overflow: hidden; background: var(--sunken); }
.photos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.upl { border: 2px dashed var(--line2); border-radius: var(--r-lg); padding: 16px; text-align: center; color: var(--muted); cursor: pointer; display: block; font-size: 13px; }
.upl b { display: block; color: var(--ink); }
.upl input { display: none; }
.chat .msg { display: flex; gap: 10px; padding: 8px 0; }
.chat .msg .bub { background: var(--wash); border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.chat .msg.me { flex-direction: row-reverse; }
.chat .msg.me .bub { background: var(--ink); color: #fff; border-radius: var(--r-lg) 4px 14px 14px; }
.chat .msg .w { font-size: 11px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; }
.chat .msg.me .w { justify-content: flex-end; }
.chat .msg .w button { border: 0; background: none; color: var(--faint); font-size: 11px; padding: 0; text-decoration: underline; }
.chat .ev2 { font-size: 12px; color: var(--muted); padding: 5px 0 5px 36px; }
.chat .ev2 b { color: var(--ink-2); font-weight: 600; }
.mention { background: var(--bluesoft); color: var(--blue-ink); border-radius: 4px; padding: 0 3px; font-weight: 600; }
.msg.me .mention { background: var(--night-2); color: #9cc3f5; }
.composer2 { position: sticky; bottom: 0; background: var(--wash); padding: 10px 12px 14px; border-top: 1px solid var(--line); margin-top: auto; }
.composer2 .mrow { display: flex; gap: 5px; margin-bottom: 6px; flex-wrap: wrap; }
.composer2 .mrow button { border: 1px solid var(--line2); background: var(--paper); border-radius: var(--r-xl); padding: 3px 10px; font-size: 11.5px; font-weight: 600; }
.dspace { height: 28px; flex: none; }
/* ---------- notification centre ---------- */
.npanel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100%; z-index: 50; background: var(--paper); box-shadow: -20px 0 60px rgba(0,0,0,.18); display: flex; flex-direction: column; animation: slide .18s ease-out; }
.npanel .hd { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); }
.npanel .hd .r1 { display: flex; align-items: center; gap: 10px; }
.npanel .hd h2 { margin: 0; font: 800 22px var(--font); letter-spacing: -.02em; flex: 1; }
.npanel .hd .seg { margin-top: 12px; }
.npanel .bd { overflow-y: auto; flex: 1; }
.nshade { position: fixed; inset: 0; z-index: 49; background: rgba(14,14,14,.25); }
.fi { display: flex; gap: 12px; padding: 13px 18px; border-top: 1px solid var(--line); cursor: pointer; align-items: flex-start; }
.fi:hover { background: var(--hover); }
.fi.unread { background: #fbfaf4; }
.fi .b { flex: 1; min-width: 0; }
.fi .t { font-size: 13.5px; }
.fi .t b { font-weight: 700; }
.fi.unread .t::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); margin-left: 6px; vertical-align: 1px; }
.fi .q { font-size: 13px; color: var(--ink-2); background: var(--wash); border-radius: var(--r-md); padding: 7px 10px; margin-top: 6px; word-break: break-word; }
.fi .q div + div { margin-top: 3px; }
.fi .w { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dsec { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 18px 6px; }
/* ---------- session mode ---------- */
.live { position: fixed; inset: 0; z-index: 60; background: var(--night); color: #fff; overflow-y: auto; }
.live-in { max-width: 920px; margin: 0 auto; padding: 18px 20px 48px; }
.live-top { display: flex; align-items: flex-start; gap: 12px; }
.live-top h2 { margin: 0; font: 800 34px/1 var(--font); letter-spacing: -.02em; }
.live-top .s { color: var(--on-night-muted); font: 500 13px var(--font); margin-top: 6px; }
.live-top .sp { flex: 1; }
.live-top .x { background: none; border: 1px solid #333; color: #fff; border-radius: var(--r-md); padding: 8px 14px; font-weight: 600; }
.track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 20px 0 8px; }
.track div { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-faint); padding-top: 10px; border-top: 3px solid var(--night-2); }
.track div.done { color: var(--on-night-muted); border-top-color: var(--on-night-faint); }
.track div.on { color: #fff; border-top-color: var(--red); }
.track.two { grid-template-columns: 1fr 1fr; }
.track button { background: none; border: 0; border-top: 3px solid var(--night-2); color: var(--on-night-faint); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 10px 0 0; text-align: left; }
.track button.done { color: var(--on-night-muted); border-top-color: var(--on-night-faint); }
.track button.on { color: #fff; border-top-color: var(--red); }
.panel2 { background: #161615; border: 1px solid var(--night-2); border-radius: var(--r-xl); padding: 16px 18px; margin-top: 12px; }
.panel2 h3 { margin: 0 0 12px; font-size: 11px; color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .12em; display: flex; gap: 8px; }
.panel2 h3 .sp { flex: 1; }
.guests { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.guests .num { font: 800 64px/1 var(--font); letter-spacing: -.03em; }
.guests .lab { font-size: 15px; color: var(--on-night-muted); line-height: 1.5; }
.guests .lab b { color: #fff; }
.stepper { display: flex; gap: 6px; margin-left: auto; }
.stepper button { width: 46px; height: 46px; border-radius: var(--r-lg); border: 1px solid #333; background: var(--night-line); color: #fff; font-size: 22px; font-weight: 700; }
.live .chips button { background: var(--night-line); border-color: #333; color: #fff; padding: 10px 14px; font-size: 14px; }
.live .chips button.on { background: #fff; color: var(--ink); border-color: #fff; }
.live .chips button.bad { color: #ff8a80; border-color: #5a1a17; }
.live .chips button.warn { border-color: #6b4a10; }
.live .note { color: var(--on-night-muted); }
.live .note.red { color: #ff8a80; }
.live .in { background: #0f0f0e; border-color: #333; color: #fff; }
.live .mk { border-top-color: var(--night-2); }
.live .mk .tm small { color: var(--on-night-muted); }
.live .upl { border-color: #333; color: var(--on-night-muted); }
.live .upl b { color: #fff; }
.clocks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.clockbox { background: #161615; border: 1px solid var(--night-2); border-radius: var(--r-xl); padding: 16px 18px; min-width: 0; }
.clockbox label { font-size: 11px; color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
.clockbox .big { font: 700 54px/1.05 var(--font); letter-spacing: -.03em; margin-top: 4px; }
.clockbox .small { font: 500 12px var(--font); color: var(--on-night-muted); margin-top: 4px; }
.clockbox.rec { border-color: #5a1a17; background: #1c0d0c; }
.clockbox.rec label { color: var(--red); }
.go { width: 100%; margin-top: 14px; border: 0; border-radius: var(--r-xl); padding: 20px; font: 800 20px var(--font); letter-spacing: -.01em; background: #fff; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; }
.go.red { background: var(--red); color: #fff; }
.go.ghost { background: #161615; color: #fff; border: 1px solid #333; font-size: 16px; padding: 16px; }
.go svg { width: 22px; height: 22px; }
.go:disabled { opacity: .35; }
.sumtiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.sumtiles div { background: var(--night-2); border-radius: var(--r-lg); padding: 12px; font-size: 11px; color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.sumtiles b { display: block; font: 800 22px var(--font); color: #fff; letter-spacing: -.01em; text-transform: none; margin-top: 4px; }
.sumtiles .warn b { color: #ffb4ad; }
.fixlink { background: none; border: 0; color: var(--on-night-muted); text-decoration: underline; font-size: 12px; padding: 0; margin-top: 6px; }
/* ---------- menus, modals, toast ---------- */
.menu { position: fixed; z-index: 95; background: var(--paper); border: 1px solid var(--line2); border-radius: var(--r-lg); box-shadow: 0 14px 36px rgba(0,0,0,.16); padding: 4px; min-width: 180px; color: var(--ink); }
.menu button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 11px; border: 0; background: none; border-radius: var(--r-sm); text-align: left; font-size: 13px; font-weight: 500; }
.menu button:hover { background: var(--wash); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 11px 16px; border-radius: var(--r-lg); font-size: 13px; z-index: 99; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 12px; align-items: center; max-width: calc(100vw - 24px); }
#toast.bad { background: var(--red-ink); }
#toast button { background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: var(--r-xs); padding: 2px 8px; font-size: 12px; }
.lightbox { position: fixed; inset: 0; z-index: 97; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: var(--r-sm); }
.lightbox .bar2 { position: absolute; top: 16px; right: 16px; display: flex; gap: 8px; }
.lightbox .bar2 button { background: #fff; border: 0; border-radius: var(--r-md); padding: 8px 12px; font-weight: 700; }
.lightbox .bar2 button.del { background: var(--red); color: #fff; }
.loading { padding: 60px 20px; text-align: center; color: var(--muted); }
/* ---------- mobile ---------- */
@media (max-width: 899px) {
.shell { grid-template-columns: 1fr; }
.shell > .side { display: none; }
.top .iconbtn { background: var(--night-2); border-color: var(--night-line); color: var(--on-night); }
.top { background: var(--ink); border-bottom: 0; }
.topin { padding: 10px 12px; gap: 8px; }
.topin .mlogo { display: block; height: 19px; opacity: .9; }
/* the phone header names where you are, as on every page of the platform (logo, then the destination) */
.topin .ttl { display: block; min-width: 0; color: var(--on-night); }
.topin .ttl .crumb { display: none; }
.topin .ttl .ptitle { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search { width: 38px; max-width: none; flex: none; }
.search input { padding: 8px; width: 38px; color: transparent; cursor: pointer; background: var(--night-2); border-color: var(--night-line); }
.search > svg { color: #bbb; }
.search input::placeholder { color: transparent; }
.search.open { position: absolute; left: 10px; right: 10px; width: auto; z-index: 40; }
.search.open input { width: 100%; color: var(--ink); padding-left: 33px; background: #fff; }
.search.open input::placeholder { color: var(--faint); }
.search.open > svg { color: var(--faint); }
.search kbd { display: none; }
.sres { min-width: 0; }
.iconbtn .badge { border-color: var(--ink); }
.savestate span { display: none; }
.livebtn { padding: 0 11px; font-size: 12px; }
.livebtn span { display: none; }
.page { padding: 16px 12px 104px; }
.phead h1, .hello h1 { font-size: 26px; }
.g2, .g3, .g21 { grid-template-columns: 1fr; }
.g4, .tiles { grid-template-columns: 1fr 1fr; }
.hero { padding: 20px 18px; border-radius: var(--r-xl); }
.hero .who { font-size: 32px; }
.hero .fact { min-width: 0; flex: 1 1 40%; }
.hero .acts .btn { flex: 1; }
.tile { padding: 12px; gap: 10px; }
.tile .ic { width: 30px; height: 30px; }
.tile b { font-size: 21px; }
.kpis, .kpis.three, .kpis.four { grid-template-columns: 1fr 1fr; }
.kpis > .kpi { border-left: 1px solid var(--line); border-top: 0; }
.kpis > .kpi:nth-child(odd) { border-left: 0; }
.kpis > .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
.kpis.four > .kpi:nth-child(4n+1) { border-left: 0; }
.kpi { padding: 12px 14px; }
.kpi .v { font-size: 20px; }
.sess { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
.sess .end { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
.sess .t { font-size: 14px; }
.board { grid-template-columns: 1fr; }
.board.mob .col { display: none; }
.board.mob .col.on { display: block; }
.ctable .hm1 { display: none; }
.dpanel { max-width: none; }
.tbox input { font-size: 15px; }
.tbox { padding: 8px; }
.ditem { flex-wrap: wrap; }
.acts2 { justify-content: flex-start; }
.cal-h div { padding: 6px 2px; text-align: center; font-size: 10px; letter-spacing: 0; }
.cal-d { min-height: 56px; padding: 4px; }
.cal-d .ev, .cal-d .more { display: none; }
.cal-d .num { justify-content: center; }
.cal-d .dots { display: flex; gap: 3px; flex-wrap: wrap; justify-content: center; }
.cal-d .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--hc, var(--ink)); }
.cal-d.sel { box-shadow: inset 0 0 0 2px var(--ink); }
.wk-h div { font-size: 10px; padding: 6px 1px; }
.wk-ev { padding: 2px 3px; left: 1px; right: 1px; }
.wk-ev b { font-size: 10px; }
.wk-ev small { display: none; }
.frow { grid-template-columns: 1fr; gap: 4px; }
.clockbox { padding: 12px 14px; }
.clockbox .big { font-size: 32px; }
.live-top h2 { font-size: 26px; }
.live-in { padding: 14px 12px 40px; }
.guests .num { font-size: 52px; }
.stepper { margin-left: 0; }
.sumtiles { grid-template-columns: 1fr 1fr; }
.npanel { width: 100%; }
.pulse { gap: 16px; }
.rule { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rule div { padding: 9px 10px; font-size: 12px; line-height: 1.3; gap: 8px; }
}
@media (min-width: 900px) {
.cal-d .dots { display: none; }
}
/* v7 B: recording, timestamps, SSD page, labels */
.recpanel .bigrec { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px; border-radius: var(--r-lg); border: 0; background: var(--red); color: #fff; font: 700 17px var(--font); }
.recpanel .bigrec svg { width: 20px; height: 20px; }
.recpanel .live { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.recpanel .live .clockx { font: 700 34px/1 var(--font); letter-spacing: -.02em; }
.recpanel .live .dotr { width: 12px; height: 12px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.recpanel .acts2 { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.recpanel .acts2 button { flex: 1; min-width: 110px; padding: 11px 10px; border-radius: var(--r-lg); border: 1px solid #3a3937; background: #1d1d1c; color: #fff; font-weight: 600; }
.recpanel .acts2 button.stop { background: #fff; color: var(--ink); border-color: #fff; }
.recpanel .tline { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; color: var(--on-night-muted); font-size: 13.5px; }
.recpanel input[type=time] { background: var(--night-2); color: #fff; border: 1px solid #3a3937; border-radius: var(--r-md); padding: 8px 10px; font: 600 15px var(--font); }
.tsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.tsgrid button { padding: 12px 10px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--paper); font-weight: 600; font-size: 13.5px; text-align: left; }
.live .tsgrid button { background: #1d1d1c; border-color: #3a3937; color: #fff; }
.tsgrid button:active { transform: scale(.98); }
.mkrow { display: grid; grid-template-columns: 92px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.live .mkrow { border-color: var(--night-line); }
.mkrow input { width: 100%; padding: 7px 9px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); font-size: 13.5px; }
.live .mkrow input { background: var(--night-2); color: #fff; border-color: #3a3937; }
.mkrow input[type=time] { font: 600 13.5px var(--font); }
.mkrow .ty { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.mkrow .tcx { font: 600 11px var(--font); color: var(--muted); }
.mkrow .x2 { border: 0; background: none; font-size: 15px; color: var(--muted); padding: 6px; }
.agechip { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); font: 700 11.5px var(--font); background: var(--oksoft); color: var(--ok-ink); }
.agechip.mid { background: var(--ambersoft); color: var(--amber); }
.agechip.old { background: var(--redsoft); color: var(--red); }
.ssdhead { display: flex; gap: 16px; align-items: center; }
.ssdhead .qrbox { width: 112px; height: 112px; flex: none; background: #fff; border-radius: var(--r-md); padding: 4px; border: 1px solid var(--line); }
.ssdhead .qrbox svg { width: 100%; height: 100%; display: block; }
.ssdrow { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.ssdrow .w { flex: 1; min-width: 0; }
.ssdrow .w b { display: block; }
.ssdrow .w span { font-size: 12.5px; color: var(--muted); }
.ssdrow .safe { font-size: 12px; font-weight: 700; color: var(--ok-ink); }
.ssdrow .only { font-size: 12px; font-weight: 700; color: var(--red); }
.drive .qrmini { margin-left: auto; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); padding: 6px; display: grid; place-items: center; }
.drive .qrmini svg { width: 16px; height: 16px; }
.drive .top1 { cursor: pointer; }
#labels { position: fixed; inset: 0; background: #fff; z-index: 300; overflow: auto; padding: 24px; }
#labels .bar3 { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; }
#labels .sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
#labels .lab { border: 1.5px dashed #bbb; border-radius: var(--r-lg); padding: 12px; text-align: center; break-inside: avoid; }
#labels .lab svg { width: 140px; height: 140px; }
#labels .lab b { display: block; font: 800 16px var(--font); margin-top: 6px; }
#labels .lab span { font-size: 11px; color: #555; }
@media print {
body > *:not(#labels) { display: none !important; }
#labels { position: static; padding: 0; }
#labels .bar3 { display: none; }
#labels .sheet { grid-template-columns: repeat(3, 1fr); }
}
/* v7 C: delivery */
.due { display: inline-flex; align-items: center; gap: 4px; font: 700 11.5px var(--font); padding: 2px 8px; border-radius: var(--r-pill); background: var(--wash); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.due.soon { background: var(--ambersoft); border-color: rgba(224, 164, 0, .32); color: var(--amber-ink); }
.due.late { background: var(--redsoft); border-color: rgba(211, 47, 47, .28); color: var(--red-ink); }
.due.rev { background: var(--bluesoft); border-color: rgba(42, 111, 214, .25); color: var(--blue-ink); }
.dueline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: -4px 0 12px; }
.edbtn { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 3px 10px 3px 4px; display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 600; }
.edbtn.none { padding-left: 10px; color: var(--muted); border-style: dashed; }
.lanes { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; align-items: start; }
.lane { background: var(--sunken); border-radius: var(--r-xl); padding: 10px; }
.lane .lh { display: flex; gap: 8px; align-items: center; margin: 4px 6px 10px; font: 700 14px var(--font); }
.lane .lh span { margin-left: auto; font: 600 12px var(--font); color: var(--muted); }
.drow { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 11px 12px; margin-bottom: 8px; cursor: pointer; display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.drow b { font: 700 14px var(--font); }
.drow .s2 { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drevnote { font-size: 12.5px; background: var(--bluesoft); color: var(--blue-ink); border-radius: var(--r-sm); padding: 7px 9px; margin: -4px 0 10px; }
.frow { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.frow:first-of-type { border-top: 0; }
.frow .w { flex: 1; min-width: 0; }
.frow .w b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow .w span { font-size: 12px; color: var(--muted); }
.frow .w span.red { color: var(--red-ink); }
.frow .ic2 { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--wash); display: grid; place-items: center; flex: none; }
.frow .ic2 svg { width: 17px; height: 17px; }
.uprow { padding: 10px 0; border-top: 1px solid var(--line); }
.uprow .nm { font-weight: 600; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uprow .bar { height: 6px; background: var(--wash); border-radius: var(--r-xs); overflow: hidden; margin: 7px 0 5px; }
.uprow .bar i { display: block; height: 100%; background: var(--ink); border-radius: var(--r-xs); transition: width .3s; }
.uprow.failed .bar i { background: var(--red); }
.uprow .st { font: 500 12px var(--font); color: var(--muted); display: flex; gap: 8px; align-items: center; }
.revrow { display: grid; grid-template-columns: 70px 1fr; gap: 2px 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.revrow:first-of-type { border-top: 0; }
.revrow small { grid-column: 2; color: var(--muted); font-size: 12px; }
.revrow.done b { color: var(--ok-ink); }
.photos button.shared { outline: 2.5px solid var(--ok); outline-offset: -2.5px; position: relative; }
.photos button.shared::after { content: 'On client page'; position: absolute; left: 4px; bottom: 4px; font: 700 9.5px var(--body, sans-serif); background: var(--ok); color: #fff; padding: 1px 5px; border-radius: 5px; }
.whobox .wh { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.whobox .wh b { font: 700 15px var(--font); }
.whobox .wh span { margin-left: auto; font: 600 12px var(--font); color: var(--muted); }
/* v7 D: wall and SOPs */
.composer .attach { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.composer .attach img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); }
.composer .attach label.tick { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; max-width: 420px; }
.composer .attach label.tick input { margin-top: 3px; width: 17px; height: 17px; }
.composer .pickph { border: 1px dashed var(--line2); background: var(--paper); border-radius: var(--r-md); padding: 8px 12px; font-weight: 600; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.composer .pickph input { display: none; }
.composer .pickph svg { width: 16px; height: 16px; }
.post .pimg { display: block; margin: 10px 0 2px; border: 0; padding: 0; background: none; border-radius: var(--r-lg); overflow: hidden; max-width: 340px; width: 100%; }
.post .pimg img { width: 100%; display: block; }
.post .consent { font-size: 11.5px; color: var(--muted); }
.vote { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 52px; padding: 6px 8px; border-radius: var(--r-lg); border: 1.5px solid var(--line); background: var(--paper); font-weight: 800; font-size: 15px; line-height: 1.1; }
.vote small { font-size: 10.5px; font-weight: 600; color: var(--muted); }
.vote.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.vote.on small { color: #ddd; }
.post.t-Idea .tx { font-size: 15.5px; }
.istatus { font: 700 11px var(--font); padding: 2px 8px; border-radius: var(--r-pill); background: var(--wash); border: 1px solid var(--line); }
.istatus.Planned { background: var(--bluesoft); color: var(--blue-ink); border-color: rgba(42, 111, 214, .25); }
.istatus.Doing { background: var(--ambersoft); color: var(--amber-ink); border-color: rgba(224, 164, 0, .32); }
.istatus.Done { background: var(--oksoft); color: var(--ok-ink); border-color: rgba(46, 139, 69, .28); }
.istatus.Not\ now { color: var(--muted); }
.wallfilter { margin-top: 16px; }
.sopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.sopcard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 15px; cursor: pointer; text-align: left; }
.sopcard b { display: block; font: 800 16px var(--font); margin: 6px 0 4px; }
.sopcard p { margin: 0; font-size: 13px; color: var(--ink-2); }
.sopcard .m { font: 500 11.5px var(--font); color: var(--muted); margin-top: 10px; }
.sopview { max-width: 760px; }
.sopview .band { background: var(--ink); color: #fff; border-radius: var(--r-lg) 12px 0 0; padding: 10px 16px; font: 700 11px var(--font); letter-spacing: .14em; text-transform: uppercase; }
.sopview .body { background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 14px 14px; padding: 18px; }
.sopview h2 { font: 800 26px var(--font); margin: 0 0 4px; text-transform: uppercase; letter-spacing: .01em; }
.sopview .purpose { background: var(--wash); border-radius: var(--r-md); padding: 11px 13px; font-size: 14px; margin: 14px 0; }
.sopstep { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; }
.sopstep .n { font: 800 15px var(--font); color: var(--red); }
.sopstep b { font-size: 15px; }
.sopstep .d { font-size: 13.5px; color: var(--ink-2); margin-top: 3px; white-space: pre-wrap; }
.sopstep input { width: 20px; height: 20px; }
.sopstep.ticked b, .sopstep.ticked .d { color: var(--muted); text-decoration: line-through; }
.stepedit { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; margin-bottom: 8px; background: var(--paper); }
.stepedit .r { display: flex; gap: 6px; align-items: center; }
.stepedit .r .in { flex: 1; }
.stepedit textarea { margin-top: 6px; min-height: 54px; }
.stepedit .r button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-sm); width: 32px; height: 32px; }
@media print {
body.printsop > *:not(#shell) { display: none !important; }
}
/* v7 E: money */
.pl { width: 100%; border-collapse: collapse; font-size: 14px; }
.pl td { padding: 9px 18px; border-top: 1px solid var(--line); }
.pl td.r { text-align: right; font-family: var(--font); }
.pl tr.sub td { color: var(--ink-2); padding-left: 34px; font-size: 13px; }
.pl tr.tot td { font-weight: 800; border-top: 1.5px solid var(--ink); }
.pl tr.head td { font: 700 11px var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--sunken); }
.amountin { font: 800 32px var(--font) !important; padding: 10px 14px !important; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px; }
.catpick button { border: 1px solid var(--line); background: var(--paper); border-radius: var(--r-pill); padding: 7px 12px; font-weight: 600; font-size: 13px; }
.catpick button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.plbars { display: flex; gap: 6px; align-items: flex-end; height: 120px; padding: 10px 18px 0; }
.plbars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.plbars .b i { display: block; width: 100%; max-width: 34px; border-radius: var(--r-xs) 6px 0 0; background: var(--ink); min-height: 2px; }
.plbars .b i.neg { background: var(--red); }
.plbars .b span { font: 600 10.5px var(--font); color: var(--muted); }
.plbars .b.on span { color: var(--ink); font-weight: 800; }
/* v7 F: win-back */
.wbseg { margin-bottom: 14px; }
.wbseg .ch p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.wbrow { display: flex; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wbrow .w { flex: 1; min-width: 180px; cursor: pointer; }
.wbrow .w b { display: block; }
.wbrow .w span { font-size: 12.5px; color: var(--muted); }
.wbrow .acts3 { display: flex; gap: 6px; flex-wrap: wrap; }
.wbrow.nudged { opacity: .62; }
.wbtip { font-size: 12.5px; color: var(--ink-2); background: var(--wash); border-radius: var(--r-md); padding: 9px 12px; margin-bottom: 14px; }
.gconn { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--wash); margin-bottom: 18px; }
.gconn.on { background: var(--oksoft); border-color: rgba(46, 139, 69, .28); }
.gconn .gic { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--paper); display: grid; place-items: center; flex: none; border: 1px solid var(--line); }
.gconn.on .gic { color: var(--ok-ink); border-color: rgba(46, 139, 69, .28); }
.gconn .gic svg { width: 18px; height: 18px; }
.gconn .w { flex: 1; min-width: 0; }
.gconn .w b { display: block; font-size: 14px; }
.gconn .w span { display: block; font-size: 12.5px; color: var(--muted); }
.gconn ol { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--ink-2); }
.upl.over { border-color: var(--ink); background: var(--hover); color: var(--ink); }
.uptray { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: 10px 14px; display: flex; gap: 12px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-size: 12.5px; cursor: pointer; width: 300px; max-width: calc(100vw - 32px); border: 0; text-align: left; }
.uptray.bad { background: var(--red-ink); }
.uptray svg { width: 16px; height: 16px; flex: none; }
.uptray .w { flex: 1; min-width: 0; }
.uptray .w b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uptray .tb { height: 4px; background: rgba(255,255,255,.22); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.uptray .tb i { display: block; height: 100%; background: #fff; transition: width .3s; }
@media (max-width: 899px) {
.uptray { bottom: calc(76px + env(safe-area-inset-bottom)); right: 12px; }
}
/* consistency pass */
.page > * + *:not(.dayh):not(.list):not(.sgrid) { margin-top: 16px; }
.page > .dayh + .list, .page > .list + .dayh { margin-top: 0; }
.page > h2 + .sgrid { margin-top: 10px; }
.page > .phead + * { margin-top: 18px; }
.card > h2:first-child, .card > .ch:first-child { margin-top: 0; }
/* settings rows: label column and field column line up on every row (a later .frow rule for file rows was overriding this) */
.form > .frow { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: center; padding: 14px 0; }
.form > .frow > :last-child { max-width: 720px; }
.form > .frow .lab b { display: block; font-size: 13.5px; }
.form > .frow .lab span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 899px) {
.page > * + *:not(.dayh):not(.list):not(.sgrid) { margin-top: 14px; }
.page > .phead + * { margin-top: 16px; }
.form > .frow { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
}
/* sender */
.upl.wt { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border-radius: var(--r-xl); background: var(--hover); transition: border-color .15s, background .15s; }
.upl.wt.has { padding: 14px; }
.upl.wt .wtplus { width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font: 300 30px/1 var(--font); margin-bottom: 6px; }
.upl.wt.has .wtplus { width: 32px; height: 32px; font-size: 22px; margin: 0; }
.upl.wt b { font: 700 16px var(--font); }
.upl.wt .wtsub { font-size: 12.5px; }
.upl.over { border-color: var(--ink); background: var(--paper); }
.wtbox { border: 1px solid var(--line); border-radius: var(--r-lg); margin-top: 10px; overflow: hidden; background: var(--paper); }
.wthead { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--hover); }
.wthead .sp { flex: 1; }
.wtrow { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.wtrow .ic2 { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--wash); display: grid; place-items: center; flex: none; }
.wtrow .ic2 svg { width: 17px; height: 17px; }
.wtrow .w { flex: 1; min-width: 0; }
.wtrow .w b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wtrow .w span { font-size: 12px; color: var(--muted); }
.wtrow .wtver { flex: 1 1 100%; height: 36px; min-height: 36px; font-size: 12.5px; }
.wtfoot { display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex-wrap: wrap; }
.wtfoot .note { flex: 1; min-width: 200px; }
.wtgo { margin-left: auto; }
.wtmute { margin-left: 6px; font-weight: 600; }
.wtdone { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.96); z-index: 120; background: var(--ink); color: #fff; border-radius: var(--r-2xl); padding: 26px 34px; display: grid; justify-items: center; gap: 6px; box-shadow: 0 40px 90px -30px rgba(0,0,0,.6); animation: wtin .35s cubic-bezier(.2,.9,.3,1.3) forwards; text-align: center; }
.wtdone.out { transition: opacity .5s, transform .5s; opacity: 0; transform: translate(-50%, -50%) scale(.98); }
.wtdone b { font: 800 20px var(--font); }
.wtdone span { font-size: 13px; color: #c9c7c2; }
.wtring { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; animation: wtpop .5s .1s both; }
.wtring svg { width: 32px; height: 32px; stroke-width: 3; }
@keyframes wtin { from { opacity: 0; transform: translate(-50%, -46%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes wtpop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
.wtdone, .wtring { animation: none; }
}
/* extras and payments */
.chrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.chrow:first-of-type { border-top: 0; }
.chrow .w { flex: 1; min-width: 160px; }
.chrow .w b { display: block; font-size: 13.5px; }
.chrow .w span { font-size: 12px; color: var(--muted); }
/* client review */
.rvcard { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; margin-top: 10px; }
.rvhd { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.rvhd .sp { flex: 1; }
.rvhd b { font-size: 14px; }
.rvvid { width: 100%; max-height: 300px; background: #000; border-radius: var(--r-md); }
.rvcl { display: grid; gap: 8px; margin-top: 10px; }
.rvrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px; border-radius: var(--r-md); background: var(--hover); flex-wrap: wrap; }
.rvrow.res { opacity: .55; }
.rvrow .rvtc { border: 0; background: var(--ink); color: #fff; border-radius: var(--r-xs); padding: 4px 8px; font-size: 12px; cursor: pointer; }
.rvrow .w { flex: 1; min-width: 180px; }
.rvrow .tx { font-size: 13.5px; white-space: pre-wrap; }
.rvrow .w > span { font-size: 11.5px; color: var(--muted); }
.rvrow .rp { font-size: 12.5px; background: var(--paper); border-radius: var(--r-sm); padding: 6px 8px; margin-top: 6px; }
.rvrow .acts { display: flex; gap: 6px; }
.rvhist { margin-top: 8px; font-size: 12.5px; }
.rvhist summary { cursor: pointer; color: var(--muted); font-weight: 600; }
/* list 5: event nudges */
.evn { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.evn:first-of-type { border-top: 0; }
.evd { flex: none; width: 48px; height: 52px; border-radius: var(--r-lg); background: var(--ink); color: #fff; display: grid; place-content: center; text-align: center; }
.evd b { font-size: 20px; line-height: 1; }
.evd span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; opacity: .75; }
.evb { flex: 1; min-width: 0; }
.evacts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.evacts .btn { width: auto; }
.evb .pill { display: inline-block; font-size: 11px; font-weight: 700; background: #fff4e0; color: #9a5b00; border-radius: 99px; padding: 1px 8px; }
/* list 5: insights split */
.sysw { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 0; overflow: hidden; }
.sysc { padding: 14px 16px; }
.sysc + .sysc { border-left: 1px solid var(--line); }
.sysh { display: flex; gap: 8px; align-items: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.sysh i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sysn { display: flex; gap: 10px; align-items: baseline; margin-top: 6px; flex-wrap: wrap; }
.sysn b { font-size: 22px; }
.sysn span { color: var(--muted); font-size: 13px; }
.xcat { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: #eef4fd; color: #256abf; vertical-align: 1px; }
.xcat.lp { background: #f0efec; color: var(--muted); }
@media (max-width: 600px) {
.sysw { grid-template-columns: 1fr; }
.sysc + .sysc { border-left: 0; border-top: 1px solid var(--line); }
}
/* list 4 */
.sinc { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; margin-top: 14px; align-items: end; }
.sm1 { display: grid; gap: 4px; text-align: center; font-size: 11px; color: var(--muted); }
.sm1 small { font-size: 10px; }
.sbar { height: 110px; position: relative; }
.sbar i, .sbar b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: var(--r-xs) 6px 2px 2px; }
.sbar i { background: var(--line2); }
.sbar b { background: var(--ink); left: 22%; right: 22%; }
.mcard h3 { margin: 0 0 10px; }
.mcard .f { margin-top: 10px; }
.pdfo { width: 100%; height: 74vh; border: 1px solid var(--line); border-radius: var(--r-md); background: #f6f6f6; }
/* list 5: session status */
.flowchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip { border: 1px solid var(--line2); background: var(--paper); color: inherit; border-radius: var(--r-pill); padding: 9px 13px; font: 600 13.5px/1.1 inherit; font-family: inherit; cursor: pointer; min-height: 40px; }
.fchip:hover { background: var(--hover); }
.fchip.on { background: #111; color: #fff; border-color: #111; }
.fchip .dot { margin-right: 7px; vertical-align: 1px; }
/* list 6: money (profit and loss, books check, break-even, card payments) and the owner's "This week" glance */
.segscroll { min-width: 0; max-width: 100%; }
.scrollx { overflow-x: auto; }
.xt tr.click { cursor: pointer; }
.xt tr.click:hover td { background: var(--hover); }
.finrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 240px); gap: 6px 16px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.finrow:first-child { border-top: 0; }
.finrow b { display: block; font-size: 13.5px; }
.finrow span { font-size: 12.5px; color: var(--muted); }
.beprog { position: relative; display: flex; height: 14px; border-radius: var(--r-pill); background: var(--sunken); margin: 10px 0 4px; }
.beprog i { display: block; height: 100%; }
.beprog i.done { background: var(--ink); border-radius: var(--r-pill) 0 0 var(--r-pill); }
.beprog i.booked { background: var(--line2); }
.beprog .mark { position: absolute; top: -5px; bottom: -5px; width: 3px; margin-left: -1px; border-radius: var(--r-pill); background: var(--amber); }
.beprog .mark.target { background: var(--ok); }
.legend i.lg-ink { background: var(--ink); } .legend i.lg-line { background: var(--line2); } .legend i.lg-mark { background: var(--amber); } .legend i.lg-ok { background: var(--ok); }
.tips { display: grid; gap: 8px; }
.tips .callout b { display: block; }
.calcin { align-items: center; max-width: 360px; margin-bottom: 12px; font-size: 13.5px; }
.calcin .in { max-width: 110px; }
.calcout .kpis { border: 1px solid var(--line); border-radius: var(--r-lg); }
.wk7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.wk7 .d { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.wk7 .d:hover { background: var(--hover); }
.wk7 .d b { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.wk7 .d .wkn { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wk7 .d .wkh { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.wk7 .d.today { border-color: var(--ink); box-shadow: var(--ring); }
.wk7 .d.warn { background: var(--ambersoft); border-color: transparent; }
.wk7 .d.warn .wkh { color: var(--amber-ink); }
.wk7 .d.empty b { color: var(--faint); }
.glcols { padding: 0 0 6px; border-top: 1px solid var(--line); gap: 0; }
.glcols > div { min-width: 0; }
.glcols > div + div { border-left: 1px solid var(--line); }
.glcols .kicker { padding: 14px 18px 4px; }
.glcols .empty { padding: 16px 18px; text-align: left; }
.ic.rank { font-size: 13px; font-weight: 800; }
.mx-18 { margin: 0 18px 10px; }
@media (max-width: 760px) {
.finrow { grid-template-columns: 1fr; }
.wk7 { grid-template-columns: repeat(7, minmax(64px, 1fr)); overflow-x: auto; scrollbar-width: none; }
.wk7 .d .wkh { white-space: normal; text-align: center; }
.glcols > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* list 6: staff pay (My studio, Payroll, "Are you hosting?" in session mode) */
.hostnote { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hostnote b { display: block; }
.kv.kv2 { grid-template-columns: minmax(0, 1fr) auto; }
.paytot { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.paytot b { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.tscroll { overflow-x: auto; }
.tscroll .dtable td { vertical-align: top; }
.prset { max-width: 560px; }
.prset .seg { flex-wrap: wrap; }
.in.amt { width: 92px; }
.in.code { width: 120px; text-transform: uppercase; }
.prteam .in[type=date] { width: 150px; }
.prteam td, .prpay td:first-child { white-space: nowrap; }
.hostask .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ditem.click { cursor: pointer; }
@media (max-width: 600px) {
.hostnote { flex-wrap: wrap; }
.hostnote .btn { width: 100%; }
}

/* list 6: growth (the Growth page). Monochrome ink: a one-hue ramp for magnitude, state tones only for state. */
.gpage { display: flex; flex-direction: column; gap: 16px; transition: opacity .2s; }
.gpage.stale { opacity: .6; }
.gpage > .card, .gpage > .grid { margin: 0; }
.gpage .grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.gpage .gcard { scroll-margin-top: 80px; }
.gchart { width: 100%; min-width: 0; }
.gchart svg { display: block; max-width: 100%; overflow: visible; }
.ghit { cursor: default; outline: none; }
.ghit:focus-visible { stroke: var(--ink); stroke-width: 2; }
rect.ghit:hover, rect.ghit:focus { stroke: var(--paper); stroke-width: 2; }
.gtip .gtr { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.gtip .gtr b { font-weight: 700; }
.gtip .gtr span { color: var(--on-night-muted); }
.gtip .gk { background: var(--on-night); }
.gk { display: inline-block; flex: none; width: 12px; height: 2px; border-radius: 1px; background: var(--ink); }
.gk.mid { background: var(--muted); } .gk.faint { background: var(--faint); }
.gk.ref { height: 0; background: none; border-top: 2px dashed var(--amber); }
.gtip .gk.mid { background: var(--on-night-muted); } .gtip .gk.faint { background: var(--on-night-faint); }
.glegend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 10px; font-size: 12px; color: var(--ink-2); }
.glegend span { display: inline-flex; align-items: center; gap: 6px; }
.glegend .gk { width: 14px; height: 3px; }
/* svg marks */
.gchart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.gchart .gstrong { fill: var(--ink-2); font-weight: 700; }
.gchart .gval { fill: var(--ink); font-weight: 800; font-size: 12.5px; }
.gchart .gin { fill: var(--ink); font-size: 10.5px; font-weight: 700; }
.gchart .gin.light { fill: var(--paper); }
.ggrid { stroke: var(--line); stroke-width: 1; }
.gref { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; }
.gcross { stroke: var(--line2); stroke-width: 1; }
.gline { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gline.mid { stroke: var(--muted); }
.gline.faint { stroke: var(--faint); }
.gdot { fill: var(--ink); stroke: var(--paper); stroke-width: 2; }
.gdot.open { fill: var(--paper); stroke: var(--ink); }
.gbar { fill: var(--ink); }
.gbar.faint { fill: var(--faint); }
.gq { stroke: var(--amber); stroke-width: 2; }
.gtoday { stroke: var(--ink); stroke-width: 1.5; }
.gring { fill: none; stroke: var(--line2); stroke-width: 1; }
.gplace { fill: rgba(17, 17, 17, .5); stroke: var(--paper); stroke-width: 1.5; }
.gchart .glabel { paint-order: stroke; stroke: var(--paper); stroke-width: 3px; stroke-linejoin: round; }
.ghome { fill: var(--paper); stroke: var(--ink); stroke-width: 2.5; }
.gover { stroke-width: 4; stroke-linecap: round; opacity: .45; }
.gover.due { stroke: var(--amber); } .gover.lapsed { stroke: var(--red); }
/* headline */
.gherocard { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; }
.ghero { padding: 20px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.gbig { font-size: 52px; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin-top: 8px; font-variant-numeric: proportional-nums; }
.gsub { margin-top: 10px; font-size: 12.5px; }
.gd { font-size: 12px; font-weight: 700; color: var(--muted); }
.gd.up { color: var(--ok-ink); } .gd.down { color: var(--red-ink); }
.gd .muted { font-weight: 500; }
.gherocard .kpis { align-content: stretch; }
.gtile .v { font-variant-numeric: proportional-nums; }
.gtile .gchart { margin-top: 8px; }
/* growth moves */
.gmoves { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 0 18px 18px; }
@media (max-width: 1199px) { .gmoves { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .gmoves { grid-template-columns: 1fr; } }
.gmove { display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); color: inherit; font: inherit; cursor: pointer; }
.gmove:hover { background: var(--hover); border-color: var(--line2); }
.gmove .dot { margin-top: 6px; }
.gmove b { display: block; font-size: 13.5px; font-weight: 800; letter-spacing: -.01em; }
.gmove span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
/* rhythm */
.gramp { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 10px 0 12px; font-size: 11.5px; color: var(--muted); }
.gramp span { margin: 0 4px; }
.gsw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; }
.gsw.sunk { background: var(--sunken); }
.gsw.qk { background: var(--paper); box-shadow: inset 0 0 0 2px var(--amber); margin-left: 10px; }
.gsplit { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 22px; align-items: start; }
.gside { display: flex; flex-direction: column; gap: 14px; }
.gfact b { display: block; font-size: 15px; font-weight: 800; margin-top: 4px; }
.gfact > span { font-size: 12.5px; color: var(--muted); }
.gfact.muted { font-size: 12.5px; line-height: 1.45; }
.gqrow { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.gqrow:last-child { border-bottom: 0; }
.gqrow b { white-space: nowrap; }
.gqrow span { color: var(--muted); text-align: right; }
.gnote { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.45; }
/* mix */
.gseg { display: flex; gap: 2px; height: 28px; margin: 4px 0 10px; }
.gpart { display: flex; align-items: center; min-width: 4px; padding: 0 8px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--paper); }
.gpart.ink { background: var(--ink); } .gpart.mid { background: var(--muted); } .gpart.faint { background: var(--faint); color: var(--ink); }
/* shows */
.gshows { display: flex; flex-direction: column; }
.gshow { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) minmax(180px, 230px); gap: 16px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.gshow:last-child { border-bottom: 0; }
.gsn { min-width: 0; }
.gsn b, .gsn span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsn b { font-size: 13.5px; font-weight: 700; }
.gsn span, .gss > span:last-child { font-size: 12px; color: var(--muted); }
.gss { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
/* channels */
.gch { display: flex; flex-direction: column; gap: 8px; }
.gchr { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13px; }
.gchn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-transform: capitalize; }
.gchv { text-align: right; font-weight: 700; }
.gtrack { position: relative; height: 10px; }
.gfill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--ink); }
.gfill.faint { background: var(--line2); }
.gk.track { height: 6px; background: var(--line2); }
.grefs { margin-top: 4px; }
#g-reach .gchart, .gcard .gchart:only-child { display: flex; justify-content: center; }
@media (max-width: 899px) {
  .gherocard { grid-template-columns: 1fr; }
  .ghero { border-right: 0; border-bottom: 1px solid var(--line); }
  .gbig { font-size: 44px; }
  .gpage .grid.g2 { grid-template-columns: 1fr; }
  .gsplit { grid-template-columns: 1fr; }
  .gshow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gsn b, .gsn span { white-space: normal; }
  .gss { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
  .gcard .ch { flex-wrap: wrap; }
  .gcard .ch .hint { order: 3; flex-basis: 100%; margin-top: -4px; }
}
.gchart.gscroll { overflow-x: auto; scrollbar-width: thin; }
.gchart.gscroll svg { max-width: none; }

/* ---------- Recording with the ATEM (session mode > Set up; Settings > Studio > Recording) ---------- */
.atemhead { display: flex; align-items: center; gap: 12px; }
.atemhead b { font-size: 15px; }
.atemhead .s { color: var(--on-night-muted); font-size: 12.5px; margin-top: 2px; }
.atemhead .lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--on-night-faint); }
.atemhead.ok .lamp { background: var(--ok); box-shadow: 0 0 0 4px rgba(46, 139, 69, .22); }
.atemhead.red .lamp { background: var(--red); }
.atemhead.rec .lamp { background: var(--red); animation: pulse 1.2s infinite; }
.rectag { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--r-pill); background: var(--night-line); color: var(--on-night); }
.rectag.rec { background: var(--red); color: #fff; }
.rectag.sim { background: var(--amber); color: var(--ink); }
.chks { display: grid; gap: 2px; }
.chk { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--night-line); }
.chk:first-child { border-top: 0; padding-top: 0; }
.chk .m { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--night-line); color: var(--on-night-muted); }
.chk.ok .m { background: var(--ok); color: #fff; }
.chk.warn .m { background: var(--amber); color: var(--ink); }
.chk.fail .m { background: var(--red); color: #fff; }
.chk b { font-size: 14px; font-weight: 600; }
.chk .s { color: var(--on-night-muted); font-size: 12.5px; margin-top: 1px; }
.chk .btn { flex: none; }
.meter { flex: none; width: 90px; height: 8px; border-radius: var(--r-pill); background: var(--night-line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--on-night-faint); transition: width .3s; }
.meter.on i { background: var(--ok); }
/* the RØDECaster's own tracks: a meter for each */
.rodem { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px 16px; margin-top: 6px; }
.rodet { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.rodet span:first-child { flex: 1; min-width: 0; }
.panel2 h3.mt-4 { margin-top: 20px; }
.cams { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.cam { border: 1px solid var(--night-line); border-radius: var(--r-lg); padding: 10px 12px; min-width: 0; }
.cam b { display: block; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cam small { color: var(--on-night-muted); font-size: 11.5px; }
.cam.pgm { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cam.pgm small { color: #ff8a80; }
.cam.pvw { border-color: var(--ok); }
.recopts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0 12px; color: var(--on-night-muted); font-size: 13px; }
.live .recopts .seg { background: var(--night-2); }
.recpanel .bigrec:disabled { opacity: .35; }
.recpanel.onair { border-color: rgba(211, 47, 47, .55); }
.tcrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tcrow .clockx { font: 700 44px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tcrow .dotr { width: 14px; height: 14px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; }
.tcrow .sub { color: var(--on-night-muted); font-size: 12.5px; }
.recmeta { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 14px; color: var(--on-night-muted); font-size: 12.5px; word-break: break-word; }
.recmeta span:first-child { color: var(--on-night); font-family: var(--font-code); font-size: 12px; }
.holdstop { position: relative; overflow: hidden; width: 100%; padding: 16px; border-radius: var(--r-lg); border: 1px solid #fff; background: #fff; color: var(--ink); font: 700 17px var(--font); touch-action: none; user-select: none; -webkit-user-select: none; }
.holdstop i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--red); }
.holdstop span { position: relative; }
.holdstop.holding i { width: 100%; transition: width 1.5s linear; }
.holdstop.holding { color: #fff; }
.holdstop:disabled { opacity: .5; }
.take { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--night-line); }
.take:first-of-type { border-top: 0; padding-top: 0; }
.take b { font-size: 14px; }
.take .s { color: var(--on-night-muted); font-size: 12.5px; margin-top: 2px; word-break: break-word; }
.take .tst { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; max-width: 45%; text-align: right; font-size: 12.5px; color: var(--on-night-muted); }
.take.bad .tst span:first-child { color: #ff8a80; }
.take .bar { width: 120px; height: 6px; border-radius: var(--r-pill); background: var(--night-line); overflow: hidden; }
.take .bar i { display: block; height: 100%; background: var(--ok); }
.recfallback summary { cursor: pointer; color: var(--on-night-muted); font-size: 13px; font-weight: 600; }
.recfallback[open] summary { margin-bottom: 12px; }
.recfallback .recpanel { margin-top: 0; border: 0; padding: 0; background: none; }
.recset { padding: 18px; border-bottom: 1px solid var(--line); }
.recset:last-child { border-bottom: 0; border-top: 1px solid var(--line); }
.recset p { margin: 0 0 4px; color: var(--muted); max-width: 640px; }
.recset .kv { margin-top: 14px; }
@media (max-width: 700px) {
  .cams { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .take { flex-direction: column; gap: 6px; }
  .take .tst { align-items: flex-start; text-align: left; max-width: none; }
  .meter { width: 60px; }
  .chk { flex-wrap: wrap; }
}

/* ---------- The studio screen (client logo on the TV): session mode, session drawer, Settings ---------- */
.tvline { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.tvline .lamp { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.tvline.on .lamp { background: var(--ok); box-shadow: 0 0 0 4px var(--oksoft); }
.tvline.off .lamp { background: var(--amber); }
.tvline b { font-size: 14px; }
.tvline .s { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.live .tvline .s { color: var(--on-night-muted); }
.live .tvline.off .lamp { background: var(--amber); }
.scrlogo { display: flex; gap: 14px; align-items: center; }
.scrlogo b { font-size: 14px; word-break: break-word; }
.scrlogo .s { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.live .scrlogo .s { color: var(--on-night-muted); }
.scrthumb { flex: none; width: 128px; height: 72px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.scrthumb.dark { background: #000; border-color: var(--night-line); }
.scrthumb img { width: 100%; height: 100%; padding: 8px 12px; box-sizing: border-box; object-fit: contain; }
.scrthumb.empty { color: var(--faint); font-size: 12px; }
/* a logo as the TV shows it: the same sums as the studio Mac's page (fitted to the whole screen, then size, turn and move) */
.tvp { container-type: size; position: relative; overflow: hidden; display: grid; place-items: center; background: #000; }
.scrthumb.tvp img, .scrprev.tvp img { width: 100cqw; height: 100cqh; padding: 0; object-fit: contain; transform-origin: center; }
.modal .box.scredit { width: min(720px, 100%); }
.scrprev { aspect-ratio: 16 / 9; border-radius: var(--r-md); border: 1px solid var(--line); }
.lookctl { margin-top: 12px; }
.lookrow { display: grid; grid-template-columns: 112px 1fr 84px; gap: 10px; align-items: center; padding: 4px 0; }
.lookrow b { font-size: 13px; }
.lookrow input[type=range] { width: 100%; padding: 0; }
.lookrow .sm { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.lookbtns { margin-top: 8px; }
.lookswatch { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px 6px 6px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--paper); color: var(--ink); font: inherit; font-size: 12.5px; cursor: pointer; }
.lookswatch.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.lookswatch i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line2); }
.lookcol { width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.lookpickwrap { margin-top: 14px; }
.lookpickwrap .sm { color: var(--muted); margin-bottom: 6px; }
.lookpick { display: block; max-width: 100%; max-height: 160px; cursor: crosshair; border: 1px solid var(--line); border-radius: var(--r-md); background: repeating-conic-gradient(var(--line) 0 25%, var(--paper) 0 50%) 0 0 / 16px 16px; }
@media (max-width: 700px) { .lookrow { grid-template-columns: 1fr 72px; } .lookrow b { grid-column: 1 / -1; } }
.scropts { margin-top: 14px; overflow-x: auto; }
.live .scropts .seg { background: var(--night-2); }
.scrpanel.dsect h3 { margin: 0 0 12px; }
.recset .tvline { margin: 16px 0 0; }
@media (max-width: 700px) {
  .scrthumb { width: 96px; height: 54px; }
  .scropts .seg { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--r-lg); }
  .scropts .seg button { border-radius: var(--r-md); }
}

/* ---------- Settings > Studio > Studio test: the session-mode panels on a dark "control room" block ---------- */
.testbay { background: var(--night); color: var(--on-night); padding: 18px; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.testbay > h3 { margin: 0 0 4px; font-size: 11px; color: var(--on-night-muted); text-transform: uppercase; letter-spacing: .12em; }
.testbay .note { color: var(--on-night-muted); }
.testbay .note.red { color: #ff8a80; }
.testbay .recopts .seg, .testbay .scropts .seg { background: var(--night-2); border-color: var(--night-line); }
.testbay .seg button { color: var(--on-night-muted); }
.testbay .seg button:hover, .live .seg button:hover { color: var(--on-night); }
.testbay .seg button.on { background: var(--ink); color: var(--on-night); }
.testbay .tvline .s, .testbay .scrlogo .s { color: var(--on-night-muted); }
button.cam { text-align: left; background: none; color: inherit; font: inherit; cursor: pointer; }
.cams.tappable .cam:not(.pgm):hover { border-color: var(--on-night-faint); }
.cam.going { opacity: .6; }
.recmore .note { margin: 0; }
.recpanel .recmore .btn { background: var(--night-2); color: var(--on-night); border-color: var(--night-line); }
.holdstop { -webkit-touch-callout: none; }

/* ---- the team, live: profile pictures, presence, who's online */
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar.xl { width: 64px; height: 64px; font-size: 20px; overflow: hidden; }
.pav { position: relative; display: inline-flex; flex: none; }
.pdot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--paper); background: var(--line2); }
.pav.lg .pdot { width: 13px; height: 13px; right: 0; bottom: 0; }
.pdot.online { background: var(--ok); }
.pdot.away { background: var(--amber); }
.teambtn { width: auto; min-width: 40px; padding: 0 8px; }
.teambtn .pstack { display: inline-flex; }
.teambtn .pstack .pav + .pav { margin-left: -8px; }
.teambtn .pstack .avatar { width: 26px; height: 26px; box-shadow: 0 0 0 2px var(--night-2); }
.teambtn .pstack .pdot { border-color: var(--night-2); }
.pline { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.pline.online { color: var(--ok-ink); }
.pline em, .pdo { display: block; font-style: normal; font-weight: 700; font-size: 12px; margin-top: 3px; }
.pdo.hosting { color: var(--red-ink); }
.pdo.due { color: var(--amber-ink); }
#teamp:not(.hidden) { position: fixed; inset: 0; z-index: 49; background: rgba(14,14,14,.25); }
.npanel.still { animation: none; }
.prow { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.prow.tap { cursor: pointer; }
.prow.tap:hover { background: var(--hover); }
.prow .b { min-width: 0; flex: 1; }
.prow .b > b { display: block; font-size: 14.5px; }
.pst { font-size: 12.5px; color: var(--muted); }
.pst.online { color: var(--ok-ink); font-weight: 600; }
.pst.away { color: var(--amber-ink); font-weight: 600; }
.pwhere { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
@media (max-width: 700px) { .teambtn .pstack .pav:nth-child(n+2) { display: none; } }
/* Settings > Studio > SSDs and computers on a phone: the name on its own line, the choices under it */
@media (max-width: 640px) { .ditem .w { flex: 1 0 100%; } .ditem select.in, .ditem input.in { flex: 1 1 0; min-width: 0; width: auto !important; } }

/* Files and delivery: its own screen (light header), and the card on the session that opens it */
.dh.dlvh { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 16px; }
.dh.dlvh .eyebrow { margin-bottom: 6px; }
.dh.dlvh .sub, .dh.dlvh .cbar { color: var(--muted); }
.dh.dlvh .x { border-color: var(--line); color: var(--ink); }
.dh.dlvh .cbar button { color: var(--ink); font-weight: 700; }
.dlink { display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); text-align: left; cursor: pointer; background: var(--paper); font: inherit; color: inherit; }
.dlink .ic2 { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--wash); display: grid; place-items: center; flex: none; }
.dlink .w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dlink .w b { font-size: 15px; }
.dlink .w span { font-size: 13px; color: var(--muted); }
.dlink .chev { font-size: 22px; color: var(--muted); flex: none; }
.dlink .ic2 svg { width: 18px; height: 18px; }
.dlink:hover .chev { color: var(--ink); }

/* Someone signs in: their picture pops up in the top right */
#hello { position: fixed; top: 64px; right: 16px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; pointer-events: none; }
.hpop { pointer-events: auto; display: flex; align-items: center; gap: 10px; border: 0; background: var(--paper); color: var(--ink); border-radius: var(--r-pill); padding: 5px 16px 5px 5px; box-shadow: var(--shadow-pop); cursor: pointer; font: inherit; text-align: left; animation: hpop-in .45s cubic-bezier(.2, .9, .3, 1.25) both; }
.hpop.out { animation: hpop-out .35s ease-in both; }
.hpop .hav { position: relative; flex: none; }
.hpop .hav .avatar { width: 46px; height: 46px; font-size: 16px; }
.hpop .hav .pdot { position: absolute; right: 0; bottom: 0; }
.hpop .htx { display: flex; flex-direction: column; line-height: 1.25; }
.hpop .htx b { font-size: 14px; }
.hpop .htx span { font-size: 12px; color: var(--muted); }
@keyframes hpop-in { from { opacity: 0; transform: translateY(-10px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes hpop-out { to { opacity: 0; transform: translateX(24px); } }
@media (max-width: 700px) { #hello { top: 60px; right: 10px; } .hpop .htx { display: none; } .hpop { padding: 4px; } }
.hpop .hav .pdot { width: 13px; height: 13px; }

/* Team social: @ to tag someone, replies on Wall posts, the Studio league, statuses, milestones */
.mpop { position: fixed; z-index: 90; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-pop); padding: 4px; min-width: 200px; max-width: 280px; }
.mopt { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 7px 8px; border-radius: var(--r-sm); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.mopt.on, .mopt:hover { background: var(--wash); }
.post.t-Milestone { border-left: 4px solid var(--ok); }
.post.focus { box-shadow: 0 0 0 2px var(--ink); }
.wreplies { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.wreplies:empty { display: none; }
.wr { display: flex; gap: 8px; align-items: flex-start; background: var(--wash); border-radius: var(--r-md); padding: 8px 10px; }
.wr .b { flex: 1; min-width: 0; }
.wr .m { font-size: 12px; color: var(--muted); }
.wr .m b { color: var(--ink); font-size: 12.5px; }
.wr .tx { font-size: 14px; margin: 2px 0 0; white-space: pre-wrap; word-break: break-word; line-height: 1.4; }
.wrbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.wrbtn:hover { color: var(--ink); }
.wrbtn svg { width: 14px; height: 14px; }
.wrin { display: flex; gap: 8px; align-items: flex-end; }
.wrin textarea { flex: 1; min-height: 40px; resize: vertical; }
.league .lrows { display: flex; flex-direction: column; margin-top: 8px; }
.lrow { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.lrow:first-child { border-top: 0; }
.lrow.me .w b { text-decoration: underline; text-underline-offset: 3px; }
.lrow .rk { width: 26px; text-align: center; font-weight: 800; font-size: 15px; flex: none; }
.lrow .w { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lrow .w b { font-size: 14px; }
.lrow .w span { font-size: 12.5px; color: var(--muted); }
.pstatus { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.pstat { font-size: 12.5px; font-weight: 600; margin-top: 1px; }
.prow .props { flex: none; align-self: center; }
@media (max-width: 700px) { .lrow .btn { padding: 6px 8px; } .wrin { flex-wrap: wrap; } .wrin .avatar { display: none; } }

/* ---------- Edit packs (tools/fb_ui_pack.py) */
.dsect.pack h3 .chip { font: 700 12px var(--font); }
.pack .pkmeta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; }
.pack .pktx { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; }
.pack .pktx.strong { font-weight: 600; }
.pack .pktx.sm { font-size: 12.5px; color: var(--muted); }
.pack .pktx.ok { color: var(--ok-ink); font-weight: 600; }
.pack .pktx.amber { color: var(--amber-ink); }
.pack .pktx.red { color: var(--red-ink); font-weight: 600; }
.pack .pklive { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-lg); background: var(--wash); }
.pack .pklive b { font-size: 14px; }
.pkbar { height: 8px; border-radius: var(--r-xs); background: var(--line); overflow: hidden; }
.pkbar i { display: block; height: 100%; background: var(--ink); border-radius: var(--r-xs); transition: width .4s; }
.pack .pkok { display: flex; flex-direction: column; gap: 2px; margin-bottom: 4px; }
.pksteps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pksteps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; }
.pksteps li .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--wash); border: 1px solid var(--line); display: grid; place-items: center; font: 700 12px var(--font); }
.pksteps li.done { color: var(--muted); }
.pksteps li.done .n { background: var(--oksoft); border-color: transparent; color: var(--ok-ink); }
.pack .qacts { padding: 12px 0 0; }
.pkpick { display: none; }
.pkhead { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pkhead .w { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkhead .sp { flex: 1; }
.pkq { padding: 0; overflow: hidden; }
.pkrow { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pkrow:first-child { border-top: 0; }
.pkrow:hover { background: var(--wash); }
.pkrow .w { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pkrow .w b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkrow .chip { flex: none; }
.pkrow .pkdue { flex: none; color: var(--muted); }
.pkset { margin-top: 18px; }
.pkset .pksh { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.pkcams { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; width: 100%; }
.pkcam { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .pkrow .pkdue { display: none; } }
