:root {
  --ink: #12272f;
  --ink-2: #274049;
  --navy: #102f39;
  --navy-deep: #0b242c;
  --teal: #13a594;
  --teal-dark: #087d72;
  --mint: #d9f2eb;
  --paper: #f5f4ed;
  --card: #ffffff;
  --line: #dfe5df;
  --muted: #667980;
  --amber: #d99538;
  --red: #b54343;
  --shadow: 0 18px 50px rgba(18, 39, 47, .08);
  --radius: 18px;
  --sidebar: 258px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font: 15px/1.55 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(19, 165, 148, .42); outline-offset: 3px; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: white; color: var(--navy); }
.skip-link:focus { top: 12px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand--light { color: #f8fffd; }
.brand-mark { display: inline-grid; width: 37px; height: 37px; place-items: center; border-radius: 12px; color: var(--navy); background: var(--mint); font-weight: 850; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.eyebrow--light { color: #8be0d2; }
.muted { color: var(--muted); }

.button { display: inline-flex; min-height: 43px; align-items: center; justify-content: center; gap: 8px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 750; line-height: 1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.button:hover { transform: translateY(-1px); }
.button--primary { color: white; background: var(--teal-dark); box-shadow: 0 8px 20px rgba(8, 125, 114, .18); }
.button--primary:hover { background: #066d64; }
.button--secondary { color: var(--navy); border-color: #bbd8d1; background: #eaf7f3; }
.button--ghost { color: var(--ink); border-color: var(--line); background: white; }
.button--wide { width: 100%; }
.button--small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.text-button { appearance: none; padding: 5px; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.text-button--center { display: block; margin: 12px auto 0; }

.auth-page { background: var(--navy-deep); }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); }
.auth-brand { position: relative; display: flex; min-height: 100vh; flex-direction: column; overflow: hidden; padding: 48px clamp(34px, 5vw, 78px); color: white; background: var(--navy); }
.auth-brand::before { position: absolute; right: -170px; bottom: -170px; width: 540px; height: 540px; border: 1px solid rgba(139, 224, 210, .18); border-radius: 50%; box-shadow: 0 0 0 78px rgba(139, 224, 210, .035), 0 0 0 156px rgba(139, 224, 210, .02); content: ""; }
.auth-brand::after { position: absolute; right: 17%; top: 25%; width: 64px; height: 64px; border: 1px solid rgba(139, 224, 210, .38); border-radius: 20px; transform: rotate(12deg); content: ""; }
.auth-brand__message { position: relative; z-index: 1; max-width: 560px; margin: auto 0; padding: 70px 0 50px; }
.auth-brand h1 { max-width: 530px; margin: 0 0 20px; font-size: clamp(36px, 4.5vw, 64px); line-height: 1.04; letter-spacing: -.045em; }
.auth-brand__message p { max-width: 510px; color: #c3d6d5; font-size: 18px; }
.trust-list { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 20px; margin: 0; padding: 0; list-style: none; color: #bdd0cf; font-size: 12px; }
.trust-list li { display: flex; align-items: center; gap: 8px; }
.trust-list span { color: #80d5c8; font-weight: 800; }
.auth-panel { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 42px; background: #fbfaf6; }
.auth-form-wrap { width: min(100%, 440px); }
.auth-form-wrap--wide { width: min(100%, 620px); }
.auth-form-wrap--compact { width: min(100%, 390px); }
.auth-form-wrap h2 { margin: 0 0 10px; font-size: clamp(30px, 3vw, 42px); line-height: 1.1; letter-spacing: -.04em; }
.auth-form-wrap > .muted { margin: 0 0 28px; }
.auth-footer { position: fixed; right: 24px; bottom: 12px; color: #8b9898; font-size: 11px; }
.setup-callout { margin-top: 26px; padding: 16px 18px; border: 1px solid #cfe2dc; border-radius: 12px; background: #eff8f5; }
.setup-callout p { margin: 4px 0; color: var(--muted); font-size: 13px; }
.setup-callout a, .back-link a, a.back-link { color: var(--teal-dark); font-weight: 700; }
.back-link { margin: 18px 0 0; }

.form-stack { display: grid; gap: 16px; }
.form-grid { display: grid; gap: 15px; }
.form-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: var(--ink-2); font-size: 13px; font-weight: 700; }
label small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; border: 1px solid #ccd7d3; border-radius: 10px; color: var(--ink); background: white; }
input, select { height: 45px; min-height: 45px; padding: 10px 12px; }
textarea { min-height: 96px; padding: 12px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #a8bdb6; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); outline: 3px solid rgba(19, 165, 148, .12); }
.otp-input { height: 62px; text-align: center; font-size: 28px; font-weight: 800; letter-spacing: .3em; }
.alert { margin: 18px 0; padding: 12px 14px; border-radius: 9px; }
.alert--error { border: 1px solid #ebc5c5; color: #7d2727; background: #fff1f1; }
.mfa-setup { display: grid; grid-template-columns: 210px 1fr; gap: 24px; align-items: center; margin: 24px 0; }
.qr-code { width: 210px; border: 8px solid white; border-radius: 12px; box-shadow: var(--shadow); }
.numbered-steps { display: grid; gap: 10px; padding-left: 21px; color: var(--ink-2); }
.secret-code { display: block; overflow-wrap: anywhere; margin-top: 8px; padding: 10px; border-radius: 8px; background: #edf1ef; font-size: 12px; }
details summary { cursor: pointer; color: var(--teal-dark); font-weight: 700; }

.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
.sidebar { position: fixed; z-index: 20; display: flex; width: var(--sidebar); height: 100vh; flex-direction: column; padding: 27px 22px 22px; color: #d9e7e5; background: var(--navy-deep); }
.nav { display: grid; gap: 6px; margin-top: 45px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: #a9bebd; font-size: 14px; font-weight: 650; }
.nav-link span { width: 18px; color: #759794; font-size: 18px; text-align: center; }
.nav-link:hover { color: white; background: rgba(255,255,255,.055); }
.nav-link.is-active { color: white; background: rgba(105, 218, 200, .13); }
.nav-link.is-active span { color: #76d8ca; }
.sidebar-note { display: grid; grid-template-columns: 10px 1fr; gap: 2px 9px; margin-top: auto; padding: 13px; border: 1px solid rgba(135, 195, 187, .16); border-radius: 11px; background: rgba(255,255,255,.035); font-size: 12px; }
.sidebar-note small { grid-column: 2; color: #829d9b; }
.status-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #49c9a6; box-shadow: 0 0 0 4px rgba(73,201,166,.1); }
.app-main { grid-column: 2; min-width: 0; }
.topbar { display: flex; min-height: 74px; align-items: center; justify-content: space-between; padding: 12px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(245,244,237,.92); }
.topbar-org { color: var(--muted); font-size: 13px; font-weight: 700; }
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-menu > div { display: grid; }
.user-menu strong { font-size: 13px; }
.user-menu small { color: var(--muted); font-size: 11px; }
.avatar { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 50%; color: var(--navy); background: #cde9e2; font-weight: 800; }
.content { width: min(1500px, 100%); margin: 0 auto; padding: 44px clamp(24px, 4vw, 58px) 70px; }

.page-heading { max-width: 850px; margin-bottom: 32px; }
.page-heading--split { display: flex; max-width: none; align-items: flex-start; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 0 0 9px; font-size: clamp(34px, 4vw, 54px); line-height: 1.05; letter-spacing: -.045em; }
.page-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 16px; }
.page-heading > .back-link { display: block; margin: 0 0 20px; font-size: 13px; }
.heading-badges { display: flex; gap: 8px; margin: 18px 0 12px; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { display: grid; min-height: 142px; align-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 6px 24px rgba(18,39,47,.035); }
.metric-card--accent { color: white; border-color: var(--teal-dark); background: var(--teal-dark); }
.metric-card span { color: var(--muted); font-size: 12px; font-weight: 750; }
.metric-card--accent span, .metric-card--accent small { color: #c6e9e3; }
.metric-card strong { font-size: clamp(28px, 3vw, 39px); line-height: 1; letter-spacing: -.04em; }
.metric-card small { color: var(--muted); font-size: 11px; }
.dashboard-grid, .detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 20px; }
.panel { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 28px rgba(18,39,47,.04); }
.panel--wide { grid-column: 1; }
.panel--dark { color: white; border-color: var(--navy); background: var(--navy); }
.panel--dark h2 { margin: 0 0 10px; font-size: 27px; letter-spacing: -.03em; }
.panel--dark p { color: #bdd0cf; }
.panel--dark a { color: #86ddcf; font-weight: 750; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-heading h2, .panel > h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.panel-heading a { color: var(--teal-dark); font-size: 13px; font-weight: 750; }
.project-list { display: grid; }
.project-row { display: grid; grid-template-columns: 42px minmax(160px, 1fr) auto minmax(110px, auto); gap: 13px; align-items: center; padding: 14px 2px; border-top: 1px solid #edf0ed; }
.project-row:first-child { border-top: 0; }
.project-row:hover strong { color: var(--teal-dark); }
.project-icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: var(--teal-dark); background: var(--mint); font-weight: 850; }
.project-row__main, .project-value { display: grid; min-width: 0; }
.project-row__main small, .project-value small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.project-value { text-align: right; }
.project-value strong { font-size: 15px; }
.reminder-list { display: grid; }
.reminder-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 2px; border-top: 1px solid #edf0ed; }
.reminder-row:first-child { border-top: 0; }
.reminder-row > span:nth-child(2) { display: grid; min-width: 0; }
.reminder-row small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.reminder-count { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; color: #8a5a16; background: #fff0d7; font-size: 10px; font-weight: 850; }
.status, .confidence { display: inline-flex; width: fit-content; min-height: 25px; align-items: center; padding: 4px 9px; border-radius: 999px; color: #56656a; background: #edf0ef; font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.status--productive, .status--online, .status--scale { color: #087265; background: #dff3ed; }
.status--pilot, .status--measure, .status--in_progress { color: #8a5a16; background: #fff0d7; }
.status--paused, .status--maintenance { color: #7b5a25; background: #f3ead9; }
.status--retired, .status--offline { color: #8d3e3e; background: #f7e2e2; }
.status--discover, .status--planned { color: #465f7e; background: #e8eef7; }
.stage-list { display: grid; gap: 13px; }
.stage-row { display: grid; grid-template-columns: 31px 110px 1fr; gap: 10px; align-items: center; }
.stage-number { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #cde0db; border-radius: 50%; color: var(--teal-dark); font-size: 11px; font-weight: 800; }
.stage-row > span:nth-child(2) { display: grid; }
.stage-row small { color: var(--muted); font-size: 10px; }
.stage-bar { width: 100%; height: 7px; overflow: hidden; border: 0; border-radius: 99px; background: #e9eeeb; }
.stage-bar::-webkit-progress-bar { background: #e9eeeb; }
.stage-bar::-webkit-progress-value { border-radius: 99px; background: var(--teal); }
.stage-bar::-moz-progress-bar { border-radius: 99px; background: var(--teal); }
.empty-state { display: grid; min-height: 280px; place-items: center; align-content: center; padding: 28px; text-align: center; }
.empty-state--small { min-height: 130px; }
.empty-state h2, .empty-state h3 { margin: 6px 0; }
.empty-state p { max-width: 420px; margin: 0 0 18px; color: var(--muted); }
.empty-icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 16px; color: var(--teal-dark); background: var(--mint); font-size: 24px; }

.cards-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card { display: grid; min-height: 340px; grid-template-rows: auto 1fr auto auto; gap: 18px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(18,39,47,.04); }
.project-card__top, .project-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project-card h2 { margin: 3px 0 8px; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.project-card h2 a:hover { color: var(--teal-dark); }
.project-card p { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-kicker { color: var(--teal-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mini-metrics { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 13px 0; border-block: 1px solid #edf0ed; }
.mini-metrics div { padding: 0 9px; border-left: 1px solid #edf0ed; }
.mini-metrics div:first-child { padding-left: 0; border-left: 0; }
.mini-metrics dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.mini-metrics dd { margin: 3px 0 0; font-size: 14px; font-weight: 800; }
.project-card__footer { color: var(--muted); font-size: 11px; }
.project-card__footer a { color: var(--teal-dark); font-weight: 800; }

.project-form { display: grid; gap: 18px; }
.form-section { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 27px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.form-section__intro { display: flex; align-items: flex-start; gap: 13px; }
.form-section__intro > span { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; border-radius: 9px; color: var(--teal-dark); background: var(--mint); font-size: 11px; font-weight: 850; }
.form-section__intro h2 { margin: 0; font-size: 20px; }
.form-section__intro p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.form-section__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.field--full { grid-column: 1 / -1; }
.legacy-note { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid #cedfd9; border-radius: 10px; color: var(--ink-2); background: #f0f8f5; }
.legacy-note strong { font-size: 12px; }
.legacy-note span { color: var(--muted); font-size: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 0; }

.invite-result { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: center; margin-bottom: 18px; padding: 24px; border-radius: var(--radius); color: white; background: var(--teal-dark); }
.invite-result h2 { margin: 0 0 6px; font-size: 21px; }
.invite-result p { margin: 0; color: #c8ebe5; font-size: 12px; }
.invite-result code { overflow-wrap: anywhere; padding: 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 9px; color: white; background: rgba(0,0,0,.12); font-size: 11px; user-select: all; }
.team-layout { display: grid; grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr); gap: 18px; align-items: start; }
.team-layout > .panel--wide { grid-column: auto; }
.team-list { display: grid; }
.team-row { display: grid; grid-template-columns: 35px minmax(170px, 1fr) auto minmax(255px, auto) auto; gap: 11px; align-items: center; padding: 12px 0; border-top: 1px solid #edf0ed; }
.team-row:first-child { border-top: 0; }
.team-row__person { display: grid; min-width: 0; }
.team-row__person small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.team-row form { display: flex; align-items: center; gap: 6px; }
.team-row select { min-width: 95px; height: 35px; min-height: 35px; padding-block: 5px; font-size: 11px; }
.pending-invites { margin-top: 18px; }

.import-success { display: flex; gap: 10px; margin-bottom: 18px; padding: 14px 16px; border: 1px solid #a8d2c7; border-radius: 10px; color: #08665d; background: #e9f7f2; }
.import-success span { color: #47726c; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.import-form { display: grid; gap: 15px; }
.import-form input[type="file"] { height: auto; padding: 8px; }
.import-form textarea { min-height: 310px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; }
.import-help > p { color: var(--muted); font-size: 12px; }
.import-help .feature-list { padding-inline: 0; }
.import-rule { padding: 12px; border: 1px solid #dce6e1; border-radius: 9px; background: #f7faf8; }
.import-preview { margin-top: 18px; }
.import-confirm { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.alert ul { margin: 8px 0 0; padding-left: 20px; }

.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.integration-card { display: grid; gap: 15px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 28px rgba(18,39,47,.04); }
.integration-card__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.integration-icon { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; color: var(--teal-dark); background: var(--mint); font-size: 11px; font-weight: 850; }
.integration-card h2 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.integration-card > p { margin: 0; color: var(--muted); font-size: 12px; }
.integration-card .feature-list { padding-inline: 0; }
.integration-note { display: grid; gap: 5px; padding: 12px; border: 1px solid #dce6e1; border-radius: 9px; background: #f7faf8; }
.integration-note strong { font-size: 11px; }
.integration-note span { color: var(--muted); font-size: 10px; }
.integration-note code { overflow-wrap: anywhere; color: var(--teal-dark); }

.copilot-readiness { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.copilot-readiness__item { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 13px; border: 1px solid #ead7b5; border-radius: 11px; background: #fff9ee; }
.copilot-readiness__item > span { display: grid; width: 27px; height: 27px; flex: 0 0 auto; place-items: center; border-radius: 50%; color: #8a5a16; background: #ffe8bd; font-size: 11px; font-weight: 850; }
.copilot-readiness__item > div { display: grid; min-width: 0; }
.copilot-readiness__item strong { font-size: 11px; }
.copilot-readiness__item small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.copilot-readiness__item.is-ready { border-color: #c5dfd8; background: #f1faf7; }
.copilot-readiness__item.is-ready > span { color: #087265; background: #d7f0e9; }
.copilot-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 18px; align-items: start; }
.copilot-form-panel form { gap: 15px; }
.copilot-data-box { display: grid; gap: 5px; padding: 14px; border: 1px solid #dce6e1; border-radius: 10px; background: #f7faf8; }
.copilot-data-box strong { margin-top: 5px; font-size: 11px; }
.copilot-data-box strong:first-child { margin-top: 0; }
.copilot-data-box span, .copilot-disabled-note { margin: 0; color: var(--muted); font-size: 10px; }
.copilot-guardrails .feature-list { padding-inline: 0; }
.copilot-guardrails code { color: var(--teal-dark); }
.copilot-history { margin-top: 35px; }
.copilot-run-list { display: grid; gap: 14px; }
.copilot-run { padding: 0; overflow: hidden; }
.copilot-run.is-selected { border-color: #82c9bd; box-shadow: 0 10px 34px rgba(8,125,114,.12); }
.copilot-run__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 19px 21px; border-bottom: 1px solid var(--line); background: #fafbf8; }
.copilot-run__head h3 { margin: 9px 0 0; font-size: 19px; }
.copilot-run__head dl { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 20px; margin: 0; }
.copilot-run__head dl > div { display: grid; text-align: right; }
.copilot-run__head dt { color: var(--muted); font-size: 8px; font-weight: 750; text-transform: uppercase; }
.copilot-run__head dd { margin: 2px 0 0; font-size: 10px; font-weight: 750; }
.copilot-run pre { margin: 0; padding: 22px; overflow-wrap: anywhere; color: var(--ink-2); background: white; font: 12px/1.65 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: pre-wrap; }

.report-quality-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-bottom: 18px; }
.evidence-bars { display: grid; gap: 14px; }
.evidence-bars > div { display: grid; grid-template-columns: 145px 1fr; gap: 12px; align-items: center; }
.evidence-bars > div > span { display: grid; }
.evidence-bars small { color: var(--muted); font-size: 9px; }
.evidence-bars progress { width: 100%; height: 8px; overflow: hidden; border: 0; border-radius: 99px; background: #e9eeeb; }
.evidence-bars progress::-webkit-progress-bar { background: #e9eeeb; }
.evidence-bars progress::-webkit-progress-value { background: var(--teal); }
.evidence-bars progress::-moz-progress-bar { background: var(--teal); }
.report-table-panel { margin-top: 18px; }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 11px; }
.report-table th { padding: 10px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .06em; text-align: left; text-transform: uppercase; }
.report-table td { padding: 12px 10px; border-bottom: 1px solid #edf0ed; vertical-align: middle; }
.report-table td:first-child { display: grid; }
.report-table td:first-child small { color: var(--muted); font-size: 9px; }
.report-table td:last-child a { color: var(--teal-dark); font-weight: 800; white-space: nowrap; }

.report-page { min-height: 100vh; padding: 35px; background: #e9ece8; }
.report-document { width: min(1120px, 100%); margin: 0 auto; padding: 46px; border: 1px solid var(--line); background: white; box-shadow: 0 12px 42px rgba(18,39,47,.09); }
.report-document__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 32px; padding-bottom: 28px; border-bottom: 2px solid var(--navy); }
.report-document__header h1 { margin: 0 0 9px; font-size: 40px; letter-spacing: -.045em; }
.report-document__header p { max-width: 700px; margin: 0; color: var(--muted); }
.report-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.report-meta { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; border: 1px solid var(--line); }
.report-meta > div { display: grid; gap: 4px; padding: 14px; border-left: 1px solid var(--line); }
.report-meta > div:first-child { border-left: 0; }
.report-meta span, .report-roadmap span, .report-metrics span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
.report-meta strong { font-size: 13px; }
.report-section { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 10px; break-inside: avoid; }
.report-roadmap { display: grid; grid-template-columns: 1.8fr repeat(3, 1fr); gap: 12px; }
.report-roadmap > div, .report-metrics > div { display: grid; gap: 5px; }
.report-roadmap strong { font-size: 12px; }
.report-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.report-metrics strong { font-size: 18px; }
.report-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.report-record { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid #edf0ed; }
.report-record:first-of-type { border-top: 0; }
.report-record > span { color: var(--teal-dark); font-size: 10px; font-weight: 750; }
.report-record p, .report-section > p { margin: 4px 0; color: var(--ink-2); font-size: 10px; white-space: pre-wrap; }
.report-footer { margin-top: 24px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; text-align: center; }

.detail-grid { align-items: start; }
.detail-list { margin: 18px 0 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid #edf0ed; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 750; text-align: right; }
.tool-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 2px; border-top: 1px solid #edf0ed; }
.tool-row:hover strong { color: var(--teal-dark); }
.tool-row > span:nth-child(2) { display: grid; min-width: 0; }
.tool-row small { overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.tool-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 11px; color: var(--teal-dark); background: var(--mint); font-size: 11px; font-weight: 850; }
.notes { white-space: pre-wrap; color: var(--ink-2); }
.roadmap-detail { display: grid; grid-template-columns: minmax(0, 1.8fr) repeat(3, minmax(130px, .65fr)); gap: 12px; }
.roadmap-detail > div { display: grid; align-content: start; gap: 6px; min-height: 88px; padding: 16px; border: 1px solid #e4ebe7; border-radius: 11px; background: #fafbf8; }
.roadmap-detail span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.roadmap-detail strong { font-size: 14px; line-height: 1.4; }
.gitlab-snapshot { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.gitlab-snapshot > div { display: grid; gap: 4px; padding: 13px; border: 1px solid #e1e7e3; border-radius: 9px; background: #fafbf8; }
.gitlab-snapshot span { color: var(--muted); font-size: 9px; font-weight: 750; text-transform: uppercase; }
.gitlab-snapshot strong { font-size: 13px; }
.gitlab-snapshot small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }

.evidence-section { margin-top: 34px; scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.035em; }
.section-heading p { max-width: 760px; margin: 0; color: var(--muted); font-size: 13px; }
.count-badge { padding: 7px 11px; border-radius: 99px; color: var(--teal-dark); background: var(--mint); font-size: 10px; font-weight: 800; white-space: nowrap; }
.evidence-layout { display: grid; grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.evidence-form { display: grid; gap: 15px; position: sticky; top: 18px; }
.check-field { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 9px; padding: 11px; border: 1px solid #dce6e1; border-radius: 9px; background: #f7faf8; }
.check-field input { width: 18px; height: 18px; min-height: 18px; }
.measurement-history, .decision-history { display: grid; gap: 11px; }
.measurement-card, .decision-card { display: grid; gap: 13px; }
.measurement-card__head, .decision-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.measurement-card__head h3, .decision-card h3 { margin: 8px 0 0; font-size: 18px; letter-spacing: -.025em; }
.measurement-card__head > small, .decision-card__head > small { color: var(--muted); font-size: 9px; }
.measurement-values { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid #edf0ed; }
.measurement-values > div { display: grid; gap: 3px; padding: 11px; border-left: 1px solid #edf0ed; }
.measurement-values > div:first-child { border-left: 0; padding-left: 0; }
.measurement-values span { color: var(--muted); font-size: 9px; }
.measurement-values strong { font-size: 15px; }
.measurement-card > p, .decision-card > p { margin: 0; color: var(--ink-2); font-size: 12px; white-space: pre-wrap; }
.decision-card dl { margin: 0; }
.decision-card dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-top: 1px solid #edf0ed; font-size: 10px; }
.decision-card dt { color: var(--muted); }
.decision-card dd { margin: 0; text-align: right; }
.status--decision-approved { color: #087265; background: #dff3ed; }
.status--decision-rejected { color: #8d3e3e; background: #f7e2e2; }
.status--decision-needs_work { color: #8a5a16; background: #fff0d7; }

.tool-table { display: grid; min-width: 760px; }
.tool-table__head, .tool-table__row { display: grid; grid-template-columns: minmax(250px, 1.8fr) 110px 100px 100px 90px; gap: 16px; align-items: center; padding: 13px 8px; }
.tool-table__head { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tool-table__row { border-top: 1px solid #edf0ed; }
.tool-table__row > span:first-child { display: grid; min-width: 0; }
.tool-table__row small { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.tool-table--monitoring { min-width: 1080px; }
.tool-table--monitoring .tool-table__head, .tool-table--monitoring .tool-table__row { grid-template-columns: minmax(240px, 1.7fr) 95px 105px 80px 70px 120px 80px; }
.tool-table--monitoring .tool-table__row > span:nth-child(3), .tool-table--monitoring .tool-table__row > span:nth-child(6) { display: grid; gap: 3px; }
.tool-metrics .metric-card { min-height: 120px; }

.roadmap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.roadmap-column { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.roadmap-column__head { min-height: 155px; padding: 22px; border-bottom: 1px solid var(--line); background: #f8f9f5; }
.roadmap-column__head > span { color: var(--teal-dark); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.roadmap-column__head h2 { margin: 12px 0 2px; font-size: 26px; letter-spacing: -.035em; }
.roadmap-column__head p { margin: 0; color: var(--muted); font-size: 12px; }
.roadmap-column--now { border-color: #8fd1c6; box-shadow: 0 10px 35px rgba(8,125,114,.1); }
.roadmap-column--now .roadmap-column__head { color: white; border-color: var(--teal-dark); background: var(--teal-dark); }
.roadmap-column--now .roadmap-column__head > span, .roadmap-column--now .roadmap-column__head p { color: #c7ebe5; }
.roadmap-column--done { border-color: #b9d8d1; }
.roadmap-column--done .roadmap-column__head { background: #edf8f4; }
.roadmap-column--done .roadmap-column__head > span::before { margin-right: 5px; content: "✓"; }
.roadmap-column--later { opacity: .82; }
.feature-list { display: grid; gap: 0; margin: 0; padding: 9px 20px 20px; list-style: none; }
.feature-list li { display: grid; gap: 2px; padding: 13px 0; border-top: 1px solid #edf0ed; }
.feature-list li:first-child { border-top: 0; }
.feature-list strong { font-size: 13px; }
.feature-list span { color: var(--muted); font-size: 11px; }
.decision-note { margin-top: 20px; padding: 28px; border-radius: var(--radius); color: white; background: var(--navy); }
.decision-note h2 { max-width: 900px; margin: 0 0 8px; font-size: 27px; letter-spacing: -.03em; }
.decision-note p { margin: 0; color: #bfd1d0; }

.roadmap-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.roadmap-summary article { display: grid; min-height: 116px; align-content: space-between; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.roadmap-summary article > span { color: var(--muted); font-size: 11px; font-weight: 750; }
.roadmap-summary article > strong { font-size: 30px; line-height: 1; letter-spacing: -.035em; }
.roadmap-summary article > small { color: var(--muted); font-size: 10px; }
.roadmap-summary .roadmap-alert { border-color: #e7b9b9; background: #fff7f6; }
.roadmap-summary .roadmap-alert strong { color: #923f3f; }
.roadmap-view-switch { display: inline-flex; gap: 4px; margin-bottom: 18px; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: #e9ece8; }
.roadmap-view-switch a { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 750; }
.roadmap-view-switch a:hover { color: var(--ink); }
.roadmap-view-switch a.is-active { color: var(--navy); background: white; box-shadow: 0 3px 10px rgba(18,39,47,.07); }
.transformation-map { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 13px; overflow-x: auto; padding-bottom: 10px; }
.transformation-phase { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #f2f3ef; }
.transformation-phase > header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; min-height: 150px; align-content: start; padding: 19px; border-bottom: 1px solid var(--line); background: white; }
.transformation-phase > header > div > span { color: var(--teal-dark); font-size: 9px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.transformation-phase > header h2 { margin: 7px 0 0; font-size: 22px; letter-spacing: -.03em; }
.transformation-phase > header > strong { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; color: var(--teal-dark); background: var(--mint); font-size: 12px; }
.transformation-phase > header > p { grid-column: 1 / -1; margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.transformation-phase--productive { border-color: #9dcfc7; }
.transformation-phase--productive > header { background: #f1faf7; }
.transformation-phase__projects { display: grid; gap: 10px; align-content: start; padding: 10px; }
.roadmap-project { display: grid; gap: 11px; padding: 15px; border: 1px solid #e0e5e2; border-radius: 11px; background: white; box-shadow: 0 5px 18px rgba(18,39,47,.035); }
.roadmap-project:hover { border-color: #a8d2ca; box-shadow: 0 8px 24px rgba(18,39,47,.07); }
.roadmap-project--warning { border-color: #e7b9b9; background: #fffafa; }
.roadmap-project__link { display: grid; gap: 11px; }
.roadmap-project__top, .roadmap-project__footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.roadmap-project__top > small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.roadmap-project h3 { margin: 0; font-size: 16px; line-height: 1.2; letter-spacing: -.025em; }
.roadmap-project__link > p { min-height: 47px; margin: 0; color: var(--ink-2); font-size: 11px; line-height: 1.45; }
.roadmap-project dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.roadmap-project dl > div { padding: 8px; border-radius: 8px; background: #f5f7f4; }
.roadmap-project dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.roadmap-project dd { margin: 3px 0 0; font-size: 10px; font-weight: 750; }
.roadmap-project__footer { padding-top: 9px; border-top: 1px solid #edf0ed; color: var(--muted); font-size: 9px; }
.roadmap-project__footer > a { color: var(--teal-dark); font-weight: 800; }
.roadmap-sort-note { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--muted); font-size: 11px; }
.roadmap-sort-note span { color: var(--teal-dark); font-size: 16px; }
.transformation-phase__projects.is-sortable { min-height: 130px; }
.roadmap-project[draggable="true"] { cursor: grab; }
.roadmap-project[draggable="true"]:active { cursor: grabbing; }
.roadmap-project.is-dragging { opacity: .45; border-style: dashed; }
.transformation-phase__projects.is-drop-target { background: #e8f4f0; }
.roadmap-order-controls { display: inline-flex; align-items: center; gap: 3px; }
.roadmap-order-controls button { display: grid; width: 25px; height: 25px; place-items: center; padding: 0; border: 1px solid #d4dfda; border-radius: 6px; color: var(--teal-dark); background: #f7faf8; cursor: pointer; font-size: 12px; }
.roadmap-order-controls button:hover { border-color: #9bcfc5; background: var(--mint); }
.roadmap-drag-handle { padding-left: 3px; color: #7e918c; font-size: 15px; }
.roadmap-empty { display: grid; min-height: 120px; place-items: center; align-content: center; padding: 16px; border: 1px dashed #ced7d3; border-radius: 10px; color: var(--muted); text-align: center; }
.roadmap-empty span { font-size: 12px; font-weight: 750; }
.roadmap-empty small { font-size: 10px; }
.roadmap-inactive { margin-top: 18px; }
.roadmap-guidance { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); gap: 28px; align-items: center; margin-top: 18px; padding: 28px; border-radius: var(--radius); color: white; background: var(--navy); }
.roadmap-guidance h2 { max-width: 820px; margin: 0; font-size: 25px; letter-spacing: -.03em; }
.roadmap-guidance p { margin: 0; color: #bfd1d0; font-size: 13px; }

.timeline-panel { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.timeline-panel__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 22px; border-bottom: 1px solid var(--line); }
.timeline-panel__heading h2 { margin: 0; font-size: 23px; letter-spacing: -.025em; }
.timeline-panel__heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 12px; }
.timeline-scroll { overflow-x: auto; }
.timeline-calendar { min-width: 1180px; }
.timeline-header, .timeline-row { display: grid; grid-template-columns: 255px minmax(900px, 1fr); }
.timeline-header { min-height: 52px; align-items: stretch; border-bottom: 1px solid var(--line); color: var(--muted); background: #f8f9f6; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.timeline-header > span { display: flex; align-items: center; padding: 0 17px; border-right: 1px solid var(--line); }
.timeline-months { display: grid; grid-template-columns: repeat(12, minmax(75px, 1fr)); }
.timeline-months span { display: grid; place-items: center; border-left: 1px solid #e5e9e6; text-align: center; }
.timeline-months span:first-child { border-left: 0; }
.timeline-row { min-height: 76px; border-bottom: 1px solid #edf0ed; }
.timeline-row:last-child { border-bottom: 0; }
.timeline-project-label { display: grid; min-width: 0; align-content: center; gap: 3px; padding: 12px 17px; border-right: 1px solid var(--line); }
.timeline-project-label:hover strong { color: var(--teal-dark); }
.timeline-project-label strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-project-label span { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-track { display: grid; grid-template-columns: repeat(12, minmax(75px, 1fr)); align-items: center; min-width: 0; padding: 10px 0; background: repeating-linear-gradient(to right, transparent 0, transparent calc(8.333333% - 1px), #edf0ed calc(8.333333% - 1px), #edf0ed 8.333333%); }
.timeline-bar { z-index: 1; display: flex; min-width: 0; height: 48px; align-items: center; justify-content: space-between; gap: 8px; margin-inline: 4px; padding: 8px 10px; overflow: hidden; border: 1px solid #9bcfc5; border-radius: 8px; color: #075f57; background: #dff3ed; box-shadow: 0 4px 12px rgba(18,39,47,.06); }
.timeline-bar:hover { box-shadow: 0 7px 17px rgba(18,39,47,.12); }
.timeline-bar span { overflow: hidden; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.timeline-bar small { flex: 0 0 auto; font-size: 8px; font-weight: 750; }
.timeline-bar--discover { color: #465f7e; border-color: #bac9dc; background: #e8eef7; }
.timeline-bar--pilot, .timeline-bar--measure { color: #80500e; border-color: #e6c890; background: #fff0d7; }
.timeline-bar--scale { color: #075f57; border-color: #9bcfc5; background: #dff3ed; }
.timeline-no-bars { display: grid; min-height: 160px; place-items: center; align-content: center; gap: 5px; padding: 24px; color: var(--muted); text-align: center; }
.timeline-no-bars strong { color: var(--ink-2); font-size: 14px; }
.timeline-no-bars span { max-width: 550px; font-size: 11px; }
.timeline-start-1 { grid-column-start: 1; }
.timeline-start-2 { grid-column-start: 2; }
.timeline-start-3 { grid-column-start: 3; }
.timeline-start-4 { grid-column-start: 4; }
.timeline-start-5 { grid-column-start: 5; }
.timeline-start-6 { grid-column-start: 6; }
.timeline-start-7 { grid-column-start: 7; }
.timeline-start-8 { grid-column-start: 8; }
.timeline-start-9 { grid-column-start: 9; }
.timeline-start-10 { grid-column-start: 10; }
.timeline-start-11 { grid-column-start: 11; }
.timeline-start-12 { grid-column-start: 12; }
.timeline-span-1 { grid-column-end: span 1; }
.timeline-span-2 { grid-column-end: span 2; }
.timeline-span-3 { grid-column-end: span 3; }
.timeline-span-4 { grid-column-end: span 4; }
.timeline-span-5 { grid-column-end: span 5; }
.timeline-span-6 { grid-column-end: span 6; }
.timeline-span-7 { grid-column-end: span 7; }
.timeline-span-8 { grid-column-end: span 8; }
.timeline-span-9 { grid-column-end: span 9; }
.timeline-span-10 { grid-column-end: span 10; }
.timeline-span-11 { grid-column-end: span 11; }
.timeline-span-12 { grid-column-end: span 12; }
.timeline-unscheduled { margin-top: 18px; }
.timeline-chip-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.timeline-chip-list a { display: grid; gap: 3px; padding: 12px; border: 1px solid #e1e7e3; border-radius: 9px; background: #fafbf8; }
.timeline-chip-list a:hover { border-color: #a8d2ca; }
.timeline-chip-list strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-chip-list span { color: var(--muted); font-size: 9px; }

.security-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
.security-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.security-card > span { color: var(--teal); font-size: 11px; font-weight: 850; }
.security-card h2 { margin: 17px 0 8px; font-size: 19px; letter-spacing: -.025em; }
.security-card p { margin: 0; color: var(--muted); font-size: 12px; }
.audit-list { display: grid; }
.audit-row { display: grid; grid-template-columns: 10px 1fr auto; gap: 13px; align-items: center; padding: 12px 3px; border-top: 1px solid #edf0ed; }
.audit-row:first-child { border-top: 0; }
.audit-row > span:nth-child(2) { display: grid; }
.audit-row small, .audit-row time { color: var(--muted); font-size: 11px; }
.audit-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.message-card { max-width: 620px; margin: 9vh auto; padding: 45px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-align: center; }
.message-card h1 { margin: 0 0 10px; font-size: 38px; letter-spacing: -.04em; }
.message-card p { margin-bottom: 24px; color: var(--muted); }

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-summary { grid-template-columns: repeat(3, 1fr); }
  .timeline-chip-list { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 320px; padding: 32px 25px; }
  .auth-brand__message { padding: 60px 0 30px; }
  .auth-brand h1 { font-size: 39px; }
  .trust-list { display: none; }
  .auth-panel { min-height: auto; padding: 45px 24px 70px; }
  .auth-footer { position: static; margin-top: 30px; text-align: center; }
  .app-shell { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 16px 18px; }
  .nav { display: flex; overflow-x: auto; margin-top: 17px; padding-bottom: 4px; }
  .nav-link { flex: 0 0 auto; }
  .sidebar-note { display: none; }
  .app-main { min-width: 0; }
  .topbar { padding: 11px 18px; }
  .topbar-org, .user-menu > div { display: none; }
  .content { padding: 32px 18px 55px; }
  .page-heading--split { display: grid; }
  .dashboard-grid, .detail-grid { grid-template-columns: 1fr; }
  .panel--wide { grid-column: auto; }
  .form-section { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .tool-table { overflow-x: auto; }
  .roadmap-guidance { grid-template-columns: 1fr; }
  .roadmap-detail { grid-template-columns: 1fr; }
  .timeline-panel__heading { display: grid; }
  .team-layout, .invite-result { grid-template-columns: 1fr; }
  .import-layout { grid-template-columns: 1fr; }
  .evidence-layout { grid-template-columns: 1fr; }
  .evidence-form { position: static; }
  .report-quality-grid, .report-two-column { grid-template-columns: 1fr; }
  .integration-grid { grid-template-columns: 1fr; }
  .copilot-readiness { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .copilot-layout { grid-template-columns: 1fr; }
  .gitlab-snapshot { grid-template-columns: repeat(2, 1fr); }
  .report-document__header { display: grid; }
  .report-meta, .report-roadmap, .report-metrics { grid-template-columns: repeat(2, 1fr); }
  .team-row { grid-template-columns: 35px minmax(150px, 1fr) auto; }
  .team-row form { grid-column: 2 / -1; }
}

@media (max-width: 560px) {
  .auth-brand { min-height: 275px; }
  .auth-brand__message { padding: 45px 0 12px; }
  .auth-brand h1 { font-size: 32px; }
  .auth-brand__message p { font-size: 15px; }
  .form-grid--2, .form-section__fields { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .mfa-setup { grid-template-columns: 1fr; justify-items: center; }
  .metric-grid { grid-template-columns: 1fr; }
  .project-row { grid-template-columns: 40px 1fr auto; }
  .project-row .status { display: none; }
  .project-value { grid-column: 2 / -1; text-align: left; }
  .mini-metrics { grid-template-columns: 1fr; gap: 8px; }
  .mini-metrics div { padding: 0; border-left: 0; }
  .roadmap-grid, .security-grid { grid-template-columns: 1fr; }
  .roadmap-summary { grid-template-columns: repeat(2, 1fr); }
  .timeline-chip-list { grid-template-columns: 1fr; }
  .measurement-values { grid-template-columns: 1fr; }
  .measurement-values > div { padding-inline: 0; border-left: 0; border-top: 1px solid #edf0ed; }
  .measurement-values > div:first-child { border-top: 0; }
  .report-page { padding: 0; }
  .report-document { padding: 24px 18px; }
  .report-meta, .report-roadmap, .report-metrics { grid-template-columns: 1fr; }
  .gitlab-snapshot { grid-template-columns: 1fr; }
  .copilot-readiness { grid-template-columns: 1fr; }
  .copilot-run__head { display: grid; }
  .copilot-run__head dl { justify-content: flex-start; }
  .copilot-run__head dl > div { text-align: left; }
  .form-section { padding: 20px; }
  .page-heading h1 { font-size: 37px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { color: #111; background: white !important; }
  .sidebar, .topbar, .heading-actions, .report-actions, .roadmap-view-switch { display: none !important; }
  .app-main { grid-column: 1; }
  .app-shell { display: block; }
  .content, .report-page { padding: 0; }
  .report-document { width: 100%; padding: 0; border: 0; box-shadow: none; }
  .panel, .metric-card { box-shadow: none; }
  a { color: inherit; text-decoration: none; }
}
