:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--bg:#f5f7fb;--bg-top:#fbfcfd;--surface:#fff;--surface-muted:#f1f5f3;--surface-strong:#e8efeb;--text:#17211c;--muted:#66736d;--muted-strong:#4a5751;--border:#dce5df;--primary:#256f54;--primary-hover:#1e5d46;--primary-soft:#e7f2ed;--primary-text:#fff;--accent:#d99024;--danger:#b42318;--focus:#d99024;--shadow:0 18px 50px #1d2c2514;--shadow-soft:0 10px 28px #1d2c250f;background:var(--bg);color:var(--text);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}:root[data-theme=dark]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#12161c;--bg-top:#171d24;--surface:#1b2028;--surface-muted:#242b35;--surface-strong:#2b3440;--text:#f2f5f4;--muted:#a6b1ad;--muted-strong:#c1cbc7;--border:#303a45;--primary:#68bd98;--primary-hover:#7bceaa;--primary-soft:#20382f;--primary-text:#0f1713;--accent:#e2a94b;--danger:#ff8b82;--focus:#e2a94b;--shadow:0 20px 54px #00000052;--shadow-soft:0 12px 30px #00000038}@media (prefers-color-scheme:dark){:root[data-theme=system]{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--bg:#12161c;--bg-top:#171d24;--surface:#1b2028;--surface-muted:#242b35;--surface-strong:#2b3440;--text:#f2f5f4;--muted:#a6b1ad;--muted-strong:#c1cbc7;--border:#303a45;--primary:#68bd98;--primary-hover:#7bceaa;--primary-soft:#20382f;--primary-text:#0f1713;--accent:#e2a94b;--danger:#ff8b82;--focus:#e2a94b;--shadow:0 20px 54px #00000052;--shadow-soft:0 12px 30px #00000038}}*{box-sizing:border-box}html{min-height:100%}body{background:linear-gradient(180deg, var(--bg-top) 0, var(--bg) 260px), var(--bg);min-width:320px;min-height:100vh;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}a{color:inherit}.page-shell{width:min(1240px,100% - 36px);min-height:100vh;margin:0 auto;padding:34px 0 52px}.topbar{grid-template-columns:minmax(240px,1fr) minmax(300px,auto);align-items:center;gap:22px;margin-bottom:20px;display:grid}.brand{min-width:0}h1,h2{color:var(--text);letter-spacing:0;margin:0;font-weight:760}h1{text-overflow:ellipsis;white-space:nowrap;font-size:34px;line-height:1.12;overflow:hidden}h2{font-size:25px;line-height:1.2}.status,.group-meta{color:var(--muted);font-size:13px;line-height:1.4;display:block}.status{margin-top:8px}.group-meta{margin-top:5px}.toolbar,.token-panel,.editor-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:9px;display:flex}.token-panel,.editor-actions{border:1px solid var(--border);background:color-mix(in srgb, var(--surface), transparent 5%);box-shadow:var(--shadow-soft);border-radius:8px;justify-content:flex-start;margin-bottom:18px;padding:12px}input,select{border:1px solid var(--border);background:var(--surface);min-height:42px;color:var(--text);border-radius:8px;outline:none}input{width:100%;padding:9px 12px}select{padding:9px 36px 9px 11px}input::placeholder{color:color-mix(in srgb, var(--muted), transparent 18%)}input:focus,select:focus,button:focus-visible{border-color:var(--focus);box-shadow:0 0 0 3px color-mix(in srgb, var(--focus), transparent 74%);outline:none}.search-input{background:linear-gradient(180deg, color-mix(in srgb, var(--surface), white 5%), var(--surface));width:min(340px,100%)}.title-input{max-width:440px;font-size:26px;font-weight:760}.group-input{min-width:0;font-weight:760}.primary-button,.ghost-button,.icon-button,.add-link-button,.group-tab{border:1px solid #0000;border-radius:8px;min-height:40px;transition:background .15s,border-color .15s,color .15s,transform .15s,box-shadow .15s}.primary-button:hover,.ghost-button:hover,.icon-button:hover,.add-link-button:hover,.group-tab:hover{transform:translateY(-1px)}.primary-button{background:var(--primary);color:var(--primary-text);padding:9px 15px;font-weight:720}.primary-button:hover{background:var(--primary-hover)}.ghost-button,.add-link-button{border-color:var(--border);background:var(--surface);color:var(--text);padding:9px 14px;font-weight:680}.ghost-button:hover,.add-link-button:hover{border-color:color-mix(in srgb, var(--primary), var(--border) 25%);box-shadow:var(--shadow-soft)}.danger{color:var(--danger)}.icon-button{border-color:var(--border);background:var(--surface-muted);width:34px;min-width:34px;color:var(--muted-strong);place-items:center;padding:0;font-weight:780;display:inline-grid}.dashboard-layout{grid-template-columns:220px minmax(0,1fr);align-items:start;gap:18px;display:grid}.group-sidebar,.group-section,.loading-panel,.empty-panel{border:1px solid var(--border);background:color-mix(in srgb, var(--surface), transparent 2%);box-shadow:var(--shadow);border-radius:8px}.group-sidebar{padding:12px;position:sticky;top:18px}.sidebar-label{color:var(--muted);margin:2px 4px 10px;font-size:12px;font-weight:780;line-height:1.2}.group-tabs{gap:7px;display:grid}.group-tab{width:100%;color:var(--muted-strong);text-align:left;background:0 0;border-color:#0000;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;display:grid}.group-tab:hover{background:var(--surface-muted)}.group-tab.is-active{background:var(--primary);color:var(--primary-text);box-shadow:0 12px 24px color-mix(in srgb, var(--primary), transparent 75%)}.group-tab-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;font-weight:760;line-height:1.25;overflow:hidden}.group-tab-count{background:color-mix(in srgb, currentColor, transparent 88%);text-align:center;border-radius:999px;min-width:28px;padding:2px 7px;font-size:12px;font-weight:760;line-height:1.5}.group-section{padding:20px}.active-group-panel{min-height:460px}.loading-panel,.empty-panel{color:var(--muted);text-align:center;padding:28px}.group-header{grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;margin-bottom:18px;display:grid}.group-title-area{min-width:0}.row-actions{flex-wrap:nowrap;align-items:center;gap:6px;display:flex}.link-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px;display:grid}.link-card{border:1px solid var(--border);background:var(--surface-muted);min-height:70px;color:var(--text);border-radius:8px;grid-template-rows:auto auto;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:2px 11px;padding:13px;text-decoration:none;transition:border-color .15s,transform .15s,background .15s,box-shadow .15s;display:grid}.link-card:hover{border-color:color-mix(in srgb, var(--primary), var(--border) 20%);background:var(--surface);box-shadow:var(--shadow-soft);transform:translateY(-2px)}.link-card img{background:var(--surface);border-radius:8px;grid-row:1/span 2;width:34px;height:34px}.link-card span,.link-card small{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.link-card span{font-size:15px;font-weight:760;line-height:1.25}.link-card small{color:var(--muted);font-size:12px;line-height:1.25}.link-editor{border:1px solid var(--border);background:var(--surface-muted);border-radius:8px;gap:10px;padding:12px;display:grid}.editor-line{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;display:grid}.field-label{min-width:0;color:var(--muted-strong);gap:6px;font-size:12px;font-weight:760;line-height:1.3;display:grid}.compact-label{max-width:360px}.field-error{color:var(--danger);font-size:12px}.add-link-button{width:100%;color:var(--primary);border-style:dashed;margin-top:12px}@media (width<=900px){.page-shell{width:min(100% - 22px,760px);padding-top:20px}.topbar,.dashboard-layout{grid-template-columns:1fr}.toolbar{justify-content:flex-start}.search-input{width:100%}.group-sidebar{padding:10px;position:static}.sidebar-label{display:none}.group-tabs{scrollbar-width:thin;gap:8px;padding-bottom:2px;display:flex;overflow-x:auto}.group-tab{grid-template-columns:minmax(78px,auto) auto;width:auto;min-width:120px}h1{font-size:28px}}@media (width<=560px){.page-shell{width:min(100% - 18px,520px)}.toolbar>*,.token-panel>*,.editor-actions>*{flex:auto}.select-input{width:100%}.group-section{padding:14px}.group-header,.editor-line{grid-template-columns:1fr}.row-actions{justify-content:flex-start}.link-grid{grid-template-columns:1fr}}
