:root{color-scheme:dark;--bg: #0f1117;--panel: #171b26;--border: #2a3142;--text: #e8ecf4;--muted: #9aa3b5;--accent: #6ea8fe;--danger: #f87171;font-family:Segoe UI,system-ui,sans-serif;line-height:1.5;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{display:grid;grid-template-columns:220px 1fr;min-height:100vh}.sidebar{border-right:1px solid var(--border);background:var(--panel);padding:1.25rem 1rem}.sidebar h1{font-size:1rem;margin:0 0 1.5rem;letter-spacing:.04em}.sidebar nav{display:flex;flex-direction:column;gap:.35rem}.sidebar a{padding:.45rem .65rem;border-radius:8px;color:var(--text)}.sidebar a.active{background:#243049;text-decoration:none}.main{padding:1.5rem 2rem}.card{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:1rem 1.25rem}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}@media(max-width:900px){.app-shell,.grid-2{grid-template-columns:1fr}}.stat-row{display:flex;gap:1rem;flex-wrap:wrap;margin-bottom:1rem}.stat{min-width:140px}.stat .label{color:var(--muted);font-size:.85rem}.stat .value{font-size:1.5rem;font-weight:600}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:.55rem .5rem;border-bottom:1px solid var(--border)}th{color:var(--muted);font-weight:500;font-size:.85rem}.form-stack{display:flex;flex-direction:column;gap:.75rem;max-width:360px}.form-stack label{display:flex;flex-direction:column;gap:.35rem;font-size:.9rem}.form-stack input,.form-stack select,.form-stack textarea{padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0c0f15;color:var(--text)}.btn{padding:.55rem .9rem;border-radius:8px;border:1px solid var(--border);background:#243049;color:var(--text)}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-ghost{background:transparent}.error{color:var(--danger);font-size:.9rem}.toolbar{display:flex;gap:.75rem;align-items:center;margin-bottom:1rem;flex-wrap:wrap}.toolbar input,.toolbar select{padding:.5rem .65rem;border-radius:8px;border:1px solid var(--border);background:#0c0f15;color:var(--text)}.login-page{min-height:100vh;display:grid;place-items:center;padding:2rem}.login-page .card{width:min(420px,100%)}.badge{display:inline-block;padding:.15rem .45rem;border-radius:6px;font-size:.75rem;background:#243049}.badge-warn{background:#4a3520;color:#fbbf24}.linkish{background:none;border:none;padding:0;color:var(--accent);text-decoration:underline;font:inherit}.linkish:disabled{opacity:.5;cursor:not-allowed}table input:not([type=checkbox]){width:100%;min-width:7rem;padding:.35rem .5rem;border-radius:8px;border:1px solid var(--border);background:#0c0f15;color:var(--text)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;padding:1.5rem;background:#080a10b8}.modal-panel{width:min(960px,100%);max-height:calc(100vh - 3rem);overflow:auto}.svg-editor-grid{display:grid;grid-template-columns:1fr 220px;gap:1rem;min-height:360px}.svg-editor-grid textarea{width:100%;min-height:360px;resize:vertical;padding:.65rem;border-radius:8px;border:1px solid var(--border);background:#0c0f15;color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.85rem;line-height:1.4}.svg-editor-preview{display:grid;place-items:center;border:1px dashed var(--border);border-radius:12px;background:#0c0f15;min-height:220px;padding:1rem}.svg-editor-preview img{max-width:160px;max-height:160px}.catalog-workbench{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.85fr);gap:1rem;align-items:start}.catalog-list-card{min-width:0}.catalog-list-row{cursor:pointer}.catalog-list-row.is-selected{background:#243049}.catalog-tabs{display:flex;flex-wrap:wrap;gap:.35rem}.catalog-tab{padding:.35rem .7rem;border-radius:999px;border:1px solid var(--border);background:transparent;color:var(--text)}.catalog-tab.is-active{background:#243049;border-color:#3a4660}.catalog-detail .form-stack{max-width:none}@media(max-width:800px){.svg-editor-grid{grid-template-columns:1fr}}@media(max-width:1100px){.catalog-workbench{grid-template-columns:1fr}}
