:root {
  color-scheme: light;
  --ci-navy: #071121;
  --ci-navy-deep: #040b1d;
  --ci-red: #e52322;
  --ci-red-bright: #ff5653;
  --ci-ice: #eef4ff;
  --ci-blue: #9ab6ca;
  --bg: #eef3fb;
  --bg-strong: #e4ebf5;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-strong: #ffffff;
  --ink: #0b1220;
  --muted: #5f6a7d;
  --muted-2: #7b889c;
  --line: rgba(11, 18, 32, 0.08);
  --line-strong: rgba(11, 18, 32, 0.16);
  --brand: var(--ci-navy);
  --brand-soft: #22314a;
  --accent: var(--ci-red);
  --accent-soft: rgba(229, 35, 34, 0.12);
  --success: #2d8f6f;
  --success-soft: rgba(45, 143, 111, 0.14);
  --danger: var(--ci-red);
  --shadow-lg: 0 28px 80px rgba(7, 17, 33, 0.16);
  --shadow-md: 0 12px 30px rgba(7, 17, 33, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-sans: "Avenir Next", "Sora", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 12%, rgba(229, 35, 34, 0.14), transparent 26%),
    radial-gradient(circle at 86% 16%, rgba(154, 182, 202, 0.2), transparent 28%),
    radial-gradient(circle at 50% 115%, rgba(7, 17, 33, 0.06), transparent 38%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

body.auth-shell {
  color: #f4f7fb;
  background:
    radial-gradient(circle at 18% 18%, rgba(229, 35, 34, 0.28), transparent 24%),
    radial-gradient(circle at 82% 20%, rgba(154, 182, 202, 0.18), transparent 24%),
    radial-gradient(circle at 50% 110%, rgba(229, 35, 34, 0.12), transparent 34%),
    linear-gradient(180deg, #071121 0%, #040b1d 58%, #09060c 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.65), transparent 70%);
}

body.auth-shell::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 92%);
}

body.auth-shell::after {
  content: "";
  position: fixed;
  inset: auto auto 10% 50%;
  width: min(58vw, 520px);
  height: min(58vw, 520px);
  pointer-events: none;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(229, 35, 34, 0.2) 0%, rgba(229, 35, 34, 0.08) 32%, transparent 68%);
  filter: blur(24px);
}

body.freebie-shell {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(244, 248, 255, 0.9)),
    radial-gradient(circle at 10% 0%, rgba(229, 35, 34, 0.12), transparent 30%),
    radial-gradient(circle at 92% 8%, rgba(154, 182, 202, 0.24), transparent 30%),
    #f3f7fc;
}

body.freebie-shell::before {
  background-size: 42px 42px;
  opacity: 0.75;
}

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

a,
button,
input {
  font: inherit;
}

code {
  font-family: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  background: rgba(11, 18, 32, 0.06);
  padding: 3px 8px;
  border-radius: 999px;
}

.brand-mark,
.eyebrow,
.story-kicker,
.hero-panel-label,
.panel-note,
.auth-footnote,
.chip,
.chip-dark {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--muted);
}

.brand-mark::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ci-red-bright), var(--ci-red));
}

.chip,
.chip-dark,
.pill,
.ghost-button,
.primary-button {
  border-radius: 999px;
}

.chip,
.chip-dark {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
}

.chip {
  background: var(--accent-soft);
  color: #c52020;
}

.chip-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7ea;
}

.auth-layout,
.dashboard-page {
  position: relative;
  z-index: 1;
}

.auth-stage {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 470px);
  margin: 0 auto;
  padding: 48px 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-stage-signup {
  width: min(100% - 40px, 560px);
}

.auth-story,
.auth-card,
.hero,
.panel,
.metric-card,
.hero-panel {
  backdrop-filter: blur(18px);
}

.panel .eyebrow,
.hero-panel-label {
  font-size: 0.72rem;
}

.auth-card p,
.provider-row p,
.metric-card p,
.panel-note,
.hero p {
  line-height: 1.6;
}

.auth-stack {
  width: 100%;
  display: grid;
  gap: 24px;
}

.auth-brand {
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.logo-mark {
  width: clamp(180px, 54vw, 265px);
  color: #fff;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.34));
}

.logo-mark svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-wordmark-logo {
  display: block;
  width: min(220px, 58vw);
  height: auto;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.28));
}

.logo-ai {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5552, #e52322);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 16px 32px rgba(229, 35, 34, 0.28);
}

.auth-brand-copy {
  display: none;
}

.auth-card,
.panel,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.auth-card {
  width: 100%;
  padding: 30px;
  border-radius: var(--radius-xl);
}

.auth-card-compact {
  padding: 30px 28px 28px;
}

.auth-card-top {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-card-top-compact {
  justify-items: start;
  margin-bottom: 18px;
}

.auth-card h2,
.panel h3,
.hero h2 {
  letter-spacing: -0.03em;
}

.auth-card h1 {
  font-size: clamp(1.9rem, 4vw, 2.3rem);
  letter-spacing: -0.06em;
}

.auth-card p,
.notice,
.alert,
.panel-note,
small,
th,
td {
  color: var(--muted);
}

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

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

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

.field span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.field input::placeholder {
  color: rgba(11, 18, 32, 0.34);
}

.field input:focus {
  outline: none;
  border-color: rgba(229, 35, 34, 0.42);
  box-shadow: 0 0 0 4px rgba(229, 35, 34, 0.12);
  transform: none;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  transition: transform 150ms ease, opacity 150ms ease, box-shadow 150ms ease;
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 15px 18px;
  background: linear-gradient(135deg, var(--ci-red-bright), var(--ci-red));
  color: #fff;
  box-shadow: 0 16px 30px rgba(229, 35, 34, 0.24);
  font-weight: 700;
}

.ghost-button {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 18, 32, 0.08);
  color: var(--ci-navy);
  box-shadow: 0 12px 24px rgba(11, 18, 32, 0.04);
  font-weight: 700;
}

.alert,
.notice {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  font-size: 0.94rem;
}

.alert {
  background: rgba(141, 60, 47, 0.08);
  border: 1px solid rgba(141, 60, 47, 0.18);
  color: var(--danger);
}

.notice {
  background: rgba(154, 182, 202, 0.12);
  border: 1px solid rgba(154, 182, 202, 0.24);
}

.auth-shell .auth-card {
  background: rgba(7, 14, 29, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

.auth-shell .auth-card p,
.auth-shell .notice,
.auth-shell .alert {
  color: rgba(233, 239, 247, 0.76);
}

.auth-shell .auth-card h1 {
  color: #fff;
}

.auth-shell .field span {
  color: #d7e2ef;
}

.auth-shell .field input {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(154, 182, 202, 0.26);
  color: #fff;
}

.auth-shell .field input::placeholder {
  color: rgba(244, 247, 251, 0.38);
}

.auth-shell .field input:focus {
  border-color: rgba(229, 35, 34, 0.82);
  box-shadow:
    0 0 0 4px rgba(229, 35, 34, 0.16),
    0 16px 40px rgba(0, 0, 0, 0.16);
}

.auth-shell .primary-button {
  width: 100%;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ff5653, #e52322);
  color: #fff;
  box-shadow: 0 18px 36px rgba(229, 35, 34, 0.28);
}

.auth-shell .primary-button:hover {
  box-shadow: 0 22px 44px rgba(229, 35, 34, 0.32);
}

.auth-shell .alert {
  background: rgba(229, 35, 34, 0.12);
  border-color: rgba(229, 35, 34, 0.24);
  color: #ffd8d7;
}

.auth-shell .notice {
  background: rgba(154, 182, 202, 0.1);
  border-color: rgba(154, 182, 202, 0.22);
}

.auth-footnote {
  margin-top: 18px;
  font-size: 0.72rem;
  color: var(--muted-2);
}

.auth-footnote a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.dashboard-page {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.topbar,
.hero,
.metric-grid,
.content-grid {
  margin-bottom: 20px;
}

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

.topbar h1 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  letter-spacing: -0.04em;
}

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

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid var(--line);
}

.user-badge small {
  display: block;
  margin-top: 2px;
}

.user-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--success), #5cc495);
  box-shadow: 0 0 0 6px rgba(43, 122, 88, 0.12);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 360px);
  gap: 20px;
  padding: 26px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(7, 17, 33, 0.98), rgba(17, 28, 47, 0.94)),
    linear-gradient(180deg, rgba(229, 35, 34, 0.08), transparent);
  color: #fff9ef;
  box-shadow: var(--shadow-lg);
}

.hero h2 {
  max-width: 18ch;
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.97;
}

.hero p {
  max-width: 62ch;
  color: rgba(255, 249, 239, 0.76);
}

.hero-panel {
  align-self: end;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-panel strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.4rem;
  color: #fff7ea;
}

.metric-grid,
.content-grid {
  display: grid;
  gap: 18px;
}

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

.metric-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

.metric-value {
  display: block;
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.content-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.lower-grid {
  align-items: start;
}

.panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.panel-wide {
  min-width: 0;
}

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

.panel h3 {
  font-size: 1.5rem;
  margin-top: 10px;
}

.provider-list,
.list-clean {
  display: grid;
  gap: 14px;
}

.provider-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

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

.provider-row strong {
  display: block;
  margin-bottom: 6px;
}

.pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: rgba(17, 17, 17, 0.06);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
}

.pill-ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill-warning {
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
}

.pill-danger {
  background: rgba(180, 20, 32, 0.12);
  color: #b41420;
}

.pill-muted {
  background: rgba(99, 87, 74, 0.1);
  color: var(--muted);
}

.list-clean {
  list-style: none;
  padding: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

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

@media (max-width: 1120px) {
  .hero,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .auth-layout,
  .dashboard-page {
    width: min(100% - 24px, 1320px);
  }

  .auth-layout {
    padding: 16px 0 24px;
  }

  .auth-card,
  .hero,
  .panel,
  .metric-card {
    padding: 22px;
  }

  .metric-grid,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .topbar,
  .topbar-actions,
  .provider-row {
    align-items: start;
    flex-direction: column;
  }

  .topbar-actions {
    width: 100%;
  }

  .user-badge {
    width: 100%;
  }

  .logo-lockup {
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .auth-stage {
    width: min(100% - 24px, 470px);
    padding: 32px 0;
  }

  .auth-card-compact {
    padding: 24px 20px 20px;
  }

  .logo-mark {
    width: min(100%, 220px);
  }

  .logo-ai {
    min-width: 52px;
    height: 36px;
    padding: 0 14px;
  }
}

body.app-shell {
  color: #0b1220;
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.08), transparent 24%),
    radial-gradient(circle at bottom right, rgba(154, 182, 202, 0.22), transparent 28%),
    linear-gradient(180deg, #f7f8fc 0%, #eef2f9 100%);
}

body.app-shell::before {
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 82%);
}

.overview-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.overview-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: 28px 22px;
  display: grid;
  align-content: start;
  gap: 24px;
  background:
    linear-gradient(180deg, rgba(4, 11, 29, 0.98), rgba(9, 14, 25, 0.98)),
    linear-gradient(180deg, rgba(229, 35, 34, 0.12), transparent);
  color: #eef4ff;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-brand {
  display: grid;
  gap: 14px;
}

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

.sidebar-brand-row strong {
  display: block;
  font-size: 1rem;
}

.sidebar-brand-row p {
  color: rgba(238, 244, 255, 0.66);
}

.sidebar-brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff5855, #e52322);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(229, 35, 34, 0.25);
}

.sidebar-status {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #eef4ff;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(238, 244, 255, 0.74);
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.sidebar-link:hover,
.sidebar-link.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(2px);
}

.sidebar-link-short {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.sidebar-note {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-note strong {
  display: block;
  margin: 10px 0 8px;
  color: #fff;
}

.sidebar-note p {
  color: rgba(238, 244, 255, 0.7);
}

.overview-main {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.overview-topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.overview-topbar h1 {
  margin: 10px 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.06em;
}

.overview-topbar p {
  max-width: 72ch;
  color: #596579;
}

.overview-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.06);
}

.overview-user small {
  display: block;
  margin-top: 2px;
}

.app-shell .ghost-button {
  padding: 12px 16px;
  background: #fff;
  color: #0b1220;
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 16px 34px rgba(11, 18, 32, 0.06);
}

.overview-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 360px);
  gap: 18px;
}

.overview-hero-copy,
.hero-side-card,
.summary-card,
.overview-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 44px rgba(11, 18, 32, 0.06);
  backdrop-filter: blur(14px);
}

.overview-hero-copy {
  padding: 28px;
  border-radius: 28px;
}

.hero-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.overview-hero-copy h2 {
  max-width: 14ch;
  margin: 18px 0 12px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.overview-hero-copy p {
  max-width: 68ch;
  color: #586273;
}

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

.quick-action-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(247, 248, 252, 0.98), rgba(240, 243, 250, 0.98));
  border: 1px solid rgba(11, 18, 32, 0.06);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.quick-action-card:hover {
  transform: translateY(-2px);
  border-color: rgba(229, 35, 34, 0.18);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
}

.quick-action-card strong {
  font-size: 1rem;
}

.quick-action-card p {
  color: #5b677b;
  line-height: 1.55;
}

.quick-action-card span {
  color: #d62423;
  font-size: 0.82rem;
  font-weight: 700;
}

.overview-hero-side {
  display: grid;
  gap: 18px;
}

.hero-side-card {
  padding: 22px;
  border-radius: 26px;
}

.hero-side-card strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.2rem;
}

.hero-side-card p {
  color: #5c6779;
}

.hero-side-card-accent {
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.16), transparent 36%),
    rgba(255, 255, 255, 0.86);
}

.hero-side-stats {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.hero-mini-stat {
  padding: 14px 12px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.04);
}

.hero-mini-stat strong {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.hero-mini-stat span {
  display: block;
  color: #677387;
  font-size: 0.8rem;
}

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

.summary-card {
  padding: 20px;
  border-radius: 24px;
}

.summary-label {
  display: block;
  margin-bottom: 16px;
  color: #6a7587;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.summary-value {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.summary-card p {
  color: #5e6a7d;
  line-height: 1.55;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.overview-grid-main {
  align-items: start;
}

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

.overview-panel {
  padding: 24px;
  border-radius: 28px;
}

.overview-panel-wide {
  min-width: 0;
}

.overview-panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.overview-panel-header h3 {
  margin-top: 10px;
  font-size: 1.45rem;
  letter-spacing: -0.04em;
}

.panel-caption {
  color: #7a8596;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.workspace-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 24px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(11, 18, 32, 0.06);
  background: linear-gradient(180deg, rgba(249, 250, 253, 1), rgba(242, 244, 249, 1));
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.workspace-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(11, 18, 32, 0.08);
}

.workspace-card strong {
  font-size: 1.05rem;
}

.workspace-card p {
  color: #5d687b;
  line-height: 1.55;
}

.workspace-card-eyebrow {
  color: #697386;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.workspace-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #6e798b;
  font-size: 0.8rem;
  font-weight: 700;
}

.workspace-state {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
}

.workspace-card.tone-accent {
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.14), transparent 38%),
    linear-gradient(180deg, #fff9f9 0%, #fff 100%);
}

.workspace-card.tone-blue {
  background:
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.24), transparent 38%),
    linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.workspace-card.tone-ink {
  background:
    radial-gradient(circle at top right, rgba(11, 18, 32, 0.1), transparent 36%),
    linear-gradient(180deg, #f8f9fb 0%, #fff 100%);
}

.activity-feed,
.stack-list,
.tag-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-item,
.stack-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.stack-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.activity-item:last-child,
.stack-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.activity-time {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.activity-item strong,
.stack-row strong,
.empty-state strong {
  display: block;
  margin-bottom: 6px;
}

.activity-item p,
.stack-row p,
.empty-state p {
  color: #5f6b7d;
  line-height: 1.55;
}

.data-table-shell {
  overflow-x: auto;
}

.app-shell table {
  width: 100%;
  border-collapse: collapse;
}

.app-shell th,
.app-shell td {
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.app-shell th {
  color: #7b8696;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.app-shell td {
  color: #0b1220;
}

.empty-state {
  padding: 18px;
  border-radius: 22px;
  background: rgba(11, 18, 32, 0.04);
}

.app-shell .pill {
  background: rgba(11, 18, 32, 0.06);
  color: #0b1220;
}

.app-shell .pill-ok {
  background: rgba(31, 138, 89, 0.12);
  color: #1c7f52;
}

.app-shell .pill-warning {
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
}

.app-shell .pill-danger {
  background: rgba(180, 20, 32, 0.12);
  color: #b41420;
}

.app-shell .pill-muted {
  background: rgba(11, 18, 32, 0.06);
  color: #677386;
}

.tag-list li {
  display: flex;
  align-items: center;
}

.tag-list code {
  background: rgba(11, 18, 32, 0.06);
  color: #0b1220;
}

.stack-list.compact {
  gap: 12px;
}

.briefing-hero .overview-hero-copy h2 {
  max-width: 12ch;
}

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

.briefing-customer-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(247, 248, 252, 1), rgba(240, 243, 250, 1));
  border: 1px solid rgba(11, 18, 32, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease;
}

.briefing-customer-card:hover,
.briefing-customer-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(229, 35, 34, 0.2);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08);
}

.briefing-customer-main,
.briefing-customer-meta,
.form-grid-two,
.form-grid-three,
.context-stat-grid,
.output-grid {
  display: grid;
  gap: 14px;
}

.briefing-customer-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.briefing-customer-main strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.briefing-customer-main p,
.briefing-customer-meta span,
.process-step-card p,
.process-step-card small,
.briefing-status-summary p,
.status-item p,
.briefing-note,
.context-stat span {
  color: #5f6a7d;
}

.briefing-customer-meta {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  font-size: 0.84rem;
  font-weight: 700;
}

.context-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.context-stat {
  padding: 16px;
  border-radius: 20px;
  background: rgba(11, 18, 32, 0.04);
}

.context-stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.briefing-note-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.briefing-note {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.briefing-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

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

.process-step-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(249, 250, 253, 1), rgba(242, 244, 249, 1));
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.process-step-card strong {
  font-size: 1rem;
}

.step-index {
  display: inline-flex;
  width: fit-content;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.briefing-studio-grid {
  align-items: start;
}

.briefing-form {
  display: grid;
  gap: 18px;
}

.copywriting-preset-panel,
.copywriting-input-guide {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.07);
}

.copywriting-preset-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.copywriting-preset-panel strong,
.copywriting-input-guide strong {
  display: block;
  margin: 6px 0;
}

.copywriting-preset-panel p,
.copywriting-input-guide p {
  color: var(--muted);
  line-height: 1.5;
}

.preset-button-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.preset-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(11, 18, 32, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.preset-button:hover,
.preset-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(229, 35, 34, 0.28);
  box-shadow: 0 12px 24px rgba(7, 17, 33, 0.08);
  outline: none;
}

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

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

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

.field select,
.field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

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

.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(229, 35, 34, 0.42);
  box-shadow: 0 0 0 4px rgba(229, 35, 34, 0.12);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

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

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

.briefing-status-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

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

.status-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.status-item strong,
.draft-header strong {
  display: block;
  margin-bottom: 6px;
}

.output-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  align-items: start;
}

.output-main,
.output-side {
  display: grid;
  gap: 16px;
}

.review-summary-card {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(249, 250, 253, 1), rgba(242, 244, 249, 1));
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.review-summary-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.review-summary-top strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

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

.review-criterion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
}

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

.review-criterion-row p {
  color: #5f6a7d;
}

.draft-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.draft-editor {
  min-height: 780px;
  font-family: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  line-height: 1.6;
  background: rgba(248, 249, 252, 0.96);
}

.copywriting-output-editor {
  min-height: 420px;
}

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

.copywriting-section-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(248, 249, 252, 0.96);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.copywriting-section-header h4 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.copywriting-section-card pre {
  max-height: 340px;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font: 0.9rem/1.55 "SFMono-Regular", "SF Mono", "Menlo", monospace;
}

.notice-success {
  background: rgba(43, 122, 88, 0.1);
  border-color: rgba(43, 122, 88, 0.2);
  color: var(--success);
}

.notice-warning {
  background: rgba(154, 182, 202, 0.16);
  border-color: rgba(154, 182, 202, 0.28);
  color: var(--ci-navy);
}

.notice-danger {
  background: rgba(141, 60, 47, 0.1);
  border-color: rgba(141, 60, 47, 0.22);
  color: var(--danger);
}

.freebie-page {
  position: relative;
  z-index: 1;
  width: min(100% - 32px, 1440px);
  margin: 0 auto;
  padding: 24px 0 56px;
}

.freebie-topbar,
.freebie-brand,
.freebie-topbar-actions,
.freebie-submit-row,
.freebie-output-header,
.freebie-pdf-form,
.freebie-score {
  display: flex;
  align-items: center;
}

.freebie-topbar {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.freebie-brand {
  gap: 12px;
  max-width: 64vw;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.freebie-brand-logo {
  display: block;
  width: 220px;
  max-width: calc(64vw - 42px);
  height: auto;
}

.freebie-brand-ai {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

.freebie-topbar-actions {
  justify-content: flex-end;
  gap: 10px;
}

.freebie-topbar-actions form {
  margin: 0;
}

.freebie-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  gap: 22px;
  align-items: start;
}

.freebie-intro,
.freebie-generator-panel,
.freebie-review-card,
.freebie-output {
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.freebie-intro {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 24px;
  padding: 28px;
  border-radius: 28px;
}

.freebie-intro h1 {
  max-width: 10.5em;
  font-size: 4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

.freebie-intro > p {
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

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

.freebie-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "index title"
    "index text";
  gap: 2px 12px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.freebie-step.is-active {
  background: rgba(229, 35, 34, 0.08);
  border-color: rgba(229, 35, 34, 0.18);
}

.freebie-step span {
  grid-area: index;
  align-self: start;
  color: var(--ci-red);
  font-weight: 900;
}

.freebie-step strong {
  grid-area: title;
}

.freebie-step p,
.freebie-submit-row p {
  color: var(--muted);
  line-height: 1.5;
}

.freebie-step p {
  grid-area: text;
}

.freebie-generator-panel,
.freebie-output {
  padding: 24px;
  border-radius: 28px;
}

.freebie-form {
  display: grid;
  gap: 20px;
}

.freebie-form-block {
  display: grid;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.freebie-form-block-primary {
  padding-top: 2px;
}

.freebie-section-heading {
  display: grid;
  gap: 6px;
  padding-top: 4px;
}

.freebie-section-heading h2 {
  font-size: 1.3rem;
  letter-spacing: 0;
}

.freebie-section-heading p {
  max-width: 68ch;
  color: var(--muted);
  line-height: 1.55;
}

.freebie-analysis-field textarea {
  min-height: 210px;
}

.field-hint {
  margin-top: -10px;
  color: var(--muted);
  line-height: 1.55;
}

.freebie-advanced {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.freebie-advanced summary,
.freebie-raw-output summary {
  cursor: pointer;
  list-style: none;
}

.freebie-advanced summary::-webkit-details-marker,
.freebie-raw-output summary::-webkit-details-marker {
  display: none;
}

.freebie-advanced summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker icon"
    "title icon";
  gap: 4px 14px;
  align-items: center;
  color: var(--ink);
}

.freebie-advanced summary span {
  grid-area: kicker;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.freebie-advanced summary strong {
  grid-area: title;
  font-size: 1.15rem;
}

.freebie-advanced summary em {
  grid-area: icon;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  color: var(--ink);
  font-style: normal;
  font-weight: 900;
}

.freebie-advanced[open] summary em {
  transform: rotate(45deg);
}

.freebie-advanced-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.freebie-submit-row {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.freebie-results {
  display: grid;
  grid-template-columns: minmax(260px, 0.35fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 22px;
}

.freebie-review-card {
  position: sticky;
  top: 22px;
  display: grid;
  gap: 16px;
  padding: 20px;
  border-radius: 24px;
}

.freebie-review-card > strong {
  font-size: 2.2rem;
  letter-spacing: 0;
}

.freebie-output {
  display: grid;
  gap: 18px;
}

.freebie-output-header {
  justify-content: space-between;
  gap: 16px;
}

.freebie-pdf-form {
  flex-shrink: 0;
}

.freebie-output-header h2 {
  margin-top: 6px;
  font-size: 2.3rem;
  letter-spacing: 0;
}

.freebie-score {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(45, 143, 111, 0.12);
  color: var(--success);
}

.freebie-score span {
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.freebie-score strong {
  font-size: 1.6rem;
}

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

.freebie-output-note {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.freebie-output-note p {
  color: var(--muted);
  line-height: 1.55;
}

.freebie-raw-output {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(246, 248, 252, 0.76);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.freebie-raw-output summary {
  color: var(--ink);
  font-weight: 900;
}

.freebie-raw-output .field {
  margin-top: 14px;
}

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

.launchpad-shell,
.placeholder-shell,
.agent-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.agent-shell::before,
.agent-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(20px);
  opacity: 0.9;
}

.agent-shell::before {
  top: 96px;
  left: 4%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(229, 35, 34, 0.16) 0%, rgba(229, 35, 34, 0.05) 42%, transparent 74%);
}

.agent-shell::after {
  top: 180px;
  right: 5%;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(154, 182, 202, 0.22) 0%, rgba(154, 182, 202, 0.07) 42%, transparent 74%);
}

.launchpad-shell::before,
.launchpad-shell::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.9;
}

.launchpad-shell::before {
  top: 88px;
  left: 8%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(229, 35, 34, 0.18) 0%, rgba(229, 35, 34, 0.06) 38%, transparent 72%);
}

.launchpad-shell::after {
  top: 132px;
  right: 8%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(154, 182, 202, 0.24) 0%, rgba(154, 182, 202, 0.08) 42%, transparent 72%);
}

.launchpad-topbar,
.agent-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.launchpad-topbar h1,
.agent-topbar h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  letter-spacing: -0.05em;
  line-height: 0.95;
  margin-top: 10px;
}

.launchpad-topbar p,
.agent-topbar p,
.agent-block-header p,
.agent-status-panel p {
  max-width: 720px;
  color: #5f6a7d;
  line-height: 1.6;
}

.launchpad-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 18, 32, 0.06);
  box-shadow: 0 22px 48px rgba(11, 18, 32, 0.07);
  backdrop-filter: blur(16px);
}

.launchpad-brand-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 18px 34px rgba(229, 35, 34, 0.16),
    inset 0 0 0 1px rgba(11, 18, 32, 0.04);
  overflow: hidden;
}

.launchpad-brand-wordmark {
  display: inline-flex;
  align-items: center;
  width: min(176px, 42vw);
}

.launchpad-brand-wordmark img {
  display: block;
  width: 100%;
  height: auto;
}

.launchpad-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.launchpad-brand-copy {
  display: grid;
  gap: 2px;
}

.launchpad-brand-copy small {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.launchpad-brand-copy strong {
  font-size: 1.1rem;
  letter-spacing: -0.04em;
  color: #0b1220;
}

.launchpad-topbar-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.launchpad-topbar-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(229, 35, 34, 0.08);
  color: #6b7382;
  font-size: 0.74rem;
  font-weight: 700;
  box-shadow: 0 18px 34px rgba(11, 18, 32, 0.05);
  backdrop-filter: blur(16px);
}

.hub-user-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.launchpad-topbar .overview-user,
.launchpad-topbar .ghost-button,
.agent-topbar .overview-user,
.agent-topbar .ghost-button {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 18px 38px rgba(11, 18, 32, 0.06);
}

.launchpad-stage,
.placeholder-main,
.agent-main {
  display: grid;
  gap: 28px;
}

.launchpad-board,
.placeholder-card,
.agent-stage,
.agent-output-panel {
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(248, 250, 255, 0.84);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(18px);
}

.launchpad-stage {
  position: relative;
  padding: clamp(18px, 3vw, 32px);
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.24), transparent 30%),
    linear-gradient(180deg, rgba(247, 248, 252, 0.92) 0%, rgba(240, 243, 250, 0.88) 100%);
  border-radius: 44px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 28px 70px rgba(11, 18, 32, 0.08);
}

.launchpad-board {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: clamp(30px, 4vw, 44px);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.88)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  border-color: rgba(11, 18, 32, 0.06);
  box-shadow: 0 34px 88px rgba(11, 18, 32, 0.12);
}

.freebie-suite-board {
  width: min(100%, 1040px);
}

.freebie-suite-profile {
  display: grid;
  gap: 6px;
  max-width: 520px;
  margin: 0 auto 22px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(11, 18, 32, 0.07);
  text-align: center;
}

.freebie-suite-profile strong {
  font-size: 1.1rem;
  color: var(--ink);
}

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

.launchpad-intro {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 30px;
}

.launchpad-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(229, 35, 34, 0.1);
  color: #d62423;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.launchpad-intro h1 {
  margin: 18px 0 14px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  letter-spacing: -0.08em;
  line-height: 0.92;
  color: #0b1220;
}

.launchpad-intro p {
  color: #5f6a7d;
  line-height: 1.7;
}

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

.launchpad-tile {
  display: grid;
  gap: 22px;
  min-height: 250px;
  padding: 18px;
  color: inherit;
  text-decoration: none;
  border-radius: 28px;
  border: 1px solid rgba(11, 18, 32, 0.06);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.84), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 252, 0.9));
  box-shadow: 0 18px 48px rgba(11, 18, 32, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.launchpad-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 60px rgba(11, 18, 32, 0.1);
  border-color: rgba(229, 35, 34, 0.16);
}

.launchpad-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.launchpad-icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  font-size: 1.45rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(11, 18, 32, 0.04);
  box-shadow: 0 14px 28px rgba(11, 18, 32, 0.06);
}

.launchpad-category {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.launchpad-tile-copy {
  display: grid;
  gap: 10px;
}

.launchpad-tile-copy strong {
  display: block;
  font-size: 1.6rem;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: #0b1220;
}

.launchpad-tile-copy p {
  color: #5f6a7d;
  line-height: 1.6;
}

.launchpad-tile-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: auto;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.64);
  border: 1px solid rgba(11, 18, 32, 0.04);
}

.launchpad-footer-label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.launchpad-footer-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--brand-soft);
}

.launchpad-state {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.06);
  color: #6a7587;
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.launchpad-tile.is-live .launchpad-state {
  background: rgba(229, 35, 34, 0.12);
  color: #d62423;
}

.launchpad-tile.is-soon .launchpad-state {
  background: rgba(11, 18, 32, 0.06);
  color: #6a7587;
}

.launchpad-tile.tone-blue {
  background:
    radial-gradient(circle at top left, rgba(154, 182, 202, 0.2), transparent 32%),
    linear-gradient(180deg, rgba(248, 250, 255, 0.97), rgba(245, 248, 252, 0.93));
}

.launchpad-tile.tone-green {
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.1), transparent 32%),
    linear-gradient(180deg, rgba(255, 250, 250, 0.97), rgba(249, 246, 245, 0.93));
}

.launchpad-tile.tone-violet {
  background:
    radial-gradient(circle at top left, rgba(154, 182, 202, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(249, 249, 255, 0.97), rgba(245, 246, 250, 0.93));
}

.launchpad-tile.tone-amber {
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.12), transparent 32%),
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 249, 250, 0.97), rgba(244, 247, 252, 0.93));
}

.launchpad-tile.tone-ink {
  background:
    radial-gradient(circle at top left, rgba(11, 18, 32, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(250, 250, 252, 0.97), rgba(246, 247, 249, 0.93));
}

.launchpad-tile.tone-rose {
  background:
    radial-gradient(circle at top left, rgba(229, 35, 34, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 248, 250, 0.97), rgba(248, 245, 247, 0.93));
}

.launchpad-tile.is-live {
  border-color: rgba(11, 18, 32, 0.08);
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.18), transparent 32%),
    linear-gradient(160deg, rgba(7, 17, 33, 0.98), rgba(11, 20, 36, 0.94) 42%, rgba(20, 16, 24, 0.96) 100%);
  box-shadow: 0 28px 64px rgba(7, 17, 33, 0.24);
}

.launchpad-tile.is-live .launchpad-category,
.launchpad-tile.is-live .launchpad-tile-copy p,
.launchpad-tile.is-live .launchpad-footer-label {
  color: rgba(238, 244, 255, 0.62);
}

.launchpad-tile.is-live .launchpad-tile-copy strong,
.launchpad-tile.is-live .launchpad-footer-value {
  color: #fff;
}

.launchpad-tile.is-live .launchpad-icon-badge {
  background: linear-gradient(135deg, var(--ci-red-bright), var(--ci-red));
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 36px rgba(229, 35, 34, 0.26);
}

.launchpad-tile.is-live .launchpad-tile-footer {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

.launchpad-tile.is-live:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 34px 78px rgba(7, 17, 33, 0.28);
}

.placeholder-main {
  align-items: start;
}

.placeholder-card {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
  display: grid;
  gap: 18px;
  background:
    radial-gradient(circle at top right, rgba(122, 164, 255, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 247, 252, 0.92));
}

.placeholder-card h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.placeholder-card p {
  color: var(--muted);
  line-height: 1.7;
}

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

.placeholder-meta div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(17, 17, 17, 0.05);
}

.agent-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #687385;
  text-decoration: none;
}

.agent-back-link::before {
  content: "←";
}

.agent-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
  gap: 0;
  overflow: hidden;
  border-color: rgba(11, 18, 32, 0.06);
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 246, 253, 0.94));
  box-shadow: 0 30px 76px rgba(11, 18, 32, 0.1);
}

.agent-loading-active {
  overflow: hidden;
}

.agent-loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(229, 35, 34, 0.12), transparent 32%),
    rgba(6, 11, 20, 0.42);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  z-index: 60;
}

.agent-loading-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.agent-loading-card {
  width: min(560px, calc(100vw - 32px));
  display: grid;
  gap: 16px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: 30px;
  color: #0b1220;
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.95));
  border: 1px solid rgba(11, 18, 32, 0.08);
  box-shadow: 0 34px 90px rgba(6, 11, 20, 0.24);
}

.agent-loading-card h2 {
  margin: -4px 0 0;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  letter-spacing: -0.04em;
}

.agent-loading-card p,
.agent-loading-card small {
  margin: 0;
  color: #5f6b7d;
  line-height: 1.6;
}

.agent-loading-progress {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(11, 18, 32, 0.08);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.agent-loading-progress-bar {
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, #e52322 0%, #ff8d75 52%, #f6bc95 100%);
  box-shadow: 0 0 24px rgba(229, 35, 34, 0.24);
  transition: width 180ms ease;
}

.agent-loading-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 0.95rem;
}

.agent-loading-meta strong {
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.agent-loading-meta span {
  color: #5f6b7d;
}

.agent-loading-stages {
  display: grid;
  gap: 10px;
}

.agent-loading-stage {
  position: relative;
  display: grid;
  gap: 3px;
  padding: 12px 14px 12px 44px;
  border-radius: 18px;
  background: rgba(246, 248, 252, 0.88);
  border: 1px solid rgba(11, 18, 32, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.agent-loading-stage::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 16px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(121, 137, 158, 0.35);
  box-shadow: inset 0 0 0 1px rgba(11, 18, 32, 0.08);
}

.agent-loading-stage strong {
  color: #112033;
  font-size: 0.95rem;
}

.agent-loading-stage span {
  color: #647084;
  font-size: 0.86rem;
  line-height: 1.45;
}

.agent-loading-stage.is-active {
  transform: translateY(-1px);
  border-color: rgba(229, 35, 34, 0.18);
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.08), transparent 42%),
    rgba(255, 251, 250, 0.96);
}

.agent-loading-stage.is-active::before {
  background: #e52322;
  box-shadow: 0 0 0 6px rgba(229, 35, 34, 0.12);
}

.agent-loading-stage.is-complete::before {
  background: #0b1220;
}

.agent-form[aria-busy="true"] {
  pointer-events: none;
}

.agent-form[aria-busy="true"] .primary-button {
  opacity: 0.82;
}

.agent-form {
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  gap: 0;
}

.agent-form-block {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-form-block:last-of-type {
  margin-bottom: 0;
}

.agent-block-header {
  margin-bottom: 22px;
}

.agent-field-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

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

.agent-form .field {
  display: grid;
  gap: 10px;
}

.agent-form .field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #0b1220;
}

.agent-form input,
.agent-form textarea,
.agent-form select {
  width: 100%;
  border: 1px solid rgba(11, 18, 32, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  padding: 14px 16px;
  outline: none;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.agent-form textarea {
  min-height: 112px;
  resize: vertical;
  line-height: 1.6;
}

.agent-form input:focus,
.agent-form textarea:focus,
.agent-form select:focus {
  border-color: rgba(229, 35, 34, 0.48);
  box-shadow: 0 0 0 4px rgba(229, 35, 34, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.agent-confirmation {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(229, 35, 34, 0.04);
  border: 1px solid rgba(229, 35, 34, 0.14);
}

.agent-confirmation input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.agent-form-actions {
  padding-top: 4px;
}

.agent-submit-note {
  margin: 14px 0 0;
  max-width: 46ch;
  color: #677386;
  font-size: 0.92rem;
  line-height: 1.55;
}

.agent-sidebar {
  display: grid;
  gap: 1px;
  background: rgba(11, 18, 32, 0.08);
}

.agent-status-panel {
  padding: clamp(24px, 3vw, 32px);
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(249, 251, 255, 0.96), rgba(244, 247, 252, 0.94));
}

.agent-status-panel + .agent-status-panel {
  background:
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.18), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 255, 0.96), rgba(243, 246, 251, 0.94));
}

.agent-status-panel h2 {
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  margin: 10px 0 10px;
  color: #0b1220;
}

.agent-status-list,
.agent-checklist {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.agent-status-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-status-copy {
  display: grid;
  gap: 4px;
}

.agent-status-copy small {
  color: #667284;
}

.agent-source-link {
  color: #d62423;
  text-decoration: none;
  font-size: 0.8rem;
  word-break: break-all;
}

.agent-checklist {
  padding-left: 18px;
  color: #5f6a7d;
  line-height: 1.6;
}

.agent-output-panel {
  padding: clamp(24px, 3vw, 36px);
  border-color: rgba(11, 18, 32, 0.06);
  background:
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.14), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 253, 0.94));
  box-shadow: 0 26px 64px rgba(11, 18, 32, 0.08);
}

.agent-output-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 0 14px;
}

.agent-output-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(214, 36, 35, 0.08), transparent 38%),
    rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.agent-output-toolbar-copy {
  display: grid;
  gap: 6px;
}

.agent-output-toolbar-copy p {
  margin: 0;
  color: #5c6779;
}

.agent-inline-form {
  flex-shrink: 0;
}

.agent-output-content {
  padding: 22px;
  min-height: 320px;
  overflow-x: auto;
  border-radius: 24px;
  border: 1px solid rgba(11, 18, 32, 0.08);
  background: rgba(246, 248, 252, 0.96);
}

.agent-report-body {
  color: #112033;
  line-height: 1.7;
}

.agent-report-body h1,
.agent-report-body h2,
.agent-report-body h3,
.agent-report-body h4 {
  margin: 0 0 14px;
  color: #0b1220;
  letter-spacing: -0.04em;
}

.agent-report-body h1 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.agent-report-body h2 {
  margin-top: 26px;
  font-size: 1.4rem;
}

.agent-report-body h3 {
  margin-top: 20px;
  font-size: 1.08rem;
}

.agent-report-body p {
  margin: 0 0 14px;
  color: #4a5568;
}

.agent-report-body ::selection {
  background: rgba(214, 36, 35, 0.2);
}

.agent-report-body ul,
.agent-report-body ol {
  margin: 0 0 16px;
  padding-left: 22px;
  color: #2e3b4f;
}

.agent-report-body li {
  margin-bottom: 10px;
}

.agent-report-body a {
  color: #d62423;
  text-decoration: none;
}

.agent-report-body code {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(214, 36, 35, 0.08);
  color: #a41c1b;
  font-family: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  font-size: 0.9em;
}

.agent-raw-output {
  margin-top: 16px;
  border-top: 1px solid rgba(11, 18, 32, 0.08);
  padding-top: 14px;
}

.agent-selection-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(154, 182, 202, 0.16), transparent 38%),
    rgba(245, 248, 253, 0.94);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-selection-panel p {
  margin: 0;
  color: #556274;
}

.agent-selection-panel .ghost-button {
  width: fit-content;
}

.agent-raw-output summary {
  cursor: pointer;
  color: #556274;
  font-weight: 700;
}

.agent-output-raw {
  margin: 14px 0 0;
  padding: 18px;
  max-height: 320px;
  overflow: auto;
  border-radius: 18px;
  background: rgba(11, 18, 32, 0.04);
  border: 1px solid rgba(11, 18, 32, 0.08);
  font-family: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  line-height: 1.65;
  white-space: pre-wrap;
}

.empty-state-large {
  padding: 28px;
  border-radius: 24px;
  border: 1px dashed rgba(229, 35, 34, 0.18);
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.06), transparent 32%),
    rgba(240, 245, 255, 0.76);
}

.agent-discovery-card {
  margin-bottom: 18px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(229, 35, 34, 0.08), transparent 36%),
    rgba(248, 250, 255, 0.8);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.agent-discovery-card strong {
  display: block;
  margin-bottom: 8px;
  color: #0b1220;
}

.agent-inline-status-note {
  display: grid;
  gap: 4px;
  margin: -2px 0 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-inline-status-note strong {
  color: #112033;
  font-size: 0.98rem;
}

.agent-inline-status-note span {
  color: #5f6b7d;
  font-size: 0.94rem;
  line-height: 1.5;
}

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

.agent-suggestion-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-suggestion-card strong {
  color: #0b1220;
}

.agent-suggestion-card small {
  color: #687385;
}

.agent-suggestion-card a {
  color: #d62423;
  text-decoration: none;
  font-size: 0.82rem;
  word-break: break-all;
}

.agent-suggestion-card span {
  color: #687385;
  font-size: 0.8rem;
  line-height: 1.5;
}

.agent-fallback-details {
  margin-top: 8px;
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(11, 18, 32, 0.08);
}

.agent-fallback-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #0b1220;
  list-style: none;
}

.agent-fallback-details summary::-webkit-details-marker {
  display: none;
}

.agent-fallback-details summary::after {
  content: "+";
  margin-left: 10px;
  color: #d62423;
}

.agent-fallback-details[open] summary::after {
  content: "−";
}

.agent-fallback-details .agent-field-grid {
  margin-top: 16px;
}

.agent-research-notes {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.agent-research-notes p + p {
  margin-top: 10px;
}

.agent-feedback-form {
  display: grid;
  gap: 18px;
}

.agent-feedback-meta {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(248, 250, 255, 0.8);
  border: 1px solid rgba(11, 18, 32, 0.06);
}

.agent-feedback-meta strong {
  color: #0b1220;
}

.agent-feedback-meta small {
  color: #687385;
  word-break: break-all;
}

@media (max-width: 1280px) {
  .overview-shell {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .launchpad-grid,
  .quick-action-grid,
  .workspace-card-grid,
  .summary-grid,
  .overview-grid-triple {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .launchpad-grid,
  .agent-stage,
  .agent-suggestion-grid {
    grid-template-columns: 1fr;
  }

  .overview-sidebar {
    position: static;
    min-height: auto;
  }

  .overview-grid,
  .overview-hero,
  .overview-grid-triple,
  .process-step-grid,
  .output-grid,
  .freebie-workspace,
  .freebie-results {
    grid-template-columns: 1fr;
  }

  .freebie-intro,
  .freebie-review-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .launchpad-shell,
  .placeholder-shell,
  .agent-shell {
    width: min(100% - 28px, 1280px);
    padding-top: 18px;
  }

  .overview-main {
    padding: 18px;
  }

  .overview-topbar,
  .overview-topbar-actions,
  .launchpad-topbar,
  .launchpad-topbar-right,
  .agent-topbar,
  .hub-user-row {
    align-items: start;
    flex-direction: column;
  }

  .overview-topbar-actions,
  .overview-user,
  .app-shell .ghost-button,
  .agent-form .primary-button {
    width: 100%;
  }

  .quick-action-grid,
  .workspace-card-grid,
  .summary-grid,
  .auth-form-grid,
  .form-grid-two,
  .form-grid-three,
  .copywriting-preset-panel,
  .copywriting-input-guide,
  .copywriting-section-grid,
  .freebie-suite-grid,
  .context-stat-grid,
  .briefing-customer-meta {
    grid-template-columns: 1fr;
  }

  .preset-button-row {
    justify-content: flex-start;
  }

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

  .freebie-page {
    width: min(100% - 24px, 1440px);
    padding-top: 16px;
  }

  .freebie-topbar,
  .freebie-topbar-actions,
  .freebie-output-header,
  .freebie-pdf-form,
  .freebie-submit-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .freebie-pdf-form,
  .freebie-pdf-form .primary-button {
    width: 100%;
  }

  .freebie-intro,
  .freebie-generator-panel,
  .freebie-output {
    padding: 18px;
    border-radius: 22px;
  }

  .freebie-intro h1 {
    max-width: 11em;
    font-size: 3.1rem;
  }

  .freebie-section-preview,
  .freebie-review-grid {
    grid-template-columns: 1fr;
  }

  .launchpad-board {
    padding: 22px;
  }

  .launchpad-grid,
  .placeholder-meta,
  .launchpad-tile {
    grid-template-columns: 1fr;
  }

  .agent-status-row,
  .launchpad-tile-footer,
  .agent-output-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-field-grid-two {
    grid-template-columns: 1fr;
  }

  .activity-item,
  .stack-row {
    grid-template-columns: 1fr;
  }
}
