:root {
  --bg: #ffffff;
  --card: #ffffff;
  --panel: #f5f7f4;
  --panel-hover: #eef2ec;
  --ink: #0e0f0c;
  --muted: #454745;
  --subtle: #868685;
  --line: rgba(14, 15, 12, 0.08);
  --line-strong: rgba(14, 15, 12, 0.12);
  --primary: #04d16a;
  --primary-hover: #26dc82;
  --primary-soft: #e2f6d5;
  --primary-ink: #163300;
  --success-ink: #054d28;
  --danger: #d03238;
  --warning-bg: #fef3c7;
  --warning-ink: #92400e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Noto Sans CJK SC", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "calt";
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.app {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
}

.topbar,
.report-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
}

.is-report-route .topbar {
  display: none;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  max-width: 68vw;
  color: var(--ink);
  text-decoration: none;
}

.brand-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--primary);
}

.brand-name {
  overflow: hidden;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  overflow: hidden;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.link-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--subtle);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.page {
  width: 100%;
  margin: 0 auto;
  padding: 0 max(14px, env(safe-area-inset-left)) 0 max(14px, env(safe-area-inset-right));
}

.route-loading {
  display: flex;
  min-height: calc(100svh - 56px);
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 14px;
  font-weight: 700;
}

.route-loading p {
  margin: 0;
}

.route-loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
  animation: route-loading-pulse 900ms ease-in-out infinite alternate;
}

.auth-panel {
  display: grid;
  min-height: calc(100svh - 56px);
  place-items: center;
  padding: 48px 0;
}

.auth-card {
  width: min(100%, 440px);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 24px 60px -42px rgba(14, 15, 12, 0.3);
  padding: 16px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border-radius: 999px;
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 4px;
}

.auth-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.auth-tab.is-active {
  background: var(--primary);
  color: var(--primary-ink);
}

.auth-form {
  display: grid;
  gap: 14px;
  padding-top: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.auth-form h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

label span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--panel);
  color: var(--ink);
  padding: 0 14px;
  font-size: 14px;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
  color: #a8aaa5;
}

input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 209, 106, 0.22);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 4px;
}

.login-turnstile {
  display: grid;
  gap: 8px;
}

.login-turnstile-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-turnstile .turnstile-box {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
}

.form-message {
  min-height: 18px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease, opacity 160ms ease, border-color 160ms ease;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
}

.button.primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.button.ghost {
  border-color: var(--line-strong);
  background: #ffffff;
  color: var(--muted);
}

.button.ghost:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.58;
  transform: none;
}

.workspace {
  animation: rise 240ms ease both;
}

.hero {
  padding: 34px 0 28px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.7;
}

.hero .research-cost {
  width: fit-content;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--success-ink);
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.search-box {
  margin-top: 28px;
}

.segmented-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--panel);
  padding: 4px;
  box-shadow: rgba(14, 15, 12, 0.08) 0 0 0 1px;
}

.segmented-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.segmented-tabs button:hover {
  background: #ffffff;
  color: var(--ink);
}

.segmented-tabs button.is-active {
  background: var(--primary);
  color: #163300;
}

.research-type-tabs {
  margin-bottom: 18px;
}

.job-type-tabs {
  margin-top: 14px;
}

.industry-funnel-note {
  margin: 12px 0 0;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.6;
}

.industry-funnel-note.is-error {
  color: var(--danger);
  font-weight: 700;
}

.research-search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: end;
}

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

.research-field > span {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.research-field select,
.research-field input {
  width: 100%;
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  background: var(--panel);
  color: var(--ink);
  padding: 0 14px;
  font-size: 15px;
  font-weight: 600;
}

.research-field select:focus,
.research-field input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 209, 106, 0.18);
}

.research-search-grid .button {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
}

.search-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  border-bottom: 0;
  padding-bottom: 0;
  transition: border-color 160ms ease;
}

.search-line:focus-within {
  border-color: var(--primary);
}

.search-line input {
  height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 14px;
  font-size: 16px;
  font-weight: 500;
}

.search-line input:focus {
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(4, 209, 106, 0.18);
}

.search-line .button {
  width: 100%;
  margin-bottom: 0;
}

.quick-hints {
  margin-top: 12px;
  color: var(--subtle);
  font-size: 12px;
  line-height: 1.8;
}

.quick-hints button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.quick-hints button:hover {
  color: var(--ink);
}

.results {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.suggestion-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  padding: 12px;
  text-align: left;
  transition: background 160ms ease, border-color 160ms ease;
}

.suggestion-row:hover {
  border-color: rgba(4, 209, 106, 0.35);
  background: var(--panel-hover);
}

.suggestion-symbol {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.suggestion-symbol strong,
.suggestion-name,
.suggestion-price {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-symbol strong {
  font-size: 14px;
  font-weight: 800;
}

.suggestion-symbol em {
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--success-ink);
  padding: 3px 8px;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.suggestion-name {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.suggestion-price {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.section-heading h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.25;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.task-section {
  padding: 10px 0 24px;
}

.section-heading {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: column;
  gap: 10px;
  border-bottom: 1px solid var(--line-strong);
  padding: 0 20px 12px;
}

.section-heading > div:last-child {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  color: var(--subtle);
  font-size: 12px;
}

.job-list {
  display: grid;
}

.job-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  transition: background 160ms ease;
}

.job-row:hover {
  background: rgba(245, 247, 244, 0.45);
}

.job-row.is-active {
  background: rgba(245, 247, 244, 0.7);
}

.job-main {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.job-symbol {
  flex: 0 0 auto;
  min-width: 0;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 14px;
}

.job-name {
  overflow: hidden;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-market {
  grid-column: 2;
  min-width: 0;
  color: var(--subtle);
  font-size: 12px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.job-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--subtle);
  font-size: 12px;
  white-space: nowrap;
}

.job-actions a {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.job-actions a:hover {
  color: var(--success-ink);
}

.job-stop-button {
  border: 1px solid rgba(197, 76, 76, 0.35);
  border-radius: 999px;
  background: transparent;
  color: var(--danger);
  cursor: pointer;
  padding: 5px 10px;
  font: inherit;
  font-weight: 700;
}

.job-stop-button:hover:not(:disabled) {
  border-color: var(--danger);
  background: rgba(197, 76, 76, 0.06);
}

.job-stop-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.job-cancellation-note {
  margin: 0;
  border-radius: 8px;
  background: rgba(4, 209, 106, 0.08);
  color: var(--success-ink);
  padding: 10px 12px;
  font-size: 13px;
}

.has-action-dialog {
  overflow: hidden;
}

.action-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(14, 15, 12, 0.3);
  padding: 20px;
  backdrop-filter: blur(5px);
}

.action-dialog {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid #e8ebe6;
  border-radius: 30px;
  outline: none;
  background: var(--card);
  box-shadow: 0 24px 60px -20px rgba(14, 15, 12, 0.25);
  padding: 30px;
  animation: action-dialog-in 180ms ease both;
}

.action-dialog-handle {
  display: none;
}

.action-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--panel);
  color: var(--subtle);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.action-dialog-close:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.action-dialog-status {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: var(--panel);
  color: var(--muted);
}

.action-dialog-status::before {
  content: "i";
  font-size: 20px;
  font-weight: 900;
}

.action-dialog[data-tone="danger"] .action-dialog-status {
  background: #ffe8e8;
  color: var(--danger);
}

.action-dialog[data-tone="danger"] .action-dialog-status::before {
  content: "!";
}

.action-dialog[data-tone="success"] .action-dialog-status {
  background: var(--primary-soft);
  color: var(--success-ink);
}

.action-dialog[data-tone="success"] .action-dialog-status::before {
  content: "✓";
}

.action-dialog[data-tone="warning"] .action-dialog-status {
  background: var(--warning-bg);
  color: var(--warning-ink);
}

.action-dialog[data-tone="warning"] .action-dialog-status::before {
  content: "!";
}

.action-dialog[data-mode="busy"] .action-dialog-status::before {
  width: 19px;
  height: 19px;
  border: 2px solid rgba(14, 15, 12, 0.18);
  border-top-color: var(--primary);
  border-radius: 999px;
  content: "";
  animation: action-dialog-spin 700ms linear infinite;
}

.action-dialog h2 {
  margin: 20px 42px 0 0;
  color: var(--ink);
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.action-dialog p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.action-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.action-dialog-actions .button {
  min-width: 108px;
  border-radius: 999px;
}

.button.danger {
  background: var(--danger);
  color: #ffffff;
}

.button.danger:hover {
  background: #9d1d22;
  transform: none;
}

@keyframes action-dialog-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

@media (max-width: 620px) {
  .action-dialog-backdrop {
    align-items: end;
    padding: 0;
  }

  .action-dialog {
    width: 100%;
    max-height: min(82svh, 620px);
    overflow-y: auto;
    border-width: 1px 0 0;
    border-radius: 24px 24px 0 0;
    padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
    animation-name: action-sheet-in;
  }

  .action-dialog-handle {
    display: block;
    width: 42px;
    height: 5px;
    border-radius: 999px;
    background: #d4d8d2;
    margin: 0 auto 18px;
  }

  .action-dialog-close {
    top: 20px;
    right: 18px;
  }

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

  .action-dialog[data-mode="notice"] .action-dialog-actions {
    grid-template-columns: 1fr;
  }

  .action-dialog-actions .button {
    width: 100%;
    min-height: 48px;
  }
}

@keyframes action-sheet-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

.job-result-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.industry-funnel-job-summary .job-result-item:last-child strong {
  font-size: 12px;
}

.job-result-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.job-result-item > span {
  color: var(--subtle);
  font-size: 12px;
}

.job-result-item strong {
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

.price-change {
  margin-left: 4px;
  font-style: normal;
  font-weight: 800;
}

.price-change.is-up {
  color: var(--success-ink);
}

.price-change.is-down {
  color: var(--danger);
}

.price-change.is-flat {
  color: var(--subtle);
}

.load-more {
  justify-self: center;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #ffffff;
  color: var(--muted);
  cursor: pointer;
  margin-top: 16px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 700;
}

.load-more:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.status-text,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.status-text {
  background: transparent;
}

.status-text i {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.status-pill {
  min-width: 64px;
  padding: 6px 10px;
}

.status-running,
.status-completed {
  color: var(--success-ink);
}

.status-pill.status-running,
.status-pill.status-completed {
  background: var(--primary-soft);
}

.status-failed {
  color: var(--danger);
}

.status-pill.status-failed {
  background: #ffe8e8;
}

.status-queued {
  color: var(--warning-ink);
}

.status-pill.status-queued {
  background: var(--warning-bg);
}

.job-progress {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

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

.progress-heading strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.progress-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

.job-time-summary {
  margin-top: 10px;
}

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

.progress-content {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.progress-marker {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.progress-name {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.progress-time {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 12px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
}

.error-text {
  margin: 10px 0 0;
  color: var(--danger) !important;
  font-size: 12px;
  font-weight: 700;
}

.report-page {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  animation: rise 240ms ease both;
}

.report-top {
  padding-inline: 0;
}

.report-document {
  padding: 28px 0 54px;
}

.report-header {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: column;
  gap: 12px;
}

.report-header h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.16;
}

.report-meta-lines {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.report-meta-lines p {
  margin: 8px 0 0;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.report-layout {
  display: block;
  margin-top: 28px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.industry-funnel-report-summary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
}

.funnel-finalist-card {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
}

.funnel-finalist-card span {
  width: fit-content;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--success-ink);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
}

.funnel-finalist-card.is-watch span {
  background: #fef3c7;
  color: #92400e;
}

.funnel-finalist-card strong {
  color: var(--ink);
  font-size: 17px;
}

.funnel-finalist-card em {
  color: var(--subtle);
  font-size: 12px;
  font-style: normal;
}

.report-toc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
  max-height: 112px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.toc-title {
  flex: 0 0 auto;
  margin: 0 4px 0 0;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.report-toc a {
  max-width: min(78vw, 260px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-toc a:hover {
  background: var(--panel-hover);
  color: var(--ink);
}

.toc-level-3,
.toc-level-4 {
  max-width: 160px;
}

.report-structured {
  min-width: 0;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
  -webkit-overflow-scrolling: touch;
}

.report-structured.compact {
  max-height: 520px;
  overflow: hidden;
  position: relative;
}

.report-structured.compact::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
  pointer-events: none;
}

.report-structured h1,
.report-structured h2,
.report-structured h3,
.report-structured h4 {
  margin: 28px 0 12px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
}

.report-structured h1:first-child,
.report-structured h2:first-child,
.report-structured h3:first-child {
  margin-top: 0;
}

.report-structured h1 {
  font-size: 22px;
}

.report-structured h2 {
  font-size: 20px;
}

.report-structured h3 {
  font-size: 18px;
}

.report-structured h4 {
  font-size: 16px;
}

.report-structured p,
.report-structured li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.report-structured p {
  margin: 0 0 16px;
}

.report-structured ul {
  margin: 0 0 18px;
  padding-left: 20px;
}

.report-structured ol {
  margin: 0 0 18px;
  padding-left: 22px;
}

.report-structured li + li {
  margin-top: 6px;
}

.report-structured strong {
  color: var(--ink);
  font-weight: 800;
}

.report-structured em {
  color: var(--muted);
}

.report-structured blockquote {
  margin: 18px 0;
  border-left: 3px solid var(--primary);
  background: var(--panel);
  padding: 12px 14px;
  color: var(--muted);
}

.report-structured blockquote p:last-child {
  margin-bottom: 0;
}

.report-structured code {
  border-radius: 4px;
  background: var(--panel);
  padding: 2px 5px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.92em;
}

.report-structured pre {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 14px;
}

.report-structured pre code {
  background: transparent;
  padding: 0;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
  line-height: 1.6;
}

th {
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
}

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

th:first-child,
td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: 112px;
  min-width: 112px;
  max-width: 112px;
  border-right: 1px solid rgba(14, 15, 12, 0.16);
  box-shadow: 8px 0 12px -12px rgba(14, 15, 12, 0.45);
  overflow-wrap: anywhere;
}

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

td:first-child {
  background: #ffffff;
  color: var(--ink);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: var(--subtle);
  padding: 14px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  padding: 18px max(14px, env(safe-area-inset-left)) calc(18px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  font-size: 12px;
}

.turnstile-box {
  min-height: 72px;
  margin-top: 18px;
}

[hidden] {
  display: none !important;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes route-loading-pulse {
  from {
    opacity: 0.35;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (min-width: 821px) {
  .research-search-grid {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .research-search-grid .button {
    width: auto;
    min-width: 154px;
    padding: 0 24px;
  }

  .topbar,
  .report-top {
    min-height: 64px;
    padding: 0 max(24px, calc((100vw - 1088px) / 2 + 24px));
  }

  .page {
    width: min(100%, 1088px);
    padding: 0 24px;
  }

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

  .hero h1 {
    font-size: 40px;
  }

  .search-box {
    margin-top: 44px;
  }

  .search-line {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: end;
    border-bottom: 1px solid var(--line-strong);
    padding-bottom: 4px;
  }

  .search-line input {
    height: 54px;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    font-size: 18px;
  }

  .search-line input:focus {
    background: transparent;
    box-shadow: none;
  }

  .search-line .button {
    width: auto;
    min-width: 112px;
    margin-bottom: 6px;
  }

  .suggestion-row {
    grid-template-columns: 150px minmax(0, 1fr) 120px;
    gap: 16px;
    padding: 14px 16px;
  }

  .suggestion-price {
    text-align: right;
  }

  .section-heading {
    align-items: flex-end;
    flex-direction: row;
    gap: 16px;
    padding-right: 32px;
    padding-left: 32px;
  }

  .section-heading > div:last-child {
    justify-content: flex-end;
  }

  .job-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    padding: 18px 32px;
  }

  .job-main {
    display: flex;
    gap: 16px;
  }

  .job-symbol {
    min-width: 58px;
  }

  .job-name {
    font-size: 18px;
  }

  .job-market {
    grid-column: auto;
  }

  .job-actions {
    flex-wrap: nowrap;
    gap: 18px;
  }

  .job-result-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    padding-top: 14px;
  }

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

  .job-result-item {
    display: grid;
    justify-content: initial;
    gap: 4px;
  }

  .job-result-item strong {
    font-size: 14px;
    text-align: left;
  }

  .report-document {
    padding: 52px 0 80px;
  }

  .report-header {
    align-items: flex-start;
    flex-direction: row;
    gap: 24px;
  }

  .report-header h1 {
    font-size: 34px;
  }

  .report-meta-lines p {
    font-size: 14px;
  }

  .report-layout {
    margin-top: 34px;
  }

  .report-toc {
    max-height: none;
    overflow: visible;
  }

  .report-structured h1 {
    font-size: 26px;
  }

  .report-structured h2 {
    font-size: 22px;
  }

  table {
    min-width: 620px;
  }

  th:first-child,
  td:first-child {
    width: 148px;
    min-width: 148px;
    max-width: 148px;
  }

  .footer {
    align-items: center;
    flex-direction: row;
    padding: 20px max(24px, calc((100vw - 1088px) / 2 + 24px));
  }

}

/* DeepSpyglass AI dashboard theme — use DESIGN.md brand green */
:root {
  --bg: #f9faf8;
  --card: #ffffff;
  --panel: #edeeec;
  --panel-hover: #e7e8e6;
  --ink: #191c1b;
  --muted: #3e4a3e;
  --subtle: #6e7a6d;
  --line: rgba(110, 122, 109, 0.18);
  --line-strong: #bdcaba;
  --primary: #04d16a;
  --primary-hover: #26dc82;
  --primary-soft: #e2f6d5;
  --primary-ink: #163300;
  --success-ink: #054d28;
  --danger: #ba1a1a;
  --warning-bg: #fff1cc;
  --warning-ink: #793f00;
}

body {
  background: var(--bg);
  color: var(--ink);
}

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

.topbar {
  min-height: 64px;
  border-bottom-color: #e2e3e1;
  background: rgba(249, 250, 248, 0.94);
  backdrop-filter: blur(18px);
}

.topbar,
.report-top {
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}

.brand {
  align-items: center;
  gap: 10px;
  max-width: min(72vw, 520px);
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
}

.brand-name {
  color: var(--primary);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.topbar-user {
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.link-button {
  color: var(--primary);
  font-weight: 700;
}

.link-button:hover {
  color: var(--primary-hover);
}

.page {
  flex: 1;
  max-width: 1280px;
  padding-right: max(16px, env(safe-area-inset-right));
  padding-left: max(16px, env(safe-area-inset-left));
}

.workspace {
  padding-bottom: 80px;
}

.hero {
  padding: 56px 0 48px;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.16;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  max-width: 720px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.search-box {
  max-width: 900px;
  margin-top: 34px;
}

.search-line {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  padding: 7px;
  box-shadow: 0 8px 30px rgba(25, 28, 27, 0.025);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-line::before {
  content: "⌕";
  position: absolute;
  left: 18px;
  z-index: 1;
  color: var(--subtle);
  font-size: 25px;
  line-height: 1;
  pointer-events: none;
}

.search-line:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(4, 209, 106, 0.14), 0 12px 32px rgba(25, 28, 27, 0.04);
}

.search-line input,
.search-line input:focus {
  height: 50px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  padding: 0 16px 0 48px;
  font-size: 16px;
  font-weight: 500;
}

.search-line .button {
  width: auto;
  min-width: 104px;
  min-height: 46px;
  border-radius: 8px;
  margin: 0;
  padding: 0 24px;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: none;
}

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

.quick-hints {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  color: var(--subtle);
  font-size: 12px;
}

.quick-hints button {
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  padding: 6px 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  line-height: 1;
}

.quick-hints button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.results {
  gap: 10px;
  margin-top: 14px;
}

.suggestion-row {
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 16px;
  border-color: var(--line-strong);
  border-radius: 10px;
  background: var(--card);
  padding: 14px 16px;
}

.suggestion-row:hover {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(25, 28, 27, 0.05);
}

.suggestion-symbol em {
  background: var(--primary-soft);
  color: var(--primary);
}

.task-section {
  padding: 0 0 16px;
}

.section-heading {
  align-items: center;
  flex-direction: row;
  gap: 16px;
  border: 0;
  padding: 0 0 22px;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  padding-left: 16px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.section-heading h2::before {
  content: "";
  position: absolute;
  top: 1px;
  bottom: 1px;
  left: 0;
  width: 4px;
  border-radius: 4px;
  background: var(--primary);
}

.section-heading > div:last-child {
  justify-content: flex-end;
  gap: 16px;
  color: var(--subtle);
  font-size: 12px;
}

.job-list {
  gap: 16px;
}

.job-row {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(25, 28, 27, 0.015);
  transition: border-color 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.job-row:hover {
  border-color: rgba(4, 209, 106, 0.7);
  background: var(--card);
  box-shadow: 0 8px 32px rgba(25, 28, 27, 0.06);
}

.job-row.is-active {
  border-color: rgba(4, 209, 106, 0.72);
  background: var(--card);
  box-shadow: 0 8px 32px rgba(25, 28, 27, 0.06);
}

.job-main {
  display: grid;
  grid-template-columns: 52px minmax(0, auto) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.job-symbol {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: var(--panel);
  color: var(--primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
}

.job-name {
  color: var(--ink);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.25;
}

.job-market {
  grid-column: 3;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 500;
}

.job-actions {
  align-self: center;
  justify-content: flex-end;
  gap: 14px;
  color: var(--subtle);
}

.job-actions a {
  color: var(--primary);
  font-size: 13px;
}

.status-text {
  color: var(--primary);
  font-weight: 750;
}

.status-text i {
  width: 8px;
  height: 8px;
}

.status-text.status-failed,
.status-text.status-cancelled {
  color: var(--danger);
}

.status-text.status-queued {
  color: var(--warning-ink);
}

.job-result-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid rgba(189, 202, 186, 0.65);
  border-radius: 8px;
  background: #f3f4f2;
  padding: 14px 16px;
}

.job-result-item {
  display: grid;
  justify-content: initial;
  gap: 5px;
}

.job-result-item > span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
}

.job-result-item strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  text-align: left;
}

.price-change.is-up {
  color: var(--primary);
}

.job-progress {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.progress-heading strong {
  font-size: 16px;
  font-weight: 750;
}

.status-pill {
  min-width: 68px;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 11px;
}

.status-pill.status-running,
.status-pill.status-completed {
  background: var(--primary-soft);
  color: var(--primary);
}

.job-time-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f4f2;
  margin-top: 12px;
  padding: 12px 14px;
}

.job-time-summary .progress-time {
  color: var(--muted);
}

.progress-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.progress-step {
  grid-template-columns: 12px minmax(0, 1fr) auto;
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--bg);
  padding: 14px;
  transition: border-color 160ms ease, background 160ms ease;
}

.progress-step:hover {
  border-color: var(--primary);
  background: #ffffff;
}

.progress-name {
  font-size: 13px;
  font-weight: 700;
}

.progress-time {
  color: var(--subtle);
  font-family: inherit;
  font-size: 11px;
}

.progress-marker.status-completed,
.progress-marker.status-running {
  color: var(--primary);
}

.load-more {
  border-color: var(--line-strong);
  border-radius: 8px;
  background: var(--card);
}

.auth-panel {
  min-height: calc(100svh - 64px);
  padding: 56px 0;
}

.auth-card {
  width: min(100%, 480px);
  border-color: var(--line-strong);
  border-radius: 12px;
  box-shadow: 0 16px 48px rgba(25, 28, 27, 0.08);
  padding: 24px;
}

.auth-tabs {
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.auth-tab {
  border-radius: 6px;
}

.auth-tab.is-active {
  background: var(--card);
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(25, 28, 27, 0.06);
}

.auth-form h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

input {
  border-color: var(--line-strong);
  background: #f3f4f2;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(4, 209, 106, 0.14);
}

.report-page {
  max-width: 1120px;
}

.report-top {
  min-height: 64px;
  border-bottom: 1px solid #e2e3e1;
  padding-right: 0;
  padding-left: 0;
}

.report-document {
  margin: 36px 0 72px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 10px 36px rgba(25, 28, 27, 0.045);
  padding: 28px 24px 48px;
}

.report-header h1 {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.025em;
}

.report-meta-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}

.report-meta-lines p {
  margin: 0;
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 650;
}

.report-layout {
  border-top-color: var(--line);
}

.report-toc a {
  border-color: var(--line-strong);
  border-radius: 6px;
  background: #f3f4f2;
}

.report-toc a:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

.report-structured h1,
.report-structured h2,
.report-structured h3,
.report-structured h4 {
  letter-spacing: -0.015em;
}

.report-structured h2 {
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.report-structured p,
.report-structured li {
  color: var(--muted);
}

.report-structured blockquote {
  border-left-color: var(--primary);
  border-radius: 0 8px 8px 0;
  background: #f3f4f2;
}

.table-wrap {
  border-color: var(--line-strong);
  border-radius: 8px;
}

table {
  background: var(--card);
}

th {
  background: #edeeec;
}

td:first-child {
  background: var(--card);
}

.footer {
  margin-top: auto;
  border-top-color: #e2e3e1;
  background: var(--card);
  color: var(--subtle);
  padding-top: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

@media (min-width: 821px) {
  .topbar,
  .topbar {
    padding-right: max(40px, calc((100vw - 1280px) / 2 + 40px));
    padding-left: max(40px, calc((100vw - 1280px) / 2 + 40px));
  }

  .page {
    width: min(100%, 1280px);
    padding-right: 40px;
    padding-left: 40px;
  }

  .hero {
    padding: 88px 0 64px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-heading {
    padding-right: 0;
    padding-left: 0;
  }

  .job-row {
    padding: 24px;
  }

  .footer {
    padding-right: max(40px, calc((100vw - 1280px) / 2 + 40px));
    padding-left: max(40px, calc((100vw - 1280px) / 2 + 40px));
  }

  .report-document {
    padding: 36px 42px 64px;
  }
}

@media (max-width: 820px) {
  .brand-subtitle {
    display: none;
  }

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

  .search-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .search-line .button {
    min-width: 78px;
    padding: 0 15px;
  }

  .suggestion-row {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: center;
  }

  .section-heading h2 {
    font-size: 21px;
  }

  .job-row {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .job-main {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 4px 12px;
  }

  .job-symbol {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
  }

  .job-market {
    grid-column: 2;
  }

  .job-actions {
    justify-content: flex-start;
    padding-left: 60px;
  }

  .job-result-summary,
  .progress-list {
    grid-template-columns: 1fr;
  }

  .job-result-item {
    display: flex;
    justify-content: space-between;
  }

  .job-result-item strong {
    text-align: right;
  }

  .progress-step {
    padding: 12px;
  }

  .report-document {
    margin: 18px 0 44px;
    padding: 22px 16px 40px;
  }

  .report-header h1 {
    font-size: 25px;
  }
}

/* Public recommendations homepage */
.topbar-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: var(--panel);
  padding: 4px;
}

.topbar-nav a {
  min-height: 34px;
  border-radius: 999px;
  color: var(--subtle);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 18px;
  text-decoration: none;
}

.topbar-nav a:hover {
  color: var(--ink);
}

.topbar-nav a.is-active {
  background: var(--ink);
  color: #ffffff;
}

.recommendations-page {
  animation: rise 240ms ease both;
  padding: 70px 0 84px;
}

.recommendations-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.recommendations-hero > div {
  max-width: 820px;
}

.recommendations-hero .eyebrow {
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
}

.recommendations-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 850;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.recommendations-hero .button {
  flex: 0 0 auto;
  min-width: 160px;
  border-radius: 22px;
  background: #04d16a;
  color: #163300;
}

.recommendations-section {
  margin-top: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  overflow: hidden;
}

.recommendations-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 20px;
}

.recommendations-heading h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.recommendations-heading p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 13px;
}

.recommendations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 20px;
}

.recommendation-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 250px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  color: var(--muted);
  padding: 22px;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.recommendation-card:hover {
  border-color: rgba(4, 209, 106, 0.65);
  box-shadow: 0 14px 34px rgba(14, 15, 12, 0.08);
  transform: translateY(-2px);
}

.recommendation-card-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 20px;
  align-items: start;
}

.recommendation-card-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.recommendation-card-title {
  grid-column: 1;
  min-width: 0;
}

.recommendation-card-title h3 {
  overflow: hidden;
  margin: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-card-title > span {
  display: block;
  margin-top: 6px;
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 750;
}

.recommendation-card-advice {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: start;
}

.recommendation-kind,
.recommendation-advice {
  min-height: 42px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 850;
  letter-spacing: -0.01em;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.06);
}

.recommendation-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.recommendation-advice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
}

.recommendation-kind.is-stock {
  background: var(--primary-soft);
  color: var(--primary);
}

.recommendation-kind.is-industry {
  background: #edf0ff;
  color: #4555a5;
}

.recommendation-market {
  border-radius: 999px;
  background: var(--panel);
  color: var(--subtle);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.recommendation-advice.is-buy {
  background: var(--primary-soft);
  color: var(--primary);
}

.recommendation-advice.is-sell {
  background: #ffe8e8;
  color: var(--danger);
}

.recommendation-advice.is-neutral {
  background: var(--panel);
  color: var(--muted);
}

.recommendation-price-flow {
  display: flex;
  align-items: center;
  gap: 18px;
  align-self: end;
  margin-top: 30px;
  border-radius: 16px;
  background: var(--panel);
  padding: 16px 18px;
}

.recommendation-price-point {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.recommendation-price-point > span {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 750;
}

.recommendation-price-point strong {
  color: var(--ink);
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.recommendation-price-point em {
  font-size: 11px;
  font-style: normal;
}

.recommendation-price-arrow {
  color: var(--primary);
  font-size: 20px;
  font-weight: 850;
}

.recommendation-industry-note {
  display: grid;
  align-self: end;
  gap: 6px;
  margin-top: 30px;
  border-radius: 16px;
  background: #f2f4ff;
  padding: 18px;
}

.recommendation-industry-note span {
  color: #6873a5;
  font-size: 11px;
  font-weight: 750;
}

.recommendation-industry-note strong {
  color: #34407c;
  font-size: 15px;
}

.recommendation-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.recommendation-researcher {
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}

.recommendation-researcher span,
.recommendation-card-footer time {
  color: var(--subtle);
  font-size: 11px;
}

.recommendation-researcher strong {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12px;
}

.recommendation-open {
  color: var(--primary);
  font-size: 18px;
  font-weight: 800;
  text-align: right;
}

.recommendations-empty {
  margin: 0 20px 20px;
}

.recommendations-load-more {
  width: calc(100% - 40px);
  margin: 0 20px 20px;
}

@media (max-width: 960px) {
  .topbar-nav {
    margin-left: auto;
  }

  .topbar-user #sessionLabel {
    display: none;
  }

  .recommendations-page {
    padding: 46px 0 64px;
  }

  .recommendations-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .recommendations-hero h1 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .recommendations-section {
    margin-top: 42px;
    border-radius: 16px;
  }

  .recommendations-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .brand {
    max-width: calc(100vw - 100px);
  }

  .brand-name {
    font-size: 16px;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
  }

  .topbar-nav a {
    flex: 1;
    text-align: center;
  }

  .recommendations-page {
    padding-top: 38px;
  }

  .recommendations-hero .button {
    width: 100%;
  }

  .recommendations-heading {
    align-items: flex-start;
    padding: 20px;
  }

  .recommendations-list {
    gap: 12px;
    padding: 16px;
  }

  .recommendation-card {
    min-height: 0;
    border-radius: 16px;
    padding: 18px 16px;
  }

  .recommendation-card-title h3 {
    font-size: 19px;
  }

  .recommendation-card-main {
    gap: 12px;
  }

  .recommendation-card-advice {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .recommendation-advice {
    min-height: 40px;
    padding: 8px 16px;
    font-size: 14px;
  }

  .recommendation-price-flow {
    justify-content: space-between;
    gap: 10px;
    margin-top: 22px;
    padding: 14px;
  }

  .recommendation-price-point strong {
    font-size: 14px;
  }

  .recommendation-card-footer {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .recommendation-card-footer time {
    text-align: right;
  }

  .recommendation-open {
    display: none;
  }

  .recommendations-empty {
    margin-right: 16px;
    margin-left: 16px;
  }
}

/* ds.mhtml visual refresh: public homepage and research workspace */
:root {
  --bg: #fafbf9;
  --card: #ffffff;
  --panel: #f4f6f2;
  --panel-hover: #eef2ec;
  --ink: #171a18;
  --muted: #454b47;
  --subtle: #7b817d;
  --line: rgba(23, 26, 24, 0.09);
  --line-strong: rgba(23, 26, 24, 0.14);
  --primary: #04d16a;
  --primary-hover: #00bd5d;
  --primary-soft: #e3f7d9;
  --primary-ink: #163300;
  --success-ink: #08733c;
  --danger: #c43d42;
  --card-shadow: 0 1px 2px rgba(23, 26, 24, 0.04), 0 8px 24px -12px rgba(23, 26, 24, 0.12);
  --card-shadow-hover: 0 18px 42px -20px rgba(23, 26, 24, 0.24);
}

body {
  background: var(--bg);
  color: var(--ink);
}

.topbar {
  min-height: 64px;
  border-bottom: 1px solid rgba(23, 26, 24, 0.08);
  background: rgba(250, 251, 249, 0.88);
  backdrop-filter: blur(18px);
}

.topbar,
.report-top {
  padding-right: max(24px, calc((100vw - 1280px) / 2 + 24px));
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 24px));
}

.brand {
  align-items: center;
  gap: 10px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(4, 209, 106, 0.14);
}

.brand-name {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.brand-subtitle {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}

.topbar-nav {
  gap: 2px;
  background: var(--ink);
  padding: 4px;
}

.topbar-nav a {
  min-height: 32px;
  color: rgba(255, 255, 255, 0.72);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
}

.topbar-nav a:hover {
  color: #ffffff;
}

.topbar-nav a.is-active {
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(23, 26, 24, 0.12);
}

.topbar-user {
  color: var(--subtle);
  font-size: 13px;
  font-weight: 500;
}

.topbar-user .link-button {
  color: var(--success-ink);
  font-weight: 650;
}

.page {
  width: min(100%, 1280px);
  max-width: 1280px;
  padding-right: 24px;
  padding-left: 24px;
}

.button.primary {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: var(--card-shadow);
}

.button.primary:hover {
  background: var(--primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

.button:focus-visible,
.link-button:focus-visible,
.topbar-nav a:focus-visible,
.recommendation-card:focus-visible,
.segmented-tabs button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Homepage */
.recommendations-page {
  padding: 62px 0 96px;
}

.recommendations-hero {
  align-items: flex-end;
  gap: 40px;
}

.recommendations-hero > div {
  max-width: 880px;
}

.recommendations-hero .eyebrow {
  margin-bottom: 18px;
  color: var(--success-ink);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.recommendations-hero h1 {
  max-width: none;
  font-size: clamp(46px, 5.2vw, 68px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.recommendations-hero h1 span {
  margin-left: 0.12em;
  color: var(--success-ink);
}

.recommendations-hero .button {
  min-width: 0;
  min-height: 46px;
  gap: 10px;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 650;
}

.recommendations-hero .button span {
  font-size: 18px;
  transition: transform 160ms ease;
}

.recommendations-hero .button:hover span {
  transform: translateX(3px);
}

.recommendations-section {
  margin-top: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.recommendations-heading {
  align-items: center;
  padding: 0 0 22px;
}

.recommendations-heading h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.recommendations-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  border-top: 0;
  padding: 0;
}

.recommendation-card {
  grid-template-rows: auto 1fr auto;
  min-height: 322px;
  border-color: var(--line-strong);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.recommendation-card:hover {
  border-color: rgba(4, 209, 106, 0.5);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-3px);
}

.recommendation-card-main {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 16px;
}

.recommendation-card-badges {
  grid-column: 1;
  grid-row: 1;
  gap: 7px;
}

.recommendation-card-title {
  grid-column: 1 / -1;
  grid-row: 2;
}

.recommendation-card-title h3 {
  font-size: 23px;
  font-weight: 680;
  letter-spacing: -0.035em;
}

.recommendation-card-title > span {
  margin-top: 7px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.recommendation-card-advice {
  grid-column: 2;
  grid-row: 1;
}

.recommendation-kind,
.recommendation-market {
  min-height: 24px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 650;
  box-shadow: none;
}

.recommendation-kind.is-stock {
  background: #ddf5df;
  color: #23633a;
}

.recommendation-kind.is-industry {
  background: #ece9f8;
  color: #514779;
}

.recommendation-market {
  background: #eef1ec;
  color: #59625c;
}

.recommendation-advice {
  min-height: 29px;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}

.recommendation-advice.is-buy {
  background: #dff5dc;
  color: #1c6237;
}

.recommendation-advice.is-sell {
  background: #f9e4e2;
  color: #a83238;
}

.recommendation-advice.is-neutral {
  background: #edf0eb;
  color: #4f5752;
}

.recommendation-price-flow,
.recommendation-industry-note {
  align-self: end;
  margin-top: 28px;
  border: 1px solid rgba(23, 26, 24, 0.07);
  border-radius: 12px;
  background: #f7f8f6;
  padding: 15px 16px;
}

.recommendation-price-flow {
  justify-content: space-between;
  gap: 12px;
}

.recommendation-price-point {
  gap: 4px;
}

.recommendation-price-point.is-current {
  text-align: right;
}

.recommendation-price-point > span {
  font-size: 11px;
  font-weight: 500;
}

.recommendation-price-point strong {
  font-size: 14px;
  font-weight: 680;
}

.recommendation-price-point em {
  font-size: 11px;
  font-weight: 650;
}

.recommendation-price-arrow {
  color: var(--success-ink);
  font-size: 17px;
}

.recommendation-industry-note {
  gap: 7px;
  background: #f5f4fa;
}

.recommendation-industry-note span {
  color: #726a8b;
  font-size: 11px;
  font-weight: 550;
}

.recommendation-industry-note strong {
  color: #403957;
  font-size: 14px;
  font-weight: 650;
}

.recommendation-card-footer {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  padding-top: 15px;
}

.recommendation-researcher span,
.recommendation-report-date span {
  font-size: 11px;
}

.recommendation-researcher strong {
  max-width: 100%;
  overflow: hidden;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommendation-report-date {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  color: var(--subtle);
}

.recommendation-report-date time {
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.2;
  white-space: nowrap;
}

.job-report-date {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.job-report-date > span {
  color: var(--subtle);
  font-size: 11px;
}

.job-report-date time {
  color: var(--ink);
  font-size: 14px;
  font-weight: 680;
}

.recommendation-open {
  display: none;
}

.recommendations-empty {
  grid-column: 1 / -1;
  margin: 0;
  border-radius: 16px;
  padding: 42px 20px;
}

.recommendations-load-more {
  width: 100%;
  margin: 22px 0 0;
  border-radius: 12px;
}

/* Research workspace */
.workspace {
  padding-bottom: 96px;
}

.hero {
  padding: 66px 0 58px;
}

.workspace-eyebrow {
  margin: 0 0 17px !important;
  color: var(--success-ink) !important;
  font-size: 13px !important;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1.4 !important;
}

.hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 5vw, 60px);
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
}

.hero h1 span {
  color: var(--success-ink);
}

.hero p {
  max-width: 700px;
  margin-top: 17px;
  color: var(--subtle);
  font-size: 15px;
  line-height: 1.65;
}

.hero .research-cost {
  margin-top: 11px;
  border: 1px solid rgba(4, 209, 106, 0.18);
  background: rgba(227, 247, 217, 0.72);
  color: var(--success-ink);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 650;
}

.search-box {
  max-width: 920px;
  margin-top: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  padding: 24px;
}

.research-panel-heading {
  margin-bottom: 20px;
}

.research-panel-heading h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.02em;
}

.research-panel-heading p {
  margin: 6px 0 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 1.5;
}

.segmented-tabs {
  background: #f0f2ef;
  box-shadow: inset 0 0 0 1px rgba(23, 26, 24, 0.06);
}

.segmented-tabs button {
  min-height: 34px;
  padding: 0 15px;
  font-size: 12px;
  font-weight: 650;
}

.segmented-tabs button.is-active {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: 0 1px 3px rgba(23, 26, 24, 0.08);
}

.research-type-tabs {
  margin-bottom: 20px;
}

.research-search-grid {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.research-field {
  gap: 7px;
}

.research-field > span {
  color: var(--subtle);
  font-size: 11px;
  font-weight: 600;
}

.research-field select,
.research-field input {
  height: 48px;
  border-color: rgba(23, 26, 24, 0.1);
  border-radius: 9px;
  background: #f5f6f4;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
}

.research-field select:focus,
.research-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(4, 209, 106, 0.16);
}

.research-search-grid .button {
  min-width: 144px;
  min-height: 48px;
  border-radius: 9px;
  padding: 0 20px;
}

.quick-hints {
  gap: 7px;
  margin-top: 13px;
}

.quick-hints button {
  border: 1px solid rgba(23, 26, 24, 0.07);
  border-radius: 999px;
  background: #f5f6f4;
  color: var(--muted);
  padding: 6px 10px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 550;
}

.quick-hints button:hover {
  background: var(--primary-soft);
  color: var(--success-ink);
}

.results {
  margin-top: 13px;
}

.suggestion-row {
  border-color: var(--line);
  border-radius: 10px;
  padding: 13px 14px;
}

.suggestion-row:hover {
  border-color: rgba(4, 209, 106, 0.55);
  box-shadow: var(--card-shadow);
}

.task-section {
  padding: 8px 0 0;
}

.section-heading {
  align-items: flex-end;
  padding: 0 0 22px;
}

.section-heading h2 {
  padding-left: 0;
  font-size: 20px;
  font-weight: 680;
}

.section-heading h2::before {
  display: none;
}

.job-type-tabs {
  margin-top: 13px;
}

.section-heading > div:last-child {
  gap: 14px;
  color: var(--subtle);
}

.job-list {
  gap: 18px;
}

.job-row,
.job-row.is-active {
  border-color: var(--line-strong);
  border-radius: 16px;
  background: var(--card);
  padding: 22px 24px;
  box-shadow: var(--card-shadow);
}

.job-row:hover,
.job-row.is-active:hover {
  border-color: rgba(4, 209, 106, 0.48);
  box-shadow: var(--card-shadow-hover);
}

.job-symbol {
  border: 1px solid rgba(23, 26, 24, 0.06);
  border-radius: 10px;
  background: #f5f6f4;
  color: var(--success-ink);
}

.job-name {
  font-size: 18px;
  font-weight: 680;
}

.job-actions a,
.status-text {
  color: var(--success-ink);
}

.job-result-summary,
.job-time-summary {
  border-color: rgba(23, 26, 24, 0.07);
  border-radius: 10px;
  background: #f6f7f5;
}

.progress-step {
  border-color: var(--line);
  border-radius: 10px;
  background: #fafbf9;
}

.progress-step:hover {
  border-color: rgba(4, 209, 106, 0.42);
}

.load-more {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: var(--card);
}

.empty {
  border-color: var(--line-strong);
  border-radius: 12px;
  background: #f5f6f4;
  font-weight: 550;
}

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

@media (max-width: 820px) {
  .topbar,
  .report-top {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .page {
    padding-right: max(16px, env(safe-area-inset-right));
    padding-left: max(16px, env(safe-area-inset-left));
  }

  .recommendations-page {
    padding: 46px 0 72px;
  }

  .recommendations-hero {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .recommendations-hero h1 {
    font-size: clamp(42px, 10vw, 56px);
  }

  .recommendations-section {
    margin-top: 48px;
  }

  .hero {
    padding: 50px 0 46px;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 50px);
  }

  .search-box {
    padding: 20px;
  }
}

@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
    gap: 9px 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    max-width: calc(100vw - 96px);
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-subtitle,
  .topbar-user #sessionLabel {
    display: none;
  }

  .topbar-nav {
    order: 3;
    width: 100%;
  }

  .topbar-nav a {
    flex: 1;
    text-align: center;
  }

  .recommendations-page {
    padding-top: 38px;
  }

  .recommendations-hero .eyebrow {
    margin-bottom: 13px;
  }

  .recommendations-hero h1 {
    font-size: clamp(38px, 12vw, 48px);
    line-height: 1.02;
  }

  .recommendations-hero h1 span {
    display: block;
    margin: 7px 0 0;
  }

  .recommendations-hero .button {
    width: 100%;
  }

  .recommendations-section {
    margin-top: 42px;
  }

  .recommendations-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .recommendation-card {
    min-height: 0;
    border-radius: 14px;
    padding: 19px 17px;
  }

  .recommendation-card-title h3 {
    font-size: 21px;
  }

  .recommendation-price-flow,
  .recommendation-industry-note {
    margin-top: 24px;
  }

  .recommendation-price-flow {
    padding: 14px;
  }

  .recommendation-card-footer {
    align-items: end;
  }

  .recommendation-researcher {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .recommendation-report-date {
    text-align: right;
  }

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

  .workspace-eyebrow {
    margin-bottom: 12px !important;
  }

  .hero h1 {
    font-size: clamp(35px, 11vw, 44px);
    line-height: 1.04;
  }

  .hero p {
    font-size: 14px;
  }

  .search-box {
    margin-top: 30px;
    border-radius: 16px;
    padding: 18px 16px;
  }

  .research-search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .research-search-grid .button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .job-row,
  .job-row.is-active {
    padding: 18px 16px;
  }

  .job-actions {
    padding-left: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recommendation-card,
  .recommendations-hero .button span,
  .button {
    transition: none;
  }
}
