:root {
  --app-bg: #f3f4f8;
  --panel: #ffffff;
  --panel-alt: #f8f9fc;
  --line: #d9dde8;
  --line-strong: #c6cdda;
  --text: #182033;
  --muted: #6d7587;
  --blue: #1f56d8;
  --blue-strong: #1745b7;
  --green: #4ea56b;
  --green-bg: #dcf5dd;
  --shadow: 0 18px 40px rgba(25, 34, 55, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --sans: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", "Menlo", monospace;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: auto;
  background:
    radial-gradient(circle at top left, rgba(127, 164, 245, 0.16), transparent 24%),
    linear-gradient(180deg, #eef1f7, var(--app-bg));
  color: var(--text);
  font-family: var(--sans);
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto auto auto minmax(720px, 1fr);
  gap: 14px;
  padding: 14px;
}

.workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.title-cluster,
.header-actions,
.sheet-toolbar,
.toolbar-group,
.field-row,
.card-head,
.column-card-top,
.column-card-actions,
.inspector-tabs,
.detail-enrichment-top,
.snapshot-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.title-cluster {
  gap: 14px;
}

.title-cluster > div {
  min-width: 0;
}

#app-header-title,
#sheet-title-chip {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app-header-title {
  max-width: min(44vw, 520px);
}

#sheet-title-chip {
  max-width: min(42vw, 360px);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #1d2638, #354158);
  color: white;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.header-kicker,
.card-kicker,
.header-label,
.stat-label,
.cell-subtle,
.kv-key {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.cell-subtle.is-error {
  color: #a2493e;
}

.hero-copy,
.marketing-footnote {
  color: var(--muted);
  line-height: 1.5;
}

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

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.header-primary,
.header-secondary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-primary {
  flex: 1 1 auto;
  gap: 20px;
}

.header-secondary {
  flex: 0 0 auto;
  margin-left: auto;
  gap: 18px;
  justify-content: flex-end;
}

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

.header-brand-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.header-brand-link:hover .brand-mark {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(8, 10, 14, 0.18);
}

.header-brand-link:focus-visible {
  outline: 2px solid rgba(31, 86, 216, 0.34);
  outline-offset: 4px;
  border-radius: 16px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(24, 32, 51, 0.58);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.01em;
  transition: color 160ms ease;
}

.header-nav-link:hover {
  color: var(--text);
}

.header-nav-link:focus-visible,
.header-account-button:focus-visible {
  outline: 2px solid rgba(31, 86, 216, 0.34);
  outline-offset: 3px;
}

.header-nav-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  opacity: 0.8;
}

.header-nav-icon svg {
  width: 16px;
  height: 16px;
}

.header-account {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.status-pill.header-credit-pill {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(24, 32, 51, 0.08);
  border-radius: 999px;
  background: rgba(24, 32, 51, 0.04);
  color: var(--text);
  box-shadow: none;
  white-space: nowrap;
  flex: 0 0 auto;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease;
}

.status-pill.header-credit-pill:hover {
  border-color: rgba(24, 32, 51, 0.12);
  background: rgba(24, 32, 51, 0.055);
}

.status-pill.header-credit-pill:focus-visible {
  outline: none;
  border-color: rgba(24, 32, 51, 0.2);
  box-shadow: 0 0 0 3px rgba(31, 86, 216, 0.16);
}

.status-pill.header-credit-pill.is-credit {
  border-color: rgba(24, 32, 51, 0.08);
  background: rgba(24, 32, 51, 0.04);
  color: var(--text);
}

.header-credit-value {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}

.header-credit-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d6630;
}

.header-credit-icon svg {
  width: 15px;
  height: 15px;
  overflow: visible;
}

.header-credit-icon .credit-coin-back,
.header-credit-icon .credit-coin-front {
  fill: rgba(255, 255, 255, 0.92);
  stroke: currentColor;
  stroke-width: 1.05;
}

.header-credit-icon .credit-coin-detail {
  stroke: currentColor;
  stroke-width: 0.95;
  stroke-linecap: round;
}

.header-account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  min-width: 88px;
  max-width: min(100%, 240px);
  padding: 0 16px;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: none;
}

.header-account-button:hover {
  border-color: rgba(24, 32, 51, 0.2);
  background: rgba(255, 255, 255, 0.82);
}

.header-account-button.is-avatar {
  gap: 6px;
  min-width: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
}

.header-account-button.is-avatar:hover {
  background: transparent;
}

.header-account-avatar-shell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-account-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(24, 32, 51, 0.12);
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.92);
  color: rgba(244, 247, 251, 0.96);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.header-account-chevron {
  width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(24, 32, 51, 0.46);
}

.header-account-chevron svg {
  width: 10px;
  height: 10px;
}

.auth-modal {
  display: grid;
  gap: 14px;
}

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

button {
  border: 0;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.primary-button,
.ghost-button,
.status-pill,
.toolbar-chip,
.type-badge,
.citation-pill {
  border-radius: 12px;
  padding: 10px 14px;
}

.primary-button {
  background: linear-gradient(180deg, #2f67eb, var(--blue));
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 8px 18px rgba(31, 86, 216, 0.22);
}

.primary-button:hover {
  background: linear-gradient(180deg, #255ee3, var(--blue-strong));
}

.ghost-button {
  background: var(--panel-alt);
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost-button:hover {
  background: #f0f3fa;
}

.accent-button {
  background: rgba(127, 164, 245, 0.18);
  color: #355ab0;
}

.upload-button {
  position: relative;
  overflow: hidden;
}

.upload-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.status-pill {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
}

.status-pill.is-good {
  border-color: #c9eac7;
  background: var(--green-bg);
  color: #2f7d49;
}

.status-pill.cost-pill.has-spend {
  border-color: rgba(127, 164, 245, 0.32);
  background: rgba(127, 164, 245, 0.12);
  color: #3559ad;
}

.status-pill.muted {
  opacity: 0.92;
}

.trial-pill.has-limit {
  border-color: rgba(127, 164, 245, 0.32);
  background: rgba(127, 164, 245, 0.12);
  color: #3559ad;
}

.workspace-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 14px;
}

.discovery-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(320px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

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

.prompt-shell {
  display: block;
}

.prompt-shell input {
  height: 46px;
}

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

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

.marketing-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.marketing-card-wide {
  grid-column: span 2;
}

.marketing-list,
.plan-list,
.modal-step-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
  color: var(--text);
  line-height: 1.45;
}

.marketing-list.ordered,
.modal-step-list {
  padding-left: 22px;
}

.prompt-library,
.plan-preview,
.modal-plan-grid,
.usage-grid {
  display: grid;
  gap: 12px;
}

.prompt-library {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.plan-preview,
.modal-plan-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.pricing-interval-switcher {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  background: #f3f5fa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  margin: 0 0 14px;
}

.pricing-interval-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5c667a;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.pricing-interval-button:hover {
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.pricing-interval-button.is-active {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow:
    0 8px 18px rgba(15, 23, 42, 0.08),
    inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.pricing-interval-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(47, 103, 235, 0.1);
  color: #2f67eb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.prompt-card,
.plan-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-alt);
}

.prompt-card p,
.plan-card p {
  color: var(--muted);
  line-height: 1.45;
}

.prompt-card {
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.prompt-card-title,
.plan-card-title {
  font-size: 1rem;
  font-weight: 600;
}

.recipe-signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.recipe-signal {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

.plan-card-price {
  font-size: 1.45rem;
  font-weight: 700;
}

.plan-card-price-note {
  margin-top: -4px;
  color: var(--muted);
  font-size: 0.84rem;
}

.plan-card.is-featured {
  border-color: rgba(127, 164, 245, 0.45);
  background: linear-gradient(180deg, rgba(127, 164, 245, 0.12), rgba(255, 255, 255, 0.92));
}

.plan-card.is-selected {
  box-shadow: inset 0 0 0 1px rgba(127, 164, 245, 0.38);
}

.pricing-current-plan {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-alt);
  margin-bottom: 12px;
}

.pricing-current-plan-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pricing-current-plan-copy {
  display: grid;
  gap: 8px;
}

.pricing-current-plan-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pricing-current-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.pricing-current-plan-status,
.pricing-current-plan-metric {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-size: 0.82rem;
}

.pricing-current-plan-text {
  margin: 0;
}

.pricing-current-plan-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-promo-field {
  margin-bottom: 6px;
}

.pricing-promo-note {
  margin: -2px 0 12px;
}

.pricing-modal-shell {
  display: grid;
  gap: 22px;
}

.pricing-status-stack {
  display: grid;
  gap: 10px;
}

.pricing-status-note {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #f5f6f8;
  color: #4b5563;
  line-height: 1.5;
}

.pricing-status-note.is-error {
  border-color: rgba(185, 28, 28, 0.12);
  background: #fff3f2;
  color: #8f3027;
}

.pricing-status-note.is-warning {
  border-color: rgba(180, 83, 9, 0.14);
  background: #fffbeb;
  color: #92400e;
}

.pricing-status-note.is-success {
  border-color: rgba(22, 101, 52, 0.14);
  background: #eefaf2;
  color: #166534;
}

.pricing-modal-shell .pricing-current-plan {
  gap: 16px;
  margin-bottom: 0;
  padding: 20px 22px;
  border-radius: 18px;
  background: #fbfcfd;
  border-color: rgba(148, 163, 184, 0.24);
}

.pricing-modal-shell .pricing-current-plan-copy {
  gap: 10px;
}

.pricing-current-plan-label {
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
}

.pricing-modal-shell .pricing-current-plan-name-row {
  gap: 10px;
}

.pricing-modal-shell .pricing-current-plan-name {
  font-size: 1.1rem;
}

.pricing-modal-shell .pricing-current-plan-status {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
  color: #6b7280;
  font-size: 0.84rem;
  font-weight: 600;
}

.pricing-modal-shell .pricing-current-plan-text {
  margin: 0;
  color: #4b5563;
  max-width: 56ch;
}

.pricing-current-plan-manage {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #111827;
  font: inherit;
  font-weight: 600;
}

.pricing-current-plan-manage:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.pricing-modal-shell .pricing-current-plan-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.pricing-modal-shell .pricing-current-plan-metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.pricing-current-plan-metric-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.pricing-current-plan-metric-label {
  color: #111827;
  font-size: 0.88rem;
  font-weight: 600;
}

.pricing-current-plan-metric-value {
  color: #6b7280;
  font-size: 0.84rem;
}

.pricing-current-plan-metric-track {
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
}

.pricing-current-plan-metric-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #1d4ed8;
}

.pricing-current-plan-metric[data-metric-kind="rows"] .pricing-current-plan-metric-fill {
  background: #334155;
}

.pricing-current-plan-metric[data-metric-kind="fills"] .pricing-current-plan-metric-fill,
.pricing-current-plan-metric-fill.is-unlimited {
  background: #0f766e;
}

.pricing-modal-shell .pricing-interval-row {
  display: flex;
  justify-content: center;
  padding-top: 2px;
}

.pricing-modal-shell .pricing-interval-switcher {
  width: min(360px, 100%);
  margin: 0 auto;
  padding: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  border-color: rgba(148, 163, 184, 0.18);
  background: #eceff3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.pricing-modal-shell .pricing-interval-button {
  min-height: 44px;
  width: 100%;
  padding: 0 16px;
  color: #4b5563;
}

.pricing-modal-shell .pricing-interval-button:hover {
  background: rgba(255, 255, 255, 0.72);
}

.pricing-modal-shell .pricing-interval-button.is-active {
  background: #ffffff;
  color: #111827;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.08),
    0 8px 18px rgba(15, 23, 42, 0.08);
}

.pricing-modal-shell .pricing-interval-badge {
  background: #e6f6ec;
  color: #166534;
}

.pricing-modal-shell .modal-plan-grid {
  gap: 18px;
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-modal-shell .plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.pricing-modal-shell .plan-card.is-featured {
  border-top: 3px solid #1d4ed8;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.pricing-modal-shell .plan-card.is-selected {
  border-color: rgba(29, 78, 216, 0.28);
}

.pricing-modal-shell .plan-card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 5px 10px;
  border-radius: 999px;
  background: #111827;
  color: #f9fafb;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.pricing-modal-shell .plan-card-title {
  font-size: 1.04rem;
  font-weight: 700;
  color: #111827;
}

.pricing-modal-shell .plan-card-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.08em;
  max-width: 100%;
  color: #111827;
}

.pricing-modal-shell .plan-card-price-amount {
  font-size: clamp(2.15rem, 3.6vw, 3rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: -0.06em;
  color: #111827;
}

.pricing-modal-shell .plan-card-price-unit {
  font-size: clamp(1.45rem, 2.35vw, 2.1rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #111827;
}

.pricing-modal-shell .plan-card-price-note {
  margin-top: -6px;
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.pricing-modal-shell .plan-card-description {
  margin: 0;
  color: #4b5563;
  line-height: 1.6;
}

.pricing-modal-shell .plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  flex: 1 1 auto;
}

.pricing-modal-shell .plan-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: #111827;
  line-height: 1.6;
}

.pricing-modal-shell .plan-list-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  color: #1d4ed8;
}

.pricing-modal-shell .plan-list-icon svg {
  width: 16px;
  height: 16px;
}

.pricing-modal-shell .plan-card-actions {
  margin-top: auto;
  padding-top: 2px;
}

.pricing-modal-shell .plan-card-actions .primary-button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  min-height: 46px;
  border-radius: 10px;
  background: #111827;
  box-shadow: none;
}

.pricing-modal-shell .plan-card-actions .primary-button:hover:not(:disabled) {
  background: #0b1220;
}

.pricing-modal-shell .plan-card-actions .primary-button:disabled {
  background: #d1d5db;
  color: #6b7280;
  opacity: 1;
}

.pricing-plan-link,
.pricing-promo-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  font: inherit;
  font-weight: 600;
}

.pricing-plan-link:hover,
.pricing-promo-toggle:hover {
  color: #111827;
  text-decoration: underline;
}

.pricing-current-plan-manage:focus-visible,
.pricing-plan-link:focus-visible,
.pricing-promo-toggle:focus-visible,
.modal-close-button:focus-visible {
  outline: 2px solid #1d4ed8;
  outline-offset: 2px;
}

.pricing-modal-shell .pricing-promo {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.pricing-modal-shell .pricing-promo-field {
  width: min(280px, 100%);
  margin: 0;
}

.pricing-modal-shell .pricing-promo-field span {
  color: #6b7280;
}

@media (max-width: 720px) {
  .pricing-modal-shell {
    gap: 18px;
  }

  .pricing-modal-shell .pricing-current-plan {
    padding: 18px;
  }

  .pricing-modal-shell .pricing-current-plan-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pricing-modal-shell .pricing-current-plan-metrics {
    grid-template-columns: 1fr;
  }

  .pricing-modal-shell .modal-plan-grid {
    grid-template-columns: 1fr;
  }

  .pricing-modal-shell .plan-card-price-amount {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .pricing-modal-shell .plan-card-price-unit {
    font-size: clamp(1.35rem, 5vw, 1.8rem);
  }
}

.prompt-card-actions,
.plan-card-actions,
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

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

.sheet-pane,
.inspector {
  min-width: 0;
  min-height: 0;
  display: grid;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.sheet-pane {
  grid-template-rows: auto minmax(0, 1fr);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.sheet-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: flex-start;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.toolbar-chip {
  background: #eef2fb;
  color: #3858a2;
  font-size: 0.84rem;
}

.toolbar-actions {
  flex: 0 1 auto;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.toolbar-group {
  min-width: 0;
}

.toolbar-group--workspace {
  display: grid;
  gap: 4px;
  align-items: start;
}

.toolbar-group:first-child {
  flex: 1 1 320px;
}

.toolbar-summary-line {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: wrap;
}

.toolbar-button {
  padding: 9px 12px;
}

.toolbar-summary {
  color: var(--muted);
  font-size: 0.88rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toolbar-row-economics {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.toolbar-economics-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.toolbar-economics-line strong {
  color: var(--text);
  font-weight: 600;
}

.toolbar-economics-line--internal {
  color: #6d675c;
}

.sheet-surface {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(250, 251, 254, 0.8), rgba(245, 247, 252, 0.66));
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.sheet-scroll {
  height: 100%;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

.landing-onboarding-overlay {
  position: sticky;
  top: 0;
  z-index: 6;
  margin-bottom: 0;
  background: var(--panel);
}

.landing-onboarding-overlay > * {
  pointer-events: auto;
}

.landing-onboarding-window,
.landing-onboarding-launcher {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fcfaf6);
  box-shadow: 0 1px 0 rgba(24, 32, 51, 0.03);
  backdrop-filter: none;
}

.landing-onboarding-window {
  display: grid;
  gap: 14px;
  padding: 15px 16px;
  border-radius: 16px;
  animation: landingOnboardingFloatIn 180ms ease-out;
}

.landing-onboarding-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.landing-onboarding-head--trial {
  margin: 0;
}

.landing-onboarding-kicker,
.landing-onboarding-launcher-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7f8fb;
  color: #5a677c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
}

.landing-onboarding-close {
  margin-left: auto;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
}

.landing-onboarding-close:hover,
.landing-onboarding-close:focus-visible {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--text);
}

.landing-onboarding-copy {
  display: grid;
  gap: 6px;
}

.landing-onboarding-layout {
  display: grid;
  gap: 16px;
  align-items: start;
}

.landing-onboarding-layout--trial {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.landing-onboarding-layout--enrichment {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
}

.landing-onboarding-copy strong {
  color: var(--text);
  font-size: 1.12rem;
  line-height: 1.14;
  letter-spacing: -0.02em;
}

.landing-onboarding-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.landing-onboarding-copy--trial {
  gap: 8px;
}

.landing-onboarding-copy--trial p {
  max-width: 62ch;
}

.landing-onboarding-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.landing-onboarding-command-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.landing-onboarding-command-copy strong {
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.landing-onboarding-command-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 68ch;
}

.landing-onboarding-command-actions {
  display: grid;
  justify-items: end;
  gap: 6px;
  flex-shrink: 0;
}

.landing-onboarding-cta,
.landing-onboarding-side {
  display: grid;
  gap: 12px;
}

.landing-onboarding-cta {
  align-content: center;
  justify-items: stretch;
}

.landing-onboarding-meta {
  margin: 0;
  color: #5e687b;
  font-size: 0.88rem;
  line-height: 1.4;
}

.landing-onboarding-meta--trial {
  font-size: 0.76rem;
  text-align: right;
}

.landing-onboarding-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-onboarding-benefit {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #4c586d;
  font-size: 0.8rem;
  font-weight: 600;
}

.landing-onboarding-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-onboarding-chip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: #425066;
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.landing-onboarding-chip:hover:not(:disabled),
.landing-onboarding-chip:focus-visible {
  border-color: rgba(56, 88, 162, 0.34);
  background: #f3f6fd;
  color: #23386f;
  transform: translateY(-1px);
}

.landing-onboarding-chip.is-active {
  border-color: rgba(56, 88, 162, 0.42);
  background: #eef2fb;
  color: #23386f;
}

.landing-onboarding-form {
  display: grid;
  gap: 10px;
}

.landing-onboarding-side .landing-onboarding-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.landing-onboarding-field {
  display: grid;
  gap: 6px;
}

.landing-onboarding-field span {
  color: #5b6678;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.landing-onboarding-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
}

.landing-onboarding-input:focus {
  border-color: rgba(56, 88, 162, 0.52);
  box-shadow: 0 0 0 4px rgba(56, 88, 162, 0.12);
  outline: none;
}

.landing-onboarding-submit {
  width: 100%;
  min-height: 48px;
  justify-content: center;
}

.landing-onboarding-submit--trial {
  width: auto;
  min-width: 148px;
  min-height: 36px;
  padding-inline: 18px;
  border-radius: 8px;
  box-shadow: none;
}

.landing-onboarding-window--trial {
  gap: 0;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #ebe6dd;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.landing-onboarding-launcher {
  display: grid;
  gap: 4px;
  justify-items: start;
  width: min(240px, 100%);
  padding: 14px 16px;
  border-radius: 18px;
  animation: landingOnboardingFloatIn 180ms ease-out;
}

.landing-onboarding-launcher strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.2;
}

@keyframes landingOnboardingFloatIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }

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

@media (max-width: 900px) {
  .landing-onboarding-overlay {
    top: 0;
    margin-bottom: 0;
  }

  .landing-onboarding-window {
    padding: 16px;
    border-radius: 14px;
  }

  .landing-onboarding-window--trial {
    padding: 12px 14px;
    border-radius: 0;
  }

  .landing-onboarding-layout--trial,
  .landing-onboarding-layout--enrichment,
  .landing-onboarding-side .landing-onboarding-form {
    grid-template-columns: 1fr;
  }

  .landing-onboarding-command {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .landing-onboarding-command-actions {
    justify-items: stretch;
  }

  .landing-onboarding-meta--trial {
    text-align: left;
  }

  .landing-onboarding-copy strong {
    font-size: 1.16rem;
  }

  .landing-onboarding-submit--trial {
    min-width: 0;
  }
}

.sheet-grid {
  width: max-content;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 100%;
}

.sheet-grid th,
.sheet-grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  background: white;
}

.sheet-grid thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8f9fd;
}

.row-number-head,
.row-number {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 52px;
  min-width: 52px;
  text-align: center;
  background: #f6f8fc;
}

.sheet-row.is-selected td,
.sheet-row.is-selected .row-number {
  background: #f4f8ff;
}

.sheet-row:focus-within td,
.sheet-row:focus-within .row-number {
  background: #f4f8ff;
}

.sheet-header {
  min-width: 180px;
}

.sheet-header.is-enrichment .header-meta {
  color: #3358ab;
}

.header-label {
  margin-top: 4px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 600;
}

.sheet-cell {
  min-width: 180px;
}

.sheet-header-editor,
.sheet-editor {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  background: transparent;
  color: var(--text);
  min-height: 34px;
}

.sheet-header-editor {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.94rem;
}

.sheet-header-editor:focus,
.sheet-editor:focus {
  outline: none;
  border-color: #99b6f7;
  background: white;
  box-shadow: 0 0 0 3px rgba(127, 164, 245, 0.18);
}

.entity-pill {
  display: inline-flex;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(127, 164, 245, 0.18);
  color: #3659a8;
  font-size: 0.72rem;
}

.sheet-cell.is-entity-cell .cell-value {
  font-weight: 600;
}

.sheet-cell.is-input-cell {
  padding: 6px;
}

.sheet-cell.is-input-cell.is-entity-cell .sheet-editor {
  font-weight: 600;
}

.entity-editor-wrap,
.cell-media-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.entity-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #edf1f7;
  color: #5f6676;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  overflow: hidden;
  position: relative;
}

.cell-media-wrap .cell-value,
.cell-media-wrap .sheet-editor {
  min-width: 0;
}

.cell-media-wrap.is-inline-media-wrap {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.cell-media-wrap.is-inline-media-wrap .cell-value,
.cell-media-wrap.is-inline-media-wrap .sheet-editor {
  width: 100%;
}

.entity-avatar.is-flag {
  background: rgba(245, 247, 251, 0.92);
  font-size: 1rem;
}

.entity-avatar.is-organization,
.entity-avatar.is-logo {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 0 0 1px rgba(208, 214, 225, 0.88);
}

.entity-avatar.is-person,
.entity-avatar.is-photo {
  background: #edf1f7;
}

.entity-avatar.is-graphic .entity-avatar-fallback {
  position: relative;
  z-index: 0;
}

.entity-avatar-image {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.entity-avatar.is-logo .entity-avatar-image {
  inset: 3px;
  border-radius: 8px;
  background-size: contain;
}

.entity-avatar.is-photo .entity-avatar-image {
  background-size: cover;
}

.cell-inline-media-shell {
  display: block;
  width: min(168px, 100%);
  max-width: 100%;
  flex-shrink: 0;
}

.cell-inline-media {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 132px;
  border: 1px solid rgba(203, 210, 223, 0.9);
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.cell-inline-media.is-image {
  object-fit: contain;
}

.cell-inline-media.is-video {
  background: #0f141f;
}

.entity-editor-input {
  flex: 1;
}

.sheet-cell.is-enrichment-cell {
  background: #fcfcfe;
}

.sheet-cell.is-enrichment-cell.is-filled .cell-value {
  color: var(--text);
}

.sheet-cell.is-enrichment-cell.is-empty .cell-value,
.empty-card,
.detail-copy {
  color: var(--muted);
}

.summary-copy {
  color: var(--text);
  line-height: 1.5;
}

.summary-copy.is-error {
  color: #9f3a2d;
}

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

.summary-mini-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

.summary-mini-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
}

.summary-mini-card strong {
  display: block;
  margin-top: 4px;
}

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

.summary-link {
  color: #3559ad;
  text-decoration: none;
  word-break: break-word;
}

.summary-link:hover {
  text-decoration: underline;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
}

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

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 32, 51, 0.4);
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 30px 70px rgba(15, 22, 39, 0.24);
}

.modal-root-account-settings .modal-card {
  width: min(680px, 100%);
  padding: 24px;
  gap: 20px;
}

.modal-head {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: flex-start;
  padding-right: 44px;
  min-height: 36px;
}

.modal-close-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  color: #6b7280;
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
}

.modal-close-button:hover {
  background: #f3f4f6;
  color: #111827;
}

.modal-close-button span {
  display: block;
  transform: translateY(-1px);
}

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

.modal-copy {
  color: var(--text);
  line-height: 1.55;
}

.modal-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.banner-note {
  padding: 12px 14px;
  border: 1px solid rgba(127, 164, 245, 0.28);
  border-radius: 14px;
  background: rgba(127, 164, 245, 0.12);
  color: #2b4686;
  line-height: 1.5;
}

.account-settings-modal {
  width: min(100%, 580px);
  display: grid;
  gap: 24px;
}

.account-settings-identity,
.account-settings-section {
  display: grid;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 251, 0.92));
}

.account-settings-identity {
  gap: 6px;
  background: linear-gradient(180deg, rgba(248, 250, 253, 0.98), rgba(241, 245, 250, 0.98));
}

.account-settings-identity-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.account-settings-identity-email,
.account-settings-section-copy,
.account-settings-hint {
  margin: 0;
}

.account-settings-identity-email {
  color: color-mix(in srgb, var(--text) 80%, var(--muted) 20%);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.account-settings-section-head {
  display: grid;
  gap: 6px;
}

.account-settings-section-head h3 {
  margin: 0;
}

.account-settings-section-copy {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.account-settings-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.account-settings-link-grid .ghost-button {
  flex: 1 1 180px;
  justify-content: center;
  background: #ffffff;
}

.account-settings-field {
  gap: 10px;
}

.account-settings-label {
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
}

.account-settings-field input {
  min-height: 44px;
}

.account-settings-hint {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.account-settings-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
  border-top: 1px solid var(--line);
}

.account-settings-signout {
  margin-right: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9a4b50;
  font: inherit;
  font-weight: 600;
}

.account-settings-signout:hover {
  background: transparent;
  color: #7f3940;
}

@media (max-width: 640px) {
  .modal-root-account-settings .modal-card {
    padding: 20px;
    border-radius: 20px;
  }

  .account-settings-modal {
    width: 100%;
    gap: 20px;
  }

  .account-settings-identity,
  .account-settings-section {
    padding: 18px;
  }

  .account-settings-footer {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .account-settings-footer .primary-button {
    width: 100%;
  }

  .account-settings-signout {
    margin-right: 0;
    align-self: flex-start;
  }
}

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

.detail-issue {
  padding: 10px 12px;
  border: 1px solid rgba(162, 73, 62, 0.18);
  border-radius: 12px;
  background: rgba(162, 73, 62, 0.06);
  color: #8e3f36;
  line-height: 1.45;
}

.cost-summary,
.cost-breakdown-list {
  display: grid;
  gap: 12px;
}

.cost-meta-row,
.cost-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cost-meta-row {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.cost-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

.cost-line span {
  color: var(--muted);
  font-size: 0.84rem;
}

.cell-value {
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.cell-subtle {
  margin-top: 8px;
}

.placeholder-copy {
  color: var(--muted);
  text-align: center;
  padding: 22px 10px;
}

.sheet-footer {
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.sheet-footer-button {
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px 14px;
  background: #fafbfe;
  color: #3559ad;
}

.sheet-footer-button:hover {
  background: #f0f4ff;
}

.sheet-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(248, 250, 254, 0.9);
  z-index: 4;
}

.sheet-empty.hidden {
  display: none;
}

.loading-state {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.loading-bar {
  width: 180px;
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(127, 164, 245, 0.2), rgba(127, 164, 245, 0.85), rgba(127, 164, 245, 0.2));
  background-size: 200% 100%;
  animation: loading 1.2s linear infinite;
}

.inspector {
  grid-template-rows: auto 1fr;
  position: relative;
  z-index: 4;
  overflow: hidden;
}

.inspector-tabs {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  gap: 8px;
}

.tab-button {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid transparent;
}

.tab-button.is-active {
  background: white;
  color: var(--text);
  border-color: var(--line);
  box-shadow: 0 2px 8px rgba(25, 34, 55, 0.06);
}

.tab-panel {
  display: none;
  overflow: auto;
  padding: 14px;
}

.tab-panel.is-active {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sidebar-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.card-head {
  justify-content: space-between;
  align-items: flex-start;
}

.card-head-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
  align-items: start;
}

.table-composer {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(181, 191, 209, 0.42);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  box-shadow:
    0 18px 42px rgba(31, 48, 84, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
  transition:
    border-color 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.table-composer:focus-within {
  border-color: rgba(91, 118, 177, 0.42);
  box-shadow:
    0 22px 48px rgba(31, 48, 84, 0.1),
    0 0 0 4px rgba(107, 134, 198, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.table-composer-field {
  display: grid;
  gap: 10px;
}

.table-composer-field-label {
  color: #6f6659;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.table-composer-shell {
  position: relative;
  display: grid;
  min-height: 132px;
  padding: 2px 0 0;
}

.table-composer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(247, 250, 255, 0.94), rgba(255, 255, 255, 0.84));
  opacity: 0.56;
  pointer-events: none;
}

.table-composer-shell textarea,
.table-composer-shell input {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 116px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  resize: none;
  color: #202430 !important;
  font-size: clamp(1.02rem, 1.26vw, 1.18rem);
  line-height: 1.48;
  letter-spacing: -0.025em;
}

.table-composer-shell textarea::placeholder,
.table-composer-shell input::placeholder {
  color: rgba(96, 103, 119, 0.72);
}

.table-composer-shell textarea:focus,
.table-composer-shell input:focus {
  outline: none;
}

.table-composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.table-composer-footer-leading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.home-search-shell-picker-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.table-composer-submit {
  min-height: 48px;
  padding-inline: 18px;
  border-radius: 16px;
  white-space: nowrap;
}

.tech-picker {
  position: relative;
  width: auto;
  min-width: 0;
}

.tech-picker-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  width: auto;
  max-width: 100%;
  padding: 0 14px;
  border: 1px solid rgba(66, 85, 133, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  color: #253756;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 8px 20px rgba(49, 72, 116, 0.08);
  transition:
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-picker-trigger:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(236, 243, 255, 0.98));
  border-color: rgba(58, 95, 174, 0.28);
  transform: translateY(-1px);
}

.tech-picker-trigger:focus-visible {
  outline: none;
  border-color: rgba(58, 95, 174, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 0 0 4px rgba(84, 117, 199, 0.14);
}

.tech-picker-trigger[aria-expanded="true"] {
  border-color: rgba(58, 95, 174, 0.3);
  background:
    linear-gradient(180deg, rgba(250, 252, 255, 0.98), rgba(235, 242, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 10px 28px rgba(49, 72, 116, 0.12);
}

.tech-picker-trigger:disabled {
  opacity: 0.58;
  transform: none;
  cursor: default;
}

.tech-picker-trigger-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.tech-picker-trigger-label {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tech-picker-trigger-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(33, 52, 88, 0.08);
  color: #31486f;
  font-size: 0.72rem;
  font-weight: 700;
}

.tech-picker-trigger-chevron {
  color: rgba(49, 73, 118, 0.66);
  font-size: 0.8rem;
  transform: translateY(1px);
  transition: transform 160ms ease, color 160ms ease;
}

.tech-picker-trigger[aria-expanded="true"] .tech-picker-trigger-chevron {
  transform: translateY(1px) rotate(180deg);
  color: rgba(37, 70, 131, 0.82);
}

.tech-picker-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 24;
  width: min(390px, calc(100vw - 48px));
  padding: 14px;
  border: 1px solid rgba(169, 182, 212, 0.28);
  border-radius: 24px;
  background: rgba(252, 253, 255, 0.98);
  backdrop-filter: blur(18px);
  box-shadow:
    0 24px 54px rgba(22, 34, 60, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 12px;
}

.tech-picker--columns .tech-picker-panel {
  left: auto;
  right: 0;
}

.tech-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-start;
}

.tech-picker-head-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-items: start;
  text-align: left;
}

.tech-picker-kicker {
  margin: 0 0 4px;
  color: #6f87b0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tech-picker-title {
  margin: 0;
  color: #1e2f4f;
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}

.tech-picker-helper {
  margin: 0;
  color: #556987;
  font-size: 0.75rem;
  line-height: 1.4;
  max-width: none;
  text-align: left;
}

.tech-picker-count {
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(236, 242, 255, 0.92);
  color: #5470a2;
  font-size: 0.76rem;
  font-weight: 600;
  align-self: flex-start;
}

.tech-picker-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  min-height: 46px;
  border: 1px solid rgba(171, 184, 213, 0.34);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.tech-picker-search-icon {
  color: #8092b3;
  font-size: 0.95rem;
}

.tech-picker-search-input {
  border: 0;
  padding: 0;
  background: transparent;
  color: #203252;
}

.tech-picker-search-input:focus {
  outline: none;
}

.tech-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-picker-selected-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(172, 185, 212, 0.28);
  border-radius: 999px;
  background: rgba(244, 248, 255, 0.92);
  color: #294062;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.tech-picker-selected-chip:hover {
  border-color: rgba(95, 129, 194, 0.34);
  background: rgba(239, 245, 255, 0.98);
}

.tech-picker-selected-chip:focus-visible {
  outline: none;
  border-color: rgba(58, 95, 174, 0.34);
  box-shadow: 0 0 0 4px rgba(84, 117, 199, 0.12);
}

.tech-picker-selected-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
}

.tech-picker-selected-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(36, 52, 81, 0.1);
  color: #3b537d;
  font-size: 0.9rem;
  line-height: 1;
}

.tech-picker-results {
  display: grid;
  gap: 14px;
  max-height: min(430px, 56vh);
  overflow: auto;
  padding-right: 4px;
}

.tech-picker-results::-webkit-scrollbar {
  width: 10px;
}

.tech-picker-results::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(124, 144, 183, 0.34);
  background-clip: padding-box;
}

.tech-picker-section {
  display: grid;
  gap: 10px;
}

.tech-picker-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.tech-picker-section-title {
  margin: 0;
  color: #233657;
  font-size: 0.82rem;
  font-weight: 700;
}

.tech-picker-section-meta {
  color: #7b8eaf;
  font-size: 0.75rem;
}

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

.tech-picker-item {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(173, 185, 211, 0.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.94));
  color: #223555;
  text-align: left;
}

.tech-picker-item:hover {
  border-color: rgba(92, 126, 196, 0.26);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1), rgba(240, 246, 255, 0.98));
}

.tech-picker-item:focus-visible {
  outline: none;
  border-color: rgba(58, 95, 174, 0.34);
  box-shadow: 0 0 0 4px rgba(84, 117, 199, 0.12);
}

.tech-picker-item.is-added {
  border-color: rgba(149, 196, 169, 0.36);
  background: linear-gradient(180deg, rgba(247, 253, 249, 0.98), rgba(240, 249, 244, 0.94));
}

.tech-picker-item:disabled {
  opacity: 1;
  cursor: default;
}

.tech-picker-item-mark {
  position: relative;
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(235, 241, 252, 0.9);
  color: #3a5c99;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tech-picker-item-mark.is-logo {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(174, 185, 211, 0.28);
}

.tech-picker-item-mark-image {
  position: absolute;
  inset: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.tech-picker-item-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.tech-picker-item-title {
  color: #223555;
  font-size: 0.91rem;
  font-weight: 700;
}

.tech-picker-item-description {
  color: #667a9f;
  font-size: 0.79rem;
  line-height: 1.35;
}

.tech-picker-item-opportunity {
  color: #4c6489;
  font-size: 0.75rem;
  line-height: 1.35;
}

.tech-picker-item-hover {
  grid-column: 1 / -1;
  display: grid;
  gap: 9px;
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  padding-top: 0;
  border-top: 1px solid transparent;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  text-align: left;
  transition:
    max-height 180ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease,
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 180ms cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 180ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 140ms ease;
}

.tech-picker-item:hover .tech-picker-item-hover,
.tech-picker-item:focus-visible .tech-picker-item-hover {
  max-height: 260px;
  margin-top: 2px;
  padding-top: 11px;
  border-top-color: rgba(171, 184, 213, 0.34);
  opacity: 1;
  transform: translateY(0);
}

.tech-picker-item-hover-row {
  display: grid;
  gap: 4px;
}

.tech-picker-item-hover-row strong {
  color: #2a4065;
  font-size: 0.7rem;
  font-weight: 700;
}

.tech-picker-item-hover-row span {
  color: #4f6485;
  font-size: 0.78rem;
  line-height: 1.45;
}

.tech-picker-item-state {
  white-space: nowrap;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(237, 242, 251, 0.92);
  color: #6a7fa4;
  font-size: 0.72rem;
  font-weight: 700;
}

.tech-picker-item.is-added .tech-picker-item-state {
  background: rgba(220, 241, 228, 0.95);
  color: #2f7a4f;
}

.tech-picker-empty {
  padding: 18px 14px;
  border: 1px dashed rgba(176, 188, 214, 0.42);
  border-radius: 16px;
  background: rgba(248, 250, 255, 0.9);
  color: #65789d;
  font-size: 0.82rem;
  line-height: 1.45;
}

.tech-picker--columns .tech-picker-trigger,
.table-composer .tech-picker-trigger {
  width: auto;
}

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

.stat-card {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

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

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

.field span {
  color: var(--muted);
  font-size: 0.84rem;
}

.field-row {
  align-items: stretch;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 11px 12px;
  background: white;
  color: var(--text);
}

textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.5;
}

#csv-input,
.column-instruction {
  font-family: var(--mono);
  font-size: 0.86rem;
}

.columns-list,
.details-view,
.enrichment-detail-list,
.citation-list,
.subpage-list,
.kv-list {
  display: grid;
  gap: 12px;
}

.field-browser-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  padding: 14px 16px 16px;
  overflow: hidden;
}

.field-browser-head {
  display: grid;
  gap: 12px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e1d8ca;
}

.field-browser-head-copy {
  display: grid;
  gap: 4px;
}

.field-browser-search-shell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid #d8d1c3;
  border-radius: 14px;
  background: #fffdfa;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.field-browser-search-icon {
  color: #9a8f80;
  font-size: 13px;
}

.field-browser-search-input {
  width: 100%;
  min-height: 42px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  color: #111827;
  font-size: 13px;
}

.field-browser-search-input::placeholder {
  color: #9a8f80;
}

.field-browser-list {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 0;
  overflow: auto;
}

.field-browser-empty {
  display: grid;
  gap: 4px;
  padding: 18px;
  border: 1px dashed #ddd3c3;
  border-radius: 16px;
  background: rgba(255, 253, 250, 0.82);
  color: #746c60;
}

.field-browser-empty strong {
  color: #111827;
  font-size: 13px;
}

.field-browser-empty-action {
  justify-self: flex-start;
  margin-top: 6px;
}

.field-library-section {
  display: grid;
  gap: 8px;
}

.field-library-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.field-library-section-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.field-library-section-copy strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.field-library-section-copy span {
  color: #8b806f;
  font-size: 11px;
  line-height: 1.35;
}

.field-library-section-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.field-library-section-count {
  min-width: 24px;
  padding: 3px 7px;
  border: 1px solid #ddd3c3;
  border-radius: 999px;
  background: #fffdfa;
  color: #746c60;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.field-library-section-chevron {
  color: #8b806f;
  font-size: 16px;
  line-height: 1;
}

.field-library-section-list {
  display: grid;
  gap: 8px;
}

.field-browser-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid #e1d8ca;
  border-radius: 16px;
  background: #fffdfa;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.field-browser-card.is-added {
  border-color: #d8e6db;
  background: linear-gradient(180deg, #ffffff, #f8fcf8);
}

.field-browser-card-main {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.field-browser-card-main:disabled {
  cursor: default;
  opacity: 0.74;
}

.field-browser-card-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #ddd3c3;
  border-radius: 12px;
  background: #f3ede4;
  color: #5f5447;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.field-browser-card-icon.is-logo {
  background: linear-gradient(180deg, #fffdfa, #f6f1e9);
}

.field-browser-card-icon-fallback,
.field-browser-card-icon-image {
  position: absolute;
  inset: 0;
}

.field-browser-card-icon-fallback {
  display: grid;
  place-items: center;
}

.field-browser-card-icon-image {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
}

.field-browser-card-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.field-browser-card-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.field-browser-card-title-row strong {
  min-width: 0;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
}

.field-browser-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 8px;
  border: 1px solid #ddd3c3;
  border-radius: 999px;
  background: #f5f1e8;
  color: #655d51;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.field-browser-card-subline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.field-browser-card-description {
  min-width: 0;
  overflow: hidden;
  color: #746c60;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.field-browser-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: #746c60;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.field-browser-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1c7b8;
}

.field-browser-card-status.is-good {
  color: #15803d;
}

.field-browser-card-status.is-good .field-browser-status-dot {
  background: #22c55e;
}

.field-browser-card-status.is-partial,
.field-browser-card-status.is-working {
  color: #b45309;
}

.field-browser-card-status.is-partial .field-browser-status-dot,
.field-browser-card-status.is-working .field-browser-status-dot {
  background: #f59e0b;
}

.field-browser-card-side {
  display: grid;
  justify-items: end;
  gap: 8px;
  align-self: stretch;
}

.field-browser-card-cost {
  color: #8b806f;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.field-browser-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d8d1c3;
  border-radius: 999px;
  background: #fffdfa;
  color: #1f2328;
  font-size: 16px;
  font-weight: 600;
}

.field-browser-add-button:hover:not(:disabled) {
  border-color: #cbc1b0;
  background: #f8f5ef;
}

.field-browser-add-button:disabled {
  color: #9a8f80;
  cursor: default;
}

.field-editor-modal {
  display: grid;
  gap: 16px;
}

.field-editor-intro {
  display: grid;
  gap: 8px;
}

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

.field-editor-prompt textarea {
  min-height: 168px;
  resize: vertical;
}

.field-editor-actions {
  justify-content: flex-end;
}

.field-editor-remove {
  margin-right: auto;
  color: #b91c1c;
}

.field-editor-remove:hover {
  background: #fff5f5 !important;
  color: #991b1b;
}

.field-editor-bundle-list {
  display: grid;
  gap: 8px;
}

.field-editor-bundle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #ffffff;
}

.field-editor-bundle-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.field-editor-bundle-row strong {
  color: #111827;
  font-size: 13px;
}

.field-editor-bundle-row span {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.field-editor-bundle-state {
  flex-shrink: 0;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
}

.field-editor-bundle-state.is-added {
  color: #15803d;
}

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

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

  .field-browser-card-side {
    grid-auto-flow: column;
    justify-content: space-between;
    align-items: center;
  }

  .field-browser-card-subline {
    flex-wrap: wrap;
  }
}

.column-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-alt);
}

.column-card-top {
  align-items: flex-start;
}

.column-card-top .field {
  flex: 1;
}

.column-card-actions {
  justify-content: flex-end;
}

.suggested-field-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.suggested-field-head,
.contact-preset-head {
  display: grid;
  gap: 4px;
}

.suggested-field-head .detail-copy {
  font-size: 0.78rem;
  line-height: 1.4;
}

.suggested-tech-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid rgba(54, 72, 112, 0.07);
  border-radius: 12px;
  background: rgba(249, 250, 252, 0.88);
}

.suggested-tech-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.suggested-tech-copy strong {
  font-size: 0.8rem;
  font-weight: 650;
}

.suggested-tech-copy span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.suggested-field-section .tech-picker {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.contact-preset-library {
  grid-template-columns: 1fr;
  gap: 10px;
}

.contact-preset-library.is-compact {
  gap: 6px;
}

.contact-preset-button {
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
  text-align: left;
}

.contact-preset-button.is-compact {
  gap: 5px;
  padding: 8px 10px;
  border-radius: 12px;
  border-color: rgba(15, 23, 42, 0.05);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: none;
}

.contact-preset-button:disabled {
  cursor: default;
  opacity: 0.72;
}

.contact-preset-button:disabled:hover {
  border-color: var(--line);
  background: var(--panel-alt);
}

.contact-preset-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.contact-preset-button .prompt-card-title {
  font-size: 0.84rem;
  font-weight: 650;
}

.contact-preset-state {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

.locked-search-summary {
  gap: 10px;
}

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

.locked-search-head h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.locked-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locked-search-prompt {
  margin: 0;
  max-width: 34ch;
  color: #6c665e;
  font-size: 0.72rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.contact-preset-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
}

.contact-preset-signal-list {
  gap: 4px;
}

.contact-preset-button .recipe-signal-list {
  gap: 4px;
}

.contact-preset-button .recipe-signal {
  min-height: 16px;
  padding: 0 5px;
  font-size: 0.58rem;
  border-radius: 999px;
  letter-spacing: 0;
}

.suggested-field-section .tech-picker-trigger {
  width: 100%;
  min-height: 32px;
  padding: 0 11px;
  border-color: rgba(54, 72, 112, 0.1);
  box-shadow: none;
}

.suggested-field-section .tech-picker-trigger-copy {
  overflow: hidden;
}

.suggested-field-section .tech-picker-trigger-label {
  font-size: 0.8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggested-field-section .tech-picker-trigger-chevron {
  font-size: 0.72rem;
}

.suggested-field-section .tech-picker-trigger-badge {
  min-width: 20px;
  height: 20px;
  font-size: 0.66rem;
}

.suggested-field-section .tech-picker-panel {
  left: auto;
  right: 0;
  width: min(348px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
}

.suggested-field-section .tech-picker-panel .tech-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.suggested-field-section .tech-picker-panel .tech-picker-count {
  justify-self: start;
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

.suggested-field-section .tech-picker-panel .tech-picker-search-shell {
  min-width: 0;
}

.kv-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

.kv-value,
.detail-value {
  font-size: 0.98rem;
  line-height: 1.5;
}

.detail-link,
.subpage-card,
.citation-pill {
  text-decoration: none;
}

.detail-link {
  color: #3559ad;
  word-break: break-word;
}

.snapshot-card,
.detail-enrichment-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-alt);
}

.snapshot-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-enrichment-top {
  align-items: flex-start;
  justify-content: space-between;
}

.type-badge {
  background: rgba(127, 164, 245, 0.18);
  color: #3559ad;
  font-size: 0.76rem;
}

.detail-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

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

.citation-pill {
  display: block;
  border: 1px solid var(--line);
  background: white;
  color: #3559ad;
  font-size: 0.83rem;
}

.subpage-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel-alt);
}

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

@keyframes loading {
  from {
    background-position: 200% 0;
  }

  to {
    background-position: -200% 0;
  }
}

@keyframes tableScan {
  0% {
    transform: translateX(-22%) skewX(-14deg);
    opacity: 0;
  }

  14% {
    opacity: 0.62;
  }

  74% {
    opacity: 0.48;
  }

  100% {
    transform: translateX(386%) skewX(-14deg);
    opacity: 0;
  }
}

@keyframes searchPulse {
  0% {
    transform: scale(0.8);
    opacity: 0.56;
  }

  70% {
    transform: scale(1.9);
    opacity: 0;
  }

  100% {
    transform: scale(1.9);
    opacity: 0;
  }
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-rows: auto auto auto auto;
  }

  .discovery-bar,
  .marketing-grid,
  .workspace-body {
    grid-template-columns: 1fr;
  }

  .sheet-pane,
  .inspector {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .workspace-header,
  .header-primary,
  .header-secondary,
  .title-cluster,
  .header-actions,
  .header-account,
  .discovery-bar,
  .discovery-actions,
  .field-row,
  .column-card-top,
  .modal-head {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
  }

  .header-secondary {
    margin-left: 0;
  }

  .header-credit-pill {
    display: none;
  }

  .discovery-bar {
    display: grid;
  }

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

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

  .sheet-grid {
    min-width: 760px;
  }

  .marketing-card-wide {
    grid-column: auto;
  }
}

.workspace {
  grid-template-rows: auto auto minmax(720px, 1fr);
  gap: 16px;
  padding: 18px;
}

.workspace-header {
  padding: 16px 18px;
}

.header-actions {
  align-items: center;
}

.discovery-bar {
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: stretch;
  padding: 18px;
}

.discovery-copy {
  gap: 6px;
}

.search-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.prompt-shell input {
  height: 58px;
  padding-inline: 16px;
  font-size: 1.02rem;
}

.search-status-row,
.search-suggestion-row,
.status-stack,
.placeholder-actions,
.cell-link-row,
.summary-action-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-suggestion-row {
  gap: 12px;
}

.search-suggestion-label {
  color: var(--muted);
  font-size: 0.82rem;
}

.prompt-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: white;
  color: #3559ad;
  font-size: 0.84rem;
}

.prompt-chip:hover {
  background: #eef4ff;
  border-color: rgba(127, 164, 245, 0.45);
}

.workspace-body {
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: stretch;
}

.sheet-toolbar {
  align-items: center;
}

.toolbar-summary {
  white-space: normal;
}

.sheet-grid th,
.sheet-grid td {
  padding: 14px 16px;
}

.sheet-grid thead th {
  background: #f7f8fc;
}

.sheet-header,
.sheet-cell {
  min-width: 190px;
}

.sheet-cell.is-input-cell {
  padding: 8px;
}

.sheet-editor,
.sheet-header-editor {
  min-height: 40px;
}

.sheet-empty {
  place-items: stretch;
  padding: 24px;
  background: rgba(248, 250, 254, 0.94);
}

.empty-state-card {
  max-width: 620px;
  display: grid;
  gap: 14px;
  align-content: center;
  justify-items: flex-start;
  margin: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 28px rgba(25, 34, 55, 0.08);
}

.placeholder-copy {
  display: grid;
  gap: 12px;
  justify-items: flex-start;
  padding: 32px 16px;
  text-align: left;
}

.placeholder-copy p {
  color: var(--muted);
}

.cell-link-pill {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  background: white;
  color: #3559ad;
  font-size: 0.78rem;
}

.cell-link-pill:hover {
  background: #eef4ff;
}

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

.tab-button {
  min-width: 0;
}

.sidebar-card,
.sidebar-disclosure {
  padding: 16px;
}

.sidebar-disclosure {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
}

.sidebar-disclosure summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.sidebar-disclosure summary::-webkit-details-marker {
  display: none;
}

.disclosure-body {
  margin-top: 14px;
}

.panel-action-stack {
  display: grid;
  gap: 10px;
}

.summary-action-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel-alt);
  color: #3559ad;
  font-size: 0.8rem;
}

.compact-note {
  font-size: 0.9rem;
}

.column-card {
  padding: 0;
  background: var(--panel);
  overflow: hidden;
}

.column-summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  cursor: pointer;
  list-style: none;
  background: var(--panel-alt);
}

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

.column-summary-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.column-summary-copy {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.column-card-body {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
}

.column-card-top {
  padding-top: 2px;
}

.field-empty-state {
  line-height: 1.55;
}

.field-section {
  display: grid;
  gap: 12px;
}

.field-section-head {
  display: grid;
  gap: 4px;
}

.field-section-head h3 {
  margin: 0;
}

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

.field-card {
  border-radius: 16px;
  border-color: rgba(36, 48, 74, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 246, 241, 0.98));
  box-shadow: 0 10px 24px rgba(34, 43, 66, 0.04);
}

.field-card.is-draft {
  border-style: dashed;
}

.field-card-summary {
  gap: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(248, 246, 241, 0.98), rgba(244, 241, 234, 0.96));
}

.field-card-copy {
  min-width: 0;
}

.field-card-summary-side {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
}

.field-card-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.field-meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.field-meta-chip.is-origin,
.field-meta-chip.is-cost,
.field-meta-chip.is-muted {
  background: rgba(72, 89, 129, 0.08);
  border-color: rgba(72, 89, 129, 0.1);
  color: #55627d;
}

.field-meta-chip.is-good {
  background: rgba(77, 153, 113, 0.12);
  border-color: rgba(77, 153, 113, 0.16);
  color: #2f6c4c;
}

.field-meta-chip.is-working {
  background: rgba(127, 164, 245, 0.16);
  border-color: rgba(127, 164, 245, 0.22);
  color: #3559ad;
}

.field-meta-chip.is-partial {
  background: rgba(214, 157, 70, 0.14);
  border-color: rgba(214, 157, 70, 0.18);
  color: #8f6021;
}

.field-card .column-summary-title {
  font-size: 1rem;
}

.field-card .column-summary-copy {
  margin-top: 6px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.field-card-body {
  gap: 14px;
  padding: 0 14px 14px;
}

.field-card-insight-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.field-card-actions {
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.field-card-actions .detail-copy {
  max-width: 32ch;
}

.search-brief-copy {
  line-height: 1.55;
}

@media (max-width: 1180px) {
  .workspace {
    grid-template-rows: auto auto auto;
  }

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

  .sheet-pane,
  .inspector {
    min-height: 620px;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 12px;
  }

  .workspace-header,
  .title-cluster,
  .header-actions,
  .search-status-row,
  .search-suggestion-row,
  .field-row,
  .column-card-top,
  .modal-head,
  .status-stack {
    flex-direction: column;
    align-items: stretch;
  }

  .search-control-row,
  .inspector-tabs {
    grid-template-columns: 1fr;
  }

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

:root {
  --line: rgba(27, 39, 68, 0.09);
  --line-strong: rgba(27, 39, 68, 0.16);
  --shadow: 0 20px 48px rgba(25, 34, 55, 0.07);
  --radius-md: 18px;
  --radius-sm: 14px;
}

.header-actions {
  gap: 16px;
}

.action-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.header-divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.discovery-copy h2 {
  font-size: 1.25rem;
}

.prompt-shell {
  display: grid;
  gap: 10px;
}

.prompt-label {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
}

.prompt-shell textarea {
  min-height: 96px;
  padding: 16px;
  border-radius: 18px;
  resize: none;
  font-size: 1.02rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.prompt-shell textarea:focus {
  outline: none;
  border-color: #99b6f7;
  box-shadow: 0 0 0 4px rgba(127, 164, 245, 0.14);
}

.prompt-example {
  color: var(--muted);
  font-size: 0.84rem;
}

.search-control-row {
  align-items: end;
}

.search-status-row {
  justify-content: flex-start;
}

.search-status-row .status-pill {
  padding: 8px 12px;
  font-size: 0.82rem;
}

.workspace-body {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.sheet-toolbar {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.toolbar-chip {
  padding: 8px 12px;
  border-radius: 999px;
}

.toolbar-group {
  gap: 14px;
}

.toolbar-actions {
  align-items: center;
}

.sheet-add-menu {
  position: relative;
}

.sheet-add-menu summary {
  list-style: none;
}

.sheet-add-menu summary::-webkit-details-marker {
  display: none;
}

.sheet-add-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10;
  min-width: 148px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  box-shadow: 0 16px 32px rgba(25, 34, 55, 0.12);
}

.sheet-add-action {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--panel-alt);
  color: var(--text);
}

.sheet-add-action:hover {
  background: #eef4ff;
}

.sheet-surface {
  background: linear-gradient(180deg, rgba(250, 251, 254, 0.92), rgba(245, 247, 252, 0.78));
}

.sheet-grid th,
.sheet-grid td {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sheet-grid thead th {
  box-shadow: inset 0 -1px 0 var(--line);
}

.sheet-row.is-selected td,
.sheet-row.is-selected .row-number,
.sheet-row:focus-within td,
.sheet-row:focus-within .row-number {
  background: #f6f9ff;
}

.inspector {
  box-shadow: 0 14px 32px rgba(25, 34, 55, 0.06);
}

.sidebar-card,
.sidebar-disclosure,
.modal-card {
  border-color: var(--line);
}

.loading-state {
  width: min(420px, 100%);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  box-shadow: 0 14px 28px rgba(25, 34, 55, 0.06);
}

.loading-step-list {
  display: grid;
  gap: 9px;
  justify-items: flex-start;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}

.loading-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
}

.empty-state-card .primary-button {
  min-width: 180px;
}

@media (max-width: 760px) {
  .action-group {
    width: 100%;
  }

  .header-divider {
    display: none;
  }

  .sheet-add-menu-panel {
    left: 0;
    right: auto;
  }
}

.hidden {
  display: none !important;
}

.app-shell {
  grid-template-rows: auto minmax(0, 1fr);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  max-width: none;
  margin: 0;
  backdrop-filter: blur(18px);
}

.header-actions-home,
.header-actions-dashboard,
.header-actions-workspace {
  margin-left: 0;
}

.home-view,
.dashboard-view,
.workspace-view {
  min-height: 0;
  display: grid;
  gap: 18px;
}

.workspace-view.is-discovering .workspace-discovery-bar {
  display: none;
}

.home-view {
  width: min(100%, 880px);
  margin: 0 auto;
  align-content: start;
}

.dashboard-view {
  width: min(100%, 1180px);
  margin: 0 auto;
  align-content: start;
}

.home-hero,
.library-section {
  display: grid;
  gap: 14px;
  padding: 30px 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.dashboard-shell {
  min-height: 280px;
}

.dashboard-shell .section-head {
  align-items: flex-start;
}

.dashboard-shell .header-actions-dashboard {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.home-hero {
  align-content: start;
  background: rgba(255, 255, 255, 0.97);
}

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

.home-hero h2 {
  font-size: 1.75rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.home-hero .hero-copy {
  max-width: none;
  font-size: 0.98rem;
}

.home-search-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}

.home-search-shell:focus-within {
  border-color: rgba(31, 86, 216, 0.26);
  box-shadow: 0 0 0 4px rgba(31, 86, 216, 0.08);
}

.home-prompt-shell textarea {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.45;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.home-prompt-shell textarea:focus {
  box-shadow: none;
}

.hero-search-button {
  min-width: 108px;
  min-height: 48px;
  border-radius: 12px;
  padding-inline: 18px;
}

.home-example-block {
  display: grid;
  gap: 8px;
}

.recipe-section-copy,
.search-recipes-block {
  display: grid;
  gap: 6px;
}

.recipe-section-copy h3,
.search-recipes-block h3 {
  font-size: 0.95rem;
  font-weight: 600;
}

.recipe-section-copy p,
.search-recipes-block p {
  margin: 0;
}

.list-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

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

.recipe-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-alt);
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.recipe-card:focus-visible,
.prompt-card:focus-visible {
  outline: none;
  border-color: rgba(127, 164, 245, 0.48);
  box-shadow: 0 0 0 3px rgba(127, 164, 245, 0.16);
}

.recipe-card-copy {
  display: grid;
  gap: 8px;
}

.recipe-card-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.recipe-card p {
  margin: 0;
  line-height: 1.45;
}

.recipe-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  font-size: 0.78rem;
}

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

.home-template-grid .prompt-chip {
  min-width: 0;
}

.list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px var(--line);
}

.empty-list-card {
  min-height: 180px;
  align-content: center;
}

.list-card-top,
.list-card-actions,
.list-card-meta,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.list-card-top {
  align-items: flex-start;
}

.list-card-meta {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.86rem;
}

.list-card-query-label {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.list-card-query {
  line-height: 1.5;
}

.empty-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-search-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.recent-search-chip {
  padding: 12px 14px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: left;
}

.recent-search-chip:hover {
  background: #eef4ff;
}

.workspace-discovery-bar {
  padding: 18px;
}

.workspace-body {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
}

.inspector-tabs {
  padding: 14px 16px 12px;
  gap: 10px;
}

.tab-button {
  padding: 13px 14px;
}

.tab-panel {
  padding: 18px;
}

.sidebar-card,
.sidebar-disclosure {
  gap: 16px;
  padding: 18px;
}

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

.summary-mini-card {
  min-width: 0;
  padding: 12px 14px;
}

.summary-link-list {
  gap: 10px;
}

.summary-link {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .home-search-shell,
  .workspace-body {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .home-hero,
  .library-section {
    padding: 20px 22px;
    border-radius: 18px;
  }

  .home-search-shell,
  .home-hero h2 {
    max-width: none;
  }

  .home-search-shell,
  .workspace-body,
  .inspector-tabs {
    grid-template-columns: 1fr;
  }

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

  .list-card-top,
  .list-card-actions,
  .list-card-meta,
  .section-head,
  .empty-list-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.app-shell.is-home {
  grid-template-rows: auto 1fr;
  gap: 0;
  padding: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(77, 120, 255, 0.62), transparent 24%),
    radial-gradient(circle at 82% 28%, rgba(92, 132, 255, 0.56), transparent 22%),
    radial-gradient(circle at 50% 76%, rgba(248, 77, 177, 0.74), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(255, 112, 47, 0.68), transparent 20%),
    linear-gradient(180deg, #090d16 0%, #12203a 24%, #4b75f7 48%, #ef56bc 82%, #ff682f 100%);
}

.app-header.is-home {
  position: relative;
  top: auto;
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 18px 24px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-header.is-home h1 {
  color: white;
}

.app-header.is-home .header-kicker,
.app-header.is-home #docs-button,
.app-header.is-home #home-pricing-button {
  display: none;
}

.app-header.is-home .brand-mark {
  background: linear-gradient(135deg, #ff8b40, #ff57bb 44%, #6481ff);
}

.app-header.is-home .ghost-button {
  background: rgba(15, 18, 28, 0.28);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
}

.app-header.is-home .ghost-button:hover {
  background: rgba(15, 18, 28, 0.44);
}

.app-header.is-home .primary-button {
  background: white;
  color: #111827;
  box-shadow: none;
}

.app-header.is-home .primary-button:hover {
  background: #f4f6fb;
  color: #111827;
}

.app-shell.is-home .home-view {
  width: 100%;
  min-height: calc(100vh - 78px);
  margin: 0;
  gap: 22px;
  padding: 8px 24px 48px;
  justify-items: center;
}

.app-shell.is-home .home-hero {
  width: min(100%, 980px);
  min-height: calc(100vh - 120px);
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px 28px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.app-shell.is-home .home-title-block {
  justify-items: center;
  gap: 0;
  margin-bottom: 20px;
}

.app-shell.is-home .home-hero h2 {
  width: max-content;
  max-width: none;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(2.8rem, 6.6vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: white;
}

.app-shell.is-home .home-hero .hero-copy {
  max-width: 720px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.78);
}

.app-shell.is-home .home-search-shell {
  width: min(100%, 800px);
  grid-template-columns: 1fr;
  gap: 0;
  padding: 20px 22px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background: rgba(20, 22, 29, 0.92);
  box-shadow:
    0 28px 72px rgba(7, 9, 17, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-shell.is-home .home-search-shell:focus-within {
  border-color: rgba(130, 166, 255, 0.46);
  box-shadow:
    0 28px 72px rgba(7, 9, 17, 0.38),
    0 0 0 4px rgba(95, 132, 255, 0.12);
}

.app-shell.is-home .home-prompt-shell {
  width: 100%;
}

.app-shell.is-home .home-prompt-shell textarea {
  min-height: 116px;
  padding: 0;
  border: none;
  background: transparent;
  color: white;
  font-size: 1.12rem;
  line-height: 1.5;
}

.app-shell.is-home .home-prompt-shell textarea::placeholder {
  color: rgba(255, 255, 255, 0.56);
}

.app-shell.is-home .home-search-shell-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.app-shell.is-home .hero-search-button {
  min-width: 132px;
  min-height: 50px;
  border-radius: 999px;
  padding-inline: 20px;
  background: white;
  color: #111827;
  box-shadow: none;
}

.app-shell.is-home .hero-search-button:hover {
  background: #f4f6fb;
  color: #111827;
}

.app-shell.is-home .home-example-block {
  width: min(100%, 800px);
  justify-items: center;
  gap: 10px;
}

.app-shell.is-home .home-template-grid {
  grid-template-columns: repeat(4, max-content);
  justify-content: center;
  gap: 8px;
}

.app-shell.is-home .home-template-grid .prompt-chip {
  background: rgba(19, 24, 35, 0.24);
  border-color: rgba(255, 255, 255, 0.16);
  color: white;
  backdrop-filter: blur(10px);
}

.app-shell.is-home .home-template-grid .prompt-chip:hover {
  background: rgba(19, 24, 35, 0.4);
  border-color: rgba(255, 255, 255, 0.24);
}

.app-shell.is-home .library-section {
  width: min(100%, 1100px);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(15, 19, 28, 0.54);
  box-shadow: 0 18px 48px rgba(8, 10, 18, 0.18);
  backdrop-filter: blur(20px);
}

.app-shell.is-home .library-section h2,
.app-shell.is-home .library-section h3,
.app-shell.is-home .recent-search-chip,
.app-shell.is-home .section-head {
  color: white;
}

.app-shell.is-home .library-section .card-kicker,
.app-shell.is-home .library-section .detail-copy,
.app-shell.is-home .list-card-meta,
.app-shell.is-home .list-card-query-label {
  color: rgba(255, 255, 255, 0.68);
}

.app-shell.is-home .list-card,
.app-shell.is-home .recent-search-chip {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-shell.is-home .recent-search-chip:hover,
.app-shell.is-home .list-card .ghost-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.app-shell.is-home .library-section .ghost-button {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: white;
}

.app-shell.is-home .type-badge {
  background: rgba(108, 129, 255, 0.22);
  color: #e3ebff;
}

@media (max-width: 900px) {
  .app-shell.is-home .home-hero {
    min-height: auto;
    padding: 20px 18px 12px;
  }

  .app-shell.is-home .home-hero h2 {
    font-size: clamp(2.8rem, 12vw, 4rem);
  }

  .app-shell.is-home .home-search-shell,
  .app-shell.is-home .home-example-block {
    width: 100%;
  }

  .app-shell.is-home .home-search-hint {
    flex-direction: column;
    align-items: stretch;
  }

  .app-shell.is-home .hero-search-button {
    width: 100%;
  }

  .app-shell.is-home .home-template-grid {
    grid-template-columns: repeat(2, minmax(0, max-content));
  }
}

@media (max-width: 640px) {
  .app-header.is-home {
    padding: 16px;
  }

  .app-shell.is-home .home-view {
    padding: 8px 16px 28px;
  }

  .app-shell.is-home .home-search-shell {
    padding: 18px 18px 14px;
    border-radius: 24px;
  }

  .app-shell.is-home .home-template-grid {
    grid-template-columns: 1fr;
    justify-content: stretch;
  }
}

.app-shell:not(.is-home) {
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(31, 86, 216, 0.08), transparent 22%),
    linear-gradient(180deg, #eef2f8 0%, #e8edf5 100%);
}

.app-shell:not(.is-home) .app-header,
.app-shell:not(.is-home) .workspace-view {
  width: min(100%, 1600px);
  margin: 0 auto;
}

.app-shell:not(.is-home) .dashboard-view {
  width: 100%;
  margin: 0;
}

.app-shell:not(.is-home) .app-header {
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(24, 32, 51, 0.05);
}

.app-shell.is-workspace .app-header {
  padding: 12px 18px;
  min-height: 74px;
}

.app-shell.is-workspace .header-actions-workspace {
  display: none !important;
}

.app-shell:not(.is-home) .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.app-shell:not(.is-home) .title-cluster {
  gap: 12px;
}

.app-shell:not(.is-home) #app-header-title {
  max-width: min(42vw, 560px);
}

.app-shell.is-workspace .workspace-view {
  gap: 10px;
}

.workspace-header-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: flex-start;
  gap: 14px;
}

.workspace-title-stack {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workspace-breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.workspace-breadcrumb-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.workspace-breadcrumb-button:hover,
.workspace-title-trigger:hover,
.workspace-link-button:hover {
  background: transparent;
  color: var(--text);
}

.workspace-breadcrumb-current,
.workspace-title-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-title-row {
  min-width: 0;
}

.workspace-search-prompt {
  display: grid;
  gap: 4px;
  margin: 2px 0 0;
  max-width: min(58vw, 860px);
}

.workspace-search-prompt-text {
  margin: 0;
  color: #6f685f;
  font-size: 0.78rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workspace-search-prompt.is-expanded .workspace-search-prompt-text {
  display: block;
  overflow: visible;
}

.workspace-search-prompt-toggle {
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #4e5f8b;
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
}

.workspace-search-prompt-toggle:hover,
.workspace-search-prompt-toggle:focus-visible {
  background: transparent;
  color: #1f2328;
}

.workspace-title-trigger {
  max-width: min(54vw, 760px);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.workspace-title-input {
  width: min(54vw, 760px);
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: white;
  color: var(--text);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
}

.workspace-shell-mark {
  flex-shrink: 0;
  margin-top: 2px;
}

.workspace-action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: center;
}

.workspace-action-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: auto;
  min-width: 0;
  padding: 2px 0 6px;
}

.workspace-action-panel {
  display: none;
}

.workspace-primary-actions {
  justify-content: flex-end;
  gap: 8px;
}

.workspace-secondary-button {
  min-height: 36px;
}

.workspace-secondary-button.is-active {
  border-color: #b7cbbf;
  background: #f3f8f4;
  color: #285b4f;
}

.live-table-control-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 118px;
  padding: 8px 12px;
  border-radius: 10px;
}

.live-toggle-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-toggle-icon {
  color: #8f867a;
  font-size: 13px;
  line-height: 1;
}

.live-toggle-label {
  font-size: 13px;
  font-weight: 600;
}

.live-toggle-switch {
  position: relative;
  flex-shrink: 0;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: #d5cfc3;
}

.live-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.18);
  transition: transform 120ms ease, background 120ms ease;
}

.live-toggle-button.is-active .live-toggle-icon {
  color: #8b6a11;
}

.live-toggle-button.is-active .live-toggle-switch {
  background: #20252d;
}

.live-toggle-button.is-active .live-toggle-thumb {
  transform: translateX(14px);
  background: #ffffff;
}

.live-table-settings-button {
  width: auto;
  min-width: 0;
  padding: 0 12px;
  border-radius: 10px;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.live-table-settings-button.is-active {
  border-color: #b7cbbf;
  background: #f3f8f4;
  color: #285b4f;
}

.live-table-summary {
  color: #285b4f;
}

.workspace-link-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 2px 8px 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.workspace-link-icon {
  font-size: 11px;
}

.workspace-view {
  width: 100%;
  margin: 0 auto;
}

.workspace-body {
  min-height: calc(100vh - 186px);
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: 12px;
  align-items: stretch;
}

.sheet-pane,
.inspector {
  border: 1px solid rgba(15, 23, 42, 0.05);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(24, 32, 51, 0.035);
  overflow: hidden;
}

.inspector {
  overflow: visible;
}

.sheet-pane {
  display: block;
}

.sheet-toolbar {
  padding: 10px 14px;
  background: rgba(252, 253, 255, 0.96);
}

#sheet-title-chip {
  max-width: none;
  padding: 3px 8px;
  border: 1px solid rgba(31, 86, 216, 0.12);
  background: rgba(31, 86, 216, 0.06);
  color: #2450b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toolbar-summary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.sheet-surface {
  min-height: calc(100vh - 238px);
  background: rgba(255, 255, 255, 0.96);
}

.sheet-scroll {
  height: 100%;
}

.sheet-grid {
  font-size: 13px;
}

.sheet-grid th,
.sheet-grid td {
  padding: 6px 12px;
  border-right-color: transparent;
  border-bottom: 1px solid rgba(15, 23, 42, 0.045);
}

.sheet-grid thead th {
  background: rgba(249, 250, 252, 0.9);
  box-shadow: none;
}

.sheet-grid tbody tr:nth-child(even) td,
.sheet-grid tbody tr:nth-child(even) .row-number {
  background: rgba(15, 23, 42, 0.018);
}

.sheet-grid tbody .sheet-row {
  height: 40px;
}

.sheet-grid tbody td,
.sheet-grid tbody th {
  vertical-align: middle;
}

.sheet-row.is-selected td,
.sheet-row.is-selected .row-number,
.sheet-row:focus-within td,
.sheet-row:focus-within .row-number {
  background: rgba(31, 86, 216, 0.055);
}

.row-number-head,
.row-number {
  width: 38px;
  min-width: 38px;
  padding: 6px 8px;
  color: #98a2b3;
  font-size: 11px;
}

.sheet-header,
.sheet-cell {
  min-width: 164px;
}

.header-meta,
.header-label,
.sheet-header-editor {
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.header-meta {
  color: #98a2b3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-label {
  margin-top: 2px;
  color: #475467;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sheet-header-editor,
.sheet-editor {
  min-height: 22px;
  padding: 1px 4px;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.2;
}

.sheet-header-editor {
  margin-top: 2px;
  color: #667085;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.sheet-cell.is-input-cell {
  padding: 3px 6px;
}

.sheet-cell.is-enrichment-cell {
  background: transparent;
}

.sheet-grid tbody .sheet-cell,
.sheet-grid tbody .sheet-editor,
.sheet-grid tbody .cell-value {
  white-space: nowrap;
}

.sheet-grid tbody .sheet-cell {
  overflow: hidden;
}

.cell-value {
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sheet-cell.is-entity-cell .cell-value,
.sheet-cell.is-input-cell.is-entity-cell .sheet-editor {
  font-weight: 500;
}

.cell-subtle {
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.25;
}

.sheet-grid tbody .cell-subtle,
.sheet-grid tbody .cell-link-row {
  display: none;
}

.entity-pill,
.cell-link-pill {
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.2;
}

.entity-pill {
  margin-top: 6px;
  background: rgba(31, 86, 216, 0.07);
  color: #5370b7;
}

.cell-link-pill {
  border-color: rgba(15, 23, 42, 0.07);
  background: rgba(255, 255, 255, 0.9);
}

.sheet-footer {
  padding: 6px 0;
}

.sheet-footer-button {
  padding: 7px 10px;
  font-size: 12px;
}

.sheet-empty {
  place-items: stretch;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(247, 249, 253, 0.92), rgba(240, 244, 250, 0.94));
}

.empty-state-card {
  max-width: 560px;
  margin: auto;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(24, 32, 51, 0.04);
}

.sheet-loading-state {
  display: grid;
  gap: 20px;
  align-content: start;
  min-height: 100%;
}

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

.loading-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf3ff;
  color: #2450b3;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sheet-loading-steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.sheet-loading-steps .loading-step {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.sheet-loading-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.045);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.sheet-loading-row {
  display: grid;
  grid-template-columns: 32px repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.sheet-loading-cell {
  height: 12px;
  border-radius: 999px;
  background:
    linear-gradient(
      90deg,
      rgba(207, 219, 246, 0.54),
      rgba(144, 173, 243, 0.92),
      rgba(207, 219, 246, 0.54)
    );
  background-size: 220% 100%;
  animation: loading 1.2s linear infinite;
}

.sheet-loading-cell.is-row-number {
  width: 22px;
}

.sheet-loading-row.is-header .sheet-loading-cell {
  height: 18px;
  border-radius: 6px;
}

.sheet-message {
  max-width: 520px;
  display: grid;
  gap: 10px;
  align-content: center;
  margin: auto;
  padding: 22px 24px;
  border: 1px solid #e6ccd0;
  border-radius: 22px;
  background: #fff6f7;
  color: #8e3040;
}

.inspector {
  grid-template-rows: auto auto;
  align-content: start;
}

.inspector-tabs {
  padding: 7px;
  background: rgba(249, 250, 252, 0.96);
}

.tab-button {
  min-width: 0;
  padding: 8px 9px;
  font-size: 12px;
  font-weight: 600;
}

.tab-panel {
  padding: 10px;
}

.search-control-card {
  gap: 12px;
}

.search-criteria-field textarea {
  min-height: 116px;
  resize: none;
  font-size: 1.04rem;
  line-height: 1.48;
}

.search-panel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.search-recipes-block {
  padding-top: 2px;
}

.inspector-suggestion-row {
  display: grid;
  gap: 10px;
}

.inspector-suggestion-row .prompt-library {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workspace-view.is-discovering .sheet-add-menu {
  display: none;
}

.inspector .sidebar-card,
.inspector .sidebar-disclosure {
  gap: 12px;
  padding: 12px;
  border-color: rgba(15, 23, 42, 0.05);
  border-radius: 14px;
}

.inspector .card-kicker,
.inspector .field span,
.inspector .summary-mini-card span,
.inspector .status-pill,
.inspector .detail-copy,
.inspector .kv-key {
  font-size: 11px;
}

.inspector h2,
.inspector h3 {
  font-size: 15px;
}

.inspector input,
.inspector select,
.inspector textarea {
  min-height: 32px;
  padding: 7px 9px;
  border-color: rgba(15, 23, 42, 0.07);
  border-radius: 10px;
  font-size: 13px;
}

.inspector .primary-button,
.inspector .ghost-button,
.inspector .status-pill {
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

.prompt-chip {
  padding: 4px 8px;
  font-size: 11px;
}

.summary-mini-card,
.stat-card,
.cost-card {
  padding: 8px 10px;
  border-color: rgba(15, 23, 42, 0.045);
}

.summary-grid {
  gap: 8px;
}

.summary-mini-card strong,
.stat-card strong {
  margin-top: 2px;
  font-size: 13px;
}

@media (max-width: 1180px) {
  .workspace-action-row,
  .workspace-body {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .workspace-action-panel {
    justify-content: flex-start;
  }

  .sheet-surface {
    min-height: 520px;
  }
}

@media (max-width: 760px) {
  .app-shell:not(.is-home) {
    padding: 12px;
  }

  .app-shell:not(.is-home) .app-header {
    padding: 14px;
    border-radius: 20px;
  }

  .workspace-header-copy,
  .workspace-breadcrumb-row,
  .workspace-action-meta,
  .workspace-primary-actions,
  .search-panel-actions {
    align-items: stretch;
  }

  .workspace-title-trigger,
  .workspace-title-input {
    width: 100%;
    max-width: 100%;
    font-size: 1.2rem;
  }

  .workspace-search-prompt {
    max-width: 100%;
    font-size: 0.75rem;
  }

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

  .workspace-action-meta,
  .workspace-primary-actions {
    flex-direction: column;
  }

  .workspace-action-panel {
    justify-content: stretch;
  }

  .workspace-link-button {
    justify-content: flex-start;
    padding-inline: 0;
  }

  .sheet-toolbar,
  .sheet-loading-head,
  .search-panel-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sheet-loading-steps {
    grid-template-columns: 1fr;
  }

  .sheet-loading-row {
    grid-template-columns: 20px minmax(0, 1.15fr) minmax(0, 0.88fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 10px;
  }

  .sheet-grid th,
  .sheet-grid td {
    padding: 7px 10px;
  }
}

:root {
  --app-bg: #f5f3ee;
  --panel: #ffffff;
  --panel-alt: #faf8f3;
  --line: #dfdbd2;
  --line-strong: #cbc4b8;
  --text: #1f2328;
  --muted: #6e695f;
  --blue: #1f2328;
  --blue-strong: #14181d;
  --green: #2f6f5f;
  --green-bg: #e7f1ec;
  --shadow: 0 2px 10px rgba(18, 24, 38, 0.05);
  --radius-lg: 10px;
  --radius-md: 8px;
  --radius-sm: 6px;
}

body,
.app-shell,
.app-shell.is-home,
.app-shell:not(.is-home) {
  background: var(--app-bg);
}

body {
  color: var(--text);
}

.workspace,
.app-shell.is-home,
.app-shell:not(.is-home) {
  gap: 12px;
  padding: 0 20px 20px;
}

.workspace-header,
.app-header,
.app-header.is-home,
.app-shell:not(.is-home) .app-header {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: 14px 0 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: var(--app-bg);
  box-shadow: none;
  backdrop-filter: none;
}

.header-kicker,
.card-kicker {
  display: none;
}

.title-cluster {
  gap: 10px;
}

.brand-mark,
.app-shell.is-home .brand-mark,
.app-shell:not(.is-home) .brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #1f2328;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.app-header.is-home h1 {
  color: var(--text);
}

h1 {
  font-size: 1.05rem;
  font-weight: 600;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
}

h3 {
  font-size: 0.92rem;
  font-weight: 600;
}

.primary-button,
.ghost-button,
.status-pill,
.toolbar-chip,
.type-badge,
.citation-pill,
.entity-pill,
.cell-link-pill {
  border-radius: 8px;
  box-shadow: none;
}

.primary-button {
  border: 1px solid #1f2328;
  background: #1f2328;
  color: #ffffff;
}

.primary-button:hover {
  background: #14181d;
  border-color: #14181d;
}

.ghost-button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}

.ghost-button:hover {
  background: var(--panel-alt);
}

.app-header.is-home .ghost-button {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.app-header.is-home .ghost-button:hover {
  background: var(--panel-alt);
}

.app-header.is-home .primary-button {
  border-color: #1f2328;
  background: #1f2328;
  color: #ffffff;
}

.app-header.is-home .primary-button:hover {
  background: #14181d;
  border-color: #14181d;
  color: #ffffff;
}

.status-pill,
.type-badge,
.toolbar-chip,
.entity-pill,
.citation-pill,
.cell-link-pill {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
}

.status-pill.is-good {
  border-color: #bcd5ca;
  background: var(--green-bg);
  color: #285b4f;
}

.home-view {
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: 16px;
}

.dashboard-view {
  width: 100%;
  margin: 0;
  gap: 16px;
}

.app-shell.is-home .home-view {
  width: min(100%, 1080px);
  min-height: auto;
  margin: 0 auto;
  gap: 16px;
  padding: 0;
  justify-items: stretch;
  align-content: start;
}

.dashboard-shell {
  width: 100%;
}

.list-library-grid {
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.workspace-view {
  width: min(100%, 1600px);
  margin: 0 auto;
  gap: 8px;
}

.home-hero,
.library-section,
.app-shell.is-home .home-hero,
.app-shell.is-home .library-section {
  width: 100%;
  min-height: auto;
  justify-items: stretch;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
  text-align: left;
}

.home-title-block {
  display: grid;
  gap: 8px;
  margin: 0;
}

.app-shell.is-home .home-title-block {
  justify-items: start;
  gap: 8px;
  margin: 0;
}

.home-title-block p,
.detail-copy,
.summary-copy,
.list-card-meta,
.list-card-query,
.search-suggestion-label,
.workspace-breadcrumb-row,
.toolbar-summary,
.placeholder-copy p {
  color: var(--muted);
}

.home-hero h2,
.app-shell.is-home .home-hero h2 {
  width: auto;
  max-width: none;
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
}

.home-search-shell,
.app-shell.is-home .home-search-shell {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
  box-shadow: none;
}

.home-search-shell:focus-within,
.app-shell.is-home .home-search-shell:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 0 0 2px rgba(31, 35, 40, 0.06);
}

.home-prompt-shell textarea,
.app-shell.is-home .home-prompt-shell textarea {
  min-height: 88px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1.45;
}

.home-prompt-shell textarea::placeholder,
.app-shell.is-home .home-prompt-shell textarea::placeholder {
  color: #8b8478;
}

.home-search-shell-footer,
.app-shell.is-home .home-search-shell-footer {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
}

.hero-search-button,
.app-shell.is-home .hero-search-button {
  min-width: 112px;
  min-height: 40px;
  border-radius: 8px;
  padding-inline: 16px;
  background: #1f2328;
  color: #ffffff;
}

.hero-search-button:hover,
.app-shell.is-home .hero-search-button:hover {
  background: #14181d;
  color: #ffffff;
}

.home-example-block,
.app-shell.is-home .home-example-block {
  width: 100%;
  gap: 8px;
  justify-items: stretch;
}

.home-template-grid,
.app-shell.is-home .home-template-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-content: stretch;
  gap: 8px;
}

.prompt-chip,
.app-shell.is-home .home-template-grid .prompt-chip {
  min-width: 0;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-size: 12px;
  text-align: left;
}

.prompt-chip:hover,
.app-shell.is-home .home-template-grid .prompt-chip:hover {
  border-color: var(--line-strong);
  background: var(--panel-alt);
}

.app-shell.is-home .library-section h2,
.app-shell.is-home .library-section h3,
.app-shell.is-home .recent-search-chip,
.app-shell.is-home .section-head {
  color: var(--text);
}

.app-shell.is-home .library-section .detail-copy,
.app-shell.is-home .list-card-meta,
.app-shell.is-home .list-card-query-label {
  color: var(--muted);
}

.section-head,
.list-card-top,
.list-card-actions,
.list-card-meta,
.workspace-action-meta,
.card-head {
  gap: 10px;
}

.library-section,
.list-card,
.sidebar-card,
.sidebar-disclosure,
.column-card,
.summary-mini-card,
.stat-card,
.cost-card,
.snapshot-card,
.detail-enrichment-card,
.subpage-card,
.kv-row,
.empty-state-card,
.loading-state,
.sheet-loading-preview,
.sheet-loading-steps .loading-step,
.modal-card,
.sheet-message {
  border-radius: 10px;
  box-shadow: none;
}

.list-card,
.sidebar-card,
.sidebar-disclosure,
.column-card,
.summary-mini-card,
.stat-card,
.cost-card,
.snapshot-card,
.detail-enrichment-card,
.subpage-card,
.kv-row,
.empty-state-card,
.loading-state,
.sheet-loading-preview {
  border: 1px solid var(--line);
  background: var(--panel);
}

.list-card {
  gap: 12px;
  padding: 14px;
}

.list-card-interactive {
  position: relative;
  align-content: start;
  cursor: pointer;
}

.list-card-interactive:hover {
  border-color: var(--line-strong);
  background: #fcfaf6;
}

.list-card-interactive:focus-visible {
  outline: none;
  border-color: #aaa193;
  box-shadow: 0 0 0 2px rgba(31, 35, 40, 0.08);
}

.list-card-heading {
  min-width: 0;
}

.list-card-tools {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.list-card-menu-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.list-card-menu-toggle:hover,
.list-card-menu-toggle[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--panel);
  color: var(--text);
}

.list-card-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  min-width: 168px;
  display: grid;
  gap: 2px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 18px rgba(18, 24, 38, 0.08);
}

.list-card-menu-item {
  width: 100%;
  padding: 8px 10px;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.list-card-menu-item:hover {
  background: var(--panel-alt);
}

.list-card-menu-item.is-danger {
  color: #8a4350;
}

.list-card-menu-item.is-danger:hover {
  background: #fcf4f5;
}

.type-badge-live {
  border-color: #b7cbbf;
  background: #f3f8f4;
  color: #285b4f;
}

.list-card-query-label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.list-card-query {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.workspace-title-stack {
  gap: 4px;
}

.workspace-breadcrumb-button,
.workspace-link-button {
  color: var(--muted);
}

.workspace-title-trigger,
.workspace-title-input {
  font-size: 1.35rem;
}

.workspace-search-prompt {
  font-size: 0.75rem;
}

.workspace-title-input {
  padding: 4px 6px;
  border-color: var(--line);
  border-radius: 8px;
}

.workspace-action-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 300px);
  gap: 10px;
  align-items: end;
  position: relative;
  z-index: 2;
}

.workspace-primary-actions {
  gap: 8px;
}

.workspace-link-button {
  padding: 8px 2px;
  font-size: 12px;
  font-weight: 500;
}

.workspace-link-button:hover {
  color: var(--text);
}

.sheet-pane,
.inspector {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: none;
}

.sheet-pane {
  position: relative;
  z-index: 1;
}

.workspace-body {
  min-height: calc(100vh - 176px);
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.workspace-view.is-landing-trial-focus .workspace-action-row {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-view.is-landing-trial-focus #sheet-title-chip,
.workspace-view.is-landing-trial-focus .sheet-add-menu,
.workspace-view.is-landing-trial-focus #row-economics {
  display: none !important;
}

.workspace-view.is-landing-trial-focus .workspace-body {
  grid-template-columns: minmax(0, 1fr);
}

.workspace-view.is-landing-trial-focus .inspector {
  display: none;
}

.sheet-toolbar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

#sheet-title-chip,
.toolbar-chip {
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: var(--panel-alt);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.sheet-add-menu-panel {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(18, 24, 38, 0.08);
}

.sheet-add-action {
  border-radius: 6px;
  background: var(--panel);
}

.sheet-add-action:hover {
  background: var(--panel-alt);
}

.sheet-surface {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: calc(100vh - 226px);
  background: var(--panel);
}

.sheet-scroll {
  min-height: 0;
}

.sheet-grid {
  font-size: 13px;
}

.sheet-grid th,
.sheet-grid td {
  padding: 7px 12px;
  border-right-color: transparent;
  border-bottom: 1px solid #ece7de;
  background: #ffffff;
}

.sheet-grid thead th,
.row-number-head,
.row-number {
  background: #faf8f3;
}

.sheet-grid tbody tr:nth-child(even) td,
.sheet-grid tbody tr:nth-child(even) .row-number {
  background: #ffffff;
}

.sheet-row:hover td,
.sheet-row:hover .row-number {
  background: #faf6ee;
}

.sheet-row.is-selected td,
.sheet-row.is-selected .row-number,
.sheet-row:focus-within td,
.sheet-row:focus-within .row-number {
  background: #f2ede2;
}

.row-number-head,
.row-number {
  color: #91897d;
}

.sheet-row td,
.sheet-row .row-number {
  position: relative;
  overflow: hidden;
}

.row-number {
  white-space: nowrap;
}

.row-number .row-activity-dot,
.row-number > span {
  vertical-align: middle;
}

.row-activity-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(170, 161, 146, 0.56);
}

.sheet-row.is-working-row td,
.sheet-row.is-working-row .row-number {
  background: #fbf8f1;
}

.sheet-row.is-working-row td::after,
.sheet-row.is-working-row .row-number::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    102deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 34%,
    rgba(232, 221, 198, 0.16) 50%,
    rgba(255, 255, 255, 0) 66%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-140%);
  animation: row-activity-sweep 1.8s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.sheet-row.is-working-row .row-number {
  color: #6f6658;
}

.sheet-row.is-working-row .cell-subtle {
  color: #7b7366;
}

.sheet-row.is-enriching-row td,
.sheet-row.is-enriching-row .row-number {
  box-shadow: inset 2px 0 0 rgba(183, 157, 104, 0.42);
}

.sheet-row.is-discovering-row td,
.sheet-row.is-discovering-row .row-number {
  box-shadow: inset 2px 0 0 rgba(136, 142, 132, 0.34);
}

.sheet-row.is-enriching-row .row-activity-dot {
  background: rgba(190, 151, 76, 0.92);
  box-shadow: 0 0 0 5px rgba(190, 151, 76, 0.12);
  animation: row-activity-dot 1.4s ease-in-out infinite;
}

.sheet-row.is-discovering-row .row-activity-dot {
  background: rgba(123, 136, 114, 0.88);
  box-shadow: 0 0 0 5px rgba(123, 136, 114, 0.12);
  animation: row-activity-dot 1.4s ease-in-out infinite;
}

@keyframes row-activity-sweep {
  0% {
    transform: translateX(-140%);
    opacity: 0;
  }

  18% {
    opacity: 1;
  }

  100% {
    transform: translateX(140%);
    opacity: 0;
  }
}

@keyframes row-activity-dot {
  0%,
  100% {
    transform: scale(0.84);
    opacity: 0.58;
  }

  50% {
    transform: scale(1);
    opacity: 1;
  }
}

.header-meta,
.header-label {
  color: #7d7568;
  letter-spacing: 0.03em;
}

.header-label {
  text-transform: none;
}

.sheet-header-editor {
  color: var(--text);
  font-weight: 600;
}

.sheet-header-editor:focus,
.sheet-editor:focus,
.prompt-shell textarea:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #bdb5a8;
  box-shadow: 0 0 0 2px rgba(31, 35, 40, 0.08);
}

.sheet-empty {
  padding: 16px;
  background: rgba(245, 243, 238, 0.88);
}

.sheet-blank-state {
  width: 100%;
  min-height: calc(100vh - 258px);
}

.empty-state-card {
  max-width: 520px;
  padding: 18px;
}

.sheet-placeholder-cell {
  height: 320px;
  padding: 0;
  background: #ffffff;
  border-bottom-color: transparent;
}

.sheet-loading-state {
  gap: 12px;
}

.sheet-loading-head {
  align-items: center;
  gap: 10px;
}

.loading-status-pill {
  border: 1px solid rgba(133, 122, 102, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.92);
  color: #6f685d;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sheet-loading-copy {
  color: #716a60;
  font-size: 0.92rem;
  letter-spacing: -0.01em;
}

.sheet-loading-preview {
  position: relative;
  overflow: hidden;
  gap: 0;
  padding: 18px;
  border: 1px solid rgba(137, 126, 108, 0.16);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 248, 252, 0.96)),
    linear-gradient(180deg, rgba(244, 247, 252, 0.82), rgba(238, 242, 249, 0.92));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -18px 36px rgba(199, 209, 226, 0.12);
}

.sheet-loading-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 22%, transparent 78%, rgba(217, 225, 238, 0.1));
  pointer-events: none;
}

.sheet-loading-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.sheet-loading-scanline {
  position: absolute;
  inset: 12px auto 12px -24%;
  width: 24%;
  border-radius: 28px;
  background:
    linear-gradient(
      90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.06) 18%,
      rgba(255, 255, 255, 0.72) 42%,
      rgba(233, 238, 247, 0.82) 56%,
      rgba(255, 255, 255, 0.08) 74%,
      transparent 100%
    );
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 0 22px rgba(181, 194, 218, 0.12);
  pointer-events: none;
  opacity: 0.72;
  animation: tableScan 3.4s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.sheet-loading-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1.45fr) minmax(0, 0.92fr) minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1.35fr);
  gap: 14px;
}

.sheet-loading-cell {
  display: flex;
  align-items: center;
  height: 18px;
}

.sheet-loading-cell.is-row-number {
  width: 24px;
}

.sheet-loading-fill {
  display: block;
  height: 11px;
  width: 100%;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(229, 235, 246, 0.96)),
    rgba(222, 229, 241, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 1px 0 rgba(176, 188, 210, 0.1);
}

.sheet-loading-fill.is-tiny {
  width: 14px;
}

.sheet-loading-fill.is-short {
  width: 52%;
}

.sheet-loading-fill.is-medium {
  width: 68%;
}

.sheet-loading-fill.is-wide {
  width: 84%;
}

.sheet-loading-row.is-header .sheet-loading-cell {
  height: 12px;
}

.sheet-loading-row.is-header .sheet-loading-fill {
  height: 8px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(206, 214, 230, 0.56), rgba(206, 214, 230, 0.28)),
    rgba(206, 214, 230, 0.34);
  box-shadow: none;
}

.sheet-search-state {
  width: min(100%, 860px);
  display: grid;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(138, 125, 104, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(24, 32, 51, 0.06);
}

.sheet-search-state.is-quiet {
  width: min(100%, 520px);
  gap: 10px;
  padding: 18px 20px;
  border-color: rgba(138, 125, 104, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: none;
}

.sheet-search-header {
  display: grid;
  gap: 6px;
}

.sheet-search-status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #1f1a16;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sheet-search-dot {
  position: relative;
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #b46d1f;
}

.sheet-search-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(180, 109, 31, 0.22);
  border-radius: inherit;
  animation: searchPulse 1.8s ease-out infinite;
}

.sheet-search-copy {
  margin: 0;
  color: #72695d;
  font-size: 0.9rem;
  line-height: 1.5;
}

.sheet-search-progress {
  position: relative;
  overflow: hidden;
  height: 6px;
  border-radius: 999px;
  background: #ece6dd;
}

.sheet-search-progress-bar {
  display: block;
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b87936, #ead7bd, #596476);
  background-size: 200% 100%;
  animation: loading 1.6s linear infinite;
}

.sheet-search-step-list,
.sheet-search-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sheet-search-step,
.sheet-search-meta-card {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid rgba(138, 125, 104, 0.14);
  border-radius: 12px;
  background: #fbf9f5;
}

.sheet-search-step.is-active {
  border-color: rgba(180, 109, 31, 0.24);
  background: #fffdf9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.sheet-search-step-label,
.sheet-search-meta-card span {
  color: #8b806f;
  font-size: 0.74rem;
  line-height: 1.2;
}

.sheet-search-step-label {
  font-family: var(--mono);
}

.sheet-search-step-copy,
.sheet-search-meta-card {
  min-width: 0;
}

.sheet-search-step-copy strong,
.sheet-search-meta-card strong {
  color: #28221d;
  font-size: 0.86rem;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.sheet-search-step-copy span {
  color: #72695d;
  font-size: 0.78rem;
  line-height: 1.4;
}

.sheet-message {
  border: 1px solid #e4cfd0;
  background: #fcf4f5;
  color: #8a4350;
}

.inspector {
  grid-template-rows: auto auto;
  align-content: start;
}

.inspector-tabs {
  display: flex;
  gap: 16px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.tab-button {
  flex: 0 0 auto;
  min-width: 0;
  padding: 12px 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.tab-button.is-active {
  border-color: var(--text);
  background: transparent;
  color: var(--text);
  box-shadow: none;
}

.tab-panel {
  overflow: visible;
  padding: 8px;
}

.search-control-card {
  gap: 8px;
}

.search-brief-block {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.inspector-suggestion-row {
  gap: 6px;
}

.inspector .sidebar-card,
.inspector .sidebar-disclosure {
  gap: 10px;
  padding: 10px;
  border-color: var(--line);
  border-radius: 8px;
}

.inspector h2,
.inspector h3 {
  font-size: 14px;
  line-height: 1.3;
}

input,
select,
textarea,
.inspector input,
.inspector select,
.inspector textarea {
  min-height: 34px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  box-shadow: none;
}

textarea,
.inspector textarea,
.search-criteria-field textarea {
  min-height: 84px;
  line-height: 1.4;
}

.field span,
.inspector .field span,
.inspector .summary-mini-card span,
.inspector .status-pill,
.inspector .detail-copy,
.inspector .kv-key {
  font-size: 12px;
}

.summary-mini-card,
.stat-card,
.cost-card {
  padding: 7px 9px;
  background: var(--panel-alt);
}

.summary-mini-card strong,
.stat-card strong {
  font-size: 13px;
}

.search-brief-copy {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.compact-summary-links {
  gap: 6px;
}

.details-view {
  gap: 8px;
}

.detail-disclosure {
  padding: 0;
  gap: 0;
}

.detail-disclosure summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
}

.detail-disclosure summary span {
  color: var(--muted);
  font-size: 11px;
}

.detail-disclosure summary strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.detail-disclosure .disclosure-body {
  display: grid;
  gap: 10px;
  margin-top: 0;
  padding: 0 12px 12px;
}

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

.inspector .summary-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.summary-link,
.detail-link,
.citation-pill,
.cell-link-pill {
  color: #4a5e57;
}

.modal-backdrop {
  background: rgba(31, 35, 40, 0.28);
  backdrop-filter: none;
}

.modal-card {
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(18, 24, 38, 0.08);
}

.create-table-modal {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
}

.create-table-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(203, 195, 178, 0.68);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(252, 249, 243, 0.9));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 38px rgba(62, 48, 28, 0.06);
}

.create-table-section-head {
  display: grid;
  gap: 6px;
}

.create-table-section-head h3 {
  font-size: 15px;
}

.create-table-actions {
  justify-content: space-between;
}

.create-table-dropzone {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: start;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.create-table-dropzone:hover,
.create-table-dropzone.is-dragover {
  border-color: #aaa193;
  background: #fcfaf6;
}

.create-table-dropzone:focus-visible {
  outline: none;
  border-color: #aaa193;
  box-shadow: 0 0 0 2px rgba(31, 35, 40, 0.08);
}

.create-table-dropzone-copy {
  display: grid;
  gap: 4px;
}

.create-table-dropzone-copy strong {
  font-size: 14px;
}

.create-table-dropzone-copy span,
.create-table-upload-status {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.create-table-upload-status[data-tone="error"] {
  color: #8a4350;
}

.create-table-footer {
  justify-content: flex-end;
}

.search-refinement-modal {
  position: relative;
  padding-top: 28px;
}

.search-refinement-modal::before,
.search-refinement-modal::after {
  content: "";
  position: absolute;
  inset: 0 28px auto;
  height: calc(100% - 18px);
  border: 1px solid rgba(201, 193, 177, 0.9);
  border-radius: 12px;
  background: #f2ece1;
  z-index: 0;
  pointer-events: none;
}

.search-refinement-modal::after {
  inset: 0 48px auto;
  height: calc(100% - 34px);
  background: #ebe2d4;
}

.search-refinement-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdfa;
}

.search-refinement-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
}

.search-refinement-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #ece3d3;
  overflow: hidden;
}

.search-refinement-progress-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #6e6658;
}

.search-refinement-copy {
  display: grid;
  gap: 8px;
  max-width: 700px;
}

.search-refinement-copy h3 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.search-refinement-copy p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

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

.search-refinement-option {
  appearance: none;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #faf6ee;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.search-refinement-option:hover {
  border-color: #b8ae9d;
  background: #fffaf2;
}

.search-refinement-option:focus-visible {
  outline: none;
  border-color: #6e6658;
  box-shadow: 0 0 0 3px rgba(110, 102, 88, 0.12);
}

.search-refinement-option.is-selected {
  border-color: #6e6658;
  background: #f3eadc;
  box-shadow: inset 0 0 0 1px rgba(110, 102, 88, 0.12);
}

.search-refinement-option-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #ece2d2;
  color: #62594c;
  font-size: 13px;
  font-weight: 700;
}

.search-refinement-option.is-selected .search-refinement-option-mark {
  background: #262b32;
  color: #fffaf1;
}

.search-refinement-option-copy {
  display: grid;
  gap: 6px;
}

.search-refinement-option-copy strong {
  font-size: 1rem;
  line-height: 1.35;
}

.search-refinement-option-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.search-refinement-summary {
  padding: 12px 14px;
  border: 1px solid rgba(201, 193, 177, 0.9);
  border-radius: 12px;
  background: #f7f0e4;
  color: #62594c;
  line-height: 1.45;
}

.search-refinement-actions {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.search-refinement-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.live-table-modal {
  display: grid;
  gap: 14px;
}

.live-table-switch-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
}

.live-table-switch-card.is-active {
  border-color: #ccc3b3;
  background: #f8f5ee;
}

.live-table-switch-copy {
  display: grid;
  gap: 6px;
}

.live-table-switch-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.live-table-switch-icon {
  color: #8b6a11;
  font-size: 14px;
  line-height: 1;
}

.live-table-switch-title strong {
  font-size: 14px;
}

.live-table-switch-track {
  position: relative;
  flex-shrink: 0;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d5cfc3;
}

.live-table-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fffdf9;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.18);
}

.live-table-switch-card.is-active .live-table-switch-track {
  background: #20252d;
}

.live-table-switch-card.is-active .live-table-switch-thumb {
  transform: translateX(16px);
  background: #ffffff;
}

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

.live-table-status-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-alt);
}

.live-table-status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.live-table-status-row span {
  color: var(--muted);
  font-size: 12px;
}

.live-table-status-row strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.live-table-actions {
  justify-content: flex-end;
}

.table-copilot-modal {
  display: grid;
  gap: 14px;
}

.table-copilot-preview {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
}

.table-copilot-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

.table-copilot-modal-shell .modal-card {
  max-width: 860px;
}

.destructive-button {
  border-color: #8a4350;
  background: #8a4350;
}

.destructive-button:hover {
  border-color: #723746;
  background: #723746;
}

.inspector {
  border-color: #d8d1c3;
  border-radius: 10px;
  background: #fffdf9;
  box-shadow: none;
  grid-template-rows: auto auto 1fr;
}

.inspector-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #e5ded1;
  background: rgba(255, 253, 249, 0.88);
}

@media (max-width: 720px) {
  .table-copilot-preview-meta {
    grid-template-columns: 1fr;
  }
}

.inspector-utility-actions {
  gap: 8px;
}

.inspector-utility-row .embed-action-group {
  margin-left: auto;
}

.inspector-export-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 1px solid #d8d1c3;
  border-radius: 999px;
  background: #ffffff;
  color: #746c60;
  font-size: 12px;
  font-weight: 600;
}

.inspector-export-button:hover {
  background: #f8f5ef;
  color: #1f2328;
}

.search-import-row {
  display: flex;
  align-items: center;
  min-height: 0;
}

.search-import-button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
}

.inspector-tabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 12px 16px 0;
  background: transparent;
}

.tab-button {
  padding: 13px 0 11px;
  color: #746c60;
  font-size: 13px;
  font-weight: 500;
}

.tab-button.is-active {
  border-color: #1f2328;
  color: #1f2328;
  font-weight: 600;
}

.tab-panel {
  padding: 14px 16px 16px;
}

.row-panel-header {
  display: grid;
  gap: 4px;
}

.inspector .sidebar-card,
.inspector .sidebar-disclosure {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.search-control-card {
  gap: 12px;
}

.search-brief-block {
  gap: 10px;
  padding-top: 8px;
}

.rail-section-label,
.search-suggestion-label {
  color: #746c60;
  font-size: 11px;
  font-weight: 600;
}

.inspector .card-head {
  align-items: baseline;
  gap: 12px;
}

.inspector h2,
.inspector h3 {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

.inspector .status-pill {
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 6px;
  border-color: #ddd3c3;
  background: #f5f1e8;
  color: #655d51;
  font-size: 12px;
}

.inspector .field span,
.inspector .summary-mini-card span,
.inspector .detail-copy,
.inspector .kv-key {
  color: #746c60;
  font-size: 11px;
}

.inspector input,
.inspector select,
.inspector textarea {
  min-height: 36px;
  padding: 10px 11px;
  border-color: #d8d1c3;
  border-radius: 6px;
  background: #ffffff;
}

.search-criteria-field textarea {
  min-height: 96px;
}

.inspector .table-composer {
  padding: 14px;
  border-color: rgba(203, 195, 178, 0.58);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 245, 238, 0.94));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 14px 28px rgba(64, 45, 18, 0.05);
}

.inspector .table-composer-shell textarea {
  min-height: 112px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
}

.inspector .primary-button,
.inspector .ghost-button {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
}

.inspector .primary-button {
  background: #1f2328;
  box-shadow: none;
}

.inspector .primary-button:hover {
  background: #161a1e;
}

.inspector .ghost-button {
  border-color: #d8d1c3;
  background: #ffffff;
}

.inspector .ghost-button:hover {
  background: #f8f5ef;
}

.inspector .prompt-library {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.inspector .prompt-card-compact {
  gap: 8px;
  padding: 10px 11px;
  border-radius: 10px;
  border-color: #d8d1c3;
  background: #ffffff;
  color: #423d34;
  box-shadow: none;
}

.inspector .prompt-card-compact:hover {
  border-color: #cbc1b0;
  background: #f7f3ec;
  color: #1f2328;
}

.inspector .prompt-card-compact p {
  font-size: 12px;
  line-height: 1.35;
}

.inspector .prompt-card-compact .prompt-card-title {
  font-size: 0.88rem;
}

.inspector .prompt-card-compact .recipe-signal {
  min-height: 20px;
  padding: 0 7px;
  border-color: #e0d7c9;
  background: #f5f1e8;
  color: #6a6357;
  font-size: 0.66rem;
}

.inspector .empty-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.inspector .summary-copy,
.inspector .detail-copy {
  color: #5d564a;
  font-size: 13px;
  line-height: 1.45;
}

.row-empty-state {
  padding: 4px 0 0;
  color: #746c60;
}

.row-detail-section + .row-detail-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e5ded1;
}

.row-detail-list {
  gap: 0;
}

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

.simple-link-row {
  color: #3f4c45;
  text-decoration: none;
}

.simple-link-row:hover {
  color: #1f2328;
  text-decoration: underline;
}

.inspector .summary-grid,
.inspector .stat-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid #e5ded1;
}

.inspector .summary-mini-card,
.inspector .stat-card,
.inspector .cost-card {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #e5ded1;
  border-radius: 0;
  background: transparent;
}

.inspector .summary-mini-card strong,
.inspector .stat-card strong {
  margin-top: 2px;
  font-size: 13px;
}

.inspector .cost-summary,
.inspector .cost-breakdown-list,
.inspector .kv-list,
.inspector .citation-list,
.inspector .subpage-list,
.inspector .enrichment-detail-list {
  gap: 0;
}

.inspector .cost-meta-row,
.inspector .cost-line {
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5ded1;
}

.inspector .banner-note {
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid #e5ded1;
  border-radius: 0;
  background: transparent;
  color: #746c60;
}

.inspector .kv-row,
.inspector .snapshot-card,
.inspector .detail-enrichment-card,
.inspector .subpage-card {
  min-width: 0;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #e5ded1;
  border-radius: 0;
  background: transparent;
}

.inspector .kv-key,
.inspector .kv-value,
.inspector .detail-value,
.inspector .summary-copy,
.inspector .detail-copy,
.inspector .simple-link-row {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.inspector .type-badge {
  padding: 3px 6px;
  border-radius: 6px;
  background: #f5f1e8;
  color: #655d51;
  font-size: 10px;
}

.inspector .summary-link,
.inspector .detail-link,
.inspector .citation-pill {
  color: #3f4c45;
}

.inspector .citation-pill {
  padding: 7px 10px;
  border-radius: 6px;
  border-color: #d8d1c3;
  background: #ffffff;
}

.inspector .citation-pill:hover,
.inspector .detail-link:hover,
.inspector .summary-link:hover {
  background: transparent;
  color: #1f2328;
}

@media (max-width: 1180px) {
  .workspace {
    padding-inline: 16px;
  }

  .home-search-shell,
  .workspace-action-row,
  .workspace-body {
    grid-template-columns: 1fr;
  }

  .workspace-action-panel {
    justify-content: flex-start;
  }

  .locked-search-head,
  .suggested-tech-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 0 12px 12px;
  }

  .workspace-header,
  .app-header,
  .app-header.is-home,
  .app-shell:not(.is-home) .app-header {
    padding: 12px 0 10px;
  }

  .home-hero,
  .library-section,
  .app-shell.is-home .home-hero,
  .app-shell.is-home .library-section {
    padding: 16px;
  }

  .home-template-grid,
  .app-shell.is-home .home-template-grid {
    grid-template-columns: 1fr;
  }

  .create-table-modal {
    grid-template-columns: 1fr;
  }

  .search-refinement-panel {
    padding: 18px;
  }

  .search-refinement-options {
    grid-template-columns: 1fr;
  }

  .search-refinement-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .search-refinement-secondary {
    justify-content: space-between;
  }

  .live-table-settings-grid {
    grid-template-columns: 1fr;
  }

  .live-table-switch-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .live-table-control-group {
    width: 100%;
  }

  .live-toggle-button {
    flex: 1 1 auto;
  }

  .workspace-header-copy,
  .workspace-breadcrumb-row,
  .workspace-action-meta,
  .search-panel-actions {
    align-items: stretch;
  }

  .workspace-header-copy {
    gap: 12px;
  }

  .workspace-action-meta,
  .inspector-utility-row {
    flex-direction: column;
    align-items: stretch;
  }

  .inspector-utility-actions {
    width: 100%;
  }

  .home-search-shell,
  .app-shell.is-home .home-search-shell {
    grid-template-columns: 1fr;
  }

  .workspace-title-trigger,
  .workspace-title-input {
    width: 100%;
    max-width: 100%;
    font-size: 1.15rem;
  }

  .workspace-search-prompt {
    max-width: 100%;
    font-size: 0.72rem;
  }

  .workspace-link-button {
    justify-content: center;
    width: 100%;
    padding-inline: 12px;
  }

  .workspace-secondary-button,
  .inspector-export-button {
    width: 100%;
    justify-content: center;
  }

  .inspector-tabs {
    gap: 12px;
    overflow-x: auto;
  }

  .sheet-surface {
    min-height: 440px;
  }
}

.embed-action-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 0;
}

.embed-send-button {
  min-height: 36px;
}

.embed-status {
  max-width: 320px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: right;
}

.embed-status[data-tone="working"] {
  color: #355ab0;
}

.embed-status[data-tone="success"] {
  color: #285b4f;
}

.embed-status[data-tone="error"] {
  color: #a2493e;
}

body.embed-mode #save-workspace,
body.embed-mode #export-button {
  display: none;
}

body.embed-mode .workspace {
  padding: 0;
}

body.embed-mode .workspace-header {
  border-top: 0;
  border-left: 0;
  border-right: 0;
  border-radius: 0 0 18px 18px;
}

body.embed-mode .home-view,
body.embed-mode .dashboard-view,
body.embed-mode .workspace-view {
  width: 100%;
}

body.embed-mode .home-hero,
body.embed-mode .library-section {
  border-radius: 18px 18px 0 0;
}

body.embed-surface-mode {
  background: transparent;
  --shadow: none;
  --embed-head-bg: color-mix(in oklab, var(--panel-alt) 82%, var(--panel) 18%);
  --embed-index-bg: color-mix(in oklab, var(--panel-alt) 52%, var(--panel) 48%);
  --embed-row-alt: color-mix(in oklab, var(--panel-alt) 34%, var(--panel) 66%);
  --embed-row-hover: color-mix(in oklab, var(--surface-hover, var(--panel-alt)) 58%, var(--panel) 42%);
  --embed-row-selected: color-mix(in oklab, var(--accent-soft, var(--panel-alt)) 70%, var(--panel) 30%);
  --embed-focus: color-mix(in oklab, var(--blue) 34%, transparent);
  --embed-avatar-bg: color-mix(in oklab, var(--accent-soft, var(--panel-alt)) 72%, var(--panel) 28%);
  --embed-avatar-text: color-mix(in oklab, var(--text) 72%, var(--muted) 28%);
}

body.embed-surface-mode[data-embed-theme="dark"] {
  color-scheme: dark;
}

body.embed-surface-mode:not([data-embed-theme="dark"]) {
  color-scheme: light;
}

body.embed-surface-mode .workspace {
  min-height: 0;
  padding: 0;
  gap: 0;
}

body.embed-surface-mode .workspace-header,
body.embed-surface-mode .workspace-action-row,
body.embed-surface-mode .inspector-tabs,
body.embed-surface-mode .search-panel-actions {
  display: none !important;
}

body.embed-surface-mode .workspace-view {
  width: 100%;
  margin: 0;
}

body.embed-surface-mode .workspace-body {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

body.embed-surface-mode .sheet-pane,
body.embed-surface-mode .inspector {
  border: 0;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
}

body.embed-surface-mode .inspector {
  display: none;
}

body.embed-surface-mode .sheet-pane {
  border-right: 0;
}

body.embed-surface-mode .sheet-surface,
body.embed-surface-mode .sheet-scroll,
body.embed-surface-mode .sheet-empty {
  background: var(--panel);
}

body.embed-surface-mode .sheet-grid thead th {
  background: var(--embed-head-bg);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

body.embed-surface-mode .sheet-grid td,
body.embed-surface-mode .sheet-grid th,
body.embed-surface-mode .sheet-grid tr {
  border-color: var(--line);
}

body.embed-surface-mode .sheet-grid td,
body.embed-surface-mode .sheet-grid .sheet-cell,
body.embed-surface-mode .sheet-grid .sheet-header {
  color: var(--text);
  background: var(--panel);
}

body.embed-surface-mode .sheet-grid th,
body.embed-surface-mode .sheet-grid td {
  padding: 12px 14px;
}

body.embed-surface-mode .row-number-head,
body.embed-surface-mode .row-number {
  background: var(--embed-index-bg);
  color: var(--muted);
}

body.embed-surface-mode .sheet-grid tbody tr:nth-child(even) td,
body.embed-surface-mode .sheet-grid tbody tr:nth-child(even) .row-number {
  background: var(--embed-row-alt);
}

body.embed-surface-mode .sheet-grid tbody .sheet-row:hover td,
body.embed-surface-mode .sheet-grid tbody .sheet-row:hover .row-number {
  background: var(--embed-row-hover);
}

body.embed-surface-mode .sheet-row.is-selected td,
body.embed-surface-mode .sheet-row.is-selected .row-number,
body.embed-surface-mode .sheet-row:focus-within td,
body.embed-surface-mode .sheet-row:focus-within .row-number {
  background: var(--embed-row-selected);
}

body.embed-surface-mode .header-meta,
body.embed-surface-mode .entity-pill {
  display: none;
}

body.embed-surface-mode .header-label {
  margin-top: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

body.embed-surface-mode .sheet-header {
  min-width: 190px;
}

body.embed-surface-mode .sheet-cell {
  min-width: 190px;
}

body.embed-surface-mode .sheet-cell.is-input-cell {
  padding: 10px 14px;
}

body.embed-surface-mode .sheet-cell.is-enrichment-cell {
  background: var(--panel);
}

body.embed-surface-mode .cell-subtle,
body.embed-surface-mode .cell-link-row {
  display: none;
}

body.embed-surface-mode .sheet-editor,
body.embed-surface-mode .sheet-header-editor {
  padding: 4px 0;
  min-height: 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.embed-surface-mode .sheet-editor,
body.embed-surface-mode .sheet-header-editor,
body.embed-surface-mode input,
body.embed-surface-mode select,
body.embed-surface-mode textarea {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--text);
}

body.embed-surface-mode .sheet-editor:focus,
body.embed-surface-mode .sheet-header-editor:focus {
  background: transparent;
  box-shadow: inset 0 -2px 0 var(--embed-focus);
}

body.embed-surface-mode .empty-state-card,
body.embed-surface-mode .column-card,
body.embed-surface-mode .snapshot-card,
body.embed-surface-mode .detail-enrichment-card,
body.embed-surface-mode .subpage-card,
body.embed-surface-mode .kv-row,
body.embed-surface-mode .citation-pill,
body.embed-surface-mode .cell-link-pill {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--text);
  box-shadow: none;
}

body.embed-surface-mode .placeholder-copy p,
body.embed-surface-mode .summary-copy,
body.embed-surface-mode .detail-copy,
body.embed-surface-mode .field span,
body.embed-surface-mode .kv-key,
body.embed-surface-mode .snapshot-meta,
body.embed-surface-mode .search-suggestion-label {
  color: var(--muted);
}

body.embed-surface-mode .inspector .sidebar-card,
body.embed-surface-mode .inspector .sidebar-disclosure {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.embed-surface-mode .inspector .ghost-button,
body.embed-surface-mode .prompt-chip {
  border-color: var(--line);
  background: var(--panel-alt);
  color: var(--text);
}

body.embed-surface-mode .sheet-loading-state.is-quiet {
  gap: 0;
}

body.embed-surface-mode .sheet-loading-state.is-quiet .sheet-loading-preview {
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.embed-surface-mode .sheet-search-state.is-quiet {
  width: 100%;
  padding: 16px 0 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.embed-surface-mode .placeholder-copy.is-quiet {
  padding: 20px 0;
}

body.embed-surface-mode .placeholder-copy.is-quiet strong {
  display: none;
}

body.embed-surface-mode .placeholder-copy.is-quiet p {
  margin: 0;
}

body.embed-surface-mode .inspector .ghost-button:hover,
body.embed-surface-mode .prompt-chip:hover,
body.embed-surface-mode .cell-link-pill:hover,
body.embed-surface-mode .citation-pill:hover,
body.embed-surface-mode .detail-link:hover,
body.embed-surface-mode .summary-link:hover {
  background: var(--surface-hover, var(--panel-alt));
}

body.embed-surface-mode .inspector .primary-button {
  background: var(--blue);
  color: var(--accent-foreground, var(--panel));
}

body.embed-surface-mode .inspector .primary-button:hover {
  background: var(--blue-strong);
}

body.embed-surface-mode .live-table-summary,
body.embed-surface-mode .embed-status[data-tone="success"] {
  color: var(--green);
}

body.embed-surface-mode .embed-status[data-tone="working"] {
  color: var(--blue);
}

body.embed-surface-mode .embed-status[data-tone="error"] {
  color: var(--danger, #ff9c92);
}

body.embed-surface-mode .inspector {
  padding: 0;
}

body.embed-surface-mode .inspector .sidebar-card,
body.embed-surface-mode .inspector .sidebar-disclosure {
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 18px 18px 16px;
}

body.embed-surface-mode .inspector h2,
body.embed-surface-mode .inspector h3 {
  font-size: 0.9rem;
  font-weight: 600;
}

body.embed-surface-mode .inspector input,
body.embed-surface-mode .inspector select,
body.embed-surface-mode .inspector textarea {
  border-radius: 10px;
}

body.embed-surface-mode .entity-avatar {
  background: var(--embed-avatar-bg);
  color: var(--embed-avatar-text);
}

@media (max-width: 760px) {
  .embed-action-group {
    align-items: stretch;
  }

  .embed-status {
    max-width: none;
    text-align: left;
  }

  body.embed-surface-mode .workspace-body {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
}

.site-footer-copy {
  display: grid;
  gap: 6px;
  max-width: 480px;
}

.site-footer-copy strong {
  font-size: 0.95rem;
  font-weight: 600;
}

.site-footer-copy p {
  color: var(--muted);
  line-height: 1.5;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.site-footer-links a,
.legal-nav a,
.legal-home-link {
  color: var(--text);
  text-decoration: none;
}

.site-footer-links a:hover,
.legal-nav a:hover,
.legal-home-link:hover {
  text-decoration: underline;
}

.legal-body {
  min-height: 100vh;
}

.legal-shell {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  gap: 18px;
}

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.legal-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #1d2638;
  color: white;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}

.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
}

.legal-page {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  gap: 24px;
}

.legal-page header,
.legal-section,
.contact-grid {
  display: grid;
  gap: 12px;
}

.legal-page header p,
.legal-section p,
.legal-section li,
.contact-card p,
.contact-card li {
  color: var(--muted);
  line-height: 1.6;
}

.legal-page ul,
.contact-card ul {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-alt);
}

.legal-note {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f4f6fb;
  color: var(--muted);
}

@media (max-width: 760px) {
  .table-composer-footer,
  .create-table-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .table-composer-footer-leading {
    width: 100%;
  }

  .home-search-shell-picker-group {
    width: 100%;
  }

  .table-composer-footer .tech-picker,
  .home-search-shell-picker-group .tech-picker,
  .create-table-actions .tech-picker {
    width: 100%;
  }

  .table-composer-footer .tech-picker-trigger,
  .home-search-shell-picker-group .tech-picker-trigger,
  .create-table-actions .tech-picker-trigger {
    width: 100%;
  }

  .site-footer,
  .legal-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer-links {
    justify-content: flex-start;
  }
}

@keyframes home-chip-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes home-search-sheen {
  0%,
  100% {
    transform: translateX(-42%) rotate(12deg);
    opacity: 0.16;
  }

  50% {
    transform: translateX(154%) rotate(12deg);
    opacity: 0.34;
  }
}

@keyframes home-light-drift {
  0%,
  100% {
    transform: translate3d(-2%, -1%, 0);
    opacity: 0.08;
  }

  50% {
    transform: translate3d(2%, 2%, 0);
    opacity: 0.14;
  }
}

.app-shell.is-home {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0;
  padding: 0 0 24px;
  background:
    linear-gradient(180deg, #090d13 0%, #0d1219 52%, #0a0f15 100%);
}

.app-shell.is-home::before,
.app-shell.is-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.app-shell.is-home::before {
  z-index: 0;
  background:
    radial-gradient(560px circle at 50% 24%, rgba(244, 247, 252, 0.11), transparent 52%),
    radial-gradient(460px circle at 18% 16%, rgba(157, 118, 86, 0.05), transparent 40%),
    radial-gradient(520px circle at 82% 12%, rgba(120, 133, 151, 0.045), transparent 42%),
    linear-gradient(90deg, transparent 0%, rgba(242, 245, 250, 0.008) 50%, transparent 100%);
  background-repeat: no-repeat;
  animation: home-light-drift 18s ease-in-out infinite;
}

.app-shell.is-home::after {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 40%, transparent 26%, rgba(6, 9, 14, 0.34) 100%),
    linear-gradient(180deg, rgba(5, 7, 11, 0) 0%, rgba(5, 7, 11, 0.24) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: auto, auto, 220px 220px;
  background-repeat: no-repeat, no-repeat, repeat;
  opacity: 0.46;
}

.app-header.is-home,
.app-shell.is-home .home-view,
.app-shell.is-home .site-footer {
  position: relative;
  z-index: 1;
}

.app-header.is-home {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 12px 32px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.app-header.is-home .title-cluster {
  gap: 16px;
}

.app-header.is-home .header-kicker {
  display: none;
}

.app-header.is-home h1 {
  color: rgba(244, 247, 251, 0.96);
  font-size: 1.64rem;
  font-weight: 600;
  letter-spacing: -0.055em;
}

.app-header.is-home .brand-mark {
  background: linear-gradient(135deg, #ff8e69 0%, #be8168 58%, #6d7c8a 100%);
  box-shadow: 0 10px 24px rgba(8, 10, 14, 0.24);
}

.app-header.is-home .ghost-button {
  min-height: 40px;
  border-radius: 12px;
  padding: 0 14px;
  background: rgba(248, 250, 253, 0.028);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(241, 244, 248, 0.72);
  backdrop-filter: blur(10px);
}

.app-header.is-home .ghost-button:hover {
  background: rgba(248, 250, 253, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-header.is-home .header-nav-link {
  color: rgba(241, 244, 248, 0.7);
}

.app-header.is-home .header-secondary {
  gap: 26px;
}

.app-header.is-home .header-account {
  gap: 10px;
}

.app-header.is-home .header-nav-link:hover {
  color: rgba(248, 250, 253, 0.96);
}

.app-header.is-home .status-pill.header-credit-pill,
.app-header.is-home .status-pill.header-credit-pill.is-credit,
.app-header.is-home #trial-pill.header-credit-pill,
.app-header.is-home #trial-pill.header-credit-pill.is-credit {
  min-height: 40px;
  padding: 0 13px;
  border-color: rgba(215, 196, 170, 0.18);
  background: linear-gradient(
    180deg,
    rgba(255, 248, 240, 0.08) 0%,
    rgba(218, 201, 177, 0.05) 100%
  );
  color: rgba(241, 234, 225, 0.92);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 8px 20px rgba(3, 5, 10, 0.12);
  backdrop-filter: blur(10px);
}

.app-header.is-home .status-pill.header-credit-pill:hover,
.app-header.is-home #trial-pill.header-credit-pill:hover {
  border-color: rgba(230, 211, 184, 0.26);
  background: linear-gradient(
    180deg,
    rgba(255, 249, 242, 0.12) 0%,
    rgba(226, 208, 184, 0.08) 100%
  );
}

.app-header.is-home #trial-pill.trial-pill.has-limit {
  border-color: rgba(220, 178, 108, 0.28);
  background: linear-gradient(
    180deg,
    rgba(186, 123, 43, 0.24) 0%,
    rgba(122, 78, 28, 0.18) 100%
  );
  color: rgba(255, 242, 224, 0.98);
}

.app-header.is-home .header-credit-icon {
  color: rgba(229, 187, 118, 0.92);
}

.app-header.is-home .header-credit-value {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.app-header.is-home #auth-session-button {
  border-color: rgba(255, 244, 235, 0.14);
  background: linear-gradient(
    180deg,
    rgba(255, 249, 244, 0.94) 0%,
    rgba(236, 228, 220, 0.88) 100%
  );
  color: rgba(19, 24, 34, 0.94);
  box-shadow:
    0 12px 28px rgba(7, 10, 15, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.app-header.is-home #auth-session-button:hover {
  border-color: rgba(255, 244, 235, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 252, 248, 0.98) 0%,
    rgba(241, 232, 224, 0.92) 100%
  );
}

.app-header.is-home #auth-session-button.is-avatar {
  border: 0;
  background: transparent;
}

.app-header.is-home #auth-session-button.is-avatar:hover {
  background: transparent;
}

.app-header.is-home .header-account-avatar {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(17, 24, 39, 0.92);
}

.app-header.is-home .header-account-chevron {
  color: rgba(241, 244, 248, 0.62);
}

.app-shell.is-home .home-view {
  position: relative;
  width: min(100%, 1440px);
  min-height: calc(100vh - 40px);
  margin: 0 auto;
  padding: 28px 32px 112px;
  align-content: center;
}

.app-shell.is-home .home-hero {
  position: relative;
  width: 100%;
  min-height: min(820px, calc(100vh - 108px));
  align-content: center;
  justify-items: center;
  gap: 16px;
  padding: 20px 0 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.app-shell.is-home .home-hero::before,
.app-shell.is-home .home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-shell.is-home .home-hero::before {
  top: 64px;
  left: 50%;
  width: min(100%, 1180px);
  height: 460px;
  z-index: -1;
  border: none;
  border-radius: 999px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.016) 46%, transparent 76%);
  box-shadow: none;
}

.app-shell.is-home .home-hero::after {
  content: none;
}

.app-shell.is-home .home-title-block {
  width: min(100%, 760px);
  justify-items: center;
  gap: 12px;
  margin: -10px 0 clamp(28px, 4.2vw, 44px);
}

.app-shell.is-home .home-hero h2 {
  width: auto;
  max-width: 680px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.6rem, 4.8vw, 3.9rem);
  line-height: 0.98;
  letter-spacing: -0.074em;
  text-align: center;
  text-wrap: balance;
}

.app-shell.is-home .home-hero .hero-copy {
  max-width: 520px;
  color: rgba(239, 243, 248, 0.78);
  font-size: 0.82rem;
  line-height: 1.58;
  letter-spacing: -0.006em;
}

.app-shell.is-home .home-search-shell {
  --canvas-glow-x: 50%;
  --canvas-glow-y: 36%;
  --canvas-sheen-shift: -42%;
  width: min(100%, 1120px);
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(17, 21, 30, 0.88), rgba(10, 14, 21, 0.94)) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(177, 133, 90, 0.16), rgba(119, 135, 151, 0.12), rgba(255, 255, 255, 0.04)) border-box;
  box-shadow:
    0 26px 72px rgba(3, 5, 10, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.app-shell.is-home .home-search-shell.is-tech-picker-open {
  overflow: visible;
  z-index: 18;
}

.app-shell.is-home .home-search-shell::before,
.app-shell.is-home .home-search-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-shell.is-home .home-search-shell::before {
  inset: 10px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0));
  opacity: 0.68;
  mask: none;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .home-search-shell::after {
  inset: -24%;
  background:
    radial-gradient(280px circle at var(--canvas-glow-x) var(--canvas-glow-y), rgba(244, 247, 252, 0.12), transparent 72%);
  opacity: 0;
  transition: opacity 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .home-search-shell.is-hovering::after,
.app-shell.is-home .home-search-shell:hover::after,
.app-shell.is-home .home-search-shell:focus-within::after {
  opacity: 1;
}

.app-shell.is-home .home-search-shell.is-tech-picker-open::before,
.app-shell.is-home .home-search-shell.is-tech-picker-open::after,
.app-shell.is-home .home-search-shell.is-tech-picker-open .home-search-sheen {
  opacity: 0;
}

.app-shell.is-home .home-search-sheen {
  position: absolute;
  inset: -18% auto auto -18%;
  width: 56%;
  height: 160%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.045), transparent);
  filter: blur(12px);
  opacity: 0.28;
  transform: translateX(var(--canvas-sheen-shift)) rotate(12deg);
  animation: home-search-sheen 9s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  pointer-events: none;
}

.app-shell.is-home .home-prompt-shell {
  position: relative;
  width: 100%;
  min-height: 68px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: none;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0.002)),
    linear-gradient(180deg, rgba(9, 12, 18, 0.08), rgba(9, 12, 18, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 -10px 18px rgba(4, 6, 10, 0.045);
  backdrop-filter: blur(12px);
}

.app-shell.is-home .home-prompt-shell::before {
  content: "";
  position: absolute;
  pointer-events: none;
}

.app-shell.is-home .home-prompt-shell::before {
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(249, 251, 254, 0.045), transparent 22%),
    radial-gradient(circle at 50% 0%, rgba(246, 248, 252, 0.04), transparent 58%);
  opacity: 0.34;
}

.app-shell.is-home .home-prompt-shell input,
.app-shell.is-home .home-prompt-shell textarea {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 0;
  height: 60px;
  padding: 0;
  border: none;
  background: transparent;
  color: rgba(252, 254, 255, 1);
  font-size: clamp(1rem, 1.08vw, 1.12rem);
  line-height: 1;
  letter-spacing: -0.012em;
  text-shadow: 0 0 0 rgba(255, 255, 255, 0.01);
  caret-color: transparent;
}

.app-shell.is-home .home-prompt-shell input::placeholder,
.app-shell.is-home .home-prompt-shell textarea::placeholder {
  color: rgba(233, 238, 246, 0.5);
  font-size: 0.92em;
  line-height: 1;
  letter-spacing: -0.012em;
}

.app-shell.is-home .hero-search-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 164px;
  min-height: 54px;
  border-radius: 14px;
  padding: 0 20px;
  background: linear-gradient(180deg, #f4f7fb 0%, #dfe5ef 100%);
  color: #11141a;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 12px 28px rgba(223, 229, 239, 0.12),
    0 0 24px rgba(197, 160, 122, 0.08);
  transition:
    box-shadow 160ms cubic-bezier(0.22, 1, 0.36, 1),
    background 160ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .hero-search-button:hover {
  background: linear-gradient(180deg, #f7f9fc 0%, #e8edf4 100%);
  color: #111827;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(223, 229, 239, 0.16),
    0 0 30px rgba(208, 169, 126, 0.12);
}

.app-shell.is-home .hero-search-icon {
  color: rgba(60, 68, 81, 0.76);
  transition:
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1),
    color 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .hero-search-button:hover .hero-search-icon {
  transform: translateX(2px);
  color: rgba(31, 38, 48, 0.94);
}

.app-shell.is-home .home-search-shell.is-refinement-loading {
  box-shadow:
    0 30px 84px rgba(3, 5, 10, 0.34),
    0 0 0 1px rgba(207, 180, 141, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.app-shell.is-home .home-search-shell.is-refinement-loading::after {
  opacity: 1;
}

.app-shell.is-home .home-search-shell.is-refinement-loading .home-search-sheen {
  opacity: 0.18;
}

.app-shell.is-home .home-search-shell-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.app-shell.is-home .home-search-shell-picker-group {
  align-items: center;
}

.app-shell.is-home .home-search-shell.is-refinement-loading .home-search-shell-picker-group {
  pointer-events: none;
  opacity: 0.6;
}

.app-shell.is-home .home-search-shell.is-refinement-loading .home-prompt-shell {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.028), rgba(255, 255, 255, 0.01)),
    linear-gradient(180deg, rgba(12, 16, 24, 0.12), rgba(9, 12, 18, 0.03));
}

.app-shell.is-home .home-prompt-shell input:disabled,
.app-shell.is-home .home-prompt-shell textarea:disabled {
  opacity: 0.78;
  cursor: progress;
}

.app-shell.is-home .hero-search-button.is-loading {
  background: linear-gradient(180deg, #ebeff6 0%, #d4dce9 100%);
  color: #18202b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    0 14px 34px rgba(223, 229, 239, 0.18),
    0 0 36px rgba(208, 169, 126, 0.14);
}

.app-shell.is-home .hero-search-button.is-loading .hero-search-icon {
  color: rgba(48, 57, 69, 0.62);
  transform: none;
}

.app-shell.is-home .home-search-progress {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(248, 250, 253, 0.07), rgba(248, 250, 253, 0.03)),
    linear-gradient(180deg, rgba(8, 11, 17, 0.2), rgba(8, 11, 17, 0.06));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 34px rgba(4, 7, 14, 0.14);
}

.app-shell.is-home .home-search-progress-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.app-shell.is-home .home-search-progress-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.app-shell.is-home .home-search-progress-kicker {
  color: rgba(220, 228, 241, 0.68);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-shell.is-home .home-search-progress-copy strong {
  color: rgba(247, 249, 252, 0.96);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.2;
}

.app-shell.is-home .home-search-progress-meta {
  display: grid;
  gap: 4px;
  justify-items: end;
  flex: 0 0 auto;
}

.app-shell.is-home .home-search-progress-step,
.app-shell.is-home .home-search-progress-value {
  color: rgba(224, 231, 242, 0.76);
  font-size: 0.78rem;
  line-height: 1.1;
}

.app-shell.is-home .home-search-progress-value {
  color: rgba(245, 248, 252, 0.94);
  font-weight: 600;
}

.app-shell.is-home .home-search-progress-track {
  position: relative;
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.04),
    inset 0 -1px 2px rgba(0, 0, 0, 0.18);
}

.app-shell.is-home .home-search-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(218, 188, 146, 0.92), rgba(243, 247, 252, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 18px rgba(223, 194, 152, 0.24);
  transition: width 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .home-search-progress-stages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.app-shell.is-home .home-search-progress-stage {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.app-shell.is-home .home-search-progress-stage-bar {
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 180ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .home-search-progress-stage.is-active .home-search-progress-stage-bar,
.app-shell.is-home .home-search-progress-stage.is-complete .home-search-progress-stage-bar {
  background: linear-gradient(90deg, rgba(220, 188, 145, 0.94), rgba(244, 247, 252, 0.96));
  box-shadow: 0 0 14px rgba(223, 194, 152, 0.18);
}

.app-shell.is-home .home-search-progress-stage-label {
  color: rgba(214, 222, 235, 0.62);
  font-size: 0.72rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-shell.is-home .home-search-progress-stage.is-active .home-search-progress-stage-label,
.app-shell.is-home .home-search-progress-stage.is-complete .home-search-progress-stage-label {
  color: rgba(244, 247, 252, 0.92);
}

.app-shell.is-home .home-search-progress-detail {
  margin: 0;
  color: rgba(218, 226, 239, 0.72);
  font-size: 0.8rem;
  line-height: 1.45;
}

.app-shell.is-home .home-search-shell-footer .tech-picker {
  max-width: 220px;
  z-index: 24;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-trigger {
  min-height: 36px;
  gap: 8px;
  padding: 0 12px;
  border-color: rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 250, 253, 0.06), rgba(248, 250, 253, 0.025));
  color: rgba(244, 247, 251, 0.86);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(4, 7, 14, 0.18);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-trigger-label {
  font-size: 0.84rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-trigger:hover,
.app-shell.is-home .home-search-shell-footer .tech-picker-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(248, 250, 253, 0.09), rgba(248, 250, 253, 0.04));
}

.app-shell.is-home .home-search-shell-footer .tech-picker-trigger-badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(245, 247, 251, 0.9);
  font-size: 0.66rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-trigger-chevron {
  color: rgba(240, 244, 248, 0.72);
  font-size: 0.72rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-panel {
  top: calc(100% + 8px);
  left: 0;
  width: min(330px, calc(100vw - 40px));
  padding: 12px;
  gap: 10px;
  border-radius: 18px;
  background: rgba(15, 19, 27, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    0 24px 54px rgba(3, 5, 10, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-kicker {
  display: none;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-title,
.app-shell.is-home .home-search-shell-footer .tech-picker-section-title,
.app-shell.is-home .home-search-shell-footer .tech-picker-item-title {
  color: rgba(246, 248, 252, 0.94);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-title {
  font-size: 0.92rem;
  line-height: 1.2;
  text-align: left;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-helper {
  color: rgba(223, 231, 244, 0.84);
  font-size: 0.72rem;
  line-height: 1.35;
  max-width: none;
  text-align: left;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-head-copy {
  justify-items: start;
  text-align: left;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-count,
.app-shell.is-home .home-search-shell-footer .tech-picker-item-state {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(216, 226, 244, 0.78);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-count {
  padding: 4px 8px;
  font-size: 0.7rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-search-shell,
.app-shell.is-home .home-search-shell-footer .tech-picker-item {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-search-shell {
  min-height: 40px;
  padding: 0 11px;
  border-radius: 14px;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-search-input,
.app-shell.is-home .home-search-shell-footer .tech-picker-item-description,
.app-shell.is-home .home-search-shell-footer .tech-picker-item-opportunity,
.app-shell.is-home .home-search-shell-footer .tech-picker-item-hover-row span,
.app-shell.is-home .home-search-shell-footer .tech-picker-section-meta,
.app-shell.is-home .home-search-shell-footer .tech-picker-empty {
  color: rgba(210, 220, 238, 0.7);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-search-input {
  font-size: 0.9rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-results {
  gap: 10px;
  max-height: min(320px, 42vh);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-selected-chip {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(242, 246, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-selected-chip:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.075);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-selected-chip-x {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(241, 246, 252, 0.9);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-section-head {
  margin-bottom: 6px;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-section-title {
  font-size: 0.8rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item {
  gap: 10px;
  min-height: 0;
  padding: 10px 11px;
  border-radius: 14px;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  font-size: 0.72rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-title {
  font-size: 0.84rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-description {
  font-size: 0.74rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-opportunity {
  font-size: 0.71rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item:hover .tech-picker-item-hover,
.app-shell.is-home .home-search-shell-footer .tech-picker-item:focus-visible .tech-picker-item-hover {
  max-height: 280px;
  border-top-color: rgba(255, 255, 255, 0.08);
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-hover-row strong {
  color: rgba(245, 248, 252, 0.95);
  font-size: 0.68rem;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-hover-row span {
  color: rgba(223, 232, 246, 0.88);
  font-size: 0.74rem;
  line-height: 1.45;
}

.app-shell.is-home .home-search-shell-footer .tech-picker-item-state {
  padding: 4px 7px;
  font-size: 0.68rem;
}

.app-shell.is-home .home-example-block {
  width: min(100%, 1120px);
  position: relative;
  justify-items: stretch;
  gap: 10px;
  margin-top: 112px;
}

.app-shell.is-home .recipe-section-copy {
  width: min(100%, 1120px);
  color: rgba(233, 238, 246, 0.82);
}

.app-shell.is-home .recipe-section-copy h3 {
  color: rgba(247, 250, 253, 0.96);
}

.app-shell.is-home .recipe-section-copy p {
  color: rgba(233, 238, 246, 0.64);
}

.app-shell.is-home .home-recipe-grid {
  width: min(100%, 1120px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.app-shell.is-home .recipe-card-home {
  min-height: 196px;
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.028);
  color: rgba(247, 250, 253, 0.96);
  opacity: 0;
  animation: home-chip-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--recipe-delay, 0ms);
}

.app-shell.is-home .recipe-card-home:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 26px rgba(4, 8, 16, 0.16);
}

.app-shell.is-home .recipe-card-home p {
  color: rgba(233, 238, 246, 0.7);
}

.app-shell.is-home .recipe-card-home .recipe-signal {
  border-color: rgba(255, 255, 255, 0.075);
  background: rgba(255, 255, 255, 0.032);
  color: rgba(233, 238, 246, 0.78);
}

.app-shell.is-home .recipe-card-footer {
  color: rgba(240, 244, 248, 0.78);
}

.app-shell.is-home .home-template-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.app-shell.is-home .home-template-grid .prompt-chip-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.022);
  color: rgba(240, 244, 248, 0.7);
  font-size: 0.71rem;
  text-align: center;
  opacity: 0;
  animation: home-chip-in 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--chip-delay, 0ms);
}

.app-shell.is-home .home-template-grid .prompt-chip-home:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.05);
  color: rgba(245, 247, 251, 0.9);
}

.app-shell.is-home .home-template-grid .prompt-chip-home.is-recommended {
  background: rgba(213, 221, 233, 0.09);
  color: rgba(249, 251, 255, 0.92);
}

.app-shell.is-home .prompt-chip-mark {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(233, 238, 245, 0.64);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.app-shell.is-home .prompt-chip-label {
  white-space: nowrap;
}

.app-shell.is-home .prompt-chip-hint {
  color: rgba(233, 238, 245, 0.38);
  opacity: 0;
  transition:
    opacity 160ms cubic-bezier(0.22, 1, 0.36, 1),
    color 160ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shell.is-home .home-template-grid .prompt-chip-home:hover .prompt-chip-hint {
  opacity: 1;
  color: rgba(245, 247, 251, 0.72);
  transform: translateX(1px);
}

.app-shell.is-home .site-footer {
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: 28px 4px 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  opacity: 0.42;
}

.app-shell.is-home .site-footer-copy strong,
.app-shell.is-home .site-footer-links a {
  color: rgba(246, 248, 253, 0.74);
}

.app-shell.is-home .site-footer-copy p {
  color: rgba(240, 244, 255, 0.42);
}

.app-shell.is-home .site-footer-links a:hover {
  color: rgba(255, 255, 255, 0.92);
}

.home-mobile-menu {
  display: none;
}

@media (max-width: 980px) {
  .app-shell.is-home .home-hero h2 {
    font-size: clamp(2.6rem, 9.8vw, 3.9rem);
  }

  .app-shell.is-home .home-recipe-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app-header.is-home {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px 4px;
    gap: 12px;
  }

  .app-header.is-home .title-cluster {
    flex: 1 1 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
  }

  .app-header.is-home h1 {
    font-size: 1.08rem;
    letter-spacing: -0.05em;
  }

  .app-header.is-home #app-header-title {
    max-width: none;
    overflow: visible;
    text-overflow: clip;
  }

  .app-header.is-home .header-actions-home,
  .app-header.is-home .header-account {
    display: none;
  }

  .app-header.is-home .home-mobile-menu {
    position: relative;
    display: block;
  }

  .app-header.is-home .home-mobile-menu[open] {
    z-index: 5;
  }

  .app-header.is-home .home-mobile-menu-trigger {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: rgba(248, 250, 253, 0.028);
    list-style: none;
    cursor: pointer;
  }

  .app-header.is-home .home-mobile-menu-trigger::-webkit-details-marker {
    display: none;
  }

  .app-header.is-home .home-mobile-menu-trigger span {
    width: 16px;
    height: 1.5px;
    border-radius: 999px;
    background: rgba(244, 247, 251, 0.84);
  }

  .app-header.is-home .home-mobile-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 172px;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: rgba(15, 20, 29, 0.96);
    box-shadow: 0 18px 44px rgba(2, 4, 8, 0.34);
    backdrop-filter: blur(14px);
  }

  .app-header.is-home .home-mobile-menu-action {
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    color: rgba(244, 247, 251, 0.86);
    text-align: left;
  }

  .app-header.is-home .home-mobile-menu-action:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .app-shell.is-home .home-view {
    min-height: calc(100vh - 84px);
    padding: 38px 14px 88px;
  }

  .app-shell.is-home .home-hero {
    min-height: calc(100vh - 168px);
    gap: 16px;
    padding-top: 20px;
  }

  .app-shell.is-home .home-hero::before {
    top: 56px;
    width: min(100%, 360px);
    height: 300px;
  }

  .app-shell.is-home .home-search-shell {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    padding: 9px;
    margin-top: 0;
    border-radius: 18px;
  }

  .app-shell.is-home .home-prompt-shell {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 12px;
  }

  .app-shell.is-home .home-prompt-shell input,
  .app-shell.is-home .home-prompt-shell textarea {
    height: 48px;
    font-size: 0.95rem;
  }

  .app-shell.is-home .home-hero h2 {
    max-width: 320px;
    font-size: clamp(1.82rem, 7.8vw, 2.42rem);
    line-height: 1;
  }

  .app-shell.is-home .home-hero .hero-copy {
    max-width: 282px;
    font-size: 0.78rem;
    color: rgba(236, 240, 246, 0.76);
  }

  .app-shell.is-home .home-title-block {
    margin: -8px 0 28px;
  }

  .app-shell.is-home .home-search-shell-footer {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    margin-top: 0;
  }

  .app-shell.is-home .home-search-progress {
    padding: 13px 14px 14px;
    border-radius: 16px;
  }

  .app-shell.is-home .home-search-progress-head {
    flex-direction: column;
    align-items: stretch;
  }

  .app-shell.is-home .home-search-progress-meta {
    grid-auto-flow: column;
    justify-content: space-between;
    justify-items: stretch;
  }

  .app-shell.is-home .home-search-progress-stages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell.is-home .home-search-shell-footer .tech-picker {
    max-width: none;
  }

  .app-shell.is-home .hero-search-button {
    width: 100%;
    min-width: 132px;
    min-height: 48px;
    padding: 0 16px;
  }

  .app-shell.is-home .home-example-block {
    width: 100%;
    position: relative;
    justify-items: stretch;
    margin-top: 56px;
  }

  .app-shell.is-home .home-example-block::before,
  .app-shell.is-home .home-example-block::after {
    content: none;
  }

  .app-shell.is-home .recipe-section-copy {
    width: 100%;
  }

  .app-shell.is-home .recipe-section-copy h3 {
    font-size: 0.92rem;
  }

  .app-shell.is-home .recipe-section-copy p {
    max-width: 320px;
    font-size: 0.74rem;
  }

  .app-shell.is-home .home-recipe-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .app-shell.is-home .recipe-card-home {
    min-height: 0;
    padding: 14px;
  }

  .app-shell.is-home .site-footer {
    width: calc(100% - 32px);
    margin-top: 72px;
    opacity: 0.38;
  }
}

.app-shell.is-market,
.app-shell.is-report {
  background: #f5f2eb;
}

.app-shell.is-market .app-header,
.app-shell.is-report .app-header {
  background: rgba(245, 242, 235, 0.86);
  backdrop-filter: blur(8px);
}

.app-shell.is-market .header-kicker,
.app-shell.is-report .header-kicker {
  display: none;
}

.app-shell.is-market #app-header-title,
.app-shell.is-report #app-header-title {
  color: #20232a;
}

.app-shell.is-market .brand-mark,
.app-shell.is-report .brand-mark {
  background: #20232a;
  color: #f7f4ee;
}

.app-shell.is-market .primary-button,
.app-shell.is-report .primary-button {
  background: #1f232b;
  color: #f7f4ee;
  border-radius: 10px;
}

.app-shell.is-market .primary-button:hover,
.app-shell.is-report .primary-button:hover {
  background: #15181f;
}

.app-shell.is-market .ghost-button,
.app-shell.is-report .ghost-button {
  border: 1px solid rgba(34, 38, 45, 0.14);
  background: rgba(255, 255, 255, 0.72);
  color: #2d3440;
  border-radius: 10px;
}

.app-shell.is-market .ghost-button:hover,
.app-shell.is-report .ghost-button:hover {
  background: rgba(255, 255, 255, 0.94);
}

.market-view {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 36px 0 88px;
}

.report-view {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 36px 0 88px;
}

.article-shell,
.market-shell,
.report-shell {
  display: grid;
  gap: 0;
}

.article-header {
  display: grid;
  gap: 16px;
  padding: 4px 0 34px;
  border-bottom: 1px solid rgba(39, 34, 27, 0.12);
}

.article-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(78, 69, 57, 0.7);
  font-size: 0.94rem;
}

.article-breadcrumbs a {
  color: inherit;
  text-decoration: none;
}

.article-breadcrumbs a:hover {
  color: #2a241c;
}

.article-context {
  margin: 0;
  color: rgba(78, 69, 57, 0.76);
  font-size: 0.97rem;
  line-height: 1.55;
}

.article-title,
.market-title,
.report-title {
  margin: 0;
  font-family: "Avenir Next", "Helvetica Neue", "IBM Plex Sans", sans-serif;
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.042em;
  color: #1f231f;
  text-wrap: pretty;
}

.article-dek,
.market-summary,
.report-summary {
  margin: 0;
  color: rgba(48, 44, 38, 0.82);
  font-size: clamp(1.14rem, 1.56vw, 1.42rem);
  line-height: 1.58;
}

.article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: rgba(70, 61, 51, 0.72);
  font-size: 0.94rem;
  line-height: 1.5;
}

.article-byline span {
  position: relative;
}

.article-byline span + span::before {
  content: "•";
  margin-right: 16px;
  color: rgba(99, 88, 74, 0.46);
}

.article-standfirst,
.market-methodology-copy,
.report-methodology,
.report-panel-note,
.report-citation-note {
  margin: 0;
  color: rgba(44, 40, 36, 0.78);
  line-height: 1.7;
}

.report-context-line {
  font-size: 0.98rem;
}

.article-supporting-note,
.article-section-note,
.report-data-note {
  margin: 0;
  color: rgba(73, 65, 54, 0.72);
  font-size: 0.94rem;
  line-height: 1.6;
}

.article-section {
  display: grid;
  gap: 16px;
  padding: 30px 0;
  border-bottom: 1px solid rgba(39, 34, 27, 0.12);
}

.article-section:last-child {
  border-bottom: none;
}

.article-section-title {
  margin: 0;
  color: #222620;
  font-size: 1.18rem;
  line-height: 1.34;
  font-weight: 700;
}

.article-section-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px 24px;
}

.article-prose,
.market-analysis-body {
  margin: 0;
  color: rgba(36, 33, 30, 0.86);
  line-height: 1.74;
}

div.article-prose,
.market-analysis-body {
  display: grid;
  gap: 14px;
}

.article-prose p,
.market-analysis-body p {
  margin: 0;
}

.article-list,
.market-analysis-list {
  margin: 2px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #2d302b;
  line-height: 1.68;
}

.article-figure-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-figure {
  margin: 0;
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(39, 34, 27, 0.12);
}

.article-figure-value {
  margin: 0;
  font-size: clamp(2.2rem, 3.1vw, 3.05rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
  color: #1f231f;
}

.article-figure-copy {
  margin: 0;
  display: grid;
  gap: 4px;
}

.article-figure-copy strong {
  color: #232720;
  font-weight: 650;
  line-height: 1.38;
}

.article-figure-copy span {
  color: rgba(66, 59, 50, 0.72);
  line-height: 1.55;
}

.article-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  align-items: center;
}

.article-action-link {
  appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  color: #8b5d1c;
  font: inherit;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
  cursor: pointer;
}

.article-action-link:hover {
  color: #6f4810;
}

.article-action-link-primary::after,
.article-action-link::after {
  content: "↗";
  margin-left: 6px;
  font-size: 0.9em;
}

.market-sample-table-wrap {
  overflow-x: auto;
  border-top: 1px solid rgba(39, 34, 27, 0.12);
  border-bottom: 1px solid rgba(39, 34, 27, 0.12);
}

.market-sample-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.market-sample-table th,
.market-sample-table td {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(39, 34, 27, 0.08);
  text-align: left;
  vertical-align: top;
}

.market-sample-table th {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(76, 67, 56, 0.72);
}

.market-sample-table td {
  color: #262924;
  line-height: 1.58;
}

.market-sample-table tbody tr:last-child td {
  border-bottom: none;
}

.market-blur-cell {
  filter: blur(4px);
  opacity: 0.68;
  user-select: none;
}

.market-sample-lockup {
  margin-top: 0;
}

.market-signal-list,
.article-signal-list,
.report-finding-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: #2d302b;
  line-height: 1.68;
}

.article-related-list {
  display: grid;
  gap: 0;
}

.article-related-link,
.report-market-link {
  display: grid;
  gap: 6px;
  padding: 14px 0;
  border-top: 1px solid rgba(39, 34, 27, 0.1);
  color: inherit;
  text-decoration: none;
  transition: color 140ms ease;
}

.article-related-link:hover,
.report-market-link:hover {
  color: #8b5d1c;
}

.article-related-link strong,
.report-market-link strong {
  color: #222620;
  line-height: 1.36;
}

.article-related-link span,
.report-chart-labels span,
.report-market-link span {
  color: rgba(67, 60, 51, 0.74);
  line-height: 1.58;
}

.app-shell.is-market .site-footer,
.app-shell.is-report .site-footer {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 26px 0 0;
  border: none;
  border-top: 1px solid rgba(27, 31, 38, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  opacity: 0.58;
}

.app-shell.is-market .site-footer-copy,
.app-shell.is-report .site-footer-copy {
  max-width: none;
  flex: 1 1 auto;
}

.app-shell.is-market .site-footer-copy p,
.app-shell.is-report .site-footer-copy p {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .market-view,
  .report-view {
    padding: 18px 14px 80px;
  }

  .article-header {
    padding-bottom: 28px;
  }

  .article-title,
  .market-title,
  .report-title {
    font-size: clamp(2.05rem, 8vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.034em;
  }

  .article-section {
    padding: 24px 0;
  }

  .article-figure-grid,
  .report-chart-row {
    grid-template-columns: 1fr;
  }

  .article-byline span + span::before {
    content: "";
    margin-right: 0;
  }

  .article-action-row {
    gap: 10px 18px;
  }

  .market-sample-table {
    min-width: 620px;
  }

  .app-shell.is-market .site-footer,
  .app-shell.is-report .site-footer {
    width: 100%;
    margin-top: 24px;
  }

  .app-shell.is-market .site-footer-copy p,
  .app-shell.is-report .site-footer-copy p {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-shell.is-home .recipe-card-home,
  .app-shell.is-home .prompt-chip-home,
  .app-shell.is-home .home-search-sheen,
  .app-shell.is-home::before,
  .sheet-search-dot::after,
  .sheet-search-progress-bar,
  .sheet-loading-scanline,
  .sheet-row.is-working-row td::after,
  .sheet-row.is-working-row .row-number::after,
  .sheet-row.is-enriching-row .row-activity-dot,
  .sheet-row.is-discovering-row .row-activity-dot {
    animation: none;
  }

  .app-shell.is-home .hero-search-icon,
  .app-shell.is-home .prompt-chip-hint,
  .app-shell.is-home .recipe-card-home {
    transition: none;
  }
}

@media (max-width: 760px) {
  .sheet-search-state {
    width: min(100%, 100%);
    padding: 18px;
  }

  .sheet-search-step-list,
  .sheet-search-meta {
    grid-template-columns: 1fr;
  }
}

.report-chart-list {
  display: grid;
  gap: 16px;
}

.report-chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(140px, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.report-chart-labels {
  display: grid;
  gap: 4px;
}

.report-chart-labels strong {
  color: #232720;
  font-weight: 600;
}

.report-chart-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(39, 34, 27, 0.08);
  overflow: hidden;
}

.report-chart-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(154, 104, 28, 0.9), rgba(210, 177, 129, 0.82));
}

.report-chart-value {
  color: #363128;
  font-variant-numeric: tabular-nums;
}

.report-citation {
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid rgba(154, 104, 28, 0.34);
  color: #202420;
  font-size: 1.06rem;
  line-height: 1.7;
}

.preview-summary-card {
  display: grid;
  gap: 16px;
}

.preview-summary-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(121, 134, 163, 0.92);
}

.preview-summary-card h3 {
  margin: 6px 0 10px;
  font-size: 1.02rem;
  line-height: 1.2;
}

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

.preview-summary-stat {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(127, 145, 176, 0.12);
  color: rgba(222, 228, 241, 0.92);
  font-size: 0.78rem;
  font-weight: 600;
}

.preview-empty-state {
  border-style: solid;
  border-color: rgba(125, 143, 176, 0.18);
}

.preview-unlock-button {
  min-width: 168px;
}

.is-locked-action {
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(144, 157, 185, 0.18);
}

.is-locked-action::after {
  content: none;
}

.sheet-header.is-preview-locked {
  background: color-mix(in oklab, var(--panel-alt) 78%, var(--panel) 22%);
}

.header-preview-lock {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line-strong) 82%, transparent);
  background: color-mix(in oklab, var(--panel) 76%, var(--panel-alt) 24%);
  color: color-mix(in oklab, var(--text) 74%, var(--muted) 26%);
  font-size: 0.68rem;
  font-weight: 600;
}

.sheet-cell.is-preview-cell {
  background: transparent;
  vertical-align: middle;
}

.sheet-cell.is-preview-cell .cell-value {
  color: color-mix(in oklab, var(--text) 92%, var(--muted) 8%);
}

.sheet-row.is-preview-row .sheet-cell.is-preview-cell .cell-subtle {
  color: color-mix(in oklab, var(--muted) 88%, var(--text) 12%);
}

.sheet-cell.is-preview-locked-cell .cell-value {
  color: color-mix(in oklab, var(--text) 80%, var(--muted) 20%);
  letter-spacing: 0.02em;
}

.sheet-row.is-preview-row .sheet-cell.is-preview-locked-cell {
  background: color-mix(in oklab, var(--panel-alt) 72%, var(--panel) 28%);
}

.sheet-row.is-preview-row .sheet-cell.is-preview-cell.is-entity-cell .cell-value {
  color: var(--text);
  font-weight: 600;
}

.preview-lock-pill {
  display: inline-flex;
  align-items: center;
  margin-right: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--line) 88%, transparent);
  background: color-mix(in oklab, var(--panel) 68%, var(--panel-alt) 32%);
  color: color-mix(in oklab, var(--text) 70%, var(--muted) 30%);
  font-size: 0.68rem;
  font-weight: 600;
}

.sheet-row.is-preview-row:hover td,
.sheet-row.is-preview-row:hover .row-number {
  background: color-mix(in oklab, var(--panel-alt) 42%, var(--panel) 58%);
}

.sheet-row.is-preview-row.is-selected td,
.sheet-row.is-preview-row.is-selected .row-number,
.sheet-row.is-preview-row:focus-within td,
.sheet-row.is-preview-row:focus-within .row-number {
  background: color-mix(in oklab, var(--panel-alt) 56%, var(--panel) 44%);
}

body.embed-surface-mode .sheet-row.is-preview-row:hover td,
body.embed-surface-mode .sheet-row.is-preview-row:hover .row-number {
  background: color-mix(in oklab, var(--panel-alt) 38%, var(--panel) 62%);
}

body.embed-surface-mode .sheet-row.is-preview-row.is-selected td,
body.embed-surface-mode .sheet-row.is-preview-row.is-selected .row-number,
body.embed-surface-mode .sheet-row.is-preview-row:focus-within td,
body.embed-surface-mode .sheet-row.is-preview-row:focus-within .row-number {
  background: color-mix(in oklab, var(--panel-alt) 48%, var(--panel) 52%);
}

.sheet-footer-button.is-preview-lock {
  background: rgba(241, 245, 255, 0.96);
  color: rgba(18, 23, 34, 0.96);
}

.sheet-footer-quantity-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sheet-footer-quantity {
  display: inline-flex;
  align-items: stretch;
  min-width: 78px;
  border: 1px solid rgba(197, 188, 172, 0.9);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.sheet-more-rows-input {
  width: 48px;
  border: 0;
  background: transparent;
  padding: 0 0 0 12px;
  color: #2b2a27;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  appearance: textfield;
}

.sheet-more-rows-input::-webkit-outer-spin-button,
.sheet-more-rows-input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.sheet-more-rows-input:focus {
  box-shadow: none;
}

.sheet-more-rows-stepper {
  display: grid;
  grid-template-rows: repeat(2, 1fr);
  width: 24px;
  border-left: 1px solid rgba(218, 209, 193, 0.92);
  background: rgba(250, 247, 241, 0.96);
}

.sheet-more-rows-stepper button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #70675a;
  font-size: 9px;
  line-height: 1;
}

.sheet-more-rows-stepper button + button {
  border-top: 1px solid rgba(218, 209, 193, 0.92);
}

.sheet-more-rows-stepper button:hover:not(:disabled) {
  background: rgba(240, 234, 223, 0.72);
  color: #2b2a27;
}

.sheet-more-rows-stepper button:disabled,
.sheet-more-rows-input:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.sheet-footer-button.is-more-rows {
  border-style: solid;
  border-color: rgba(197, 188, 172, 0.96);
  background: rgba(250, 251, 255, 0.96);
  color: #3559ad;
}

.sheet-footer-button.is-more-rows:hover:not(:disabled) {
  background: rgba(240, 244, 255, 0.98);
}

.sheet-footer-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sheet-footer-rail {
  display: flex;
  justify-content: center;
  padding: 14px 18px 16px;
  border-top: 1px solid rgba(233, 227, 218, 0.92);
  background:
    linear-gradient(180deg, rgba(250, 248, 244, 0.82), rgba(255, 255, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.sheet-footer-rail .sheet-footer {
  width: 100%;
  justify-content: center;
  padding: 0;
}

.landing-enrichment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.sheet-footer-button.is-landing-enrichment {
  min-width: 260px;
  border-style: solid;
  border-color: rgba(28, 52, 103, 0.9);
  background: #1f4fd1;
  color: #ffffff;
}

.sheet-footer-button.is-landing-enrichment:hover:not(:disabled) {
  background: #1846c0;
}

@media (max-width: 900px) {
  .sheet-footer-quantity-wrap {
    width: 100%;
    justify-content: center;
    gap: 8px;
  }

  .sheet-footer-rail {
    padding-inline: 12px;
  }

  .sheet-footer-button.is-more-rows {
    padding-inline: 12px;
  }

  .landing-enrichment-form {
    grid-template-columns: 1fr;
  }

  .sheet-footer-button.is-landing-enrichment {
    width: 100%;
    min-width: 0;
  }

  .preview-summary-actions {
    align-items: stretch;
  }

  .preview-unlock-button {
    width: 100%;
  }
}

.modal-root-connected-accounts .modal-card {
  width: min(820px, 100%);
  padding: 24px;
  gap: 20px;
}

.connected-accounts-modal {
  width: min(100%, 700px);
  display: grid;
  gap: 24px;
}

.connected-accounts-hero,
.connected-accounts-list-section,
.connected-service-picker,
.connected-account-composer {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 252, 0.94));
}

.connected-accounts-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.connected-accounts-section-head h3,
.connected-accounts-empty-copy h4,
.connected-account-composer-brand h3 {
  margin: 0;
}

.connected-accounts-section-head p,
.connected-accounts-empty-copy p,
.connected-account-composer-brand p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.connected-accounts-list-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

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

.connected-account-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(217, 210, 196, 0.88);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 24px rgba(28, 36, 52, 0.05);
}

.connected-account-row.is-active {
  border-color: rgba(72, 96, 167, 0.45);
  box-shadow: 0 14px 34px rgba(70, 86, 129, 0.12);
}

.connected-account-main {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
  padding: 0;
  background: transparent;
  text-align: left;
}

.connected-account-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.connected-account-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.connected-account-subline {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.connected-account-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connected-account-status.is-success,
.connected-method-status.is-success .connected-method-status-label {
  background: rgba(221, 245, 230, 0.88);
  color: #28744b;
}

.connected-account-status.is-warning,
.connected-method-status.is-warning .connected-method-status-label {
  background: rgba(255, 235, 225, 0.92);
  color: #9c4f45;
}

.connected-account-status.is-pending,
.connected-method-status.is-pending .connected-method-status-label {
  background: rgba(255, 245, 208, 0.94);
  color: #8d6a1a;
}

.connected-account-status.is-neutral,
.connected-method-status.is-neutral .connected-method-status-label {
  background: rgba(233, 237, 244, 0.92);
  color: #5d687d;
}

.connected-account-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.connected-account-primary {
  white-space: nowrap;
}

.connected-account-menu {
  position: relative;
}

.connected-account-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  box-shadow: none;
}

.connected-account-menu-trigger:hover {
  background: var(--panel-alt);
}

.connected-account-menu-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 3;
  min-width: 150px;
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 40px rgba(20, 27, 40, 0.15);
}

.connected-account-menu-popover button {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
}

.connected-account-menu-popover button:hover {
  background: rgba(242, 245, 251, 0.96);
}

.connected-account-menu-popover button.is-danger {
  color: #9a4b50;
}

.connected-account-menu-popover button.is-danger:hover {
  background: rgba(255, 240, 240, 0.96);
}

.connected-account-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.connected-account-mark.is-large {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 0.92rem;
}

.connected-account-mark.tone-sky {
  background: rgba(222, 238, 255, 0.96);
  color: #2762b0;
}

.connected-account-mark.tone-indigo {
  background: rgba(229, 232, 255, 0.96);
  color: #4458b3;
}

.connected-account-mark.tone-amber {
  background: rgba(255, 241, 216, 0.98);
  color: #8a5b13;
}

.connected-account-mark.tone-teal {
  background: rgba(220, 243, 240, 0.96);
  color: #1f7a72;
}

.connected-account-mark.tone-slate {
  background: rgba(232, 236, 243, 0.96);
  color: #4d5970;
}

.connected-account-mark.tone-rose {
  background: rgba(251, 228, 235, 0.96);
  color: #a1466a;
}

.connected-account-mark.tone-violet {
  background: rgba(238, 231, 255, 0.96);
  color: #6949b1;
}

.connected-account-mark.tone-neutral {
  background: rgba(237, 240, 245, 0.96);
  color: #5d687d;
}

.connected-accounts-empty {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px dashed rgba(199, 191, 176, 0.92);
  border-radius: 18px;
  background: rgba(252, 251, 248, 0.88);
}

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

.connected-service-grid.is-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.connected-service-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(217, 210, 196, 0.9);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  text-align: left;
}

.connected-service-card:hover {
  border-color: rgba(111, 135, 199, 0.5);
  box-shadow: 0 12px 28px rgba(62, 82, 123, 0.1);
}

.connected-service-card-copy {
  display: grid;
  gap: 3px;
}

.connected-service-card-copy strong {
  font-size: 0.95rem;
}

.connected-service-card-copy small {
  color: var(--muted);
}

.connected-service-search input,
.connected-custom-service-field input {
  min-height: 44px;
}

.connected-account-composer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.connected-account-composer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.connected-account-composer-kicker {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.connected-method-card,
.connected-manual-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(214, 220, 235, 0.92);
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.connected-method-copy,
.connected-manual-copy {
  display: grid;
  gap: 6px;
}

.connected-method-copy p,
.connected-manual-copy p,
.connected-method-status p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.connected-method-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(223, 234, 255, 0.92);
  color: #355ab0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.connected-method-status {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid rgba(219, 224, 236, 0.94);
}

.connected-method-status-label {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.auth-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #355ab0;
  font: inherit;
  font-weight: 600;
}

.auth-inline-link:hover {
  background: transparent;
  color: #27488d;
}

.connected-manual-actions {
  display: flex;
  justify-content: flex-start;
}

.connected-advanced-panel {
  padding: 0;
  border: 1px solid rgba(219, 224, 236, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
}

.connected-advanced-panel summary {
  cursor: pointer;
  padding: 16px;
  font-weight: 600;
  color: rgba(71, 76, 89, 0.9);
  list-style: none;
}

.connected-advanced-panel summary::-webkit-details-marker {
  display: none;
}

.connected-advanced-grid {
  display: grid;
  gap: 12px;
  padding: 0 16px 16px;
}

.auth-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: -4px;
}

.auth-suggest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(224, 216, 202, 0.9);
  background: rgba(251, 249, 245, 0.94);
  color: #2b2a27;
  text-align: left;
  cursor: pointer;
}

.auth-suggest-item small {
  color: rgba(84, 80, 73, 0.65);
}

.auth-suggest-item:hover {
  border-color: rgba(154, 165, 205, 0.8);
  background: rgba(244, 247, 255, 0.95);
}

@media (max-width: 900px) {
  .connected-accounts-section-head,
  .connected-account-composer-head,
  .connected-account-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .connected-accounts-section-head,
  .connected-account-composer-head {
    display: grid;
  }

  .connected-account-actions,
  .connected-accounts-list-actions,
  .connected-method-actions {
    width: 100%;
    justify-content: stretch;
  }

  .connected-account-actions > *,
  .connected-accounts-list-actions > *,
  .connected-method-actions > .primary-button {
    flex: 1 1 auto;
  }

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

@media (max-width: 640px) {
  .modal-root-connected-accounts .modal-card {
    padding: 20px;
    border-radius: 20px;
  }

  .connected-accounts-hero,
  .connected-accounts-list-section,
  .connected-service-picker,
  .connected-account-composer {
    padding: 18px;
  }

  .connected-service-grid,
  .connected-service-grid.is-compact {
    grid-template-columns: 1fr;
  }

  .connected-account-row,
  .connected-account-actions {
    gap: 10px;
  }

  .connected-account-primary,
  .connected-accounts-list-actions .primary-button,
  .connected-accounts-list-actions .ghost-button,
  .connected-method-actions .primary-button {
    width: 100%;
  }

  .connected-account-menu {
    justify-self: stretch;
  }

  .connected-account-menu-trigger {
    width: 100%;
  }

  .connected-account-menu-popover {
    left: 0;
    right: 0;
  }
}

body.layout-sales-nav {
  --app-bg: #f3f5f8;
  --panel: #ffffff;
  --panel-alt: #f7f8fb;
  --line: #d7dce5;
  --line-strong: #c8d0db;
  --text: #1d2433;
  --muted: #667085;
  background: #f3f5f8;
}

body.layout-sales-nav .workspace {
  gap: 10px;
  padding: 10px 12px 12px;
}

body.layout-sales-nav .workspace-header {
  padding: 8px 2px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.layout-sales-nav .workspace-action-row {
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

body.layout-sales-nav .workspace-action-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

body.layout-sales-nav .toolbar-group--workspace {
  gap: 2px;
}

body.layout-sales-nav #sheet-title-chip,
body.layout-sales-nav .toolbar-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--panel-alt);
  color: var(--muted);
}

body.layout-sales-nav .toolbar-summary-line {
  gap: 8px;
}

body.layout-sales-nav .toolbar-summary,
body.layout-sales-nav .live-table-summary {
  font-size: 12px;
  color: var(--muted);
}

body.layout-sales-nav .toolbar-row-economics {
  gap: 2px;
}

body.layout-sales-nav .workspace-body {
  min-height: calc(100vh - 160px);
  grid-template-columns: minmax(300px, 336px) minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  overflow: hidden;
}

body.layout-sales-nav .inspector,
body.layout-sales-nav .sheet-pane {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.layout-sales-nav .inspector {
  order: -1;
  border-right: 1px solid var(--line);
  background: #fafbfc;
  grid-template-rows: auto auto minmax(240px, 44vh) minmax(0, 1fr);
}

body.layout-sales-nav .sheet-pane {
  min-height: calc(100vh - 160px);
  background: var(--panel);
}

body.layout-sales-nav .inspector-utility-row {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
}

body.layout-sales-nav .inspector-utility-actions {
  flex-wrap: wrap;
}

body.layout-sales-nav .inspector-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 12px 0;
}

body.layout-sales-nav .tab-button[data-tab-target="search"] {
  display: none;
}

body.layout-sales-nav .tab-button {
  padding: 10px 0 8px;
  font-size: 12px;
}

body.layout-sales-nav .tab-panel {
  display: none;
  padding: 12px;
}

body.layout-sales-nav .tab-panel.is-active {
  display: grid;
}

body.layout-sales-nav #search-panel {
  display: grid !important;
  align-content: start;
  gap: 0;
  min-height: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fafbfc;
  overflow: auto;
}

body.layout-sales-nav #search-panel .search-control-card {
  gap: 14px;
}

body.layout-sales-nav .sales-nav-filters {
  display: grid;
  gap: 12px;
}

body.layout-sales-nav .sales-nav-filter-shell {
  display: grid;
  gap: 12px;
}

body.layout-sales-nav .sales-nav-filter-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}

body.layout-sales-nav .sales-nav-filter-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 6px 10px;
  border-radius: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
}

body.layout-sales-nav .sales-nav-filter-tab:hover {
  color: var(--text);
}

body.layout-sales-nav .sales-nav-filter-tab.is-active {
  border-bottom-color: var(--green);
  color: var(--green);
}

body.layout-sales-nav .sales-nav-filter-tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #eef2f6;
  color: #556070;
  font-size: 11px;
  font-weight: 700;
}

body.layout-sales-nav .sales-nav-filter-tab.is-active .sales-nav-filter-tab-count {
  background: #dcf5dd;
  color: #347b4d;
}

body.layout-sales-nav .sales-nav-filter-intro {
  display: grid;
  gap: 2px;
}

body.layout-sales-nav .sales-nav-filter-intro strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

body.layout-sales-nav .sales-nav-filter-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}

body.layout-sales-nav .sales-nav-filter-group-title {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #f7f8fa;
  color: #4c5668;
  font-size: 12px;
  font-weight: 600;
}

body.layout-sales-nav .sales-nav-filter-group-body {
  display: grid;
}

body.layout-sales-nav .sales-nav-filter-row {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  cursor: text;
}

body.layout-sales-nav .sales-nav-filter-row + .sales-nav-filter-row {
  border-top: 1px solid var(--line);
}

body.layout-sales-nav .sales-nav-filter-row-label {
  color: #4c5668;
  font-size: 12px;
  font-weight: 600;
}

body.layout-sales-nav .sales-nav-tag-field {
  min-height: 38px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

body.layout-sales-nav .sales-nav-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

body.layout-sales-nav .sales-nav-tag-input {
  flex: 1 1 96px;
  min-width: 96px;
  border: 0;
  padding: 4px 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

body.layout-sales-nav .sales-nav-tag-input:focus {
  outline: none;
}

body.layout-sales-nav .sales-nav-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f5f7fb;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
}

body.layout-sales-nav .sales-nav-tag-chip:hover {
  background: #edf2fb;
}

body.layout-sales-nav .sales-nav-tag-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.layout-sales-nav .sales-nav-tag-chip-x {
  color: var(--muted);
  font-size: 12px;
}

body.layout-sales-nav #search-panel .table-composer {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

body.layout-sales-nav #search-panel .search-recipes-block {
  display: none;
}

body.layout-sales-nav #columns-panel.is-active,
body.layout-sales-nav #row-panel.is-active {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  background: #fafbfc;
}

body.layout-sales-nav .row-panel-header {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

body.layout-sales-nav .row-detail-section + .row-detail-section {
  margin-top: 14px;
  padding-top: 14px;
}

body.layout-sales-nav .sheet-surface,
body.layout-sales-nav .sheet-scroll {
  background: var(--panel);
}

body.layout-sales-nav .sheet-grid th,
body.layout-sales-nav .sheet-grid td {
  padding: 9px 10px;
}

body.layout-sales-nav .sheet-grid thead th {
  background: #f6f7f9;
  color: #596579;
  font-size: 12px;
}

body.layout-sales-nav .row-number-head,
body.layout-sales-nav .row-number {
  width: 44px;
  min-width: 44px;
  background: #f6f7f9;
  color: var(--muted);
}

body.layout-sales-nav .sheet-row:hover td,
body.layout-sales-nav .sheet-row:hover .row-number {
  background: #f8fafc;
}

body.layout-sales-nav .sheet-row.is-selected td,
body.layout-sales-nav .sheet-row.is-selected .row-number,
body.layout-sales-nav .sheet-row:focus-within td,
body.layout-sales-nav .sheet-row:focus-within .row-number {
  background: #eef3fb;
}

body.layout-sales-nav .sheet-header,
body.layout-sales-nav .sheet-cell {
  min-width: 160px;
}

body.layout-sales-nav .sheet-header-editor,
body.layout-sales-nav .sheet-editor {
  min-height: 30px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 13px;
}

body.layout-sales-nav .entity-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.68rem;
}

body.layout-sales-nav .sheet-footer-rail {
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  background: #f6f7f9;
  box-shadow: none;
}

body.layout-sales-nav .sheet-footer-rail .sheet-footer {
  justify-content: flex-end;
}

@media (max-width: 1180px) {
  body.layout-sales-nav .workspace-body {
    grid-template-columns: 1fr;
  }

  body.layout-sales-nav .inspector {
    order: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  body.layout-sales-nav .workspace {
    padding: 0 12px 12px;
  }

  body.layout-sales-nav .workspace-action-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  body.layout-sales-nav .workspace-action-meta {
    flex-direction: column;
    align-items: stretch;
  }

  body.layout-sales-nav .sales-nav-filter-tabs {
    gap: 8px;
  }

  body.layout-sales-nav .sheet-footer-rail .sheet-footer {
    justify-content: center;
  }
}

body.layout-landing-table {
  --app-bg: #f6f7fb;
  --panel: #ffffff;
  --panel-alt: #f3f5fa;
  --line: #dde3ee;
  --line-strong: #cfd7e3;
  --text: #121826;
  --muted: #617086;
  background:
    radial-gradient(circle at top center, rgba(49, 103, 214, 0.08), transparent 28%),
    linear-gradient(180deg, #f8f9fc 0%, #f2f5fa 100%);
}

body.layout-landing-table .workspace {
  gap: 16px;
  padding: 12px 20px 24px;
}

body.layout-landing-table .workspace-header {
  padding: 10px 0 14px;
  border: 0;
  border-bottom: 1px solid rgba(203, 212, 226, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.layout-landing-table .workspace-action-row,
body.layout-landing-table .inspector,
body.layout-landing-table .workspace-breadcrumb-row,
body.layout-landing-table .workspace-search-prompt,
body.layout-landing-table .workspace-shell-mark,
body.layout-landing-table #auth-session-button,
body.layout-landing-table #workspace-header-actions {
  display: none !important;
}

body.layout-landing-table .workspace-title-trigger,
body.layout-landing-table .workspace-title-input {
  width: 100%;
  max-width: none;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

body.layout-landing-table .workspace-title-stack,
body.layout-landing-table .workspace-title-row {
  width: 100%;
}

body.layout-landing-table .header-primary {
  align-items: flex-end;
}

body.layout-landing-table .workspace-body {
  min-height: calc(100vh - 180px);
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.layout-landing-table .sheet-pane {
  border: 1px solid rgba(203, 212, 226, 0.9);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(18, 24, 38, 0.08);
  overflow: hidden;
}

body.layout-landing-table .sheet-toolbar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(214, 220, 230, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
}

body.layout-landing-table .toolbar-actions,
body.layout-landing-table .toolbar-row-economics {
  display: none !important;
}

body.layout-landing-table .toolbar-summary-line {
  gap: 10px;
}

body.layout-landing-table .toolbar-summary {
  font-size: 0.95rem;
  color: #4d5d75;
}

body.layout-landing-table .sheet-surface,
body.layout-landing-table .sheet-scroll {
  background: transparent;
}

body.layout-landing-table .sheet-pane.has-landing-onboarding .sheet-scroll {
  padding-bottom: 0;
}

body.layout-landing-table .landing-onboarding-overlay {
  left: 22px;
  right: 22px;
  bottom: 22px;
  width: auto;
}

body.layout-landing-table .landing-onboarding-window {
  width: min(100%, 920px);
  margin: 0 auto;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(214, 220, 230, 0.96);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.96));
  box-shadow: 0 18px 44px rgba(26, 39, 67, 0.08);
}

body.layout-landing-table .landing-onboarding-head {
  justify-content: center;
}

body.layout-landing-table .landing-onboarding-close {
  display: none;
}

body.layout-landing-table .landing-onboarding-copy {
  justify-items: center;
  text-align: center;
}

body.layout-landing-table .landing-onboarding-copy strong {
  font-size: 1.18rem;
}

body.layout-landing-table .landing-onboarding-suggestions {
  justify-content: center;
}

body.layout-landing-table .landing-onboarding-form {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

body.layout-landing-table .landing-onboarding-field {
  min-width: 0;
}

body.layout-landing-table .landing-onboarding-submit {
  width: auto;
  min-width: 280px;
}

body.layout-landing-table .sheet-grid thead th {
  background: #f6f8fc;
}

body.layout-landing-table .row-number-head,
body.layout-landing-table .row-number {
  width: 52px;
  min-width: 52px;
  background: #f6f8fc;
}

body.layout-landing-table .sheet-header,
body.layout-landing-table .sheet-cell {
  min-width: 180px;
}

body.layout-landing-table .sheet-grid th,
body.layout-landing-table .sheet-grid td {
  padding: 12px 14px;
}

body.layout-landing-table .sheet-footer-rail {
  padding: 18px 22px 22px;
  border-top: 1px solid rgba(214, 220, 230, 0.92);
  background:
    linear-gradient(180deg, rgba(246, 248, 252, 0.88), rgba(255, 255, 255, 0.98));
  box-shadow: none;
}

body.layout-landing-table .sheet-footer-rail .sheet-footer {
  width: 100%;
  justify-content: center;
}

.landing-preview-rail {
  width: min(100%, 920px);
  display: grid;
  gap: 14px;
  margin: 0 auto;
}

.landing-enrichment-rail {
  padding: 20px;
  border: 1px solid rgba(214, 220, 230, 0.96);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(245, 249, 255, 0.96));
  box-shadow: 0 18px 44px rgba(26, 39, 67, 0.08);
}

.landing-preview-copy {
  display: grid;
  gap: 4px;
  justify-items: center;
  text-align: center;
}

.landing-preview-copy .landing-enrichment-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 79, 209, 0.08);
  color: #1f4fd1;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.landing-preview-copy strong {
  color: #121826;
  font-size: 1.1rem;
  font-weight: 700;
}

.landing-preview-copy span {
  color: #617086;
  font-size: 0.92rem;
  line-height: 1.5;
}

.landing-enrichment-suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.landing-enrichment-suggestion {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(196, 206, 220, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #33425f;
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.landing-enrichment-suggestion:hover:not(:disabled),
.landing-enrichment-suggestion:focus-visible {
  border-color: rgba(31, 79, 209, 0.38);
  background: rgba(31, 79, 209, 0.08);
  color: #163a98;
  box-shadow: 0 10px 20px rgba(31, 79, 209, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.landing-enrichment-suggestion.is-active {
  border-color: rgba(31, 79, 209, 0.44);
  background: rgba(31, 79, 209, 0.12);
  color: #143583;
}

.landing-preview-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.landing-preview-field {
  display: grid;
  gap: 6px;
}

.landing-preview-field span {
  color: #48566c;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.landing-preview-input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 1px solid rgba(196, 206, 220, 0.96);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: #121826;
  font-size: 1rem;
  font-weight: 600;
}

.landing-preview-input:focus {
  border-color: rgba(69, 112, 208, 0.72);
  box-shadow: 0 0 0 4px rgba(69, 112, 208, 0.12);
  outline: none;
}

.landing-preview-code-input {
  text-align: center;
  letter-spacing: 0.22em;
}

.landing-preview-submit {
  min-width: 220px;
  min-height: 50px;
}

.landing-preview-secondary {
  min-height: 50px;
  padding-inline: 16px;
  border-radius: 14px;
}

.landing-preview-feedback {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}

.landing-preview-feedback.is-error {
  color: #c23b3b;
}

.landing-preview-feedback.is-success {
  color: #1d7a46;
}

@media (max-width: 900px) {
  body.layout-landing-table .workspace {
    padding: 8px 12px 18px;
  }

  body.layout-landing-table .workspace-title-trigger,
  body.layout-landing-table .workspace-title-input {
    font-size: clamp(1.6rem, 8vw, 2.5rem);
  }

  body.layout-landing-table .sheet-pane {
    border-radius: 18px;
  }

  body.layout-landing-table .toolbar-summary {
    font-size: 0.88rem;
  }

  body.layout-landing-table .landing-onboarding-overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  body.layout-landing-table .landing-onboarding-form {
    grid-template-columns: 1fr;
  }

  body.layout-landing-table .landing-onboarding-submit {
    width: 100%;
    min-width: 0;
  }

  .landing-preview-form {
    grid-template-columns: 1fr;
  }

  .landing-enrichment-rail {
    padding: 16px;
    border-radius: 20px;
  }

  .landing-enrichment-suggestions {
    justify-content: flex-start;
  }

  .landing-preview-submit,
  .landing-preview-secondary {
    width: 100%;
  }
}
