:root{color-scheme:light;--bg: #eef3f8;--surface: #ffffff;--surface-strong: #f7fafc;--text: #142433;--muted: #64748b;--border: #d8e1ea;--primary: #0f3d56;--primary-soft: #d9e9f3;--success: #1f8f63;--warning: #d98a12;--danger: #d64545;--shadow: 0 20px 45px rgba(15, 61, 86, .08)}*{box-sizing:border-box}html,body,#root{margin:0;min-height:100%;font-family:Inter,Segoe UI,Tahoma,Arial,sans-serif;background:linear-gradient(180deg,#f6fbff 0%,var(--bg) 100%);color:var(--text)}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}.shell{min-height:100vh;display:grid;grid-template-columns:300px 1fr}.loading-shell{place-items:center;gap:1rem}.spinner{width:56px;height:56px;border-radius:999px;border:4px solid rgba(15,61,86,.14);border-top-color:var(--primary);animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.sidebar{background:linear-gradient(180deg,#0f3d56,#174c6b);color:#fff;padding:2rem 1.4rem;display:flex;flex-direction:column;gap:1.6rem;position:sticky;top:0;min-height:100vh}.brand-block h1,.topbar h2,.card-header h2,.login-panel h1,.login-panel h2,.order-card h3,.report-card h3,.stack-item h3{margin:0}.brand-block p,.login-panel p,.stack-item p,.muted-line,.section-description,.page-footer,.eyebrow{margin:0;color:var(--muted)}.sidebar .brand-block p{color:#ffffffb8}.nav-list{display:grid;gap:.6rem}.nav-link{padding:.95rem 1rem;border-radius:16px;color:#ffffffd1;transition:.16s ease}.nav-link:hover,.nav-link-active{background:#ffffff24;color:#fff}.sidebar-footer{margin-top:auto;display:grid;gap:.55rem}.sidebar-footer-button{min-height:52px;padding:.8rem 1rem;font-size:1rem}.content{padding:2rem;display:grid;align-content:start;gap:1.4rem}.content>*{width:100%}.topbar{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem}.topbar-meta,.chips-row,.filter-row,.hero-grid{display:flex;flex-wrap:wrap;gap:.75rem}.page-grid{display:grid;gap:1.2rem;grid-template-columns:repeat(2,minmax(0,1fr))}.page-grid.single-column,.stats-grid{grid-template-columns:1fr}.stats-grid{display:grid;gap:1rem;grid-template-columns:repeat(4,minmax(0,1fr))}.wide-stats{grid-template-columns:repeat(6,minmax(0,1fr))}.split-layout{display:grid;gap:1.2rem;grid-template-columns:minmax(280px,.9fr) minmax(0,1.4fr)}.compact-split{grid-template-columns:minmax(320px,.95fr) minmax(320px,1.05fr)}.detail-stack,.timeline-list,.command-grid,.item-grid,.permission-toggle-grid,.form-actions,.button-group,.selection-block,.detail-form,.form-grid,.stack-item-vertical,.stack-item-header,.report-main{display:grid;gap:1rem;min-width:0}.button-group{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:stretch}.compact-button-group{grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:.7rem}.subcategory-drafts{display:grid;gap:.9rem}.subcategory-draft-card{display:grid;gap:.9rem;padding:1rem;border-radius:20px;border:1px dashed rgba(44,77,107,.24);background:#f4f8fcc2}.card,.login-panel,.order-card,.report-card,.progress-item,.item-card,.command-card,.select-card,.timeline-step,.checkbox-card{background:var(--surface);border:1px solid var(--border);border-radius:24px;box-shadow:var(--shadow)}.card,.login-panel{padding:1.4rem}.card-header,.order-card-header,.progress-item-header,.profile-card,.info-row,.stack-item,.metric-row{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start;flex-wrap:wrap}.metric-row{flex-wrap:wrap}.compact-grid .info-row,.permission-grid .info-row{min-width:140px}.info-row{align-items:center;padding:.85rem 1rem;border-radius:16px;background:var(--surface-strong);border:1px solid var(--border);flex:1 1 140px}.split-layout>*,.compact-split>*,.page-grid>*,.detail-stack>*,.card,.info-row,.stack-item{min-width:0}.card-header>*,.info-row>*,.stack-item-header>*{min-width:0}.info-row strong,.stack-item strong,.card-header h2,.card-header h3{overflow-wrap:anywhere}.info-row span{color:var(--muted)}.inline-error,.form-error,.empty-state,.inline-success{padding:1rem 1.1rem;border-radius:16px;border:1px solid rgba(214,69,69,.2);background:#d6454512;color:var(--danger)}.inline-success{border-color:#1f8f6333;background:#1f8f6314;color:var(--success)}.empty-state{border-color:var(--border);background:var(--surface-strong);color:var(--muted)}.primary-button,.ghost-button,.secondary-button,.chip-toggle,.select-card{border:none;border-radius:16px;padding:.95rem 1.2rem;transition:.16s ease}.primary-button{background:linear-gradient(135deg,var(--primary) 0%,#1c5b7d 100%);color:#fff;font-weight:700}.secondary-button,.chip-toggle{background:var(--surface-strong);color:var(--text);border:1px solid var(--border)}.primary-button:hover,.ghost-button:hover,.secondary-button:hover,.chip-toggle:hover,.select-card:hover,.command-card:hover{transform:translateY(-1px)}.ghost-button{background:#ffffff1f;color:#fff}.full-width-button{width:100%}.danger-button{background:#d6454533}.badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.35rem .8rem;border-radius:999px;font-size:.88rem;font-weight:700;background:#ecf2f8;color:var(--primary)}.badge-accent{background:var(--primary-soft)}.badge-success{background:#1f8f631f;color:var(--success)}.badge-warning{background:#d98a1224;color:var(--warning)}.badge-danger{background:#d645451f;color:var(--danger)}.stat-card{display:grid;gap:.5rem;padding:1.2rem;border-radius:22px;border:1px solid var(--border);background:var(--surface);box-shadow:var(--shadow)}.stat-card span{color:var(--muted)}.stat-card strong{font-size:2rem}.stat-card small{color:var(--muted);line-height:1.6}.dashboard-layout{grid-template-columns:1fr}.dashboard-hero{background:linear-gradient(135deg,#23486614,#fffffffa)}.dashboard-hero-content,.dashboard-primary-column,.dashboard-secondary-column{display:grid;gap:1rem}.dashboard-hero-content h2{margin:0;font-size:clamp(1.6rem,2.4vw,2.3rem)}.dashboard-hero-meta{display:grid;gap:.8rem;grid-template-columns:repeat(4,minmax(0,1fr))}.dashboard-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-main-grid{display:grid;gap:1.2rem;grid-template-columns:minmax(0,1.55fr) minmax(320px,.95fr)}.dashboard-table-wrap{border:1px solid var(--border);border-radius:20px;background:#f8fbfdeb}.dashboard-table th{white-space:nowrap;background:#2348660a}.dashboard-table td:first-child{min-width:260px}.dashboard-table td,.dashboard-table th{vertical-align:top}@media (max-width: 1180px){.dashboard-hero-meta,.dashboard-stats,.dashboard-main-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-main-grid{grid-template-columns:1fr}}@media (max-width: 720px){.content{padding:1.1rem}.dashboard-hero-meta,.dashboard-stats{grid-template-columns:1fr}.dashboard-table td:first-child{min-width:200px}}.stat-accent{border-inline-start:6px solid var(--primary)}.stat-success{border-inline-start:6px solid var(--success)}.stat-warning{border-inline-start:6px solid var(--warning)}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{text-align:start;padding:1rem .8rem;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--muted);font-weight:600}.stack-list{display:grid;gap:.85rem}.stack-item,.report-card,.order-card,.progress-item,.item-card,.timeline-step,.command-card,.select-card,.checkbox-card{padding:1rem 1.1rem}.item-grid,.command-grid,.permission-toggle-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.selectable-list{align-content:start}.select-card{text-align:start;display:grid;gap:.85rem;background:var(--surface)}.active-card{border-color:#0f3d5647;box-shadow:0 16px 36px #0f3d561f}.timeline-step,.command-card{display:flex;justify-content:space-between;gap:1rem;align-items:center}.command-card{color:inherit}.selection-block>span{font-weight:700}.chips-row-compact{gap:.55rem}.floor-chip{max-width:190px;min-height:42px;padding:.7rem .85rem;font-size:.94rem;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip-toggle-active{background:var(--primary-soft);color:var(--primary);border-color:#0f3d563d}.stack-item,.report-card{align-items:center}.floor-editor-card{align-items:stretch}.floor-editor-card .order-card-header{align-items:flex-start}.floor-editor-header{align-items:center}.floor-editor-title-block{min-width:0;display:grid;gap:.25rem}.floor-editor-title-block h3,.floor-editor-title-block p{margin:0}.floor-editor-title-block h3{font-size:1.02rem;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.floor-editor-title-block p{color:var(--muted);font-size:.92rem}.floor-editor-card .form-grid,.floor-editor-card .button-group{width:100%}.floor-management-form{gap:.85rem}.floor-management-header,.floor-editor-card-header{display:flex;align-items:flex-start;justify-content:space-between;gap:.85rem;flex-wrap:wrap}.floor-summary-badges{align-items:center}.floor-management-grid{display:grid;gap:.9rem;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:start}.floor-management-grid-compact{gap:.75rem}.floor-editor-card-compact{padding:.9rem 1rem;gap:.85rem}.floor-editor-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.floor-form-actions{justify-content:flex-start}.stack-meta{min-width:160px;display:grid;justify-items:end;gap:.4rem}.order-grid{display:grid;gap:1rem}.order-card-header,.progress-item-header{align-items:flex-start}.progress-bar{width:100%;height:10px;border-radius:999px;background:#e3ebf3;overflow:hidden;margin:1rem 0}.progress-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--primary) 0%,#2e85b8 100%)}.large-progress{height:14px}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1.15fr) minmax(360px,.85fr);gap:1.5rem;padding:2rem}.hero-panel{background:linear-gradient(145deg,#0f3d56f5,#1c5b7df0);color:#fff;display:grid;align-content:space-between;min-height:420px}.hero-panel p{color:#fffc}.form-panel,.login-form,.permissions-panel,.permission-grid{display:grid;gap:1rem}.login-form label{display:grid;gap:.5rem}.login-form input,.login-form select,.filter-row select,.detail-form input,.detail-form select,.detail-form textarea{width:100%;border:1px solid var(--border);border-radius:16px;padding:.9rem 1rem;background:var(--surface-strong);color:var(--text)}.detail-form label,.selection-block{display:grid;gap:.55rem}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.checkbox-row{display:flex;align-items:center;gap:.7rem}.checkbox-card,.profile-card{align-items:center}.avatar-circle{width:56px;height:56px;border-radius:999px;display:grid;place-items:center;background:var(--primary-soft);color:var(--primary);font-weight:800}.page-footer{padding-bottom:1rem}@media (max-width: 1180px){.shell,.login-page,.page-grid,.split-layout,.compact-split,.wide-stats{grid-template-columns:1fr}.sidebar{position:static;min-height:auto}.stats-grid,.item-grid,.command-grid,.permission-toggle-grid,.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (max-width: 720px){.content,.login-page{padding:1rem}.sidebar{padding:1.1rem 1rem}.sidebar-footer-button{min-height:48px;padding:.72rem .9rem}.floor-chip{max-width:100%}.stats-grid,.item-grid,.command-grid,.permission-toggle-grid,.form-grid,.floor-management-grid,.floor-editor-actions{grid-template-columns:1fr}.floor-management-header,.floor-editor-card-header{flex-direction:column;align-items:stretch}.topbar,.stack-item,.report-card,.order-card-header,.progress-item-header,.profile-card,.timeline-step,.command-card,.floor-editor-header{flex-direction:column}.topbar-meta,.filter-row,.chips-row{width:100%}.topbar-meta>*,.filter-row>*,.chips-row>*{flex:1 1 auto}.stack-meta{justify-items:start}}
