/* Palette: paper, graphite, vermilion. Two font weights; no remote assets. */
:root {
  color-scheme: light;
  --paper: #f6f5f1;
  --surface: #fff;
  --ink: #252824;
  --muted: rgb(37 40 36 / 0.72);
  --line: rgb(37 40 36 / 0.14);
  --accent: #ae3d20;
  --accent-wash: rgb(174 61 32 / 0.07);
  --nav: #242824;
  --nav-ink: #f6f5f1;
  --font: "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "Courier New", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 64px;
  --r: 12px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 96px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
a {
  color: inherit;
}
button {
  transition:
    background 180ms var(--ease),
    transform 240ms var(--ease);
}
button:not(:disabled):hover {
  transform: translateY(-1px);
}
button:active:not(:disabled) {
  transform: translateY(0);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
button:disabled:hover {
  transform: none;
}
svg.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  vertical-align: middle;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
  text-wrap: balance;
  hyphens: none;
}
h1 {
  font-size: clamp(32px, 3.2vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
h2 {
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
p {
  max-width: 62ch;
  text-wrap: pretty;
}
b,
strong {
  font-weight: 600;
}
[hidden] {
  display: none !important;
}
.muted,
.note {
  color: var(--muted);
}
.note {
  font-size: 13px;
}
.label,
.nav-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
}
.label {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 100;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 232px;
  background: var(--nav);
  color: var(--nav-ink);
  padding: 34px 18px 24px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  padding: 0 10px;
}
.brand > svg {
  width: 32px;
  height: 32px;
  color: #ee8a66;
  flex-shrink: 0;
}
.brand > span {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: rgb(246 245 241 / 0.62);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  margin-top: 7px;
}
.nav-label {
  color: rgb(246 245 241 / 0.52);
  margin: 52px 14px 12px;
}
.tab {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 14px;
  color: rgb(246 245 241 / 0.75);
}
.tab .nav-number {
  margin-left: auto;
  font: 11px var(--mono);
  opacity: 0.5;
}
.tab[aria-current="page"] {
  color: #fff;
  background: rgb(255 255 255 / 0.09);
}
.tab[aria-current="page"] > .icon {
  color: #ee8a66;
}
.tab:hover {
  background: rgb(255 255 255 / 0.06);
}
.nav-break {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 28px 14px 0;
}
.sidebar-rule {
  width: 28px;
  height: 2px;
  background: #ee8a66;
  margin-bottom: 18px;
}
.sidebar-bottom p {
  font-size: 13px;
  line-height: 1.6;
  color: rgb(246 245 241 / 0.7);
}
.local-label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: rgb(246 245 241 / 0.52);
  margin-top: 26px;
}
.local-label .icon {
  width: 14px;
  height: 14px;
}
.workspace {
  margin-left: 232px;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 88px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
}
.breadcrumb {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.breadcrumb span {
  margin: 0 10px;
  opacity: 0.5;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 400;
}
.search {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 380px;
  max-width: 100%;
  padding: 0 12px;
  background: var(--surface);
  border-radius: 999px;
  min-height: 46px;
  box-shadow: 0 0 0 1px var(--line);
}
.search:focus-within {
  box-shadow: 0 0 0 2px var(--accent);
}
.search > span {
  color: var(--muted);
}
.search input {
  min-width: 0;
  width: 100%;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
  color: var(--ink);
  height: 44px;
}
.search input::-webkit-search-cancel-button {
  display: none;
}
.search kbd {
  font: 10px var(--mono);
  white-space: nowrap;
  color: var(--muted);
}
.search:has(#search-clear:not([hidden])) kbd {
  display: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  border-radius: 999px;
}
.icon-btn:hover {
  background: var(--accent-wash);
}
.search .icon-btn {
  margin-right: -10px;
}
main {
  padding: 44px 40px 32px;
  max-width: 1512px;
  margin: auto;
  min-height: calc(100svh - 150px);
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}
.page-head p {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
}
.page-index {
  font: 13px var(--mono);
  color: var(--muted);
  padding-top: 10px;
}
.page-index span {
  color: var(--accent);
}
.workspace-footer {
  padding: 22px 40px;
  max-width: 1512px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.stage-layout,
.objection-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 40px;
}
.section-rail {
  align-self: start;
  position: sticky;
  top: 118px;
}
.rail-title {
  margin-bottom: 15px;
}
.stepper {
  display: grid;
}
.step {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 49px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  font-size: 13px;
}
.step b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  color: var(--muted);
  font: 12px var(--mono);
}
.step[aria-current="step"] {
  background: var(--surface);
  color: var(--accent);
}
.step[aria-current="step"] b {
  background: var(--accent);
  color: white;
  border-radius: 50%;
}
.step .icon {
  width: 15px;
  margin-left: auto;
}
.stage-count {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  margin-top: 22px;
}
.stage-count span {
  height: 3px;
  flex: 1;
  background: var(--line);
}
.stage-count span.done {
  background: var(--accent);
}
.rulebook {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}
.rulebook summary {
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rulebook summary .icon {
  width: 16px;
}
.rulebook[open] summary .icon {
  transform: rotate(180deg);
}
.rules {
  padding: 0;
  list-style: none;
  margin: 5px 0 0;
  counter-reset: rule;
}
.rules li {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0;
}
.rules li:before {
  counter-increment: rule;
  content: counter(rule, decimal-leading-zero);
  font: 10px/1.8 var(--mono);
  color: var(--accent);
}
.stage-content {
  min-width: 0;
}
.stage-overview {
  padding: 30px 32px 28px;
  background: var(--surface);
  border-radius: var(--r);
}
.stage-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.stage-title .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
.goal {
  font-size: 17px;
  line-height: 1.65;
  max-width: 60ch;
}
.stage-signals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.signal-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 9px;
}
.signal-heading .icon {
  width: 17px;
  height: 17px;
}
.signal p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.signal.error .signal-heading {
  color: var(--accent);
}
.phrase-section {
  margin-top: 30px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.section-title h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.section-title .note {
  font-size: 11px;
}
.phrases {
  display: grid;
}
.phrase {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.phrase-number {
  font: 11px/1.8 var(--mono);
  color: var(--muted);
  padding-top: 2px;
  min-width: 18px;
}
.phrase-body {
  flex: 1;
  min-width: 0;
}
.phrase p {
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.phrase .copy-btn {
  margin-top: -3px;
}
.copy-btn {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  min-width: 44px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  padding: 0 10px;
}
.copy-btn .icon {
  width: 17px;
  height: 17px;
}
.copy-btn:hover {
  background: var(--surface);
  color: var(--accent);
}
.copy-btn.copied {
  color: var(--accent);
  background: var(--accent-wash);
}
.ph {
  font-family: var(--mono);
  color: var(--accent);
  white-space: nowrap;
}
.src {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.bad {
  color: var(--muted);
}
.bad .phrase-body {
  text-decoration: line-through;
}
.bad-label {
  color: var(--accent);
  font-size: 11px;
  white-space: nowrap;
}
.control-question {
  margin-top: 25px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.control-question .icon {
  width: 16px;
  margin-top: 2px;
}
.control-question b {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 3px;
}
.stage-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn:hover {
  box-shadow: 0 3px 0 var(--line);
}
.btn.primary {
  border: 0;
  background: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  box-shadow: 0 3px 0 rgb(174 61 32 / 0.2);
}
.objlist {
  display: grid;
  gap: 4px;
}
.obj {
  border: 0;
  background: transparent;
  min-height: 46px;
  padding: 10px 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.obj .icon {
  width: 15px;
  opacity: 0;
  flex-shrink: 0;
}
.obj[aria-pressed="true"] {
  color: var(--accent);
  background: var(--surface);
}
.obj[aria-pressed="true"] .icon {
  opacity: 1;
}
.obj:hover {
  background: var(--surface);
}
.objection-intro {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.objection-intro h2 {
  font-size: 34px;
  margin-bottom: 16px;
}
.objection-intro p {
  font-size: 15px;
  color: var(--muted);
}
.algorithm {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--surface);
  border-radius: var(--r);
}
.algo {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
  counter-reset: algo;
  margin: 24px 0 0;
}
.algo li {
  display: flex;
  gap: 10px;
  font-size: 12px;
}
.algo li:before {
  counter-increment: algo;
  content: counter(algo, decimal-leading-zero);
  font: 11px/1.8 var(--mono);
  color: var(--accent);
}
.algo b {
  display: block;
  font-size: 13px;
  margin-bottom: 3px;
}
.algo span {
  color: var(--muted);
}
.collect {
  margin-top: 28px;
}
.closing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 36px;
}
.closing-block {
  background: var(--surface);
  padding: 28px;
  border-radius: var(--r);
  min-width: 0;
}
.closing-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}
.closing-head > .mono {
  color: var(--accent);
  font-size: 13px;
}
.closing-block > p {
  font-size: 13px;
  color: var(--muted);
  min-height: 44px;
  margin-bottom: 15px;
}
.closing-block .phrase {
  padding: 15px 0;
  gap: 12px;
}
.closing-block .phrase:last-child {
  border-bottom: 0;
}
.closing-block .phrase-number {
  display: none;
}
.closing-block .copy-label {
  display: none;
}
.closing-block .phrase p {
  font-size: 14px;
}
.closing-summary {
  margin-top: 32px;
  max-width: 800px;
}
.follow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 48px;
}
.timeline {
  position: relative;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 29px;
  top: 24px;
  bottom: 80px;
  width: 1px;
  background: var(--line);
}
.day {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 28px;
  position: relative;
  scroll-margin-top: 16px;
}
.day-marker {
  background: var(--paper);
  z-index: 1;
  text-align: center;
  padding: 8px 0;
  color: var(--accent);
  font: 12px var(--mono);
}
.day h3 {
  margin: 3px 0 4px;
}
.day .phrase {
  padding: 14px 0;
  gap: 10px;
}
.day .phrase-number {
  display: none;
}
.follow-aside {
  align-self: start;
  position: sticky;
  top: 118px;
}
.day-links {
  display: grid;
  margin: 16px 0 28px;
}
.day-links a {
  min-height: 44px;
  font-size: 13px;
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.day-links a:hover {
  color: var(--accent);
}
.rule-note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.rule-note p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 12px;
}
.deal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 42px;
}
.deal-form {
  background: var(--surface);
  border-radius: var(--r);
  padding: 8px 30px;
}
.field {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 15px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.field:last-child {
  border: 0;
}
.field-num {
  font: 11px/2 var(--mono);
  color: var(--muted);
  padding-top: 2px;
}
.field.filled .field-num {
  color: var(--accent);
}
.field label {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.field-hint {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: 3px 0 12px;
}
textarea {
  display: block;
  min-height: 66px;
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.6;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 6px;
}
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.deal-status {
  position: sticky;
  top: 116px;
  align-self: start;
}
.filled-count {
  font: 500 62px/0.95 var(--font);
  letter-spacing: -0.06em;
  margin: 18px 0;
}
.filled-count small {
  font: 13px var(--mono);
  letter-spacing: 0;
  color: var(--muted);
}
.progress {
  width: 100%;
  height: 4px;
  border: 0;
  background: var(--line);
  margin: 14px 0 20px;
}
.progress::-webkit-progress-bar {
  background: var(--line);
}
.progress::-webkit-progress-value {
  background: var(--accent);
  transition: width 260ms var(--ease);
}
.progress::-moz-progress-bar {
  background: var(--accent);
}
.deal-status > p {
  font-size: 13px;
  color: var(--muted);
}
.deal-actions {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}
.save-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  margin-top: 18px;
  color: var(--muted);
}
.save-state .icon {
  width: 16px;
}
.storage-note {
  margin-top: 8px;
  font-size: 11px;
}
.funnel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 40px;
}
.funnel-chart {
  background: var(--surface);
  border-radius: var(--r);
  padding: 28px 30px;
}
.frow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 85px;
  gap: 18px;
  align-items: center;
}
.frow label {
  font-size: 14px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.frow label .mono {
  font-size: 10px;
  color: var(--muted);
}
input[type="number"] {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 16px var(--mono);
  border-radius: 4px;
}
.funnel-bar {
  grid-column: 1/-1;
  width: 100%;
  height: 24px;
  display: block;
}
.funnel-bar .bar-track {
  fill: var(--paper);
}
.funnel-bar .bar-value {
  fill: var(--ink);
  opacity: 0.8;
  transition: width 280ms var(--ease);
}
.funnel-bar .bar-value.weak-bar {
  fill: var(--accent);
  opacity: 1;
}
.conv {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  padding: 10px 0 20px 22px;
}
.conv .icon {
  width: 13px;
  height: 13px;
}
.conv b {
  font: 12px var(--mono);
  margin-left: auto;
}
.conv.weak {
  color: var(--accent);
}
.weak-tag {
  font-size: 10px;
}
.funnel-aside {
  align-self: start;
  position: sticky;
  top: 118px;
}
.total-value {
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 18px 0 8px;
}
.diag {
  padding-top: 24px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.diag b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 12px;
}
.funnel-aside > .note {
  margin-top: 24px;
}
.validation {
  font-size: 12px;
  color: var(--accent);
  margin-top: 20px;
}
.search-results {
  max-width: 900px;
}
.search-results mark {
  background: var(--accent-wash);
  color: var(--accent);
  border-radius: 2px;
}
.empty-state {
  padding: 64px 0;
}
.empty-state > .icon {
  height: 36px;
  width: 36px;
  color: var(--accent);
  margin-bottom: 24px;
}
.empty-state h2 {
  margin-bottom: 15px;
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
}
.search-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.mobile-nav {
  display: none;
}
dialog {
  width: 460px;
  max-width: calc(100% - 32px);
  padding: 32px;
  border: 0;
  background: var(--surface);
  color: var(--ink);
  border-radius: 16px;
  box-shadow: 0 24px 100px rgb(0 0 0 / 0.2);
}
dialog::backdrop {
  background: rgb(15 20 15 / 0.45);
}
dialog h2 {
  font-size: 27px;
}
dialog p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 16px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 28px;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.more-dialog .tab {
  color: var(--ink);
  padding: 14px 8px;
  border-bottom: 1px solid var(--line);
}
.more-dialog .tab[aria-current="page"] {
  color: var(--accent);
}
.toast {
  position: fixed;
  bottom: 28px;
  left: calc(50% + 116px);
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  background: var(--ink);
  color: var(--surface);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13px;
  max-width: calc(100% - 32px);
  z-index: 60;
  transition:
    opacity 180ms var(--ease),
    transform 240ms var(--ease);
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.clipboard-fallback {
  position: fixed;
  left: -9999px;
  top: 0;
}
@media (min-width: 1600px) {
  main {
    padding-top: 56px;
  }
  .stage-layout,
  .objection-layout {
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 64px;
  }
  .stage-content {
    max-width: 940px;
  }
  .stage-overview {
    padding: 36px 40px;
  }
  .phrase {
    padding: 23px 0;
  }
  .goal {
    font-size: 18px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 206px;
    padding-inline: 12px;
  }
  .workspace {
    margin-left: 206px;
  }
  .topbar {
    padding-inline: 28px;
  }
  main {
    padding: 34px 28px;
  }
  .stage-layout,
  .objection-layout {
    grid-template-columns: 172px minmax(0, 1fr);
    gap: 26px;
  }
  .stage-overview {
    padding: 25px;
  }
  .stage-signals {
    gap: 20px;
  }
  .copy-label {
    display: none;
  }
  .follow-layout,
  .deal-layout,
  .funnel-layout {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .closing-block {
    padding: 24px;
  }
  .toast {
    left: calc(50% + 103px);
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 76px;
    padding: 27px 12px;
  }
  .brand {
    padding: 0;
    justify-content: center;
  }
  .brand > span,
  .sidebar .nav-label,
  .sidebar .tab > span,
  .sidebar-bottom {
    display: none;
  }
  .sidebar #tabs {
    margin-top: 40px;
  }
  .sidebar .tab {
    justify-content: center;
    padding: 12px;
  }
  .sidebar .nav-break {
    margin-top: 20px;
  }
  .workspace {
    margin-left: 76px;
  }
  .breadcrumb {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    min-height: 78px;
  }
  .search {
    width: 100%;
  }
  .stage-layout,
  .objection-layout {
    gap: 24px;
    grid-template-columns: 165px minmax(0, 1fr);
  }
  .stage-signals {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .follow-layout,
  .deal-layout,
  .funnel-layout {
    grid-template-columns: minmax(0, 1fr) 200px;
    gap: 24px;
  }
  .funnel-chart {
    padding: 22px;
  }
  .toast {
    left: calc(50% + 38px);
  }
}
@media (max-width: 700px) {
  html {
    scroll-padding-top: 80px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 12px 18px;
    min-height: 70px;
    gap: 12px;
  }
  .search {
    min-height: 44px;
  }
  .search kbd {
    display: none;
  }
  main {
    padding: 28px 20px 26px;
    min-height: calc(100svh - 200px);
  }
  .page-head {
    margin-bottom: 25px;
    gap: 12px;
  }
  .page-head p {
    font-size: 13px;
    margin-top: 13px;
  }
  .page-index {
    font-size: 11px;
    padding-top: 7px;
  }
  h1 {
    font-size: 35px;
    line-height: 1;
  }
  h2 {
    font-size: 27px;
  }
  .stage-layout,
  .objection-layout {
    display: block;
  }
  .section-rail {
    position: static;
    margin-bottom: 24px;
  }
  .rail-title {
    display: none;
  }
  .stepper {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 4px 0 8px;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }
  .step {
    flex: 0 0 auto;
    min-height: 44px;
    gap: 5px;
    padding: 7px 10px;
    scroll-snap-align: nearest;
    font-size: 12px;
  }
  .step .icon {
    display: none;
  }
  .stepper .step b {
    font-size: 11px;
    width: 22px;
    height: 22px;
  }
  .stage-count {
    display: none;
  }
  .rulebook {
    margin-top: 8px;
    padding-top: 5px;
  }
  .rulebook summary {
    min-height: 40px;
  }
  .rules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
  }
  .rules li {
    margin: 8px 0;
    font-size: 11px;
  }
  .stage-overview {
    padding: 23px 22px;
    border-radius: 10px;
  }
  .stage-title {
    gap: 10px;
    margin-bottom: 18px;
  }
  .stage-title .label {
    font-size: 10px;
  }
  .goal {
    font-size: 15px;
  }
  .stage-signals {
    padding-top: 20px;
    margin-top: 20px;
    gap: 20px;
  }
  .signal p {
    font-size: 13px;
  }
  .phrase-section {
    margin-top: 26px;
  }
  .phrase {
    gap: 10px;
    padding: 18px 0;
  }
  .phrase p {
    font-size: 14px;
    line-height: 1.7;
  }
  .phrase-number {
    font-size: 10px;
    min-width: 14px;
  }
  .phrase .copy-btn {
    padding: 0;
    min-width: 44px;
  }
  .section-title .note {
    font-size: 10px;
  }
  .stage-nav .btn {
    font-size: 11px;
    padding: 10px 12px;
  }
  .control-question {
    font-size: 12px;
  }
  .workspace-footer {
    padding: 20px 20px 105px;
    font-size: 10px;
  }
  .workspace-footer span:last-child {
    max-width: 140px;
    text-align: right;
  }
  .mobile-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 6px max(8px, env(safe-area-inset-bottom));
    z-index: 40;
  }
  .mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 54px;
    background: transparent;
    border: 0;
    font-size: 10px;
    color: var(--muted);
  }
  .mobile-tab .icon {
    width: 21px;
    height: 21px;
  }
  .mobile-tab[aria-current="page"] {
    color: var(--accent);
  }
  .more-dialog {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    border-radius: 18px 18px 0 0;
    padding: 24px 24px max(24px, env(safe-area-inset-bottom));
  }
  .more-dialog h2 {
    font-size: 24px;
  }
  .toast {
    left: 50%;
    bottom: 88px;
    width: max-content;
    max-width: calc(100% - 32px);
    text-align: center;
    font-size: 12px;
  }
  .objlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .obj {
    font-size: 12px;
    min-height: 48px;
    padding: 10px;
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
  }
  .obj[aria-pressed="true"] {
    background: var(--accent);
    color: white;
    box-shadow: none;
  }
  .obj .icon {
    display: none;
  }
  .objection-intro h2 {
    font-size: 29px;
  }
  .objection-intro p {
    font-size: 14px;
  }
  .algorithm {
    padding: 24px 20px;
  }
  .algo {
    gap: 18px 12px;
  }
  .algo li {
    font-size: 11px;
    gap: 7px;
  }
  .algo b {
    font-size: 12px;
  }
  .closing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .closing-block {
    padding: 22px;
  }
  .closing-block > p {
    min-height: 0;
  }
  .closing-summary .label {
    font-size: 10px;
  }
  .follow-layout,
  .deal-layout,
  .funnel-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
  .follow-aside,
  .deal-status,
  .funnel-aside {
    position: static;
    align-self: stretch;
  }
  .follow-aside {
    order: -1;
  }
  .day-links {
    display: flex;
    margin: 0;
    gap: 6px;
    justify-content: space-between;
  }
  .day-links a {
    font-size: 11px;
    border: 1px solid var(--line);
    padding: 0 9px;
    border-radius: 999px;
    white-space: nowrap;
  }
  .follow-aside > .label {
    display: none;
  }
  .follow-aside .rule-note {
    margin-top: 20px;
    padding-top: 16px;
  }
  .day {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 18px;
  }
  .day-marker {
    font-size: 11px;
  }
  .timeline:before {
    left: 23px;
  }
  .day h3 {
    font-size: 19px;
  }
  .day .phrase {
    gap: 6px;
  }
  .deal-status {
    order: -1;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 20px;
  }
  .deal-status > .label {
    align-self: center;
  }
  .filled-count {
    font-size: 36px;
    margin: 0;
  }
  .deal-status > .progress,
  .deal-status > p,
  .deal-actions,
  .save-state,
  .storage-note {
    grid-column: 1/-1;
  }
  .deal-status > .progress {
    margin: 15px 0;
  }
  .deal-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 18px;
    gap: 10px;
  }
  .deal-actions .btn {
    font-size: 11px;
    flex: 1;
  }
  .save-state {
    margin-top: 14px;
    font-size: 11px;
  }
  .deal-form {
    padding: 0 18px;
  }
  .field {
    gap: 9px;
    padding: 22px 0;
    grid-template-columns: 22px minmax(0, 1fr);
  }
  .field label {
    font-size: 14px;
  }
  .field-hint {
    font-size: 11px;
  }
  .funnel-chart {
    padding: 22px 18px;
  }
  .frow {
    grid-template-columns: minmax(0, 1fr) 76px;
    gap: 12px;
  }
  .frow label {
    font-size: 13px;
    gap: 8px;
  }
  .conv {
    font-size: 10px;
    padding-left: 0;
    flex-wrap: wrap;
    gap: 6px;
  }
  .weak-tag {
    font-size: 9px;
  }
  .funnel-aside {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .funnel-aside > .label {
    align-self: center;
  }
  .total-value {
    margin: 0;
    font-size: 38px;
  }
  .funnel-aside > .note,
  .diag {
    grid-column: 1/-1;
  }
  .diag {
    padding-top: 20px;
    margin-top: 8px;
  }
  .funnel-aside > .note {
    margin: 0;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  .dialog-actions .btn {
    flex: 1;
    white-space: nowrap;
  }
  dialog {
    padding: 25px;
  }
  .empty-state {
    padding-top: 34px;
  }
}
@media (max-width: 359px) {
  main {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 16px;
  }
  .page-head h1 {
    font-size: 31px;
  }
  .page-index {
    display: none;
  }
  .stage-overview {
    padding: 20px 18px;
  }
  .stage-title h2 {
    font-size: 24px;
  }
  .objlist {
    gap: 5px;
  }
  .obj {
    font-size: 11px;
  }
  .algo {
    grid-template-columns: 1fr;
  }
  .section-title .note {
    max-width: 100px;
    text-align: right;
  }
  .day-links {
    gap: 4px;
  }
  .day-links a {
    padding-inline: 7px;
    font-size: 10px;
  }
  .deal-actions {
    display: grid;
  }
  .stage-nav .btn {
    gap: 5px;
  }
  .phrase-number {
    display: none;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #1c201d;
    --surface: #272c28;
    --ink: #f0f0e9;
    --muted: rgb(240 240 233 / 0.72);
    --line: rgb(240 240 233 / 0.16);
    --accent: #f09b7d;
    --accent-wash: rgb(240 155 125 / 0.08);
    --nav: #151916;
  }
  .btn.primary,
  .obj[aria-pressed="true"] {
    color: #1c201d;
  }
  .btn.primary {
    background: #f09b7d;
  }
  .step[aria-current="step"] b {
    color: #1c201d;
  }
}
.page-index {
  white-space: nowrap;
  flex-shrink: 0;
}
.inline-arrow {
  width: 16px !important;
  height: 16px !important;
}
.objection-return {
  display: none;
}
.objection-intro,
.objlist {
  scroll-margin-top: 12px;
}
.objection-intro:focus {
  outline: none;
}
@media (prefers-color-scheme: dark) {
  .obj[aria-pressed="true"] {
    color: var(--accent);
  }
}
@media (max-width: 700px) {
  .objection-return {
    display: inline-flex;
    margin-bottom: 22px;
  }
  .deal-actions .primary {
    flex: 1.5;
  }
  .deal-actions .primary .icon {
    flex-shrink: 0;
  }
  .keyboard-open .mobile-nav {
    display: none;
  }
  .keyboard-open .toast {
    bottom: 16px;
  }
}
@media (max-width: 700px) and (prefers-color-scheme: dark) {
  .obj[aria-pressed="true"] {
    color: #1c201d;
  }
}
@media (max-width: 700px) {
  .stepper .step {
    width: auto;
  }
  .rulebook summary {
    min-height: 44px;
  }
  textarea {
    font-size: 16px;
  }
  .search input {
    font-size: 16px;
  }
  .search input::placeholder {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
