:root{color-scheme:dark;--brand-50: #1a1c2e;--brand-500: #5b66db;--brand-600: #444fcb;--bg-base: #0a0a14;--bg-surface: #13141f;--bg-elevated: #1a1c2e;--bg-hover: #1e2033;--border-subtle: #1e2036;--border-strong: #2a2d45;--text-primary: #e8eaf0;--text-secondary: #8b8fa8;--text-muted: #555970;--success: #31b572;--warning: #f2a93b;--danger: #de4b5e;--info: #5b9cf5;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-6: 24px;--space-8: 32px;--radius-sm: 4px;--radius-md: 8px;--radius-lg: 12px;--radius-full: 9999px;--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 4px 12px rgba(0, 0, 0, .4);font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;font-size:15px;line-height:1.5}[data-theme=light]{color-scheme:light;--bg-base: #f8f9fc;--bg-surface: #ffffff;--bg-elevated: #ffffff;--bg-hover: #f0f1f5;--border-subtle: #e2e4ea;--border-strong: #c5c8d2;--text-primary: #1a1d2e;--text-secondary: #5a5e72;--text-muted: #8e92a5}*{box-sizing:border-box;margin:0}body{background:var(--bg-base);color:var(--text-primary)}button,input,textarea,select{font:inherit;background:var(--bg-surface);color:var(--text-primary);border:1px solid var(--border-subtle);border-radius:var(--radius-md);padding:var(--space-2) var(--space-3);outline:none}button{cursor:pointer;display:inline-flex;align-items:center;gap:6px;min-height:36px}button:hover{background:var(--bg-hover)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--brand-500);border-color:var(--brand-500);color:#fff}button.primary:hover{background:var(--brand-600)}input:focus,textarea:focus{border-color:var(--brand-500);box-shadow:0 0 0 3px #5b66db33}textarea{resize:vertical;line-height:1.7;width:100%;min-height:120px}.layout{display:grid;grid-template-columns:240px 1fr;min-height:100vh}.sidebar{background:var(--bg-surface);border-right:1px solid var(--border-subtle);padding:var(--space-4);display:flex;flex-direction:column;gap:var(--space-4)}.sidebar nav{display:flex;flex-direction:column;gap:var(--space-1)}.sidebar nav button{justify-content:flex-start;width:100%;border:none;padding:8px 12px;border-radius:var(--radius-md)}.sidebar nav button.active{background:var(--brand-50);color:var(--brand-500)}.sidebar .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px}.sidebar .brand span{width:36px;height:36px;background:var(--brand-500);color:#fff;border-radius:var(--radius-md);display:grid;place-items:center;font-weight:800}.workspace{padding:var(--space-6);overflow-y:auto}.panel{background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:var(--radius-lg);padding:var(--space-4)}.panel h2{font-size:16px;margin-bottom:var(--space-3)}.error{background:#3a1520;border:1px solid #6e2a35;color:#f097a6;padding:var(--space-3);border-radius:var(--radius-md);margin-bottom:var(--space-3)}.timeline{display:flex;flex-direction:column;gap:var(--space-2)}.timeline .node{display:grid;grid-template-columns:36px 1fr 100px;gap:var(--space-3);align-items:center;padding:var(--space-2) var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}.timeline .node>span{width:32px;height:32px;border-radius:var(--radius-sm);background:var(--bg-hover);display:grid;place-items:center;font-weight:700;font-size:13px}.timeline .node.succeeded>span{background:#1a3a28;color:var(--success)}.timeline .node.running>span{background:#1a2a4a;color:var(--info)}.timeline .node.waiting_human>span{background:#3a251a;color:var(--warning)}.timeline .node em{color:var(--text-muted);font-style:normal;text-align:right;font-size:13px}.review-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:var(--space-4)}.chips{display:flex;flex-wrap:wrap;gap:var(--space-1);margin:var(--space-3) 0}.chips span{background:var(--bg-hover);padding:4px 10px;border-radius:var(--radius-full);font-size:13px}.score{width:80px;height:80px;border-radius:50%;background:#1a3a28;color:var(--success);display:grid;place-items:center;font-size:28px;font-weight:800;margin-bottom:var(--space-3)}.bars{display:flex;flex-direction:column;gap:var(--space-2)}.bars label{display:grid;grid-template-columns:80px 1fr 36px;align-items:center;gap:var(--space-2);font-size:13px}meter{width:100%}.editor-grid{display:grid;grid-template-columns:1fr 280px;gap:var(--space-4)}.editor-grid textarea{width:100%;min-height:420px;background:var(--bg-base);color:var(--text-primary);border:none;font-size:15px;line-height:1.8;resize:vertical}.ai-bar{display:flex;gap:var(--space-2);margin-top:var(--space-3)}.versions{display:flex;flex-direction:column;gap:var(--space-2)}.versions button{justify-content:flex-start;padding:var(--space-2) var(--space-3);text-align:left}.versions small{color:var(--text-muted);margin-left:auto;font-size:12px}.card-list{display:flex;flex-direction:column;gap:var(--space-2)}.card-list article{padding:var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-md)}.card-list small{color:var(--text-muted);display:block;text-transform:uppercase;font-size:11px}.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:var(--space-3)}.feature-card{display:flex;flex-direction:column;gap:var(--space-2);padding:var(--space-3);border:1px solid var(--border-subtle);border-radius:var(--radius-md);background:var(--bg-elevated)}.feature-card small,.muted{color:var(--text-muted)}.feature-card p{color:var(--text-secondary);font-size:13px}.danger-text{color:var(--danger);font-size:12px;overflow-wrap:anywhere}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:var(--space-2) var(--space-3);border-bottom:1px solid var(--border-subtle)}th{color:var(--text-muted);font-size:13px}.pill{border-radius:var(--radius-full);padding:4px 12px;font-size:13px;border:1px solid var(--border-subtle)}.pill.running{color:var(--info)}.pill.succeeded{color:var(--success)}.pill.waiting_human{color:var(--warning)}.theme-toggle{margin-top:auto}.theme-toggle button{width:100%;border:1px solid var(--border-subtle);padding:8px;border-radius:var(--radius-md)}.human-gate h2{margin-bottom:var(--space-3)}.title-choices{display:flex;flex-direction:column;gap:var(--space-2)}.title-choices button{text-align:left;padding:var(--space-3)}@media(max-width:768px){.app-shell{flex-direction:column}.sidebar{width:100%;flex-shrink:0;padding:var(--space-2)}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:4px}.sidebar nav button{padding:6px 8px;font-size:12px}.workspace,.panel{padding:var(--space-3)}.grid-2{grid-template-columns:1fr}table{font-size:12px}}
