:root{--font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--bg: #f6f7f9;--surface: #ffffff;--surface-2: #fafbfc;--surface-hover: #f5f7fa;--border: #e4e7ec;--border-strong: #d0d5dd;--text: #101828;--text-2: #344054;--text-3: #667085;--text-4: #98a2b3;--brand-50: #eff4fb;--brand-100: #dde8f7;--brand-200: #bcd1ee;--brand-500: #2a61b0;--brand-600: #285aa8;--brand-700: #23509a;--brand-800: #1c407c;--accent: #e95c00;--accent-50: #fff3ea;--success: #067647;--success-bg: #ecfdf3;--success-border: #abefc6;--warning: #b54708;--warning-bg: #fffaeb;--warning-border: #fedf89;--danger: #b42318;--danger-bg: #fef3f2;--danger-border: #fecdca;--radius-sm: 6px;--radius: 8px;--radius-lg: 12px;--shadow-xs: 0 1px 2px rgb(16 24 40 / .05);--shadow-sm: 0 1px 3px rgb(16 24 40 / .08), 0 1px 2px rgb(16 24 40 / .04);--shadow-lg: 0 12px 32px rgb(16 24 40 / .14), 0 4px 8px rgb(16 24 40 / .06);--ring: 0 0 0 3px rgb(40 90 168 / .18);--sidebar-w: 256px;--sidebar-w-collapsed: 68px;--topbar-h: 60px}*,*:before,*:after{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;min-width:320px;font:14px/1.5 var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased}h1,h2,h3,p,ul,ol,dl,dd{margin:0}h1,h2,h3{line-height:1.25;letter-spacing:-.01em}ul,ol{padding:0;list-style:none}a{color:var(--brand-600);text-decoration:none}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}img,svg{display:block;max-width:100%}:focus-visible{outline:2px solid var(--brand-600);outline-offset:2px}::selection{background:var(--brand-100)}.muted{color:var(--text-4)}.prose{color:var(--text-2);white-space:pre-wrap}.nowrap{white-space:nowrap}.text-link{font-weight:500;font-size:13px}.text-link:hover{text-decoration:underline}@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;transition-duration:.01ms!important}}.shell{min-height:100vh}.shell-main{margin-left:var(--sidebar-w);min-height:100vh;display:flex;flex-direction:column;transition:margin-left .2s ease}.shell-collapsed .shell-main{margin-left:var(--sidebar-w-collapsed)}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-w);z-index:40;display:flex;flex-direction:column;background:var(--surface);border-right:1px solid var(--border);transition:width .2s ease,transform .2s ease}.sidebar.collapsed{width:var(--sidebar-w-collapsed)}.sidebar-brand{display:flex;align-items:center;height:var(--topbar-h);padding:0 20px;border-bottom:1px solid var(--border)}.sidebar-brand img{height:34px;width:auto}.sidebar.collapsed .sidebar-brand{padding:0;justify-content:center;overflow:hidden}.sidebar.collapsed .sidebar-brand img{height:30px;width:44px;object-fit:cover;object-position:left center}.sidebar-nav{flex:1;overflow-y:auto;padding:8px 12px 16px}.nav-section{margin-top:18px}.nav-title{padding:0 10px 6px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text-4)}.sidebar.collapsed .nav-title{visibility:hidden;height:6px;padding:0}.nav-item{display:flex;align-items:center;gap:12px;width:100%;height:38px;padding:0 10px;margin-bottom:2px;border:0;border-radius:var(--radius);background:none;color:var(--text-2);font-weight:500;font-size:14px;text-align:left;white-space:nowrap}.nav-item:hover{background:var(--surface-hover);color:var(--text)}.nav-item.active{background:var(--brand-50);color:var(--brand-700)}.nav-item svg{flex:none;color:var(--text-3)}.nav-item.active svg{color:var(--brand-600)}.sidebar.collapsed .nav-item{justify-content:center;padding:0}.sidebar.collapsed .nav-item span{display:none}.collapse-toggle{margin:0;border-radius:0;height:48px;padding:0 22px;border-top:1px solid var(--border)}.sidebar.collapsed .collapse-toggle{padding:0}.topbar{position:sticky;top:0;z-index:30;height:var(--topbar-h);padding:0 32px;display:flex;align-items:center;gap:12px;background:#ffffffeb;-webkit-backdrop-filter:saturate(1.4) blur(8px);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--border)}.topbar-title{font-size:15px;font-weight:600}.topbar-right{margin-left:auto;display:flex;align-items:center;gap:12px}.icon-btn.menu-btn{display:none}.user-menu{position:relative}.user-trigger{display:flex;align-items:center;gap:8px;height:38px;padding:0 8px 0 5px;background:var(--surface);border:1px solid var(--border);border-radius:999px;color:var(--text-2);font-weight:500}.user-trigger:hover{background:var(--surface-hover)}.menu{position:absolute;right:0;top:calc(100% + 8px);min-width:230px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg)}.menu-head{padding:8px 10px 10px;border-bottom:1px solid var(--border);margin-bottom:6px;display:grid}.menu-head span{color:var(--text-3);font-size:12px;overflow:hidden;text-overflow:ellipsis}.menu-item{display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 10px;border:0;border-radius:var(--radius);background:none;color:var(--text-2);font-weight:500;text-align:left}.menu-item:hover{background:var(--surface-hover)}.content{flex:1;width:100%;max-width:1240px;margin:0 auto;padding:32px 32px 64px;display:grid;gap:20px;align-content:start}.narrow{max-width:760px;display:grid;gap:20px}.scrim{position:fixed;top:0;right:0;bottom:0;left:0;background:#10182866;z-index:35}.page-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.page-header h1{font-size:24px;font-weight:600;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.page-desc{color:var(--text-3);margin-top:4px}.page-actions{display:flex;gap:8px;flex-wrap:wrap}.back-link{display:inline-flex;align-items:center;gap:6px;margin-bottom:8px;color:var(--text-3);font-weight:500;font-size:13px}.back-link:hover{color:var(--brand-700)}.split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}.stack{display:grid;gap:20px;min-width:0}.sticky{position:sticky;top:calc(var(--topbar-h) + 20px)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.stats.stats-5{grid-template-columns:repeat(5,minmax(0,1fr))}.forms-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.form-nav{display:grid;gap:2px;position:sticky;top:calc(var(--topbar-h) + 20px)}.form-nav-item{padding:8px 12px;border-radius:var(--radius);color:var(--text-2);font-weight:500}.form-nav-item:hover{background:var(--surface-hover)}.form-nav-item.active{background:var(--brand-50);color:var(--brand-700)}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stats.stats-5{grid-template-columns:repeat(3,minmax(0,1fr))}.split{grid-template-columns:1fr}.sticky{position:static}}@media(max-width:900px){.forms-layout{grid-template-columns:1fr}.form-nav{position:static;display:flex;overflow-x:auto;gap:6px;padding-bottom:4px}.form-nav-item{white-space:nowrap;border:1px solid var(--border);background:var(--surface)}.grid-2{grid-template-columns:1fr}}@media(max-width:860px){.shell-main,.shell-collapsed .shell-main{margin-left:0}.sidebar,.sidebar.collapsed{width:var(--sidebar-w);transform:translate(-100%);box-shadow:var(--shadow-lg)}.sidebar.open{transform:none}.sidebar.collapsed .nav-item{justify-content:flex-start;padding:0 10px}.sidebar.collapsed .nav-item span{display:inline}.sidebar.collapsed .nav-title{visibility:visible;height:auto;padding:0 10px 6px}.sidebar.collapsed .sidebar-brand{padding:0 20px;justify-content:flex-start}.sidebar.collapsed .sidebar-brand img{width:auto;height:34px}.collapse-toggle{display:none}.icon-btn.menu-btn{display:inline-flex}.topbar{padding:0 16px}.content{padding:20px 16px 48px}.user-name{display:none}}@media(max-width:520px){.stats,.stats.stats-5{grid-template-columns:1fr 1fr;gap:10px}.topbar-right .badge{display:none}}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:38px;padding:0 14px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);color:var(--text-2);font-weight:500;font-size:14px;white-space:nowrap;box-shadow:var(--shadow-xs);transition:background .15s,border-color .15s,box-shadow .15s}.btn:hover:not(:disabled){background:var(--surface-hover)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-sm{height:30px;padding:0 10px;font-size:13px;gap:6px}.btn-primary{background:var(--brand-600);border-color:var(--brand-600);color:#fff}.btn-primary:hover:not(:disabled){background:var(--brand-700);border-color:var(--brand-700)}.btn-danger{background:var(--surface);border-color:var(--danger-border);color:var(--danger)}.btn-danger:hover:not(:disabled){background:var(--danger-bg)}.btn-ghost{border-color:transparent;background:transparent;box-shadow:none;color:var(--text-3)}.btn-ghost:hover:not(:disabled){background:var(--surface-hover);color:var(--text)}.btn-block{width:100%;height:42px}.spinner{width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:spin .7s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.icon-btn{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:var(--radius);background:none;color:var(--text-3)}.icon-btn:hover{background:var(--surface-hover);color:var(--text)}.button-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.row-actions{display:inline-flex;gap:2px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-xs);min-width:0}.card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:18px 20px;border-bottom:1px solid var(--border)}.card-title{font-size:15px;font-weight:600}.card-desc{color:var(--text-3);margin-top:2px;font-size:13px}.card-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.card-body{padding:20px}.card-body.flush{padding:0}.card>.table-scroll:first-child,.card>.state:first-child{border-radius:var(--radius-lg)}.title-row{display:inline-flex;align-items:center;gap:10px;flex-wrap:wrap}.identity{display:inline-flex;align-items:center;gap:12px}.identity small{display:block;color:var(--text-3);font-weight:400;font-size:13px}.divider{height:1px;background:var(--border);margin:18px 0}.stat{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:16px 18px;box-shadow:var(--shadow-xs);display:grid;gap:6px}.stat-label{display:inline-flex;align-items:center;gap:8px;color:var(--text-3);font-size:13px;font-weight:500}.stat-dot{width:8px;height:8px;border-radius:50%;background:var(--text-4)}.stat-warning{background:#f79009}.stat-danger{background:#f04438}.stat-success{background:#12b76a}.stat-value{font-size:28px;font-weight:600;letter-spacing:-.02em;line-height:1.1}.stat-hint{color:var(--text-4);font-size:12px}.stat-button{width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .05s}.stat-button:hover{border-color:var(--brand-600, #2456a6);box-shadow:var(--shadow-sm, var(--shadow-xs))}.stat-button:active{transform:translateY(1px)}.stat-button:focus-visible{outline:2px solid var(--brand-600, #2456a6);outline-offset:2px}.stat-button.selected{border-color:var(--brand-600, #2456a6);box-shadow:0 0 0 1px var(--brand-600, #2456a6);background:var(--brand-50, var(--surface))}.badge{display:inline-flex;align-items:center;gap:6px;height:22px;padding:0 9px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;vertical-align:middle}.badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor}.badge-neutral{background:#f2f4f7;color:var(--text-2);border-color:var(--border)}.badge-brand{background:var(--brand-50);color:var(--brand-700);border-color:var(--brand-100)}.badge-success{background:var(--success-bg);color:var(--success);border-color:var(--success-border)}.badge-warning{background:var(--warning-bg);color:var(--warning);border-color:var(--warning-border)}.badge-danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-border)}.avatar{display:inline-grid;place-items:center;border-radius:50%;background:var(--brand-100);color:var(--brand-700);font-weight:600;flex:none}.alert{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border:1px solid;border-radius:var(--radius)}.alert p{margin-top:2px}.alert svg{flex:none;margin-top:2px}.alert-danger{background:var(--danger-bg);border-color:var(--danger-border);color:var(--danger)}.alert-warning{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning)}.alert-success{background:var(--success-bg);border-color:var(--success-border);color:var(--success)}.alert-info{background:var(--brand-50);border-color:var(--brand-100);color:var(--brand-700)}.state{display:grid;justify-items:center;gap:6px;padding:44px 20px;text-align:center}.state h3{font-size:15px;font-weight:600;margin-top:6px}.state p{color:var(--text-3);max-width:420px;margin-bottom:8px}.state-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--surface-hover);border:1px solid var(--border);color:var(--text-3)}.state-icon-danger{background:var(--danger-bg);border-color:var(--danger-border);color:var(--danger)}.skeleton{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,#eef0f4 25%,#f6f7f9,#eef0f4 75%);background-size:200% 100%;animation:shimmer 1.3s infinite linear}.skeleton-block{display:grid;gap:12px;padding:4px 0}@keyframes shimmer{to{background-position:-200% 0}}.chip-row{display:flex;flex-wrap:wrap;gap:8px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--border)}.toolbar-end{justify-content:flex-end}.toolbar-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap;max-width:100%}.select.hq-filter{width:auto;min-width:200px;max-width:100%}.toolbar-group .hq-filter{height:36px}.tabs{display:flex;gap:4px;flex-wrap:wrap}.tab{display:inline-flex;align-items:center;gap:8px;height:32px;padding:0 12px;border:0;border-radius:var(--radius);background:none;color:var(--text-3);font-weight:500}.tab:hover{background:var(--surface-hover);color:var(--text)}.tab.active{background:var(--brand-50);color:var(--brand-700)}.tab-count{min-width:20px;padding:0 6px;border-radius:999px;background:#eaecf0;color:var(--text-2);font-size:12px;text-align:center}.tab.active .tab-count{background:var(--brand-100);color:var(--brand-700)}.content>.tabs{padding-bottom:4px}.search{position:relative;display:block;width:300px;max-width:100%}.search svg{position:absolute;left:11px;top:50%;transform:translateY(-50%);color:var(--text-4)}.search input{width:100%;height:36px;padding:0 12px 0 34px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface)}.search input:focus{outline:none;border-color:var(--brand-600);box-shadow:var(--ring)}.table-scroll{overflow:auto;max-height:min(70vh,720px);overscroll-behavior:contain;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--border-strong) transparent}.table-scroll::-webkit-scrollbar{width:10px;height:10px}.table-scroll::-webkit-scrollbar-thumb{background:var(--border-strong);border-radius:8px;border:2px solid var(--surface)}.table-scroll::-webkit-scrollbar-track{background:var(--surface-2)}.table thead th{position:sticky;top:0;z-index:2}.table{width:100%;border-collapse:collapse;font-size:14px}.table th{padding:10px 16px;text-align:left;font-size:12px;font-weight:600;color:var(--text-3);background:var(--surface-2);border-bottom:1px solid var(--border);white-space:nowrap}.table td{padding:13px 16px;border-bottom:1px solid var(--border);color:var(--text-2);vertical-align:middle}.table tbody tr:last-child td{border-bottom:0}.table tfoot td{position:sticky;bottom:0;z-index:1;font-weight:600;color:var(--text);background:var(--surface-2);border-top:1px solid var(--border)}.table td strong{color:var(--text);font-weight:600}.table tr.clickable{cursor:pointer}.table tr.clickable:hover td{background:var(--surface-hover)}.table td .skeleton{width:70%}.table .col-sticky{position:sticky;right:0;background:var(--surface);box-shadow:-1px 0 0 var(--border)}.table th.col-sticky{background:var(--surface-2);z-index:3}.table tr.clickable:hover td.col-sticky{background:var(--surface-hover)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.form-grid>.alert,.form-grid>.form-actions{grid-column:1 / -1}.form-single{grid-template-columns:1fr}.form-actions{display:flex;justify-content:flex-end;gap:10px}.field{display:grid;gap:6px;align-content:start}.field-span{grid-column:1 / -1}.field-label{font-size:13px;font-weight:500;color:var(--text-2)}.field-hint{font-size:12px;color:var(--text-4)}.field-req{color:var(--danger)}.field-error{font-size:12px;color:var(--danger);font-weight:500}.field-invalid .input{border-color:var(--danger)}.field-invalid .input:focus{border-color:var(--danger);box-shadow:0 0 0 3px #f044382e}.field-invalid .hq-check-list{outline:1px solid var(--danger);border-radius:var(--radius)}.input{width:100%;height:38px;padding:0 12px;border:1px solid var(--border-strong);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow-xs)}.input::placeholder{color:var(--text-4)}.input:focus{outline:none;border-color:var(--brand-600);box-shadow:var(--ring)}.input[readonly]{background:var(--surface-2);color:var(--text-3)}.input.cell-input{width:88px;height:32px;padding:0 8px;text-align:right;font-variant-numeric:tabular-nums}.input.cell-input.invalid{border-color:var(--danger)}.input.cell-input:disabled{opacity:.6}.select.cell-input.cell-select{width:132px;height:32px;padding:0 28px 0 8px;text-align:left;background-position:right 6px center}.select{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-right:34px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.textarea{height:auto;min-height:76px;padding:10px 12px;resize:vertical;line-height:1.5}.checkbox{display:flex;align-items:center;gap:8px;height:38px;align-self:end;font-weight:500;color:var(--text-2)}.checkbox input{width:16px;height:16px;accent-color:var(--brand-600)}.kv{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 24px}.kv dt{font-size:12px;color:var(--text-3);font-weight:500;margin-bottom:2px}.kv dd{font-weight:500;color:var(--text)}.checklist{counter-reset:n;display:grid;gap:10px}.checklist li{counter-increment:n;display:flex;align-items:center;gap:12px;color:var(--text-2)}.checklist li:before{content:counter(n);display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--brand-50);color:var(--brand-700);font-size:12px;font-weight:600}.steps{display:flex;align-items:center}.step{position:relative;flex:1;display:flex;align-items:center;gap:10px;color:var(--text-4);font-weight:500}.step:not(:last-child):after{content:"";flex:1;height:2px;margin:0 14px;background:var(--border);border-radius:2px}.step-dot{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--surface);border:2px solid var(--border-strong);font-size:12px;font-weight:600}.step-done{color:var(--text-2)}.step-done .step-dot{background:var(--brand-600);border-color:var(--brand-600);color:#fff}.step-done:not(:last-child):after{background:var(--brand-600)}.step-current{color:var(--brand-700)}.step-current .step-dot{border-color:var(--brand-600);color:var(--brand-600);box-shadow:var(--ring)}.step-returned{color:var(--danger)}.step-returned .step-dot{border-color:var(--danger);color:var(--danger)}@media(max-width:640px){.step-label{display:none}.step-current .step-label,.step-returned .step-label{display:inline}}.timeline{display:grid;gap:0}.timeline li{position:relative;display:flex;gap:12px;padding-bottom:20px}.timeline li:last-child{padding-bottom:0}.timeline li:not(:last-child):before{content:"";position:absolute;left:4px;top:14px;bottom:0;width:2px;background:var(--border)}.timeline-dot{flex:none;width:10px;height:10px;margin-top:5px;border-radius:50%;background:var(--brand-600);box-shadow:0 0 0 3px var(--brand-100)}.timeline-action{font-weight:600;text-transform:capitalize}.timeline-meta{color:var(--text-3);font-size:12px;display:block}.timeline-note{margin-top:6px;padding:8px 10px;background:var(--surface-2);border:1px solid var(--border);border-radius:var(--radius);color:var(--text-2)}.visit-list li{display:flex;align-items:center;gap:16px;padding:14px 20px;border-bottom:1px solid var(--border)}.visit-list li:last-child{border-bottom:0}.visit-time{flex:none;width:48px;font-variant-numeric:tabular-nums;color:var(--text-3);font-weight:600}.visit-main{flex:1;min-width:0}.visit-detail{color:var(--text-3);font-size:13px;margin-top:2px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:60;display:grid;overflow-y:auto;background:#10182873;animation:fade .15s ease}.overlay-dialog{place-items:center;padding:16px}.overlay-drawer{justify-items:end}.modal{display:flex;flex-direction:column;background:var(--surface);box-shadow:var(--shadow-lg);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);min-height:0}.modal-dialog{width:min(440px,100%);border-radius:var(--radius-lg)}.modal-drawer{width:min(480px,100%);height:100vh;height:100dvh;max-height:none;animation:slide .2s ease}.modal-header{display:flex;justify-content:space-between;gap:12px;padding:18px 20px;border-bottom:1px solid var(--border)}.modal-header h2{font-size:16px;font-weight:600}.modal-header p{color:var(--text-3);font-size:13px}.modal-body{padding:20px;overflow-y:auto;flex:1;min-height:0;overscroll-behavior:contain}.modal-footer,.modal-header{flex:none}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 20px;border-top:1px solid var(--border);background:var(--surface-2)}@keyframes fade{0%{opacity:0}}@keyframes slide{0%{transform:translate(24px);opacity:0}}.toasts{position:fixed;right:20px;bottom:20px;z-index:80;display:grid;gap:10px;width:min(380px,calc(100vw - 32px))}.toast{display:flex;align-items:center;gap:10px;padding:12px 12px 12px 14px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-lg);animation:slide .2s ease}.toast span{flex:1}.toast-success svg:first-child{color:var(--success)}.toast-danger svg:first-child{color:var(--danger)}.auth{min-height:100vh;display:grid;grid-template-columns:minmax(400px,5fr) 6fr;background:var(--surface)}.auth-center{place-items:center;grid-template-columns:240px}.auth-panel{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:48px clamp(24px,5vw,72px) 72px}.auth-card{width:100%;max-width:400px;display:flex;flex-direction:column;gap:6px}.auth-logo{height:44px;width:auto;margin-bottom:40px;align-self:flex-start}.auth-panel h1{font-size:28px;font-weight:650;letter-spacing:-.02em}.auth-form{display:grid;gap:18px;margin-top:26px}.auth-form .input{height:44px}.auth-form .btn-block{height:44px;font-size:15px;margin-top:4px}.auth-help{margin-top:22px;color:var(--text-4);font-size:13px}.auth-copy{position:absolute;left:0;right:0;bottom:24px;text-align:center;color:var(--text-4);font-size:12px}.input-affix{position:relative;display:block}.input-affix .input{padding-right:64px}.affix-btn{position:absolute;right:6px;top:50%;transform:translateY(-50%);height:30px;padding:0 10px;border:0;border-radius:6px;background:transparent;color:var(--brand-600);font:inherit;font-size:13px;font-weight:600;cursor:pointer}.affix-btn:hover{background:var(--brand-50)}.affix-btn:focus-visible{outline:2px solid var(--brand-600);outline-offset:1px}.auth-aside{display:flex;align-items:center;justify-content:center;padding:56px clamp(32px,6vw,96px);background:var(--brand-700);color:#fff}.auth-about{width:100%;max-width:540px}.auth-about h2{font-size:30px;font-weight:600;line-height:1.25;letter-spacing:-.01em;padding-bottom:18px;margin-bottom:22px;border-bottom:3px solid var(--accent);width:fit-content}.auth-about p{font-size:16px;line-height:1.75;color:#ffffffe6}.auth-about p+p{margin-top:18px}@media(max-height:640px){.auth-about p{font-size:15px;line-height:1.6}}@media(max-width:860px){.auth{grid-template-columns:1fr}.auth-panel{justify-content:flex-start;padding-top:48px;padding-bottom:32px}.auth-copy{position:static;margin-top:40px}.auth-aside{padding:36px 24px;justify-content:flex-start}.auth-about h2{font-size:22px}.auth-about p{font-size:15px;line-height:1.65}}.hq-check-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding:2px}.hq-check{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius);background:var(--surface);cursor:pointer;min-width:0}.hq-check:hover{background:var(--surface-hover)}.hq-check.on{border-color:var(--brand-600);background:var(--brand-50)}.hq-check input{width:16px;height:16px;margin-top:2px;accent-color:var(--brand-600);flex:none}.hq-check-text{display:grid;gap:2px;min-width:0;overflow-wrap:anywhere}.hq-check-text small{color:var(--text-4);font-size:12px}.hq-empty{color:var(--text-3);font-size:13px}.chips{display:flex;flex-wrap:wrap;gap:6px}.product-picker{display:grid;gap:8px;min-width:0}.chip{height:auto;min-height:24px;padding-right:4px;white-space:normal;overflow-wrap:anywhere}.chip-remove{display:inline-grid;place-items:center;width:18px;height:18px;padding:0;border:0;border-radius:50%;background:transparent;color:inherit;cursor:pointer}.chip-remove:hover{background:var(--brand-100)}@media(max-width:640px){.form-grid,.hq-check-list{grid-template-columns:1fr}}.input-row{display:flex;gap:8px;align-items:center}.input-row .input{flex:1;min-width:0}.input-row .btn{flex:none}.form-grid,.auth-form{min-width:0}.forms-layout>.card,.forms-layout>div{min-width:0}@media(max-width:640px){.overlay-dialog{padding:8px;align-items:end}.modal-dialog{width:100%;max-height:calc(100dvh - 16px)}.table-scroll{max-height:65vh}}.form-nav-item{display:flex;align-items:center;justify-content:space-between;gap:8px}.nav-item .nav-flag{margin-left:auto}.nav-flag{flex:none;padding:2px 8px;border-radius:999px;background:var(--warning-bg);border:1px solid var(--warning-border);color:var(--warning);font-size:11px;font-weight:600}.update-bar{position:sticky;top:0;z-index:70;display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;padding:8px 16px;background:var(--brand-700);color:#fff;font-size:14px}.update-bar button{padding:4px 12px;border:1px solid rgb(255 255 255 / .6);border-radius:6px;background:transparent;color:#fff;font:inherit;font-weight:600;cursor:pointer}.update-bar button:hover{background:#ffffff26}.toolbar .filter{display:inline-flex;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--text-muted)}.toolbar .filter .select{width:auto;min-width:180px;max-width:100%}@media(max-width:640px){.toolbar .filter{width:100%;flex-wrap:wrap}.toolbar .filter .select{flex:1}}.detail-grid,.summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}.summary-block{display:flex;flex-direction:column;gap:8px}
