:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #17223b; background: #f3f6f9; }
body { margin: 0; }
.skip-link { position: absolute; left: -9999px; top: .5rem; z-index: 100; background: white; color: #15324b; padding: .75rem; }
.skip-link:focus { left: .5rem; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #f4b400; outline-offset: 2px; }
header { background: #15324b; padding: 1rem 1.5rem; }
header a { color: white; text-decoration: none; font-weight: 700; }
main { max-width: 960px; margin: 3rem auto; padding: 0 1rem; }
.card { background: white; border-radius: 14px; padding: 2rem; box-shadow: 0 10px 30px rgba(20,48,72,.1); }
.narrow { max-width: 440px; margin: auto; }
input, select, textarea { width: 100%; box-sizing: border-box; padding: .7rem; border: 1px solid #bdc8d2; border-radius: 7px; font: inherit; }
button, .button { display: inline-block; background: #b5262d; color: white; border: 0; border-radius: 7px; padding: .7rem 1rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: #e7edf2; color: #15324b; }
.error { color: #a21820; }
.subnav { display: flex; gap: 1rem; margin: -1.5rem 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid #dbe2e8; flex-wrap: wrap; }
.subnav a { color: #15324b; font-weight: 700; text-decoration: none; }
.page-heading, .section-heading, .actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading h1, .section-heading h2, .section-heading h3 { margin: 0; }
.eyebrow { margin: 0 0 .35rem; color: #607385; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.metric { background: #15324b; color: white; border-radius: 12px; padding: 1.25rem; }
.metric strong, .metric span { display: block; }
.metric strong { font-size: 2rem; }
.list { padding: 0; overflow: hidden; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; color: inherit; text-decoration: none; border-bottom: 1px solid #edf1f4; }
.list-row:last-child { border-bottom: 0; }
.list-row span, .list-row small { display: block; }
.list-row small, .muted { color: #607385; }
.version-card, .job-summary, .form-card, .workflow-guide { margin-bottom: 1.5rem; }
.steps, .execution-steps { padding-left: 1.5rem; }
.execution-step { padding: 1rem 0 1.5rem; border-bottom: 1px solid #edf1f4; }
.execution-step:last-child { border-bottom: 0; }
.status { display: inline-block; border-radius: 999px; padding: .25rem .65rem; background: #e7edf2; color: #33485a; font-size: .78rem; font-weight: 800; }
.status.active, .status.published, .status.in_progress { background: #dceeff; color: #07548c; }
.status.completed, .status.ready { background: #daf3e5; color: #17633b; }
.status.waived { background: #fff0cc; color: #6c4b00; }
.status.retired { background: #eee9e2; color: #685948; }
.evidence { margin-top: 1rem; padding: 1rem; border-left: 4px solid #2b7a53; background: #f1f8f4; }
.job-summary dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 0; }
.job-summary dt { color: #607385; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.job-summary dd { margin: .25rem 0 0; }
.message { padding: .8rem 1rem; border-radius: 8px; background: #dceeff; }
.message.success { background: #daf3e5; }
.message.error { background: #fde3e3; color: #7d151a; }
.errorlist { color: #a21820; }
.form-field { margin: 0 0 1rem; }
.resolution-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.resolution-actions form { padding: 1rem; border: 1px solid #dbe2e8; border-radius: 8px; }
.resolution-actions h4 { margin-top: 0; }
.locked-note { color: #607385; font-size: .9rem; }
.form-field label { display: inline-block; margin-bottom: .35rem; font-weight: 700; }
.form-field.has-error { border-left: 4px solid #a21820; padding-left: .8rem; }
.form-field.has-error input, .form-field.has-error select, .form-field.has-error textarea { border-color: #a21820; }
.form-error-summary { margin: 0 0 1.25rem; padding: 1rem 1.25rem; border: 2px solid #a21820; border-radius: 8px; background: #fff3f3; }
.form-error-summary h3 { margin: 0 0 .5rem; }
.form-error-summary ul, .errorlist { margin: .4rem 0 0; }
.form-error-summary a, .errorlist { color: #7d151a; }
.help-text { margin-top: .35rem; color: #526777; font-size: .9rem; }
.required-marker { color: #a21820; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.report-filters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; }
.report-filters p { margin: 0; }
.report-filters label { display: block; margin-bottom: .35rem; color: #607385; font-size: .8rem; font-weight: 800; }
.report-filters .actions { align-self: end; }
.report-metrics { grid-template-columns: repeat(4, 1fr); }
.feedback-metrics { grid-template-columns: repeat(5, 1fr); }
.feedback-filters { grid-template-columns: repeat(3, 1fr); }
.report-section { margin-bottom: 1.5rem; }
.inline-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.inline-totals div { border-left: 4px solid #b5262d; padding-left: 1rem; }
.inline-totals dt { color: #607385; font-size: .8rem; font-weight: 800; text-transform: uppercase; }
.inline-totals dd { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .75rem; border-bottom: 1px solid #edf1f4; text-align: left; vertical-align: top; }
th { color: #607385; font-size: .78rem; text-transform: uppercase; }
.workflow-state-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1rem; margin: 1rem 0 1.5rem; }
.workflow-state { padding: 1rem; border: 1px solid #dbe2e8; border-radius: 10px; background: #f9fbfc; }
.workflow-state.initial { border-left: 5px solid #176b87; }
.workflow-state.terminal { border-right: 5px solid #2b7a53; }
.state-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.state-details { display: grid; gap: .5rem; }
.state-details div { display: grid; grid-template-columns: minmax(7rem, .45fr) 1fr; gap: .75rem; }
.state-details dt { color: #607385; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.state-details dd { margin: 0; }
.state-requirements { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #dbe2e8; }
.compact-actions { flex-wrap: wrap; font-size: .9rem; }
.workflow-transitions { margin: 1rem 0; }
.current-state { border-top: 5px solid #176b87; }
.state-due { font-weight: 800; color: #8a5b13; }
.requirements-panel { display: grid; gap: .75rem; margin: 1rem 0; padding: 1rem; border-radius: 10px; background: #f4f7f9; }
.requirements-panel h3, .requirements-panel h4 { margin: 0; }
.requirement-row { display: grid; grid-template-columns: minmax(12rem, 1fr) 2fr; gap: 1rem; padding: .85rem; border-left: 4px solid #8a5b13; background: white; }
.requirement-row.satisfied { border-left-color: #2b7a53; }
.requirement-row > div { display: grid; gap: .25rem; align-content: start; }
.transition-action { display: grid; grid-template-columns: minmax(12rem, .75fr) 1.5fr auto; gap: 1rem; align-items: end; padding: 1rem 0; border-bottom: 1px solid #edf1f4; }
.transition-action > div { display: grid; gap: .25rem; }
.transition-history { display: grid; gap: .75rem; padding-left: 1.5rem; }
.transition-history li { padding: .75rem 1rem; border-left: 4px solid #176b87; background: #f4f7f9; }
.transition-history span, .transition-history small { display: block; margin-top: .25rem; }
.dashboard-shell { display: grid; gap: 1.5rem; }
.dashboard-hero { position: relative; overflow: hidden; padding: 2.25rem; border-radius: 18px; background: linear-gradient(135deg, #15324b 0%, #1c5266 58%, #2b7a53 100%); color: white; box-shadow: 0 16px 38px rgba(20,48,72,.18); }
.dashboard-hero::after { position: absolute; right: -4rem; bottom: -6.5rem; width: 16rem; height: 16rem; border: 2.5rem solid rgba(255,255,255,.08); border-radius: 50%; content: ""; }
.dashboard-hero .eyebrow { color: #c5e4e6; }
.dashboard-hero h1 { position: relative; z-index: 1; margin: 0; font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.035em; }
.dashboard-hero p:last-child { position: relative; z-index: 1; max-width: 42rem; margin: .75rem 0 0; color: #e8f2f3; }
.dashboard-organizations { display: grid; gap: 1.5rem; }
.dashboard-organization { padding: 1.5rem; border: 1px solid #dfe7ec; border-radius: 16px; background: white; box-shadow: 0 10px 28px rgba(20,48,72,.08); }
.dashboard-organization-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.dashboard-organization-heading h2 { margin: 0; font-size: 1.45rem; }
.role-badge { display: inline-block; padding: .4rem .75rem; border-radius: 999px; background: #e7edf2; color: #33485a; font-size: .78rem; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.dashboard-tile { --tile-accent: #b5262d; position: relative; display: flex; min-height: 165px; overflow: hidden; flex-direction: column; gap: .85rem; box-sizing: border-box; padding: 1.15rem; border: 1px solid #dfe7ec; border-top: 4px solid var(--tile-accent); border-radius: 12px; background: linear-gradient(155deg, #fff 55%, #f5f8fa 100%); color: #17223b; text-decoration: none; box-shadow: 0 5px 16px rgba(20,48,72,.07); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.dashboard-tile::after { position: absolute; right: -2.2rem; top: -2.7rem; width: 7rem; height: 7rem; border-radius: 50%; background: var(--tile-accent); content: ""; opacity: .055; }
.dashboard-tile:hover { transform: translateY(-3px); border-color: var(--tile-accent); box-shadow: 0 12px 24px rgba(20,48,72,.13); }
.dashboard-tile-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: 10px; background: #edf2f5; color: var(--tile-accent); font-size: 1.35rem; font-weight: 900; }
.dashboard-tile-copy { display: grid; gap: .35rem; }
.dashboard-tile-copy strong { font-size: 1.05rem; }
.dashboard-tile-copy small { color: #607385; font-size: .88rem; line-height: 1.45; }
.dashboard-tile-action { margin-top: auto; color: var(--tile-accent); font-size: .86rem; font-weight: 800; }
.dashboard-tile--intake { --tile-accent: #b5262d; }
.dashboard-tile--operations { --tile-accent: #176b87; }
.dashboard-tile--readiness { --tile-accent: #2b7a53; }
.dashboard-tile--portal { --tile-accent: #8a5b13; }
.dashboard-tile--reports { --tile-accent: #5550a4; }
.dashboard-tile--performance { --tile-accent: #a3446d; }
.dashboard-tile--assessments { --tile-accent: #3c6bba; }
.dashboard-tile--feedback { --tile-accent: #a65328; }
.dashboard-signout { display: flex; justify-content: flex-end; }
.dashboard-empty { text-align: center; }
@media (max-width: 640px) {
  main { margin-top: 2rem; }
  .metrics, .job-summary dl, .report-filters, .feedback-filters, .inline-totals, .resolution-actions, .requirement-row, .transition-action { grid-template-columns: 1fr; }
  .page-heading, .section-heading, .list-row { align-items: flex-start; }
  .dashboard-hero, .dashboard-organization { padding: 1.25rem; }
  .dashboard-organization-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dashboard-tile { transition: none; }
  .dashboard-tile:hover { transform: none; }
}
