:root{--bg:#f4f6f8;--card:#fff;--text:#16202a;--muted:#5b6875;--border:#dde3e9;--primary:#0b6e4f;--primary-text:#fff;--danger:#b42318;--success:#067647;--depot:#e7eefc;--boutique:#e6f4ee;color:var(--text);background:var(--bg);-webkit-text-size-adjust:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Noto Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif}@media (prefers-color-scheme:dark){:root{--bg:#0f1418;--card:#182027;--text:#e8edf1;--muted:#9aa7b3;--border:#2a343d;--primary:#3fb68b;--primary-text:#08130e;--danger:#f97066;--success:#47cd89;--depot:#1d2a40;--boutique:#17302a}}*{box-sizing:border-box}body{background:var(--bg);margin:0}h1{margin:.5rem 0;font-size:1.5rem}h2{margin:0 0 .5rem;font-size:1.15rem}p{line-height:1.45}.app{flex-direction:column;min-height:100dvh;display:flex}.screen{width:100%;max-width:560px;padding:16px 16px 96px;padding-top:max(16px, env(safe-area-inset-top));margin:0 auto}.app .screen{padding-top:16px}.screen.center{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:100dvh;padding-bottom:16px;display:flex}.topbar{z-index:2;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:var(--card);border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.tabbar{background:var(--card);border-top:1px solid var(--border);padding-bottom:env(safe-area-inset-bottom);display:flex;position:fixed;bottom:0;left:0;right:0}.tabbar button{color:var(--muted);background:0 0;border:0;flex:1;padding:14px 0;font-size:1rem}.tabbar button.on{color:var(--primary);font-weight:600}.card{background:var(--card);border:1px solid var(--border);border-radius:12px;margin-bottom:16px;padding:16px}.form{flex-direction:column;gap:12px;display:flex}label{flex-direction:column;gap:6px;font-size:.95rem;font-weight:600;display:flex}label.check{flex-direction:row;align-items:flex-start;gap:10px;font-weight:400}label.check input{flex:none;width:22px;height:22px;margin:0}input,select{width:100%;min-width:0;font:inherit;border:1px solid var(--border);background:var(--bg);color:var(--text);border-radius:10px;padding:12px;font-size:16px;font-weight:400}button{font:inherit;cursor:pointer}.primary{background:var(--primary);color:var(--primary-text);border:0;border-radius:10px;padding:14px 18px;font-size:1rem;font-weight:600}.primary.small{padding:8px 12px;font-size:.9rem}.secondary{border:1px solid var(--border);color:var(--text);background:0 0;border-radius:10px;padding:12px 16px}.link{color:var(--primary);background:0 0;border:0;padding:8px}.muted{color:var(--muted)}.small{font-size:.85rem}.hint{color:var(--muted);margin:0;font-size:.85rem}.center-text{text-align:center}button:disabled{opacity:.6}.error{color:var(--danger);font-weight:600}.success{color:var(--success);font-weight:600}.notice{border:1px solid var(--border);background:var(--bg);border-radius:10px;padding:12px}.notice p{margin:6px 0 0;font-size:.92rem}.row-between{justify-content:space-between;align-items:center;gap:8px;display:flex}.list{margin:0;padding:0;list-style:none}.list li{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:12px 0;display:flex}.list li:last-child{border-bottom:0}.list li.edit-row{display:block}.list li.place{flex-direction:column;align-items:stretch;gap:4px}.list li.place .row-actions{justify-content:flex-end}.row-actions{flex-shrink:0;gap:12px;display:flex}.plain{margin:0;padding-left:20px;line-height:1.8}.tag{border-radius:999px;padding:2px 8px;font-size:.75rem}.tag.depot{background:var(--depot)}.tag.boutique{background:var(--boutique)}.segmented{border:1px solid var(--border);border-radius:10px;display:flex;overflow:hidden}.segmented button{color:var(--text);background:0 0;border:0;flex:1;padding:10px}.segmented button.on{background:var(--primary);color:var(--primary-text);font-weight:600}.pin{margin:24px 0 8px}h3{margin:8px 0 0;font-size:1rem}.tabbar button{font-size:.9rem}.actions{flex-direction:column;gap:10px;display:flex}.actions .button{text-align:center;text-decoration:none;display:block}.search{width:100%;margin:8px 0}.tap{cursor:pointer}.tap:active{background:var(--bg)}.right{text-align:right}.badge{white-space:nowrap;border-radius:999px;padding:2px 8px;font-size:.75rem;font-weight:600}.badge.faible{color:#93370d;background:#fef0c7}.badge.rupture{color:#b42318;background:#fee4e2}.badge.ok{background:var(--boutique);color:var(--success)}.grid2{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.grid2 .span2{grid-column:span 2}.line{border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:10px;padding:12px;display:flex}.qty{align-items:center;gap:8px;display:flex}.qty input{flex:1;min-width:0}.segmented.small button{padding:8px;font-size:.85rem}.qty-small{flex:none;width:84px}label.check input,.qty .segmented{width:auto}.file{border:1px dashed var(--border);text-align:center;color:var(--primary);border-radius:10px;padding:14px}.file input{display:none}.proof{border:1px solid var(--border);border-radius:10px;width:100%}.facts{grid-template-columns:auto 1fr;gap:6px 12px;margin:12px 0 0;display:grid}.facts dt{color:var(--muted)}.facts dd{text-align:right;margin:0;font-weight:600}.danger{color:var(--danger)}select{width:100%}.secondary.small{padding:8px 12px;font-size:.9rem}.pin-dots{justify-content:center;gap:16px;margin-bottom:24px;display:flex}.dot{border:2px solid var(--muted);border-radius:50%;width:16px;height:16px}.dot.on{background:var(--text);border-color:var(--text)}.pin-keys{grid-template-columns:repeat(3,76px);gap:14px;display:grid}.pin-key{border:1px solid var(--border);background:var(--card);height:76px;color:var(--text);border-radius:50%;font-size:1.6rem}.pin-key:active{background:var(--border)}.pin-key:disabled{opacity:.4}.checklist{margin:0 0 12px;padding:0;line-height:1.9;list-style:none}.checklist li:before{content:"○ ";color:var(--muted)}.checklist li.done{color:var(--muted)}.checklist li.done:before{content:"✓ ";color:var(--primary);text-decoration:none}.field-title{margin:0;font-weight:600}input[type=checkbox],input[type=radio]{accent-color:var(--primary);width:auto}button.small,.link.small,.primary.small,.secondary.small{min-height:44px}.segmented.small button{min-height:40px}.privacy-cover{z-index:1000;background:var(--bg,#f4f6f8);justify-content:center;align-items:center;font-size:1.3rem;display:flex;position:fixed;top:0;bottom:0;left:0;right:0}
