:root {
  --navy: #173f75;
  --navy-dark: #0e2d55;
  --blue: #1469a8;
  --blue-soft: #e8f2f9;
  --teal: #087f73;
  --teal-soft: #e2f5f1;
  --gold: #b86b00;
  --gold-soft: #fff3dc;
  --red: #b42318;
  --red-soft: #feeceb;
  --ink: #16202a;
  --muted: #5c6975;
  --line: #dbe2e8;
  --surface: #ffffff;
  --background: #f4f7f9;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: var(--blue); }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #f0aa35;
  outline-offset: 2px;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--navy-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 24px 20px;
  background: var(--navy-dark);
  color: #fff;
}
.brand-home {
  width: 100%;
  margin: 0 0 28px;
  padding: 0 0 22px;
  display: grid;
  justify-items: start;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: transparent;
  color: #fff;
  text-align: left;
}
.brand-home:hover .brand-logo { opacity: .86; }
.brand-home span { font-size: 14px; font-weight: 800; }
.brand-logo { width: 126px; height: auto; display: block; transition: opacity 160ms ease; }
.nav { display: grid; gap: 6px; }
.nav-btn {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 0 5px 5px 0;
  background: transparent;
  color: rgba(255, 255, 255, .82);
  text-align: left;
  font-weight: 750;
}
.nav-btn:hover, .nav-btn.active { background: rgba(255, 255, 255, .12); color: #fff; border-left-color: #42d3b0; }
.side-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.side-label { margin-bottom: 9px; color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.side-link {
  width: 100%;
  min-height: 36px;
  margin-bottom: 7px;
  padding: 8px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, .86);
  font-size: 12px;
  text-align: left;
}
.side-link:hover, .side-link.active { border-color: rgba(255, 255, 255, .38); background: rgba(255, 255, 255, .11); color: #fff; }
.side-filters { margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .16); }
.side-filters summary { color: rgba(255, 255, 255, .92); cursor: pointer; font-size: 12px; font-weight: 800; }
.side-filter-fields { margin-top: 13px; display: grid; gap: 7px; }
.side-filter-fields label { margin-top: 4px; color: rgba(255, 255, 255, .62); font-size: 10px; font-weight: 800; }
.side-select { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; background: #fff; color: var(--ink); font-size: 12px; }
.side-clear { min-height: 36px; margin-top: 5px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 5px; background: transparent; color: #fff; font-size: 12px; font-weight: 750; }
.side-clear:hover { background: rgba(255, 255, 255, .12); }
.sidebar-footer { margin-top: 24px; padding-top: 18px; display: grid; gap: 8px; border-top: 1px solid rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.45; }
.sidebar-footer a { color: rgba(255, 255, 255, .88); text-underline-offset: 3px; }

.main { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 78px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 247, 249, .96);
  backdrop-filter: blur(12px);
}
.title h2 { margin: 0; color: var(--navy-dark); font-size: 21px; line-height: 1.2; }
.title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn.primary { border-color: var(--navy); background: var(--navy); color: #fff; }
.btn.primary:hover { border-color: var(--navy-dark); background: var(--navy-dark); color: #fff; }
.btn.ghost { background: transparent; }
.btn.compact { min-height: 36px; padding: 7px 10px; font-size: 13px; }
.btn:disabled { cursor: not-allowed; opacity: .45; }

.content { padding: 28px; }
.view { display: none; }
.view.active { display: block; }
.associate-hero, .page-intro {
  padding: 4px 0 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.page-intro { display: block; max-width: 900px; }
.associate-hero h3, .page-intro h3 { margin: 5px 0 8px; max-width: 850px; color: var(--navy-dark); font-size: 28px; line-height: 1.18; }
.associate-hero p, .page-intro p { margin: 0; max-width: 820px; color: var(--muted); line-height: 1.5; }
.eyebrow { color: var(--blue); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.hero-note { min-width: 188px; padding-left: 20px; border-left: 3px solid var(--teal); }
.hero-note strong { display: block; color: var(--navy-dark); font-size: 38px; line-height: 1; }
.hero-note span { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; line-height: 1.3; }
.evidence-summary {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.evidence-summary > div { min-height: 92px; padding: 15px 16px; border-right: 1px solid var(--line); }
.evidence-summary > div:last-child { border-right: 0; }
.evidence-summary strong, .evidence-summary span { display: block; }
.evidence-summary strong { color: var(--navy-dark); font-size: 14px; }
.evidence-summary span { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.grid { display: grid; gap: 14px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 8px 22px rgba(14, 45, 85, .04); }
.quick-themes { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.theme-card {
  min-height: 100px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  text-align: left;
}
.theme-card:hover, .theme-card.active { border-color: var(--blue); background: var(--blue-soft); }
.theme-card span { display: block; color: var(--navy-dark); font-weight: 800; line-height: 1.2; }
.theme-card strong { display: block; margin-top: 7px; color: var(--blue); font-size: 21px; }
.theme-card small { display: block; margin-top: 3px; color: var(--muted); line-height: 1.25; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { min-height: 112px; padding: 15px; }
.kpi span, .coverage-card > span, .deadline-summary article > span { color: var(--muted); font-size: 11px; font-weight: 850; text-transform: uppercase; }
.kpi strong, .coverage-card strong, .deadline-summary strong { display: block; margin-top: 7px; color: var(--navy-dark); font-size: 32px; line-height: 1; }
.kpi p, .coverage-card p, .deadline-summary p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }

.toolbar {
  margin-top: 16px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: end;
}
.toolbar .wide { grid-column: auto; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 800; }
.input, .select { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.input:hover, .select:hover { border-color: #9caebb; }
.split { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr); gap: 14px; align-items: start; }
.split > *, .table-card { min-width: 0; max-width: 100%; }
.section-head { min-height: 62px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.section-head h3 { margin: 0; color: var(--navy-dark); font-size: 16px; }
.section-head p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.section-head.unframed { padding-left: 0; padding-right: 0; border: 0; }
.table-wrap { max-height: 720px; overflow: auto; }
table { width: 100%; min-width: 820px; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { position: sticky; top: 0; z-index: 2; background: #f7f9fb; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
td { color: var(--ink); font-size: 13px; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.active { background: #edf5fa; }
.subject { color: var(--navy-dark); font-weight: 800; line-height: 1.3; }
.muted { color: var(--muted); font-size: 12px; }
.source-mini { margin-top: 5px; color: var(--blue); font-size: 10px; font-weight: 800; line-height: 1.2; }
.subtheme-label { margin-top: 6px; max-width: 180px; color: var(--muted); font-size: 11px; font-weight: 700; line-height: 1.25; }
.clamp { margin-top: 4px; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.tag { display: inline-flex; min-height: 24px; align-items: center; padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: #845000; font-size: 10px; font-weight: 850; line-height: 1.2; }
.tag.blue { background: var(--blue-soft); color: #0e5586; }
.tag.green { background: var(--teal-soft); color: #08665e; }
.tag.red { background: var(--red-soft); color: var(--red); }
.tag.neutral, .tag.muted-tag { background: #eef1f3; color: #4b5965; }
.pager { padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pager span { color: var(--muted); font-size: 12px; }

.detail-card { position: sticky; top: 94px; overflow: hidden; }
.detail-heading { align-items: flex-start; }
.detail-body { padding: 15px; }
.detail-title { margin: 0; color: var(--navy-dark); font-size: 20px; line-height: 1.25; }
.detail-summary { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.evidence-strip {
  margin-top: 15px;
  display: grid;
  grid-template-columns: .8fr 1.5fr .8fr;
  border: 1px solid #9fc4de;
  background: var(--blue-soft);
}
.evidence-strip span { min-width: 0; padding: 9px 10px; color: #23465f; font-size: 11px; line-height: 1.35; word-break: break-word; }
.evidence-strip span + span { border-left: 1px solid #b9d6e8; }
.evidence-strip b { display: block; margin-bottom: 3px; color: var(--navy-dark); font-size: 9px; text-transform: uppercase; }
.meta-grid { margin: 15px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.meta-item { min-height: 72px; padding: 9px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.meta-item span { display: block; color: var(--muted); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.meta-item b { display: block; margin-top: 4px; color: var(--ink); font-size: 13px; line-height: 1.35; word-break: break-word; }
.notice { margin: 12px 0; padding: 11px 12px; border-left: 3px solid var(--blue); background: var(--blue-soft); }
.notice.green { border-color: var(--teal); background: var(--teal-soft); }
.notice.warning { border-color: var(--gold); background: var(--gold-soft); }
.notice strong, .notice span { display: block; }
.notice strong { color: var(--navy-dark); font-size: 13px; }
.notice span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.detail-section { margin-top: 17px; }
.detail-section h5 { margin: 0 0 8px; color: var(--navy-dark); font-size: 12px; text-transform: uppercase; }
.contact-list { display: flex; flex-wrap: wrap; gap: 6px; }
.contact-chip { padding: 5px 8px; border: 1px solid #acd0e6; border-radius: 4px; background: var(--blue-soft); color: #0e5586; font-size: 11px; text-decoration: none; word-break: break-all; }
.material-list { margin: 0; padding-left: 18px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.content-box { max-height: 430px; padding: 13px; overflow: auto; border: 1px solid var(--line); border-radius: 4px; background: #fbfcfd; color: #28343f; white-space: pre-wrap; line-height: 1.55; font-size: 13px; }
.detail-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.source-note { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.technical-details { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.technical-details summary { cursor: pointer; color: var(--ink); font-weight: 800; }
.technical-details p { margin: 7px 0 0; word-break: break-word; }
.empty { padding: 30px; color: var(--muted); text-align: center; }
.empty strong { display: block; margin-bottom: 5px; color: var(--navy-dark); font-size: 17px; }

.deadline-summary { margin-bottom: 14px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.deadline-summary article { min-height: 112px; padding: 15px; border-right: 1px solid var(--line); }
.deadline-summary article:last-child { border-right: 0; }
.action-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.action-list { max-height: 780px; overflow: auto; }
.action-item { width: 100%; min-height: 76px; padding: 11px 13px; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto; gap: 11px; align-items: center; border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; }
.action-item:hover { background: #f3f8fb; }
.action-date { color: var(--blue); font-size: 12px; font-weight: 850; }
.action-copy strong, .action-copy small { display: block; }
.action-copy strong { color: var(--navy-dark); font-size: 13px; line-height: 1.3; }
.action-copy small { margin-top: 4px; color: var(--muted); font-size: 11px; }

.coverage-grid { margin-bottom: 14px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.coverage-card { min-height: 140px; padding: 15px; }
.coverage-bar, .rank-bar { width: 100%; overflow: hidden; border: 0; border-radius: 0; background: #e8edf0; appearance: none; }
.coverage-bar { height: 6px; margin-top: 14px; }
.coverage-bar::-webkit-progress-bar, .rank-bar::-webkit-progress-bar { background: #e8edf0; }
.coverage-bar::-webkit-progress-value { background: var(--teal); }
.coverage-bar::-moz-progress-bar { background: var(--teal); }
.charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rank-list { padding: 12px 15px 16px; display: grid; gap: 11px; }
.rank-row { display: grid; grid-template-columns: minmax(0, 1fr) 54px; gap: 12px; align-items: center; }
.rank-name { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.rank-bar { height: 7px; margin-top: 5px; }
.rank-bar::-webkit-progress-value { background: var(--blue); }
.rank-bar::-moz-progress-bar { background: var(--blue); }
.rank-count { color: var(--muted); font-size: 12px; text-align: right; }

.methodology { overflow: hidden; }
.method-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.method-grid article { min-height: 180px; padding: 18px; border-right: 1px solid var(--line); }
.method-grid article:last-child { border-right: 0; }
.method-grid article > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 850; }
.method-grid h4, .module-card h4 { margin: 13px 0 7px; color: var(--navy-dark); font-size: 15px; }
.method-grid p, .module-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.module-band { margin-top: 24px; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.module-card { min-height: 130px; padding: 15px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.module-card h4 { margin-top: 0; }
.footer { padding: 20px 28px 28px; display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 11px; }
.record-modal { width: min(960px, calc(100% - 32px)); max-width: none; max-height: 90vh; padding: 0; overflow: hidden; border: 1px solid #9fb1bf; border-radius: 8px; background: #fff; color: var(--ink); box-shadow: 0 26px 70px rgba(14, 45, 85, .28); }
.record-modal::backdrop { background: rgba(7, 24, 43, .68); }
.modal-shell { max-height: 90vh; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.modal-header { padding: 16px 20px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: var(--navy-dark); color: #fff; }
.modal-header span { color: #8ee3d2; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.modal-header h2 { margin: 4px 0 0; color: #fff; font-size: 19px; line-height: 1.25; }
.modal-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 5px; background: transparent; color: #fff; font-size: 25px; line-height: 1; }
.modal-close:hover { background: rgba(255, 255, 255, .12); }
.modal-body { padding: 22px; overflow-y: auto; }
.modal-intro { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.modal-topic { color: var(--blue); font-size: 11px; font-weight: 800; }
.modal-intro h3 { margin: 6px 0 0; color: var(--navy-dark); font-size: 24px; line-height: 1.25; }
.modal-summary { margin: 12px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.modal-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.modal-meta-grid > div { min-height: 76px; padding: 10px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.modal-meta-grid span { display: block; color: var(--muted); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.modal-meta-grid b { display: block; margin-top: 5px; font-size: 13px; line-height: 1.35; word-break: break-word; }
.modal-section { margin-top: 20px; }
.modal-section h4 { margin: 0 0 9px; color: var(--navy-dark); font-size: 13px; text-transform: uppercase; }
.modal-content-box { max-height: none; padding: 16px; border: 1px solid var(--line); background: #fbfcfd; white-space: pre-wrap; font-size: 14px; line-height: 1.65; }
.modal-source { padding-top: 16px; border-top: 1px solid var(--line); }
.modal-source p { margin: 5px 0; color: var(--muted); font-size: 11px; word-break: break-word; }
.modal-actions { margin-top: 20px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.whatsapp-widget { position: fixed; right: 18px; bottom: 18px; z-index: 80; min-height: 58px; padding: 9px 13px; display: flex; align-items: center; gap: 10px; border: 1px solid #087a41; border-radius: 8px; background: #128c4f; color: #fff; text-decoration: none; box-shadow: 0 14px 32px rgba(10, 62, 36, .28); }
.whatsapp-widget:hover { background: #0d783f; color: #fff; }
.whatsapp-widget img { width: 25px; height: 25px; flex: 0 0 25px; }
.whatsapp-widget span, .whatsapp-widget b, .whatsapp-widget small { display: block; }
.whatsapp-widget b { font-size: 12px; }
.whatsapp-widget small { margin-top: 2px; color: rgba(255, 255, 255, .82); font-size: 10px; }
.toast { position: fixed; right: 20px; bottom: 92px; z-index: 100; max-width: 360px; padding: 11px 13px; display: none; border-radius: 6px; background: var(--ink); color: #fff; box-shadow: 0 16px 36px rgba(0, 0, 0, .2); font-size: 13px; }
.toast.show { display: block; }

@media (max-width: 1260px) {
  .toolbar { grid-template-columns: 1fr; }
  .toolbar .wide { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .detail-card { position: static; }
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .side-block, .sidebar-footer { display: none; }
  .side-filters { margin-top: 14px; padding-top: 14px; }
  .quick-themes, .kpis, .coverage-grid, .method-grid, .evidence-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-summary > div:nth-child(2) { border-right: 0; }
  .evidence-summary > div:last-child { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .method-grid article:nth-child(2) { border-right: 0; }
  .method-grid article { border-bottom: 1px solid var(--line); }
  .method-grid article:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  .sidebar { padding: 16px; }
  .brand-home { margin-bottom: 14px; padding-bottom: 14px; grid-template-columns: 68px minmax(0, 1fr); align-items: center; }
  .brand-logo { width: 68px; }
  .nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar { position: static; padding: 15px 16px; align-items: stretch; flex-direction: column; }
  .content { padding: 20px 16px; }
  .associate-hero { align-items: stretch; flex-direction: column; }
  .associate-hero h3, .page-intro h3 { font-size: 24px; }
  .hero-note { padding: 13px 0 0; border-top: 2px solid var(--teal); border-left: 0; }
  .quick-themes, .kpis, .coverage-grid, .charts, .action-columns, .module-grid, .method-grid, .deadline-summary, .toolbar, .evidence-summary { grid-template-columns: 1fr; }
  .evidence-summary > div, .evidence-summary > div:nth-child(2) { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-summary > div:last-child { grid-column: auto; border-top: 0; border-bottom: 0; }
  .toolbar .wide { grid-column: auto; }
  .actions .btn { flex: 1; }
  .deadline-summary article, .method-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .deadline-summary article:last-child, .method-grid article:last-child { border-bottom: 0; }
  .action-item { grid-template-columns: 74px minmax(0, 1fr); }
  .action-item .tag { grid-column: 2; justify-self: start; }
  .table-wrap { max-height: 900px; overflow-x: hidden; overflow-y: auto; }
  table { min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  tbody, tbody tr, tbody td { display: block; }
  tbody tr { padding: 11px 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .65fr); gap: 7px 12px; border-bottom: 1px solid var(--line); }
  tbody td { padding: 0; border: 0; }
  tbody td:nth-child(3) { grid-column: 1 / -1; grid-row: 1; }
  tbody td:nth-child(2) { grid-column: 1; grid-row: 2; }
  tbody td:nth-child(4) { grid-column: 2; grid-row: 2; text-align: right; }
  tbody td:nth-child(1) { grid-column: 1; grid-row: 3; }
  tbody td:nth-child(5) { grid-column: 2; grid-row: 3; text-align: right; }
  .meta-grid { grid-template-columns: 1fr; }
  .evidence-strip { grid-template-columns: 1fr; }
  .evidence-strip span + span { border-left: 0; border-top: 1px solid #b9d6e8; }
  .detail-actions .btn { width: 100%; text-align: center; }
  .record-modal { width: calc(100% - 18px); max-height: 94vh; }
  .modal-shell { max-height: 94vh; }
  .modal-header { padding: 14px; }
  .modal-body { padding: 15px; }
  .modal-intro { display: grid; }
  .modal-intro h3 { font-size: 20px; }
  .modal-meta-grid { grid-template-columns: 1fr; }
  .modal-content-box { padding: 12px; font-size: 13px; }
  .modal-actions .btn { width: 100%; text-align: center; }
  .whatsapp-widget { right: 12px; bottom: 12px; width: 56px; height: 56px; min-height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
  .whatsapp-widget span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .toast { right: 12px; bottom: 80px; left: 12px; max-width: none; }
  .footer { padding: 16px; flex-direction: column; }
}

/* Portal navigation and visualization system */
:root { --navy: #123f70; --navy-dark: #0b2f55; --blue: #0f6ea8; --teal: #087c70; --gold: #9a6508; --ink: #14212d; --muted: #566675; --line: #d7e0e7; --background: #f3f6f8; --surface-raised: #f8fafb; }
button, a, select, input { transition: color 180ms ease-out, background-color 180ms ease-out, border-color 180ms ease-out, box-shadow 180ms ease-out, opacity 180ms ease-out, transform 180ms ease-out; }
button:active, .btn:active, .kanban-card:active { transform: translateY(1px); }
svg { display: block; }
.icon-text { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.icon-text svg, .text-action svg { width: 17px; height: 17px; stroke-width: 2; }

.shell { grid-template-columns: 248px minmax(0, 1fr); }
.sidebar { padding: 20px 16px; background: #0b3159; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
.brand-home { margin-bottom: 22px; padding-bottom: 18px; gap: 8px; }
.brand-home span { font-size: 13px; }
.brand-logo { width: 108px; }
.nav { gap: 4px; }
.nav-btn { min-height: 40px; padding: 8px 10px; display: flex; align-items: center; gap: 10px; border-left-width: 2px; font-size: 13px; }
.nav-btn svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .72; }
.nav-btn:hover svg, .nav-btn.active svg { opacity: 1; }
.nav-btn.active { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04); }
.side-label { margin-bottom: 7px; font-size: 9px; letter-spacing: .08em; }
.side-filters { margin-top: 16px; padding-top: 15px; }
.side-filters summary { min-height: 30px; display: flex; align-items: center; }
.side-filter-fields { margin-top: 9px; gap: 5px; }
.side-select, .side-clear { height: 34px; min-height: 34px; }
.sidebar-footer { margin-top: 18px; padding-top: 14px; }

.topbar { min-height: 72px; padding: 13px 26px; background: rgba(247, 249, 250, .96); }
.title h2 { font-size: 19px; }
.title p { font-size: 12px; }
.btn { min-height: 38px; box-shadow: 0 1px 1px rgba(14, 45, 85, .03); }
.btn:hover { box-shadow: 0 5px 14px rgba(14, 45, 85, .08); }
.content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 26px; }
.view.active { animation: view-enter 220ms ease-out both; }
@keyframes view-enter { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.dashboard-hero { min-height: 260px; padding: 34px 38px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, .4fr); align-items: center; gap: 40px; border-radius: 8px; background: #10385f; color: #fff; box-shadow: 0 16px 38px rgba(11, 47, 85, .14); }
.dashboard-hero .eyebrow { color: #75ddc4; }
.dashboard-hero h1 { max-width: 850px; margin: 8px 0 10px; color: #fff; font-size: clamp(30px, 3vw, 47px); line-height: 1.08; letter-spacing: 0; }
.dashboard-hero p { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .76); font-size: 16px; line-height: 1.55; }
.hero-actions { margin-top: 23px; display: flex; gap: 8px; flex-wrap: wrap; }
.dashboard-hero .hero-actions .btn { border-color: rgba(255, 255, 255, .25); }
.dashboard-hero .hero-actions .btn:not(.primary) { background: rgba(255, 255, 255, .08); color: #fff; }
.dashboard-hero .hero-actions .btn:not(.primary):hover { background: rgba(255, 255, 255, .16); }
.dashboard-hero .hero-actions .primary { border-color: #fff; background: #fff; color: #0b3159; }
.dashboard-hero .hero-actions .primary:hover { border-color: #dbeaf4; background: #dbeaf4; color: #0b3159; }
.hero-status { padding: 23px 0 23px 25px; border-left: 1px solid rgba(255, 255, 255, .22); }
.hero-status > span { display: block; color: #75ddc4; font-size: 10px; font-weight: 850; text-transform: uppercase; }
.hero-status > strong { display: block; margin-top: 8px; color: #fff; font-size: 52px; line-height: 1; }
.hero-status > small { display: block; max-width: 180px; margin-top: 7px; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.hero-status > div { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: #fff; font-size: 12px; }
.hero-status svg { width: 18px; height: 18px; color: #75ddc4; }

.dashboard-context { min-height: 54px; margin: 12px 0; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.dashboard-context > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dashboard-context svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--teal); }
.dashboard-context span, .dashboard-context b, .dashboard-context small { display: block; }
.dashboard-context b { color: var(--navy-dark); font-size: 12px; }
.dashboard-context small { margin-top: 2px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.dashboard-context > strong { flex: 0 0 auto; color: var(--navy-dark); font-size: 12px; }

.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { position: relative; min-height: 126px; padding: 16px; overflow: hidden; }
.kpi-icon { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: var(--blue-soft); color: var(--blue); }
.kpi-icon svg { width: 17px; height: 17px; }
.kpi strong { margin-top: 11px; font-size: 34px; }
.kpi p { max-width: 190px; }

.dashboard-grid { display: grid; gap: 12px; }
.dashboard-priority-grid { margin-top: 12px; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.dashboard-insight-grid { margin-top: 12px; grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 24px rgba(14, 45, 85, .04); }
.panel > .section-head { min-height: 82px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.section-kicker { display: block; margin-bottom: 4px; color: var(--teal); font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.section-head h3 { font-size: 16px; }
.text-action { padding: 6px 0; display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 800; }
.text-action:hover { color: var(--navy-dark); }

.priority-list, .recent-list { padding: 3px 16px 9px; }
.priority-item, .recent-item { width: 100%; min-height: 67px; padding: 10px 4px; display: grid; align-items: center; gap: 10px; border: 0; border-bottom: 1px solid #e8edf1; background: transparent; color: var(--ink); text-align: left; }
.priority-item { grid-template-columns: 34px minmax(0, 1fr) auto 18px; }
.recent-item { grid-template-columns: 78px minmax(0, 1fr) 18px; }
.priority-item:last-child, .recent-item:last-child { border-bottom: 0; }
.priority-item:hover, .recent-item:hover { padding-right: 8px; padding-left: 8px; background: #f5f9fb; }
.priority-marker { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; }
.priority-marker.future { background: var(--teal-soft); color: var(--teal); }
.priority-marker.action { background: var(--gold-soft); color: var(--gold); }
.priority-marker svg { width: 16px; height: 16px; }
.priority-copy, .priority-copy b, .priority-copy small, .recent-item span, .recent-item b, .recent-item small { display: block; min-width: 0; }
.priority-copy b, .recent-item b { overflow: hidden; color: var(--navy-dark); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.priority-copy small, .recent-item small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.priority-date, .recent-item time { color: var(--muted); font-size: 10px; font-weight: 750; }
.priority-item > svg, .recent-item > svg { width: 15px; height: 15px; color: #8a9aa8; }

.activity-chart { min-height: 290px; padding: 22px 18px 14px; display: grid; grid-template-columns: repeat(12, minmax(30px, 1fr)); align-items: end; gap: 7px; overflow-x: auto; }
.activity-chart button { min-width: 30px; height: 235px; padding: 0; display: grid; grid-template-rows: 22px 1fr 30px; align-items: end; border: 0; background: transparent; color: var(--muted); }
.bar-value { font-size: 10px; font-weight: 800; opacity: 0; transform: translateY(4px); }
.activity-chart button:hover .bar-value, .activity-chart button:focus-visible .bar-value { opacity: 1; transform: translateY(0); }
.activity-bar { height: 175px; display: flex; align-items: end; justify-content: center; }
.activity-bar i { width: min(30px, 70%); min-height: 8px; display: block; border-radius: 4px 4px 2px 2px; background: #6fa9c8; transition: height 260ms ease-out, background-color 180ms ease-out; }
.activity-chart button:hover .activity-bar i, .activity-chart button:focus-visible .activity-bar i { background: var(--teal); }
.bar-label { align-self: end; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.bar-label small { display: block; margin-top: 2px; font-size: 8px; }

.home-theme-list { padding: 8px 16px 14px; }
.home-theme { width: 100%; min-height: 56px; padding: 9px 2px; display: grid; grid-template-columns: minmax(0, 1fr) 104px; align-items: center; gap: 12px; border: 0; border-bottom: 1px solid #e8edf1; background: transparent; text-align: left; }
.home-theme:last-child { border-bottom: 0; }
.home-theme:hover, .home-theme.active { padding-right: 7px; padding-left: 7px; background: #f2f8fb; }
.home-theme span, .home-theme b, .home-theme small { display: block; min-width: 0; }
.home-theme b { overflow: hidden; color: var(--navy-dark); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-theme small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.theme-meter { height: 5px; overflow: hidden; border-radius: 3px; background: #e7edf1; }
.theme-meter i { height: 100%; display: block; border-radius: inherit; background: var(--blue); }
.bar-10 { height: 10%; } .bar-20 { height: 20%; } .bar-30 { height: 30%; } .bar-40 { height: 40%; } .bar-50 { height: 50%; }
.bar-60 { height: 60%; } .bar-70 { height: 70%; } .bar-80 { height: 80%; } .bar-90 { height: 90%; } .bar-100 { height: 100%; }
.meter-10 { width: 10%; } .meter-20 { width: 20%; } .meter-30 { width: 30%; } .meter-40 { width: 40%; } .meter-50 { width: 50%; }
.meter-60 { width: 60%; } .meter-70 { width: 70%; } .meter-80 { width: 80%; } .meter-90 { width: 90%; } .meter-100 { width: 100%; }

.view-switcher-band { margin-top: 24px; padding: 22px 0; display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 26px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.view-switcher-band h3 { margin: 4px 0 0; color: var(--navy-dark); font-size: 20px; }
.view-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.view-shortcuts button { min-height: 74px; padding: 12px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 16px; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--navy-dark); text-align: left; }
.view-shortcuts button:hover { border-color: #9abbd0; background: #f5f9fb; box-shadow: 0 7px 16px rgba(14, 45, 85, .07); }
.view-shortcuts button > svg:first-child { width: 21px; height: 21px; color: var(--blue); }
.view-shortcuts button > svg:last-child { width: 15px; height: 15px; color: var(--muted); }
.view-shortcuts span, .view-shortcuts b, .view-shortcuts small { display: block; }
.view-shortcuts b { font-size: 12px; }
.view-shortcuts small { margin-top: 3px; color: var(--muted); font-size: 10px; }

.page-intro-row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.page-intro-row > div:first-child { min-width: 0; }
.page-intro-row h3 { font-size: 27px; }
.view-count { flex: 0 0 auto; padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--navy-dark); font-size: 11px; font-weight: 800; }
.filter-feedback { min-height: 44px; margin-bottom: 12px; padding: 8px 10px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--muted); font-size: 11px; }
.filter-feedback span { display: inline-flex; align-items: center; gap: 7px; }
.filter-feedback svg { width: 15px; height: 15px; color: var(--teal); }
.filter-feedback b { padding: 5px 7px; border-radius: 4px; background: var(--blue-soft); color: var(--navy-dark); font-size: 10px; }
.filter-feedback button { margin-left: auto; padding: 5px 7px; border: 0; background: transparent; color: var(--blue); font-size: 11px; font-weight: 800; }

.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(290px, 1fr)); gap: 10px; align-items: start; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.kanban-column { min-width: 290px; border: 1px solid var(--line); border-radius: 8px; background: #eaf0f4; scroll-snap-align: start; }
.kanban-column > header { min-height: 82px; padding: 13px; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 9px; border-bottom: 1px solid #cfdbe3; }
.lane-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 6px; background: #fff; color: var(--blue); }
.lane-icon svg { width: 16px; height: 16px; }
.kanban-column h4 { margin: 1px 0 0; color: var(--navy-dark); font-size: 13px; }
.kanban-column header p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.3; }
.kanban-column header > b { min-width: 25px; height: 25px; padding: 0 6px; display: grid; place-items: center; border-radius: 13px; background: #fff; color: var(--navy-dark); font-size: 10px; }
.lane-future { border-top: 3px solid var(--teal); }
.lane-action { border-top: 3px solid #c27a0b; }
.lane-opportunity { border-top: 3px solid var(--blue); }
.lane-information { border-top: 3px solid #7b8995; }
.kanban-list { height: min(64vh, 740px); min-height: 430px; padding: 9px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #a7b8c5 transparent; }
.kanban-card { width: 100%; min-height: 146px; margin-bottom: 8px; padding: 12px; display: block; border: 1px solid #d5dee5; border-radius: 7px; background: #fff; color: var(--ink); text-align: left; box-shadow: 0 2px 5px rgba(14, 45, 85, .04); }
.kanban-card:hover { border-color: #91b4c9; box-shadow: 0 8px 18px rgba(14, 45, 85, .1); transform: translateY(-2px); }
.kanban-card-top, .kanban-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kanban-card-top small { color: var(--blue); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.kanban-card-top svg { width: 14px; height: 14px; color: #8a9aa8; }
.kanban-card > strong { min-height: 51px; margin-top: 9px; display: -webkit-box; overflow: hidden; color: var(--navy-dark); font-size: 13px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.kanban-theme { margin-top: 10px; display: block; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.kanban-meta { margin-top: 12px; padding-top: 9px; border-top: 1px solid #e7ecef; color: var(--muted); font-size: 9px; }
.kanban-meta b { color: var(--teal); }
.lane-empty { padding: 38px 12px; color: var(--muted); font-size: 11px; text-align: center; }

.timeline { position: relative; max-width: 1180px; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; top: 10px; bottom: 0; left: 13px; width: 1px; background: #b8cbd7; }
.timeline-month { position: relative; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.timeline-month > summary { min-height: 74px; padding: 12px 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.timeline-month > summary::-webkit-details-marker { display: none; }
.timeline-node { position: absolute; left: -30px; top: 27px; width: 13px; height: 13px; border: 3px solid var(--background); border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px #8eb0c5; }
.timeline-month summary span:not(.timeline-node), .timeline-month summary b, .timeline-month summary small { display: block; }
.timeline-month summary small { color: var(--blue); font-size: 9px; font-weight: 850; }
.timeline-month summary b { margin-top: 2px; color: var(--navy-dark); font-size: 17px; }
.timeline-month summary > strong { color: var(--muted); font-size: 11px; }
.timeline-month summary > svg { width: 17px; height: 17px; color: var(--muted); transition: transform 180ms ease-out; }
.timeline-month[open] summary > svg { transform: rotate(180deg); }
.timeline-items { padding: 0 14px 12px; }
.timeline-items button { width: 100%; min-height: 66px; padding: 10px 8px; display: grid; grid-template-columns: 82px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; border: 0; border-top: 1px solid #e7ecef; background: transparent; color: var(--ink); text-align: left; }
.timeline-items button:hover { padding-right: 12px; padding-left: 12px; background: #f5f9fb; }
.timeline-items time { color: var(--muted); font-size: 10px; font-weight: 750; }
.timeline-items span:not(.tag), .timeline-items span b, .timeline-items span small { display: block; min-width: 0; }
.timeline-items span b { overflow: hidden; color: var(--navy-dark); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-items span small { margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.timeline-items button > svg { width: 15px; height: 15px; color: #8a9aa8; }
.compact-empty { min-height: 150px; }

@media (max-width: 1260px) {
  .dashboard-priority-grid, .dashboard-insight-grid { grid-template-columns: 1fr; }
  .kanban-board { grid-template-columns: repeat(4, 320px); }
}

@media (max-width: 980px) {
  .shell { width: 100%; max-width: 100vw; grid-template-columns: minmax(0, 1fr); overflow-x: clip; }
  .sidebar, .main { width: 100%; min-width: 0; max-width: 100vw; }
  .sidebar { position: static; height: auto; padding: 14px 16px; overflow: visible; }
  .brand-home { width: auto; margin: 0 0 12px; padding: 0 0 12px; display: flex; align-items: center; }
  .brand-logo { width: 78px; }
  .brand-home span { font-size: 12px; }
  .side-label { display: none; }
  .nav { width: calc(100% + 32px); max-width: 100vw; margin: 0 -16px; padding: 0 16px 7px; display: flex; gap: 5px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav-btn { width: auto; min-width: max-content; min-height: 38px; padding: 8px 11px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 6px; scroll-snap-align: start; }
  .nav-btn:hover, .nav-btn.active { border-color: rgba(255, 255, 255, .38); }
  .side-filters { margin-top: 7px; padding-top: 8px; }
  .side-filter-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 7px; }
  .side-filter-fields label { display: none; }
  .sidebar-footer { display: none; }
  .topbar { top: 0; }
  .dashboard-hero { min-height: 230px; padding: 28px; grid-template-columns: minmax(0, 1fr) 210px; }
  .dashboard-hero h1 { font-size: 34px; }
  .hero-status > strong { font-size: 44px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .view-switcher-band { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { min-height: 64px; padding: 10px 14px; flex-direction: row; align-items: center; }
  .title p { display: none; }
  .title h2 { font-size: 16px; }
  .actions { width: auto; margin-left: auto; flex-wrap: nowrap; }
  .actions .btn { width: 38px; min-width: 38px; padding: 0; flex: 0 0 38px; }
  .actions .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .content { padding: 16px 12px; }
  .side-filter-fields { grid-template-columns: 1fr; }
  .side-filter-fields label { display: block; }
  .dashboard-hero { min-height: 0; padding: 24px 20px; grid-template-columns: 1fr; gap: 24px; }
  .dashboard-hero h1 { font-size: 29px; }
  .dashboard-hero p { font-size: 14px; }
  .hero-status { padding: 18px 0 0; border-top: 1px solid rgba(255, 255, 255, .22); border-left: 0; }
  .hero-status > small { max-width: none; }
  .dashboard-context { align-items: flex-start; }
  .dashboard-context > strong { display: none; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { min-height: 116px; padding: 13px; }
  .kpi strong { font-size: 29px; }
  .kpi-icon { width: 28px; height: 28px; }
  .priority-list, .recent-list { padding-right: 10px; padding-left: 10px; }
  .priority-item { grid-template-columns: 32px minmax(0, 1fr) 15px; }
  .priority-date { display: none; }
  .recent-item { grid-template-columns: 65px minmax(0, 1fr) 15px; }
  .activity-chart { grid-template-columns: repeat(12, 38px); }
  .home-theme { grid-template-columns: minmax(0, 1fr) 76px; }
  .view-shortcuts { grid-template-columns: 1fr; }
  .page-intro-row { display: block; }
  .view-count { width: max-content; margin-top: 12px; }
  .filter-feedback button { width: 100%; margin-left: 0; text-align: left; }
  .kanban-board { margin-right: -12px; grid-template-columns: repeat(4, minmax(82vw, 320px)); }
  .kanban-list { height: 62vh; min-height: 380px; }
  .timeline { padding-left: 25px; }
  .timeline::before { left: 7px; }
  .timeline-node { left: -23px; }
  .timeline-month > summary { grid-template-columns: minmax(0, 1fr) 16px; }
  .timeline-month summary > strong { display: none; }
  .timeline-items button { grid-template-columns: 66px minmax(0, 1fr) 15px; }
  .timeline-items .tag { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
