:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f7f3ed;background:#11100e;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #11100e;--surface: #1b1916;--surface-2: #24211d;--line: #37312a;--muted: #aaa197;--text: #f7f3ed;--orange: #ff7a1a;--orange-light: #ff9d57;--green: #4bd08b;--red: #ff6961;--yellow: #f5bd4f}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:radial-gradient(circle at 85% -10%,#332014 0,transparent 34rem),var(--bg)}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}a{color:inherit;text-decoration:none}h1,h2,h3,p{margin-top:0}h1{margin-bottom:.5rem;font-size:clamp(1.8rem,5vw,3rem);letter-spacing:-.045em;line-height:1.06}h2{margin:2rem 0 .8rem;font-size:1.15rem}h3{margin-bottom:1rem}small{color:var(--muted)}.app-shell{min-height:100vh}.topbar{height:72px;max-width:1180px;margin:auto;padding:0 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.06)}.brand{display:flex;align-items:center;gap:11px;font-weight:750;line-height:1}.brand small{display:block;margin-top:5px;font-size:.68rem;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.brand-mark{width:38px;height:38px;display:inline-grid;place-items:center;border-radius:12px;background:var(--orange);color:#1a0c02;font-size:.82rem;font-weight:900;box-shadow:0 8px 24px #ff7a1a33}.brand-mark.large{width:54px;height:54px;border-radius:17px;margin-bottom:20px}main{width:min(1120px,calc(100% - 40px));margin:0 auto;padding:54px 0 120px}.narrow{max-width:680px;margin-inline:auto}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:28px}.page-header h1{margin-bottom:0}.eyebrow{margin-bottom:8px;color:var(--orange-light);font-size:.73rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase}.muted{color:var(--muted);line-height:1.55}.center{text-align:center}.centered{min-height:100vh;display:grid;place-items:center;padding:20px}.button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 17px;border:1px solid transparent;border-radius:12px;cursor:pointer;font-weight:750;transition:transform .15s,background .15s,border-color .15s}.button:hover{transform:translateY(-1px)}.button:disabled{opacity:.55;cursor:wait;transform:none}.button.primary{background:var(--orange);color:#170b02}.button.primary:hover{background:var(--orange-light)}.button.secondary{background:var(--surface-2);border-color:var(--line);color:var(--text)}.button.ghost{background:transparent;border-color:var(--line);color:var(--muted)}.button.danger{background:#ff69611a;border-color:#ff696159;color:#ff9c97}.button.compact{min-height:36px;padding:0 12px;font-size:.85rem}.button.wide{width:100%}.button-row{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.stat{min-height:126px;padding:22px;display:flex;flex-direction:column;justify-content:flex-end;border:1px solid var(--line);border-radius:18px;background:linear-gradient(145deg,var(--surface-2),var(--surface))}.stat strong{font-size:2.25rem;line-height:1;letter-spacing:-.05em}.stat span{margin-top:9px;color:var(--muted);font-size:.86rem}.stat.primary-stat{background:var(--orange);border-color:var(--orange);color:#1a0c02}.stat.primary-stat span{color:#512508}.action-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.action-card{min-height:150px;padding:22px;display:flex;flex-direction:column;align-items:flex-start;border:1px solid var(--line);border-radius:18px;background:var(--surface);transition:transform .15s,border .15s}.action-card:hover{transform:translateY(-2px);border-color:#5d5145}.action-card>span{width:38px;height:38px;display:grid;place-items:center;margin-bottom:auto;border-radius:11px;background:var(--surface-2);color:var(--orange-light);font-size:1.25rem}.action-card strong{margin-top:18px}.action-card small{margin-top:5px}.action-card.accent{background:linear-gradient(145deg,#3a2518,#251a13);border-color:#5d3920}.split-layout,.inventory-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:28px;align-items:start}.group+.group{margin-top:30px}.group-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:.8rem}.group h2{margin:0;color:var(--muted);font-size:.82rem;letter-spacing:.1em;text-transform:uppercase}.list-card,.panel,.summary-card,.scanner-card,.progress-card,.detail-card{overflow:hidden;border:1px solid var(--line);border-radius:18px;background:#1b1916eb}.room-row,.item-row,.session-row{min-height:72px;display:flex;align-items:center;gap:14px;padding:14px 17px;border-bottom:1px solid var(--line)}.room-row:last-child,.item-row:last-child,.session-row:last-child{border-bottom:0}.room-row:hover,.item-row:hover,.session-row:hover{background:var(--surface-2)}.room-row>span:first-child,.item-copy,.session-row>span:nth-child(2){min-width:0;display:flex;flex:1;flex-direction:column;gap:5px}.item-copy strong,.session-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-icon{width:38px;height:38px;flex:0 0 auto;display:grid;place-items:center;border-radius:11px;background:#2a241e}.item-thumb{width:44px;height:44px;flex:0 0 auto;border-radius:11px;object-fit:cover;background:#2a241e}.chevron{color:#776d63;font-size:1.7rem}.room-row-actions{display:flex;align-items:stretch;border-bottom:1px solid var(--line)}.room-row-actions:last-child{border-bottom:0}.room-row-actions .room-row{flex:1;border-bottom:0}.room-row-actions .icon-button{margin:14px 14px 14px 0}.icon-button{width:40px;min-width:40px;height:40px;padding:0;border:1px solid var(--line);border-radius:11px;background:transparent;color:var(--muted);cursor:pointer;font-size:1.35rem;line-height:1}.icon-button:hover{background:#ff69611a;border-color:#ff696159;color:#ff9c97}.icon-button:disabled{opacity:.45;cursor:wait}.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px}.forms-stack{display:grid;gap:14px;position:sticky;top:20px}.panel{padding:22px}.panel h3{font-size:1rem}.panel label,.auth-card label,.manual-code label{display:flex;flex-direction:column;gap:8px;margin-bottom:15px;color:#d5cec6;font-size:.83rem;font-weight:700}input,select,textarea{width:100%;min-height:46px;padding:11px 13px;border:1px solid var(--line);border-radius:11px;outline:0;background:#141310;color:var(--text)}textarea{resize:vertical}input:focus,select:focus,textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff7a1a1f}.search{margin-bottom:14px;min-height:50px;background:var(--surface)}.filters-panel{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#1b1916eb}.filters-panel label{display:flex;flex-direction:column;gap:7px;color:#d5cec6;font-size:.78rem;font-weight:700}.filters-panel .filter-search{grid-column:span 2}.filter-footer{grid-column:1 / -1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:2px;color:var(--muted);font-size:.85rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.form-grid .full{grid-column:1 / -1}.photo-picker{cursor:pointer}.photo-picker>input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.photo-input-copy{min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:14px;border:1px dashed #655648;border-radius:13px;background:#171410;color:var(--orange-light);text-align:center}.photo-input-copy small{font-weight:500}.photo-preview{display:flex;align-items:center;gap:12px;margin-bottom:15px;padding:10px;border:1px solid var(--line);border-radius:14px;background:#151310}.photo-preview img{width:96px;height:96px;border-radius:10px;object-fit:cover}.empty{min-height:100px;display:grid;place-items:center;padding:22px;color:var(--muted);text-align:center}.notice{margin:14px 0;padding:15px 17px;border:1px solid;border-radius:13px;line-height:1.45}.notice.error{color:#ffaaa5;background:#ff696114;border-color:#ff69614d}.notice.success{color:#84e7b4;background:#4bd08b14;border-color:#4bd08b4d}.notice.warning{color:#f7d795;background:#f5bd4f14;border-color:#f5bd4f4d}.notice.warning p{margin:10px 0 0;color:#d7c5a4}.field-error{color:#ffaaa5;font-size:.85rem}.auth-page,.public-page{min-height:100vh;display:grid;place-items:center;padding:24px}.auth-card{width:min(430px,100%);padding:clamp(24px,6vw,42px);border:1px solid var(--line);border-radius:24px;background:#1b1916f2;box-shadow:0 30px 80px #00000047}.auth-card h1{font-size:2.15rem}.public-page{align-content:center;gap:18px}.public-brand{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:.82rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.detail-card{padding:clamp(24px,6vw,42px)}.public-page .detail-card{width:min(520px,calc(100vw - 32px))}.detail-icon{width:62px;height:62px;display:grid;place-items:center;margin-bottom:25px;border-radius:18px;background:#2d251e;font-size:1.8rem}.detail-photo{width:calc(100% + clamp(48px,12vw,84px));max-height:430px;margin:calc(clamp(24px,6vw,42px)*-1) calc(clamp(24px,6vw,42px)*-1) 28px;object-fit:cover;background:#0d0c0a}.detail-photo-actions{display:grid;gap:10px;margin-bottom:10px}.detail-photo-actions input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.button.disabled{opacity:.55;cursor:wait}.detail-delete{margin-top:10px}.inventory-number{display:inline-flex;padding:8px 12px;margin:12px 0 24px;border:1px solid #65452d;border-radius:9px;color:var(--orange-light);background:#281c14;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-weight:800;letter-spacing:.05em}dl{margin:0 0 26px}dl div{display:flex;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}dt{color:var(--muted)}dd{margin:0;text-align:right;font-weight:700}.qr-label{width:360px;max-width:100%;margin:0 auto 25px;padding:28px;display:flex;flex-direction:column;align-items:center;border-radius:8px;background:#fff;color:#111;text-align:center}.qr-label>strong{font-size:.9rem;letter-spacing:.16em}.qr-label img{display:block;width:100%;margin:15px 0 10px}.qr-label b{font:800 1.35rem ui-monospace,monospace;letter-spacing:.07em}.qr-label span{margin-top:7px;font-size:.9rem}.qr-page>.button-row{justify-content:center}.scanner-card{padding:16px}.scanner-viewport{overflow:hidden;min-height:0;border-radius:12px;background:#090909}.scanner-viewport video{border-radius:12px}.scanner-viewport:has(video){min-height:260px;margin-bottom:12px}.manual-code{margin-top:15px;padding:17px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.manual-code label{margin-bottom:10px}.inline-form{display:flex;gap:8px}.progress-card{margin-bottom:15px;padding:22px}.progress-card>div{display:flex;align-items:baseline;gap:10px}.progress-card strong{font-size:2rem}.progress-card span{color:var(--muted)}progress{width:100%;height:8px;margin-top:16px;border:0;border-radius:10px;overflow:hidden;background:var(--surface-2)}progress::-webkit-progress-bar{background:var(--surface-2)}progress::-webkit-progress-value{background:var(--orange)}progress::-moz-progress-bar{background:var(--orange)}.summary-card{margin-bottom:22px;padding:10px 18px}.summary-card div{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.summary-card div:last-child{border:0}.summary-card span{color:var(--muted)}.summary-card strong{font-size:1.25rem}.scan-list{margin-bottom:18px}.scan-list>div{display:flex;gap:11px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}.scan-list>div>span{color:var(--orange-light)}.scan-list p{display:flex;flex-direction:column;gap:3px;margin:0}.status-dot{width:9px;height:9px;flex:0 0 auto;border-radius:50%;background:var(--green);box-shadow:0 0 0 5px #4bd08b1a}.status-dot.completed{background:#777067;box-shadow:none}.result-hero{margin-bottom:20px;padding:32px;border:1px solid rgba(75,208,139,.25);border-radius:20px;background:linear-gradient(140deg,rgba(75,208,139,.12),var(--surface));text-align:center}.result-hero>span{width:50px;height:50px;display:grid;place-items:center;margin:auto auto 14px;border-radius:50%;background:var(--green);color:#082316;font-size:1.4rem;font-weight:900}.result-hero h2{margin:0;font-size:1.6rem}.result-hero p{margin:7px 0 0;color:var(--muted)}.stat.good strong{color:var(--green)}.stat.warn strong{color:var(--yellow)}.stat.bad strong{color:var(--red)}.loader{min-height:160px;display:grid;place-items:center}.loader span{width:28px;height:28px;border:3px solid var(--line);border-top-color:var(--orange);border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.bottom-nav{position:fixed;z-index:20;left:50%;bottom:14px;transform:translate(-50%);width:min(600px,calc(100% - 24px));height:66px;display:grid;grid-template-columns:repeat(5,1fr);padding:7px;border:1px solid #403a33;border-radius:18px;background:#1c1a17f0;box-shadow:0 15px 45px #0006;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:11px;color:#827970}.bottom-nav a>span{font-size:1.15rem;line-height:1}.bottom-nav a small{color:inherit;font-size:.64rem}.bottom-nav a.active{color:var(--orange-light);background:#ff7a1a17}@media(max-width:760px){.topbar{height:62px;padding:0 16px}main{width:min(100% - 28px,680px);padding-top:34px}.page-header{align-items:flex-start;flex-direction:column;margin-bottom:22px}.page-header .button,.header-actions{width:100%}.stats-grid{grid-template-columns:1fr 1fr}.stat{min-height:104px;padding:17px}.stat strong{font-size:1.9rem}.action-grid{grid-template-columns:1fr}.action-card{min-height:125px}.split-layout,.inventory-layout{grid-template-columns:1fr}.forms-stack{position:static}.form-grid{grid-template-columns:1fr}.form-grid .full{grid-column:auto}.filters-panel{grid-template-columns:1fr}.filters-panel .filter-search,.filter-footer{grid-column:auto}.filter-footer{align-items:stretch;flex-direction:column}.result-stats{grid-template-columns:1fr 1fr}.inventory-layout aside{display:flex;flex-direction:column}.inventory-layout aside .summary-card{order:0}.inventory-layout aside h3,.inventory-layout aside .scan-list{order:2}.inventory-layout aside .button.danger{order:1;margin-bottom:15px}}@media print{body{background:#fff}.topbar,.bottom-nav,.page-header,.qr-page>.button-row{display:none!important}main{width:100%;padding:0}.qr-label{margin:0;border:1px dashed #bbb}}
