:root {
  --ink: #182129;
  --muted: #60707a;
  --paper: #f6f8f5;
  --surface: #ffffff;
  --line: #dbe3dd;
  --blue: #2367c9;
  --aqua: #1e9bb0;
  --green: #34785a;
  --amber: #c47a16;
  --coral: #cc5548;
  --plum: #6c537f;
  --deep: #263238;
  --shadow: 0 18px 50px rgba(38, 50, 56, .12);
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

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

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

.shell {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: grid;
  gap: 0;
  line-height: 1.12;
}

.brand-mark {
  font-size: 22px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-sub {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #40505b;
  font-size: 14px;
  font-weight: 800;
}

.top-nav a {
  white-space: nowrap;
}

.header-action,
.button,
.icon-button,
.tab,
.dice-button {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  cursor: pointer;
}

.header-action {
  padding: 9px 16px;
  color: #fff;
  background: var(--deep);
}

.button {
  padding: 12px 18px;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--aqua));
  box-shadow: 0 12px 28px rgba(35, 103, 201, .18);
}

.button.secondary {
  color: var(--deep);
  background: #fff;
  border-color: var(--line);
}

.market-stage {
  padding: 42px 0 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(246, 248, 245, .96), rgba(246, 248, 245, .82)),
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=1800&auto=format&fit=crop") center / cover;
}

.stage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 24px;
  align-items: stretch;
}

.stage-copy {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  margin-bottom: 14px;
  line-height: 1.15;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(40px, 6vw, 68px);
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 21px;
}

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

.lead {
  max-width: 780px;
  color: #2f414a;
  font-size: 19px;
  font-weight: 680;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.deal-memo,
.form-card,
.campaign-box {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.deal-memo {
  padding: 24px;
  align-self: center;
}

.memo-head,
.panel-head,
.assistant-title,
.dice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.memo-head span,
.assistant-title span,
.dice-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.memo-head strong,
.assistant-title strong {
  font-size: 18px;
}

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

.memo-stats div {
  padding: 14px 12px;
  background: #f2f6f7;
  border-radius: 8px;
}

.memo-stats dt {
  color: var(--deep);
  font-size: 30px;
  font-weight: 950;
  line-height: 1;
}

.memo-stats dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.control-band {
  position: sticky;
  top: 72px;
  z-index: 12;
  padding: 14px 0;
  background: rgba(246, 248, 245, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.control-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.35fr) repeat(3, minmax(140px, .55fr));
  gap: 10px;
}

label {
  display: grid;
  gap: 5px;
}

label span {
  color: #52626c;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(35, 103, 201, .65);
  box-shadow: 0 0 0 3px rgba(35, 103, 201, .12);
}

.market-board,
.seller-route,
.forms-band,
.registerknight {
  padding: 64px 0;
}

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

.section-title {
  max-width: 830px;
  margin-bottom: 20px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tab {
  padding: 8px 13px;
  color: #34444d;
  background: #fff;
  border-color: var(--line);
}

.tab.is-active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.listing-list {
  display: grid;
  gap: 12px;
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, .34fr);
  gap: 16px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.listing-card:hover,
.listing-card:focus,
.listing-card.is-selected {
  border-color: rgba(35, 103, 201, .6);
  box-shadow: 0 12px 28px rgba(38, 50, 56, .10);
  transform: translateY(-1px);
}

.listing-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-pill,
.tag-row span,
.listing-metrics em {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.badge-public {
  color: #1f5e47;
  background: #e6f3eb;
}

.badge-member {
  color: #22599f;
  background: #e8f0fb;
}

.badge-mail {
  color: #8a510b;
  background: #f9eddc;
}

.badge-b2b {
  color: #664a7b;
  background: #efe9f5;
}

.badge-nda {
  color: #9a3d33;
  background: #fae8e5;
}

.listing-card h3 {
  margin-bottom: 8px;
}

.listing-card p {
  margin-bottom: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-row span {
  color: #465760;
  background: #f1f4f2;
}

.listing-metrics {
  display: grid;
  align-content: start;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.listing-metrics strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.route-hot {
  color: #9f382f;
  background: #ffe9e6;
}

.route-warm {
  color: #8a510b;
  background: #f9eddc;
}

.route-green {
  color: #1f5e47;
  background: #e6f3eb;
}

.route-cool {
  color: #22599f;
  background: #e8f0fb;
}

.match-panel {
  position: relative;
}

.panel-sticky {
  position: sticky;
  top: 158px;
  display: grid;
  gap: 12px;
}

.panel-head {
  padding: 0 2px;
}

.icon-button {
  padding: 8px 12px;
  color: var(--deep);
  background: #fff;
  border-color: var(--line);
}

.detail-card,
.assistant-box,
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail-card {
  overflow: hidden;
}

.detail-visual {
  min-height: 150px;
  padding: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(24, 33, 41, .15), rgba(24, 33, 41, .65)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 1px, transparent 1px 44px),
    linear-gradient(135deg, #2367c9, #1e9bb0);
}

.detail-visual.one-room {
  background:
    linear-gradient(135deg, rgba(24, 33, 41, .12), rgba(24, 33, 41, .62)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .18) 0 1px, transparent 1px 24px),
    linear-gradient(135deg, #2367c9, #34785a);
}

.detail-visual.family {
  background:
    linear-gradient(135deg, rgba(24, 33, 41, .12), rgba(24, 33, 41, .62)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #34785a, #c47a16);
}

.detail-visual.land {
  background:
    linear-gradient(135deg, rgba(24, 33, 41, .12), rgba(24, 33, 41, .62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .16) 0 1px, transparent 1px 32px),
    linear-gradient(135deg, #497548, #8a6b34);
}

.detail-visual.yield {
  background:
    linear-gradient(135deg, rgba(24, 33, 41, .12), rgba(24, 33, 41, .62)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .14) 0 1px, transparent 1px 20px),
    linear-gradient(135deg, #6c537f, #cc5548);
}

.detail-visual span {
  font-size: 13px;
  font-weight: 900;
}

.detail-visual strong {
  font-size: 28px;
  line-height: 1;
}

.detail-title,
.detail-list,
.next-actions,
.detail-interest {
  margin: 18px;
}

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

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

.detail-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  color: #263640;
  font-weight: 700;
}

.next-actions {
  padding: 14px;
  background: #f7f9f7;
  border-radius: 8px;
}

.next-actions ul {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.detail-interest {
  width: calc(100% - 36px);
}

.assistant-box {
  padding: 18px;
}

.assistant-box p {
  margin: 12px 0 0;
}

.fine-print {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.one-room-band {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.split-section,
.route-grid,
.register-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(340px, 1fr);
  gap: 28px;
  align-items: start;
}

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

.feature-grid article {
  padding: 18px;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.feature-grid span {
  color: var(--coral);
  font-size: 12px;
  font-weight: 950;
}

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

.route-steps li {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.route-steps strong {
  color: var(--deep);
}

.route-steps span {
  color: var(--muted);
}

.forms-band {
  background: #eef3f2;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.partner-feed {
  padding: 64px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}

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

.partner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.partner-points span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #22599f;
  background: #e8f0fb;
  font-size: 13px;
  font-weight: 900;
}

.partner-card {
  border-color: rgba(35, 103, 201, .28);
}

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

.form-card {
  padding: 24px;
}

.seller-card {
  border-color: rgba(52, 120, 90, .35);
}

.snows-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.snows-form textarea,
.snows-form button,
.form-message {
  grid-column: 1 / -1;
}

.form-message {
  padding: 12px 14px;
  border-radius: 8px;
  font-weight: 800;
}

.form-message[data-state="ok"] {
  color: #1f5e47;
  background: #e6f3eb;
}

.form-message[data-state="error"] {
  color: #9a3d33;
  background: #fae8e5;
}

.campaign-box {
  padding: 24px;
}

.dice-row {
  justify-content: flex-start;
}

.dice-button {
  width: 76px;
  height: 76px;
  color: #fff;
  background: var(--coral);
  box-shadow: 0 12px 26px rgba(204, 85, 72, .2);
}

.dice-row strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1.2;
}

.site-footer {
  padding: 32px 0 48px;
  color: #60707a;
}

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

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 850;
}

.empty-state {
  padding: 22px;
  color: var(--muted);
  font-weight: 800;
}

.launch-page {
  background: #f4f6f3;
}

.launch-shell {
  padding: 34px 0 58px;
}

.launch-hero {
  padding: 34px 0 18px;
}

.launch-hero h1 {
  max-width: none;
  font-size: clamp(38px, 5vw, 60px);
}

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

.launch-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(38, 50, 56, .08);
}

.launch-card h2 {
  font-size: 28px;
}

.launch-card h3 {
  margin-top: 18px;
  font-size: 18px;
}

.launch-card textarea {
  min-height: 92px;
  margin-bottom: 12px;
}

.large-textarea {
  min-height: 360px;
}

.copy-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 8px;
}

.copy-block button {
  min-height: 34px;
  padding: 6px 10px;
  color: #fff;
  background: var(--deep);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

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

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #34444d;
  font-weight: 800;
}

.checklist input {
  width: auto;
  min-height: auto;
  margin-top: 7px;
}

.segment-table {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segment-table > div {
  display: grid;
  grid-template-columns: minmax(150px, .45fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.segment-table > div:first-child {
  border-top: 0;
}

.segment-table span {
  padding: 12px;
  border-left: 1px solid var(--line);
}

.segment-table span:first-child {
  border-left: 0;
  font-weight: 900;
}

.segment-head {
  color: #fff;
  background: var(--deep);
  font-weight: 900;
}

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

.graph-shell {
  --graph-blue: #2866b1;
  --graph-teal: #27756f;
  --graph-red: #c75247;
  --graph-gold: #bd761b;
}

.graph-hero h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.graph-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.file-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.graph-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 16px;
}

.graph-stat {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(38, 50, 56, .06);
}

.graph-stat span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.graph-stat strong {
  display: block;
  color: var(--deep);
  font-size: 38px;
  line-height: 1.05;
}

.graph-control-card {
  margin-bottom: 16px;
}

.graph-controls {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) repeat(4, minmax(130px, .7fr));
  gap: 12px;
}

.graph-controls label {
  display: grid;
  gap: 6px;
}

.graph-controls span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.graph-section-head h2 {
  margin-bottom: 0;
  font-size: 28px;
}

.graph-section-head span {
  color: var(--muted);
  font-weight: 900;
}

.scatter-wrap {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: minmax(360px, 48vh) auto;
  gap: 8px;
}

.scatter-axis {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.y-axis {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  text-align: center;
}

.x-axis {
  grid-column: 2;
  text-align: center;
}

.scatter-plot {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(47, 125, 91, .12), rgba(255, 255, 255, 0) 46%),
    linear-gradient(45deg, rgba(199, 82, 71, .10), rgba(255, 255, 255, 0) 54%),
    #f9fbf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scatter-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
}

.scatter-grid span {
  border-left: 1px solid rgba(96, 112, 122, .16);
  border-top: 1px solid rgba(96, 112, 122, .16);
}

.scatter-grid span:nth-child(5n + 1) {
  border-left: 0;
}

.scatter-grid span:nth-child(-n + 5) {
  border-top: 0;
}

.scatter-dot {
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(24, 33, 41, .18);
  cursor: pointer;
}

.scatter-dot.is-selected {
  width: 24px;
  height: 24px;
  border-color: var(--deep);
  box-shadow: 0 0 0 4px rgba(35, 103, 201, .18);
}

.selected-company {
  min-height: 108px;
  margin-top: 14px;
  padding: 14px;
  background: #f7faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.selected-company strong,
.selected-company span,
.selected-company small {
  display: block;
}

.selected-company strong {
  font-size: 18px;
}

.selected-company span {
  color: var(--graph-blue);
  font-weight: 900;
}

.selected-company small {
  margin-top: 4px;
  color: #34444d;
  font-weight: 800;
}

.selected-company p {
  margin: 6px 0 0;
}

.vertical-bars {
  display: grid;
  gap: 9px;
}

.vertical-bar-row {
  display: grid;
  grid-template-columns: minmax(88px, .55fr) minmax(120px, 1fr) 34px;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  font-weight: 850;
}

.vertical-bar-track {
  height: 13px;
  overflow: hidden;
  background: #edf2ee;
  border-radius: 999px;
}

.vertical-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--graph-teal), var(--graph-blue));
}

.heatmap-wrap {
  overflow: auto;
  max-height: 72vh;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.heatmap-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) 52px 72px minmax(128px, .8fr) repeat(var(--vertical-count, 17), 58px);
  min-width: calc(462px + (var(--vertical-count, 17) * 58px));
  width: 100%;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.heatmap-row:first-child {
  border-top: 0;
}

.heatmap-row > span {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 8px;
  border-left: 1px solid var(--line);
  font-size: 12px;
  font-weight: 820;
}

.heatmap-row > span:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  border-left: 0;
  background: inherit;
  font-size: 13px;
  font-weight: 950;
}

.heatmap-head {
  position: sticky;
  top: 0;
  z-index: 4;
  color: #fff;
  background: var(--deep);
}

.heatmap-head > span {
  justify-content: center;
  color: #fff;
}

.heatmap-row:not(.heatmap-head) {
  cursor: pointer;
}

.heatmap-row:not(.heatmap-head):hover,
.heatmap-row.is-selected {
  background: #f2f7f4;
}

.fit-pill,
.risk-pill {
  justify-content: center;
  font-weight: 950;
}

.fit-pill {
  color: var(--graph-teal);
}

.risk-pill {
  color: var(--graph-red);
}

.heat-cell {
  justify-content: center;
  color: transparent;
}

.heat-0 {
  background: #f8faf8;
}

.heat-1 {
  background: #e8f1ec;
}

.heat-2 {
  background: #cfe4d7;
}

.heat-3 {
  color: #153327;
  background: #9fc9af;
}

.heat-4 {
  color: #fff;
  background: #4f9b76;
}

.heat-5 {
  color: #fff;
  background: #2367c9;
}

.schema-box {
  overflow-x: auto;
  padding: 16px;
  color: #dcecf0;
  background: #253238;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 1020px) {
  .top-nav {
    display: none;
  }

  .stage-grid,
  .board-grid,
  .split-section,
  .route-grid,
  .register-grid,
  .partner-grid,
  .graph-layout,
  .launch-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .panel-sticky {
    position: static;
  }

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

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

@media (max-width: 760px) {
  .segment-table > div {
    grid-template-columns: 1fr;
  }

  .segment-table span {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .segment-table span:first-child {
    border-top: 0;
  }

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

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

  .scatter-wrap {
    grid-template-rows: 320px auto;
  }
}

@media (max-width: 700px) {
  .shell {
    width: min(calc(100% - 24px), var(--max));
  }

  .market-stage,
  .market-board,
  .seller-route,
  .forms-band,
  .registerknight,
  .partner-feed,
  .one-room-band {
    padding: 42px 0;
  }

  .stage-copy {
    min-height: auto;
  }

  h1 {
    font-size: 38px;
  }

  .control-band {
    position: static;
  }

  .control-grid,
  .listing-card,
  .snows-form {
    grid-template-columns: 1fr;
  }

  .listing-metrics {
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .memo-stats {
    grid-template-columns: 1fr;
  }

  .header-action,
  .stage-actions .button,
  .snows-form .button {
    width: 100%;
  }

  .header-inner {
    align-items: stretch;
    padding: 12px 0;
    flex-direction: column;
  }

  .brand {
    align-self: flex-start;
  }
}
