:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f5f7f8;color:#15202b;font-synthesis:none;line-height:1.5;text-rendering:optimizeLegibility}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh;background:#f5f7f8}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.6}.app-shell{display:grid;grid-template-columns:256px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;display:flex;flex-direction:column;height:100vh;padding:20px 16px;border-right:1px solid #d9e2e6;background:#fff}.brand,.auth-heading,.sidebar-footer,.person-cell,.product-cell,.shop-row,.rank-row,.alert,.topbar-actions,.quick-actions,.mini-person{display:flex;align-items:center}.brand{gap:12px;min-height:52px}.brand strong,.sidebar-footer strong,.rank-row strong,.shop-row strong{display:block;overflow:hidden;color:#0e1726;text-overflow:ellipsis;white-space:nowrap}.brand span,.sidebar-footer span,.shop-row span,.rank-row small,.muted{color:#667789}.brand-mark{display:grid;flex:0 0 auto;width:42px;height:42px;place-items:center;border-radius:8px;background:#006f5c;color:#fff;font-weight:800}.brand-mark.large{width:58px;height:58px;font-size:1.4rem}.nav-list{display:grid;gap:6px;margin-top:28px}.nav-item,.ghost-button,.icon-button,.quick-actions button,.row-actions button{border:1px solid transparent;border-radius:8px;background:transparent;color:#344454}.nav-item{display:flex;min-height:42px;align-items:center;gap:10px;padding:0 12px;text-align:left}.nav-item:hover,.nav-item.active{border-color:#cfe4dc;background:#edf8f4;color:#005946}.sidebar-footer{gap:10px;min-width:0;margin-top:auto;padding:14px 4px 2px;border-top:1px solid #e8eef1}.sidebar-footer>div:last-child{min-width:0}.avatar{display:grid;flex:0 0 auto;width:40px;height:40px;place-items:center;border-radius:999px;background:#dff2ec;color:#006f5c;font-weight:800}.avatar.small{width:34px;height:34px;font-size:.8rem}.workspace{display:grid;align-content:start;gap:20px;min-width:0;padding:24px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}.topbar h1,.section-heading h2,.panel-heading h2,.auth-heading h1{margin:0;color:#0e1726;letter-spacing:0}.topbar h1{overflow-wrap:anywhere;font-size:1.8rem;line-height:1.15}.eyebrow{margin:0 0 4px;color:#6d7c8d;font-size:.75rem;font-weight:800;letter-spacing:0;text-transform:uppercase}.topbar-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px}.topbar-actions select,.form-stack input,.form-stack select,.search-box input{min-height:40px;border:1px solid #cad7df;border-radius:8px;background:#fff;color:#15202b}.topbar-actions select{width:min(280px,48vw);padding:0 12px}.ghost-button,.primary-button,.icon-button,.quick-actions button{display:inline-flex;min-height:40px;align-items:center;justify-content:center;gap:8px;padding:0 14px;font-weight:750}.primary-button{border:1px solid #007a63;border-radius:8px;background:#007a63;color:#fff}.primary-button:hover{background:#00634f}.compact-button{min-width:120px}.ghost-button{border-color:#cfdae0;background:#fff}.ghost-button:hover,.quick-actions button:hover,.icon-button:hover,.row-actions button:hover{border-color:#b6c6ce;background:#f1f5f6}.ghost-button.stretch,.primary-button.stretch{width:100%}.icon-button,.ghost-button.icon-only{width:40px;padding:0}.alert{gap:10px;min-height:44px;padding:0 12px;border:1px solid;border-radius:8px}.alert.success{border-color:#b8ded1;background:#edf8f4;color:#00634f}.alert.error{border-color:#ecc0bd;background:#fff1ef;color:#a63b32}.alert span{flex:1}.alert button{display:grid;width:32px;height:32px;place-items:center;border:0;background:transparent;color:inherit}.view-stack{display:grid;gap:20px;min-width:0}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.metric,.panel,.auth-panel{border:1px solid #d9e2e6;border-radius:8px;background:#fff}.metric{display:grid;gap:8px;min-height:126px;padding:18px}.metric-icon{display:grid;width:38px;height:38px;place-items:center;border-radius:8px;background:#edf8f4;color:#006f5c}.metric span{color:#667789;font-size:.9rem;font-weight:700}.metric strong{overflow:hidden;font-size:1.35rem;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,420px);gap:20px;min-width:0}.content-grid.wide-left{grid-template-columns:minmax(0,1.35fr) minmax(320px,420px)}.panel{min-width:0;padding:18px}.table-panel{overflow:hidden}.form-panel{align-self:start}.panel-heading,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0;margin-bottom:16px}.panel-heading.compact{margin-top:16px;margin-bottom:12px}.section-heading{margin-bottom:0}.section-heading h2,.panel-heading h2{font-size:1.25rem;line-height:1.2}.search-box{display:flex;width:min(360px,100%);align-items:center;gap:8px;padding:0 12px;border:1px solid #cad7df;border-radius:8px;background:#fff}.search-box input{width:100%;border:0;outline:0}.quick-actions{flex-wrap:wrap;gap:10px;margin-top:22px}.quick-actions button{border-color:#cfdae0;background:#fff}.avatar-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(92px,1fr));gap:10px}.mini-person{min-height:72px;flex-direction:column;justify-content:center;gap:4px;border:1px solid #e0e8ec;border-radius:8px;background:#f8fafb}.mini-person span{font-weight:800}.mini-person small{color:#667789}table{width:100%;border-collapse:collapse}th,td{padding:13px 10px;border-bottom:1px solid #e7eef2;text-align:left;vertical-align:middle}th{color:#667789;font-size:.78rem;font-weight:800;letter-spacing:0;text-transform:uppercase}td{color:#263443}tr:last-child td{border-bottom:0}.right{text-align:right}.actions-column{width:132px;text-align:right}.row-actions{display:flex;justify-content:flex-end;gap:8px}.row-actions button{display:inline-flex;min-width:38px;min-height:34px;align-items:center;justify-content:center;padding:0 10px;border:1px solid #d4dee4;font-weight:750}.row-actions .danger{color:#a63b32}.strong-line{overflow-wrap:anywhere;font-weight:800}.person-cell{gap:10px;min-width:0}.person-cell>div:last-child{min-width:0}.product-cell{gap:10px;min-width:0}.product-cell>div:last-child{min-width:0}.product-thumb{display:grid;flex:0 0 auto;width:44px;height:44px;place-items:center;border:1px solid #d9e4e8;border-radius:8px;background:#f5f8f9;color:#667789;object-fit:cover}.product-thumb.empty{background:#edf8f4;color:#006f5c}.image-field{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;align-items:center}.form-stack input[type=file]{padding:7px 12px}.form-stack{display:grid;gap:12px}.form-stack label{display:grid;gap:6px;color:#4d5f70;font-size:.88rem;font-weight:800}.form-stack input,.form-stack select{width:100%;padding:0 12px;outline:0}.form-stack input:focus,.form-stack select:focus,.search-box:focus-within,.topbar-actions select:focus{border-color:#007a63;box-shadow:0 0 0 3px #007a6324}.form-error{margin:0;color:#a63b32;font-weight:750}.divider{height:1px;margin:18px 0;background:#e3ebef}.status-pill{display:inline-flex;min-height:28px;align-items:center;justify-content:center;padding:0 10px;border-radius:999px;font-size:.78rem;font-weight:850;white-space:nowrap}.status-pill.good{background:#dff2ec;color:#00634f}.status-pill.muted{background:#edf1f3;color:#697a89}.status-pill.neutral{background:#eef2ff;color:#34408a}.bar-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:12px;align-items:end;min-height:250px}.bar-column{display:grid;grid-template-rows:170px auto auto;gap:8px;min-width:0;text-align:center}.bar-track{display:flex;align-items:end;width:100%;min-width:32px;overflow:hidden;border:1px solid #d8e2e7;border-radius:8px;background:#f4f7f8}.bar-fill{width:100%;background:#00856d}.bar-column span{color:#667789;font-weight:750}.bar-column strong{overflow:hidden;font-size:.8rem;text-overflow:ellipsis;white-space:nowrap}.rank-list,.shop-list,.system-list{display:grid;gap:10px}.rank-row{display:grid;grid-template-columns:32px minmax(0,1fr) auto;gap:10px;min-height:52px;padding:10px 0;border-bottom:1px solid #e7eef2}.rank-row:last-child{border-bottom:0}.rank-row>span{display:grid;width:28px;height:28px;place-items:center;border-radius:999px;background:#f2e7cd;color:#785a12;font-weight:850}.empty-block{display:grid;min-height:180px;place-items:center;gap:8px;color:#718091;text-align:center}.shop-row{gap:10px;min-height:54px;padding:10px;border:1px solid #e1e8ec;border-radius:8px;background:#f8fafb}.shop-row>div{min-width:0}.system-row{display:grid;grid-template-columns:minmax(160px,240px) minmax(0,1fr);gap:16px;padding:13px 0;border-bottom:1px solid #e7eef2}.system-row:last-child{border-bottom:0}.system-row span{color:#667789;font-weight:800}.system-row strong{min-width:0;overflow-wrap:anywhere}.auth-screen{display:grid;min-height:100vh;place-items:center;padding:24px;background:#f5f7f8}.auth-panel{display:grid;width:min(480px,100%);gap:18px;padding:28px}.auth-heading{gap:14px}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;border:1px solid #d5e0e5;border-radius:8px;background:#f8fafb}.segmented button{min-height:38px;border:0;border-radius:6px;background:transparent;color:#526474;font-weight:850}.segmented button.active{background:#fff;color:#00634f;box-shadow:0 1px 4px #15202b1a}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 1120px){.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid,.content-grid.wide-left{grid-template-columns:1fr}}@media (max-width: 820px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;padding:14px}.nav-list{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.nav-item{justify-content:center;padding:0 8px}.nav-item span,.sidebar-footer{display:none}.workspace{padding:16px}.topbar,.section-heading,.panel-heading{align-items:flex-start;flex-direction:column}.topbar-actions,.search-box,.topbar-actions select{width:100%}.topbar-actions .ghost-button{flex:1}.metric-grid{grid-template-columns:1fr}.bar-chart{gap:8px;overflow-x:auto;padding-bottom:4px}.bar-column{min-width:72px}.table-panel{overflow-x:auto}table{min-width:680px}}@media (max-width: 520px){.auth-panel{padding:20px}.system-row{grid-template-columns:1fr;gap:4px}}
