@import url('../shared/brand.css');
body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
.top{position:sticky;top:0;z-index:20;background:var(--bg);border-bottom:2px solid var(--red);padding:calc(8px + env(safe-area-inset-top)) 16px 8px;min-height:60px;display:flex;align-items:center;gap:12px}
.top h1{font-size:1.4rem;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
main{padding:16px 16px 80px;display:grid;gap:12px;max-width:560px;margin:0 auto;min-width:0}
.nav{position:fixed;bottom:0;left:0;right:0;z-index:30;background:var(--bg2);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr);padding-bottom:env(safe-area-inset-bottom)}
.nav a{display:grid;justify-items:center;align-content:center;gap:4px;padding:8px 4px;color:var(--tx2);text-decoration:none;font-weight:600;font-size:.82rem;min-height:64px;transition:color .15s var(--ease)}
.nav a.on{color:var(--tx);box-shadow:inset 0 3px 0 var(--red)}.nav a .ico{width:24px;height:24px}
.login{min-height:100dvh;display:grid;align-content:center;gap:16px;padding:24px;max-width:420px;margin:0 auto}
.login img{height:56px;justify-self:center}
.pin{letter-spacing:.3em;text-align:center;font-size:1.6rem;font-weight:600}
.colis{display:grid;gap:8px;text-decoration:none;color:inherit;border-left:4px solid var(--info)}
.colis.livree{border-left-color:var(--ok)}.colis.livree .cod{color:var(--tx2)}.colis.fail{border-left-color:var(--warn)}.colis.ret{border-left-color:var(--ko)}
.colis .n{font-family:var(--font-h);font-stretch:82%;font-weight:700;font-size:1.2rem;line-height:1.2}
.colis .row:first-child{align-items:flex-start}
.cod{font-family:var(--font-h);font-stretch:82%;font-weight:700;font-size:1.9rem;color:var(--red2);line-height:1;white-space:nowrap}
.sect{display:flex;justify-content:space-between;align-items:center;margin-top:12px}
.sect h2{font-size:1rem;color:var(--tx2);font-weight:600}
.bar{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--warn);color:var(--tx);border-radius:12px;padding:12px;font-weight:500;font-size:.95rem}
.bar.ko{border-left-color:var(--ko)}.bar.ok{border-left-color:var(--ok)}
.actions{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.actions .btn{flex-direction:column;min-height:80px;gap:4px;font-size:.92rem;padding:8px;text-align:center}
.big{font-family:var(--font-h);font-stretch:82%;font-weight:700;font-size:2.4rem;line-height:1}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:48px;padding:0 16px;border-radius:10px;border:1px solid var(--line2);background:var(--bg2);font-weight:600;cursor:pointer}
.chip.on{background:var(--red);border-color:var(--red);color:#fff}
.sheet{position:fixed;inset:0;z-index:50;background:rgba(0,0,0,.7);display:flex;align-items:flex-end}
.sheet>div{background:var(--bg2);width:100%;max-height:92dvh;overflow:auto;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + env(safe-area-inset-bottom));display:grid;gap:16px;max-width:560px;margin:0 auto}
.kv{display:grid;grid-template-columns:auto 1fr;gap:8px 16px}.kv dt{color:var(--tx2)}.kv dd{margin:0;font-weight:600;min-width:0;overflow-wrap:anywhere}
.items li{padding:8px 0;border-bottom:1px solid var(--line)}.items li:last-child{border-bottom:0}.items{list-style:none;padding:0;margin:0}
.photo-prev{max-width:100%;border-radius:12px}
.tabs{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;position:sticky;top:60px;z-index:15;background:var(--bg);padding:8px 0}
.tabs button{min-height:64px;border-radius:12px;border:1px solid var(--line2);background:var(--card);font-weight:600;font-size:.9rem;line-height:1.2;padding:8px;cursor:pointer}
.tabs button.on{background:var(--red);border-color:var(--red);color:#fff}.tabs b{display:block;font-family:var(--font-h);font-stretch:82%;font-size:1.5rem;line-height:1.1}
.art{display:grid;grid-template-columns:84px 1fr;gap:12px;align-items:start;text-decoration:none;color:inherit;border-left:4px solid var(--info)}
.art img{width:84px;height:104px;object-fit:cover;border-radius:8px;background:var(--raised)}
.art.ok{border-left-color:var(--ok)}.art.warn{border-left-color:var(--warn)}.art.ko{border-left-color:var(--ko)}
.art .t{font-weight:600;line-height:1.25}.art .sz{font-family:var(--font-h);font-stretch:82%;font-weight:700;font-size:1.6rem;color:var(--red2);line-height:1}
.flo{background:var(--raised);border:1px solid var(--line2);border-left:4px solid var(--red);border-radius:8px;padding:8px 12px;font-weight:600;font-size:.92rem}
.hero-img{width:100%;max-height:46dvh;object-fit:contain;background:var(--bg2);border-radius:12px}
.chips{display:flex;flex-wrap:nowrap;gap:8px;overflow-x:auto;padding:4px 0 8px;scrollbar-width:none}.chips::-webkit-scrollbar{display:none}
.chips button{flex:none;min-height:44px;padding:0 14px;border-radius:10px;border:1px solid var(--line2);background:var(--card);font-weight:600;font-size:.9rem;white-space:nowrap;cursor:pointer}
.chips button.on{background:var(--tx);color:var(--bg);border-color:var(--tx)}.chips b{opacity:.7;margin-left:4px}
.seg{display:grid;gap:8px}.seg label{display:flex;align-items:center;gap:12px;min-height:52px;padding:0 14px;border-radius:12px;border:1px solid var(--line2);background:var(--bg2);font-weight:600;color:var(--tx);cursor:pointer}
.seg input{width:22px;min-height:0;height:22px;accent-color:var(--red)}.seg label:has(input:checked){border-color:var(--red);box-shadow:inset 3px 0 0 var(--red)}
