:root{color-scheme:light;--bg: #f4f5f7;--panel: #ffffff;--border: #e2e5eb;--text: #1a1d24;--muted: #667085;--accent: #2563eb;--danger: #dc2626;--input-bg: #ffffff;--hover: #eef2f7;--selected: #e8f0fe;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;height:100vh;overflow:hidden}.sidebar{border-right:1px solid var(--border);background:var(--panel);padding:1.25rem 1rem;height:100vh;overflow-y:auto}.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:var(--selected);text-decoration:none}.main{padding:1.5rem 2rem;overflow-y:auto;min-height:0}.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-template-columns:1fr;height:auto;overflow:visible}.sidebar{height:auto;position:sticky;top:0;z-index:2}.main{overflow:visible}.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:var(--input-bg);color:var(--text)}.btn{padding:.55rem .9rem;border-radius:8px;border:1px solid var(--border);background:var(--hover);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:var(--input-bg);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:var(--hover)}.badge-warn{background:#fef3c7;color:#92400e}.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:var(--input-bg);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:#0f172a73}.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:var(--input-bg);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:var(--hover);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);align-items:stretch;flex:1;min-height:0}.catalog-page{display:flex;flex-direction:column;gap:.75rem;height:100%;min-height:0}.catalog-page>h2,.catalog-page>.toolbar,.catalog-page>.error{flex-shrink:0}.main:has(.catalog-page){display:flex;flex-direction:column;overflow:hidden}.catalog-list-card,.catalog-detail{min-width:0;min-height:0;padding:0;display:flex;flex-direction:column}.catalog-list-scroll{flex:1;min-height:0;overflow:auto;scrollbar-width:none}.catalog-list-scroll::-webkit-scrollbar{display:none}.catalog-list-scroll thead th{position:sticky;top:0;z-index:1;background:var(--bg)}.catalog-detail{border-left:1px solid var(--border);padding:0 0 0 1.25rem;margin-left:.75rem;overflow:auto;scrollbar-width:none}.catalog-detail::-webkit-scrollbar{display:none}.catalog-list-row{cursor:pointer}.catalog-list-row.is-selected{background:var(--selected)}.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:var(--selected);border-color:#bfdbfe}.catalog-detail .form-stack{max-width:none}.wallpaper-thumb{display:block;width:72px;height:44px;object-fit:cover;border-radius:6px;background:var(--hover)}@media(max-width:800px){.svg-editor-grid{grid-template-columns:1fr}}@media(max-width:1100px){.catalog-workbench{grid-template-columns:1fr;overflow:auto}.catalog-list-card,.catalog-detail{overflow:visible}.catalog-list-scroll{max-height:min(55vh,28rem)}.catalog-detail{border-left:none;border-top:1px solid var(--border);margin-left:0;padding:1.25rem 0 0}}
