:root {
  color-scheme: light;
  --navy: #0C113D;
  --navy-2: #17245f;
  --blue: #0047BB;
  --blue-soft: #e7efff;
  --orange: #F28832;
  --orange-soft: #fff0e3;
  --green: #24845a;
  --green-soft: #e8f5ed;
  --red: #b42318;
  --red-soft: #fdebea;
  --purple: #635b9f;
  --cyan: #14849a;
  --bg: #f6f7fa;
  --card: #fff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #dce4ed;
  --shadow: 0 8px 28px rgba(12, 17, 61, .08);
  --radius: 8px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.timesheet-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.timesheet-period { display: flex; align-items: center; gap: 24px; padding: 16px; margin-bottom: 14px; }
.timesheet-period label { display: grid; gap: 7px; min-width: 220px; font-size: 12px; font-weight: 700; }
.timesheet-period strong { color: var(--text); font-size: 15px; }
.timesheet-period p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.kpi-grid.timesheet-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timesheet-progress { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; }
.timesheet-progress progress { flex: 1; width: 100%; height: 9px; border: 0; border-radius: 9px; overflow: hidden; background: var(--line); accent-color: var(--blue); }
.timesheet-progress progress::-webkit-progress-bar { background: var(--line); border-radius: 9px; }
.timesheet-progress progress::-webkit-progress-value { background: var(--blue); border-radius: 9px; }
.timesheet-progress progress::-moz-progress-bar { background: var(--blue); border-radius: 9px; }
.timesheet-progress span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.timesheet-editor > header, .timesheet-history > header { gap: 12px; flex-wrap: wrap; }
.timesheet-editor > header p, .timesheet-history > header p { font-size: 11px; line-height: 1.5; }
.timesheet-hint { margin: 0; padding: 12px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; border-bottom: 1px solid var(--line); }
.time-entry-row { display: grid; grid-template-columns: minmax(160px, 1fr) 140px minmax(220px, 2fr) 34px; align-items: end; gap: 12px; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.time-entry-row label { min-width: 0; }
.time-entry-row label > span { display: block; font-size: 11px; font-weight: 700; margin-bottom: 7px; color: var(--muted); }
.time-entry-row select, .time-entry-row input { font-size: 13px; }
.time-entry-remove { margin-bottom: 4px; color: var(--red); }
.timesheet-actions { display: flex; align-items: center; gap: 16px; padding: 16px; justify-content: space-between; }
.timesheet-actions > span { font-size: 12px; color: var(--muted); line-height: 1.5; }
.timesheet-actions .button { flex-shrink: 0; }
.timesheet-history { margin-top: 22px; }
.timesheet-history-item { border-bottom: 1px solid var(--line); padding: 16px; }
.timesheet-history-item:last-child { border-bottom: 0; }
.timesheet-history-item summary { display: flex; align-items: center; gap: 16px; cursor: pointer; font-size: 13px; }
.timesheet-history-item summary::before { content: "▸"; color: var(--blue); }
.timesheet-history-item details[open] summary::before { content: "▾"; }
.timesheet-history-item summary > strong { margin-left: auto; text-align: right; }
.timesheet-history-item summary small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 400; }
.timesheet-history-item details[open] summary { margin-bottom: 16px; }
.timesheet-history-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.timesheet-checkbox { display: flex !important; align-items: center; gap: 10px; }
.timesheet-checkbox input { width: 18px; height: 18px; }
.timesheet-checkbox span { margin: 0 !important; }
@media (max-width: 1050px) {
  .time-entry-row { grid-template-columns: minmax(140px, 1fr) 130px 34px; }
  .time-entry-row > label:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .time-entry-remove { grid-column: 3; grid-row: 2; }
}
@media (max-width: 600px) {
  .timesheet-period { flex-direction: column; align-items: stretch; gap: 10px; }
  .kpi-grid.timesheet-kpis { grid-template-columns: 1fr; }
  .timesheet-kpis .kpi-card { min-height: 90px; }
  .timesheet-actions { flex-direction: column; align-items: stretch; }
  .time-entry-row { grid-template-columns: minmax(0, 1fr) 95px 34px; gap: 8px; padding: 14px 10px; }
  .timesheet-history-item { padding: 14px 10px; }
  .timesheet-history-item summary { gap: 8px; }
}
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 5px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: 1.4px; text-transform: uppercase; }

.login-shell { display: grid; grid-template-columns: minmax(360px, 1.05fr) minmax(420px, .95fr); min-height: 100vh; }
.login-brand { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: clamp(45px, 7vw, 110px); color: #fff; background: linear-gradient(90deg, rgba(12,17,61,.94), rgba(12,17,61,.76)), url("/assets/semeq-hero.jpg") center / cover; }
.brand-logo { display: block; width: 170px; max-width: 100%; height: auto; }
.hero-logo { width: 245px; margin-bottom: 48px; border-radius: 8px; background: #fff; padding: 12px 14px; }
.sidebar-logo { width: 245px; padding: 0; background: transparent; }
.login-brand .eyebrow { color: #86addb; }
.login-brand h1 { max-width: 620px; margin: 8px 0 18px; font-size: 52px; line-height: 1.04; letter-spacing: 0; }
.login-brand > p:not(.eyebrow) { max-width: 510px; margin: 0; color: #c9d7e7; font-size: 17px; line-height: 1.6; }
.login-metric { display: flex; align-items: center; gap: 12px; margin-top: 62px; }
.login-metric span { color: var(--orange); font-size: 32px; font-weight: 900; }
.login-metric small { max-width: 95px; color: #aec1d7; line-height: 1.25; }
.login-panel { display: grid; place-items: center; padding: 32px; background: #fff; }
.login-card { width: min(100%, 400px); }
.login-card h2 { margin: 5px 0 9px; color: var(--navy); font-size: 31px; letter-spacing: 0; }
.login-card > .muted { margin: 0 0 31px; font-size: 14px; }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 40px; color: var(--navy); font-size: 18px; font-weight: 850; }
.mobile-brand .brand-logo { width: 140px; }
.login-help { margin-top: 22px; color: #8b96a5; text-align: center; font-size: 11px; }
.login-help code { border-radius: 4px; padding: 2px 4px; background: #f2f5f8; color: #5e6b7c; }

.input-group, .form-grid > label, .mini-grid label { display: block; }
.input-group { margin: 17px 0; }
.input-group > span, .form-grid label > span, .mini-grid label > span, .filters label > span { display: block; margin: 0 0 7px; color: #526175; font-size: 11px; font-weight: 800; letter-spacing: .2px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: none; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
input, select { height: 42px; padding: 0 11px; }
select[multiple] { height: auto; min-height: 120px; padding: 8px 10px; }
textarea { min-height: 88px; padding: 11px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,71,187,.12); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.field-error { display: block; margin-top: 4px; color: var(--red); font-size: 10px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 39px; border: 1px solid transparent; border-radius: 8px; padding: 0 15px; font-weight: 800; text-decoration: none; transition: transform .1s, background .15s; }
.button:active { transform: translateY(1px); }
.button.primary { background: var(--orange); color: #fff; box-shadow: 0 6px 15px rgba(242,136,50,.15); }
.button.primary:hover { background: #da7728; }
.button.secondary { border-color: var(--line); background: #fff; color: #526175; }
.button.danger { border-color: #f0c2bf; background: var(--red-soft); color: var(--red); }
.button.danger:hover { background: #f9d9d7; }
.button.ghost { background: transparent; color: #657285; }
.button.small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.button.full { width: 100%; height: 45px; margin-top: 8px; }
.button[disabled] { cursor: wait; opacity: .65; }
.alert { border-radius: 8px; margin: 15px 0; padding: 10px 12px; font-size: 12px; }
.alert.error { border: 1px solid #f2c7c4; background: var(--red-soft); color: var(--red); }

.app-shell { display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; z-index: 20; top: 0; display: flex; flex-direction: column; height: 100vh; color: #d5deea; background: linear-gradient(180deg, var(--navy), #111f32); }
.sidebar-brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 9px; min-height: 112px; padding: 14px 22px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand strong { display: block; color: #fff; font-size: 14px; line-height: 1.2; }
.sidebar nav { flex: 1; padding: 24px 12px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; border: 0; border-radius: 9px; margin-bottom: 5px; padding: 12px 13px; background: transparent; color: #aebdce; text-align: left; font-size: 12px; font-weight: 750; }
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(0,71,187,.24); color: #fff; box-shadow: inset 3px 0 var(--orange); }
.nav-icon { display: inline-grid; place-items: center; width: 20px; color: #90a8c3; font-size: 18px; }
.nav-item.active .nav-icon { color: var(--orange); }
.sidebar-footer { display: flex; align-items: center; gap: 9px; padding: 17px 15px; border-top: 1px solid rgba(255,255,255,.08); }
.user-avatar { display: grid; flex: 0 0 34px; place-items: center; height: 34px; border-radius: 10px; background: #315177; color: #fff; font-size: 10px; font-weight: 900; }
.user-summary { min-width: 0; flex: 1; }
.user-summary strong, .user-summary small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-summary strong { color: #fff; font-size: 11px; }
.user-summary small { margin-top: 3px; color: #8296ae; font-size: 9px; text-transform: uppercase; }
.icon-button { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #657285; }
.icon-button.light { border: 0; background: rgba(255,255,255,.06); color: #b5c3d3; }
.theme-toggle { font-size: 18px; line-height: 1; }
.theme-toggle span { display: block; transform: translateY(-1px); }
.login-theme-toggle { position: fixed; z-index: 5; top: 18px; right: 18px; box-shadow: var(--shadow); }

.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); padding: 15px 25px; background: #fff; }
.topbar h1 { margin: 0; color: var(--navy); font-size: 22px; letter-spacing: 0; }
.topbar .eyebrow { margin-bottom: 3px; font-size: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; color: #7e8b9c; font-size: 10px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #42a878; box-shadow: 0 0 0 4px #e7f6ee; }
.menu-button { display: none; margin-right: 12px; }
main { max-width: 1600px; margin: auto; padding: 20px 23px 38px; }

.filters { display: flex; align-items: end; gap: 11px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 16px; padding: 11px 12px; background: #fff; box-shadow: 0 4px 16px rgba(12,17,61,.04); }
.filters label { min-width: 150px; flex: 1; }
.filters select { height: 36px; font-size: 11px; }
.filters .button { height: 36px; min-height: 36px; font-size: 10px; }
.page-view { display: none; }
.page-view.active { display: block; animation: fade-in .18s ease-out; }
@keyframes fade-in { from { opacity: .3; transform: translateY(2px); } }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)); gap: 11px; margin-bottom: 14px; }
.kpi-card { position: relative; overflow: hidden; min-height: 111px; border: 1px solid var(--line); border-radius: 8px; padding: 13px 14px; background: #fff; box-shadow: var(--shadow); }
.kpi-card::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); content: ""; }
.kpi-card > div { display: flex; flex-direction: column; }
.kpi-card span { color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.kpi-card strong { margin-top: 4px; color: var(--navy); font-size: 28px; line-height: 1.15; }
.kpi-card small { margin-top: 3px; color: #98a3b1; font-size: 9px; }
.kpi-card i { position: absolute; top: 14px; right: 13px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--tone-soft); color: var(--tone); font-size: 13px; font-style: normal; font-weight: 900; }
.kpi-card.blue { --tone: var(--blue); --tone-soft: var(--blue-soft); }
.kpi-card.green { --tone: var(--green); --tone-soft: var(--green-soft); }
.kpi-card.orange { --tone: var(--orange); --tone-soft: var(--orange-soft); }
.kpi-card.red { --tone: var(--red); --tone-soft: var(--red-soft); }
.kpi-card.purple { --tone: var(--purple); --tone-soft: #f0ecfb; }
.kpi-card.cyan { --tone: var(--cyan); --tone-soft: #e7f6f8; }
.kpi-card.navy { --tone: var(--navy); --tone-soft: #eceef7; }
.risk-kpis, .portfolio-kpis { grid-template-columns: repeat(3, minmax(170px, 1fr)); }
.chapter-score-grid { grid-template-columns: repeat(5, minmax(125px, 1fr)); }

.content-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 13px; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.card > header { display: flex; align-items: center; min-height: 63px; border-bottom: 1px solid #edf1f5; padding: 12px 15px; }
.card > header h2, .section-intro h2 { margin: 0 0 3px; color: var(--navy); font-size: 14px; }
.card > header p, .section-intro p { margin: 0; color: var(--muted); font-size: 9px; }
.card > header > :last-child { margin-left: auto; }
.span-5 { grid-column: span 5; }
.span-7 { grid-column: span 7; }
.span-12 { grid-column: span 12; }
.chip { border-radius: 999px; padding: 4px 8px; background: #f1f4f8; color: #7c8999; font-size: 8px; font-weight: 800; }
.chart { min-height: 245px; padding: 14px; }
.chart.compact { min-height: 220px; }
.chart svg { display: block; width: 100%; height: 100%; }
.radar-grid {
  fill: none;
  stroke: #dfe5ec;
  stroke-width: 1;
}
.radar-grid-outer { stroke: #c7d0dc; }
.radar-axis {
  stroke: #dfe5ec;
  stroke-width: 1;
}
.radar-area {
  fill: rgba(0, 71, 187, .16);
  stroke: var(--blue);
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.radar-point {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 3;
}
.radar-label {
  fill: #526175;
  font-size: 9px;
  font-weight: 800;
}
.radar-label-value {
  fill: var(--navy);
  font-size: 9px;
  font-weight: 900;
}
.overview-chart {
  height: 315px;
  min-height: 315px;
  padding: 8px 10px;
}
.ranking-chart { min-height: 220px; padding: 10px 14px 6px; }
.ranking-chart.compact-ranking { height: 245px; min-height: 245px; }
.ranking-chart.compact-ranking .ranking-scroll { height: 100%; }
.ranking-chart.compact-ranking .ranking-chart-svg { height: calc(100% - 12px); }
.ranking-scroll { max-width: 100%; overflow-x: auto; }
.ranking-chart-svg { min-width: 760px; }
.ranking-value { fill: #405065; font-size: 10px; font-weight: 900; }
.ranking-code { fill: var(--navy); font-size: 10px; font-weight: 900; }
.ranking-name { fill: #718094; font-size: 8px; }
.chart-empty { display: grid; place-items: center; min-height: 210px; color: #9aa5b3; font-size: 11px; text-align: center; }
.gridline { stroke: #e4e9ef; stroke-width: 1; }
.axis-label { fill: #718094; font-size: 9px; }
.value-label { fill: #405065; font-size: 9px; font-weight: 800; }
.chart-track { fill: #e8edf3; }
.legend { display: flex; align-items: center; gap: 13px; color: #758295; font-size: 9px; }
.legend span::before { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; content: ""; }
.blue-dot::before { background: var(--blue); }
.orange-dot::before { background: var(--orange); }
.link-button { border: 0; background: transparent; color: var(--blue); font-size: 9px; font-weight: 800; }

.table-wrap { max-width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 10px; }
th { position: sticky; z-index: 1; top: 0; padding: 9px 10px; background: #f1f4f8; color: #687689; text-align: left; white-space: nowrap; font-size: 8px; letter-spacing: .3px; text-transform: uppercase; }
td { border-bottom: 1px solid #edf1f5; padding: 9px 10px; color: #455367; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfd; }
.empty-cell { height: 130px; color: #9aa5b3; text-align: center; }
.badge { display: inline-block; border-radius: 999px; padding: 4px 7px; background: #eef1f4; color: #657285; font-size: 8px; font-weight: 850; white-space: nowrap; }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.orange { background: #fff1d4; color: #966300; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.progress-cell { display: flex; align-items: center; gap: 7px; min-width: 125px; }
.progress { width: 80px; height: 6px; overflow: hidden; border-radius: 99px; background: #e7ecf2; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
.row-actions { display: flex; gap: 4px; }
.table-action { border: 0; border-radius: 5px; padding: 4px 6px; background: #eef3f8; color: #53657a; font-size: 8px; font-weight: 800; }
.table-action.danger { background: var(--red-soft); color: var(--red); }

.event-list { display: grid; gap: 10px; padding: 14px; }
.event-card { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(0, 1.5fr) minmax(210px, .9fr); gap: 14px; border: 1px solid var(--line); border-radius: 8px; padding: 13px; background: #fff; }
.event-time { display: flex; flex-direction: column; gap: 4px; }
.event-time strong { color: var(--navy); font-size: 15px; }
.event-time span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.event-main h3 { margin: 0 0 6px; color: var(--navy); font-size: 14px; }
.event-main p { margin: 0; color: #5f6e82; font-size: 10px; line-height: 1.5; white-space: pre-line; }
.event-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.event-participants { display: flex; flex-wrap: wrap; gap: 5px; align-content: start; }
.event-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 12px; }
.event-actions .table-action { min-height: 27px; }
.event-empty { min-height: 170px; display: grid; place-items: center; color: #9aa5b3; font-size: 11px; text-align: center; }

.organization-board { display: grid; gap: 16px; }
.organization-lane { border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--card) 94%, var(--blue-soft)); box-shadow: var(--shadow); }
.organization-lane > header { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); padding: 14px 16px; }
.organization-lane > header h2 { margin: 0; color: var(--navy); font-size: 16px; }
.organization-lane > header > :last-child { margin-left: auto; }
.organization-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); gap: 12px; padding: 14px; }
.organization-card { border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(12, 17, 61, .06); }
.organization-card.chapter { border-top-color: var(--purple); }
.organization-card > header { display: flex; gap: 12px; border-bottom: 1px solid #edf1f5; padding: 12px 13px; }
.organization-code { display: grid; flex: 0 0 46px; place-items: center; height: 46px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 12px; font-weight: 900; }
.organization-card.chapter .organization-code { background: #f0ecfb; color: var(--purple); }
.organization-title { min-width: 0; flex: 1; }
.organization-title h3 { overflow: hidden; margin: 0 0 4px; color: var(--navy); text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.organization-title p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.organization-responsible { display: flex; align-items: center; gap: 7px; margin: 11px 13px; border-radius: 8px; padding: 9px 10px; background: #f7f9fc; color: #526175; font-size: 10px; }
.organization-responsible strong { color: var(--navy); }
.organization-participants { display: grid; gap: 8px; padding: 0 13px 13px; }
.organization-participant { display: grid; grid-template-columns: 22px minmax(0, 1fr) 32px; align-items: center; gap: 6px; }
.organization-participant span { color: #7c8999; text-align: right; font-size: 9px; font-weight: 850; }
.organization-participant select { width: 100%; min-width: 0; height: 34px; border-radius: 7px; padding: 0 9px; font-size: 10px; }
.organization-participant.readonly { grid-template-columns: 22px minmax(0, 1fr); }
.organization-participant.readonly strong { min-height: 34px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; background: var(--bg); color: var(--text); font-size: 10px; font-weight: 700; }
.organization-remove { width: 32px; height: 32px; border-color: #f0c2bf; background: var(--red-soft); color: var(--red); font-size: 15px; font-weight: 900; }
.organization-remove:hover { background: #f9d9d7; }
.organization-empty { border: 1px dashed #dce4ee; border-radius: 8px; padding: 13px 10px; color: #8794a4; text-align: center; font-size: 10px; }
.organization-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid #edf1f5; padding: 10px 13px; }

.portfolio-map-card { overflow: hidden; }
.portfolio-legend-row { display: flex; flex-wrap: wrap; align-items: center; border-bottom: 1px solid var(--line); padding-right: 16px; }
.portfolio-legend-row .portfolio-legend { flex: 1; border-bottom: 0; }
.portfolio-status-filter { position: relative; z-index: 5; margin: 8px 0 8px auto; color: var(--text); font-size: 12px; }
.portfolio-status-filter > summary { cursor: pointer; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--card); font-weight: 700; }
.portfolio-status-options { position: absolute; right: 0; top: calc(100% + 5px); width: 245px; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); box-shadow: var(--shadow); }
.portfolio-status-options fieldset { padding: 0; margin: 0; border: 0; }
.portfolio-status-options legend { margin-bottom: 10px; font-weight: 700; }
.portfolio-status-options label { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.portfolio-status-options input { width: 16px; height: 16px; padding: 0; accent-color: var(--blue); }
.portfolio-status-options > div { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; }
.portfolio-legend { display: flex; flex-wrap: wrap; gap: 14px; border-bottom: 1px solid #edf1f5; padding: 10px 16px; color: #657285; font-size: 9px; }
.portfolio-legend span { display: inline-flex; align-items: center; gap: 5px; }
.portfolio-legend span::before { width: 8px; height: 8px; border-radius: 2px; background: var(--project-tone); content: ""; }
.portfolio-legend .not-started { --project-tone: #60758b; }
.portfolio-legend .in-progress { --project-tone: var(--blue); }
.portfolio-legend .blocked { --project-tone: var(--orange); }
.portfolio-legend .completed { --project-tone: var(--green); }
.portfolio-legend .cancelled { --project-tone: #9aa5b3; }
.portfolio-map { min-height: 620px; background: #fff; }
.portfolio-map .chart-empty { min-height: 620px; }
.portfolio-chart-scroll { max-width: 100%; overflow-x: auto; padding: 8px 14px 4px; }
.portfolio-map-svg { display: block; width: 100%; min-width: 980px; height: auto; }
.portfolio-priority-band { fill: #fbfcfd; stroke: #e7ecf2; stroke-width: 1; }
.portfolio-priority-band.alternate { fill: #f6f8fb; }
.portfolio-priority-label { fill: #34445a; font-size: 11px; font-weight: 850; }
.portfolio-time-grid { stroke: #dfe5ec; stroke-width: 1; stroke-dasharray: 3 4; }
.portfolio-x-axis { stroke: #536174; stroke-width: 1.5; }
.portfolio-time-tick { fill: #657285; font-size: 10px; }
.portfolio-axis-title { fill: var(--navy); font-size: 11px; font-weight: 850; }
.portfolio-reference { fill: #758295; font-size: 10px; font-weight: 800; }
.portfolio-project { --project-tone: #60758b; display: flex; flex-direction: column; width: 100%; height: 100%; overflow: hidden; border: 1px solid color-mix(in srgb, var(--project-tone) 35%, #dce4ed); border-left: 4px solid var(--project-tone); border-radius: 6px; padding: 8px 9px; background: color-mix(in srgb, var(--project-tone) 9%, #fff); color: var(--text); text-align: left; box-shadow: 0 4px 11px rgba(12,17,61,.12); }
.portfolio-project:hover { border-color: var(--project-tone); box-shadow: 0 7px 16px rgba(12,17,61,.18); }
.portfolio-project[role="group"] { cursor: default; }
.portfolio-project[role="group"]:hover { border-color: color-mix(in srgb, var(--project-tone) 35%, #dce4ed); box-shadow: 0 4px 11px rgba(12,17,61,.12); }
.portfolio-project:focus-visible { outline: 3px solid rgba(0,71,187,.2); outline-offset: 1px; }
.portfolio-project.in-progress { --project-tone: var(--blue); }
.portfolio-project.blocked { --project-tone: var(--orange); }
.portfolio-project.completed { --project-tone: var(--green); }
.portfolio-project.cancelled { --project-tone: #9aa5b3; opacity: .68; }
.project-meta, .project-footer { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.project-meta { color: var(--project-tone); font-size: 8px; text-transform: uppercase; }
.project-meta b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-meta small, .project-footer small { font-size: 8px; }
.portfolio-project > strong { display: -webkit-box; overflow: hidden; margin: 5px 0 auto; color: var(--navy); font-size: 11px; line-height: 1.2; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.project-footer { margin-top: 4px; color: #637186; }
.project-footer small:last-child { color: var(--project-tone); font-weight: 900; }

.section-intro { display: flex; align-items: center; margin: 7px 2px 16px; }
.section-intro h2 { font-size: 20px; }
.section-intro p { font-size: 11px; }
.record-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.record-tabs button { border: 0; border-radius: 8px; padding: 9px 13px; background: #e7ecf2; color: #657285; font-size: 10px; font-weight: 800; }
.record-tabs button.active { background: var(--navy); color: #fff; }
.data-form { display: none; max-width: 1040px; margin: 0 auto; padding: 20px; }
.data-form.active { display: block; }
.form-heading { display: flex; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); margin: -3px 0 20px; padding-bottom: 17px; }
.form-heading h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }
.form-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.form-number { display: grid; flex: 0 0 43px; place-items: center; height: 43px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.form-grid .span-2 { grid-column: span 2; }
fieldset { border: 1px solid var(--line); border-radius: 10px; margin: 0; padding: 14px; }
fieldset legend { padding: 0 6px; color: var(--navy); font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .4px; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 11px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 15px; }

.admin-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 13px; }
.admin-grid .card { min-width: 0; }
.admin-catalogs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-catalogs > .card { display: flex; flex-direction: column; height: 420px; min-height: 0; }
.admin-catalogs > .admin-users, .admin-catalogs > .admin-teams-card { height: 520px; }
.admin-catalogs .card > header { flex-shrink: 0; flex-wrap: wrap; gap: 10px; }
.admin-catalogs .table-wrap { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; }
.admin-catalogs .admin-users-scroll { overflow-y: scroll; }
.admin-catalogs .table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.admin-catalogs .table-wrap::-webkit-scrollbar-track { background: var(--bg); }
.admin-catalogs .table-wrap::-webkit-scrollbar-thumb { border: 2px solid var(--bg); border-radius: 8px; background: var(--muted); }
.admin-catalogs thead th { position: sticky; top: 0; z-index: 1; background: var(--bg); }
.pending-hours-card > header { gap: 12px; flex-wrap: wrap; }
.pending-hours-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px; padding: 14px 15px 0; }
.pending-hours-filters label { flex: 1; min-width: 150px; }
.pending-hours-filters label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.pending-hours-filters label:last-of-type { flex: 1.5; }
.pending-hours-filters input, .pending-hours-filters select { height: 36px; font-size: 11px; }
.pending-hours-filter-actions { display: flex; gap: 8px; }
.pending-hours-hint, .pending-hours-summary { margin: 12px 15px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.pending-hours-summary { color: var(--text); }
.pending-hours-card > .alert { margin: 12px 15px; }
.pending-hours-card td { font-variant-numeric: tabular-nums; }
.pending-hours-card td > small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.pending-hours-teams { max-width: 260px; min-width: 160px; }
.pending-hours-teams span { display: block; margin: 3px 0; line-height: 1.5; }
.pending-hours-card .pending-hours-gap { color: var(--red); font-weight: 800; }
.pending-hours-weeks summary { cursor: pointer; color: var(--blue); white-space: nowrap; }
.pending-hours-weeks ul { list-style: none; padding: 0; margin: 8px 0 0; }
.pending-hours-weeks li { display: grid; gap: 3px; padding: 7px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.pending-hours-weeks li small { color: var(--muted); }
@media (max-width: 600px) { .pending-hours-filters label { min-width: 100%; } .pending-hours-filter-actions { width: 100%; } .pending-hours-filter-actions button { flex: 1; } }
@media (max-width: 820px) {
  .admin-catalogs { grid-template-columns: minmax(0, 1fr); }
}
.span-all { grid-column: 1 / -1; }
.indicator-admin-card > header { gap: 14px; flex-wrap: wrap; }
.indicator-admin-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.indicator-model-tabs { display: flex; flex-wrap: wrap; gap: 2px; max-width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 3px; background: #f3f6f9; }
.indicator-model-tabs button { min-height: 29px; max-width: 100%; border: 0; border-radius: 5px; padding: 6px 10px; background: transparent; color: #657285; font-size: 9px; font-weight: 800; white-space: normal; overflow-wrap: anywhere; }
.indicator-model-tabs button.active { background: var(--navy); color: #fff; box-shadow: 0 2px 7px rgba(12, 17, 61, .18); }
.indicator-dimension-cell { width: 210px; }
.indicator-dimension-cell strong, .indicator-dimension-cell small { display: block; }
.indicator-dimension-cell strong, .indicator-name { color: var(--navy); }
.indicator-dimension-cell small { margin-top: 3px; color: #7c8999; font-size: 8px; }
.indicator-dialog-context { display: flex; align-items: center; justify-content: space-between; border-left: 3px solid var(--blue); border-radius: 6px; padding: 11px 12px; background: var(--blue-soft); }
.indicator-dialog-context span { color: #61708a; font-size: 9px; font-weight: 800; }
.indicator-dialog-context strong { color: var(--navy); font-size: 11px; }
.backup-card-body { min-height: 112px; padding: 16px; }
.backup-card-body > p { margin: 13px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.backup-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; margin: 0; background: #f8fafc; }
.backup-details div { min-width: 0; padding: 11px 12px; }
.backup-details div + div { border-left: 1px solid var(--line); }
.backup-details dt, .backup-selected span { margin-bottom: 3px; color: #7c8999; font-size: 8px; font-weight: 800; text-transform: uppercase; }
.backup-details dd { overflow: hidden; margin: 0; color: #455367; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 750; }
.backup-upload { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(120px, .7fr); align-items: end; gap: 10px 14px; }
.backup-upload > p { grid-column: 1 / -1; margin: 0; }
.backup-file > span { display: block; margin-bottom: 6px; color: #526175; font-size: 9px; font-weight: 800; }
.backup-file input { height: auto; padding: 7px; font-size: 9px; }
.backup-selected { min-width: 0; border-left: 3px solid var(--blue); padding: 7px 9px; background: var(--blue-soft); }
.backup-selected span, .backup-selected strong { display: block; }
.backup-selected strong { overflow: hidden; color: #455367; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.modal { width: min(620px, calc(100% - 30px)); max-height: calc(100vh - 40px); border: 0; border-radius: 15px; padding: 0; box-shadow: 0 30px 80px rgba(10,20,35,.3); }
.modal::backdrop { background: rgba(12,23,37,.58); backdrop-filter: blur(2px); }
.modal-card { padding: 20px; }
.modal-card > header { display: flex; align-items: center; border-bottom: 1px solid var(--line); margin: -2px 0 19px; padding-bottom: 14px; }
.modal-card > header h2 { margin: 0; color: var(--navy); font-size: 19px; }
.modal-card > header .icon-button { margin-left: auto; }

.toast-region { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: grid; gap: 8px; width: min(350px, calc(100% - 40px)); pointer-events: none; }
.toast { border-left: 4px solid var(--green); border-radius: 9px; padding: 12px 14px; background: #fff; color: #465468; box-shadow: 0 12px 40px rgba(20,35,55,.18); font-size: 11px; animation: toast-in .2s ease-out; }
.toast.error { border-left-color: var(--red); }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }


.support-dashboard, .research-dashboard { margin-top: 18px; }
.support-section-title { display: flex; align-items: end; margin: 4px 2px 11px; }
.support-section-title > :last-child { margin-left: auto; }
.support-section-title h2 { margin: 0; color: var(--navy); font-size: 18px; }
.support-metric-grid { display: grid; grid-template-columns: repeat(6, minmax(110px, 1fr)); gap: 9px; margin-bottom: 13px; }
.support-metric-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fff; box-shadow: var(--shadow); }
.support-metric-grid span, .support-metric-grid small { display: block; }
.support-metric-grid span { color: var(--muted); font-size: 8px; font-weight: 850; letter-spacing: .4px; text-transform: uppercase; }
.support-metric-grid strong { display: block; margin: 5px 0 2px; color: var(--navy); font-size: 21px; }
.support-metric-grid small { color: #98a3b1; font-size: 8px; line-height: 1.3; }
.insight-list { min-height: 205px; margin: 0; padding: 16px 24px 16px 40px; color: #455367; font-size: 11px; }
.insight-list li { border-bottom: 1px solid #edf1f5; padding: 10px 5px; line-height: 1.45; }
.insight-list li:last-child { border-bottom: 0; }
.insight-list .empty-insight { border: 0; color: #9aa5b3; text-align: center; list-style: none; }
.action-list { min-height: auto; }
.tracking-mode-note { display: flex; align-items: center; gap: 9px; border-radius: 8px; padding: 10px 12px; background: #f6f7fa; color: var(--muted); }
.tracking-mode-note small { font-size: 10px; }
.configured-indicator-fields, .tracking-context-fields { display: grid; gap: 15px; }
.configured-indicator-fields fieldset, .tracking-context-fields fieldset { width: 100%; }
.configured-indicator { padding: 4px 0 12px; }
.configured-indicator + .configured-indicator { border-top: 1px solid #edf1f5; padding-top: 12px; }
.configured-indicator:last-child { padding-bottom: 0; }
.configured-indicator > header { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.configured-indicator > header strong { color: #34445a; font-size: 10px; }
.configured-indicator > header span { margin-left: auto; color: var(--blue); font-size: 8px; font-weight: 850; white-space: nowrap; }
.indicator-explanation { margin: -2px 0 10px; color: var(--muted); font-size: 9px; line-height: 1.5; white-space: pre-line; }
.indicator-formula { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; line-height: 1.4; }
.indicator-type-note { display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--blue); border-radius: 7px; padding: 10px 12px; background: var(--blue-soft); }
.indicator-type-note strong { color: var(--navy); font-size: 10px; }
.indicator-type-note span, .form-hint { color: var(--muted); font-size: 8px; line-height: 1.4; }
.form-hint { display: block; margin-top: 5px; }
.mini-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-form-callout, .research-form-callout { display: flex; flex-direction: column; gap: 3px; border-left: 4px solid var(--cyan); border-radius: 8px; padding: 11px 13px; background: #eaf7f9; color: #37616d; }
.research-form-callout { border-left-color: var(--green); background: var(--green-soft); color: #315f47; }
.support-form-callout strong, .research-form-callout strong { color: #155f73; font-size: 11px; }
.research-form-callout strong { color: #1d6545; }
.support-form-callout span, .research-form-callout span { font-size: 10px; }
.critical-gate { display: flex !important; align-items: flex-start; gap: 10px; border: 1px solid #f0cfac; border-radius: 9px; padding: 12px; background: #fff8f0; }
.critical-gate input { flex: 0 0 auto; width: auto; height: auto; margin-top: 2px; }
.critical-gate span, .critical-gate small { display: block; margin: 0; }
.critical-gate strong { color: #754619; font-size: 10px; }
.critical-gate small { margin-top: 3px; color: #8a6b4a; font-size: 9px; line-height: 1.4; }


/* Página de apresentação do framework */
.sidebar nav { overflow-y: auto; }
.presentation-page { max-width: 1380px; margin: 0 auto; }
.presentation-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(28px, 5vw, 76px); overflow: hidden; min-height: 390px; border-radius: 18px; padding: clamp(34px, 5vw, 70px); color: #fff; background: radial-gradient(circle at 88% 18%, rgba(0, 122, 255, .38), transparent 28%), linear-gradient(125deg, #0c113d 12%, #102965 58%, #0047bb 135%); box-shadow: 0 22px 55px rgba(12, 17, 61, .2); }
.presentation-hero::after { position: absolute; right: -105px; bottom: -145px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 45px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025); content: ""; }
.presentation-hero-copy { position: relative; z-index: 1; min-width: 0; align-self: center; overflow-wrap: anywhere; }
.presentation-hero .eyebrow { color: #8ebbf7; }
.presentation-hero h2 { max-width: 760px; margin: 13px 0 18px; color: #fff; font-size: clamp(32px, 4vw, 58px); line-height: 1.03; letter-spacing: -1.5px; }
.presentation-hero-copy > p:not(.eyebrow) { max-width: 750px; margin: 0; color: #ccd9ed; font-size: 15px; line-height: 1.7; }
.presentation-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.presentation-secondary { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; }
.presentation-secondary:hover { background: rgba(255,255,255,.15); }
.presentation-principle { position: relative; z-index: 1; align-self: end; border: 1px solid rgba(255,255,255,.18); border-left: 4px solid var(--orange); border-radius: 12px; padding: 22px; background: rgba(6,13,49,.35); backdrop-filter: blur(8px); }
.presentation-principle span, .presentation-principle strong { display: block; }
.presentation-principle span { margin-bottom: 10px; color: #9db7db; font-size: 9px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.presentation-principle strong { color: #fff; font-size: 17px; line-height: 1.45; }
.presentation-index { position: sticky; z-index: 6; top: 8px; display: flex; justify-content: center; gap: 5px; width: fit-content; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 999px; margin: -19px auto 28px; padding: 6px; background: color-mix(in srgb, var(--card) 92%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(12px); }
.presentation-index a { border-radius: 999px; padding: 8px 13px; color: var(--muted); font-size: 10px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.presentation-index a:hover { background: var(--blue-soft); color: var(--blue); }
.presentation-section { scroll-margin-top: 110px; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 18px; padding: clamp(22px, 3.2vw, 42px); background: var(--card); box-shadow: var(--shadow); }
.presentation-heading { max-width: 790px; margin-bottom: 26px; }
.presentation-heading h2 { margin: 5px 0 9px; color: var(--navy); font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.5px; }
.presentation-heading > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.presentation-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.presentation-feature { display: flex; gap: 15px; min-height: 145px; border-top: 3px solid var(--blue); border-radius: 8px; padding: 20px; background: #f7f9fc; }
.presentation-feature > span { color: var(--orange); font-size: 12px; font-weight: 900; }
.presentation-feature h3, .team-model-card h3, .framework-scorecard h3, .system-capability-grid h3, .role-grid h3, .framework-summary h3 { margin: 0; color: var(--navy); }
.presentation-feature h3 { font-size: 14px; }
.presentation-feature p, .system-capability-grid p, .role-grid p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.presentation-metrics, .presentation-levels { display: grid; gap: 10px; margin: 16px 0 0; }
.presentation-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.presentation-levels { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.presentation-metrics > div, .presentation-levels > div { min-width: 0; border: 1px solid var(--line); border-radius: 9px; padding: 16px; background: var(--blue-soft); }
.presentation-metrics dt, .presentation-levels dt { color: var(--muted); font-size: 10px; line-height: 1.5; }
.presentation-metrics dd, .presentation-levels dd { margin: 5px 0 0; color: var(--blue); font-weight: 800; }
.presentation-metrics dd { font-size: 26px; }
.presentation-levels dd { font-size: 14px; }
.presentation-levels dd > span { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.55; }
.presentation-note { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.team-model-grid, .scorecard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.team-model-card, .framework-scorecard { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #f9fbfd; }
.team-model-card > header { display: flex; align-items: center; gap: 13px; padding: 19px 20px; color: #fff; background: var(--model-tone); }
.team-model-card.squad, .framework-scorecard.squad { --model-tone: var(--blue); }
.team-model-card.chapter, .framework-scorecard.chapter { --model-tone: var(--purple); }
.team-model-card > header > span { display: grid; width: 39px; height: 39px; place-items: center; border: 1px solid rgba(255,255,255,.32); border-radius: 10px; background: rgba(255,255,255,.12); font-size: 16px; font-weight: 900; }
.team-model-card header small, .framework-scorecard header small { display: block; margin-bottom: 3px; color: rgba(255,255,255,.75); font-size: 8px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.team-model-card header h3, .framework-scorecard header h3 { color: #fff; font-size: 20px; }
.team-model-card dl { margin: 0; padding: 7px 20px 15px; }
.team-model-card dl > div { display: grid; grid-template-columns: 105px 1fr; gap: 12px; border-bottom: 1px solid var(--line); padding: 13px 0; }
.team-model-card dl > div:last-child { border-bottom: 0; }
.team-model-card dt { color: var(--model-tone); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.team-model-card dd { margin: 0; color: #526175; font-size: 10px; line-height: 1.45; }
.framework-scorecard > header { display: flex; align-items: center; padding: 19px 20px; background: var(--model-tone); }
.framework-scorecard > header > span { margin-left: auto; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 9px; color: #fff; font-size: 9px; font-weight: 900; }
.dimension-list { padding: 10px 20px 16px; }
.dimension-list > div { position: relative; display: grid; grid-template-columns: 47px 1fr; gap: 12px; overflow: hidden; border-bottom: 1px solid var(--line); padding: 13px 0; }
.dimension-list > div:last-child { border-bottom: 0; }
.dimension-list > div::after { position: absolute; bottom: 0; left: 0; width: var(--dimension); height: 2px; background: var(--model-tone); content: ""; }
.dimension-list b { color: var(--model-tone); font-size: 13px; }
.dimension-list span, .dimension-list strong, .dimension-list small { display: block; }
.dimension-list strong { color: #34445a; font-size: 10px; }
.dimension-list small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.score-rules { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr) auto minmax(150px, 1fr) minmax(230px, 1.35fr); align-items: stretch; gap: 9px; margin-top: 14px; }
.score-rules > div { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 9px; padding: 13px; background: #f7f9fc; }
.score-rules > i { align-self: center; color: #a3afbd; font-style: normal; }
.score-step { display: grid; flex: 0 0 29px; height: 29px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 900; }
.score-rules p, .score-rules p strong { display: block; }
.score-rules p { margin: 0; color: var(--muted); font-size: 8px; line-height: 1.4; }
.score-rules p strong { margin-bottom: 2px; color: var(--navy); font-size: 10px; }
.score-gate { display: flex; flex-direction: column; justify-content: center; border-left: 4px solid var(--orange); border-radius: 9px; padding: 13px 15px; background: var(--orange-soft); }
.score-gate strong { color: #8d4a12; font-size: 10px; text-transform: uppercase; }
.score-gate span { margin-top: 4px; color: #7d5c40; font-size: 9px; line-height: 1.4; }
.score-bands { display: grid; grid-template-columns: repeat(3, minmax(90px, 140px)) 1fr; gap: 8px; align-items: stretch; margin-top: 12px; }
.score-bands > div { border-radius: 8px; padding: 10px 12px; }
.score-bands > div strong, .score-bands > div span { display: block; }
.score-bands > div strong { font-size: 13px; }
.score-bands > div span { margin-top: 2px; font-size: 8px; font-weight: 850; text-transform: uppercase; }
.score-bands .green { background: var(--green-soft); color: var(--green); }
.score-bands .yellow { background: #fff8d8; color: #876c00; }
.score-bands .red { background: var(--red-soft); color: var(--red); }
.score-bands > p { align-self: center; margin: 0 0 0 10px; color: var(--muted); font-size: 10px; font-style: italic; }
.governance-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.governance-flow li { position: relative; display: flex; flex-direction: column; min-height: 115px; border: 1px solid var(--line); border-right: 0; padding: 20px; background: #f9fbfd; }
.governance-flow li:first-child { border-radius: 10px 0 0 10px; }
.governance-flow li:last-child { border-right: 1px solid var(--line); border-radius: 0 10px 10px 0; }
.governance-flow li::after { position: absolute; z-index: 1; top: 50%; right: -8px; width: 14px; height: 14px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); background: #f9fbfd; content: ""; transform: rotate(45deg); }
.governance-flow li:last-child::after { display: none; }
.governance-flow li > span { color: var(--orange); font-size: 10px; font-weight: 900; }
.governance-flow strong, .governance-flow h3 { margin: 24px 0 0; color: var(--navy); font-size: 11px; text-transform: uppercase; }
.governance-flow small { margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.presentation-governance-table { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; margin-top: 14px; background: var(--card); }
.presentation-governance-table > header { display: flex; align-items: center; min-height: 68px; border-bottom: 1px solid var(--line); padding: 14px 18px; }
.presentation-governance-table > header h3 { margin: 0; color: var(--navy); font-size: 14px; }
.presentation-governance-table > header .eyebrow { margin-bottom: 4px; font-size: 8px; }
.presentation-governance-table > header > :last-child { margin-left: auto; }
.presentation-governance-table .table-wrap { overflow-x: auto; }
.presentation-governance-table table { min-width: 880px; box-shadow: none; }
.presentation-governance-table th:nth-child(1) { width: 17%; }
.presentation-governance-table th:nth-child(2) { width: 11%; }
.presentation-governance-table th:nth-child(3) { width: 25%; }
.presentation-governance-table th:nth-child(4) { width: 47%; }
.presentation-governance-table td { vertical-align: top; font-size: 9px; line-height: 1.5; }
.presentation-governance-table td strong { color: var(--navy); font-size: 10px; }
.cadence-badge { display: inline-block; border-radius: 999px; padding: 4px 8px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 850; white-space: nowrap; }
.governance-answer { display: grid; grid-template-columns: 1fr auto 1.5fr; align-items: center; gap: 18px; border-radius: 10px; margin-top: 13px; padding: 18px 22px; color: #fff; background: var(--navy); }
.governance-answer div { display: flex; flex-direction: column; }
.governance-answer small { color: #9eafd0; font-size: 8px; font-weight: 850; letter-spacing: .6px; text-transform: uppercase; }
.governance-answer strong { margin-top: 4px; font-size: 13px; }
.governance-answer > span { color: var(--orange); font-size: 22px; font-weight: 300; }
.system-capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.system-capability-grid article { position: relative; min-height: 150px; border: 1px solid var(--line); border-radius: 10px; padding: 20px; background: #f9fbfd; }
.system-capability-grid article > span { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 9px; margin-bottom: 15px; background: var(--blue-soft); color: var(--blue); font-size: 16px; font-weight: 900; }
.system-capability-grid h3 { font-size: 12px; }
.dynamic-form-callout { display: grid; grid-template-columns: minmax(210px, .75fr) 1.25fr; gap: 25px; align-items: center; border-left: 5px solid var(--cyan); border-radius: 10px; margin-top: 13px; padding: 20px 24px; background: #eaf7f9; }
.dynamic-form-callout div span, .dynamic-form-callout div strong { display: block; }
.dynamic-form-callout div span { color: var(--cyan); font-size: 8px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; }
.dynamic-form-callout div strong { margin-top: 5px; color: #155f73; font-size: 17px; }
.dynamic-form-callout ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 20px; margin: 0; padding-left: 18px; color: #37616d; font-size: 9px; line-height: 1.45; }
.role-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.role-grid article { border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: #f9fbfd; }
.role-grid article > span { display: inline-grid; min-width: 33px; height: 27px; place-items: center; border-radius: 7px; margin-bottom: 16px; padding: 0 7px; background: var(--blue-soft); color: var(--blue); font-size: 8px; font-weight: 900; }
.role-grid h3 { font-size: 11px; }
.framework-summary { display: grid; grid-template-columns: 1.35fr 1fr; gap: 35px; align-items: center; overflow: hidden; border-radius: 12px; margin-top: 14px; padding: 28px 31px; color: #fff; background: linear-gradient(120deg, var(--navy), #14316b); }
.framework-summary .eyebrow { color: #87b2ed; }
.framework-summary h3 { max-width: 700px; color: #fff; font-size: 20px; line-height: 1.4; }
.framework-summary ul { margin: 0; padding-left: 18px; color: #cbd8e9; font-size: 9px; line-height: 1.8; }

html[data-theme="dark"] {
  color-scheme: dark;
  --blue: #6ea8ff;
  --blue-soft: #172b49;
  --orange: #f6a35e;
  --orange-soft: #3c2a1d;
  --green: #65c995;
  --green-soft: #173428;
  --red: #ff8178;
  --red-soft: #3b2024;
  --purple: #b8acef;
  --cyan: #55c5db;
  --bg: #0b111a;
  --card: #131d2a;
  --text: #e6edf6;
  --muted: #98a8bb;
  --line: #2a394c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .login-panel,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .filters,
html[data-theme="dark"] .kpi-card,
html[data-theme="dark"] table,
html[data-theme="dark"] .portfolio-map,
html[data-theme="dark"] .support-metric-grid article,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .organization-card,
html[data-theme="dark"] .modal,
html[data-theme="dark"] .toast { background: var(--card); color: var(--text); }
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .icon-button,
html[data-theme="dark"] .button.secondary { border-color: var(--line); background: #0e1723; color: #c1cede; }
html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder { color: #65768a; }
html[data-theme="dark"] .login-card h2,
html[data-theme="dark"] .mobile-brand,
html[data-theme="dark"] .topbar h1,
html[data-theme="dark"] .kpi-card strong,
html[data-theme="dark"] .card > header h2,
html[data-theme="dark"] .section-intro h2,
html[data-theme="dark"] .form-heading h2,
html[data-theme="dark"] fieldset legend,
html[data-theme="dark"] .indicator-dimension-cell strong,
html[data-theme="dark"] .indicator-name,
html[data-theme="dark"] .indicator-dialog-context strong,
html[data-theme="dark"] .event-time strong,
html[data-theme="dark"] .event-main h3,
html[data-theme="dark"] .organization-lane > header h2,
html[data-theme="dark"] .organization-title h3,
html[data-theme="dark"] .organization-responsible strong,
html[data-theme="dark"] .modal-card > header h2,
html[data-theme="dark"] .support-section-title h2,
html[data-theme="dark"] .support-metric-grid strong,
html[data-theme="dark"] .configured-indicator > header strong { color: #edf3fc; }
html[data-theme="dark"] .input-group > span,
html[data-theme="dark"] .form-grid label > span,
html[data-theme="dark"] .mini-grid label > span,
html[data-theme="dark"] .filters label > span,
html[data-theme="dark"] .backup-file > span { color: #b6c4d5; }
html[data-theme="dark"] .login-help { color: #8495a9; }
html[data-theme="dark"] .login-help code,
html[data-theme="dark"] .chip,
html[data-theme="dark"] .badge,
html[data-theme="dark"] .progress,
html[data-theme="dark"] .table-action,
html[data-theme="dark"] .record-tabs button,
html[data-theme="dark"] .indicator-model-tabs,
html[data-theme="dark"] .tracking-mode-note,
html[data-theme="dark"] .organization-responsible,
html[data-theme="dark"] .backup-details { background: #1b2735; color: #b5c3d3; }
html[data-theme="dark"] .button.ghost { color: #acb9c9; }
html[data-theme="dark"] .card > header,
html[data-theme="dark"] .organization-lane,
html[data-theme="dark"] .organization-lane > header,
html[data-theme="dark"] .organization-card > header,
html[data-theme="dark"] .organization-actions,
html[data-theme="dark"] td,
html[data-theme="dark"] .portfolio-legend,
html[data-theme="dark"] .insight-list li,
html[data-theme="dark"] .configured-indicator + .configured-indicator { border-color: var(--line); }
html[data-theme="dark"] th { background: #1c2938; color: #a9b8ca; }
html[data-theme="dark"] td,
html[data-theme="dark"] .insight-list,
html[data-theme="dark"] .event-main p,
html[data-theme="dark"] .organization-title p,
html[data-theme="dark"] .backup-details dd,
html[data-theme="dark"] .backup-selected strong { color: #c7d2e0; }
html[data-theme="dark"] tbody tr:hover td { background: #192534; }
html[data-theme="dark"] .badge.green { background: var(--green-soft); color: var(--green); }
html[data-theme="dark"] .badge.orange { background: #3c2d18; color: #f4b469; }
html[data-theme="dark"] .badge.red { background: var(--red-soft); color: var(--red); }
html[data-theme="dark"] .badge.blue { background: var(--blue-soft); color: var(--blue); }
html[data-theme="dark"] .table-action.danger { background: var(--red-soft); color: var(--red); }
html[data-theme="dark"] .kpi-card.purple { --tone-soft: #2c2746; }
html[data-theme="dark"] .kpi-card.cyan { --tone-soft: #17343c; }
html[data-theme="dark"] .kpi-card.navy { --tone: #9eacef; --tone-soft: #242c50; }
html[data-theme="dark"] .radar-grid,
html[data-theme="dark"] .radar-axis,
html[data-theme="dark"] .gridline { stroke: #334358; }
html[data-theme="dark"] .radar-grid-outer { stroke: #4a5b70; }
html[data-theme="dark"] .radar-point { fill: var(--card); }
html[data-theme="dark"] .radar-label,
html[data-theme="dark"] .axis-label,
html[data-theme="dark"] .ranking-name { fill: #9cacc0; }
html[data-theme="dark"] .radar-label-value,
html[data-theme="dark"] .ranking-code,
html[data-theme="dark"] .ranking-value,
html[data-theme="dark"] .value-label { fill: #dbe5f2; }
html[data-theme="dark"] .chart-track { fill: #273548; }
html[data-theme="dark"] .portfolio-priority-band { fill: #141f2c; stroke: #2a394c; }
html[data-theme="dark"] .portfolio-priority-band.alternate { fill: #182432; }
html[data-theme="dark"] .portfolio-priority-label,
html[data-theme="dark"] .portfolio-time-tick,
html[data-theme="dark"] .portfolio-reference { fill: #adbbcc; }
html[data-theme="dark"] .portfolio-time-grid { stroke: #35465a; }
html[data-theme="dark"] .portfolio-x-axis { stroke: #7f90a4; }
html[data-theme="dark"] .portfolio-axis-title { fill: #e3ebf6; }
html[data-theme="dark"] .portfolio-project { border-color: color-mix(in srgb, var(--project-tone) 45%, #2a394c); background: color-mix(in srgb, var(--project-tone) 13%, #131d2a); }
html[data-theme="dark"] .portfolio-project > strong { color: #edf3fc; }
html[data-theme="dark"] .project-footer { color: #a9b7c8; }
html[data-theme="dark"] .organization-lane { background: #101a26; }
html[data-theme="dark"] .organization-code { background: var(--blue-soft); color: var(--blue); }
html[data-theme="dark"] .organization-card.chapter .organization-code { background: #2c2746; color: var(--purple); }
html[data-theme="dark"] .organization-empty { border-color: var(--line); color: #8fa0b4; }
html[data-theme="dark"] .organization-remove { border-color: #5a2830; background: #2a161b; color: #ff8f8f; }
html[data-theme="dark"] .indicator-dialog-context,
html[data-theme="dark"] .indicator-type-note,
html[data-theme="dark"] .backup-selected { background: var(--blue-soft); }
html[data-theme="dark"] .support-form-callout { background: #173039; color: #a8d8e2; }
html[data-theme="dark"] .research-form-callout { background: #173428; color: #a8d8bd; }
html[data-theme="dark"] .support-form-callout strong { color: #7dd3e2; }
html[data-theme="dark"] .research-form-callout strong { color: #81d3a7; }
html[data-theme="dark"] .critical-gate { border-color: #64472c; background: #33261b; }
html[data-theme="dark"] .critical-gate strong { color: #f2bd83; }
html[data-theme="dark"] .critical-gate small { color: #c9a17b; }


html[data-theme="dark"] .presentation-index,
html[data-theme="dark"] .presentation-section { background: var(--card); }
html[data-theme="dark"] .presentation-heading h2,
html[data-theme="dark"] .presentation-feature h3,
html[data-theme="dark"] .dimension-list strong,
html[data-theme="dark"] .score-rules p strong,
html[data-theme="dark"] .presentation-governance-table > header h3,
html[data-theme="dark"] .presentation-governance-table td strong,
html[data-theme="dark"] .system-capability-grid h3,
html[data-theme="dark"] .role-grid h3 { color: #edf3fc; }
html[data-theme="dark"] .governance-flow h3 { color: #fff; }
html[data-theme="dark"] .presentation-feature,
html[data-theme="dark"] .team-model-card,
html[data-theme="dark"] .framework-scorecard,
html[data-theme="dark"] .score-rules > div,
html[data-theme="dark"] .governance-flow li,
html[data-theme="dark"] .governance-flow li::after,
html[data-theme="dark"] .system-capability-grid article,
html[data-theme="dark"] .role-grid article { background: #101a26; }
html[data-theme="dark"] .team-model-card dd { color: #c7d2e0; }
html[data-theme="dark"] .score-gate { background: #3c2a1d; }
html[data-theme="dark"] .score-gate strong { color: #f6b57d; }
html[data-theme="dark"] .score-gate span { color: #d2ae8c; }
html[data-theme="dark"] .score-bands .yellow { background: #39331a; color: #e6cc62; }
html[data-theme="dark"] .dynamic-form-callout { background: #173039; }
html[data-theme="dark"] .dynamic-form-callout div strong { color: #7dd3e2; }
html[data-theme="dark"] .dynamic-form-callout ul { color: #a8d8e2; }
html[data-theme="dark"] .cadence-badge { background: var(--blue-soft); color: var(--blue); }

@media (prefers-reduced-motion: no-preference) {
  body, .topbar, .filters, .card, .kpi-card, input, select, textarea, table, th, td, .modal, .toast { transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
}
@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(3, 1fr); }
  .chapter-score-grid { grid-template-columns: repeat(3, 1fr); }
  .support-metric-grid { grid-template-columns: repeat(3, 1fr); }
  .span-5, .span-7 { grid-column: span 12; }
  .admin-grid { grid-template-columns: 1fr; }
  .span-all { grid-column: auto; }
}

@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; }
  .mobile-brand { display: flex; align-items: center; }
  .app-shell { display: block; }
  .sidebar { position: fixed; left: -250px; width: 235px; transition: left .2s; box-shadow: 12px 0 30px rgba(0,0,0,.18); }
  .sidebar.open { left: 0; }
  .menu-button { display: inline-grid; }
  .topbar { padding: 13px 16px; }
  main { padding: 15px 14px 30px; }
  .filters { flex-wrap: wrap; }
  .filters label { min-width: calc(50% - 8px); }
  .support-metric-grid { grid-template-columns: repeat(2, 1fr); }
  .indicator-admin-card > header, .indicator-admin-actions { align-items: stretch; flex-direction: column; }
  .indicator-admin-card > header > :last-child { width: 100%; margin-left: 0; }
  .indicator-model-tabs { overflow-x: auto; }
  .indicator-model-tabs button { flex: 1; }
  .save-status { display: none; }
}

@media (max-width: 560px) {
  .topbar h1 { font-size: 18px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .chapter-score-grid { grid-template-columns: 1fr; }
  .kpi-card { min-height: 100px; }
  .risk-kpis .kpi-card:last-child, .portfolio-kpis .kpi-card:last-child { grid-column: span 2; }
  .filters label { min-width: 100%; }
  .filters .button { width: 100%; }
  .record-tabs { display: grid; grid-template-columns: 1fr; }
  .form-grid, .mini-grid { grid-template-columns: 1fr; }
  .mini-grid.two { grid-template-columns: 1fr; }
  .support-section-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .form-grid .span-2 { grid-column: auto; }
  .data-form { padding: 15px; }
  .form-actions { flex-wrap: wrap; }
  .form-actions .button { flex: 1; }
  .backup-upload { grid-template-columns: 1fr; }
  .backup-upload > p { grid-column: auto; }
  .backup-file input { width: 100%; }
  .portfolio-map { min-height: 540px; }
  .portfolio-map .chart-empty { min-height: 540px; }
}


@media (max-width: 1100px) {
  .score-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-rules > i { display: none; }
  .score-gate { grid-column: 1 / -1; }
  .role-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .presentation-hero { grid-template-columns: 1fr; min-height: 0; }
  .presentation-principle { align-self: auto; }
  .presentation-index { justify-content: flex-start; width: 100%; }
  .presentation-three-grid { grid-template-columns: 1fr; }
  .governance-flow { grid-template-columns: 1fr; }
  .governance-flow li { min-height: 0; border-right: 1px solid var(--line); border-bottom: 0; }
  .governance-flow li:first-child { border-radius: 10px 10px 0 0; }
  .governance-flow li:last-child { border-bottom: 1px solid var(--line); border-radius: 0 0 10px 10px; }
  .governance-flow li::after { display: none; }
  .governance-flow strong, .governance-flow h3 { margin-top: 10px; }
  .system-capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .presentation-metrics { grid-template-columns: 1fr; }
  .presentation-levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .presentation-hero { border-radius: 12px; padding: 28px 22px; }
  .presentation-hero h2 { font-size: 34px; }
  .presentation-actions .button { width: 100%; }
  .presentation-index { border-radius: 10px; margin-top: 10px; }
  .presentation-section { padding: 20px 16px; }
  .team-model-grid, .scorecard-grid, .system-capability-grid, .role-grid { grid-template-columns: 1fr; }
  .team-model-card dl > div { grid-template-columns: 88px 1fr; }
  .score-rules { grid-template-columns: 1fr; }
  .score-gate { grid-column: auto; }
  .score-bands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-bands > p { grid-column: 1 / -1; margin: 5px 0 0; }
  .governance-answer { grid-template-columns: 1fr; gap: 10px; }
  .governance-answer > span { display: none; }
  .dynamic-form-callout, .framework-summary { grid-template-columns: 1fr; }
  .dynamic-form-callout ul { grid-template-columns: 1fr; }
  .framework-summary { gap: 18px; padding: 24px 21px; }
  .framework-summary h3 { font-size: 17px; }
}

.portfolio-burndown { padding: 18px 20px; overflow-x: auto; }
.portfolio-burndown svg { display: block; width: 100%; min-width: 620px; }
.portfolio-burndown svg text { fill: var(--muted); font-size: 11px; }
.burndown-grid { stroke: var(--line); stroke-width: 1; }
.burndown-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linejoin: round; }
.burndown-point { fill: var(--blue); stroke: var(--card); stroke-width: 2; }
.burndown-summary { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.burndown-summary strong { color: var(--text); font-size: 20px; }
.portfolio-burndown-note { color: var(--muted); font-size: 12px; line-height: 1.6; padding: 0 20px 18px; margin: 0; }
.burndown-ideal { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 8 5; }
.burndown-today { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.burndown-legend { display: flex; flex-wrap: wrap; gap: 20px; color: var(--text); font-size: 12px; margin-bottom: 12px; }
.burndown-legend span { display: inline-flex; align-items: center; gap: 7px; }
.burndown-real-label::before, .burndown-ideal-label::before { content: ""; width: 24px; border-top: 3px solid var(--blue); }
.burndown-ideal-label::before { border-color: var(--orange); border-top-style: dashed; }

.nav-separator { height:1px; margin:14px 13px; background:rgba(174,189,206,.28); }

.team-launch-details { margin-top:16px; }
.team-launch-details > summary { cursor:pointer; padding:12px 0; font-size:13px; font-weight:700; color:var(--text); }
.team-launch-details > summary:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.team-launch-details .team-details-open { display:none; }
.team-launch-details[open] .team-details-open { display:inline; }
.team-launch-details[open] .team-details-closed { display:none; }
#forced-password-view { grid-template-columns:1fr; place-items:center; padding:24px; }
#forced-password-form { padding:28px; background:var(--card); border:1px solid var(--line); border-radius:12px; }
#forced-password-form h1 { font-size:24px; line-height:1.3; }
#forced-password-form > p { color:var(--muted); line-height:1.6; }
#forced-password-form > label { display:grid; gap:8px; margin:18px 0; }
#forced-password-form > button { width:100%; margin-top:10px; }

#admin-form input[name="force_password_change"] { width:auto; height:auto; margin-right:8px; }
#chapter-responsibles-field select { height:auto; min-height:140px; }
