@font-face{font-family:"Manrope";src:url(fonts/manrope-cyr.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Manrope";src:url(fonts/manrope-lat.woff2) format("woff2");font-weight:200 800;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}
@font-face{font-family:"Unbounded";src:url(fonts/unbounded-cyr.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:"Unbounded";src:url(fonts/unbounded-lat.woff2) format("woff2");font-weight:200 900;font-display:swap;unicode-range:U+0000-00FF,U+2000-206F,U+20AC,U+2122,U+2212}

/* WAYCRM v2 — тёплая ночь школы; один шрифт интерфейса (Manrope), Unbounded только в знаке и крупных суммах; красный — только действие и внимание */
:root{
  --bg:#121010;--surface:#1b1817;--surface-2:#242020;--surface-3:#2e2a29;
  --line:rgba(255,236,230,.075);--line-2:rgba(255,236,230,.13);
  --ink:#f6f3f2;--ink-2:#bdb5b3;--ink-3:#9c9492;
  --red:#d9333c;--red-ink:#ff6e74;--red-wash:rgba(217,51,60,.13);
  --on-red:#fff;
  --f-ui:"Manrope",system-ui,-apple-system,"Segoe UI",sans-serif;--f-brand:"Unbounded","Manrope",sans-serif;
  --ease:cubic-bezier(.16,1,.3,1);--ease-in:cubic-bezier(.55,0,1,.45);
  --safe-b:env(safe-area-inset-bottom,0px);--safe-t:0px;
  color-scheme:dark;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body,#root{height:100%}
body{background:var(--bg);color:var(--ink);font:600 15px/1.42 var(--f-ui);-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;font-variant-numeric:tabular-nums;overflow:hidden;letter-spacing:-.005em}
::selection{background:rgba(217,51,60,.35)}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;touch-action:manipulation;text-align:inherit}
:focus-visible{outline:2px solid var(--red-ink);outline-offset:2px;border-radius:8px}
.i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;flex:none}
.muted{color:var(--ink-2)}.faint{color:var(--ink-3)}.warn{color:var(--red-ink)}
.nq{width:8px;height:8px;transform:rotate(45deg);border-radius:1.5px;flex:none;display:inline-block}
.nq.done{background:var(--ink-3)}.nq.todo{background:var(--red)}.nq.now{background:var(--ink)}.nq.next{box-shadow:inset 0 0 0 1.5px var(--ink-2)}.nq.cancel{box-shadow:inset 0 0 0 1.5px var(--ink-3);opacity:.55}

.app{height:100%;display:flex}
.main{flex:1;min-width:0;height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--surface-3) transparent}
.phone .main{padding-bottom:calc(76px + var(--safe-b))}
.phone.framed{--safe-t:48px;--safe-b:22px}
.phone.framed .main{padding-top:var(--safe-t)}
.statusbar{display:none}
.phone.framed .statusbar{display:flex;position:fixed;top:0;left:0;right:0;height:48px;z-index:30;align-items:center;justify-content:space-between;padding:4px 30px 0 34px;font:700 15px/1 var(--f-ui);background:var(--bg)}
.statusbar span{display:flex;gap:6px;align-items:center}
.wrap{padding:0 16px 24px}
.desktop .top{display:none}
.brandmini{display:flex;align-items:center;gap:8px;font:600 12px/1 var(--f-brand);letter-spacing:.05em;color:var(--ink-2)}
.brandmini img{width:20px;height:auto;flex:none}
.top .right{display:flex;align-items:center;gap:8px}
.top .tourchip{margin-left:0;height:32px}
.row .btn{height:34px;padding:0 13px;font-size:13.5px}
.pill{font-size:12px}
.who-btn{display:block;width:100%;text-align:left}
.gtag{display:inline-block;margin-left:6px;font-size:11.5px;font-weight:800;color:var(--ink);background:var(--surface-3);border-radius:6px;padding:2px 6px;vertical-align:1px}
.hint{font-size:12.5px;font-weight:700;color:var(--ink-3);margin:2px 4px 4px}
.desktop .wrap{max-width:1160px;margin:0 auto;padding:0 32px 48px}

.top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0 2px;min-height:44px}
.avatar{width:36px;height:36px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font:800 12.5px/1 var(--f-ui);color:var(--ink-2);flex:none}
.title{padding:6px 0 14px}
.title small{display:block;font-size:13px;color:var(--ink-3);font-weight:700;margin-bottom:2px}
.title h1{font:800 28px/1.12 var(--f-ui);letter-spacing:-.03em;text-wrap:balance}
.title p{font-size:14px;color:var(--ink-2);margin-top:5px}
.desktop .title{padding:26px 0 18px}
.desktop .title h1{font-size:30px}

.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;margin:0 0 16px}
.week button{display:flex;flex-direction:column;align-items:center;gap:3px;padding:8px 0 7px;border-radius:10px;font-size:11.5px;font-weight:700;color:var(--ink-3)}
.week b{font-size:17px;font-weight:800;color:var(--ink-2)}
.week button[aria-current="date"]{background:var(--ink);color:var(--bg)}
.week button[aria-current="date"] b{color:var(--bg)}
.week i{width:5px;height:5px;transform:rotate(45deg);background:var(--ink-3);border-radius:1px;display:block;margin-top:1px}
.week i.todo{background:var(--red)}.week i.none{visibility:hidden}
.week button[aria-current="date"] i{background:var(--bg)}
.week button[aria-current="date"] i.todo{background:var(--red)}

.label{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;font-weight:800;color:var(--ink-2);margin:18px 2px 8px}
.label .link{font-weight:700;color:var(--ink-3);font-size:13px}

.card{background:var(--surface);border-radius:12px;overflow:hidden}
.card+.card{margin-top:10px}
.row{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:60px;width:100%;position:relative;transition:background .15s}
.row+.row{box-shadow:inset 0 1px 0 var(--line)}
.row:active{background:var(--surface-2)}
.desktop .row:hover{background:var(--surface-2)}
.time{width:54px;flex:none;font-weight:800;font-size:15.5px;letter-spacing:-.02em;line-height:1.15}
.time small{display:block;white-space:nowrap;font-size:12px;font-weight:700;color:var(--ink-3);letter-spacing:0;margin-top:2px}
.body{flex:1;min-width:0}
.ttl{font-weight:800;font-size:15px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.meta{font-size:13px;font-weight:600;color:var(--ink-2);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row.done .ttl,.row.done .time{color:var(--ink-3)}
.chev{color:var(--ink-3)}
.pill{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 9px;border-radius:7px;font-size:12.5px;font-weight:800;white-space:nowrap;background:var(--surface-2);color:var(--ink-2)}
.pill.live{background:transparent;box-shadow:inset 0 0 0 1.5px var(--ink-2);color:var(--ink)}
.pill.red{background:var(--red-wash);color:var(--red-ink)}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 15px;border-radius:10px;font-weight:800;font-size:14px;white-space:nowrap;transition:transform .12s,background .15s}
.btn:active{transform:scale(.97)}
.desktop .btn.red:hover{background:#e23e47}.desktop .btn.soft:hover{background:var(--surface-3)}.desktop .btn.ink:hover{background:#fff}
.desktop .tabs button:hover,.desktop .grpsel button:hover{color:var(--ink)}
.btn.red{background:var(--red);color:var(--on-red)}
.btn.ink{background:var(--ink);color:var(--bg)}
.btn.soft{background:var(--surface-2);color:var(--ink)}
.btn.plain{color:var(--ink-2);padding:0 8px}
.btn.full{width:100%;height:52px;border-radius:12px;font-size:16px}

.alert{background:var(--red-wash);border-radius:12px;padding:14px;display:flex;gap:12px;align-items:center;width:100%}
.alert .body .ttl{white-space:normal}
.alert .meta{color:#e6c8c8;white-space:normal}

.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;display:flex;justify-content:space-around;padding:6px 10px calc(6px + var(--safe-b));background:rgba(18,16,16,.97);box-shadow:inset 0 1px 0 var(--line)}
.tabbar button{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;font-size:11px;font-weight:700;color:var(--ink-3);padding:4px 0;min-height:50px;position:relative}
.tabbar .ico{display:grid;place-items:center;width:52px;height:30px;border-radius:9px;transition:background .2s}
.tabbar button[aria-current="page"]{color:var(--ink)}
.tabbar button[aria-current="page"] .ico{background:var(--surface-2)}
.tabbar .badge{position:absolute;top:2px;left:calc(50% + 10px);min-width:17px;height:17px;border-radius:9px;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;padding:0 4px}
.desktop .tabbar{display:none}

.side{display:none}
.desktop .side{display:flex;flex-direction:column;width:240px;flex:none;height:100%;padding:18px 12px;background:#0e0c0c;gap:2px;box-shadow:inset -1px 0 0 var(--line)}
.brand{display:flex;align-items:center;gap:10px;padding:6px 10px 20px}
.brand img{width:22px;height:auto;flex:none}
.brand span{font:600 14.5px/1 var(--f-brand);letter-spacing:.04em}
.side button{display:flex;align-items:center;gap:11px;height:38px;padding:0 10px;border-radius:8px;color:var(--ink-2);font-weight:700;font-size:14px}
.side button:hover{background:var(--surface);color:var(--ink)}
.side button[aria-current="page"]{background:var(--surface-2);color:var(--ink)}
.side .cnt{margin-left:auto;min-width:20px;height:20px;border-radius:10px;background:var(--red);color:#fff;font-size:11px;font-weight:800;display:grid;place-items:center;padding:0 5px}
.side .sep{font-size:12px;color:var(--ink-3);font-weight:800;padding:18px 10px 6px}
.side .src{display:flex;align-items:center;gap:9px;height:28px;padding:0 10px;font-size:13px;font-weight:700;color:var(--ink-3)}
.side .src i{width:6px;height:6px;border-radius:50%;background:#53b37a;display:inline-block}
.side .me{margin-top:auto;display:flex;align-items:center;gap:10px;padding:10px;border-radius:10px;background:var(--surface)}
.side .me b{display:block;font-size:13.5px}.side .me span{font-size:12px;color:var(--ink-3)}
.topbar{display:none}
.desktop .topbar{display:flex;align-items:center;gap:12px;height:60px;padding:0 32px;box-shadow:inset 0 -1px 0 var(--line);position:sticky;top:0;background:var(--bg);z-index:5}
.search{flex:1;max-width:460px;display:flex;align-items:center;gap:10px;height:38px;padding:0 12px;border-radius:10px;background:var(--surface);color:var(--ink-3);font-size:14px}
.search kbd{margin-left:auto;font:700 11.5px/1 var(--f-ui);color:var(--ink-3);background:var(--surface-2);padding:4px 6px;border-radius:6px}
.tourchip{height:34px;padding:0 12px;border-radius:9px;background:var(--surface);font-size:13px;font-weight:800;color:var(--ink-2);margin-left:8px}
.tourchip:hover{color:var(--ink)}
.compact .side{width:68px;padding:18px 10px}
.compact .side .lb,.compact .brand span,.compact .side .sep,.compact .side .src,.compact .side .me div{display:none}
.compact .side button{justify-content:center;padding:0;position:relative}
.compact .side .cnt{position:absolute;top:2px;right:4px;min-width:16px;height:16px;font-size:10px}
.compact .brand{justify-content:center;padding:6px 0 20px}
.compact .side .me{justify-content:center;padding:8px 0;background:none}
.compact .wrap{padding:0 24px 40px}
.compact .topbar{padding:0 24px}
.compact .cols{grid-template-columns:1fr}
.topbar .date{margin-left:auto;font-size:13.5px;color:var(--ink-2);font-weight:700}

.jr-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin:0 0 12px}
.grpsel{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.grpsel button{flex:none;height:36px;padding:0 12px;border-radius:9px;background:var(--surface);font-weight:800;font-size:13.5px;color:var(--ink-2)}
.grpsel button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}
.seg{display:inline-flex;background:var(--surface);border-radius:10px;padding:3px}
.seg button{height:32px;padding:0 12px;border-radius:7px;font-size:13px;font-weight:800;color:var(--ink-3)}
.seg button[aria-pressed="true"]{background:var(--surface-3);color:var(--ink)}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;font-size:12.5px;font-weight:700;color:var(--ink-2);margin:0 2px 10px}
.legend span{display:inline-flex;align-items:center;gap:6px}
.legend .mk{width:24px;height:24px;font-size:12px;border-radius:7px}
.jr-card{background:var(--surface);border-radius:12px;overflow:auto;scrollbar-width:thin}
table.jr{border-collapse:separate;border-spacing:0}
.jr th,.jr td{height:48px;padding:0;text-align:center;background:var(--surface)}
.jr thead th{position:sticky;top:0;z-index:3;height:52px;vertical-align:bottom;padding-bottom:8px;font-size:11px;font-weight:700;color:var(--ink-3)}
.jr thead th b{display:block;font-size:15px;font-weight:800;color:var(--ink-2);margin-bottom:1px}
.jr thead th.today b{color:var(--red-ink)}
.jr .today-col{background:#211d1c}
.jr .nm{position:sticky;left:0;z-index:2;text-align:left;padding:0 10px 0 14px;min-width:150px;max-width:172px;box-shadow:inset -1px 0 0 var(--line),8px 0 12px -8px rgba(0,0,0,.7)}
.desktop table.jr{width:100%}
.desktop .jr .nm{min-width:220px;padding-left:18px}
.jr thead .nm{z-index:4;font-size:12px;padding-bottom:10px}
.jr .nm button{display:block;width:100%}
.jr .nm b{display:block;font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jr .nm small{display:block;font-size:12px;font-weight:700;color:var(--ink-3);white-space:nowrap}
.jr .nm small.warn{color:var(--red-ink)}
.jr tbody tr+tr td{box-shadow:inset 0 1px 0 var(--line)}
.jr tbody tr+tr td.nm{box-shadow:inset 0 1px 0 var(--line),inset -1px 0 0 var(--line),8px 0 12px -8px rgba(0,0,0,.7)}
.jr td.c{width:44px;min-width:44px}
.jr td.c>button{width:44px;height:48px;display:grid;place-items:center}
.mk{width:30px;height:30px;border-radius:7px;display:inline-grid;place-items:center;font:800 13px/1 var(--f-ui);transition:transform .12s}
.mk:active{transform:scale(.9)}
.mk.p{color:var(--ink-3)}
.mk svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.mk.a{background:var(--red);color:#fff}
.mk.e{box-shadow:inset 0 0 0 1.5px var(--red-ink);color:var(--red-ink)}
.mk.l{background:var(--surface-3);color:var(--ink)}
.mk.n{color:var(--ink-3);opacity:.5}
.mk.g{color:var(--ink);font-size:14px}
.jr .sx{min-width:92px;padding:0 14px;text-align:right;font-size:12.5px;color:var(--ink-3);white-space:nowrap}
.jr thead th.sx{line-height:1.3}
.jr .sx b{font-size:14.5px;color:var(--ink);font-weight:800}
.jr .sx b.warn{color:var(--red-ink)}
.jr .sx.first{box-shadow:inset 1px 0 0 var(--line);padding-left:18px}
.jr tbody tr+tr td.sx.first{box-shadow:inset 0 1px 0 var(--line),inset 1px 0 0 var(--line)}
.phone .jr .sx{display:none}

.pop{position:fixed;z-index:60;background:var(--surface-3);border-radius:14px;padding:6px;box-shadow:0 18px 44px rgba(0,0,0,.5);display:flex;gap:2px;animation:pop .16s var(--ease)}
.pop button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:7px 8px;border-radius:10px;font-size:11.5px;font-weight:800;color:var(--ink-2);min-width:60px}
.pop button:hover{background:var(--surface-2)}
@keyframes pop{from{opacity:0;transform:translateY(4px) scale(.98)}}

.scrim{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:40;animation:fade .2s}
@keyframes fade{from{opacity:0}}
.sheet{position:fixed;left:0;right:0;bottom:0;z-index:50;background:var(--surface);border-radius:18px 18px 0 0;max-height:calc(100% - var(--safe-t) - 10px);display:flex;flex-direction:column;box-shadow:0 -14px 44px rgba(0,0,0,.5);animation:up .34s var(--ease)}
.sheet.out{animation:down .2s var(--ease-in) forwards}
@keyframes up{from{transform:translateY(100%)}}
@keyframes down{to{transform:translateY(100%)}}
.desktop .sheet{left:auto;top:0;bottom:0;width:480px;max-height:none;border-radius:0;animation:side .32s var(--ease);box-shadow:-24px 0 60px rgba(0,0,0,.4)}
.desktop .sheet.wide{width:600px}
.desktop .sheet.out{animation:sideout .18s var(--ease-in) forwards}
@keyframes side{from{transform:translateX(100%)}}
@keyframes sideout{to{transform:translateX(100%)}}
.grab{width:40px;height:5px;border-radius:3px;background:var(--surface-3);margin:8px auto 0;flex:none}
.desktop .grab{display:none}
.sh-hd{padding:14px 18px 10px;display:flex;gap:12px;align-items:center}
.desktop .sh-hd{padding:20px 22px 12px}
.sh-hd h2{font:800 20px/1.2 var(--f-ui);letter-spacing:-.025em}
.sh-hd p{font-size:13.5px;color:var(--ink-2);margin-top:2px}
.sh-hd .x{margin-left:auto;width:36px;height:36px;border-radius:50%;background:var(--surface-2);display:grid;place-items:center;color:var(--ink-2);flex:none}
.sh-body{overflow:auto;overscroll-behavior:contain;padding:4px 14px 16px;flex:1}
.desktop .sh-body{padding:4px 22px 22px}
.sh-foot{padding:12px 16px calc(12px + var(--safe-b));box-shadow:inset 0 1px 0 var(--line)}
.sh-foot .cnt{font-size:13px;color:var(--ink-2);font-weight:700;margin:0 2px 10px;display:flex;justify-content:space-between}
.progress{height:4px;border-radius:2px;background:var(--surface-3);overflow:hidden;margin:0 18px 8px}
.progress i{display:block;height:100%;background:var(--ink);border-radius:2px;transition:width .3s var(--ease)}
.tabs{display:flex;gap:4px;padding:0 14px 10px;box-shadow:inset 0 -1px 0 var(--line)}
.desktop .tabs{padding:0 22px 10px}
.tabs button{height:34px;padding:0 12px;border-radius:8px;font-size:13.5px;font-weight:800;color:var(--ink-3);display:inline-flex;align-items:center;gap:6px}
.tabs button[aria-selected="true"]{background:var(--surface-2);color:var(--ink)}
.tabs .dot{min-width:17px;height:17px;border-radius:9px;background:var(--red);color:#fff;font-size:10.5px;display:grid;place-items:center;padding:0 4px}

.att{padding:12px 4px}
.att+.att{box-shadow:inset 0 1px 0 var(--line)}
.att .top2{display:flex;align-items:center;gap:10px}
.att .who{flex:1;min-width:0}
.att .who b{display:block;font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.att .who small{display:block;font-size:12.5px;font-weight:700;color:var(--ink-3)}
.att .who small.warn{color:var(--red-ink)}
.yn{display:flex;background:var(--bg);border-radius:10px;padding:3px;gap:3px;flex:none}
.yn button{height:40px;min-width:64px;padding:0 10px;border-radius:8px;font-size:13.5px;font-weight:800;color:var(--ink-3);transition:background .15s,color .15s}
.yn button.on-p{background:var(--ink);color:var(--bg)}
.yn button.on-a{background:var(--red);color:#fff}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;animation:pop .18s var(--ease)}
.chips .lbl{font-size:12px;font-weight:800;color:var(--ink-3);align-self:center;margin-right:2px}
.chips button{height:32px;padding:0 11px;border-radius:7px;background:var(--bg);font-size:13px;font-weight:800;color:var(--ink-2)}
.chips button[aria-pressed="true"]{background:var(--ink);color:var(--bg)}

.status{padding:4px 4px 16px}
.status small{font-size:13px;font-weight:800;color:var(--ink-3)}
.status .sum{font:500 34px/1.1 var(--f-brand);letter-spacing:-.04em;margin:6px 0 6px}
.status .sum.warn{color:var(--red-ink)}
.status p{font-size:14.5px;color:var(--ink-2);line-height:1.45}
.calc{background:var(--bg);border-radius:12px;padding:4px 14px}
.calc .ln{display:flex;justify-content:space-between;gap:12px;padding:11px 0;font-size:14px}
.calc .ln+.ln{box-shadow:inset 0 1px 0 var(--line)}
.calc .ln span{color:var(--ink-2)}
.calc .ln span small{display:block;font-size:12.5px;color:var(--ink-3);margin-top:1px}
.calc .ln b{font-weight:800;white-space:nowrap}
.calc .ln.tot{box-shadow:inset 0 1.5px 0 var(--line-2)}
.calc .ln.tot span{color:var(--ink);font-weight:800}
.issue{margin-top:12px;background:var(--red-wash);border-radius:12px;padding:14px}
.issue b{display:flex;gap:10px;align-items:center;font-size:14.5px}
.issue p{font-size:13.5px;color:#e6c8c8;margin:6px 0 0 18px;line-height:1.45}
.issue .act{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 0 18px}
.issue .act .btn.soft{background:rgba(255,255,255,.08)}
.ledger .ln{display:grid;grid-template-columns:48px 1fr auto;gap:2px 10px;padding:10px 2px;align-items:baseline;font-size:14px}
.ledger .ln+.ln{box-shadow:inset 0 1px 0 var(--line)}
.ledger .d{font-size:12.5px;color:var(--ink-3);font-weight:800}
.ledger small{display:block;font-size:12.5px;color:var(--ink-3)}
.ledger .a{font-weight:800;text-align:right}
.ledger .flag{color:var(--red-ink)}
.more{width:100%;height:44px;border-radius:10px;background:var(--surface-2);font-size:13.5px;font-weight:800;color:var(--ink-2);margin-top:10px;text-align:center}
.facts{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.facts div{background:var(--bg);border-radius:10px;padding:11px 12px}
.facts small{display:block;font-size:12px;font-weight:800;color:var(--ink-3);margin-bottom:3px}
.facts b{font-size:15px;font-weight:800}
.visits{display:grid;grid-template-columns:repeat(auto-fill,minmax(44px,1fr));gap:5px}
.visits span{height:44px;border-radius:8px;background:var(--bg);display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:11px;font-weight:800;color:var(--ink-3)}
.visits span b{font-size:13px;color:var(--ink-2)}
.visits span.a{background:var(--red-wash);color:var(--red-ink)}.visits span.a b{color:var(--red-ink)}
.visits span.f{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}

.chat{display:flex;flex-direction:column;gap:8px;padding:4px 2px}
.day-sep{align-self:center;font-size:12px;font-weight:800;color:var(--ink-3);padding:4px 10px;border-radius:999px;background:var(--surface-2);margin:6px 0}
.msg{max-width:86%;padding:10px 12px;border-radius:16px;font-size:14px;line-height:1.45;font-weight:600}
.msg.in{align-self:flex-start;background:var(--surface-2);border-bottom-left-radius:6px}
.msg.out{align-self:flex-end;background:#2b2322;border-bottom-right-radius:6px}
.msg small{display:block;font-size:11.5px;color:var(--ink-3);margin-top:4px;text-align:right}
.msg .bill{margin-top:8px;background:var(--bg);border-radius:12px;padding:8px 10px}
.msg .bill div{display:flex;justify-content:space-between;gap:10px;font-size:13px;padding:3px 0;color:var(--ink-2)}
.msg .bill div b{color:var(--ink)}
.msg .bill .t{box-shadow:inset 0 1px 0 var(--line-2);margin-top:4px;padding-top:6px}
.msg .pay{margin-top:8px;display:flex;align-items:center;justify-content:center;height:38px;border-radius:11px;background:var(--red);color:#fff;font-weight:800;font-size:13.5px}
.sched{margin-top:12px;background:var(--bg);border-radius:12px;padding:14px;display:flex;gap:12px;align-items:center}
.sched p{flex:1;font-size:13.5px;color:var(--ink-2)}
.sched p b{display:block;color:var(--ink);font-size:14.5px}
.composer{display:flex;gap:8px;align-items:center;margin-top:12px;background:var(--bg);border-radius:10px;padding:6px 6px 6px 14px;color:var(--ink-3);font-size:14px}
.composer .btn{margin-left:auto;height:34px}
.src-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:800;color:var(--ink-3)}
.src-tag i{width:7px;height:7px;border-radius:50%;background:#53b37a;display:inline-block}

.ctl{display:grid;grid-template-columns:minmax(170px,1.1fr) minmax(0,3fr) 96px;align-items:center;gap:14px;padding:12px 16px;min-height:62px;width:100%}
.ctl+.ctl{box-shadow:inset 0 1px 0 var(--line)}
.ctl b{font-size:14.5px;display:block;font-weight:800}
.ctl small{font-size:12.5px;color:var(--ink-3);font-weight:700}
.ctl .r{text-align:right;font-size:12.5px;color:var(--ink-3);font-weight:700}
.ctl .r b{font-size:15px;color:var(--ink)}
.ctl .r b.warn{color:var(--red-ink)}
.wk{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}
.wk .dcol{display:flex;flex-wrap:wrap;gap:5px;align-content:center;min-height:22px}
.wk .nq{width:9px;height:9px}
.wk-h{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;font-size:11.5px;font-weight:800;color:var(--ink-3)}
.wk-h .today{color:var(--red-ink)}
.phone .ctl{grid-template-columns:1fr auto;gap:8px 12px}
.phone .ctl .wk{grid-column:1/-1}
.phone .ctl.head{display:none}
.cols{display:grid;grid-template-columns:1.25fr .75fr;gap:20px;align-items:start}
.phone .cols{display:block}
.late{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:12px 16px;width:100%}
.late+.late{box-shadow:inset 0 1px 0 var(--line)}
.late b{font-size:14.5px;display:block;font-weight:800}
.late small{font-size:13px;color:var(--ink-2)}
.late .ago{font-size:12.5px;color:var(--red-ink);font-weight:800;text-align:right;white-space:nowrap}
.kpis{display:flex;flex-wrap:wrap;gap:6px 20px;font-size:14px;color:var(--ink-2);margin:-6px 0 4px}
.kpis b{color:var(--ink);font-weight:800}
.kpis .warn b{color:var(--red-ink)}

.tour{padding:18px 16px 30px;max-width:560px;margin:0 auto}
.tour .brandline{display:flex;align-items:center;gap:10px;margin:8px 0 22px}
.tour .brandline img{width:24px;height:auto}
.tour .brandline span{font:600 15px/1 var(--f-brand);letter-spacing:.04em}
.tour h1{font:800 26px/1.15 var(--f-ui);letter-spacing:-.03em}
.tour > p{font-size:14.5px;color:var(--ink-2);margin:8px 0 20px}
.step{display:flex;gap:14px;align-items:center;padding:14px;width:100%;background:var(--surface);border-radius:12px}
.step+.step{margin-top:8px}
.step .n{width:32px;height:32px;border-radius:10px;background:var(--surface-2);display:grid;place-items:center;font-weight:800;font-size:14px;flex:none}
.step b{display:block;font-size:15px;font-weight:800}
.step small{display:block;font-size:13px;color:var(--ink-2);font-weight:600;margin-top:1px}
.tourbtn{position:fixed;z-index:25;left:12px;bottom:calc(84px + var(--safe-b));height:34px;padding:0 12px 0 8px;border-radius:10px;background:var(--surface-3);color:var(--ink);font-weight:800;font-size:13px;display:inline-flex;align-items:center;gap:4px;box-shadow:0 8px 24px rgba(0,0,0,.4)}
.desktop .tourbtn{bottom:20px;left:auto;right:20px}

.toast{position:fixed;left:50%;bottom:calc(88px + var(--safe-b));transform:translateX(-50%);z-index:70;background:var(--ink);color:var(--bg);border-radius:12px;padding:6px 6px 6px 16px;display:flex;align-items:center;gap:14px;font-weight:800;font-size:14px;box-shadow:0 14px 34px rgba(0,0,0,.4);animation:toast .3s var(--ease);white-space:nowrap}
.toast button{height:34px;padding:0 12px;border-radius:10px;background:rgba(0,0,0,.08);font-weight:800}
.desktop .toast{bottom:28px}
@keyframes toast{from{opacity:0;transform:translate(-50%,10px)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* ===== v3: первая версия + референсы. Мир школы даёт шрифт (Unbounded), палитру оболочки (бордовая ночь), плотность и одну деталь — «день одной линией» ===== */
:root{--shell:#1b0f10;--shell-2:#261516;--shell-line:rgba(255,120,120,.10);--t-tj:#5fb3a5;--t-qr:#a9b86a;--t-ar:#d9a456;--t-ts:#c98aa6;--t-hf:#7fa2d8}
.title h1,.hero h1{font:500 27px/1.15 var(--f-brand);letter-spacing:-.03em}
.desktop .title h1{font-size:30px}
.time{font:500 15px/1.15 var(--f-brand);letter-spacing:-.02em;width:58px}
.time small{font:700 12px/1.3 var(--f-ui);letter-spacing:0}
.kpis b,.week b{font-family:var(--f-brand);font-weight:500}
/* шапка-оболочка */
.hero{background:var(--shell);margin:0 -16px 14px;padding:12px 16px 18px;box-shadow:inset 0 -1px 0 var(--shell-line)}
.phone.framed .hero{margin-top:calc(-1 * var(--safe-t));padding-top:calc(var(--safe-t) + 12px)}
.phone.framed .statusbar{background:var(--shell)}
.hero .top{padding-top:0}
.hero small.greet{display:block;font-size:14px;color:#d8b7b5;font-weight:700;margin:10px 0 2px}
.hero h1{margin-bottom:4px}
.hero p{font-size:14px;color:#cdb3b1}
.hero p .warn{color:#ff8a8f}
.desktop .hero{margin:0 -32px 20px;padding:24px 32px 20px}
.compact .hero{margin:0 -24px 20px;padding:22px 24px 18px}
/* день одной линией */
.dayline{position:relative;height:46px;margin:16px 4px 0}
.dayline .rail{position:absolute;left:0;right:0;top:12px;height:2px;border-radius:1px;background:rgba(255,200,195,.16)}
.dayline .past{position:absolute;left:0;top:12px;height:2px;border-radius:1px;background:rgba(255,200,195,.45)}
.dayline .pt{position:absolute;top:7px;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px}
.dayline .pt .nq{width:11px;height:11px;border-radius:2px}
.dayline .pt .nq.next{box-shadow:inset 0 0 0 1.6px #e8cfcd;background:var(--shell)}
.dayline .pt .nq.done{background:#9d8584}
.dayline .pt span{font-size:11px;font-weight:800;color:#b99a98}
.dayline .nowmark{position:absolute;top:4px;width:2px;height:18px;background:var(--red);border-radius:1px;transform:translateX(-50%)}
.dayline .nowmark b{position:absolute;top:-2px;left:6px;font-size:10.5px;font-weight:800;color:#ff8a8f;white-space:nowrap}
/* текущий урок раскрыт */
.focus{background:var(--surface);border-radius:12px;padding:14px;margin-bottom:10px}
.focus .hd{display:flex;align-items:center;gap:10px}
.focus .hd .time{width:auto}
.focus .live{font-size:12px;font-weight:800;color:var(--ink);background:var(--surface-3);border-radius:6px;padding:3px 7px}
.focus h3{font:800 17px/1.25 var(--f-ui);letter-spacing:-.02em;margin:10px 0 2px}
.focus .meta{white-space:normal}
.faces{display:flex;margin:12px 0 14px}
.faces span{width:30px;height:30px;border-radius:50%;background:var(--surface-3);display:grid;place-items:center;font:800 10.5px/1 var(--f-ui);color:var(--ink-2);box-shadow:0 0 0 2px var(--surface);margin-left:-6px}
.faces span:first-child{margin-left:0}
.faces span.warn{background:var(--red-wash);color:var(--red-ink)}
.subj{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:7px;vertical-align:1px}
/* полоса оплат (директор) */
.paybar{background:var(--surface);border-radius:12px;padding:14px}
.paybar .top3{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.paybar .top3 b{font:500 22px/1.1 var(--f-brand);letter-spacing:-.03em}
.paybar .bar{display:flex;height:10px;border-radius:5px;overflow:hidden;margin:12px 0 10px;gap:2px}
.paybar .bar i{display:block;height:100%}
.paybar .leg{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:12.5px;font-weight:700;color:var(--ink-2)}
.paybar .leg span{display:inline-flex;align-items:center;gap:6px}
.paybar .leg i{width:8px;height:8px;border-radius:2px;display:inline-block}
/* боковое меню — бордовая оболочка */
.desktop .side{background:var(--shell);box-shadow:inset -1px 0 0 var(--shell-line)}
.side button:hover{background:var(--shell-2)}
.side button[aria-current="page"]{background:var(--shell-2);color:#fff;box-shadow:inset 2px 0 0 var(--red)}
.side .me{background:var(--shell-2)}
.side .src{color:#b99a98}
/* расписание колонками по педагогам */
.sched-grid{display:grid;grid-template-columns:52px repeat(var(--cols),minmax(150px,1fr));background:var(--surface);border-radius:12px;overflow:auto;position:relative}
.sg-head{position:sticky;top:0;z-index:3;background:var(--surface);display:flex;align-items:center;gap:8px;padding:12px 10px;box-shadow:inset 0 -1px 0 var(--line),inset 1px 0 0 var(--line);font-size:13.5px;font-weight:800;white-space:nowrap;overflow:hidden}
.sg-head .avatar{width:28px;height:28px;font-size:10.5px}
.sg-head small{display:block;font-size:11.5px;color:var(--ink-3);font-weight:700}
.sg-corner{position:sticky;top:0;z-index:3;background:var(--surface);box-shadow:inset 0 -1px 0 var(--line)}
.sg-times{position:relative}
.sg-times span{position:absolute;right:8px;font-size:11.5px;font-weight:700;color:var(--ink-3);transform:translateY(-50%)}
.sg-col{position:relative;box-shadow:inset 1px 0 0 var(--line);}
.sg-hr{position:absolute;left:0;right:0;height:1px;background:var(--line)}
.sg-ev{position:absolute;left:5px;right:5px;border-radius:8px;padding:6px 8px;overflow:hidden;text-align:left;font-size:12.5px;line-height:1.3;color:var(--ink)}
.sg-ev b{display:block;font-weight:800;font-size:12.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg-ev small{display:block;font-size:11.5px;color:var(--ink-2);font-weight:700}
.sg-ev .st{position:absolute;top:7px;right:7px}
.sg-ev.todo{box-shadow:inset 0 0 0 1.5px var(--red)}
.sg-now{position:absolute;left:0;right:0;height:2px;background:var(--red);z-index:1;pointer-events:none}
.sg-ev{z-index:2}
.sg-nowlbl{position:absolute;right:4px;transform:translateY(-50%);z-index:2;background:var(--red);color:#fff;font-size:10.5px;font-weight:800;padding:2px 4px;border-radius:5px}
.phone .sched-grid{grid-template-columns:44px repeat(var(--cols),136px)}

/* v3.1: правки по детектору impeccable и стартовая страница */
.faces span{font-size:11.5px;width:32px;height:32px}
.sg-head .avatar{font-size:11.5px}
.sg-nowlbl{font-size:11px}
.tabbar .badge,.tabs .dot{font-size:11px}
.msg small{font-size:12px}
.focus h2{font:800 17px/1.25 var(--f-ui);letter-spacing:-.02em;margin:10px 0 2px}
.sched-grid{background:transparent;border-radius:0;box-shadow:inset 0 1px 0 var(--line),inset 0 -1px 0 var(--line)}
.sg-head,.sg-corner{background:var(--bg)}
.sg-ev{border-radius:6px}
/* стартовая страница: на компьютере — две половины на весь экран */
.desktop .tourwrap{min-height:100%;display:grid;grid-template-columns:minmax(320px,.9fr) minmax(420px,1.1fr)}
.desktop .tour-side{background:var(--shell);padding:48px 48px 40px;display:flex;flex-direction:column;box-shadow:inset -1px 0 0 var(--shell-line)}
.desktop .tour-side .brandline{margin:0 0 auto}
.desktop .tour-side h1{font:500 40px/1.1 var(--f-brand);letter-spacing:-.035em;margin-top:40px}
.desktop .tour-side p{font-size:16px;color:#d2bab8;margin-top:14px;max-width:34ch;line-height:1.5}
.desktop .tour-side .who{display:flex;gap:10px;margin-top:28px}
.desktop .tour-side .who span{font-size:13px;font-weight:800;color:#e9d6d4;background:var(--shell-2);border-radius:8px;padding:8px 12px}
.desktop .tour-side small{margin-top:auto;padding-top:40px;font-size:12.5px;color:#a58887}
.desktop .tour-steps{display:flex;flex-direction:column;justify-content:center;padding:40px 56px;max-width:640px}
.desktop .tour-steps .step{padding:16px 18px}
.phone .tour-side .who,.phone .tour-side small{display:none}

/* v3.2: правки независимого рецензента */
.yn button{min-width:0;padding:0 11px}
.yn button.on-p{background:var(--surface-3);color:var(--ink)}
.yn button.on-l{background:var(--surface-3);color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--ink-2)}
.faces{align-items:center}
.faces-note{font-style:normal;font-size:12.5px;font-weight:800;color:var(--red-ink);margin-left:12px}
.legend .mk{width:28px;height:28px;font-size:12px}
.legend .lsep{width:1px;height:16px;background:var(--line-2)}
.nq.cancel{position:relative}
.nq.cancel::after{content:"";position:absolute;left:-3px;top:50%;width:calc(100% + 6px);height:1.5px;background:var(--ink-3);transform:rotate(-45deg)}
.card.info .row{cursor:default}
.card.info .row:active,.desktop .card.info .row:hover{background:none}
.leg button u{text-decoration:underline;text-underline-offset:3px}
.leg button .i{width:15px;height:15px}
.msg .pay.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1.5px var(--line-2)}
.sg-ev{background:var(--surface)}
.sg-ev b .subj{width:7px;height:7px;margin-right:6px}
.sched-grid{background:transparent}
.sg-times span:first-child{transform:none}
.desktop .focus .btn.full{width:auto;height:44px;padding:0 22px}
.desktop .focus{display:grid;grid-template-columns:1fr auto;align-items:end;column-gap:20px}
.desktop .focus > *:not(.btn){grid-column:1}
.desktop .focus .btn.full{grid-column:2;grid-row:1 / span 4;align-self:center}
.wk .dcol{flex-wrap:nowrap}
.ctl .r br{display:none}
.ctl .r span{margin-left:8px}
/* активный пункт меню — нуқта вместо красной полосы */
.side button[aria-current="page"]{box-shadow:none}
.side .active-nq{width:6px;height:6px;margin:0 -4px 0 -2px;opacity:0;background:var(--red)}
.side button[aria-current="page"] .active-nq{opacity:1}
.compact .side .active-nq{position:absolute;left:6px;margin:0}
.compact .side .lb{display:block;position:absolute;bottom:-1px;left:0;right:0;text-align:center;font-size:10px;font-weight:800;color:var(--ink-3)}
.compact .side button{height:52px;align-items:flex-start;padding-top:9px}
.compact .side button[aria-current="page"] .lb{color:var(--ink)}
.sg-ev{padding-right:20px}
.sg-ev b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sg-head > div{overflow:hidden;text-overflow:ellipsis}
.sg-head small{overflow:hidden;text-overflow:ellipsis}
.faces{flex-wrap:wrap}
.faces-note{flex-basis:100%;margin:10px 0 0 !important}
.yn button{font-size:13px;padding:0 9px}
@media (max-width:1023px){
  .desktop .tourwrap{grid-template-columns:1fr;min-height:0}
  .desktop .tour-side{padding:36px 32px 32px}
  .desktop .tour-side .brandline{margin:0}
  .desktop .tour-side h1{margin-top:28px;font-size:36px}
  .desktop .tour-side small{display:none}
  .desktop .tour-steps{padding:24px 32px 40px;max-width:none}
}
.desktop .tour-side{max-width:none;margin:0}
.desktop .tour-steps{margin:0 auto;width:100%}
/* v3.3: поясняющий текст как на стартовой (нравится владельцу) — Manrope 16, тёплый тон, воздух; заголовки на компьютере крупнее */
:root{--ink-2:#cbbab8;--warm-text:#d2bab8}
.title p,.hero p{font-size:15.5px;line-height:1.5;color:var(--warm-text)}
.status p,.issue p,.sched p,.alert .meta,.focus .meta{line-height:1.5}
.status p{font-size:15.5px;color:var(--warm-text)}
.desktop .title h1,.desktop .hero h1{font-size:36px;letter-spacing:-.035em}
.desktop .title p,.desktop .hero p{font-size:16px;max-width:62ch}

/* v3.4: квадратики отметок одинаково во всех браузерах (Safari не центрировал букву) */
.mk{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1;text-align:center}
.legend span > .mk{margin:0}

/* v3.4: цвета, которые раньше были вписаны «на месте», — в токены (нужно для светлой темы) */
:root{--hero-greet:#d8b7b5;--hero-text:#cdb3b1;--hero-warn:#ff8a8f;--day-rail:rgba(255,200,195,.16);--day-past:rgba(255,200,195,.45);--day-done:#9d8584;--day-next:#e8cfcd;--day-label:#b99a98;--wash-text:#e6c8c8;--msg-out:#2b2322;--today-col:#211d1c;--tabbar-bg:rgba(18,16,16,.97);--src:#b99a98;--tour-p:#d2bab8;--tour-chip:#e9d6d4;--tour-small:#a58887;--side-active-ink:#fff;--soft-on-wash:rgba(255,255,255,.08)}
.hero small.greet{color:var(--hero-greet)}
.hero p{color:var(--hero-text)}
.hero p .warn{color:var(--hero-warn)}
.dayline .rail{background:var(--day-rail)}
.dayline .past{background:var(--day-past)}
.dayline .pt .nq.done{background:var(--day-done)}
.dayline .pt .nq.next{box-shadow:inset 0 0 0 1.6px var(--day-next);background:var(--shell)}
.dayline .pt span{color:var(--day-label)}
.alert .meta,.issue p{color:var(--wash-text)}
.msg.out{background:var(--msg-out)}
.jr .today-col{background:var(--today-col)}
.tabbar{background:var(--tabbar-bg)}
.side .src{color:var(--src)}
.side button[aria-current="page"]{color:var(--side-active-ink)}
.issue .act .btn.soft{background:var(--soft-on-wash)}
.desktop .tour-side p{color:var(--tour-p)}
.desktop .tour-side .who span{color:var(--tour-chip)}
.desktop .tour-side small{color:var(--tour-small)}
.title p,.hero p,.status p{color:var(--warm-text)}
.hero p{color:var(--hero-text)}
.tour .brandline .tourchip{height:30px;font-size:12.5px}

/* v3.4: светлая тема — цвета школы: белый, серый, чёрный и немного красного (без кремового и коричневого) */
:root[data-wc="day"]{
  --bg:#f3f1f1;--surface:#ffffff;--surface-2:#f2eeee;--surface-3:#e6e1e0;
  --line:rgba(40,20,20,.08);--line-2:rgba(40,20,20,.15);
  --ink:#1c1919;--ink-2:#574f4e;--ink-3:#6d6564;--warm-text:#5a4c4b;
  --red:#c8262f;--red-ink:#ad1f28;--red-wash:#fbeaea;
  --shell:#faf6f6;--shell-2:#f1e8e8;--shell-line:rgba(120,40,40,.10);
  --hero-greet:#7a5958;--hero-text:#5f4f4e;--hero-warn:#ad1f28;
  --day-rail:rgba(120,40,40,.14);--day-past:rgba(120,40,40,.32);--day-done:#a09291;--day-next:#7a5958;--day-label:#7a6866;
  --wash-text:#7a4a4b;--msg-out:#f7ecec;--today-col:#fbf6f6;--tabbar-bg:rgba(255,255,255,.97);--src:#7a6866;
  --tour-p:#5a4c4b;--tour-chip:#5a3f3f;--tour-small:#8a7473;--side-active-ink:#1c1919;--soft-on-wash:#ffffff;
  color-scheme:light;
}
:root[data-wc="day"] .brandmini img,:root[data-wc="day"] .brand img,:root[data-wc="day"] .brandline img{filter:invert(1)}
:root[data-wc="day"] .desktop .btn.ink:hover{background:#000}
:root[data-wc="day"] .scrim{background:rgba(30,15,15,.35)}
:root[data-wc="day"] .sheet{box-shadow:0 -14px 44px rgba(40,20,20,.18)}
:root[data-wc="day"] .desktop .sheet{box-shadow:-24px 0 60px rgba(40,20,20,.16)}
:root[data-wc="day"] .pop{box-shadow:0 18px 44px rgba(40,20,20,.18)}
:root[data-wc="day"] .toast{box-shadow:0 14px 34px rgba(40,20,20,.2)}
:root[data-wc="day"] .card,:root[data-wc="day"] .focus,:root[data-wc="day"] .paybar,:root[data-wc="day"] .jr-card,:root[data-wc="day"] .step{box-shadow:0 1px 2px rgba(40,20,20,.06),0 0 0 1px rgba(40,20,20,.05)}
:root[data-wc="day"] .calc,:root[data-wc="day"] .facts div,:root[data-wc="day"] .sched,:root[data-wc="day"] .composer,:root[data-wc="day"] .yn,:root[data-wc="day"] .chips button,:root[data-wc="day"] .visits span{background:var(--surface-2)}
:root[data-wc="day"] .sg-ev{box-shadow:0 0 0 1px rgba(40,20,20,.08)}
:root[data-wc="day"] .sg-ev.todo{box-shadow:inset 0 0 0 1.5px var(--red)}

.sg-ev b{display:block;white-space:nowrap;text-overflow:ellipsis;-webkit-line-clamp:unset}
.topbar .tourchip + .tourchip{margin-left:6px}

/* v3.5: темы как на сайте waymarkaz.com (src/styles.css: ночь :root, день [data-theme="day"]) */
:root{
  --bg:oklch(0.17 0.005 20);--surface:oklch(0.21 0.008 20);--surface-2:oklch(0.245 0.009 20);--surface-3:oklch(0.29 0.01 20);
  --line:oklch(0.99 0 0 / 8%);--line-2:oklch(0.99 0 0 / 14%);
  --ink:oklch(0.985 0 0);--ink-2:oklch(0.82 0.01 20);--ink-3:oklch(0.72 0.01 20);--warm-text:oklch(0.86 0.025 25);
  --red:oklch(0.58 0.22 25);--red-ink:oklch(0.7 0.19 22);--red-wash:oklch(0.58 0.22 25 / 14%);
  --shell:oklch(0.2 0.03 20);--shell-2:oklch(0.25 0.04 20);--shell-line:oklch(0.58 0.22 25 / 14%);
  --today-col:oklch(0.235 0.009 20);--tabbar-bg:oklch(0.17 0.005 20 / 96%);--msg-out:oklch(0.26 0.03 20);
}
:root[data-wc="day"]{
  --bg:oklch(0.95 0.003 20);--surface:oklch(1 0 0);--surface-2:oklch(0.975 0.003 20);--surface-3:oklch(0.92 0.004 20);
  --line:oklch(0.2 0.003 20 / 10%);--line-2:oklch(0.2 0.003 20 / 16%);
  --ink:oklch(0.2 0.003 20);--ink-2:oklch(0.36 0.004 20);--ink-3:oklch(0.44 0.004 20);--warm-text:oklch(0.36 0.02 20);
  --red:oklch(0.58 0.22 25);--red-ink:oklch(0.5 0.19 25);--red-wash:oklch(0.58 0.22 25 / 9%);
  --shell:oklch(0.975 0.003 20);--shell-2:oklch(0.93 0.008 20);--shell-line:oklch(0.2 0.003 20 / 8%);
  --hero-greet:oklch(0.44 0.03 20);--hero-text:oklch(0.36 0.01 20);--hero-warn:oklch(0.5 0.19 25);
  --day-rail:oklch(0.2 0.003 20 / 14%);--day-past:oklch(0.2 0.003 20 / 34%);--day-done:oklch(0.62 0.01 20);--day-next:oklch(0.36 0.01 20);--day-label:oklch(0.44 0.004 20);
  --wash-text:oklch(0.4 0.08 25);--msg-out:oklch(0.97 0.012 25);--today-col:oklch(0.975 0.006 20);--tabbar-bg:oklch(1 0 0 / 96%);--src:oklch(0.44 0.004 20);
  --tour-p:oklch(0.36 0.01 20);--tour-chip:oklch(0.3 0.02 20);--tour-small:oklch(0.5 0.01 20);--side-active-ink:oklch(0.2 0.003 20);
}
:root[data-wc="day"] .card,:root[data-wc="day"] .focus,:root[data-wc="day"] .paybar,:root[data-wc="day"] .jr-card,:root[data-wc="day"] .step{box-shadow:0 1px 2px oklch(0.2 0.003 20 / 8%),0 6px 16px -10px oklch(0.2 0.003 20 / 22%)}
:root[data-wc="day"] .btn.red,:root[data-wc="day"] .focus .btn.full{box-shadow:0 8px 18px -10px oklch(0.42 0.18 28 / 0.32)}
/* переключатель темы — значок сайта: солнце ночью, луна днём */
.themebtn{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--ink-2);flex:none}
.themebtn:hover{color:var(--ink)}
.topbar .themebtn{margin-left:8px}
.theme-glyph .theme-glyph-core,.theme-glyph .theme-glyph-rays,.theme-glyph .theme-glyph-cut,.theme-glyph .theme-glyph-stars{transform-box:fill-box;transform-origin:center;transition:transform .55s cubic-bezier(.34,1.3,.64,1),opacity .3s ease}
.theme-glyph[data-mode="day"] .theme-glyph-core{transform:scale(1.61) translateY(.6px)}
.theme-glyph[data-mode="day"] .theme-glyph-cut{transform:translate(-5.8px,5.6px) scale(1.08)}
.theme-glyph[data-mode="day"] .theme-glyph-rays{transform:rotate(-45deg) scale(.4);opacity:0}
.theme-glyph .theme-glyph-stars{transform:scale(.2);opacity:0}
.theme-glyph[data-mode="day"] .theme-glyph-stars{transform:none;opacity:1}
/* смена темы — кругом из-под кнопки, как на сайте */
@media (prefers-reduced-motion:no-preference){
  html.theme-vt::view-transition{background:transparent}
  html.theme-vt::view-transition-old(root){animation:none}
  html.theme-vt::view-transition-new(root){animation:themeReveal .62s cubic-bezier(.65,0,.35,1) both}
}
@keyframes themeReveal{from{clip-path:circle(0 at var(--theme-x,50%) var(--theme-y,0))}to{clip-path:circle(var(--theme-r,150vmax) at var(--theme-x,50%) var(--theme-y,0))}}
/* логотип — кнопка «на главную» */
button.brandmini,button.brand{cursor:pointer;border-radius:8px}
button.brandmini:hover,button.brand:hover{opacity:.85}
button.brand{width:100%;text-align:left}

/* v3.6: меньше шума на главном экране — одно главное действие */
.hero{padding-bottom:16px}
.hero small.greet{font-size:13.5px;margin:12px 0 2px}
button.avatar{cursor:pointer}
.alert{padding:12px 14px}
.alert .ttl{font-size:14.5px}
.alert .meta{font-size:13px}
.now-lbl{font-size:12.5px;font-weight:800;color:var(--ink-3)}
.focus h2{margin-top:6px}
.focus-note{font-size:13px;font-weight:800;color:var(--red-ink);margin-top:8px}
.focus .btn.full{margin-top:14px}
.row .time{width:50px}
.sheet .row .theme-glyph{width:20px;height:20px;color:var(--ink-2);flex:none}

[hidden]{display:none!important}
.row .time{width:62px}

/* v3.7: установка на телефон и «Что нового» */
.tour-extra{margin-top:18px;display:flex;flex-direction:column;gap:8px}
.step.quiet{background:transparent;box-shadow:inset 0 0 0 1px var(--line-2)}
.step.quiet .n{background:transparent;color:var(--ink-2)}
.n-badge{width:28px;height:28px;border-radius:8px;background:var(--surface-2);display:grid;place-items:center;font-weight:800;font-size:13px;flex:none}
.news{padding:14px 4px}
.news+.news{box-shadow:inset 0 1px 0 var(--line)}
.news small{font-size:12.5px;font-weight:800;color:var(--ink-3)}
.news b{display:block;font-size:16px;font-weight:800;margin:3px 0 6px}
.news ul{margin:0;padding-left:18px;color:var(--warm-text);font-size:14.5px;line-height:1.5}
/* установленное приложение: шапка под строкой состояния iPhone */
@media (display-mode: standalone){
  .phone .main{padding-top:env(safe-area-inset-top,0px)}
  .phone .hero{margin-top:calc(-1 * env(safe-area-inset-top,0px));padding-top:calc(env(safe-area-inset-top,0px) + 12px)}
  .phone .tour{padding-top:calc(env(safe-area-inset-top,0px) + 12px)}
}

.tour-extra{margin:0 0 16px}

.icon-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:16px 10px}
.icon-opt{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}
.icon-opt img{border-radius:17px;box-shadow:0 1px 3px rgba(0,0,0,.25)}
.icon-opt b{font-size:15px;font-weight:800;margin-top:4px}
.icon-opt small{font-size:12px;color:var(--ink-3);font-weight:700;line-height:1.3}

/* v3.8: понятный вход для директора — одна главная кнопка, остальное после шагов */
.tour-steps .start{margin-bottom:14px}
.tour-extra.after{margin:22px 0 0}
.tx-h{display:block;font-size:12.5px;font-weight:800;color:var(--ink-3);margin:0 4px 2px}

/* v3.9: вход «педагог / директор», экран «Урок проведён», полоска абонемента */
.done-view{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:44px 20px 52px}
.done-mk{width:68px;height:68px;border-radius:50%;background:var(--red,#d8343b);display:grid;place-items:center;animation:wc-pop .5s cubic-bezier(.16,1,.3,1) both}
.done-mk svg{width:32px;height:32px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:wc-draw .35s .18s ease-out forwards}
.done-view h2{margin:12px 0 0;font-size:22px}
.done-view p{margin:0;font-size:16px;color:var(--warm-text)}
@keyframes wc-pop{from{transform:scale(.55);opacity:0}to{transform:none;opacity:1}}
@keyframes wc-draw{to{stroke-dashoffset:0}}
@media (prefers-reduced-motion:reduce){.done-mk{animation:none}.done-mk svg{animation:none;stroke-dashoffset:0}}
.subbar{margin:14px 0 4px;padding:12px 14px;border-radius:12px;background:var(--surface-2)}
.subbar>div{display:flex;justify-content:space-between;gap:10px;font-size:14px;margin-bottom:8px}
.subbar>div span{color:var(--ink-3);font-weight:700;white-space:nowrap}
.subbar i{display:block;height:6px;border-radius:3px;background:var(--line-2);overflow:hidden}
.subbar u{display:block;height:100%;background:var(--red,#d8343b);border-radius:3px}

/* v4.1 (28.11): больше воздуха, меньше подписей; ночь глубже и теплее.
   Откат ночи: --bg 0.17 0.005 20, --surface 0.21 0.008 20, --surface-2 0.245 0.009 20, --surface-3 0.29 0.01 20, шапка .hero — сплошная полоса var(--shell) */
.label{margin:30px 4px 10px;font-size:13.5px}
.wrap > .label:first-child,.cols > div > .label:first-child{margin-top:8px}
.row{padding:14px 16px;min-height:64px;gap:14px}
.focus,.paybar{padding:18px}
.alert{padding:14px 16px;margin-bottom:12px}
.late{padding:14px 16px}
.ctl{padding:14px 18px;min-height:64px}
.title{padding-bottom:20px}
.title p{margin-top:8px;line-height:1.5}
.desktop .title{padding:30px 0 24px}
.cols{gap:28px}
.cols.even{grid-template-columns:1fr 1fr}
.after{font-size:13.5px;font-weight:700;color:var(--ink-3);margin:12px 4px 0}
.legend-q{font-size:13px;font-weight:700;color:var(--ink-3);line-height:1.5;margin:0 4px 14px}
.legend.one{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-bottom:16px;gap:6px 16px;color:var(--ink-3)}
.legend.one span{white-space:nowrap}
.gsep{flex:none;align-self:center;font-size:12px;font-weight:700;color:var(--ink-3);padding:0 2px 0 10px;white-space:nowrap}
.jr-tools{margin-bottom:16px}
.phone .ctl .wk{display:none}
.phone .ctl{grid-template-columns:1fr auto;align-items:center}
.ctl .r b.warn{font-size:13.5px}
.desktop .ctl{grid-template-columns:minmax(170px,1fr) minmax(0,3fr) 104px}
.wk,.wk-h{grid-template-columns:repeat(7,minmax(0,1fr))}
.wk .dcol{flex-wrap:wrap;gap:4px}

/* ночь: чуть светлее и теплее поверхности, тонкая кромка у карточек, свечение сверху вместо полосы */
:root:not([data-wc="day"]){
  --bg:oklch(0.165 0.008 22);--surface:oklch(0.215 0.011 22);--surface-2:oklch(0.25 0.012 22);--surface-3:oklch(0.295 0.013 22);
  --tabbar-bg:oklch(0.165 0.008 22 / 94%);
}
:root:not([data-wc="day"]) .main{background:radial-gradient(1000px 420px at 50% -140px,oklch(0.3 0.07 22 / .55),transparent 72%) var(--bg);background-attachment:local}
:root:not([data-wc="day"]) .hero{background:transparent;box-shadow:none}
:root:not([data-wc="day"]) .phone.framed .statusbar{background:var(--bg)}
:root:not([data-wc="day"]) .card,:root:not([data-wc="day"]) .focus,:root:not([data-wc="day"]) .paybar,:root:not([data-wc="day"]) .jr-card,:root:not([data-wc="day"]) .step{box-shadow:inset 0 0 0 1px oklch(0.99 0 0 / 5%)}
:root:not([data-wc="day"]) .tabbar{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
/* расписание на телефоне: колонки шире, без кружков в шапке — названия не обрезаются */
.phone .sched-grid{grid-template-columns:44px repeat(var(--cols),168px)}
.phone .sg-head .avatar{display:none}
.phone .sg-head{padding:12px 10px 12px 12px}

/* v4.2 (28.11): ссылка открывает сразу «Сегодня»; при первом открытии — заставка 1,5 с (знак, WAYCRM, красная черта), нажатие пропускает */
.splash{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:radial-gradient(760px 460px at 50% 42%,oklch(0.3 0.08 22 / .55),transparent 70%) var(--bg);transition:opacity .5s var(--ease)}
.splash.out{opacity:0;pointer-events:none}
.sp-in{display:flex;flex-direction:column;align-items:center;gap:16px}
.sp-in img{width:56px;height:auto;animation:spMark .9s var(--ease) both}
.sp-in b{font:500 15px/1 var(--f-brand);letter-spacing:.34em;padding-left:.34em;color:var(--ink);animation:spWord 1s .15s var(--ease) both}
.sp-in i{display:block;width:132px;height:2px;border-radius:2px;background:linear-gradient(90deg,transparent,var(--red),transparent);animation:spLine 1.1s .3s var(--ease) both}
@keyframes spMark{from{opacity:0;transform:scale(.84) translateY(8px)}to{opacity:1;transform:none}}
@keyframes spWord{from{opacity:0;letter-spacing:.7em}to{opacity:1;letter-spacing:.34em}}
@keyframes spLine{from{opacity:0;transform:scaleX(0)}to{opacity:1;transform:scaleX(1)}}
:root[data-wc="day"] .splash{background:var(--bg)}
:root[data-wc="day"] .sp-in img{filter:invert(1)}

/* Главная v4.4–v4.5 (28.11). v4.4 добавила к прежней главной числа школы и «День школы» дорожками (варианты v4.3 — в коммите 86da378).
   v4.5 по словам владельца «шумно, числа меньше, дата не нужна крупно, всё как будто лежит на чём-то»:
   без плиты и сетки под шапкой, главное — приветствие, дата мелкой строкой, числа тихой строкой без разделителей, одна карточка «Ваши уроки», тонкая кромка у карточек */
.tally{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 4px 0;font-size:12.5px;font-weight:700;color:var(--ink-3)}
.tally span{display:inline-flex;align-items:center;gap:7px}
.tally .nq{width:7px;height:7px}
.tally .warn{color:var(--red-ink)}

/* числа школы — тихая строка (Unbounded, лёгкий вес), подпись в одну строку */
.pulse{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0 0}
.pulse .wk4{display:none}
.pulse .n{display:flex;align-items:baseline;gap:2px;font:300 24px/1 var(--f-brand);letter-spacing:-.05em;white-space:nowrap;color:var(--ink)}
.pulse .n small{font:400 .5em/1 var(--f-brand);letter-spacing:0;color:var(--ink-3)}
.pulse .c{display:block;margin-top:7px;font-size:12.5px;font-weight:700;color:var(--ink-3);line-height:1.3}
.desktop .pulse{grid-template-columns:repeat(4,max-content);gap:56px;margin:28px 0 4px}
.desktop .pulse .wk4{display:block}
.desktop .pulse .n{font-size:30px}
.compact .pulse .n{font-size:28px}
.desktop .pulse .c{font-size:13px;margin-top:8px}
/* день каждого педагога дорожкой, красная черта «сейчас» с нуктой */
.lanes{display:block;width:100%;background:var(--surface);border-radius:16px;padding:16px 16px 8px;transition:background .2s}
.desktop .lanes:hover{background:var(--surface-2)}
.lanes-in{position:relative}
.lane{display:grid;grid-template-columns:62px minmax(0,1fr);align-items:center;height:28px}
.desktop .lane{grid-template-columns:132px minmax(0,1fr);height:36px}
.lane>b{font-size:12.5px;font-weight:800;color:var(--ink-3);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desktop .lane>b{font-size:13.5px}
.lane.me>b{color:var(--ink)}
.lane .tr{position:relative;height:100%}
.lane:not(.ax) .tr::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:var(--line)}
.lane .ev{position:absolute;top:50%;height:6px;margin-top:-3px;border-radius:3px;background:var(--ink-3);opacity:.45}
.desktop .lane .ev{height:8px;margin-top:-4px;border-radius:4px}
.lane .ev.now{background:var(--ink);opacity:1;box-shadow:0 0 14px oklch(0.99 0 0 / 35%)}
.lane .ev.todo{background:var(--red);opacity:1}
.lane .ev.next{background:transparent;opacity:1;box-shadow:inset 0 0 0 1.5px var(--ink-3)}
.lane.ax{height:24px}
.lane.ax span{position:absolute;top:7px;transform:translateX(-50%);font-size:11px;font-weight:800;color:var(--ink-3)}
.lane-ov{position:absolute;top:-6px;bottom:24px;left:62px;right:0;pointer-events:none}
.desktop .lane-ov{left:132px}
.nowl{position:absolute;top:0;bottom:0;width:1.5px;margin-left:-.75px;background:var(--red);box-shadow:0 0 10px oklch(0.58 0.22 25 / 55%)}
.nowl::before{content:"";position:absolute;top:-3px;left:50%;width:7px;height:7px;margin-left:-3.5px;background:var(--red);transform:rotate(45deg);border-radius:1.5px}

.label .cnt{font:400 17px/1 var(--f-brand);letter-spacing:-.03em;color:var(--red-ink)}

/* шапка главной: без плиты — лежит прямо на фоне; приветствие главное, дата мелко */
.desktop .home{max-width:1180px;margin:0 auto}
.home .hero{background:none;box-shadow:none;padding-bottom:4px}
.home .hero h1{font:800 24px/1.2 var(--f-ui);letter-spacing:-.03em;margin:16px 0 6px}
.desktop .home .hero h1{font-size:32px;margin:6px 0 8px}
.home .hero .when{font-size:15px;font-weight:600;line-height:1.4;color:var(--warm-text);margin:0}
.desktop .home .hero .when{font-size:16px}
.home .label{margin:30px 2px 10px;font-size:13.5px}
.desktop .home .label{margin-top:36px}

/* карточки главной: одна поверхность, тонкая кромка, мягкая длинная тень, скругление 16 */
.home .hcard{position:relative;background:var(--surface);border-radius:16px;overflow:hidden}
.home .hcard.mine>*+*{border-top:1px solid var(--line)}
.home .hrow{display:flex;align-items:center;gap:12px;width:100%;padding:14px 18px;text-align:left;transition:background .15s}
.home .hrow .ttl{font-size:14.5px}
.home .hrow .meta{color:var(--ink-3)}
.home .hrow .btn{height:34px;padding:0 14px;font-size:13.5px}
.home .hcard .focus{background:none;border-radius:0;margin:0;padding:18px;box-shadow:none}
.home .hcard .after{margin:0;padding:13px 18px;font-size:13px}
.home .paybar{padding:18px}
.pay-hd{display:flex;justify-content:space-between;gap:12px;font-size:13px;font-weight:700;color:var(--ink-3)}
.pay-hd span:first-child{color:var(--ink-2);font-weight:800}
.pay-big{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-top:10px}
.pay-big b{font:500 26px/1 var(--f-brand);letter-spacing:-.035em;color:var(--red-ink)}
.pay-big span{font-size:13px;font-weight:700;color:var(--ink-3)}
.home .paybar .bar{height:6px;border-radius:3px;margin:16px 0 12px}
.home .paybar .leg{gap:6px 18px;color:var(--ink-3)}
.home .lanes{border-radius:16px;padding:16px 18px 8px}
.home .lane:not(.ax) .tr::before{opacity:.55}
.desktop .home .hrow:hover{background:var(--surface-2)}
:root:not([data-wc="day"]) .home :is(.hcard,.lanes){background:linear-gradient(180deg,oklch(0.255 0.013 22 / 72%),oklch(0.205 0.011 22 / 64%));box-shadow:inset 0 1px 0 oklch(1 0 0 / 7%),inset 0 0 0 1px oklch(1 0 0 / 5%),0 24px 48px -30px oklch(0 0 0 / 70%)}
:root:not([data-wc="day"]) .desktop .home .hrow:hover{background:oklch(0.99 0 0 / 4%)}
:root[data-wc="day"] .home :is(.hcard,.lanes){background:oklch(1 0 0);box-shadow:0 0 0 1px oklch(0.25 0.01 20 / 7%),0 1px 2px oklch(0.25 0.01 20 / 4%),0 14px 32px -22px oklch(0.3 0.03 20 / 22%)}
:root[data-wc="day"] .lane .ev.now{box-shadow:none}

/* фон главной днём: светлее и теплее, мягкое розоватое свечение сверху — пара ночному бордовому */
:root[data-wc="day"] .main:has(.home){background:radial-gradient(1100px 460px at 50% -180px,oklch(0.93 0.035 22 / 85%),transparent 72%) oklch(0.972 0.003 30);background-attachment:local}

/* красный как на сайте (28.11, владелец: «у белого выглядит игрушечным»): «ювелирная» кнопка .btn-jewel-primary из waymarkaz-site —
   диагональ crimson → crimson-deep, тёмная кромка, блик по верху, мягкая цветная тень; счётчики — та же диагональ */
.btn.red{background:linear-gradient(135deg,oklch(0.58 0.22 25) 0%,oklch(0.4 0.2 25) 100%);border:1px solid oklch(0.42 0.18 28 / .6);box-shadow:0 14px 30px -14px oklch(0.42 0.18 28 / .36),inset 0 1px 0 oklch(1 0 0 / 24%)}
:root[data-wc="day"] .btn.red,:root[data-wc="day"] .focus .btn.full{box-shadow:0 14px 30px -14px oklch(0.42 0.18 28 / .36),inset 0 1px 0 oklch(1 0 0 / 24%)}
.desktop .btn.red:hover{background:linear-gradient(135deg,oklch(0.58 0.22 25) 0%,oklch(0.4 0.2 25) 100%);filter:brightness(1.05)}
.tabbar .badge,.side .cnt{background:linear-gradient(135deg,oklch(0.58 0.22 25),oklch(0.45 0.2 25))}

/* v4.6 (28.11): свой фон на каждой странице — для разнообразия (владелец). Картинки с сайта (waymarkaz-site/public/media), уменьшены.
   Слой фона «прилипает» к окну, содержимое прокручивается поверх — карточки лежат на узоре.
   Сегодня — розетка на всю страницу (две, по углам) · Расписание — заря · Контроль — свечение знака · Журналы — заря зеркально · Ученики — розетка в углу */
.main{position:relative}
.bgdeco{position:sticky;top:0;height:0;z-index:0;pointer-events:none}
.bgdeco i{position:absolute;left:0;right:0;top:0;height:100vh;height:100dvh;overflow:hidden;display:block}
.bgdeco i::before,.bgdeco i::after{content:"";position:absolute;background-repeat:no-repeat;background-size:contain;background-position:center}
.wrap{position:relative;z-index:1}
/* днём фон всех страниц светлее и теплее (как на главной в v4.5) */
:root[data-wc="day"] .main{background:radial-gradient(1100px 460px at 50% -180px,oklch(0.93 0.035 22 / 70%),transparent 72%) oklch(0.972 0.003 30);background-attachment:local}

/* остальные экраны — как главная: заголовок тем же шрифтом, что приветствие; карточки 16 px с тонкой кромкой и длинной тенью, ночью стекло */
.title h1{font:800 24px/1.15 var(--f-ui);letter-spacing:-.03em}
.desktop .title h1{font-size:30px}
.title small{color:var(--warm-text);font-size:13.5px}
.card,.jr-card,.focus,.paybar,.lanes{border-radius:16px}
:root[data-wc="day"] :is(.card,.jr-card,.focus,.paybar,.lanes){background:oklch(1 0 0);box-shadow:0 0 0 1px oklch(0.25 0.01 20 / 7%),0 1px 2px oklch(0.25 0.01 20 / 4%),0 14px 32px -22px oklch(0.3 0.03 20 / 22%)}
:root:not([data-wc="day"]) :is(.card,.jr-card,.focus,.paybar,.lanes){background:linear-gradient(180deg,oklch(0.255 0.013 22 / 72%),oklch(0.205 0.011 22 / 64%));box-shadow:inset 0 1px 0 oklch(1 0 0 / 7%),inset 0 0 0 1px oklch(1 0 0 / 5%),0 24px 48px -30px oklch(0 0 0 / 70%)}
:root .home .hcard .focus{background:none;box-shadow:none;border-radius:0}

/* v5.0 (28.11): основа кабинетов и учётных записей — фото в аватарке, профиль, регистрация, заявки на доступ, кабинеты ученика и педагога */
.avatar{overflow:hidden}
.avatar img{width:100%;height:100%;object-fit:cover;display:block}
button.me{width:100%;text-align:left;color:inherit;font:inherit}
.search-gap{flex:1}
.sh-sec{display:flex;align-items:center;justify-content:space-between;font-size:13px;font-weight:800;color:var(--ink-2);margin:20px 2px 8px}
.sh-sec .cnt{font:400 16px/1 var(--f-brand);color:var(--red-ink)}
.card.pad{padding:16px}
.avup{position:relative;display:flex;align-items:center;gap:14px;margin:2px 0 16px;cursor:pointer}
.avup input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.avup .avatar{width:64px;height:64px;font-size:19px;box-shadow:0 0 0 1px var(--line-2)}
.avup b{display:block;font-size:14.5px;font-weight:800}
.avup small{display:block;font-size:12.5px;color:var(--ink-3);font-weight:600;margin-top:2px}
.avup:focus-within .avatar{box-shadow:0 0 0 2px var(--ink)}
.field{display:block;margin:0 0 12px}
.field>span{display:block;font-size:13px;font-weight:800;color:var(--ink-2);margin:0 2px 6px}
.field input{width:100%;height:46px;padding:0 14px;border-radius:12px;border:1px solid var(--line-2);background:var(--surface-2);color:var(--ink);font:600 15px/1 var(--f-ui)}
.field input::placeholder{color:var(--ink-3);font-weight:500}
.field input:focus{outline:none;border-color:var(--ink-3);box-shadow:0 0 0 3px oklch(0.58 0.22 25 / 18%)}
.btn.full.ink{height:46px}
.rolepick{display:flex;flex-wrap:wrap;gap:6px;margin:-4px 0 14px}
.rolepick button{height:36px;padding:0 13px;border-radius:10px;background:var(--surface-2);font-size:13.5px;font-weight:800;color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line)}
.rolepick button[aria-pressed="true"]{background:var(--ink);color:var(--bg);box-shadow:none}
.row.req{flex-wrap:wrap;row-gap:10px}
.row.req .body{flex:1 1 180px}
.phone .row.req .btn.ink{margin-left:48px}
.home .hrow .ttl,.home .hrow .meta{white-space:normal}
.row.req .btn{height:32px;font-size:13px;padding:0 12px}
.btn.ico{width:32px;padding:0}
.btn.ico .i{width:16px;height:16px}
.pill.ok{background:oklch(0.62 0.09 155 / 16%);color:oklch(0.48 0.1 155)}
:root:not([data-wc="day"]) .pill.ok{color:oklch(0.78 0.1 155)}
.row.hw{align-items:flex-start}
.row.hw .ttl{white-space:normal}
.row.hw .meta{white-space:normal}
.hw-act{padding:0 18px 16px 44px}
.sum-r{font-size:14.5px;font-weight:800;white-space:nowrap}
.hcard.tap{display:block;width:100%;text-align:left;color:inherit;font:inherit}
.label button.link{font-size:13px}
/* смена темы на виду (владелец 28.11): на телефоне — в верхней строке рядом с аватаркой, на компьютере — справа в верхней панели */
.top .themebtn{box-shadow:inset 0 0 0 1px var(--line-2)}

/* v5.2 (28.11): «Сообщения» — внутренний чат команды. Рассылка «Админы групп», чаты групп для сотрудников, личные беседы.
   На компьютере — пункт бокового меню со счётчиком и две колонки (беседы | переписка); на телефоне — значок в верхней строке, беседа на весь экран */
.msgbtn{position:relative;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface);color:var(--ink-2);box-shadow:inset 0 0 0 1px var(--line-2);flex:none}
.msgbtn .i{width:18px;height:18px}
.msgbtn[aria-current="page"]{color:var(--ink);background:var(--surface-2)}
.msgbtn b{position:absolute;top:-4px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:9px;display:grid;place-items:center;font-size:10.5px;font-weight:800;color:#fff;background:linear-gradient(135deg,oklch(0.58 0.22 25),oklch(0.45 0.2 25));box-shadow:0 0 0 2px var(--bg)}
/* список бесед */
.th-sec{font-size:13.5px;font-weight:800;color:var(--ink-2);margin:30px 4px 10px}
.th-av{font-size:12px;font-weight:800;letter-spacing:-.01em;color:var(--ink-2)}
.th-av.grp{border-radius:11px;font-size:12.5px;color:var(--ink)}
.th-av.bc{background:var(--ink);color:var(--bg)}
.th-av.bc .i{width:18px;height:18px}
.row.th{min-height:70px}
.row.th .meta{color:var(--ink-3)}
.row.th.unread .meta{color:var(--ink)}
.th-r{display:flex;flex-direction:column;align-items:flex-end;gap:7px;flex:none;align-self:flex-start;padding-top:3px;min-width:34px}
.th-r small{font-size:12px;font-weight:700;color:var(--ink-3);white-space:nowrap}
.row.th.unread .th-r small{color:var(--ink-2)}
.th-un{min-width:20px;height:20px;padding:0 6px;border-radius:10px;display:grid;place-items:center;font-size:11px;font-weight:800;color:#fff;background:linear-gradient(135deg,oklch(0.58 0.22 25),oklch(0.45 0.2 25))}
.th-hint{text-align:center;margin:18px 16px 0;line-height:1.5}
.phone .th-list>.th-group:first-child{margin-top:2px}
/* компьютер: две колонки в одной карточке */
.msgr{display:grid}
.desktop .msgr{grid-template-columns:340px minmax(0,1fr);height:calc(100dvh - 232px);min-height:480px}
.compact .msgr{grid-template-columns:280px minmax(0,1fr)}
.desktop .th-pane{overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:6px 0 14px;box-shadow:inset -1px 0 0 var(--line)}
.desktop .th-sec{margin:20px 20px 6px;font-size:12.5px;color:var(--ink-3)}
.desktop .th-list .row{padding:11px 18px 11px 20px;min-height:64px}
.desktop .th-list .row+.row{box-shadow:none}
.desktop .row.th[aria-current="true"]{background:var(--surface-2)}
.desktop .row.th[aria-current="true"]::before{content:"";position:absolute;left:7px;top:50%;width:6px;height:6px;margin-top:-3px;transform:rotate(45deg);border-radius:1px;background:var(--ink)}
:root:not([data-wc="day"]) .desktop .row.th[aria-current="true"]{background:oklch(0.99 0 0 / 6%)}
:root:not([data-wc="day"]) .desktop .th-list .row:hover{background:oklch(0.99 0 0 / 4%)}
/* переписка */
.cv{display:flex;flex-direction:column;min-width:0;min-height:0;--b-in:var(--surface-2);--b-out:var(--msg-out)}
.cv-hd{display:flex;align-items:center;gap:12px}
.cv-hd .ttl{font-size:15.5px}
.cv-hd .meta{color:var(--ink-3);font-size:12.5px}
.desktop .cv-hd{padding:14px 22px;box-shadow:inset 0 -1px 0 var(--line)}
.cv-body{display:flex;flex-direction:column;gap:8px}
.desktop .cv-body{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:16px 22px 18px}
.desktop .cv .msg{max-width:min(76%,580px)}
.desktop .cv-cmp{padding:12px 18px 14px;box-shadow:inset 0 1px 0 var(--line)}
.cv-empty{margin:auto;color:var(--ink-3);font-weight:700}
.cv .msg.in{background:var(--b-in)}
.cv .msg.out{background:var(--b-out)}
:root:not([data-wc="day"]) .desktop .cv{--b-in:oklch(0.99 0 0 / 6.5%);--b-out:oklch(0.34 0.05 22 / 72%)}
:root[data-wc="day"] .cv{--b-in:oklch(1 0 0);--b-out:oklch(0.938 0.016 25)}
:root[data-wc="day"] .desktop .cv{--b-in:oklch(0.962 0.004 20);--b-out:oklch(0.948 0.014 25)}
:root[data-wc="day"] .phone .cv .msg.in{box-shadow:0 0 0 1px oklch(0.25 0.01 20 / 7%),0 1px 2px oklch(0.25 0.01 20 / 5%)}
.msg .by{display:block;font-size:12px;font-weight:800;color:var(--ink-2);margin-bottom:3px}
.msg .q{display:block;padding:1px 0 1px 9px;margin:2px 0 7px;box-shadow:inset 2px 0 0 var(--line-2);font-size:12.5px;color:var(--ink-3)}
.msg .q b{display:block;font-size:11.5px;font-weight:800;color:var(--ink-2)}
.msg p{margin-top:8px}
.msg .rd{display:inline-flex;align-items:center;gap:5px;font-weight:800;color:var(--ink-2)}
.msg .rd .nq{width:6px;height:6px}
.desktop .msg .rd:hover{color:var(--ink)}
.msg-note{align-self:flex-end;max-width:86%;margin:-2px 6px 4px;text-align:right;font-size:12.5px;font-weight:700;color:var(--ink-3);line-height:1.45}
.msg-note button{font-weight:800;color:var(--ink);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.sysnote{align-self:center;max-width:440px;margin:2px auto 6px;text-align:center;font-size:12.5px;font-weight:700;color:var(--ink-3);line-height:1.5}
/* поле ввода и готовые тексты */
.tpls{display:flex;align-items:center;gap:8px;margin:0 2px 10px;overflow-x:auto;scrollbar-width:none}
.tpls>span{font-size:12.5px;font-weight:800;color:var(--ink-3);flex:none}
.tpl{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 13px;border-radius:10px;font-size:13.5px;font-weight:800;color:var(--ink);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-2);white-space:nowrap;flex:none;transition:background .15s,transform .12s}
.tpl:active{transform:scale(.97)}
.desktop .tpl:hover{background:var(--surface-3)}
.tpl .nq{width:7px;height:7px}
.cmp{display:flex;align-items:flex-end;gap:8px;padding:5px;border-radius:16px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line-2);transition:box-shadow .15s}
.cmp:focus-within{box-shadow:inset 0 0 0 1px var(--ink-3),0 0 0 3px oklch(0.58 0.22 25 / 14%)}
.cmp textarea{flex:1;min-width:0;height:36px;max-height:140px;resize:none;border:0;outline:none;background:transparent;color:var(--ink);font:600 15px/1.4 var(--f-ui);padding:7px 6px 7px 11px;overflow-y:auto}
.cmp textarea::placeholder{color:var(--ink-3);font-weight:500}
.cmp textarea:focus-visible{outline:none}
.send{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--ink);color:var(--bg);flex:none;transition:opacity .15s,transform .12s}
.send .i{width:18px;height:18px;stroke-width:2.2}
.send:disabled{opacity:.25;cursor:default}
.send:not(:disabled):active{transform:scale(.94)}
.cmp-note{font-size:12px;font-weight:700;color:var(--ink-3);margin:8px 8px 0}
:root[data-wc="day"] .cmp{background:oklch(1 0 0)}
:root[data-wc="day"] .tpl{background:oklch(1 0 0)}
/* черновик «Напоминание об оплате»: кому уйдёт, что увидит каждый, итог */
.tplv{margin-top:10px;padding:16px;border-radius:16px;background:oklch(0.99 0 0 / 4%);box-shadow:inset 0 0 0 1px var(--line-2)}
:root[data-wc="day"] .tplv{background:oklch(1 0 0);box-shadow:0 0 0 1px oklch(0.25 0.01 20 / 8%),0 14px 32px -22px oklch(0.3 0.03 20 / 22%)}
:root[data-wc="day"] .desktop .tplv{background:oklch(0.985 0.003 20);box-shadow:inset 0 0 0 1px var(--line)}
.tplv-hd{display:flex;gap:12px;align-items:flex-start}
.tplv-hd b{display:block;font-size:15px;font-weight:800}
.tplv-hd span{display:block;font-size:13px;font-weight:600;color:var(--ink-3);margin-top:2px}
.tplv-hd .x{margin-left:auto;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--ink-3);flex:none}
.tplv-hd .x .i{width:16px;height:16px}
.tplv-to{display:grid;grid-template-columns:repeat(auto-fill,minmax(148px,1fr));gap:6px;margin:14px 0 2px}
.tplv-to button{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 11px;border-radius:10px;font-size:13px;font-weight:800;color:var(--ink-2);background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line)}
.tplv-to button small{margin-left:auto;font-size:12.5px;font-weight:700;color:var(--ink-3)}
.tplv-to button[aria-pressed="true"]{background:var(--ink);color:var(--bg);box-shadow:none}
.tplv-to button[aria-pressed="true"] small{color:inherit;opacity:.7}
.tplv-to .nq{width:6px;height:6px}
.tplv-lbl{font-size:12.5px;font-weight:800;color:var(--ink-3);margin:16px 2px 8px;text-align:right}
.tplv .tplv-msg{display:block;width:fit-content;max-width:min(92%,440px);margin-left:auto}
.tplv-sum{font-size:13px;font-weight:700;color:var(--ink-2);margin:14px 2px 0;line-height:1.5}
.tplv-act{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}
.phone .tplv-act .btn.red{flex:1}
.phone .tplv-to button{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;height:auto;min-height:46px;padding:7px 11px}
.phone .tplv-to button small{margin-left:14px}
.tplv-to .nm{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
:root[data-wc="day"] .cv .day-sep{background:oklch(1 0 0);box-shadow:0 0 0 1px var(--line)}
/* телефон: беседа на весь экран — шапка и поле ввода прилипают, нижнее меню прячется */
.phone.chat-open .main,.phone.chat-open .wrap{padding-bottom:0}
.phone.chat-open .tabbar{display:none}
.phone .cv{min-height:calc(100dvh - var(--safe-t))}
.phone .cv-hd{position:sticky;top:var(--safe-t);z-index:4;margin:0 -16px;padding:8px 16px 10px 6px;background:color-mix(in oklab,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:inset 0 -1px 0 var(--line)}
.phone .cv-body{flex:1;padding:14px 0 16px}
.phone .cv-cmp{position:sticky;bottom:0;z-index:4;margin:0 -16px;padding:10px 12px calc(10px + var(--safe-b));background:color-mix(in oklab,var(--bg) 86%,transparent);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);box-shadow:inset 0 1px 0 var(--line)}
:root[data-wc="day"] .phone :is(.cv-hd,.cv-cmp){background:oklch(0.972 0.003 30 / 88%)}
.cv-back{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;color:var(--ink);flex:none}
.cv-back .i{width:22px;height:22px}
@media (display-mode: standalone){
  .phone .cv-hd{top:0;margin-top:calc(-1 * env(safe-area-inset-top,0px));padding-top:calc(env(safe-area-inset-top,0px) + 8px)}
}
/* фон «Сообщений» — узор нукт, как у других плотных экранов (переменная --pat-nukta — в блоке v5.1) */
.bg-messages .bgdeco i::before{background-image:var(--pat-nukta)}

/* v5.1 (28.11): фон на всю страницу — где-то гирих (исламская геометрия, восьмиконечные звёзды), где-то нукты (знак WAYCRM).
   Владелец: розетки и заря не понравились, «давай где-то гирих и где-то нукта». Варианты — фон-на-всю-страницу.png, фон-крупно.png */
:root{--pat-girih:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='rgba%28255%2C215%2C210%2C0.065%29' stroke-width='1'%3E%3Cpath d='M24 24h48v48H24z'/%3E%3Cpath d='M48 14 82 48 48 82 14 48z'/%3E%3Cpath d='M48 14V0M82 48h14M48 82v14M14 48H0M24 24 0 0M72 24 96 0M72 72l24 24M24 72 0 96'/%3E%3C/g%3E%3C/svg%3E");--pat-nukta:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M8.5 6.3 10.7 8.5 8.5 10.7 6.3 8.5z M25.5 23.3 27.7 25.5 25.5 27.7 23.3 25.5z' fill='rgba%28255%2C225%2C220%2C0.10%29'/%3E%3C/svg%3E")}
:root[data-wc="day"]{--pat-girih:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96'%3E%3Cg fill='none' stroke='rgba%28120%2C45%2C45%2C0.10%29' stroke-width='1'%3E%3Cpath d='M24 24h48v48H24z'/%3E%3Cpath d='M48 14 82 48 48 82 14 48z'/%3E%3Cpath d='M48 14V0M82 48h14M48 82v14M14 48H0M24 24 0 0M72 24 96 0M72 72l24 24M24 72 0 96'/%3E%3C/g%3E%3C/svg%3E");--pat-nukta:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='34'%3E%3Cpath d='M8.5 6.3 10.7 8.5 8.5 10.7 6.3 8.5z M25.5 23.3 27.7 25.5 25.5 27.7 23.3 25.5z' fill='rgba%2890%2C40%2C40%2C0.16%29'/%3E%3C/svg%3E")}
.bgdeco i::before{inset:0;width:auto;height:auto;background-repeat:repeat;background-size:auto;background-position:0 0}
.bgdeco i::after{display:none}
.bg-today .bgdeco i::before,.bg-control .bgdeco i::before,.bg-students .bgdeco i::before{background-image:var(--pat-girih)}
.bg-schedule .bgdeco i::before,.bg-journal .bgdeco i::before{background-image:var(--pat-nukta)}

/* шапка главной: слева приветствие, дата и числа тихой строкой, справа аят — тот же приём, что на сайте (маска по картинке каллиграфии) */
:root{--ayah-ink:oklch(0.86 0.03 25)}
:root[data-wc="day"]{--ayah-ink:#9d1420}
.desktop .hero.hello{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:40px}
.stats{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:14px;font-size:13.5px;font-weight:600;color:var(--ink-3)}
.stats span{display:inline-flex;align-items:baseline;gap:5px}
.stats span+span::before{content:"";width:5px;height:5px;margin-right:6px;transform:translateY(-2px) rotate(45deg);border-radius:1px;background:var(--line-2);align-self:center}
.stats b{font-weight:800;color:var(--ink-2)}
.stats .wk4{display:none}
.desktop .stats .wk4{display:inline-flex}
.desktop .stats{font-size:14px;margin-top:16px}
.ayah{margin:20px 0 0}
.phone .ayah-c{max-width:200px}
.phone .ayah figcaption{font-size:13px;margin-top:6px}
.ayah-c{width:100%;max-width:250px;aspect-ratio:1400/437;background:var(--ayah-ink);-webkit-mask:url(media/ayah-rabbi-zidni-ilma.webp) left center/contain no-repeat;mask:url(media/ayah-rabbi-zidni-ilma.webp) left center/contain no-repeat}
.ayah figcaption{margin-top:8px;font-size:13.5px;font-weight:600;line-height:1.4;color:var(--warm-text);text-wrap:balance}
.desktop .ayah{margin:0;width:300px;text-align:center}
.desktop .ayah-c{max-width:none;-webkit-mask-position:center;mask-position:center}
.compact .hero.hello{grid-template-columns:minmax(0,1fr) 220px;column-gap:24px}
.compact .ayah{width:220px}

/* v5.3-черновик (не путать с v5.2 «Сообщения»; карточка заменена кольцом и неделей v5.3, стили оставлены для отката): «Сейчас в школе» — понятная замена дорожек: кто ведёт урок, до скольки; итог дня строкой со ссылкой на расписание */
.label .live-cnt{color:var(--ink-2)}
.now-row .meta .subj{margin-right:6px}
.now-row .till{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:var(--ink-2);white-space:nowrap}
.now-row .till .nq{width:7px;height:7px}
.now-sum .ttl{font-size:14.5px}
.now-sum .meta{white-space:normal}
.now-sum .meta .warn{color:var(--red-ink)}
.link-r{display:inline-flex;align-items:center;gap:2px;font-size:13px;font-weight:800;color:var(--ink-3);white-space:nowrap}

/* v5.4 (28.11): главная — сетка 2×2 на компьютере: уроки | оплаты, внимание | заявки; карточки в ряду одной высоты.
   Кольцо и неделя столбиками (v5.3) убраны по словам владельца — «запутаешься»; их код — в коммите e635ba3 */
.desktop .bento{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"mine pay" "attn leads";column-gap:24px;align-items:stretch}
.t-mine{grid-area:mine}.t-pay{grid-area:pay}.t-attn{grid-area:attn}.t-leads{grid-area:leads}
.tile{display:flex;flex-direction:column;min-width:0}
.tile>.hcard,.tile>.card{flex:1}
.t-mine .hcard{display:flex;flex-direction:column}
.t-mine .hcard .after{margin-top:auto}
.pay2{display:flex;flex-direction:column}
.pay2 .pay-big{margin-top:0}
.pay2 .pay-big b{font-size:30px}
.pay-sub{margin-top:6px;font-size:13.5px;font-weight:600;color:var(--ink-3)}
.home .pay2 .bar{height:10px;border-radius:5px;margin:16px 0 8px}
.pay-rows>*{display:flex;align-items:center;gap:10px;width:100%;padding:9px 2px;font-size:13.5px;font-weight:600;color:var(--ink-2);text-align:left}
.pay-rows>*+*{box-shadow:inset 0 1px 0 var(--line)}
.pay-rows i{width:10px;height:10px;border-radius:3px;flex:none}
.pay-rows span{flex:1;min-width:0}
.pay-rows b{color:var(--ink);font-weight:800}
.pay-rows em{font-style:normal;font-weight:700;color:var(--ink-3);white-space:nowrap}
.pay-rows button{color:var(--red-ink)}
.pay-rows button b,.pay-rows button em{color:var(--red-ink)}
.pay-rows .chev{width:16px;height:16px;margin-right:-2px}
.pay-cta{margin-top:auto;height:44px}
.pay2 .pay-rows{margin-bottom:14px}
.desktop .t-attn{align-self:start}
.row.lead{align-items:center}
.row.lead .meta{white-space:normal}
.row.lead .meta.src{color:var(--ink-3);font-weight:600;margin-top:1px}
.row.lead .btn{height:32px;padding:0 13px;font-size:13px}
