:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-subtle: #f9fbfa;
  --sidebar-bg: #f1f4f2;
  --border: #e2e8e5;
  --border-strong: #cdd7d2;
  --ink: #112220;
  --ink-secondary: #435654;
  --muted: #667976;
  --faint: #849692;
  --brand: #0f4c43;
  --brand-hover: #0a3b34;
  --accent: #0f7a63;
  --accent-soft: #e8f5ef;
  --accent-border: #c5e5d7;
  --amber-bg: #fef7e6;
  --amber-border: #f0dba6;
  --amber-ink: #8a621c;
  --danger-bg: #fef1ef;
  --danger-border: #f2cbc6;
  --danger-ink: #a63a35;
  --radius-sm: 7px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-card: 0 1px 2px rgba(17, 34, 32, 0.04), 0 6px 20px rgba(17, 34, 32, 0.03);
  --shadow-dialog: 0 24px 60px rgba(17, 34, 32, 0.2);

  /* Typography — comfortable desktop scale */
  --text-2xs: 12px;
  --text-xs: 13px;
  --text-sm: 14px;
  --text-base: 15px;
  --text-md: 17px;
  --text-lg: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    400 var(--text-base) / 1.5 -apple-system,
    BlinkMacSystemFont,
    "Inter",
    "Segoe UI",
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.hidden {
  display: none !important;
}

.ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.ico-sm {
  width: 15px;
  height: 15px;
}

.ico-xs {
  width: 13px;
  height: 13px;
}

.ico-lg {
  width: 24px;
  height: 24px;
}

/* --- App Shell ------------------------------------------------------------ */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 248px;
  min-width: 248px;
  height: 100vh;
  position: sticky;
  top: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  padding: 20px 14px 16px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  margin-bottom: 24px;
}

.brand-word {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
}

.brand-strong {
  color: var(--accent);
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2.5px;
  transform: rotate(-7deg);
  flex-shrink: 0;
}

.brand-mark i {
  border-radius: 3.5px;
  background: #133c36;
}

.brand-mark i:nth-child(2) {
  border-radius: 8px 3.5px 8px 3.5px;
}

.brand-mark i:last-child {
  background: #4ea986;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-secondary);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  transition: background 0.14s, color 0.14s;
}

.nav-item:hover {
  background: rgba(15, 76, 67, 0.06);
  color: var(--ink);
}

.nav-item.active {
  background: var(--surface);
  color: var(--brand);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(17, 34, 32, 0.06);
}

.nav-item.active .ico {
  color: var(--accent);
}

.nav-badge {
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e2eae6;
  color: var(--ink-secondary);
  font-size: var(--text-2xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.nav-item.active .nav-badge {
  background: var(--accent-soft);
  color: var(--accent);
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quota-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}

.quota-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.quota-top strong {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.quota-bar {
  display: block;
  width: 100%;
  height: 5px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: #e8efec;
}

.quota-bar::-webkit-progress-bar {
  background: #e8efec;
  border-radius: 999px;
}

.quota-bar::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}

.quota-bar::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

.quota-hint {
  margin-top: 6px;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
}

.quota-cta {
  width: 100%;
  margin-top: 10px;
  height: 34px;
  border-radius: 7px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--brand);
  font-size: var(--text-xs);
  font-weight: 600;
  transition: background 0.14s, border-color 0.14s;
}

.quota-cta:hover {
  background: #d9efe4;
  border-color: #a9d9c4;
}

.account-tile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  transition: background 0.14s, border-color 0.14s;
}

.account-tile:hover {
  background: var(--surface);
  border-color: var(--border);
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.account-copy {
  min-width: 0;
  flex: 1;
}

.account-copy strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-copy small {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-chevron {
  color: var(--faint);
}

/* --- Workspace & Topbar --------------------------------------------------- */

.workspace {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 60px;
  padding: 0 32px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.topbar-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--accent-soft);
  color: var(--accent);
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-muted {
  background: #edf1ef;
  color: var(--muted);
}

.main-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 24px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Buttons -------------------------------------------------------------- */

.primary-btn,
.secondary-btn,
.ghost-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  transition: background 0.14s, border-color 0.14s, color 0.14s, transform 0.12s;
  white-space: nowrap;
}

.primary-btn {
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: var(--text-base);
}

.primary-btn:hover:not(:disabled) {
  background: var(--brand-hover);
}

.primary-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-inline {
  width: auto;
  height: 38px;
  font-size: var(--text-sm);
}

.secondary-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-btn:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: #b7c6bf;
}

.secondary-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.ghost-btn {
  height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-secondary);
}

.ghost-btn:hover {
  background: #edf2ef;
  color: var(--ink);
}

.danger-btn {
  height: 38px;
  padding: 0 14px;
  border: 1px solid var(--danger-border);
  background: var(--danger-bg);
  color: var(--danger-ink);
}

.danger-btn:hover {
  background: #fce3df;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--ink-secondary);
}

.text-link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}

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

/* --- Notice Banner -------------------------------------------------------- */

.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--brand);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: var(--text-sm);
  margin-bottom: 18px;
}

.notice span {
  flex: 1;
}

.notice button {
  border: 0;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: inherit;
  padding: 0 4px;
}

.notice-error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

/* --- Page Intro & Views --------------------------------------------------- */

.page-intro {
  margin-bottom: 20px;
}

.page-intro h1,
.view-head h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 2.6vw, 36px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.page-intro h1 em {
  font-style: italic;
  color: var(--accent);
}

.page-intro p,
.view-head p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 16px;
}

.view-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* --- Discover Split Layout ------------------------------------------------ */

.discover-grid {
  display: grid;
  grid-template-columns: 404px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.brief-card {
  padding: 22px;
  position: sticky;
  top: 80px;
}

.card-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #eef2f0;
}

.card-header h2 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--ink);
}

.card-header p {
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--muted);
}

/* --- Form Controls -------------------------------------------------------- */

.field {
  margin-bottom: 14px;
}

.field label,
.field-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.req {
  color: #cf5242;
}

.opt {
  font-weight: 400;
  color: var(--faint);
  font-size: var(--text-xs);
  margin-left: 4px;
}

.field input,
.field textarea,
.field select,
.compact-select {
  width: 100%;
  display: block;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 11px;
  font-size: var(--text-base);
  line-height: 1.4;
  color: var(--ink);
  outline: none;
  transition: border-color 0.14s, box-shadow 0.14s, background 0.14s;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.compact-select:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 99, 0.12);
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a8a4;
}

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

.field-hint {
  display: block;
  margin-top: 5px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.pill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.pill {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  color: var(--ink-secondary);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  transition: all 0.14s;
}

.pill:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.pill.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--brand);
  font-weight: 600;
}

.field-row-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 6px;
}

.field-row-head .field-label {
  margin-bottom: 0;
}

.preset-chips {
  display: inline-flex;
  gap: 4px;
}

.chip-btn {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: var(--text-2xs);
  font-weight: 600;
}

.chip-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.chip-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent);
}

.fields-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.toggle-card {
  margin: 16px 0;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-subtle);
}

.toggle-card.is-disabled {
  opacity: 0.65;
}

.toggle-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.toggle-card.is-disabled .toggle-label {
  cursor: default;
}

.toggle-copy strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.toggle-copy small {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.4;
}

.switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

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

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #cfd9d5;
  transition: background 0.16s;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s;
}

.switch input:checked + .switch-track {
  background: var(--accent);
}

.switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.switch input:focus-visible + .switch-track {
  box-shadow: 0 0 0 3px rgba(15, 122, 99, 0.2);
}

.form-footer {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.form-hint {
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.45;
}

/* --- Results Panel -------------------------------------------------------- */

.results-card {
  padding: 22px;
  min-height: 580px;
  scroll-margin-top: 72px;
}

.empty-workspace {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 536px;
}

.empty-hero {
  text-align: center;
  max-width: 480px;
  margin: 44px auto 32px;
}

.empty-icon-ring {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  display: grid;
  place-items: center;
}

.empty-hero h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
}

.empty-hero p {
  color: var(--muted);
  font-size: var(--text-base);
  line-height: 1.6;
}

.empty-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sample-preview-card {
  margin: 0 auto 22px;
  max-width: 640px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 4px 18px rgba(15, 76, 67, 0.06);
}

.sample-preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 10px;
}

.sample-preview-label span:last-child {
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.sample-preview-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.sample-preview-top strong {
  display: block;
  font-size: var(--text-base);
  color: var(--ink);
}

.sample-handle {
  display: block;
  font-size: var(--text-xs);
  color: var(--muted);
}

.sample-score-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 5px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}

.sample-score-pill strong {
  font-size: 19px;
  line-height: 1;
  color: var(--brand);
}

.sample-score-pill span {
  font-size: var(--text-2xs);
  color: var(--muted);
}

.sample-signal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: 10px;
}

.sample-signal-row b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.sample-quote {
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid #ecf1ee;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--ink-secondary);
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid #eef2f0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface-subtle);
  border: 1px solid #ecf1ee;
}

.feature-item .ico {
  color: var(--accent);
}

.feature-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.feature-item span {
  display: block;
  font-size: var(--text-xs);
  line-height: 1.45;
  color: var(--muted);
}

/* Loading State */

.loading-state {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading-box {
  width: 100%;
  max-width: 460px;
}

.loading-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.loading-head h2 {
  font-size: 17px;
  font-weight: 600;
}

.loading-head p {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: 2px;
}

.spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2.5px solid #dfeae5;
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.job-progress {
  display: block;
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: #e8efec;
}

.job-progress::-webkit-progress-bar {
  background: #e8efec;
  border-radius: 999px;
}

.job-progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--brand), #379f7d);
  border-radius: 999px;
  transition: width 0.25s;
}

.job-progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--brand), #379f7d);
  border-radius: 999px;
}

.loading-note {
  margin-top: 12px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.55;
}

/* Results Header & Toolbar */

.results-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid #edf1ef;
}

.results-title-group {
  min-width: 0;
}

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

.results-title-row h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}

.mode-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-border);
}

.mode-badge.is-live {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: var(--accent-border);
}

.results-sub {
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.results-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.kpi-pill {
  padding: 7px 12px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid #eaf0ed;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-pill strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.kpi-pill span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.context-banner {
  margin-top: 14px;
  padding: 10px 13px;
  border-radius: 9px;
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  color: var(--amber-ink);
  font-size: var(--text-xs);
  line-height: 1.5;
}

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 14px 0 16px;
}

.search-inline {
  position: relative;
  flex: 1;
  max-width: 340px;
}

.search-inline .ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}

.search-inline input {
  width: 100%;
  height: 36px;
  padding: 0 10px 0 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-subtle);
  font-size: var(--text-sm);
  outline: none;
}

.search-inline input:focus {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 122, 99, 0.1);
}

.compact-select {
  width: auto;
  height: 36px;
  padding: 0 10px;
  font-size: var(--text-sm);
  font-weight: 500;
}

/* --- Creator Cards -------------------------------------------------------- */

.creator-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.creator-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface);
  transition: border-color 0.14s, box-shadow 0.14s;
}

.creator-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 4px 16px rgba(17, 34, 32, 0.04);
}

.creator-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.creator-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.creator-avatar {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--brand);
  font-size: var(--text-sm);
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.creator-meta {
  min-width: 0;
  flex: 1;
}

.creator-name-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.creator-name-line strong {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.handle-link {
  font-size: var(--text-sm);
  color: var(--muted);
}

a.handle-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.creator-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 4px;
  font-size: var(--text-xs);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.creator-stats-row b {
  color: var(--ink);
  font-weight: 600;
}

.score-pill {
  display: flex;
  align-items: baseline;
  gap: 2px;
  padding: 6px 11px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--brand);
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.score-pill strong {
  font-size: 21px;
  font-weight: 700;
  line-height: 1;
}

.score-pill span {
  font-size: var(--text-2xs);
  color: var(--accent);
  font-weight: 600;
}

.score-pill.score-mid {
  background: #f0f5f3;
  border-color: #d7e3de;
  color: var(--ink-secondary);
}

.score-pill.score-mid span {
  color: var(--muted);
}

.score-pill.score-low {
  background: #f5f6f6;
  border-color: #e4e7e6;
  color: var(--muted);
}

.score-pill.score-low span {
  color: var(--faint);
}

.creator-bio {
  margin-top: 10px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-secondary);
  overflow-wrap: anywhere;
}

/* Signal Bars */

.signal-bars {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface-subtle);
  border: 1px solid #edf2ef;
}

.signal-item {
  min-width: 0;
}

.signal-head {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-bottom: 5px;
  font-variant-numeric: tabular-nums;
}

.signal-head b {
  color: var(--ink);
  font-weight: 600;
}

.signal-meter {
  display: block;
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 999px;
  overflow: hidden;
  appearance: none;
  background: #e4ece8;
}

.signal-meter::-webkit-progress-bar {
  background: #e4ece8;
  border-radius: 999px;
}

.signal-meter::-webkit-progress-value {
  background: var(--accent);
  border-radius: 999px;
}

.signal-meter::-moz-progress-bar {
  background: var(--accent);
  border-radius: 999px;
}

/* Evidence Preview Quote */

.evidence-preview {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  background: #fafcfb;
  border: 1px solid #e7eeea;
  border-left: 3px solid var(--accent);
}

.evidence-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.tag-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: var(--text-2xs);
  font-weight: 600;
  background: #eef3f1;
  color: var(--ink-secondary);
}

.badge-ai {
  background: var(--accent-soft);
  color: var(--accent);
}

.badge-demo {
  background: var(--amber-bg);
  color: var(--amber-ink);
}

.evidence-text {
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.evidence-reason {
  margin-top: 6px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.evidence-meta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--text-xs);
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.evidence-meta a {
  margin-left: auto;
  color: var(--accent);
  font-weight: 600;
}

.evidence-meta a:hover {
  text-decoration: underline;
}

/* Card Footer Actions */

.creator-footer {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #f0f4f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

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

.save-btn {
  height: 36px;
  padding: 0 13px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.14s;
}

.save-btn:hover {
  border-color: var(--accent);
  color: var(--brand);
}

.save-btn.is-saved {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--brand);
}

.subtle-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid transparent;
  background: #f2f5f4;
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.subtle-btn:hover {
  background: #e7eeeb;
  color: var(--ink);
}

.details-drawer {
  display: none;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed #e1e9e5;
}

.details-drawer.open {
  display: block;
}

.drawer-posts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.caveat-note {
  margin-top: 10px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

.results-footnote {
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--faint);
  line-height: 1.5;
}

/* Error State */

.error-state {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 32px;
}

.error-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--danger-bg);
  color: var(--danger-ink);
  display: grid;
  place-items: center;
}

.error-state h3 {
  font-size: 18px;
  font-weight: 600;
}

.error-state p {
  max-width: 380px;
  color: var(--muted);
  font-size: var(--text-base);
}

/* --- Shortlist & History Tables ------------------------------------------- */

.stage-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.stage-pill {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stage-pill span {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.stage-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.stage-pill.active span {
  color: rgba(255, 255, 255, 0.78);
}

.table-card {
  overflow: hidden;
}

.empty-table {
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-base);
}

.empty-table p {
  margin-bottom: 16px;
}

.crm-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.4fr) 74px 136px minmax(160px, 1.2fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2ef;
}

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

.crm-head {
  background: var(--surface-subtle);
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 10px 18px;
}

.crm-who {
  min-width: 0;
}

.crm-who strong {
  display: block;
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-who strong a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.crm-who small {
  display: block;
  margin-top: 2px;
  font-size: var(--text-xs);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.crm-score {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--brand);
  background: var(--accent-soft);
  border-radius: 7px;
  padding: 4px 8px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.crm-row select,
.crm-row input {
  width: 100%;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface-subtle);
  font-size: var(--text-sm);
  outline: none;
}

.crm-row select:focus,
.crm-row input:focus {
  background: var(--surface);
  border-color: var(--accent);
}

.history-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) 120px 130px 150px auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf2ef;
}

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

.row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.row-delete {
  border: 0;
  background: transparent;
  color: var(--faint);
  padding: 6px 8px;
  border-radius: 6px;
  font-size: var(--text-xs);
  font-weight: 600;
}

.row-delete:hover {
  background: var(--danger-bg);
  color: var(--danger-ink);
}

/* --- Methodology View ----------------------------------------------------- */

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

.method-card {
  padding: 22px;
}

.method-step {
  display: inline-block;
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.method-card h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.method-card p {
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--ink-secondary);
}

.method-policy {
  margin-top: 16px;
  padding: 20px 22px;
}

.method-policy h3 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 6px;
}

.method-policy p {
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--muted);
}

/* --- Footer --------------------------------------------------------------- */

.app-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--text-xs);
  color: var(--faint);
}

.app-footer i {
  font-style: normal;
  color: #c8d2ce;
}

.app-footer a {
  color: var(--muted);
}

.app-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Dialogs -------------------------------------------------------------- */

.dialog {
  width: min(468px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}

.dialog-wide {
  width: min(680px, calc(100vw - 32px));
}

.account-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-box {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.orders-box h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 190px;
  overflow-y: auto;
}

.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--border);
}

.order-meta strong {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
}

.order-meta small {
  display: block;
  font-size: var(--text-2xs);
  color: var(--muted);
  margin-top: 1px;
}

.order-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.order-price {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--ink);
}

.order-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  background: var(--amber-bg);
  color: var(--amber-ink);
  border: 1px solid var(--amber-border);
}

.order-status.is-completed {
  background: var(--accent-soft);
  color: var(--brand);
  border-color: var(--accent-border);
}

.order-status.is-refunded {
  background: var(--danger-bg);
  color: var(--danger-ink);
  border-color: var(--danger-border);
}

.orders-empty {
  font-size: var(--text-xs);
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 6px;
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  background: var(--surface-subtle);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card.is-featured {
  background: var(--surface);
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(15, 122, 99, 0.08);
}

.plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.plan-head h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}

.plan-price-row strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}

.plan-price-row span {
  font-size: var(--text-xs);
  color: var(--muted);
}

.plan-unit {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
}

.plan-desc {
  font-size: var(--text-xs);
  line-height: 1.55;
  color: var(--ink-secondary);
  flex: 1;
}

.pricing-foot {
  margin-top: 16px;
  font-size: var(--text-xs);
  color: var(--muted);
  line-height: 1.5;
}

.pricing-foot a {
  color: var(--accent);
  text-decoration: underline;
}

.dialog::backdrop {
  background: rgba(17, 34, 32, 0.42);
  backdrop-filter: blur(2px);
}

.dialog h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 6px;
}

.dialog-intro {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin-bottom: 16px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--faint);
  font-size: 20px;
  line-height: 1;
}

.dialog-close:hover {
  background: #f0f4f2;
  color: var(--ink);
}

.dialog-error {
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  color: var(--danger-ink);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.dialog-info {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--brand);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: var(--text-sm);
  margin-bottom: 14px;
}

.verify-box {
  background: var(--amber-bg);
  border: 1px solid var(--amber-border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  color: var(--amber-ink);
  font-size: var(--text-sm);
}

.verify-box p {
  margin-bottom: 10px;
}

.verify-box .dialog-info {
  margin: 10px 0 0;
}

.dialog-switch {
  margin-top: 14px;
  text-align: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.link-btn {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
  font-size: var(--text-sm);
}

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

.danger-zone {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.danger-zone h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.danger-zone > p {
  color: var(--muted);
  font-size: var(--text-xs);
  margin-bottom: 12px;
}

/* --- Legal Pages (/privacy, /terms) --------------------------------------- */

.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.legal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.legal-head .brand {
  margin-bottom: 0;
  padding: 0;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 600;
}

.top-btn:hover {
  background: var(--surface-subtle);
}

.section-tag {
  font-size: var(--text-2xs);
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 700;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-card);
}

.legal-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  margin: 8px 0 6px;
}

.legal-updated {
  color: var(--faint);
  font-size: var(--text-sm);
  margin-bottom: 24px;
}

.legal-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
  margin: 26px 0 8px;
  color: var(--ink);
}

.legal-card p,
.legal-card li {
  color: var(--ink-secondary);
  font-size: var(--text-base);
  line-height: 1.75;
}

.legal-card p + p {
  margin-top: 10px;
}

.legal-card ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.legal-card li + li {
  margin-top: 6px;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
}

.legal-card code {
  background: #edf2ef;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: var(--text-sm);
}

footer {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: var(--text-xs);
  color: var(--faint);
}

footer span {
  margin: 0 7px;
  color: #c8d2ce;
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* --- Mobile & Responsive -------------------------------------------------- */

.mobile-only {
  display: none;
}

.mobile-tabs {
  padding: 8px 16px;
  gap: 6px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  overflow-x: auto;
}

.mobile-tab {
  padding: 6px 12px;
  border-radius: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 600;
  white-space: nowrap;
}

.mobile-tab.active {
  background: var(--accent-soft);
  color: var(--brand);
}

@media (max-width: 1140px) {
  .discover-grid {
    grid-template-columns: 360px minmax(0, 1fr);
  }
  .feature-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .sidebar {
    display: none;
  }
  .mobile-only {
    display: flex;
  }
  .topbar {
    padding: 0 16px;
  }
  .main-inner {
    padding: 20px 16px 28px;
  }
  .discover-grid {
    grid-template-columns: 1fr;
  }
  .brief-card {
    position: static;
  }
  .method-grid {
    grid-template-columns: 1fr;
  }
  .crm-head {
    display: none;
  }
  .crm-row,
  .history-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .status-pill {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --text-2xs: 11px;
    --text-xs: 12px;
    --text-sm: 13px;
    --text-base: 14px;
    --text-md: 15px;
  }
  .page-intro p,
  .view-head p {
    font-size: 14px;
  }
  .signal-bars {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-inline {
    max-width: none;
  }
  .legal-card {
    padding: 24px 20px;
  }
  .legal-head {
    flex-wrap: wrap;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}
