:root { color-scheme: light; --navy:#102a43; --blue:#1261a0; --teal:#0f766e; --ink:#1f2937; --muted:#64748b; --line:#dbe4ee; --paper:#fff; --bg:#f3f7fb; --warn:#9a3412; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:14px/1.45 Inter,Segoe UI,Arial,sans-serif; }
header { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; padding:28px clamp(20px,4vw,64px); color:white; background:linear-gradient(120deg,var(--navy),#164e63); }
h1,h2,p { margin-top:0; } h1 { margin-bottom:4px; font-size:clamp(26px,3vw,40px); } h2 { margin-bottom:4px; }
.eyebrow { margin-bottom:4px; color:#a5f3fc; font-size:12px; font-weight:800; letter-spacing:.16em; }
.lede { margin:0; color:#d9eef7; }.status { padding:8px 12px; border:1px solid #ffffff55; border-radius:999px; white-space:nowrap; }
main { width:min(1600px,96vw); margin:22px auto 48px; }.card { background:var(--paper); border:1px solid var(--line); border-radius:12px; box-shadow:0 5px 18px #102a4310; }
.auth-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin-bottom:14px; padding:14px 16px; }.auth-toolbar label { display:grid; gap:5px; color:var(--muted); font-weight:650; }.auth-toolbar p { margin:0 0 8px auto; color:var(--muted); }
.view-tabs { display:flex; gap:8px; margin-bottom:14px; }.tab { color:var(--navy); background:#eaf2f8; border-color:#c3d5e5; }.tab.active { color:white; background:var(--blue); border-color:var(--blue); }
.toolbar { display:flex; flex-wrap:wrap; gap:12px; align-items:end; padding:16px; }.toolbar label { display:grid; gap:5px; color:var(--muted); font-weight:650; }
input,select,textarea,button { min-height:38px; border:1px solid #b8c7d9; border-radius:7px; padding:8px 10px; font:inherit; } input:focus,select:focus,textarea:focus { outline:3px solid #38bdf833; border-color:var(--blue); }
button,.file-button { cursor:pointer; } button { color:white; background:var(--blue); border-color:var(--blue); font-weight:750; } button.secondary { color:var(--navy); background:#eaf2f8; border-color:#c3d5e5; } button:disabled { cursor:not-allowed; opacity:.45; }
.file-button { min-height:38px; padding:8px 14px; color:var(--navy)!important; background:#eaf2f8; border:1px solid #c3d5e5; border-radius:7px; }.file-button input { display:none; }
.simulator-intro { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:14px; padding:18px; border-left:5px solid var(--teal); }.simulator-intro h2 { margin-bottom:4px; }.simulator-intro p:last-child { margin:0; color:var(--muted); }.eyebrow.dark { color:var(--teal); }.simulation-badge { padding:7px 10px; border-radius:999px; color:#075985; background:#e0f2fe; font-size:12px; font-weight:850; white-space:nowrap; }
.helper-intro { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:14px; padding:18px; border-left:5px solid var(--blue); }.helper-intro p:last-child { margin:0; color:var(--muted); }.helper-badge { padding:7px 10px; border-radius:999px; color:#075985; background:#e0f2fe; font-size:12px; font-weight:850; white-space:nowrap; }.helper-form { display:grid; gap:14px; padding:20px; }.helper-form label { display:grid; gap:6px; color:var(--muted); font-weight:700; }.helper-form input,.helper-form textarea { width:100%; color:var(--ink); resize:vertical; }.helper-actions { display:flex; gap:10px; }.helper-result { padding:22px; }.helper-result-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; padding-bottom:16px; border-bottom:1px solid var(--line); }.helper-result-heading h2 { margin-bottom:4px; }.helper-result-badges { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:7px; max-width:48%; }.helper-result-badges span { padding:5px 9px; border-radius:999px; color:#075985; background:#e0f2fe; font-size:12px; font-weight:800; }.helper-resolution { margin:18px 0; padding:16px; border-left:4px solid var(--teal); border-radius:6px; background:#ecfdf5; }.helper-resolution h3 { margin:0 0 6px; color:#065f46; }.helper-resolution p { margin:0; white-space:pre-wrap; }.helper-meta { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }.helper-meta>div { padding:12px; border:1px solid var(--line); border-radius:8px; background:#f8fbfe; }.helper-meta small { display:block; margin-bottom:4px; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; }.helper-meta strong { display:block; color:var(--navy); }.helper-kb { margin:16px 0 0; padding:12px 14px; border-radius:8px; background:#f8fbfe; }.helper-guidance { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-top:16px; }.helper-guidance section { padding:16px; border:1px solid var(--line); border-radius:9px; }.helper-guidance section:nth-child(2) { grid-column:1/-1; }.helper-guidance h4 { margin:0 0 8px; color:var(--navy); font-size:16px; }.helper-guidance ol,.helper-guidance ul { margin:0; padding-left:22px; }.helper-guidance li { margin-bottom:8px; }
.metrics { display:grid; grid-template-columns:repeat(6,minmax(120px,1fr)); gap:12px; margin:14px 0; }.metric { padding:14px 16px; }.metric span { display:block; color:var(--navy); font-size:28px; font-weight:800; }.metric small { color:var(--muted); text-transform:uppercase; letter-spacing:.08em; }
.message { margin:12px 0; padding:12px 16px; border-radius:8px; background:#e0f2fe; color:#075985; }.message.error { background:#fee2e2; color:#991b1b; }
.progress-card { margin:12px 0; padding:16px 18px; }.progress-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; }.progress-heading h2 { margin-bottom:2px; font-size:17px; }.progress-heading p { margin:0; color:var(--muted); }.progress-heading strong { color:var(--blue); font-size:22px; }.progress-card progress { display:block; width:100%; height:14px; margin:12px 0 7px; overflow:hidden; border:0; border-radius:999px; background:#dbe4ee; accent-color:var(--blue); }.progress-card progress::-webkit-progress-bar { background:#dbe4ee; border-radius:999px; }.progress-card progress::-webkit-progress-value { background:linear-gradient(90deg,var(--blue),#0891b2); border-radius:999px; transition:width .25s ease; }.progress-card progress::-moz-progress-bar { background:linear-gradient(90deg,var(--blue),#0891b2); border-radius:999px; }.progress-detail { color:var(--muted); font-size:13px; }.progress-card.complete .progress-heading strong { color:var(--teal); }.progress-card.failed .progress-heading strong,.progress-card.failed .progress-detail { color:#991b1b; }.progress-card.failed progress { accent-color:#dc2626; }
.table-card { overflow:hidden; }.table-heading { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid var(--line); }.table-heading p { margin:0; color:var(--muted); }
.table-wrap { overflow:auto; max-height:68vh; } table { width:100%; min-width:1450px; border-collapse:collapse; } th { position:sticky; top:0; z-index:2; padding:11px; text-align:left; color:#dbeafe; background:var(--navy); } td { padding:12px 11px; vertical-align:top; border-bottom:1px solid var(--line); } tr:hover td { background:#f8fbfe; }
.ticket-title { min-width:230px; font-weight:750; }.description { max-width:300px; margin-top:5px; color:var(--muted); white-space:pre-wrap; }.title-rewrite { min-width:250px; }.approved-title { width:100%; margin-top:8px; }.rewrite-status { display:inline-block; padding:3px 7px; border-radius:999px; color:#475569; background:#e2e8f0; font-size:12px; font-weight:800; }.rewrite-status.applied { color:#075985; background:#e0f2fe; }.rewrite-error { margin-top:7px; color:#991b1b; font-size:12px; }.decision { min-width:190px; }.confidence { display:inline-block; margin-top:7px; padding:3px 7px; border-radius:999px; background:#e0f2fe; color:#075985; font-weight:800; }
.editors { display:grid; min-width:245px; gap:8px; }.editors select { width:100%; }.kb { min-width:390px; }.kb-ok { color:var(--teal); font-weight:800; }.kb-warning { margin-top:7px; color:var(--warn); }.resolution { margin-top:8px; }.resolution-guidance { margin-top:10px; padding-top:8px; border-top:1px solid var(--line); }.resolution-guidance summary { cursor:pointer; color:var(--blue); font-weight:800; }.resolution-guidance section { margin-top:12px; }.resolution-guidance h4 { margin:0 0 4px; color:var(--navy); }.resolution-guidance ol,.resolution-guidance ul { margin:4px 0 0; padding-left:20px; }.resolution-guidance li { margin-bottom:5px; }.learn { min-width:135px; }.learn label { display:block; margin-bottom:8px; }.empty { height:180px; color:var(--muted); text-align:center; vertical-align:middle; }
.analytics-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; padding:16px; }.analytics-toolbar>div { margin-right:auto; }.analytics-toolbar p,.muted { margin:0; color:var(--muted); }.analytics-toolbar label { display:grid; gap:5px; color:var(--muted); font-weight:650; }.analytics-metrics { display:grid; grid-template-columns:repeat(11,minmax(120px,1fr)); gap:12px; margin:14px 0; }.analytics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin-bottom:14px; }.analytics-panel { padding:18px; }.bar-chart { display:grid; gap:12px; margin-top:16px; }.bar-row { display:grid; grid-template-columns:minmax(90px,140px) 1fr 70px; align-items:center; gap:10px; }.bar-row>strong { text-align:right; }.bar-track { height:12px; overflow:hidden; border-radius:999px; background:#e2e8f0; }.bar-track i { display:block; height:100%; min-width:2px; border-radius:999px; background:linear-gradient(90deg,var(--blue),#0891b2); }.analytics-table-wrap { overflow:auto; }.analytics-table { min-width:700px; }.analytics-table th { position:static; }.analytics-table .empty { height:100px; }
.kb-generator-intro { display:flex; justify-content:space-between; align-items:center; gap:18px; margin-bottom:14px; padding:18px; border-left:5px solid #7c3aed; }.kb-generator-intro p:last-child { margin:0; color:var(--muted); }.draft-badge { padding:7px 10px; border-radius:999px; color:#6b21a8; background:#f3e8ff; font-size:12px; font-weight:850; white-space:nowrap; }.draft-badge.approved { color:#065f46; background:#d1fae5; }.kb-metrics { grid-template-columns:repeat(5,minmax(120px,1fr)); }.kb-opportunities { overflow:hidden; }.kb-opportunity-table { min-width:900px; }.score-badge { display:inline-grid; width:46px; height:46px; place-items:center; border-radius:50%; color:white; background:linear-gradient(135deg,#7c3aed,#2563eb); font-size:17px; font-weight:850; }.kb-draft-editor { margin-top:14px; padding:20px; scroll-margin-top:14px; }.draft-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:20px; margin-bottom:18px; }.draft-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }.draft-fields label { display:grid; gap:6px; color:var(--muted); font-weight:700; }.draft-fields .wide { grid-column:1/-1; }.draft-fields input,.draft-fields textarea { width:100%; color:var(--ink); resize:vertical; }.draft-actions { display:flex; gap:10px; margin-top:18px; }
@media (max-width:1100px) { .analytics-metrics { grid-template-columns:repeat(3,1fr); } }
@media (max-width:800px) { header { align-items:flex-start; flex-direction:column; }.view-tabs { flex-wrap:wrap; }.simulator-intro,.helper-intro,.kb-generator-intro,.helper-result-heading { align-items:flex-start; flex-direction:column; }.helper-result-badges { justify-content:flex-start; max-width:none; }.metrics,.analytics-metrics,.kb-metrics,.helper-meta { grid-template-columns:repeat(2,1fr); }.analytics-grid,.draft-fields,.helper-guidance { grid-template-columns:1fr; }.helper-guidance section:nth-child(2) { grid-column:auto; }.draft-fields .wide { grid-column:auto; }.toolbar label,.auth-toolbar label { width:100%; }.toolbar input,.auth-toolbar input { width:100%; }.auth-toolbar p { margin:0; } }
@media (max-width:520px) { .helper-meta { grid-template-columns:1fr; }.helper-actions { flex-direction:column; } }
