@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}
