:root {
  color-scheme: light;
  --ink: #121212;
  --ink-2: #252824;
  --muted: #626a66;
  --paper: #f7f5ee;
  --paper-2: #ede8dc;
  --panel: #ffffff;
  --line: #d8d3c5;
  --border: #d8d3c5;
  --border-strong: #aaa391;
  --paper-strong: #eee9dd;
  --green: #00875a;
  --green-dark: #06452f;
  --amber: #c9871a;
  --red: #b64a3a;
  --blue: #1d6f9f;
  --shadow: 0 18px 46px rgba(18, 18, 18, 0.08);
}

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

html:not(.auth-known) [data-auth-required],
html:not(.auth-known) [data-auth-logout],
html:not(.auth-known) #hub-header-logout,
html:not(.auth-known) #promptkit-header-logout,
html:not(.auth-known) #playbooks-header-logout,
html:not(.auth-known) #admin-logout,
html:not(.admin-known) [data-admin-required],
html.auth-known [data-auth-logged-out],
html.auth-known [data-hub-register],
html.auth-known [data-promptkit-register],
html.auth-known [data-playbooks-register] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

main,
section,
.site-header {
  max-width: 100vw;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(247, 245, 238, 0.96);
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
  backdrop-filter: blur(14px);
}

.brand,
.nav,
.header-cta,
.button {
  text-decoration: none;
}

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

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav {
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2vw, 30px);
  color: #555c58;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav a,
.site-footer a {
  text-underline-offset: 4px;
}

.nav a:hover,
.site-footer a:hover {
  color: var(--green-dark);
}

.nav a[data-admin-required] {
  color: #b42318;
  font-weight: 800;
}

.nav a[data-admin-required]:hover {
  color: #7a1b12;
}

.header-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  font-weight: 760;
}

.header-button {
  font: inherit;
  cursor: pointer;
}

.header-cta[hidden] {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 17px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.menu-toggle span + span {
  margin-top: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  min-height: min(700px, calc(100svh - 68px));
  padding: clamp(44px, 6vw, 74px) clamp(20px, 5vw, 84px) clamp(40px, 5vw, 58px);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--ink-2);
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  font-weight: 850;
  text-transform: none;
}

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

h1 {
  max-width: 940px;
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 3.6vw, 2.9rem);
  line-height: 1.06;
  font-weight: 820;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: manual;
}

h2 {
  max-width: 1080px;
  margin-bottom: 22px;
  font-size: clamp(1.68rem, 2.15vw, 2rem);
  line-height: 1.14;
  font-weight: 760;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.28rem;
  line-height: 1.18;
}

.lede {
  max-width: 780px;
  margin-bottom: 16px;
  color: #202823;
  font-size: clamp(1.22rem, 1.85vw, 1.48rem);
  line-height: 1.32;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 710px;
  color: #38413d;
  font-size: 1.08rem;
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 5px;
  font-size: 0.94rem;
  font-weight: 780;
}

.button.primary {
  background: var(--green);
  color: #fff;
}

.button.secondary {
  border: 1px solid var(--ink);
  background: transparent;
}

.button:hover,
.header-cta:hover {
  transform: translateY(-1px);
}

.hero-visual {
  display: grid;
  gap: 18px;
}

.hero-copy,
.hero-visual {
  max-width: 100%;
  min-width: 0;
}

.book-card {
  position: relative;
  min-height: 360px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--green);
  border-radius: 6px;
  background: #fff;
  box-shadow: var(--shadow);
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(42px, 7vw, 76px);
}

.logo-row img:first-child {
  width: min(220px, 52vw);
  height: auto;
}

.logo-row img:last-child {
  width: 48px;
  height: auto;
  aspect-ratio: 1;
}

.logo-row span {
  color: var(--muted);
  font-weight: 850;
}

.book-card p {
  margin-bottom: 16px;
  color: var(--green-dark);
  font-size: clamp(0.88rem, 1vw, 1rem);
  font-weight: 860;
  text-transform: uppercase;
}

.book-card strong {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(1.85rem, 2.7vw, 2.4rem);
  line-height: 1;
  overflow-wrap: break-word;
}

.book-card small {
  display: block;
  max-width: 520px;
  color: #2f3734;
  font-size: clamp(1.22rem, 1.8vw, 1.64rem);
  line-height: 1.32;
}

.buyer-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.buyer-split div {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.buyer-split div:first-child {
  border-top: 3px solid var(--amber);
}

.buyer-split div:last-child {
  border-top: 3px solid var(--blue);
}

.buyer-split span,
.chapter-grid span,
.playbook-stack span,
.monday-grid span {
  display: block;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.buyer-split strong {
  display: block;
  max-width: 250px;
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.18;
}

.diagnostic-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 38px) clamp(20px, 5vw, 84px);
  background: var(--ink);
  color: #fff;
}

.diagnostic-strip p {
  margin: 0;
  max-width: 800px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.16;
  font-weight: 780;
}

.diagnostic-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.diagnostic-strip span {
  display: grid;
  place-items: center;
  flex: 1 1 112px;
  min-height: 58px;
  padding: 12px;
  background: #20231f;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(0.88rem, 1.25vw, 1rem);
  font-weight: 720;
  white-space: nowrap;
}

.section {
  padding: clamp(50px, 6vw, 86px) clamp(20px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

.section p {
  color: #2d3532;
  font-size: clamp(1rem, 1.22vw, 1.12rem);
  line-height: 1.62;
}

.thesis-panel {
  padding: clamp(22px, 3vw, 34px);
  border-left: 5px solid var(--green);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--panel);
  box-shadow: none;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.metrics article {
  min-height: 168px;
  padding: clamp(24px, 3vw, 34px);
  border-right: 1px solid var(--line);
  background: #fff;
}

.metrics article:last-child {
  border-right: 0;
}

.metrics strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.08;
  font-weight: 760;
}

.metrics span {
  display: block;
  max-width: 360px;
  color: #37403b;
  font-size: clamp(0.98rem, 1vw, 1.06rem);
  line-height: 1.45;
}

.book-section,
.authors {
  background: #fff;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(24px, 5vw, 80px);
  align-items: end;
}

.section-head p {
  margin-bottom: 26px;
}

.section-head.compact {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.45fr);
}

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  margin-top: 30px;
  background: var(--line);
  border: 1px solid var(--line);
}

.chapter-grid article,
.monday-grid article,
.playbook-stack article {
  min-height: 216px;
  padding: 22px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
}

.chapter-grid article:nth-child(3n + 1) {
  border-top: 0;
}

.chapter-grid article:nth-child(3n + 2) {
  border-top: 0;
}

.chapter-grid article:nth-child(3n) {
  border-top: 0;
}

.chapter-grid p,
.monday-grid p,
.playbook-stack p,
.playbook-stack li {
  font-size: 1rem;
}

.playbooks {
  background: #f1f4ef;
}

.playbook-stack {
  display: grid;
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.playbook-stack article {
  min-height: 230px;
  background: #fff;
}

.playbook-stack article:nth-child(1) {
  border-left: 0;
}

.playbook-stack article:nth-child(2) {
  border-left: 0;
}

.playbook-stack article:nth-child(3) {
  border-left: 0;
}

.playbook-stack ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: #33403a;
}

.playbook-stack li + li {
  margin-top: 8px;
}

.materials-access {
  max-width: 520px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 18, 18, 0.18);
}

.materials-access span {
  display: block;
  margin-bottom: 6px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.materials-access p {
  margin-bottom: 16px;
  color: #33403a;
  font-size: 1rem;
  line-height: 1.52;
}

.materials-access-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.playbook-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 84px) clamp(64px, 8vw, 120px);
  background: #fff;
}

.playbook-detail {
  min-height: 520px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.playbook-detail:first-child {
  border-top: 6px solid var(--green);
}

.playbook-detail:last-child {
  border-top: 6px solid var(--amber);
}

.playbook-detail span {
  display: block;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.playbook-detail h2 {
  margin-bottom: 14px;
  font-size: clamp(1.85rem, 2.7vw, 2.35rem);
  line-height: 1.03;
}

.playbook-detail h3 {
  margin-bottom: 8px;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.playbook-detail p,
.playbook-detail li {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.playbook-detail-block {
  margin: 28px 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.playbook-detail ul {
  margin: 0;
  padding-left: 20px;
  color: #33403a;
}

.playbook-detail li + li {
  margin-top: 10px;
}

.materials-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(24px, 4vw, 46px);
  padding: 20px 0 0;
  border-top: 1px solid rgba(18, 18, 18, 0.22);
}

.materials-callout span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.materials-callout p {
  margin: 0;
  color: #24302b;
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.monday {
  background: var(--paper-2);
}

.consulting {
  background: #fff;
}

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

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

.monday-grid article {
  min-height: 220px;
  background: #fff;
}

.consulting-grid article {
  min-height: 230px;
  background: var(--paper);
}

.monday-grid span {
  color: var(--green);
  font-size: 1rem;
}

.consulting-grid span {
  display: block;
  margin-bottom: 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.authors {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.logo-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 28px);
  min-height: 280px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.logo-lockup .snowman {
  width: clamp(70px, 16vw, 92px);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
}

.logo-lockup .smartcut {
  width: clamp(164px, 34vw, 240px);
  height: auto;
  flex: 0 1 auto;
}

.logo-lockup span {
  color: var(--muted);
  font-weight: 850;
}

.final-cta {
  padding: clamp(70px, 11vw, 150px) clamp(20px, 5vw, 84px);
  background: var(--ink);
  color: #fff;
}

.final-cta .eyebrow {
  color: #9dd9c0;
}

.final-cta h2,
.final-cta p {
  max-width: 1120px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(1.05rem, 1.45vw, 1.25rem);
}

.final-cta .button.secondary {
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.prompt-kit {
  min-height: 100svh;
}

.prompt-native {
  background: #fff;
}

.prompt-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px clamp(20px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.prompt-header .button {
  min-height: 42px;
}

.workspace-nav {
  gap: clamp(12px, 1.8vw, 26px);
}

.prompt-home,
.kit-page {
  min-height: calc(100svh - 72px);
}

.prompt-hero,
.kit-title {
  padding: clamp(52px, 8vw, 110px) clamp(20px, 5vw, 84px) clamp(34px, 5vw, 64px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.prompt-hero h1,
.kit-title h1 {
  max-width: 1160px;
}

.prompt-hero .lede {
  max-width: 860px;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: clamp(22px, 4vw, 56px) clamp(20px, 5vw, 84px) clamp(70px, 8vw, 120px);
  background: #fff;
}

.kit-card {
  display: grid;
  align-content: start;
  min-height: 330px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.kit-card:nth-child(3n + 1) {
  border-top: 5px solid var(--green);
}

.kit-card:nth-child(3n + 2) {
  border-top: 5px solid var(--blue);
}

.kit-card:nth-child(3n) {
  border-top: 5px solid var(--amber);
}

.kit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(18, 18, 18, 0.1);
}

.kit-card span,
.kit-card small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.kit-card strong {
  display: block;
  margin: 12px 0 10px;
  font-size: clamp(1.15rem, 1.5vw, 1.42rem);
  line-height: 1.12;
}

.kit-card p {
  margin: 16px 0 0;
  color: #37403b;
  font-size: 0.98rem;
}

.kit-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 84px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.kit-nav.bottom {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.kit-content {
  display: grid;
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 74px) clamp(20px, 5vw, 84px);
}

.kit-purpose {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  border-left: 8px solid var(--green);
  border-radius: 8px;
  background: var(--paper);
}

.kit-purpose > span {
  font-size: 1.6rem;
  line-height: 1;
}

.kit-purpose p,
.kit-content > p,
.kit-notes li,
.prompt-meta li {
  color: #2d3532;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
}

.kit-purpose p:last-child,
.prompt-block p:last-child {
  margin-bottom: 0;
}

.kit-notes,
.prompt-meta {
  margin: 0;
  padding-left: 1.15rem;
}

.kit-notes li + li,
.prompt-meta li + li {
  margin-top: 8px;
}

.prompt-block {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(18, 18, 18, 0.06);
}

.prompt-block h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.prompt-code {
  position: relative;
  margin-top: 22px;
  border: 1px solid #252824;
  border-radius: 8px;
  background: #151815;
  color: #f7f5ee;
  overflow: hidden;
}

.prompt-code pre {
  margin: 0;
  max-height: 680px;
  padding: 58px 18px 20px;
  overflow: auto;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.prompt-code code {
  color: inherit;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.copy-button {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 850;
  cursor: pointer;
}

.prompt-gated .prompt-home {
  min-height: calc(100vh - 96px);
  display: grid;
  align-items: center;
}

.toolkit-session-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 7px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 238, 0.96);
  color: var(--muted);
  font-size: 0.82rem;
}

.toolkit-session-bar span {
  color: var(--muted);
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0;
}

.toolkit-session-bar div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toolkit-session-bar a,
.toolkit-session-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.toolkit-session-bar button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.gate-panel {
  width: min(680px, calc(100vw - 32px));
  margin: 48px auto;
  padding: 40px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.gate-panel h1 {
  margin: 8px 0 12px;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  line-height: 1.04;
}

.auth-panel {
  width: min(720px, calc(100vw - 32px));
  margin: clamp(36px, 7vw, 80px) auto;
  padding: clamp(28px, 5vw, 48px);
  border-top: 5px solid var(--green);
  background: #fff;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.08);
}

.auth-panel h1 {
  max-width: 620px;
  margin: 8px 0 12px;
  font-size: clamp(1.95rem, 3vw, 2.75rem);
  line-height: 1.02;
}

.auth-panel .lede {
  max-width: 610px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.auth-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 28px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper);
}

.auth-choice button {
  min-height: 48px;
  border: 0;
  border-right: 1px solid var(--ink);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 860;
  cursor: pointer;
}

.auth-choice button:last-child {
  border-right: 0;
}

.auth-choice button.active {
  background: var(--ink);
  color: #fff;
}

.auth-secondary {
  align-items: center;
  justify-content: space-between;
}

.gate-note {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 3px solid var(--ink);
  background: var(--paper-strong);
  color: var(--muted);
}

.gate-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.gate-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

.gate-form input[type="email"],
.gate-form input[type="password"],
.gate-form input[type="text"] {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 10px 12px;
  font: inherit;
  background: white;
  color: var(--ink);
}

.gate-form input:focus {
  outline: 2px solid rgba(11, 93, 86, 0.28);
  outline-offset: 2px;
}

.gate-checkbox {
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.gate-checkbox input {
  margin-top: 3px;
}

.gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.gate-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.gate-actions.primary-actions a {
  text-decoration: none;
}

.workspace-hero {
  display: block;
  min-height: 360px;
  padding: clamp(48px, 8vw, 108px) clamp(20px, 5vw, 84px) clamp(42px, 6vw, 74px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.workspace-copy h1 {
  max-width: 900px;
  margin-bottom: 18px;
}

.workspace-copy .lede {
  max-width: 760px;
}

.workspace-alert {
  padding: 16px clamp(20px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.workspace-alert p {
  margin: 0;
  color: var(--muted);
  font-weight: 720;
}

.workspace-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  padding: clamp(46px, 7vw, 88px) clamp(20px, 5vw, 84px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.workspace-band h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.45rem);
}

.workspace-list {
  display: grid;
  border-top: 1px solid var(--line);
}

.workspace-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: clamp(16px, 3vw, 30px);
  min-height: 132px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.workspace-item > span {
  color: var(--green-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.workspace-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.workspace-item p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.workspace-item[href]:hover strong {
  color: var(--green-dark);
}

.workspace-item.muted {
  opacity: 0.62;
}

.workspace-diagnostic {
  margin: 0;
  background: var(--ink);
}

.admin-main {
  min-height: calc(100vh - 74px);
  background: var(--paper);
}

.admin-hero {
  padding: clamp(48px, 7vw, 92px) clamp(20px, 5vw, 84px) clamp(32px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
}

.admin-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.15rem, 3.5vw, 3.2rem);
  line-height: 1;
}

.admin-hero .lede {
  max-width: 720px;
}

.admin-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.admin-users {
  padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 84px) 0;
  background: var(--paper);
}

.admin-users-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: end;
}

.admin-users h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.06;
}

.admin-users p {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
}

.admin-invite {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px auto;
  gap: 12px;
  align-items: end;
  max-width: 820px;
}

.admin-invite label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-invite input,
.admin-invite select,
.admin-role {
  min-height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.admin-invite .button {
  min-height: 42px;
}

.admin-help {
  max-width: 820px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.admin-content {
  display: grid;
  grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 84px);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-content h2,
.admin-table-wrap h2 {
  margin-bottom: 12px;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.06;
}

.admin-content p {
  max-width: 620px;
  color: var(--muted);
}

.admin-coverage-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.admin-content-form {
  display: grid;
  gap: 18px;
}

.admin-content-group {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-content-group legend {
  padding: 0 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.admin-content-field {
  display: grid;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 850;
}

.admin-content-field textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
}

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

.admin-content-actions span {
  color: var(--muted);
  font-weight: 750;
}

.admin-table-wrap {
  padding: clamp(20px, 4vw, 44px) clamp(20px, 5vw, 84px) clamp(48px, 7vw, 92px);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: #fff;
}

.admin-table th,
.admin-table td {
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table td strong,
.admin-table td span {
  display: block;
}

.admin-table td span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-danger {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #8b1d1d;
  border-radius: 5px;
  background: transparent;
  color: #8b1d1d;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.admin-danger:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hub-shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 48px auto;
}

.hub-topbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
}

.hub-topbar h1 {
  margin-bottom: 0;
}

.hub-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
}

.hub-account span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hub-account button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

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

.hub-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 42px rgba(18, 18, 18, 0.06);
}

.hub-card span {
  display: block;
  margin-bottom: 14px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hub-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
  line-height: 1;
}

.hub-card p {
  color: var(--muted);
}

.hub-card.muted {
  background: rgba(255, 255, 255, 0.58);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 84px);
  color: var(--muted);
  background: #fff;
  font-size: 0.92rem;
}

@media (max-width: 1180px) {
  .chapter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kit-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 12px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    grid-column: 2;
    grid-row: 1;
  }

  .header-cta {
    grid-column: 3;
    grid-row: 1;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    grid-row: 2;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 2px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.86rem;
  }

  .site-header.menu-open .nav {
    display: grid;
  }

  .nav a {
    display: block;
    padding: 10px 0;
    text-decoration-thickness: 1px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero,
  .two-col,
  .authors,
  .admin-content,
  .admin-users-head,
  .section-head,
  .section-head.compact,
  .workspace-hero,
  .workspace-band,
  .diagnostic-strip {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
  }

  h1 {
    font-size: 2.55rem;
  }

  h2,
  .playbook-detail h2 {
    font-size: 2.05rem;
  }

  .lede {
    font-size: 1.34rem;
  }

  .metrics,
  .monday-grid,
  .consulting-grid {
    grid-template-columns: 1fr;
  }

  .metrics article,
  .monday-grid article,
  .consulting-grid article {
    min-height: auto;
  }

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

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

  .playbook-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px 12px;
    min-height: 64px;
    padding: 12px 16px;
  }

  .brand span {
    max-width: 136px;
    line-height: 1.05;
  }

  .header-cta {
    min-height: 36px;
    padding: 0 13px;
    font-size: 0.88rem;
  }

  .hero,
  .section,
  .final-cta,
  .diagnostic-strip {
    padding-left: 16px;
    padding-right: 16px;
    width: auto;
  }

  .lede,
  .hero-text,
  .section p,
  .final-cta p {
    max-width: 100%;
    font-size: 1.08rem;
  }

  h1 {
    font-size: 2.1rem;
    line-height: 1.06;
  }

  h2 {
    font-size: 1.9rem;
  }

  .playbook-detail h2 {
    font-size: 1.85rem;
  }

  .book-card {
    min-height: 360px;
  }

  .book-card strong {
    font-size: clamp(2rem, 8vw, 2.3rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .buyer-split,
  .diagnostic-strip div,
  .hub-grid,
  .consulting-grid,
  .chapter-grid {
    grid-template-columns: 1fr;
  }

  .hub-topbar,
  .hub-account {
    align-items: stretch;
    flex-direction: column;
  }

  .diagnostic-strip span {
    min-height: 54px;
  }

  .chapter-grid article,
  .playbook-stack article {
    min-height: auto;
  }

  .logo-lockup {
    flex-direction: column;
  }

  .prompt-header,
  .prompt-hero,
  .workspace-hero,
  .workspace-band,
  .workspace-alert,
  .kit-title,
  .kit-grid,
  .kit-nav,
  .kit-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .prompt-header .button {
    display: none;
  }

  .workspace-nav {
    gap: 12px;
    font-size: 0.86rem;
  }

  .workspace-hero {
    min-height: auto;
    padding-top: 44px;
  }

  .workspace-copy .hero-actions {
    align-items: stretch;
  }

  .workspace-item {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: auto;
  }

  .materials-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .toolkit-session-bar {
    gap: 10px;
    padding: 7px 16px;
  }

  .toolkit-session-bar div {
    gap: 8px;
  }

  .toolkit-session-bar a,
  .toolkit-session-bar button {
    min-height: 32px;
    padding: 0 10px;
  }

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

  .playbook-detail-grid {
    padding-left: 16px;
    padding-right: 16px;
  }

  .playbook-detail {
    min-height: auto;
    padding: 22px 18px;
  }

  .kit-card {
    min-height: auto;
  }

  .kit-nav {
    justify-content: stretch;
  }

  .kit-nav .button {
    width: auto;
    flex: 1 1 130px;
  }

  .kit-purpose {
    grid-template-columns: 1fr;
  }

  .prompt-block {
    padding: 20px 16px;
  }

  .gate-panel {
    margin: 24px auto;
    padding: 24px 20px;
  }

  .auth-panel {
    margin: 24px auto;
    padding: 28px 20px;
  }

  .auth-choice {
    grid-template-columns: 1fr;
  }

  .auth-choice button {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .auth-choice button:last-child {
    border-bottom: 0;
  }

  .admin-invite {
    grid-template-columns: 1fr;
  }

  .prompt-code pre {
    max-height: 540px;
    padding: 56px 14px 18px;
    font-size: 0.82rem;
  }
}
