:root{--bg: #f6f7f9;--surface: #ffffff;--surface-2: #f0f2f5;--border: #dfe3e8;--text: #1c2430;--text-muted: #5b6673;--primary: #2f6df6;--primary-contrast: #ffffff;--danger: #d33b3b;--success: #1f9d55;--radius: 10px;--shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .06);--font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}@media(prefers-color-scheme:dark){:root{--bg: #12161c;--surface: #1a2029;--surface-2: #222a35;--border: #2c3644;--text: #e7ecf2;--text-muted: #9aa6b4;--primary: #5b8dff;--danger: #ff6b6b;--success: #37c46b;--shadow: 0 1px 3px rgba(0, 0, 0, .4)}}*{box-sizing:border-box}body{margin:0;font-family:var(--font);color:var(--text);background:var(--bg);line-height:1.5}a{color:var(--primary)}.app-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 24px;background:var(--surface);border-bottom:1px solid var(--border)}.app-header h1{font-size:18px;margin:0}.app-main{max-width:1080px;margin:0 auto;padding:24px}.muted{color:var(--text-muted)}.stack{display:flex;flex-direction:column;gap:16px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.spacer{flex:1}.section{margin-top:28px}.section__head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section__head h2{font-size:15px;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin:0}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px;display:flex;flex-direction:column;gap:8px}.card__title{font-weight:600;word-break:break-word}.card__meta{font-size:12px;color:var(--text-muted)}.card__actions{display:flex;gap:8px;margin-top:auto;padding-top:8px}.badge{display:inline-block;font-size:11px;font-weight:600;padding:2px 8px;border-radius:999px;background:var(--surface-2);color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.btn{font:inherit;font-size:14px;cursor:pointer;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text);padding:8px 14px;transition:background .12s ease,border-color .12s ease}.btn:hover{background:var(--surface-2)}.btn:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.btn--primary{background:var(--primary);border-color:var(--primary);color:var(--primary-contrast)}.btn--primary:hover{filter:brightness(1.05);background:var(--primary)}.btn--danger{color:var(--danger);border-color:var(--danger);background:transparent}.btn--danger:hover{background:color-mix(in srgb,var(--danger) 12%,transparent)}.btn--ghost{background:transparent}.btn:disabled{opacity:.55;cursor:not-allowed}.btn--sm{padding:5px 10px;font-size:13px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:13px;font-weight:600}.field input,.field select{font:inherit;padding:9px 11px;border-radius:8px;border:1px solid var(--border);background:var(--surface);color:var(--text)}.field input:focus,.field select:focus{outline:2px solid var(--primary);outline-offset:1px}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:100%;max-width:360px}.skeleton{position:relative;overflow:hidden;background:var(--surface-2);border-radius:var(--radius);height:96px}.skeleton:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--surface) 60%,transparent),transparent);transform:translate(-100%);animation:shimmer 1.25s infinite}@keyframes shimmer{to{transform:translate(100%)}}@media(prefers-reduced-motion:reduce){.skeleton:after{animation:none}}.empty{text-align:center;padding:32px;color:var(--text-muted);border:1px dashed var(--border);border-radius:var(--radius)}.toast-region{position:fixed;right:16px;bottom:16px;z-index:9999;display:flex;flex-direction:column;gap:8px}.toast{min-width:220px;max-width:360px;padding:11px 14px;border-radius:8px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);color:var(--text);font-size:14px;opacity:1;transition:opacity .22s ease,transform .22s ease}.toast--out{opacity:0;transform:translateY(6px)}.toast--success{border-left:4px solid var(--success)}.toast--error{border-left:4px solid var(--danger)}.toast--info{border-left:4px solid var(--primary)}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#080c1280;display:grid;place-items:center;z-index:10000;padding:24px}.modal{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px;width:100%;max-width:420px}.modal__title{margin:0 0 8px;font-size:17px}.modal__message{margin:0 0 18px;color:var(--text-muted)}.modal__actions{display:flex;justify-content:flex-end;gap:10px}html,body.editor-page{height:100%}body.editor-page{margin:0;overflow:hidden}.editor-shell{display:flex;flex-direction:column;height:100vh}.editor-topbar{display:flex;align-items:center;gap:12px;padding:8px 14px;background:var(--surface);border-bottom:1px solid var(--border);z-index:2}.editor-topbar h1{font-size:14px;margin:0;font-weight:600}.editor-topbar .status{font-size:13px;color:var(--text-muted);min-width:90px}.editor-topbar .status--saving{color:var(--primary)}.editor-topbar .status--saved{color:var(--success)}.editor-topbar .status--error{color:var(--danger)}.editor-canvas{flex:1;min-height:0}#studio{height:100%}
