/* ============================================================
   SRT ENGINEERING COPILOT — Chat Widget Stylesheet
   Phase CHAT-UX-1
   ------------------------------------------------------------
   Design tokens reuse the site's existing brand colors, already
   hardcoded across chatbot.js and styles.css:
     Navy   #13294B   Orange #F07C1D
     Fog    #F7F9FB   Border #E3E8ED   Muted #8496A3
   This file introduces no new brand colors — only structure,
   spacing, typography and (new) dark-mode variants of the same
   palette.
   ============================================================ */

:root{
  --srt-navy:#13294B;
  --srt-navy-soft:#1C3A63;
  --srt-orange:#F07C1D;
  --srt-orange-soft:#FFF1E2;
  --srt-fog:#F7F9FB;
  --srt-border:#E3E8ED;
  --srt-muted:#5B6B7A;
  --srt-muted-soft:#8496A3;
  --srt-surface:#FFFFFF;
  --srt-text:#13294B;
  --srt-success:#1E8E5A;
  --srt-warning:#B8862B;

  --srt-radius-lg:18px;
  --srt-radius-md:12px;
  --srt-radius-sm:8px;
  --srt-shadow-panel:0 20px 60px rgba(19,41,75,.20), 0 2px 10px rgba(19,41,75,.08);
  --srt-shadow-card:0 2px 8px rgba(19,41,75,.08);
  --srt-font:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;

  --srt-panel-w:392px;
  --srt-panel-h:600px;
}

/* Dark mode — follows OS preference; widget stays legible without
   requiring the site itself to have a dark-mode toggle. */
@media (prefers-color-scheme: dark){
  #srt-chatbot{
    --srt-surface:#101B2E;
    --srt-fog:#0B1523;
    --srt-border:#233449;
    --srt-text:#E7ECF3;
    --srt-muted:#9FB0C2;
    --srt-muted-soft:#7C8CA0;
    --srt-orange-soft:#2E2312;
  }
}
#srt-chatbot[data-theme="dark"]{
  --srt-surface:#101B2E;
  --srt-fog:#0B1523;
  --srt-border:#233449;
  --srt-text:#E7ECF3;
  --srt-muted:#9FB0C2;
  --srt-muted-soft:#7C8CA0;
  --srt-orange-soft:#2E2312;
}

#srt-chatbot, #srt-chatbot *{ box-sizing:border-box; font-family:var(--srt-font); }

/* ---------------------------------------------------------
   Launcher bubble
--------------------------------------------------------- */
.srt-cb-bubble{
  position:fixed; bottom:92px; right:24px; width:58px; height:58px;
  background:var(--srt-navy); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 10px 24px rgba(19,41,75,.32); z-index:201; cursor:pointer;
  border:none; padding:0; transition:transform .18s ease, box-shadow .18s ease;
}
.srt-cb-bubble:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(19,41,75,.38); }
.srt-cb-bubble:focus-visible{ outline:3px solid var(--srt-orange); outline-offset:3px; }
.srt-cb-badge{
  position:absolute; top:-2px; right:-2px; width:14px; height:14px;
  background:var(--srt-orange); border-radius:50%; border:2px solid #fff;
}

/* ---------------------------------------------------------
   Panel shell
--------------------------------------------------------- */
.srt-cb-panel{
  position:fixed; bottom:92px; right:24px;
  width:var(--srt-panel-w); max-width:calc(100vw - 32px);
  height:var(--srt-panel-h); max-height:78vh;
  background:var(--srt-surface); color:var(--srt-text);
  border-radius:20px; box-shadow:var(--srt-shadow-panel);
  z-index:202; overflow:hidden; flex-direction:column;
  animation:srtPanelIn .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes srtPanelIn{
  from{ opacity:0; transform:translateY(12px) scale(.98); }
  to{ opacity:1; transform:translateY(0) scale(1); }
}
@media (max-width:640px){
  .srt-cb-panel{
    top:0; left:0; right:0; bottom:0; width:100%; height:100%;
    max-width:100%; max-height:100%; border-radius:0;
  }
  .srt-cb-bubble{ bottom:20px; right:16px; }
}

.srt-cb-header{
  background:linear-gradient(135deg,var(--srt-navy) 0%,var(--srt-navy-soft) 100%);
  color:#fff; padding:16px 18px; display:flex; justify-content:space-between;
  align-items:center; flex-shrink:0;
}
.srt-cb-header-title{ font-weight:700; font-size:14.5px; letter-spacing:.1px; }
.srt-cb-header-sub{ font-size:11px; color:#B7C2CE; margin-top:2px; display:flex; align-items:center; gap:5px; }
.srt-cb-header-sub .srt-cb-dot{ width:6px; height:6px; border-radius:50%; background:#3ED598; display:inline-block; }
.srt-cb-header-actions{ display:flex; align-items:center; gap:12px; }
.srt-cb-icon-btn{
  cursor:pointer; opacity:.85; background:none; border:none; color:#fff;
  padding:4px; border-radius:6px; display:flex; align-items:center; justify-content:center;
}
.srt-cb-icon-btn:hover{ opacity:1; background:rgba(255,255,255,.12); }
.srt-cb-icon-btn:focus-visible{ outline:2px solid #fff; outline-offset:1px; }

/* Context chips — subtle topic memory indicator */
.srt-cb-context{
  display:flex; gap:6px; flex-wrap:wrap; padding:8px 14px 0 14px; flex-shrink:0;
}
.srt-cb-context-chip{
  font-size:10.5px; font-weight:600; color:var(--srt-navy); background:var(--srt-orange-soft);
  border:1px solid rgba(240,124,29,.25); padding:3px 9px; border-radius:20px;
  display:flex; align-items:center; gap:4px;
}
#srt-chatbot[data-theme="dark"] .srt-cb-context-chip{ color:#FFD9AE; }
@media (prefers-color-scheme: dark){ #srt-chatbot .srt-cb-context-chip{ color:#FFD9AE; } }

/* ---------------------------------------------------------
   Messages
--------------------------------------------------------- */
.srt-cb-messages{
  flex:1; overflow-y:auto; padding:16px; background:var(--srt-fog);
  scroll-behavior:smooth;
}
.srt-cb-row{ display:flex; margin-bottom:14px; animation:srtFadeIn .22s ease; }
.srt-cb-row.bot{ justify-content:flex-start; }
.srt-cb-row.user{ justify-content:flex-end; }
@keyframes srtFadeIn{ from{ opacity:0; transform:translateY(4px); } to{ opacity:1; transform:translateY(0); } }

.srt-cb-bubble-msg{
  max-width:86%; padding:12px 15px; border-radius:var(--srt-radius-lg);
  font-size:13.5px; line-height:1.62;
}
.srt-cb-row.bot .srt-cb-bubble-msg{
  background:var(--srt-surface); color:var(--srt-text); border:1px solid var(--srt-border);
  border-bottom-left-radius:4px; box-shadow:var(--srt-shadow-card);
}
.srt-cb-row.user .srt-cb-bubble-msg{
  background:var(--srt-navy); color:#fff; border-bottom-right-radius:4px;
}

/* Rich text typography inside bot bubbles */
.srt-cb-bubble-msg p{ margin:0 0 8px 0; }
.srt-cb-bubble-msg p:last-child{ margin-bottom:0; }
.srt-cb-bubble-msg h3,.srt-cb-bubble-msg h4{
  margin:12px 0 6px 0; color:var(--srt-navy); font-weight:700;
}
#srt-chatbot[data-theme="dark"] .srt-cb-bubble-msg h3,
#srt-chatbot[data-theme="dark"] .srt-cb-bubble-msg h4{ color:#fff; }
.srt-cb-bubble-msg h3{ font-size:14.5px; }
.srt-cb-bubble-msg h4{ font-size:13.5px; }
.srt-cb-bubble-msg ul,.srt-cb-bubble-msg ol{ margin:6px 0 10px 0; padding-left:20px; }
.srt-cb-bubble-msg li{ margin-bottom:4px; }
.srt-cb-bubble-msg strong{ font-weight:700; }
.srt-cb-bubble-msg code{
  background:var(--srt-orange-soft); color:#8A4B0A; padding:1px 5px;
  border-radius:4px; font-size:12px; font-family:'SFMono-Regular',Consolas,Menlo,monospace;
}
#srt-chatbot[data-theme="dark"] .srt-cb-bubble-msg code{ color:#FFD9AE; }
.srt-cb-bubble-msg pre{
  background:var(--srt-navy); color:#E7ECF3; padding:10px 12px; border-radius:var(--srt-radius-sm);
  overflow-x:auto; margin:8px 0; font-size:12px; line-height:1.5;
}
.srt-cb-bubble-msg pre code{ background:none; color:inherit; padding:0; }
.srt-cb-bubble-msg blockquote{
  border-left:3px solid var(--srt-orange); margin:8px 0; padding:4px 0 4px 12px;
  color:var(--srt-muted); font-style:italic;
}
.srt-cb-bubble-msg table{
  border-collapse:collapse; width:100%; margin:8px 0; font-size:12.5px;
}
.srt-cb-bubble-msg th,.srt-cb-bubble-msg td{
  border:1px solid var(--srt-border); padding:6px 8px; text-align:left;
}
.srt-cb-bubble-msg th{ background:var(--srt-fog); font-weight:700; color:var(--srt-navy); }
.srt-cb-bubble-msg a{ color:var(--srt-orange); font-weight:700; text-decoration:none; }
.srt-cb-bubble-msg a:hover{ text-decoration:underline; }

/* Engineering reasoning callouts — parsed from the model's own
   FACT / ASSUMPTION / PRELIMINARY ENGINEERING GUIDANCE / RECOMMENDATION
   labeling discipline (chatbot-ai.php system prompt rule #2).
   These are never invented client-side; they only render when the
   AI's own reply text actually contains the label. */
.srt-cb-callout{
  display:flex; gap:8px; align-items:flex-start; margin:8px 0; padding:9px 11px;
  border-radius:var(--srt-radius-sm); font-size:12.5px; line-height:1.5; border:1px solid transparent;
}
.srt-cb-callout-icon{ flex-shrink:0; margin-top:1px; }
.srt-cb-callout-label{ font-weight:700; display:block; margin-bottom:2px; font-size:11px; text-transform:uppercase; letter-spacing:.4px; }
.srt-cb-callout.fact{ background:#EEF6F0; border-color:#CFE7D6; color:#1E5C3A; }
.srt-cb-callout.assumption{ background:#FEF6E7; border-color:#F3DDA8; color:#8A6116; }
.srt-cb-callout.guidance{ background:#EDF2FB; border-color:#C9D8F2; color:#243E77; }
.srt-cb-callout.recommendation{ background:var(--srt-orange-soft); border-color:#F3C089; color:#8A4B0A; }
.srt-cb-callout.warning{ background:#FBEAEA; border-color:#F0C4C4; color:#96302B; }
#srt-chatbot[data-theme="dark"] .srt-cb-callout.fact{ background:#132A1E; color:#8FD3A6; border-color:#204632; }
#srt-chatbot[data-theme="dark"] .srt-cb-callout.assumption{ background:#2B2211; color:#E8C878; border-color:#4A3A18; }
#srt-chatbot[data-theme="dark"] .srt-cb-callout.guidance{ background:#16233D; color:#AFC4EC; border-color:#28406B; }
#srt-chatbot[data-theme="dark"] .srt-cb-callout.recommendation{ background:#2E2312; color:#FFCF9B; border-color:#5A3E14; }
#srt-chatbot[data-theme="dark"] .srt-cb-callout.warning{ background:#331716; color:#F0A5A0; border-color:#5A2624; }

/* ---------------------------------------------------------
   Recommendation panel — end-of-answer highlighted summary.
   Only rendered when the reply text itself names a next step
   and/or a real, verifiable framework/standard already covered
   in the knowledge base. No confidence score is fabricated.
--------------------------------------------------------- */
.srt-cb-recopanel{
  margin:10px 0 4px 0; border:1px solid #F3C089; background:var(--srt-orange-soft);
  border-radius:var(--srt-radius-md); padding:12px 13px;
}
.srt-cb-recopanel-title{
  font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.4px;
  color:#8A4B0A; margin-bottom:6px; display:flex; align-items:center; gap:5px;
}
.srt-cb-recopanel-step{ font-size:13.5px; font-weight:700; color:var(--srt-navy); margin-bottom:8px; }
#srt-chatbot[data-theme="dark"] .srt-cb-recopanel-step{ color:#fff; }
.srt-cb-recopanel-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:9px; }
.srt-cb-tag{
  font-size:10.5px; font-weight:600; padding:3px 8px; border-radius:6px;
  background:#fff; border:1px solid #F3C089; color:#8A4B0A;
}
#srt-chatbot[data-theme="dark"] .srt-cb-tag{ background:#101B2E; }
.srt-cb-recopanel-cta{
  display:inline-flex; align-items:center; gap:6px; background:var(--srt-orange); color:#fff;
  font-size:12.5px; font-weight:700; padding:8px 14px; border-radius:var(--srt-radius-sm);
  text-decoration:none; border:none; cursor:pointer; transition:background .15s ease;
}
.srt-cb-recopanel-cta:hover{ background:#D96B10; }

/* ---------------------------------------------------------
   Resource / citation cards
--------------------------------------------------------- */
.srt-cb-card{
  display:flex; gap:10px; align-items:flex-start; margin:8px 0; padding:11px 12px;
  border:1px solid var(--srt-border); border-left:3px solid var(--srt-orange);
  border-radius:var(--srt-radius-md); background:var(--srt-surface);
  text-decoration:none; color:inherit; transition:box-shadow .15s ease, transform .15s ease;
}
.srt-cb-card:hover{ box-shadow:var(--srt-shadow-card); transform:translateY(-1px); }
.srt-cb-card-icon{
  flex-shrink:0; width:32px; height:32px; border-radius:8px; background:var(--srt-orange-soft);
  display:flex; align-items:center; justify-content:center; color:#8A4B0A; font-size:15px;
}
.srt-cb-card-body{ min-width:0; }
.srt-cb-card-cat{ font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.4px; color:var(--srt-muted-soft); }
.srt-cb-card-title{ font-size:13px; font-weight:700; color:var(--srt-navy); margin:2px 0 3px 0; }
#srt-chatbot[data-theme="dark"] .srt-cb-card-title{ color:#fff; }
.srt-cb-card-desc{ font-size:11.5px; color:var(--srt-muted); line-height:1.45; }
.srt-cb-card-open{ font-size:11px; font-weight:700; color:var(--srt-orange); margin-top:5px; display:inline-block; }

/* ---------------------------------------------------------
   Suggested actions (after each bot reply)
--------------------------------------------------------- */
.srt-cb-suggestions{ display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.srt-cb-suggest-btn{
  font-size:11.5px; font-weight:600; color:var(--srt-navy); background:var(--srt-surface);
  border:1px solid var(--srt-border); padding:6px 11px; border-radius:14px; cursor:pointer;
  transition:background .15s ease, border-color .15s ease;
}
.srt-cb-suggest-btn:hover{ background:var(--srt-orange-soft); border-color:#F3C089; }
.srt-cb-suggest-btn:focus-visible{ outline:2px solid var(--srt-orange); outline-offset:1px; }

/* ---------------------------------------------------------
   Status indicator (thinking state) — text rotates, dots pulse.
   No fake per-character typing animation (per brief Task 6).
--------------------------------------------------------- */
.srt-cb-status-row{ display:flex; align-items:center; gap:9px; padding:11px 15px; border-radius:var(--srt-radius-lg);
  background:var(--srt-surface); border:1px solid var(--srt-border); border-bottom-left-radius:4px; width:fit-content; }
.srt-cb-status-dots{ display:flex; gap:4px; }
.srt-cb-status-dots span{
  width:6px; height:6px; border-radius:50%; background:var(--srt-orange); display:inline-block;
  animation:srtTypingDot 1.1s infinite;
}
.srt-cb-status-dots span:nth-child(2){ animation-delay:.18s; }
.srt-cb-status-dots span:nth-child(3){ animation-delay:.36s; }
@keyframes srtTypingDot{ 0%,60%,100%{ opacity:.35; transform:translateY(0); } 30%{ opacity:1; transform:translateY(-3px); } }
.srt-cb-status-text{ font-size:11.5px; color:var(--srt-muted); font-weight:600; }

/* ---------------------------------------------------------
   Quick actions (initial engineering-focused shortcuts)
--------------------------------------------------------- */
.srt-cb-quickgrid{
  display:grid; grid-template-columns:1fr 1fr; gap:7px; padding:12px 14px; flex-shrink:0;
  border-top:1px solid var(--srt-border); max-height:168px; overflow-y:auto;
}
.srt-cb-quickgrid.srt-cb-flat{ display:flex; flex-wrap:wrap; max-height:92px; }
.srt-cb-qa-btn{
  display:flex; align-items:center; gap:7px; text-align:left; font-size:11.5px; font-weight:600;
  color:var(--srt-navy); background:var(--srt-fog); border:1px solid var(--srt-border);
  padding:8px 10px; border-radius:var(--srt-radius-sm); cursor:pointer; line-height:1.3;
  transition:background .15s ease, border-color .15s ease;
}
#srt-chatbot[data-theme="dark"] .srt-cb-qa-btn{ color:#E7ECF3; }
.srt-cb-qa-btn:hover{ background:var(--srt-orange-soft); border-color:#F3C089; }
.srt-cb-qa-btn:focus-visible{ outline:2px solid var(--srt-orange); outline-offset:1px; }
.srt-cb-qa-icon{ font-size:14px; flex-shrink:0; }
.srt-cb-qa-flat{
  font-size:11.5px; font-weight:600; color:var(--srt-navy); background:var(--srt-fog);
  border:1px solid var(--srt-border); padding:6px 10px; border-radius:14px; cursor:pointer;
}
.srt-cb-qa-flat.primary{ background:var(--srt-navy); border-color:var(--srt-navy); color:#fff; }
#srt-chatbot[data-theme="dark"] .srt-cb-qa-flat{ color:#E7ECF3; }

/* ---------------------------------------------------------
   Input row
--------------------------------------------------------- */
.srt-cb-inputrow{ display:flex; border-top:1px solid var(--srt-border); flex-shrink:0; background:var(--srt-surface); }
.srt-cb-input{
  flex:1; border:none; padding:14px; font-size:13.5px; outline:none; background:transparent; color:var(--srt-text);
  min-height:48px;
}
.srt-cb-input::placeholder{ color:var(--srt-muted-soft); }
.srt-cb-sendbtn{
  background:var(--srt-orange); color:#fff; border:none; padding:0 18px; font-size:13px; font-weight:700;
  cursor:pointer; min-width:48px; transition:background .15s ease;
}
.srt-cb-sendbtn:hover{ background:#D96B10; }
.srt-cb-sendbtn:disabled{ background:var(--srt-muted-soft); cursor:not-allowed; }
.srt-cb-sendbtn:focus-visible{ outline:2px solid var(--srt-navy); outline-offset:-2px; }

/* WhatsApp fallback */
.srt-cb-wa-btn{
  display:block; margin-top:10px; background:#25D366; color:#fff; text-align:center; padding:9px;
  border-radius:var(--srt-radius-sm); font-weight:700; font-size:12.5px; text-decoration:none;
}
.srt-cb-wa-btn:hover{ background:#1EBE59; }

/* Scrollbar polish (Webkit) */
.srt-cb-messages::-webkit-scrollbar, .srt-cb-quickgrid::-webkit-scrollbar{ width:6px; }
.srt-cb-messages::-webkit-scrollbar-thumb, .srt-cb-quickgrid::-webkit-scrollbar-thumb{
  background:var(--srt-border); border-radius:3px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .srt-cb-panel, .srt-cb-row, .srt-cb-bubble{ animation:none !important; transition:none !important; }
  .srt-cb-status-dots span{ animation:none !important; }
}

/* Visually-hidden helper for aria-live text */
.srt-cb-sr-only{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* ============================================================
   ENGINEERING WORKSPACE — Phase CHAT-UX-2
   ------------------------------------------------------------
   Two-panel layout: left = conversation (unchanged CHAT-UX-1
   markup, just re-parented), right = live Engineering Workspace.
   ≥900px: shown side by side, tabs hidden. <900px (incl. the
   existing mobile fullscreen breakpoint): only one panel is
   visible at a time, switched via the tab row — "collapsible
   cards", no functionality lost.
   ============================================================ */
.srt-cb-tabs{ display:flex; border-top:1px solid var(--srt-border); flex-shrink:0; }
.srt-cb-tab{
  flex:1; display:flex; align-items:center; justify-content:center; gap:5px;
  text-align:center; padding:9px 6px; font-size:11.5px; font-weight:700;
  color:var(--srt-muted); background:var(--srt-surface); border:none; cursor:pointer;
}
.srt-cb-tab.active{ color:var(--srt-orange); box-shadow:inset 0 -2px 0 var(--srt-orange); }
.srt-cb-tab:focus-visible{ outline:2px solid var(--srt-orange); outline-offset:-2px; }
#srt-chatbot[data-theme="dark"] .srt-cb-tab{ color:var(--srt-muted-soft); }
.srt-ws-tab-badge{
  min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:var(--srt-orange);
  color:#fff; font-size:9.5px; font-weight:700; display:inline-flex; align-items:center; justify-content:center;
}

.srt-cb-body{ flex:1; display:flex; min-height:0; }
.srt-cb-conversation{ flex:1; min-width:0; display:flex; flex-direction:column; min-height:0; }
.srt-cb-workspace{
  display:none; flex:1; min-width:0; flex-direction:column; gap:10px; padding:12px;
  overflow-y:auto; background:var(--srt-fog);
}
.srt-cb-panel.srt-cb-view-workspace .srt-cb-conversation{ display:none; }
.srt-cb-panel.srt-cb-view-workspace .srt-cb-workspace{ display:flex; }

@media (min-width:900px){
  #srt-chatbot{ --srt-panel-w:760px; --srt-panel-h:640px; }
  .srt-cb-tabs{ display:none; }
  .srt-cb-conversation{ display:flex; }
  .srt-cb-workspace{ display:flex; width:320px; flex-shrink:0; border-left:1px solid var(--srt-border); }
  .srt-cb-panel.srt-cb-view-workspace .srt-cb-conversation{ display:flex; }
  .srt-cb-panel.srt-cb-view-workspace .srt-cb-workspace{ display:flex; }
}

/* Widget cards — collapsible, per brief's "collapsible cards" mobile requirement (kept collapsible on desktop too, for a tidier long list) */
.srt-ws-card{
  background:var(--srt-surface); border:1px solid var(--srt-border); border-radius:var(--srt-radius-md);
  overflow:hidden; flex-shrink:0;
}
.srt-ws-card-head{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:6px;
  background:none; border:none; cursor:pointer; padding:9px 11px; font-size:12px; font-weight:700;
  color:var(--srt-navy); text-align:left;
}
#srt-chatbot[data-theme="dark"] .srt-ws-card-head{ color:#fff; }
.srt-ws-card-head:focus-visible{ outline:2px solid var(--srt-orange); outline-offset:-2px; }
.srt-ws-card-chevron{ transition:transform .15s ease; color:var(--srt-muted-soft); font-size:10px; flex-shrink:0; }
.srt-ws-card.collapsed .srt-ws-card-chevron{ transform:rotate(-90deg); }
.srt-ws-card-body{ padding:0 11px 11px 11px; font-size:12px; line-height:1.5; color:var(--srt-text); }
.srt-ws-card.collapsed .srt-ws-card-body{ display:none; }
.srt-ws-card-body p{ margin:0; }
.srt-ws-empty{ color:var(--srt-muted-soft); font-style:italic; margin:0; font-size:11.5px; }

.srt-ws-badge{
  display:inline-flex; align-items:center; gap:5px; font-size:11px; font-weight:700;
  padding:4px 10px; border-radius:20px; margin-bottom:6px;
}
.srt-ws-badge.critical{ background:#FBEAEA; color:#96302B; }
.srt-ws-badge.priority{ background:var(--srt-orange-soft); color:#8A4B0A; }
.srt-ws-badge.standard{ background:#EDF2FB; color:#243E77; }
.srt-ws-badge.advisory{ background:var(--srt-fog); color:var(--srt-muted); border:1px solid var(--srt-border); }
.srt-ws-driver{ font-size:11px; color:var(--srt-muted); margin-top:2px; }

.srt-ws-conf-pct{ font-size:18px; font-weight:800; color:var(--srt-navy); line-height:1; }
#srt-chatbot[data-theme="dark"] .srt-ws-conf-pct{ color:#fff; }
.srt-ws-conf-bar{ height:6px; border-radius:3px; background:var(--srt-border); overflow:hidden; margin:6px 0 8px 0; }
.srt-ws-conf-fill{ height:100%; background:var(--srt-orange); border-radius:3px; transition:width .3s ease; }
.srt-ws-evidence-row{ display:flex; align-items:center; gap:6px; font-size:11.5px; padding:2px 0; }
.srt-ws-evidence-dot{ width:8px; height:8px; border-radius:50%; flex-shrink:0; }
.srt-ws-evidence-dot.present{ background:var(--srt-success); }
.srt-ws-evidence-dot.partial{ background:var(--srt-warning); }
.srt-ws-evidence-dot.absent{ background:var(--srt-muted-soft); opacity:.5; }

.srt-ws-check-row{ display:flex; align-items:center; gap:7px; font-size:11.5px; padding:3px 0; }
.srt-ws-check-icon{ flex-shrink:0; width:15px; text-align:center; }
.srt-ws-check-row.done{ color:var(--srt-muted-soft); text-decoration:line-through; }

.srt-ws-tags{ display:flex; flex-wrap:wrap; gap:5px; }

.srt-ws-fact-row{ display:flex; justify-content:space-between; gap:8px; font-size:11.5px; padding:4px 0; border-bottom:1px dashed var(--srt-border); }
.srt-ws-fact-row:last-child{ border-bottom:none; }
.srt-ws-fact-label{ color:var(--srt-muted); flex-shrink:0; }
.srt-ws-fact-value{ color:var(--srt-text); font-weight:600; text-align:right; }

.srt-ws-action-link{
  display:flex; align-items:center; gap:7px; font-size:11.5px; font-weight:600; color:var(--srt-navy);
  background:var(--srt-fog); border:1px solid var(--srt-border); border-radius:var(--srt-radius-sm);
  padding:7px 9px; text-decoration:none; margin-bottom:6px;
}
.srt-ws-action-link:last-child{ margin-bottom:0; }
.srt-ws-action-link:hover{ background:var(--srt-orange-soft); border-color:#F3C089; }
.srt-ws-action-link:focus-visible{ outline:2px solid var(--srt-orange); outline-offset:1px; }
#srt-chatbot[data-theme="dark"] .srt-ws-action-link{ color:#E7ECF3; }

/* Engineering Timeline */
.srt-ws-timeline{ display:flex; flex-direction:column; gap:0; }
.srt-ws-tl-step{ display:flex; align-items:flex-start; gap:8px; position:relative; padding-bottom:12px; }
.srt-ws-tl-step:last-child{ padding-bottom:0; }
.srt-ws-tl-dot{
  width:10px; height:10px; border-radius:50%; background:var(--srt-border); flex-shrink:0; margin-top:3px; position:relative; z-index:1;
}
.srt-ws-tl-step:not(:last-child)::before{
  content:''; position:absolute; left:4.5px; top:14px; bottom:-2px; width:1px; background:var(--srt-border);
}
.srt-ws-tl-step.done .srt-ws-tl-dot{ background:var(--srt-success); }
.srt-ws-tl-step.current .srt-ws-tl-dot{ background:var(--srt-orange); box-shadow:0 0 0 3px var(--srt-orange-soft); }
.srt-ws-tl-label{ font-size:11.5px; color:var(--srt-muted); line-height:1.3; }
.srt-ws-tl-step.current .srt-ws-tl-label{ color:var(--srt-navy); font-weight:700; }
#srt-chatbot[data-theme="dark"] .srt-ws-tl-step.current .srt-ws-tl-label{ color:#fff; }
.srt-ws-tl-step.done .srt-ws-tl-label{ color:var(--srt-text); }
.srt-ws-tl-preview-tag{ font-size:9px; font-weight:700; color:var(--srt-muted-soft); margin-left:4px; }

@media (prefers-reduced-motion: reduce){
  .srt-ws-conf-fill, .srt-ws-card-chevron{ transition:none !important; }
}
