/* Mektep Hub — the look is described in docs/design.md.
   Colours: Telegram's own CSS variables (--tg-theme-*, set by telegram-web-app.js and updated on theme change)
   mapped to roles below; tints are mixed from them. html.dark switches the fixed status colours to the dark set.
   html.fb-light / html.fb-dark are the mockup palettes, used only outside Telegram. */

/* Brand font Onest (SIL OFL 1.1, brand/OFL.txt): variable weight, subset to Latin, Cyrillic and Kazakh letters. */
@font-face{font-family:"Onest";src:url(/static/brand/onest.woff2) format("woff2");font-weight:100 900;font-style:normal;
 font-display:swap}

:root{
 --page:var(--tg-theme-secondary-bg-color,var(--tg-theme-bg-color,#f5f3ee));
 --card:var(--tg-theme-section-bg-color,var(--tg-theme-bg-color,#ffffff));
 --text:var(--tg-theme-text-color,#16212a);
 --hint:var(--tg-theme-hint-color,#6f7a83);
 --sub:var(--tg-theme-subtitle-text-color,var(--hint));
 --head:var(--tg-theme-section-header-text-color,var(--hint));
 --accent:var(--tg-theme-accent-text-color,var(--tg-theme-link-color,var(--tg-theme-button-color,#a87a12)));
 --btn:var(--tg-theme-button-color,#c9962b);
 --btn-text:var(--tg-theme-button-text-color,#1a1205);
 --bar:var(--tg-theme-bottom-bar-bg-color,var(--card));
 --sep:var(--tg-theme-section-separator-color,color-mix(in srgb,var(--hint) 30%,var(--card)));
 /* status: fixed per scheme, picked for contrast (fill / text) */
 --ok:#2e9d57;--ok-ink:#1a7f37;--warn:#e67700;--warn-ink:#b25000;
 --crit:var(--tg-theme-destructive-text-color,#d93025);
 --mix:12%;
 /* derived tints */
 --fill:color-mix(in srgb,var(--hint) var(--mix),var(--card));
 --track:color-mix(in srgb,var(--hint) 22%,var(--card));
 --shine:color-mix(in srgb,var(--hint) 22%,var(--card));
 --ok-tint:color-mix(in srgb,var(--ok) var(--mix),var(--card));
 --warn-tint:color-mix(in srgb,var(--warn) var(--mix),var(--card));
 --crit-tint:color-mix(in srgb,var(--crit) var(--mix),var(--card));
 --acc-tint:color-mix(in srgb,var(--accent) var(--mix),var(--card));
 --tabs-bg:color-mix(in srgb,var(--bar) 88%,transparent);
 --safe-b:max(env(safe-area-inset-bottom,0px),var(--tg-safe-area-inset-bottom,0px));
 --ease:cubic-bezier(.2,.8,.2,1);
}
:root.dark{--ok:#4cc26e;--ok-ink:#4cc26e;--warn:#f5a524;--warn-ink:#f5a524;
 --crit:var(--tg-theme-destructive-text-color,#ff6b6b);--mix:18%}
:root.fb-light{--page:#f5f3ee;--card:#fff;--text:#16212a;--hint:#6f7a83;--sub:#6f7a83;--head:#6f7a83;--accent:#a87a12;
 --btn:#c9962b;--btn-text:#1a1205;--bar:#fff;--sep:#e7e3da}
:root.fb-dark{--page:#0f1418;--card:#171e24;--text:#eef1f3;--hint:#8b98a3;--sub:#8b98a3;--head:#8b98a3;--accent:#d9a640;
 --btn:#d9a640;--btn-text:#1a1205;--bar:#0f1418;--sep:#26313a}
@supports not (color:color-mix(in srgb,red 50%,blue)){
 :root{--sep:var(--tg-theme-section-separator-color,rgba(128,128,128,.3));--fill:rgba(128,128,128,.14);
  --track:rgba(128,128,128,.22);--shine:rgba(128,128,128,.24);--ok-tint:rgba(46,157,87,.15);--warn-tint:rgba(230,119,0,.15);
  --crit-tint:rgba(217,48,37,.14);--acc-tint:rgba(36,129,204,.14);--tabs-bg:var(--bar)}
}

/* ---------- base ---------- */
*{box-sizing:border-box;margin:0;padding:0}
html{background:var(--page);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{min-height:100vh;background:var(--page);color:var(--text);
 font:400 16px/1.35 "Onest",-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
 -webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent;overscroll-behavior-y:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer;text-align:inherit}
a{color:inherit;text-decoration:none}
h1,h2{font-size:inherit;font-weight:inherit}
[hidden]{display:none!important}
.i{display:block;width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- shell ---------- */
.app{display:flex;flex-direction:column;min-height:100vh;min-height:var(--tg-viewport-stable-height,100vh);
 transition:transform .35s var(--ease)}
.app.pulling{transition:none}
.top{display:flex;align-items:flex-start;gap:12px;width:100%;max-width:600px;margin:0 auto;padding:14px 16px 2px}
/* Brand mark: mark-small up to 32 px (full mark only from 52 px); clear space ≥ ½ of its width; colour version on light,
   white version (gold module stays gold) on dark. Never stretched, recoloured or faded. */
.logo{flex:none;width:28px;height:28px;margin:3px 2px 0 0}
.logo img{display:block;width:28px;height:28px}
.on-dark{display:none!important}
:root.dark .on-light{display:none!important}
:root.dark .on-dark{display:block!important}
.top-text{flex:1;min-width:0}
.top h1{min-height:34px;font-size:28px;line-height:34px;font-weight:700;letter-spacing:-.5px;overflow-wrap:anywhere}
.sub{display:inline-flex;align-items:center;gap:5px;min-height:24px;font-size:13px;line-height:17px;color:var(--hint);
 -webkit-user-select:none;user-select:none}
.sub .i{width:14px;height:14px;stroke-width:2.1}
.sub:active{opacity:.55}
.sub.busy .i{animation:spin .9s linear infinite}
.sub.warn{color:var(--warn-ink)}
.side{flex:none;padding-top:1px}
.ava{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--btn);color:var(--btn-text);
 font-size:16px;font-weight:700}
.scr{flex:1 0 auto;width:100%;max-width:600px;margin:0 auto;padding:12px 16px 8px;display:flex;flex-direction:column;gap:24px}
/* Footer: last in the page, pushed to the bottom on short pages, above the tab bar (56 px + safe area). */
.brand-foot{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:600px;margin:0 auto;
 padding:20px 16px calc(72px + var(--safe-b));font-size:13px;line-height:16px;font-weight:500;color:var(--hint)}
.brand-foot img{display:block;width:16px;height:16px}
body.notab .brand-foot{padding-bottom:calc(24px + var(--safe-b))}
.scr.enter{animation:enter .26s var(--ease) both}
@keyframes enter{from{opacity:0;transform:translateY(10px)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ---------- sections, cards, rows ---------- */
.sec{display:flex;flex-direction:column;scroll-margin-top:12px}
.sec-head{display:flex;align-items:center;gap:8px;min-height:24px;padding:0 16px 8px}
.sec-head h2{font-size:15px;line-height:20px;font-weight:600;color:var(--head)}
.badge{min-width:22px;height:22px;padding:0 7px;border-radius:11px;display:inline-grid;place-items:center;
 font-size:13px;font-weight:600;background:var(--fill);color:var(--sub)}
.badge.hot{background:var(--btn);color:var(--btn-text)}
.sec-act{margin-left:auto;display:inline-flex;align-items:center;font-size:15px;line-height:20px;font-weight:500;color:var(--accent);
 padding:2px 0 2px 12px}
.sec-act .i{width:17px;height:17px;stroke-width:2.2;margin-right:-4px}
.sec-act:active{opacity:.5}
.sec-foot{padding:8px 16px 0;font-size:13px;line-height:17px;color:var(--hint)}
.card{background:var(--card);border-radius:14px;overflow:hidden}
:root.flat .card{box-shadow:0 0 0 1px var(--sep)}
.hero{padding:16px}
.tap{cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:transform .2s var(--ease)}
.tap:active{transform:scale(.985);transition:none}

.row{position:relative;display:flex;align-items:flex-start;gap:12px;width:100%;min-height:56px;padding:12px 16px;
 -webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:background-color .25s}
.row+.row::before{content:"";position:absolute;top:0;right:0;left:var(--inset,16px);height:1px;background:var(--sep);
 transform:scaleY(.5);transform-origin:0 0}
.list-tile{--inset:64px}.list-status{--inset:50px}.list-time{--inset:72px}
a.row,button.row{cursor:pointer}
a.row:active,button.row:active{background:var(--fill);transition:none}
/* A row with a button: text block | button in its own column, centred, 16 px apart, fixed size.
   On phones narrower than 380 px the button drops under the text instead of squeezing it. */
.row.act{display:grid;grid-template-columns:36px minmax(0,1fr) auto;column-gap:12px;align-items:center}
.row.act .btn{min-width:88px;height:36px;margin-left:4px;padding:0 14px;border-radius:18px}
@media (max-width:379px){
 .row.act{grid-template-columns:36px minmax(0,1fr);row-gap:10px;align-items:start}
 .row.act .btn{grid-column:2;justify-self:start;margin-left:0}
}
.b{display:block;flex:1;min-width:0}
.t{display:block;font-size:16px;line-height:21px;font-weight:500;overflow-wrap:anywhere}
.x{display:block;margin-top:3px;font-size:15px;line-height:20px;overflow-wrap:anywhere}
.m{display:block;margin-top:3px;font-size:14px;line-height:19px;color:var(--sub);overflow-wrap:anywhere}
.aside{flex:none;font-size:13px;line-height:21px;color:var(--hint);white-space:nowrap}
.tr{display:flex;align-items:flex-start;gap:10px}
.tr .t{flex:1;min-width:0}
.row.done .t{color:var(--sub);font-weight:400}
.time{flex:none;width:44px;font-size:15px;line-height:21px;font-weight:600;color:var(--sub)}
.sw{font-weight:600}
.sw.work,.sw.review{color:var(--accent)}.sw.done{color:var(--ok-ink)}.sw.queue{color:var(--sub)}.sw.fix{color:var(--crit)}

/* icon tiles, chips, buttons */
.tile{position:relative;flex:none;width:36px;height:36px;border-radius:10px;display:grid;place-items:center;
 background:var(--acc-tint);color:var(--accent)}
.tile .i{width:21px;height:21px}
.tile.ok{background:var(--ok-tint);color:var(--ok-ink)}
.tile.warn{background:var(--warn-tint);color:var(--warn-ink)}
.tile.crit{background:var(--crit-tint);color:var(--crit)}
.tile.mute{background:var(--fill);color:var(--hint)}
.tile.big{width:48px;height:48px;border-radius:14px}
.tile.big .i{width:27px;height:27px}
.tile.solid{width:48px;height:48px;border-radius:14px;color:var(--btn-text);background:var(--btn);
 background:linear-gradient(150deg,color-mix(in srgb,var(--btn) 80%,#fff),var(--btn) 70%)}
:root.dark .tile.solid{background:linear-gradient(150deg,color-mix(in srgb,var(--btn) 88%,#fff),var(--btn) 70%)}
.tile.solid .i{width:30px;height:30px;stroke-width:1.9}
.tile.solid.off{background:var(--fill);color:var(--hint)}
.dot{position:absolute;right:-3px;bottom:-3px;width:13px;height:13px;border-radius:50%;background:var(--ok);border:2.5px solid var(--card)}
.dot.live{animation:live 2.2s ease-out infinite}
@keyframes live{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--ok) 60%,transparent)}
 70%,100%{box-shadow:0 0 0 6px color-mix(in srgb,var(--ok) 0%,transparent)}}
.chip{display:inline-flex;align-items:center;gap:5px;flex:none;height:26px;padding:0 10px;border-radius:13px;
 font-size:13px;line-height:26px;font-weight:600;white-space:nowrap;background:var(--fill);color:var(--sub)}
.chip .i{width:15px;height:15px;stroke-width:2.4;margin-left:-2px}
.chip .cdot{width:7px;height:7px;border-radius:50%;background:currentColor;margin-left:-1px}
.chip .cdot.live{animation:live 2.2s ease-out infinite}
.chip.ok{background:var(--ok-tint);color:var(--ok-ink)}
.chip.warn{background:var(--warn-tint);color:var(--warn-ink)}
.chip.crit{background:var(--crit-tint);color:var(--crit)}
.chip.acc{background:var(--acc-tint);color:var(--accent)}
.plan{flex:none;height:22px;padding:0 7px;border-radius:6px;font-size:12px;line-height:22px;font-weight:600;
 background:var(--fill);color:var(--sub)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:none;height:34px;padding:0 14px;border-radius:17px;
 background:var(--btn);color:var(--btn-text);font-size:15px;font-weight:600;white-space:nowrap;
 transition:transform .2s var(--ease),opacity .2s}
.btn .i{width:16px;height:16px;stroke-width:2.3;margin-right:-4px}
.btn:active,a.row:active .btn{transform:scale(.95);opacity:.85;transition:none}

/* ---------- status icons (tasks) ---------- */
.st{flex:none;width:22px;height:22px;margin-top:-.5px}
.st-disc{fill:var(--ok)}
.st-check{fill:none;stroke:var(--card);stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.st-ring{fill:none;stroke:var(--accent);stroke-width:2}
.st-half{fill:var(--accent)}
.st-dash{fill:none;stroke:var(--hint);stroke-width:2}

/* ---------- hermes ---------- */
.hermes{display:flex;gap:14px;align-items:flex-start}
.hermes-head{display:flex;align-items:center;gap:8px;min-height:26px}
.hermes-head b{font-size:17px;line-height:22px;font-weight:600}
.hermes-head .chip{margin-left:auto}
.hermes .x{margin-top:6px;font-size:16px;line-height:22px}
.hermes .m{margin-top:4px;font-size:13px;line-height:17px;color:var(--hint)}

/* ---------- limits ---------- */
.acct{position:relative;padding:14px 16px 16px}
.acct+.acct::before{content:"";position:absolute;top:0;left:16px;right:0;height:1px;background:var(--sep);
 transform:scaleY(.5);transform-origin:0 0}
.acct-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;margin-bottom:12px}
.acct-head b{font-size:17px;line-height:22px;font-weight:600;white-space:nowrap}
.acct-head .chip{margin-left:auto}
.acct-none{font-size:15px;line-height:20px;color:var(--sub);margin-top:-2px}
.meters{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px}
.meter-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px}
.meter-label{font-size:14px;line-height:19px;color:var(--sub)}
.meter-val{font-size:24px;line-height:28px;font-weight:700;letter-spacing:-.5px}
.meter-val small{font-size:15px;font-weight:600;letter-spacing:0;margin-left:1px}
.meter-val.none{color:var(--hint)}
.bar{height:8px;margin:6px 0 7px;border-radius:4px;background:var(--lvl-track,var(--track));overflow:hidden}
.bar i{display:block;height:100%;border-radius:4px;background:var(--lvl,var(--accent));transition:width .6s var(--ease)}
.meter-foot{font-size:13px;line-height:17px;color:var(--hint)}
.lvl-ok{--lvl:var(--ok);--lvl-track:var(--ok-tint)}
.lvl-warn{--lvl:var(--warn);--lvl-track:var(--warn-tint)}
.lvl-crit{--lvl:var(--crit);--lvl-track:var(--crit-tint)}
.lvl-none{--lvl:var(--hint);--lvl-track:var(--track)}
.lvl-crit .meter-foot{color:var(--crit)}

/* ---------- sprint ---------- */
.spr-head{display:flex;align-items:flex-start;gap:8px}
.spr-head .t{font-size:17px;line-height:22px;font-weight:600}
.spr-head .m{margin-top:2px}
.chev{width:20px;height:20px;color:var(--hint);margin:1px -4px 0 0;stroke-width:2.2}
.spr-body{display:flex;align-items:center;gap:24px;margin-top:16px}
.ring-box{position:relative;flex:none;width:116px;height:116px}
.ring{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.ring circle{fill:none;stroke-linecap:round;transition:stroke-dasharray .7s var(--ease)}
.ring .tr{stroke:var(--track)}.ring .d{stroke:var(--ok)}.ring .w{stroke:var(--accent)}
.ring-c{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.ring-c b{font-size:28px;line-height:30px;font-weight:700;letter-spacing:-.8px}
.ring-c b small{font-size:16px;letter-spacing:0;margin-left:1px}
.ring-c span{font-size:12px;line-height:15px;color:var(--hint)}
.legend{flex:1;min-width:0;max-width:240px;display:flex;flex-direction:column;gap:12px}
.legend div{display:flex;align-items:center;gap:10px;font-size:15px;line-height:20px}
.legend b{margin-left:auto;font-size:17px;font-weight:600}
.k{flex:none;width:10px;height:10px;border-radius:50%}
.k.d{background:var(--ok)}.k.w{background:var(--accent)}.k.q{border:2px solid var(--hint)}
.spr-foot{position:relative;display:flex;align-items:center;gap:10px;margin:16px -16px -16px;padding:13px 16px;
 font-size:15px;line-height:20px}
.spr-foot::before{content:"";position:absolute;top:0;left:16px;right:0;height:1px;background:var(--sep);
 transform:scaleY(.5);transform-origin:0 0}
.spr-foot .i{width:20px;height:20px;color:var(--accent)}
.spr-foot b{font-weight:600}
.spr-foot .sf-rest{color:var(--sub)}
.spr-foot.warn .i,.spr-foot.warn .sf-rest{color:var(--warn-ink)}
.spr-empty{margin-top:12px;font-size:15px;color:var(--sub)}
.seg{display:flex;gap:2px;height:8px;margin:14px 0 10px;border-radius:4px;overflow:hidden}
.seg i{flex:0 1 auto;height:100%;transition:flex-basis .6s var(--ease)}
.seg .d{background:var(--ok)}.seg .w{background:var(--accent)}.seg .q{flex:1 1 0;background:var(--track)}
.seg-legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:14px;line-height:19px;color:var(--sub)}
.seg-legend span{display:inline-flex;align-items:center;gap:7px}
.seg-legend .k{width:8px;height:8px}.seg-legend .k.q{border-width:1.5px}
.seg-legend b{color:var(--text);font-weight:600}

/* ---------- client ---------- */
.prog{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-top:18px}
.hero-num{font-size:56px;line-height:56px;font-weight:700;letter-spacing:-2px}
.hero-num small{font-size:28px;letter-spacing:-.5px;margin-left:2px}
.hero-cap{margin-top:6px;font-size:14px;line-height:19px;color:var(--sub)}
.bar.big{height:10px;border-radius:5px;margin:16px 0 0}
.bar.big i{border-radius:5px}
.bar.acc{--lvl:var(--accent);--lvl-track:var(--acc-tint)}
.rep-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.rep-head .t{font-size:17px;line-height:22px;font-weight:600}
.note{font-size:16px;line-height:23px;overflow-wrap:anywhere}
.note>*+*{margin-top:10px}
.note ul,.note ol{padding-left:22px}
.note li+li{margin-top:4px}
.note li::marker{color:var(--accent)}
.note b{font-weight:600}
.tl .row{align-items:center;min-height:54px;padding-top:10px;padding-bottom:10px}
.tl .row::before{display:none}
.tl-mark{position:relative;flex:none;width:22px;align-self:stretch;display:grid;place-items:center;margin:-10px 0}
.tl-mark::before,.tl-mark::after{content:"";position:absolute;left:10px;width:2px;background:var(--track)}
.tl-mark::before{top:0;bottom:50%}.tl-mark::after{top:50%;bottom:0}
.tl .row:first-child .tl-mark::before,.tl .row:last-child .tl-mark::after{display:none}
.tl-done .tl-mark::after,.tl-done+.row .tl-mark::before{background:var(--ok)}
.tl-dot{position:relative;z-index:1;width:12px;height:12px;border-radius:50%;background:var(--card);border:2px solid var(--hint)}
.tl-done .tl-dot{width:20px;height:20px;border:0;background:var(--ok);display:grid;place-items:center}
.tl-done .tl-dot .i{width:13px;height:13px;stroke:var(--card);stroke-width:3}
.tl-now .tl-dot{width:16px;height:16px;border:0;background:var(--accent);box-shadow:0 0 0 5px var(--acc-tint)}
.tl-date{flex:none;width:48px;font-size:15px;line-height:21px;font-weight:600}
.tl-done .tl-date{color:var(--hint);font-weight:500}
.tl-now .tl-date{color:var(--accent)}
.tl .t{font-weight:400}
.tl-now .t{font-weight:600}
.tl-done .t{color:var(--sub)}
.tl .key{font-weight:600}
.star{display:inline-block;vertical-align:-3px;width:17px;height:17px;margin-left:5px;color:var(--warn);fill:currentColor;
 stroke-width:1.4}
.tl-now .m{color:var(--accent)}

/* ---------- summary grid ---------- */
.sum{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sum-i{display:flex;flex-direction:column;gap:10px;padding:12px 12px 11px;border-radius:14px;background:var(--card);text-align:left;
 -webkit-user-select:none;user-select:none;transition:transform .2s var(--ease)}
.sum-i:active{transform:scale(.96);transition:none}
:root.flat .sum-i{box-shadow:0 0 0 1px var(--sep)}
.sum-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.sum-ic{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--card)}
.sum-ic .i{width:18px;height:18px;stroke-width:2.5}
.sum-ic.ok{background:var(--ok)}.sum-ic.crit{background:var(--crit)}.sum-ic.mute{background:var(--hint)}
.sum-i b{font-size:26px;line-height:30px;font-weight:700;letter-spacing:-.5px}
.sum-l{font-size:14px;line-height:18px;font-weight:600;color:var(--sub);overflow-wrap:anywhere}
.sum-i.zero .sum-ic{background:var(--fill);color:var(--hint)}
.sum-i.zero b{color:var(--hint)}
.sum .sk-pad{gap:14px;padding:16px 12px}

/* ---------- states ---------- */
.banner{display:flex;align-items:center;gap:10px;padding:11px 14px;border-radius:12px;background:var(--warn-tint);
 color:var(--warn-ink);font-size:14px;line-height:19px;font-weight:500}
.banner .i{width:20px;height:20px}
.empty{display:flex;align-items:center;gap:12px;min-height:60px;padding:12px 16px;font-size:15px;line-height:20px;color:var(--sub)}
.empty .tile{background:var(--fill);color:var(--hint)}
.state{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:68vh;padding:40px 24px;
 text-align:center}
.state .ic{width:76px;height:76px;margin-bottom:12px;border-radius:50%;display:grid;place-items:center;background:var(--fill);
 color:var(--hint)}
.state .ic .i{width:36px;height:36px;stroke-width:1.6}
.state b{font-size:20px;line-height:25px;font-weight:600}
.state p{max-width:300px;font-size:15px;line-height:20px;color:var(--sub)}
.state .btn{margin-top:16px;height:40px;padding:0 22px;border-radius:20px}
.foot{padding:4px 16px 0;text-align:center;font-size:13px;line-height:17px;color:var(--hint)}

/* ---------- skeleton ---------- */
.sk{display:block;position:relative;overflow:hidden;height:12px;border-radius:6px;background:var(--fill)}
.sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);
 background:linear-gradient(90deg,transparent,var(--shine),transparent);animation:shimmer 1.3s ease-in-out infinite}
@keyframes shimmer{to{transform:translateX(100%)}}
.sk-title{width:150px;height:26px;border-radius:8px;margin-top:4px}
.sk-head{width:110px;height:14px;margin:3px 16px 13px}
.sk-tile{flex:none;width:36px;height:36px;border-radius:10px}
.sk-tile.big{width:48px;height:48px;border-radius:14px}
.sk-row,.sk-hero{display:flex;align-items:center;gap:12px;padding:12px 16px}
.sk-hero{gap:14px;padding:16px}
.sk-lines{flex:1;display:flex;flex-direction:column;gap:9px}
.sk-block{height:116px;border-radius:58px;width:116px;flex:none}
.sk-pad{padding:16px;display:flex;flex-direction:column;gap:12px}
.sk-num{width:128px;height:56px;border-radius:12px;margin:8px 0 4px}
.w30{width:30%}.w40{width:40%}.w50{width:50%}.w60{width:60%}.w70{width:70%}.w90{width:90%}.w100{width:100%}

/* ---------- tab bar ---------- */
.tabs{position:fixed;z-index:10;left:0;right:0;bottom:0;display:flex;justify-content:center;padding:0 8px var(--safe-b);
 background:var(--tabs-bg);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}
.tabs::before{content:"";position:absolute;top:0;left:0;right:0;height:1px;background:var(--sep);transform:scaleY(.5);
 transform-origin:0 0}
.tabs button{flex:1;max-width:132px;display:flex;flex-direction:column;align-items:center;gap:2px;padding:7px 0 7px;
 font-size:11px;line-height:13px;font-weight:500;color:var(--hint);-webkit-user-select:none;user-select:none}
.tabs .i{width:27px;height:27px;stroke-width:1.7;transition:transform .2s var(--ease)}
.tabs button:active .i{transform:scale(.86);transition:none}
.tabs .on{color:var(--accent)}
.tabs .on .i{stroke-width:1.9}
.tabs .on .f{fill:currentColor;fill-opacity:.2}

/* ---------- pull to refresh ---------- */
.ptr{position:fixed;z-index:20;top:10px;left:50%;width:36px;height:36px;margin-left:-18px;border-radius:50%;display:grid;
 place-items:center;background:var(--card);color:var(--hint);box-shadow:0 2px 10px rgba(0,0,0,.18);opacity:0;
 transform:translateY(-60px);pointer-events:none;transition:transform .35s var(--ease),opacity .25s}
.ptr .i{width:20px;height:20px;stroke-width:2.3}
.ptr.drag{transition:none}
.ptr.armed{color:var(--accent)}
.ptr.spin .i{animation:spin .8s linear infinite}

@media (prefers-reduced-motion:reduce){
 *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}
