:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#080b12;color:#f8fafc;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:linear-gradient(180deg,#141b27f5,#080b12 320px),#080b12}button,input,textarea{font:inherit}a{color:inherit;text-decoration:none}code{color:#bae6fd}.app-shell{min-height:100vh}.page-wrap{width:min(1120px,100%);margin:0 auto;padding:18px 16px 96px}.stack{display:flex;flex-direction:column;gap:18px}.hero,.page-header,.auth-card,.panel,.form-panel,.state{border:1px solid rgba(148,163,184,.22);background:#0f172ad6;box-shadow:0 24px 60px #0000003d}.hero,.page-header,.auth-card,.form-panel,.state{border-radius:8px;padding:22px}.panel{border-radius:8px;padding:18px}.hero h1,.page-header h1,.auth-card h1{margin:0;font-size:2.35rem;line-height:1.04;letter-spacing:0}.page-header h1,.auth-card h1{font-size:2rem}.hero p,.page-header p,.auth-card p,.panel p{color:#cbd5e1}.eyebrow{margin:0 0 8px;color:#67e8f9;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.lede{margin-top:8px;font-size:1.04rem}.hero-actions,.action-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.button{min-height:46px;border:0;border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;color:#f8fafc;cursor:pointer;font-weight:800}.button:disabled{opacity:.65;cursor:progress}.button-large{width:100%;min-height:58px;font-size:1rem}.button-primary{background:#0284c7}.button-secondary{background:#334155}.button-ghost{background:#94a3b824;border:1px solid rgba(148,163,184,.28)}.bottom-nav{position:fixed;z-index:20;left:0;right:0;bottom:0;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px 8px max(8px,env(safe-area-inset-bottom));background:#020617f2;border-top:1px solid rgba(148,163,184,.2);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.bottom-nav a{min-height:58px;border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:#94a3b8;font-size:.75rem;font-weight:700}.bottom-nav a.active{background:#0ea5e92e;color:#f8fafc}.search-box{min-height:56px;border:1px solid rgba(148,163,184,.25);border-radius:8px;display:flex;align-items:center;gap:10px;padding:0 14px;background:#0f172ac7;color:#94a3b8}.search-box input,label input,label textarea,.manual-scan input,.packing-item textarea{width:100%;border:1px solid rgba(148,163,184,.28);border-radius:8px;background:#111827;color:#f8fafc;outline:none}.search-box input{border:0;background:transparent;min-height:52px}label{display:grid;gap:8px;color:#e2e8f0;font-weight:800}label input,label textarea,.packing-item textarea{min-height:48px;padding:12px;font-weight:600}label textarea,.packing-item textarea{min-height:96px;resize:vertical}.form-panel{display:grid;gap:16px}.checkbox-label{display:flex;align-items:center;gap:10px}.checkbox-label input{width:22px;height:22px}.case-grid{display:grid;gap:12px}.case-card{border:1px solid rgba(148,163,184,.24);border-radius:8px;display:grid;gap:16px;padding:18px;background:#0f172ac7}.case-card h3,.panel h2,.panel h3,.section-title h2{margin:0;letter-spacing:0}.case-card-footer,.meta{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#cbd5e1}.case-card-footer{justify-content:space-between;font-size:.88rem}.detail-grid{display:grid;gap:16px}.field-label{display:block;margin-bottom:4px;color:#94a3b8;font-size:.78rem;font-weight:800;text-transform:uppercase}.photo-grid{display:grid;gap:12px}.photo-grid figure,.photo-upload{margin:0;border:1px solid rgba(148,163,184,.22);border-radius:8px;overflow:hidden;background:#0f172ac7}.photo-grid img,.photo-upload img{display:block;width:100%;aspect-ratio:4 / 3;object-fit:cover;background:#111827}.photo-grid figcaption{padding:10px 12px;color:#cbd5e1;font-weight:800}.photo-upload{display:grid;gap:10px;padding:12px}.photo-placeholder{min-height:170px;border:1px dashed rgba(148,163,184,.35);border-radius:8px;display:grid;place-items:center;gap:8px;color:#94a3b8}.input-with-button{position:relative}.input-with-button input{padding-right:42px}.input-icon{position:absolute;top:50%;right:12px;transform:translateY(-50%);color:#94a3b8}.item-list{display:grid;gap:10px;margin-top:14px}.item-row{border:1px solid rgba(148,163,184,.18);border-radius:8px;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:14px;background:#0206175c}.item-row p{margin:5px 0 0}.pill{border-radius:999px;display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:0 10px;background:#94a3b829;color:#e2e8f0;font-size:.78rem;font-weight:900;white-space:nowrap}.pill-required,.pill-success{background:#22c55e2e;color:#bbf7d0}.pill-warning{background:#fbbf242e;color:#fde68a}.section-title{display:flex;justify-content:space-between;gap:14px;align-items:end}.section-title p,.muted,.form-help{margin:0;color:#94a3b8}.form-error,.notice-error{color:#fecaca}.notice{border:1px solid rgba(56,189,248,.28);border-radius:8px;padding:14px;background:#0ea5e91f;color:#e0f2fe}.notice-error{border-color:#f8717166;background:#7f1d1d47}.state{display:grid;place-items:center;min-height:220px;text-align:center}.state h2,.state p{margin:0}.state p{max-width:32rem;color:#cbd5e1}.state-loading{gap:12px}.spinner{width:34px;height:34px;border:4px solid rgba(148,163,184,.26);border-top-color:#38bdf8;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.auth-page{min-height:100vh;display:grid;place-items:center;padding:20px}.auth-card{width:min(420px,100%);display:grid;gap:16px}.brand-mark{width:56px;height:56px;border-radius:8px;display:grid;place-items:center;background:#0284c7}.scanner-frame{position:relative;overflow:hidden;border:1px solid rgba(56,189,248,.4);border-radius:8px;min-height:340px;background:#020617}.scanner-frame video{width:100%;min-height:340px;object-fit:cover}.scan-corners{position:absolute;inset:22px;border:3px solid rgba(56,189,248,.72);border-radius:8px;display:grid;place-items:center;color:#e0f2fe;pointer-events:none}.manual-scan{display:grid;gap:12px}.qr-page{min-height:calc(100vh - 120px);display:grid;place-items:center;gap:18px}.qr-label{width:min(440px,100%);border:1px solid rgba(148,163,184,.28);border-radius:8px;display:grid;justify-items:center;gap:12px;padding:28px;background:#fff;color:#0f172a;text-align:center}.qr-label h1{margin:0;font-size:1.8rem;letter-spacing:0}.qr-label img{width:100%;max-width:320px}.qr-label strong{font-size:1.4rem}.mode-grid{display:grid;gap:14px}.mode-button{border:1px solid rgba(148,163,184,.22);border-radius:8px;display:grid;gap:10px;justify-items:start;min-height:160px;padding:22px;background:#0f172adb;color:#f8fafc;text-align:left;cursor:pointer}.mode-button strong{font-size:1.4rem}.mode-button span{color:#cbd5e1}.packing-case{display:grid;gap:14px}.packing-case-header,.packing-item{display:grid;gap:12px}.packing-case-header{grid-template-columns:1fr auto;align-items:start}.packing-case-header p,.packing-item p{margin:4px 0 0}.packing-item{border-top:1px solid rgba(148,163,184,.16);padding-top:14px}.status-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.status-buttons button{min-height:42px;border:1px solid rgba(148,163,184,.25);border-radius:8px;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#0f172acc;color:#e2e8f0;cursor:pointer;font-weight:800}.status-buttons button.active{background:#22c55e2e;border-color:#22c55e80;color:#bbf7d0}.status-buttons button.warning,.status-buttons button.active.warning{background:#fbbf2429;border-color:#fbbf2480;color:#fde68a}.print-brand{display:none}@media(min-width:700px){.page-wrap{padding:28px 28px 112px}.hero h1{font-size:3.6rem}.page-header h1,.auth-card h1{font-size:2.7rem}.button-large{width:auto;min-width:210px}.case-grid,.photo-grid,.mode-grid,.detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.packing-item{grid-template-columns:1fr minmax(340px,.9fr);align-items:start}.packing-item textarea,.packing-item .form-help{grid-column:2}}@media(min-width:980px){.case-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media print{:root,body{background:#fff;color:#000}.bottom-nav,.print-hide,.page-wrap>:not(.qr-page){display:none!important}.page-wrap{padding:0}.qr-page{min-height:auto}.qr-label{border:2px solid #000000;box-shadow:none;page-break-inside:avoid}}
