:root {
  color-scheme: light;
  --blue: #4361ee;
  --blue-dark: #263fb6;
  --blue-soft: #eef2ff;
  --red: #ef5350;
  --green: #43a047;
  --violet: #7c3aed;
  --amber: #b7791f;
  --ink: #172033;
  --muted: #69748a;
  --line: #dbe2ef;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --warn: #f59e0b;
  --shadow: 0 18px 60px rgba(33, 47, 79, 0.12);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(67, 97, 238, 0.11), transparent 320px),
    radial-gradient(circle at 92% 18%, rgba(67, 160, 71, 0.10), transparent 340px),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 42%, #f7fbf8 100%);
  color: var(--ink);
  font-family: "Inter", "Noto Sans JP", system-ui, sans-serif;
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

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

:focus-visible {
  outline: 3px solid rgba(67, 97, 238, 0.42);
  outline-offset: 3px;
}

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

.loading-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  text-align: center;
  color: var(--muted);
}

.loading-mark {
  width: 52px;
  height: 52px;
  border: 4px solid rgba(67, 97, 238, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: white;
  font-weight: 900;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topnav a,
.ghost-button,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.topnav a:hover,
.ghost-button:hover,
.icon-button:hover {
  border-color: var(--line);
  background: var(--soft);
  color: var(--ink);
}

.progress-line {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 12px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 0.28s ease;
}

.page {
  width: min(1260px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 64px;
}

.page-panel {
  animation: slideIn 0.28s ease both;
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 24px;
  align-items: stretch;
}

.flow-section {
  margin-top: 34px;
}

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

.flow-card,
.saved-card,
.market-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(33, 47, 79, 0.07);
}

.flow-card {
  padding: 18px;
}

.flow-card h3,
.saved-card h2,
.market-panel h2 {
  margin: 8px 0;
  font-weight: 900;
}

.flow-card p,
.saved-card p,
.market-panel p {
  color: #4c5870;
  line-height: 1.8;
}

.app-illustration {
  width: 100%;
  max-width: 220px;
  height: auto;
}

.intro-copy {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

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

.hero-title {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-title span {
  display: block;
}

.lead {
  max-width: 700px;
  color: #4c5870;
  font-size: 17px;
  line-height: 1.9;
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.mode-card,
.option-card,
.job-card,
.metric,
.detail-section,
.summary-card,
.filter-card,
.insight-card,
.fit-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 34px rgba(33, 47, 79, 0.07);
}

.mode-card {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  text-align: left;
}

.mode-card strong,
.option-card strong {
  font-size: 18px;
}

.mode-card span,
.option-card span {
  color: var(--muted);
  line-height: 1.7;
}

.mode-card.is-active,
.option-card.is-active,
.chip.is-active {
  border-color: rgba(67, 97, 238, 0.5);
  background: #f5f7ff;
  box-shadow: 0 12px 34px rgba(67, 97, 238, 0.14);
}

.visual-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.radar-preview {
  position: absolute;
  inset: 76px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(23, 32, 51, 0.12) 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, rgba(23, 32, 51, 0.12) 50%, transparent 50.2%),
    linear-gradient(180deg, rgba(67, 97, 238, 0.08), rgba(67, 160, 71, 0.06));
}

.preview-dot {
  position: absolute;
  width: var(--size);
  height: var(--size);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: var(--color);
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.18);
  transform: translate(-50%, -50%);
}

.preview-label {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #303b50;
  font-size: 12px;
  font-weight: 800;
}

.preview-label.top {
  top: 88px;
  left: 34px;
}

.preview-label.bottom {
  right: 34px;
  bottom: 36px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

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

.panel-heading h1,
.panel-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
}

.panel-heading p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.step-panel,
.result-layout,
.job-layout,
.jobs-layout {
  display: grid;
  gap: 18px;
}

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

.form-surface,
.side-surface,
.map-surface {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.form-surface {
  padding: 24px;
}

.side-surface {
  padding: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.form-field label,
.field-label {
  font-weight: 900;
}

.form-field textarea,
.form-field input[type="text"],
.form-field input[type="number"],
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.form-field textarea:focus,
.form-field input:focus,
.search-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.hint {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.error-text {
  margin-top: 10px;
  color: #bd2f2c;
  font-weight: 800;
}

.chip-row,
.card-grid,
.filter-grid,
.quick-stats,
.score-strip,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #313c52;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 800;
}

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

.option-card {
  min-height: 96px;
  padding: 14px;
  text-align: left;
}

.slider-list {
  display: grid;
  gap: 18px;
}

.slider-item {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.slider-head strong {
  font-weight: 900;
}

.slider-value {
  min-width: 38px;
  color: var(--blue-dark);
  font-weight: 900;
  text-align: right;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.range-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  cursor: grab;
}

.rank-number {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
}

.rank-controls {
  display: flex;
  gap: 6px;
}

.mini-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
}

.action-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  padding: 11px 16px;
  font-weight: 900;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary-button {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 28px rgba(67, 97, 238, 0.22);
}

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

.secondary-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.danger-button {
  border: 1px solid rgba(239, 83, 80, 0.28);
  background: #fff7f7;
  color: #b72d2a;
}

.metric {
  flex: 1 1 120px;
  padding: 14px;
}

.metric strong {
  display: block;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.analyzing {
  display: grid;
  min-height: 540px;
  place-items: center;
  text-align: center;
}

.analysis-box {
  width: min(660px, 100%);
}

.analysis-pulse {
  display: grid;
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid rgba(67, 97, 238, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.analysis-pulse::before {
  width: 46px;
  height: 46px;
  border: 5px solid rgba(67, 97, 238, 0.16);
  border-top-color: var(--blue);
  border-radius: 50%;
  content: "";
  animation: spin 1s linear infinite;
}

.map-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
}

.result-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
}

.result-layout > .side-surface {
  position: sticky;
  top: 112px;
}

.map-surface {
  padding: 16px;
}

.map-frame {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

#mapSvg {
  display: block;
  width: 100%;
  height: 590px;
}

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

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}

.score-strip {
  margin-bottom: 16px;
}

.score-pill {
  border-radius: 999px;
  padding: 7px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.score-pill.blue {
  background: var(--blue);
}

.score-pill.red {
  background: var(--red);
}

.score-pill.green {
  background: var(--green);
}

.score-pill.gray {
  background: #7d8797;
}

.selected-job {
  display: grid;
  gap: 14px;
}

.selected-job h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.score-bars {
  display: grid;
  gap: 10px;
}

.score-bar span {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
}

.bar-fill.apt {
  background: var(--blue);
}

.bar-fill.int {
  background: var(--green);
}

.badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--blue-dark);
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.hidden-badge {
  background: #fff2f1;
  color: #bd2f2c;
}

.job-layout {
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
}

.detail-section {
  padding: 22px;
}

.detail-section h2,
.detail-section h3 {
  margin-bottom: 12px;
  font-weight: 900;
}

.detail-section p,
.detail-section li {
  color: #4c5870;
  line-height: 1.85;
}

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

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

.timeline li {
  border-left: 3px solid rgba(67, 97, 238, 0.35);
  padding-left: 12px;
}

.company-list,
.related-list {
  display: grid;
  gap: 10px;
}

.company-item,
.related-item,
.listing-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.company-item strong,
.related-item strong,
.listing-card strong {
  display: block;
  margin-bottom: 3px;
}

.company-item span,
.related-item span,
.listing-card span {
  color: var(--muted);
  font-size: 13px;
}

.jobs-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
}

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

.job-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.job-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
}

.job-card p {
  color: var(--muted);
  line-height: 1.75;
}

.category-tag {
  width: fit-content;
  border-radius: 999px;
  background: var(--soft);
  color: #415069;
  padding: 5px 8px;
  font-size: 12px;
  font-weight: 900;
}

.filter-card {
  padding: 14px;
}

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

.map-surface .filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  max-height: 128px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #415069;
  font-size: 13px;
  font-weight: 800;
}

.map-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-note {
  margin: 0 0 10px;
  color: #556176;
  font-size: 13px;
  line-height: 1.7;
}

.mini-button.is-active {
  border-color: rgba(67, 97, 238, 0.38);
  background: var(--blue-soft);
  color: var(--blue-dark);
}

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

.insight-card {
  display: grid;
  min-height: 178px;
  align-content: start;
  gap: 10px;
  padding: 18px;
  overflow: hidden;
}

.insight-card h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 900;
  line-height: 1.25;
}

.insight-card p {
  color: #4c5870;
  font-size: 14px;
  line-height: 1.75;
}

.insight-card.primary {
  border-color: rgba(67, 97, 238, 0.34);
  background: linear-gradient(180deg, #ffffff, #f4f6ff);
}

.insight-card.warm {
  border-color: rgba(239, 83, 80, 0.32);
  background: linear-gradient(180deg, #ffffff, #fff5f4);
}

.insight-card.calm {
  border-color: rgba(67, 160, 71, 0.30);
  background: linear-gradient(180deg, #ffffff, #f3fbf5);
}

.insight-card.slate {
  border-color: rgba(124, 58, 237, 0.24);
  background: linear-gradient(180deg, #ffffff, #f8f5ff);
}

.insight-label {
  color: #536077;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.insight-link,
.table-link {
  width: fit-content;
  color: var(--blue-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ranking-panel {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.ranking-panel h3 {
  margin: 0 0 12px;
  font-weight: 900;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  text-align: left;
}

.ranking-item.is-active {
  border-color: rgba(67, 97, 238, 0.45);
  background: #f5f7ff;
}

.ranking-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  font-weight: 900;
}

.ranking-item small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

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

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

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.compare-table th,
.compare-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.compare-table th {
  color: #415069;
  font-size: 12px;
  font-weight: 900;
}

.zone-chip {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.zone-chip.calling {
  background: var(--blue);
}

.zone-chip.hidden {
  background: var(--red);
}

.zone-chip.growth {
  background: var(--green);
}

.zone-chip.low {
  background: #7d8797;
}

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

.jobs-grid.compact {
  grid-template-columns: 1fr;
}

.jobs-grid.compact .job-card {
  box-shadow: none;
}

.fit-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px;
  background: linear-gradient(135deg, #ffffff, #f6f8ff);
}

.fit-summary h2 {
  margin: 4px 0 8px;
  font-size: 26px;
  font-weight: 900;
}

.fit-summary p {
  color: #4c5870;
  line-height: 1.8;
}

.fit-metrics {
  display: grid;
  grid-template-columns: repeat(3, 88px);
  gap: 10px;
}

.fit-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: center;
}

.fit-metrics strong {
  display: block;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.fit-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

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

.step-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.step-card span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-weight: 900;
}

.step-card strong {
  display: block;
  margin: 12px 0 6px;
}

.step-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}

.market-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  gap: 18px;
  padding: 22px;
}

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

.market-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.market-card span,
.market-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.market-card strong {
  display: block;
  margin: 6px 0;
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 900;
}

.market-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.saved-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.saved-top-list {
  display: grid;
  gap: 8px;
}

.saved-top-list span {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

.saved-top-list b {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.saved-top-list small {
  color: var(--muted);
  font-size: 12px;
}

.illustrated-empty {
  display: grid;
  justify-items: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  max-width: min(420px, calc(100% - 36px));
  border: 1px solid rgba(67, 97, 238, 0.26);
  border-radius: 8px;
  background: #111827;
  color: #fff;
  padding: 13px 15px;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.24);
  font-weight: 800;
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  text-align: center;
}

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 980px) {
  .home-grid,
  .step-panel,
  .result-layout,
  .job-layout,
  .jobs-layout {
    grid-template-columns: 1fr;
  }

  .insight-grid,
  .opportunity-grid,
  .step-card-list,
  .flow-grid,
  .saved-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fit-summary,
  .market-panel {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 360px;
  }

  .radar-preview {
    inset: 72px 16px 16px;
  }

  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .result-layout .side-surface {
    position: static;
  }
}

@media (max-width: 700px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar-inner,
  .progress-line {
    width: min(100% - 20px, 1180px);
  }

  .mode-grid,
  .card-grid,
  .detail-grid,
  .jobs-grid,
  .legend,
  .insight-grid,
  .opportunity-grid,
  .step-card-list,
  .flow-grid,
  .saved-grid,
  .market-cards {
    grid-template-columns: 1fr;
  }

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

  .hero-title {
    font-size: 36px;
  }

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

  .panel-heading .secondary-button,
  .panel-actions,
  .panel-actions .secondary-button {
    width: 100%;
  }

  .form-surface,
  .side-surface,
  .map-surface,
  .detail-section {
    padding: 16px;
  }

  .map-frame {
    min-height: 460px;
  }

  #mapSvg {
    height: 460px;
  }

  .map-toolbar {
    grid-template-columns: 1fr;
  }

  .action-row {
    flex-direction: column-reverse;
  }

  .primary-button,
  .secondary-button,
  .danger-button {
    width: 100%;
  }
}
