:root {
  --ink: #202534;
  --muted: #747b8b;
  --line: #e8eaf0;
  --paper: #ffffff;
  --canvas: #f5f6f9;
  --orange: #f4511e;
  --orange-soft: #fff1eb;
  --pink: #e9376e;
  --purple: #7c3aed;
  --green: #0f9f8f;
}

/* Revisão trimestral */
.revision-view { min-width: 0; }
.demo-mode-banner {
  display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 13px 16px;
  border: 1px solid #f6c7b7; border-radius: 10px; background: #fff6f1; color: #68483d;
}
.demo-mode-banner strong { color: #d74317; white-space: nowrap; }
.demo-mode-banner span { font-size: 13px; }
.demo-mode-banner code { border-radius: 4px; background: #fff; padding: 2px 5px; font-weight: 700; }
.revision-heading { align-items: center; gap: 24px; }
.primary-action {
  border: 0; border-radius: 10px; background: linear-gradient(135deg, #f4511e, #ec407a); color: #fff;
  padding: 12px 18px; font-weight: 800; cursor: pointer; box-shadow: 0 8px 22px rgba(244,81,30,.2);
}
.primary-action:disabled { opacity: .5; cursor: not-allowed; }
.revision-tabs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 12px; }
.revision-tabs > button {
  min-width: 180px; display: grid; gap: 4px; text-align: left; border: 1px solid #e6e8ee; border-radius: 12px;
  background: #fff; color: #303541; padding: 12px 14px; cursor: pointer;
}
.revision-tabs > button.active { border-color: #f4511e; box-shadow: 0 0 0 2px rgba(244,81,30,.12); }
.revision-tabs span { color: #747b89; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.revision-tabs strong { font-size: 15px; }
.revision-status, .entry-status {
  display: inline-flex; width: fit-content; align-items: center; border-radius: 999px; padding: 4px 9px;
  background: #eef1f5; color: #5f6877; font-size: 10px; font-style: normal; font-weight: 900; letter-spacing: .04em;
}
.status-aberta, .entry-reaberta { background: #e5f8f3; color: #087c68; }
.status-encerrada, .entry-enviada { background: #fff3d7; color: #976000; }
.status-publicada, .entry-publicada { background: #e8efff; color: #315cb5; }
.status-oculta { background: #f3e9fb; color: #70409b; }
.status-rascunho, .entry-rascunho { background: #eef1f5; color: #5f6877; }
.revision-summary {
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 1px; overflow: hidden; margin-bottom: 16px;
  border: 1px solid #e7e9ee; border-radius: 14px; background: #e7e9ee;
}
.revision-summary > div { min-width: 0; display: grid; align-content: center; gap: 5px; background: #fff; padding: 16px 18px; }
.revision-summary span, .manager-panel span, .create-revision > div > span { color: #f4511e; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.revision-summary strong { font-size: 15px; overflow-wrap: anywhere; }
.revision-summary small { color: #737b88; white-space: normal; }
.manager-panel {
  display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 16px; padding: 17px 20px;
  border: 1px solid #f9c9b9; border-radius: 14px; background: linear-gradient(120deg, #fff8f5, #fff5fa);
}
.manager-panel > div:first-child { display: grid; gap: 4px; }
.manager-panel p { margin: 0; color: #6d7480; font-size: 12px; }
.manager-actions, .toolbar-actions, .create-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.manager-actions button, .toolbar-actions button, .create-actions button, .revision-pagination button {
  border: 1px solid #dfe2e8; border-radius: 8px; background: #fff; color: #454b57; padding: 9px 12px; font-weight: 750; cursor: pointer;
}
.manager-actions button:disabled, .toolbar-actions button:disabled, .revision-pagination button:disabled { opacity: .45; cursor: not-allowed; }
.manager-actions .publish-action { border-color: #f4511e; color: #e44516; }
.create-revision {
  display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)); gap: 12px; margin-bottom: 16px; padding: 20px;
  border: 1px solid #e6e8ed; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(30,35,45,.06);
}
.create-revision > div:first-child { grid-column: 1 / -1; }
.create-revision h2 { margin: 4px 0; font-size: 19px; }
.create-revision p { margin: 0; color: #717986; }
.create-revision label, .revision-toolbar label { display: grid; gap: 6px; color: #626a78; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.create-revision input, .create-revision select, .revision-toolbar input, .revision-toolbar select {
  min-width: 0; height: 40px; border: 1px solid #dfe2e8; border-radius: 8px; background: #fff; color: #303541; padding: 0 10px; font: inherit;
  font-size: 13px; font-weight: 500; text-transform: none;
}
.create-revision .wide { grid-column: span 2; }
.create-actions { grid-column: 1 / -1; }
.revision-notice { margin-bottom: 12px; border-left: 4px solid #f4511e; border-radius: 7px; background: #fff7f3; color: #65483e; padding: 11px 14px; font-size: 13px; }
.revision-toolbar {
  display: grid; grid-template-columns: minmax(150px, .8fr) minmax(150px, .8fr) minmax(210px, 1.2fr) auto;
  align-items: end; gap: 10px; margin-bottom: 10px; padding: 14px; border: 1px solid #e7e9ee; border-radius: 12px; background: #fff;
}
.revision-sheet-wrap { overflow: auto; max-height: 62vh; border: 1px solid #dfe2e7; border-radius: 12px; background: #fff; }
.revision-sheet { width: 100%; min-width: 1260px; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.revision-sheet th {
  position: sticky; top: 0; z-index: 2; border-right: 1px solid rgba(255,255,255,.22); background: #f4511e; color: #fff;
  padding: 11px 10px; text-align: left; white-space: nowrap;
}
.revision-sheet td { border-right: 1px solid #eceef2; border-bottom: 1px solid #eceef2; padding: 8px 10px; vertical-align: middle; }
.revision-sheet tr.changed td { background: #fffceb; }
.revision-sheet tbody tr:hover td { background: #fff8f5; }
.revision-sheet td:nth-child(5) { min-width: 260px; }
.revision-sheet td:nth-child(7) { width: 150px; background: #fffbea; }
.revision-sheet td:nth-child(8) { min-width: 240px; background: #fffbea; }
.revision-sheet .old-value { background: #f5f6f8; color: #5d6470; font-weight: 750; }
.revision-sheet input { width: 100%; min-width: 110px; border: 1px solid #d9dde4; border-radius: 6px; background: #fff; padding: 8px; color: #252a33; font: inherit; }
.revision-sheet input:focus { border-color: #f4511e; outline: 2px solid rgba(244,81,30,.14); }
.revision-sheet input:disabled { border-color: transparent; background: transparent; color: #68707c; }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.empty-table, .revision-empty { padding: 42px; text-align: center; color: #707885; }
.revision-empty img { width: 70px; height: 70px; object-fit: contain; }
.revision-pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; color: #6e7581; font-size: 12px; }
.revision-pagination > div { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1100px) {
  .revision-summary { grid-template-columns: repeat(2, 1fr); }
  .revision-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .demo-mode-banner { align-items: flex-start; flex-direction: column; }
  .revision-heading, .manager-panel { align-items: stretch; flex-direction: column; }
  .manager-actions, .toolbar-actions { justify-content: stretch; }
  .manager-actions button, .toolbar-actions button { flex: 1 1 auto; }
  .revision-summary, .revision-toolbar, .create-revision { grid-template-columns: 1fr; }
  .create-revision .wide { grid-column: auto; }
  .revision-summary > div { padding: 13px; }
  .revision-sheet-wrap { max-height: 58vh; }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
select,
input {
  font: inherit;
}

button {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
}

.sidebar {
  background: #1d2029;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  padding: 24px 16px 18px;
  position: fixed;
  top: 0;
  width: 242px;
  z-index: 30;
}

.brand {
  align-items: center;
  background: transparent;
  border: 0;
  color: white;
  cursor: pointer;
  display: flex;
  gap: 12px;
  margin: 0 8px 36px;
  padding: 0;
  text-align: left;
}

.brand-icon {
  align-items: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 9px 24px rgba(244, 81, 30, .3);
  display: flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  width: 42px;
}

.brand-icon img {
  height: 100%;
  image-rendering: auto;
  object-fit: cover;
  width: 100%;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 14px;
  letter-spacing: .04em;
}

.brand span {
  color: #9ea4b1;
  font-size: 10px;
  margin-top: 3px;
}

.sidebar nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.nav-entry {
  display: contents;
}

.sidebar nav p {
  color: #757c8c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .17em;
  margin: 20px 13px 6px;
}

.sidebar nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: #b8bdc8;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  transition: .18s ease;
  width: 100%;
}

.sidebar nav button:hover {
  background: rgba(255,255,255,.06);
  color: white;
}

.sidebar nav button.active {
  background: linear-gradient(100deg, rgba(244,81,30,.28), rgba(233,55,110,.12));
  box-shadow: inset 3px 0 var(--orange);
  color: white;
}

.sidebar nav button > span {
  align-items: center;
  color: #858c9b;
  display: flex;
  font-size: 17px;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.sidebar nav button.active > span {
  color: #ff8a55;
}

.sidebar nav button small {
  background: rgba(244, 81, 30, .2);
  border: 1px solid rgba(255, 130, 75, .24);
  border-radius: 99px;
  color: #ff9a70;
  font-size: 7px;
  margin-left: auto;
  padding: 3px 5px;
}

.sidebar-foot {
  align-items: center;
  background: #272b36;
  border: 1px solid #333846;
  border-radius: 12px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.sidebar-foot strong,
.sidebar-foot small {
  display: block;
}

.sidebar-foot strong {
  font-size: 10px;
}

.sidebar-foot small {
  color: #8f96a4;
  font-size: 9px;
  margin-top: 3px;
}

.status-dot {
  background: #34d399;
  border: 3px solid rgba(52, 211, 153, .15);
  border-radius: 50%;
  box-sizing: content-box;
  height: 7px;
  width: 7px;
}

.main-content {
  margin-left: 242px;
  min-width: 0;
}

.topbar {
  align-items: center;
  background: rgba(255,255,255,.93);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 66px;
  justify-content: space-between;
  padding: 0 30px;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(15px);
}

.breadcrumb {
  align-items: center;
  display: flex;
  font-size: 11px;
  gap: 10px;
}

.breadcrumb span,
.breadcrumb b {
  color: #a2a6b1;
  font-weight: 500;
}

.profile {
  align-items: center;
  display: flex;
  gap: 11px;
}

.global-search {
  align-items: center;
  background: #f7f7f9;
  border: 1px solid #e7e8ed;
  border-radius: 9px;
  display: flex;
  gap: 8px;
  height: 36px;
  margin-left: auto;
  margin-right: 22px;
  max-width: 310px;
  padding: 0 9px;
  width: 28vw;
}

.global-search > span {
  color: #8c919c;
  font-size: 16px;
}

.global-search input {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 10px;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.global-search kbd {
  background: white;
  border: 1px solid #dedfe4;
  border-radius: 5px;
  color: #9499a4;
  font-family: inherit;
  font-size: 7px;
  padding: 3px 5px;
}

.profile > div:first-child {
  text-align: right;
}

.profile strong,
.profile span {
  display: block;
}

.profile strong {
  font-size: 11px;
}

.profile span {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.avatar {
  align-items: center;
  background: linear-gradient(145deg, #ff7a32, #e73369);
  border: 3px solid #fff1eb;
  border-radius: 50%;
  color: white;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 37px;
  justify-content: center;
  width: 37px;
}

.logout-button {
  background: transparent;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: #777d89;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  padding: 7px 9px;
}

.logout-button:hover {
  border-color: #f4511e;
  color: #f4511e;
}

.menu-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  font-size: 20px;
}

.page {
  margin: auto;
  max-width: 1560px;
  padding: 26px 30px 50px;
}

.hero {
  align-items: flex-end;
  background: linear-gradient(118deg, #ee4c1e 0%, #f0642f 46%, #db2c64 100%);
  border-radius: 18px;
  box-shadow: 0 14px 35px rgba(218, 60, 42, .17);
  color: white;
  display: flex;
  justify-content: space-between;
  min-height: 164px;
  overflow: hidden;
  padding: 30px 34px;
  position: relative;
}

.hero::before,
.hero::after {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  height: 310px;
  position: absolute;
  right: -40px;
  top: -180px;
  width: 310px;
}

.hero::after {
  height: 170px;
  right: 100px;
  top: 55px;
  width: 170px;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .16em;
  opacity: .76;
}

.hero h1 {
  font-size: clamp(24px, 2.3vw, 36px);
  letter-spacing: -.035em;
  line-height: 1.08;
  margin: 10px 0 8px;
  max-width: 650px;
}

.hero p {
  font-size: 12px;
  margin: 0;
  opacity: .83;
}

.hero-badge {
  align-items: center;
  background: rgba(102, 15, 40, .2);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex;
  gap: 10px;
  min-width: 195px;
  padding: 11px 14px;
}

.hero-badge > span {
  color: #85f0c4;
  font-size: 11px;
}

.hero-badge small,
.hero-badge strong {
  display: block;
}

.hero-badge small {
  font-size: 8px;
  opacity: .65;
}

.hero-badge strong {
  font-size: 10px;
  margin-top: 2px;
}

.filter-panel {
  align-items: end;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1.35fr repeat(4, minmax(125px, 1fr)) auto;
  margin-top: 18px;
  padding: 14px 16px;
}

.filter-panel.compact {
  grid-template-columns: 1.2fr repeat(5, minmax(110px, 1fr)) auto;
  margin-bottom: 18px;
  margin-top: 0;
}

.filter-heading {
  align-items: center;
  display: flex;
  gap: 10px;
}

.filter-heading > span {
  align-items: center;
  background: var(--orange-soft);
  border-radius: 9px;
  color: var(--orange);
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.filter-heading strong,
.filter-heading small {
  display: block;
}

.filter-heading strong {
  font-size: 11px;
}

.filter-heading small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
}

.filter-panel label {
  color: #777e8d;
  display: flex;
  flex-direction: column;
  font-size: 8px;
  font-weight: 700;
  gap: 5px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.filter-panel select {
  appearance: auto;
  background: #f8f8fa;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  color: #313644;
  cursor: pointer;
  font-size: 10px;
  height: 35px;
  max-width: 100%;
  padding: 0 9px;
  text-transform: none;
}

.clear-filter {
  background: white;
  border: 1px solid #dedfe5;
  border-radius: 8px;
  color: #656b78;
  cursor: pointer;
  font-size: 9px;
  height: 35px;
  padding: 0 13px;
}

.clear-filter:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.metrics-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 18px;
}

.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 118px;
  overflow: hidden;
  padding: 17px 18px;
  position: relative;
}

.metric-mark {
  background: var(--metric);
  border-radius: 99px;
  display: block;
  height: 4px;
  margin-bottom: 14px;
  width: 24px;
}

.metric-card p {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
  margin: 0;
  text-transform: uppercase;
}

.metric-card > strong {
  display: block;
  font-size: clamp(18px, 1.7vw, 25px);
  letter-spacing: -.035em;
  margin-top: 6px;
}

.metric-card small {
  color: #9095a0;
  display: block;
  font-size: 8px;
  margin-top: 5px;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
}

.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  min-height: 285px;
  padding: 20px;
}

.panel-wide {
  grid-column: span 2;
}

.panel-title {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.panel-title span {
  color: var(--orange);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
}

.panel-title h2 {
  font-size: 15px;
  letter-spacing: -.02em;
  margin: 4px 0 0;
}

.panel-title > small {
  color: var(--muted);
  font-size: 8px;
  margin-top: 5px;
}

.bar-legend {
  display: flex;
  gap: 18px;
  justify-content: flex-end;
  margin: -4px 0 0;
}

.bar-legend span {
  align-items: center;
  color: #717785;
  display: flex;
  font-size: 8px;
  gap: 5px;
}

.bar-legend i {
  border-radius: 3px;
  height: 7px;
  width: 7px;
}

.orange { background: var(--orange); }
.purple { background: var(--purple); }
.green { background: var(--green); }

.grouped-chart {
  align-items: end;
  background: repeating-linear-gradient(to top, transparent 0, transparent 47px, #f1f2f5 48px);
  display: grid;
  gap: clamp(12px, 3vw, 38px);
  grid-template-columns: repeat(7, minmax(45px, 1fr));
  height: 215px;
  margin-top: 12px;
  padding: 12px 16px 0;
}

.grouped-chart button {
  align-items: stretch;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 7px;
  height: 100%;
  justify-content: flex-end;
  min-width: 0;
  padding: 0;
}

.bars {
  align-items: end;
  display: flex;
  gap: 4px;
  height: 176px;
  justify-content: center;
}

.bars i {
  border-radius: 4px 4px 0 0;
  display: block;
  max-width: 18px;
  min-height: 3px;
  transition: .2s ease;
  width: 24%;
}

.grouped-chart button:hover .bars i {
  filter: saturate(1.2);
  transform: translateY(-2px);
}

.grouped-chart button > span {
  color: #6f7582;
  font-size: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-layout {
  align-items: center;
  display: flex;
  gap: clamp(24px, 5vw, 70px);
  justify-content: center;
  min-height: 210px;
  padding: 16px 10px 0;
}

.donut {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 150px;
  justify-content: center;
  position: relative;
  width: 150px;
}

.donut::after {
  background: white;
  border-radius: 50%;
  content: "";
  height: 96px;
  position: absolute;
  width: 96px;
}

.donut > div {
  position: relative;
  text-align: center;
  z-index: 1;
}

.donut strong,
.donut span {
  display: block;
}

.donut strong {
  font-size: 21px;
}

.donut span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 190px;
}

.legend button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 8px 1fr auto;
  padding: 9px;
  text-align: left;
}

.legend button:hover {
  background: #f7f7f9;
}

.legend span {
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.legend em {
  font-size: 9px;
  font-style: normal;
}

.legend strong {
  font-size: 10px;
}

.adherence-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
}

.adherence-list button {
  align-items: center;
  background: #fafafa;
  border: 1px solid #efeff2;
  border-radius: 11px;
  cursor: pointer;
  display: grid;
  gap: 11px;
  grid-template-columns: 9px 1fr auto;
  min-height: 51px;
  padding: 9px 13px;
  text-align: left;
  transition: .16s ease;
}

.adherence-list button:hover {
  border-color: #d9dbe1;
  transform: translateX(2px);
}

.adherence-list i {
  border-radius: 99px;
  height: 30px;
  opacity: .9;
  width: 4px;
}

.adherence-list .red { background: #dc2626; }
.adherence-list .yellow { background: #eab308; }
.adherence-list .green { background: #16a34a; }

.adherence-list strong,
.adherence-list span {
  display: block;
}

.adherence-list strong {
  font-size: 10px;
}

.adherence-list span {
  color: var(--muted);
  font-size: 8px;
  margin-top: 2px;
}

.adherence-list b {
  font-size: 15px;
}

.regional-panel {
  min-height: 280px;
}

.impact-chart {
  display: flex;
  flex-direction: column;
  gap: 23px;
  padding: 36px 10px 10px;
}

.impact-chart > div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 115px 1fr 58px;
}

.impact-chart span {
  color: #666d7b;
  font-size: 9px;
  text-align: right;
}

.impact-chart > div > div {
  background: #f0f1f4;
  border-radius: 99px;
  height: 12px;
  overflow: hidden;
}

.impact-chart i {
  border-radius: 99px;
  display: block;
  height: 100%;
  min-width: 3px;
}

.impact-chart strong {
  font-size: 10px;
}

.filter-note {
  background: #fff8f2;
  border: 1px solid #ffe2d1;
  border-radius: 10px;
  color: #9c4a25;
  font-size: 9px;
  margin-top: 14px;
  padding: 10px 13px;
  text-align: center;
}

.page-heading,
.section-heading {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  margin-bottom: 22px;
}

.page-heading > div > span,
.section-heading > div > span {
  color: var(--orange);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .16em;
}

.page-heading h1,
.section-heading h2 {
  letter-spacing: -.035em;
  margin: 6px 0 5px;
}

.page-heading h1 {
  font-size: clamp(26px, 3vw, 40px);
}

.section-heading h2 {
  font-size: 23px;
}

.page-heading p,
.section-heading p {
  color: var(--muted);
  font-size: 11px;
  margin: 0;
}

.unit-group {
  margin: 28px 0 36px;
}

.unit-group-title {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  margin-bottom: 13px;
  padding-bottom: 9px;
}

.unit-group-title h2 {
  font-size: 13px;
  letter-spacing: .04em;
  margin: 0;
}

.unit-group-title span {
  color: var(--muted);
  font-size: 9px;
}

.units-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.unit-card {
  background-image: linear-gradient(135deg, rgba(142, 23, 68, .28), rgba(241, 80, 31, .18)), url("/assets/Fundo_Unidades.jpg");
  background-position: center;
  background-size: cover;
  border: 0;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(218, 54, 71, .09);
  color: white;
  cursor: pointer;
  min-height: 170px;
  overflow: hidden;
  padding: 17px;
  position: relative;
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease;
}

.unit-card::after {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 50%;
  content: "";
  height: 130px;
  position: absolute;
  right: -54px;
  top: -40px;
  width: 130px;
}

.unit-card:hover {
  box-shadow: 0 16px 34px rgba(211, 49, 65, .18);
  transform: translateY(-3px);
}

.unit-card-top {
  align-items: center;
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.unit-card-top span {
  background: rgba(255,255,255,.17);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  font-size: 9px;
  font-weight: 800;
  padding: 5px 7px;
}

.unit-card-top i {
  font-size: 16px;
  font-style: normal;
}

.unit-card h3 {
  font-size: 17px;
  margin: 18px 0 4px;
  position: relative;
  z-index: 1;
}

.unit-card > p {
  font-size: 8px;
  margin: 0;
  opacity: .7;
}

.unit-card-stats {
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  padding-top: 11px;
}

.unit-card-stats span,
.unit-card-stats b {
  display: block;
}

.unit-card-stats span {
  font-size: 7px;
  opacity: .72;
}

.unit-card-stats b {
  font-size: 10px;
  margin-bottom: 2px;
  opacity: 1;
}

.back-button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #5f6571;
  cursor: pointer;
  font-size: 9px;
  margin-bottom: 14px;
  padding: 9px 12px;
}

.unit-hero {
  align-items: center;
  background: linear-gradient(112deg, #ee4b20, #db2c65);
  border-radius: 18px;
  color: white;
  display: grid;
  gap: 20px;
  grid-template-columns: 78px 1fr auto;
  margin-bottom: 30px;
  overflow: hidden;
  padding: 28px 30px;
  position: relative;
}

.unit-monogram {
  align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 16px;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 72px;
  justify-content: center;
}

.unit-hero > div:nth-child(2) > span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .14em;
  opacity: .7;
}

.unit-hero h1 {
  font-size: 28px;
  margin: 5px 0;
}

.unit-hero p {
  font-size: 9px;
  margin: 0;
  opacity: .75;
}

.unit-hero-metrics {
  display: flex;
  gap: 24px;
}

.unit-hero-metrics small,
.unit-hero-metrics strong {
  display: block;
}

.unit-hero-metrics small {
  font-size: 7px;
  opacity: .65;
  text-transform: uppercase;
}

.unit-hero-metrics strong {
  font-size: 16px;
  margin-top: 3px;
}

.line-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}

.line-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  cursor: pointer;
  min-height: 285px;
  overflow: hidden;
  padding: 26px;
  position: relative;
  text-align: left;
  transition: .18s ease;
}

.line-card::before {
  background: linear-gradient(90deg, #f4511e, #ec407a);
  content: "";
  height: 5px;
  inset: 0 0 auto;
  position: absolute;
}

.line-card.line-1::before {
  background: linear-gradient(90deg, #7c3aed, #4776e6);
}

.line-card:hover {
  border-color: #d8d9df;
  box-shadow: 0 14px 30px rgba(34, 39, 54, .08);
  transform: translateY(-2px);
}

.line-card-icon {
  align-items: center;
  background: #fff0e9;
  border-radius: 12px;
  color: var(--orange);
  display: flex;
  font-size: 22px;
  height: 48px;
  justify-content: center;
  margin-bottom: 22px;
  width: 48px;
}

.line-1 .line-card-icon {
  background: #f1edff;
  color: var(--purple);
}

.line-card > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .15em;
}

.line-card h3 {
  font-size: 24px;
  margin: 5px 0 3px;
}

.line-card > p {
  color: var(--muted);
  font-size: 10px;
  margin: 0;
}

.line-card > div:nth-of-type(2) {
  display: flex;
  gap: 45px;
  margin: 26px 0;
}

.line-card small,
.line-card small strong {
  display: block;
}

.line-card small {
  color: var(--muted);
  font-size: 8px;
}

.line-card small strong {
  color: var(--ink);
  font-size: 15px;
  margin-top: 4px;
}

.line-card > b {
  align-items: center;
  color: var(--orange);
  display: flex;
  font-size: 10px;
  gap: 7px;
}

.line-1 > b { color: var(--purple); }
.line-card > b i { font-size: 16px; font-style: normal; }

.items-heading {
  margin-bottom: 15px;
}

.export-button {
  background: linear-gradient(100deg, #f4511e, #e93668);
  border: 0;
  border-radius: 9px;
  box-shadow: 0 8px 18px rgba(232, 65, 49, .17);
  color: white;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  padding: 11px 14px;
}

.table-toolbar {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 13px 13px 0 0;
  display: flex;
  justify-content: space-between;
  padding: 13px;
}

.large-search {
  align-items: center;
  background: #f7f7f9;
  border: 1px solid #e5e6eb;
  border-radius: 9px;
  display: flex;
  gap: 8px;
  height: 38px;
  max-width: 560px;
  padding: 0 11px;
  width: 55%;
}

.large-search > span {
  color: #858b97;
  font-size: 18px;
}

.large-search input {
  background: transparent;
  border: 0;
  font-size: 10px;
  outline: 0;
  width: 100%;
}

.read-only-badge {
  align-items: center;
  color: #6e7480;
  display: flex;
  font-size: 8px;
  gap: 6px;
}

.read-only-badge i {
  background: #34c98f;
  border-radius: 50%;
  height: 7px;
  width: 7px;
}

.data-table-wrap {
  background: white;
  border: 1px solid var(--line);
  overflow-x: auto;
}

.data-table {
  border-collapse: collapse;
  min-width: 1050px;
  width: 100%;
}

.data-table th {
  background: #f7f7f9;
  border-bottom: 1px solid var(--line);
  color: #777d8b;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 11px 12px;
  text-align: left;
}

.data-table th button {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  padding: 0;
}

.data-table td {
  border-bottom: 1px solid #f0f1f3;
  color: #3d4350;
  font-size: 9px;
  padding: 12px;
  vertical-align: middle;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background .12s ease;
}

.data-table tbody tr:hover {
  background: #fffaf7;
}

.data-table td strong,
.data-table td span,
.data-table td small {
  display: block;
}

.data-table td strong {
  font-size: 9px;
}

.data-table td > span:not(.mix-badge):not(.adherence-badge):not(.warning-label) {
  color: var(--muted);
  font-size: 8px;
  margin-top: 3px;
  max-width: 270px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-table td small {
  color: #a1a5ae;
  font-size: 7px;
  margin-top: 3px;
}

.mix-badge,
.adherence-badge,
.warning-label {
  border-radius: 99px;
  display: inline-block !important;
  font-size: 7px !important;
  font-weight: 800;
  padding: 5px 7px;
  white-space: nowrap;
}

.mix-badge.priority {
  background: #fff0e8;
  color: #c84918;
}

.mix-badge.outside {
  background: #fdebf2;
  color: #b52755;
}

.adherence-badge.critical,
.critical { color: #d02a2a; }
.adherence-badge.critical { background: #feebeb; }
.adherence-badge.attention,
.attention { color: #aa7600; }
.adherence-badge.attention { background: #fff5d7; }
.adherence-badge.healthy,
.healthy { color: #12815e; }
.adherence-badge.healthy { background: #e4f8f0; }
.adherence-badge.neutral { background: #f0f1f3; color: #777d87; }

.pagination {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 13px 13px;
  border-top: 0;
  color: var(--muted);
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  padding: 12px 14px;
}

.pagination > div {
  align-items: center;
  display: flex;
  gap: 9px;
}

.pagination button {
  background: white;
  border: 1px solid #e1e2e6;
  border-radius: 6px;
  cursor: pointer;
  height: 27px;
  width: 29px;
}

.pagination button:disabled {
  cursor: not-allowed;
  opacity: .35;
}

.pagination strong {
  color: #4f5561;
  font-size: 8px;
}

.empty-state {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 230px;
}

.empty-state strong { font-size: 13px; }
.empty-state span { color: var(--muted); font-size: 9px; }

.drawer-scrim {
  background: rgba(19, 22, 29, .36);
  border: 0;
  inset: 0;
  position: fixed;
  z-index: 38;
}

.item-drawer {
  background: white;
  box-shadow: -18px 0 45px rgba(24, 29, 39, .16);
  height: 100vh;
  overflow-y: auto;
  padding: 27px;
  position: fixed;
  right: 0;
  top: 0;
  width: min(430px, 92vw);
  z-index: 40;
}

.drawer-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.drawer-head span,
.drawer-section > span {
  color: var(--orange);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.drawer-head h2 {
  font-size: 21px;
  margin: 5px 0 0;
}

.drawer-head button {
  background: #f5f5f7;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  height: 34px;
  width: 34px;
}

.item-drawer > h3 {
  font-size: 14px;
  line-height: 1.45;
  margin: 26px 0 12px;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-tags > span:not(.mix-badge) {
  background: #f2f3f5;
  border-radius: 99px;
  color: #656b76;
  font-size: 7px;
  font-weight: 700;
  padding: 5px 7px;
}

.detail-grid {
  background: #f8f8fa;
  border-radius: 12px;
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
  margin: 20px 0;
  padding: 15px;
}

.detail-grid dt,
.metric-list dt {
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
}

.detail-grid dd,
.metric-list dd {
  font-size: 9px;
  font-weight: 700;
  margin: 4px 0 0;
}

.drawer-section {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.detail-metrics {
  display: grid;
  gap: 9px;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
}

.detail-metrics > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.detail-metrics small,
.detail-metrics strong {
  display: block;
}

.detail-metrics small { color: var(--muted); font-size: 7px; }
.detail-metrics strong { font-size: 15px; margin-top: 4px; }

.metric-list {
  margin: 11px 0 0;
}

.metric-list > div {
  align-items: center;
  border-bottom: 1px solid #f0f1f3;
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
}

.metric-list dd { margin: 0; }

.source-note {
  background: #fff7f2;
  border: 1px solid #ffe1d1;
  border-radius: 10px;
  padding: 12px;
}

.source-note strong,
.source-note span { display: block; }
.source-note strong { color: #a94b24; font-size: 8px; }
.source-note span { color: #a76f59; font-size: 7px; margin-top: 3px; }

.admin-callout,
.load-summary,
.validation-card {
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 13px;
  margin-bottom: 15px;
  padding: 15px;
}

.admin-callout > span {
  align-items: center;
  background: #fff0e9;
  border-radius: 10px;
  color: var(--orange);
  display: flex;
  font-size: 20px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.admin-callout strong,
.admin-callout p { margin: 0; }
.admin-callout strong { font-size: 10px; }
.admin-callout p { color: var(--muted); font-size: 8px; margin-top: 3px; }
.admin-callout > b { color: var(--orange); font-size: 13px; margin-left: auto; }

.unclassified-table {
  min-width: 900px;
}

.warning-label {
  background: #fff5d7;
  color: #966b09;
}

.load-summary {
  justify-content: space-between;
}

.load-summary > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.load-summary p,
.load-summary strong,
.load-summary small { display: block; margin: 0; }
.load-summary strong { font-size: 10px; }
.load-summary small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.load-summary > b { color: var(--green); font-size: 12px; }

.timeline {
  margin: 27px auto;
  max-width: 900px;
}

.timeline > article {
  display: grid;
  gap: 15px;
  grid-template-columns: 34px 1fr;
  position: relative;
}

.timeline > article:not(:last-child)::before {
  background: #e0e2e7;
  content: "";
  height: 100%;
  left: 16px;
  position: absolute;
  top: 25px;
  width: 2px;
}

.timeline-mark {
  align-items: center;
  background: #fff0e9;
  border: 4px solid var(--canvas);
  border-radius: 50%;
  color: var(--orange);
  display: flex;
  font-size: 9px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}

.load-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 18px;
  padding: 20px;
}

.load-card-head {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
}

.load-card-head span { color: var(--orange); font-size: 7px; font-weight: 900; letter-spacing: .13em; }
.load-card-head h2 { font-size: 16px; margin: 5px 0 0; }
.load-card-head > b { background: #e7f8f1; border-radius: 99px; color: #16815e; font-size: 7px; padding: 5px 8px; }

.load-card dl {
  background: #f8f8fa;
  border-radius: 10px;
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 2fr 1fr;
  margin: 16px 0;
  padding: 13px;
}

.load-card dt { color: var(--muted); font-size: 7px; text-transform: uppercase; }
.load-card dd { font-size: 9px; font-weight: 700; margin: 4px 0 0; word-break: break-word; }
.load-card > p { color: var(--muted); font-size: 9px; line-height: 1.6; margin: 0; }

.validation-card {
  background: #eefaf6;
  border-color: #cfefe2;
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

.validation-card > span {
  align-items: center;
  background: #24ae7d;
  border-radius: 50%;
  color: white;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.validation-card strong { font-size: 10px; }
.validation-card p { color: #538070; font-size: 8px; margin: 4px 0 0; }

.about-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.25fr .75fr;
}

.about-main,
.about-side > article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 25px;
}

.about-icon {
  align-items: center;
  background: linear-gradient(145deg, #ff7331, #df2a64);
  border-radius: 14px;
  box-shadow: 0 12px 25px rgba(228, 54, 72, .18);
  color: white;
  display: flex;
  font-size: 23px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  margin-bottom: 28px;
  width: 54px;
}

.about-main > span,
.about-side article > span {
  color: var(--orange);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .15em;
}

.about-main h2 {
  font-size: 25px;
  line-height: 1.2;
  margin: 7px 0 14px;
  max-width: 580px;
}

.about-main > p,
.about-side article > p {
  color: #666d79;
  font-size: 10px;
  line-height: 1.8;
}

.read-only-notice {
  align-items: flex-start;
  background: #fff6f1;
  border: 1px solid #ffe0d0;
  border-radius: 12px;
  display: flex;
  gap: 11px;
  margin-top: 30px;
  padding: 15px;
}

.read-only-notice i {
  align-items: center;
  background: var(--orange);
  border-radius: 50%;
  color: white;
  display: flex;
  flex: 0 0 auto;
  font-size: 9px;
  font-style: normal;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.read-only-notice p,
.read-only-notice strong,
.read-only-notice span { display: block; margin: 0; }
.read-only-notice strong { color: #9f461f; font-size: 9px; }
.read-only-notice span { color: #a7755f; font-size: 8px; line-height: 1.5; margin-top: 4px; }

.about-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.about-side > article { padding: 20px; }

.adherence-rule > div {
  align-items: center;
  border-bottom: 1px solid #f0f1f3;
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.adherence-rule > div:last-child { border-bottom: 0; padding-bottom: 0; }
.adherence-rule b { font-size: 10px; }
.adherence-rule small { color: var(--muted); font-size: 8px; }

.stacked-chart {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  padding-top: 18px;
}

.stacked-chart button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 70px 1fr 34px;
  padding: 6px 8px;
}

.stacked-chart button:hover {
  background: #fafafa;
}

.stacked-chart button > span {
  color: #616775;
  font-size: 9px;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stacked-chart button > div {
  background: #f2f3f5;
  border-radius: 99px;
  display: flex;
  height: 9px;
  overflow: hidden;
}

.stacked-chart i {
  display: block;
  height: 100%;
}

.stacked-chart .priority {
  background: linear-gradient(90deg, #ff7b36, var(--orange));
}

.stacked-chart .outside {
  background: #ec407a;
}

.stacked-chart strong {
  font-size: 9px;
  text-align: right;
}

.scrim {
  display: none;
}

.loading-screen {
  align-items: center;
  background: #f7f7fa;
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  min-height: 100vh;
}

.loading-screen p {
  color: var(--muted);
  font-size: 12px;
}

.access-screen,
.view-transition {
  align-items: center;
  background-image: url("/assets/Fundo_Unidades.jpg");
  background-position: center;
  background-size: cover;
  display: flex;
  justify-content: center;
}

.access-screen {
  min-height: 100vh;
  overflow: hidden;
  padding: 24px;
  position: relative;
}

.access-screen-shade,
.view-transition-shade {
  background: linear-gradient(145deg, rgba(23, 20, 34, .38), rgba(90, 14, 58, .18));
  inset: 0;
  position: absolute;
}

.access-card {
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(62, 10, 44, .28);
  max-width: 440px;
  padding: 38px;
  position: relative;
  text-align: center;
  width: 100%;
  z-index: 1;
}

.access-logo {
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(143, 25, 88, .24);
  height: 64px;
  margin-bottom: 18px;
  width: 64px;
}

.access-card > span {
  color: #dc3f51;
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
}

.access-card h1 {
  font-size: 28px;
  margin: 9px 0 8px;
}

.access-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 auto 24px;
  max-width: 330px;
}

.access-card > small {
  color: #8b909c;
  display: block;
  font-size: 9px;
  line-height: 1.5;
  margin: 20px auto 0;
  max-width: 320px;
}

.access-message,
.access-config {
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.5;
  margin: 0 0 18px;
  padding: 11px 13px;
  text-align: left;
}

.access-message {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.access-config {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.access-config strong,
.access-config p {
  display: block;
  margin: 0;
}

.access-config p { margin-top: 4px; }

.access-config code {
  background: rgba(255,255,255,.72);
  border-radius: 4px;
  padding: 1px 4px;
}

.microsoft-button {
  align-items: center;
  background: #24262e;
  border: 0;
  border-radius: 11px;
  color: white;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 750;
  gap: 12px;
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.microsoft-button:disabled { cursor: not-allowed; opacity: .45; }
.microsoft-button:hover:not(:disabled) { background: #111318; }

.microsoft-button b {
  display: grid;
  gap: 2px;
  grid-template-columns: 7px 7px;
}

.microsoft-button b i { height: 7px; width: 7px; }
.microsoft-button b i:nth-child(1) { background: #f25022; }
.microsoft-button b i:nth-child(2) { background: #7fba00; }
.microsoft-button b i:nth-child(3) { background: #00a4ef; }
.microsoft-button b i:nth-child(4) { background: #ffb900; }

.access-progress {
  display: flex;
  gap: 6px;
  justify-content: center;
  min-height: 46px;
  padding-top: 17px;
}

.access-progress i {
  animation: access-dot 1s infinite ease-in-out;
  background: #e84845;
  border-radius: 50%;
  height: 8px;
  width: 8px;
}

.access-progress i:nth-child(2) { animation-delay: .12s; }
.access-progress i:nth-child(3) { animation-delay: .24s; }

@keyframes access-dot {
  0%, 100% { opacity: .3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}

.view-transition {
  animation: transition-in .66s both;
  inset: 0;
  position: fixed;
  z-index: 100;
}

.view-transition-content {
  align-items: center;
  color: white;
  display: flex;
  flex-direction: column;
  position: relative;
  text-shadow: 0 2px 18px rgba(55, 10, 39, .38);
  z-index: 1;
}

.view-transition-content img {
  border: 2px solid rgba(255,255,255,.55);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(70, 9, 52, .34);
  height: 66px;
  margin-bottom: 16px;
  width: 66px;
}

.view-transition-content strong { font-size: 19px; }
.view-transition-content span { font-size: 10px; margin-top: 5px; opacity: .82; }

@keyframes transition-in {
  0% { opacity: 0; }
  25%, 72% { opacity: 1; }
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .view-transition,
  .access-progress i { animation: none; }
}

.brand-orbit {
  align-items: center;
  animation: pulse 1.4s infinite ease-in-out;
  background: linear-gradient(145deg, #ff7a32, #df245e);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(244,81,30,.22);
  color: white;
  display: flex;
  font-size: 16px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

@keyframes pulse {
  50% { transform: scale(.94); opacity: .8; }
}

@media (max-width: 1100px) {
  .filter-panel {
    grid-template-columns: repeat(4, 1fr);
  }
  .filter-heading {
    grid-column: span 3;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .stacked-chart {
    grid-template-columns: 1fr;
  }
  .filter-panel.compact {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-panel.compact .filter-heading {
    grid-column: span 2;
  }
  .units-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .sidebar {
    box-shadow: 18px 0 45px rgba(12, 14, 21, .32);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }
  .sidebar.open { transform: translateX(0); }
  .scrim {
    background: rgba(12,14,20,.4);
    border: 0;
    display: block;
    inset: 0;
    position: fixed;
    z-index: 25;
  }
  .main-content { margin-left: 0; }
  .menu-toggle { display: block; }
  .topbar { padding: 0 18px; }
  .page { padding: 18px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 20px; padding: 25px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-heading { grid-column: span 2; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-column: auto; }
  .grouped-chart { gap: 8px; overflow-x: auto; }
  .profile > div:first-child { display: none; }
  .global-search { margin-left: 12px; margin-right: 12px; width: 100%; }
  .global-search kbd { display: none; }
  .filter-panel.compact { grid-template-columns: 1fr 1fr; }
  .filter-panel.compact .filter-heading { grid-column: span 2; }
  .units-grid { grid-template-columns: 1fr 1fr; }
  .unit-hero { align-items: start; grid-template-columns: 60px 1fr; }
  .unit-monogram { height: 58px; }
  .unit-hero-metrics { grid-column: span 2; }
  .about-layout { grid-template-columns: 1fr; }
  .load-card dl { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
  .breadcrumb span,
  .breadcrumb b { display: none; }
  .hero-badge { width: 100%; }
  .filter-panel { grid-template-columns: 1fr; }
  .filter-heading { grid-column: auto; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { min-height: 105px; }
  .donut-layout { align-items: stretch; flex-direction: column; }
  .donut { margin: auto; }
  .legend { min-width: 0; }
  .grouped-chart { grid-template-columns: repeat(7, 58px); justify-content: flex-start; }
  .panel { padding: 16px; }
  .panel-title > small { display: none; }
  .global-search { display: none; }
  .units-grid { grid-template-columns: 1fr; }
  .line-grid { grid-template-columns: 1fr; }
  .unit-hero { grid-template-columns: 1fr; padding: 22px; }
  .unit-monogram { height: 56px; width: 70px; }
  .unit-hero-metrics { grid-column: auto; flex-wrap: wrap; gap: 18px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .filter-panel.compact { grid-template-columns: 1fr; }
  .filter-panel.compact .filter-heading { grid-column: auto; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .export-button { width: 100%; }
  .large-search { width: 100%; }
  .read-only-badge { display: none; }
  .impact-chart > div { grid-template-columns: 95px 1fr 52px; }
  .admin-callout { align-items: flex-start; }
  .admin-callout > b { display: none; }
  .timeline > article { grid-template-columns: 26px 1fr; }
  .timeline-mark { height: 26px; width: 26px; }
  .timeline > article:not(:last-child)::before { left: 12px; }
}
