:root {
  --ink: #07130f;
  --muted: #60756d;
  --line: #d7e7df;
  --surface: #f4faf7;
  --card: #ffffff;
  --navy: #041b2b;
  --slate: #0b1620;
  --slate-2: #122331;
  --green: #18a957;
  --green-dark: #075e54;
  --green-soft: #dcf8c6;
  --teal: #0f766e;
  --cyan: #22d3ee;
  --amber: #f59e0b;
  --red: #dc2626;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(4, 27, 43, 0.05), transparent 18rem),
    linear-gradient(135deg, #eef6f2 0%, #f8fafc 50%, #edf7f2 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(34, 211, 238, 0.74);
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 18rem minmax(0, 1fr);
  min-width: 0;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  min-width: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-right: 1px solid rgba(15, 118, 110, 0.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(244,250,247,0.96)),
    linear-gradient(135deg, rgba(34, 211, 238, 0.08), transparent);
  backdrop-filter: blur(18px);
  padding: 1.25rem;
}

.brand-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 1rem;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.brand-card img {
  display: block;
  width: 100%;
  max-height: 3.4rem;
  object-fit: contain;
}

.product-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  margin-top: 1rem;
  border-top: 1px solid #e8f5ee;
  padding-top: 1rem;
}

.product-mark strong,
.product-mark small {
  display: block;
}

.product-mark strong {
  font-size: 1rem;
}

.product-mark small {
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.35;
}

.brand-card img.prisma-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 8px 18px rgba(7, 94, 84, 0.16);
}

.side-nav {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  margin-top: 1.25rem;
}

.nav-search {
  margin-top: 1rem;
  background: #ffffff;
}

.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  min-height: 2.8rem;
  border-radius: 8px;
  padding: 0 0.75rem;
  color: #355047;
  font-size: 0.9rem;
  font-weight: 750;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.side-nav a:hover,
.side-nav a.active {
  background: #e7f8ee;
  color: var(--green-dark);
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 900;
}

.nav-icon::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  background: currentColor;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.icon-command {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='7' height='7' rx='1'/%3E%3Crect x='14' y='4' width='7' height='7' rx='1'/%3E%3Crect x='3' y='15' width='7' height='5' rx='1'/%3E%3Crect x='14' y='15' width='7' height='5' rx='1'/%3E%3C/svg%3E");
}

.icon-sentiment {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 3v18'/%3E%3Cpath d='M18 7H9.5a3.5 3.5 0 0 0 0 7H14a3.5 3.5 0 0 1 0 7H6'/%3E%3C/svg%3E");
}

.icon-send {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='m22 2-7 20-4-9-9-4 20-7Z'/%3E%3Cpath d='M22 2 11 13'/%3E%3C/svg%3E");
}

.icon-alert {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0Z'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
}

.icon-radar {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 3v9l6 3'/%3E%3Cpath d='M12 12 5 19'/%3E%3C/svg%3E");
}

.icon-listen {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12a8 8 0 0 1 16 0'/%3E%3Cpath d='M5 12v4a3 3 0 0 0 3 3h1v-7H5Z'/%3E%3Cpath d='M19 12v4a3 3 0 0 1-3 3h-1v-7h4Z'/%3E%3C/svg%3E");
}

.icon-users {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

.icon-history {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 3v5h5'/%3E%3Cpath d='M3.05 13A9 9 0 1 0 6 5.3L3 8'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}

.icon-report {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8Z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M8 13h8'/%3E%3Cpath d='M8 17h5'/%3E%3C/svg%3E");
}

.icon-bg {
  --icon-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 4h16v5H4z'/%3E%3Cpath d='M4 15h16v5H4z'/%3E%3Cpath d='M8 9v6'/%3E%3Cpath d='M16 9v6'/%3E%3C/svg%3E");
}

.workspace {
  width: min(100%, 88rem);
  min-width: 0;
  margin: 0 auto;
  padding: 1.5rem;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
  align-items: stretch;
  gap: 1.25rem;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(4, 27, 43, 0.98), rgba(13, 24, 32, 0.98)),
    repeating-linear-gradient(90deg, rgba(34,211,238,0.08) 0 1px, transparent 1px 18px);
  padding: 1.55rem;
  box-shadow: 0 22px 60px rgba(7, 38, 32, 0.22);
  min-width: 0;
}

.topbar-copy {
  align-self: end;
  min-width: 0;
}

.eyebrow {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin-top: 0.45rem;
  color: #ffffff;
  font-size: 3.7rem;
  font-weight: 850;
  line-height: 0.98;
}

.topbar p {
  max-width: 49rem;
  margin-top: 0.8rem;
  color: rgba(255,255,255,0.76);
  line-height: 1.6;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  border: 1px solid rgba(34,211,238,0.24);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  padding: 0 0.75rem;
  color: #dcfce7;
  font-size: 0.78rem;
  font-weight: 850;
}

.hero-badges span:first-child {
  border-color: transparent;
  background: var(--green);
  color: #ffffff;
}

.view-mode-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  padding: 0.25rem;
}

.view-mode-button {
  min-height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0 0.85rem;
  color: rgba(255,255,255,0.74);
  font-size: 0.78rem;
  font-weight: 900;
}

.view-mode-button.active {
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.hero-illustration {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 18%, rgba(34, 211, 238, 0.24), transparent 26%),
    radial-gradient(circle at 20% 76%, rgba(24, 169, 87, 0.30), transparent 28%),
    linear-gradient(145deg, #06121b, #0a2d28 62%, #062016);
  box-shadow: 0 24px 50px rgba(0,0,0,0.26);
}

.hero-illustration::before {
  content: "";
  position: absolute;
  inset: 1.2rem;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(34,211,238,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34,211,238,0.10) 1px, transparent 1px);
  background-size: 2.15rem 2.15rem;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.hero-photo {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-height: 18rem;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.hero-photo::before {
  display: none;
}

.hero-photo::after {
  display: none;
}

.hero-photo img {
  position: relative;
  z-index: 2;
  display: block;
  width: 122%;
  max-width: none;
  height: 19.4rem;
  margin: -0.9rem -2.8rem -1.45rem -1.2rem;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.14) contrast(1.04) drop-shadow(0 22px 34px rgba(0,0,0,0.28));
}

.meeting-assistant-section {
  margin-top: 1rem;
  border: 1px solid rgba(24, 169, 87, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 94, 84, 0.96), rgba(4, 27, 43, 0.96)),
    radial-gradient(circle at 86% 18%, rgba(34, 211, 238, 0.20), transparent 28%);
  padding: 1.2rem;
  color: #ffffff;
  box-shadow: 0 18px 46px rgba(7, 38, 32, 0.18);
}

.meeting-assistant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.meeting-assistant-head h2 {
  margin-top: 0.35rem;
  font-size: 1.55rem;
}

.meeting-assistant-head p {
  max-width: 54rem;
  margin-top: 0.45rem;
  color: rgba(255,255,255,0.74);
  line-height: 1.55;
}

.assistant-provider-badge {
  flex: 0 0 auto;
  border: 1px solid rgba(220, 252, 231, 0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  padding: 0.45rem 0.8rem;
  color: #dcfce7;
  font-size: 0.75rem;
  font-weight: 950;
}

.assistant-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.assistant-chip {
  min-height: 2.25rem;
  border: 1px solid rgba(220, 252, 231, 0.20);
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  padding: 0 0.82rem;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 850;
}

.assistant-chip:hover {
  background: rgba(255,255,255,0.18);
}

.assistant-workbench {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 1rem;
  margin-top: 1rem;
}

.assistant-form,
.assistant-answer {
  border: 1px solid rgba(220, 252, 231, 0.20);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  padding: 1rem;
  color: var(--ink);
}

.assistant-form label {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.assistant-form textarea {
  min-height: 7.2rem;
  resize: vertical;
}

.assistant-answer {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 13rem;
}

.assistant-answer span,
.assistant-answer p,
.assistant-answer strong {
  display: block;
}

.assistant-answer span {
  width: fit-content;
  border-radius: 999px;
  background: #e7f8ee;
  padding: 0.35rem 0.65rem;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.assistant-answer p {
  color: var(--muted);
  line-height: 1.5;
}

.assistant-answer strong {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 750;
  line-height: 1.58;
  white-space: pre-wrap;
}

.assistant-question {
  border-left: 3px solid var(--green);
  padding-left: 0.65rem;
}

.assistant-answer.loading span {
  background: #fef3c7;
  color: #92400e;
}

.assistant-answer.error span {
  background: #fee2e2;
  color: #991b1b;
}

.assistant-answer-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.assistant-answer-metrics small {
  border: 1px solid #d8efe4;
  border-radius: 999px;
  background: #fbfffd;
  padding: 0.35rem 0.62rem;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 900;
}

.illustration-map {
  position: absolute;
  inset: 2.6rem 3.1rem;
  border: 1px solid rgba(220, 252, 231, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 0 48%, rgba(34,211,238,0.22) 48% 50%, transparent 50%),
    linear-gradient(25deg, transparent 0 44%, rgba(24,169,87,0.18) 44% 46%, transparent 46%);
}

.illustration-map::before,
.illustration-map::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
}

.illustration-map::before {
  width: 12rem;
  height: 12rem;
  right: 1rem;
  top: -1.4rem;
}

.illustration-map::after {
  width: 8rem;
  height: 8rem;
  left: -1.8rem;
  bottom: 0.5rem;
}

.pulse-point {
  position: absolute;
  z-index: 1;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0.45rem rgba(24,169,87,0.20);
}

.pulse-point.p1 { left: 18%; top: 28%; }
.pulse-point.p2 { right: 22%; top: 18%; background: var(--cyan); }
.pulse-point.p3 { left: 34%; bottom: 22%; background: var(--amber); }
.pulse-point.p4 { right: 18%; bottom: 30%; background: var(--red); }

.illustration-phone {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 9.6rem;
  height: 12.7rem;
  transform: translate(-50%, -50%) rotate(-4deg);
  border: 0.55rem solid #0b1512;
  border-radius: 1.45rem;
  background:
    linear-gradient(180deg, rgba(220, 248, 198, 0.96), rgba(255,255,255,0.96)),
    repeating-linear-gradient(45deg, rgba(7,94,84,0.07) 0 1px, transparent 1px 14px);
  box-shadow: 0 24px 46px rgba(0,0,0,0.36);
}

.illustration-phone > span {
  position: absolute;
  top: 0.55rem;
  width: 3.2rem;
  height: 0.28rem;
  border-radius: 999px;
  background: #1d2b27;
}

.illustration-phone strong {
  color: var(--green-dark);
  font-size: 3.4rem;
  line-height: 1;
}

.illustration-phone small {
  max-width: 6rem;
  color: #466259;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.illustration-card {
  position: absolute;
  z-index: 3;
  min-width: 7.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.92);
  padding: 0.78rem;
  box-shadow: 0 18px 34px rgba(0,0,0,0.20);
}

.illustration-card.card-a {
  left: 1rem;
  bottom: 1rem;
}

.illustration-card.card-b {
  right: 1rem;
  top: 1rem;
}

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

.illustration-card b {
  color: var(--green-dark);
  font-size: 1.4rem;
}

.illustration-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.authority-grid article,
.cockpit-section,
.dashboard-section,
.background-section,
.composer-panel,
.phone-panel,
.sentiment-panel,
.word-panel,
.history-section,
.reports-section,
.analysis-panel,
.radar-panel,
.listening-section,
.users-section,
.alerts-section,
.governance-section,
.channel-panel,
.topics-panel,
.regions-panel,
.lines-panel,
.campaign-panel,
.optout-panel,
.infrastructure-strip {
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.06);
  min-width: 0;
}

.dashboard-section,
.cockpit-section,
.background-section,
.composer-panel,
.phone-panel,
.sentiment-panel,
.word-panel,
.history-section,
.reports-section,
.analysis-panel,
.radar-panel,
.listening-section,
.users-section,
.alerts-section,
.governance-section {
  padding: 1.2rem;
}

.dashboard-section,
.cockpit-section,
.background-section,
.grid-main,
.history-section,
.reports-section,
.radar-layout,
.listening-section,
.users-section,
.alerts-section,
.governance-section,
.infrastructure-strip {
  margin-top: 1rem;
}

.module-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.module-summary article {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f8fffb);
  padding: 0.85rem;
  min-width: 0;
}

.module-summary small,
.module-summary strong,
.module-summary span {
  display: block;
}

.module-summary small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.module-summary strong {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.45rem;
  line-height: 1.05;
}

.module-summary span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.module-tabs,
.timeline-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #f7fcf9;
  padding: 0.35rem;
}

.module-tab,
.timeline-filter-button {
  min-height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  padding: 0 0.85rem;
  color: #486258;
  font-size: 0.8rem;
  font-weight: 900;
}

.module-tab.active,
.timeline-filter-button.active {
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.tab-panel {
  display: none;
  min-width: 0;
}

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

.module-detail {
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.75rem;
}

.module-detail summary {
  cursor: pointer;
  color: var(--green-dark);
  font-size: 0.86rem;
  font-weight: 950;
  list-style-position: inside;
}

.module-detail summary::marker {
  color: var(--green);
}

.module-detail[open] summary {
  margin-bottom: 0.75rem;
}

.history-audit-detail .history-table-wrap {
  margin-top: 0;
}

.user-create-detail .user-form-panel {
  max-width: none;
  border: 0;
  background: transparent;
  padding: 0.2rem 0 0;
}

body[data-view-mode="meeting"] .advanced-detail,
body[data-view-mode="meeting"] .background-detail,
body[data-view-mode="meeting"] .governance-section,
body[data-view-mode="meeting"] .infrastructure-strip,
body[data-view-mode="meeting"] .side-nav a[href="#governanca"] {
  display: none;
}

body[data-view-mode="meeting"] .dashboard-section,
body[data-view-mode="meeting"] .cockpit-section,
body[data-view-mode="meeting"] .grid-main,
body[data-view-mode="meeting"] .history-section,
body[data-view-mode="meeting"] .reports-section,
body[data-view-mode="meeting"] .alerts-section,
body[data-view-mode="meeting"] .radar-layout,
body[data-view-mode="meeting"] .listening-section,
body[data-view-mode="meeting"] .users-section,
body[data-view-mode="meeting"] .background-section {
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.cockpit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 1rem;
  margin-top: 1rem;
}

.risk-panel,
.next-action-panel,
.timeline-panel {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.risk-gauge {
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 12.5rem;
  margin: 1.15rem auto 1rem;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 74%, #e8f5ee 74% 100%);
}

.risk-gauge strong,
.risk-gauge span {
  display: block;
  grid-column: 1;
  grid-row: 1;
}

.risk-gauge strong {
  color: #ffffff;
  font-size: 3.6rem;
  font-weight: 950;
}

.risk-gauge span {
  align-self: end;
  margin-bottom: 2.1rem;
  color: rgba(255,255,255,0.84);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.risk-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.risk-tags span {
  border-radius: 999px;
  background: #fee2e2;
  padding: 0.38rem 0.65rem;
  color: #991b1b;
  font-size: 0.72rem;
  font-weight: 950;
}

.next-action-panel {
  background:
    linear-gradient(145deg, #07130f, #0b3b31 72%, #075e54);
  color: #ffffff;
}

.next-action-panel .panel-title h3,
.next-action-panel h4 {
  color: #ffffff;
}

.next-action-panel .panel-title span,
.next-action-panel p {
  color: rgba(255,255,255,0.74);
}

.next-action-panel h4 {
  margin: 1.25rem 0 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.next-action-panel p {
  margin-top: 0.75rem;
  line-height: 1.6;
}

.compact-actions {
  margin-top: 1rem;
}

.decision-timeline {
  display: grid;
  gap: 0.7rem;
  margin-top: 1rem;
}

.decision-timeline div {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.75rem;
}

.decision-timeline b {
  color: var(--green-dark);
}

.decision-timeline span {
  color: var(--muted);
  font-size: 0.86rem;
}

.background-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.background-kpi {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fcf9);
  padding: 1rem;
}

.background-kpi small,
.background-kpi strong {
  display: block;
}

.background-kpi small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.background-kpi strong {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1;
}

.background-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 1rem;
  margin-top: 1rem;
}

.regions-panel,
.lines-panel,
.campaign-panel,
.optout-panel {
  padding: 1rem;
}

.region-grid,
.line-grid,
.campaign-list,
.optout-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

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

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

.region-card,
.line-card,
.campaign-row,
.optout-row {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.85rem;
}

.region-card {
  min-height: 9.4rem;
  display: grid;
  gap: 0.65rem;
}

.region-card.critical {
  border-color: rgba(220, 38, 38, 0.28);
  background: #fff1f2;
}

.region-card.medium {
  border-color: rgba(245, 158, 11, 0.30);
  background: #fffbeb;
}

.region-card.low {
  border-color: rgba(22, 163, 74, 0.24);
  background: #f0fdf4;
}

.region-card strong,
.region-card span,
.region-card p,
.region-card footer,
.line-card strong,
.line-card span,
.line-card footer,
.campaign-row strong,
.campaign-row span,
.campaign-row small,
.optout-row strong,
.optout-row span {
  display: block;
}

.region-card strong,
.line-card strong,
.campaign-row strong,
.optout-row strong {
  color: var(--navy);
}

.region-card span,
.region-card p,
.line-card span,
.campaign-row span,
.campaign-row small,
.optout-row span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.region-card footer,
.line-card footer,
.campaign-row,
.optout-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.region-card footer b,
.campaign-row b,
.optout-row b {
  border-radius: 999px;
  background: #e5f8ec;
  padding: 0.35rem 0.6rem;
  color: var(--green-dark);
  font-size: 0.7rem;
  font-weight: 950;
  text-transform: uppercase;
}

.line-card.attention {
  border-color: rgba(245, 158, 11, 0.30);
  background: #fffbeb;
}

.line-card footer {
  margin-top: 0.75rem;
}

.line-card footer b {
  color: var(--green-dark);
  font-size: 0.82rem;
}

.line-card footer small {
  color: var(--muted);
  font-weight: 850;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.section-heading > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #e5f8ec;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-heading.compact > span {
  background: #07130f;
  color: #dcfce7;
}

.section-heading h2 {
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.15;
}

.section-heading p {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.5;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.metric-card {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #ffffff, #f7fcf9);
  padding: 1rem;
}

.metric-card small,
.metric-card span {
  display: block;
  color: var(--muted);
}

.metric-card small {
  font-weight: 850;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 2.2rem;
  line-height: 1;
}

.metric-card span {
  margin-top: 0.45rem;
  font-size: 0.86rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.crawl-panel {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(18rem, 0.9fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 94, 84, 0.05), rgba(34, 211, 238, 0.08)),
    #ffffff;
  padding: 1rem;
}

.crawl-panel small,
.crawl-panel strong,
.crawl-panel p {
  display: block;
}

.crawl-panel small {
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.crawl-panel strong {
  margin-top: 0.18rem;
  color: var(--navy);
  font-size: 1rem;
}

.crawl-panel p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.crawl-panel input {
  margin-top: 0;
}

.crawl-result {
  margin-top: 0.8rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #f8fffb;
  padding: 0.9rem;
}

.crawl-result strong,
.crawl-result span {
  display: block;
}

.crawl-result strong {
  color: var(--navy);
}

.crawl-result span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.crawl-dashboard {
  display: grid;
  gap: 1rem;
}

.crawl-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
}

.crawl-head h3,
.crawl-head p {
  margin: 0;
}

.crawl-head h3 {
  color: var(--navy);
  font-size: 1.15rem;
}

.crawl-head p {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.crawl-source {
  border-radius: 999px;
  background: #e5f8ec;
  padding: 0.45rem 0.75rem;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.crawl-kpis,
.history-kpis,
.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.crawl-kpis article,
.history-kpis article,
.report-kpis article {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
}

.crawl-kpis small,
.crawl-kpis strong,
.history-kpis small,
.history-kpis strong,
.report-kpis small,
.report-kpis strong {
  display: block;
}

.crawl-kpis small,
.history-kpis small,
.report-kpis small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.crawl-kpis strong,
.history-kpis strong,
.report-kpis strong {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.75rem;
  line-height: 1;
}

.crawl-deep-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
}

.crawl-topic-list,
.crawl-insight-list,
.crawl-source-list,
.report-topic-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.crawl-topic-list div,
.crawl-insight-list div,
.crawl-source-list div,
.report-topic-list div {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.75rem;
}

.crawl-topic-list strong,
.crawl-insight-list strong,
.crawl-source-list strong,
.report-topic-list strong {
  display: block;
  color: var(--navy);
  font-size: 0.9rem;
}

.crawl-topic-list span,
.crawl-insight-list span,
.crawl-source-list span,
.report-topic-list span {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  gap: 1rem;
  margin-top: 1rem;
}

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

.panel-title h3 {
  color: var(--navy);
  font-size: 1.05rem;
}

.panel-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.sentiment-content {
  display: grid;
  grid-template-columns: 13rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.25rem;
}

.donut {
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 68%, var(--amber) 68% 88%, var(--red) 88% 100%);
}

.donut > div {
  display: grid;
  place-items: center;
  width: 8.2rem;
  height: 8.2rem;
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 0 22px rgba(15,23,42,0.08);
}

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

.donut strong {
  font-size: 2.35rem;
  line-height: 1;
}

.donut span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.legend-list {
  display: grid;
  gap: 0.65rem;
}

.legend-list div {
  display: grid;
  grid-template-columns: 0.65rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  padding: 0.75rem;
  color: #38534a;
  font-weight: 800;
}

.dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
}

.positive {
  background: var(--green);
}

.neutral {
  background: var(--amber);
}

.negative {
  background: var(--red);
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.1rem;
  min-height: 9.2rem;
  margin-top: 1.15rem;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(229, 248, 236, 0.92), rgba(248, 255, 251, 0.96));
  padding: 1rem;
}

.word-cloud span {
  color: var(--muted);
  font-weight: 850;
}

.word-cloud .word-xl {
  color: var(--green-dark);
  font-size: 2rem;
}

.word-cloud .word-lg {
  color: var(--navy);
  font-size: 1.55rem;
}

.word-cloud .word-md {
  color: var(--teal);
  font-size: 1.25rem;
}

.word-cloud .word-sm {
  font-size: 0.95rem;
}

.signal-card {
  margin-top: 1rem;
  border-left: 4px solid var(--green);
  background: #f8fffb;
  padding: 0.85rem 1rem;
}

.signal-card b,
.signal-card p {
  display: block;
}

.signal-card b {
  color: var(--navy);
}

.signal-card p {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(21rem, 0.78fr);
  gap: 1rem;
}

label,
.control-label {
  display: block;
  margin-top: 1rem;
  color: #334155;
  font-size: 0.86rem;
  font-weight: 800;
}

textarea,
input,
select {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  border: 1px solid #cce7d7;
  border-radius: 8px;
  outline: none;
  background: #f8fffb;
  padding: 0.9rem;
  color: var(--ink);
  line-height: 1.55;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

textarea {
  resize: vertical;
}

textarea:focus,
input:focus,
select:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.control-row {
  display: grid;
  grid-template-columns: 0.8fr 0.72fr 1.25fr;
  gap: 1rem;
}

.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.segmented button {
  min-height: 2.25rem;
  border: 1px solid #d7eadf;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 0.85rem;
  color: #38534a;
  font-size: 0.82rem;
  font-weight: 850;
}

.segmented button.active {
  border-color: var(--green-dark);
  background: var(--green-dark);
  color: #ffffff;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.approval-share-panel {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px solid #b9e5d0;
  border-radius: 8px;
  background: linear-gradient(135deg, #f3fff8, #ffffff);
  padding: 0.95rem;
}

.approval-share-panel[hidden],
.custom-date-range[hidden] {
  display: none;
}

.approval-share-panel strong,
.approval-share-panel span {
  display: block;
}

.approval-share-panel strong {
  color: var(--navy);
}

.approval-share-panel span {
  margin-top: 0.25rem;
  color: var(--muted);
  line-height: 1.45;
}

.approval-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.primary-button,
.secondary-button,
.danger-button,
.table-action {
  min-height: 2.75rem;
  border-radius: 8px;
  padding: 0 1rem;
  font-weight: 900;
  transition: transform 140ms ease, opacity 140ms ease, background 140ms ease;
}

.primary-button {
  border: 0;
  background: linear-gradient(135deg, var(--green), #0f9f7a);
  color: white;
}

.secondary-button {
  border: 1px solid #cfe8dc;
  background: #ffffff;
  color: var(--green-dark);
}

.danger-button {
  width: 100%;
  margin-top: 0.85rem;
  border: 0;
  background: var(--red);
  color: white;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.table-action:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.phone-panel {
  background:
    linear-gradient(145deg, #06130f, #0b3b31);
  display: grid;
  place-items: center;
}

.phone-frame {
  max-width: 21rem;
  margin: 0 auto;
  border: 0.62rem solid #101c18;
  border-radius: 2rem;
  background: #e7f6ea;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.36);
}

.phone-speaker {
  width: 5rem;
  height: 0.35rem;
  margin: 0.55rem auto 0.35rem;
  border-radius: 999px;
  background: #26352f;
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: linear-gradient(135deg, var(--green-dark), #0f766e);
  padding: 0.85rem;
  color: white;
}

.phone-top strong,
.phone-top small {
  display: block;
}

.phone-top strong {
  font-size: 0.86rem;
}

.phone-top small {
  color: rgba(255,255,255,0.76);
  font-size: 0.72rem;
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 950;
}

.verified-dot {
  margin-left: auto;
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 950;
}

.chat-area {
  min-height: 25.5rem;
  padding: 1rem 0.75rem;
  background:
    linear-gradient(rgba(239, 250, 242, 0.92), rgba(239, 250, 242, 0.92)),
    repeating-linear-gradient(45deg, rgba(7,94,84,0.08) 0 1px, transparent 1px 16px);
}

.message-bubble {
  width: min(100%, 16.75rem);
  margin-left: auto;
  border-radius: 16px 16px 4px 16px;
  background: var(--green-soft);
  padding: 0.85rem;
  color: #12231d;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
}

.message-link-previews {
  display: grid;
  gap: 0.55rem;
  width: min(100%, 16.75rem);
  margin: 0.75rem 0 0 auto;
}

.message-link-preview {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 0.65rem;
  border: 1px solid rgba(7, 94, 84, 0.12);
  border-radius: 12px;
  background: #ffffff;
  padding: 0.58rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.message-link-thumb {
  display: grid;
  place-items: center;
  min-height: 3.75rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #22d3ee);
  color: #ffffff;
  font-weight: 950;
}

.message-link-preview strong,
.message-link-preview span,
.message-link-preview small {
  display: block;
}

.message-link-preview strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.message-link-preview span,
.message-link-preview small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.approval-ticket {
  width: min(100%, 16.75rem);
  margin: 0.75rem 0 0 auto;
  border: 1px solid rgba(7, 94, 84, 0.12);
  border-radius: 8px;
  background: rgba(255,255,255,0.86);
  padding: 0.72rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.approval-ticket strong,
.approval-ticket span,
.approval-ticket small {
  display: block;
}

.approval-ticket strong {
  color: var(--green-dark);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.approval-ticket span {
  margin-top: 0.2rem;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 900;
}

.approval-ticket small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.phone-footer {
  border-top: 1px solid #d7eadf;
  background: #f8fffb;
  padding: 0.75rem;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-align: center;
}

.history-controls,
.report-controls {
  display: grid;
  grid-template-columns: minmax(10rem, 0.3fr) minmax(10rem, 0.3fr) auto;
  gap: 0.85rem;
  align-items: end;
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 1rem;
}

.history-controls label,
.report-controls label {
  margin-top: 0;
}

.history-controls > div,
.report-controls > div {
  min-width: 0;
}

.history-controls select,
.report-controls select {
  margin-top: 0.5rem;
}

.custom-date-range {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(10rem, 0.25fr) auto minmax(10rem, 0.25fr);
  gap: 0.6rem;
  align-items: center;
  border-top: 1px solid #d8efe4;
  padding-top: 0.85rem;
}

.custom-date-range input {
  margin-top: 0;
}

.history-kpis {
  margin-top: 1rem;
}

.history-table-wrap {
  margin-top: 1rem;
}

.history-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(14rem, 0.85fr);
  gap: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 1rem;
}

.history-detail-card strong,
.history-detail-card span,
.history-detail-card b {
  display: block;
}

.history-detail-card pre {
  min-height: 8rem;
  max-height: 18rem;
  overflow: auto;
  margin: 0.6rem 0 0;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.85rem;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  white-space: pre-wrap;
}

.history-link-preview {
  margin-top: 0.55rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.7rem;
}

.history-link-preview span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.history-evidence img {
  width: min(100%, 14rem);
  margin-top: 0.6rem;
  border: 1px solid #d8efe4;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.13);
}

.empty-evidence {
  margin-top: 0.6rem;
  border: 1px dashed #b9d9c9;
  border-radius: 8px;
  padding: 0.85rem;
  color: var(--muted);
}

.report-preview {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #f8fffb;
  padding: 1rem;
}

.report-preview > strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.report-preview > span {
  color: var(--muted);
  line-height: 1.5;
}

.report-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.report-export-box {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.report-export-box b,
.report-export-box span,
.report-export-box a {
  display: block;
}

.report-export-box b {
  color: var(--navy);
}

.report-export-box span {
  margin-top: 0.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.report-dispatch-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.report-dispatch-list div,
.report-evidence-strip article {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.72rem;
}

.report-dispatch-list strong,
.report-dispatch-list span,
.report-evidence-strip strong,
.report-evidence-strip span,
.report-evidence-strip small {
  display: block;
}

.report-dispatch-list span,
.report-evidence-strip span,
.report-evidence-strip small {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.report-evidence-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.report-evidence-strip article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.report-evidence-strip img {
  width: 5.4rem;
  border: 1px solid #d8efe4;
  border-radius: 12px;
  background: #ffffff;
}

.alerts-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.alerts-summary article {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 1rem;
}

.alerts-summary small,
.alerts-summary strong,
.alerts-summary span {
  display: block;
}

.alerts-summary small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.alerts-summary strong {
  margin-top: 0.25rem;
  color: var(--navy);
  font-size: 1.05rem;
}

.alerts-summary span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.alert-message-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.alert-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.35fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.95rem;
}

.alert-card.alert-critical {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(90deg, #fff1f2, #ffffff 48%);
}

.alert-card.alert-medium {
  border-color: rgba(245, 158, 11, 0.24);
}

.alert-card strong,
.alert-card span,
.alert-card p,
.alert-card small {
  display: block;
}

.alert-card strong {
  color: var(--navy);
}

.alert-card span,
.alert-card p,
.alert-card small {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.alert-card p {
  margin-top: 0.25rem;
}

.alert-card .alert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.alert-card .alert-actions {
  display: grid;
  justify-items: end;
  gap: 0.45rem;
}

.alert-card .table-action {
  min-height: 2.45rem;
}

.radar-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.table-wrap {
  margin-top: 1rem;
  overflow: auto;
  border: 1px solid #d8efe4;
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  background: white;
}

th,
td {
  border-bottom: 1px solid #ecf5ef;
  padding: 0.9rem;
  text-align: left;
}

th {
  background: #f5fbf7;
  color: #486258;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

td {
  color: #334155;
  font-size: 0.9rem;
  vertical-align: top;
}

td:first-child {
  color: var(--ink);
  font-weight: 850;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.badge,
.status-chip,
.mini-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.critical {
  background: #fee2e2;
  color: #991b1b;
}

.medium {
  background: #fef3c7;
  color: #92400e;
}

.low {
  background: #dcfce7;
  color: #166534;
}

.status-chip {
  background: #e2e8f0;
  color: #334155;
}

.status-chip.forwarded {
  background: #dcfce7;
  color: #166534;
}

.table-action {
  min-height: 2.15rem;
  border: 1px solid #d7eadf;
  background: #ffffff;
  color: var(--green-dark);
  font-size: 0.78rem;
}

.analysis-result {
  margin-top: 1rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #f8fffb;
  padding: 1rem;
}

.analysis-result span {
  display: inline-flex;
  border-radius: 999px;
  background: #e2e8f0;
  padding: 0.35rem 0.7rem;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analysis-result p {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.analysis-result code {
  display: block;
  margin-top: 0.8rem;
  border-radius: 8px;
  background: #07130f;
  padding: 0.7rem;
  color: #dcfce7;
  font-size: 0.75rem;
  line-height: 1.45;
  white-space: normal;
}

.analysis-result.negative span {
  background: #fee2e2;
  color: #991b1b;
}

.analysis-result.positive span {
  background: #dcfce7;
  color: #166534;
}

.analysis-result.neutral span {
  background: #fef3c7;
  color: #92400e;
}

.listening-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.channel-panel,
.topics-panel {
  padding: 1rem;
}

.channel-list,
.alert-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.alert-list {
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.15rem;
}

.channel-row,
.alert-item {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.85rem;
}

.channel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.channel-row strong,
.channel-row span,
.alert-item strong,
.alert-item span,
.alert-item p {
  display: block;
}

.channel-row strong,
.alert-item strong {
  color: var(--navy);
}

.channel-row span,
.alert-item span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.channel-meta {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
}

.channel-meta small {
  color: var(--green-dark);
  font-weight: 900;
}

.mini-badge.positive {
  background: #dcfce7;
  color: #166534;
}

.mini-badge.neutral {
  background: #fef3c7;
  color: #92400e;
}

.mini-badge.negative {
  background: #fee2e2;
  color: #991b1b;
}

.alert-item p {
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.5;
}

.topic-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.topic-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  border: 1px solid #d8efe4;
  border-radius: 999px;
  background: #f8fffb;
  padding: 0 0.75rem;
  color: var(--green-dark);
  font-size: 0.8rem;
  font-weight: 850;
}

.users-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.user-form-panel,
.user-list-panel {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.user-form-panel {
  max-width: 34rem;
}

.admin-card-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.admin-card-title h3,
.admin-card-title p {
  display: block;
  margin: 0;
}

.admin-card-title h3 {
  color: var(--navy);
  font-size: 1.02rem;
}

.admin-card-title p {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 8px;
  background: #e5f8ec;
  color: var(--green-dark);
}

.admin-icon::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  -webkit-mask: var(--icon-mask) center / contain no-repeat;
  mask: var(--icon-mask) center / contain no-repeat;
}

.user-form-panel .primary-button {
  width: 100%;
  margin-top: 1rem;
}

.admin-feedback {
  margin-top: 0.85rem;
  border-radius: 8px;
  background: #dcfce7;
  padding: 0.75rem;
  color: #166534;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.admin-feedback.error {
  background: #fee2e2;
  color: #991b1b;
}

.users-table-wrap {
  margin-top: 1rem;
  overflow: auto;
  border: 1px solid #d8efe4;
  border-radius: 8px;
}

.users-table {
  min-width: 54rem;
  table-layout: auto;
  font-size: 0.84rem;
}

.users-table td:first-child {
  font-weight: 850;
}

.users-table th,
.users-table td {
  padding: 0.78rem;
}

.users-table th:last-child,
.users-table td:last-child {
  min-width: 8rem;
  text-align: right;
}

.users-table td:nth-child(2) {
  word-break: break-word;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  background: #e5f8ec;
  padding: 0.35rem 0.7rem;
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(7, 19, 15, 0.46);
  padding: 1rem;
}

.admin-modal[hidden] {
  display: none;
}

.admin-modal-card {
  width: min(100%, 32rem);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 1.2rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.admin-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.admin-modal-head small,
.admin-modal-head h2 {
  display: block;
}

.admin-modal-head small {
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.admin-modal-head h2 {
  margin-top: 0.2rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.15rem;
}

.infrastructure-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.infrastructure-strip div {
  border-right: 1px solid #e4f1eb;
  padding: 1rem;
}

.infrastructure-strip div:last-child {
  border-right: 0;
}

.infrastructure-strip strong,
.infrastructure-strip span {
  display: block;
}

.infrastructure-strip strong {
  color: var(--navy);
}

.infrastructure-strip span {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.helpdesk-widget {
  position: fixed;
  right: 1.35rem;
  bottom: 1.35rem;
  z-index: 50;
  display: grid;
  justify-items: end;
  gap: 0.8rem;
}

.helpdesk-panel {
  width: min(calc(100vw - 2rem), 26rem);
  max-height: min(80vh, 43rem);
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

.helpdesk-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.helpdesk-head small,
.helpdesk-head h2,
.helpdesk-head p {
  display: block;
}

.helpdesk-head small {
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

.helpdesk-head h2 {
  margin-top: 0.15rem;
  color: var(--navy);
  font-size: 1rem;
}

.helpdesk-head p {
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 999px;
  background: #eef6f2;
  color: #355047;
  font-size: 1.3rem;
  line-height: 1;
}

.helpdesk-form label {
  margin-top: 0.8rem;
}

.upload-card {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
  border: 2px dashed #cfe8dc;
  border-radius: 8px;
  background: #f8fffb;
  padding: 0.85rem;
  cursor: pointer;
}

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

.upload-card strong {
  color: var(--navy);
  font-size: 0.88rem;
}

.upload-card small {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.upload-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 8px;
  background: #ffffff;
  color: var(--green-dark);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.upload-icon::before {
  content: "";
  width: 1.15rem;
  height: 1.15rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8 12 3 7 8'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='M17 8 12 3 7 8'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E") center / contain no-repeat;
}

.support-tip,
.support-feedback {
  margin-top: 0.7rem;
  border-radius: 8px;
  padding: 0.72rem;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.45;
}

.support-tip {
  background: #ecfdf5;
  color: var(--green-dark);
}

.support-feedback {
  background: #dcfce7;
  color: #166534;
}

.helpdesk-fab {
  display: inline-grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(7, 94, 84, 0.30);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.helpdesk-fab:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 54px rgba(7, 94, 84, 0.36);
}

.helpdesk-fab span {
  width: 1.42rem;
  height: 1.42rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12a8 8 0 0 1 16 0'/%3E%3Cpath d='M5 12v4a3 3 0 0 0 3 3h1v-7H5Z'/%3E%3Cpath d='M19 12v4a3 3 0 0 1-3 3h-1v-7h4Z'/%3E%3Cpath d='M12 19v2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 12a8 8 0 0 1 16 0'/%3E%3Cpath d='M5 12v4a3 3 0 0 0 3 3h1v-7H5Z'/%3E%3Cpath d='M19 12v4a3 3 0 0 1-3 3h-1v-7h4Z'/%3E%3Cpath d='M12 19v2'/%3E%3C/svg%3E") center / contain no-repeat;
}

.governance-grid,
.governance-deep-grid,
.analysis-workbench,
.guided-grid,
.analysis-fields,
.support-grid {
  display: grid;
  gap: 1rem;
}

.governance-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1rem;
}

.governance-deep-grid {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  margin-top: 1rem;
}

.demo-card,
.package-card,
.maturity-card,
.status-card,
.qa-card,
.audit-card {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #ffffff;
  padding: 1rem;
}

.demo-story,
.package-matrix,
.maturity-grid,
.status-grid,
.qa-progress-list,
.audit-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.demo-story strong,
.demo-story span,
.demo-story b,
.demo-story p {
  display: block;
}

.demo-story strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.demo-story span,
.demo-story p {
  color: var(--muted);
  line-height: 1.45;
}

.demo-story div,
.package-row,
.maturity-grid article,
.status-row,
.qa-progress-list div,
.audit-row,
.empty-mini {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.75rem;
}

.package-row,
.status-row,
.audit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.6rem;
  align-items: center;
}

.status-row,
.audit-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.package-row span,
.audit-row span,
.empty-mini {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.audit-row strong,
.audit-row span {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.package-row b,
.status-row span {
  border-radius: 999px;
  background: #eef4f1;
  padding: 0.28rem 0.5rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.package-row b.enabled {
  background: #e5f8ec;
  color: var(--green-dark);
}

.package-row b.premium {
  background: #dff9ff;
  color: #036579;
}

.status-row.ok span,
.status-row.operacional span {
  background: #e5f8ec;
  color: var(--green-dark);
}

.status-row.degradado span,
.status-row.fallback span,
.status-row.demo span {
  background: #fff7ed;
  color: #9a3412;
}

.maturity-grid article div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--navy);
}

.maturity-grid meter {
  width: 100%;
  height: 0.6rem;
  margin-top: 0.6rem;
  accent-color: var(--green);
}

.maturity-grid span {
  display: block;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.qa-progress-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qa-progress-list div strong,
.qa-progress-list div span {
  display: block;
}

.qa-progress-list div strong {
  color: var(--green-dark);
  font-size: 1.8rem;
  line-height: 1;
}

.qa-progress-list div span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.analysis-workbench {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 0.7fr);
  align-items: stretch;
  margin-top: 1rem;
}

.analysis-fields,
.guided-grid,
.support-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guided-grid {
  margin-top: 0.6rem;
}

.region-hint {
  margin-top: 0.75rem;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #f3fff8;
  padding: 0.7rem 0.85rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.region-hint strong {
  color: var(--green-dark);
}

.analysis-result {
  display: grid;
  align-content: center;
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 1rem;
}

.analysis-result span {
  color: var(--navy);
  font-weight: 950;
  text-transform: uppercase;
}

.analysis-result p,
.analysis-result code {
  margin-top: 0.5rem;
  color: var(--muted);
  line-height: 1.5;
}

.analysis-result code {
  display: block;
  overflow-wrap: anywhere;
  border-radius: 8px;
  background: #eef7f2;
  padding: 0.7rem;
  font-size: 0.78rem;
}

.history-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.history-copy-actions .table-action,
.history-copy-actions a.table-action {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  text-decoration: none;
}

.region-comparison-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.region-comparison-strip article {
  border: 1px solid #d8efe4;
  border-radius: 8px;
  background: #fbfffd;
  padding: 0.75rem;
}

.region-comparison-strip strong,
.region-comparison-strip span {
  display: block;
}

.region-comparison-strip strong {
  color: var(--navy);
}

.region-comparison-strip span {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.85rem;
}

.report-download-error {
  display: block;
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
  padding: 0.65rem 0.75rem;
  color: #991b1b;
  font-size: 0.82rem;
  font-weight: 850;
}

@media print {
  .sidebar,
  .topbar,
  .helpdesk-widget,
  .side-nav,
  .history-controls,
  .report-controls,
  .report-actions {
    display: none !important;
  }

  .app-shell,
  .workspace {
    display: block;
    width: 100%;
    padding: 0;
  }

  body {
    background: #ffffff;
  }

  .reports-section {
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .side-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .topbar,
  .cockpit-grid,
  .grid-main,
  .dashboard-grid,
  .crawl-panel,
  .crawl-deep-grid,
  .history-controls,
  .report-controls,
  .approval-link-row,
  .custom-date-range,
  .history-detail-card,
  .report-preview-grid,
  .report-evidence-strip,
  .report-evidence-strip article,
  .meeting-assistant-head,
  .assistant-workbench,
  .governance-grid,
  .governance-deep-grid,
  .analysis-workbench,
  .guided-grid,
  .analysis-fields,
  .support-grid,
  .region-comparison-strip,
  .background-grid,
  .users-layout,
  .radar-layout,
  .listening-grid,
  .infrastructure-strip {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .module-summary,
  .background-kpis,
  .alerts-summary,
  .crawl-kpis,
  .history-kpis,
  .report-kpis,
  .region-grid,
  .line-grid,
  .qa-progress-list {
    grid-template-columns: 1fr 1fr;
  }

  .alert-card {
    grid-template-columns: 1fr;
  }

  .alert-card .alert-actions {
    justify-items: start;
  }

  .infrastructure-strip div {
    border-right: 0;
    border-bottom: 1px solid #e4f1eb;
  }

  .infrastructure-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .workspace,
  .sidebar {
    padding: 0.9rem;
    width: 100%;
    max-width: 100vw;
  }

  h1 {
    font-size: 2.1rem;
  }

  .control-row,
  .sentiment-content {
    grid-template-columns: 1fr;
  }

  .metric-grid,
  .background-kpis,
  .alerts-summary,
  .crawl-kpis,
  .history-kpis,
  .report-kpis,
  .region-grid,
  .line-grid,
  .qa-progress-list,
  .side-nav {
    grid-template-columns: 1fr;
  }

  .phone-frame,
  .donut {
    max-width: 100%;
  }

  .topbar,
  .cockpit-section,
  .dashboard-section,
  .meeting-assistant-section,
  .grid-main,
  .history-section,
  .reports-section,
  .alerts-section,
  .radar-layout,
  .listening-section,
  .users-section,
  .background-section,
  .governance-section,
  .infrastructure-strip {
    width: 100%;
    max-width: calc(100vw - 1.8rem);
  }

  .meeting-assistant-section {
    padding: 1rem;
  }

  .meeting-assistant-head {
    display: grid;
  }

  .assistant-provider-badge {
    width: fit-content;
  }

  .assistant-quick-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.1rem;
    scrollbar-width: thin;
  }

  .assistant-chip {
    flex: 0 0 auto;
  }

  .topbar {
    padding: 1rem;
  }

  .topbar p {
    font-size: 0.88rem;
    line-height: 1.5;
  }

  .side-nav {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.2rem;
    scrollbar-width: thin;
  }

  .side-nav a {
    flex: 0 0 auto;
    min-height: 2.45rem;
    white-space: nowrap;
  }

  .table-wrap,
  .users-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  table,
  .users-table {
    min-width: 0 !important;
    table-layout: fixed;
  }

  th,
  td,
  .users-table th,
  .users-table td {
    padding: 0.55rem;
    font-size: 0.72rem;
    overflow-wrap: anywhere;
  }

  .table-action {
    min-height: 2rem;
    padding: 0 0.55rem;
    font-size: 0.7rem;
  }

  .module-tabs,
  .timeline-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .module-tab,
  .timeline-filter-button {
    flex: 0 0 auto;
  }

  .table-wrap,
  .users-table-wrap {
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .table-wrap table,
  .users-table {
    display: block;
    background: transparent;
  }

  .table-wrap thead,
  .users-table thead {
    display: none;
  }

  .table-wrap tbody,
  .table-wrap tr,
  .table-wrap td,
  .users-table tbody,
  .users-table tr,
  .users-table td {
    display: block;
    width: 100%;
  }

  .table-wrap tr,
  .users-table tr {
    margin-bottom: 0.75rem;
    overflow: hidden;
    border: 1px solid #d8efe4;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  }

  .table-wrap td,
  .users-table td {
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 0.7rem;
    border-bottom: 1px solid #edf6f0;
    font-size: 0.78rem;
    min-width: 0;
    text-align: left;
  }

  .table-wrap td::before,
  .users-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 950;
    text-transform: uppercase;
  }

  .table-wrap td:last-child,
  .users-table td:last-child {
    border-bottom: 0;
  }

  .history-detail-row td {
    display: block;
    padding: 0;
  }

  .history-detail-row td::before {
    display: none;
  }

  .history-detail-card {
    border: 0;
    border-radius: 0;
  }

  .hero-illustration,
  .hero-photo {
    min-height: 9.5rem;
  }

  .hero-photo img {
    width: 112%;
    height: 10.5rem;
    margin: -0.4rem -1.4rem -1.1rem -0.6rem;
  }

  .illustration-phone {
    width: 7.8rem;
    height: 10.6rem;
  }

  .illustration-card {
    min-width: 6.6rem;
  }
}

@media (max-width: 520px) {
  .hero-badges,
  .action-row {
    justify-content: stretch;
  }

  .hero-badges > *,
  .action-row > * {
    flex: 1 1 auto;
    justify-content: center;
  }

  .channel-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .channel-meta {
    justify-items: start;
  }
}
