:root {
  --navy: #073b65;
  --navy-2: #0c4c7e;
  --ink: #17212b;
  --muted: #687684;
  --line: #dfe5ea;
  --soft: #f4f7f9;
  --blue-soft: #eaf3f9;
  --green: #16856b;
  --green-soft: #e7f5f0;
  --gold: #c8912d;
  --white: #ffffff;
  --shadow: 0 12px 36px rgba(20, 51, 72, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(31, 125, 180, .3); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template: 72px 1fr / 238px 1fr; }
.topbar { grid-column: 1 / -1; position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); font-family: Manrope, sans-serif; font-weight: 700; }
.brand img { width: 112px; height: 43px; object-fit: contain; }
.brand-rule { width: 1px; height: 25px; background: var(--line); }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.role-switcher { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.role-switcher select { border: 1px solid var(--line); border-radius: 8px; padding: 8px 32px 8px 10px; color: var(--ink); background: white; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--soft); position: relative; color: var(--navy); font-size: 20px; }
.icon-button i { width: 7px; height: 7px; background: #d25555; border: 2px solid white; border-radius: 50%; position: absolute; right: 7px; top: 7px; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: white; font-weight: 700; font-size: 13px; }

.sidebar { position: sticky; top: 72px; height: calc(100vh - 72px); padding: 24px 16px 18px; background: var(--white); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { width: 100%; border: 0; background: transparent; border-radius: 9px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; color: #536270; text-align: left; font-weight: 600; }
.nav-item:hover { background: var(--soft); color: var(--navy); }
.nav-item.active { background: var(--blue-soft); color: var(--navy); }
.nav-icon { width: 20px; height: 20px; display: grid; place-items: center; font-size: 13px; border: 1px solid currentColor; border-radius: 5px; }
.sidebar-foot { display: grid; gap: 14px; }
.cycle-card { padding: 15px; background: #f3f7fa; border: 1px solid #e3eaf0; border-radius: 10px; display: grid; gap: 7px; }
.cycle-card strong { font-size: 14px; }
.cycle-card small { color: var(--muted); }
.mini-progress { height: 5px; border-radius: 10px; background: #dce5eb; overflow: hidden; }
.mini-progress span { display: block; height: 100%; background: var(--green); border-radius: inherit; }

main { min-width: 0; padding: 34px 42px 64px; }
.page { max-width: 1180px; margin: 0 auto; animation: appear .28s ease; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.eyebrow { color: var(--navy-2); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3 { font-family: Manrope, sans-serif; margin: 0; color: #112637; }
h1 { margin-top: 6px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.035em; }
h2 { font-size: 21px; letter-spacing: -.02em; }
h3 { font-size: 16px; }
.page-head p { color: var(--muted); margin: 7px 0 0; }
.button { border: 1px solid var(--line); border-radius: 8px; padding: 10px 15px; background: white; color: var(--navy); font-weight: 700; }
.button:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(20, 51, 72, .08); }
.button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.button.secondary { background: var(--blue-soft); border-color: transparent; }
.button.ghost { background: transparent; }
.button-row { display: flex; gap: 9px; flex-wrap: wrap; }
.card { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 14px rgba(20, 51, 72, .035); }
.card-pad { padding: 22px; }
.grid-2 { display: grid; grid-template-columns: 1.45fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack { display: grid; gap: 18px; }
.split-title { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 17px; }
.link-button { border: 0; background: transparent; color: var(--navy-2); font-weight: 700; padding: 0; }

.hero-card { padding: 26px; color: white; background: linear-gradient(128deg, #06365e 0%, #0d527f 68%, #147c8c 150%); border-radius: 14px; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 230px; height: 230px; border: 42px solid rgba(255,255,255,.06); border-radius: 50%; right: -80px; top: -90px; }
.hero-card .eyebrow { color: #b8d7e8; }
.hero-card h2 { color: white; font-size: 26px; margin: 8px 0; max-width: 560px; }
.hero-card p { color: #d9e8f1; max-width: 650px; line-height: 1.55; margin: 0 0 21px; }
.hero-card .button { position: relative; z-index: 2; }
.hero-card .primary { background: white; color: var(--navy); border-color: white; }
.status-line { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; font-size: 13px; color: #cfe1ec; }
.status-line i { width: 7px; height: 7px; background: #71d4b6; border-radius: 50%; }

.metric { padding: 20px; }
.metric-label { color: var(--muted); font-size: 13px; }
.metric strong { display: block; font: 700 28px/1 Manrope, sans-serif; margin: 10px 0 8px; }
.metric small { color: var(--muted); }
.metric .trend { color: var(--green); font-weight: 700; }
.timeline { display: grid; }
.timeline-row { display: grid; grid-template-columns: 33px 1fr auto; gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.timeline-row:last-child { border-bottom: 0; }
.step-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #edf2f5; color: var(--muted); font-size: 12px; font-weight: 700; }
.timeline-row.done .step-dot { background: var(--green-soft); color: var(--green); }
.timeline-row.current .step-dot { background: var(--navy); color: white; box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline-row p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.status { padding: 5px 9px; border-radius: 20px; font-size: 11px; font-weight: 700; white-space: nowrap; background: #eef2f4; color: #64717c; }
.status.green { background: var(--green-soft); color: var(--green); }
.status.blue { background: var(--blue-soft); color: var(--navy-2); }
.status.amber { background: #fff5df; color: #8c641b; }

.list { display: grid; }
.list-row { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 13px 0; border-bottom: 1px solid #edf0f2; }
.list-row:last-child { border-bottom: 0; }
.person { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.list-row p { margin: 3px 0 0; font-size: 13px; color: var(--muted); }

.review-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; }
.section-nav { position: sticky; top: 100px; padding: 10px; }
.section-nav button { width: 100%; padding: 10px; border: 0; background: transparent; border-radius: 7px; text-align: left; color: var(--muted); font-weight: 600; }
.section-nav button.active { background: var(--blue-soft); color: var(--navy); }
.review-card { padding: 26px; }
.review-card + .review-card { margin-top: 16px; }
.review-intro { padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.review-intro p, .field-help { color: var(--muted); line-height: 1.55; }
.rating-legend { display: flex; gap: 6px; margin: 15px 0; flex-wrap: wrap; }
.rating-legend span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; font-size: 11px; color: var(--muted); }
.objective { padding: 20px 0; border-top: 1px solid var(--line); }
.objective:first-of-type { border-top: 0; }
.objective-head { display: flex; justify-content: space-between; gap: 15px; }
.objective-head p { color: var(--muted); margin: 5px 0 0; }
.score { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 9px; display: grid; place-items: center; color: white; background: var(--navy); font: 700 19px Manrope, sans-serif; }
.comment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
.comment { background: var(--soft); padding: 13px; border-radius: 8px; }
.comment b { font-size: 12px; color: var(--navy); }
.comment p { margin: 5px 0 0; font-size: 13px; color: #4e5c67; line-height: 1.45; }
.form-field { display: grid; gap: 7px; margin: 16px 0; }
.form-field label { font-weight: 700; font-size: 13px; }
.form-field textarea, .form-field input { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; resize: vertical; }
.form-field textarea { min-height: 100px; }
.score-picker { display: flex; gap: 8px; }
.score-picker button { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: white; font-weight: 700; color: var(--muted); }
.score-picker button.selected { background: var(--navy); color: white; border-color: var(--navy); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { padding: 10px 12px; background: var(--soft); color: var(--muted); text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); }
tbody tr:hover { background: #fbfcfd; }
.bar-row { display: grid; grid-template-columns: 35px 1fr 35px; gap: 10px; align-items: center; margin: 10px 0; font-size: 12px; }
.bar { height: 8px; background: #e7edf1; border-radius: 10px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--navy-2); border-radius: inherit; }
.notice { padding: 14px 16px; background: #fff8e9; border-left: 3px solid var(--gold); color: #6f5422; font-size: 13px; line-height: 1.5; margin-bottom: 18px; }

/* Guided appraisal walkthrough */
.walkthrough-page { max-width: 1260px; }
.walkthrough-head { align-items: center; }
.walkthrough-tools { display: grid; justify-items: end; gap: 9px; }
.save-state { color: var(--muted); font-size: 12px; }
.save-state i { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--green); }
.danger { color: #a23e3e; }
.button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.walkthrough-welcome { min-height: calc(100vh - 170px); display: grid; place-content: center; justify-items: center; text-align: center; padding: 50px 20px; }
.walkthrough-welcome h1 { max-width: 780px; margin: 10px auto 14px; font-size: clamp(34px, 5vw, 56px); }
.walkthrough-welcome > p { max-width: 720px; color: var(--muted); line-height: 1.65; font-size: 17px; }
.walkthrough-preview { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); width: min(1120px, 100%); margin: 34px 0; position: relative; }
.walkthrough-preview::before { content: ""; position: absolute; top: 19px; left: 6%; right: 6%; height: 2px; background: #d8e1e7; }
.walkthrough-preview div { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; padding: 0 7px; }
.walkthrough-preview span { width: 39px; height: 39px; display: grid; place-items: center; border: 4px solid var(--soft); border-radius: 50%; background: var(--navy); color: white; font-weight: 700; }
.walkthrough-preview b { font-size: 12px; line-height: 1.3; }
.walkthrough-preview small { color: var(--muted); font-size: 10px; }
.welcome-actions { justify-content: center; }
.privacy-note { margin-top: 16px; color: var(--muted); }
.flow-tracker { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; padding: 17px 20px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 12px; background: white; overflow-x: auto; }
.flow-step { position: relative; min-width: 112px; display: grid; justify-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); }
.flow-step::after { content: ""; position: absolute; top: 14px; left: calc(50% + 18px); width: calc(100% - 36px); height: 2px; background: #dde5ea; }
.flow-step:last-child::after { display: none; }
.flow-step span { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf2f5; font-weight: 700; font-size: 12px; }
.flow-step small { max-width: 105px; text-align: center; line-height: 1.25; }
.flow-step.done span { background: var(--green-soft); color: var(--green); }
.flow-step.done::after { background: #a8d7c7; }
.flow-step.active span { color: white; background: var(--navy); box-shadow: 0 0 0 4px var(--blue-soft); }
.flow-step.active small { color: var(--navy); font-weight: 700; }
.walkthrough-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 20px; align-items: start; }
.walkthrough-explainer { position: sticky; top: 92px; padding: 24px; }
.walkthrough-explainer h2 { margin: 8px 0 12px; }
.walkthrough-explainer > p { color: var(--muted); line-height: 1.6; }
.explainer-note { margin-top: 20px; padding: 14px; display: grid; gap: 6px; background: #fff8e9; border-radius: 8px; color: #6f5422; font-size: 12px; line-height: 1.45; }
.handoff { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.handoff span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.walkthrough-workspace { padding: 28px; }
.stage-header { margin-bottom: 22px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.stage-header h2 { margin: 7px 0; font-size: 25px; }
.stage-header p { margin: 0; color: var(--muted); line-height: 1.5; }
.case-summary, .decision-summary, .moderation-context, .final-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.case-summary div, .decision-summary div, .moderation-context div, .final-grid div { padding: 13px 15px; display: grid; gap: 4px; background: white; }
.case-summary span, .decision-summary span, .moderation-context span, .final-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.decision-summary strong, .moderation-context strong { color: var(--navy); font-size: 22px; }
.objective-brief { padding: 18px; margin-bottom: 20px; border-radius: 9px; background: var(--soft); }
.objective-brief h3 { margin: 10px 0 5px; }
.objective-brief p { margin: 0; color: var(--muted); line-height: 1.5; }
.walkthrough-workspace .form-field small { color: var(--muted); }
.walkthrough-workspace .form-field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; }
.stage-buttons { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }
.submitted-block { margin-bottom: 19px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; }
.submitted-block p { color: #4d5d69; line-height: 1.55; }
.submitted-rating { display: flex; justify-content: space-between; align-items: center; margin: 10px 0; }
.submitted-rating strong { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--navy); color: white; font-size: 20px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.comparison-grid > div { padding: 17px; display: grid; grid-template-columns: 1fr auto; gap: 8px; border: 1px solid var(--line); border-radius: 9px; }
.comparison-grid span { color: var(--muted); font-size: 12px; }
.comparison-grid strong { color: var(--navy); font-size: 24px; }
.comparison-grid small { grid-column: 1 / -1; color: #52616d; line-height: 1.45; }
.summary-sheet { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; }
.summary-sheet h3 { margin: 0 0 6px; color: var(--navy); }
.summary-sheet h3:not(:first-child) { margin-top: 18px; }
.summary-sheet p { margin: 0; color: #50606c; line-height: 1.55; }
.acknowledgement { display: flex; gap: 13px; padding: 17px; margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.acknowledgement:has(input:checked) { border-color: #86c6b1; background: var(--green-soft); }
.acknowledgement input { width: 20px; height: 20px; accent-color: var(--green); }
.acknowledgement span { display: grid; gap: 5px; }
.acknowledgement small { color: var(--muted); line-height: 1.4; }
.decision-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.decision { padding: 17px; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 9px; background: white; text-align: left; color: var(--ink); }
.decision span { color: var(--muted); font-size: 12px; }
.decision.selected { border-color: var(--navy); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--navy); }
.final-outcome { padding: 30px; margin-bottom: 20px; display: grid; justify-items: center; text-align: center; border-radius: 12px; color: white; background: linear-gradient(130deg, var(--navy), #0c6681); }
.final-outcome span { color: #cfe2ed; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.final-outcome strong { margin: 7px 0 0; font: 700 62px Manrope, sans-serif; }
.final-outcome b { font-size: 18px; }
.final-outcome small { margin-top: 9px; color: #cfe2ed; }
.objective-preview { grid-template-columns: repeat(5, minmax(130px, 1fr)); max-width: 880px; }
.objective-tracker { grid-template-columns: repeat(5, 1fr); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case-summary.four { grid-template-columns: repeat(4, 1fr); }
.category-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.category-chips span { padding: 8px 11px; border-radius: 20px; background: var(--blue-soft); color: var(--navy); font-size: 12px; font-weight: 700; }
.objective-total { margin: 20px 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.objective-total > span { display: block; padding: 10px 13px; background: var(--soft); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.objective-total div { display: flex; justify-content: space-between; padding: 11px 13px; border-top: 1px solid var(--line); }
.objective-total .total { background: var(--blue-soft); color: var(--navy); }
.objective-summary-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 10px; }
.objective-summary-head h3 { font-size: 19px; }
.objective-summary-head p { margin: 4px 0 0; color: var(--muted); }
.objective-summary-head > strong { padding: 8px 10px; border-radius: 8px; background: var(--navy); color: white; font-size: 18px; }
.objective-summary dl { display: grid; grid-template-columns: 1fr 1.4fr 1fr; margin: 18px 0 0; border-top: 1px solid var(--line); }
.objective-summary dl div { padding: 13px 12px 0 0; display: grid; gap: 4px; }
.objective-summary dt { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.objective-summary dd { margin: 0; font-weight: 600; line-height: 1.4; }
.objective-outcome strong { font-size: 44px; margin-block: 12px 3px; }
.profile-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding-bottom: 18px; }
.person.large { width: 48px; height: 48px; }
.profile-strip p { margin: 4px 0 0; color: var(--muted); }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-grid > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.check-grid span { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; }
.check-grid p { margin: 0; color: #475764; }
.document-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 14px 0 0; margin-top: 18px; border-top: 1px solid var(--line); }
.document-row div { display: grid; gap: 4px; }
.document-row div span { color: var(--muted); font-size: 12px; }
.rating-badge { display: inline-grid; min-width: 30px; height: 30px; place-items: center; border-radius: 7px; background: var(--navy); color: white; font-weight: 700; }
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 15px; }
.value-card { padding: 16px; border: 1px solid var(--line); border-radius: 9px; }
.value-card > div { display: flex; justify-content: space-between; align-items: center; }
.value-card p { color: var(--muted); line-height: 1.5; font-size: 13px; }
.compact-table { margin-top: 12px; }
.development-card { margin-top: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; }
.development-card > div p { color: var(--muted); }
.development-card dl { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 12px; margin: 17px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.development-card dl div { display: grid; gap: 5px; }
.development-card dt { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.development-card dd { margin: 0; font-weight: 600; }
.summary-rating { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px; margin-bottom: 16px; border-radius: 9px; color: white; background: linear-gradient(120deg,var(--navy),#17657b); }
.summary-rating > div { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 12px; }
.summary-rating span { grid-column: 1 / -1; color: #cfe2ed; font-size: 11px; text-transform: uppercase; }
.summary-rating strong { font-size: 38px; }
.summary-rating p { max-width: 330px; color: #dceaf1; font-size: 13px; }
.signoff-list { margin-top: 18px; }
.signoff-list > div { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.signoff-list p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.objective-list { display: grid; gap: 14px; }
.objective-progress-card { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 14px; }
.objective-progress-card h2 { margin: 10px 0 5px; }
.objective-progress-card p { color: var(--muted); margin: 0; }
.objective-progress-meta { display: flex; gap: 18px; }
.objective-progress-meta div { display: grid; align-content: start; gap: 5px; text-align: right; }
.objective-progress-meta span, .objective-progress-card small { color: var(--muted); font-size: 11px; }
.objective-progress-card .mini-progress, .objective-progress-card > small { grid-column: 1 / -1; }
.development-hero { padding: 25px; display: flex; justify-content: space-between; align-items: center; background: linear-gradient(120deg,#eef5f8,#fff); }
.development-hero h2 { margin: 10px 0 5px; }
.development-hero p { color: var(--muted); max-width: 680px; }
.development-progress { min-width: 105px; display: grid; justify-items: center; }
.development-progress strong { color: var(--navy); font-size: 36px; }
.development-progress span { color: var(--muted); font-size: 12px; }
.filter-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.filter-row input, .filter-row select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.calibration-checks { margin: 15px 0; }
.calibration-checks > div { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.calibration-checks > div > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); color: var(--navy); font-weight: 700; }
.calibration-checks p { margin: 0; display: grid; gap: 4px; }
.calibration-checks small { color: var(--muted); line-height: 1.4; }
.trend-bars { display: grid; gap: 16px; margin-top: 20px; }
.trend-bars > div { display: grid; grid-template-columns: 55px 1fr 42px; gap: 10px; align-items: center; font-size: 12px; }
.trend-bars .bar i { display: block; height: 100%; background: var(--navy-2); border-radius: inherit; }

dialog { width: min(620px, calc(100vw - 30px)); border: 0; border-radius: 14px; padding: 30px; box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(8, 29, 44, .48); backdrop-filter: blur(3px); }
dialog h2 { font-size: 25px; margin: 7px 0 10px; }
dialog > p { color: var(--muted); line-height: 1.55; }
.dialog-close { position: absolute; right: 16px; top: 14px; border: 0; background: transparent; font-size: 24px; color: var(--muted); }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.guide-grid div { background: var(--soft); padding: 14px; border-radius: 8px; display: grid; gap: 7px; }
.guide-grid span { color: var(--muted); font-size: 12px; line-height: 1.45; }
#toast { position: fixed; right: 25px; bottom: 25px; background: #102d41; color: white; border-radius: 9px; padding: 12px 16px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .25s; z-index: 100; }
#toast.show { transform: translateY(0); opacity: 1; }
.mobile-menu { display: none; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 76px 1fr; }
  .sidebar { padding-inline: 10px; }
  .nav-item { justify-content: center; }
  .nav-item span:last-child, .cycle-card, .sidebar-foot .nav-item span:last-child { display: none; }
  main { padding-inline: 25px; }
  .grid-2, .review-layout, .walkthrough-layout { grid-template-columns: 1fr; }
  .walkthrough-explainer { position: static; }
  .walkthrough-preview { grid-template-columns: repeat(4, 1fr); gap: 22px 0; }
  .walkthrough-preview::before { display: none; }
  .section-nav { position: static; display: flex; overflow-x: auto; }
  .section-nav button { white-space: nowrap; width: auto; }
}
@media (max-width: 650px) {
  .app-shell { display: block; }
  .topbar { height: 68px; padding: 0 14px; }
  .brand img { width: 88px; }
  .brand span:last-child, .brand-rule, .role-switcher span { display: none; }
  .sidebar { position: fixed; z-index: 30; left: 0; bottom: 0; top: auto; width: 100%; height: 64px; border: 0; border-top: 1px solid var(--line); padding: 7px; display: block; }
  .sidebar nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .nav-item { min-width: 82px; padding: 5px; display: grid; gap: 2px; justify-items: center; font-size: 10px; }
  .nav-item span:last-child { display: block; }
  .sidebar-foot { display: none; }
  main { padding: 24px 14px 90px; }
  .page-head { display: grid; }
  .grid-3, .guide-grid, .comment-grid, .case-summary, .case-summary.four, .decision-summary, .moderation-context, .final-grid, .comparison-grid, .decision-options, .form-grid, .objective-summary dl, .check-grid, .value-grid, .development-card dl, .filter-row { grid-template-columns: 1fr; }
  .profile-strip { grid-template-columns: auto 1fr; }
  .profile-strip > .status { grid-column: 1 / -1; justify-self: start; }
  .summary-rating, .development-hero { display: grid; }
  .objective-progress-card { grid-template-columns: 1fr; }
  .objective-progress-meta { justify-content: space-between; }
  .objective-progress-card .mini-progress, .objective-progress-card > small { grid-column: 1; }
  .walkthrough-head { align-items: start; }
  .walkthrough-tools { justify-items: start; }
  .walkthrough-preview { grid-template-columns: repeat(2, 1fr); }
  .flow-tracker { padding-inline: 10px; }
  .walkthrough-workspace { padding: 19px; }
  .stage-buttons { display: grid; }
  .topbar-actions { gap: 7px; }
  .icon-button { display: none; }
}

@media print {
  .topbar, .sidebar, .flow-tracker, .walkthrough-explainer, .stage-buttons { display: none !important; }
  .app-shell { display: block; }
  main { padding: 0; }
  .walkthrough-layout { display: block; }
  .walkthrough-workspace { border: 0; box-shadow: none; }
}
