:root {
  --primary: #e1001e;
  --primary-dark: #930016;
  --primary-soft: #fff0f2;
  --background: #f5f5f7;
  --surface: #ffffff;
  --text: #202124;
  --muted: #65676b;
  --border: #dedfe3;
  --success: #246b45;
  --danger: #a12121;
  --shadow: 0 12px 35px rgba(33, 35, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--background);
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.brand-mark {
  display: grid;
  place-items: center;
  min-width: 92px;
  height: 58px;
  padding: 0 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  background: var(--primary);
  color: #fff;
}

.button.secondary {
  border-color: var(--primary);
  background: #fff;
  color: var(--primary);
}

.button.ghost {
  border-color: var(--border);
  background: transparent;
  color: var(--text);
}

.button.danger {
  border-color: #efcaca;
  background: #fff5f5;
  color: var(--danger);
}

.button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 0.86rem;
}

.home-page {
  background:
    linear-gradient(135deg, rgba(122, 23, 50, 0.96), rgba(77, 14, 32, 0.96)),
    #4d0e20;
}

.home-container {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.home-card {
  width: min(560px, 100%);
  padding: 42px;
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.home-card .brand-mark {
  width: max-content;
  margin: 0 auto 24px;
}

.home-card h1 {
  margin: 0;
  font-size: 2rem;
}

.home-card p {
  color: var(--muted);
}

.home-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.admin-header h1 {
  margin: 2px 0 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.eyebrow {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-layout {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 54px) 60px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.tab-button {
  flex: 0 0 auto;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
}

.tab-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.tab-panel {
  display: none;
  padding-top: 24px;
}

.tab-panel.active {
  display: block;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(380px, 1.1fr);
  gap: 22px;
  align-items: start;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(30, 32, 35, 0.05);
}

.form-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.settings-card {
  max-width: 880px;
}

.form-card label {
  display: grid;
  gap: 7px;
  font-weight: 700;
}

.form-card input:not([type="checkbox"]):not([type="color"]),
.form-card select,
.form-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  background: #fff;
  color: var(--text);
}

.form-card input[type="color"] {
  width: 100%;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.form-card textarea {
  resize: vertical;
}

.form-card small {
  color: var(--muted);
  font-weight: 400;
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.date-input-shell {
  display: flex;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.date-input-shell input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.form-check {
  display: flex !important;
  align-items: center;
  gap: 10px !important;
}

.form-check-input {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.image-upload-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.image-upload-preview img {
  width: 120px;
  height: 76px;
  object-fit: contain;
  border-radius: 8px;
  background: #f2f2f4;
}

.list-card {
  padding: 20px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.list-header h3 {
  margin: 0;
}

.count-badge {
  min-width: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  text-align: center;
  font-weight: 800;
}

.item-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

.admin-item-main {
  min-width: 0;
}

.item-title-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.admin-item h4 {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-item p {
  margin: 8px 0;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
}

.status-pill.active {
  background: #e8f4ed;
  color: var(--success);
}

.status-pill.inactive {
  background: #efeff1;
  color: var(--muted);
}

.item-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.78rem;
}

.item-meta span {
  padding: 4px 7px;
  border-radius: 7px;
  background: #f3f3f5;
}

.item-actions {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  padding: 30px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  color: var(--muted);
  text-align: center;
}

.preview-frame-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 8px solid #24262a;
  border-radius: 18px;
  background: #111;
  box-shadow: var(--shadow);
}

.preview-frame-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #222;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Painel da TV */
.display-page {
  overflow: hidden;
  background: #ececf0;
}

.display-app {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100vw;
  height: 100vh;
  min-height: 480px;
  background:
    radial-gradient(circle at 88% 10%, rgba(225, 0, 30, 0.12), transparent 28%),
    radial-gradient(circle at 8% 75%, rgba(225, 0, 30, 0.07), transparent 24%),
    linear-gradient(145deg, #fdfdfd 0%, #f2f3f6 100%);
  isolation: isolate;
}

.display-app::before,
.display-app::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 42vw;
  height: 42vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 0, 30, 0.1), rgba(225, 0, 30, 0) 68%);
  filter: blur(8px);
  pointer-events: none;
  animation: background-float 16s ease-in-out infinite alternate;
}

.display-app::before { top: -22vw; right: -10vw; }
.display-app::after { bottom: -26vw; left: -12vw; animation-delay: -8s; animation-direction: alternate-reverse; }

@keyframes background-float {
  from { transform: translate3d(-3vw, -1vw, 0) scale(0.92); }
  to { transform: translate3d(5vw, 4vw, 0) scale(1.12); }
}

.display-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 132px;
  padding: 20px clamp(28px, 4vw, 72px);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1px 0 rgba(23, 24, 27, 0.08);
  backdrop-filter: blur(18px);
}

.display-brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.institutional-logo-shell {
  display: grid;
  place-items: center;
  min-width: clamp(90px, 8vw, 125px);
  padding-right: clamp(14px, 1.5vw, 24px);
  border-right: 1px solid #dedfe3;
}

.display-logo {
  width: clamp(72px, 6.5vw, 108px);
  height: clamp(72px, 6.5vw, 108px);
  max-height: none;
  object-fit: contain;
}

.display-brand h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.65rem, 2.55vw, 2.8rem);
  line-height: 1.05;
}

.department-tag {
  display: none;
}

.display-brand p {
  margin: 6px 0 0;
  color: #5c5e63;
  max-width: 620px;
  font-size: clamp(0.82rem, 1.12vw, 1.15rem);
  line-height: 1.3;
}

.display-status {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.5vw, 42px);
}

.display-weather {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 150px;
  padding: 10px 18px;
  border: 1px solid rgba(225, 0, 30, 0.12);
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
}

.weather-icon {
  font-family: "Segoe UI Emoji", sans-serif;
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1;
}

.weather-copy {
  display: grid;
}

.weather-copy strong {
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  line-height: 1;
}

.weather-copy span {
  margin-top: 4px;
  color: #5c5e63;
  font-size: clamp(0.7rem, 0.85vw, 0.9rem);
  white-space: nowrap;
}

.display-clock {
  flex: 0 0 auto;
  display: grid;
  justify-items: end;
  min-width: 185px;
  color: #202124;
}

.display-clock strong {
  font-size: clamp(2rem, 3.3vw, 3.6rem);
  line-height: 1;
}

.display-clock span {
  margin-top: 6px;
  font-size: clamp(0.9rem, 1.2vw, 1.25rem);
  text-transform: capitalize;
}

.comunicado-stage {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 0;
  padding: clamp(20px, 2.8vw, 46px);
}

.comunicado-card {
  display: grid;
  width: min(1500px, 100%);
  min-height: min(62vh, 700px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: clamp(20px, 2vw, 34px);
  background: #fff;
  border: 1px solid rgba(30, 31, 35, 0.06);
  box-shadow: 0 28px 80px rgba(43, 35, 38, 0.14);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.comunicado-card.is-changing {
  opacity: 0;
  transform: translateY(12px);
}

.comunicado-card.layout-texto {
  grid-template-columns: 1fr;
}

.comunicado-card.layout-imagem-texto {
  grid-template-columns: minmax(34%, 0.8fr) minmax(54%, 1.2fr);
}

.comunicado-card.layout-imagem {
  grid-template-columns: 1fr;
}

.comunicado-card.layout-imagem .comunicado-conteudo {
  position: absolute;
  left: clamp(26px, 4vw, 70px);
  right: clamp(26px, 4vw, 70px);
  bottom: clamp(26px, 4vw, 70px);
  z-index: 2;
  min-height: auto;
  padding: clamp(24px, 3vw, 48px);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
}

.comunicado-card.layout-imagem {
  position: relative;
}

.comunicado-imagem-area {
  min-height: 0;
  background: #e6e6ea;
}

.comunicado-imagem-area img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
}

.comunicado-conteudo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(36px, 5vw, 86px);
}

.comunicado-conteudo h2 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2.5rem, 5vw, 6.4rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  text-align: center;
}

.comunicado-conteudo p {
  margin: clamp(22px, 3vw, 40px) 0 0;
  color: #33363a;
  font-size: clamp(1.45rem, 2.55vw, 3.15rem);
  line-height: 1.28;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.1vw, 18px);
  margin-top: clamp(18px, 2vw, 32px);
}

.schedule-step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(118px, 14vh, 160px);
  padding: clamp(13px, 1.25vw, 19px);
  overflow: hidden;
  border: 1px solid #e2e3e6;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 15%, #fafafa 100%);
}

.schedule-step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--primary);
}

.schedule-number {
  color: #a3a5aa;
  font-size: clamp(0.68rem, 0.8vw, 0.85rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.schedule-step strong {
  align-self: center;
  color: #2c2d31;
  font-size: clamp(0.92rem, 1.25vw, 1.4rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.schedule-step time {
  color: var(--primary);
  font-size: clamp(1.4rem, 2vw, 2.25rem);
  font-weight: 900;
}

.comunicado-card:has(.schedule-grid:not(.hidden)) .comunicado-conteudo {
  padding: clamp(28px, 3.5vw, 58px);
}

.comunicado-card:has(.schedule-grid:not(.hidden)) .comunicado-conteudo h2 {
  max-width: 1200px;
  font-size: clamp(2rem, 3.6vw, 4.5rem);
}

.priority-badge {
  width: max-content;
  margin-right: 0;
  margin-left: 0;
  align-self: flex-start;
  margin-bottom: 20px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: clamp(0.8rem, 1vw, 1.1rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  animation: priority-pulse 1s steps(2, end) infinite;
}

.priority-badge::before {
  content: '';
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2);
}

@keyframes priority-pulse {
  0%, 45% { opacity: 1; box-shadow: 0 0 0 0 rgba(225, 0, 30, 0.35); }
  46%, 100% { opacity: 0.25; box-shadow: 0 0 0 8px rgba(225, 0, 30, 0); }
}

.slide-indicators {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

.slide-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(122, 23, 50, 0.26);
}

.slide-dot.active {
  width: 34px;
  border-radius: 999px;
  background: var(--primary);
}

.ticker-shell {
  display: grid;
  grid-template-columns: auto 1fr;
  min-height: 74px;
  background: var(--primary-dark);
  color: #fff;
}

.ticker-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 17px;
  min-width: 165px;
  padding: 0 24px;
  background: var(--primary);
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.ticker-pulse {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.17);
  transform: translateX(-50%);
  animation: ticker-dot-pulse 1.6s ease-in-out infinite;
}

@keyframes ticker-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.06); }
}

.ticker-viewport {
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-track {
  display: inline-flex;
  width: max-content;
  padding-left: 100%;
  font-size: clamp(1.25rem, 1.75vw, 2rem);
  font-weight: 700;
  animation: ticker-scroll 30s linear infinite;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.fullscreen-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 20;
  padding: 8px 11px;
  border: 1px solid rgba(122, 23, 50, 0.3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  cursor: pointer;
  opacity: 0.18;
  transition: opacity 0.2s;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-header,
  .section-heading,
  .admin-item {
    align-items: stretch;
    flex-direction: column;
  }

  .item-actions {
    align-items: center;
  }

  .display-header {
    min-height: 96px;
  }

  .display-weather {
    min-width: auto;
    padding: 8px 12px;
  }

  .weather-copy span,
  .display-brand p {
    display: none;
  }

  .institutional-logo-shell {
    min-width: 78px;
  }

  .comunicado-card.layout-imagem-texto {
    grid-template-columns: 1fr 1.15fr;
  }

  .schedule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .home-card {
    padding: 28px 20px;
  }

  .admin-header {
    position: static;
  }

  .display-header {
    padding: 14px 18px;
  }

  .display-brand p,
  .display-clock span {
    display: none;
  }

  .institutional-logo-shell {
    min-width: 62px;
    padding-right: 12px;
  }

  .display-logo {
    width: 54px;
    height: 54px;
  }

  .display-weather {
    display: none;
  }

  .display-clock {
    min-width: 0;
  }

  .brand-mark {
    min-width: 70px;
    height: 46px;
    font-size: 0.8rem;
  }

  .comunicado-stage {
    padding: 18px;
  }

  .comunicado-card,
  .comunicado-card.layout-imagem-texto {
    grid-template-columns: 1fr;
  }

  .comunicado-imagem-area {
    max-height: 34vh;
  }

  .ticker-shell {
    grid-template-columns: 1fr;
  }

  .ticker-label {
    display: none;
  }
}

/* Hub de sistemas do setor */
.systems-quick-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 5%, #fff);
  color: var(--primary);
  font-size: clamp(0.64rem, 0.7vw, 0.8rem);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.systems-quick-link span {
  font-size: 1rem;
}

.systems-page {
  overflow: hidden;
  background: #eef0f4;
}

.systems-app {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100vw;
  height: 100vh;
  min-height: 560px;
  background:
    radial-gradient(circle at 2% 8%, color-mix(in srgb, var(--primary) 6%, transparent), transparent 22%),
    #f2f3f6;
}

.systems-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: clamp(76px, 8.4vh, 96px);
  padding: 12px clamp(22px, 2.5vw, 46px);
  border-bottom: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.96);
}

.systems-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.systems-brand img {
  width: clamp(52px, 4.2vw, 70px);
  height: clamp(52px, 4.2vw, 70px);
  object-fit: contain;
}

.systems-brand h1 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 1.7vw, 2rem);
  line-height: 1;
}

.systems-header-status {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 30px);
}

.systems-auth-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  border: 1px solid rgba(22, 130, 100, 0.14);
  border-radius: 12px;
  background: rgba(22, 130, 100, 0.055);
}

.systems-auth-hint > span {
  color: var(--calm);
  font-size: 0.7rem;
}

.systems-auth-hint div,
.systems-clock {
  display: grid;
}

.systems-auth-hint strong {
  color: #3e554d;
  font-size: clamp(0.65rem, 0.7vw, 0.78rem);
}

.systems-auth-hint small {
  margin-top: 2px;
  color: #6f7e79;
  font-size: clamp(0.54rem, 0.58vw, 0.65rem);
}

.systems-clock {
  justify-items: end;
}

.systems-clock strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 2vw, 2.25rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.systems-clock span {
  margin-top: 4px;
  color: #6f747c;
  font-size: clamp(0.62rem, 0.68vw, 0.76rem);
  text-transform: capitalize;
}

.systems-workspace {
  display: grid;
  grid-template-columns: clamp(245px, 18vw, 330px) minmax(0, 1fr);
  min-height: 0;
  padding: clamp(12px, 1.4vh, 18px) clamp(16px, 1.8vw, 32px);
  gap: clamp(12px, 1.2vw, 20px);
}

.systems-sidebar,
.system-viewer {
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: clamp(17px, 1.25vw, 22px);
  background: #fff;
  box-shadow: 0 12px 32px rgba(30, 24, 27, 0.055);
}

.systems-sidebar {
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.3vw, 21px);
}

.systems-sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px clamp(11px, 1.1vh, 15px);
  border-bottom: 1px solid #eceef1;
}

.systems-sidebar-heading span {
  color: #7a7f88;
  font-size: clamp(0.56rem, 0.6vw, 0.68rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.systems-sidebar-heading strong {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.75rem;
}

.systems-nav {
  display: grid;
  gap: 8px;
  margin-top: clamp(10px, 1.1vh, 15px);
}

.system-nav-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: clamp(10px, 1vw, 14px);
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f7f8fa;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.system-nav-item:hover,
.system-nav-item:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 18%, transparent);
  background: #fff;
}

.system-nav-item.active {
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
  background: color-mix(in srgb, var(--primary) 5%, #fff);
  box-shadow: inset 3px 0 0 var(--primary);
}

.system-nav-icon,
.system-type-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: #eceff5;
  color: #55616f;
  font-size: 0.86rem;
  font-weight: 900;
}

.system-nav-icon.planner,
.system-type-icon.planner {
  background: #e9f4ed;
  color: #317342;
}

.system-nav-icon.acompanhamento,
.system-type-icon.acompanhamento {
  background: #edf2fb;
  color: #386bb8;
}

.system-nav-icon.engajamento,
.system-type-icon.engajamento {
  background: var(--primary-soft);
  color: var(--primary);
}

.system-nav-copy {
  display: grid;
  min-width: 0;
}

.system-nav-copy small {
  overflow: hidden;
  color: #8a8f98;
  font-size: clamp(0.5rem, 0.54vw, 0.61rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.system-nav-copy strong {
  margin-top: 3px;
  overflow: hidden;
  color: #32353b;
  font-size: clamp(0.65rem, 0.72vw, 0.82rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-nav-status {
  color: var(--calm);
  font-size: 0.58rem;
  font-weight: 900;
}

.system-nav-status.teste {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(226, 147, 22, 0.11);
  color: #9b6107;
}

.systems-schedule-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: auto;
  padding: 12px;
  border-radius: 12px;
  background: #f5f6f8;
  color: #737983;
}

.systems-schedule-note > span {
  color: var(--primary);
  font-size: 1rem;
}

.systems-schedule-note p {
  display: grid;
  gap: 2px;
  margin: 0;
  font-size: clamp(0.54rem, 0.58vw, 0.65rem);
  line-height: 1.35;
}

.systems-schedule-note strong {
  color: #4f545c;
}

.system-viewer {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.system-viewer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: clamp(72px, 8.3vh, 96px);
  padding: 12px clamp(16px, 1.6vw, 26px);
  border-bottom: 1px solid #e9ebee;
}

.system-viewer-title {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.system-viewer-title > div:last-child {
  min-width: 0;
}

.system-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-title-line h2 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.15vw, 1.35rem);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-viewer-title p {
  margin: 4px 0 0;
  overflow: hidden;
  color: #747983;
  font-size: clamp(0.6rem, 0.67vw, 0.76rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22, 130, 100, 0.09);
  color: var(--calm);
  font-size: clamp(0.48rem, 0.52vw, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.system-status.teste {
  background: rgba(226, 147, 22, 0.11);
  color: #9b6107;
}

.system-viewer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.system-window {
  padding: 6px 9px;
  border-radius: 9px;
  background: #f3f4f6;
  color: #686d76;
  font-size: clamp(0.54rem, 0.58vw, 0.66rem);
  font-weight: 800;
  white-space: nowrap;
}

.system-frame-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background: #f6f7f9;
}

.system-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.system-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #f8f9fb;
  color: #535861;
}

.system-loading strong {
  margin-top: 15px;
  font-size: 0.92rem;
}

.system-loading small {
  margin-top: 5px;
  color: #858a93;
  font-size: 0.7rem;
}

.system-loader {
  width: 38px;
  height: 38px;
  border: 3px solid #e4e6ea;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: system-loader 0.8s linear infinite;
}

@keyframes system-loader { to { transform: rotate(360deg); } }

.system-launch-only,
.systems-empty {
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  padding: 30px;
  text-align: center;
}

.system-launch-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 22px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.8rem;
}

.system-launch-only h3,
.systems-empty strong {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: 1.25rem;
}

.system-launch-only p,
.systems-empty p {
  max-width: 440px;
  margin: 7px 0 20px;
  color: #70757e;
  font-size: 0.85rem;
  line-height: 1.45;
}

.systems-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: clamp(54px, 6.2vh, 70px);
  padding: 8px clamp(20px, 2.5vw, 46px);
  border-top: 1px solid var(--panel-border);
  background: #fff;
}

.rotation-state {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #686d76;
  font-size: clamp(0.58rem, 0.64vw, 0.72rem);
  font-weight: 700;
}

.rotation-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--calm);
  box-shadow: 0 0 0 4px rgba(22, 130, 100, 0.09);
}

.rotation-dot.paused {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgba(226, 147, 22, 0.1);
}

.rotation-progress {
  width: min(150px, 11vw);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7e9ed;
}

.rotation-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

@keyframes system-progress { to { width: 100%; } }

.systems-indicators {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.systems-indicators button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd2d8;
  cursor: pointer;
  transition: 0.2s ease;
}

.systems-indicators button.active {
  width: 25px;
  background: var(--primary);
}

.systems-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.systems-controls button,
.systems-control-link {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid #dfe1e5;
  border-radius: 9px;
  background: #fff;
  color: #555a63;
  font-size: clamp(0.58rem, 0.62vw, 0.7rem);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.systems-controls button:first-of-type,
.systems-controls button:nth-of-type(3) {
  min-width: 34px;
  padding-right: 8px;
  padding-left: 8px;
  color: var(--primary);
  font-size: 1.05rem;
}

@media (max-width: 1100px) {
  .systems-auth-hint,
  .systems-schedule-note,
  .system-window,
  .rotation-progress,
  .systems-control-link {
    display: none;
  }

  .systems-workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .systems-page {
    overflow: auto;
  }

  .systems-app {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .systems-workspace {
    grid-template-columns: 1fr;
  }

  .systems-sidebar {
    overflow-x: auto;
  }

  .systems-sidebar-heading {
    display: none;
  }

  .systems-nav {
    display: flex;
    margin-top: 0;
  }

  .system-nav-item {
    flex: 0 0 230px;
  }

  .system-viewer {
    min-height: 70vh;
  }

  .system-viewer-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .systems-footer {
    grid-template-columns: 1fr auto;
  }

  .systems-indicators {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .system-loader,
  .rotation-progress span {
    animation: none !important;
  }
}

/* Programação automática: destaques intercalados com relatórios */
.broadcast-app {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 26%),
    linear-gradient(145deg, #f7f7f9, #eceef2);
}

.broadcast-app::before,
.broadcast-app::after {
  display: none;
}

.broadcast-header {
  z-index: 5;
  min-height: clamp(88px, 9.5vh, 110px);
  padding: clamp(12px, 1.5vh, 18px) clamp(26px, 3vw, 58px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: none;
}

.broadcast-header .institutional-logo-shell {
  min-width: clamp(74px, 6vw, 98px);
  padding-right: clamp(14px, 1.3vw, 22px);
}

.broadcast-header .display-logo {
  width: clamp(60px, 5vw, 82px);
  height: clamp(60px, 5vw, 82px);
}

.broadcast-header .department-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: clamp(0.54rem, 0.62vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.16em;
}

.broadcast-header .display-brand h1 {
  font-size: clamp(1.4rem, 1.85vw, 2.15rem);
}

.broadcast-header .display-brand p {
  margin-top: 3px;
  font-size: clamp(0.66rem, 0.8vw, 0.92rem);
}

.broadcast-header .display-status {
  gap: clamp(14px, 1.6vw, 28px);
}

.broadcast-state {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 178px;
  padding: 9px 13px;
  border: 1px solid rgba(22, 130, 100, 0.13);
  border-radius: 13px;
  background: rgba(22, 130, 100, 0.055);
}

.broadcast-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--calm);
  box-shadow: 0 0 0 5px rgba(22, 130, 100, 0.11);
  animation: broadcast-live 1.8s ease-in-out infinite;
}

@keyframes broadcast-live {
  50% { box-shadow: 0 0 0 9px rgba(22, 130, 100, 0.025); }
}

.broadcast-state div {
  display: grid;
}

.broadcast-state strong {
  color: #3b554d;
  font-size: clamp(0.61rem, 0.67vw, 0.76rem);
  letter-spacing: 0.08em;
}

.broadcast-state small {
  margin-top: 3px;
  color: #74817d;
  font-size: clamp(0.52rem, 0.57vw, 0.65rem);
  white-space: nowrap;
}

.broadcast-header .display-weather {
  min-width: 128px;
  padding: 8px 12px;
  border-radius: 14px;
}

.broadcast-header .weather-icon {
  font-size: clamp(1.65rem, 2vw, 2.3rem);
}

.broadcast-header .weather-copy strong {
  font-size: clamp(1.2rem, 1.45vw, 1.65rem);
}

.broadcast-header .display-clock {
  min-width: 145px;
}

.broadcast-header .display-clock strong {
  font-size: clamp(1.8rem, 2.4vw, 2.8rem);
  font-variant-numeric: tabular-nums;
}

.broadcast-header .display-clock span {
  margin-top: 3px;
  font-size: clamp(0.64rem, 0.74vw, 0.84rem);
}

.broadcast-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.broadcast-slide {
  position: absolute;
  inset: clamp(14px, 1.7vh, 22px) clamp(22px, 2.8vw, 54px);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: clamp(22px, 1.8vw, 32px);
  background: #fff;
  box-shadow: 0 24px 70px rgba(37, 31, 34, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px) scale(0.995);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.broadcast-slide.active {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.highlight-slide {
  display: grid;
  grid-template-columns: 1fr;
  isolation: isolate;
  background:
    radial-gradient(circle at 95% 15%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 27%),
    radial-gradient(circle at 4% 95%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 24%),
    linear-gradient(135deg, #fff 0%, #fafafb 100%);
}

.highlight-slide.with-image {
  grid-template-columns: minmax(34%, 0.82fr) minmax(54%, 1.18fr);
}

.highlight-slide.image-only {
  grid-template-columns: 1fr;
}

.highlight-visual {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e8eaee;
}

.highlight-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-slide.image-only .highlight-visual {
  grid-column: 1;
}

.highlight-slide.image-only .highlight-visual img {
  object-fit: contain;
  background: #fff;
}

.highlight-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: clamp(42px, 5vw, 92px);
}

.highlight-kicker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(17px, 2vh, 26px);
}

.highlight-kicker,
.highlight-priority {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: clamp(0.62rem, 0.72vw, 0.82rem);
  font-weight: 900;
  letter-spacing: 0.1em;
}

.highlight-kicker i,
.report-live-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.highlight-priority {
  background: var(--primary);
  color: #fff;
}

.highlight-content h2 {
  max-width: 1400px;
  margin: 0;
  color: var(--primary);
  font-size: clamp(3rem, 5.7vw, 7rem);
  letter-spacing: -0.045em;
  line-height: 0.96;
  overflow-wrap: anywhere;
}

.highlight-content p {
  max-width: 1250px;
  margin: clamp(22px, 3vh, 38px) 0 0;
  color: #36393f;
  font-size: clamp(1.45rem, 2.45vw, 3rem);
  line-height: 1.25;
  white-space: pre-line;
}

.highlight-slide.with-image .highlight-content h2 {
  font-size: clamp(2.5rem, 4vw, 5rem);
}

.highlight-slide.with-image .highlight-content p {
  font-size: clamp(1.25rem, 1.8vw, 2.15rem);
}

.highlight-watermark {
  position: absolute;
  right: -18px;
  bottom: -36px;
  z-index: 0;
  color: color-mix(in srgb, var(--primary) 3.5%, transparent);
  font-size: clamp(8rem, 17vw, 21rem);
  font-weight: 950;
  letter-spacing: -0.08em;
  line-height: 0.8;
  pointer-events: none;
}

.broadcast-schedule {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(9px, 1vw, 15px);
  margin-top: clamp(22px, 2.5vh, 34px);
}

.broadcast-schedule-step {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: clamp(100px, 12vh, 142px);
  padding: clamp(12px, 1.1vw, 17px);
  overflow: hidden;
  border: 1px solid #e2e4e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.broadcast-schedule-step::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--primary);
}

.broadcast-schedule-step > span {
  color: #a1a5ad;
  font-size: clamp(0.58rem, 0.66vw, 0.75rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.broadcast-schedule-step strong {
  align-self: center;
  color: #36393f;
  font-size: clamp(0.78rem, 1vw, 1.12rem);
  line-height: 1.12;
  text-transform: uppercase;
}

.broadcast-schedule-step time {
  color: var(--primary);
  font-size: clamp(1.15rem, 1.6vw, 1.9rem);
  font-weight: 900;
}

.highlight-content:has(.broadcast-schedule:not(.hidden)) h2 {
  font-size: clamp(2.1rem, 3.5vw, 4.25rem);
}

.report-slide {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #f7f8fa;
}

.report-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: clamp(66px, 7.6vh, 86px);
  padding: 10px clamp(18px, 2vw, 32px);
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.98);
}

.report-identity {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.report-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.report-icon.planner { background: #e9f4ed; color: #317342; }
.report-icon.acompanhamento { background: #edf2fb; color: #386bb8; }

.report-live-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--calm);
  font-size: clamp(0.5rem, 0.57vw, 0.65rem);
  font-weight: 900;
  letter-spacing: 0.12em;
}

.report-identity h2 {
  margin: 3px 0 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(1rem, 1.25vw, 1.45rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-window,
.report-auth,
.report-environment {
  padding: 6px 9px;
  border-radius: 9px;
  background: #f0f2f5;
  color: #656a73;
  font-size: clamp(0.52rem, 0.58vw, 0.66rem);
  font-weight: 850;
  white-space: nowrap;
}

.report-auth {
  background: #e9f4ed;
  color: #317342;
}

.report-environment {
  background: rgba(22, 130, 100, 0.09);
  color: var(--calm);
  text-transform: uppercase;
}

.report-environment.teste {
  background: rgba(226, 147, 22, 0.11);
  color: #9b6107;
}

.report-frame-shell {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.report-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.report-frame-pool {
  position: absolute;
  inset: 0;
  background: #fff;
}

.preloaded-report-frame {
  position: absolute;
  inset: 0;
  display: none !important;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.preloaded-report-frame.active {
  display: block !important;
}

.report-insight {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.1fr);
  grid-template-rows: auto 1fr;
  align-content: center;
  gap: clamp(22px, 2.6vw, 44px);
  height: 100%;
  padding: clamp(42px, 5vw, 88px);
  background:
    radial-gradient(circle at 92% 8%, rgba(49, 115, 66, 0.1), transparent 28%),
    radial-gradient(circle at 4% 94%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 24%),
    linear-gradient(135deg, #fff 0%, #f7f9f8 100%);
}

.report-insight-heading {
  grid-row: span 2;
  display: flex;
  align-items: flex-start;
  gap: clamp(16px, 1.6vw, 26px);
  align-self: center;
}

.report-insight-symbol {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(64px, 5.5vw, 92px);
  height: clamp(64px, 5.5vw, 92px);
  border-radius: clamp(18px, 1.5vw, 25px);
  background: #e9f4ed;
  color: #317342;
  font-size: clamp(1.5rem, 2vw, 2.2rem);
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(49, 115, 66, 0.12);
}

.report-insight-heading h3 {
  max-width: 620px;
  margin: clamp(10px, 1.2vh, 16px) 0 0;
  color: #26332b;
  font-size: clamp(2.2rem, 3.7vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.report-insight-heading p {
  max-width: 640px;
  margin: clamp(16px, 2vh, 24px) 0 0;
  color: #626e66;
  font-size: clamp(0.9rem, 1.15vw, 1.32rem);
  line-height: 1.45;
}

.insight-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1vw, 16px);
  align-self: end;
}

.insight-metric {
  display: grid;
  align-content: center;
  min-height: clamp(100px, 12vh, 140px);
  padding: clamp(15px, 1.5vw, 24px);
  border: 1px solid rgba(49, 115, 66, 0.11);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 26px rgba(30, 43, 34, 0.055);
}

.insight-metric strong {
  overflow: hidden;
  color: #2f6840;
  font-size: clamp(1.3rem, 1.85vw, 2.2rem);
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-metric span {
  margin-top: 7px;
  color: #78817b;
  font-size: clamp(0.58rem, 0.66vw, 0.76rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.insight-items {
  display: grid;
  gap: clamp(8px, 0.9vh, 12px);
  align-self: start;
}

.insight-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: clamp(11px, 1vw, 15px);
  border: 1px solid #e4e9e5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.insight-item > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4b8b5c;
  box-shadow: 0 0 0 5px rgba(75, 139, 92, 0.09);
}

.insight-item div {
  display: grid;
  min-width: 0;
}

.insight-item strong {
  overflow: hidden;
  color: #354239;
  font-size: clamp(0.7rem, 0.8vw, 0.92rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-item span {
  margin-top: 3px;
  overflow: hidden;
  color: #7a837d;
  font-size: clamp(0.58rem, 0.65vw, 0.74rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  background: #f8f9fb;
  color: #535861;
}

.report-loading strong {
  margin-top: 15px;
  font-size: 0.95rem;
}

.report-loading small {
  margin-top: 5px;
  color: #858a93;
  font-size: 0.72rem;
}

.broadcast-progress {
  position: absolute;
  right: clamp(22px, 2.8vw, 54px);
  bottom: clamp(14px, 1.7vh, 22px);
  left: clamp(22px, 2.8vw, 54px);
  z-index: 5;
  height: 4px;
  overflow: hidden;
  border-radius: 0 0 999px 999px;
  background: rgba(20, 22, 26, 0.07);
}

.broadcast-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--primary);
}

@keyframes broadcast-progress { to { width: 100%; } }

.broadcast-indicators {
  position: absolute;
  left: 50%;
  bottom: clamp(25px, 2.8vh, 34px);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 16px rgba(20, 22, 26, 0.08);
  transform: translateX(-50%);
}

.broadcast-indicators span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #c9cdd3;
  transition: 0.25s ease;
}

.broadcast-indicators span.report { background: #9fb0ca; }

.broadcast-indicators span.active {
  width: 22px;
  background: var(--primary);
}

.broadcast-ticker {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: clamp(52px, 6vh, 66px);
}

.broadcast-ticker .ticker-label {
  min-width: 138px;
  font-size: clamp(0.72rem, 0.78vw, 0.88rem);
}

.broadcast-ticker .ticker-track {
  font-size: clamp(0.88rem, 1.04vw, 1.2rem);
}

.broadcast-next {
  display: grid;
  align-content: center;
  min-width: clamp(210px, 18vw, 330px);
  padding: 0 clamp(18px, 1.6vw, 28px);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.12);
}

.broadcast-next span {
  font-size: clamp(0.46rem, 0.52vw, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  opacity: 0.62;
}

.broadcast-next strong {
  margin-top: 3px;
  overflow: hidden;
  font-size: clamp(0.6rem, 0.7vw, 0.82rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1050px) {
  .broadcast-state,
  .report-window,
  .report-auth,
  .broadcast-next {
    display: none;
  }

  .broadcast-ticker {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .broadcast-header .display-weather,
  .broadcast-header .display-brand p,
  .broadcast-header .department-tag {
    display: none;
  }

  .broadcast-slide {
    inset: 12px;
  }

  .highlight-slide.with-image {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(180px, 38%) 1fr;
  }

  .highlight-content {
    padding: 28px;
  }

  .highlight-content h2,
  .highlight-slide.with-image .highlight-content h2 {
    font-size: clamp(2.2rem, 10vw, 4rem);
  }

  .highlight-content p,
  .highlight-slide.with-image .highlight-content p {
    font-size: clamp(1rem, 5vw, 1.6rem);
  }

  .broadcast-schedule {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-toolbar {
    padding: 10px 14px;
  }

  .report-meta {
    display: none;
  }

  .report-insight {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    padding: 28px;
  }

  .report-insight-heading {
    grid-row: auto;
  }

  .report-insight-heading h3 {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .insight-metrics {
    grid-template-columns: 1fr;
  }

  .insight-metric {
    min-height: 76px;
  }

  .broadcast-progress {
    right: 12px;
    bottom: 12px;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .broadcast-live-dot,
  .broadcast-progress span {
    animation: none !important;
  }

  .broadcast-slide {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .display-app::before,
  .display-app::after,
  .ticker-pulse {
    animation: none;
  }
}

/* Página inicial do centro de operações */
.ops-home-page {
  background:
    radial-gradient(circle at 18% 18%, rgba(225, 0, 30, 0.24), transparent 25%),
    radial-gradient(circle at 88% 82%, rgba(225, 0, 30, 0.14), transparent 27%),
    linear-gradient(135deg, #181013 0%, #2b1118 48%, #130f11 100%);
}

.ops-home-container {
  position: relative;
  overflow: hidden;
}

.ops-home-container::before,
.ops-home-container::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255, 255, 255, 0.018), 0 0 0 104px rgba(255, 255, 255, 0.012);
}

.ops-home-container::before { top: -160px; right: -60px; }
.ops-home-container::after { bottom: -200px; left: -80px; }

.ops-home-card {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: clamp(30px, 5vw, 60px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.32);
  text-align: left;
}

.home-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(30px, 5vh, 54px);
}

.home-brand-row img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.home-brand-row span,
.home-eyebrow {
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.ops-home-card h1 {
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.ops-home-card h1 em {
  color: var(--primary);
  font-style: normal;
}

.ops-home-card > p {
  max-width: 580px;
  margin: 0;
  color: #62666e;
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  line-height: 1.55;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 30px 0;
}

.home-feature-grid span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e7e8eb;
  border-radius: 12px;
  background: #fafafb;
  color: #4d5159;
  font-size: 0.82rem;
  font-weight: 700;
}

.home-feature-grid i {
  color: var(--primary);
  font-size: 0.64rem;
  font-style: normal;
  font-weight: 900;
}

.ops-home-card .home-actions {
  justify-content: flex-start;
  margin-top: 0;
}

.ops-home-card .button {
  min-height: 48px;
  padding-right: 20px;
  padding-left: 20px;
}

.home-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #777b83;
  font-size: 0.72rem;
}

.home-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--calm);
  box-shadow: 0 0 0 4px rgba(22, 130, 100, 0.1);
}

@media (max-width: 620px) {
  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .home-brand-row {
    margin-bottom: 28px;
  }

  .home-brand-row span {
    font-size: 0.58rem;
  }
}

/* Centro de Operações CEDUC */
:root {
  --ink: #17191d;
  --ink-soft: #50545d;
  --panel-border: rgba(27, 29, 34, 0.08);
  --ops-shadow: 0 16px 44px rgba(30, 24, 27, 0.08);
  --warning: #e29316;
  --critical: #d7273f;
  --calm: #168264;
}

.display-page {
  background: #eef0f4;
}

.ops-app {
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    radial-gradient(circle at 5% 0%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 22%),
    radial-gradient(circle at 96% 48%, color-mix(in srgb, var(--primary) 5%, transparent), transparent 24%),
    #f3f4f7;
}

.ops-app::before,
.ops-app::after {
  display: none;
}

.ops-header {
  z-index: 5;
  min-height: clamp(82px, 9.3vh, 108px);
  padding: clamp(12px, 1.55vh, 20px) clamp(24px, 2.8vw, 54px);
  border-bottom: 1px solid rgba(27, 29, 34, 0.07);
  box-shadow: none;
}

.ops-header .institutional-logo-shell {
  min-width: clamp(72px, 6vw, 98px);
  padding-right: clamp(12px, 1.3vw, 22px);
}

.ops-header .display-logo {
  width: clamp(58px, 5vw, 82px);
  height: clamp(58px, 5vw, 82px);
}

.ops-header .display-brand {
  gap: clamp(14px, 1.4vw, 22px);
}

.ops-header .department-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--primary);
  font-size: clamp(0.56rem, 0.62vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.18em;
}

.ops-header .display-brand h1 {
  font-size: clamp(1.4rem, 1.75vw, 2.1rem);
}

.ops-header .display-brand p {
  margin-top: 3px;
  font-size: clamp(0.68rem, 0.82vw, 0.93rem);
}

.ops-header .display-status {
  gap: clamp(12px, 1.5vw, 26px);
}

.sync-status {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 168px;
  padding: 9px 13px;
  border: 1px solid var(--panel-border);
  border-radius: 13px;
  background: #f7f8fa;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.sync-status:hover,
.sync-status:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 35%, transparent);
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 24, 27, 0.08);
}

.sync-dot {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #89909a;
}

.sync-status.online .sync-dot {
  background: var(--calm);
  box-shadow: 0 0 0 5px rgba(22, 130, 100, 0.12);
}

.sync-status.error .sync-dot {
  background: var(--critical);
  box-shadow: 0 0 0 5px rgba(215, 39, 63, 0.1);
}

.sync-status.demo .sync-dot {
  background: var(--warning);
  box-shadow: 0 0 0 5px rgba(226, 147, 22, 0.12);
}

.sync-status.syncing .sync-dot {
  animation: sync-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes sync-pulse {
  to { transform: scale(1.5); opacity: 0.4; }
}

.sync-copy {
  display: grid;
  min-width: 0;
}

.sync-copy strong {
  font-size: clamp(0.7rem, 0.75vw, 0.84rem);
  white-space: nowrap;
}

.sync-copy small {
  margin-top: 2px;
  overflow: hidden;
  color: #727780;
  font-size: clamp(0.58rem, 0.62vw, 0.7rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-header .display-weather {
  min-width: 126px;
  padding: 8px 12px;
  border-color: color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: 14px;
}

.ops-header .weather-icon {
  font-size: clamp(1.65rem, 2vw, 2.35rem);
}

.ops-header .weather-copy strong {
  font-size: clamp(1.2rem, 1.4vw, 1.65rem);
}

.ops-header .display-clock {
  min-width: 142px;
}

.ops-header .display-clock strong {
  font-size: clamp(1.75rem, 2.35vw, 2.75rem);
  font-variant-numeric: tabular-nums;
}

.ops-header .display-clock span {
  max-width: 190px;
  margin-top: 3px;
  overflow: hidden;
  font-size: clamp(0.65rem, 0.78vw, 0.88rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-dashboard {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: clamp(10px, 1.25vh, 16px);
  min-height: 0;
  padding: clamp(12px, 1.7vh, 22px) clamp(22px, 2.8vw, 54px) clamp(10px, 1.25vh, 16px);
}

.intelligence-brief {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) minmax(520px, 1.1fr);
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  min-height: clamp(112px, 13vh, 148px);
  padding: clamp(16px, 1.7vw, 26px);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--primary) 12%, transparent);
  border-radius: clamp(18px, 1.4vw, 26px);
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--primary) 5%, #fff) 0%, #fff 58%, color-mix(in srgb, var(--primary) 3%, #fff) 100%);
  box-shadow: var(--ops-shadow);
}

.intelligence-brief::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -40px;
  width: 250px;
  height: 250px;
  border: 1px solid color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--primary) 2%, transparent), 0 0 0 68px color-mix(in srgb, var(--primary) 2%, transparent);
  pointer-events: none;
}

.intelligence-orb {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(54px, 4.5vw, 74px);
  height: clamp(54px, 4.5vw, 74px);
  border-radius: 22px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--primary) 22%, transparent);
}

.intelligence-orb svg {
  width: 46%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.intelligence-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.module-eyebrow {
  color: var(--primary);
  font-size: clamp(0.56rem, 0.6vw, 0.7rem);
  font-weight: 900;
  letter-spacing: 0.15em;
}

.live-spark {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 12%, transparent);
  vertical-align: 1px;
  animation: live-spark 1.8s ease-in-out infinite;
}

@keyframes live-spark {
  50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 2%, transparent); }
}

.intelligence-copy h2 {
  margin: 5px 0 4px;
  color: var(--ink);
  font-size: clamp(1.18rem, 1.55vw, 1.85rem);
  line-height: 1.1;
}

.intelligence-copy p {
  display: -webkit-box;
  max-width: 680px;
  margin: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: clamp(0.72rem, 0.84vw, 0.98rem);
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.kpi-strip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(7px, 0.7vw, 12px);
}

.kpi-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: clamp(7px, 0.7vw, 11px);
  min-width: 0;
  padding: clamp(10px, 1vw, 15px);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.kpi-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: clamp(28px, 2.2vw, 38px);
  height: clamp(28px, 2.2vw, 38px);
  border-radius: 11px;
  background: #f0f1f4;
  color: #666c76;
  font-size: clamp(0.85rem, 1vw, 1.1rem);
  font-weight: 900;
}

.kpi-card.urgent .kpi-icon {
  background: color-mix(in srgb, var(--primary) 9%, #fff);
  color: var(--primary);
}

.kpi-card strong {
  align-self: end;
  color: var(--ink);
  font-size: clamp(1.15rem, 1.45vw, 1.75rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.kpi-card small {
  align-self: start;
  margin-top: 3px;
  overflow: hidden;
  color: #747981;
  font-size: clamp(0.52rem, 0.58vw, 0.67rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr) minmax(280px, 0.84fr);
  gap: clamp(10px, 1.05vw, 17px);
  min-height: 0;
}

.ops-module {
  min-width: 0;
  min-height: 0;
  padding: clamp(15px, 1.35vw, 22px);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: clamp(17px, 1.25vw, 22px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(30, 24, 27, 0.055);
}

.planner-module,
.projects-module,
.goals-module,
.inbox-module {
  display: flex;
  flex-direction: column;
}

.module-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: clamp(10px, 1.2vh, 16px);
}

.module-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: clamp(0.98rem, 1.1vw, 1.32rem);
  line-height: 1.15;
}

.module-count {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 11px;
  background: color-mix(in srgb, var(--primary) 7%, #fff);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 900;
}

.task-list,
.project-list,
.goals-list,
.inbox-list {
  display: grid;
  gap: clamp(7px, 0.85vh, 11px);
  min-height: 0;
}

.task-list,
.project-list {
  flex: 1;
}

.task-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 0.8vw, 13px);
  min-height: 0;
  padding: clamp(9px, 0.9vw, 14px);
  border: 1px solid #eceef1;
  border-radius: 14px;
  background: #fbfbfc;
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

a.task-item:hover,
a.task-item:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 25%, transparent);
  background: #fff;
  transform: translateY(-1px);
}

.task-marker {
  width: 9px;
  height: 74%;
  max-height: 42px;
  border-radius: 999px;
  background: #b3b7bf;
}

.task-item.soon .task-marker { background: var(--warning); }
.task-item.today .task-marker,
.task-item.overdue .task-marker { background: var(--critical); }

.task-body {
  display: grid;
  min-width: 0;
}

.task-plan {
  overflow: hidden;
  color: #828791;
  font-size: clamp(0.53rem, 0.58vw, 0.66rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.task-body strong {
  margin: 3px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.7rem, 0.78vw, 0.9rem);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-body small {
  overflow: hidden;
  color: #6d727b;
  font-size: clamp(0.57rem, 0.62vw, 0.7rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-due {
  display: grid;
  min-width: 74px;
  justify-items: end;
}

.task-due strong {
  color: #656a73;
  font-size: clamp(0.6rem, 0.66vw, 0.75rem);
}

.task-item.soon .task-due strong { color: #ad6c04; }
.task-item.today .task-due strong,
.task-item.overdue .task-due strong { color: var(--critical); }

.task-due span {
  margin-top: 3px;
  color: #9397a0;
  font-size: clamp(0.52rem, 0.56vw, 0.63rem);
  text-transform: uppercase;
}

.project-item {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: clamp(10px, 1vw, 15px);
  border: 1px solid #eceef1;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff 0%, #fafafb 100%);
  color: inherit;
  text-decoration: none;
  transition: 0.2s ease;
}

a.project-item:hover,
a.project-item:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  box-shadow: 0 8px 22px rgba(30, 24, 27, 0.07);
  transform: translateY(-2px);
}

.project-topline,
.project-progress-label,
.goal-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.project-status,
.trend-badge,
.privacy-badge {
  width: max-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(22, 130, 100, 0.09);
  color: var(--calm);
  font-size: clamp(0.5rem, 0.55vw, 0.62rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-status.homologacao {
  background: rgba(54, 105, 188, 0.09);
  color: #3669bc;
}

.project-status.planejamento {
  background: rgba(226, 147, 22, 0.11);
  color: #9c6206;
}

.project-link-icon {
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
}

.project-item > strong {
  margin-top: clamp(6px, 0.65vh, 9px);
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.72rem, 0.82vw, 0.94rem);
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item p {
  margin: 3px 0 clamp(7px, 0.75vh, 10px);
  overflow: hidden;
  color: #686d76;
  font-size: clamp(0.56rem, 0.62vw, 0.71rem);
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-progress-label {
  margin-bottom: 5px;
  color: #777c85;
  font-size: clamp(0.52rem, 0.57vw, 0.65rem);
}

.project-progress-label strong {
  color: var(--ink);
  font-size: inherit;
}

.progress-track,
.goal-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ebee;
}

.progress-track span,
.goal-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), color-mix(in srgb, var(--primary) 65%, #ff8a9a));
}

.ops-side-stack {
  display: grid;
  grid-template-rows: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(10px, 1.05vw, 17px);
  min-height: 0;
}

.module-header.compact {
  margin-bottom: clamp(8px, 0.9vh, 12px);
}

.trend-badge.attention {
  background: rgba(226, 147, 22, 0.11);
  color: #996006;
}

.privacy-badge {
  background: #f0f1f4;
  color: #737984;
}

.goal-item {
  display: grid;
  gap: 6px;
}

.goal-topline strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.63rem, 0.7vw, 0.8rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-topline span {
  flex: 0 0 auto;
  color: #6f747d;
  font-size: clamp(0.54rem, 0.59vw, 0.67rem);
  font-weight: 800;
}

.goal-item.attention .goal-track span {
  background: linear-gradient(90deg, #e29316, #f2b84f);
}

.inbox-signal {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: clamp(7px, 0.75vh, 10px) 10px;
  border-radius: 11px;
  background: #f8f9fa;
}

.signal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8b919b;
}

.inbox-signal.atencao .signal-dot { background: var(--warning); }
.inbox-signal.urgente .signal-dot { background: var(--critical); }

.inbox-signal span:nth-child(2) {
  overflow: hidden;
  color: #555a63;
  font-size: clamp(0.58rem, 0.64vw, 0.73rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-signal strong {
  color: var(--ink);
  font-size: clamp(0.7rem, 0.8vw, 0.92rem);
}

.module-empty {
  display: grid;
  flex: 1;
  place-content: center;
  min-height: 100px;
  padding: 18px;
  border: 1px dashed #dfe2e7;
  border-radius: 14px;
  color: #747984;
  text-align: center;
}

.module-empty strong {
  color: #555a63;
  font-size: 0.83rem;
}

.module-empty span {
  margin-top: 4px;
  font-size: 0.7rem;
}

.module-empty.compact {
  min-height: 52px;
}

.communication-ribbon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(14px, 1.3vw, 22px);
  min-height: clamp(66px, 7.4vh, 86px);
  padding: 0 clamp(18px, 1.7vw, 28px);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: clamp(15px, 1.1vw, 19px);
  background: #fff;
  box-shadow: 0 10px 28px rgba(30, 24, 27, 0.05);
}

.ribbon-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: clamp(0.55rem, 0.62vw, 0.72rem);
  font-weight: 900;
  letter-spacing: 0.13em;
}

.ribbon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary) 9%, transparent);
}

.ribbon-content {
  display: grid;
  grid-template-columns: minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 1.4vw, 24px);
  min-width: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.ribbon-content.is-changing {
  opacity: 0;
  transform: translateY(4px);
}

.ribbon-content strong {
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(0.72rem, 0.83vw, 0.96rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ribbon-content span {
  overflow: hidden;
  color: #666b74;
  font-size: clamp(0.62rem, 0.7vw, 0.8rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ribbon-indicators {
  position: static;
  display: flex;
  transform: none;
}

.ribbon-indicators .slide-dot {
  width: 6px;
  height: 6px;
  background: #d1d4da;
}

.ribbon-indicators .slide-dot.active {
  width: 20px;
  background: var(--primary);
}

.ops-ticker {
  min-height: clamp(48px, 5.6vh, 62px);
}

.ops-ticker .ticker-label {
  min-width: 138px;
  padding: 0 20px;
  font-size: clamp(0.72rem, 0.78vw, 0.9rem);
}

.ops-ticker .ticker-track {
  font-size: clamp(0.86rem, 1.05vw, 1.22rem);
}

/* Campos administrativos dos novos módulos */
.integration-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.integration-stat {
  display: grid;
  gap: 4px;
  padding: 18px;
}

.integration-stat span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.integration-stat strong {
  font-size: 1.05rem;
}

.integration-stat small {
  color: var(--muted);
}

.integration-note {
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  border-radius: 10px;
  background: var(--primary-soft);
  color: #565960;
  font-size: 0.9rem;
  line-height: 1.5;
}

.integration-note strong {
  color: var(--primary);
}

.project-admin-progress {
  display: grid;
  gap: 7px;
}

.project-admin-progress output {
  color: var(--primary);
  font-weight: 800;
}

.project-admin-progress input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

@media (max-width: 1180px) {
  .intelligence-brief {
    grid-template-columns: auto minmax(220px, 0.8fr) minmax(430px, 1.2fr);
  }

  .operations-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  }

  .ops-side-stack {
    display: none;
  }

  .sync-status {
    display: none;
  }
}

@media (max-width: 900px) {
  .display-page {
    overflow: auto;
  }

  .ops-app {
    width: 100%;
    height: auto;
    min-height: 100vh;
  }

  .operations-dashboard {
    padding: 16px;
  }

  .intelligence-brief {
    grid-template-columns: auto 1fr;
  }

  .kpi-strip {
    grid-column: 1 / -1;
  }

  .operations-grid {
    grid-template-columns: 1fr;
  }

  .ops-side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .ops-module {
    min-height: 280px;
  }

  .goals-module,
  .inbox-module {
    min-height: 220px;
  }

  .communication-ribbon {
    grid-template-columns: auto 1fr;
  }

  .ribbon-indicators {
    display: none;
  }
}

@media (max-width: 620px) {
  .ops-header .display-status {
    margin-left: auto;
  }

  .ops-header .display-brand-copy p,
  .ops-header .department-tag {
    display: none;
  }

  .intelligence-brief {
    grid-template-columns: 1fr;
  }

  .intelligence-orb {
    display: none;
  }

  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ops-side-stack {
    grid-template-columns: 1fr;
  }

  .communication-ribbon {
    align-items: start;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .ribbon-content {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .integration-overview {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-spark,
  .sync-status.syncing .sync-dot {
    animation: none;
  }
}
