/* Modern operational palette. No remote fonts or icon dependencies. */
:root {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  color: #16263d;
  background: #edf1f6;
  --navy: #10233c;
  --navy2: #183a51;
  --ink: #16263d;
  --muted: #47576b;
  --line: #cdd7e3;
  --blue: #006b69;
  --teal: #006b69;
  --mint: #e3f4ef;
  --amber: #85500b;
  --red: #a12d32;
  --paper: #fff;
  --surface: #f0f4f8;
  --radius: 16px;
}
body { font-family: inherit; background: #edf1f6; color: var(--ink); }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, .metric, .brand strong, .job-head strong, .risk-hero .score { font-family: inherit; letter-spacing: -.035em; }
h1 { font-size: clamp(27px, 2.2vw, 34px); line-height: 1.18; font-weight: 750; margin-bottom: 8px; }
h2 { font-size: 18px; line-height: 1.35; font-weight: 720; margin-bottom: 8px; }
h3 { font-size: 15px; line-height: 1.4; font-weight: 700; }
p { line-height: 1.6; }
.small, .card p { font-size: 13px; }
.micro { font-size: 12px; }
.muted { color: var(--muted); }
.kicker, .eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .035em; text-transform: none; }
.eyebrow { color: #00605e; margin-bottom: 8px; }
.footnote { font-size: 11px; color: var(--muted); line-height: 1.55; }
*:focus-visible { outline: 3px solid #26988a; outline-offset: 3px; }

/* A deep navy rail anchors the light operational workspace. */
.app-shell { grid-template-columns: 236px minmax(0, 1fr); }
.sidebar { background: linear-gradient(165deg, #10233c, #132d43); color: #eaf0f8; padding: 24px 13px 16px; gap: 9px; border-right: 1px solid #203e56; }
.brand { padding: 0 9px 23px; border-color: #36516a; position: relative; }
.brand-mark { width: 38px; height: 38px; transform: none; border: 1px solid #73d7c8; border-radius: 12px; background: #006b69; color: #fff; font-size: 23px; box-shadow: 0 4px 10px #00000015; }
.brand-mark span { transform: none; }
.brand strong { font-size: 22px; font-weight: 750; color: #fff; }
.brand small { font-size: 11px; letter-spacing: 0; color: #c1d0e1; text-transform: none; }
.nav-label { margin: 18px 12px 7px; color: #b6c9df; font-size: 11px; letter-spacing: .055em; text-transform: uppercase; }
.nav-button { color: #d8e4f2; padding: 10px 11px; border-radius: 10px; margin: 3px 0; font-size: 13px; font-weight: 550; gap: 11px; transition: background .15s, color .15s; }
.nav-button .icon { display: grid; place-items: center; width: 21px; height: 21px; flex: 0 0 21px; color: #b6c9df; opacity: 1; }
.icon svg, .mobile-menu svg, .nav-close svg, .side-symbol svg { width: 21px; height: 21px; display: block; }
.nav-button:hover { background: #243e59; color: #fff; }
.nav-button.active { background: #006b69; color: #fff; box-shadow: inset 3px 0 #80e3ce; font-weight: 700; }
.nav-button.active .icon { color: #e8fffa; }
.nav-button small { color: #c1d0e1; }
.sidebar-bottom { border: 1px solid #3f5b74; background: #1b3650; color: #d8e4f2; padding: 13px; font-size: 11px; border-radius: 12px; margin-top: 22px; }
.sidebar-bottom b { color: #fff; font-weight: 650; }
.topbar { min-height: 67px; padding: 12px clamp(22px, 2.7vw, 44px); border-color: var(--line); background: #ffffffed; backdrop-filter: blur(12px); box-shadow: none; }
.breadcrumbs { font-size: 12px; color: var(--muted); }
.breadcrumbs span { color: #7c95a4; padding: 0 8px; }
.breadcrumbs b { font-weight: 650; color: #385269; }
.topbar label { color: var(--muted); font-weight: 550; }
.topbar select { border-color: #c8d8e3; border-radius: 9px; background: #f4f8fb; padding: 8px 11px; font-size: 12px; color: #35516a; }
.avatar { width: 32px; height: 32px; background: #f8e6ce; color: #8a5921; font-size: 11px; }
.mobile-menu, .nav-close, .nav-backdrop { display: none; }
.main { max-width: 1530px; padding: 30px clamp(22px, 2.7vw, 44px) 60px; }
.page-intro { margin-bottom: 24px; align-items: center; }
.subtitle { font-size: 13px; line-height: 1.6; max-width: 760px; }
.demo-badge { border: 1px solid #ccdce5; color: #476477; background: #edf5f8; border-radius: 20px; padding: 7px 11px; font-size: 10px; text-transform: none; letter-spacing: 0; }

/* Consistent, readable surfaces and controls. */
.grid { gap: 18px; }
.card { padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 20px #10233c0a; }
.card.tight { padding: 20px; }
.card-title { margin-bottom: 16px; }
.card-title .hint { font-size: 12px; }
.card.dark { background: linear-gradient(120deg, #10233c, #183a51); color: #fff; border-color: #274d64; }
.card.dark p, .card.dark .muted, .card.dark small, .card.dark .hint, .card.dark .kicker { color: #d8e4f2; }
.card.dark .metric, .card.dark h2, .card.dark h3 { color: #fff; }
.metric, .card .metric { font-size: 31px; line-height: 1.2; font-weight: 750; letter-spacing: -.045em; color: #183f57; }
.metric small { font-size: 12px; letter-spacing: 0; font-weight: 550; }
.button { border: 1px solid #cbdce6; color: #29435f; background: #fff; padding: 10px 14px; min-height: 36px; font-size: 12px; font-weight: 650; border-radius: 9px; box-shadow: 0 1px 2px #26452405; transition: background .15s, border-color .15s; }
.button:hover { border-color: #85b9c5; background: #f0f8fa; }
.button.primary, .button.teal { background: var(--teal); border-color: var(--teal); color: #fff; box-shadow: 0 3px 8px #006b691c; }
.button.primary:hover, .button.teal:hover { background: #005653; border-color: #005653; }
.button.ghost { color: var(--teal); background: transparent; border-color: transparent; }
.button.warn { color: #a1493e; border-color: #e9d0c8; }
.button.sm { padding: 7px 11px; min-height: 31px; font-size: 11.5px; }
.button-group .button.active { background: #ddf1f1; color: #0a6d73; border-color: #7bbdc2; }
.button-row { gap: 9px; margin-top: 18px; }
.status { font-size: 10.5px; padding: 6px 9px; border-radius: 20px; letter-spacing: 0; font-weight: 650; }
.status.attention { background: #ffebc7; color: #754507; }
.status.risk { background: #ffe2d9; color: #952b30; }
.status.good { background: #def1e9; color: #185d43; }
.status.blue { background: #e0eef6; color: #24516e; }
.status.neutral { background: #edf2f6; color: #47576b; }
.pill { font-size: 11px; font-weight: 550; color: #47576b; }
.pill.on { background: #e3f3ee; color: #226b52; border-color: #a9d6c5; }
.notice { border-radius: 11px; padding: 12px 15px; font-size: 12px; background: #fff3db; border-color: #ecd19d; color: #704609; }
.notice.info { background: #edf5f9; border-color: #cbdfe9; color: #294c68; }
.notice.good { background: #e6f4eb; border-color: #b4d9c6; color: #185d43; }
.notice.bad { background: #fff0ea; border-color: #eac2b5; color: #952b30; }
.evidence { border-radius: 0 9px 9px 0; font-size: 12px; background: #edf6f9; border-color: #76adbd; color: #294c68; }
.evidence.warning { background: #fff4df; border-color: #d1a454; }
.table-wrap { border-radius: 11px; border-color: #d7e3ea; }
table { font-size: 12px; }
th { background: #eef4f8; color: var(--muted); font-size: 10.5px; text-transform: none; letter-spacing: 0; font-weight: 650; }
th, td { padding: 13px 14px; border-color: #e4edf2; }
tr:hover td { background: #f7fbfd; }
td small { font-size: 11.5px; line-height: 1.45; }
.list-row { border-color: #e4edf2; }
.list-row strong { font-size: 13px; font-weight: 650; }
.list-row small { font-size: 12px; line-height: 1.5; }
.link-button { color: #086e7c; text-decoration-color: #9ec8d1; font-size: 12px; font-weight: 650; }
.link-button:hover { color: #064f60; }
.review-form { background: #f5f8fb; border-color: #d7e4eb; border-radius: 11px; padding: 16px; }
.review-form label, .form-field { font-size: 12px; color: #35495f; font-weight: 600; }
.review-form input, .review-form select, .review-form textarea, .form-field input, .form-field select, .form-field textarea { border-color: #c9dce5; border-radius: 8px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.review-form small { font-size: 11.5px; }

/* Strong context bands distinguish the active job and its risk assessment. */
.job-head { background: linear-gradient(110deg, #10233c, #183a51); color: #fff; border: 1px solid #274d64; border-radius: 13px; box-shadow: 0 5px 16px #10233c0d; padding: 21px 23px; }
.job-head strong { font-weight: 700; font-size: 18px; color: #fff; }
.job-head small { color: #d8e4f2; font-size: 12px; }
.job-meta { gap: 19px; }
.job-meta div { border-color: #526b82; }
.job-meta span { font-size: 11px; letter-spacing: 0; text-transform: none; color: #c1d0e1; }
.job-meta b { font-size: 13px; color: #fff; font-weight: 650; }
.stage-rail { gap: 7px; margin-bottom: 18px; }
.stage-rail button { border-radius: 8px; font-size: 11px; padding: 8px 11px; background: #fff; border-color: #d1dfe8; color: var(--muted); }
.stage-rail button.active { background: #d8efee; border-color: #79babb; color: #0b7275; }
.stage-rail button.done { background: #e6f2ed; border-color: #abd1c3; color: #276b52; }
.risk-hero { border: 1px solid #274d64; border-left: 4px solid #f3bc61; border-radius: 16px; background: linear-gradient(115deg, #10233c, #183a51); padding: 27px; box-shadow: 0 5px 16px #10233c0d; color: #fff; }
.risk-hero .eyebrow { color: #ffda9d; }
.risk-hero p { font-size: 13px; color: #d8e4f2; }
.risk-hero .score { font-family: inherit; font-size: 44px; font-weight: 750; color: #ffda9d; }
.risk-hero .score em { font-family: inherit; font-size: 13px; color: #d8e4f2; }
.risk-hero .risk-meter { background: #526b82; height: 8px; }
.risk-hero .risk-meter span { background: #f3bc61; }
.risk-driver { border-color: var(--line); background: #fff; border-radius: 11px; padding: 16px; }
.risk-driver strong { font-size: 13px; }
.risk-driver .why { font-size: 12px; color: var(--muted); line-height: 1.55; }
.source-card, .click-card { border-color: var(--line); border-radius: 13px; padding: 18px; }
.click-card:hover { border-color: #83b6c1; background: #f3fafb; box-shadow: 0 4px 12px #123f570c; }
.comparison > div { background: #eef4f8; padding: 13px; border-radius: 9px; color: #47576b; }
.comparison b { color: #315b70; }
.lineage > div { border-color: #cfdfe8; background: #f4f8fb; border-radius: 12px; }
.lineage strong { color: #276574; }
.lineage small { font-size: 12px; color: var(--muted); }
.step-num { background: #e3eef4; color: #34647c; }
.chart-wrap { border-color: #d0e0e9; background: #fff; border-radius: 12px; }
.chart { min-width: 0; }
.legend, .chart-note { font-size: 12px; color: var(--muted); }
.timeline-row strong { font-size: 13px; }
.timeline-row small { font-size: 12px; }
.timeline-row .time { color: var(--muted); }
.timeline-row .marker { border-color: #ccdce5; }
.timeline-row .marker::before { background: #69a9b3; }
.drawer { padding: 28px; box-shadow: -12px 0 40px #283c2822; }
.drawer .close { background: #edf4f8; color: #3d667c; border-radius: 9px; padding: 8px 12px; }
.drawer-backdrop { background: #102c424d; backdrop-filter: blur(2px); }
.overlay-panel { background: #0d2d477a; backdrop-filter: blur(4px); }
.guide { border-radius: 20px; padding: 28px; }
.guide-progress { background: #dde9f0; }
.guide-progress span { background: #138b90; }
.guide summary { color: #236579; }
.toast { background: #163e56; font-size: 13px; box-shadow: 0 10px 28px #15364b28; border-radius: 12px; }

/* An inviting overview with a restrained operational snapshot. */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(310px, .85fr); gap: 32px; align-items: center; background: radial-gradient(circle at 90% 0%, #1c5660 0%, transparent 43%), linear-gradient(115deg, #10233c, #15364b); border: 1px solid #274d64; border-radius: 20px; padding: 34px; min-height: 300px; color: #fff; box-shadow: 0 12px 30px #10233c15; }
.hero-overline { display: flex; align-items: center; gap: 9px; color: #c7fff1; font-size: 11px; font-weight: 650; letter-spacing: .02em; }
.pulse-dot { display: inline-block; width: 7px; height: 7px; background: #61d4c3; border-radius: 50%; box-shadow: 0 0 0 4px #61d4c325; }
.home-hero h2 { color: #fff; font-size: clamp(27px, 2.65vw, 38px); line-height: 1.15; letter-spacing: -.04em; font-weight: 750; max-width: 590px; margin: 15px 0; }
.home-hero-copy > p { max-width: 580px; color: #e7f1f5; font-size: 13px; line-height: 1.65; margin: 0; }
.home-hero .button-row { margin-top: 23px; }
.home-hero .button.hero-secondary { background: #ffffff10; border-color: #6ba0ac; color: #efffff; box-shadow: none; }
.home-hero .button.hero-secondary:hover { background: #123b52; }
.hero-caption { color: #e0edf2; font-size: 11px; margin-top: 22px; }
.hero-caption span { padding: 0 6px; color: #8dcdc8; }
.home-hero-signal { border: 1px solid #c9dce5; background: #fff; color: var(--ink); border-radius: 15px; padding: 23px; box-shadow: 0 8px 24px #0e385a12; }
.signal-top, .signal-title, .signal-risk, .signal-stats { display: flex; justify-content: space-between; align-items: center; }
.signal-top { color: var(--muted); font-size: 10.5px; font-weight: 650; letter-spacing: 0; }
.signal-mark { color: #276477; background: #e3f1f4; padding: 6px 9px; border-radius: 7px; }
.signal-title { font-size: 19px; color: #213f55; font-weight: 700; margin: 19px 0 18px; }
.signal-title span { font-size: 12px; font-weight: 500; color: var(--muted); }
.signal-risk { align-items: baseline; gap: 8px; flex-wrap: wrap; }
.signal-risk-label { font-size: 12px; color: var(--muted); }
.signal-risk strong { margin-left: auto; font-size: 22px; font-weight: 700; color: #85500b; }
.signal-risk-score { font-size: 10.5px; color: var(--muted); }
.signal-track { height: 5px; border-radius: 8px; background: #e7eef3; overflow: hidden; margin: 12px 0 20px; }
.signal-track span { display: block; height: 100%; background: #d19c49; border-radius: 8px; }
.signal-divider { height: 1px; background: #dfe9ef; margin-bottom: 17px; }
.signal-stats { gap: 16px; align-items: flex-start; }
.signal-stats div { flex: 1; min-width: 0; }
.signal-stats small { display: block; color: var(--muted); font-size: 10.5px; margin-bottom: 7px; }
.signal-stats strong { display: block; font-size: 12px; line-height: 1.4; color: #29435f; font-weight: 650; }
.signal-foot { margin-top: 19px; color: var(--muted); font-size: 11px; }
.automation-panel { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 25px; margin-top: 20px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.section-heading h2 { font-size: 20px; margin: 0 0 6px; }
.section-heading p { font-size: 12px; color: var(--muted); margin: 0; }
.section-count { border: 1px solid #d1e2ea; background: #eff7fa; color: var(--muted); border-radius: 8px; padding: 8px 11px; white-space: nowrap; font-size: 11px; font-weight: 650; }
.automation-panel .automation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 21px; }
.automation-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 84px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #f5f8fb; text-align: left; color: var(--ink); transition: border-color .15s, background .15s; }
.automation-item:hover { background: #e7f3f0; border-color: #006b69; }
.automation-item .automation-index { display: grid; place-items: center; flex: 0 0 33px; width: 33px; height: 33px; border-radius: 10px; background: #006b69; color: #fff; font-size: 11px; font-weight: 650; margin: 0; }
.automation-item .automation-text { display: grid; gap: 4px; min-width: 0; margin: 0; }
.automation-text strong { font-size: 13px; color: #16263d; font-weight: 650; line-height: 1.35; }
.automation-text small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.45; margin: 0; }
.automation-item .automation-arrow { color: #51879b; font-size: 16px; margin: 0 0 0 auto; padding: 0 6px; }
.automation-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; padding-top: 18px; }
.overview-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .8fr); gap: 18px; margin-top: 20px; }
.home-job { padding: 25px; }
.home-job .section-heading h2 { font-size: 21px; }
.home-job-progress { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 25px 0 23px; }
.home-job-progress span { height: 5px; background: #e1eaf0; border-radius: 4px; }
.home-job-progress span.done { background: #299b8b; }
.home-job-progress span.current { background: #d39b45; }
.home-job-stage { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 10px; }
.home-job-stage div { padding: 13px; border-radius: 10px; background: #eff7fa; }
.home-job-stage small { display: block; color: var(--muted); font-size: 10px; font-weight: 550; margin-bottom: 8px; text-transform: none; }
.home-job-stage strong { display: block; font-size: 12px; font-weight: 650; line-height: 1.5; color: #294c68; }
.home-job-description { margin: 19px 0 0; color: var(--muted); font-size: 12px; }
.home-side { display: grid; gap: 18px; }
.home-side-card { position: relative; padding: 23px; }
.home-side-card .eyebrow { margin-bottom: 7px; padding-right: 34px; }
.home-side-card h2 { font-size: 17px; margin-bottom: 8px; }
.home-side-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin-bottom: 14px; }
.side-symbol { position: absolute; right: 20px; top: 20px; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 10px; background: #ffeacb; color: #996925; }
.side-symbol.connected { background: #e0f2f1; color: #168087; }

@media (max-width: 1200px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .home-hero { gap: 24px; padding: 28px; grid-template-columns: 1fr 1fr; }
  .home-hero h2 { font-size: 29px; }
  .overview-layout { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1050px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-hero-signal { width: 100%; }
}
@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { display: flex; position: fixed; inset: 0 auto 0 0; width: min(300px, 88vw); height: 100dvh; padding: 24px 16px; z-index: 27; transform: translateX(-100%); visibility: hidden; transition: transform .18s, visibility .18s; box-shadow: 8px 0 30px #233b2c20; }
  .sidebar.is-open { transform: translateX(0); visibility: visible; }
  .sidebar nav { display: block; overflow: visible; }
  .sidebar .nav-label, .sidebar-bottom { display: block; }
  .sidebar .brand { display: flex; padding: 0 9px 23px; border-bottom: 1px solid var(--line); }
  .sidebar .brand strong { font-size: 21px; }
  .nav-button { width: 100%; white-space: normal; padding: 10px 11px; }
  .nav-backdrop { display: block; position: fixed; inset: 0; width: 100%; border: 0; background: #173b5555; backdrop-filter: blur(2px); z-index: 26; }
  .mobile-menu, .nav-close { display: grid; place-items: center; border: 1px solid #c8dce6; background: #eff6fa; color: #326e82; border-radius: 8px; width: 35px; height: 35px; flex: 0 0 35px; }
  .nav-close { position: absolute; right: 0; top: 0; width: 29px; height: 29px; }
  .nav-close svg { width: 16px; height: 16px; }
  .brand { padding-right: 34px !important; }
  .breadcrumbs { max-width: 340px; }
  .topbar { min-height: 60px; }
  .main { padding: 24px 22px 48px; }
  .home-hero { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .home-hero { grid-template-columns: 1fr; padding: 25px; }
  .home-hero h2 { font-size: 30px; }
  .automation-panel .automation-grid { grid-template-columns: 1fr; }
  .home-side { grid-template-columns: 1fr; }
  .home-job-stage { grid-template-columns: 1fr 1fr; }
  .home-job-stage > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 660px) {
  .topbar { display: flex; padding: 10px 16px; gap: 8px; }
  .topbar-right { margin: 0; justify-content: flex-end; flex-wrap: nowrap; }
  .topbar-right label, .avatar { display: none; }
  .topbar select { max-width: 132px; font-size: 11px; padding: 8px; }
  .breadcrumbs { max-width: 135px; font-size: 11px; }
  .breadcrumbs span { padding: 0 2px; }
  .main { padding: 22px 16px 40px; }
  .card, .home-job, .automation-panel { padding: 20px; }
  .page-actions { margin-top: 13px; }
  .home-hero { padding: 23px 20px; border-radius: 16px; min-height: auto; }
  .hero-overline { font-size: 10px; }
  .home-hero h2 { font-size: 29px; }
  .home-hero-signal { padding: 20px; }
  .signal-risk-score { width: 100%; text-align: right; }
  .signal-stats { gap: 10px; }
  .signal-stats small { font-size: 10px; }
  .signal-stats strong { font-size: 11px; }
  .section-count { display: none; }
  .automation-foot { align-items: flex-start; flex-direction: column; }
  .job-head { padding: 19px; }
  .job-meta { gap: 15px; }
  .risk-hero { padding: 23px; }
  .drawer, .guide { padding: 22px; }
  .toast { bottom: 12px; right: 12px; left: 12px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Changes and pilot stages reuse the existing workspaces. */
.environment-label { display: block; max-width: 240px; font-size: 10px; line-height: 1.4; color: var(--muted); }
.owner-label { margin: 0 0 12px; font-size: 11.5px; font-weight: 650; color: #35657c; }
.log-provenance { font-size: 13px; color: #36566f; margin-bottom: 12px; }
.moc-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin: 6px 0 17px; }
.moc-header h2 { font-size: 22px; color: #193c55; }
.moc-header p { font-size: 13px; color: var(--muted); margin-bottom: 0; }
.moc-tabs { display: flex; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #cddfe8; }
.moc-tabs .button.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.assessment-stamp { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 17px; background: #fff3df; border: 1px solid #e4c590; border-radius: 11px; color: #7d561f; margin-bottom: 12px; }
.assessment-stamp.current { background: #e2f3ec; border-color: #aed5c6; color: #276c52; }
.assessment-stamp strong { font-size: 13px; }
.assessment-stamp span { font-size: 11.5px; line-height: 1.5; }
.logic-details { border-top: 1px solid #d7e4eb; margin: 17px 0; padding-top: 13px; }
.logic-details summary { cursor: pointer; font-size: 12px; font-weight: 650; color: #236477; }
.logic-details p { margin-top: 12px; }
.stage-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.pilot-stage { border: 1px solid #cbdfe8; padding: 21px; background: #f4f9fc; border-radius: 13px; }
.pilot-stage:first-child { border-color: #78bbb9; background: #eaf7f5; }
.pilot-stage strong { font-size: 12px; color: #29435f; }
.pilot-stage p { font-size: 12px; color: var(--muted); line-height: 1.6; margin: 7px 0 16px; }
.pilot-stage p:last-child { margin-bottom: 0; }
.stage-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: #163e56; color: #fff; font-weight: 750; margin-bottom: 16px; }
.pilot-stage:first-child .stage-number { background: var(--teal); }
@media (max-width: 1300px) { .environment-label { max-width: 190px; font-size: 9px; } }
@media (max-width: 1100px) { .environment-label { display: none; } .stage-cards { grid-template-columns: 1fr; } }
@media (max-width: 660px) { .assessment-stamp { align-items: flex-start; flex-direction: column; gap: 7px; } .moc-header { gap: 12px; } }

.environment-banner { display: none; background: #eaf2f7; border-bottom: 1px solid #ccdde7; color: #47677d; padding: 9px 22px; font-size: 10.5px; line-height: 1.5; }
@media (max-width: 1100px) { .environment-banner { display: block; } }

/* Secondary text is readable in every component, including legacy markup. */
.kicker, .card-title .hint, .metric small, .chart-note, .legend,
.source-card .muted, .flow-step small, .hero-copy p, td small,
.list-row small, .timeline-row small, .review-form small { color: var(--muted); }
.kicker { font-size: 11px; }
.footnote { font-size: 12px; }
.environment-label { font-size: 11px; }
.environment-banner { color: #29435f; background: #e2eaf3; border-color: #bdcbdc; }
.subtitle, .breadcrumbs, .topbar label { color: var(--muted); }
.breadcrumbs span { color: #526177; }
.demo-badge, .section-count { background: #e2eaf3; border-color: #bdcbdc; color: #29435f; }
.eyebrow { color: #00605e; }
.metric, .card .metric { color: #162f4d; }
.pill { background: #f0f4f8; border-color: #bdcbdc; color: #35495f; }
.pill.on { background: #e3f4eb; border-color: #8ebca4; color: #185d43; }
.status { font-size: 11px; }
.status.attention { background: #ffe9bd; color: #754507; }
.status.risk { background: #fce0df; color: #952b30; }
.status.good { background: #dcf1e5; color: #185d43; }
.status.blue { background: #dceaf8; color: #244f76; }
.status.neutral { background: #e6ebf2; color: #35495f; }
.notice { border-left-width: 3px; }
.notice.info, .evidence { background: #e8eff8; color: #29435f; border-color: #6188ad; }
.notice.good { background: #e3f4eb; color: #185d43; border-color: #6ca88a; }
.notice.bad { background: #fce9e7; color: #952b30; border-color: #c96864; }
.evidence.warning { background: #fff0d7; color: #704609; border-color: #c4882a; }
.notice:not(.info):not(.good):not(.bad) { background: #fff0d7; color: #704609; border-color: #c4882a; }
.table-wrap { border-color: #bdcbdc; }
th { background: #e2eaf3; color: #29435f; font-size: 11px; font-weight: 700; }
td { color: var(--ink); }
th, td, .list-row { border-color: #d5dfe9; }
tr:hover td { background: #eef5f8; }
.review-form { background: #f0f4f8; border-color: #c2cfdd; }
.review-form label, .form-field { color: #35495f; }
input, select, textarea,
.review-form input, .review-form select, .review-form textarea,
.form-field input, .form-field select, .form-field textarea {
  background: #fff; color: var(--ink); border-color: #a4b5c9;
  accent-color: var(--teal); caret-color: var(--teal);
}
input::placeholder, textarea::placeholder { color: #526177; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
button:disabled { opacity: 1; }
.button:disabled, .button:disabled:hover, .link-button:disabled,
.stage-rail button:disabled { opacity: 1; background: #e6ebf2; color: #536177; border-color: #b1bfce; box-shadow: none; }
input:disabled, select:disabled, textarea:disabled { background: #e6ebf2; color: #536177; opacity: 1; }
.button.ghost { color: #00605e; }
.button.warn { background: #fff5f3; color: #952b30; border-color: #cc9690; }
.button-group .button.active, .stage-rail button.active, .moc-tabs .button.active {
  background: var(--teal); color: #fff; border-color: var(--teal);
}
.stage-rail button.done { background: #e3f4eb; color: #185d43; border-color: #8ebca4; }
.step-num { background: #e2eaf3; color: #29435f; }
.step-num.done { background: #dcf1e5; color: #185d43; }
.owner-label, .log-provenance, .logic-details summary { color: #29435f; }
.assessment-stamp { background: #fff0d7; color: #704609; border-color: #c4882a; }
.assessment-stamp.current { background: #e3f4eb; color: #185d43; border-color: #6ca88a; }
.pilot-stage { background: #f0f4f8; border-color: #c2cfdd; border-top: 3px solid #29435f; }
.pilot-stage:first-child { background: #e7f3f0; border-color: #6ca88a; border-top-color: var(--teal); }
.pilot-stage:nth-child(2) { border-top-color: #356caa; }
.pilot-stage:nth-child(3) { border-top-color: #b67618; }
.signal-mark { background: #e2eaf3; color: #29435f; }
.signal-track span { background: #b67618; }
.home-job-stage div { background: #e8eff8; }
.home-job-progress span.done { background: var(--teal); }
.home-job-progress span.current { background: #b67618; }
.side-symbol { background: #ffe9bd; color: #754507; }
.side-symbol.connected { background: #dcf1e5; color: #185d43; }
.lineage > div { background: #f0f4f8; border-color: #c2cfdd; }
.lineage strong, .lineage .arrow, .automation-item .automation-arrow { color: #29435f; }
.legend .expected { background: #466f86; }
.legend .actual { background: #245ba3; }
.legend .event { background: #b4473b; }
.chart g[fill] { fill: var(--muted); }
.chart text { font-size: 12px; }
.chart text[fill] { fill: #952b30; }
.card.dark .metric { color: #fff; }
.card.dark .metric small, .card.dark .kicker, .card.dark .hint, .card.dark .muted { color: #d8e4f2; }
.home-hero .eyebrow { color: #c7fff1; }
.home-hero .button.hero-secondary { background: #183a51; color: #fff; border-color: #7d9bb1; }
.risk-hero .eyebrow { color: #ffda9d; }
.risk-hero .kicker, .risk-hero .muted, .risk-hero .small, .risk-hero small { color: #d8e4f2; }
.risk-hero .button:not(.primary):not(.teal):not(:disabled) { background: #fff; color: #29435f; }
.skip-link { color: var(--ink); border: 2px solid var(--teal); border-radius: 8px; }
::selection { background: #cce9e1; color: #10233c; }
@media (max-width: 1300px) { .environment-label { font-size: 11px; } }
@media (max-width: 900px) {
  .sidebar .brand { border-color: #36516a; }
  .nav-close { background: #243e59; color: #fff; border-color: #526b82; }
}

/* Reporting and presenter routing follow the shared contrast-first palette. */
.presentation-bar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 15px 18px; margin: 0 0 20px; border: 1px solid #94b8b0; border-left: 4px solid #006b69; border-radius: 12px; background: #e7f3f0; color: #16263d; }
.presentation-bar strong { display: block; font-size: 13px; }
.presentation-bar small { display: block; margin-top: 5px; color: #47576b; font-size: 12px; line-height: 1.5; }
.presentation-bar .button-row { margin: 0; flex-shrink: 0; }
.report-center { display: grid; gap: 20px; }
.report-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 20px 0; }
.report-steps span { background: #e2eaf3; color: #29435f; border: 1px solid #bdcbdc; border-radius: 9px; padding: 11px 13px; font-size: 12px; font-weight: 650; }
.report-steps span.done { background: #10233c; color: #fff; border-color: #10233c; }
.report-templates { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.report-template { display: grid; justify-items: start; align-content: start; gap: 9px; padding: 18px; min-height: 150px; border: 1px solid #a4b5c9; border-radius: 12px; background: #f5f8fb; color: #16263d; text-align: left; }
.report-template strong { font-size: 14px; }
.report-template small { color: #47576b; font-size: 12px; line-height: 1.5; }
.report-template:hover { background: #e7f3f0; border-color: #006b69; }
.report-template.selected { border: 2px solid #006b69; padding: 17px; background: #e7f3f0; box-shadow: 0 0 0 2px #006b6914; }
.report-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #16263d; background: #f5f8fb; border: 1px solid #cdd7e3; border-radius: 10px; padding: 18px; font: 13px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; max-height: 580px; overflow: auto; }
@media (max-width: 1100px) { .report-templates { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .presentation-bar { align-items: flex-start; flex-direction: column; } .report-steps { grid-template-columns: 1fr; } }
@media (max-width: 660px) { .report-templates { grid-template-columns: 1fr; } }
@media print {
  @page { size: A4; margin: 18mm; }
  body, .workspace, .main { background: #fff; }
  .app-shell { display: block; }
  .sidebar, .topbar, .environment-banner, .drawer, .drawer-backdrop, .overlay-panel, .toast { display: none !important; }
  .main { max-width: none; padding: 0; margin: 0; }
  .main > *:not(.report-center) { display: none !important; }
  .report-center > *:not(.report-output) { display: none !important; }
  .report-output { border: 0; box-shadow: none; padding: 0; }
  .report-output .report-actions { display: none; }
  .report-body { max-height: none; overflow: visible; border: 0; background: #fff; padding: 0; font-size: 11px; }
}
