:root{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,sans-serif;line-height:1.4;color:#111827;background:#f8fafc}*{box-sizing:border-box}body{margin:0;min-width:320px}#root{min-height:100vh}button{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:8px 12px;cursor:pointer}.centered{min-height:100vh;display:flex;align-items:center;justify-content:center}.login-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.login-card{width:100%;max-width:440px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:24px}.error-text{color:#b91c1c;margin-top:12px}.dashboard{padding:20px}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.topbar h1{margin:0 0 4px;font-size:24px}.topbar p{margin:0;color:#475569}.layout-grid{display:grid;grid-template-columns:320px 1fr;gap:16px}.sessions-panel,.questions-panel{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px}.sessions-panel ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}.sessions-panel button{width:100%;text-align:left}.sessions-panel button.active{border-color:#2563eb;background:#eff6ff}.sessions-panel button span{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.sessions-panel button small{color:#475569}.question-list{display:grid;gap:12px}.question-card{border:1px solid #e2e8f0;border-radius:10px;padding:12px}.question-card header{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px}.status{font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid #cbd5e1;white-space:nowrap}.question-card pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px}@media(max-width:1024px){.layout-grid,.rules-layout{grid-template-columns:1fr}}.success-text{color:#047857;margin-top:12px}.rules-panel{margin-top:16px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:16px}.rules-panel-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}.rules-panel-header h2{margin:0 0 4px}.rules-panel-header p{margin:0;color:#475569}.rules-layout{display:grid;grid-template-columns:260px 1fr;gap:16px;margin-top:12px}.rules-list ul,.rules-changed-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.rules-list-header{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:8px}.rules-list-header h3{margin:0}.rules-add-button{padding:4px 10px;font-size:13px}.rules-add-form{display:grid;gap:8px;margin-bottom:12px;padding:10px;border:1px solid #e2e8f0;border-radius:8px;background:#f8fafc}.rules-add-form label{display:grid;gap:4px;font-size:13px;color:#475569}.rules-add-form input{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.rules-empty-hint{margin:0;color:#64748b;font-size:14px}.rules-list button{width:100%;text-align:left}.rules-list button.active{border-color:#2563eb;background:#eff6ff}.rules-list button span{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px}.rules-list button small{color:#b45309}.rules-list button .rules-badge-new{color:#15803d}.rules-editor{display:grid;gap:8px}.rules-editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px}.rules-editor-actions{display:flex;gap:8px}.rules-delete-button{color:#b91c1c;border-color:#fca5a5}.rules-textarea{width:100%;min-height:280px;resize:vertical;border:1px solid #cbd5e1;border-radius:8px;padding:12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;font-size:12px;line-height:1.5}.rules-changes{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:16px}.rules-changes-header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.rules-bundle{margin-top:16px;border-top:1px solid #e2e8f0;padding-top:16px;display:grid;gap:12px}.rules-diff-card,.rules-prompt-card{border:1px solid #e2e8f0;border-radius:10px;padding:12px}.rules-diff-card header,.rules-prompt-card header{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.rules-prompt-list{display:grid;gap:12px}.rules-diff-card pre,.rules-prompt-card pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:8px;margin:0}
