:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --surface-muted: #f1f4f2;
  --ink: #1e2421;
  --muted: #68716d;
  --line: #d9dfdc;
  --primary: #f3c316;
  --primary-strong: #d7a900;
  --primary-ink: #201900;
  --accent: #c79300;
  --warning: #b26a00;
  --danger: #a63d40;
  --success: #25764b;
  --shadow: 0 14px 32px rgba(33, 42, 38, 0.09);
  --radius: 8px;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="dark"] {
  --bg: #111312;
  --surface: #181c1a;
  --surface-muted: #232925;
  --ink: #f4f5f2;
  --muted: #aab2ad;
  --line: #303832;
  --primary: #f3c316;
  --primary-strong: #ffd84b;
  --primary-ink: #201900;
  --accent: #f3c316;
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
}

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

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.app {
  min-height: 100vh;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 247, 244, 0.98)),
    repeating-linear-gradient(90deg, rgba(243, 195, 22, 0.12) 0, rgba(243, 195, 22, 0.12) 1px, transparent 1px, transparent 88px);
}

[data-theme="dark"] .login-shell {
  background:
    linear-gradient(180deg, rgba(17, 19, 18, 0.84), rgba(17, 19, 18, 0.98)),
    repeating-linear-gradient(90deg, rgba(243, 195, 22, 0.11) 0, rgba(243, 195, 22, 0.11) 1px, transparent 1px, transparent 88px);
}

.login-panel {
  width: min(100%, 460px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.login-splash-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 26px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 7%, rgba(162, 203, 255, 0.24), transparent 32%),
    radial-gradient(circle at 50% 62%, rgba(120, 162, 210, 0.18), transparent 38%),
    linear-gradient(180deg, #02070d 0%, #07111d 48%, #02060b 100%);
  color: #ffffff;
}

.login-splash-card {
  width: min(100%, 920px);
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  animation: splashFadeIn 420ms ease both;
}

.login-splash-logo {
  width: min(82vw, 760px);
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58), 0 0 80px rgba(96, 165, 250, 0.18);
}

.login-splash-copy {
  display: grid;
  gap: 4px;
}

.login-splash-copy span {
  color: #facc15;
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-splash-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 950;
}

.login-splash-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.78);
  font-weight: 800;
}

.login-splash-loader {
  width: min(76vw, 420px);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.login-splash-loader span {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #facc15, #60a5fa);
  animation: splashLoad 1.25s ease-in-out infinite;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashLoad {
  0% {
    transform: translateX(-110%);
  }

  100% {
    transform: translateX(235%);
  }
}

.public-lead-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 247, 244, 0.98)),
    repeating-linear-gradient(90deg, rgba(243, 195, 22, 0.1) 0, rgba(243, 195, 22, 0.1) 1px, transparent 1px, transparent 92px);
}

[data-theme="dark"] .public-lead-shell {
  background:
    linear-gradient(180deg, rgba(17, 19, 18, 0.88), rgba(17, 19, 18, 0.98)),
    repeating-linear-gradient(90deg, rgba(243, 195, 22, 0.12) 0, rgba(243, 195, 22, 0.12) 1px, transparent 1px, transparent 92px);
}

.public-lead-panel {
  width: min(100%, 620px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.public-lead-copy {
  margin: 20px 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-lead-form {
  display: grid;
  gap: 16px;
}

.brand-row,
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary);
  border: 1px solid rgba(243, 195, 22, 0.45);
  border-radius: var(--radius);
  background: rgba(243, 195, 22, 0.11);
}

.brand-logo {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  display: block;
  object-fit: cover;
  object-position: center 48%;
  border: 1px solid rgba(243, 195, 22, 0.45);
  border-radius: var(--radius);
  background: #111312;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.login-panel .brand-logo {
  width: 56px;
  height: 56px;
}

.brand-copy h1,
.brand-copy h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.auth-step-heading {
  display: grid;
  gap: 8px;
}

.auth-step-heading h2,
.auth-step-heading p {
  margin: 0;
}

.auth-step-heading p {
  color: var(--muted);
  line-height: 1.5;
}

.auth-summary-row,
.auth-secret-box {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

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

.auth-summary-row span,
.auth-secret-box span {
  color: var(--muted);
  font-size: 0.86rem;
}

.auth-secret-box strong,
.auth-development-code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
}

.auth-development-code {
  margin: 8px 0 4px;
  font-size: 1.35rem;
  font-weight: 900;
}

.field {
  display: grid;
  gap: 7px;
}

.field span,
.fieldset-title {
  color: var(--ink);
  font-weight: 650;
  font-size: 0.88rem;
}

.field input,
.field select,
.field textarea,
.filter,
.date-input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
  outline: none;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.filter:focus,
.date-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 195, 22, 0.22);
}

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

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

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  color: var(--ink);
}

.checkbox-row input {
  width: 18px;
  height: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 13px;
  text-decoration: none;
  font-weight: 650;
  white-space: nowrap;
}

button.is-loading {
  opacity: 0.65;
  pointer-events: none;
  cursor: wait;
}

button.is-loading::after {
  content: " ...";
}

input.is-loading,
select.is-loading,
textarea.is-loading {
  opacity: 0.72;
  cursor: wait;
}

.app-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
  font-weight: 800;
}

.app-toast[data-tone="success"] {
  background: #14532d;
}

.app-toast[data-tone="error"] {
  background: #7f1d1d;
}

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

.app-error-box {
  margin: 12px 24px 0;
  padding: 12px 14px;
  border: 1px solid #ef4444;
  border-radius: 8px;
  color: #7f1d1d;
  background: #fee2e2;
  font-weight: 800;
}

:root[data-theme="dark"] .app-error-box {
  color: #fecaca;
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(248, 113, 113, 0.55);
}

.notification-bell {
  position: relative;
}

.notification-dot {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  color: #ffffff;
  background: var(--danger);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.notification-panel {
  position: fixed;
  top: 78px;
  right: 22px;
  z-index: 45;
  width: min(430px, calc(100vw - 32px));
  max-height: calc(100vh - 100px);
  overflow: auto;
  display: grid;
  gap: 12px;
  box-shadow: var(--shadow);
}

.notification-prompt {
  margin: 14px 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(243, 195, 22, 0.42);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, #f3c316);
}

.notification-prompt p {
  margin: 3px 0 0;
}

.drawer-header.compact {
  margin-bottom: 0;
}

.notification-settings-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.reminder-item {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.reminder-item.due {
  border-color: rgba(243, 195, 22, 0.62);
  box-shadow: inset 4px 0 0 var(--primary);
}

.reminder-item p {
  margin: 4px 0;
}

.cna-final-week-panel {
  display: grid;
  gap: 16px;
}

.cna-final-week-panel.locked {
  border-color: rgba(124, 58, 237, 0.28);
}

.cna-final-week-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cna-final-week-head p {
  margin: 4px 0 0;
}

.cna-final-week-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.cna-final-week-day {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.cna-final-week-day.ready {
  border-color: rgba(34, 197, 94, 0.38);
}

.cna-final-week-day.today {
  border-color: rgba(243, 195, 22, 0.58);
  box-shadow: inset 4px 0 0 var(--primary);
}

.cna-final-week-day.attention {
  border-color: rgba(239, 68, 68, 0.42);
}

.cna-final-week-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.cna-final-week-day-head span,
.cna-final-week-needed > span,
.cna-final-week-focus > span,
.cna-final-week-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.cna-final-week-day h3 {
  margin: 0;
  font-size: 1rem;
}

.cna-final-week-day p {
  margin: 0;
  color: var(--muted);
}

.cna-final-week-needed,
.cna-final-week-focus {
  display: grid;
  gap: 4px;
}

.cna-final-week-needed ul,
.cna-final-week-focus ul {
  margin: 0;
  padding-left: 18px;
}

.cna-final-week-needed strong {
  color: var(--success);
}

.cna-final-week-meta {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.btn:hover {
  border-color: #aeb9b4;
  background: var(--surface-muted);
}

.btn.primary {
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.btn.primary:hover {
  background: var(--primary-strong);
}

.btn.danger {
  color: var(--danger);
  border-color: rgba(166, 61, 64, 0.35);
}

.btn.danger:hover {
  background: #fff3f3;
}

.btn.ghost {
  background: transparent;
  border-color: transparent;
}

.btn.icon-only {
  width: 40px;
  padding: 0;
}

.btn.small {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 0.88rem;
}

.theme-options {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-muted);
}

.theme-options .btn {
  border-color: transparent;
  background: transparent;
}

.theme-options .btn.primary {
  background: var(--primary);
  border-color: var(--primary);
}

.form-note,
.empty,
.login-hint {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.login-hint {
  margin: 18px 0 0;
}

.error {
  color: var(--danger);
  min-height: 20px;
  font-size: 0.9rem;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

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

.nav-button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  padding: 8px 10px;
  text-align: left;
}

.nav-button svg {
  width: 18px;
  height: 18px;
}

.nav-button:hover,
.nav-button.active {
  background: var(--surface-muted);
  border-color: var(--line);
}

.nav-button.active {
  color: var(--accent);
  font-weight: 750;
}

.nav-badge {
  min-width: 22px;
  min-height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  color: #fff;
  background: var(--danger);
  font-size: 0.74rem;
  font-weight: 800;
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.user-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
}

.user-chip strong {
  color: var(--ink);
}

.sidebar-profile {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  background: transparent;
}

.profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.avatar-wrapper {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.profile-avatar {
  width: 42px;
  height: 42px;
  display: block;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
  background: #f3f4f6;
}

.profile-avatar.large {
  width: 56px;
  height: 56px;
}

.avatar-edit-btn {
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  border: 1px solid var(--surface);
  background: var(--primary);
  color: #111827;
  font-size: 13px;
  line-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
  font-weight: 900;
}

.avatar-edit-btn:hover {
  background: var(--primary-strong);
}

.profile-info {
  min-width: 0;
}

.profile-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.profile-role {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.sign-out-btn {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.sign-out-btn:hover {
  background: var(--surface-muted);
}

.avatar-draft-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mission-user-panel {
  display: grid;
  gap: 14px;
}

.mission-user-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.content {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-brand {
  display: none;
}

.templates-shell-topbar {
  display: none;
}

.page {
  padding: 22px;
  display: grid;
  gap: 18px;
}

.page.marketing-page {
  padding: 0;
  gap: 0;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.page-title {
  margin: 0;
  font-size: 1.48rem;
  line-height: 1.2;
}

.page-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.actions,
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar {
  justify-content: space-between;
}

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

.summary-card,
.panel,
.table-panel,
.notice,
.record-card,
.form-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(33, 42, 38, 0.04);
}

.summary-card {
  padding: 15px;
  min-height: 108px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.summary-label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.summary-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.1;
}

.summary-foot {
  color: var(--muted);
  font-size: 0.84rem;
}

.summary-card.warn {
  border-color: rgba(178, 106, 0, 0.35);
  background: color-mix(in srgb, var(--surface) 86%, #f3c316);
}

.summary-card.danger {
  border-color: rgba(166, 61, 64, 0.28);
  background: color-mix(in srgb, var(--surface) 88%, #a63d40);
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.panel {
  padding: 16px;
  min-width: 0;
}

.panel-title {
  margin: 0 0 12px;
  font-size: 1rem;
  line-height: 1.25;
}

.stack {
  display: grid;
  gap: 10px;
}

.module-status-single {
  display: grid;
  max-width: 980px;
}

.module-status-hero {
  display: grid;
  gap: 14px;
}

.module-status-hero h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.module-status-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.module-status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.module-area {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.command-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: rgba(243, 195, 22, 0.38);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 88%, #f3c316));
}

.command-hero-panel h2 {
  margin: 6px 0;
  font-size: clamp(1.45rem, 2.7vw, 2.3rem);
}

.command-hero-panel p,
.command-agent-card p,
.command-list-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.command-readiness-meter {
  width: 132px;
  height: 132px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 12px solid rgba(243, 195, 22, 0.46);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-readiness-meter strong {
  font-size: 2.25rem;
  line-height: 1;
}

.command-readiness-meter span {
  margin-top: -34px;
  color: var(--muted);
  font-weight: 800;
}

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

.command-agent-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.command-agent-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.command-list,
.command-flow {
  display: grid;
  gap: 10px;
}

.command-list-row,
.command-flow > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.list-row {
  display: grid;
  gap: 5px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.list-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-row:last-child {
  padding-bottom: 0;
}

.row-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.row-main strong,
.record-title {
  overflow-wrap: anywhere;
}

.meta {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--surface-muted);
  color: #45504b;
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}

.pill.green,
.status-working,
.status-key-present,
.status-schema-present,
.status-paid,
.status-active,
.status-completed,
.status-on-track,
.status-approved,
.status-delivered,
.status-closed-won,
.status-active-client {
  color: #16623f;
  background: #e9f7ef;
}

.pill.blue,
.status-coming-soon,
.status-admin-only,
.status-separated,
.status-pending,
.status-in-progress,
.status-ready-to-start,
.status-sent,
.status-interested,
.status-demo-scheduled,
.status-proposal-sent,
.status-contacted {
  color: #245f9f;
  background: #eaf3ff;
}

.pill.amber,
.status-partial,
.status-setup-required,
.status-protected,
.status-needs-review,
.status-waiting,
.status-at-risk,
.status-waiting-on-customer,
.status-discovery,
.status-draft,
.status-paused,
.status-review,
.status-cancel-soon,
.status-overdue,
.status-new-lead {
  color: #8a5200;
  background: #fff4df;
}

.pill.red,
.status-missing,
.status-key-missing,
.status-schema-missing,
.status-denied,
.status-behind,
.status-cancelled,
.status-cancel,
.status-void,
.status-closed-lost,
.status-cancelled-client {
  color: #933436;
  background: #ffecec;
}

.status-overdue {
  color: #933436;
  background: #ffecec;
}

.lead-source-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  margin-bottom: 3px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  border: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink);
}

.source-website {
  color: #164e63;
  background: #e6f7fb;
  border-color: #bae6fd;
}

.source-meta {
  color: #1d4ed8;
  background: #eaf2ff;
  border-color: #bfdbfe;
}

.source-tiktok {
  color: #831843;
  background: #ffe8f1;
  border-color: #fbcfe8;
}

.progress {
  width: 100%;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4e9e6;
}

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

.progress.warn span {
  background: var(--warning);
}

.progress.danger span {
  background: var(--danger);
}

.table-panel {
  overflow: hidden;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  font-weight: 800;
  background: var(--surface-muted);
}

td {
  color: var(--ink);
}

tr:last-child td {
  border-bottom: 0;
}

.cell-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.form-panel {
  padding: 16px;
}

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

.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: stretch end;
  background: rgba(18, 23, 21, 0.42);
}

.drawer-panel {
  width: min(100%, 620px);
  height: 100%;
  background: var(--surface);
  overflow-y: auto;
  padding: 20px;
  box-shadow: -18px 0 34px rgba(20, 28, 24, 0.22);
}

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

.drawer-title {
  margin: 0;
  font-size: 1.15rem;
}

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

.record-card {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.record-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.record-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.record-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.mission-control {
  --mission-bg: #071014;
  --mission-surface: #0d171d;
  --mission-surface-2: #111d24;
  --mission-line: rgba(182, 198, 209, 0.18);
  --mission-ink: #f4f7f7;
  --mission-muted: #aab5bd;
  --mission-red: #ef4444;
  --mission-green: #3fc56c;
  color: var(--mission-ink);
  background:
    linear-gradient(180deg, rgba(9, 18, 23, 0.98), rgba(6, 13, 17, 0.99)),
    radial-gradient(circle at 50% 0, rgba(243, 195, 22, 0.12), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 0;
  min-height: calc(100vh - 68px);
}

[data-theme="light"] .mission-control {
  --mission-bg: #f6f7f4;
  --mission-surface: #ffffff;
  --mission-surface-2: #f0f3f1;
  --mission-line: rgba(81, 96, 90, 0.22);
  --mission-ink: #1e2421;
  --mission-muted: #68716d;
  --mission-red: #a63d40;
  --mission-green: #25764b;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 247, 244, 0.98)),
    radial-gradient(circle at 50% 0, rgba(243, 195, 22, 0.12), transparent 34%);
  border-color: rgba(81, 96, 90, 0.12);
}

.mission-control .page-title,
.mission-control .page-subtitle,
.mission-control .meta,
.mission-control .goal-description,
.mission-control .mission-owner-line,
.mission-control .mission-milestone-line {
  color: inherit;
}

.mission-control .page-subtitle,
.mission-control .meta,
.mission-control .goal-description,
.mission-control .mission-owner-line,
.mission-control .mission-milestone-line,
.mission-control .mission-metric-foot,
.mission-control .mission-inline-meta,
.mission-control .mission-report-row p {
  color: var(--mission-muted);
}

.mission-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--mission-line);
}

.mission-topbar-compact {
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 16px;
}

.mission-header-actions,
.mission-inline-meta,
.mission-view-controls,
.mission-panel-head,
.mission-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.mission-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(243, 195, 22, 0.1);
  border: 1px solid rgba(243, 195, 22, 0.32);
}

.mission-date {
  padding: 9px 14px;
  color: var(--mission-ink);
  border-right: 1px solid var(--mission-line);
}

.mission-add {
  min-width: 116px;
}

.mission-type-tabs {
  display: flex;
  gap: 10px;
  margin: 20px 0 4px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.mission-type-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--mission-ink);
  border: 1px solid var(--mission-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.mission-type-tab strong {
  min-width: 24px;
  padding: 2px 7px;
  color: #071014;
  border-radius: 999px;
  background: rgba(243, 195, 22, 0.88);
}

.mission-type-tab.active {
  color: #071014;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 10px 30px rgba(243, 195, 22, 0.24);
}

.mission-type-tab.active strong {
  color: var(--mission-ink);
  background: rgba(7, 16, 20, 0.78);
}

.mission-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}

.mission-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--mission-line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    var(--mission-surface);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.2);
}

.mission-metric-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
  color: var(--primary);
  background: rgba(243, 195, 22, 0.12);
  border: 1px solid rgba(243, 195, 22, 0.22);
}

.mission-metric.blue .mission-metric-icon {
  color: #77a7ff;
  background: rgba(46, 93, 211, 0.22);
}

.mission-metric.green .mission-metric-icon {
  color: var(--mission-green);
  background: rgba(63, 197, 108, 0.18);
}

.mission-metric.purple .mission-metric-icon {
  color: #c678ff;
  background: rgba(150, 72, 206, 0.2);
}

.mission-metric-label {
  color: var(--mission-muted);
  line-height: 1.35;
}

.mission-metric strong {
  display: block;
  margin: 5px 0;
  font-size: 1.75rem;
}

.mission-board {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr);
  gap: 24px;
  align-items: start;
}

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

.mission-section-head h2 {
  margin: 0;
  font-size: 1.35rem;
}

.mission-section-head p,
.mission-panel-head p {
  margin: 4px 0 0;
  color: var(--mission-muted);
  font-size: 0.9rem;
}

.mission-control .filter,
.mission-control .btn:not(.primary):not(.danger) {
  color: var(--mission-ink);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--mission-line);
}

[data-theme="light"] .mission-control .filter,
[data-theme="light"] .mission-control .btn:not(.primary):not(.danger) {
  background: rgba(255, 255, 255, 0.78);
}

.mission-control .btn:not(.primary):not(.danger):hover {
  background: rgba(255, 255, 255, 0.08);
}

.mission-goal-list,
.mission-side-column {
  display: grid;
  gap: 16px;
}

.mission-goal-card,
.mission-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mission-line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--mission-surface);
  box-shadow: 0 24px 40px rgba(0, 0, 0, 0.24);
}

.mission-goal-card {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.mission-goal-card.behind,
.mission-goal-card.overdue {
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.28), 0 24px 40px rgba(0, 0, 0, 0.24);
}

.mission-goal-card.at-risk {
  border-color: rgba(243, 195, 22, 0.55);
}

.mission-goal-card.selected {
  box-shadow: 0 0 0 1px rgba(243, 195, 22, 0.42), 0 24px 40px rgba(0, 0, 0, 0.24);
}

.mission-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: start;
  padding: 11px 0 0 13px;
  color: #071014;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary) 0 50%, transparent 51%);
}

.mission-goal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
}

.mission-control .goal-title {
  margin: 0 0 8px;
  color: var(--mission-ink);
  font-size: 1.18rem;
  letter-spacing: 0;
}

.mission-inline-meta {
  margin-top: 14px;
}

.mission-inline-meta span:not(.status-pill) {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.mission-inline-meta span:last-child {
  color: var(--mission-red);
  font-weight: 800;
}

.mission-type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: #071014;
  font-weight: 850;
  border-radius: 999px;
  background: var(--primary);
}

.mission-type-badge.student {
  background: #91c4ff;
}

.mission-type-badge.career {
  background: #c4a0ff;
}

.mission-type-badge.business {
  background: #f3c316;
}

.mission-type-badge.health {
  background: #74df9b;
}

.mission-type-badge.finance {
  background: #8ddfcf;
}

.mission-type-badge.skill {
  background: #f6a76a;
}

.mission-type-badge.personal-growth {
  background: #f2a7d2;
}

.mission-type-badge.creative {
  background: #ffc978;
}

.mission-progress-ring {
  --pct: 0%;
  width: 132px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--mission-surface) 0 58%, transparent 59%),
    conic-gradient(var(--primary) var(--pct), rgba(255, 255, 255, 0.22) 0);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.mission-progress-ring strong {
  font-size: 1.9rem;
  line-height: 1;
}

.mission-progress-ring span {
  color: var(--mission-muted);
  font-size: 0.86rem;
}

.mission-card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(132px, 0.75fr));
  gap: 12px;
}

.mission-mini-card {
  display: grid;
  gap: 8px;
  min-height: 116px;
  padding: 16px;
  border: 1px solid var(--mission-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.028);
}

.mission-mini-card.mission-box {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
}

.mission-mini-card strong {
  color: var(--mission-ink);
}

.mission-mini-card > strong {
  color: var(--primary);
  font-size: 1.7rem;
}

.mission-control .mission-box {
  background: rgba(255, 255, 255, 0.028);
}

.today-mission-card {
  gap: 14px;
}

.today-mission-card > strong {
  color: var(--primary);
  font-size: 1.28rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.today-mission-card .cell-actions {
  align-items: flex-start;
}

[data-theme="light"] .mission-mini-card,
[data-theme="light"] .mission-control .mission-box,
[data-theme="light"] .mission-roadmap-row,
[data-theme="light"] .mission-report-row {
  background: rgba(246, 247, 244, 0.72);
}

.mission-health,
.mission-owner-line {
  color: var(--mission-muted);
  border-top: 1px solid var(--mission-line);
  padding-top: 12px;
}

.mission-action-row .btn {
  min-width: 132px;
}

.mission-panel {
  padding: 18px;
}

.mission-tip-panel {
  display: grid;
  gap: 8px;
  border-color: rgba(243, 195, 22, 0.36);
  background:
    linear-gradient(135deg, rgba(243, 195, 22, 0.12), rgba(255, 255, 255, 0.02)),
    var(--mission-surface);
}

.mission-tip-panel strong {
  color: var(--mission-ink);
  line-height: 1.5;
}

.mission-panel-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.mission-panel-head h2 {
  margin: 0;
  font-size: 1.12rem;
}

.mission-panel-head h2 span {
  color: var(--mission-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.mission-roadmap-list,
.mission-report-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--mission-line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mission-roadmap-row,
.mission-report-row {
  display: grid;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--mission-line);
  background: rgba(255, 255, 255, 0.018);
}

.mission-roadmap-row:first-child,
.mission-report-row:first-child {
  border-top: 0;
}

.mission-roadmap-row {
  grid-template-columns: auto 24px minmax(0, 1fr) auto;
}

.mission-roadmap-row input {
  width: 21px;
  height: 21px;
  accent-color: var(--primary);
}

.mission-roadmap-row.done input {
  accent-color: var(--mission-green);
}

.mission-roadmap-row.done .mission-step-number {
  color: var(--mission-green);
}

.mission-roadmap-row strong {
  overflow-wrap: anywhere;
}

.mission-drag {
  color: var(--mission-muted);
}

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

.mission-report-row p {
  margin: 4px 0 0;
  font-size: 0.86rem;
}

.mission-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--mission-green);
}

.btn.linklike {
  margin-top: 12px;
  padding-left: 0;
  padding-right: 0;
  color: var(--primary) !important;
  background: transparent !important;
  border-color: transparent !important;
  justify-content: flex-start;
}

.template-page {
  gap: 18px;
  background: #ffffff;
}

[data-theme="dark"] .template-page {
  background: #0e1518;
}

.template-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: -22px -22px 2px;
  padding: 16px 22px;
  border-bottom: 1px solid #e5e8e5;
  background: #ffffff;
}

[data-theme="dark"] .template-top-strip {
  border-bottom-color: #263238;
  background: #11191c;
}

.template-mode-group,
.template-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.template-mode-button {
  min-height: 34px;
  padding: 0 16px;
  border: 1px solid #dde2df;
  border-radius: 7px;
  color: #17201b;
  background: #ffffff;
  font-weight: 800;
}

.template-mode-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

[data-theme="dark"] .template-mode-button {
  color: #f5f7f5;
  border-color: #2d373b;
  background: #172126;
}

.template-date-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #46524d;
  background: #f2f4f1;
  font-size: 0.82rem;
  font-weight: 800;
}

[data-theme="dark"] .template-date-chip {
  color: #b7c2bd;
  background: #1d292d;
}

.template-date {
  color: #111714;
  font-size: 0.92rem;
  font-weight: 750;
}

[data-theme="dark"] .template-date {
  color: #f3f6f4;
}

.template-new-mission {
  min-width: 148px;
}

.template-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 520px);
  gap: 28px;
  align-items: end;
}

.template-title-block {
  display: grid;
  gap: 12px;
}

.template-page .page-title {
  color: #17201b;
  font-size: 1.58rem;
  font-weight: 900;
}

.template-page .page-subtitle {
  color: #52605a;
}

[data-theme="dark"] .template-page .page-title {
  color: #f7f9f8;
}

[data-theme="dark"] .template-page .page-subtitle {
  color: #aeb9b4;
}

.premium-banner {
  min-height: 122px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 20px;
  color: #231b00;
  border: 1px solid rgba(221, 171, 28, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #fffdf7, #fff5d9);
  box-shadow: 0 10px 26px rgba(82, 64, 0, 0.05);
}

[data-theme="dark"] .premium-banner {
  color: #fff7cf;
  border-color: rgba(243, 195, 22, 0.34);
  background: linear-gradient(135deg, #161f22, #241f12);
}

.premium-banner-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--primary);
}

.premium-banner h2 {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 900;
}

.premium-banner p {
  margin: 0 0 10px;
  color: #58645f;
  font-size: 0.88rem;
  line-height: 1.45;
}

[data-theme="dark"] .premium-banner p {
  color: #b7c0bc;
}

.premium-kicker,
.premium-badge,
.free-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 850;
}

.premium-kicker,
.premium-badge {
  color: #201900;
  background: rgba(243, 195, 22, 0.88);
}

.free-badge {
  color: #0d3b22;
  background: rgba(63, 197, 108, 0.18);
}

.template-controls {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(190px, 250px);
  gap: 14px;
  margin-top: 4px;
}

.template-search-field {
  position: relative;
  display: block;
}

.template-search-field input,
.template-category-select select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe5e1;
  border-radius: 7px;
  background: #ffffff;
  color: #17201b;
  padding: 9px 42px 9px 14px;
  outline: none;
}

[data-theme="dark"] .template-search-field input,
[data-theme="dark"] .template-category-select select {
  color: #f7f9f8;
  border-color: #2d383d;
  background: #141f23;
}

.template-search-field input:focus,
.template-category-select select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(243, 195, 22, 0.18);
}

.template-search-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 2px solid #c5cec9;
  border-radius: 50%;
  transform: translateY(-54%);
}

.template-search-icon::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 7px;
  height: 2px;
  border-radius: 999px;
  background: #c5cec9;
  transform: rotate(45deg);
}

.template-category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 16px 0 2px;
  border-top: 1px solid #edf0ed;
}

.template-category {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 20px;
  color: #17201b;
  border: 1px solid #dfe5e1;
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
}

[data-theme="dark"] .template-category {
  color: #f7f9f8;
  border-color: #2d383d;
  background: #141f23;
}

.template-category.active {
  color: var(--primary-ink);
  border-color: var(--primary);
  background: var(--primary);
}

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

.template-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  min-height: 310px;
  border: 1px solid #e1e6e2;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 38, 35, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.template-card:hover {
  transform: translateY(-2px);
  border-color: rgba(199, 147, 0, 0.34);
  box-shadow: 0 16px 30px rgba(31, 38, 35, 0.12);
}

[data-theme="dark"] .template-card {
  border-color: #2a363b;
  background: #162226;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22);
}

.template-art {
  position: relative;
  min-height: 132px;
  overflow: hidden;
  color: #071014;
  background: linear-gradient(135deg, #f8e8b0, #fff6d8);
}

.template-art.student { background: linear-gradient(135deg, #d7c7ff, #f2edff); }
.template-art.career { background: linear-gradient(135deg, #cceee3, #f2fbf8); }
.template-art.business { background: linear-gradient(135deg, #4ba6ff, #d9efff); }
.template-art.health { background: linear-gradient(135deg, #ffe0e7, #fff1f4); }
.template-art.finance { background: linear-gradient(135deg, #fff0ba, #fff9e5); }
.template-art.skill { background: linear-gradient(135deg, #cfe0e5, #f3f8f9); }
.template-art.personal-growth { background: linear-gradient(135deg, #ead9ff, #fbf7ff); }
.template-art.creative { background: linear-gradient(135deg, #ffe3c4, #fff7ec); }

.template-card-tag {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  min-height: 22px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 6px;
  color: #ffffff;
  background: #8a6df2;
  font-size: 0.72rem;
  font-weight: 900;
}

.template-card-tag.best-seller {
  background: #1da34a;
}

.template-card-tag.premium {
  color: #201900;
  background: var(--primary);
}

.template-kebab {
  position: absolute;
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 7px;
  color: #5b6660;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 950;
}

[data-theme="dark"] .template-kebab {
  color: #e8eee9;
  background: rgba(15, 23, 26, 0.72);
}

.template-scene {
  position: absolute;
  inset: 0;
}

.scene-piece {
  position: absolute;
  display: block;
}

.template-scene.student .one {
  left: 74px;
  top: 70px;
  width: 98px;
  height: 16px;
  border-radius: 4px;
  background: #503173;
  box-shadow: 0 -18px 0 #f3c316, 0 -36px 0 #7350a5;
  transform: skewX(-14deg);
}

.template-scene.student .two {
  left: 104px;
  top: 24px;
  width: 62px;
  height: 28px;
  background: #20242b;
  transform: rotate(-20deg) skewX(-10deg);
}

.template-scene.student .three {
  left: 130px;
  top: 50px;
  width: 7px;
  height: 24px;
  background: #20242b;
}

.template-scene.career .one {
  left: 90px;
  top: 48px;
  width: 92px;
  height: 58px;
  border-radius: 7px;
  background: #2c4547;
  box-shadow: inset 0 -16px 0 rgba(0, 0, 0, 0.18);
}

.template-scene.career .two {
  left: 116px;
  top: 34px;
  width: 38px;
  height: 22px;
  border: 6px solid #223638;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.template-scene.career .three {
  left: 190px;
  top: 72px;
  width: 64px;
  height: 38px;
  border-radius: 4px;
  background: #fffaf0;
  transform: rotate(14deg);
}

.template-scene.business .one {
  left: 110px;
  top: 25px;
  width: 46px;
  height: 92px;
  border-radius: 28px 28px 8px 8px;
  background: #ffffff;
  transform: rotate(42deg);
  box-shadow: inset 0 0 0 8px #2b4d74;
}

.template-scene.business .two {
  left: 123px;
  top: 42px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #88c9ff;
  transform: rotate(42deg);
}

.template-scene.business .three {
  left: 70px;
  top: 96px;
  width: 90px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.template-scene.health .one {
  left: 94px;
  top: 34px;
  width: 76px;
  height: 76px;
  border-radius: 42px 42px 12px 42px;
  background: #ef4f82;
  transform: rotate(45deg);
}

.template-scene.health .two,
.template-scene.health .three {
  top: 82px;
  width: 78px;
  height: 12px;
  border-radius: 999px;
  background: #2a2326;
}

.template-scene.health .two { left: 36px; }
.template-scene.health .three { right: 36px; }

.template-scene.finance .one {
  left: 46px;
  bottom: 28px;
  width: 34px;
  height: 56px;
  border-radius: 7px 7px 0 0;
  background: #f3c316;
}

.template-scene.finance .two {
  left: 94px;
  bottom: 28px;
  width: 34px;
  height: 82px;
  border-radius: 7px 7px 0 0;
  background: #f1a82e;
}

.template-scene.finance .three {
  left: 148px;
  bottom: 28px;
  width: 36px;
  height: 108px;
  border-radius: 7px 7px 0 0;
  background: #ffcb45;
}

.template-scene.finance .four {
  left: 54px;
  top: 28px;
  width: 112px;
  height: 5px;
  border-radius: 999px;
  background: #f1a82e;
  transform: rotate(-34deg);
}

.template-scene.skill .one {
  left: 64px;
  top: 42px;
  width: 142px;
  height: 74px;
  border-radius: 8px;
  background: #1a2730;
  box-shadow: inset 0 0 0 8px #2f4650;
}

.template-scene.skill .two {
  left: 52px;
  top: 114px;
  width: 166px;
  height: 14px;
  border-radius: 0 0 16px 16px;
  background: #8fa0a7;
}

.template-scene.skill .three {
  left: 98px;
  top: 64px;
  width: 60px;
  height: 5px;
  border-radius: 999px;
  background: #2adbbf;
  box-shadow: 0 15px 0 #5ca7ff, 0 30px 0 #f3c316;
}

.template-scene.personal-growth .one {
  left: 92px;
  top: 42px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #f4d7ff;
  box-shadow: inset 0 0 0 18px #8b5bd6;
}

.template-scene.personal-growth .two {
  left: 112px;
  top: 78px;
  width: 44px;
  height: 18px;
  border-radius: 50%;
  background: #1d2b2d;
}

.template-scene.creative .one {
  left: 76px;
  top: 46px;
  width: 116px;
  height: 82px;
  border-radius: 56px 44px 50px 36px;
  background: #f8d28b;
}

.template-scene.creative .two,
.template-scene.creative .three,
.template-scene.creative .four {
  width: 17px;
  height: 17px;
  border-radius: 50%;
}

.template-scene.creative .two { left: 102px; top: 62px; background: #4285f4; }
.template-scene.creative .three { left: 132px; top: 58px; background: #d94c55; }
.template-scene.creative .four { left: 122px; top: 88px; background: #2a9d66; }

.template-card-body {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 14px 16px 12px;
}

.template-card h2 {
  margin: 0;
  color: #17201b;
  font-size: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

[data-theme="dark"] .template-card h2 {
  color: #f7f9f8;
}

.template-category-badge {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  color: #0c3324;
  background: #dff7ea;
  font-size: 0.72rem;
  font-weight: 900;
}

.template-category-badge.student { color: #44216f; background: #eee4ff; }
.template-category-badge.career { color: #0c3f31; background: #dff7ea; }
.template-category-badge.business { color: #08427c; background: #dcf0ff; }
.template-category-badge.health { color: #7d1736; background: #ffe2ea; }
.template-category-badge.finance { color: #5d4300; background: #fff0b8; }
.template-category-badge.skill { color: #0e4751; background: #ddf3f5; }
.template-category-badge.personal-growth { color: #573285; background: #efe5ff; }
.template-category-badge.creative { color: #6e3b00; background: #ffedd5; }

.template-card p {
  margin: 0;
  color: #3f4b45;
  font-size: 0.82rem;
  line-height: 1.38;
}

[data-theme="dark"] .template-card p {
  color: #b7c0bc;
}

.template-card-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 0 16px 15px;
  color: #5c6963;
  font-size: 0.78rem;
  font-weight: 750;
}

[data-theme="dark"] .template-card-footer {
  color: #aeb9b4;
}

.template-price-pill {
  justify-self: end;
  min-height: 28px;
  min-width: 58px;
  padding: 0 10px;
  color: #201900;
  border: 0;
  border-radius: 7px;
  background: #ffe46a;
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 4px 10px rgba(210, 159, 0, 0.2);
}

.template-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0 0;
}

.template-page-button,
.template-page-gap {
  min-width: 36px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dde3df;
  border-radius: 7px;
  color: #17201b;
  background: #ffffff;
  font-weight: 850;
}

.template-page-button.active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
}

.template-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

[data-theme="dark"] .template-page-button,
[data-theme="dark"] .template-page-gap {
  color: #f7f9f8;
  border-color: #2d383d;
  background: #141f23;
}

.template-footer-strip {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 16px;
  border: 1px solid rgba(221, 171, 28, 0.35);
  border-radius: var(--radius);
  color: #5e541d;
  background: #fff9e9;
  font-size: 0.85rem;
}

.template-footer-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.template-footer-strip .btn.linklike {
  margin-top: 0;
  justify-content: flex-end;
}

[data-theme="dark"] .template-footer-strip {
  color: #f5df80;
  border-color: rgba(243, 195, 22, 0.28);
  background: #171f1d;
}

.cna-page {
  background: #ffffff;
}

[data-theme="dark"] .cna-page {
  background: #0e1518;
}

.cna-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.cna-hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1.3fr) minmax(280px, 0.9fr) minmax(250px, 0.55fr);
  gap: 16px;
}

.cna-hero-card {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border-radius: 12px;
  background: #1f123d;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.cna-stage-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 84% 4%, rgba(255, 255, 255, 0.95) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 8%, rgba(255, 255, 255, 0.88) 0 5px, transparent 6px),
    radial-gradient(circle at 50% 30%, rgba(244, 114, 182, 0.72), transparent 26%),
    radial-gradient(circle at 25% 18%, rgba(126, 34, 206, 0.85), transparent 36%),
    linear-gradient(135deg, #14071f 0%, #38116e 55%, #11031b 100%);
}

.cna-stage-bg::before,
.cna-stage-bg::after {
  content: "";
  position: absolute;
  top: -40px;
  width: 120px;
  height: 390px;
  background: linear-gradient(180deg, rgba(244, 114, 182, 0.66), transparent);
  filter: blur(2px);
  opacity: 0.75;
}

.cna-stage-bg::before {
  right: 76px;
  transform: rotate(18deg);
}

.cna-stage-bg::after {
  right: 5px;
  transform: rotate(28deg);
}

.cna-hero-person {
  position: absolute;
  right: 24px;
  bottom: 0;
  width: min(220px, 38%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 999px;
  object-fit: cover;
  z-index: 2;
  border: 4px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.45);
}

.cna-hero-overlay {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 24px;
  color: #ffffff;
}

.best-seller-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 14px;
  border-radius: 8px;
  background: #16a34a;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.cna-hero-overlay h1 {
  margin: 34px 0 4px;
  max-width: 390px;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 0.9;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.cna-hero-overlay h2 {
  display: inline-block;
  margin: 8px 0 14px;
  padding: 8px 18px;
  border-radius: 8px;
  background: linear-gradient(90deg, #6d28d9, #a855f7);
  color: #facc15;
  font-size: 1.25rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cna-hero-overlay p {
  margin: 0;
  font-size: 1.25rem;
  color: #f0abfc;
  font-weight: 800;
  font-style: italic;
}

.cna-description-card,
.cna-progress-card {
  padding: 20px;
  display: grid;
  gap: 16px;
}

.cna-description-card h2,
.cna-progress-card h2,
.cna-milestones-card h2,
.cna-episode-card h2,
.cna-judges-panel h2 {
  margin: 0;
}

.cna-tags {
  display: flex;
  gap: 8px;
}

.cna-tags span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eee4ff;
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 850;
}

.cna-tags span:nth-child(2) {
  background: #dcfce7;
  color: #166534;
}

.cna-description-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.45;
}

.cna-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.cna-facts span,
.cna-stat span,
.cna-overall-score span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.cna-facts strong {
  font-size: 0.78rem;
}

.cna-progress-card {
  text-align: center;
  align-content: center;
}

.cna-progress-ring {
  width: 132px;
  aspect-ratio: 1;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle closest-side, var(--surface) 73%, transparent 74%),
    conic-gradient(var(--primary) var(--pct), #e5e7eb 0);
}

.cna-progress-ring strong {
  font-size: 2rem;
}

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

.cna-stat {
  padding: 16px;
}

.cna-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1rem;
}

.cna-stat p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.cna-main-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

.cna-milestones-card,
.cna-episode-card,
.cna-judges-panel {
  padding: 18px;
}

.cna-milestones-card h2 span {
  color: var(--muted);
  font-size: 0.9rem;
}

.cna-milestone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 260px;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
}

.cna-milestone-list {
  display: grid;
  gap: 6px;
}

.cna-milestone-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cna-milestone-row > span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #7c3aed;
  font-weight: 850;
}

.cna-milestone-row em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.cna-certified-badge {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.cna-certified-badge strong {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  color: #facc15;
  background: linear-gradient(145deg, #111827, #51328c);
  border: 5px solid #facc15;
  font-size: 2.6rem;
  font-weight: 950;
}

.cna-certified-badge span {
  color: #6d28d9;
  font-weight: 950;
  text-transform: uppercase;
}

.cna-certified-badge p {
  margin: 0;
  color: var(--muted);
}

.cna-card-head,
.cna-episode-footer,
.cna-judges-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cna-card-head strong {
  color: #7c3aed;
}

.cna-episode-banner {
  margin: 14px 0;
  padding: 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f3e8ff, #f8f4ff);
}

[data-theme="dark"] .cna-episode-banner {
  background: linear-gradient(135deg, #251832, #191f2a);
}

.cna-episode-banner strong {
  font-size: 1.15rem;
}

.cna-episode-banner p {
  margin: 5px 0 0;
  color: var(--muted);
}

.cna-task-list {
  display: grid;
  gap: 9px;
}

.cna-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--ink);
}

.cna-task-row strong {
  font-size: 0.84rem;
}

.cna-episode-footer {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  background: #f3e8ff;
}

[data-theme="dark"] .cna-episode-footer {
  background: #21162d;
}

.cna-episode-footer strong {
  color: #7c3aed;
  font-size: 1.2rem;
}

.cna-judges-panel {
  border-color: rgba(243, 195, 22, 0.42);
  background: linear-gradient(135deg, var(--surface), rgba(243, 195, 22, 0.08));
}

.cna-judge-score {
  min-width: 150px;
  display: grid;
  gap: 6px;
}

.cna-overall-score {
  min-width: 150px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(243, 195, 22, 0.32);
}

.cna-overall-score strong {
  display: block;
  font-size: 1.3rem;
}

.cna-study-villa {
  --cna-bg: #070d12;
  --cna-panel: #101922;
  --cna-panel-2: #141f2a;
  --cna-line: rgba(255, 255, 255, 0.12);
  --cna-ink: #f8fafc;
  --cna-muted: #b7c0cc;
  --cna-purple: #7c3aed;
  --cna-pink: #ec4899;
  --cna-gold: #f8c400;
  background:
    radial-gradient(circle at 72% 0%, rgba(124, 58, 237, 0.22), transparent 36%),
    linear-gradient(180deg, #081018 0%, #070d12 100%);
  color: var(--cna-ink);
}

.cna-study-villa .panel {
  color: var(--cna-ink);
  background: linear-gradient(145deg, rgba(20, 31, 42, 0.96), rgba(12, 20, 28, 0.96));
  border-color: var(--cna-line);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.cna-private-label,
.cna-notice {
  width: fit-content;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 0 12px;
  border: 1px solid rgba(248, 196, 0, 0.42);
  border-radius: 999px;
  color: #ffe680;
  background: rgba(248, 196, 0, 0.1);
  font-size: 0.86rem;
  font-weight: 850;
}

.cna-notice {
  margin-left: 10px;
  color: #f8fafc;
  border-color: rgba(124, 58, 237, 0.46);
  background: rgba(124, 58, 237, 0.18);
}

.cna-study-villa .template-mode-button,
.cna-study-villa .template-date-chip,
.cna-study-villa .template-date {
  color: var(--cna-ink);
}

.cna-study-villa .template-mode-button {
  background: #101922;
  border-color: var(--cna-line);
}

.cna-study-villa .template-mode-button.active {
  color: #111827;
  background: var(--cna-gold);
  border-color: var(--cna-gold);
}

.cna-study-villa .cna-hero-card {
  border-color: rgba(248, 196, 0, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.cna-study-villa .cna-stage-bg {
  background:
    radial-gradient(circle at 82% 5%, rgba(255, 255, 255, 0.96) 0 5px, transparent 6px),
    radial-gradient(circle at 66% 8%, rgba(255, 255, 255, 0.8) 0 4px, transparent 6px),
    radial-gradient(circle at 70% 80%, rgba(20, 184, 166, 0.28), transparent 30%),
    radial-gradient(circle at 38% 36%, rgba(236, 72, 153, 0.56), transparent 28%),
    linear-gradient(135deg, #12051d 0%, #40106f 48%, #07111b 100%);
}

.cna-study-villa .cna-hero-overlay h1 {
  margin-top: 58px;
  letter-spacing: 0;
}

.cna-study-villa .cna-hero-overlay h2 {
  color: #fee56e;
  background: linear-gradient(90deg, #581c87, #a21caf);
}

.cna-study-villa .cna-hero-overlay p {
  color: #f7b7ef;
}

.cna-study-villa .cna-hero-person {
  border-color: rgba(248, 196, 0, 0.8);
}

.cna-study-villa .cna-description-card p,
.cna-study-villa .cna-stat p,
.cna-study-villa .meta,
.cna-study-villa .cna-facts span,
.cna-study-villa .cna-overall-score span {
  color: var(--cna-muted);
}

.cna-study-villa .cna-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: var(--cna-line);
}

.cna-study-villa .cna-facts strong,
.cna-study-villa .cna-stat strong,
.cna-study-villa .cna-card-head strong {
  color: var(--cna-ink);
}

.cna-study-villa .cna-progress-ring {
  background:
    radial-gradient(circle closest-side, #101922 73%, transparent 74%),
    conic-gradient(var(--cna-gold) var(--pct), rgba(255, 255, 255, 0.14) 0);
}

.cna-study-villa .cna-left-stack,
.cna-study-villa .cna-right-stack {
  display: grid;
  gap: 16px;
  align-content: start;
}

.cna-episode-roadmap-row,
.cna-skill-row,
.cna-weekly-row {
  display: grid;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cna-episode-roadmap-row {
  grid-template-columns: 34px minmax(0, 1fr) auto;
  width: 100%;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.cna-episode-roadmap-row:hover,
.cna-calendar-day:hover {
  border-color: rgba(248, 196, 0, 0.5);
  transform: translateY(-1px);
}

.cna-episode-roadmap-row > span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: var(--cna-gold);
  font-weight: 950;
}

.cna-episode-roadmap-row em,
.cna-skill-row span {
  display: block;
  margin-top: 2px;
  color: var(--cna-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.cna-episode-roadmap-row b {
  min-width: 74px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #111827;
  background: var(--cna-gold);
  font-size: 0.74rem;
  text-align: center;
}

.cna-episode-roadmap-row.locked {
  opacity: 0.58;
}

.cna-episode-roadmap-row.locked b {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.1);
}

.cna-episode-roadmap-row.complete b {
  color: #052e16;
  background: #86efac;
}

.cna-study-villa .cna-episode-banner {
  color: var(--cna-ink);
  border: 1px solid rgba(248, 196, 0, 0.2);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.38), rgba(236, 72, 153, 0.18));
}

.cna-study-villa .cna-task-row {
  color: var(--cna-ink);
}

.cna-study-villa .cna-task-row input,
.cna-study-villa .cna-skill-row input[type="checkbox"],
.cna-study-villa .cna-weekly-row input[type="checkbox"] {
  accent-color: var(--cna-gold);
}

.cna-study-villa .cna-episode-footer {
  color: var(--cna-ink);
  background: rgba(124, 58, 237, 0.16);
}

.cna-study-villa .cna-episode-footer strong {
  color: var(--cna-gold);
}

.cna-control-card,
.cna-skills-card,
.cna-weekly-card,
.cna-calendar-card {
  padding: 18px;
}

.cna-time-options,
.cna-action-row,
.cna-quiz-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.cna-custom-time input,
.cna-quiz-row input,
.cna-skill-row input[type="number"],
.cna-skill-row select,
.cna-weekly-row input[type="number"],
.cna-proof-form input,
.cna-proof-form textarea {
  min-height: 38px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  color: var(--cna-ink);
  background: rgba(255, 255, 255, 0.06);
}

.cna-custom-time input,
.cna-quiz-row input,
.cna-skill-row input[type="number"],
.cna-weekly-row input[type="number"] {
  width: 110px;
  padding: 0 10px;
}

.cna-session-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.cna-session-grid > div {
  padding: 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.cna-session-grid span {
  display: block;
  color: var(--cna-muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.cna-session-grid strong {
  display: block;
  margin-top: 4px;
}

.cna-video-shell {
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--cna-line);
  border-radius: 10px;
  background: rgba(124, 58, 237, 0.12);
}

.cna-video-shell iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
}

.cna-video-placeholder {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  align-content: center;
}

.cna-video-placeholder p {
  margin: 0;
  color: var(--cna-muted);
}

.cna-video-progress {
  height: 8px;
  margin-top: 12px;
}

.cna-video-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cna-video-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  color: var(--cna-muted);
}

.cna-video-item strong {
  color: var(--cna-gold);
}

.cna-proof-form {
  display: grid;
  gap: 10px;
}

.cna-proof-form .field span {
  color: var(--cna-muted);
}

.cna-practice-question {
  margin: 12px 0;
  padding: 12px;
  border-radius: 8px;
  color: var(--cna-ink);
  background: rgba(248, 196, 0, 0.08);
}

.cna-practice-question p {
  margin: 5px 0 0;
  color: var(--cna-muted);
}

.cna-skills-list,
.cna-weekly-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 3px;
}

.cna-skill-row {
  grid-template-columns: auto minmax(0, 1fr) 170px 92px;
}

.cna-weekly-row {
  grid-template-columns: auto minmax(180px, 1fr) 92px 96px minmax(130px, 0.6fr) minmax(150px, 0.8fr);
}

.cna-calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.cna-calendar-day {
  min-height: 58px;
  padding: 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: rgba(124, 58, 237, 0.18);
  cursor: pointer;
  font: inherit;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.cna-calendar-day span {
  display: block;
  margin-top: 4px;
  color: var(--cna-muted);
  font-size: 0.78rem;
}

.cna-calendar-day.done {
  background: rgba(34, 197, 94, 0.16);
}

.cna-calendar-day.locked {
  background: rgba(255, 255, 255, 0.055);
  opacity: 0.62;
}

.cna-calendar-day.exam {
  color: #111827;
  background: var(--cna-gold);
}

.cna-calendar-day.exam span {
  color: #513a00;
}

.cna-calendar-events {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cna-calendar-event-row {
  display: grid;
  grid-template-columns: minmax(82px, auto) minmax(0, 1fr);
  gap: 6px 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: inherit;
  text-align: left;
  font: inherit;
}

button.cna-calendar-event-row {
  cursor: pointer;
}

.cna-calendar-event-row:hover {
  border-color: rgba(248, 196, 0, 0.42);
}

.cna-calendar-event-row span {
  min-width: 0;
  font-weight: 700;
}

.cna-calendar-event-row em {
  grid-column: 1 / -1;
  color: var(--cna-muted);
  font-size: 0.78rem;
  font-style: normal;
}

.cna-calendar-event-row.exam {
  border-color: rgba(248, 196, 0, 0.42);
  background: rgba(248, 196, 0, 0.12);
}

.cna-workflow-modal {
  color: var(--cna-ink);
  background:
    radial-gradient(circle at 75% 0%, rgba(124, 58, 237, 0.22), transparent 34%),
    #101922;
  border-color: rgba(248, 196, 0, 0.24);
}

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

.cna-attempt-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.cna-attempt-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.cna-auto-quiz {
  display: grid;
  gap: 12px;
}

.cna-quiz-question {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.cna-quiz-question legend {
  padding: 0 4px;
  color: var(--cna-ink);
  font-weight: 900;
}

.cna-quiz-question label {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--cna-muted);
  font-weight: 700;
}

.cna-answer-review {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--cna-line);
  border-radius: 8px;
  color: var(--cna-muted);
  background: rgba(124, 58, 237, 0.12);
}

.cna-answer-review summary {
  color: var(--cna-ink);
  cursor: pointer;
  font-weight: 900;
}

.cna-task-row.readonly {
  padding: 8px 0;
}

.template-preview-panel {
  width: min(940px, 96vw);
}

.template-preview-hero {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}

.plain-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.plain-list.numbered {
  padding-left: 22px;
}

.sms-panel .compact-form {
  gap: 10px;
}

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

.consent-copy {
  align-items: flex-start;
  line-height: 1.45;
}

.sms-verify-row {
  margin-top: 12px;
  align-items: end;
}

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

.goal-card {
  padding: 16px;
  display: grid;
  gap: 13px;
  border-left: 4px solid var(--primary);
}

.goal-card.completed {
  border-left-color: var(--success);
}

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

.goal-title {
  margin: 0 0 5px;
  font-size: 1.08rem;
  line-height: 1.28;
  text-transform: uppercase;
}

.goal-countdown {
  color: var(--muted);
  font-weight: 750;
}

.goal-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.goal-health {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.goal-health span {
  color: var(--muted);
  font-size: 0.88rem;
}

.goal-health.behind,
.goal-health.overdue {
  border-color: rgba(166, 61, 64, 0.35);
}

.goal-health.at-risk {
  border-color: rgba(178, 106, 0, 0.35);
}

.goal-stats,
.goal-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.goal-stats span,
.goal-meta-grid > div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.goal-meta-grid strong {
  display: block;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.mission-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(243, 195, 22, 0.4);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 86%, #f3c316);
}

.mission-box strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.report-history {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.report-history summary {
  cursor: pointer;
  font-weight: 750;
}

.goal-modal-panel {
  width: min(100%, 760px);
}

.roadmap-list,
.timeline {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.milestone-row,
.timeline-row {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.milestone-row.done {
  border-color: rgba(37, 118, 75, 0.3);
}

.milestone-row.done strong {
  text-decoration: line-through;
}

.attachment-box {
  gap: 10px;
}

.attachment-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.attachment-preview {
  width: min(100%, 260px);
  max-height: 190px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.celebration {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(17, 19, 18, 0.52);
  overflow: hidden;
}

.celebration-card {
  position: relative;
  z-index: 2;
  width: min(92vw, 420px);
  padding: 22px;
  border: 1px solid rgba(243, 195, 22, 0.6);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: center;
}

.celebration-card h2 {
  margin: 0 0 8px;
}

.celebration-card p {
  color: var(--muted);
  line-height: 1.5;
}

.confetti span {
  position: absolute;
  top: -20px;
  left: calc((var(--i) * 43px) % 100vw);
  width: 9px;
  height: 16px;
  background: var(--primary);
  transform: rotate(calc(var(--i) * 21deg));
  animation: confetti-fall 1.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.07s);
}

.confetti span:nth-child(3n) {
  background: #25764b;
}

.confetti span:nth-child(4n) {
  background: #245f9f;
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

.invoice-workspace {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(420px, 1.05fr);
  gap: 14px;
  align-items: start;
}

.invoice-form {
  gap: 14px;
}

.invoice-items {
  display: grid;
  gap: 10px;
}

.invoice-item-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.2fr) 86px 110px 88px 40px;
  gap: 8px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-muted);
}

.invoice-row-total {
  min-height: 42px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.invoice-preview-panel {
  position: sticky;
  top: 86px;
}

.invoice-paper {
  --invoice-color: var(--primary);
  background: #fff;
  color: #202421;
  border: 1px solid #d9dfdc;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.invoice-accent {
  height: 10px;
  background: var(--invoice-color);
}

.invoice-head,
.invoice-meta-grid,
.invoice-total-grid {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.invoice-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  border-bottom: 1px solid #e4e8e5;
}

.invoice-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.invoice-brand h2 {
  margin: 0 0 5px;
  font-size: 1.25rem;
}

.invoice-logo,
.invoice-logo-fallback {
  width: 76px;
  height: 76px;
  object-fit: cover;
  object-position: center 48%;
  border-radius: var(--radius);
  background: #111312;
  border: 1px solid rgba(243, 195, 22, 0.35);
}

.invoice-number-box {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.invoice-number-box strong {
  font-size: 1.45rem;
  text-transform: uppercase;
}

.invoice-meta-grid {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.invoice-meta-grid strong {
  display: block;
  margin: 4px 0 8px;
}

.invoice-table-wrap {
  overflow-x: auto;
  padding: 0 24px 18px;
}

.invoice-table {
  min-width: 620px;
}

.invoice-table th {
  background: #f4f2e6;
  color: #3d3620;
}

.invoice-table th,
.invoice-table td {
  border-color: #e4e8e5;
}

.invoice-total-grid {
  grid-template-columns: minmax(0, 1fr) 250px;
  border-top: 1px solid #e4e8e5;
}

.invoice-total-grid p {
  margin: 6px 0 14px;
  color: #606963;
  line-height: 1.45;
}

.invoice-totals {
  display: grid;
  gap: 8px;
}

.invoice-totals div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.invoice-grand-total {
  border-top: 2px solid var(--invoice-color);
  padding-top: 10px;
  font-size: 1.2rem;
}

.notice {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.notice.warning {
  background: color-mix(in srgb, var(--surface) 86%, #f3c316);
  border-color: rgba(178, 106, 0, 0.35);
}

.notice.danger {
  background: color-mix(in srgb, var(--surface) 88%, #a63d40);
  border-color: rgba(166, 61, 64, 0.28);
}

.notice.success {
  background: color-mix(in srgb, var(--surface) 88%, #25764b);
  border-color: rgba(37, 118, 75, 0.28);
}

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

.permission-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  background: var(--surface);
}

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

.access-invite-panel,
.access-directory-section,
.access-audit-panel {
  margin-top: 18px;
}

.access-audit-panel {
  min-width: 0;
}

.access-audit-panel .table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.access-section-heading,
.access-user-head,
.access-control-row,
.access-user-actions,
.access-chip-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.access-section-heading,
.access-user-head {
  justify-content: space-between;
}

.access-section-heading h2,
.access-user-head h3,
.access-user-head p {
  margin: 0;
}

.access-user-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.access-invite-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  margin-top: 16px;
}

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

.access-user-card {
  display: grid;
  gap: 16px;
  border-radius: 8px;
}

.access-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #111;
  background: var(--primary);
  font-weight: 900;
}

.access-user-head > div:nth-child(2) {
  min-width: 0;
  flex: 1;
}

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

.access-security-grid > div {
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.access-security-grid span,
.access-security-grid small {
  color: var(--muted);
  font-size: 0.78rem;
}

.access-control-row {
  align-items: end;
  flex-wrap: wrap;
}

.access-control-row .field,
.access-control-row select {
  min-width: 180px;
  flex: 1;
}

.access-assignment-block {
  display: grid;
  gap: 9px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.access-chip-row,
.access-user-actions {
  flex-wrap: wrap;
}

.access-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 5px 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  font-size: 0.8rem;
  font-weight: 750;
}

.access-chip button {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.access-chip button svg {
  width: 13px;
  height: 13px;
}

.access-empty-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

.access-empty-state {
  width: min(100%, 560px);
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.access-empty-state h1,
.access-empty-state p {
  margin: 0;
}

.access-empty-state p {
  color: var(--muted);
  line-height: 1.55;
}

.access-empty-state .notice {
  color: var(--ink);
  background: var(--surface-muted);
}

.switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c8d0cc;
  transition: 0.18s ease;
}

.slider:before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  transition: 0.18s ease;
}

.switch input:checked + .slider {
  background: var(--primary);
}

.switch input:checked + .slider:before {
  transform: translateX(20px);
}

.mobile-nav {
  display: none;
}

.hide {
  display: none !important;
}

.restricted {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
}

.restricted .brand-mark {
  margin: 0 auto 14px;
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .grid-2,
  .grid-3,
  .record-grid,
  .goal-challenge-grid {
    grid-template-columns: 1fr;
  }

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

  .mission-board {
    grid-template-columns: 1fr;
  }

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

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

  .template-hero-row {
    grid-template-columns: 1fr;
  }

  .cna-hero-grid,
  .cna-main-grid {
    grid-template-columns: 1fr;
  }

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

  .cna-milestone-layout {
    grid-template-columns: 1fr;
  }

  .cna-judges-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .invoice-preview-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: min(86vw, 310px);
    transform: translateX(-103%);
    transition: transform 0.2s ease;
    box-shadow: 16px 0 30px rgba(18, 23, 21, 0.18);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .mobile-nav {
    display: inline-flex;
  }

  .topbar-brand {
    display: flex;
  }

  .topbar {
    padding: 12px 14px;
  }

  .templates-shell-topbar {
    display: flex;
  }

  .templates-shell-topbar .actions {
    display: none;
  }

  .page {
    padding: 16px;
  }

  .page-header,
  .toolbar {
    display: grid;
    gap: 12px;
  }

  .actions {
    width: 100%;
  }

  .actions .btn,
  .toolbar .btn {
    flex: 1 1 auto;
  }

  .summary-grid,
  .command-agent-grid,
  .field-row,
  .field-row.three,
  .permission-grid,
  .goal-stats,
  .goal-meta-grid,
  .mission-box,
  .mission-card-grid,
  .template-controls,
  .template-grid,
  .template-preview-hero,
  .checkbox-grid {
    grid-template-columns: 1fr;
  }

  .command-hero-panel,
  .command-list-row,
  .command-flow > div {
    display: grid;
  }

  .command-readiness-meter {
    width: 108px;
    height: 108px;
    justify-self: start;
  }

  .template-top-strip,
  .template-top-actions,
  .template-mode-group,
  .cna-topbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .cna-stat-grid,
  .cna-facts,
  .cna-session-grid,
  .cna-calendar-grid,
  .cna-modal-time-grid,
  .cna-judges-panel {
    grid-template-columns: 1fr;
  }

  .cna-skill-row,
  .cna-weekly-row,
  .cna-episode-roadmap-row {
    grid-template-columns: 1fr;
  }

  .cna-hero-card {
    min-height: 300px;
  }

  .cna-hero-person {
    width: 112px;
    right: 16px;
  }

  .cna-milestone-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .cna-milestone-row em,
  .cna-milestone-row input {
    grid-column: 2;
  }

  .template-date,
  .template-date-chip {
    justify-content: center;
  }

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

  .template-price-pill {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

  .template-footer-strip {
    display: grid;
  }

  .mission-control {
    padding: 16px;
  }

  .mission-topbar,
  .mission-section-head,
  .mission-goal-main {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mission-header-actions,
  .mission-view-controls {
    width: 100%;
  }

  .mission-progress-ring {
    width: 112px;
  }

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

  .mission-goal-card {
    padding: 18px;
  }

  .mission-action-row .btn {
    flex: 1 1 100%;
  }

  .premium-banner {
    display: grid;
  }

  .invoice-item-row {
    grid-template-columns: 1fr;
  }

  .invoice-head,
  .invoice-meta-grid,
  .invoice-total-grid {
    grid-template-columns: 1fr;
  }

  .invoice-number-box {
    justify-items: start;
  }

  .drawer {
    place-items: stretch;
  }

  .drawer-panel {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .topbar,
  .page-header,
  .summary-grid,
  .invoice-workspace > .panel:first-child,
  .invoice-preview-panel > .row-main {
    display: none !important;
  }

  .shell,
  .content,
  .page,
  .invoice-workspace,
  .invoice-preview-panel {
    display: block;
    padding: 0;
    margin: 0;
  }

  .invoice-preview-panel {
    border: 0;
    box-shadow: none;
  }

  .invoice-paper {
    border: 0;
    box-shadow: none;
    border-radius: 0;
  }
}

@media (max-width: 480px) {
  .login-shell {
    padding: 14px;
  }

  .login-panel {
    padding: 20px;
  }

  .summary-card {
    min-height: 94px;
  }

  .summary-value {
    font-size: 1.25rem;
  }

  .btn {
    white-space: normal;
  }
}

@media (max-width: 980px) {
  .access-overview-grid,
  .access-invite-form,
  .access-user-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 680px) {
  .auth-summary-row,
  .access-overview-grid,
  .access-invite-form,
  .access-user-grid,
  .access-security-grid {
    grid-template-columns: 1fr;
  }

  .access-section-heading,
  .access-user-head,
  .access-control-row {
    align-items: stretch;
  }

  .access-section-heading,
  .access-control-row {
    flex-direction: column;
  }

  .access-user-head {
    flex-wrap: wrap;
  }

  .access-control-row .field,
  .access-control-row select,
  .access-control-row .btn {
    width: 100%;
  }
}

.btn.tiny {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.btn.success {
  color: #0f6b3a;
  border-color: rgba(37, 118, 75, 0.42);
  background: rgba(37, 118, 75, 0.1);
}

.btn.success:hover {
  background: rgba(37, 118, 75, 0.18);
}

.command-center-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  margin-top: -6px;
  color: #e9f3ef;
}

.command-sidebar-panel,
.command-main,
.command-panel,
.command-metric-card,
.command-department-card,
.command-header-panel {
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, rgba(10, 20, 31, 0.96), rgba(4, 10, 18, 0.98));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.command-sidebar-panel {
  position: sticky;
  top: 12px;
  align-self: start;
  display: grid;
  gap: 18px;
  min-height: calc(100vh - 132px);
  padding: 14px;
  border-radius: 12px;
}

.command-main {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 82% 0%, rgba(124, 58, 237, 0.12), transparent 28%),
    radial-gradient(circle at 12% 10%, rgba(243, 195, 22, 0.09), transparent 30%),
    linear-gradient(145deg, #06111d, #03080f 72%);
}

.command-mini-brand,
.command-header-panel,
.command-panel-head,
.command-department-head,
.command-department-foot,
.command-mode-row,
.command-fix-row,
.command-qa-row,
.command-activity-row,
.command-plan-row,
.command-breakdown-row .row-main,
.command-integration-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.command-mini-brand strong,
.command-header-panel h2,
.command-panel h3,
.command-department-card h3,
.command-metric-card strong {
  color: #ffffff;
}

.command-mini-brand span,
.command-header-panel p,
.command-panel p,
.command-department-card p,
.command-metric-card small,
.command-plan-row .meta,
.command-activity-row .meta,
.command-breakdown-row .meta {
  color: rgba(226, 232, 240, 0.72);
}

.command-menu-group {
  display: grid;
  gap: 8px;
}

.command-menu-label {
  color: rgba(226, 232, 240, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.command-menu-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #e5edf8;
  text-align: left;
  font-weight: 800;
}

.command-menu-item.active,
.command-menu-item:hover {
  border-color: rgba(243, 195, 22, 0.36);
  background: rgba(243, 195, 22, 0.11);
  color: var(--primary);
}

.command-integration-row {
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.84rem;
}

.command-integration-row strong {
  color: #70e196;
  font-size: 0.78rem;
}

.command-header-panel {
  justify-content: space-between;
  padding: 18px;
  border-radius: 12px;
}

.command-header-panel h2 {
  margin: 4px 0;
  font-size: clamp(1.6rem, 3vw, 2.55rem);
}

.command-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.command-metric-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.command-metric-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 15px;
  border-radius: 12px;
}

.command-metric-card span {
  color: rgba(226, 232, 240, 0.76);
  font-weight: 800;
}

.command-metric-card strong {
  font-size: clamp(1.4rem, 2.4vw, 2.15rem);
  line-height: 1;
}

.command-metric-card.tone-good {
  border-color: rgba(34, 197, 94, 0.32);
}

.command-metric-card.tone-warn {
  border-color: rgba(243, 195, 22, 0.42);
}

.command-metric-card.tone-danger {
  border-color: rgba(239, 68, 68, 0.46);
}

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

.command-layout-grid > .command-panel:nth-child(3),
.command-layout-grid.bottom {
  grid-column: 1 / -1;
}

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

.command-panel,
.command-department-card {
  min-width: 0;
  padding: 16px;
  border-radius: 12px;
}

.command-panel.critical {
  border-color: rgba(239, 68, 68, 0.32);
  background:
    linear-gradient(145deg, rgba(64, 16, 16, 0.38), rgba(6, 17, 29, 0.95)),
    #06111d;
}

.command-panel.safety {
  border-color: rgba(243, 195, 22, 0.38);
}

.command-panel-head {
  justify-content: space-between;
  margin-bottom: 12px;
}

.command-panel-head h3,
.command-department-card h3 {
  margin: 0;
}

.command-list,
.command-plan-list,
.command-breakdown-list,
.command-activity-list,
.command-qa-list,
.command-mode-list,
.command-engram-list,
.command-skill-list {
  display: grid;
  gap: 10px;
}

.command-fix-row,
.command-plan-row,
.command-qa-row,
.command-mode-row,
.command-activity-row,
.command-engram-row,
.command-skill-list > div,
.command-flow.compact > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.54);
}

.command-fix-row,
.command-plan-row,
.command-qa-row,
.command-mode-row {
  justify-content: space-between;
}

.command-fix-row p,
.command-plan-row p,
.command-qa-row p,
.command-mode-row p,
.command-engram-row p,
.command-skill-list p,
.command-flow.compact p {
  margin: 4px 0 0;
}

.command-rank,
.command-dot {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(243, 195, 22, 0.17);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 900;
}

.command-dot.success {
  background: rgba(34, 197, 94, 0.2);
  color: #64d98d;
}

.command-dot.warning {
  background: rgba(239, 68, 68, 0.22);
  color: #ff8989;
}

.command-plan-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

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

.ecosystem-map-panel,
.command-setup-panel {
  margin-bottom: 14px;
}

.ecosystem-map {
  display: grid;
  gap: 14px;
}

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

.ecosystem-node,
.agent-guide-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.35);
  padding: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.ecosystem-node.parent {
  border-color: rgba(248, 196, 0, 0.55);
  background: linear-gradient(135deg, rgba(248, 196, 0, 0.16), rgba(59, 130, 246, 0.08));
}

.ecosystem-node strong,
.agent-guide-card strong {
  display: block;
  color: #f8fafc;
  font-size: 1rem;
  margin-top: 4px;
}

.ecosystem-node p {
  color: rgba(226, 232, 240, 0.74);
  margin: 8px 0 12px;
  line-height: 1.45;
}

.ecosystem-node-foot,
.agent-guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ecosystem-node-foot small {
  color: rgba(226, 232, 240, 0.66);
  font-weight: 800;
}

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

.agent-guide-card.compact {
  min-height: 100%;
}

.agent-guide-step-list {
  display: grid;
  gap: 8px;
}

.agent-guide-step {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: #f8fafc;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.agent-guide-step:hover:not(:disabled) {
  border-color: rgba(248, 196, 0, 0.55);
  transform: translateY(-1px);
}

.agent-guide-step:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.agent-guide-step > span:first-child {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(248, 196, 0, 0.16);
  color: #f8c400;
  font-weight: 900;
}

.agent-guide-step.done > span:first-child {
  background: rgba(34, 197, 94, 0.18);
  color: #22c55e;
}

.agent-guide-step small {
  display: block;
  color: rgba(226, 232, 240, 0.66);
  line-height: 1.35;
  margin-top: 2px;
}

.marketing-department-page {
  display: grid;
  gap: 16px;
}

.marketing-command-center {
  --marketing-green: #42ef64;
  --marketing-green-soft: rgba(66, 239, 100, 0.16);
  --marketing-green-border: rgba(66, 239, 100, 0.3);
}

.marketing-hero {
  border-color: rgba(34, 197, 94, 0.32);
}

.marketing-command-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(280px, 1.08fr) auto;
  align-items: center;
  min-height: 360px;
  overflow: hidden;
  border: 1px solid var(--marketing-green-border);
  border-radius: 16px;
  padding: 28px;
  background:
    radial-gradient(circle at 55% 8%, rgba(230, 255, 220, 0.44), transparent 20%),
    radial-gradient(circle at 54% 48%, rgba(66, 239, 100, 0.24), transparent 25%),
    linear-gradient(135deg, rgba(5, 12, 11, 0.95), rgba(3, 21, 14, 0.94) 54%, rgba(1, 8, 8, 0.98));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.marketing-command-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 9, 10, 0.72), transparent 28%, transparent 72%, rgba(3, 9, 10, 0.72)),
    radial-gradient(circle at 50% 58%, rgba(66, 239, 100, 0.28), transparent 32%);
  pointer-events: none;
}

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

.marketing-hero-copy {
  display: grid;
  gap: 10px;
  max-width: 460px;
}

.marketing-hero-copy h2 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(2.2rem, 4vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.marketing-hero-copy p {
  margin: 0;
  color: rgba(226, 232, 240, 0.84);
  font-size: 1.08rem;
}

.marketing-authority-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.marketing-hero-logo-stage {
  display: grid;
  place-items: center;
  min-height: 290px;
  border-radius: 18px;
}

.marketing-hero-logo-stage img {
  width: min(440px, 100%);
  max-height: 310px;
  object-fit: contain;
  filter: hue-rotate(86deg) saturate(1.28) brightness(0.96) drop-shadow(0 0 28px rgba(66, 239, 100, 0.42));
  animation: marketingLogoFloat 5.8s ease-in-out infinite;
}

.marketing-workspace-label {
  align-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 170px;
  padding: 12px 14px;
  border: 1px solid rgba(66, 239, 100, 0.24);
  border-radius: 12px;
  background: rgba(4, 18, 12, 0.76);
  color: #d9ffe4;
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.marketing-command-metrics .command-metric-card {
  border-color: rgba(66, 239, 100, 0.18);
}

.marketing-authority-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  gap: 16px;
}

.marketing-authority-panel {
  border-color: rgba(66, 239, 100, 0.22);
}

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

.marketing-authority-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.32);
}

.marketing-authority-list strong {
  color: rgba(226, 232, 240, 0.72);
}

.marketing-authority-list span {
  color: #e9fff0;
  font-weight: 900;
  text-align: right;
}

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

.marketing-workspace-grid > div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(66, 239, 100, 0.16);
  border-radius: 12px;
  background: rgba(5, 32, 18, 0.28);
}

.marketing-workspace-grid .icon {
  grid-row: span 2;
  color: var(--marketing-green);
  margin-top: 2px;
}

.marketing-workspace-grid strong {
  color: #f8fafc;
}

.marketing-workspace-grid span {
  color: rgba(226, 232, 240, 0.68);
  font-size: 0.86rem;
  line-height: 1.35;
}

.marketing-approval-layout {
  grid-template-columns: minmax(420px, 1.15fr) minmax(320px, 0.85fr);
}

.marketing-approval-panel {
  border-color: rgba(66, 239, 100, 0.2);
}

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

.marketing-approval-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.44), rgba(5, 32, 18, 0.24));
}

.marketing-approval-card h4 {
  margin: 8px 0 4px;
  color: #f8fafc;
  font-size: 1rem;
}

.marketing-approval-card p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.42;
}

.marketing-approval-card small {
  display: block;
  margin-top: 8px;
  color: rgba(187, 247, 208, 0.76);
  font-weight: 800;
}

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

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

@keyframes marketingLogoFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

.marketing-launch {
  --launch-blue: #82b7ff;
  --launch-gold: #f3cc79;
  --launch-border: #304965;
  padding: 24px;
  color: #f5f8ff;
  background: #0c1729;
  min-width: 0;
  line-height: 1.55;
}
.marketing-launch h2, .marketing-launch h3, .marketing-launch h4 { color: #f5f8ff; margin: 0 0 10px; }
.marketing-launch p { color: #c8d6e9; margin: 8px 0 14px; }
.marketing-launch small { color: #b7c9e0; display: block; font-size: 12px; }
.marketing-launch button, .marketing-launch input, .marketing-launch select, .marketing-launch textarea { font: inherit; }
.marketing-launch button { cursor: pointer; }
.marketing-launch button:disabled { opacity: .5; cursor: not-allowed; }
.marketing-launch :focus-visible { outline: 3px solid var(--launch-gold); outline-offset: 3px; }
.marketing-launch .btn { color: #f5f8ff; background: #203854; border: 1px solid #6083ac; border-radius: 8px; padding: 10px 14px; white-space: normal; }
.marketing-launch .btn.primary { color: #0b1930; background: var(--launch-gold); border-color: var(--launch-gold); font-weight: 700; }
.launch-mission-header, .launch-mission-task-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.launch-mission-header h2 { font-size: clamp(20px, 2vw, 30px); line-height: 1.2; letter-spacing: -.02em; }
.launch-mission-header p { color: var(--launch-blue); margin-bottom: 0; }
.marketing-launch-notice { min-height: 24px; overflow-wrap: anywhere; }
.marketing-launch .is-error { color: #ffb6b1; }
.marketing-launch-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--launch-border); margin-bottom: 24px; }
.marketing-launch-tabs button { color: #c8d6e9; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 12px 18px; }
.marketing-launch-tabs button[aria-current="page"] { color: var(--launch-gold); border-color: var(--launch-gold); }
.launch-mission-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.launch-mission-metrics article { padding: 18px; border: 1px solid var(--launch-border); border-radius: 12px; background: #12223a; }
.launch-mission-metrics span { color: #b7c9e0; font-size: 13px; }
.launch-mission-metrics strong { display: block; font-size: 32px; margin: 8px 0; line-height: 1.25; }
.launch-mission-metrics strong small { display: inline; font-size: 13px; font-weight: 400; }
.launch-mission-metrics .launch-mission-text-value { font-size: 20px; min-height: 40px; }
.marketing-launch progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 5px; background: #304660; accent-color: var(--launch-gold); margin: 12px 0; overflow: hidden; }
.marketing-launch progress::-webkit-progress-bar { background: #304660; }
.marketing-launch progress::-webkit-progress-value { background: var(--launch-gold); }
.marketing-launch progress::-moz-progress-bar { background: var(--launch-gold); }
.launch-mission-video { display: grid; grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr); gap: 28px; padding: 28px; border: 1px solid #5279ac; border-radius: 14px; background: #152e50; margin-bottom: 22px; }
.launch-mission-video > div > span { font-size: 12px; color: var(--launch-gold); font-weight: 700; letter-spacing: .08em; }
.launch-mission-video h3 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.25; margin-top: 12px; }
.launch-mission-video-side { border-left: 1px solid #5279ac; padding-left: 28px; }
.launch-mission-video-side strong { color: var(--launch-gold); font-size: 25px; line-height: 1.5; }
.launch-mission-sequence { font-size: 13px; font-weight: 600; }
.launch-mission-sequence span { color: var(--launch-gold); margin: 0 6px; }
.launch-mission-panel { min-width: 0; padding: 22px; border: 1px solid var(--launch-border); border-radius: 12px; background: #122139; margin-bottom: 20px; overflow-wrap: anywhere; }
.launch-mission-panel h3 { font-size: 18px; }
.launch-mission-panel h4 { font-size: 15px; }
.launch-mission-setup, .launch-mission-two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.launch-mission-phases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.launch-mission-phases article { padding: 16px; border: 1px solid var(--launch-border); border-radius: 10px; background: #0f1b30; }
.launch-mission-phases article.is-active { border-color: var(--launch-gold); background: #223148; }
.launch-mission-phases article.is-completed { border-color: #83c6ae; }
.launch-mission-phases article.is-unfinished { border-color: #cfad69; }
.launch-mission-phase-number { color: var(--launch-blue); font-size: 13px; font-weight: 700; }
.launch-mission-phases h4 { margin: 8px 0; }
.launch-mission-phases p { margin: 0; font-size: 12px; }
.launch-mission-budget { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 16px 0; }
.launch-mission-budget strong { display: block; font-size: 23px; }
.marketing-launch .launch-mission-gold { color: var(--launch-gold); }
.launch-mission-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.launch-mission-member-status { display: block; color: var(--launch-blue); font-size: 12px; margin-bottom: 12px; }
.marketing-launch fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.marketing-launch label { display: grid; gap: 6px; margin: 12px 0; color: #dbe6f7; font-size: 13px; }
.marketing-launch input:not([type="checkbox"]), .marketing-launch select, .marketing-launch textarea { box-sizing: border-box; width: 100%; min-width: 0; color: #f5f8ff; background: #0b1728; border: 1px solid #577495; padding: 10px 12px; border-radius: 7px; color-scheme: dark; }
.marketing-launch textarea { min-height: 85px; resize: vertical; }
.marketing-launch form .btn { margin-top: 12px; }
.launch-mission-availability { display: grid; gap: 8px; margin: 16px 0; }
.launch-mission-availability > div { display: grid; grid-template-columns: minmax(100px, 1fr) 1fr 1fr; align-items: center; gap: 12px; }
.launch-mission-availability label { display: flex; align-items: center; gap: 10px; }
.launch-mission-availability input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--launch-gold); }
.launch-mission-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.launch-mission-task-list .launch-mission-panel { margin: 0; }
.launch-mission-task-heading { flex-wrap: wrap; }
.launch-mission-task-heading h4 { flex: 1 1 200px; }
.launch-mission-task-heading span { font-size: 12px; color: var(--launch-blue); }
.marketing-launch summary { cursor: pointer; color: var(--launch-gold); padding: 8px 0; }
@media (max-width: 1100px) {
  .launch-mission-metrics, .launch-mission-team, .launch-mission-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-mission-task-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .marketing-launch { padding: 16px 12px; }
  .launch-mission-header { align-items: flex-start; flex-direction: column; }
  .marketing-launch-tabs button { padding: 12px; flex: 1; }
  .launch-mission-video, .launch-mission-team, .launch-mission-two-col, .launch-mission-setup { grid-template-columns: minmax(0, 1fr); }
  .launch-mission-video { padding: 20px; }
  .launch-mission-video-side { border-left: 0; border-top: 1px solid #5279ac; padding: 16px 0 0; }
  .launch-mission-video-side strong br { display: none; }
  .launch-mission-video-side strong { font-size: 19px; }
  .launch-mission-budget { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .launch-mission-panel { padding: 16px; }
  .launch-mission-availability > div { grid-template-columns: 1fr 1fr; }
  .launch-mission-availability label { grid-column: 1 / -1; margin: 6px 0 0; }
}
@media (max-width: 400px) {
  .launch-mission-metrics, .launch-mission-phases { grid-template-columns: minmax(0, 1fr); }
}

.marketing-software-shell {
  position: relative;
  isolation: isolate;
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(2, 7, 10, 0.98) 0%, rgba(2, 7, 10, 0.9) 26%, rgba(2, 7, 10, 0.66) 52%, rgba(2, 7, 10, 0.92) 100%),
    linear-gradient(180deg, rgba(2, 7, 10, 0.68), rgba(2, 7, 10, 0.94)),
    var(--marketing-shield-bg) center / cover no-repeat,
    radial-gradient(circle at 52% 0%, rgba(236, 255, 220, 0.25), transparent 23%),
    linear-gradient(135deg, #020706 0%, #06100b 46%, #020706 100%);
  color: #f8fafc;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.marketing-software-sidebar {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  padding: 16px 12px;
  border-right: 1px solid rgba(34, 197, 94, 0.14);
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(2, 12, 8, 0.96), rgba(3, 9, 8, 0.96));
  backdrop-filter: blur(8px);
}

.marketing-software-brand {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(34, 197, 94, 0.14), rgba(3, 22, 13, 0.62)),
    rgba(3, 22, 13, 0.42);
}

.marketing-software-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(34, 197, 94, 0.34);
  filter: hue-rotate(86deg) saturate(1.35) brightness(0.82);
}

.marketing-software-brand strong,
.marketing-manager-card strong {
  display: block;
  color: #f8fafc;
  font-weight: 950;
  line-height: 1.08;
}

.marketing-software-brand span,
.marketing-manager-card span {
  display: block;
  color: rgba(187, 247, 208, 0.7);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.3;
  margin-top: 4px;
}

.marketing-software-nav {
  display: grid;
  align-content: start;
  gap: 6px;
  max-height: calc(100vh - 260px);
  overflow: auto;
  padding-right: 2px;
}

.marketing-software-nav button {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: rgba(226, 232, 240, 0.78);
  text-align: left;
  font-weight: 850;
  cursor: pointer;
}

.marketing-software-nav button:hover {
  border-color: rgba(34, 197, 94, 0.22);
  background: rgba(34, 197, 94, 0.08);
  color: #dcfce7;
}

.marketing-software-nav button.active {
  border-color: rgba(34, 197, 94, 0.28);
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.25), rgba(34, 197, 94, 0.08));
  color: #f8fafc;
  box-shadow: inset 3px 0 0 #22c55e;
}

.marketing-manager-card {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 9px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.5);
}

.marketing-manager-card .avatar {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.24), rgba(21, 128, 61, 0.34));
  color: #bbf7d0;
}

.marketing-signout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.5);
  color: #dcfce7;
  font-weight: 900;
  cursor: pointer;
}

.marketing-signout-btn:hover {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.1);
}

.marketing-software-main {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 24px;
}

.marketing-software-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.marketing-software-header h2 {
  margin: 0;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  letter-spacing: 0;
}

.marketing-software-header p {
  max-width: 760px;
  margin: 6px 0 0;
  color: rgba(226, 232, 240, 0.7);
}

.marketing-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.marketing-header-actions .icon-btn {
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(3, 22, 13, 0.62);
  color: #bbf7d0;
}

.marketing-header-actions .icon-btn:hover {
  border-color: rgba(57, 255, 136, 0.34);
  background: rgba(34, 197, 94, 0.11);
  color: #f8fafc;
}

.marketing-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(310px, 34vw);
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  background: rgba(2, 9, 8, 0.62);
  color: rgba(226, 232, 240, 0.7);
}

.marketing-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f8fafc;
  font: inherit;
}

.marketing-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 5px 10px 5px 5px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  background: rgba(3, 22, 13, 0.62);
  color: #f8fafc;
  cursor: pointer;
}

.marketing-profile-chip span:last-of-type {
  display: grid;
  line-height: 1.1;
  text-align: left;
}

.marketing-profile-chip strong {
  font-size: 0.88rem;
}

.marketing-profile-chip small {
  color: rgba(187, 247, 208, 0.72);
  font-size: 0.72rem;
}

.marketing-profile-chip b {
  color: #4ade80;
}

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

.marketing-workzone-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(360px, 1.45fr) minmax(260px, 1fr);
  gap: 16px;
}

.marketing-crm-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  min-height: 178px;
  padding: 22px;
  border: 1px solid rgba(57, 255, 136, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 18%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(2, 16, 10, 0.28) 42%, rgba(3, 22, 13, 0.84)),
    radial-gradient(circle at 14% 0%, rgba(187, 247, 208, 0.22), transparent 32%),
    rgba(3, 22, 13, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -24px 44px rgba(0, 0, 0, 0.18),
    0 22px 52px rgba(0, 0, 0, 0.42),
    0 0 34px rgba(34, 197, 94, 0.08);
}

.marketing-crm-hero-copy span {
  display: inline-flex;
  margin-bottom: 7px;
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-crm-hero-copy h3 {
  margin: 0;
  color: #f8fafc;
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.marketing-crm-hero-copy p {
  max-width: 650px;
  margin: 9px 0 0;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.45;
}

.marketing-crm-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(112px, 1fr));
  gap: 9px;
}

.marketing-crm-hero-stats > div,
.marketing-command-card {
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 16px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), transparent 20%),
    linear-gradient(145deg, rgba(8, 41, 23, 0.82), rgba(2, 12, 8, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.marketing-crm-hero-stats > div {
  min-height: 78px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
}

.marketing-crm-hero-stats small,
.marketing-command-card small {
  color: rgba(226, 232, 240, 0.64);
  font-weight: 750;
}

.marketing-crm-hero-stats strong {
  color: #f8fafc;
  font-size: 1.55rem;
  line-height: 1;
}

.marketing-command-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.marketing-command-card {
  position: relative;
  min-height: 132px;
  display: grid;
  justify-items: start;
  gap: 5px;
  padding: 14px;
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.marketing-command-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.54);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), transparent 18%),
    linear-gradient(145deg, rgba(10, 61, 32, 0.9), rgba(2, 18, 10, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 22px 46px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(34, 197, 94, 0.14);
}

.marketing-command-card-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.marketing-command-card-label {
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.marketing-command-card strong {
  color: #f8fafc;
  font-size: 1.75rem;
  line-height: 1;
}

.marketing-command-card.tone-blue .marketing-command-card-icon { color: #bae6fd; background: rgba(14, 165, 233, 0.18); }
.marketing-command-card.tone-gold .marketing-command-card-icon { color: #fde68a; background: rgba(234, 179, 8, 0.18); }

.marketing-shield-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  background:
    radial-gradient(circle at 52% 6%, rgba(191, 219, 254, 0.2), transparent 26%),
    radial-gradient(circle at 52% 42%, rgba(34, 197, 94, 0.1), transparent 42%);
  opacity: 1;
  filter: none;
  pointer-events: none;
  z-index: 0;
}

.marketing-workzone-grid > * {
  position: relative;
  z-index: 1;
}

.marketing-platform-access {
  grid-column: 1 / -1;
}

.marketing-platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.marketing-platform-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 132px;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), transparent 18%),
    linear-gradient(150deg, rgba(3, 34, 18, 0.86), rgba(6, 37, 22, 0.5));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.marketing-platform-card:hover {
  transform: translateY(-3px);
  border-color: rgba(57, 255, 136, 0.34);
  background: linear-gradient(150deg, rgba(5, 32, 18, 0.82), rgba(6, 47, 27, 0.52));
}

.marketing-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  font-size: 0.9rem;
  letter-spacing: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.marketing-logo-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.marketing-logo-symbol {
  position: relative;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.logo-facebook { background: linear-gradient(135deg, #1877f2, #0b4db3); font-size: 1.4rem; font-family: Arial, sans-serif; }
.logo-instagram { background: radial-gradient(circle at 28% 105%, #feda75 0 18%, #fa7e1e 35%, #d62976 58%, #962fbf 78%, #4f5bd5 100%); }
.logo-tiktok { background: linear-gradient(135deg, #050505, #111827); text-shadow: -2px 0 #25f4ee, 2px 0 #fe2c55; }
.logo-website { background: linear-gradient(135deg, #0ea5e9, #0369a1); font-size: 0.72rem; }
.logo-youtube { background: linear-gradient(135deg, #ff0033, #b91c1c); }
.logo-creative { background: linear-gradient(135deg, #22c55e, #15803d); }
.logo-script,
.logo-caption { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.logo-video { background: linear-gradient(135deg, #16a34a, #052e16); font-size: 0.72rem; }
.logo-image { background: linear-gradient(135deg, #84cc16, #166534); font-size: 0.72rem; }
.logo-powerpoint { background: linear-gradient(135deg, #d24726, #a33b1e); }
.logo-recorder { background: linear-gradient(135deg, #22c55e, #064e3b); font-size: 0.72rem; }
.logo-canva { background: linear-gradient(135deg, #00c4cc, #7d2ae8); }
.logo-adobe { background: linear-gradient(135deg, #ff0000, #8b0000); }
.logo-photoshop { background: linear-gradient(135deg, #001e36, #31a8ff); color: #9cdcfe; }
.logo-capcut { background: linear-gradient(135deg, #111827, #f8fafc); color: #111827; }
.logo-vidu { background: linear-gradient(135deg, #a855f7, #22c55e); }
.logo-calendar-hub { background: linear-gradient(145deg, #064e3b, #22c55e); color: #dcfce7; }
.logo-social-publisher { background: linear-gradient(145deg, #052e16, #16a34a 58%, #38bdf8); color: #ecfdf5; }
.logo-campaign-builder { background: linear-gradient(145deg, #14532d, #84cc16); color: #f7fee7; }
.logo-ads-manager { background: linear-gradient(145deg, #713f12, #eab308); color: #fffbeb; }

.logo-instagram .marketing-logo-symbol {
  border: 2px solid currentColor;
  border-radius: 8px;
}

.logo-instagram .marketing-logo-symbol::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.logo-instagram .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.logo-tiktok .marketing-logo-symbol::before {
  content: "";
  width: 8px;
  height: 18px;
  border-left: 4px solid #25f4ee;
  border-bottom: 4px solid #25f4ee;
  border-radius: 0 0 0 10px;
  transform: skewY(-8deg);
}

.logo-tiktok .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 3px;
  width: 10px;
  height: 4px;
  background: #fe2c55;
  border-radius: 999px;
}

.logo-website .marketing-logo-symbol {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.logo-website .marketing-logo-symbol::before {
  content: "";
  position: absolute;
  inset: 4px 8px;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 999px;
}

.logo-website .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 10px;
  border-top: 2px solid currentColor;
}

.logo-youtube .marketing-logo-symbol::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  margin-left: 3px;
}

.logo-creative .marketing-logo-symbol::before,
.logo-video .marketing-logo-symbol::before,
.logo-image .marketing-logo-symbol::before,
.logo-recorder .marketing-logo-symbol::before,
.logo-capcut .marketing-logo-symbol::before,
.logo-vidu .marketing-logo-symbol::before {
  content: "";
  width: 20px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.logo-creative .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.logo-video .marketing-logo-symbol::after,
.logo-vidu .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.logo-image .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 14px;
  height: 7px;
  background: linear-gradient(135deg, transparent 45%, currentColor 46% 60%, transparent 61%),
    linear-gradient(45deg, transparent 45%, currentColor 46% 60%, transparent 61%);
}

.logo-recorder .marketing-logo-symbol::before {
  width: 13px;
  height: 18px;
  border-radius: 8px;
}

.logo-recorder .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  bottom: 1px;
  width: 16px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  border-right: 2px solid currentColor;
  border-radius: 0 0 8px 8px;
}

.logo-capcut .marketing-logo-symbol::before {
  width: 22px;
  height: 12px;
  transform: rotate(15deg);
}

.logo-capcut .marketing-logo-symbol::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
  transform: rotate(-15deg);
}

.marketing-platform-card strong,
.marketing-project-row strong,
.marketing-notification-list strong,
.marketing-approval-summary > strong {
  color: #f8fafc;
}

.marketing-platform-status {
  width: fit-content;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  margin-top: 3px;
  padding: 0 8px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.1);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.marketing-platform-card small,
.marketing-platform-card em,
.marketing-project-row small,
.marketing-project-row span,
.marketing-project-row b,
.marketing-notification-list small {
  color: rgba(226, 232, 240, 0.68);
}

.marketing-platform-card em {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-style: normal;
}

.marketing-platform-card .btn,
.marketing-platform-card .icon-btn {
  grid-column: 1 / -1;
  justify-self: stretch;
}

.marketing-platform-card .icon-btn {
  min-height: 28px;
}

.marketing-kpi-card,
.marketing-panel,
.marketing-module-hero,
.marketing-tool-card {
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 20%),
    linear-gradient(135deg, rgba(12, 35, 24, 0.9), rgba(5, 13, 12, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.075),
    inset 0 -18px 34px rgba(0, 0, 0, 0.16),
    0 20px 46px rgba(0, 0, 0, 0.34),
    0 0 20px rgba(34, 197, 94, 0.07);
}

.marketing-kpi-card {
  min-height: 104px;
  display: grid;
  gap: 3px;
  align-content: center;
  padding: 16px;
}

.marketing-kpi-card .icon {
  color: #22c55e;
}

.marketing-kpi-card span,
.marketing-tool-card p,
.marketing-panel small,
.marketing-campaign-row small,
.marketing-revenue-grid span {
  color: rgba(226, 232, 240, 0.66);
}

.marketing-kpi-card strong {
  color: #f8fafc;
  font-size: 2rem;
  line-height: 1;
}

.marketing-kpi-card small {
  color: #4ade80;
  font-weight: 800;
}

.marketing-studio-hero-card {
  position: relative;
  grid-column: 2 / span 2;
  grid-row: span 3;
  min-height: 410px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0%, rgba(245, 255, 229, 0.45), transparent 18%),
    radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(1, 7, 6, 0.25), rgba(1, 6, 5, 0.94));
}

.marketing-green-logo-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.94;
  pointer-events: none;
}

.marketing-green-logo-stage img {
  width: min(430px, 78%);
  max-height: 330px;
  object-fit: contain;
  filter: hue-rotate(86deg) saturate(1.55) brightness(0.92) drop-shadow(0 0 34px rgba(34, 197, 94, 0.48));
  animation: marketingLogoFloat 6s ease-in-out infinite;
}

.marketing-hero-bg-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  padding: 220px 22px 28px;
  text-align: center;
}

.marketing-hero-bg-copy span {
  color: #dcfce7;
  font-weight: 950;
}

.marketing-hero-bg-copy strong {
  color: #f8fafc;
  font-size: 1.08rem;
}

.marketing-hero-bg-copy small,
.marketing-hero-bg-copy em {
  color: rgba(226, 232, 240, 0.78);
  font-style: normal;
  font-weight: 750;
}

.marketing-enter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 260px;
  height: 50px;
  margin-top: 4px;
  border: 1px solid rgba(134, 239, 172, 0.58);
  border-radius: 12px;
  background: linear-gradient(180deg, #22c55e, #15803d);
  color: #ecfdf5;
  font-weight: 950;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(34, 197, 94, 0.28);
}

.marketing-enter-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.marketing-shortcuts {
  grid-column: 1;
  grid-row: span 2;
}

.marketing-calendar-card {
  grid-column: 4;
  grid-row: span 2;
}

.marketing-panel {
  padding: 14px;
}

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

.marketing-panel-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 1rem;
}

.marketing-panel-head span {
  color: rgba(226, 232, 240, 0.62);
  font-size: 0.86rem;
}

.marketing-shortcuts button,
.marketing-campaign-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  background: rgba(3, 22, 13, 0.46);
  color: #f8fafc;
  text-align: left;
}

.marketing-work-button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  margin-bottom: 8px;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  background: rgba(3, 22, 13, 0.46);
  color: #f8fafc;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.marketing-work-button:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.11);
}

.marketing-work-button .icon {
  color: #22c55e;
}

.marketing-work-button .marketing-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.marketing-work-button .marketing-logo-svg {
  width: 21px;
  height: 21px;
}

.marketing-studio-shortcut {
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(3, 22, 13, 0.58)),
    rgba(3, 22, 13, 0.46);
}

.marketing-work-button strong,
.marketing-work-button small {
  display: block;
}

.marketing-work-button small {
  color: rgba(226, 232, 240, 0.66);
  margin-top: 1px;
}

.marketing-shortcuts button {
  cursor: pointer;
}

.marketing-shortcuts button:hover {
  border-color: rgba(34, 197, 94, 0.34);
  background: rgba(34, 197, 94, 0.11);
}

.marketing-shortcuts button .icon,
.marketing-tool-card .icon {
  color: #22c55e;
}

.marketing-shortcuts strong,
.marketing-campaign-row strong {
  display: block;
  color: #f8fafc;
}

.marketing-shortcuts small {
  display: block;
  margin-top: 1px;
}

.marketing-shortcuts .view-all,
.link-btn {
  min-height: 34px;
  justify-content: center;
  display: inline-flex;
  grid-template-columns: none;
  border-color: rgba(34, 197, 94, 0.16);
  color: #4ade80;
  font-weight: 900;
}

.link-btn {
  width: auto;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

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

.mini-calendar > div {
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  background: rgba(3, 22, 13, 0.38);
}

.mini-calendar strong,
.mini-calendar span {
  display: block;
}

.mini-calendar span {
  margin-top: 22px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
}

.campaign-dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #22c55e, #0f766e);
}

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

.marketing-revenue-grid.five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.marketing-revenue-grid > div {
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 10px;
  background: rgba(3, 22, 13, 0.34);
}

.marketing-revenue-grid strong {
  display: block;
  color: #f8fafc;
  font-size: 1.25rem;
}

.marketing-line-chart {
  height: 70px;
  display: flex;
  align-items: end;
  gap: 8px;
  margin-top: 14px;
}

.marketing-line-chart span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #4ade80, rgba(34, 197, 94, 0.1));
}

.marketing-line-chart span:nth-child(1) { height: 36%; }
.marketing-line-chart span:nth-child(2) { height: 52%; }
.marketing-line-chart span:nth-child(3) { height: 44%; }
.marketing-line-chart span:nth-child(4) { height: 68%; }
.marketing-line-chart span:nth-child(5) { height: 58%; }
.marketing-line-chart span:nth-child(6) { height: 82%; }

.marketing-donut {
  width: 118px;
  height: 118px;
  margin: 4px auto 14px;
  border-radius: 50%;
  background: conic-gradient(#22c55e 0 35%, #16a34a 35% 63%, #0f766e 63% 81%, #14532d 81% 100%);
  position: relative;
}

.marketing-donut::after {
  content: "";
  position: absolute;
  inset: 34px;
  border-radius: inherit;
  background: #04100c;
}

.marketing-channel-list {
  display: grid;
  gap: 7px;
}

.marketing-channel-list > div {
  display: flex;
  justify-content: space-between;
  color: rgba(226, 232, 240, 0.72);
}

.marketing-channel-list strong {
  color: #bbf7d0;
}

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

.marketing-approval-list.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.marketing-project-list,
.marketing-notification-list,
.marketing-plan-list {
  display: grid;
  gap: 9px;
}

.marketing-project-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.045), rgba(3, 22, 13, 0.52)),
    rgba(3, 22, 13, 0.4);
  color: inherit;
  font: inherit;
  text-align: left;
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.marketing-project-row:hover {
  transform: translateY(-1px);
  border-color: rgba(57, 255, 136, 0.34);
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.11), rgba(3, 22, 13, 0.6)),
    rgba(3, 22, 13, 0.48);
}

.marketing-project-row > div:nth-child(2) {
  min-width: 0;
}

.marketing-project-row strong,
.marketing-project-row small,
.marketing-project-row span,
.marketing-project-row b {
  display: block;
  min-width: 0;
  letter-spacing: 0;
}

.marketing-project-row strong,
.marketing-project-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.marketing-project-row span,
.marketing-project-row b {
  overflow-wrap: anywhere;
}

.marketing-project-row > span:not(.status) {
  grid-column: 2 / -1;
  justify-self: start;
  text-align: left;
}

.marketing-project-row > .status {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
}

.marketing-project-row > b {
  grid-column: 3;
  grid-row: 2;
}

.marketing-project-row .status,
.marketing-project-row b {
  justify-self: end;
  text-align: right;
  white-space: nowrap;
}

.marketing-project-actions,
.marketing-plan-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 8px;
  border-top: 1px solid rgba(34, 197, 94, 0.1);
}

.tiny-select {
  min-height: 34px;
  max-width: 190px;
  border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 10px;
  background: rgba(4, 20, 12, 0.88);
  color: #e7fff0;
  padding: 0 10px;
  font-size: 0.78rem;
}

.marketing-empty-state {
  display: grid;
  gap: 8px;
  min-height: 124px;
  align-content: center;
  justify-items: start;
  padding: 18px;
  border: 1px dashed rgba(74, 222, 128, 0.3);
  border-radius: 16px;
  background:
    radial-gradient(circle at 12% 0%, rgba(34, 197, 94, 0.12), transparent 36%),
    rgba(3, 22, 13, 0.42);
}

.marketing-empty-state strong {
  color: #f8fafc;
  font-size: 1rem;
}

.marketing-empty-state small {
  color: rgba(226, 232, 240, 0.68);
  line-height: 1.45;
}

.project-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #f8fafc;
  font-weight: 950;
  background: rgba(34, 197, 94, 0.26);
}

.project-thumb .marketing-logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.72rem;
  box-shadow: none;
}

.project-thumb .marketing-logo-svg {
  width: 21px;
  height: 21px;
}

.project-thumb.tone-blue { background: rgba(59, 130, 246, 0.3); }
.project-thumb.tone-yellow { background: rgba(234, 179, 8, 0.3); }
.project-thumb.tone-purple { background: rgba(168, 85, 247, 0.3); }

.project-link {
  margin-top: 10px;
}

.marketing-approval-summary {
  display: grid;
  align-content: start;
  gap: 14px;
}

.marketing-approval-summary > strong {
  font-size: 2rem;
}

.marketing-notification-list > div:not(.marketing-empty-state) {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(34, 197, 94, 0.12);
}

.marketing-notification-list > div:not(.marketing-empty-state) > span {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #4ade80;
}

.marketing-notification-list small {
  display: block;
  grid-column: 2;
}

.marketing-plan-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 18%),
    rgba(3, 22, 13, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.marketing-plan-row strong,
.marketing-plan-row small,
.marketing-plan-row em {
  display: block;
  min-width: 0;
}

.marketing-plan-row strong {
  color: #f8fafc;
}

.marketing-plan-row small,
.marketing-plan-row em {
  color: rgba(226, 232, 240, 0.66);
  font-style: normal;
  overflow-wrap: anywhere;
}

.marketing-plan-row .status {
  justify-self: end;
  white-space: nowrap;
}

.marketing-plan-list.compact .marketing-plan-actions {
  justify-content: flex-start;
}

.marketing-module-extra {
  margin-top: 2px;
}

.marketing-approval-modal-panel {
  max-width: 720px;
}

.marketing-approval-modal .drawer-panel,
.marketing-project-modal .drawer-panel,
.marketing-confirm-modal .drawer-panel,
.marketing-tool-modal .drawer-panel,
.marketing-post-modal .drawer-panel {
  border: 1px solid rgba(34, 197, 94, 0.22);
  background:
    radial-gradient(circle at 18% 0%, rgba(34, 197, 94, 0.18), transparent 28%),
    linear-gradient(145deg, rgba(8, 28, 18, 0.98), rgba(2, 8, 7, 0.98));
  color: #f8fafc;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.marketing-approval-modal .drawer-title,
.marketing-project-modal .drawer-title,
.marketing-confirm-modal .drawer-title,
.marketing-tool-modal .drawer-title,
.marketing-post-modal .drawer-title,
.marketing-approval-modal .field span,
.marketing-project-modal .field span,
.marketing-tool-modal .field span,
.marketing-post-modal .field span {
  color: #f8fafc;
}

.marketing-approval-modal .meta,
.marketing-project-modal .meta,
.marketing-confirm-modal .meta,
.marketing-tool-modal .meta,
.marketing-post-modal .meta,
.marketing-approval-modal .field small,
.marketing-project-modal .field small,
.marketing-tool-modal .field small,
.marketing-post-modal .field small {
  color: rgba(226, 232, 240, 0.72);
}

.marketing-approval-modal input,
.marketing-approval-modal select,
.marketing-approval-modal textarea,
.marketing-project-modal input,
.marketing-project-modal select,
.marketing-project-modal textarea,
.marketing-tool-modal input,
.marketing-tool-modal select,
.marketing-tool-modal textarea,
.marketing-post-modal input,
.marketing-post-modal select,
.marketing-post-modal textarea {
  border-color: rgba(34, 197, 94, 0.18);
  background: rgba(2, 10, 8, 0.72);
  color: #f8fafc;
}

.marketing-approval-modal input::placeholder,
.marketing-approval-modal textarea::placeholder,
.marketing-project-modal input::placeholder,
.marketing-project-modal textarea::placeholder,
.marketing-tool-modal input::placeholder,
.marketing-tool-modal textarea::placeholder,
.marketing-post-modal input::placeholder,
.marketing-post-modal textarea::placeholder {
  color: rgba(226, 232, 240, 0.46);
}

.marketing-tool-modal-panel {
  max-width: min(980px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: auto;
}

.marketing-post-modal-panel {
  max-width: min(920px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: auto;
}

.marketing-project-modal-panel {
  max-width: min(980px, calc(100vw - 28px));
  max-height: min(92vh, 920px);
  overflow: auto;
}

.marketing-confirm-modal-panel {
  max-width: min(560px, calc(100vw - 28px));
}

.marketing-platform-handoff-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  margin: 12px 0 14px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 12px;
  background: rgba(3, 22, 13, 0.52);
}

.marketing-platform-handoff-card strong {
  color: #f8fafc;
}

.marketing-platform-handoff-card small {
  display: block;
  margin-top: 2px;
  color: rgba(226, 232, 240, 0.68);
}

.marketing-post-form {
  margin-top: 4px;
}

.marketing-tool-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 16px;
}

.marketing-tool-flow span {
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 8px;
  border: 1px solid rgba(34, 197, 94, 0.14);
  border-radius: 10px;
  background: rgba(3, 22, 13, 0.46);
  color: rgba(220, 252, 231, 0.88);
  font-size: 0.76rem;
  font-weight: 850;
  text-align: center;
}

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

.marketing-tool-launcher,
.marketing-attached-assets article,
.marketing-email-draft-box {
  border: 1px solid rgba(34, 197, 94, 0.14);
  border-radius: 12px;
  background: rgba(3, 22, 13, 0.5);
}

.marketing-tool-launcher {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.marketing-tool-launcher strong,
.marketing-email-draft-box strong,
.marketing-attached-assets strong {
  color: #f8fafc;
}

.marketing-tool-launcher small,
.marketing-tool-launcher em,
.marketing-email-draft-box small,
.marketing-attached-assets small,
.marketing-attached-assets p {
  display: block;
  color: rgba(226, 232, 240, 0.66);
  font-size: 0.78rem;
  font-style: normal;
}

.marketing-tool-launcher em {
  margin-top: 3px;
  color: rgba(134, 239, 172, 0.72);
}

.marketing-tool-form {
  margin-top: 4px;
}

.marketing-upload-note {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.08);
}

.marketing-upload-note strong {
  color: #f8fafc;
}

.marketing-upload-note small {
  color: rgba(226, 232, 240, 0.66);
}

.marketing-tool-form input[type="file"] {
  min-height: 46px;
  padding: 10px;
  border-radius: 10px;
  color: rgba(226, 232, 240, 0.82);
}

.marketing-email-draft-box {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.marketing-email-draft-box .checkbox-row {
  margin: 0;
}

.marketing-attached-assets {
  margin-top: 14px;
}

.marketing-attached-assets h3 {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 0.96rem;
}

.marketing-attached-assets article {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.marketing-attached-assets .marketing-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 0.68rem;
}

.marketing-module-view {
  display: grid;
  gap: 14px;
}

.marketing-module-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
}

.marketing-module-hero span {
  color: #4ade80;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
}

.marketing-module-hero h3 {
  margin: 6px 0 4px;
  font-size: 1.9rem;
  color: #f8fafc;
}

.marketing-module-hero p {
  margin: 0;
  max-width: 720px;
  color: rgba(226, 232, 240, 0.7);
}

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

.marketing-tool-card {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.marketing-tool-card h4 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.08rem;
}

.marketing-tool-card p {
  margin: 0;
  line-height: 1.45;
}

.marketing-tool-card .btn {
  align-self: end;
  justify-self: start;
  margin-top: 8px;
}

.command-department-card {
  border-color: rgba(34, 197, 94, 0.22);
}

.command-department-card.tone-yellow {
  border-color: rgba(243, 195, 22, 0.34);
}

.command-department-card.tone-purple {
  border-color: rgba(168, 85, 247, 0.34);
}

.command-department-head,
.command-department-foot {
  justify-content: space-between;
}

.command-department-card ul {
  display: grid;
  gap: 6px;
  margin: 12px 0;
  padding-left: 18px;
  color: rgba(226, 232, 240, 0.82);
}

.command-breakdown-row {
  display: grid;
  gap: 6px;
}

.command-total-score {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: rgba(226, 232, 240, 0.74);
  font-weight: 900;
}

.command-total-score strong {
  color: var(--primary);
}

.command-qa-row > span:first-child {
  color: #70e196;
}

.status-button {
  border: 0;
  padding: 0;
  background: transparent;
}

.command-flow.compact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.command-flow.compact > div {
  display: grid;
  align-items: start;
  justify-content: stretch;
}

.command-flow.compact > div > span {
  margin-top: 6px;
  justify-self: start;
}

.command-safety-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.command-safety-grid > div {
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(243, 195, 22, 0.2);
  border-radius: 10px;
  background: rgba(243, 195, 22, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 750;
  line-height: 1.45;
}

.command-center-page .pill,
.command-center-page .status-pill {
  color: #e5edf8;
  background: rgba(148, 163, 184, 0.15);
}

.command-center-page .status-working,
.command-center-page .status-ready,
.command-center-page .status-connected,
.command-center-page .status-key-present,
.command-center-page .status-approved,
.command-center-page .status-passed,
.command-center-page .status-full-authority,
.command-center-page .status-scoped-authority,
.command-center-page .status-safe-mode-armed {
  color: #7ee39f;
  background: rgba(34, 197, 94, 0.14);
}

.command-center-page .status-setup-required,
.command-center-page .status-needs-review,
.command-center-page .status-waiting-approval,
.command-center-page .status-needs-revision,
.command-center-page .status-test-mode,
.command-center-page .status-external-mcp,
.command-center-page .status-restricted-access,
.command-center-page .status-in-progress,
.command-center-page .status-partial {
  color: #ffd95b;
  background: rgba(243, 195, 22, 0.16);
}

.command-center-page .status-blocking,
.command-center-page .status-failed,
.command-center-page .status-rejected,
.command-center-page .status-key-missing {
  color: #ff9b9b;
  background: rgba(239, 68, 68, 0.18);
}

@media (max-width: 1280px) {
  .command-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 1020px) {
  .command-center-page {
    grid-template-columns: 1fr;
  }

  .command-sidebar-panel {
    position: static;
    min-height: auto;
  }

  .command-department-grid,
  .ecosystem-child-grid,
  .agent-guide-grid,
  .command-layout-grid,
  .command-layout-grid.bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .command-main {
    padding: 12px;
  }

  .command-header-panel,
  .command-fix-row,
  .command-plan-row,
  .command-qa-row,
  .command-mode-row {
    align-items: stretch;
    flex-direction: column;
  }

  .command-header-actions,
  .command-plan-actions {
    justify-content: stretch;
  }

  .command-metric-grid,
  .command-flow.compact,
  .agent-guide-step,
  .command-safety-grid {
    grid-template-columns: 1fr;
  }
}

/* Screenshot-faithful Shield+ Business Control command center */
.command-shell {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(59, 130, 246, 0.05), transparent 24%),
    linear-gradient(180deg, #020914 0%, #06111d 54%, #040811 100%);
  color: #f8fafc;
}

.command-shell .app-error-box {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 30;
  max-width: min(720px, calc(100vw - 32px));
  transform: translateX(-50%);
}

.command-center-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 0;
  margin: 0;
  color: #eef6ff;
  background:
    radial-gradient(circle at 74% 0%, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, #030a13, #07111d 58%, #03070d);
}

.command-sidebar-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  align-self: start;
  padding: 18px 14px;
  border-width: 0 1px 0 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(4, 15, 27, 0.98), rgba(2, 8, 16, 0.99)),
    #030a13;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
}

.command-mini-brand {
  gap: 12px;
}

.command-mini-brand .brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  border: 1px solid rgba(248, 196, 0, 0.54);
}

.command-mini-brand strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 950;
  letter-spacing: 0;
}

.command-mini-brand span,
.command-account-card span {
  color: rgba(226, 232, 240, 0.72);
  font-weight: 650;
}

.command-menu-group {
  align-self: start;
  gap: 12px;
}

.command-menu-item {
  min-height: 50px;
  padding: 0 16px;
  border-radius: 8px;
  color: rgba(248, 250, 252, 0.88);
  font-size: 0.98rem;
  font-weight: 800;
}

.command-menu-item .icon {
  width: 19px;
  height: 19px;
}

.command-menu-item.active {
  border-color: rgba(248, 196, 0, 0.36);
  background: linear-gradient(90deg, rgba(248, 196, 0, 0.17), rgba(248, 196, 0, 0.06));
  box-shadow: inset 3px 0 0 #f8c400;
  color: #f8c400;
}

.command-menu-item:hover {
  border-color: rgba(59, 130, 246, 0.38);
  background: rgba(59, 130, 246, 0.1);
}

.command-account-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.58);
}

.command-account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 900;
}

.command-account-card strong {
  display: block;
  color: #ffffff;
  font-size: 0.92rem;
}

.command-account-caret {
  color: rgba(226, 232, 240, 0.6);
}

.settings-command-hub {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-chip-row,
.actions.wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.department-action-panel {
  margin: 16px 0;
}

.notification-settings-card .field.compact {
  margin: 10px 0;
}

.command-main {
  min-height: 100vh;
  padding: 18px 30px 30px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.14), transparent 24%),
    radial-gradient(circle at 7% 4%, rgba(248, 196, 0, 0.06), transparent 22%),
    linear-gradient(180deg, #020914, #06111d 58%, #03070d);
  box-shadow: none;
  gap: 14px;
}

.command-header-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 0 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.command-header-panel h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.05;
  font-weight: 950;
}

.command-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.command-date-time strong {
  margin-left: 8px;
  color: #f8c400;
}

.command-search {
  min-width: min(360px, 32vw);
  height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
}

.command-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
}

.command-search input::placeholder {
  color: rgba(226, 232, 240, 0.65);
}

.command-search kbd {
  padding: 2px 6px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 5px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.72rem;
}

.command-new-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border: 0;
  border-radius: 7px;
  background: linear-gradient(180deg, #facc15, #f59e0b);
  color: #06111d;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(248, 196, 0, 0.24);
}

.command-metric-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.command-metric-card {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.15);
  background: linear-gradient(145deg, rgba(15, 30, 46, 0.8), rgba(7, 16, 28, 0.94));
}

.command-metric-card span {
  display: block;
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.83rem;
  font-weight: 850;
}

.command-metric-card strong {
  display: block;
  margin: 9px 0 4px;
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  font-weight: 950;
}

.command-metric-card small {
  color: rgba(226, 232, 240, 0.68);
  font-weight: 650;
}

.command-kpi-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #3b82f6;
}

.command-metric-card.tone-green .command-kpi-icon {
  background: rgba(34, 197, 94, 0.17);
  color: #4ade80;
}

.command-metric-card.tone-purple .command-kpi-icon {
  background: rgba(168, 85, 247, 0.18);
  color: #a855f7;
}

.command-metric-card.tone-red .command-kpi-icon {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
}

.command-metric-card.tone-gold .command-kpi-icon {
  background: rgba(248, 196, 0, 0.18);
  color: #facc15;
}

.command-layout-grid {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 14px;
}

.command-layout-grid.bottom,
.command-secondary-panels {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-secondary-panels {
  margin-top: 2px;
}

.command-secondary-panels .command-setup-panel {
  grid-column: 1 / -1;
}

.command-secondary-panels .agent-guide-grid {
  grid-template-columns: repeat(5, minmax(160px, 1fr));
}

.command-panel,
.command-department-card {
  border-radius: 8px;
  border-color: rgba(148, 163, 184, 0.15);
  background: linear-gradient(145deg, rgba(12, 25, 40, 0.84), rgba(5, 13, 24, 0.96));
}

.command-panel.critical {
  border-color: rgba(239, 68, 68, 0.34);
  background: linear-gradient(145deg, rgba(67, 18, 22, 0.52), rgba(6, 17, 29, 0.96));
}

.command-panel-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #f8fafc;
  font-size: 0.96rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.btn.ghost {
  border-color: transparent;
  background: transparent;
  color: #a78bfa;
}

.command-fix-row,
.command-plan-row,
.command-qa-row,
.command-activity-row,
.command-breakdown-row,
.command-mode-row,
.command-engram-row,
.command-skill-list > div,
.command-flow.compact > div {
  border-width: 0 0 1px;
  border-color: rgba(148, 163, 184, 0.12);
  border-radius: 0;
  background: transparent;
}

.command-fix-row:last-child,
.command-plan-row:last-child,
.command-qa-row:last-child,
.command-activity-row:last-child {
  border-bottom: 0;
}

.command-rank {
  background: rgba(239, 68, 68, 0.68);
  color: #ffffff;
}

.command-fix-row:nth-child(3) .command-rank,
.command-fix-row:nth-child(4) .command-rank {
  background: rgba(245, 158, 11, 0.72);
}

.risk-high,
.risk-critical {
  color: #f87171;
  font-weight: 900;
}

.risk-medium {
  color: #facc15;
  font-weight: 900;
}

.risk-low {
  color: #4ade80;
  font-weight: 900;
}

.btn.review {
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
}

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

.active-department-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.command-department-card {
  --department-accent: #3b82f6;
  --department-accent-rgb: 59, 130, 246;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 336px;
  padding: 12px;
  border: 1px solid rgba(var(--department-accent-rgb), 0.34);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(var(--department-accent-rgb), 0.12), transparent 32%),
    linear-gradient(145deg, rgba(13, 28, 46, 0.98), rgba(3, 10, 19, 0.99));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.72),
    0 12px 0 rgba(1, 5, 12, 0.32),
    0 20px 32px rgba(0, 0, 0, 0.28);
  transform: translateZ(0);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.command-department-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 6%, rgba(var(--department-accent-rgb), 0.95) 6% 36%, rgba(248, 196, 0, 0.95) 36% 52%, transparent 52%) top / 100% 3px no-repeat,
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  opacity: 0.9;
}

.command-department-card.tone-green {
  --department-accent: #22c55e;
  --department-accent-rgb: 34, 197, 94;
}

.command-department-card.tone-gold,
.command-department-card.tone-yellow {
  --department-accent: #f8c400;
  --department-accent-rgb: 248, 196, 0;
}

.command-department-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--department-accent-rgb), 0.66);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.8),
    0 14px 0 rgba(1, 5, 12, 0.3),
    0 25px 42px rgba(0, 0, 0, 0.36),
    0 0 22px rgba(var(--department-accent-rgb), 0.12);
}

.command-department-card > * {
  position: relative;
}

.department-logo-stage {
  position: relative;
  min-height: 0;
  aspect-ratio: 1466 / 971;
  border: 1px solid rgba(226, 232, 240, 0.28);
  border-radius: 5px;
  overflow: hidden;
  background: #02070d;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 5px 0 rgba(0, 0, 0, 0.52),
    0 14px 24px rgba(0, 0, 0, 0.3);
  perspective: 900px;
}

.department-logo-stage::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(var(--department-accent-rgb), 0.2);
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.34);
}

.department-logo-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.12), transparent 24% 72%, rgba(var(--department-accent-rgb), 0.08));
}

.department-logo-turn {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(1.5deg) translateZ(4px) scale(1.015);
  transition: transform 220ms ease, filter 220ms ease;
}

.department-logo-turn img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  backface-visibility: hidden;
  filter: saturate(1.05) contrast(1.06) brightness(0.93);
}

.command-department-card:hover .department-logo-turn {
  transform: rotateX(0deg) translateZ(8px) scale(1.025);
}

.department-access-chip {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(var(--department-accent-rgb), 0.28);
  border-radius: 4px;
  padding: 0 8px;
  background: rgba(var(--department-accent-rgb), 0.13);
  color: var(--department-accent);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tone-green .department-access-chip {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}

.tone-gold .department-access-chip,
.tone-yellow .department-access-chip {
  background: rgba(248, 196, 0, 0.16);
  color: #facc15;
}

.command-department-head {
  display: grid;
  gap: 8px;
}

.command-department-head h3 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.12;
}

.command-department-head p {
  margin: 0;
  min-height: 58px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.84rem;
  line-height: 1.42;
}

.command-department-card ul {
  min-height: 92px;
  margin: 14px 0;
  padding-left: 16px;
  color: rgba(226, 232, 240, 0.76);
  font-size: 0.9rem;
}

.command-department-foot {
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.department-status-ring,
.department-large-ring {
  --pct: calc(var(--value) * 1%);
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, #07111d 50%, transparent 52%),
    conic-gradient(#3b82f6 var(--pct), rgba(148, 163, 184, 0.18) 0);
}

.command-department-card.tone-green .department-status-ring {
  background:
    radial-gradient(circle, #07111d 50%, transparent 52%),
    conic-gradient(#4ade80 var(--pct), rgba(148, 163, 184, 0.18) 0);
}

.command-department-card.tone-gold .department-status-ring,
.command-department-card.tone-yellow .department-status-ring {
  background:
    radial-gradient(circle, #07111d 50%, transparent 52%),
    conic-gradient(#facc15 var(--pct), rgba(148, 163, 184, 0.18) 0);
}

.department-status-ring {
  width: 64px;
  height: 64px;
}

.department-status-ring strong {
  color: #ffffff;
  font-size: 1rem;
}

.department-launch-button {
  width: 100%;
  min-height: 36px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(var(--department-accent-rgb), 0.42);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(var(--department-accent-rgb), 0.22), rgba(var(--department-accent-rgb), 0.11));
  color: var(--department-accent);
  font-weight: 900;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 3px 0 rgba(0, 0, 0, 0.32);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.department-launch-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(var(--department-accent-rgb), 0.72);
  background: rgba(var(--department-accent-rgb), 0.24);
}

.department-launch-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.tone-green .department-launch-button {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.13);
  color: #4ade80;
}

.tone-gold .department-launch-button {
  border-color: rgba(248, 196, 0, 0.32);
  background: rgba(248, 196, 0, 0.13);
  color: #facc15;
}

.tone-green .department-launch-button:hover:not(:disabled) {
  border-color: rgba(74, 222, 128, 0.55);
  background: rgba(34, 197, 94, 0.2);
}

.tone-gold .department-launch-button:hover:not(:disabled),
.tone-yellow .department-launch-button:hover:not(:disabled) {
  border-color: rgba(250, 204, 21, 0.6);
  background: rgba(248, 196, 0, 0.2);
}

@keyframes departmentLogoTurn {
  0%,
  100% {
    transform: rotateY(0deg) translateZ(0);
  }

  25% {
    transform: rotateY(4deg) translateZ(8px);
  }

  50% {
    transform: rotateY(0deg) translateZ(0);
  }

  75% {
    transform: rotateY(-4deg) translateZ(8px);
  }
}

.department-workspace {
  min-height: 100vh;
  display: grid;
  gap: 18px;
  padding: 24px;
  background:
    radial-gradient(circle at 85% 0%, rgba(59, 130, 246, 0.11), transparent 25%),
    linear-gradient(180deg, #030a13, #06111d 68%, #03070d);
  color: #f8fafc;
}

.department-workspace-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(12, 25, 40, 0.9), rgba(5, 13, 24, 0.98));
}

.department-workspace-header h1 {
  margin: 2px 0;
  color: #ffffff;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.department-access-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(248, 196, 0, 0.15);
  color: #facc15;
  font-weight: 900;
}

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

.department-module-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 13px;
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(15, 30, 46, 0.82), rgba(7, 16, 28, 0.96));
}

.department-module-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #60a5fa;
}

.department-module-card h2 {
  margin: 0 0 7px;
  color: #ffffff;
  font-size: 1rem;
}

.department-module-card p {
  margin: 0 0 11px;
  color: rgba(226, 232, 240, 0.72);
  line-height: 1.45;
}

.department-large-ring {
  width: 150px;
  height: 150px;
  margin: 8px auto 14px;
  text-align: center;
}

.department-large-ring strong {
  display: block;
  color: #ffffff;
  font-size: 2rem;
}

.department-large-ring span {
  display: block;
  max-width: 90px;
  color: rgba(226, 232, 240, 0.7);
  font-size: 0.82rem;
}

.finance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-color: rgba(248, 196, 0, 0.22);
  background:
    radial-gradient(circle at top left, rgba(248, 196, 0, 0.11), transparent 34%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(8, 15, 22, 0.96));
}

.finance-hero h2 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
}

.finance-hero p {
  margin: 0;
  max-width: 780px;
  color: var(--muted);
}

.finance-hero-actions {
  max-width: 720px;
}

.finance-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.finance-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.finance-tab.active,
.finance-tab:hover {
  border-color: rgba(248, 196, 0, 0.75);
  background: var(--accent);
  color: #111827;
}

.finance-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.finance-section {
  scroll-margin-top: 18px;
}

.finance-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mini-stat {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.mini-stat span,
.mini-stat small {
  color: var(--muted);
  font-weight: 750;
}

.mini-stat strong {
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 950;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-head .actions {
  justify-content: flex-end;
}

.finance-search {
  min-width: 220px;
}

.finance-month-filter input {
  min-width: 150px;
}

.finance-daily-bars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.finance-daily-bar {
  display: grid;
  align-content: end;
  min-height: 132px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.46);
}

.finance-daily-bar .bar {
  display: block;
  width: 100%;
  min-height: 8px;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, #22c55e, #0ea5e9);
  box-shadow: 0 8px 18px rgba(34, 197, 94, 0.18);
}

.finance-daily-bar strong {
  margin-top: 10px;
  font-size: 0.92rem;
}

.finance-report-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
}

.finance-checklist {
  display: grid;
  gap: 10px;
}

.finance-check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.42);
}

.finance-check-row input:checked + span {
  color: #22c55e;
  text-decoration: line-through;
}

.finance-separation {
  border-color: rgba(168, 85, 247, 0.28);
  background: rgba(88, 28, 135, 0.18);
}

.finance-personal .progress span,
.progress.personal span {
  background: linear-gradient(90deg, #a855f7, #f8c400);
}

.report-history {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
}

.report-history summary {
  cursor: pointer;
  font-weight: 900;
}

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

.access-denied {
  align-content: start;
}

@media (max-width: 1380px) {
  .command-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

@media (max-width: 1020px) {
  .command-center-page {
    grid-template-columns: 1fr;
  }

  .command-sidebar-panel {
    position: static;
    min-height: auto;
  }

  .command-main {
    padding: 16px;
  }

  .command-header-panel,
  .department-workspace-header {
    grid-template-columns: 1fr;
  }

  .finance-hero,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .finance-tabs,
  .section-head .actions {
    justify-content: flex-start;
  }

  .command-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .command-search {
    min-width: 100%;
  }

  .command-layout-grid,
  .command-layout-grid.bottom,
  .command-secondary-panels,
  .command-department-grid,
  .marketing-workzone-grid,
  .marketing-command-hero,
  .marketing-authority-grid,
  .marketing-approval-layout,
  .marketing-crm-hero,
  .marketing-software-shell,
  .marketing-software-header {
    grid-template-columns: 1fr;
  }

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

  .marketing-software-sidebar {
    position: static;
    grid-template-rows: auto auto auto;
  }

  .marketing-software-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-height: none;
  }

  .marketing-dashboard-grid,
  .marketing-command-card-grid,
  .marketing-platform-grid,
  .marketing-tool-launchers,
  .marketing-module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .marketing-crm-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .marketing-studio-hero-card,
  .marketing-shortcuts,
  .marketing-calendar-card {
    grid-column: auto;
    grid-row: auto;
  }

  .marketing-command-hero {
    min-height: auto;
  }

  .marketing-project-row {
    grid-template-columns: 42px minmax(0, 1fr) auto;
  }

  .marketing-project-row span,
  .marketing-project-row .status,
  .marketing-project-row b,
  .marketing-project-actions {
    grid-column: 2 / -1;
    justify-self: start;
    text-align: left;
  }

  .marketing-project-actions,
  .marketing-plan-actions {
    justify-content: flex-start;
  }

  .marketing-hero-logo-stage {
    order: -1;
    min-height: 240px;
  }

  .marketing-workspace-label {
    align-self: start;
  }

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

  .command-department-card {
    min-height: auto;
  }

  .department-logo-stage {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .command-sidebar-panel {
    padding: 14px;
  }

  .command-metric-grid,
  .department-workspace-grid,
  .marketing-workspace-grid,
  .marketing-safety-grid {
    grid-template-columns: 1fr;
  }

  .active-department-grid {
    grid-template-columns: 1fr;
  }

  .marketing-command-hero {
    padding: 18px;
  }

  .marketing-software-main {
    padding: 14px;
  }

  .marketing-software-header {
    gap: 12px;
  }

  .marketing-header-actions {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
    align-items: stretch;
  }

  .marketing-search {
    grid-column: 1 / -1;
    min-width: 100%;
  }

  .marketing-profile-chip {
    grid-column: 1 / -1;
  }

  .marketing-software-nav,
  .marketing-dashboard-grid,
  .marketing-command-card-grid,
  .marketing-crm-hero,
  .marketing-crm-hero-stats,
  .marketing-workzone-grid,
  .marketing-platform-grid,
  .marketing-tool-launchers,
  .marketing-tool-flow,
  .marketing-module-grid,
  .marketing-approval-list.compact,
  .mini-calendar,
  .marketing-revenue-grid {
    grid-template-columns: 1fr;
  }

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

  .marketing-software-nav button,
  .marketing-signout-btn,
  .marketing-header-actions .icon-btn {
    min-height: 44px;
  }

  .marketing-header-actions .icon-btn {
    width: 44px;
    justify-self: stretch;
  }

  .marketing-platform-card,
  .marketing-tool-launcher,
  .marketing-project-row,
  .marketing-plan-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .marketing-command-card {
    grid-template-columns: 1fr;
    min-height: 116px;
  }

  .marketing-crm-hero {
    min-height: auto;
    padding: 16px;
  }

  .marketing-crm-hero-stats > div {
    min-height: 66px;
  }

  .marketing-platform-card .btn,
  .marketing-platform-card .icon-btn,
  .marketing-tool-launcher .btn,
  .marketing-project-row span,
  .marketing-project-row .status,
  .marketing-project-row b,
  .marketing-project-actions,
  .marketing-plan-row .status,
  .marketing-plan-actions {
    grid-column: 1 / -1;
  }

  .marketing-studio-hero-card {
    min-height: 360px;
  }

  .marketing-hero-bg-copy {
    padding-top: 190px;
  }

  .marketing-enter-btn {
    min-width: 100%;
  }

  .marketing-hero-logo-stage {
    min-height: 190px;
  }

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

  .marketing-approval-actions {
    justify-content: flex-start;
  }

  .command-metric-card,
  .department-module-card {
    min-height: auto;
  }

  .department-workspace {
    padding: 14px;
  }

  .department-logo-stage {
    min-height: 0;
  }

  .login-splash-shell {
    padding: 18px;
  }

  .login-splash-logo {
    width: 100%;
    border-radius: 12px;
  }

  .command-department-head p {
    min-height: auto;
  }

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

  .finance-check-row .btn {
    grid-column: 2;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-splash-card,
  .login-splash-loader span,
  .department-logo-turn,
  .marketing-hero-logo-stage img,
  .marketing-green-logo-stage img {
    animation: none;
  }

  .department-launch-button {
    transition: none;
  }
}

/* CRM to Marketing shared inventory, incoming queue, and content creator task polish */
.crm-marketing-bridge-panel,
.incoming-crm-panel,
.marketing-project-workspace {
  background: linear-gradient(145deg, rgba(8, 31, 18, 0.96), rgba(2, 10, 6, 0.96));
  border: 1px solid rgba(34, 197, 94, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 40px rgba(0, 0, 0, 0.32), 0 0 22px rgba(34, 197, 94, 0.08);
}

.crm-media-grid,
.platform-checkbox-grid,
.project-workspace-grid,
.workspace-media-strip {
  display: grid;
  gap: 12px;
}

.crm-media-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-top: 14px;
}

.crm-media-card,
.crm-inventory-row,
.crm-feedback-row,
.marketing-incoming-row {
  display: grid;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(11, 27, 18, 0.94), rgba(5, 12, 8, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.crm-media-card {
  grid-template-columns: 72px minmax(0, 1fr);
}

.crm-media-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(57, 255, 136, 0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 18px rgba(0,0,0,0.28);
}

.crm-media-thumb.placeholder {
  display: grid;
  place-items: center;
}

.crm-inventory-table,
.crm-feedback-list,
.marketing-incoming-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.crm-inventory-row {
  grid-template-columns: minmax(0, 1.5fr) minmax(120px, .8fr) auto auto;
}

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

.marketing-incoming-row {
  grid-template-columns: 72px minmax(0, 1.4fr) 80px 120px auto minmax(230px, auto);
}

.marketing-incoming-row .marketing-project-actions,
.marketing-plan-row .marketing-plan-actions,
.crm-inventory-row .marketing-project-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.platform-checkbox-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.platform-check span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.platform-check .marketing-logo-mark {
  width: 28px;
  height: 28px;
}

.project-workspace-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-top: 12px;
}

.project-workspace-grid section {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(34,197,94,.18);
  border-radius: 12px;
  background: rgba(255,255,255,.03);
}

.project-workspace-grid h4,
.crm-feedback-list h3 {
  margin: 0 0 8px;
  font-size: .86rem;
  color: #d7ffe4;
}

.workspace-media-strip {
  grid-template-columns: repeat(auto-fit, minmax(62px, 74px));
}

.crm-media-form .notice,
.marketing-post-form .marketing-email-draft-box {
  border-color: rgba(34,197,94,.24);
  background: rgba(34,197,94,.08);
}

@media (max-width: 1020px) {
  .crm-inventory-row,
  .crm-feedback-row,
  .marketing-incoming-row {
    grid-template-columns: 1fr;
  }

  .marketing-incoming-row .crm-media-thumb {
    width: 100%;
    max-width: 220px;
  }
}

@media (max-width: 680px) {
  .crm-media-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .crm-media-thumb {
    width: 58px;
    height: 58px;
  }

  .platform-checkbox-grid,
  .crm-media-grid,
  .project-workspace-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Shield+ Launch Control
   ========================================================= */

.launch-control-shell {
  display: grid;
  gap: 18px;
}

.launch-control-shell .command-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-color: rgba(243, 195, 22, 0.42);
  background:
    radial-gradient(circle at 88% 18%, rgba(243, 195, 22, 0.12), transparent 28%),
    linear-gradient(
      135deg,
      var(--surface),
      color-mix(in srgb, var(--surface) 88%, #f3c316)
    );
}

.launch-control-shell .command-hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(243, 195, 22, 0.045);
  pointer-events: none;
}

.launch-control-shell .command-hero-panel > * {
  position: relative;
  z-index: 1;
}

.launch-control-shell .progress {
  height: 14px;
  background: color-mix(in srgb, var(--surface-muted) 84%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
}

.launch-control-shell .progress span {
  min-width: 0;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-strong)
  );
  box-shadow: 0 0 16px rgba(243, 195, 22, 0.32);
  transition: width 220ms ease;
}

.launch-control-shell .progress.warn span {
  background: linear-gradient(
    90deg,
    #b26a00,
    var(--primary)
  );
}

.launch-control-shell .progress.danger span {
  background: linear-gradient(
    90deg,
    var(--danger),
    #e66a6d
  );
}

.launch-control-shell .command-readiness-meter {
  width: 148px;
  height: 148px;
  border-width: 13px;
  border-color: rgba(243, 195, 22, 0.72);
  background:
    radial-gradient(
      circle at center,
      var(--surface) 0 62%,
      transparent 63%
    ),
    conic-gradient(
      var(--primary) 0deg,
      var(--primary-strong) 140deg,
      rgba(243, 195, 22, 0.16) 140deg 360deg
    );
}

.launch-control-shell .command-readiness-meter strong {
  font-size: 2.6rem;
}

.launch-control-shell .command-agent-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-control-shell .command-agent-card {
  position: relative;
  overflow: hidden;
  min-height: 156px;
  border-color: rgba(243, 195, 22, 0.16);
  background:
    linear-gradient(
      145deg,
      var(--surface),
      color-mix(in srgb, var(--surface) 95%, #f3c316)
    );
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.launch-control-shell .command-agent-card:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 195, 22, 0.42);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.16);
}

.launch-control-shell .command-agent-card h3 {
  font-size: 1rem;
  line-height: 1.28;
}

.launch-control-shell .command-agent-card .eyebrow {
  color: var(--accent);
}

.launch-control-shell .launch-stage-empty {
  opacity: 0.72;
}

.launch-control-shell .launch-stage-locked {
  border-color: rgba(178, 106, 0, 0.36);
  background:
    linear-gradient(
      145deg,
      var(--surface),
      color-mix(in srgb, var(--surface) 90%, #b26a00)
    );
}

.launch-control-shell .launch-stage-verified {
  border-color: rgba(37, 118, 75, 0.34);
  background:
    linear-gradient(
      145deg,
      var(--surface),
      color-mix(in srgb, var(--surface) 92%, #25764b)
    );
}

.launch-control-shell .launch-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-left: 4px solid var(--warning);
}

.launch-control-shell .launch-status-banner.unlocked {
  border-left-color: var(--success);
}

.launch-control-shell .launch-focus-grid {
  align-items: stretch;
}

.launch-control-shell .launch-focus-grid > .panel {
  min-height: 100%;
}

.launch-control-shell .launch-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.launch-control-shell .launch-kpi-grid .summary-card {
  min-height: 118px;
}

.launch-control-shell .launch-finish-line {
  border-color: rgba(243, 195, 22, 0.48);
  background:
    radial-gradient(circle at 94% 50%, rgba(243, 195, 22, 0.13), transparent 26%),
    linear-gradient(
      135deg,
      var(--surface),
      color-mix(in srgb, var(--surface) 84%, #f3c316)
    );
}

.launch-control-shell .launch-finish-line h2 {
  letter-spacing: 0.01em;
}

[data-theme="dark"] .launch-control-shell .progress {
  background: #e6ebee;
  border-color: rgba(255, 255, 255, 0.12);
}

[data-theme="dark"] .launch-control-shell .command-agent-card {
  background:
    linear-gradient(
      145deg,
      #151b19,
      #181d18
    );
}

[data-theme="dark"] .launch-control-shell .launch-stage-locked {
  background:
    linear-gradient(
      145deg,
      #181a15,
      #211d10
    );
}

[data-theme="dark"] .launch-control-shell .launch-stage-verified {
  background:
    linear-gradient(
      145deg,
      #141b17,
      #102018
    );
}

@media (max-width: 1180px) {
  .launch-control-shell .command-agent-grid,
  .launch-control-shell .launch-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .launch-control-shell {
    gap: 14px;
  }

  .launch-control-shell .command-hero-panel,
  .launch-control-shell .launch-status-banner {
    display: grid;
    grid-template-columns: 1fr;
  }

  .launch-control-shell .command-readiness-meter {
    width: 112px;
    height: 112px;
    justify-self: start;
  }

  .launch-control-shell .command-readiness-meter strong {
    font-size: 2rem;
  }

  .launch-control-shell .command-agent-grid,
  .launch-control-shell .launch-kpi-grid {
    grid-template-columns: 1fr;
  }
}



/* Shield+ Marketing Launch - implementation vs mission progress */
.launch-setup-progress {
  margin-bottom: 22px;
  padding: 24px;
  border: 1px solid var(--launch-border);
  border-radius: 14px;
  background: linear-gradient(135deg, #10233d 0%, #162f50 100%);
}

.launch-setup-progress-heading,
.launch-mission-progress-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.launch-setup-progress-heading > div:first-child,
.launch-mission-progress-heading > div:first-child {
  min-width: 0;
}

.launch-setup-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--launch-gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.launch-setup-percent {
  flex: 0 0 auto;
  min-width: 125px;
  text-align: right;
}

.launch-setup-percent strong {
  display: block;
  color: var(--launch-gold);
  font-size: 38px;
  line-height: 1;
}

.launch-setup-percent span,
.launch-setup-percent small {
  display: block;
  margin-top: 5px;
}

.launch-setup-milestones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-top: 18px;
}

.launch-setup-milestone {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(5, 16, 31, .35);
}

.launch-setup-milestone > span {
  flex: 0 0 22px;
  font-size: 18px;
  text-align: center;
}

.launch-setup-milestone.is-complete > span {
  color: #83c6ae;
}

.launch-setup-milestone.is-pending > span {
  color: var(--launch-gold);
}

.launch-setup-milestone strong {
  display: block;
  margin: 0;
  font-size: 13px;
}

.launch-setup-milestone small {
  margin-top: 2px;
}

.launch-mission-progress-heading {
  margin: 28px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--launch-border);
}

.launch-mission-progress-heading > strong {
  flex: 0 0 auto;
  color: var(--launch-gold);
  font-size: 22px;
  text-align: right;
}

@media (max-width: 720px) {
  .launch-setup-progress {
    padding: 18px;
  }

  .launch-setup-progress-heading,
  .launch-mission-progress-heading {
    flex-direction: column;
  }

  .launch-setup-percent {
    text-align: left;
  }

  .launch-setup-milestones {
    grid-template-columns: minmax(0, 1fr);
  }

  .launch-mission-progress-heading > strong {
    text-align: left;
  }
}
