:root {
  --primary-color: #071a33;
  --bg-color: #f6f7f9;
  --surface-color: #ffffff;
  --text-color: #172033;
  --muted-color: #667085;
  --accent-color: #b9975b;
  --button-radius: 6px;
  --card-radius: 8px;
  --animation-speed: 0.2s;
  --font-pattern: executivo;
  --navy: var(--primary-color);
  --navy-2: #10253f;
  --gold: var(--accent-color);
  --ink: var(--text-color);
  --muted: var(--muted-color);
  --line: #d8dee8;
  --paper: var(--bg-color);
  --white: var(--surface-color);
  --danger: #b42318;
  --success: #027a48;
  --warn: #b54708;
  --surface-subtle: #fbfcfe;
  --surface-elevated: #ffffff;
  --surface-muted: #f1f4f8;
  --focus-ring: rgba(185, 151, 91, 0.42);
  --shadow-soft: 0 14px 34px rgba(7, 26, 51, 0.07);
  --shadow-tight: 0 8px 20px rgba(7, 26, 51, 0.06);
  --danger-soft: #fff1f0;
  --success-soft: #ecfdf3;
  --warn-soft: #fff8e8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.elite-setup-active {
  overflow: hidden;
}

body.daily-sentiment-active {
  overflow: hidden;
}

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

button:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button,
.button {
  min-height: 38px;
  border: 1px solid var(--navy);
  border-radius: var(--button-radius);
  background: var(--navy);
  color: var(--white);
  padding: 0 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background var(--animation-speed) ease, border-color var(--animation-speed) ease, transform var(--animation-speed) ease;
}

button:hover,
.button:hover {
  background: var(--navy-2);
}

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

button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: var(--white);
}

.danger-outline {
  border-color: var(--danger);
  color: var(--danger);
}

.secondary {
  background: var(--white);
  color: var(--navy);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}

.sidebar {
  background: var(--navy);
  color: var(--white);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.brand-main {
  font-size: 18px;
  font-weight: 740;
  line-height: 1.1;
}

.brand-sub {
  margin-top: 8px;
  color: #d7c49e;
  font-size: 12px;
  text-transform: uppercase;
}

.logged-user {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.05);
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  cursor: pointer;
  overflow: visible;
}

.user-summary {
  min-width: 0;
  overflow: hidden;
}

.logged-user:hover,
.logged-user.open {
  background: rgba(255, 255, 255, 0.08);
}

.logged-user:focus-visible {
  outline: 2px solid #d7c49e;
  outline-offset: 3px;
}

.logged-user span {
  display: block;
  color: #d7c49e;
  font-size: 11px;
  text-transform: uppercase;
}

.logged-user strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 13px;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-photo {
  width: 54px;
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #d7c49e;
  color: var(--navy);
  display: grid;
  place-items: center;
  font-weight: 820;
  font-size: 15px;
  position: relative;
  overflow: hidden;
}

.logged-user time {
  display: block;
  margin-top: 6px;
  color: #c5ccd8;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sidebar-sentiment-tag {
  width: fit-content;
  max-width: 100%;
  display: inline-flex;
  margin-top: 8px;
  border: 1px solid rgba(215, 196, 158, 0.55);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(215, 196, 158, 0.13);
  color: #fff4d7;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.sidebar-sentiment-tag.empty {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #c5ccd8;
}

.profile-photo > img:not(.profile-frame-image) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
  z-index: 1;
}

body.daily-archetype-framed .logged-user {
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}

body.daily-archetype-framed .profile-photo {
  width: 78px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

body.daily-archetype-framed .profile-photo > img:not(.profile-frame-image),
body.daily-archetype-framed .daily-sentiment-photo > img:not(.profile-frame-image) {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  z-index: 1;
  border-radius: 8px;
  object-fit: cover;
}

body.daily-archetype-framed .profile-photo::after,
body.daily-archetype-framed .daily-sentiment-photo::after {
  content: none;
  display: none;
}

body.daily-archetype-framed .profile-frame-image {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  z-index: 10;
  display: block;
  object-fit: contain;
  pointer-events: none;
  border-radius: 0;
  filter: drop-shadow(0 0 8px rgba(215, 196, 158, 0.42));
}

body.daily-archetype-framed .daily-sentiment-photo {
  width: 150px;
  height: 150px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}

body.daily-archetype-framed .daily-sentiment-photo > img:not(.profile-frame-image) {
  border-radius: 12px;
}

body[data-daily-archetype="coruja"]:not(.daily-archetype-framed) .profile-photo {
  border-color: #d7c49e;
  box-shadow: 0 0 0 3px rgba(57, 36, 95, 0.95), 0 0 18px rgba(215, 196, 158, 0.42);
}

body[data-daily-archetype="lobo"]:not(.daily-archetype-framed) .profile-photo {
  border-color: #d8e2ee;
  box-shadow: 0 0 0 3px rgba(157, 215, 255, 0.8), 0 0 18px rgba(216, 226, 238, 0.38);
}

body[data-daily-archetype="leao"]:not(.daily-archetype-framed) .profile-photo {
  border-color: #f6d36b;
  box-shadow: 0 0 0 3px rgba(244, 124, 50, 0.9), 0 0 20px rgba(246, 211, 107, 0.44);
}

body[data-daily-archetype="camaleao"]:not(.daily-archetype-framed) .profile-photo {
  border-color: transparent;
  background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(135deg, #7c3aed, #22d3ee, #f6d36b);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  box-shadow: 0 0 20px rgba(34, 211, 238, 0.34);
}

.user-shortcuts img {
  width: 18px;
  height: 18px;
  display: block;
}

.user-summary {
  min-width: 0;
}

.user-menu {
  display: none;
  position: absolute;
  z-index: 30;
  left: calc(100% + 8px);
  top: 0;
  width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: #10253f;
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.28);
}

.logged-user.open .user-menu {
  display: grid;
  gap: 4px;
}

.user-menu a {
  color: #d7dce5;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 12px;
}

.user-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.user-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.user-shortcuts span {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #d7c49e;
  font-size: 11px;
  font-weight: 760;
  background: rgba(255, 255, 255, 0.05);
}

.nav {
  display: grid;
  gap: 8px;
}

.operationally-hidden {
  display: none !important;
}

.nav a,
.hub-toggle {
  color: #d7dce5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.25;
}

.hub-toggle {
  width: 100%;
  min-height: 0;
  border: 0;
  background: transparent;
  text-align: left;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  white-space: normal;
}

.hub-toggle::after {
  content: "▾";
  margin-left: auto;
  color: #d7c49e;
  font-size: 10px;
  transition: transform 0.18s ease;
}

.hub-nav.open .hub-toggle::after {
  transform: rotate(180deg);
}

.nav a.active,
.nav a:hover,
.hub-toggle:hover,
.hub-nav.open .hub-toggle {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.hub-nav {
  position: relative;
}

.hub-menu {
  display: none;
  position: absolute;
  z-index: 20;
  left: calc(100% + 8px);
  top: 0;
  min-width: 260px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 8px;
  background: #10253f;
  box-shadow: 0 18px 40px rgba(7, 26, 51, 0.28);
}

.hub-nav.open .hub-menu {
  display: grid;
  gap: 6px;
}

.hub-menu a,
.hub-menu span {
  display: block;
  color: #d7dce5;
  font-size: 12px;
  line-height: 1.35;
}

.hub-menu span {
  padding: 8px 10px;
  color: #d7c49e;
}

.activity-log-page {
  max-height: 70vh;
  overflow: auto;
}

.refresh-clock {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.92rem;
}

.refresh-clock span:first-child {
  color: var(--navy);
  font-weight: 700;
}

.sidebar-log {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 12px;
}

.sidebar-log summary {
  cursor: pointer;
  color: #d7c49e;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.sidebar-log-list {
  max-height: 280px;
  overflow: auto;
  margin-top: 10px;
}

.sidebar-log-list .mini-item {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-log-list .mini-item strong {
  color: var(--white);
}

.sidebar-log-list .mini-item span,
.sidebar-log-list .muted {
  color: #c5ccd8;
}

.content {
  padding: 28px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 760;
}

.breadcrumb-nav a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  color: #98a2b3;
}

.api-notice {
  border: 1px solid #e5d5b4;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 10px 12px;
  font-size: 13px;
}

.topbar,
.panel,
.empty {
  background: var(--surface-elevated);
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  box-shadow: var(--shadow-tight);
}

.topbar {
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.context-panel {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(90deg, rgba(185, 151, 91, 0.08), rgba(255, 255, 255, 0) 38%),
    var(--surface-elevated);
  border-left: 3px solid rgba(185, 151, 91, 0.58);
}

.guidance-panel {
  align-items: flex-start;
}

.page-guidance-copy {
  margin: 0;
  max-width: 1040px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.context-actions {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--gold);
  font-weight: 760;
  font-size: 12px;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.1;
  color: var(--navy);
}

h2 {
  margin-bottom: 0;
  font-size: 17px;
  color: var(--navy);
}

.topbar-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.muted {
  color: var(--muted);
  margin: 5px 0 0;
}

.client-control {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.client-control label,
.report-control label {
  font-size: 12px;
  color: var(--muted);
}

.report-control {
  display: grid;
  gap: 5px;
  min-width: 230px;
}

.report-control .muted {
  max-width: 280px;
  font-size: 12px;
}

select,
input[type="file"],
input[type="text"],
input[type="date"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  padding: 8px 10px;
  width: 100%;
}

.home-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
}

.home-main {
  min-height: 520px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(28px, 5vw, 54px);
  background:
    linear-gradient(145deg, rgba(7, 26, 51, 0.045), rgba(185, 151, 91, 0.055)),
    var(--surface-elevated);
}

.home-main h2 {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.08;
}

.home-main .muted {
  max-width: 620px;
  line-height: 1.55;
}

.home-prompt-shell {
  width: min(720px, 100%);
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-subtle);
  padding: 14px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.home-prompt-text {
  min-height: 72px;
  color: var(--muted);
  padding: 8px 4px;
  display: grid;
  gap: 6px;
}

.home-prompt-text strong {
  color: var(--navy);
  font-size: 15px;
}

.home-prompt-text span {
  line-height: 1.45;
}

.home-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-prompt-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(7, 26, 51, 0.14);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 820;
  text-decoration: none;
  transition: border-color var(--animation-speed) ease, background var(--animation-speed) ease, transform var(--animation-speed) ease;
}

.home-prompt-actions a:hover {
  border-color: rgba(185, 151, 91, 0.76);
  background: var(--warn-soft);
  transform: translateY(-1px);
}

.home-prompt-actions span,
.home-widget span {
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  color: #7a5a22;
  background: #fff8e8;
  padding: 4px 9px;
  font-size: 12px;
}

.home-widgets {
  display: grid;
  gap: 12px;
  align-content: start;
}

.home-widget {
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-elevated);
  padding: 16px;
  box-shadow: var(--shadow-tight);
}

.home-widget strong {
  display: block;
  margin-top: 16px;
  color: var(--navy);
}

.home-widget p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.home-widget-empty {
  border-style: dashed;
  background: rgba(7, 26, 51, 0.04);
}

.arc-flow-card.is-vetoed {
  border-color: rgba(201, 57, 57, 0.52);
  box-shadow: 0 0 0 1px rgba(201, 57, 57, 0.18);
}

.arc-flow-veto-note {
  margin: 8px 0;
  color: #9a1f1f;
  font-weight: 800;
}

select[multiple] {
  min-height: 128px;
  padding: 8px;
}

select[multiple] option {
  padding: 7px 8px;
  border-radius: 4px;
}

textarea {
  resize: vertical;
  min-height: 82px;
}

.client-grid {
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  margin-top: 0;
}

.client-full {
  grid-column: 1 / -1;
}

.compact-kpis {
  margin-top: 12px;
}

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

.client-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.client-form .wide {
  grid-column: 1 / -1;
}

.option-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
}

.option-field.wide {
  grid-column: 1 / -1;
}

.option-add-button {
  min-height: 38px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--ink) !important;
}

.checkbox-label input {
  width: auto;
}

.client-strategy-fields {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fbfcfe;
}

.client-strategy-fields summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 760;
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.strategy-grid .wide {
  grid-column: 1 / -1;
}

.stack-form {
  display: grid;
  gap: 12px;
}

.stack-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.stack-form .wide {
  width: 100%;
}

.compact-head {
  margin-bottom: 12px;
}

.command-block {
  display: grid;
  gap: 12px;
  border: 1px solid #e5d5b4;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #fffdf7;
  padding: 14px;
}

.command-layout {
  align-items: start;
}

.command-form-card {
  border-left: 4px solid var(--gold);
}

.command-guide {
  display: grid;
  gap: 10px;
}

.command-guide div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.command-guide strong {
  color: var(--navy);
}

.command-guide p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.form-divider {
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.form-divider strong {
  color: var(--navy);
}

.form-divider p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.compact-color-grid {
  gap: 10px;
}

.compact-color-grid label {
  align-content: start;
}

.footer-pdf-selector {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  margin-bottom: 14px;
}

.data-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.data-settings-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.data-review-check {
  grid-column: 1 / -1;
  border: 1px solid #e5d5b4;
  border-radius: 8px;
  background: #fff8e8;
  padding: 10px 12px;
}

.data-suggestions {
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.data-suggestions strong {
  color: var(--navy);
}

.data-suggestions p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer-select-all {
  justify-content: flex-start;
  font-weight: 760;
}

.footer-pdf-list {
  display: grid;
  gap: 7px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.footer-pdf-option {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  background: var(--white);
  padding: 8px 10px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-editor {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-preview {
  width: 96px;
  min-height: 128px;
  border-color: var(--line);
}

.no-lab-shell {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.no-lab-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  background:
    linear-gradient(135deg, rgba(7, 26, 51, 0.98), rgba(16, 37, 63, 0.98));
  color: var(--white);
  overflow: hidden;
}

.no-lab-hero h2 {
  color: var(--white);
  font-size: 28px;
  margin-bottom: 12px;
}

.no-lab-hero p {
  color: #d7dce5;
  line-height: 1.55;
}

.no-lab-hero-copy {
  display: grid;
  align-content: center;
}

.no-lab-loop {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.no-lab-loop span {
  border: 1px solid rgba(215, 196, 158, 0.42);
  border-radius: 999px;
  color: #f3e7c8;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}

.no-lab-pulse {
  border: 1px solid rgba(215, 196, 158, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
  display: grid;
  align-content: center;
  gap: 8px;
}

.no-lab-pulse span,
.no-lab-card span,
.lab-challenge span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.no-lab-pulse strong {
  color: var(--white);
  font-size: 18px;
}

.no-lab-grid,
.no-lab-challenges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.no-lab-card,
.lab-challenge {
  min-height: 160px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.no-lab-card p,
.lab-challenge p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.lab-challenge strong {
  color: var(--navy);
  font-size: 17px;
}

.no-lab-values {
  display: grid;
  gap: 8px;
}

.no-lab-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.no-lab-value {
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
}

.no-lab-value strong {
  color: var(--gold);
  font-size: 22px;
  line-height: 1;
}

.no-lab-value p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.no-lab-game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.no-lab-arena {
  min-height: 280px;
  background: #071a33;
  color: var(--white);
  display: grid;
  align-content: space-between;
  gap: 24px;
  overflow: hidden;
}

.no-lab-arena h2 {
  color: var(--white);
  max-width: 780px;
  font-size: 30px;
  line-height: 1.1;
}

.no-lab-arena-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.no-lab-board {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.no-lab-aura {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 22px;
  align-items: center;
  border: 1px solid rgba(215, 196, 158, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 18px;
}

.no-lab-aura-copy {
  display: grid;
  gap: 8px;
}

.no-lab-aura-copy span,
.no-lab-efficiency span,
.collective-focus small,
.no-lab-focus-summary span {
  color: #d7c49e;
  font-size: 12px;
  font-weight: 780;
  text-transform: uppercase;
}

.no-lab-aura-copy strong {
  color: var(--white);
  font-size: 30px;
  line-height: 1;
}

.no-lab-aura-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.45;
}

.no-lab-aura-visual {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.aura-ring {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(246, 211, 107, 0.55);
  box-shadow: inset 0 0 0 9px rgba(246, 211, 107, 0.08), 0 0 20px rgba(246, 211, 107, 0.18);
}

.aura-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.aura-track span {
  display: block;
  width: var(--aura-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #9f7f42, #f6d36b);
  transition: width 480ms ease, box-shadow 480ms ease;
}

.aura-maximo .aura-track span,
.aura-unlocked .aura-ring {
  box-shadow: 0 0 26px rgba(246, 211, 107, 0.42);
}

.aura-unlocked .no-lab-arena {
  animation: auraUnlock 1100ms ease both;
}

@keyframes auraUnlock {
  0% { box-shadow: 0 0 0 rgba(246, 211, 107, 0); }
  45% { box-shadow: 0 0 42px rgba(246, 211, 107, 0.22); }
  100% { box-shadow: 0 0 18px rgba(246, 211, 107, 0.10); }
}

.no-lab-board::before {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  top: 50%;
  height: 2px;
  background: rgba(215, 196, 158, 0.48);
}

.no-lab-node {
  position: relative;
  z-index: 1;
  min-height: 118px;
  border: 1px solid rgba(215, 196, 158, 0.36);
  background: rgba(255, 255, 255, 0.08);
  color: #f3e7c8;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  text-align: center;
  white-space: normal;
}

.no-lab-node span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 196, 158, 0.64);
  color: #f3e7c8;
  font-weight: 820;
  font-size: 12px;
}

.no-lab-node strong {
  color: var(--white);
  font-size: 13px;
}

.no-lab-node.active {
  background: #f6d36b;
  border-color: #f6d36b;
  color: var(--navy);
  box-shadow: 0 14px 34px rgba(246, 211, 107, 0.24);
}

.no-lab-node.active span,
.no-lab-node.active strong {
  color: var(--navy);
}

.no-lab-scoreboard {
  display: grid;
  gap: 12px;
}

.no-lab-collective-panel {
  align-content: stretch;
}

.no-lab-efficiency {
  min-height: 210px;
  display: grid;
  align-content: start;
  gap: 10px;
  border-color: rgba(185, 151, 91, 0.34);
  transition: border-color 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.no-lab-efficiency strong {
  color: var(--navy);
  font-size: 22px;
  line-height: 1.05;
}

.no-lab-efficiency p,
.collective-focus p,
.no-lab-focus-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.no-lab-efficiency.focus-updated {
  border-color: #f6d36b;
  background: #fffaf0;
  animation: collectivePulse 1800ms ease-in-out infinite;
}

@keyframes collectivePulse {
  0%, 100% { box-shadow: 0 0 0 rgba(246, 211, 107, 0.08); }
  50% { box-shadow: 0 0 28px rgba(246, 211, 107, 0.24); }
}

.collective-focus {
  display: grid;
  gap: 7px;
  border-top: 1px solid var(--line);
  margin-top: 6px;
  padding-top: 12px;
}

.no-lab-score {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.no-lab-score span,
.mission-card span,
.no-lab-notice span,
.no-lab-insight span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.no-lab-score strong {
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
}

.no-lab-score p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.no-lab-mainplay {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 12px;
}

.no-lab-card-active {
  border-left: 4px solid var(--gold);
}

.mission-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.mission-card div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.mission-card p {
  margin: 8px 0 0;
  color: var(--ink);
  line-height: 1.45;
}

.no-lab-proof {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.no-lab-sidequest {
  display: grid;
  gap: 12px;
  align-content: start;
}

.no-lab-card-picks {
  display: grid;
  gap: 8px;
}

.no-lab-card-picks button {
  justify-content: flex-start;
}

.no-lab-notice {
  border-color: #e5d5b4;
  background: #fff8e8;
}

.no-lab-notice p {
  margin: 8px 0 0;
  color: #7a5a22;
  line-height: 1.45;
}

.no-lab-bottom {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 12px;
}

.no-lab-insights {
  display: grid;
  gap: 8px;
}

.no-lab-insight {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
}

.no-lab-insight strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
}

.no-lab-insight p {
  margin: 6px 0 0;
  color: var(--ink);
  line-height: 1.4;
}

.no-lab-command-peek details {
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.no-lab-focus-summary {
  display: grid;
  gap: 7px;
  border: 1px solid #e5d5b4;
  border-radius: 8px;
  background: #fff8e8;
  margin-top: 12px;
  padding: 12px;
}

.no-lab-command-peek summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 760;
}

.no-lab-mini-values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.no-lab-mini-values span {
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 760;
}

.nolab-command-map {
  position: relative;
  min-height: calc(100vh - 150px);
  overflow: hidden;
  border-radius: 10px;
  background: #071a33;
  color: #f6f0df;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(7, 26, 51, 0.18);
}

.nolab-blueprint-grid {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(215, 196, 158, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(215, 196, 158, 0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.nolab-map-hero,
.nolab-destination,
.nolab-node-map,
.nolab-map-panels,
.nolab-signal-strip {
  position: relative;
  z-index: 1;
}

.nolab-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 20px;
  align-items: start;
}

.nolab-map-hero span,
.nolab-destination span,
.nolab-map-panels span,
.nolab-signal-strip span {
  color: var(--nolab-accent, #b9975b);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.nolab-map-hero h2 {
  color: #fff;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.95;
  margin: 6px 0 10px;
}

.nolab-map-hero p,
.nolab-destination p,
.nolab-map-panels p,
.nolab-signal-strip p {
  color: rgba(246, 240, 223, 0.76);
  line-height: 1.5;
  margin: 0;
}

.nolab-arcade-clock {
  border: 1px solid rgba(215, 196, 158, 0.22);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  border-radius: 8px;
  padding: 18px;
  text-align: right;
}

.nolab-arcade-clock small,
.nolab-arcade-clock em {
  display: block;
  color: rgba(246, 240, 223, 0.68);
  font-size: 11px;
  font-style: normal;
  text-transform: uppercase;
}

.nolab-arcade-clock strong {
  display: block;
  color: var(--nolab-accent, #f6d36b);
  font-family: "Courier New", monospace;
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.1;
  text-shadow: 0 0 18px color-mix(in srgb, var(--nolab-accent, #f6d36b) 52%, transparent);
}

.nolab-destination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px 190px;
  gap: 18px;
  align-items: center;
  margin: 26px 0;
  border: 1px solid rgba(215, 196, 158, 0.18);
  background: rgba(3, 13, 29, 0.42);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 18px;
}

.nolab-destination h3 {
  color: #fff;
  font-size: 28px;
  margin: 4px 0 8px;
}

.destination-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.destination-track span {
  display: block;
  width: var(--aura-fill);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nolab-secondary, #6fa8dc), var(--nolab-accent, #f6d36b));
  box-shadow: 0 0 24px color-mix(in srgb, var(--nolab-accent, #f6d36b) 50%, transparent);
}

.destination-ring {
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  border-radius: 50%;
  border: 1px solid var(--nolab-accent, #f6d36b);
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.045), 0 0 36px color-mix(in srgb, var(--nolab-accent, #f6d36b) 42%, transparent);
}

.destination-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
}

.destination-meta strong {
  color: #fff;
  font-size: 22px;
}

.destination-meta small {
  color: rgba(246, 240, 223, 0.62);
}

.nolab-node-map {
  min-height: 360px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 18px;
  align-items: center;
}

.nolab-node-map::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--nolab-accent, #b9975b), transparent);
  box-shadow: 0 0 24px color-mix(in srgb, var(--nolab-accent, #b9975b) 54%, transparent);
}

.nolab-command-map.aura-minimo .nolab-node-map:nth-of-type(2)::before,
.nolab-command-map.aura-minimo .nolab-node-map:nth-of-type(2)::after {
  display: none;
  content: none;
  background: none;
  box-shadow: none;
}

.lab-station {
  position: relative;
  z-index: 1;
  min-height: 210px;
  border: 1px solid rgba(215, 196, 158, 0.23);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: #f6f0df;
  display: grid;
  gap: 8px;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 16px;
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.lab-station:hover {
  transform: translateY(-4px);
  border-color: var(--nolab-accent, #f6d36b);
}

.lab-station.aberta,
.lab-station.current {
  border-color: var(--nolab-accent, #f6d36b);
  box-shadow: 0 0 36px color-mix(in srgb, var(--nolab-accent, #f6d36b) 28%, transparent);
}

.lab-station.bloqueada {
  opacity: 0.58;
}

.station-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--nolab-accent, #f6d36b);
  color: var(--nolab-accent, #f6d36b);
  font-weight: 900;
  box-shadow: 0 0 22px color-mix(in srgb, var(--nolab-accent, #f6d36b) 36%, transparent);
}

.lab-station strong {
  color: #fff;
  font-size: 20px;
}

.lab-station em,
.lab-station small {
  color: rgba(246, 240, 223, 0.68);
  font-style: normal;
}

.nolab-map-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nolab-map-panels article,
.nolab-signal-strip,
.season-card,
.badge-card,
.ghost-card,
.nolab-day-hero,
.nolab-day-gallery article {
  border: 1px solid rgba(215, 196, 158, 0.16);
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(16px);
  border-radius: 10px;
  padding: 16px;
}

.nolab-map-panels h3 {
  color: #fff;
  margin: 6px 0;
  font-size: 24px;
}

.nolab-signal-strip {
  margin-top: 14px;
}

.dark-head h2,
.nolab-signal-list strong {
  color: #fff;
}

.nolab-signal-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 10px;
}

.nolab-signal-list article {
  border-top: 1px solid rgba(215, 196, 158, 0.24);
  padding-top: 10px;
}

.nolab-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 7, 18, 0.72);
  backdrop-filter: blur(12px);
}

.nolab-modal.hidden {
  display: none;
}

.nolab-modal-frame {
  position: relative;
  width: min(920px, 96vw);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid rgba(215, 196, 158, 0.2);
  border-radius: 12px;
  background: rgba(7, 26, 51, 0.92);
  color: #f6f0df;
  padding: 24px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
}

.nolab-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
}

.nolab-modal-frame header span,
.nolab-synthesis span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.nolab-modal-frame h2 {
  color: #fff;
  font-size: 34px;
  margin: 4px 0 18px;
}

.nolab-form {
  display: grid;
  gap: 14px;
}

.nolab-form label {
  display: grid;
  gap: 7px;
  color: rgba(246, 240, 223, 0.78);
  font-size: 13px;
}

.nolab-form input,
.nolab-form textarea,
.nolab-form select {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(215, 196, 158, 0.22);
  color: #fff;
}

.nolab-form select option {
  background: #ffffff;
  color: #071a33;
}

.nolab-form select option:checked {
  background: #d7c49e;
  color: #071a33;
}

.nolab-swipe-deck,
.nolab-mission-list,
.badge-gallery,
.ghost-list,
.nolab-day-gallery,
.nolab-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.nolab-swipe-card,
.nolab-mission-list article,
.nolab-synthesis {
  border: 1px solid rgba(215, 196, 158, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  padding: 14px;
}

.nolab-museum-card {
  display: grid;
  gap: 14px;
}

.nolab-museum-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nolab-museum-card header span,
.nolab-upload-console span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.nolab-museum-card h3,
.nolab-upload-console h3 {
  color: #fff;
  margin: 0;
}

.nolab-manifesto {
  border-top: 1px solid rgba(215, 196, 158, 0.16);
  padding-top: 12px;
}

.nolab-manifesto strong {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

.nolab-manifesto p,
.nolab-upload-console p,
.nolab-upload-lock p {
  color: rgba(246, 240, 223, 0.76);
}

.nolab-manifesto ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(246, 240, 223, 0.78);
}

.nolab-day-panel {
  display: grid;
  gap: 14px;
}

.nolab-day-hero {
  display: grid;
  gap: 8px;
  color: #f6f0df;
}

.nolab-day-hero strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.nolab-day-hero small {
  color: rgba(246, 240, 223, 0.82);
}

.nolab-upload-console {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.nolab-upload-console.is-open {
  border-color: rgba(79, 209, 197, 0.28);
}

.nolab-upload-console.is-locked {
  border-color: rgba(215, 196, 158, 0.16);
}

.nolab-memory-upload {
  border-left: 1px solid rgba(215, 196, 158, 0.14);
  padding-left: 18px;
}

.nolab-upload-lock {
  border: 1px solid rgba(215, 196, 158, 0.14);
  border-radius: 10px;
  background: rgba(1, 7, 18, 0.64);
  padding: 14px;
  color: rgba(246, 240, 223, 0.88);
}

.nolab-upload-lock strong {
  color: #fff;
}

.nolab-day-gallery-shell {
  border: 1px solid rgba(215, 196, 158, 0.14);
  border-radius: 10px;
  background: rgba(2, 14, 32, 0.7);
  padding: 16px;
}

.nolab-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.nolab-asset-card {
  overflow: hidden;
  border: 1px solid rgba(215, 196, 158, 0.14);
  border-radius: 10px;
  background: rgba(2, 14, 32, 0.58);
}

.nolab-asset-card img,
.nolab-asset-card video,
.nolab-asset-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: rgba(1, 7, 18, 0.72);
}

.nolab-asset-placeholder {
  display: grid;
  place-items: center;
  padding: 14px;
  color: rgba(246, 240, 223, 0.7);
  text-align: center;
}

.nolab-asset-card div {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.nolab-asset-card strong {
  color: #fff;
}

.nolab-asset-card span {
  color: rgba(246, 240, 223, 0.62);
  font-size: 12px;
}

.nolab-empty-inline .empty-state {
  min-height: auto;
}

.nolab-vote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.nolab-terminal {
  border: 1px solid rgba(79, 209, 197, 0.35);
  border-radius: 10px;
  background: rgba(2, 16, 22, 0.7);
  padding: 16px;
  font-family: "Courier New", monospace;
}

.nolab-hype-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--hype-bg, #000);
  color: var(--hype-text, #fff);
  padding: 28px;
}

.nolab-hype-gate article {
  width: min(820px, 94vw);
  text-align: center;
  display: grid;
  gap: 22px;
}

.nolab-hype-gate span {
  color: var(--hype-accent, var(--gold));
  font-weight: 820;
  text-transform: uppercase;
}

.nolab-hype-gate h2 {
  color: var(--hype-text, #fff);
  font-size: clamp(34px, 6vw, 74px);
  line-height: 0.98;
}

.nolab-hype-gate button {
  background: #071a33;
  border-color: color-mix(in srgb, var(--hype-accent, #b9975b) 48%, #071a33);
  color: #fff;
}

.hype-video {
  min-height: 220px;
  border: 1px solid color-mix(in srgb, var(--hype-accent, #b9975b) 30%, transparent);
  display: grid;
  place-items: center;
  color: color-mix(in srgb, var(--hype-text, #fff) 62%, transparent);
}

.hype-video iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
}

.badge-card > div:not(.badge-visual),
.ghost-card > div {
  font-size: 34px;
}

.badge-visual {
  width: 92px;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(4, 17, 35, 0.72);
  border: 1px solid rgba(215, 196, 158, 0.28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

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

.badge-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.badge-card small {
  color: rgba(215, 196, 158, 0.82);
}

.badge-card.fallback_local {
  border: 1px solid rgba(242, 196, 109, 0.24);
}

.badge-provider {
  justify-self: start;
  border: 1px solid rgba(215, 196, 158, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  font-weight: 900;
}

.badge-provider.success {
  color: #9df2c8;
  border-color: rgba(157, 242, 200, 0.3);
  background: rgba(31, 143, 109, 0.18);
}

.badge-provider.warning {
  color: #f6d36b;
  border-color: rgba(246, 211, 107, 0.32);
  background: rgba(138, 91, 0, 0.18);
}

.badge-provider.danger {
  color: #ffb4ac;
  border-color: rgba(255, 180, 172, 0.3);
  background: rgba(164, 19, 11, 0.18);
}

.badge-regenerate-button {
  justify-self: start;
}

.results-dashboard,
.results-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.result-metric,
.result-badge {
  border: 1px solid rgba(215, 196, 158, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.055);
  padding: 16px;
}

.result-metric {
  display: grid;
  gap: 8px;
}

.result-metric span,
.result-badge span {
  color: var(--muted);
  font-size: 13px;
}

.result-metric strong {
  color: var(--ink);
  font-size: 28px;
}

.result-badge {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 260px;
}

.result-badge.locked {
  opacity: 0.62;
}

.result-badge.locked .badge-visual img {
  filter: grayscale(1) brightness(0.62);
}

.result-badge.inspection {
  opacity: 1;
}

.result-badge.inspection .badge-visual img {
  filter: none;
}

.hr-intervention-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.hr-intervention-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hr-intervention-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hr-intervention-card h3 {
  margin: 8px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.15;
}

.hr-intervention-card > p,
.hr-intervention-card li,
.hr-intervention-card dd,
.hr-intervention-card small {
  color: rgba(246, 240, 223, 0.78);
}

.hr-intervention-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.hr-intervention-card dl div {
  border: 1px solid rgba(215, 196, 158, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(1, 7, 18, 0.16);
}

.hr-intervention-card dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.hr-intervention-card dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.hr-intervention-card > strong {
  color: #fff;
}

.hr-intervention-card ul {
  margin: 0;
  padding-left: 18px;
}

.hr-intervention-card button {
  justify-self: start;
}

.hr-intervention-plan {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.hr-intervention-plan .intelligence-badge {
  justify-self: start;
}

.tag.danger {
  background: #fff1f3;
  color: #b42318;
  border-color: #fecdca;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: #eef2f6;
  color: var(--navy);
  font-size: 12px;
  text-transform: capitalize;
}

.status-pill.ativo {
  background: #ecfdf3;
  color: var(--success);
}

.status-pill.prospect {
  background: #fff8e8;
  color: #7a5a22;
}

.status-pill.pausado {
  background: #fff4ed;
  color: var(--warn);
}

.status-pill.encerrado {
  background: #f2f4f7;
  color: var(--muted);
}

.status-pill.inativo {
  background: #f2f4f7;
  color: var(--muted);
}

.upload-panel,
.report-panel {
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.upload-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

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

.kpi {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  min-height: 92px;
}

.kpi span {
  color: var(--muted);
  font-size: 12px;
}

.kpi strong {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 25px;
  line-height: 1;
}

.kpi-button {
  width: 100%;
  height: auto;
  min-height: 92px;
  display: block;
  text-align: left;
  border-color: var(--line);
  background: var(--white);
  color: var(--ink);
}

.kpi-button:hover,
.kpi-button.rss-panel-active {
  border-color: #e5d5b4;
  background: #fff8e8;
}

.grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.grid.two {
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.75fr);
}

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

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

.content-hub {
  display: grid;
  gap: 12px;
}

.panel {
  padding: 18px;
  border-radius: var(--card-radius);
}

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

.tag {
  border: 1px solid #e5d5b4;
  color: #7a5a22;
  background: #fff8e8;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
}

canvas {
  width: 100%;
  height: 260px;
  border: 1px solid #edf0f5;
  border-radius: 6px;
}

.alert-list {
  display: grid;
  gap: 10px;
}

.alert {
  border-left: 3px solid var(--gold);
  background: #fafbfc;
  padding: 10px 12px;
  border-radius: 6px;
}

.alert.risco {
  border-left-color: var(--danger);
}

.alert.atencao {
  border-left-color: var(--warn);
}

.alert.estavel {
  border-left-color: var(--success);
}

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

.alert p {
  margin: 4px 0 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid #edf0f5;
  padding: 10px 8px;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.analysis {
  display: grid;
  gap: 12px;
}

.analysis h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 14px;
}

.analysis p,
.analysis li {
  color: #344054;
}

.analysis ul {
  margin: 0;
  padding-left: 18px;
}

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

.opportunity {
  border: 1px solid #edf0f5;
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px;
  background: var(--white);
}

.opportunity h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 15px;
}

.opportunity p {
  margin: 5px 0;
  color: #344054;
}

.opportunity .evidence {
  color: var(--muted);
  font-size: 12px;
}

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

.comparison-columns h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 14px;
}

.mini-list {
  display: grid;
  gap: 8px;
}

.compact-list {
  margin-top: 12px;
}

.wide-button {
  width: 100%;
  margin-top: 10px;
}

.feed-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.feed-toolbar .wide-button {
  margin-top: 0;
}

.rss-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.rss-tab {
  min-height: 34px;
  border-color: var(--line);
  background: var(--white);
  color: var(--navy);
  gap: 8px;
}

.rss-tab span {
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 2px 7px;
  font-size: 11px;
}

.rss-tab.active,
.rss-tab:hover {
  border-color: var(--gold);
  background: var(--navy);
  color: var(--white);
}

.rss-filter-panel {
  margin-top: 2px;
}

.rss-filter-grid {
  display: grid;
  grid-template-columns: 120px minmax(150px, 1fr) minmax(170px, 1fr) 130px minmax(220px, 1.4fr);
  gap: 12px;
  align-items: end;
}

.rss-filter-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.rss-filter-grid select,
.rss-filter-grid input {
  width: 100%;
  min-height: 38px;
}

.source-list {
  display: grid;
  gap: 8px;
}

.source-item {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fafbfc;
}

.source-item strong,
.source-item span {
  display: block;
}

.source-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.source-actions button,
.mini-item button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.client-actions {
  justify-content: flex-start;
}

.mini-item {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 9px;
  background: #fafbfc;
}

.mini-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 3px;
}

.mini-item span {
  color: var(--muted);
  font-size: 12px;
}

.log-details {
  margin-top: 8px;
  border-top: 1px solid #edf0f5;
  padding-top: 8px;
}

.log-details summary {
  cursor: pointer;
  color: var(--navy);
  font-size: 12px;
  font-weight: 760;
}

.log-details dl {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 5px 10px;
  margin: 8px 0 0;
}

.log-details dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.log-details dd {
  margin: 0;
  color: #344054;
  font-size: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.feed-item strong,
.feed-item span {
  overflow-wrap: anywhere;
}

.feed-meta {
  display: block;
}

.feed-list-summary {
  border: 1px dashed #d8dee8;
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.feed-progress {
  margin-top: 10px;
  border: 1px solid #e5d5b4;
  border-radius: 8px;
  background: #fff8e8;
  padding: 10px;
}

.feed-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--navy);
  font-size: 12px;
  margin-bottom: 8px;
}

.feed-progress progress {
  width: 100%;
  height: 12px;
  accent-color: var(--gold);
}

.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.topic-cloud {
  min-height: 220px;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  background: #fafbfc;
  padding: 18px;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.topic-token {
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 4px 5px;
  font-size: calc(13px * var(--topic-scale, 1));
  font-weight: 780;
  white-space: normal;
}

.topic-token:hover {
  background: #fff8e8;
  color: #7a5a22;
}

.topic-token span {
  font-size: 11px;
  color: var(--gold);
  margin-left: 2px;
}

.topic-detail-card {
  border: 1px solid #edf0f5;
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.topic-detail-card h3 {
  margin: 0;
  color: var(--navy);
}

.topic-detail-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.topic-detail-card dt {
  color: var(--navy);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.topic-detail-card dd {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

.news-extraction-list {
  display: grid;
  gap: 10px;
}

.news-extraction-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
  display: grid;
  gap: 8px;
}

.news-extraction-card strong {
  display: block;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
}

.news-extraction-card span,
.news-extraction-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.news-extraction-card p {
  margin: 0;
}

.update-log-details {
  margin-top: 10px;
  border-top: 1px solid #edf0f5;
  padding-top: 10px;
}

.update-log-details summary {
  cursor: pointer;
  color: var(--navy);
  font-weight: 760;
  font-size: 13px;
}

.team-list {
  margin-top: 14px;
}

.tag-help {
  margin-top: -4px;
  font-size: 12px;
  line-height: 1.35;
}

.team-item {
  display: grid;
  gap: 5px;
}

.kanban-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.kanban-column {
  min-width: 220px;
  background: #fafbfc;
  border: 1px solid #edf0f5;
  border-radius: 8px;
  padding: 10px;
}

.kanban-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.kanban-column-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
}

.kanban-column-head span {
  color: var(--muted);
  font-size: 12px;
}

.kanban-card-list {
  display: grid;
  gap: 10px;
}

.kanban-empty {
  font-size: 12px;
}

.kanban-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
}

.priority-card {
  border-left-color: #0f7a4d;
  background: #f6fbf8;
}

.fact-check-risk-card {
  border-left-color: #b42318;
  background: #fff7f5;
}

.risk-alert-badge {
  width: fit-content;
  border: 1px solid #f4b8af;
  border-radius: 999px;
  background: #fff1ee;
  color: #9f1d16;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 780;
}

.fact-check-risk-panel {
  border-color: #f4b8af;
  background: #fff7f5;
}

.fact-check-risk-panel h3 {
  color: #9f1d16;
}

.compact-card {
  display: grid;
  gap: 10px;
}

.kanban-title-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
  font-weight: 760;
  line-height: 1.25;
}

.kanban-title-button:hover {
  background: transparent;
  color: var(--navy-2);
  text-decoration: underline;
}

.score-badge {
  width: fit-content;
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 760;
}

.intelligence-badge {
  width: fit-content;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

.intelligence-badge.active {
  border-color: rgba(21, 128, 61, 0.35);
  background: #ecfdf3;
  color: #166534;
}

.intelligence-badge.inactive {
  border-color: rgba(185, 28, 28, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

.analysis-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.kanban-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.kanban-card h4 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.kanban-card dl {
  margin: 0;
  display: grid;
  gap: 6px;
}

.kanban-card dt {
  color: var(--navy);
  font-size: 11px;
  font-weight: 760;
  text-transform: uppercase;
}

.kanban-card dd {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.35;
}

.kanban-card ol {
  margin: 0;
  padding-left: 18px;
}

.kanban-card .source-actions {
  justify-content: flex-start;
  margin-top: 12px;
}

.kanban-toggle {
  width: 100%;
  min-height: 32px;
  font-size: 12px;
}

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

.compact-ideation-list {
  margin-top: 14px;
}

.ideation-card {
  display: grid;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 14px;
}

.ideation-card p {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.ideation-title-button {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--navy);
  padding: 0;
  text-align: left;
  white-space: normal;
  justify-content: flex-start;
  font-weight: 760;
  line-height: 1.25;
}

.ideation-title-button:hover {
  background: transparent;
  color: var(--navy-2);
  text-decoration: underline;
}

.arc-flow-hero {
  align-items: center;
}

.arc-flow-focus-panel {
  margin-bottom: 16px;
}

.arc-flow-filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.arc-flow-shell {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}

.arc-flow-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(230px, 1fr));
  gap: 12px;
  min-width: 1680px;
}

.arc-flow-column {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 420px;
  background: #f8fafc;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  padding: 10px;
}

.arc-flow-column-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.arc-flow-column-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
}

.arc-flow-column-head span {
  border: 1px solid #d9c79e;
  border-radius: 999px;
  background: #fff8e8;
  color: #75551c;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 760;
}

.arc-flow-card-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.arc-flow-card {
  display: grid;
  gap: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  padding: 12px;
}

.arc-flow-card:hover {
  border-color: #c6a865;
  box-shadow: 0 14px 30px rgba(7, 26, 51, 0.12);
}

.arc-flow-card.sla-warning {
  border-left-color: #d99a18;
  background: #fffaf0;
}

.arc-flow-card.sla-critical {
  border-left-color: #b42318;
  background: #fff5f4;
}

.arc-flow-card.sla-paused {
  border-left-color: #667085;
  background: #f9fafb;
}

.arc-flow-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
}

.arc-flow-card p,
.arc-flow-card li {
  color: #344054;
  font-size: 12px;
  line-height: 1.4;
}

.arc-flow-card p,
.arc-flow-card ol {
  margin: 0;
}

.arc-flow-card ol {
  padding-left: 18px;
}

.arc-flow-card-meta,
.arc-flow-card-tags,
.arc-flow-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.arc-flow-card-meta span,
.arc-flow-card-tags span,
.arc-flow-card footer span {
  width: fit-content;
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 760;
}

.arc-flow-card footer {
  justify-content: space-between;
  color: var(--muted);
}

.arc-flow-card-actions {
  display: flex;
  justify-content: flex-end;
}

.arc-flow-sla-badge {
  width: fit-content;
  border: 1px solid #d7e0ea;
  border-radius: 999px;
  background: #f8fafc;
  color: #475467;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}

.arc-flow-sla-badge.warning {
  border-color: #f2c46d;
  background: #fff7df;
  color: #8a5b00;
}

.arc-flow-sla-badge.critical {
  border-color: #f5a3a0;
  background: #fff0ef;
  color: #a4130b;
}

.arc-flow-sla-badge.paused {
  border-color: #cfd8e3;
  background: #f2f4f7;
  color: #475467;
}

.arc-flow-task-modal-card {
  max-width: min(1120px, calc(100vw - 36px));
}

.arc-flow-task-body {
  display: grid;
  gap: 12px;
}

.arc-flow-task-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.arc-flow-task-summary article {
  border: 1px solid rgba(9, 31, 58, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  padding: 14px;
}

.arc-flow-task-summary h3 {
  margin: 0 0 8px;
  color: var(--navy);
}

.arc-flow-task-control-grid,
.arc-flow-task-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-top: 14px;
}

.arc-flow-task-grid {
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  align-items: start;
}

.compact-head {
  margin-bottom: 8px;
}

.compact-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.arc-flow-checklist-list,
.arc-flow-attachment-list {
  display: grid;
  gap: 8px;
}

.arc-flow-checklist-item,
.arc-flow-attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
}

.arc-flow-checklist-item label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.arc-flow-checklist-item input {
  width: 16px;
  height: 16px;
}

.arc-flow-attachment-item a {
  color: var(--navy);
  font-weight: 800;
}

.inline-upload-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 8px;
  margin-bottom: 10px;
}

.arc-flow-completion-modal-card {
  max-width: min(760px, calc(100vw - 36px));
}

.arc-flow-completion-body {
  display: grid;
  gap: 14px;
}

.arc-flow-completion-panel {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.arc-flow-completion-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.arc-flow-sentiment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arc-flow-sentiment-grid button {
  min-height: 44px;
  white-space: normal;
}

.arc-flow-sentiment-grid button.selected {
  background: var(--navy);
  color: #ffffff;
  border-color: var(--navy);
}

.arc-flow-voice-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.arc-flow-voice-preview {
  width: 100%;
  min-height: 40px;
}

.arc-flow-telemetry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.arc-flow-telemetry-item {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.arc-flow-telemetry-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.arc-flow-telemetry-item strong {
  color: var(--navy);
  font-size: 16px;
}

.ceo-briefing-hero {
  align-items: center;
}

.ceo-briefing-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.ceo-briefing-overview {
  grid-column: 1 / -1;
}

.ceo-briefing-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.ceo-briefing-metric {
  min-height: 118px;
  display: grid;
  gap: 8px;
  align-content: center;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 16px;
}

.ceo-briefing-metric span,
.ceo-briefing-entity span,
.ceo-briefing-entity small,
.ceo-briefing-action-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.ceo-briefing-metric strong {
  color: var(--navy);
  font-size: 28px;
  line-height: 1;
}

.ceo-briefing-metric small {
  color: #667085;
  overflow-wrap: anywhere;
}

.ceo-briefing-actions,
.ceo-briefing-entities {
  display: grid;
  gap: 12px;
}

.ceo-briefing-action-card {
  position: relative;
  display: grid;
  gap: 12px;
  border: 1px solid #e1c178;
  border-radius: 8px;
  background: #fff8e8;
  padding: 16px;
  overflow: hidden;
}

.ceo-briefing-action-card.selo-vermelho {
  border-color: #ef9a9a;
  background: #fff1f0;
}

.ceo-briefing-action-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ceo-briefing-action-head > span {
  width: fit-content;
  border-radius: 999px;
  background: rgba(185, 151, 91, 0.18);
  color: #7a5a22;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 840;
}

.ceo-briefing-action-card.selo-vermelho .ceo-briefing-action-head > span {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.ceo-briefing-action-card h3,
.ceo-briefing-action-card p {
  margin: 0;
}

.ceo-briefing-action-card h3 {
  color: var(--navy);
  font-size: 18px;
}

.ceo-briefing-action-card p {
  color: #344054;
  line-height: 1.45;
}

.ceo-briefing-action-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ceo-briefing-action-facts div {
  display: grid;
  gap: 3px;
  border-top: 1px solid rgba(122, 90, 34, 0.18);
  padding-top: 8px;
}

.ceo-briefing-action-facts dd {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ceo-briefing-entity {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.ceo-briefing-entity > div {
  display: grid;
  gap: 3px;
}

.ceo-briefing-entity strong {
  color: var(--navy);
}

.ceo-briefing-entity p {
  margin: 0;
  color: #344054;
  overflow-wrap: anywhere;
}

.admission-triage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.admission-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-elevated);
  color: var(--navy);
  box-shadow: var(--shadow-tight);
}

.admission-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admission-card h3,
.admission-card p {
  margin: 0;
}

.admission-meta,
.admission-actions,
.decision-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admission-stepper-mini {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admission-stepper-mini li {
  display: grid;
  gap: 4px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 8px;
  min-width: 0;
}

.admission-stepper-mini span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e6ebf2;
  font-size: 11px;
  font-weight: 900;
}

.admission-stepper-mini strong {
  font-size: 11px;
  line-height: 1.2;
}

.admission-stepper-mini li.done,
.admission-chain-stepper li.done {
  border-color: rgba(31, 143, 109, 0.34);
  background: rgba(31, 143, 109, 0.08);
}

.admission-stepper-mini li.active,
.admission-chain-stepper li.active {
  border-color: rgba(185, 151, 91, 0.5);
  background: #fff8e8;
}

.admission-next-action {
  border-left: 4px solid #b9975b;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
  display: grid;
  gap: 4px;
}

.admission-next-action span {
  color: var(--muted);
  font-size: 0.86rem;
}

.admission-action-menu {
  position: relative;
}

.admission-action-menu summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.admission-action-menu > div {
  position: absolute;
  z-index: 14;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  display: grid;
  gap: 8px;
  border: 1px solid #d9e2ef;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-tight);
  padding: 10px;
}

.admission-meta span,
.admission-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  font-size: 11px;
  font-weight: 800;
}

.admission-status-pill.reprovado {
  color: #a4130b;
  border-color: #f5a3a0;
  background: #fff0ef;
}

.admission-status-pill.preparo {
  color: #8a5b00;
  border-color: #f2c46d;
  background: #fff7df;
}

.admission-status-pill.aprovado,
.admission-status-pill.cliente_ativo {
  color: #147a3d;
  border-color: #9dd8af;
  background: #effaf2;
}

.admission-actions a,
.admission-actions button,
.decision-grid button {
  min-height: 36px;
  padding: 0 12px;
  max-width: 100%;
}

.decision-grid {
  margin-top: 12px;
}

.decision-grid button[data-admission-decision="reprovado"] {
  border-color: #f5a3a0;
}

.decision-grid button[data-admission-decision="preparo"] {
  border-color: #f2c46d;
}

.decision-grid button[data-admission-decision="aprovado"] {
  border-color: #9dd8af;
}

.wide-modal-card {
  width: min(1120px, 100%);
}

.admission-chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.admission-chain-stepper {
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.admission-chain-stepper ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admission-chain-stepper li {
  display: grid;
  gap: 5px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.admission-chain-stepper li span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #071a33;
  color: #fff;
  font-weight: 900;
}

.admission-chain-stepper li small {
  color: var(--muted);
}

.admission-chain-next {
  border: 1px solid rgba(185, 151, 91, 0.3);
  border-radius: 8px;
  background: #fff8e8;
  padding: 12px;
}

.interview-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.interview-section {
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
}

.interview-section h3 {
  margin: 0 0 10px;
  color: var(--navy);
}

.interview-section dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.interview-field {
  display: grid;
  gap: 3px;
}

.interview-field dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.interview-field dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--navy);
}

.interview-field.missing dd {
  color: #8a5b00;
}

.synthesis-readout {
  margin-top: 14px;
  background: #f8fafc;
}

.admission-chain-grid .idea-detail {
  align-content: start;
  display: grid;
  gap: 12px;
}

.admission-chain-grid h3 {
  margin: 0;
  color: var(--navy);
}

.admission-chain-list {
  display: grid;
  gap: 10px;
}

.admission-chain-row,
.admission-chain-doc {
  display: grid;
  gap: 9px;
  border: 1px solid #e6ebf2;
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.admission-chain-row.done {
  border-color: rgba(20, 122, 61, 0.32);
  background: #f4fbf6;
}

.admission-chain-row.pending {
  border-color: rgba(164, 19, 11, 0.22);
  background: #fff8f7;
}

.admission-chain-row strong,
.admission-chain-doc strong {
  color: var(--navy);
}

.admission-chain-row span,
.admission-chain-doc span {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.admission-chain-row input[type="file"],
.admission-chain-grid input[type="file"],
.admission-chain-grid input[type="text"] {
  min-width: 0;
  width: 100%;
}

.posted-card {
  border-left: 0;
  color: var(--navy);
}

.posted-card span,
.posted-card a {
  font-size: 12px;
}

.posted-pending {
  background: #f6d36b;
  border-color: #d8ad36;
}

.posted-confirmed {
  background: #bfe8c9;
  border-color: #74c68a;
}

.publication-row {
  display: grid;
  grid-template-columns: 160px 1fr 150px;
  gap: 10px;
  align-items: end;
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 10px;
  background: #fafbfc;
}

.success-text {
  color: #147a3d;
  font-weight: 760;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 26, 51, 0.48);
}

.modal-card {
  width: min(760px, 100%);
  max-height: min(86vh, 820px);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.24);
  padding: 20px;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf0f5;
  padding-bottom: 14px;
  margin-bottom: 14px;
}

.modal-body {
  display: grid;
  gap: 12px;
}

.idea-detail {
  border: 1px solid #edf0f5;
  border-radius: 6px;
  padding: 12px;
  background: #fafbfc;
}

.idea-detail h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 12px;
  text-transform: uppercase;
}

.idea-detail p {
  margin: 0;
  color: #344054;
}

.idea-detail ol {
  margin: 0;
  padding-left: 20px;
  color: #344054;
}

.score-detail strong {
  color: var(--navy);
}

.script-detail textarea {
  min-height: 190px;
  line-height: 1.45;
}

.script-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  border-top: 1px solid #edf0f5;
  padding-top: 14px;
  margin-top: 14px;
}

.empty {
  padding: 42px;
  text-align: center;
}

.future-empty-state {
  width: 100%;
  border: 1px dashed rgba(185, 151, 91, 0.34);
  border-radius: var(--card-radius);
  background:
    linear-gradient(135deg, rgba(185, 151, 91, 0.08), rgba(7, 26, 51, 0.025)),
    rgba(185, 151, 91, 0.04);
  color: var(--muted);
  padding: 16px;
  display: grid;
  gap: 6px;
  text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.future-empty-state span {
  color: #8c6a28;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.future-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.9rem;
}

.future-module-panel {
  min-height: 180px;
  display: grid;
  align-items: center;
}

td .future-empty-state {
  margin: 6px 0;
}

.kanban-card-list > .future-empty-state,
.mini-list > .future-empty-state {
  min-height: 0;
}

.hidden {
  display: none !important;
}

.elite-setup {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--navy);
  color: var(--white);
  padding: 22px;
}

.elite-setup-frame {
  height: 100%;
  border: 1px solid rgba(215, 196, 158, 0.32);
  border-radius: 18px;
  background: #071a33;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.elite-setup-top,
.elite-setup-actions {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.elite-setup-actions button:not(.secondary),
.elite-upload-button {
  border-color: #d7c49e;
  background: #d7c49e;
  color: var(--navy) !important;
  font-weight: 780;
}

.elite-setup-actions button:not(.secondary):hover,
.elite-upload-button:hover {
  background: #fff4d7;
}

.elite-setup-actions .secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: transparent;
  color: var(--white);
}

.elite-setup-top h1 {
  color: var(--white);
  font-size: 24px;
}

.elite-kicker,
.elite-eyebrow {
  display: block;
  color: #d7c49e;
  font-size: 12px;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

.elite-progress {
  min-width: 260px;
  display: grid;
  gap: 8px;
  color: #f3f6fb;
  font-size: 12px;
}

.elite-progress-bar {
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.elite-progress-bar span {
  display: block;
  height: 100%;
  width: 14%;
  border-radius: inherit;
  background: #d7c49e;
  transition: width 0.32s ease;
}

.elite-slider-shell {
  overflow: hidden;
}

.elite-slider-track {
  height: 100%;
  display: flex;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}

.elite-slide {
  min-width: 100%;
  padding: 24px 44px 28px;
  display: grid;
  align-items: center;
}

.elite-form-card.dynamic-form-grid {
  align-content: start;
  gap: 18px;
  max-height: min(68vh, 620px);
  overflow-y: auto;
}

.elite-slide-center {
  width: min(820px, 90vw);
  margin: 0 auto;
  color: var(--white);
  text-align: center;
}

.elite-slide-center h2,
.elite-copy h2 {
  color: var(--white);
  font-size: 44px;
  line-height: 1.02;
  margin: 10px 0 14px;
}

.elite-slide-center p,
.elite-copy p {
  color: #eef3fb;
  font-size: 17px;
  line-height: 1.48;
}

.elite-orbit {
  display: none;
}

.elite-pill-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.elite-pill-row span,
.elite-final-card {
  border: 1px solid rgba(215, 196, 158, 0.38);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff4d7;
}

.elite-slide-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(420px, 1.25fr);
  gap: 34px;
  align-items: center;
}

.elite-copy {
  max-width: 520px;
}

.elite-form-card {
  max-height: calc(100vh - 220px);
  overflow: auto;
  border: 1px solid rgba(215, 196, 158, 0.28);
  border-radius: 14px;
  padding: 22px;
  background: #10253f;
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
  display: grid;
  gap: 16px;
}

.elite-form-card label,
.elite-question {
  display: grid;
  gap: 8px;
  color: #d7c49e;
  font-size: 12px;
  font-weight: 700;
}

.elite-question strong {
  color: #fff4d7;
}

.elite-helper {
  margin: 0;
  color: #eef3fb !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  font-weight: 500;
}

.elite-form-card label input,
.elite-form-card label select,
.elite-form-card label textarea {
  border-color: rgba(255, 255, 255, 0.2);
  background: #071a33;
  color: var(--white);
  font-weight: 500;
}

.elite-form-card label input::placeholder,
.elite-form-card label textarea::placeholder {
  color: #b7c1d2;
}

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

.elite-photo-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.elite-photo-preview {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid rgba(215, 196, 158, 0.58);
  background: #071a33;
  color: #fff4d7;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 22px;
  overflow: hidden;
  box-shadow: inset 0 0 0 8px rgba(215, 196, 158, 0.08);
}

.elite-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elite-upload-button {
  width: auto;
  min-height: 42px;
  border: 1px solid #d7c49e;
  border-radius: 6px;
  padding: 10px 14px;
  cursor: pointer;
}

.elite-upload-button input {
  display: none;
}

.elite-card-options,
.elite-chip-options,
.elite-sorter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.integration-health-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(7, 26, 51, 0.97), rgba(16, 37, 63, 0.94));
  border: 1px solid rgba(185, 151, 91, 0.34);
  color: #f5f7fb;
}

.integration-health-hero-copy {
  max-width: 640px;
}

.integration-health-hero-copy .eyebrow {
  color: var(--gold);
}

.integration-health-hero-copy h2 {
  color: #ffffff;
}

.integration-health-hero-copy p {
  margin: 8px 0 0;
  color: #d7dce5;
  line-height: 1.55;
}

.integration-health-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.integration-health-hero-actions .tag {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(215, 196, 158, 0.4);
  color: #f3e7c8;
}

.integration-health-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.integration-health-toolbar,
.integration-health-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.integration-health-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid #b9975b;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 14px;
}

.integration-health-card.status-operational {
  border-left-color: var(--success);
}

.integration-health-card.status-paused {
  border-left-color: var(--warn);
}

.integration-health-card.status-pending {
  border-left-color: var(--danger);
}

.integration-health-card > div:first-child {
  min-width: 0;
}

.integration-health-card strong {
  display: block;
  color: var(--navy);
  line-height: 1.25;
}

.health-status {
  width: fit-content;
  white-space: nowrap;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 760;
}

.health-status.operational {
  background: var(--success-soft);
  color: #166534;
  border: 1px solid rgba(21, 128, 61, 0.28);
}

.health-status.paused {
  background: var(--warn-soft);
  color: #7a5a22;
  border: 1px solid rgba(181, 71, 8, 0.28);
}

.health-status.pending {
  background: var(--danger-soft);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.25);
}

.integration-fix-fields {
  display: grid;
  gap: 12px;
}

.elite-chip-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.elite-card-options button,
.elite-chip-options button,
.elite-sorter button {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #071a33;
  color: #f3f6fb;
  justify-content: flex-start;
  white-space: normal;
}

.elite-card-options button.selected,
.elite-chip-options button.selected,
.elite-sorter button.selected {
  border-color: #d7c49e;
  background: rgba(215, 196, 158, 0.14);
  color: #fff4d7;
  box-shadow: inset 3px 0 0 #b9975b;
}

.elite-sorter button {
  cursor: grab;
  min-height: 58px;
}

.elite-sorter {
  grid-template-columns: 1fr;
}

.elite-sorter button.dragging {
  opacity: 0.45;
}

.elite-final-card {
  border-radius: 10px;
  color: #fff4d7;
  background: rgba(215, 196, 158, 0.12);
}

.elite-final-card p {
  margin: 6px 0 0;
  color: #eef3fb;
}

.elite-status {
  min-height: 20px;
  color: #eef3fb;
  margin: 0;
}

.setup-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 26, 51, 0.42);
  backdrop-filter: blur(12px);
}

.setup-crop-card {
  width: min(480px, 96vw);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  padding: 18px;
  background: var(--white);
  box-shadow: 0 30px 80px rgba(7, 26, 51, 0.34);
}

.setup-crop-viewport {
  width: min(340px, 74vw);
  aspect-ratio: 1 / 1;
  margin: 14px auto;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  background: #0b1c34;
  cursor: grab;
}

.setup-crop-viewport img {
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center center;
  user-select: none;
  pointer-events: none;
  max-width: none;
}

.setup-crop-mask {
  position: absolute;
  inset: 0;
  border: 2px solid #d7c49e;
  box-shadow: inset 0 0 0 999px rgba(7, 26, 51, 0.08);
  pointer-events: none;
}

.setup-crop-zoom {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.daily-sentiment-gate {
  position: fixed;
  inset: 0;
  z-index: 255;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--navy);
  color: var(--white);
  overflow: auto;
}

.daily-sentiment-card {
  width: min(860px, 92vw);
  max-height: calc(100vh - 48px);
  display: grid;
  gap: 16px;
  text-align: left;
  overflow: auto;
  padding: 4px 2px 8px;
}

.daily-validator-head {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.daily-validator-head span {
  display: inline-flex;
  width: fit-content;
  color: #d7c49e;
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-sentiment-photo {
  width: 116px;
  height: 116px;
  border: 1px solid rgba(215, 196, 158, 0.62);
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #071a33;
  color: #fff4d7;
  font-size: 28px;
  font-weight: 850;
  box-shadow: inset 0 0 0 10px rgba(215, 196, 158, 0.08);
  position: relative;
}

.daily-sentiment-photo > img:not(.profile-frame-image) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

.daily-sentiment-card h1 {
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1;
}

.daily-sentiment-card p {
  max-width: 560px;
  color: #eef3fb;
  font-size: 17px;
  line-height: 1.45;
}

.daily-validator-progress {
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

.daily-validator-progress i {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9975b, #f6d36b);
  transition: width 0.25s ease;
}

.daily-validator-step {
  min-height: 252px;
  display: grid;
  place-items: center;
}

.daily-validator-step input {
  justify-self: center;
}

.daily-validator-help {
  max-width: 760px;
  margin: 0;
}

.daily-choice-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.music-choice-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.daily-choice-card {
  min-width: 0;
  min-height: 188px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid rgba(215, 196, 158, 0.25);
  border-radius: var(--card-radius);
  padding: 20px 18px 18px;
  background: rgba(255, 255, 255, 0.055);
  color: #eef3fb;
  text-align: left;
  overflow: hidden;
}

.daily-choice-card:hover,
.daily-choice-card.selected {
  border-color: #d7c49e;
  background: rgba(215, 196, 158, 0.13);
  transform: translateY(-1px);
}

.daily-frame-preview {
  width: 104px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(215, 196, 158, 0.34);
  border-radius: var(--card-radius);
  display: block;
  position: relative;
  overflow: visible;
  background: rgba(7, 26, 51, 0.58);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.28);
  margin: 0 0 3px;
}

.daily-frame-photo-shell {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  isolation: isolate;
}

.daily-frame-photo,
.daily-frame-placeholder {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  z-index: 1;
  border-radius: 8px;
}

.daily-frame-photo {
  object-fit: cover;
}

.daily-frame-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(7, 26, 51, 0.96), rgba(21, 54, 89, 0.92));
  color: #fff4d7;
  font-size: 13px;
  font-weight: 850;
}

.daily-frame-image {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  z-index: 10;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(215, 196, 158, 0.32));
}

.god-mode-flow-button {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
}

.daily-choice-card .daily-choice-label {
  color: #d7c49e;
  font-size: 17px;
  font-weight: 880;
  line-height: 1.12;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.daily-choice-card strong {
  display: block;
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.daily-choice-card p {
  max-width: 100%;
  margin: 0;
  color: #dbe5f4;
  font-size: 13px;
  line-height: 1.32;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.daily-sentiment-card input {
  width: min(420px, 90vw);
  min-height: 58px;
  border: 1px solid rgba(215, 196, 158, 0.62);
  border-radius: 10px;
  background: #071a33;
  color: var(--white);
  text-align: center;
  font-size: 24px;
  font-weight: 800;
}

.daily-sentiment-card input::placeholder {
  color: #b7c1d2;
}

.daily-sentiment-card button {
  min-width: 140px;
  border-color: #d7c49e;
  background: #d7c49e;
  color: var(--navy);
  font-weight: 820;
}

.daily-validator-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.daily-validator-actions .secondary {
  background: transparent;
  color: #eef3fb;
}

.daily-sentiment-card span {
  min-height: 20px;
  color: #fff4d7;
  font-weight: 700;
}

.floating-notice {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 320;
  max-width: min(520px, calc(100vw - 48px));
  border: 1px solid rgba(215, 196, 158, 0.42);
  border-radius: 12px;
  padding: 14px 16px;
  background: #071a33;
  color: #fff4d7;
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.32);
  font-weight: 760;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.floating-notice.visible {
  opacity: 1;
  transform: translateY(0);
}

.preferences-overview {
  border-color: rgba(185, 151, 91, 0.34);
}

.profile-identity-panel {
  border-color: rgba(185, 151, 91, 0.34);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(251, 252, 254, 0.98));
  box-shadow: 0 14px 34px rgba(7, 26, 51, 0.06);
}

.profile-identity-panel .panel-head {
  margin-bottom: 16px;
}

.profile-identity-panel h2 {
  letter-spacing: -0.01em;
}

.profile-identity-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.profile-identity-photo-block {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.profile-preview {
  width: 142px;
  height: 142px;
  border-radius: 14px;
  font-size: 34px;
}

.profile-photo-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

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

.profile-identity-main {
  display: grid;
  gap: 12px;
}

.profile-identity-main label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.profile-identity-main input,
.profile-identity-main select,
.profile-identity-main textarea {
  border-color: #d8dee8;
  background: #fbfcfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.profile-identity-main input:focus,
.profile-identity-main select:focus,
.profile-identity-main textarea:focus {
  outline: none;
  border-color: rgba(185, 151, 91, 0.72);
  box-shadow: 0 0 0 3px rgba(185, 151, 91, 0.14);
}

.profile-identity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.sentiment-badge {
  width: fit-content;
  border-color: #ead9b8;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
}

.sentiment-badge.empty {
  background: #f8fafc;
  color: var(--muted);
}

.daily-micro-readout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.daily-micro-readout span {
  border: 1px solid #eadfca;
  border-radius: 8px;
  padding: 10px;
  background: #fffaf0;
}

.daily-micro-readout em {
  display: block;
  color: #8c6a28;
  font-style: normal;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.daily-micro-readout strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 14px;
}

.invite-result-box {
  border: 1px solid #d7c49e;
  border-radius: 8px;
  padding: 12px;
  background: #fffaf0;
  display: grid;
  gap: 8px;
  word-break: break-word;
}

.invite-result-box a {
  color: #071a33;
  font-weight: 800;
}

.auth-page {
  min-height: 100vh;
  margin: 0;
  background: #071a33;
  color: #fff;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.auth-card {
  width: min(540px, 94vw);
  border: 1px solid rgba(215, 196, 158, 0.32);
  border-radius: 18px;
  padding: 34px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.auth-card span {
  color: #d7c49e;
  font-size: 12px;
  font-weight: 860;
  text-transform: uppercase;
}

.auth-card h1 {
  margin-top: 10px;
  color: #fff;
  font-size: 42px;
}

.auth-card p {
  color: #dbe5f4;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: #dbe5f4;
  font-size: 13px;
  font-weight: 780;
}

.auth-form input {
  min-height: 48px;
  border: 1px solid rgba(215, 196, 158, 0.38);
  border-radius: 10px;
  padding: 0 14px;
  background: rgba(2, 11, 24, 0.7);
  color: #fff;
}

.auth-form button {
  background: #d7c49e;
  border-color: #d7c49e;
  color: #071a33;
}

.preference-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.preference-card {
  min-height: 98px;
  border: 1px solid #e4e9f2;
  border-radius: 8px;
  padding: 14px;
  background: #fbfcfe;
  display: grid;
  align-content: start;
  gap: 8px;
}

.preference-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.preference-card strong {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.25;
  word-break: break-word;
}

.preference-card em {
  width: fit-content;
  border: 1px solid #ead9b8;
  border-radius: 999px;
  padding: 3px 8px;
  background: #fff8e8;
  color: #7a5a22;
  font-size: 11px;
  font-style: normal;
  font-weight: 760;
}

.preferences-form .grid.two {
  align-items: start;
}

.preferences-choice-block {
  display: grid;
  gap: 10px;
}

.preferences-choice-block > strong {
  color: var(--navy);
  font-size: 14px;
}

.checkbox-chip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-chip-grid label {
  min-height: 46px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-size: 13px;
  font-weight: 720;
  background: #fff;
}

.checkbox-chip-grid label:has(input:checked) {
  border-color: #d7c49e;
  background: #fff8e8;
  box-shadow: inset 3px 0 0 #b9975b;
}

.recalibration-modal {
  position: fixed;
  inset: 0;
  z-index: 270;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--navy);
  color: var(--white);
}

.recalibration-frame {
  width: min(980px, 96vw);
  max-height: calc(100vh - 44px);
  border: 1px solid rgba(215, 196, 158, 0.32);
  border-radius: 18px;
  background: #071a33;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.36);
}

.recalibration-head,
.recalibration-actions {
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.recalibration-head h2,
.recalibration-body h3 {
  color: var(--white);
}

.recalibration-head p {
  max-width: 760px;
  color: #eef3fb;
}

.recalibration-body {
  overflow: auto;
  padding: 30px 42px;
  display: grid;
  align-content: center;
  gap: 18px;
}

.recalibration-step-label {
  color: #d7c49e;
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.recalibration-current {
  border: 1px solid rgba(215, 196, 158, 0.34);
  border-radius: 12px;
  padding: 18px;
  background: #10253f;
  display: grid;
  gap: 8px;
}

.recalibration-current span,
.recalibration-input {
  color: #d7c49e;
  font-size: 12px;
  font-weight: 760;
}

.recalibration-current strong {
  color: #fff4d7;
  font-size: 22px;
  line-height: 1.25;
}

.recalibration-options,
.recalibration-rank {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.recalibration-options button,
.recalibration-rank button {
  min-height: 50px;
  border-color: rgba(255, 255, 255, 0.22);
  background: #10253f;
  color: #f3f6fb;
  justify-content: flex-start;
  white-space: normal;
}

.recalibration-options button.selected,
.recalibration-rank button.selected {
  border-color: #d7c49e;
  background: rgba(215, 196, 158, 0.14);
  color: #fff4d7;
}

.recalibration-rank {
  grid-template-columns: 1fr;
}

.recalibration-rank button {
  cursor: grab;
}

.recalibration-rank button.dragging {
  opacity: 0.45;
}

.recalibration-input {
  display: grid;
  gap: 8px;
}

.recalibration-input input,
.recalibration-input textarea {
  border-color: rgba(255, 255, 255, 0.22);
  background: #10253f;
  color: var(--white);
}

.recalibration-actions button:not(.secondary) {
  border-color: #d7c49e;
  background: #d7c49e;
  color: var(--navy);
}

.recalibration-actions .secondary,
.recalibration-head .secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
  color: var(--white);
}

.recalibration-status {
  min-height: 20px;
  padding: 0 26px 20px;
  color: #fff4d7;
}

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

  .sidebar {
    position: static;
  }

  .hub-menu,
  .user-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 6px;
    box-shadow: none;
  }

  .topbar,
  .context-panel,
  .upload-panel,
  .report-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    align-items: stretch;
    justify-content: stretch;
  }

  .elite-slide-grid,
  .preference-summary-grid,
  .profile-identity-layout,
  .checkbox-chip-grid,
  .daily-choice-grid,
  .music-choice-grid {
    grid-template-columns: 1fr;
  }

  .daily-sentiment-card {
    width: min(760px, 94vw);
  }

  .daily-validator-head {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .elite-setup {
    padding: 10px;
  }

  .elite-setup-top,
  .elite-setup-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .elite-progress {
    min-width: 0;
  }

  .context-actions {
    align-items: stretch;
    justify-content: stretch;
  }

  .arc-flow-filter-grid,
  .arc-flow-task-control-grid,
  .arc-flow-task-grid,
  .arc-flow-sentiment-grid,
  .arc-flow-telemetry-grid,
  .ceo-briefing-workbench,
  .ceo-briefing-metrics,
  .inline-upload-form,
  .kpi-grid,
  .mlabs-summary-grid,
  .grid.two,
  .grid.three,
  .grid.one,
  .home-view,
  .ideation-list,
  .kanban-board,
  .client-grid,
  .publication-row,
  .publication-grid,
  .comparison-columns,
  .rss-filter-grid,
  .strategy-grid,
  .no-lab-hero,
  .no-lab-grid,
  .no-lab-challenges,
  .no-lab-value-grid,
  .no-lab-game,
  .no-lab-board,
  .no-lab-aura,
  .no-lab-aura-visual,
  .no-lab-mainplay,
  .mission-card,
  .no-lab-bottom,
  .nolab-map-hero,
  .nolab-destination,
  .nolab-node-map,
  .nolab-map-panels,
  .nolab-signal-list,
  .system-config-workbench,
  .archetype-config-grid,
  .data-settings-grid {
    grid-template-columns: 1fr;
  }

  .system-config-tabs {
    position: static;
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .system-config-tabs button {
    min-width: 190px;
  }

  .config-frame-preview {
    justify-self: center;
  }

  .nolab-command-map {
    min-height: auto;
    padding: 18px;
  }

  .nolab-node-map {
    min-height: 0;
  }

  .nolab-node-map::before {
    display: none;
  }

  .nolab-arcade-clock,
  .destination-meta {
    text-align: left;
    justify-items: start;
  }

  .no-lab-board::before {
    display: none;
  }

  .feed-toolbar {
    grid-template-columns: 1fr;
  }

  .client-form {
    grid-template-columns: 1fr;
  }

  .upload-form {
    flex-wrap: wrap;
  }
}

body.codex-inspecting,
body.codex-inspecting * {
  cursor: crosshair !important;
}

.codex-hover-box {
  position: fixed;
  z-index: 9000;
  pointer-events: none;
  border: 2px solid var(--gold);
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(7, 26, 51, 0.16), 0 0 28px rgba(185, 151, 91, 0.44);
  transition: left 0.08s ease, top 0.08s ease, width 0.08s ease, height 0.08s ease;
}

.codex-ticket-modal,
.codex-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9200;
  background: rgba(1, 9, 20, 0.72);
  backdrop-filter: blur(14px);
  display: grid;
  place-items: center;
  padding: 24px;
}

.codex-ticket-card {
  width: min(880px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid rgba(185, 151, 91, 0.38);
  border-radius: 10px;
  background: rgba(7, 26, 51, 0.94);
  color: #f8fafc;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
  padding: 24px;
}

.codex-ticket-card .modal-head {
  border-color: rgba(185, 151, 91, 0.22);
}

.codex-ticket-preview-shell {
  margin: 18px 0;
  border: 1px solid rgba(185, 151, 91, 0.25);
  border-radius: 8px;
  background: #020812;
  overflow: hidden;
}

.codex-ticket-preview-shell img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #020812;
}

.codex-ticket-meta,
.codex-tour-selector {
  word-break: break-all;
  color: #cbd5e1;
}

.codex-ticket-instruction {
  color: #eef2f6;
}

.codex-ticket-instruction span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.codex-ticket-instruction textarea {
  width: 100%;
  border-color: rgba(185, 151, 91, 0.34);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.codex-vision-page {
  display: grid;
  gap: 18px;
}

.codex-vision-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.codex-vision-actions {
  display: grid;
  min-width: min(280px, 100%);
  gap: 10px;
  align-items: stretch;
}

.compact-button,
.codex-column-toggle {
  min-height: 34px;
  padding: 0 12px;
  font-size: 0.86rem;
}

.codex-ticket-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

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

.codex-ticket-item {
  display: grid;
  grid-template-columns: minmax(72px, 34%) minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: #fbfcfe;
  padding: 12px;
  cursor: pointer;
}

.codex-ticket-item.resolved {
  border-left-color: var(--success);
}

.codex-ticket-thumb {
  min-width: 0;
  min-height: 96px;
  border-radius: 6px;
  background: #071a33;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #cbd5e1;
  font-size: 0.86rem;
}

.codex-ticket-thumb img {
  width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: cover;
}

.codex-ticket-content {
  min-width: 0;
  overflow: hidden;
}

.codex-ticket-title-row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--navy);
}

.codex-ticket-title-row strong,
.codex-ticket-title-row span,
.codex-ticket-content p {
  min-width: 0;
  overflow-wrap: anywhere;
}

.codex-ticket-content p {
  margin: 8px 0;
}

.codex-ticket-file {
  color: var(--muted);
  font-size: 0.8rem;
  word-break: break-all;
}

.codex-ticket-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.codex-ticket-actions button {
  min-height: 34px;
  padding: 0 10px;
}

.codex-delete-ticket {
  width: 36px;
  min-width: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  background: rgba(127, 29, 29, 0.08);
  border-color: rgba(127, 29, 29, 0.2);
  color: #7f1d1d;
}

.codex-delete-ticket svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.codex-column-limit {
  margin: 2px 0 0;
  font-size: 0.82rem;
}

.codex-column-toggle {
  width: 100%;
  margin-top: 2px;
}

.codex-resolution-console {
  min-height: 92px;
  max-height: 260px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid rgba(185, 151, 91, 0.24);
  background: #061426;
  color: #d8dee8;
  padding: 14px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.55;
}

.codex-resolution-console p {
  margin: 0 0 6px;
  color: #d8dee8;
}

.codex-resolution-console span {
  color: var(--gold);
  margin-right: 8px;
}

.codex-console-preview {
  display: block;
  margin: 6px 0 0 0;
  color: #9fb1c9;
  font-style: normal;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.system-config-shell {
  display: grid;
  gap: 14px;
}

.system-config-workbench {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.system-config-tabs {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 8px;
}

.system-config-tabs button {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(7, 26, 51, 0.12);
  border-radius: var(--card-radius);
  padding: 10px 12px;
  background: #ffffff;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
  overflow-wrap: anywhere;
}

.system-config-tabs button.active,
.system-config-tabs button:hover {
  border-color: rgba(185, 151, 91, 0.65);
  background: linear-gradient(135deg, #071a33, #102844);
  color: #fff4d7;
}

.system-config-stage {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.system-config-panel {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.system-config-tab-panel.hidden {
  display: none;
}

.visual-config-editor {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.config-card {
  min-width: 0;
  border: 1px solid #e4e9f2;
  border-radius: var(--card-radius);
  background: color-mix(in srgb, var(--white) 92%, var(--paper));
  padding: 14px;
  display: grid;
  gap: 12px;
  overflow: hidden;
}

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

.config-card h3,
.config-card h4 {
  margin: 0;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.config-card label,
.config-inline-label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
}

.config-card input,
.config-card textarea,
.config-card select {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  overflow-wrap: anywhere;
}

.config-card textarea {
  resize: vertical;
}

.config-list {
  display: grid;
  gap: 10px;
}

.config-list-item {
  min-width: 0;
  display: grid;
  gap: 8px;
  border: 1px solid #edf0f5;
  border-radius: var(--card-radius);
  background: #ffffff;
  padding: 10px;
  overflow: hidden;
}

.config-list-item-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.config-list-item-head h3,
.config-list-item-head h4 {
  min-width: 0;
}

.config-option-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.config-dynamic-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.config-dynamic-field-grid .wide {
  grid-column: 1 / -1;
}

.config-checkbox-label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.config-checkbox-label input {
  width: auto;
  min-height: 0;
}

.dynamic-response-control {
  width: 100%;
  max-width: 720px;
  display: grid;
  gap: 12px;
}

.dynamic-response-control label,
.dynamic-response-control legend {
  color: #eef3fb;
  font-weight: 820;
  overflow-wrap: anywhere;
}

.dynamic-response-control small {
  color: #c9d4e4;
  line-height: 1.4;
}

.dynamic-response-control input,
.dynamic-response-control textarea,
.dynamic-response-control select {
  width: 100%;
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.dynamic-response-control textarea {
  resize: vertical;
}

.dynamic-response-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.dynamic-response-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(215, 196, 158, 0.25);
  border-radius: var(--button-radius);
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.055);
}

.dynamic-response-options input {
  width: auto;
}

.dynamic-response-slider {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.dynamic-response-slider output {
  color: #fff4d7;
  font-size: 1.1rem;
  font-weight: 900;
  text-align: center;
}

.archetype-config-list {
  gap: 12px;
}

.archetype-config-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.archetype-config-fields {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.config-frame-preview {
  width: 148px;
  aspect-ratio: 1 / 1;
  display: block;
  position: relative;
  overflow: visible;
}

.config-frame-stage {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: visible;
  isolation: isolate;
  border-radius: 12px;
  background: rgba(7, 26, 51, 0.08);
}

.config-frame-photo,
.config-frame-placeholder {
  position: absolute;
  inset: 19%;
  width: 62%;
  height: 62%;
  z-index: 1;
  border-radius: 10px;
}

.config-frame-photo {
  object-fit: cover;
}

.config-frame-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #071a33, #17375d);
  color: #fff4d7;
  font-size: 16px;
  font-weight: 900;
}

.config-frame-image {
  position: absolute;
  inset: -6px;
  width: calc(100% + 12px);
  height: calc(100% + 12px);
  z-index: 10;
  display: block;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 0 10px rgba(7, 26, 51, 0.18));
}

.config-frame-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: end center;
  padding: 0 10px 12px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.system-frame-upload-row,
.system-config-ai-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.theme-token-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.theme-token-preview-item {
  min-width: 0;
  border: 1px solid #edf0f5;
  border-radius: var(--card-radius);
  padding: 10px;
  background: var(--white);
}

.theme-token-preview-item strong,
.theme-token-preview-item span {
  display: block;
  overflow-wrap: anywhere;
}

.theme-token-preview-item strong {
  color: var(--navy);
  font-size: 0.8rem;
}

.theme-token-preview-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
}

.theme-swatch {
  width: 100%;
  height: 34px;
  border: 1px solid #d8dee8;
  border-radius: var(--button-radius);
  margin-top: 8px;
}

.global-theme-modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 26, 51, 0.72);
  backdrop-filter: blur(10px);
}

.global-theme-card {
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(215, 196, 158, 0.34);
  border-radius: var(--card-radius);
  padding: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
}

.theme-changelog-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.45;
}

.theme-refine-box {
  display: grid;
  gap: 12px;
}

.theme-refine-box label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.danger-button {
  border-color: rgba(175, 42, 42, 0.48);
  background: #7a1f1f;
  color: #ffffff;
}

.danger-button:hover {
  background: #9f2c2c;
}

.system-config-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.codex-ticket-detail-card {
  max-width: min(920px, calc(100vw - 32px));
}

.codex-detail-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px 12px;
  margin: 16px 0;
}

.codex-detail-grid dt {
  color: var(--muted);
  font-weight: 800;
}

.codex-detail-grid dd {
  margin: 0;
  color: #f8fafc;
  word-break: break-word;
}

.codex-detail-instruction,
.codex-detail-code {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px;
  margin-top: 12px;
}

.codex-detail-code pre {
  max-height: 260px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d8dee8;
  margin: 10px 0 0;
}

.codex-ticket-content dl {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 4px 8px;
  margin: 10px 0 0;
  font-size: 0.86rem;
}

.codex-ticket-content dt {
  color: var(--muted);
  font-weight: 800;
}

.codex-ticket-content dd {
  margin: 0;
  word-break: break-all;
}

.codex-tour-overlay {
  display: block;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
}

.codex-tour-spotlight {
  position: fixed;
  border: 2px solid var(--gold);
  border-radius: 10px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.72), 0 0 34px rgba(185, 151, 91, 0.72);
  transition: all 0.18s ease;
}

.codex-tour-card {
  position: fixed;
  width: min(360px, calc(100vw - 32px));
  max-height: min(420px, calc(100vh - 32px));
  overflow: auto;
  border: 1px solid rgba(185, 151, 91, 0.42);
  border-radius: 10px;
  background: rgba(7, 26, 51, 0.96);
  color: #f8fafc;
  padding: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
  pointer-events: auto;
}

.codex-tour-card h2 {
  margin: 2px 0 10px;
  color: #fff;
}

.codex-tour-card p {
  color: #d8dee8;
}

#codexTourMessage {
  display: -webkit-box;
  max-height: 9rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.codex-tour-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.codex-tour-card button {
  width: 100%;
  border-color: var(--gold);
}

.codex-ticket-modal.hidden,
.codex-tour-overlay.hidden,
.codex-hover-box.hidden {
  display: none;
}

.founder-reset-panel {
  display: grid;
  gap: 16px;
}

.reset-preserve-box {
  border: 1px solid #e5d5b4;
  border-radius: 8px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 12px 14px;
  line-height: 1.45;
}

.command-preview {
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #071a33;
  color: #f8fafc;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.5;
}

.founder-reset-modal-card {
  width: min(900px, 96vw);
  border-color: rgba(185, 151, 91, 0.42);
  background: rgba(7, 26, 51, 0.97);
  color: #f8fafc;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.founder-reset-modal-card .modal-head {
  border-color: rgba(185, 151, 91, 0.26);
}

.founder-reset-modal-card h2 {
  color: #ffffff;
}

.founder-reset-modal-card .muted {
  color: #d8dee8;
}

.founder-reset-select-all,
.founder-reset-clean-files,
.founder-reset-group {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.founder-reset-select-all,
.founder-reset-clean-files {
  border: 1px solid rgba(185, 151, 91, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 12px;
}

.founder-reset-group-list {
  display: grid;
  gap: 10px;
  margin: 14px 0;
}

.founder-reset-group {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(185, 151, 91, 0.76);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  padding: 12px;
}

.founder-reset-group strong {
  display: block;
  color: #ffffff;
}

.founder-reset-group span {
  display: block;
  margin-top: 4px;
  color: #cbd5e1;
  line-height: 1.45;
}

.founder-reset-group input,
.founder-reset-select-all input,
.founder-reset-clean-files input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.founder-reset-modal-card .modal-actions {
  border-color: rgba(185, 151, 91, 0.22);
}

.training-shell {
  display: grid;
  gap: 18px;
}

.training-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.training-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(9, 31, 58, 0.12);
  border-radius: 8px;
  background: rgba(7, 26, 51, 0.06);
}

.training-tabs button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
}

.training-tabs button.active {
  border-color: rgba(185, 151, 91, 0.46);
  background: #071a33;
  color: #ffffff;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.training-module-workspace {
  display: grid;
  gap: 16px;
  border-color: rgba(185, 151, 91, 0.34);
  background: linear-gradient(145deg, rgba(7, 26, 51, 0.96), rgba(12, 34, 64, 0.94));
  color: #f8fafc;
}

.training-module-workspace.hidden {
  display: none;
}

.training-module-workspace-head,
.training-module-workspace-actions {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.training-module-workspace h2,
.training-module-workspace p {
  color: inherit;
}

.training-module-body {
  display: grid;
  gap: 14px;
}

.training-lesson-objective,
.training-lesson-content,
.training-lesson-progress,
.training-lesson-empty {
  border: 1px solid rgba(215, 196, 158, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 16px;
}

.training-lesson-content p {
  line-height: 1.65;
}

.training-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(9, 31, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 18px;
  box-shadow: 0 18px 45px rgba(7, 26, 51, 0.08);
}

.training-card.recommended {
  border-color: rgba(185, 151, 91, 0.54);
  box-shadow: 0 20px 55px rgba(185, 151, 91, 0.14);
}

.training-card header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.training-card h3 {
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.training-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.training-card header > strong {
  min-width: 54px;
  border-radius: 999px;
  background: #071a33;
  color: #ffffff;
  padding: 8px 10px;
  text-align: center;
}

.training-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(7, 26, 51, 0.12);
}

.training-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b9975b, #1f8f6d);
}

.training-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.training-meta span,
.training-reason {
  border: 1px solid rgba(185, 151, 91, 0.24);
  border-radius: 999px;
  background: rgba(185, 151, 91, 0.08);
  padding: 6px 10px;
  font-size: 0.82rem;
}

.training-reason {
  border-radius: 8px;
  color: #7a5a22;
}

.training-module-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.training-module-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(9, 31, 58, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.92);
  padding: 12px;
}

.training-module-list li.done {
  border-color: rgba(31, 143, 109, 0.28);
  background: rgba(31, 143, 109, 0.08);
}

.training-module-list li.open {
  align-items: start;
  border-color: rgba(185, 151, 91, 0.42);
}

.training-module-list li.is-locked {
  opacity: 0.72;
}

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

.training-module-list span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.training-module-list button {
  min-width: 104px;
}

.training-module-content {
  margin-top: 10px;
  border-top: 1px solid rgba(9, 31, 58, 0.08);
  padding-top: 10px;
}

.training-module-actions {
  display: grid;
  gap: 8px;
}

.training-module-actions .tag {
  justify-content: center;
}

.training-manager {
  display: grid;
  gap: 14px;
}

.hr-intervention-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.hr-intervention-lane {
  display: grid;
  align-content: start;
  gap: 12px;
  border: 1px solid rgba(9, 31, 58, 0.12);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.88);
  padding: 14px;
}

.hr-intervention-lane > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hr-intervention-lane > header span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.hr-intervention-lane > header strong {
  min-width: 36px;
  border-radius: 999px;
  background: #071a33;
  color: #fff;
  padding: 6px 9px;
  text-align: center;
}

.inline-check {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
}

.finance-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.finance-summary-card {
  border: 1px solid rgba(9, 31, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(7, 26, 51, 0.06);
}

.finance-summary-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-summary-card strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 1.2rem;
}

.finance-summary-card p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.35;
}

.onboarding-operacional-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
}

.onboarding-client-list,
.onboarding-bottleneck-list,
.onboarding-wave-list,
.onboarding-wave-tasks {
  display: grid;
  gap: 10px;
}

.onboarding-client-card,
.onboarding-wave-card,
.onboarding-bottleneck-card {
  border: 1px solid var(--line);
  border-radius: var(--card-radius);
  background: var(--surface-subtle);
  padding: 12px;
  box-shadow: var(--shadow-tight);
}

.onboarding-client-card header,
.onboarding-wave-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.onboarding-client-card h3,
.onboarding-wave-card h3 {
  margin: 0;
  color: var(--navy);
  font-size: 15px;
}

.onboarding-client-card header strong {
  color: var(--gold);
  font-size: 20px;
}

.onboarding-wave-card header strong {
  border: 1px solid #e5d5b4;
  border-radius: 999px;
  background: #fff8e8;
  color: #7a5a22;
  padding: 4px 9px;
  font-size: 11px;
  white-space: nowrap;
}

.onboarding-progress {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #edf0f5;
  overflow: hidden;
  margin: 10px 0 6px;
}

.onboarding-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #64b687);
}

.onboarding-wave-list {
  margin-top: 12px;
}

.onboarding-wave-tasks button {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 120px;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  width: 100%;
  text-align: left;
  border-color: #d7dde8;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.onboarding-wave-tasks button span,
.onboarding-wave-tasks button em,
.onboarding-bottleneck-card span,
.onboarding-bottleneck-card p {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.onboarding-wave-tasks button em {
  font-style: normal;
  text-align: right;
}

.onboarding-bottleneck-card {
  border-left: 4px solid var(--gold);
  display: grid;
  gap: 7px;
}

.onboarding-bottleneck-card.critical {
  border-left-color: #c2410c;
  background: var(--danger-soft);
}

.onboarding-bottleneck-card.warning,
.onboarding-bottleneck-card.paused {
  border-left-color: #b9975b;
  background: var(--warn-soft);
}

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

.war-room-shell,
.war-room-alert-list,
.pr-agenda-event-list {
  display: grid;
  gap: 12px;
}

.war-room-alert,
.pr-agenda-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 4px solid #b91c1c;
  border-radius: var(--card-radius);
  background: var(--surface-subtle);
  padding: 14px;
  box-shadow: var(--shadow-tight);
}

.war-room-alert.vetado,
.war-room-alert.vetoed {
  border-left-color: #6b7280;
  background: var(--surface-muted);
}

.war-room-alert.liberado,
.war-room-alert.resolvido {
  border-left-color: #15803d;
  background: var(--success-soft);
}

.war-room-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.war-room-monitor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.war-room-monitor-grid article {
  border: 1px solid rgba(185, 151, 91, 0.2);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.72);
  padding: 14px;
}

.war-room-monitor-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.war-room-alert-head,
.pr-agenda-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.war-room-alert h3,
.pr-agenda-card h3 {
  margin: 6px 0 0;
  color: var(--navy);
  font-size: 16px;
}

.war-room-alert p,
.pr-agenda-card p {
  margin: 0;
  color: var(--muted);
}

.war-room-match-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.war-room-match-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.35fr);
  gap: 10px;
  border: 1px solid rgba(185, 28, 28, 0.14);
  border-radius: 8px;
  background: rgba(185, 28, 28, 0.06);
  padding: 10px;
}

.war-room-match-list span {
  color: #8a1f1f;
  font-size: 12px;
  text-align: right;
}

.tag.danger {
  border-color: rgba(185, 28, 28, 0.2);
  background: rgba(185, 28, 28, 0.08);
  color: #8a1f1f;
}

.pr-agenda-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.42fr) minmax(0, 0.58fr);
  gap: 14px;
}

.pr-agenda-form {
  display: grid;
  gap: 12px;
}

.pr-agenda-advanced {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(9, 31, 58, 0.1);
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.84);
  padding: 10px;
}

.pr-agenda-advanced summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--navy);
}

.pr-agenda-advanced[open] {
  padding: 12px;
}

.pr-agenda-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.pr-agenda-form input,
.pr-agenda-form select,
.pr-agenda-form textarea {
  width: 100%;
}

.pr-agenda-day-group {
  display: grid;
  gap: 10px;
}

.pr-agenda-day-group > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(9, 31, 58, 0.1);
  padding-bottom: 8px;
}

.pr-agenda-day-group > header span {
  color: var(--navy);
  font-weight: 900;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  padding: 0 14px;
  text-decoration: none;
  font-weight: 800;
}

@media (max-width: 980px) {
  .codex-vision-intro,
  .codex-ticket-flow,
  .codex-ticket-item {
    grid-template-columns: 1fr;
  }

  .codex-vision-intro {
    flex-direction: column;
    align-items: stretch;
  }

  .codex-vision-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .integration-health-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .integration-health-hero-actions {
    justify-content: flex-start;
  }

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

  .integration-health-card,
  .integration-health-toolbar,
  .integration-health-actions {
    align-items: stretch;
    justify-content: flex-start;
  }

  .integration-health-card {
    flex-direction: column;
  }

  .integration-health-actions {
    flex-direction: column;
  }

  .health-status,
  .integration-health-actions button {
    width: 100%;
    justify-content: center;
  }

  .nolab-upload-console {
    grid-template-columns: 1fr;
  }

  .nolab-memory-upload {
    border-left: 0;
    border-top: 1px solid rgba(215, 196, 158, 0.14);
    padding-left: 0;
    padding-top: 14px;
  }

  .nolab-day-hero strong {
    font-size: 26px;
  }

  .training-toolbar,
  .training-card header,
  .training-module-list li,
  .onboarding-operacional-grid,
  .onboarding-wave-tasks button,
  .pr-agenda-grid,
  .war-room-match-list li {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .training-tabs,
  .training-tabs button,
  .training-module-list button {
    width: 100%;
  }
}
