:root {
  color-scheme:light;
  --page:#f2f7fb; --surface:#fff; --ink:#19364a; --muted:#536a7b; --rule:#d4e2ec;
  --accent:#146392; --wash:#def0fc; --hero:#c5e7fa;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--ink); background:var(--page); -webkit-text-size-adjust:100%;
}
* {box-sizing:border-box}
[hidden],.symbols {display:none!important}
body {margin:0}
button,input,a {font:inherit;-webkit-tap-highlight-color:transparent}
button,a {touch-action:manipulation}
button {border:0;background:none;color:inherit;cursor:pointer}
button:disabled {cursor:default}
button:focus-visible,a:focus-visible,input:focus-visible {outline:3px solid #1974a6;outline-offset:2px}
a {color:inherit;text-decoration:none}
h1,h2,h3,p,dl,dd {margin:0}
.icon {width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
#shell {max-width:600px;min-height:100vh;min-height:100dvh;margin:auto;padding:env(safe-area-inset-top) max(16px,env(safe-area-inset-right)) calc(90px + env(safe-area-inset-bottom)) max(16px,env(safe-area-inset-left))}
.masthead,.brand,#account,.store-row,.receipt-row,.title-row,.date-strip,.section-title {display:flex;align-items:center}
.masthead {justify-content:space-between;gap:10px;height:68px;border-bottom:1px solid var(--rule)}
.brand {gap:9px;font-size:16px;font-weight:730;letter-spacing:-.025em;white-space:nowrap}
.brand-mark,.tile {display:grid;place-items:center;flex:none;border-radius:11px}
.brand-mark {width:34px;height:34px;background:#84c6ed;color:#103e5d}
#account {gap:2px;min-width:0;color:var(--muted)}
#profile-name {overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:125px;font-size:12px}
.icon-button {display:grid;place-items:center;width:44px;height:44px;flex:none;border-radius:13px}
.icon-button:active,.store-row:active,.receipt-row:active {background:var(--wash)}
.icon-button:disabled {opacity:.44}
#screen {outline:none}
.title-row {justify-content:space-between;margin:23px 0 17px;gap:10px}
.title-row h1,.login h1 {font-size:clamp(29px,8.2vw,37px);line-height:1.08;letter-spacing:-.052em;font-weight:730;overflow-wrap:anywhere}
.title-row .back {margin-left:-10px}
.heading-start {display:flex;min-width:0;align-items:center}
.periods {display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:#e2edf5;padding:3px;border-radius:13px}
.periods button {min-height:42px;border-radius:10px;color:var(--muted);font-size:14px;font-weight:600}
.periods button[aria-pressed=true] {background:#fff;color:var(--ink);box-shadow:0 1px 4px #153e6017}
.date-strip {justify-content:space-between;margin:3px 0 10px}
.date-label {position:relative;display:flex;gap:8px;align-items:center;justify-content:center;font-size:14px;font-weight:620;padding:9px 4px;min-height:44px}
.date-label .icon {width:17px;height:17px;color:var(--muted)}
.date-label input {display:block;position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px}
.date-label:focus-within {outline:2px solid var(--accent);border-radius:8px}
.hero {display:block;border-radius:22px;background:var(--hero);color:#133e59;padding:23px 21px 18px}
.hero:active {background:#b6dcf3}
.hero-label {display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:14px;font-weight:580;color:#315973}
.hero-action {display:inline-flex;align-items:center;gap:2px;color:#155179;font-weight:650}
.hero-action .icon {width:15px;height:15px}
.hero-value {display:block;margin:9px 0 19px;font-size:clamp(37px,9.2vw,52px);line-height:1.07;letter-spacing:-.055em;font-weight:700;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.hero-stats {display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:16px;border-top:1px solid #9ec9e0}
.hero-stats dt {font-size:12px;color:#325b74}
.hero-stats dd {margin-top:4px;font-size:19px;font-weight:650;letter-spacing:-.03em;overflow-wrap:anywhere}
.section-title {justify-content:space-between;margin:24px 2px 10px;gap:10px}
.section-title h2 {font-size:20px;letter-spacing:-.035em}
.section-title small,.secondary,.times,.caption {color:var(--muted);font-size:12px}
.times {margin:10px 3px 0}
.panel {background:var(--surface);border:1px solid var(--rule);border-radius:17px;overflow:hidden}
.store-row,.receipt-row {min-width:0;width:100%;min-height:68px;padding:12px 13px;gap:10px;text-align:left}
.store-row+.store-row,.receipt-row+.receipt-row {border-top:1px solid var(--rule)}
.tile {width:38px;height:38px;background:var(--wash);color:var(--accent)}
.tile.kupchino {background:#e2eafa;color:#3b5984}
.row-main {flex:1;min-width:0}
.row-main b,.row-main small {display:block}
.row-main b {font-size:16px;font-weight:650;letter-spacing:-.02em;overflow-wrap:anywhere}
.row-main small {margin-top:3px;color:var(--muted);font-size:12px}
.store-row>.icon,.receipt-row>.icon {width:15px;height:15px;color:#667f91}
.row-value {font-weight:660;font-size:15px;letter-spacing:-.025em;text-align:right;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.return {color:#92452b}
.receipt-total {justify-content:space-between;gap:10px}
.detail-meta {margin:-5px 2px 16px;color:var(--muted);font-size:14px;line-height:1.5}
.item {padding:15px 15px;border-bottom:1px solid var(--rule)}
.item h2 {font-size:16px;line-height:1.3;font-weight:650;overflow-wrap:anywhere}
.item dl {display:grid;grid-template-columns:.8fr 1fr 1.1fr;gap:5px;margin-top:10px}
.item dt {font-size:11px;color:var(--muted)}
.item dd {margin-top:3px;font-size:14px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.item dl div:last-child {text-align:right}
.item dl div:last-child dd {font-weight:660}
.receipt-total {display:flex;align-items:center;padding:16px;background:#edf6fc;font-weight:680;font-size:17px}
.receipt-total strong {font-size:21px;letter-spacing:-.035em}
.notice,.message {border:1px solid var(--rule);background:var(--surface);padding:15px;border-radius:13px;font-size:14px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.notice {margin:10px 0;border-color:#e2d5b6;background:#fbf5e8;color:#6d4e23}
.message {margin:12px 0}
#receipt-continuation {min-height:1px;overflow-anchor:none;font-size:14px;color:var(--muted)}
#receipt-continuation:not(:empty) {padding-top:10px}
.primary,.secondary-button {width:100%;min-height:46px;border-radius:12px;font-weight:650;font-size:15px}
.primary {color:#103e5d;background:#84c6ed}
.secondary-button {margin-top:9px;background:var(--surface);border:1px solid var(--rule);color:var(--accent)}
.primary:disabled,.secondary-button:disabled {opacity:.62}
.login {max-width:410px;margin:clamp(55px,14vh,145px) auto 0}
.login p {color:var(--muted);line-height:1.5;margin:12px 0 23px}
.login label {display:block;margin-bottom:7px;font-size:14px;font-weight:650}
.login input {width:100%;padding:13px 14px;min-height:49px;border:1px solid #91a9ba;border-radius:12px;background:#fff;color:var(--ink);font-size:17px}
.login .primary {margin-top:13px}
.approval-match {display:grid;place-content:center;min-height:112px;border-radius:17px;background:var(--wash);color:var(--accent);font-size:60px;font-weight:740;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.08em}
.login #approval-state {margin:15px 0;font-size:14px}
#tabs {position:fixed;z-index:2;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:600px;display:grid;grid-template-columns:repeat(3,1fr);background:#f8fbfe;border-top:1px solid var(--rule);padding:5px max(8px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left))}
#tabs a {display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:51px;border-radius:11px;font-size:11px;font-weight:590;color:var(--muted)}
#tabs a[aria-current=page] {color:var(--accent);background:var(--wash);font-weight:720}
@media(min-width:600px){#shell{padding-left:25px;padding-right:25px}}
