/* Дизайн-система Zeppi. Одна светлая тема — осознанно.
   Главный прибор — «Лента маршрута» (canvas). Подпись бренда — радужная мыльная плёнка, только на ключевых действиях. */
:root{
  --bg:#F3F1F8; --surface:#FFFFFF; --ink:#1D1530; --muted:#6C6484; --line:#E5E0EF; --soft:#ECE8F5;
  --accent:#E8336F; --good:#0C9A64; --warn:#C2610C; --bad:#B4233F;
  --f-display:"Unbounded","Onest",system-ui,sans-serif;
  --f-body:"Onest",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --f-mono:"PT Mono",ui-monospace,Menlo,Consolas,monospace;
  --shadow:0 1px 0 rgba(29,21,48,.04),0 18px 40px -26px rgba(29,21,48,.38);
  --r:22px; color-scheme:light;
}
@property --a{syntax:"<angle>";initial-value:0deg;inherits:false}
*{box-sizing:border-box}
html,body{min-height:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:16px/1.4 var(--f-body);-webkit-font-smoothing:antialiased;overflow-x:hidden}
#app{max-width:480px;margin:0 auto;min-height:100vh;padding:0 16px 136px;display:flex;flex-direction:column;gap:14px}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent;text-align:inherit}
a{color:inherit;-webkit-tap-highlight-color:transparent}
input,textarea,select{font:inherit;color:inherit}
:focus-visible{outline:2.5px solid var(--accent);outline-offset:2px}
.muted{color:var(--muted)} .sm{font-size:13px} .xs{font-size:12px} .mono{font-family:var(--f-mono)}
.g{color:var(--good)} .acc{color:var(--accent)} .warn-t{color:var(--warn)} .bad-t{color:var(--bad)}
.center{text-align:center} .hide{display:none!important}
.row{display:flex;align-items:center;gap:10px} .row.sb{justify-content:space-between} .grow{flex:1;min-width:0}
.col{display:flex;flex-direction:column;gap:10px}
.h1{font-family:var(--f-display);font-weight:700;font-size:clamp(25px,7vw,33px);line-height:1.12;letter-spacing:-.035em;margin:0;text-wrap:balance}
.h2{font-family:var(--f-display);font-weight:600;font-size:16px;letter-spacing:-.02em;margin:0;text-wrap:balance}
.h3{font-weight:650;font-size:15px;margin:0}
.lead{margin:8px 0 0;color:var(--muted);font-size:15.5px;max-width:42ch;text-wrap:pretty}
.k{font-size:11.5px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}
.disp{font-family:var(--f-display);font-weight:700;letter-spacing:-.04em}
.ink-film{background:linear-gradient(100deg,#E62E7A,#9A4DFF 55%,#0F9DB0);-webkit-background-clip:text;background-clip:text;color:transparent}
.card{background:var(--surface);border-radius:var(--r);box-shadow:var(--shadow);border:1px solid rgba(229,224,239,.9);padding:16px}
.card.flat{box-shadow:none}
.card.pad0{padding:0}
.sec-h{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:6px 2px 0}
.sep{height:1px;background:var(--line);margin:4px 0}

/* шапка */
.top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 0 0;min-height:56px}
.brand{display:inline-flex;align-items:center;gap:8px;font-family:var(--f-display);font-weight:700;font-size:18px;letter-spacing:-.04em;text-decoration:none;min-width:0}
.brand small{font-family:var(--f-body);font-weight:600;font-size:12px;letter-spacing:0;color:var(--muted);margin-left:2px}
.top-r{display:flex;align-items:center;gap:8px;flex:none}
.demo-chip{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px;border-radius:999px;background:var(--surface);border:1px solid var(--line);font-size:12.5px;font-weight:650;white-space:nowrap}
.demo-chip i{width:7px;height:7px;border-radius:50%;background:#FFB020;box-shadow:0 0 0 3px rgba(255,176,32,.22)}
.icon-btn{position:relative;width:40px;height:40px;border-radius:14px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);flex:none}
.icon-btn svg{width:20px;height:20px}
.dot-badge{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;border-radius:9px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;display:grid;place-items:center;padding:0 4px;box-shadow:0 0 0 2px var(--bg)}

/* кнопки */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:54px;padding:0 20px;border-radius:16px;font-weight:650;font-size:16px;text-decoration:none;transition:transform .15s ease,background .2s;white-space:nowrap;user-select:none;text-align:center}
.btn:active{transform:scale(.97)}
.btn[disabled]{opacity:.4;pointer-events:none}
.btn svg{width:19px;height:19px;flex:none}
.btn-primary{background:var(--ink);color:#fff}
.film{border:2px solid transparent;background:linear-gradient(var(--ink),var(--ink)) padding-box,conic-gradient(from var(--a),#ff7ab6,#ffcf5c,#6ff0cf,#76a6ff,#c38bff,#ff7ab6) border-box;animation:film 5s linear infinite;box-shadow:0 12px 26px -14px rgba(232,51,111,.65)}
@keyframes film{to{--a:360deg}}
.film-card{border:2px solid transparent;background:linear-gradient(var(--surface),var(--surface)) padding-box,conic-gradient(from var(--a),#ff7ab6,#ffcf5c,#6ff0cf,#76a6ff,#c38bff,#ff7ab6) border-box;animation:film 8s linear infinite}
.btn-ghost{background:var(--surface);border:1.5px solid var(--line);color:var(--ink)}
.btn-soft{background:var(--soft);color:var(--ink)}
.btn-good{background:var(--good);color:#fff}
.btn-danger{background:#FCE7EC;color:var(--bad)}
.btn-blue{background:#1F5FD6;color:#fff}
.btn-sm{height:44px;padding:0 14px;font-size:14.5px;border-radius:13px}
.btn-xs{height:34px;padding:0 12px;font-size:13.5px;border-radius:11px}
.wide{width:100%}
.link{font-size:14px;font-weight:650;color:var(--accent);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.link svg{width:16px;height:16px}
.btn-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.btn-row.three{grid-template-columns:repeat(3,1fr)}

/* нижняя панель */
.bar{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:480px;padding:18px 16px calc(14px + env(safe-area-inset-bottom));display:grid;grid-template-columns:auto 1fr;gap:12px;align-items:center;z-index:30;background:linear-gradient(to top,var(--bg) 66%,rgba(243,241,248,0))}
.bar.one{grid-template-columns:1fr}
.bar.two{grid-template-columns:1fr 1fr}
.bar-sum{display:flex;flex-direction:column;line-height:1.15;min-width:0;padding-left:2px}
.bar-sum b{font-family:var(--f-display);font-size:21px;letter-spacing:-.04em;white-space:nowrap;display:flex;align-items:baseline;gap:6px}
.bar-sum s{text-decoration:none;font-size:12.5px;color:var(--muted);white-space:nowrap}
.bar-sum s.g{color:var(--good)}

/* шторки */
.sheet-wrap{position:fixed;inset:0;z-index:60}
.scrim{position:absolute;inset:0;background:rgba(29,21,48,.42);opacity:0;transition:opacity .3s}
.sheet{position:absolute;left:50%;bottom:0;width:100%;max-width:480px;max-height:92%;transform:translate(-50%,104%);transition:transform .42s cubic-bezier(.2,.9,.2,1);background:var(--bg);border-radius:28px 28px 0 0;display:flex;flex-direction:column;box-shadow:0 -20px 60px -30px rgba(29,21,48,.5)}
.sheet.tall{height:92%}
.sheet-wrap.open .scrim{opacity:1}
.sheet-wrap.open .sheet{transform:translate(-50%,0)}
.sh-head{padding:8px 16px 12px;display:flex;flex-direction:column;gap:10px;border-bottom:1px solid var(--line)}
.sh-grab{width:42px;height:5px;border-radius:9px;background:#D3CCE3;margin:0 auto 2px}
.sh-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.sh-body{overflow-y:auto;padding:14px 16px 24px;display:flex;flex-direction:column;gap:14px;flex:1;overscroll-behavior:contain}
.sh-foot{padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px;background:var(--surface)}
.sh-x{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;background:var(--soft);flex:none}
.sh-x svg{width:18px;height:18px}

/* поля */
.inp{height:54px;border-radius:16px;border:1.5px solid var(--line);background:#FBFAFE;padding:0 16px;font-size:16.5px;width:100%;outline:none;transition:border-color .2s,box-shadow .2s}
.inp:focus{border-color:var(--ink);box-shadow:0 0 0 4px rgba(29,21,48,.08);background:#fff}
textarea.inp{height:auto;min-height:76px;padding:13px 16px;resize:vertical;line-height:1.4}
select.inp{appearance:none;background-image:linear-gradient(45deg,transparent 50%,var(--muted) 50%),linear-gradient(135deg,var(--muted) 50%,transparent 50%);background-position:calc(100% - 22px) 24px,calc(100% - 16px) 24px;background-size:6px 6px;background-repeat:no-repeat}
.lbl{font-weight:600;font-size:14px;margin:0 0 6px 2px;display:block}
.fine{margin:0;font-size:13px;color:var(--muted);text-wrap:pretty}
.field{display:flex;flex-direction:column}
.shake{animation:shake .4s}
@keyframes shake{20%,60%{transform:translateX(-6px)}40%,80%{transform:translateX(6px)}}

/* чипсы, сегменты, плашки */
.chips{display:flex;gap:6px;flex-wrap:wrap}
.chips.scroll{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin:0 -16px;padding:0 16px}
.chips.scroll::-webkit-scrollbar{display:none}
.chip{flex:none;display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 13px;border-radius:999px;background:var(--surface);border:1.5px solid var(--line);font-size:14px;font-weight:600;white-space:nowrap}
.chip svg{width:16px;height:16px}
.chip.on{background:var(--ink);color:#fff;border-color:var(--ink)}
.chip.bad.on{background:var(--bad);border-color:var(--bad)}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--soft);border-radius:15px;padding:4px;gap:4px}
.seg button{height:42px;border-radius:12px;font-size:14.5px;font-weight:650;color:var(--muted);text-align:center;display:flex;align-items:center;justify-content:center;gap:7px}
.seg button svg{width:18px;height:18px}
.seg button.on{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px -4px rgba(29,21,48,.35)}
.pill{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 10px;border-radius:999px;font-size:13px;font-weight:650;width:fit-content;white-space:nowrap;background:var(--soft)}
.pill svg{width:14px;height:14px}
.pill.good{background:#DDF6EA;color:#07774C}
.pill.warn{background:#FFF0DD;color:#94470A}
.pill.bad{background:#FCE7EC;color:var(--bad)}
.pill.ink{background:var(--ink);color:#fff}
.pill.sm{height:22px;font-size:12px;padding:0 8px}
.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;text-align:left}
.sw{width:50px;height:30px;border-radius:999px;background:#D3CCE3;position:relative;flex:none;transition:background .2s}
.sw::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .25s cubic-bezier(.2,.9,.2,1);box-shadow:0 2px 6px rgba(0,0,0,.2)}
.sw[aria-checked="true"]{background:var(--good)}
.sw[aria-checked="true"]::after{transform:translateX(20px)}
.note{display:flex;gap:10px;align-items:flex-start;background:var(--soft);border-radius:16px;padding:12px 14px;font-size:14px;line-height:1.4}
.note svg{width:18px;height:18px;flex:none;margin-top:1px;color:var(--muted)}
.note.warn{background:#FFF0DD;color:#6B3507} .note.warn svg{color:#94470A}
.note.bad{background:#FCE7EC;color:#6F1426} .note.bad svg{color:var(--bad)}
.note.good{background:#DDF6EA;color:#064E33} .note.good svg{color:var(--good)}

/* счётчик-барабан: колонку задаёт самая широкая цифра (все цифры стопкой), без letter-spacing */
.odo{display:inline-flex;align-items:flex-end;white-space:nowrap;letter-spacing:0}
.oc{display:inline-block;height:1.2em;overflow:hidden}
.os{display:flex;flex-direction:column;transition:transform 1s cubic-bezier(.16,1,.3,1)}
.os>span,.osp,.osuf,.opre{display:block;height:1.2em;line-height:1.2em;text-align:center;letter-spacing:0}
.osp{display:inline-block;width:.28em}
.osuf{display:inline-block;margin-left:.18em}
.opre{display:inline-block;margin-right:.08em}

/* маршрут: поля адресов */
.route{position:relative;display:flex;flex-direction:column;gap:6px}
.route::before{content:"";position:absolute;left:19px;top:30px;bottom:30px;width:2px;background:repeating-linear-gradient(var(--line) 0 5px,transparent 5px 9px)}
.af{position:relative;display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:4px;min-height:58px;border-radius:16px;background:#FBFAFE;border:1.5px solid var(--line);padding:6px 8px 6px 0;width:100%;text-align:left}
.af:active{background:var(--soft)}
.af .pin{width:40px;display:grid;place-items:center;z-index:1}
.af .pin i{width:14px;height:14px;border-radius:50%;border:3.5px solid var(--ink);background:#fff;display:block}
.af .pin i.a{border-color:var(--good)}
.af .pin i.b{background:var(--accent);border-color:var(--accent)}
.af .pin i.s{border-color:#9B92B5;width:12px;height:12px}
.af .t{display:flex;flex-direction:column;min-width:0}
.af .t b{font-weight:600;font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.af .t span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.af .t .ph{color:var(--muted);font-weight:500}
.af .rm{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--muted)}
.af .rm svg{width:18px;height:18px}
.add-stop{display:inline-flex;align-items:center;gap:6px;font-weight:650;color:var(--accent);font-size:14.5px;height:36px;padding:0 4px 0 12px}
.add-stop svg{width:16px;height:16px}

/* поиск адреса — как в Яндексе */
.sg-list{display:flex;flex-direction:column;background:var(--surface);border-radius:20px;border:1px solid var(--line);overflow:hidden}
.sg{display:grid;grid-template-columns:40px 1fr auto;gap:12px;align-items:center;padding:11px 14px;text-align:left;width:100%;border-bottom:1px solid var(--line)}
.sg:last-child{border-bottom:0}
.sg:active{background:var(--soft)}
.sg .ic{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;background:var(--soft);color:var(--ink)}
.sg .ic svg{width:20px;height:20px}
.sg .ic.place{background:#FDE6EE;color:var(--accent)}
.sg .ic.transport{background:#E3ECFF;color:#2457C5}
.sg .ic.food{background:#FFF0DD;color:#B05A07}
.sg .ic.shop{background:#EFE5FF;color:#6A3FC4}
.sg .ic.health{background:#DDF6EA;color:#07774C}
.sg .ic.recent{background:var(--soft);color:var(--muted)}
.sg .t{min-width:0;display:flex;flex-direction:column;gap:1px}
.sg .t b{font-weight:500;font-size:16px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.sg .t b mark{background:none;color:inherit;font-weight:700}
.sg .t span{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sg .go{color:#B9AEDB} .sg .go svg{width:18px;height:18px}
.sg-head{font-size:12px;font-weight:650;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);margin:4px 4px -4px}
.search-box{position:relative}
.search-box svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);width:20px;height:20px;color:var(--muted);pointer-events:none}
.search-box .inp{padding-left:44px;padding-right:44px}
.search-box .clr{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:36px;height:36px;border-radius:11px;display:grid;place-items:center;color:var(--muted)}
.search-box .clr svg{position:static;transform:none;width:18px;height:18px}

/* лента маршрута */
.hero{padding:10px 10px 14px;overflow:hidden}
.ribbon{width:100%;height:168px;display:block}
.hero-cap{display:flex;justify-content:space-between;align-items:flex-end;gap:10px;padding:0 6px}
.hero-big{font-family:var(--f-display);font-weight:700;font-size:clamp(28px,8.4vw,38px);letter-spacing:-.045em;line-height:1.12}
.hero-t{font-family:var(--f-display);font-weight:600;font-size:18px;letter-spacing:-.03em;line-height:1.2;text-wrap:balance}
.hero-s{font-size:14px;color:var(--muted);margin-top:3px;text-wrap:pretty}
.fun{transition:opacity .3s}

/* водитель, машина, номер */
.who{display:flex;gap:12px;align-items:center}
.ph-ava{width:58px;height:58px;border-radius:50%;object-fit:cover;background:var(--soft);flex:none;box-shadow:0 0 0 3px var(--bg),0 0 0 5px var(--soft)}
.ph-ava.lg{width:72px;height:72px}
.ava{display:inline-grid;place-items:center;border-radius:50%;background:var(--c,#8B5CF6);color:#fff;font-family:var(--f-display);font-weight:700;flex:none;line-height:1}
.plate{display:inline-flex;align-items:stretch;border:2px solid var(--ink);border-radius:7px;background:#fff;font-family:var(--f-mono);font-weight:700;font-size:16px;line-height:1;height:30px;overflow:hidden;white-space:nowrap}
.plate b{padding:0 7px;display:flex;align-items:center;letter-spacing:.04em}
.plate small{border-left:2px solid var(--ink);padding:0 5px;font-size:11.5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px}
.plate small i{font-style:normal;font-size:7px;letter-spacing:.04em}
.car-row{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center}
.car-row svg.car{width:92px;height:auto}
.rating{display:inline-flex;align-items:center;gap:3px;font-weight:700;font-variant-numeric:tabular-nums}
.rating svg{width:15px;height:15px;color:#F5A623;fill:#F5A623}
.tagp{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:600;background:#FFF4DA;color:#7A4B00}

/* чек с зубчиками */
.receipt-wrap{filter:drop-shadow(0 14px 22px rgba(29,21,48,.13))}
.receipt{--z:8px;background:#fff;padding:18px 18px calc(18px + var(--z));font-family:var(--f-mono);font-size:13.5px;line-height:1.55;border-radius:6px 6px 0 0;
  -webkit-mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/calc(2*var(--z)) var(--z) repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - var(--z)) no-repeat;
  mask:conic-gradient(from -45deg at bottom,#0000,#000 1deg 89deg,#0000 90deg) bottom/calc(2*var(--z)) var(--z) repeat-x,linear-gradient(#000 0 0) top/100% calc(100% - var(--z)) no-repeat}
.rc-h{text-align:center;font-weight:700;letter-spacing:.08em}
.rc-sub{text-align:center;color:var(--muted);font-size:12px}
.rc-hr{border-top:1.5px dashed #CFC8DE;margin:10px 0}
.rc-l{display:flex;justify-content:space-between;gap:10px;font-variant-numeric:tabular-nums}
.rc-l span:first-child{min-width:0}
.rc-l.dim{color:var(--muted);font-size:12.5px}
.rc-l.fin{font-weight:700;font-size:16px}
.rc-l.save{color:var(--good);font-weight:700}

/* билет (перфорация) */
.ticket{background:var(--ink);color:#fff;border-radius:20px;padding:14px 16px;display:flex;flex-direction:column;gap:12px;
  -webkit-mask:radial-gradient(circle 10px at 0 62px,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 10px at 100% 62px,#0000 97%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle 10px at 0 62px,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle 10px at 100% 62px,#0000 97%,#000) right/51% 100% no-repeat}
.ticket .k{color:rgba(255,255,255,.6)}
.tk-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;min-height:38px}
.tk-cut{border-top:1.5px dashed rgba(255,255,255,.24);padding-top:12px}
.tk-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.tk-days i{height:8px;border-radius:5px;background:rgba(255,255,255,.14)}
.tk-days i.on{background:conic-gradient(from 200deg at 30% 120%,#ffd0e4,#fff0c2,#c9fbe9,#d4e2ff,#ead6ff,#ffd0e4)}

/* прогресс к бонусу */
.prog{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px}
.prog i{height:10px;border-radius:6px;background:var(--soft)}
.prog i.on{background:linear-gradient(90deg,#ff7ab6,#c38bff)}
.prog i.gift{background:conic-gradient(from 200deg at 30% 120%,#ffd0e4,#fff0c2,#c9fbe9,#d4e2ff,#ead6ff,#ffd0e4);box-shadow:inset 0 0 0 1.5px rgba(29,21,48,.12)}
.ghost-ava{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;border:2px dashed #B9AEDB;color:var(--ink);animation:breathe 2.4s ease-in-out infinite;flex:none}
.ghost-ava svg{width:20px;height:20px}
@keyframes breathe{50%{transform:scale(1.07);border-color:var(--accent)}}
.invite{display:flex;align-items:center;gap:12px;width:100%;text-align:left}

/* оценка */
.stars{display:flex;justify-content:center;gap:4px}
.stars button{width:50px;height:50px;display:grid;place-items:center;color:#DCD6EA;transition:transform .15s}
.stars button svg{width:40px;height:40px;fill:currentColor}
.stars button.on{color:#F5A623}
.stars button:active{transform:scale(.88)}

/* поделиться */
.chat-prev{background:#E6E0F2;border-radius:20px;padding:14px;display:flex;flex-direction:column;gap:6px}
.bubble{background:#fff;border-radius:18px 18px 18px 6px;padding:12px 14px;font-size:15px;white-space:pre-wrap;line-height:1.42;box-shadow:0 1px 0 rgba(29,21,48,.06);max-width:94%;word-wrap:break-word}
.bubble .lnk{color:#2A6FD6;word-break:break-all}
.chat-t{font-size:11.5px;color:var(--muted);text-align:right}
.share-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.share-btns .full{grid-column:1/-1}
.sh-wa{background:#25D366;color:#073B1E}
.sh-tg{background:#1A86C4;color:#fff}
.card-img{width:100%;border-radius:20px;display:block;box-shadow:var(--shadow)}

/* чат */
.msgs{display:flex;flex-direction:column;gap:6px}
.msg{max-width:82%;padding:9px 13px;border-radius:18px 18px 18px 6px;background:var(--surface);align-self:flex-start;white-space:pre-wrap;word-wrap:break-word;font-size:15px;line-height:1.38;border:1px solid var(--line)}
.msg.me{align-self:flex-end;background:var(--ink);color:#fff;border-color:var(--ink);border-radius:18px 18px 6px 18px}
.msg time{display:block;font-size:11px;opacity:.6;margin-top:2px;font-family:var(--f-mono)}
.quick{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.quick::-webkit-scrollbar{display:none}
.send-row{display:grid;grid-template-columns:1fr 54px;gap:8px}
.send-row .btn{padding:0}

/* статистика */
.tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tile{background:var(--soft);border-radius:16px;padding:10px 10px 9px;display:flex;flex-direction:column;gap:1px;min-width:0}
.tile b{font-family:var(--f-display);font-size:17px;letter-spacing:-.04em;white-space:nowrap}
.tile span{font-size:12px;color:var(--muted)}
.bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;align-items:end;height:120px}
.bars .b{display:flex;flex-direction:column;align-items:center;gap:5px;height:100%;justify-content:flex-end;min-width:0}
.bars .b i{display:block;width:100%;border-radius:8px 8px 4px 4px;background:#D9D2EA;min-height:4px;transition:height .8s cubic-bezier(.16,1,.3,1)}
.bars .b.today i{background:linear-gradient(180deg,#ff7ab6,#c38bff)}
.bars .b span{font-size:11px;color:var(--muted);white-space:nowrap}
.bars .b em{font-style:normal;font-size:10.5px;font-weight:650;white-space:nowrap;color:var(--ink)}

/* список истории */
.li{display:grid;grid-template-columns:1fr auto;gap:8px;padding:12px 0;border-bottom:1px solid var(--line);align-items:center}
.li:last-child{border-bottom:0}
.li .t b{display:block;font-weight:600;font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.li .t span{font-size:12.5px;color:var(--muted)}

/* пустые состояния */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:22px 14px}
.empty p{margin:0}
.ill{width:150px;height:auto;margin:0 auto}

/* тосты и эффекты */
#toasts{position:fixed;left:50%;transform:translateX(-50%);top:12px;width:calc(100% - 32px);max-width:448px;display:flex;flex-direction:column;gap:8px;z-index:80;pointer-events:none}
.toast{display:flex;align-items:center;gap:10px;background:var(--ink);color:#fff;border-radius:16px;padding:10px 14px 10px 10px;font-size:14.5px;line-height:1.3;box-shadow:0 16px 30px -14px rgba(29,21,48,.6);animation:tin .45s cubic-bezier(.2,.9,.2,1) both}
.toast.out{animation:tout .3s ease both}
.toast.err{background:#5A1124}
.t-ic{width:28px;height:28px;display:grid;place-items:center;flex:none;border-radius:50%;overflow:hidden}
.t-ic svg{width:24px;height:24px}
.t-ic img{width:28px;height:28px;object-fit:cover}
@keyframes tin{from{opacity:0;transform:translateY(-14px) scale(.96)}}
@keyframes tout{to{opacity:0;transform:translateY(-10px)}}
#fx{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:90}
.skel{background:linear-gradient(90deg,var(--soft),#F7F5FB,var(--soft));background-size:200% 100%;animation:skel 1.2s infinite;border-radius:12px}
@keyframes skel{to{background-position:-200% 0}}
.spin{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:sp .8s linear infinite}
@keyframes sp{to{transform:rotate(360deg)}}

@media (max-width:360px){
  #app{padding-left:12px;padding-right:12px}
  .bar{padding-left:12px;padding-right:12px}
  .bar-sum b{font-size:18px}
  .btn{padding:0 14px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001s!important;animation-iteration-count:1!important;transition-duration:.001s!important}
}
.top{padding-top:calc(12px + env(safe-area-inset-top))}
