:root{
  --bg:#f2f2f7; --card:#fff; --text:#1d1d1f; --text2:#6e6e73; --text3:#8e8e93; --sep:#d1d1d6; --fill:#e9e9ee;
  --blue:#007aff; --green:#34c759; --orange:#ff9500; --red:#ff3b30; --teal:#30b0c7; --indigo:#5856d6; --grey:#8e8e93;
  --navy:#0b2a5b;
  --r:12px; --font:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{background:#e5e5ea;color:var(--text);font-family:var(--font);font-size:17px;line-height:1.35;-webkit-font-smoothing:antialiased;font-variant-numeric:tabular-nums}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}
svg.i{width:1em;height:1em;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* sheet bar (design sheet only) */
.sheet{display:flex;align-items:center;gap:16px;padding:10px 20px;font-size:13px;color:var(--text2);background:#fff;border-bottom:1px solid var(--sep);position:sticky;top:0;z-index:50}
.sheet b{color:var(--text);font-weight:600}
.sheet .sp{flex:1}
.seg{display:inline-flex;background:var(--fill);border-radius:9px;padding:2px}
.seg button{padding:5px 14px;border-radius:7px;font-size:13px;font-weight:500;color:var(--text);transition:background .2s,box-shadow .2s}
.seg button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
.stagewrap{padding:28px;display:flex;justify-content:center;gap:40px;flex-wrap:wrap;align-items:flex-start}

/* ===== desktop window ===== */
.win{width:1280px;height:820px;border-radius:14px;overflow:hidden;background:var(--bg);box-shadow:0 30px 80px rgba(0,0,0,.18),0 0 0 .5px rgba(0,0,0,.15);display:flex;position:relative}
.side{width:248px;flex:none;padding:14px 10px;background:rgba(246,246,248,.72);backdrop-filter:saturate(180%) blur(30px);-webkit-backdrop-filter:saturate(180%) blur(30px);border-right:.5px solid rgba(0,0,0,.1);display:flex;flex-direction:column;gap:2px}
.lights{display:flex;gap:8px;padding:2px 8px 18px}.lights i{width:12px;height:12px;border-radius:50%;background:#ff5f57}.lights i+i{background:#febc2e}.lights i+i+i{background:#28c840}
.brand{display:flex;align-items:center;gap:8px;padding:0 10px 14px}.brand img{height:15px}.brand span{font-size:13px;color:var(--text2)}
.search{display:flex;align-items:center;gap:6px;margin:0 6px 12px;padding:6px 9px;border-radius:8px;background:rgba(0,0,0,.055);color:var(--text3);font-size:14px}
.side h6{font-size:12px;font-weight:600;color:var(--text3);padding:14px 10px 4px}
.nav{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:8px;font-size:15px;text-align:left;width:100%}
.nav svg{color:var(--blue);font-size:18px}
.nav .ct{margin-left:auto;font-size:13px;color:var(--text3)}
.nav.on{background:rgba(0,0,0,.08)}
.nav:hover:not(.on){background:rgba(0,0,0,.04)}
.side .foot{margin-top:auto;font-size:12px;color:var(--text3);padding:10px}
.main{flex:1;overflow-y:auto;position:relative;scroll-behavior:smooth}
.tb{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;height:52px;padding:0 28px;background:rgba(242,242,247,.75);backdrop-filter:saturate(180%) blur(24px);-webkit-backdrop-filter:saturate(180%) blur(24px)}
.tb .ttl{font-size:15px;font-weight:600;opacity:0;transition:opacity .2s}
.tb.scrolled{border-bottom:.5px solid rgba(0,0,0,.12)}.tb.scrolled .ttl{opacity:1}
.tb .sp{flex:1}
.back{display:flex;align-items:center;gap:2px;color:var(--blue);font-size:17px}
.iconbtn{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;color:var(--blue);font-size:19px}
.iconbtn:hover{background:rgba(0,0,0,.05)}
.page{padding:4px 40px 48px;max-width:1040px}
.lt{font-size:34px;font-weight:700;letter-spacing:.2px;line-height:1.15}
.sub{font-size:15px;color:var(--text2);margin-top:4px}

/* tiles */
.tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:24px 0 8px}
.tile{background:var(--card);border-radius:var(--r);padding:14px 16px 16px;display:flex;flex-direction:column;gap:2px;min-height:132px;text-align:left;transition:transform .25s var(--ease),box-shadow .25s}
.tile:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.06)}
.tile .h{display:flex;align-items:center;gap:6px;font-size:15px;font-weight:600}
.tile .h svg{font-size:16px}
.tile .h .when{margin-left:auto;font-size:13px;font-weight:400;color:var(--text3)}
.tile .big{font-size:28px;font-weight:700;margin-top:auto;line-height:1.1}
.tile .big small{font-size:15px;font-weight:600;color:var(--text2);margin-left:3px}
.tile .cap{font-size:13px;color:var(--text2)}
.tile .pic{display:flex;align-items:flex-end;gap:12px}
.tile .pic>div:first-child{flex:1}
.bars{display:flex;align-items:flex-end;gap:3px;height:38px}.bars i{width:7px;border-radius:2px;background:var(--orange);transform-origin:bottom;animation:grow .7s var(--ease) both}
.ring{--p:0;--c:var(--green);width:46px;height:46px;flex:none}
.ring circle{fill:none;stroke-width:6}.ring .bgc{stroke:var(--fill)}.ring .fgc{stroke:var(--c);stroke-linecap:round;transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset 1s var(--ease)}

/* grouped lists */
.sec{margin-top:30px}
.sec>h3{font-size:20px;font-weight:700;margin:0 0 8px 2px;display:flex;align-items:baseline;gap:8px}
.sec>h3 .more{margin-left:auto;font-size:15px;font-weight:400;color:var(--blue)}
.sec>.ft{font-size:13px;color:var(--text2);margin:7px 16px 0}
.grp{background:var(--card);border-radius:var(--r);overflow:hidden}
.row{display:flex;align-items:center;gap:12px;padding:0 0 0 16px;min-height:52px;width:100%;text-align:left;position:relative;transition:background .15s}
button.row:hover{background:#f7f7f9}
button.row:active{background:#ececf0}
.row .bd{flex:1;display:flex;align-items:center;gap:12px;padding:11px 16px 11px 0;min-width:0;align-self:stretch}
.row+.row .bd{border-top:.5px solid var(--sep)}
.row .tx{flex:1;min-width:0}
.row .t{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .s{font-size:15px;color:var(--text2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .v{font-size:17px;color:var(--text2);text-align:right;white-space:nowrap}
.row .v b{color:var(--text);font-weight:400}
.row .chev{color:#c4c4c7;font-size:14px}
.sq{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;color:#fff;font-size:17px;flex:none}
.sq.red{background:var(--red)}.sq.orange{background:var(--orange)}.sq.green{background:var(--green)}.sq.blue{background:var(--blue)}.sq.grey{background:var(--grey)}.sq.indigo{background:var(--indigo)}.sq.teal{background:var(--teal)}
.flag{width:30px;height:30px;border-radius:50%;background:var(--fill);display:grid;place-items:center;font-size:12px;font-weight:600;color:var(--text2);flex:none}
.pill{font-size:13px;font-weight:500;padding:3px 9px;border-radius:20px;white-space:nowrap}
.pill.red{background:#ffe5e3;color:#c4170c}.pill.orange{background:#fff1dc;color:#b35f00}.pill.green{background:#e3f7e8;color:#1e7d36}.pill.blue{background:#e1efff;color:#0059c7}.pill.grey{background:var(--fill);color:var(--text2)}
.cols{display:grid;grid-template-columns:1.25fr 1fr;gap:28px}

/* at sea */
.voy{padding:14px 16px}
.voy+.voy{border-top:.5px solid var(--sep)}
.voy .a{display:flex;justify-content:space-between;align-items:baseline;font-size:15px}
.voy .a b{font-weight:600;font-size:17px}
.voy .a span{color:var(--text2)}
.route{position:relative;height:22px;margin:10px 0 4px}
.route .ln{position:absolute;left:0;right:0;top:10px;height:2px;border-radius:2px;background:repeating-linear-gradient(90deg,var(--sep) 0 6px,transparent 6px 10px)}
.route .dn{position:absolute;left:0;top:10px;height:2px;border-radius:2px;background:var(--blue);width:0;transition:width 1.1s var(--ease)}
.route .dot{position:absolute;top:6px;width:10px;height:10px;border-radius:50%;background:#fff;border:2px solid var(--blue)}
.route .dot.e{right:0;border-color:var(--sep)}
.route .bt{position:absolute;top:-1px;left:0;color:var(--blue);font-size:22px;transform:translateX(-50%);transition:left 1.1s var(--ease)}
.voy .b{display:flex;justify-content:space-between;font-size:13px;color:var(--text2)}

/* shipment detail */
.pass{margin-top:20px;border-radius:16px;padding:22px 24px;color:#fff;background:linear-gradient(135deg,#0b2a5b 0%,#123f86 60%,#1b58b4 100%);position:relative;overflow:hidden}
.pass::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.14),transparent 70%)}
.pass .r1{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}
.pass .no{font-size:15px;opacity:.75}
.pass .buyer{font-size:28px;font-weight:700;margin-top:2px}
.pass .meta{font-size:15px;opacity:.8;margin-top:2px}
.pass .amt{text-align:right}
.pass .amt .u{font-size:34px;font-weight:700}
.pass .amt .n{font-size:15px;opacity:.75}
.pass .r2{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:22px}
.pass .r2 div{font-size:13px;opacity:.7}.pass .r2 b{display:block;font-size:17px;font-weight:600;opacity:1;color:#fff;margin-top:1px}
.steps{margin-top:22px}
.steps .bar{display:grid;grid-template-columns:repeat(10,1fr);gap:4px}
.steps .bar i{height:6px;border-radius:3px;background:var(--fill);transform-origin:left;transition:background .3s}
.steps .bar i.d{background:var(--green);animation:growx .5s var(--ease) both}
.steps .bar i.n{background:var(--blue);animation:pulse 2.4s ease-in-out 1}
.steps .bar i.l{background:var(--orange)}
.steps .lb{display:flex;justify-content:space-between;font-size:13px;color:var(--text2);margin-top:8px}
.steps .lb b{color:var(--text);font-weight:600}
.segc{display:flex;background:var(--fill);border-radius:9px;padding:2px;margin:26px 0 4px;width:max-content}
.segc button{padding:6px 18px;border-radius:7px;font-size:14px;font-weight:500;transition:background .2s,box-shadow .2s}
.segc button.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12)}
.cbox{display:flex;gap:10px;flex-wrap:wrap;padding:16px}
.cont{width:132px;border-radius:10px;overflow:hidden;background:var(--bg)}
.cont .ph{height:74px;background:linear-gradient(160deg,#c9d6e8,#8ea7c8);position:relative;display:grid;place-items:center;color:rgba(255,255,255,.9);font-size:26px}
.cont .ph.no{background:repeating-linear-gradient(135deg,#f2f2f7 0 8px,#e9e9ee 8px 16px);color:var(--text3)}
.cont .cp{padding:7px 9px;font-size:12px;color:var(--text2)}.cont .cp b{display:block;font-size:13px;color:var(--text);font-weight:600}
.btn{display:inline-flex;align-items:center;gap:6px;background:var(--blue);color:#fff;font-size:15px;font-weight:600;padding:8px 18px;border-radius:20px;transition:transform .15s,filter .15s}
.btn:hover{filter:brightness(1.06)}.btn:active{transform:scale(.97)}
.link{color:var(--blue);font-size:15px;display:inline-flex;align-items:center;gap:4px}
.moneyhead{display:flex;align-items:center;gap:22px;padding:18px 18px}
.moneyhead .ring{width:84px;height:84px}
.moneyhead .k{font-size:13px;color:var(--text2)}.moneyhead .k b{display:block;font-size:22px;color:var(--text);font-weight:700}
.stack{display:flex;height:14px;border-radius:7px;overflow:hidden;margin:16px 16px 6px;gap:2px}
.stack i{transform-origin:left;animation:growx .8s var(--ease) both}
.legend{display:flex;flex-wrap:wrap;gap:6px 16px;padding:4px 16px 14px;font-size:13px;color:var(--text2)}
.legend span{display:flex;align-items:center;gap:6px}.legend i{width:9px;height:9px;border-radius:3px}

/* view transitions */
.enter{animation:slide .35s var(--ease) both}
.enter .sec,.enter .tiles,.enter .pass{animation:fadeup .45s var(--ease) both}
.enter .sec:nth-of-type(2){animation-delay:.04s}.enter .sec:nth-of-type(3){animation-delay:.08s}.enter .sec:nth-of-type(4){animation-delay:.12s}
@keyframes slide{from{opacity:0;transform:translateX(18px)}to{opacity:1;transform:none}}
@keyframes fadeup{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleY(0)}}
@keyframes growx{from{transform:scaleX(0)}}
@keyframes pulse{50%{opacity:.45}}

/* ===== iPhone ===== */
.phone{width:402px;height:874px;border-radius:58px;background:#111;padding:11px;box-shadow:0 30px 80px rgba(0,0,0,.25);flex:none}
.scr{width:100%;height:100%;border-radius:48px;overflow:hidden;background:var(--bg);position:relative}
.scr .island{position:absolute;top:11px;left:50%;transform:translateX(-50%);width:124px;height:36px;border-radius:20px;background:#000;z-index:20}
.scr .stat{position:absolute;top:0;left:0;right:0;height:54px;display:flex;justify-content:space-between;align-items:center;padding:6px 34px 0 42px;font-size:16px;font-weight:600;z-index:15}
.scr .body{position:absolute;inset:0;overflow-y:auto;padding:58px 0 110px;scrollbar-width:none}
.scr .body::-webkit-scrollbar{display:none}
.scr .ptb{display:flex;justify-content:space-between;align-items:center;height:44px;padding:0 16px}
.scr .lt{padding:0 20px}
.scr .sub{padding:0 20px}
.scr .sec{margin:26px 16px 0}
.scr .sec>h3{font-size:20px;margin-left:4px}
.scr .tiles{grid-template-columns:1fr 1fr;gap:10px;margin:18px 16px 0}
.scr .tile{min-height:118px;padding:12px 14px}
.scr .tile .big{font-size:24px}
.scr .row .t{font-size:16px}.scr .row .s{font-size:14px}.scr .row .v{font-size:15px}
.scr .pass{margin:14px 16px 0;padding:18px}
.scr .pass .buyer{font-size:22px}.scr .pass .amt .u{font-size:26px}
.scr .pass .r2{grid-template-columns:1fr 1fr;gap:12px}
.scr .steps{margin:18px 20px 0}
.scr .segc{margin:20px 16px 0;width:auto}.scr .segc button{flex:1;padding:6px 4px;font-size:13px}
.tabbar{position:absolute;left:14px;right:14px;bottom:24px;height:64px;border-radius:32px;display:flex;justify-content:space-around;align-items:center;background:rgba(255,255,255,.62);backdrop-filter:saturate(180%) blur(22px);-webkit-backdrop-filter:saturate(180%) blur(22px);box-shadow:0 8px 30px rgba(0,0,0,.12),inset 0 0 0 .5px rgba(255,255,255,.8),0 0 0 .5px rgba(0,0,0,.08);z-index:10}
.tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10px;font-weight:600;color:var(--text2);padding:6px 14px;border-radius:24px;transition:background .2s,color .2s}
.tabbar button svg{font-size:23px}
.tabbar button.on{color:var(--blue);background:rgba(0,122,255,.1)}
.scr .home{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);width:134px;height:5px;border-radius:3px;background:#000;z-index:20}

@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

.voy .c{font-size:13px;color:var(--text2);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tile .big{white-space:nowrap}
.scr .row .t,.scr .row .s{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.scr .tile .cap{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media (max-width:700px){.sheet{flex-wrap:wrap;gap:6px 12px;font-size:12px}.sheet>span:not(.sp){display:none}.stagewrap{padding:18px}}
.scr .tiles{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.scr .tile{overflow:hidden}
.scr .tile .pic{gap:6px}
.scr .ring{width:38px!important;height:38px!important}
.scr .bars{height:30px}.scr .bars i{width:5px}
.scr .bars i:nth-child(-n+2){display:none}

/* ===== devices (26-11 later): iPhone 18 Pro / Pro Max, Galaxy Z Fold, iPhone Fold ===== */
*{-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation}
@media (hover:none){button.row:hover{background:none}.tile:hover{transform:none;box-shadow:none}}
.dev{display:flex;flex-direction:column;align-items:center;gap:14px}
.dev figcaption{font-size:14px;color:var(--text2)}.dev figcaption b{color:var(--text);font-weight:600}
.phone.and{border-radius:44px}.phone.and .scr{border-radius:34px}
.phone:has(.wide){border-radius:30px}.phone:has(.wide) .scr{border-radius:20px}
.punch{position:absolute;top:13px;left:50%;transform:translateX(-50%);width:13px;height:13px;border-radius:50%;background:#000;z-index:20}
.scr.wide .punch{left:auto;right:22%}
.stat.and{height:38px;padding:0 22px;font-size:14px;font-weight:500}
.scr.and .body{padding-top:42px}
.home.and{width:110px;height:4px;background:#2c2c2e;bottom:7px}
.row.sel{background:#e3eeff}.row.sel .chev{color:var(--blue)}

/* open fold: list on the left half, shipment on the right half - the split sits on the fold line */
.scr.wide .panes{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr}
.scr.wide .pane{overflow-y:auto;overscroll-behavior:contain;padding:54px 0 40px;scrollbar-width:none}
.scr.wide .pane::-webkit-scrollbar{display:none}
.scr.wide .pane.l{padding-bottom:110px}
.scr.wide .pane.r{border-left:.5px solid var(--sep)}
.scr.wide.and .pane{padding-top:40px}
.scr.wide .tabbar{left:12px;right:auto;width:calc(50% - 24px);bottom:18px}
.scr.wide .pane.l .ptb{display:none}
.scr.wide .pane.l>.enter{padding-top:12px}
.scr.wide.ios[data-k="ifo"] .pass .r2,.scr.wide.and .pass .r2{grid-template-columns:1fr 1fr}

/* full-screen on the real phone (opened on the phone itself) */
body.app{background:var(--bg)}
body.app .sheet{display:none}
body.app .stagewrap{padding:0;display:block}
.scr.full{position:fixed;inset:0;border-radius:0}
.scr.full .body{padding-top:calc(env(safe-area-inset-top) + 2px);padding-bottom:calc(env(safe-area-inset-bottom) + 104px)}
.scr.full.wide .pane{padding-top:calc(env(safe-area-inset-top) + 8px)}
.scr.full .tabbar{bottom:calc(env(safe-area-inset-bottom) + 12px)}
/* short screens (iPhone Fold open and closed): the four tiles become one compact strip */
.scr.short .tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.scr.short .tile{min-height:0;padding:10px 10px 11px}
.scr.short .tile .pic>span:not(:first-child),.scr.short .tile .pic>svg,.scr.short .tile .cap,.scr.short .tile .h svg{display:none}
.scr.short .tile .h{font-size:12px;white-space:nowrap}
.scr.short .tile .big{font-size:20px;margin-top:6px}.scr.short .tile .big small{font-size:12px}
.scr.short .ptb{height:30px}
.scr.short .sec{margin-top:20px}

.scr .body,.scr .pane{container-type:inline-size}
@container (max-width:440px){.scr.short .tiles{grid-template-columns:1fr 1fr}}
.scr .moneyhead{gap:16px;flex-wrap:wrap}
.scr .moneyhead .ring{width:64px!important;height:64px!important}
.scr .moneyhead .k b{font-size:19px;white-space:nowrap}
.scr.short .pass{padding:16px 18px}
.scr.short .pass .r2{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:14px}
.scr.short .pass .r2 div{font-size:12px}.scr.short .pass .r2 b{font-size:15px;white-space:nowrap}

/* ===== laptops and tablets (26-11 later) ===== */
.dsk{display:flex;width:100%;height:100%;background:var(--bg);overflow:hidden;border-radius:inherit;position:relative}
.dsk.full{position:fixed;inset:0;border-radius:0}
.dsk .side{height:100%;overflow-y:auto}
.dsk .sidetop{height:22px}
.dsk .split{flex:1;display:flex;min-width:0}
.dsk .lpane{width:390px;flex:none;overflow-y:auto;overscroll-behavior:contain;border-right:.5px solid var(--sep);container-type:inline-size}
.dsk .lpane .page{padding:22px 20px 40px;max-width:none}
.dsk .lpane .moneyhead{flex-wrap:wrap;gap:14px}.dsk .lpane .moneyhead .k b{font-size:19px;white-space:nowrap}
.dsk .lpane .moneyhead .ring{width:64px!important;height:64px!important}
.dsk .main{min-width:0}
.dsk .main .page{margin:0 auto}
.dsk.full .main .page{padding-top:8px}
.phone.ipad{border-radius:38px;padding:20px;background:#1c1c1e}
.phone.ipad>.scr,.phone.ipad>.dsk{border-radius:20px}
.stat.pad{height:32px;padding:0 26px;font-size:13px;font-weight:600}
.scr.ipad .body{padding-top:36px}
.scr.wide.ipad .pane{padding-top:36px}
.laptop{display:flex;flex-direction:column;align-items:center}
.lid{background:#1d1d1f;border-radius:20px 20px 8px 8px;padding:18px 18px 24px;box-shadow:0 30px 80px rgba(0,0,0,.22)}
.lscr{border-radius:6px;overflow:hidden;position:relative}
.base{height:16px;background:linear-gradient(#dcdce1,#a8a8b0);border-radius:2px 2px 16px 16px;position:relative}
.base::before{content:"";position:absolute;left:50%;top:0;transform:translateX(-50%);width:140px;height:6px;border-radius:0 0 8px 8px;background:#9a9aa2}

.cols{grid-template-columns:minmax(0,1.25fr) minmax(0,1fr)}

/* ===== Buyers, Costs, Map, Reports (26-11) ===== */
.tiles.t3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tiles.t3 .tile{min-height:112px}
.scr .tiles.t3{grid-template-columns:1fr 1fr}.scr .tiles.t3 .tile:last-child{grid-column:span 2}
.scr.short .tiles.t3 .tile:last-child{grid-column:auto}
.mapcard{container-type:inline-size}
.mapcard svg{display:block;width:100%;height:auto}
.mapcard .mt{font:600 15px var(--font);fill:#1d1d1f}
.mapcard .ms{font:400 12.5px var(--font);fill:#6e6e73}
@container (max-width:600px){.mapcard .ms{display:none}.mapcard .mt{font-size:26px}}
.chartcard .chart{display:flex;align-items:flex-end;gap:8px;height:190px;padding:22px 18px 6px}
.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px;height:100%;min-width:0}
.chart .col span{font-size:12px;color:var(--text2)}
.bars2{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.bars2 i{width:40%;max-width:18px;border-radius:4px 4px 2px 2px;transform-origin:bottom;animation:grow .7s var(--ease) both}
.bars2 .s{background:var(--blue)}.bars2 .r{background:var(--green)}

.pass .amt .u,.pass .amt .n{white-space:nowrap}


/* ===== working app: sign-in, sheets, forms, toast ===== */
html,body{height:100%}
body{background:var(--bg)}
.link.small{font-size:12px}
.note-t{padding:14px 16px;font-size:15px;white-space:pre-wrap}
button.cont{text-align:left;padding:0;border:0}
.cont .ph img{width:100%;height:100%;object-fit:cover}
.boot{position:fixed;inset:0;display:grid;place-items:center;color:var(--text3);font-size:15px}
.signin{min-height:100%;display:grid;place-items:center;padding:24px}
.signin .card{width:100%;max-width:380px;background:#fff;border-radius:20px;padding:34px 28px 28px;box-shadow:0 20px 60px rgba(0,0,0,.08)}
.signin img{height:20px;display:block;margin:0 auto 24px}
.signin h1{font-size:28px;font-weight:700;text-align:center}
.signin p{font-size:15px;color:var(--text2);text-align:center;margin:6px 0 22px}
.field{display:block;margin-bottom:12px}
.field span{display:block;font-size:13px;color:var(--text2);margin:0 0 5px 4px}
.field input,.field select,.field textarea{width:100%;font:inherit;font-size:17px;padding:11px 14px;border-radius:11px;border:1px solid var(--sep);background:#fff;color:var(--text);outline:none;transition:border-color .15s,box-shadow .15s}
.field textarea{min-height:76px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px rgba(0,122,255,.15)}
.btn.wide{width:100%;justify-content:center;padding:12px;font-size:17px;border-radius:12px}
.btn[disabled]{opacity:.5;pointer-events:none}
.err{color:var(--red);font-size:14px;min-height:20px;margin:6px 4px 0}
.sheet-bg{position:fixed;inset:0;background:rgba(0,0,0,.28);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fadein .2s ease both}
.hsheet{width:100%;max-width:560px;max-height:92vh;overflow-y:auto;background:var(--bg);border-radius:16px 16px 0 0;padding:8px 18px calc(22px + env(safe-area-inset-bottom));animation:up .32s var(--ease) both}
@media (min-width:680px){.sheet-bg{align-items:center}.hsheet{border-radius:16px;padding-bottom:22px}}
.hsheet .grab{width:38px;height:5px;border-radius:3px;background:#c7c7cc;margin:0 auto 10px}
.hsheet .hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.hsheet .hd b{font-size:17px;font-weight:600}
.hsheet .hd button{color:var(--blue);font-size:17px}
.hsheet .grp{margin-bottom:14px}
.hsheet .kv{display:flex;justify-content:space-between;gap:12px;padding:11px 16px;font-size:15px}
.hsheet .kv+.kv{border-top:.5px solid var(--sep)}
.hsheet .kv span{color:var(--text2)}
.hsheet .opt{display:flex;align-items:center;gap:12px;padding:12px 16px;font-size:16px;cursor:pointer;width:100%;text-align:left}
.hsheet .opt+.opt{border-top:.5px solid var(--sep)}
.hsheet .opt i{width:22px;height:22px;border-radius:50%;border:2px solid #c7c7cc;flex:none;display:grid;place-items:center}
.hsheet .opt.on i{border-color:var(--blue);background:var(--blue);box-shadow:inset 0 0 0 3px #fff}
.hsheet .two{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
.hsheet .foot{font-size:13px;color:var(--text2);margin:2px 4px 14px}
.toast{position:fixed;left:50%;bottom:calc(100px + env(safe-area-inset-bottom));transform:translateX(-50%);background:rgba(29,29,31,.92);color:#fff;font-size:15px;padding:10px 18px;border-radius:22px;z-index:200;animation:up .3s var(--ease) both}
@keyframes fadein{from{opacity:0}}
@keyframes up{from{transform:translateY(24px);opacity:0}}
