:root {
  --bg: #f3f3f7;
  --surface: #fbfcff;
  --surface-strong: #ffffff;
  --surface-tint: #f2f7fb;
  --border: #d8e2ee;
  --border-strong: #b9cade;
  --text: #1f2346;
  --muted: #5f6d8a;
  --accent: #23254f;
  --accent-strong: #191c3b;
  --accent-soft: #e8eef8;
  --accent-aqua: #67cde7;
  --accent-aqua-soft: #dff7fb;
  --shadow: 0 18px 40px rgba(25, 28, 59, 0.08);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(103, 205, 231, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(35, 37, 79, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f8fc 0%, #eef3f8 100%);
  color: var(--text);
}

.shell {
  display: grid;
  grid-template-columns: 244px 1fr;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(27, 31, 67, 0.98) 0%, rgba(31, 36, 78, 0.96) 100%);
  border-right: 1px solid var(--border);
  padding: 22px 16px;
  backdrop-filter: blur(12px);
  color: #f4f8ff;
  overflow-y: auto;
}

.brand h1,
.screen-header h2,
.panel-header h3,
.detail-header h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.eyebrow {
  margin: 0 0 6px 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--accent-aqua);
}

.muted,
.document-meta,
.panel-label,
.upload-box small {
  color: var(--muted);
}

.sidebar .muted,
.sidebar .panel-label,
.sidebar .mini-list,
.sidebar .nav-button {
  color: rgba(235, 242, 255, 0.82);
}

.nav-link {
  text-decoration: none;
  display: inline-flex;
  justify-content: flex-start;
}

.brand-logo,
.empty-logo {
  display: block;
  object-fit: contain;
}

.brand-logo {
  width: 100%;
  max-width: 212px;
  margin: 0 auto 14px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.98) 100%);
  border: 1px solid rgba(198, 214, 238, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 28px rgba(7, 10, 35, 0.16);
  padding: 6px 10px;
}

.empty-logo {
  width: 120px;
  margin: 0 auto 18px;
  opacity: 0.78;
  filter: drop-shadow(0 10px 22px rgba(31, 35, 70, 0.08));
}

.nav {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.nav-button,
.primary-button,
.secondary-button,
.ghost-button,
.status-select,
.search-input,
input,
textarea,
select {
  border-radius: 14px;
  border: 1px solid var(--border);
  font: inherit;
}

.nav-button {
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}

button:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.nav-button:disabled,
.status-select:disabled {
  cursor: not-allowed;
}

.nav-button-with-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.nav-button.active {
  background: rgba(103, 205, 231, 0.14);
  border-color: rgba(103, 205, 231, 0.35);
  color: #ffffff;
}

.nav-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(187, 65, 84, 0.2);
  border: 1px solid rgba(187, 65, 84, 0.32);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.sidebar-panel {
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(177, 198, 231, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.full-width {
  width: 100%;
}

.mini-list {
  padding-left: 18px;
  margin: 10px 0 0;
}

.main {
  display: flex;
  flex-direction: column;
  padding: 18px;
  height: 100vh;
  overflow: hidden;
}

.dashboard-page {
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.dashboard-page .shell {
  height: 100vh;
}

.dashboard-page .main {
  height: 100vh;
  overflow: hidden;
}

.dashboard-page .screen.active {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.dashboard-page #queueScreen.screen.active {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.dashboard-page .layout {
  height: 100%;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.dashboard-page .queue-panel,
.dashboard-page .detail-panel {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.dashboard-page .queue-panel {
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-page .case-list,
.dashboard-page .website-lead-list {
  min-height: 0;
  overflow-y: auto;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#queueScreen.screen.active {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

#helpScreen.screen.active {
  grid-template-rows: auto auto minmax(0, 1fr);
}

.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.search-input {
  padding: 12px 14px;
  min-width: 220px;
  background: var(--surface-strong);
  border-color: var(--border-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  align-items: stretch;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.queue-layout {
  grid-template-columns: minmax(0, 1fr);
}

.panel,
.subpanel,
.metric-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
}

.panel {
  padding: 12px;
}

.help-toolbar-panel,
.help-results-panel {
  min-height: 0;
}

.help-toolbar {
  display: grid;
  gap: 10px;
}

.help-search {
  width: 100%;
}

.help-search-summary {
  margin: 0;
}

.help-topic-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.help-topic-button {
  min-height: 34px;
  padding: 6px 12px;
}

#queueContextHelpButton,
[data-open-help],
.workspace-help-button,
.workspace-jump-help-button {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 0.76rem;
}

.help-results-panel {
  overflow: hidden;
}

.help-results {
  display: grid;
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.help-card {
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(190, 201, 225, 0.72);
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 255, 0.94));
}

.help-card-empty {
  display: grid;
  gap: 8px;
  align-content: start;
}

.help-card-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.help-card-header h3 {
  margin: 0;
}

.help-card-summary {
  margin: 0 0 10px;
  color: var(--accent);
}

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

.help-card mark {
  background: rgba(103, 205, 231, 0.22);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

.queue-panel,
.detail-panel {
  min-height: 0;
  height: 100%;
}

.queue-panel {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-right: 4px;
}

.detail-panel {
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
}

.panel-header,
.detail-header,
.subpanel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.panel-header-actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.detail-header {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2.1fr);
  align-items: start;
}

.case-list {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  margin-top: 5px;
  overflow: visible;
  min-height: 0;
  padding-right: 4px;
}

.queue-panel-intro {
  margin: 3px 0 0;
  font-size: 0.88rem;
}

.queue-tools {
  display: grid;
  gap: 6px;
  margin-top: 4px;
  padding-bottom: 2px;
  background: transparent;
}

.todays-work-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(103, 205, 231, 0.28);
  background: linear-gradient(180deg, rgba(245, 251, 255, 0.96) 0%, rgba(237, 246, 252, 0.96) 100%);
}

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

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

.todays-work-header h4 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  color: var(--accent);
}

.todays-work-panel .muted {
  margin: 0;
}

.todays-work-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todays-work-chip {
  border: 1px solid rgba(185, 202, 222, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  padding: 6px 9px;
  font: inherit;
  font-size: 0.78rem;
  color: var(--accent);
  cursor: pointer;
}

.todays-work-chip:hover,
.todays-work-chip:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 10px 20px rgba(25, 28, 59, 0.08);
}

.queue-toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 37, 79, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent);
  box-shadow: 0 12px 24px rgba(25, 28, 59, 0.06);
}

.queue-toast-action {
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
}

.queue-search {
  min-width: 0;
  width: 100%;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.filter-button {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-strong);
  cursor: pointer;
  font: inherit;
}

.filter-button.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(35, 37, 79, 0.2);
}

.case-card {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  border-radius: 18px;
  padding: 7px 8px;
  cursor: pointer;
  text-align: left;
}

.case-card.active {
  border-color: rgba(35, 37, 79, 0.35);
  background: linear-gradient(180deg, #f4f8fd 0%, #eef5fb 100%);
}

.case-card h4,
.case-card p {
  margin: 0;
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.case-card .meta {
  margin-top: 5px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.case-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.case-card-quick-button {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
}

.case-card-quick-button[data-kicker] {
  padding-top: 3px;
  padding-bottom: 4px;
}

.case-card-quick-button[data-kicker]::before {
  content: attr(data-kicker);
  display: block;
  margin-bottom: 1px;
  font-size: 0.5rem;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.case-card-quick-button-muted {
  opacity: 0.85;
}

.case-card-affirmed {
  box-shadow: 0 18px 40px rgba(92, 176, 128, 0.14);
}

.inbox-stat-priority {
  background: rgba(103, 205, 231, 0.14);
  border-color: rgba(103, 205, 231, 0.28);
}

.case-card h4 {
  font-size: 0.88rem;
  line-height: 1.2;
}

.case-card p {
  margin-top: 1px;
  color: var(--muted);
  font-size: 0.76rem;
}

.case-card-note {
  font-size: 0.72rem;
  color: var(--ink);
}

.case-card-progress {
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink);
}

.case-card-progress-active {
  color: #2f5f88;
}

.case-card-progress-waiting {
  color: #8b5d2d;
}

.case-card-progress-complete {
  color: #2b6c47;
}

.case-card-next {
  margin-top: 2px;
  font-size: 0.71rem;
  font-weight: 600;
}

.case-card-next-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.case-card-next-link:hover,
.case-card-next-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.case-card-next-active {
  color: #375d86;
}

.case-card-next-waiting {
  color: #8b5d2d;
}

.case-card-next-complete {
  color: #2b6c47;
}

.case-card-feedback {
  display: inline-flex;
  align-items: center;
  margin-top: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.case-card-feedback-success {
  background: rgba(92, 176, 128, 0.14);
  color: #2b6c47;
}

.pill,
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.7rem;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: default;
}

.tag-positive {
  background: rgba(92, 176, 128, 0.16);
  color: #2d7045;
  border: 1px solid rgba(92, 176, 128, 0.24);
}

.tag-warning {
  background: rgba(216, 143, 59, 0.14);
  color: #8b5d11;
  border: 1px solid rgba(216, 143, 59, 0.22);
}

.tag-urgent {
  background: rgba(187, 65, 84, 0.12);
  color: #8d2133;
  border: 1px solid rgba(187, 65, 84, 0.2);
}

.tag-muted {
  background: rgba(95, 109, 138, 0.12);
  color: var(--muted);
  border: 1px solid rgba(95, 109, 138, 0.18);
}

.full-span {
  grid-column: 1 / -1;
}

.emphasis-pill {
  background: rgba(103, 205, 231, 0.18);
  border: 1px solid rgba(103, 205, 231, 0.3);
}

.source-pill {
  border: 1px solid transparent;
  font-weight: 700;
}

.source-pill-website {
  background: rgba(103, 205, 231, 0.18);
  color: var(--accent);
  border-color: rgba(103, 205, 231, 0.3);
}

.source-pill-email {
  background: rgba(56, 122, 96, 0.12);
  color: #1f614b;
  border-color: rgba(56, 122, 96, 0.2);
}

.source-pill-fax {
  background: rgba(216, 143, 59, 0.14);
  color: #8b5d11;
  border-color: rgba(216, 143, 59, 0.22);
}

.source-pill-neutral {
  background: rgba(95, 109, 138, 0.12);
  color: var(--muted);
  border-color: rgba(95, 109, 138, 0.18);
}

.athena-pill {
  background: rgba(56, 122, 96, 0.14);
  color: #1f614b;
  border: 1px solid rgba(56, 122, 96, 0.22);
  font-weight: 700;
}

.tcm-pill {
  border: 1px solid transparent;
}

.tcm-pill-urgent {
  background: rgba(187, 65, 84, 0.12);
  color: #8d2133;
  border-color: rgba(187, 65, 84, 0.2);
}

.tcm-pill-warning {
  background: rgba(216, 143, 59, 0.14);
  color: #8b5d11;
  border-color: rgba(216, 143, 59, 0.22);
}

.tcm-pill-muted {
  background: rgba(95, 109, 138, 0.12);
  color: var(--muted);
  border-color: rgba(95, 109, 138, 0.18);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 680px;
  text-align: center;
  color: var(--muted);
}

.login-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
}

.login-panel {
  width: min(480px, 100%);
  padding: 28px;
}

.login-logo {
  max-width: 220px;
  margin-bottom: 20px;
}

.login-form {
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.case-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  min-height: 0;
}

.detail-topbar {
  display: grid;
  gap: 12px;
  padding: 0 2px 4px 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(217, 226, 238, 0.82);
}

.detail-body {
  display: grid;
  gap: 12px;
  min-height: 0;
  overflow-y: auto;
  padding: 6px 4px 0 0;
}

.case-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(35, 37, 79, 0.04) 0%, rgba(103, 205, 231, 0.08) 100%);
}

.case-summary-strip .summary-cell:nth-child(1),
.case-summary-strip .summary-cell:nth-child(2) {
  grid-column: span 3;
}

.case-summary-strip .summary-cell:nth-child(3),
.case-summary-strip .summary-cell:nth-child(4),
.case-summary-strip .summary-cell:nth-child(5) {
  grid-column: span 2;
}

.summary-cell {
  min-width: 0;
  padding: 2px 0;
}

.summary-label {
  margin: 0 0 6px 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.summary-cell strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.22;
  word-break: normal;
  overflow-wrap: anywhere;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.subpanel {
  padding: 14px;
}

.section-grid > .subpanel {
  display: flex;
  flex-direction: column;
  min-height: 760px;
}

.compact-panel {
  padding: 0;
  overflow: hidden;
}

.admin-reference-panel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  padding: 18px 20px;
}

.details-summary {
  list-style: none;
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 12px 14px;
  min-height: 48px;
  line-height: 1.2;
  font-weight: 600;
  font-family: Georgia, "Times New Roman", serif;
  border-bottom: 1px solid transparent;
  color: var(--text);
  position: relative;
  user-select: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.details-summary::-webkit-details-marker {
  display: none;
}

.details-summary::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  transition: transform 0.18s ease, color 0.18s ease;
}

.details-summary:hover {
  background: rgba(103, 205, 231, 0.08);
}

.details-summary[aria-expanded="true"] {
  background: rgba(103, 205, 231, 0.06);
}

.static-summary {
  cursor: default;
}

.static-summary::after {
  content: "";
}

.compact-panel[open] .details-summary {
  border-bottom-color: var(--border);
}

.compact-panel[open] .details-summary::after {
  content: "-";
}

.compact-panel-body {
  padding: 12px 14px 14px;
}

.compact-panel:not([open]) .compact-panel-body {
  display: none;
}

.compact-panel[open] .compact-panel-body {
  display: block;
}

.subpanel {
  padding: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
}

label span {
  font-size: 0.88rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  background: var(--surface-strong);
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

.upload-box {
  border: 1.5px dashed rgba(35, 37, 79, 0.24);
  background: linear-gradient(180deg, #f5f9fe 0%, #fbfdff 100%);
  border-radius: 20px;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.upload-box.is-disabled {
  opacity: 0.62;
  cursor: not-allowed;
  pointer-events: none;
}

.upload-box input {
  display: none;
}

.document-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.document-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--surface-strong);
  display: grid;
  gap: 12px;
}

.document-textarea {
  min-height: 420px;
  height: clamp(520px, 56vh, 760px);
}

.document-row,
.action-row,
.detail-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.document-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.document-delete-button {
  min-height: auto;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.document-primary-button {
  min-height: auto;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.document-primary-status {
  margin: 6px 0 0;
}

.document-pill-primary {
  background: rgba(43, 47, 99, 0.12);
  color: var(--ink);
  border: 1px solid rgba(43, 47, 99, 0.18);
}

.detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.detail-actions .status-select {
  min-width: 240px;
  background: var(--surface-strong);
}

.primary-button,
.secondary-button,
.ghost-button {
  cursor: pointer;
  padding: 12px 16px;
  min-height: 44px;
}

.primary-button {
  background: linear-gradient(180deg, #2b2f63 0%, #1f2346 100%);
  color: #fff;
  border-color: transparent;
}

.secondary-button {
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fe 100%);
  color: var(--accent);
  border-color: var(--border-strong);
}

.ghost-button {
  background: var(--accent-aqua-soft);
  color: var(--accent);
  border-color: rgba(103, 205, 231, 0.35);
}

.output-box,
.large-textarea {
  min-height: 320px;
  background: #fbfdff;
}

.large-textarea {
  min-height: 640px;
  height: clamp(760px, 82vh, 1120px);
  flex: 1 1 auto;
}

.output-box {
  white-space: pre-wrap;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin: 0;
}

.tag-cloud,
.stats-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.source-block {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.source-block.first-block {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.structured-panel {
  margin-top: 18px;
}

.source-snippet-list {
  display: grid;
  gap: 14px;
}

.source-snippet-group {
  display: grid;
  gap: 10px;
}

.source-snippet-group h4 {
  margin: 0;
  font-size: 0.9rem;
  color: var(--accent);
}

.source-snippet-item {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fbfdff;
}

.source-snippet-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  line-height: 1.35;
}

.source-snippet-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.timeline-list {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-aqua) 0%, #4bbbd8 100%);
  box-shadow: 0 0 0 4px rgba(103, 205, 231, 0.14);
  margin-top: 4px;
}

.timeline-content {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.timeline-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.timeline-top span,
.timeline-content p {
  color: var(--muted);
}

.timeline-actor {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.source-label {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.export-row {
  margin-top: 14px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.analytics-toolbar {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.analytics-window-summary {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.analytics-window-switch {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.analytics-window-button {
  min-width: 92px;
  text-align: center;
}

.analytics-grid.detail {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.analytics-story-list {
  align-content: start;
}

#analyticsScreen.screen.active {
  grid-template-rows: auto auto auto;
  height: auto;
  overflow-y: auto;
  padding-right: 4px;
}

.dashboard-strip {
  margin-bottom: 10px;
}

.inbox-strip-panel {
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.inbox-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.inbox-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.lead-alert-banner {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(187, 65, 84, 0.22);
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.98) 0%, rgba(253, 238, 241, 0.98) 100%);
}

.lead-alert-banner strong,
.lead-alert-banner p {
  display: block;
  margin: 0;
}

.lead-alert-banner p {
  margin-top: 4px;
  color: #7d4150;
}

.inbox-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  font-size: 0.75rem;
  font: inherit;
  text-align: center;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, color 120ms ease;
}

.inbox-stat strong {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.86rem;
}

.inbox-stat:hover,
.inbox-stat:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 10px 22px rgba(35, 37, 79, 0.08);
  color: var(--text);
  outline: none;
  transform: translateY(-1px);
}

.inbox-filter-button.active {
  border-color: rgba(35, 37, 79, 0.36);
  background: linear-gradient(180deg, #f4f8fd 0%, #eef5fb 100%);
  color: var(--text);
}

.inbox-filter-button.active strong {
  color: var(--accent);
}

.inbox-card {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  padding: 12px 14px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: border-color 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.inbox-card:hover,
.inbox-card:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 12px 28px rgba(35, 37, 79, 0.12);
  transform: translateY(-1px);
  outline: none;
}

.inbox-card.active {
  border-color: rgba(35, 37, 79, 0.36);
  background: linear-gradient(180deg, #f4f8fd 0%, #eef5fb 100%);
}

.inbox-label {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
}

.inbox-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
}

.review-helper {
  margin: 6px 0 0;
}

.metric-card {
  padding: 8px 12px;
  border-radius: 18px;
}

.metric-card p,
.metric-card strong {
  margin: 0;
}

.metric-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.22rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--accent);
}

.metric-card p {
  font-size: 0.8rem;
}

.metric-filter-button {
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.metric-filter-button:hover,
.metric-filter-button:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 12px 28px rgba(35, 37, 79, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.metric-filter-button.active {
  border-color: rgba(35, 37, 79, 0.36);
  background: linear-gradient(180deg, #f4f8fd 0%, #eef5fb 100%);
}

.tcm-risk-card {
  border-color: rgba(187, 65, 84, 0.26);
  background: linear-gradient(180deg, rgba(255, 247, 248, 0.98) 0%, rgba(255, 239, 241, 0.98) 100%);
}

.tcm-risk-card p {
  color: #7d1d2f;
  font-weight: 700;
}

.tcm-risk-card strong {
  color: #8d2133;
}

.tcm-risk-card.active {
  border-color: rgba(187, 65, 84, 0.46);
  box-shadow: 0 14px 30px rgba(141, 33, 51, 0.16);
}

.workspace-html,
body.workspace-page {
  overflow: auto;
  height: auto;
}

.workspace-page .shell {
  height: auto;
  overflow: visible;
}

.workspace-shell {
  min-height: 100vh;
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(103, 205, 231, 0.14), transparent 22%),
    radial-gradient(circle at top right, rgba(35, 37, 79, 0.08), transparent 24%),
    linear-gradient(180deg, #f6f8fc 0%, #eef3f8 100%);
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}

.workspace-header-main {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.workspace-header-main h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1.05;
  color: var(--accent);
}

.workspace-title-block {
  display: grid;
  gap: 4px;
}

.workspace-brand-label {
  margin-bottom: 2px;
  font-size: 0.68rem;
  color: rgba(103, 205, 231, 0.9);
}

.workspace-subtitle {
  font-size: 0.95rem;
}

.workspace-back {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 0.88rem;
}

.workspace-actions {
  display: grid;
  gap: 8px;
  max-width: 700px;
  justify-items: end;
}

.workspace-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
}

.workspace-action-row-secondary {
  opacity: 0.92;
  gap: 6px;
}

.workspace-actions .status-select {
  min-width: 184px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  border-color: rgba(185, 202, 222, 0.9);
  box-shadow: 0 6px 18px rgba(25, 28, 59, 0.06);
  font-size: 0.84rem;
}

.workspace-action-button {
  min-width: 116px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 18px rgba(25, 28, 59, 0.06);
  font-size: 0.84rem;
}

.workspace-actions .secondary-button.action-outline {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(188, 207, 230, 0.95);
  color: var(--accent);
}

.workspace-actions .primary-button.action-support {
  background: linear-gradient(180deg, #46528d 0%, #334072 100%);
  border-color: transparent;
  color: #ffffff;
}

.workspace-actions .primary-button.action-primary {
  background: linear-gradient(180deg, #2b2f63 0%, #1f2346 100%);
  border-color: transparent;
  color: #ffffff;
}

.workspace-actions .workspace-action-button:disabled,
.workspace-actions .status-select:disabled {
  opacity: 0.55;
  box-shadow: none;
  transform: none;
}

.workspace-action-row-secondary .workspace-action-button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  box-shadow: 0 6px 14px rgba(25, 28, 59, 0.05);
}

.workspace-actions .secondary-button.action-flag {
  min-width: 90px;
}

.workspace-actions .secondary-button.action-flag.is-flagged {
  background: linear-gradient(180deg, rgba(255, 244, 246, 0.98) 0%, rgba(255, 233, 237, 0.98) 100%);
  border-color: rgba(187, 65, 84, 0.3);
  color: #8d2133;
}

.workspace-summary {
  margin-bottom: 10px;
}

.workspace-action-hint {
  margin: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(217, 226, 238, 0.55);
  font-size: 0.9rem;
}

.workspace-assist-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: -1px 0 12px;
}

.workspace-assist-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.workspace-autosave-note {
  font-size: 0.82rem;
}

.workspace-help-button,
.workspace-jump-help-button {
  flex: 0 0 auto;
}

.workspace-undo-toast {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: -4px 0 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(231, 248, 241, 0.96);
  border: 1px solid rgba(67, 139, 106, 0.26);
  color: #21553e;
  box-shadow: 0 10px 22px rgba(25, 28, 59, 0.06);
}

.workspace-undo-action {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
}

.workspace-packet-alert {
  margin: -2px 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 238, 228, 0.95);
  border: 1px solid rgba(208, 120, 76, 0.28);
  color: #7a3d1c;
  font-size: 0.92rem;
  font-weight: 600;
}

.workspace-conflict-panel {
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(208, 120, 76, 0.28);
  background: rgba(255, 245, 237, 0.95);
  display: grid;
  gap: 10px;
}

.workspace-conflict-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.workspace-conflict-header h4 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.workspace-conflict-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
}

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

.workspace-conflict-item {
  border: 1px solid rgba(208, 120, 76, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.workspace-conflict-item h5 {
  margin: 0;
  font-size: 0.95rem;
}

.workspace-conflict-recommended {
  font-size: 0.86rem;
}

.workspace-conflict-evidence {
  display: grid;
  gap: 6px;
}

.workspace-conflict-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  font-size: 0.86rem;
}

.workspace-conflict-doc {
  color: var(--muted);
}

.workspace-conflict-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.workspace-conflict-value {
  font-weight: 600;
  text-align: right;
}

.workspace-conflict-resolve-button {
  min-height: auto;
  padding: 6px 10px;
  font-size: 0.8rem;
}

.workspace-summary-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 7px 11px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 226, 238, 0.8);
}

.workspace-summary-inline-item {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 24px;
}

.workspace-summary-inline-item strong {
  font-size: 0.92rem;
  line-height: 1.2;
}

.workspace-summary-inline .summary-label {
  font-size: 0.72rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.admin-summary-grid {
  gap: 10px 14px;
}

.admin-summary-button {
  appearance: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 226, 238, 0.86);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.admin-summary-button:hover,
.admin-summary-button:focus-visible {
  border-color: rgba(35, 37, 79, 0.24);
  box-shadow: 0 10px 20px rgba(35, 37, 79, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.admin-summary-button.active-jump {
  border-color: rgba(103, 205, 231, 0.72);
  box-shadow: 0 0 0 3px rgba(103, 205, 231, 0.18), 0 10px 22px rgba(35, 37, 79, 0.1);
}

.workspace-layout {
  display: grid;
  grid-template-columns: minmax(360px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.admin-layout {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
}

.admin-main-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.admin-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.admin-user-form,
.admin-user-update-form {
  display: grid;
  gap: 12px;
}

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

.admin-section-intro {
  margin: 6px 0 0;
}

.admin-user-update-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(190, 201, 225, 0.8);
}

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

.admin-inline-status {
  margin-top: 12px;
}

.admin-user-action-status {
  margin-top: 10px;
  min-height: 1.2em;
}

.admin-user-card-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.admin-section-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-filter-select {
  min-width: 150px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.96);
}

.admin-toggle-button {
  min-width: 108px;
}

.compact-panel-title {
  margin: 0;
  padding: 16px 18px 0;
  font-size: 1.02rem;
  line-height: 1.3;
}

.admin-reference-panel .details-summary {
  width: 100%;
  padding: 0 24px 0 0;
  min-height: auto;
  background: transparent;
}

.admin-reference-panel .details-summary:hover {
  background: transparent;
}

.admin-reference-panel .details-summary::after {
  right: 0;
}

.admin-reference-panel .compact-panel-title {
  padding: 0;
}

.admin-reference-panel .compact-panel-body {
  display: block;
  width: 100%;
  padding: 0;
}

.static-panel-body {
  display: block;
  width: 100%;
  padding: 0;
}

.admin-section-marker {
  margin: 4px 0 -2px;
  padding: 2px 4px 0;
}

.admin-section-marker h3,
.admin-section-marker p {
  margin: 0;
}

.admin-section-marker h3 {
  margin-top: 4px;
}

.admin-log-panel {
  margin-top: 10px;
  max-height: 340px;
  overflow: auto;
  padding-right: 8px;
}

.admin-log-panel.is-collapsed {
  display: none;
}

.admin-user-card {
  border: 1px solid rgba(190, 201, 225, 0.8);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.95), rgba(237, 244, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.admin-user-card-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-user-card-identity {
  min-width: 0;
}

.admin-user-card-top p {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.admin-user-meta {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-session-summary {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(198, 210, 230, 0.72);
}

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

.admin-session-item {
  display: grid;
  gap: 4px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(198, 210, 230, 0.72);
  font-size: 0.88rem;
  color: var(--muted);
}

.admin-user-detail-panel {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(198, 210, 230, 0.72);
}

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

@media (max-width: 760px) {
  .admin-user-card-top {
    grid-template-columns: 1fr;
  }

  .admin-user-card-actions {
    justify-items: start;
  }

  .admin-user-meta {
    grid-template-columns: 1fr;
  }

  .admin-session-item {
    grid-template-columns: 1fr;
  }

  .admin-filter-select {
    width: 100%;
  }
}

.admin-password-field {
  grid-column: 1 / -1;
}

.admin-output-box {
  min-height: 0;
  font-size: 0.86rem;
}

.admin-list {
  margin: 0;
}

.retention-field {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.retention-inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.retention-inline input {
  width: 120px;
}

.retention-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.danger-button {
  border-color: rgba(181, 76, 76, 0.3);
  color: #8f2c2c;
}

.danger-button:hover {
  background: rgba(181, 76, 76, 0.08);
}

.retention-preview {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  display: grid;
  gap: 6px;
}

.retention-preview p {
  margin: 0;
}

.finalization-guardrails {
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(216, 143, 59, 0.24);
  border-radius: 14px;
  background: rgba(255, 248, 235, 0.92);
  color: #7a5311;
}

.finalization-guardrails strong {
  display: block;
  margin-top: 6px;
}

.finalization-guardrail-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.workspace-intake-panel {
  margin-bottom: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 248, 253, 0.98) 100%);
}

.workspace-intake-panel-compact {
  padding: 12px 14px;
}

.workspace-intake-panel-compact .subpanel-header {
  margin-bottom: 8px;
}

.workspace-intake-panel-compact .subpanel-header h3 {
  margin: 2px 0 0;
  font-size: 1rem;
}

.workspace-upload-box {
  margin-top: 0;
  padding: 12px 16px;
  min-height: 76px;
  border-width: 2px;
}

.workspace-upload-box span {
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--accent);
}

.workspace-upload-box small {
  max-width: 720px;
  font-size: 0.86rem;
}

.workspace-intake-panel .document-list {
  margin-top: 8px;
  max-height: 148px;
  overflow: auto;
}

.workspace-intake-panel .document-card {
  padding: 12px;
  border-radius: 14px;
}

.workspace-jumpbar {
  margin-bottom: 10px;
  padding: 6px 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
  backdrop-filter: blur(10px);
}

.workspace-jumpbar.is-pinned {
  position: fixed;
  top: 8px;
  z-index: 32;
  box-shadow: 0 12px 24px rgba(25, 28, 59, 0.08);
}

.workspace-jumpbar-placeholder {
  height: 0;
}

.workspace-jumpbar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.workspace-jumpbar-header .eyebrow {
  margin: 0;
  font-size: 0.74rem;
}

.workspace-jumpbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workspace-jump-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.96);
  border-color: rgba(188, 207, 230, 0.95);
  font-size: 0.72rem;
}

.workspace-jump-button.is-active {
  border-color: rgba(43, 47, 99, 0.24);
  box-shadow: 0 10px 20px rgba(25, 28, 59, 0.08);
}

.workspace-jump-button.is-needs-input {
  background: rgba(255, 248, 249, 0.98);
  border-color: rgba(206, 112, 132, 0.3);
}

.workspace-jump-button.is-ready {
  background: rgba(245, 251, 248, 0.98);
  border-color: rgba(118, 173, 138, 0.26);
}

.workspace-jump-button.is-optional {
  background: rgba(248, 250, 255, 0.98);
}

.workspace-jump-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-jump-badge-needs-input {
  background: rgba(187, 65, 84, 0.12);
  color: #8d2133;
  border: 1px solid rgba(187, 65, 84, 0.18);
}

.workspace-jump-badge-ready {
  background: rgba(83, 160, 113, 0.14);
  color: #2f6b44;
  border: 1px solid rgba(83, 160, 113, 0.18);
}

.workspace-jump-badge-optional {
  background: rgba(95, 109, 138, 0.12);
  color: var(--muted);
  border: 1px solid rgba(95, 109, 138, 0.16);
}

.document-details {
  margin-top: 10px;
}

.document-summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  list-style: none;
}

.document-summary::-webkit-details-marker {
  display: none;
}

.note-coverage-panel {
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(217, 226, 238, 0.8);
  border-radius: 14px;
  background: rgba(249, 252, 255, 0.9);
}

.athena-handoff-panel {
  margin-bottom: 12px;
  padding: 0;
  border: 1px solid rgba(217, 226, 238, 0.82);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(243, 248, 255, 0.9));
  overflow: hidden;
}

.athena-transfer-summary {
  padding: 14px 18px;
}

.athena-transfer-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 0.96rem;
  line-height: 1.4;
}

.athena-transfer-body {
  padding: 0 18px 18px;
}

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

.athena-handoff-header h4 {
  margin: 0;
}

.athena-handoff-hint {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.athena-handoff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.athena-complete-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.athena-complete-toggle input {
  inline-size: 16px;
  block-size: 16px;
}

.athena-handoff-status {
  margin: 10px 0 12px;
}

.athena-handoff-actions .secondary-button,
.athena-handoff-actions .primary-button {
  flex: 0 0 auto;
}

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

.athena-preview {
  min-height: 128px;
  max-height: 160px;
  margin: 0;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(217, 226, 238, 0.82);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

.coverage-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.coverage-item {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: default;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(217, 226, 238, 0.85);
  background: #ffffff;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.coverage-item strong {
  display: block;
  margin-top: 4px;
  font-size: 0.95rem;
}

.coverage-item p {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

.coverage-status {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.coverage-item.covered .coverage-status {
  background: rgba(83, 160, 113, 0.14);
  color: #2f6b44;
}

.coverage-item.missing .coverage-status {
  background: rgba(216, 143, 59, 0.14);
  color: #8b5d11;
}

button.coverage-item {
  cursor: pointer;
}

button.coverage-item:hover,
button.coverage-item:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 10px 24px rgba(35, 37, 79, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.workspace-sidebar,
.workspace-editors {
  display: grid;
  gap: 14px;
  align-content: start;
}

.workspace-sidebar {
  position: static;
  max-height: none;
  overflow: visible;
  padding-right: 10px;
}

.workspace-editors {
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

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

.workspace-sidebar .compact-panel[open] .compact-panel-body {
  max-height: min(62vh, 720px);
  overflow-y: auto;
  padding-right: 4px;
}

.workspace-textarea {
  width: 100%;
  min-height: 78vh;
  height: 78vh;
  background: #fbfdff;
  resize: vertical;
  line-height: 1.5;
}

.workspace-note-helper {
  margin: 4px 0 0;
  max-width: 56ch;
  line-height: 1.45;
}

.workspace-page .document-textarea {
  min-height: 140px;
  height: 140px;
}

.website-lead-list,
.admin-inquiry-list {
  display: grid;
  gap: 14px;
}

.website-lead-list {
  min-height: 240px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
}

.website-lead-card,
.admin-inquiry-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(250, 252, 255, 1) 0%, rgba(242, 247, 252, 1) 100%);
  box-shadow: 0 10px 22px rgba(25, 28, 59, 0.05);
}

.website-lead-card-converted {
  border-color: rgba(69, 152, 104, 0.22);
  box-shadow: 0 14px 28px rgba(35, 74, 57, 0.08);
}

.website-lead-card-converted[role="button"] {
  cursor: pointer;
}

.website-lead-card-converted[role="button"]:hover,
.website-lead-card-converted[role="button"]:focus-visible {
  border-color: rgba(69, 152, 104, 0.32);
  box-shadow: 0 16px 30px rgba(35, 74, 57, 0.12);
  outline: none;
}

.attention-ring {
  animation: attentionPulse 1.35s ease-in-out 1;
}

@keyframes attentionPulse {
  0% {
    box-shadow: 0 18px 40px rgba(25, 28, 59, 0.08);
    transform: translateY(0);
  }
  40% {
    box-shadow: 0 20px 42px rgba(187, 65, 84, 0.18);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: 0 18px 40px rgba(25, 28, 59, 0.08);
    transform: translateY(0);
  }
}

.website-lead-top,
.admin-inquiry-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.website-lead-top-meta {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.website-lead-top strong,
.admin-inquiry-top strong {
  display: block;
  margin-bottom: 4px;
}

.website-lead-top p,
.admin-inquiry-top p,
.website-lead-card p,
.admin-inquiry-card p {
  margin: 0;
}

.website-lead-card > p + p,
.admin-inquiry-card > p + p {
  margin-top: 10px;
}

.website-lead-actions,
.admin-inquiry-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.website-lead-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text);
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.website-lead-primary {
  min-width: 150px;
  justify-content: center;
}

.website-lead-primary-compact {
  min-width: 170px;
}

.website-lead-badge {
  min-width: 88px;
  justify-content: center;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.pill-button.is-filter-reset {
  border-color: rgba(35, 37, 79, 0.65);
  box-shadow: 0 10px 22px rgba(35, 37, 79, 0.08);
}

.pill-button.is-static,
.pill-button:disabled {
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.pill-button.hidden {
  display: none !important;
}

.pill-button:hover,
.pill-button:focus-visible {
  border-color: rgba(35, 37, 79, 0.28);
  box-shadow: 0 10px 22px rgba(35, 37, 79, 0.08);
  outline: none;
  transform: translateY(-1px);
}

.website-lead-badge-button {
  min-width: 104px;
  font-weight: 700;
}

.website-lead-button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  box-shadow: 0 10px 20px rgba(25, 28, 59, 0.08);
}

.website-lead-button.active {
  background: var(--accent-soft);
  border-color: rgba(103, 205, 231, 0.35);
  color: var(--accent);
}

.website-lead-button.status-converted.active {
  background: rgba(69, 152, 104, 0.12);
  border-color: rgba(69, 152, 104, 0.24);
  color: #2f6f4c;
}

.website-lead-button.status-contacted.active,
.website-lead-button.status-reviewing.active {
  background: rgba(103, 205, 231, 0.14);
  border-color: rgba(103, 205, 231, 0.3);
}

.website-lead-button.status-closed.active {
  background: rgba(95, 109, 138, 0.12);
  border-color: rgba(95, 109, 138, 0.18);
  color: var(--muted);
}

.marketing-html,
.marketing-page {
  height: auto;
  min-height: 100%;
  overflow: auto;
}

.marketing-page {
  background:
    radial-gradient(circle at top left, rgba(103, 205, 231, 0.2), transparent 24%),
    radial-gradient(circle at 80% 8%, rgba(35, 37, 79, 0.08), transparent 28%),
    linear-gradient(180deg, #f7f9fd 0%, #eef3f8 100%);
  font-size: 18px;
  line-height: 1.6;
  scroll-behavior: smooth;
}

.marketing-shell {
  min-height: 100vh;
  padding: 24px;
}

.marketing-skip-link {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 30;
  padding: 12px 16px;
  border-radius: 14px;
  background: #ffffff;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(35, 37, 79, 0.2);
  box-shadow: var(--shadow);
  transform: translateY(-140%);
}

.marketing-skip-link:focus {
  transform: translateY(0);
}

.marketing-frame {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.marketing-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  position: sticky;
  top: 16px;
  z-index: 20;
  border-radius: 28px;
  border: 1px solid rgba(216, 226, 238, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.marketing-brand-home {
  display: inline-flex;
}

.marketing-brand-image {
  width: 164px;
  max-width: 42vw;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 248, 252, 0.98) 100%);
  border: 1px solid rgba(198, 214, 238, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
  padding: 4px 8px;
}

.marketing-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.marketing-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 8px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  font-size: 0.98rem;
}

.marketing-nav-link:hover {
  color: var(--accent);
}

.marketing-signin-link {
  padding-left: 10px;
  padding-right: 10px;
}

.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(340px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.marketing-hero-copy,
.marketing-hero-visual,
.marketing-section,
.marketing-form-panel,
.marketing-proof-card,
.marketing-process-card,
.marketing-audience-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.marketing-hero-copy {
  padding: 30px 30px 28px;
  display: grid;
  gap: 16px;
  background:
    radial-gradient(circle at top left, rgba(103, 205, 231, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.94) 100%);
}

.marketing-kicker {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-aqua);
}

.marketing-hero-copy h1,
.marketing-section h2,
.marketing-form-panel h2,
.marketing-section h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.marketing-hero-copy h1 {
  font-size: clamp(2.8rem, 4.1vw, 4.7rem);
}

.marketing-lead {
  margin: 0;
  color: #3f4d64;
  font-size: 1.28rem;
  line-height: 1.62;
  max-width: 32ch;
}

.marketing-sublead {
  margin: 0;
  color: #4f5e76;
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 56ch;
}

.marketing-top-cta {
  min-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  text-align: center;
}

.marketing-secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.74);
}

.marketing-secondary-link-minimal {
  background: transparent;
  border-color: transparent;
  padding-left: 4px;
  padding-right: 4px;
  justify-content: flex-start;
}

.marketing-secondary-link-minimal:hover {
  text-decoration: underline;
}

.marketing-highlight strong,
.marketing-proof-card strong,
.marketing-process-card strong,
.marketing-audience-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.marketing-highlight p,
.marketing-proof-card p,
.marketing-process-card p,
.marketing-audience-card p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.7;
  font-size: 1rem;
}

.marketing-hero-visual {
  padding: 22px;
  background:
    radial-gradient(circle at top left, rgba(103, 205, 231, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(250, 252, 255, 1) 0%, rgba(239, 245, 251, 1) 100%);
  display: grid;
  gap: 12px;
  align-content: start;
}

.marketing-visual-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(216, 226, 238, 0.95);
}

.marketing-visual-card-accent {
  background: linear-gradient(180deg, rgba(244, 250, 255, 1) 0%, rgba(236, 245, 252, 1) 100%);
}

.marketing-visual-card h2 {
  margin: 0 0 10px;
  font-size: 1.6rem;
  line-height: 1.3;
}

.marketing-visual-card p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.72;
  max-width: none;
  text-align: left;
}

.marketing-mission-card {
  padding: 22px;
}

.marketing-figure-panel {
  display: grid;
  gap: 14px;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(103, 205, 231, 0.16), transparent 32%),
    linear-gradient(180deg, rgba(246, 251, 255, 0.98) 0%, rgba(237, 245, 252, 0.98) 100%);
}

.marketing-figure-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4f6a84;
.marketing-figure-illustration {
  width: 100%;
  display: block;
  border-radius: 28px;
  border: 1px solid rgba(188, 207, 230, 0.95);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.marketing-figure-track {
  display: grid;
  gap: 10px;
}

.marketing-figure-track-step {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(188, 207, 230, 0.82);
}

.marketing-figure-track-step strong {
  margin: 0;
  color: var(--accent);
}

.marketing-figure-track-step span {
  color: #54657e;
  font-size: 0.92rem;
  font-weight: 600;
}

.marketing-figure-track-step.is-complete {
  border-color: rgba(103, 205, 231, 0.34);
  background: linear-gradient(180deg, rgba(239, 249, 252, 0.98) 0%, rgba(233, 245, 250, 0.98) 100%);
}

.marketing-figure-track-step.is-active {
  border-color: rgba(35, 37, 79, 0.22);
  background: linear-gradient(180deg, rgba(243, 246, 255, 0.98) 0%, rgba(235, 241, 251, 0.98) 100%);
}

.marketing-figure-caption strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.02rem;
}

.marketing-figure-caption p {
  margin: 0;
}

.marketing-priority-list {
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.marketing-priority-list li + li {
  margin-top: 8px;
}

.marketing-contact-card {
  gap: 14px;
}

.marketing-inline-link-row {
  margin: 2px 0 0;
}

.marketing-inline-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.marketing-inline-link:hover {
  text-decoration: underline;
}

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

.marketing-service-list-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(216, 226, 238, 0.92);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96) 0%, rgba(241, 246, 252, 0.96) 100%);
}

.marketing-service-list-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
}

.marketing-service-list-item p {
  margin: 0;
  font-size: 1rem;
}

.marketing-cta-stack {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.marketing-fit-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.05rem;
}

.marketing-section-header-tight {
  align-items: flex-start;
}

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

.marketing-summary-card {
  min-height: 100%;
}

.marketing-section-link-row {
  margin-top: 18px;
}

.marketing-service-hero {
  display: grid;
  gap: 20px;
}

.marketing-service-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.marketing-service-bands {
  padding-top: 18px;
}

.marketing-proof-grid,
.marketing-process-grid,
.marketing-audience-grid {
  display: grid;
  gap: 16px;
}

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

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

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

.marketing-section {
  padding: 28px 30px;
}

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

.marketing-section-header p {
  margin: 0;
  color: #4f5e76;
  max-width: 48ch;
  line-height: 1.72;
  font-size: 1.02rem;
}

.marketing-proof-card,
.marketing-process-card,
.marketing-audience-card {
  padding: 20px;
}

.marketing-hero-checklist {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.marketing-hero-check-item {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(188, 207, 230, 0.95);
  background: rgba(255, 255, 255, 0.78);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.5;
}

.marketing-reassurance-section .marketing-proof-card {
  background:
    linear-gradient(180deg, rgba(249, 252, 255, 0.98) 0%, rgba(242, 248, 253, 0.98) 100%);
}

.marketing-story-section {
  background:
    radial-gradient(circle at top right, rgba(103, 205, 231, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(247, 251, 255, 0.96) 100%);
}

.marketing-visual-break {
  background:
    radial-gradient(circle at bottom left, rgba(103, 205, 231, 0.14), transparent 32%),
    linear-gradient(180deg, rgba(248, 251, 255, 0.98) 0%, rgba(239, 246, 252, 0.98) 100%);
}

.marketing-family-spotlight {
  background:
    radial-gradient(circle at top right, rgba(255, 214, 170, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 251, 246, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.marketing-faq-visual-band {
  background:
    radial-gradient(circle at top left, rgba(255, 214, 170, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(247, 250, 255, 0.98) 100%);
}

.marketing-visual-break-grid,
.marketing-service-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(280px, 0.98fr);
  gap: 22px;
  align-items: center;
}

.marketing-visual-break-copy,
.marketing-service-hero-copy {
  display: grid;
  gap: 18px;
}

.marketing-visual-break-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.18;
  font-size: clamp(2rem, 3vw, 3.1rem);
}

.marketing-visual-break-copy > p {
  margin: 0;
  color: #4f5e76;
  font-size: 1.06rem;
  line-height: 1.78;
  max-width: 48ch;
}

.marketing-visual-break-points {
  display: grid;
  gap: 12px;
}

.marketing-visual-break-point {
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(216, 226, 238, 0.95);
}

.marketing-visual-break-point strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}

.marketing-visual-break-point p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.7;
}

.marketing-visual-break-art,
.marketing-service-hero-illustration {
  display: grid;
  align-items: center;
}

.marketing-visual-break-image,
.marketing-service-hero-illustration img {
  width: 100%;
  display: block;
  border-radius: 30px;
  border: 1px solid rgba(188, 207, 230, 0.95);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.marketing-service-hero-illustration-faq img {
  min-height: 320px;
  object-fit: cover;
}

.marketing-story-grid,
.marketing-service-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.marketing-story-card,
.marketing-service-visual-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.marketing-story-card strong,
.marketing-service-visual-card strong {
  color: var(--accent);
  font-size: 1.06rem;
}

.marketing-story-card p,
.marketing-service-visual-card p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.7;
}

.marketing-story-figure,
.marketing-service-figure {
  position: relative;
  min-height: 180px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(188, 207, 230, 0.88);
  background:
    radial-gradient(circle at top right, rgba(103, 205, 231, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(245, 250, 255, 0.98) 0%, rgba(232, 241, 250, 0.98) 100%);
}

.marketing-story-chip {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(188, 207, 230, 0.88);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}

.marketing-story-card-stack {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: grid;
  gap: 10px;
}

.marketing-story-card-stack span {
  display: block;
  width: 118px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(188, 207, 230, 0.82);
  box-shadow: 0 10px 16px rgba(35, 37, 79, 0.07);
}

.marketing-story-card-stack span:nth-child(2) {
  width: 92px;
}

.marketing-story-card-stack span:nth-child(3) {
  width: 138px;
}

.marketing-story-path {
  position: absolute;
  right: 18px;
  bottom: 22px;
  display: grid;
  gap: 10px;
}

.marketing-story-path span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(35, 37, 79, 0.96) 0%, rgba(103, 205, 231, 0.86) 100%);
  box-shadow: 0 8px 14px rgba(35, 37, 79, 0.12);
}

.marketing-story-path span:nth-child(2) {
  margin-left: -12px;
}

.marketing-story-path span:nth-child(3) {
  margin-left: -26px;
}

.marketing-story-people {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.marketing-story-people span {
  display: block;
  width: 56px;
  height: 92px;
  border-radius: 999px 999px 24px 24px;
  background: linear-gradient(180deg, rgba(35, 37, 79, 0.9) 0%, rgba(103, 205, 231, 0.78) 100%);
}

.marketing-story-people span:nth-child(2) {
  width: 72px;
  height: 118px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(230, 240, 251, 0.96) 100%);
  border: 1px solid rgba(188, 207, 230, 0.88);
}

.marketing-story-lines {
  position: absolute;
  inset: 0;
}

.marketing-story-lines span {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(103, 205, 231, 0.2), rgba(35, 37, 79, 0.34), rgba(103, 205, 231, 0.2));
}

.marketing-story-lines span:first-child {
  left: 18%;
  right: 18%;
  top: 42%;
}

.marketing-story-lines span:last-child {
  left: 12%;
  right: 12%;
  top: 58%;
}

.marketing-story-orbit {
  position: absolute;
  inset: 22px;
  border-radius: 999px;
  border: 2px dashed rgba(103, 205, 231, 0.48);
}

.marketing-story-orbit span {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(188, 207, 230, 0.9);
}

.marketing-story-orbit span:nth-child(1) {
  top: 8px;
  left: 24%;
}

.marketing-story-orbit span:nth-child(2) {
  right: 12px;
  top: 42%;
}

.marketing-story-orbit span:nth-child(3) {
  left: 18%;
  bottom: 10px;
}

.marketing-story-anchor {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  margin-left: -36px;
  margin-top: -36px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.98), rgba(103, 205, 231, 0.84) 62%, rgba(35, 37, 79, 0.92));
  box-shadow: 0 12px 24px rgba(35, 37, 79, 0.14);
}

.marketing-service-figure-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 0;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.marketing-service-figure-bars {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  display: flex;
  align-items: end;
  gap: 12px;
}

.marketing-service-figure-bars span {
  display: block;
  flex: 1;
  border-radius: 16px 16px 10px 10px;
  background: linear-gradient(180deg, rgba(35, 37, 79, 0.92) 0%, rgba(103, 205, 231, 0.82) 100%);
  box-shadow: 0 10px 18px rgba(35, 37, 79, 0.12);
}

.marketing-service-figure-bars span:nth-child(1) {
  height: 52px;
}

.marketing-service-figure-bars span:nth-child(2) {
  height: 96px;
}

.marketing-service-figure-bars span:nth-child(3) {
  height: 72px;
}

.marketing-service-figure-orbit {
  position: absolute;
  inset: 22px;
  border-radius: 26px;
  border: 2px dashed rgba(103, 205, 231, 0.44);
}

.marketing-service-figure-orbit span {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(188, 207, 230, 0.9);
}

.marketing-service-figure-orbit span:nth-child(1) {
  top: 16px;
  left: 16px;
}

.marketing-service-figure-orbit span:nth-child(2) {
  right: 18px;
  top: 50%;
  margin-top: -11px;
}

.marketing-service-figure-orbit span:nth-child(3) {
  left: 50%;
  bottom: 14px;
  margin-left: -11px;
}

.marketing-service-figure-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82px;
  height: 82px;
  margin-left: -41px;
  margin-top: -41px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(244, 248, 255, 0.98) 0%, rgba(228, 240, 251, 0.98) 100%);
  border: 1px solid rgba(188, 207, 230, 0.88);
  box-shadow: 0 12px 24px rgba(35, 37, 79, 0.12);
}

.marketing-service-figure-people {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  display: flex;
  justify-content: space-between;
}

.marketing-service-figure-people span {
  display: block;
  width: 66px;
  height: 104px;
  border-radius: 999px 999px 26px 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(221, 239, 247, 0.96) 100%);
  border: 1px solid rgba(188, 207, 230, 0.88);
}

.marketing-service-figure-people span:last-child {
  background: linear-gradient(180deg, rgba(35, 37, 79, 0.92) 0%, rgba(103, 205, 231, 0.76) 100%);
  border: none;
}

.marketing-service-figure-links {
  position: absolute;
  inset: 0;
}

.marketing-service-figure-links span {
  position: absolute;
  height: 2px;
  background: linear-gradient(90deg, rgba(103, 205, 231, 0.16), rgba(35, 37, 79, 0.34), rgba(103, 205, 231, 0.16));
}

.marketing-service-figure-links span:nth-child(1) {
  left: 18%;
  right: 18%;
  top: 34%;
}

.marketing-service-figure-links span:nth-child(2) {
  left: 22%;
  right: 22%;
  top: 48%;
}

.marketing-service-figure-links span:nth-child(3) {
  left: 14%;
  right: 14%;
  top: 62%;
}

.marketing-process-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(103, 205, 231, 0.16);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.marketing-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.marketing-form-panel {
  padding: 26px 26px 24px;
}

.marketing-form-panel .muted {
  margin-top: 10px;
}

.marketing-form-intro {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.marketing-form-promise {
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(216, 226, 238, 0.92);
  background: linear-gradient(180deg, rgba(248, 251, 255, 1) 0%, rgba(241, 246, 252, 1) 100%);
  color: var(--accent);
  font-weight: 600;
  line-height: 1.45;
}

.marketing-form-reassurance {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(226, 244, 249, 0.7);
  border: 1px solid rgba(103, 205, 231, 0.24);
  color: #16314f;
  font-weight: 600;
}

.marketing-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 20px;
}

.marketing-form-grid .field-full {
  grid-column: 1 / -1;
}

.marketing-form-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: linear-gradient(180deg, rgba(250, 252, 255, 1) 0%, rgba(244, 248, 253, 1) 100%);
}

.marketing-form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.marketing-form-section-head strong {
  display: block;
  color: var(--accent);
  font-size: 1.12rem;
}

.marketing-form-section-head p {
  margin: 4px 0 0;
  color: #4f5e76;
  line-height: 1.65;
}

.marketing-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(103, 205, 231, 0.16);
  color: var(--accent);
  font-weight: 700;
  flex: 0 0 32px;
}

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

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

.marketing-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

.marketing-dynamic-choice-head strong {
  display: block;
  color: var(--accent);
  font-size: 1rem;
}

.marketing-choice-hint,
.marketing-privacy-note {
  margin: 4px 0 0;
  color: #4f5e76;
  line-height: 1.65;
}

.marketing-privacy-note {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(244, 248, 253, 0.92);
  border: 1px solid rgba(216, 226, 238, 0.95);
  font-size: 0.94rem;
}

.marketing-choice-button,
.marketing-choice-pill {
  cursor: pointer;
  border: 1px solid rgba(188, 207, 230, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 254, 0.98) 100%);
  color: var(--accent);
  font: inherit;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
}

.marketing-choice-button {
  padding: 20px 18px;
  border-radius: 22px;
  text-align: left;
  font-weight: 600;
  line-height: 1.45;
}

.marketing-choice-card {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 124px;
}

.marketing-choice-card strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.3;
}

.marketing-choice-card span {
  color: #4f5e76;
  font-size: 0.98rem;
  line-height: 1.65;
}

.marketing-choice-pill {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
}

.marketing-choice-button:hover,
.marketing-choice-pill:hover,
.marketing-choice-button:focus-visible,
.marketing-choice-pill:focus-visible {
  border-color: rgba(35, 37, 79, 0.24);
  box-shadow: 0 10px 20px rgba(25, 28, 59, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.marketing-choice-button.is-active,
.marketing-choice-pill.is-active {
  background: linear-gradient(180deg, rgba(233, 246, 251, 1) 0%, rgba(223, 243, 249, 1) 100%);
  border-color: rgba(103, 205, 231, 0.38);
}

.marketing-form-panel .field {
  display: grid;
  gap: 8px;
}

.marketing-inline-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.marketing-inline-action {
  border: 0;
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.marketing-field-help {
  color: #56657b;
  font-size: 0.94rem;
  line-height: 1.55;
}

.marketing-form-panel .field span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
}

.marketing-form-panel input,
.marketing-form-panel textarea,
.marketing-form-panel select {
  min-height: 60px;
  font-size: 1.06rem;
  border-radius: 16px;
}

.marketing-form-panel textarea {
  min-height: 160px;
}

.marketing-form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}

.marketing-expectation-note {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.92);
}

.marketing-expectation-note strong {
  display: block;
  margin-bottom: 4px;
  color: #16314f;
}

.marketing-expectation-note p {
  margin: 0;
  color: #4d5d70;
  line-height: 1.6;
}

.marketing-submit-button {
  display: inline-flex;
  align-items: center;
  min-width: 260px;
  min-height: 58px;
  justify-content: center;
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.marketing-status {
  min-height: 24px;
  font-weight: 600;
  font-size: 0.98rem;
}

.marketing-status.success {
  color: #2f6f4c;
}

.marketing-status.error {
  color: #8d2133;
}

.marketing-support-panel {
  display: grid;
  gap: 16px;
}

.marketing-support-panel-main {
  align-content: start;
}

.marketing-support-card {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.marketing-support-card h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.marketing-support-subhead {
  margin: 18px 0 8px;
  color: var(--accent);
  font-size: 1rem;
}

.marketing-support-card p,
.marketing-support-card li {
  color: #4f5e76;
  line-height: 1.72;
  font-size: 1rem;
}

.marketing-support-card ul {
  margin: 0;
  padding-left: 18px;
}

.marketing-safety-note {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 245, 245, 0.9);
  border: 1px solid rgba(141, 33, 51, 0.14);
  color: #7a2432;
  font-weight: 600;
}

.marketing-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 4px 18px;
  color: #4f5e76;
  font-size: 0.98rem;
}

.marketing-footer a {
  color: var(--accent);
  text-decoration: none;
}

.marketing-footer a:hover {
  text-decoration: underline;
}

.marketing-faq-grid {
  display: grid;
  gap: 12px;
}

.marketing-faq-jump-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.marketing-faq-jump-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(247, 250, 255, 0.92);
  color: #16314f;
  text-decoration: none;
  font-weight: 600;
}

.marketing-faq-group + .marketing-faq-group {
  margin-top: 26px;
}

.marketing-faq-group-head {
  margin-bottom: 12px;
}

.marketing-faq-group-head h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  color: var(--accent);
}

.marketing-secondary-button {
  min-height: 40px;
}

.marketing-faq-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(216, 226, 238, 0.95);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.marketing-faq-item .details-summary {
  padding: 18px 18px;
  font-weight: 700;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.5;
}

.marketing-faq-item .details-summary::after {
  right: 18px;
}

.marketing-faq-answer {
  padding: 0 18px 18px;
}

.marketing-faq-answer p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.75;
  font-size: 1rem;
}

.marketing-page a:focus-visible,
.marketing-page button:focus-visible,
.marketing-page input:focus-visible,
.marketing-page textarea:focus-visible,
.marketing-page select:focus-visible,
.marketing-page summary:focus-visible {
  outline: 3px solid rgba(103, 205, 231, 0.8);
  outline-offset: 3px;
}

.workspace-sidebar .compact-panel:first-child {
  border-color: rgba(103, 205, 231, 0.4);
  box-shadow: 0 12px 24px rgba(25, 28, 59, 0.07);
}

.workspace-sidebar .compact-panel:first-child .details-summary {
  color: var(--accent);
}

.compact-intro {
  margin: 0 0 10px;
  font-size: 0.92rem;
}

.order-tracker-list {
  display: grid;
  gap: 10px;
}

.order-tracker-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-tracker-row {
  border: 1px solid rgba(30, 42, 91, 0.12);
  border-radius: 16px;
  padding: 10px;
  background: rgba(247, 250, 255, 0.9);
}

.order-tracker-header {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.9fr);
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.order-tracker-controls {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(140px, 0.8fr);
  gap: 10px;
  margin-bottom: 8px;
}

.order-tracker-label {
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.order-category-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(103, 205, 231, 0.14);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.order-status-select,
.order-completed-date,
.order-note-input {
  width: 100%;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .layout,
  .section-grid,
  .review-grid,
  .preview-grid,
  .analytics-grid,
  .analytics-grid.detail,
  .form-grid {
      grid-template-columns: 1fr;
    }

    .analytics-toolbar,
    .analytics-window-switch {
      align-items: stretch;
      justify-content: flex-start;
    }

    .case-summary-strip {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }

  .case-summary-strip .summary-cell:nth-child(1),
  .case-summary-strip .summary-cell:nth-child(2),
  .case-summary-strip .summary-cell:nth-child(3),
  .case-summary-strip .summary-cell:nth-child(4),
  .case-summary-strip .summary-cell:nth-child(5) {
    grid-column: span 1;
  }

  .detail-header {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .screen-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .athena-handoff-grid {
    grid-template-columns: 1fr;
  }

  .athena-handoff-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-jumpbar-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .queue-tools {
    background: transparent;
  }

  .inbox-strip {
    grid-template-columns: 1fr;
  }

  .screen.active {
    min-height: auto;
    height: auto;
  }

  .queue-panel,
  .detail-panel,
  .case-list,
  .dashboard-preview-panel {
    height: auto;
    overflow: visible;
  }

  .detail-topbar {
    background: transparent;
    border-bottom: none;
  }

  html,
  body {
    overflow: auto;
  }

  .shell,
  .main {
    height: auto;
    overflow: visible;
  }

  .dashboard-page .shell,
  .dashboard-page .main {
    height: 100vh;
    overflow: hidden;
  }

  .dashboard-page .screen.active {
    min-height: 0;
    height: 100%;
    overflow: hidden;
  }

  .dashboard-page #queueScreen.screen.active {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .dashboard-page .layout {
    height: 100%;
    min-height: 0;
    align-items: stretch;
    overflow: hidden;
  }

  .dashboard-page .queue-panel,
  .dashboard-page .detail-panel {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .dashboard-page .dashboard-preview-panel {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }

  .dashboard-page .case-list,
  .dashboard-page .website-lead-list {
    min-height: 0;
    overflow-y: auto;
  }

  .workspace-header,
  .workspace-header-main,
  .workspace-layout,
  .workspace-editors,
  .workspace-summary {
    flex-direction: column;
  }

  .workspace-sidebar,
  .workspace-editors {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .order-tracker-header {
    grid-template-columns: 1fr;
  }

  .order-tracker-controls {
    grid-template-columns: 1fr;
  }

  .workspace-textarea {
    min-height: 480px;
    height: 480px;
  }

  .marketing-hero,
  .marketing-bottom-grid,
  .marketing-proof-grid,
  .marketing-process-grid,
  .marketing-audience-grid,
  .marketing-summary-grid,
  .marketing-form-grid,
  .marketing-topbar,
  .marketing-section-header,
  .marketing-footer,
  .marketing-visual-break-grid,
  .marketing-service-hero-split {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-choice-grid {
    grid-template-columns: 1fr;
  }

  .marketing-role-grid {
    grid-template-columns: 1fr;
  }

  .marketing-summary-grid {
    grid-template-columns: 1fr;
  }

  .website-lead-top,
  .admin-inquiry-top {
    flex-direction: column;
  }

  .lead-alert-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .marketing-page {
    font-size: 17px;
  }

  .marketing-hero,
  .marketing-bottom-grid,
  .marketing-proof-grid,
  .marketing-process-grid,
  .marketing-audience-grid,
  .marketing-section-header {
    grid-template-columns: 1fr;
  }

  .marketing-entry-grid,
  .marketing-referral-grid,
  .marketing-referral-steps,
  .marketing-referral-checklist,
  .marketing-summary-grid,
  .marketing-story-grid,
  .marketing-service-visual-grid,
  .marketing-visual-break-grid,
  .marketing-service-hero-split,
  .marketing-support-summary-grid,
  .marketing-support-mini-flow {
    grid-template-columns: 1fr;
  }

  .marketing-hero-copy,
  .marketing-hero-visual,
  .marketing-section,
  .marketing-form-panel,
  .marketing-support-card {
    padding: 22px 20px;
    border-radius: 24px;
  }

  .marketing-brand-lockup {
    flex-direction: column;
    align-items: flex-start;
  }

  .marketing-brand-image {
    width: 148px;
  }

  .marketing-topbar {
    top: 10px;
    gap: 10px;
  }

  .marketing-cta-row,
  .marketing-form-actions,
  .marketing-nav {
    width: 100%;
  }

  .marketing-form-actions > *,
  .marketing-nav > * {
    width: 100%;
  }

  .marketing-top-cta {
    min-width: 0;
  }

  .marketing-hero-actions,
  .marketing-service-hero-actions,
  .marketing-entry-actions,
  .marketing-referral-card-actions {
    width: 100%;
    display: grid;
    gap: 10px;
  }

  .marketing-hero-actions > *,
  .marketing-service-hero-actions > *,
  .marketing-entry-actions > *,
  .marketing-referral-card-actions > * {
    width: 100%;
  }

  .marketing-section-header p,
  .marketing-lead,
  .marketing-sublead {
    max-width: none;
  }

  .marketing-visual-break-image,
  .marketing-service-hero-illustration img,
  .marketing-referral-hero-art img {
    min-height: 220px;
    border-radius: 22px;
  }

  .marketing-form-actions {
    gap: 10px;
  }

  .marketing-expectation-note,
  .marketing-form-promise,
  .marketing-form-reassurance {
    font-size: 0.96rem;
  }
}

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

.quick-referral-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-referral-preset {
  border: 1px solid rgba(188, 207, 230, 0.95);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 254, 0.98) 100%);
  color: var(--accent);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 34px;
  padding: 6px 12px;
  cursor: pointer;
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
}

.quick-referral-preset:hover,
.quick-referral-preset:focus-visible {
  border-color: rgba(35, 37, 79, 0.24);
  box-shadow: 0 10px 20px rgba(25, 28, 59, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.quick-referral-preset.is-active {
  background: linear-gradient(180deg, rgba(233, 246, 251, 1) 0%, rgba(223, 243, 249, 1) 100%);
  border-color: rgba(103, 205, 231, 0.38);
}

.quick-referral-form .field {
  display: grid;
  gap: 6px;
}

.quick-referral-form .field span {
  font-size: 0.82rem;
  color: #5c6878;
}

.quick-referral-form input,
.quick-referral-form textarea,
.quick-referral-form select {
  width: 100%;
}

.quick-referral-status {
  margin: 0;
  font-size: 0.82rem;
}

.marketing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.marketing-entry-section {
  display: grid;
  gap: 18px;
}

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

.marketing-entry-card {
  display: grid;
  gap: 12px;
}

.marketing-entry-label {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.marketing-entry-card p {
  margin: 0;
}

.marketing-entry-actions,
.marketing-referral-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.marketing-referral-section {
  display: grid;
  gap: 20px;
}

.marketing-referral-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 20px;
  align-items: stretch;
}

.marketing-referral-hero-copy {
  display: grid;
  align-content: center;
}

.marketing-referral-hero-art {
  display: grid;
}

.marketing-referral-hero-art img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 30px;
  border: 1px solid rgba(188, 207, 230, 0.95);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.marketing-referral-card {
  display: grid;
  gap: 12px;
}

.marketing-contact-value {
  margin: 0;
  font-size: 1.02rem;
  color: #16314f;
}

.marketing-contact-value a {
  color: inherit;
}

.marketing-referral-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.marketing-referral-checklist strong {
  display: block;
  margin-bottom: 6px;
  color: #16314f;
}

.marketing-referral-checklist p {
  margin: 0;
  color: #4d5d70;
  line-height: 1.7;
}

.marketing-referral-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.marketing-referral-steps > div {
  padding: 18px 20px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.marketing-referral-steps strong {
  display: block;
  margin-bottom: 6px;
  color: #16314f;
}

.marketing-referral-steps p {
  margin: 0;
  color: #4d5d70;
  line-height: 1.7;
}

.marketing-support-intro {
  margin: 0;
  color: #4f5e76;
  line-height: 1.75;
}

.marketing-support-summary-grid,
.marketing-support-mini-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.marketing-support-summary-card,
.marketing-support-mini-flow > div {
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(216, 226, 238, 0.95);
  background: rgba(255, 255, 255, 0.82);
}

.marketing-support-summary-card strong,
.marketing-support-mini-flow strong {
  display: block;
  margin-bottom: 5px;
  color: var(--accent);
}

.marketing-support-summary-card p,
.marketing-support-mini-flow p {
  margin: 0;
  color: #4f5e76;
  line-height: 1.68;
}

.marketing-inline-link.is-disabled {
  pointer-events: none;
  opacity: 0.72;
  text-decoration: none;
}

.workspace-source-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.workspace-source-summary-item {
  padding: 12px 14px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.9);
}

.workspace-source-summary-item strong {
  display: block;
  margin-top: 4px;
  color: #16314f;
}

.athena-integration-status {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(22, 49, 79, 0.12);
  border-radius: 8px;
  background: rgba(246, 248, 251, 0.9);
  margin-bottom: 12px;
}

.athena-integration-status p {
  margin: 0;
}

.athena-status-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 980px) {
  .marketing-referral-grid,
  .marketing-entry-grid,
  .marketing-referral-steps,
  .marketing-referral-checklist,
  .workspace-source-summary,
  .marketing-referral-hero {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .marketing-page {
    scroll-behavior: auto;
  }

  .marketing-choice-button,
  .marketing-choice-pill,
  .quick-referral-preset {
    transition: none;
  }
}
