@import"https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#172033;background:#f6f8fb;font-synthesis:none;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;padding-bottom:100px}.topbar{height:76px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;padding:0 max(22px,calc((100% - 1120px)/2));gap:12px;position:sticky;top:0;z-index:5}.brand-mark{width:42px;height:42px;border-radius:13px;background:#eaf1ff;color:#2563eb;display:grid;place-items:center}.brand-copy{display:flex;flex-direction:column;gap:3px}.brand-copy b{font-size:16px}.brand-copy span,.connection{font-size:12px;color:#718096}.connection{margin-left:auto;display:flex;align-items:center;gap:7px}.connection span{width:8px;height:8px;background:#d97706;border-radius:50%}.connection.online span{background:#16a34a}.page{max-width:1120px;margin:0 auto;padding:34px 24px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.page-heading h1{font-size:clamp(27px,4vw,36px);letter-spacing:-1px;margin:0 0 8px;font-weight:800}.page-heading p{margin:0;color:#718096;font-size:16px;line-height:1.5}.primary{border:0;border-radius:12px;background:#2563eb;color:#fff;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:13px 18px;font-weight:700;box-shadow:0 3px 6px #2563eb26}.primary:hover{background:#1d4ed8}.primary:disabled{opacity:.65;cursor:wait}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid #e0e7ef;border-radius:15px;padding:20px;display:flex;align-items:center;gap:14px;min-width:0}.stat-icon{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;flex-shrink:0}.stat-icon svg{width:24px;height:24px}.stat-icon.blue{background:#edf3ff;color:#2563eb}.stat-icon.green{background:#e7f7ed;color:#219653}.stat-icon.orange{background:#fff2e5;color:#d97706}.stat-card span{display:block;font-size:13px;color:#718096;margin-bottom:6px}.stat-card strong{font-size:27px}.stat-card strong.blue{color:#2563eb}.stat-card strong.green{color:#219653}.stat-card strong.orange{color:#d97706}.searchbar{height:58px;background:#fff;border:1px solid #dce3eb;border-radius:13px;display:flex;align-items:center;gap:12px;padding:0 17px;color:#718096;box-shadow:0 2px 4px #10182808}.searchbar input{border:0;outline:0;flex:1;min-width:0;background:transparent;color:#172033}.list-head{display:flex;align-items:center;justify-content:space-between;margin:28px 2px 13px}.list-head span,.muted{color:#718096;font-size:13px}.item-list{display:flex;flex-direction:column;gap:14px}.item-card{background:#fff;border:1px solid #dfe6ee;border-radius:16px;padding:17px;display:flex;align-items:center;gap:18px;min-width:0}.item-thumb{width:92px;height:92px;border-radius:14px;background:#f0f4fa;border:1px solid #e0e7ef;display:grid;place-items:center;color:#718096;flex-shrink:0;overflow:hidden}.item-thumb img{width:100%;height:100%;object-fit:cover}.item-main{flex:1;min-width:0}.item-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.item-title h3{margin:0;font-size:20px}.id-label{font-size:11px;color:#718096;background:#f3f6fa;padding:4px 7px;border-radius:6px}.item-meta{margin-top:12px;color:#718096;font-size:14px}.item-meta b{color:#172033}.status-pills{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.pill{font-size:12px;font-weight:700;border:1px solid transparent;border-radius:999px;padding:6px 9px;white-space:nowrap}.pill.good,.unit-cell.good{color:#219653;background:#effcf4;border-color:#b9f0ce}.pill.minor,.unit-cell.minor{color:#b77908;background:#fffbeb;border-color:#f9e58c}.pill.major,.unit-cell.major{color:#cf3038;background:#fff1f1;border-color:#f7c8cb}.item-actions{display:flex;gap:8px;align-self:flex-end}.icon-button{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dce4ed;border-radius:11px;background:#fff;color:#718096;flex-shrink:0}.icon-button svg{width:20px;height:20px}.icon-button:hover{background:#edf3ff;color:#2563eb;border-color:#b7ccff}.danger-hover:hover{background:#fff1f1;color:#d32f2f;border-color:#f7c8cb}.empty{background:#fff;border:1px dashed #cbd5e1;border-radius:16px;padding:48px 20px;text-align:center;color:#718096}.empty h3{color:#172033;margin:12px 0 6px}.empty p{font-size:14px;margin:0 auto 20px;max-width:420px;line-height:1.6}.empty.small{padding:26px}.warning{max-width:1072px;margin:16px auto 0;padding:12px 15px;background:#fff8e7;border:1px solid #f4d58c;color:#855b05;border-radius:10px;display:flex;gap:9px;align-items:center;font-size:13px}.toast{position:fixed;top:88px;left:50%;transform:translate(-50%);z-index:20;background:#172033;color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 10px 35px #0002;font-size:14px;max-width:90vw}.form-page{max-width:800px}.back-link{border:0;background:transparent;color:#718096;display:flex;align-items:center;gap:8px;padding:0;margin:0 0 28px}.form-card{background:#fff;border:1px solid #dfe6ee;border-radius:16px;padding:30px;display:flex;flex-direction:column;gap:22px}.form-card label{display:flex;flex-direction:column;gap:9px;font-weight:650;font-size:15px}.form-card label em{color:#dc2626;font-style:normal;display:inline}.form-card input:not([type=file]),.form-card textarea{width:100%;border:1px solid #dce3eb;border-radius:10px;padding:13px 15px;outline:none;color:#172033;background:#fff;font-weight:400;min-width:0}.form-card input:focus,.form-card textarea:focus{border-color:#4f83f1;box-shadow:0 0 0 3px #2563eb12}.form-card textarea{min-height:84px;resize:vertical}.form-row{display:grid;grid-template-columns:1fr 1.2fr;gap:20px}.condition-field{display:flex;flex-direction:column;gap:9px;font-weight:650}.condition-select{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.condition-option{min-height:48px;border:1px solid #dce3eb;background:#fff;color:#718096;border-radius:10px;padding:8px 4px;font-size:12px;font-weight:700}.condition-option.selected{border-color:#2563eb;color:#2563eb;background:#f4f7ff}.condition-option.selected.minor{color:#b77908;border-color:#eab308;background:#fffbeb}.condition-option.selected.major{color:#cf3038;border-color:#ef4444;background:#fff1f1}.optional{font-size:12px;color:#718096;font-weight:400}.upload-box{min-height:110px;border:1px dashed #cbd5e1;border-radius:12px;background:#f8fafc;display:flex!important;align-items:center;justify-content:center;gap:12px!important;color:#718096;font-weight:500!important;cursor:pointer;padding:12px}.upload-box img{max-height:180px;max-width:100%;object-fit:contain;border-radius:8px}.submit{width:100%;min-height:52px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;height:78px;background:#fff;border-top:1px solid #e0e7ef;display:flex;align-items:center;justify-content:center;gap:clamp(36px,12vw,120px);z-index:8;padding:0 20px}.bottom-nav>button:not(.scan-fab){border:0;background:transparent;color:#718096;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:12px;min-width:66px}.bottom-nav>button svg{width:23px;height:23px}.bottom-nav>button.active{color:#2563eb}.scan-fab{width:66px;height:66px;border-radius:50%;border:5px solid #fff;background:#2563eb;color:#fff;display:grid;place-items:center;box-shadow:0 7px 18px #2563eb45;margin-top:-36px}.scan-fab svg{width:29px;height:29px}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182885;z-index:30;display:flex;align-items:center;justify-content:center;padding:18px}.modal{width:min(720px,100%);max-height:92vh;overflow:auto;background:#fff;border-radius:20px;padding:24px;box-shadow:0 25px 70px #0003}.layout-modal{width:min(850px,100%)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.modal-head h2{margin:0 0 6px;font-size:23px;letter-spacing:-.5px}.modal-head p{margin:0;color:#718096;font-size:13px}.layout-summary{display:flex;flex-wrap:wrap;align-items:center;gap:8px;background:#f5f8fc;border:1px solid #e0e7ef;border-radius:12px;padding:14px;margin-bottom:15px}.total-label{margin-left:auto;color:#718096;font-size:13px}.layout-controls{display:flex;align-items:center;gap:15px;flex-wrap:wrap;background:#f8fafc;border:1px solid #e0e7ef;border-radius:12px;padding:14px;margin-bottom:14px}.stepper{display:flex;align-items:center;gap:10px}.stepper span{font-size:13px;color:#718096}.stepper button{width:31px;height:31px;border:1px solid #dce3eb;border-radius:8px;background:#fff;color:#64748b;display:grid;place-items:center}.stepper button svg{width:15px}.mode-buttons{display:flex;gap:7px;margin-left:auto}.mode-buttons button{border:1px solid #dce3eb;border-radius:9px;background:#fff;padding:9px 12px;display:flex;align-items:center;gap:6px;color:#718096;font-weight:650;font-size:12px}.mode-buttons button.active{border-color:#2563eb;color:#2563eb;background:#eff5ff}.hint{font-size:12px;color:#718096;line-height:1.5}.unit-grid{display:grid;gap:7px;margin:18px 0}.unit-cell{aspect-ratio:1.1;border:1px solid;border-radius:10px;font-weight:700;font-size:13px;min-width:0}.unit-cell.empty-slot{border:1px dashed #dce3eb;background:#f8fafc;color:transparent}.unit-cell.selected{outline:3px solid #2563eb;outline-offset:1px}.add-row{border:0;background:transparent;color:#2563eb;font-weight:650;display:flex;align-items:center;gap:8px;margin:4px auto 18px;padding:8px}.legend{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 20px}.qr-reader{width:100%;max-width:460px;margin:auto;overflow:hidden;border-radius:12px}.qr-reader video{border-radius:12px}.scan-modal{text-align:center}.scan-modal .modal-head{text-align:left}.qr-detail{text-align:center}.qr-detail h3{font-size:22px;margin:12px 0 7px}.qr-detail .id-label{display:inline-block}.detail-image{max-height:140px;max-width:100%;object-fit:contain;border-radius:10px}.detail-stats{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;margin:14px 0}.qr-image{width:240px;height:240px;margin:18px auto;display:grid;place-items:center;background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:10px;color:#718096;font-size:12px}.qr-image img{width:100%;height:100%;object-fit:contain}.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 14px;border:1px solid #dce3eb;border-radius:10px;color:#2563eb;text-decoration:none;font-weight:650;margin:10px 0 16px}.detail-modal .submit{margin-top:4px}.detail-modal .muted{line-height:1.6}.detail-modal>p{line-height:1.6}@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.item-card{gap:12px}.item-actions{gap:5px}.item-actions .icon-button{width:38px;height:38px}.item-thumb{width:76px;height:76px}.item-title h3{font-size:18px}.item-actions{flex-wrap:wrap;justify-content:flex-end}.warning{margin-left:16px;margin-right:16px}}@media(max-width:600px){.topbar{height:65px;padding:0 17px}.brand-mark{width:38px;height:38px}.brand-copy b{font-size:14px}.brand-copy span,.connection{font-size:10px}.page{padding:25px 16px}.page-heading{align-items:flex-start;margin-bottom:22px}.page-heading h1{font-size:29px}.page-heading p{font-size:14px}.desktop-add{display:none}.stats{gap:10px}.stat-card{padding:13px 11px;gap:10px;border-radius:13px}.stat-icon{width:39px;height:39px;border-radius:10px}.stat-icon svg{width:20px}.stat-card span{font-size:11px}.stat-card strong{font-size:23px}.searchbar{height:54px;padding:0 12px}.searchbar input{font-size:13px}.item-card{padding:12px;gap:10px;display:grid;grid-template-columns:58px minmax(0,1fr)}.item-thumb{width:58px;height:58px;grid-row:1;grid-column:1}.item-thumb svg{width:28px}.item-main{grid-row:1;grid-column:2}.item-title{gap:5px}.item-title h3{font-size:16px}.id-label{font-size:9px}.item-meta{margin-top:7px;font-size:12px}.status-pills{gap:4px;margin-top:7px}.pill{font-size:10px;padding:5px 7px}.item-actions{grid-column:1/-1;display:flex;justify-content:flex-end;align-self:auto}.item-actions .icon-button{width:40px;height:38px}.form-card{padding:20px 16px;gap:20px}.form-row{grid-template-columns:1fr;gap:20px}.condition-option{font-size:12px}.bottom-nav{height:72px;gap:48px}.modal-backdrop{padding:0;align-items:flex-end}.modal{border-radius:20px 20px 0 0;max-height:92vh;padding:22px 16px calc(24px + env(safe-area-inset-bottom))}.layout-modal{max-height:94vh}.layout-controls{gap:10px;padding:10px}.stepper{gap:7px}.stepper span{font-size:11px}.stepper b{font-size:13px}.mode-buttons{margin-left:0;width:100%}.mode-buttons button{flex:1;justify-content:center}.unit-grid{gap:4px}.unit-cell{font-size:11px;border-radius:7px}.layout-summary{gap:5px;padding:10px}.total-label{width:100%;margin:3px 0 0}.warning{font-size:12px}.qr-image{width:210px;height:210px}}
