:root{font-family:Inter,Segoe UI,Arial,sans-serif;color:#172a3a;background:#f3f6fa;line-height:1.55;font-size:16px;--ink:#142c40;--muted:#5c7083;--blue:#087fab;--line:#dce6ee;--green:#207653;--amber:#8b6115}*{box-sizing:border-box}body{margin:0}a{color:#006f98;text-underline-offset:3px}button,input,textarea,select{font:inherit}button,a,input,select,textarea,summary{outline-offset:4px}*:focus-visible{outline:3px solid #42a4cf}.site-header{min-height:78px;padding:16px max(24px,calc((100vw - 1220px)/2));background:#122b3e;display:flex;align-items:center;justify-content:space-between;gap:20px;color:white}.brand{display:flex;gap:12px;align-items:center;color:white;text-decoration:none}.brand-mark{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#53c6e6;color:#0a2839;font-size:25px;font-weight:900}.brand b{display:block;letter-spacing:.01em}.brand small{display:block;color:#b8d3e4;font-size:12px}.site-header nav{display:flex;gap:24px;align-items:center;font-size:14px}.site-header nav a{color:#e5f1f8;text-decoration:none}.local-chip{font-size:10px;letter-spacing:.12em;font-weight:800;border:1px solid #527082;padding:4px 8px;border-radius:5px}main{max-width:1220px;margin:auto;padding:32px 26px 72px}h1,h2,h3{color:var(--ink);line-height:1.22}h1{font-size:36px;letter-spacing:-.03em}h2{font-size:23px;margin-top:0}h3{font-size:17px}p{margin:.8em 0}.eyebrow{color:#18799c;font-size:11px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.hero{padding:20px 0 15px;max-width:950px}.hero h1{font-size:clamp(36px,4.6vw,58px);margin:14px 0 18px;line-height:1.08}.hero h1 span{color:#197b9a}.lead{font-size:18px;color:var(--muted);max-width:800px}.steps{display:flex;flex-wrap:wrap;gap:22px;margin:28px 0 14px;font-size:13px;color:#436278}.steps b{color:#047da4;font-size:11px;margin-right:6px}.card{background:white;border:1px solid var(--line);border-radius:17px;padding:27px 30px;margin:22px 0;box-shadow:0 8px 30px #14374a07}.search-card{border-top:3px solid #1d9dbf}.section-heading{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-bottom:17px}.section-heading h2,.section-heading h3,.section-heading p{margin:0}.grid-form{display:grid;grid-template-columns:1fr 1fr;gap:19px}label{display:block;font-weight:650;font-size:14px;color:#334f63}.full{grid-column:1/-1}input:not([type=checkbox]),select,textarea{display:block;width:100%;border:1px solid #cad8e4;background:#fcfdff;color:#183344;border-radius:10px;padding:12px 14px;margin-top:7px;font-size:15px;line-height:1.6}textarea{resize:vertical;min-height:100px}button,.button{display:inline-flex;justify-content:center;align-items:center;gap:16px;background:#087eaa;color:white;border:1px solid transparent;border-radius:9px;cursor:pointer;padding:12px 20px;font-size:14px;font-weight:750;text-decoration:none;line-height:1.4;transition:background .12s ease}button:hover,.button:hover{background:#076a8d}button:disabled{opacity:.65;cursor:wait}.secondary{background:white;border-color:#b9cedd;color:#24536e}.secondary:hover{background:#eef6fb;color:#183e54}.form-actions{display:flex;align-items:center;gap:20px;flex-wrap:wrap}.form-actions small{color:var(--muted);font-size:12px}.check{display:flex;gap:12px;align-items:flex-start;font-weight:500}.check input{width:18px;height:18px;flex-shrink:0;margin:3px 0;accent-color:#147ba2}.demo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.demo-card{display:block;text-align:left;background:white;border:1px solid var(--line);color:#355366;padding:22px;box-shadow:none;font-weight:400}.demo-card:hover{background:#f7fcff;border-color:#72b3cd}.demo-card h3{font-size:19px;margin:16px 0 8px}.demo-card p{color:var(--muted);font-size:14px;min-height:65px}.demo-card>b{font-size:13px;color:#077797}.badge{display:inline-block;border-radius:6px;font-size:10px;letter-spacing:.045em;font-weight:800;padding:5px 8px;line-height:1.4;font-style:normal;white-space:normal;text-align:center;background:#ecf1f5;color:#425d73}.badge.good,.badge.resolved,.badge.answered_from_kb{color:#1d6d4e;background:#e4f4eb}.badge.info,.badge.draft_ready,.badge.processing{color:#156480;background:#e4f3fa}.badge.warn,.badge.needs_tierx,.badge.needs_info,.badge.awaiting_customer,.badge.escalated{color:#865c0d;background:#fff2d9}.badge.rejected{color:#9a3f45;background:#fbe8e9}.muted{color:var(--muted)}.small{font-size:12px}.mono{font-family:Consolas,monospace;overflow-wrap:anywhere}.back-link{display:inline-block;margin:8px 0;font-size:13px;text-decoration:none}.page-title{font-size:clamp(25px,3vw,35px);margin:10px 0 24px;overflow-wrap:anywhere}.page-head{display:flex;gap:24px;justify-content:space-between;align-items:flex-start;margin:22px 0}.page-head>div{min-width:0}.page-head>span{flex-shrink:0;margin-top:8px}.page-head form{flex-shrink:0}.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:20px 0}.metric{background:white;border:1px solid var(--line);border-radius:12px;padding:18px 20px}.metric span{display:block;font-size:12px;color:var(--muted);font-weight:650}.metric b{display:block;font-size:29px;line-height:1.5;letter-spacing:-.035em}.metric small{display:block;font-size:11px;color:#637c8e}.case-row{display:grid;grid-template-columns:100px 1fr auto;align-items:center;gap:18px;padding:18px 3px;border-bottom:1px solid #e7edf3;text-decoration:none;color:#28465a;font-size:14px}.case-row:last-child{border-bottom:0}.case-row:hover{background:#f5fafd}.case-row>span{min-width:0}.case-row small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.case-row em{max-width:165px}.control-row{display:flex;gap:20px;align-items:center;justify-content:space-between}.notice{background:#f0f6fa;border:1px solid #d9e8f1;border-radius:10px;padding:17px 19px;font-size:14px;margin:18px 0}.notice p:last-child{margin-bottom:0}.notice.warn{background:#fff8e9;border-color:#f0deb6;color:#7b581a}.notice.info{background:#eef7fc;color:#265b77}.notice.good{background:#eef9f1;border-color:#cee7d7;color:#205e42}.subtle-panel{padding:17px 0;color:#526b7d;font-size:13px;border-top:1px solid var(--line);margin:24px 0}.subtle-panel p{margin-bottom:0}.kb-result{background:#f7fbfd;border-left:4px solid #28a1bd;border-radius:10px;padding:22px;margin-top:18px}.kb-result h2{font-size:20px}.answer-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.8}.candidate-text,.approved{padding:22px;background:#f9fbfd;border:1px solid var(--line);border-radius:10px}.approved{border-left:4px solid #389b73}.source-caption{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#577184;margin-top:20px}.sources{margin-top:26px}.source-number{font-size:13px;color:#087ba5;margin-right:4px}.evidence{margin:14px 0;padding:20px;border:1px solid #dce6eb;border-radius:10px;border-left:3px solid #67a7b8}.evidence .source-caption{margin:10px 0}.evidence blockquote,blockquote{margin:14px 0;padding-left:15px;border-left:2px solid #cbdce6;color:#32556b;font-size:14px;white-space:pre-wrap}.anchor-nav{display:flex;gap:20px;flex-wrap:wrap;padding:13px 0;margin:12px 0;font-size:13px;font-weight:650}.anchor-nav a{text-decoration:none}.timeline{list-style:none;padding:0;margin:15px 0}.timeline>li{display:grid;grid-template-columns:34px 1fr;gap:14px;position:relative;padding-bottom:23px}.timeline>li>div{min-width:0}.timeline h3{margin:4px 0;font-size:16px}.timeline p{font-size:14px;margin:7px 0;color:#4b6476}.event-index{position:relative;border:1px solid #b8d2e1;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;color:#27728e;background:#f1f8fc;font-size:11px;font-weight:800}.event-kind{text-transform:uppercase;letter-spacing:.09em;font-size:9px;color:#527f93;font-weight:800}details{border:1px solid #dde7ef;border-radius:9px;margin:12px 0;background:#fcfdff;overflow:hidden}summary{padding:13px 16px;cursor:pointer;color:#2f536b;font-size:13px;font-weight:700;display:list-item;list-style-position:inside}details[open]>summary{background:#f0f7fb;border-bottom:1px solid #dfebf2}.details-body{padding:16px}.details-body p:first-child{margin-top:0}.details-body p:last-child{margin-bottom:0}.source-details>div{padding:10px 16px;font-size:12px;color:#496879}.exchange>summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.exchange-stats{display:flex;flex-wrap:wrap;gap:18px;font-size:12px;color:#51758c}.json,pre{background:#f3f7fa;padding:16px;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:430px;overflow:auto;font:12px/1.7 Consolas,monospace;color:#294c64;margin:12px 0}.timeline details>pre{margin:0;border-radius:0}.login-card{max-width:540px;margin:48px auto}.login-card h1{font-size:30px}.print-controls{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:20px 0}.activity-dot{display:inline-block;width:9px;height:9px;border-radius:50%;background:#2d92b6;margin-right:8px}footer{max-width:1220px;margin:auto;padding:18px 26px 30px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px;border-top:1px solid var(--line);font-size:11px;color:#60798b}@media(max-width:800px){.site-header{padding:15px 22px}.site-header nav{gap:12px}.local-chip{display:none}.metric-grid{grid-template-columns:repeat(2,1fr)}.demo-grid{grid-template-columns:1fr}.demo-card p{min-height:0}.page-head{flex-direction:column;gap:6px}.card{padding:23px}.case-row{grid-template-columns:80px 1fr}.case-row em{grid-column:2;justify-self:start}.section-heading{align-items:flex-start}.control-row{flex-direction:column;align-items:flex-start}}@media(max-width:500px){main{padding:18px 14px 50px}.site-header{flex-wrap:wrap;gap:12px}.site-header nav{width:100%;justify-content:flex-end}.grid-form{grid-template-columns:1fr}.steps{gap:12px}.metric{padding:14px}.metric b{font-size:25px}.card{padding:20px}.section-heading{flex-direction:column;gap:9px}.badge{font-size:10px}.anchor-nav{gap:13px}.form-actions button{width:100%}}@media print{body{background:white;font-size:11pt}.site-header,footer,.print-controls,.anchor-nav,button{display:none!important}main{max-width:none;padding:0}.card{border:0;box-shadow:none;padding:5px 0;margin:0}.answer-text{font-size:11pt}pre{max-height:none;overflow:visible;border:1px solid #ddd;font-size:9pt}h1,h2,h3{break-after:avoid}blockquote{break-inside:avoid}.notice{background:white!important}.page-title{font-size:19pt}}

/* Technical library */
.library-head{padding-bottom:8px}
.library-metrics{margin-top:12px}
.rule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.rule-card{border:1px solid #dbe6ee;border-radius:12px;padding:16px;background:#f8fbfd}
.rule-card b{display:block;margin-bottom:6px;color:#10283f}
.rule-card p{margin:0;color:#5b6b79;font-size:14px}
.document-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.document-card{display:block;border:1px solid #dbe6ee;border-radius:13px;padding:18px;color:inherit;text-decoration:none;background:#fff;transition:transform .12s ease,box-shadow .12s ease,border-color .12s ease}
.document-card:hover{transform:translateY(-2px);border-color:#7dbbd3;box-shadow:0 8px 22px #17304c12}
.document-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.document-card h3{margin:13px 0 7px;font-size:18px}
.doc-icon{display:inline-grid;place-items:center;min-width:40px;height:32px;padding:0 8px;border-radius:8px;background:#e8f5fa;color:#0d6d91;font-size:11px;font-weight:900;letter-spacing:.08em}
.text-link{display:inline-block;margin-top:10px;color:#0d789f;font-weight:800;font-size:13px}
.source-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}
.source-summary-grid>div{border:1px solid #dbe6ee;border-radius:10px;padding:13px;background:#f9fbfd}
.source-summary-grid span{display:block;font-size:12px;color:#6b7b89;margin-bottom:3px}
.source-summary-grid b{font-size:14px;color:#10283f}
.manual-sections{display:flex;flex-direction:column;gap:14px}
.manual-section{border:1px solid #dbe6ee;border-left:4px solid #33a4c9;border-radius:10px;padding:18px;background:#fbfdfe}
.manual-section h3{margin:2px 0 0}
.manual-section p:last-child{margin-bottom:0;line-height:1.65}
.source-caption a{color:#0d789f;font-weight:700;text-decoration:none}
.source-caption a:hover{text-decoration:underline}
@media(max-width:760px){.rule-grid,.document-grid,.source-summary-grid{grid-template-columns:1fr}}



/* Presentation polish v0.3.3 */
:root{
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,Arial,sans-serif;
  font-size:17px;
  line-height:1.62;
  color:#102638;
  background:#e8eef4;
  --ink:#0b2233;
  --muted:#486274;
  --blue:#006b94;
  --line:#c8d6e1;
  --green:#145f42;
  --amber:#714b00;
}
body{background:#e8eef4;color:#102638}
.site-header{
  min-height:86px;
  background:#071f30;
  border-bottom:4px solid #1595bc;
  box-shadow:0 4px 18px #071f3024;
}
.brand-mark{width:44px;height:44px;background:#5bd0ee;color:#06202f;font-size:27px}
.brand b{font-size:16px}
.brand small{font-size:13px;color:#d0e4ef}
.site-header nav{font-size:15px;font-weight:650}
.site-header nav a{color:#f2f8fb}
.local-chip{font-size:11px;border-color:#7694a5;color:#f3f8fa}
main{max-width:1280px;padding:38px 30px 84px}
h1{font-size:42px}
h2{font-size:27px}
h3{font-size:19px}
.eyebrow{font-size:12px;color:#006f98;letter-spacing:.12em}
.hero{max-width:1020px;padding:28px 0 20px}
.hero h1{font-size:clamp(42px,5vw,64px);line-height:1.06}
.hero h1 span{color:#006c91}
.lead{font-size:20px;line-height:1.6;color:#405b6e;max-width:880px}
.steps{font-size:15px;color:#314f63}
.steps b{font-size:12px;color:#006f98}
.card{
  border:1px solid #c4d3df;
  border-radius:16px;
  padding:32px 34px;
  margin:26px 0;
  box-shadow:0 8px 24px #17384b12,0 1px 3px #17384b12;
}
.search-card{border-top:5px solid #0c8fb7}
.section-heading{margin-bottom:20px}
label{font-size:15.5px;color:#253f52;font-weight:700}
input:not([type=checkbox]),select,textarea{
  border:1.5px solid #aebfcd;
  background:#fff;
  color:#102638;
  border-radius:9px;
  padding:14px 15px;
  margin-top:8px;
  font-size:16.5px;
}
input:not([type=checkbox]):focus,select:focus,textarea:focus{
  border-color:#087ea7;
  box-shadow:0 0 0 3px #0d8eb31c;
}
button,.button{
  padding:13px 22px;
  font-size:15.5px;
  border-radius:8px;
  font-weight:800;
  background:#006f99;
  box-shadow:0 2px 5px #13394d1c;
}
button:hover,.button:hover{background:#005d81}
.secondary{
  background:#f8fbfd;
  border-color:#9fb6c6;
  color:#153f59;
}
.secondary:hover{background:#e8f2f7;color:#0b3148}
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.page-actions form{margin:0}
.refresh-button{min-width:108px}
.form-actions small{font-size:13px;color:#486274}
.demo-card{padding:26px;border:1px solid #c2d2dd;color:#28485c}
.demo-card h3{font-size:21px}
.demo-card p{font-size:15.5px;color:#486274}
.demo-card>b{font-size:14px}
.badge{
  border-radius:7px;
  font-size:11px;
  padding:6px 9px;
  font-weight:900;
  letter-spacing:.04em;
}
.badge.good,.badge.resolved,.badge.answered_from_kb{color:#0d5438;background:#d9f0e4;border:1px solid #a8d8bf}
.badge.info,.badge.draft_ready,.badge.processing{color:#07577a;background:#dceff8;border:1px solid #a8d2e6}
.badge.warn,.badge.needs_tierx,.badge.needs_info,.badge.awaiting_customer,.badge.escalated{color:#694300;background:#fff0ce;border:1px solid #e7cd8e}
.badge.rejected{color:#812d35;background:#f8dfe2;border:1px solid #e5b5bb}
.muted{color:#486274}
.small{font-size:13.5px}
.back-link{font-size:14.5px;font-weight:700}
.page-title{font-size:clamp(30px,3.5vw,42px);line-height:1.16;margin:11px 0 26px}
.page-head{margin:26px 0 22px}
.metric-grid{gap:16px;margin:24px 0}
.metric{border:1px solid #c4d3df;border-radius:12px;padding:21px 22px;box-shadow:0 4px 12px #17384b0a}
.metric span{font-size:13.5px;color:#486274}
.metric b{font-size:34px;color:#0b2233}
.metric small{font-size:12.5px;color:#536e80}
.case-row{grid-template-columns:110px 1fr auto;gap:20px;padding:21px 8px;font-size:16px;color:#203f53;border-bottom:1px solid #d4dfe7}
.case-row small{font-size:13px;color:#536e80}
.notice{padding:20px 22px;font-size:15.5px;border-width:1.5px}
.notice.warn{background:#fff6df;border-color:#e3c987;color:#634200}
.notice.info{background:#eaf5fb;border-color:#b6d7e8;color:#174d68}
.notice.good{background:#e9f7ee;border-color:#b6dbc4;color:#174e37}
.subtle-panel{font-size:14.5px;color:#405d70}
.kb-result{padding:26px;border-left:5px solid #148daf;background:#f4fafc}
.kb-result h2{font-size:23px}
.answer-text{font-size:17.5px;line-height:1.85}
.candidate-text,.approved{padding:25px;border-color:#c8d6e1}
.source-caption{font-size:13.5px;color:#486274}
.evidence{padding:23px;border-color:#c5d6df;border-left:4px solid #4d9db6}
.evidence blockquote,blockquote{font-size:15.5px;line-height:1.72;color:#274c62}
.anchor-nav{font-size:14.5px;font-weight:750;gap:22px;padding:15px 0}
.timeline>li{grid-template-columns:38px 1fr;gap:16px;padding-bottom:26px}
.timeline h3{font-size:18px}
.timeline p{font-size:15.5px;color:#405d70}
.event-index{width:31px;height:31px;font-size:12px;background:#e7f4f9;border-color:#8cbfd0}
.event-kind{font-size:10px;color:#356d83}
summary{padding:14px 17px;font-size:14.5px;color:#234a61}
.details-body{padding:18px}
.exchange-stats{font-size:13.5px}
.json,pre{font-size:13px;line-height:1.75;background:#eef4f7;color:#173b50}
.rule-card{border-color:#c5d5df;background:#f5f9fb;padding:19px}
.rule-card b{font-size:16px}
.rule-card p{font-size:15px;color:#486274}
.document-card{border-color:#c5d5df;padding:21px}
.document-card h3{font-size:20px}
.source-summary-grid>div{border-color:#c5d5df;padding:16px}
.source-summary-grid span{font-size:13px;color:#536e80}
.source-summary-grid b{font-size:15.5px}
.manual-section{padding:21px;border-color:#c5d5df}
.manual-section p:last-child{font-size:15.5px}
footer{font-size:12.5px;color:#536e80}
@media(max-width:800px){
  main{padding:28px 20px 66px}
  .card{padding:26px}
  .page-actions{justify-content:flex-start}
}
@media(max-width:500px){
  :root{font-size:16px}
  main{padding:20px 14px 52px}
  .card{padding:21px}
  .hero h1{font-size:38px}
  .lead{font-size:18px}
  .case-row{grid-template-columns:86px 1fr}
  .page-actions{width:100%}
  .page-actions .button,.page-actions button{flex:1}
}
@media print{.refresh-button,.page-actions{display:none!important}}


/* SiteAssist v0.4 presentation redesign */
:root{
  font-family:"Segoe UI Variable Text","Segoe UI",Inter,Arial,sans-serif;
  font-size:17px;
  line-height:1.62;
  color:#172230;
  background:#f6f8fb;
  --ink:#172230;
  --muted:#617083;
  --line:#dde4ec;
  --surface:#ffffff;
  --engineer:#2563eb;
  --agent:#7c3aed;
  --code:#d97706;
  --sme:#e76f51;
  --approved:#0f8a70;
  --blue:#2563eb;
  --green:#0f8a70;
  --amber:#d97706;
}
body{background:#f6f8fb;color:var(--ink)}
.site-header{
  min-height:82px;
  padding:16px max(28px,calc((100vw - 1320px)/2));
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 3px 16px rgba(31,45,61,.06);
  color:var(--ink);
}
.brand{color:var(--ink)}
.brand-mark{
  width:44px;height:44px;border-radius:12px;
  background:#e9f1ff;color:var(--engineer);
  border:1px solid #cadcff;font-size:25px;
}
.brand b{font-size:17px}
.brand small{font-size:12.5px;color:#6c7a8a}
.site-header nav{gap:26px;font-size:14.5px;font-weight:700}
.site-header nav a{color:#46586c}
.site-header nav a:hover{color:#172230}
.local-chip{
  color:#69778a;background:#f7f9fb;border:1px solid #d8e0e8;
  font-size:10px;padding:5px 8px;border-radius:999px;
}
main{max-width:1320px;padding:42px 30px 88px}
h1,h2,h3{color:#172230}
h1{font-size:42px}
h2{font-size:26px}
h3{font-size:18px}
.eyebrow{font-size:11px;color:#66778a;letter-spacing:.13em}
.hero{max-width:980px;padding-top:30px}
.hero h1{font-size:clamp(42px,5vw,62px)}
.hero h1 span{color:var(--engineer)}
.lead{font-size:19px;color:#58697b}
.card{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:30px 32px;margin:24px 0;
  box-shadow:0 5px 20px rgba(31,45,61,.045);
}
.compact-card{padding:24px 28px}
.case-hero{
  display:flex;justify-content:space-between;align-items:flex-start;gap:28px;
  margin:20px 0 26px;padding:4px 2px;
}
.case-hero>div:first-child{min-width:0;max-width:920px}
.page-title{font-size:clamp(30px,3.4vw,43px);line-height:1.16;margin:8px 0 0}
.page-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
button,.button{
  background:#1f5fd1;border-radius:9px;padding:12px 20px;font-size:15px;
  box-shadow:none;
}
button:hover,.button:hover{background:#174da9}
.secondary{background:#fff;color:#31465d;border-color:#cbd6e2}
.secondary:hover{background:#f4f7fa;color:#172230}
.badge{
  border-radius:999px;font-size:11px;padding:6px 11px;
  border:1px solid transparent;font-weight:800;letter-spacing:.02em;
}
.badge.processing{background:#efe9ff;color:#6540b5;border-color:#d8c9ff}
.badge.draft_ready{background:#fff3d9;color:#845b08;border-color:#efd69d}
.badge.needs_tierx,.badge.needs_info,.badge.awaiting_customer,.badge.escalated{background:#fff0eb;color:#9b4c36;border-color:#f2c8bb}
.badge.resolved,.badge.answered_from_kb{background:#e5f6f0;color:#0c6e59;border-color:#b9e4d6}
.badge.rejected{background:#fae8e8;color:#9c4141;border-color:#edc1c1}
.badge.neutral{background:#f2f5f8;color:#596b7d;border-color:#dbe2e9}
.notice{font-size:16px;border-radius:12px;padding:19px 21px}
.notice.info{background:#eef3ff;border-color:#cfdbfa;color:#2e4c78}
.notice.warn{background:#fff7e7;border-color:#edd7a4;color:#6e5319}
.notice.good{background:#edf8f4;border-color:#c8e8dd;color:#235f51}
.answer-text{font-size:17px;line-height:1.82}
.candidate-text,.approved{background:#fbfcfe;border-color:#dbe3eb;border-radius:12px}
.approved{border-left:4px solid var(--approved)}
.provisional-card{border-top:4px solid var(--agent)}
.approved-card{border-top:4px solid var(--approved)}
.decision-card{border-top:4px solid var(--sme)}
.section-heading.compact{margin-bottom:10px}
.section-heading.compact h3{margin:0}
.role-chip{
  display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;
  font-size:11px;font-weight:800;border:1px solid currentColor;background:#fff;
}
.role-chip.engineer{color:var(--engineer)}
.role-chip.agent{color:var(--agent)}
.role-chip.code{color:var(--code)}
.role-chip.sme{color:var(--sme)}
.role-chip.approved{color:var(--approved)}
.case-layout{
  display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);
  gap:26px;align-items:start;
}
.case-layout>aside{position:sticky;top:18px}
.case-main{min-width:0}
.tracker-card{
  background:#fff;border:1px solid var(--line);border-radius:16px;
  padding:24px;box-shadow:0 5px 20px rgba(31,45,61,.045);
}
.tracker-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:18px}
.tracker-head h2{margin:2px 0 0;font-size:22px}
.tracker-head .eyebrow{margin:0}
.tracker-live{font-size:10.5px;color:#768496;background:#f4f6f8;border:1px solid #dfe5ea;border-radius:999px;padding:5px 8px;white-space:nowrap}
.progress-rail{list-style:none;padding:0;margin:0}
.progress-step{
  display:grid;grid-template-columns:24px 1fr;gap:12px;position:relative;
  min-height:58px;padding-bottom:13px;color:#8793a1;
}
.progress-step:not(:last-child)::after{
  content:"";position:absolute;left:8px;top:19px;bottom:-1px;width:2px;background:#e2e7ed;
}
.progress-node{
  position:relative;z-index:1;width:18px;height:18px;border-radius:50%;
  border:2px solid #cbd4de;background:#fff;margin-top:2px;
}
.progress-step b{display:block;font-size:14.5px;line-height:1.35;color:#6d7986}
.progress-step small{display:block;font-size:11px;margin-top:2px;color:#99a3ae}
.progress-step.is-done .progress-node{background:currentColor;border-color:currentColor;box-shadow:inset 0 0 0 4px #fff}
.progress-step.is-done b{color:#314052}
.progress-step.is-current .progress-node{border-color:currentColor;background:#fff;box-shadow:0 0 0 5px color-mix(in srgb,currentColor 15%,transparent)}
.progress-step.is-current b{color:#172230;font-weight:800}
.progress-step.is-current small{color:currentColor;font-weight:800}
.progress-step.is-current .progress-node::after{
  content:"";position:absolute;inset:-7px;border:2px solid currentColor;border-radius:50%;
  opacity:.4;animation:casePulse 1.8s ease-out infinite;
}
.tone-engineer{color:var(--engineer)}
.tone-agent{color:var(--agent)}
.tone-code{color:var(--code)}
.tone-sme{color:var(--sme)}
.tone-approved{color:var(--approved)}
@keyframes casePulse{0%{transform:scale(.72);opacity:.5}75%,100%{transform:scale(1.25);opacity:0}}
.branch-note{
  margin:5px 0 20px;padding:12px 13px;border-left:3px solid currentColor;
  background:#fafbfc;border-radius:8px;font-size:12.5px;
}
.branch-note b{display:block;color:#27384a;margin-bottom:3px}
.branch-note span{color:#5f6f7f}
.evidence-log-wrap{border-top:1px solid var(--line);padding-top:18px}
.evidence-log-wrap .section-heading span{font-size:10.5px;color:#8793a1}
.live-evidence-log{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:13px}
.log-item{display:grid;grid-template-columns:12px 1fr;gap:9px;align-items:start}
.log-dot{width:8px;height:8px;border-radius:50%;background:currentColor;margin-top:8px}
.log-item p{margin:0;font-size:12.5px;line-height:1.48;color:#3f5061}
.log-item time{display:block;font-size:10.5px;color:#95a0ab;margin-top:2px}
.log-empty{font-size:12.5px;color:#8793a1}
.record-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.record-grid>div{background:#f8fafc;border:1px solid #e2e8ef;border-radius:10px;padding:15px}
.record-grid span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#7d8a99;font-weight:800}
.record-grid p{margin:6px 0 0;font-size:14.5px;color:#34485b}
.history-item{padding:14px 0;border-bottom:1px solid #e5eaf0}
.history-item:last-child{border-bottom:0}
.history-item span{float:right;font-size:11px;color:#8a96a4}
.history-item p{margin:6px 0 0;color:#4b5d70;font-size:14px}
.activity-line{display:flex;gap:10px;align-items:center;color:#617083;font-size:14px}
.activity-dot{background:var(--agent);animation:casePulse 1.8s ease-out infinite}
.metric-grid.reviewer-metrics{grid-template-columns:repeat(4,1fr)}
.metric{box-shadow:none;background:#fbfcfd;border-color:#e0e6ed}
.metric b{font-size:30px}
.rule-card{background:#fbfcfd}
.top-gap{margin-top:18px}
.evidence{border-left-color:var(--agent);background:#fff}
.source-number{color:var(--agent)}
input:not([type=checkbox]),select,textarea{font-size:16px;border-color:#cbd5df;background:#fff}
label{font-size:14.5px}
footer{max-width:1320px;color:#728092}
@media(max-width:980px){
  .case-layout{grid-template-columns:1fr}
  .case-layout>aside{position:static}
  .progress-rail{display:grid;grid-template-columns:repeat(2,1fr);gap:0 18px}
  .progress-step:not(:last-child)::after{display:none}
}
@media(max-width:760px){
  .site-header{align-items:flex-start;flex-direction:column}
  .site-header nav{width:100%;gap:14px;flex-wrap:wrap}
  .case-hero{flex-direction:column}
  .page-actions{justify-content:flex-start}
  .record-grid,.metric-grid.reviewer-metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  :root{font-size:16px}
  main{padding:24px 14px 56px}
  .card{padding:22px}
  .tracker-card{padding:20px}
  .progress-rail,.record-grid,.metric-grid.reviewer-metrics{grid-template-columns:1fr}
  .page-title{font-size:31px}
}


/* Darker presentation backdrop + workflow architecture map */
:root{background:#d4dde6}
body{background:#d4dde6}
.site-header{background:#f8fafc}
.card,.tracker-card,.workflow-map{box-shadow:0 6px 22px rgba(30,43,58,.08)}

.workflow-map{
  background:#eef2f6;
  border:1px solid #bcc8d4;
  border-radius:18px;
  padding:24px 26px;
  margin:24px 0 30px;
}
.workflow-map-head{
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  margin-bottom:22px;
}
.workflow-map-head h2{margin:2px 0 6px;font-size:25px}
.workflow-map-head p:last-child{margin:0;color:#586879;max-width:850px;font-size:14.5px}
.workflow-map-note{
  flex:0 0 auto;
  background:#fff;
  border:1px solid #cbd4de;
  border-radius:999px;
  padding:6px 10px;
  color:#6c7988;
  font-size:11px;
  font-weight:800;
}
.workflow-flow{
  display:grid;
  grid-template-columns:minmax(130px,1fr) 24px minmax(130px,1fr) 24px minmax(130px,1fr) 24px minmax(130px,1fr) 24px minmax(130px,1fr) 24px minmax(130px,1fr);
  gap:7px;
  align-items:stretch;
}
.workflow-node{
  position:relative;
  min-width:0;
  border:1px solid #d8e0e8;
  border-top:4px solid currentColor;
  border-radius:12px;
  background:#fff;
  padding:17px 14px 15px;
  color:#617083;
}
.workflow-node b{display:block;color:#1d2b39;font-size:14px;line-height:1.3;margin:8px 0 6px}
.workflow-node small{display:block;color:#647486;font-size:11.5px;line-height:1.45}
.workflow-node.engineer{color:var(--engineer)}
.workflow-node.agent{color:var(--agent)}
.workflow-node.code{color:var(--code)}
.workflow-node.sme{color:var(--sme)}
.workflow-node.approved{color:var(--approved)}
.workflow-index{
  display:grid;
  place-items:center;
  width:25px;
  height:25px;
  border-radius:50%;
  background:currentColor;
  color:#fff;
  font-size:11px;
  font-weight:900;
}
.workflow-arrow{
  display:grid;
  place-items:center;
  color:#8794a2;
  font-size:22px;
  font-weight:700;
}
.workflow-legend{
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  align-items:center;
  margin-top:18px;
  font-size:11.5px;
  color:#617083;
}
.legend-dot{width:9px;height:9px;border-radius:50%;display:inline-block;margin-right:-10px}
.legend-dot.engineer{background:var(--engineer)}
.legend-dot.agent{background:var(--agent)}
.legend-dot.code{background:var(--code)}
.legend-dot.sme{background:var(--sme)}
.legend-dot.approved{background:var(--approved)}

@media(max-width:1120px){
  .workflow-flow{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
  .workflow-arrow{display:none}
}
@media(max-width:700px){
  .workflow-map{padding:20px}
  .workflow-map-head{flex-direction:column;gap:10px}
  .workflow-flow{grid-template-columns:1fr}
}


/* Persistent architecture rail + compact home hero */
:root{background:#c8d2dd}
body{background:#c8d2dd}

main.app-shell{
  max-width:1380px;
  margin:0 auto;
  padding:28px 28px 76px;
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:28px;
  align-items:start;
}
.app-sidebar{
  position:sticky;
  top:18px;
  align-self:start;
  min-width:0;
}
.app-content{min-width:0}

.workflow-sidebar{
  background:#eef2f6;
  border:1px solid #afbcc8;
  border-radius:16px;
  padding:20px 18px 18px;
  box-shadow:0 6px 22px rgba(31,45,61,.08);
}
.workflow-sidebar-head{margin-bottom:18px}
.workflow-sidebar-head .eyebrow{margin:0 0 4px}
.workflow-sidebar-head h2{
  margin:0 0 7px;
  font-size:20px;
  line-height:1.25;
}
.workflow-sidebar-head p:last-child{
  margin:0;
  color:#627284;
  font-size:12.5px;
  line-height:1.5;
}
.workflow-vertical{
  list-style:none;
  margin:0;
  padding:0;
}
.workflow-item{
  position:relative;
  display:grid;
  grid-template-columns:16px minmax(0,1fr);
  gap:10px;
  align-items:start;
  padding:0 0 17px;
}
.workflow-item:last-child{padding-bottom:0}
.workflow-item:not(:last-child)::after{
  content:"";
  position:absolute;
  left:6px;
  top:15px;
  bottom:0;
  width:2px;
  background:#cfd8e1;
}
.workflow-dot{
  position:relative;
  z-index:1;
  width:14px;
  height:14px;
  border-radius:50%;
  background:currentColor;
  margin-top:3px;
  box-shadow:0 0 0 3px #eef2f6;
}
.workflow-item b{
  display:block;
  color:#203040;
  font-size:13.5px;
  line-height:1.35;
  margin-bottom:3px;
}
.workflow-item small{
  display:block;
  color:#69798a;
  font-size:11.5px;
  line-height:1.45;
}
.workflow-item.engineer{color:var(--engineer)}
.workflow-item.agent{color:var(--agent)}
.workflow-item.code{color:var(--code)}
.workflow-item.sme{color:var(--sme)}
.workflow-item.approved{color:var(--approved)}

.compact-hero{
  padding:2px 0 8px;
  max-width:860px;
}
.compact-hero .eyebrow{margin:0 0 8px}
.compact-hero h1{
  font-size:clamp(34px,4.1vw,52px);
  line-height:1.06;
  margin:0 0 12px;
}
.compact-hero .lead{
  max-width:820px;
  margin:0;
  font-size:17px;
  line-height:1.5;
}
.search-card{margin-top:18px}

/* With the architecture rail persistent on the left, the live case tracker sits
   at the top of the case content rather than creating a three-column page. */
.app-content .case-layout{
  grid-template-columns:1fr;
  gap:18px;
}
.app-content .case-layout>aside{
  position:static;
}
.app-content .case-layout .tracker-card{
  display:grid;
  grid-template-columns:minmax(260px,.82fr) minmax(320px,1.18fr);
  column-gap:28px;
  padding:22px 24px;
}
.app-content .case-layout .tracker-head{
  grid-column:1/-1;
  margin-bottom:14px;
}
.app-content .case-layout .progress-rail{
  grid-column:1;
}
.app-content .case-layout #progress-branch{
  grid-column:1;
}
.app-content .case-layout .evidence-log-wrap{
  grid-column:2;
  grid-row:2 / span 2;
  border-top:0;
  border-left:1px solid var(--line);
  padding-top:0;
  padding-left:26px;
}

footer{
  max-width:1380px;
  padding-left:28px;
  padding-right:28px;
}

@media(max-width:1060px){
  main.app-shell{
    grid-template-columns:230px minmax(0,1fr);
    gap:20px;
    padding-left:20px;
    padding-right:20px;
  }
  .workflow-sidebar{padding:17px 15px}
  .workflow-sidebar-head p:last-child{display:none}
  .app-content .case-layout .tracker-card{
    grid-template-columns:1fr;
  }
  .app-content .case-layout .evidence-log-wrap{
    grid-column:1;
    grid-row:auto;
    border-left:0;
    border-top:1px solid var(--line);
    padding-left:0;
    padding-top:18px;
  }
}
@media(max-width:820px){
  main.app-shell{
    grid-template-columns:1fr;
    padding-top:20px;
  }
  .app-sidebar{position:static}
  .workflow-sidebar{padding:16px}
  .workflow-sidebar-head p:last-child{display:block}
  .workflow-vertical{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 18px;
  }
  .workflow-item{
    padding:0;
  }
  .workflow-item:not(:last-child)::after{display:none}
}
@media(max-width:520px){
  main.app-shell{padding:16px 14px 52px}
  .workflow-vertical{grid-template-columns:1fr}
  .compact-hero h1{font-size:34px}
  .compact-hero .lead{font-size:16px}
}


/* Dynamic persistent workflow rail on case pages */
.workflow-item.tone-engineer{color:var(--engineer)}
.workflow-item.tone-agent{color:var(--agent)}
.workflow-item.tone-code{color:var(--code)}
.workflow-item.tone-sme{color:var(--sme)}
.workflow-item.tone-approved{color:var(--approved)}

.workflow-item.is-reference{opacity:1}
.workflow-item.is-reference .workflow-dot{background:currentColor}

.workflow-item.is-future{opacity:.48}
.workflow-item.is-future .workflow-dot{
  background:#eef2f6;
  border:2px solid #aeb9c5;
  box-shadow:0 0 0 3px #eef2f6;
}
.workflow-item.is-future b{color:#667585}

.workflow-item.is-done{opacity:.86}
.workflow-item.is-done .workflow-dot{
  background:currentColor;
  box-shadow:0 0 0 3px #eef2f6, inset 0 0 0 3px #fff;
}
.workflow-item.is-done small{color:#718091}

.workflow-item.is-partial{opacity:.92}
.workflow-item.is-partial .workflow-dot{
  background:linear-gradient(90deg,currentColor 50%,#eef2f6 50%);
  border:1px solid currentColor;
}
.workflow-item.is-partial small{color:#7a6848}

.workflow-item.is-skipped{opacity:.42}
.workflow-item.is-skipped .workflow-dot{
  background:#eef2f6;
  border:2px dashed currentColor;
}
.workflow-item.is-skipped b{text-decoration:line-through;text-decoration-thickness:1px}

.workflow-item.is-current{
  margin:-5px -8px 12px -8px;
  padding:8px 8px 13px;
  background:#fff;
  border:1px solid #d6dee7;
  border-left:4px solid currentColor;
  border-radius:11px;
  box-shadow:0 4px 14px rgba(30,43,58,.07);
  opacity:1;
}
.workflow-item.is-current:not(:last-child)::after{
  left:11px;
  top:26px;
  bottom:-13px;
}
.workflow-item.is-current .workflow-dot{
  margin-left:-1px;
  margin-top:2px;
  background:#fff;
  border:3px solid currentColor;
  box-shadow:0 0 0 3px #eef2f6;
}
.workflow-item.is-current .workflow-dot::after{
  content:"";
  position:absolute;
  inset:-7px;
  border:2px solid currentColor;
  border-radius:50%;
  opacity:.38;
  animation:workflowPulse 1.8s ease-out infinite;
}
.workflow-item.is-current b{color:#172230;font-weight:900}
.workflow-item.is-current small{color:currentColor;font-weight:700}

@keyframes workflowPulse{
  0%{transform:scale(.72);opacity:.48}
  75%,100%{transform:scale(1.3);opacity:0}
}
