/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --ink: #111827;
  --ink-light: #1f2937;
  --muted: #5f6f7f;
  --muted-light: #94a3b8;
  --line: #d7e0e7;
  --line-subtle: #edf3f6;
  --panel: #ffffff;
  --paper: #e9eff2;
  --navy: #0b1620;
  --navy-2: #122331;
  --steel: #1f3946;
  --accent: #0f8a7a;
  --accent-hover: #13a18f;
  --accent-dark: #0b6a60;
  --gold: #d6a84f;
  --positive: #0f7a3c;
  --positive-bg: #f0fdf4;
  --negative: #bf2d24;
  --negative-bg: #fef2f2;
  --warning: #ea580c;
  --shadow-sm: 0 1px 2px 0 rgb(11 22 32 / 0.08);
  --shadow: 0 18px 45px -28px rgb(11 22 32 / 0.55), 0 1px 2px rgb(11 22 32 / 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-feature-settings: "tnum", "cv02", "cv03", "cv04";
  letter-spacing: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  z-index: 0;
  block-size: 280px;
  background: var(--navy);
  pointer-events: none;
}

.auth-body::before {
  block-size: 100%;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-hover);
}

input,
textarea,
button {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  inline-size: calc(100vw - 32px);
  margin: 0 auto;
  padding: 18px 0 64px;
}

.auth-body .shell {
  inline-size: min(1680px, calc(100vw - 32px));
}

@media (max-width: 768px) {
  .shell {
    inline-size: calc(100vw - 24px);
    padding: 16px 0 48px;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-block-end: 24px;
  border: 1px solid rgb(255 255 255 / 0.09);
  border-radius: 8px;
  background: var(--navy-2);
  box-shadow: 0 18px 55px -32px rgb(0 0 0 / 0.75);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
}

.nav-row a,
.nav-row button {
  font-weight: 500;
  border-radius: 6px;
  color: #d9e7ec;
  padding: 8px 10px;
}

.nav-row a:hover,
.nav-row button:hover {
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

.mobile-nav {
  display: none;
  position: relative;
  margin-inline-start: auto;
}

.mobile-nav summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 40px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  padding: 8px 12px;
}

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

.mobile-nav summary::after {
  content: "";
  inline-size: 0;
  block-size: 0;
  margin-inline-start: 8px;
  border-inline: 4px solid transparent;
  border-block-start: 5px solid currentColor;
}

.mobile-nav[open] summary::after {
  border-block-start: 0;
  border-block-end: 5px solid currentColor;
}

.mobile-nav-panel {
  position: absolute;
  inset-block-start: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 20;
  display: grid;
  gap: 4px;
  inline-size: min(300px, calc(100vw - 32px));
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: var(--navy-2);
  box-shadow: 0 18px 55px -28px rgb(0 0 0 / 0.8);
  padding: 8px;
}

.mobile-nav-panel a,
.mobile-nav-panel button {
  display: block;
  inline-size: 100%;
  border-radius: 6px;
  color: #d9e7ec;
  font-weight: 600;
  padding: 10px 12px;
  text-align: left;
}

.mobile-nav-panel form {
  margin: 0;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel button:hover {
  background: rgb(255 255 255 / 0.08);
  color: #ffffff;
}

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    gap: 12px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav {
    display: block;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  inline-size: 34px;
  block-size: 34px;
  border: 1px solid rgb(214 168 79 / 0.55);
  border-radius: 8px;
  background: #132938;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.super-admin-body {
  --paper: #f7ecef;
  --navy: #2d0f1a;
  --navy-2: #3a1322;
  --steel: #5b2134;
  --accent: #9d174d;
  --accent-hover: #be185d;
  --accent-dark: #831843;
  --gold: #f6c177;
  --line: #e7cfd7;
  --line-subtle: #f4e4e9;
}

.super-admin-body::before {
  block-size: 330px;
  background: #2d0f1a;
}

.super-admin-topbar {
  border-color: rgb(246 193 119 / 0.18);
  background: #3a1322;
}

.super-admin-brand .brand-mark {
  border-color: rgb(246 193 119 / 0.62);
  background: #571f33;
  color: #f6c177;
}

.super-admin-nav a.active,
.super-admin-nav-panel a.active {
  background: rgb(246 193 119 / 0.14);
  color: #ffffff;
}

.super-admin-nav a.active:hover,
.super-admin-nav-panel a.active:hover {
  background: rgb(246 193 119 / 0.2);
}

.link-button {
  border: 0;
  background: transparent;
  color: #d9e7ec;
  cursor: pointer;
}

.flash {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-block-end: 20px;
  padding: 12px 16px;
  font-size: 0.9375rem;
  background: var(--panel);
}

.flash-alert {
  background: var(--negative-bg);
  border-color: var(--negative);
  color: var(--negative);
}

.flash-notice {
  background: var(--positive-bg);
  border-color: var(--positive);
  color: var(--positive);
}

.toast-stack {
  position: fixed;
  z-index: 30;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  display: grid;
  gap: 10px;
  inline-size: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

body:has(.impersonation-ribbon) .toast-stack {
  inset-block-start: 38px;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.toast-alert {
  border-color: rgb(191 45 36 / 0.35);
  background: var(--negative-bg);
  color: var(--negative);
}

.toast-notice {
  border-color: rgb(15 122 60 / 0.32);
  background: var(--positive-bg);
  color: var(--positive);
}

.toast-content {
  display: grid;
  gap: 2px;
  min-inline-size: 0;
}

.toast-content strong,
.toast-content span {
  display: block;
}

.toast-content strong {
  font-size: 0.75rem;
  line-height: 1.1;
  text-transform: uppercase;
}

.toast-content span {
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.toast-close {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 28px;
  block-size: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}

.toast-close:hover {
  background: rgb(17 24 39 / 0.08);
}

.impersonation-ribbon {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-block-size: 18px;
  border-block-end: 1px solid #7f1d1d;
  background: #b91c1c;
  color: #fff7f7;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 2px 12px;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset;
}

.impersonation-ribbon-context {
  display: flex;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
}

.impersonation-ribbon strong,
.impersonation-ribbon span {
  min-inline-size: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.impersonation-ribbon strong {
  color: #ffffff;
}

.impersonation-ribbon span {
  color: #ffe4e4;
}

.impersonation-ribbon form {
  margin: 0;
}

.impersonation-ribbon-action {
  border: 1px solid rgb(255 255 255 / 0.42);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  padding: 2px 7px;
  text-transform: uppercase;
}

.impersonation-ribbon-action:hover {
  background: rgb(255 255 255 / 0.2);
}

@media (max-width: 640px) {
  .toast-stack {
    inset-block-start: 12px;
    inset-inline: 12px;
    inline-size: auto;
  }

  body:has(.impersonation-ribbon) .toast-stack {
    inset-block-start: 52px;
  }

  .impersonation-ribbon {
    justify-content: space-between;
    padding-inline: 10px;
  }

  .impersonation-ribbon-context {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
  }
}

.auth-panel {
  inline-size: min(520px, 100%);
  margin: 8vh auto 0;
  background: var(--panel);
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 8px;
  padding: 44px;
  box-shadow: 0 24px 80px -36px rgb(0 0 0 / 0.85);
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  margin-block-end: 28px;
}

@media (max-width: 640px) {
  .auth-panel {
    padding: 32px 24px;
    margin: 8vh auto 0;
  }
}

.auth-panel h1,
.page-heading h1,
.panel h2 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 0;
}

.auth-panel h1 {
  font-size: 2.25rem;
  line-height: 1.08;
  margin-block-end: 12px;
}

.auth-panel p,
.page-heading p,
.panel-heading p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin: 0;
}

.auth-panel > p {
  margin-block-end: 24px;
}

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

label span {
  display: block;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 500;
  margin-block-end: 6px;
}

input,
textarea,
select {
  inline-size: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(15 118 110 / 0.1);
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-light);
}

textarea {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, "Cascadia Code", "Courier New", monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  resize: vertical;
  min-block-size: 120px;
}

.primary-button {
  border: 0;
  border-radius: 6px;
  background: var(--navy);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 10px 16px;
  transition: background-color 0.15s ease, transform 0.05s ease;
}

.primary-button:hover {
  background: var(--steel);
}

.primary-button:active {
  transform: translateY(1px);
}

.primary-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.muted-link {
  display: inline-block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-block-start: 20px;
}

.muted-link:hover {
  color: var(--ink-light);
}

.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-block-end: 24px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: var(--navy-2);
  color: white;
  padding: 26px;
  box-shadow: 0 22px 60px -38px rgb(0 0 0 / 0.75);
}

.page-heading h1 {
  font-size: 3rem;
  line-height: 1;
  font-weight: 700;
}

.page-heading p {
  color: #b8cbd4;
}

@media (max-width: 640px) {
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-heading h1 {
    font-size: 2.25rem;
  }
}

.eyebrow {
  display: block;
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-block-end: 8px;
}

.eyebrow-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.update-badge {
  display: inline-flex;
  align-items: center;
  min-block-size: 24px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: #d9e7ec;
  padding: 4px 8px;
  font-size: 0.6875rem;
}

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

.scorecard {
  min-inline-size: 120px;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.07);
  padding: 16px 20px;
  text-align: center;
}

.heading-actions form {
  margin: 0;
}

.refresh-card {
  display: block;
  color: white;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.refresh-card-button {
  inline-size: 100%;
  cursor: pointer;
}

.refresh-card:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.22);
}

.scorecard.refresh-card strong {
  font-size: 1rem;
  line-height: 2.25;
  text-transform: uppercase;
}

.scorecard strong {
  display: block;
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1;
  margin-block-end: 4px;
  color: white;
}

.scorecard span {
  color: #b8cbd4;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

@media (max-width: 640px) {
  .heading-actions {
    inline-size: 100%;
    justify-content: flex-start;
  }
}

.admin-scorecards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .admin-scorecards {
    justify-content: flex-start;
  }
}

.performance-chart-wrap {
  overflow-x: auto;
  margin-inline: -8px;
  padding: 8px;
}

.performance-chart {
  display: block;
  inline-size: 100%;
  min-inline-size: 760px;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fbfdfe;
}

.chart-line {
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-grid-line {
  stroke: var(--line-subtle);
  stroke-width: 1;
}

.chart-axis-line {
  stroke: var(--line);
  stroke-width: 1.5;
}

.chart-week-tick {
  stroke: var(--muted-light);
  stroke-width: 1;
}

.chart-month-tick {
  stroke: var(--ink-light);
  stroke-width: 1.5;
}

.chart-axis-label {
  fill: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.chart-percent-label {
  font-size: 0.375rem;
}

.chart-month-label {
  fill: var(--ink-light);
  font-size: 0.7rem;
}

.performance-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 16px;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 8px 10px;
  font-size: 0.875rem;
}

.legend-swatch {
  inline-size: 10px;
  block-size: 10px;
  border-radius: 999px;
}

.reference-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reference-link {
  display: inline-flex;
  align-items: center;
  min-block-size: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  color: var(--ink-light);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 8px 12px;
}

.reference-link:hover {
  border-color: var(--muted-light);
  background: var(--line-subtle);
  color: var(--navy);
}

.book-reference-group {
  margin-block-start: 18px;
  border-block-start: 1px solid var(--line-subtle);
  padding-block-start: 16px;
}

.book-reference-group h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.book-reference-group h4 {
  margin: 18px 0 10px;
  color: var(--navy);
  font-size: 0.9375rem;
}

.book-reference-group p {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.875rem;
}

.book-reference-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.book-reference-link {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink-light);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  padding: 9px 10px;
}

.book-reference-link small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.book-reference-link:hover {
  border-color: var(--muted-light);
  background: #f8fbfc;
  color: var(--navy);
}

.company {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-block-start: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.compact-panel {
  padding-block: 18px;
}

.market-data-status-panel {
  margin-block-end: 18px;
}

.market-data-status-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-data-status-heading h2 {
  font-size: 1.125rem;
  margin-block-end: 4px;
}

.market-data-status-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(78px, 1fr));
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.market-data-status-list li {
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px 12px;
  text-align: center;
}

.market-data-status-list strong,
.market-data-status-list span {
  display: block;
}

.market-data-status-list strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}

.market-data-status-list span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  margin-block-start: 4px;
  text-transform: uppercase;
}

.market-data-error {
  border-block-start: 1px solid var(--line-subtle);
  color: var(--negative);
  font-size: 0.875rem;
  margin: 14px 0 0;
  padding-block-start: 12px;
}

.risk-controls-panel {
  display: grid;
  gap: 18px;
  border-color: rgb(15 138 122 / 0.2);
}

.risk-controls-heading {
  margin-block-end: 0;
}

.risk-summary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.risk-summary-list li {
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.risk-summary-list strong,
.risk-summary-list span {
  display: block;
}

.risk-summary-list strong {
  color: var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.risk-summary-list span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  margin-block-start: 5px;
  text-transform: uppercase;
}

.risk-summary-high strong {
  color: var(--negative);
}

.risk-summary-caution strong {
  color: var(--warning);
}

.risk-summary-data-gap strong {
  color: var(--muted);
}

.risk-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 18px;
  align-items: start;
}

.risk-controls-column {
  display: grid;
  gap: 10px;
  min-inline-size: 0;
}

.risk-controls-column h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.risk-flag-list {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.risk-flag {
  border: 1px solid var(--line-subtle);
  border-inline-start: 4px solid var(--muted-light);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.risk-flag-high {
  border-inline-start-color: var(--negative);
}

.risk-flag-caution {
  border-inline-start-color: var(--warning);
}

.risk-flag-data-gap {
  border-inline-start-color: var(--muted-light);
  background: #f8fafc;
}

.risk-flag-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-block-end: 6px;
}

.risk-flag-heading strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.risk-severity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 62px;
  border-radius: 999px;
  background: #eef4f6;
  color: var(--ink-light);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.risk-flag-high .risk-severity {
  background: var(--negative-bg);
  color: var(--negative);
}

.risk-flag-caution .risk-severity {
  background: #fff7e6;
  color: #8a5f00;
}

.risk-flag p {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
  margin: 0;
}

.risk-flag small {
  display: block;
  color: var(--ink-light);
  font-size: 0.78rem;
  font-weight: 800;
  margin-block-start: 8px;
}

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

  .risk-controls-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .market-data-status-heading {
    align-items: stretch;
    flex-direction: column;
  }

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

.compact-panel details summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
}

.compact-panel details summary small {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
}

.compact-panel details[open] summary {
  margin-block-end: 18px;
}

.panel-heading {
  border-block-end: 1px solid var(--line-subtle);
  padding-block-end: 16px;
}

@media (max-width: 640px) {
  .panel {
    padding: 20px 16px;
  }
}

.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-block-end: 20px;
}

.panel-heading h2 {
  font-size: 1.25rem;
}

.worksheet-section-title {
  font-weight: 800;
}

.panel-heading p {
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.watchlist-form {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 16px;
}

.admin-user-form {
  display: flex;
  gap: 16px;
  align-items: end;
}

.admin-user-form label {
  flex: 1;
}

.admin-toggle {
  min-inline-size: 100px;
}

@media (max-width: 640px) {
  .watchlist-form,
  .admin-user-form {
    grid-template-columns: 1fr;
    display: grid;
  }
}

.schedule-form {
  display: grid;
  grid-template-columns: 2fr 1fr 100px 1.5fr auto auto;
  align-items: end;
  gap: 12px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
  gap: 24px;
}

.settings-grid .panel {
  margin-block-start: 0;
}

.settings-grid .panel:first-child {
  grid-row: span 2;
}

.settings-grid .settings-wide-panel {
  grid-column: 1 / -1;
  grid-row: auto;
}

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

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

.settings-stack {
  display: grid;
  gap: 16px;
}

.status-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
  padding: 16px;
}

.status-box strong,
.status-box span {
  display: block;
}

.status-box strong {
  color: var(--navy);
  font-size: 1rem;
  margin-block-end: 4px;
}

.status-box span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .schedule-form,
  .settings-grid,
  .settings-threshold-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .schedule-form,
  .settings-grid,
  .settings-threshold-grid {
    grid-template-columns: 1fr;
  }

  .settings-grid .panel:first-child {
    grid-row: auto;
  }
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-block-size: 44px;
}

.check-label input {
  inline-size: auto;
}

.check-label span {
  margin: 0;
}

.button-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-block-start: 16px;
}

.button-row p {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

@media (max-width: 640px) {
  .button-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

.inline-form {
  display: inline;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0 0;
}

.text-button:hover {
  color: var(--accent-hover);
}

.secondary-button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fbfc;
  color: var(--ink);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 10px 16px;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.05s ease;
}

.secondary-button:hover {
  background: var(--line-subtle);
  border-color: var(--muted-light);
}

.secondary-button:active {
  transform: translateY(1px);
}

.compact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 34px;
  padding: 7px 10px;
  font-size: 0.8125rem;
}

.table-wrap {
  overflow-x: auto;
  margin-inline: -24px;
  padding-inline: 24px;
  padding-block-end: 10px;
  scrollbar-gutter: stable;
}

@media (max-width: 640px) {
  .table-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

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

.worksheet-sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: hidden;
  margin-inline: -24px;
  padding-inline: 24px;
  background: var(--steel);
  box-shadow: 0 14px 30px -22px rgb(0 0 0 / 0.75);
}

.worksheet-sticky-header table {
  margin: 0;
}

@media (max-width: 640px) {
  .worksheet-sticky-header {
    margin-inline: -16px;
    padding-inline: 16px;
  }
}

table {
  inline-size: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-inline-size: 1360px;
}

.admin-users-table {
  min-inline-size: 1480px;
}

th,
td {
  border-block-start: 1px solid var(--line-subtle);
  padding: 10px 8px;
  text-align: right;
  white-space: nowrap;
  font-size: 0.8125rem;
}

th + th,
td + td {
  border-inline-start: 1px solid rgb(0 0 0 / 0.18);
}

.shape-column {
  text-align: left;
}

.shares-column {
  min-inline-size: 82px;
  text-align: right;
}

.signal-score-column {
  inline-size: 68px;
  min-inline-size: 68px;
  text-align: center;
}

.signal-action-column {
  inline-size: 106px;
  min-inline-size: 106px;
  text-align: center;
}

.signal-reason-column {
  inline-size: 220px;
  min-inline-size: 220px;
  max-inline-size: 260px;
  text-align: left;
  white-space: normal;
}

.price-column {
  inline-size: 70px;
  min-inline-size: 70px;
  max-inline-size: 70px;
  white-space: normal;
}

tbody tr {
  transition: background-color 0.1s ease;
}

tbody tr:hover {
  background: #f5faf9;
}

thead th {
  color: #d9e7ec;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  padding-block: 12px;
  background: var(--steel);
  position: sticky;
  top: 0;
  z-index: 2;
}

.worksheet-table-wrap thead th {
  position: static;
}

.worksheet-sticky-header th,
.worksheet-sticky-header th:first-child {
  position: static;
  inset: auto;
  z-index: auto;
  background: var(--steel);
}

.worksheet-sticky-header th,
.worksheet-table-wrap thead th,
.worksheet-sticky-header .shape-column,
.worksheet-table-wrap thead .shape-column {
  white-space: normal;
  line-height: 1.15;
  vertical-align: middle;
}

.worksheet-sticky-header .sort-link,
.worksheet-table-wrap thead .sort-link {
  display: inline;
  white-space: normal;
  overflow-wrap: break-word;
}

.worksheet-sticky-header .shares-column,
.worksheet-table-wrap thead .shares-column {
  text-align: right;
}

.worksheet-sticky-header .sort-link::after,
.worksheet-table-wrap thead .sort-link::after {
  display: inline-block;
  margin-inline-start: 4px;
  vertical-align: middle;
}

.header-subline {
  display: block;
  margin-block-start: 3px;
  color: #b8cbd4;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
}

.worksheet-table-wrap thead {
  display: none;
}

.sort-link {
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.sort-link::after {
  content: "";
  inline-size: 0;
  block-size: 0;
  border-inline: 4px solid transparent;
  opacity: 0.35;
}

.sort-link.desc::after {
  border-block-start: 6px solid currentColor;
}

.sort-link.asc::after {
  border-block-end: 6px solid currentColor;
}

.table-subtext {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  margin-block-start: 2px;
}

.signal-panel {
  display: grid;
  gap: 18px;
}

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

.signal-group-card {
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 14px;
}

.signal-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-end: 8px;
}

.signal-group-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
}

.signal-group-heading span {
  display: grid;
  place-items: center;
  min-inline-size: 28px;
  block-size: 28px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.signal-group-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.signal-list {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 8px;
  padding-block-start: 8px;
  border-block-start: 1px solid var(--line-subtle);
}

.signal-list strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.signal-list span {
  justify-self: end;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.signal-list small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
}

.signal-empty {
  margin-block-start: 12px !important;
  color: var(--muted-light) !important;
}

.signal-score {
  display: inline-grid;
  place-items: center;
  min-inline-size: 38px;
  block-size: 28px;
  border-radius: 999px;
  background: #edf7f5;
  color: var(--accent-dark);
  font-weight: 800;
}

.signal-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 86px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
}

.signal-top-buy {
  border-color: rgb(15 122 60 / 0.2);
  background: #eaf8ef;
  color: #0f6b38;
}

.signal-watch {
  border-color: rgb(214 168 79 / 0.25);
  background: #fff7e6;
  color: #8a5f00;
}

.signal-hold {
  border-color: rgb(37 99 235 / 0.18);
  background: #edf4ff;
  color: #1f4fa3;
}

.signal-sell-trim {
  border-color: rgb(191 45 36 / 0.18);
  background: #fff0ef;
  color: #9f2720;
}

.signal-avoid,
.signal-no-signal {
  border-color: rgb(95 111 127 / 0.18);
  background: #f2f5f7;
  color: var(--muted);
}

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

@media (max-width: 640px) {
  .signal-group-grid {
    grid-template-columns: 1fr;
  }
}

.status-badge,
.ticker-chip,
.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fbfc;
  color: var(--ink-light);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  padding: 5px 8px;
}

.status-active {
  border-color: rgb(15 122 60 / 0.25);
  background: var(--positive-bg);
  color: var(--positive);
}

.status-invited {
  border-color: rgb(214 168 79 / 0.35);
  background: #fff8e6;
  color: #8a5a00;
}

.status-not-invited {
  border-color: rgb(191 45 36 / 0.24);
  background: var(--negative-bg);
  color: var(--negative);
}

.ticker-list-cell {
  max-inline-size: 330px;
  white-space: normal;
}

.ticker-chip-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ticker-chip-list-large {
  gap: 8px;
}

.ticker-chip {
  border-radius: 6px;
  background: #f8fbfc;
}

.muted-chip {
  color: var(--muted);
  background: var(--line-subtle);
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-inline-size: 360px;
}

.copy-field-wide {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-block: 16px;
  min-inline-size: 0;
}

.copy-input {
  min-block-size: 34px;
  padding-block: 7px;
  color: var(--muted);
  font-size: 0.75rem;
}

.copy-status {
  min-block-size: 16px;
  color: var(--positive);
  font-size: 0.75rem;
  font-weight: 700;
  grid-column: 1 / -1;
}

.admin-actions-cell {
  text-align: right;
}

.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.admin-actions form {
  margin: 0;
}

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

.admin-detail-grid .panel {
  margin-block-start: 0;
}

.empty-note {
  color: var(--muted);
  margin: 0;
}

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

.sort-link.active {
  color: #ffffff;
}

th:first-child,
td:first-child {
  text-align: left;
  padding-inline-start: 0;
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--panel);
  min-inline-size: 130px;
}

.worksheet-table-wrap th:first-child,
.worksheet-table-wrap td:first-child {
  inline-size: 220px;
  min-inline-size: 220px;
  max-inline-size: 220px;
  white-space: normal;
}

thead th:first-child {
  z-index: 3;
  background: var(--steel);
}

th:last-child,
td:last-child {
  padding-inline-end: 0;
}

.ticker,
.company {
  display: block;
}

.ticker {
  font-weight: 700;
  color: var(--navy);
  margin-block-end: 2px;
}

.ticker-link {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.ticker-link:hover {
  color: var(--accent-dark);
}

.company {
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--muted);
}

.worksheet-table-wrap .ticker {
  white-space: nowrap;
}

.worksheet-table-wrap .company {
  line-height: 1.2;
  overflow-wrap: anywhere;
  white-space: normal;
}

.positive {
  color: var(--positive);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.negative {
  color: var(--negative);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  border: 1px solid #c9d8dd;
  border-radius: 999px;
  background: #eef6f5;
  color: var(--accent-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 10px;
  white-space: nowrap;
}

.active-sort {
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 32px 0;
}

/* Landing page styles */

.landing-body {
  background: #f3f7fb;
}

.landing-body::before {
  block-size: 0;
  background: transparent;
}

.landing-shell {
  position: relative;
  z-index: 1;
  inline-size: min(1160px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 0 0 80px;
}

@media (max-width: 768px) {
  .landing-shell {
    inline-size: calc(100vw - 32px);
  }
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0 48px;
}

.landing-actions,
.final-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.landing-signin-link,
.landing-request-link {
  display: inline-block;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 6px;
  background: rgb(255 255 255 / 0.08);
  color: white;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 8px 16px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.landing-request-link {
  border-color: rgb(214 168 79 / 0.55);
  color: var(--gold);
}

.landing-signin-link:hover,
.landing-request-link:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
  color: white;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 56px;
  padding: 56px 0 80px;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 48px 0 64px;
  }
}

.hero-content {
  inline-size: min(620px, 100%);
}

.hero-title {
  margin: 0 0 20px;
  color: white;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

.hero-subtitle {
  margin: 0 0 36px;
  color: #b8cbd4;
  font-size: 1.125rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.product-preview {
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: #101f2d;
  box-shadow: 0 28px 85px -45px rgb(0 0 0 / 0.9);
  overflow: hidden;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-block-end: 1px solid rgb(255 255 255 / 0.1);
  padding: 16px 18px;
  color: white;
  font-weight: 600;
}

.preview-toolbar strong {
  border: 1px solid rgb(214 168 79 / 0.45);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.75rem;
  padding: 4px 9px;
}

.preview-grid {
  display: grid;
  padding: 8px 0;
}

.preview-row {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, minmax(64px, 1fr));
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  color: #d9e7ec;
}

.preview-row + .preview-row {
  border-block-start: 1px solid rgb(255 255 255 / 0.07);
}

.preview-head {
  color: #7f95a2;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-row strong {
  color: white;
}

.up {
  color: #76d494;
}

.flat {
  color: #d6c184;
}

@media (max-width: 768px) {
  .product-preview {
    overflow-x: auto;
  }

  .preview-grid {
    min-inline-size: 560px;
  }
}

.hero-button {
  display: inline-block;
  border: 0;
  border-radius: 6px;
  background: var(--gold);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 28px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgb(214 168 79 / 0.3);
}

.hero-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgb(214 168 79 / 0.4);
  color: var(--navy);
}

.hero-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.875rem;
}

.credibility {
  padding: 48px 0;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.credibility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

@media (max-width: 768px) {
  .credibility-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.credibility-item {
  text-align: center;
}

.credibility-item strong {
  display: block;
  margin-block-end: 8px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
}

.credibility-item p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.features {
  padding: 80px 0 64px;
}

.features-heading {
  margin: 0 0 40px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .features-heading {
    font-size: 1.875rem;
  }
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.04);
  padding: 28px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.feature-card:hover {
  border-color: rgb(255 255 255 / 0.18);
  background: rgb(255 255 255 / 0.06);
}

.feature-card h3 {
  margin: 0 0 12px;
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0;
}

.feature-card p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.workflow {
  padding: 64px 0;
}

.workflow-heading {
  margin: 0 0 40px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .workflow-heading {
    font-size: 1.875rem;
  }
}

.workflow-steps {
  display: grid;
  gap: 24px;
  inline-size: min(680px, 100%);
  margin: 0 auto;
}

.workflow-step {
  display: flex;
  gap: 20px;
  align-items: start;
}

.workflow-number {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  inline-size: 44px;
  block-size: 44px;
  border: 1px solid rgb(214 168 79 / 0.4);
  border-radius: 8px;
  background: rgb(214 168 79 / 0.1);
  color: var(--gold);
  font-size: 1.25rem;
  font-weight: 700;
}

.workflow-content h3 {
  margin: 0 0 8px;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0;
}

.workflow-content p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.final-cta {
  padding: 80px 0;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.final-cta-content {
  text-align: center;
  inline-size: min(600px, 100%);
  margin: 0 auto;
}

.final-cta-content h2 {
  margin: 0 0 16px;
  color: white;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

@media (max-width: 768px) {
  .final-cta-content h2 {
    font-size: 1.875rem;
  }
}

.final-cta-content p {
  margin: 0 0 28px;
  color: #94a3b8;
  font-size: 1.125rem;
}

.final-actions {
  justify-content: center;
}

.request-shell {
  min-block-size: 100vh;
}

.request-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(380px, 1fr);
  gap: 48px;
  align-items: start;
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: 8px;
  background: #122331;
  padding: 40px;
  box-shadow: 0 28px 85px -45px rgb(0 0 0 / 0.9);
}

.request-panel h1 {
  margin: 0 0 16px;
  color: white;
  font-size: 2.5rem;
  line-height: 1.08;
}

.request-panel p {
  margin: 0;
  color: #b8cbd4;
  font-size: 1rem;
  line-height: 1.65;
}

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

.request-form label span {
  color: #d9e7ec;
}

.submit-button {
  inline-size: 100%;
  text-align: center;
}

.success-panel {
  grid-template-columns: auto minmax(0, 1fr);
  inline-size: min(760px, 100%);
  margin-inline: auto;
}

.success-mark {
  display: grid;
  place-items: center;
  inline-size: 56px;
  block-size: 56px;
  border: 1px solid rgb(118 212 148 / 0.45);
  border-radius: 8px;
  background: rgb(118 212 148 / 0.1);
  color: #76d494;
  font-size: 2rem;
  font-weight: 800;
}

.success-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-block-start: 28px;
}

@media (max-width: 768px) {
  .landing-nav,
  .landing-actions,
  .final-actions {
    align-items: flex-start;
  }

  .landing-nav,
  .final-actions {
    flex-direction: column;
  }

  .request-panel,
  .success-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .request-panel h1 {
    font-size: 2rem;
  }

  .success-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.landing-footer {
  padding: 40px 0 0;
  text-align: center;
  border-block-start: 1px solid rgb(255 255 255 / 0.08);
}

.landing-footer p {
  margin: 0;
  color: #5f6f7f;
  font-size: 0.875rem;
}

/* Folio preview refresh */

:root {
  --folio-amber: #c9892b;
  --folio-rose: #d45b52;
  --folio-sky: #2374a6;
  --folio-mint: #0f8a7a;
  --folio-lilac: #7868d8;
  --folio-ink-soft: #344252;
}

.folio-command-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  margin-block-end: 18px;
}

.folio-selector-panel,
.folio-detail-panel {
  min-block-size: 100%;
}

.folio-groups {
  display: grid;
  gap: 18px;
}

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

.folio-group h3,
.invitation-list h3 {
  margin: 0;
  color: var(--folio-ink-soft);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.folio-link {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #f8fbfc;
  color: var(--ink);
  font-weight: 700;
  padding: 10px 12px;
}

.folio-link:hover,
.folio-link.active {
  border-color: rgb(15 138 122 / 0.34);
  background: #eefaf7;
  color: var(--accent-dark);
}

.folio-link span,
.muted-copy {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.global-folio-list {
  display: grid;
  gap: 8px;
  max-block-size: 300px;
  overflow: auto;
  padding-inline-end: 2px;
}

.global-folio-link {
  border-color: rgb(35 116 166 / 0.18);
  background: #f3f8fb;
}

.global-folio-link.active,
.global-folio-link:hover {
  border-color: rgb(35 116 166 / 0.42);
  background: #eaf5fb;
  color: #155b84;
}

.folio-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 10px;
  margin: 0;
}

.folio-meta-grid div {
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.folio-meta-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.folio-meta-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.backtest-form {
  gap: 18px;
}

.backtest-rule-grid {
  grid-template-columns: repeat(6, minmax(96px, 1fr));
}

.backtest-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 10px;
  margin: 0;
}

.backtest-metric-grid div {
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 12px;
}

.backtest-metric-grid dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.backtest-metric-grid dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.backtest-warning-list,
.backtest-caveat-panel ul,
.backtest-skipped-list {
  margin: 18px 0 0;
  color: var(--muted);
}

.backtest-warning-list h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 0.95rem;
}

.backtest-warning-list li,
.backtest-caveat-panel li,
.backtest-skipped-list li {
  margin: 6px 0;
}

.invitation-list,
.inline-create-panel,
.share-table {
  margin-block-start: 18px;
}

.invitation-row,
.share-row,
.read-only-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--folio-ink-soft);
  padding: 12px;
}

.share-row {
  background: #f8fbfc;
}

.read-only-callout {
  justify-content: flex-start;
  background: #f3f8fb;
}

.read-only-callout strong {
  color: #155b84;
}

.compact-button-row {
  margin: 0;
}

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

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

.inline-share-form {
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 180px) auto;
  align-items: end;
}

.signal-panel {
  border-color: rgb(120 104 216 / 0.2);
  background:
    linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(245 250 250 / 0.98)),
    #ffffff;
}

.signal-board-details {
  overflow: hidden;
  padding: 0;
}

.signal-board-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  min-block-size: 50px;
  cursor: pointer;
  list-style: none;
  padding: 9px 14px;
}

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

.signal-board-summary:focus-visible {
  outline: 3px solid rgb(26 157 133 / 0.28);
  outline-offset: -3px;
}

.signal-board-title {
  display: grid;
  gap: 1px;
  min-inline-size: 178px;
}

.signal-board-title span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.signal-board-title strong {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.15;
}

.signal-board-badges {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  min-inline-size: 0;
  overflow-x: auto;
  padding-block: 1px;
}

.signal-board-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-block-size: 28px;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.signal-board-badge::before {
  content: "";
  inline-size: 8px;
  block-size: 8px;
  border-radius: 999px;
  background: currentColor;
}

.signal-board-badge strong {
  display: inline-grid;
  place-items: center;
  min-inline-size: 20px;
  block-size: 20px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.72);
  color: inherit;
  font-size: 0.72rem;
}

.signal-board-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.signal-board-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 70px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--accent-dark);
  padding: 5px 10px;
}

.signal-board-toggle-open,
.signal-board-details[open] .signal-board-toggle-closed {
  display: none;
}

.signal-board-details[open] .signal-board-toggle-open {
  display: inline;
}

.signal-board-body {
  display: grid;
  gap: 18px;
  border-block-start: 1px solid var(--line-subtle);
  padding: 16px;
}

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

.signal-group-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

.signal-group-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  inline-size: 4px;
  background: var(--muted-light);
}

.signal-top-buy::before { background: var(--positive); }
.signal-watch::before { background: var(--folio-sky); }
.signal-hold::before { background: var(--folio-mint); }
.signal-sell-trim::before { background: var(--warning); }
.signal-avoid::before { background: var(--folio-rose); }
.signal-no-signal::before { background: var(--muted-light); }

.signal-group-heading {
  align-items: start;
  gap: 12px;
}

.signal-group-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.signal-group-count {
  display: inline-grid;
  place-items: center;
  min-inline-size: 36px;
  block-size: 32px;
  border-radius: 8px;
  background: #f3f7f9;
  color: var(--ink);
  font-weight: 800;
}

.signal-list {
  gap: 8px;
}

.signal-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line-subtle);
  border-radius: 8px;
  background: #fbfdfe;
  padding: 10px;
}

.signal-list-main {
  display: grid;
  gap: 3px;
  min-inline-size: 0;
}

.signal-list-main strong {
  color: var(--ink);
  font-size: 0.95rem;
}

.signal-list-main span {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.signal-list-score {
  display: grid;
  place-items: center;
  min-inline-size: 48px;
  border-radius: 8px;
  background: #eefaf7;
  color: var(--accent-dark);
  padding: 6px;
}

.signal-list-score span {
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
}

.signal-list-score small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .folio-command-grid,
  .signal-group-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .folio-meta-grid,
  .backtest-rule-grid,
  .backtest-metric-grid,
  .form-grid.two-columns,
  .inline-share-form {
    grid-template-columns: 1fr;
  }

  .signal-board-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .signal-board-title {
    min-inline-size: 0;
  }

  .signal-board-meta {
    justify-content: space-between;
  }

  .invitation-row,
  .share-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Owner feedback refresh: Lovable-style light surfaces and visible sharing */

.app-body {
  --paper: #f3f7fb;
  --line: #d8e2eb;
  --line-subtle: #eaf0f5;
}

.app-body::before {
  block-size: 0;
  background: transparent;
}

.app-body .shell {
  inline-size: min(1680px, calc(100vw - 32px));
  padding-block-start: 16px;
}

.app-body .topbar {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 12px 32px -28px rgb(15 23 42 / 0.35);
}

.app-body .brand {
  color: var(--ink);
}

.app-body .brand:hover {
  color: var(--ink);
}

.app-body .brand-mark {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.app-body .nav-row a,
.app-body .nav-row button {
  color: #4c5c70;
}

.app-body .nav-row a:hover,
.app-body .nav-row button:hover {
  background: #f1f6fa;
  color: #101827;
}

.app-body .mobile-nav summary {
  border-color: var(--line);
  background: #ffffff;
  color: #101827;
}

.app-body .mobile-nav-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 18px 45px -30px rgb(15 23 42 / 0.45);
}

.app-body .mobile-nav-panel a,
.app-body .mobile-nav-panel button {
  color: #4c5c70;
}

.app-body .mobile-nav-panel a:hover,
.app-body .mobile-nav-panel button:hover {
  background: #f1f6fa;
  color: #101827;
}

.app-body .page-heading {
  align-items: center;
  border: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 20px 2px 10px;
}

.app-body .page-heading h1 {
  color: var(--ink);
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}

.app-body .page-heading p {
  color: #5c6d82;
}

.app-body .eyebrow {
  color: #536376;
}

.app-body .update-badge {
  border-color: #b8eadb;
  background: #e9fff7;
  color: #04735f;
}

.app-body .scorecard {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 12px 30px -26px rgb(15 23 42 / 0.42);
}

.app-body .scorecard strong {
  color: var(--ink);
}

.app-body .scorecard span {
  color: #5c6d82;
}

.app-body .refresh-card {
  color: var(--ink);
}

.app-body .refresh-card:hover {
  border-color: #b8c8d8;
  background: #f8fbfd;
}

.app-body .heading-actions .refresh-card:first-child {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.app-body .heading-actions .refresh-card:first-child strong,
.app-body .heading-actions .refresh-card:first-child span {
  color: #ffffff;
}

.app-body thead th,
.app-body thead th:first-child,
.app-body .worksheet-sticky-header th,
.app-body .worksheet-sticky-header th:first-child {
  background: #f8fbfd;
  color: #536376;
}

.app-body .worksheet-sticky-header {
  border-block: 1px solid var(--line);
  background: #f8fbfd;
  box-shadow: 0 16px 32px -28px rgb(15 23 42 / 0.35);
}

.app-body .header-subline {
  color: #7d8da0;
}

.app-body th + th,
.app-body td + td {
  border-inline-start: 1px solid #e5edf3;
}

.app-body .sort-link.active {
  color: var(--accent-dark);
}

.dashboard-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.27fr) minmax(0, 0.73fr);
  gap: 18px;
  align-items: start;
  margin-block-end: 18px;
}

.dashboard-workspace > .panel,
.dashboard-workspace-main > .panel {
  margin-block-start: 0;
}

.dashboard-workspace-main {
  display: grid;
  gap: 18px;
  min-inline-size: 0;
}

.dashboard-workspace .folio-selector-panel,
.dashboard-workspace .folio-detail-panel {
  min-block-size: auto;
}

.folio-selector-panel {
  position: sticky;
  inset-block-start: 14px;
}

.folio-management-summary.panel-heading {
  align-items: center;
  border-block-end: 0;
  cursor: pointer;
  list-style: none;
  margin-block-end: 0;
  padding-block-end: 0;
}

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

.folio-management-summary:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgb(15 138 122 / 0.28);
  outline-offset: 6px;
}

.folio-management-summary-copy {
  display: grid;
  gap: 6px;
}

.folio-management-summary-copy h2,
.folio-management-summary-copy p {
  margin: 0;
}

.folio-management-summary-copy p {
  max-inline-size: 62ch;
}

.folio-management-summary-action::after {
  content: "Expand";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 92px;
  min-block-size: 36px;
  border: 1px solid #b8eadb;
  border-radius: 8px;
  background: #e9fff7;
  color: #04735f;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 6px 12px;
  text-transform: uppercase;
}

.folio-management-panel[open] .folio-management-summary.panel-heading {
  border-block-end: 1px solid var(--line-subtle);
  margin-block-end: 20px;
  padding-block-end: 16px;
}

.folio-management-panel[open] .folio-management-summary-action::after {
  content: "Collapse";
}

.folio-management-grid {
  display: grid;
  gap: 20px;
}

.management-section {
  display: grid;
  gap: 14px;
  padding-block-start: 18px;
}

.management-section:first-child {
  padding-block-start: 0;
}

.management-section + .management-section {
  border-block-start: 1px solid var(--line-subtle);
}

.management-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.management-section-heading h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0;
}

.management-section-heading span {
  border: 1px solid #b8eadb;
  border-radius: 999px;
  background: #e9fff7;
  color: #04735f;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 8px;
  text-transform: uppercase;
}

.share-management-section {
  border-inline-start: 4px solid var(--accent);
  padding-inline-start: 14px;
}

.folio-editor-form {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.folio-editor-form .primary-button,
.create-management-section .primary-button,
.inline-share-form .secondary-button {
  justify-self: start;
}

.empty-note {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0;
}

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

  .folio-selector-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .app-body .shell {
    inline-size: calc(100vw - 20px);
    padding-block-start: 10px;
  }

  .app-body .topbar {
    margin-block-end: 14px;
    padding: 12px;
  }

  .app-body .page-heading {
    padding-block-start: 8px;
  }

  .app-body .heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-body .scorecard {
    min-inline-size: 0;
    padding: 12px;
  }

  .app-body .scorecard strong {
    font-size: 1.5rem;
  }

  .folio-management-summary.panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .folio-management-summary-action::after {
    inline-size: 100%;
  }

  .management-section-heading,
  .inline-share-form .secondary-button,
  .folio-editor-form .primary-button,
  .create-management-section .primary-button {
    inline-size: 100%;
  }
}

.landing-body {
  --paper: #f3f7fb;
  background: #f3f7fb;
  color: #101827;
}

.landing-body::before {
  block-size: 0;
  background: transparent;
}

.landing-shell {
  inline-size: min(1260px, calc(100vw - 48px));
  padding-block-end: 56px;
}

.landing-nav {
  border-block-end: 1px solid var(--line);
  padding: 16px 0;
}

.landing-body .brand {
  color: #101827;
}

.landing-body .brand:hover {
  color: #101827;
}

.landing-body .brand-mark {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.landing-menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-menu a {
  color: #536376;
  font-weight: 650;
}

.landing-menu a:hover {
  color: #101827;
}

.landing-signin-link,
.landing-request-link {
  border-color: var(--line);
  background: #ffffff;
  color: #101827;
}

.landing-request-link {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.landing-signin-link:hover,
.landing-request-link:hover {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.hero {
  gap: 68px;
  padding: 72px 0 70px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #536376;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 22px;
  padding: 5px 12px;
  text-transform: uppercase;
}

.hero-kicker span {
  inline-size: 7px;
  block-size: 7px;
  border-radius: 999px;
  background: #20c997;
}

.hero-title {
  color: #101827;
  font-size: clamp(3.2rem, 6vw, 5rem);
  font-weight: 850;
  line-height: 0.96;
}

.hero-title em {
  color: #6a7484;
  font-style: italic;
}

.hero-subtitle {
  color: #5c6d82;
  font-size: 1.18rem;
}

.hero-cta {
  display: flex;
  flex-flow: row wrap;
  align-items: center;
}

.hero-note {
  flex-basis: 100%;
  color: #6b7b90;
}

.hero-button,
.hero-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 50px;
  border-radius: 8px;
  font-weight: 800;
  padding: 0 22px;
}

.hero-button {
  background: #101827;
  color: #ffffff;
  box-shadow: 0 16px 34px -24px rgb(15 23 42 / 0.55);
}

.hero-button:hover {
  color: #ffffff;
}

.hero-secondary-button {
  border: 1px solid var(--line);
  background: #ffffff;
  color: #101827;
}

.hero-secondary-button:hover {
  border-color: #101827;
  color: #101827;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 28px;
  margin: 34px 0 0;
}

.hero-stats dt,
.hero-stats dd {
  margin: 0;
}

.hero-stats dt {
  color: #101827;
  font-size: 1.45rem;
  font-weight: 850;
  line-height: 1;
}

.hero-stats dd {
  color: #536376;
  font-size: 0.76rem;
  font-weight: 800;
  margin-block-start: 6px;
  text-transform: uppercase;
}

.product-preview {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 24px 56px -38px rgb(15 23 42 / 0.4);
}

.preview-toolbar {
  border-block-end-color: var(--line-subtle);
  color: #101827;
}

.preview-toolbar strong {
  border-color: #b8eadb;
  background: #d8faed;
  color: #04735f;
}

.preview-row {
  color: #101827;
}

.preview-row + .preview-row {
  border-block-start-color: var(--line-subtle);
}

.preview-head {
  color: #536376;
}

.preview-row strong {
  color: #101827;
}

.up {
  color: #07935f;
}

.flat {
  color: #a16a00;
}

.credibility {
  border-block: 1px solid var(--line);
  padding: 0;
}

.credibility-grid {
  gap: 0;
}

.credibility-item {
  border-inline-start: 1px solid var(--line);
  padding: 30px;
  text-align: left;
}

.credibility-item:first-child {
  border-inline-start: 0;
}

.credibility-item span {
  color: #69798e;
  display: block;
  font-size: 0.78rem;
  font-weight: 850;
  margin-block-end: 14px;
}

.credibility-item strong,
.features-heading,
.workflow-heading,
.final-cta-content h2 {
  color: #101827;
}

.credibility-item p,
.feature-card p,
.workflow-content p,
.final-cta-content p {
  color: #5c6d82;
}

.folio-rack,
.workflow {
  padding: 70px 0;
}

.folio-rack-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-block-end: 30px;
}

.folio-rack-heading p {
  color: #5c6d82;
  margin: 8px 0 0;
  font-size: 1rem;
}

.rack-link {
  color: #101827;
  font-weight: 850;
}

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

.landing-folio-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: 0 18px 40px -34px rgb(15 23 42 / 0.45);
}

.landing-folio-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.landing-folio-card small {
  color: #69798e;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-folio-card h3 {
  color: #101827;
  font-size: 1.25rem;
  margin: 16px 0 4px;
}

.landing-folio-card p {
  color: #536376;
  font-size: 0.92rem;
  margin: 0 0 18px;
}

.landing-folio-card strong {
  color: #101827;
  display: block;
  font-size: 1.15rem;
  margin-block-end: 20px;
}

.landing-folio-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-block-start: 1px solid var(--line-subtle);
  margin: 0;
  padding-block-start: 16px;
}

.landing-folio-card dt,
.landing-folio-card dd {
  margin: 0;
}

.landing-folio-card dt {
  color: #69798e;
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
}

.landing-folio-card dd {
  color: #101827;
  font-size: 0.78rem;
  font-weight: 700;
  margin-block-start: 4px;
}

.folio-tag {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 5px 8px;
  text-transform: uppercase;
}

.folio-tag.primary {
  background: #d8faed;
  color: #04735f;
}

.folio-tag.yours {
  background: #edf4ff;
  color: #1f4fa3;
}

.folio-tag.shared {
  background: #fff3d6;
  color: #8a5a00;
}

.workflow {
  border-block-start: 1px solid var(--line);
}

.workflow-step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 20px;
}

.workflow-number {
  border-color: #101827;
  background: #101827;
  color: #ffffff;
}

.workflow-content h3 {
  color: #101827;
}

.final-cta {
  border-block-start: 1px solid var(--line);
}

.landing-footer {
  border-block-start: 1px solid var(--line);
}

.request-panel,
.success-panel {
  border-color: var(--line);
  background: #ffffff;
  box-shadow: 0 24px 56px -38px rgb(15 23 42 / 0.42);
}

.request-panel h1,
.request-panel p,
.request-form label span {
  color: #101827;
}

.request-panel p {
  color: #5c6d82;
}

@media (max-width: 920px) {
  .landing-menu {
    display: none;
  }

  .hero,
  .landing-folio-grid {
    grid-template-columns: 1fr;
  }

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

  .credibility-item {
    border-block-start: 1px solid var(--line);
    border-inline-start: 0;
  }

  .credibility-item:first-child {
    border-block-start: 0;
  }
}

@media (max-width: 640px) {
  .landing-shell {
    inline-size: calc(100vw - 24px);
  }

  .landing-nav,
  .landing-actions,
  .final-actions,
  .folio-rack-heading {
    align-items: stretch;
  }

  .landing-nav,
  .folio-rack-heading {
    flex-direction: column;
  }

  .landing-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    padding: 42px 0 52px;
  }

  .hero-title {
    font-size: 3rem;
  }

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

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-preview {
    overflow: visible;
  }

  .preview-grid {
    min-inline-size: 0;
  }

  .preview-toolbar {
    padding: 12px;
  }

  .preview-toolbar strong {
    font-size: 0.64rem;
    padding: 4px 6px;
  }

  .preview-row {
    grid-template-columns: minmax(46px, 1fr) repeat(3, minmax(38px, 0.75fr)) minmax(58px, 1fr);
    gap: 5px;
    padding: 10px 12px;
    font-size: 0.74rem;
  }

  .preview-head {
    font-size: 0.58rem;
  }

  .landing-folio-card dl {
    grid-template-columns: 1fr;
  }
}
