:root {
  --paper: #f4f5f2;
  --surface: #fafbf9;
  --ink: #17211c;
  --marker: #b91c1c;
  --marker-press: #991b1b;
  --chalk: #e8b931;
  --line: #d8ddd6;
  --yard: #5c675f;
  --defense: #1d4e89;
  --quiet: #3e4a44;
  --card: #ffffff;
  --focus: #1d4e89;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --content: 1120px;
  --read: 72ch;
  --radius-sm: 3px;
  --radius-md: 4px;
  --radius-lg: 6px;
  --shadow-sm: 0 1px 2px rgb(23 33 28 / 5%);
  --shadow-md: 0 6px 18px rgb(23 33 28 / 7%);
  --shadow-dialog: 0 18px 44px rgb(23 33 28 / 22%);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: only light;
  background: var(--paper);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

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

button,
summary,
.fp-btn { cursor: pointer; }

:focus { outline: none; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3 { scroll-margin-top: 16px; text-wrap: balance; }

a, button, summary, input, label, select { touch-action: manipulation; }

.fp-skip {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 30;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--card);
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-md);
  transform: translateY(-160%);
}

.fp-skip:focus { transform: none; }

.fp-wrap {
  width: min(var(--content), calc(100% - 32px));
  margin-inline: auto;
}

/* Header & Navigation */
.fp-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.fp-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.fp-logo {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.fp-call {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border-radius: var(--radius-sm);
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  flex-shrink: 0;
}

.fp-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.fp-nav-links > a,
.fp-nav-drop > summary,
.fp-menu a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.fp-nav-links > a:hover,
.fp-nav-drop > summary:hover {
  background: rgb(23 33 28 / 5%);
}

.fp-nav-links > a[aria-current="page"],
.fp-nav-drop > summary[aria-current="true"] {
  box-shadow: inset 0 -2px 0 var(--ink);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.fp-nav-drop {
  position: relative;
}

.fp-nav-drop > summary {
  list-style: none;
}

.fp-nav-drop > summary::-webkit-details-marker {
  display: none;
}

.fp-caret {
  font-size: 11px;
  color: var(--yard);
  transition: transform 0.14s ease;
}

.fp-nav-drop[open] .fp-caret {
  transform: rotate(180deg);
}

.fp-nav-drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: 260px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.fp-nav-drop-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background-color 0.12s ease;
}

.fp-nav-drop-panel a:hover {
  background: var(--paper);
}

.fp-nav-drop-panel strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
}

.fp-nav-drop-panel span {
  font-size: 13px;
  color: var(--quiet);
  line-height: 1.3;
}

.fp-nav-end {
  display: none;
  align-items: center;
  gap: 8px;
}

.fp-menu { display: none; }

.fp-menu { position: relative; }

.fp-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: 228px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.fp-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.fp-menu-panel a:last-child {
  border-bottom: 0;
}

.fp-menu-panel a:hover {
  background: var(--paper);
}

/* Page Head */
.fp-page-head {
  padding: 18px 0 12px;
}

.fp-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--yard);
}

.fp-crumb a {
  text-decoration: none;
  font-weight: 600;
}

.fp-crumb a:hover {
  color: var(--marker);
  text-decoration: underline;
}

.fp-page-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.fp-page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.05;
}

.fp-lede {
  max-width: var(--read);
  margin: 6px 0 0;
  color: var(--quiet);
}

.fp-cap-strip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}

/* Tactical Board Container */
.fp-board {
  width: min(var(--content), calc(100% - 32px));
  max-width: none;
  margin-inline: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.fp-toolbar,
.fp-meta,
.fp-dock,
.fp-inspector,
.fp-inspector-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fp-toolbar,
.fp-meta,
.fp-inspector-bar {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.fp-toolbar {
  flex-wrap: nowrap;
  background: var(--surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  gap: 8px;
}

.fp-spacer { margin-left: auto; }

.fp-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fp-chip,
.fp-tool,
.fp-btn,
.fp-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.14s ease, border-color 0.14s ease, color 0.14s ease, box-shadow 0.14s ease, transform 0.08s ease;
}

.fp-btn:active:not(:disabled),
.fp-chip:active:not(:disabled),
.fp-tool:active:not(:disabled),
.fp-mark:active:not(:disabled) {
  transform: translateY(1px);
}

.fp-tool {
  width: 100%;
  justify-content: flex-start;
}

.fp-tool[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--card);
}

.fp-btn-primary {
  background: var(--marker);
  border-color: var(--marker);
  color: #fff;
  font-weight: 600;
}

.fp-btn-primary:hover {
  background: var(--marker-press);
  border-color: var(--marker-press);
}

.fp-chip:hover:not(:disabled),
.fp-tool:hover:not(:disabled),
.fp-btn:not(.fp-btn-primary):hover:not(:disabled),
.fp-menu summary:hover {
  border-color: var(--ink);
}

.fp-btn-quiet { background: transparent; }

.fp-seg { display: inline-flex; }

.fp-seg .fp-chip {
  margin-left: -1px;
  padding-inline: 10px;
  border-radius: 0;
}

.fp-seg .fp-chip:first-child {
  margin-left: 0;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.fp-seg .fp-chip:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

.fp-seg .fp-chip[aria-pressed="true"] {
  position: relative;
  z-index: 1;
}

.fp-stage {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr) 224px;
  align-items: start;
}

.fp-rail {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  align-content: start;
  gap: 6px;
  padding: 10px 8px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.fp-field-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  padding: 12px;
  background: var(--card);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.fp-touch-bar { display: none; }

.fp-field-wrap svg,
.fp-field-wrap text {
  user-select: none;
  -webkit-user-select: none;
}

.fp-field {
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.fp-stage .fp-field,
.fp-board > .fp-field-wrap .fp-field {
  --fp-h: clamp(520px, 80vh, 800px);
  width: min(100%, calc(var(--fp-h) * var(--ar, 1)));
  height: auto;
}

.fp-inspector {
  flex-direction: column;
  align-items: stretch;
  align-self: stretch;
  gap: 12px;
  padding: 14px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  color: var(--quiet);
}

.fp-inspector-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yard);
}

.fp-inspector-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  line-height: 1.45;
}

.fp-inspector-empty p {
  margin: 0;
}

.fp-kbd-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 10px;
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 12.5px;
}

.fp-kbd-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fp-kbd-list kbd {
  padding: 1px 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
}

.fp-inspector-bar,
.fp-dock,
.fp-more { display: none; }

.fp-meta {
  align-items: end;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  background: var(--surface);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

.fp-label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
}

.fp-label input,
.fp-label textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  text-decoration: none;
  transition: border-color 0.14s ease;
}

.fp-label textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.45;
}

.fp-label input:focus,
.fp-label textarea:focus {
  border-color: var(--focus);
}

.fp-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fp-fb-done {
  margin-top: 16px;
}

.fp-fb-done p {
  margin: 0;
}

.fp-pop-anchor { position: relative; display: flex; }

.fp-act { min-width: 76px; }

.fp-pop {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  width: 260px;
  margin: 0;
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}

.fp-pop p { margin: 0; }

.fp-pop-url {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.fp-share { width: min(300px, calc(100vw - 24px)); }

.fp-share-title { font-weight: 700; }

.fp-share-note {
  margin-top: 6px;
  color: var(--quiet);
  font-size: 13px;
  font-weight: 500;
}

.fp-share-url {
  width: 100%;
  margin-top: 8px;
  min-height: 52px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.45;
  resize: none;
  overflow: hidden;
  word-break: break-all;
}

.fp-share-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.fp-share-actions .fp-btn { width: 100%; }

.fp-dock .fp-pop {
  top: auto;
  bottom: calc(100% + 6px);
}

.fp-status {
  width: 100%;
  margin: 0;
  padding: 4px 10px 10px;
  background: var(--surface);
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  color: var(--quiet);
  font-size: 13.5px;
  font-weight: 600;
}

.fp-status p { margin: 0; }

.fp-status-png { display: none; }

.fp-board:has(#export-done:target) .fp-status-saved { display: none; }

.fp-board:has(#export-done:target) .fp-status-png { display: block; }

/* Sections & Cards */
.fp-section {
  padding: 44px 0;
}

.fp-section h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.12;
}

.fp-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 16px;
}

.fp-section-head h2 {
  margin: 0;
}

.fp-section-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--marker);
  text-decoration: none;
}

.fp-section-link:hover {
  text-decoration: underline;
}

.fp-steps,
.fp-starts,
.fp-examples,
.fp-plans {
  display: grid;
  gap: 16px;
}

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

.fp-step,
.fp-start,
.fp-play,
.fp-plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

.fp-step {
  border-top: 3px solid var(--ink);
}

.fp-step-title,
.fp-play-name,
.fp-plan-name {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.fp-play-name,
.fp-plan-name { margin: 0; font-size: 24px; }

.fp-step p,
.fp-plan p,
.fp-section p { margin: 8px 0 0; }

.fp-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.fp-start {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.fp-start:hover {
  border-color: var(--yard);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.fp-thumbs {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  align-content: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fp-thumb {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border-radius: 2px;
}

.fp-start-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--marker);
}

.fp-start strong,
.fp-play h3,
.fp-plan h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.fp-play h3,
.fp-plan h3 { margin: 0; }

.fp-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 2-Column Editorial / Playbook Band */
.fp-editorial-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: stretch;
}

.fp-editorial-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-editorial-card h2 {
  margin: 0;
}

.fp-editorial-card p {
  margin: 0;
  color: var(--quiet);
}

.fp-editorial-accent {
  border-top: 3px solid var(--chalk);
}

.fp-route-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
}

.fp-route-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
}

.fp-editorial-cta {
  margin-top: auto;
  padding-top: 6px;
}

/* Free vs Season Pass Comparison */
.fp-versus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.fp-versus-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-versus-pro {
  border-color: var(--ink);
  box-shadow: inset 0 4px 0 var(--chalk), var(--shadow-sm);
}

.fp-versus-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.fp-versus-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.fp-versus-price {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.fp-versus-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--quiet);
  font-size: 15px;
}

.fp-versus-list li,
.fp-plan-list li {
  position: relative;
  padding-left: 20px;
}

.fp-versus-list li::before,
.fp-plan-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--ink);
}

.fp-versus-foot {
  margin-top: auto;
  padding-top: 6px;
}

/* Before/After Examples */
.fp-examples-lede {
  margin: 6px 0 0;
  color: var(--quiet);
  max-width: var(--read);
}

.fp-examples {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.fp-pair {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fp-pair-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fp-pair-head strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
}

.fp-pair-meta {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--yard);
}

.fp-pair-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.fp-sketch {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fp-sketch-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--yard);
}

.fp-sketch-tag-after {
  color: var(--ink);
}

.fp-sketch svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

.fp-pair-arrow {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 16px;
  color: var(--marker);
  padding-top: 16px;
}

.fp-pair-note,
.fp-caption {
  margin: 0;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.45;
}

.fp-limit {
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--yard);
  border-radius: var(--radius-md);
  color: var(--quiet);
  font-size: 14px;
}

/* FAQ Accordion */
.fp-faq { max-width: var(--read); }

.fp-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.fp-faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 12px 16px;
  list-style: none;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
}

.fp-faq-item summary h3 {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.fp-faq-item summary::-webkit-details-marker { display: none; }

.fp-faq-item summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 600;
  color: var(--yard);
  flex-shrink: 0;
}

.fp-faq-item[open] summary::after {
  content: "−";
  color: var(--ink);
}

.fp-faq-item p {
  margin: 0;
  padding: 0 16px 14px;
  color: var(--quiet);
  line-height: 1.55;
}

.fp-faq h3 {
  margin: 16px 0 0;
  font-size: 18px;
}

.fp-privacy {
  margin: 14px 0 0;
  font-weight: 600;
  color: var(--quiet);
}

/* Footer */
.fp-footer {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) 2fr;
  gap: 28px 36px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.fp-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fp-footer-note {
  margin: 0;
  max-width: 34ch;
  color: var(--quiet);
  font-size: 14px;
  line-height: 1.45;
}

.fp-footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 24px;
}

.fp-footer-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fp-footer-title {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--yard);
}

.fp-footer-col a,
.fp-footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  text-align: left;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}

.fp-footer-col a:hover,
.fp-footer-link:hover {
  color: var(--marker);
  text-decoration: underline;
}

/* Library Filters */
.fp-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 20px;
}

.fp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.fp-filter-count {
  margin: 0;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--yard);
  font-variant-numeric: tabular-nums;
}

.fp-filter-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 20px;
  margin-bottom: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.fp-filter-empty[hidden] { display: none; }

.fp-filter-empty p {
  margin: 0;
  font-weight: 600;
}

.fp-chip[aria-pressed="true"],
.fp-filters button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.fp-hint {
  margin: 0;
  padding: 0 8px 8px;
  color: var(--quiet);
  font-size: 14px;
}

.fp-chip kbd,
.fp-btn kbd,
.fp-tool kbd {
  margin-left: 4px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
}

.fp-marks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

.fp-mark {
  display: grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.fp-mark:hover:not(:disabled) {
  border-color: var(--ink);
}

.fp-mark[aria-pressed="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.fp-mark svg { width: 36px; height: 20px; }

.fp-lines,
.fp-linegroup { width: 100%; }

.fp-lines { display: flex; flex-direction: column; gap: 10px; }

.fp-linebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 8px 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.fp-linebar .fp-linegroup { display: flex; align-items: center; gap: 8px; width: auto; }
.fp-linebar .fp-marks { display: flex; width: auto; gap: 4px; }
.fp-linebar .fp-mark { min-width: 52px; min-height: 40px; }
.fp-linetitle { color: var(--quiet); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.fp-linemode {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-linemode-on { border-color: var(--focus); background: #fff; color: var(--focus); }

.fp-divider { align-self: stretch; width: 1px; margin: 6px 4px; background: var(--line); }

.fp-hint-board {
  padding: 8px 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--quiet);
  text-align: center;
}

.fp-toolbar .fp-chip,
.fp-toolbar .fp-btn,
.fp-toolbar .fp-seg .fp-chip {
  min-height: 36px;
  min-width: 36px;
  padding-inline: 9px;
  font-size: 14px;
  white-space: nowrap;
}
.fp-toolbar .fp-icon-seg .fp-chip {
  min-width: 36px;
  width: 36px;
  padding: 0;
}
.fp-toolbar .fp-act { min-width: 0; }
.fp-toolbar .fp-actions { flex-wrap: nowrap; gap: 6px; }
.fp-actions .fp-export-more div { right: 0; left: auto; }

.fp-split {
  display: inline-flex;
  align-items: stretch;
}
.fp-split .fp-split-main {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.fp-split .fp-split-caret {
  min-width: 28px;
  width: 28px;
  padding: 0;
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-color: rgb(255 255 255 / 28%);
}
.fp-split .fp-split-caret:hover {
  border-left-color: rgb(255 255 255 / 45%);
}

.fp-tool-primary { background: var(--marker); border-color: var(--marker); color: #fff; font-weight: 600; }

@media (pointer: coarse) {
  .fp-piece { touch-action: pan-x; min-height: 44px; min-width: 44px; }
  .fp-toolbar .fp-chip,
  .fp-toolbar .fp-btn,
  .fp-toolbar .fp-seg .fp-chip { min-height: 44px; min-width: 44px; }
}

.fp-rail-title {
  margin: 4px 0 0;
  color: var(--quiet);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-pieces {
  display: grid;
  grid-template-columns: repeat(3, 40px);
  justify-content: center;
  gap: 5px;
}

.fp-piece {
  display: grid;
  place-items: center;
  min-height: 40px;
  min-width: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  cursor: grab;
  touch-action: none;
  transition: border-color 0.12s ease, transform 0.08s ease;
}

.fp-piece svg { width: 28px; height: 28px; pointer-events: none; }
.fp-piece:hover:not(:disabled) { border-color: var(--ink); }
.fp-piece:disabled { cursor: default; opacity: 0.5; }

@media (pointer: coarse) {
  .fp-piece { touch-action: pan-x; min-height: 44px; min-width: 44px; }
  .fp-touch-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fp-touch-bar::-webkit-scrollbar { display: none; }
  .fp-touch-bar .fp-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 4px 10px;
    font-size: 13px;
  }
  .fp-touch-bar .fp-chip[aria-pressed="true"] {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
  }
  .fp-touch-tip {
    margin-left: auto;
    color: var(--quiet);
    font-size: 12px;
    white-space: nowrap;
  }
  .fp-field-wrap { touch-action: pan-y; }
  .fp-field-wrap.fp-field-draw,
  .fp-field-wrap.fp-field-draw svg { touch-action: none; }
  .fp-field-wrap.fp-field-draw { box-shadow: inset 0 0 0 2px var(--marker); }
}

.fp-ghost {
  position: fixed;
  z-index: 20;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  pointer-events: none;
  opacity: 0.85;
}

.fp-ghost svg { width: 100%; height: 100%; }

.fp-field-wrap svg { cursor: crosshair; }

.fp-export-more { position: relative; }

.fp-export-more div {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 12;
  min-width: 224px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.fp-export-more .fp-btn {
  justify-content: space-between;
  width: 100%;
  border: 0;
}

.fp-dock-png {
  position: relative;
  display: flex;
  gap: 4px;
  min-width: 0;
}

.fp-dock-png .fp-tool { width: auto; flex: 1; }

.fp-dock-png .fp-dock-caret {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  padding: 0;
}

.fp-dock-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 12;
  min-width: 230px;
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.fp-dock-menu .fp-btn {
  justify-content: space-between;
  width: 100%;
  border: 0;
}

.fp-inspector-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  color: var(--ink);
}

.fp-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-choice .fp-chip { padding-inline: 8px; flex: 1; min-width: 0; }

.fp-routes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fp-routes .fp-chip {
  min-height: 38px;
  padding-inline: 8px;
  font-size: 13.5px;
}

.fp-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.fp-swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 6px;
  background: var(--marker);
  border: 1px solid var(--ink);
  border-radius: 2px;
  vertical-align: -3px;
}

.fp-drawer,
.fp-drawer-head { display: none; }

.fp-inspector-form > .fp-btn { width: 100%; }

.fp-inspector-bar .fp-inspector-form { flex: 1; min-width: 0; }

/* Play Library Cards */
.fp-plays {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.fp-play {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.fp-play:hover {
  border-color: var(--yard);
  box-shadow: var(--shadow-md);
}

.fp-play-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.fp-play-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-play-title-row .fp-play-name {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-play-tags {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.fp-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-transform: uppercase;
  white-space: nowrap;
}

.fp-play-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 13px;
  line-height: 1.3;
  color: var(--quiet);
}

.fp-play-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.fp-play-diagram {
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.fp-play .fp-field {
  display: block;
  width: 100%;
  aspect-ratio: 320 / 420;
  max-height: 380px;
}

.fp-play-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 16px;
}

.fp-play-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--quiet);
}

.fp-play-read {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 8px 10px;
  background: var(--paper);
  border-left: 3px solid var(--chalk);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.fp-play-read-text {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}

.fp-play-how {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--quiet);
}

.fp-play-tip {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.fp-play-tip p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--quiet);
}

.fp-play-actions {
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fp-play-actions .fp-btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  font-size: 14px;
  white-space: nowrap;
}

.fp-prose {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fp-prose-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-prose h2 { font-size: 26px; margin: 0; }
.fp-prose-card p { margin: 0; color: var(--quiet); }
.fp-prose-card .fp-btn { margin-top: auto; align-self: flex-start; }

.fp-cross-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 18px;
  margin-bottom: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 15px;
}

.fp-cross-links span {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--yard);
}

.fp-cross-links a {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.fp-cross-links a:hover {
  color: var(--marker);
  text-decoration: underline;
}

/* Pricing */
.fp-plans { grid-template-columns: repeat(4, 1fr); align-items: stretch; }

.fp-plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fp-plan .fp-price {
  margin: 0;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fp-plan .fp-price span {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  color: var(--quiet);
}

.fp-plan-season {
  border-color: var(--ink);
  box-shadow: inset 0 4px 0 var(--chalk), var(--shadow-md);
}

.fp-badge {
  align-self: flex-start;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}

.fp-plan-list {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  color: var(--quiet);
}

.fp-plan .fp-btn,
.fp-plan .fp-quiet-line { margin-top: auto; }

.fp-quiet-line { color: var(--quiet); font-weight: 600; }

.fp-compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

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

.fp-compare thead th {
  background: var(--surface);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
}

.fp-th-sub {
  display: block;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--quiet);
  line-height: 1.3;
}

.fp-compare tbody tr:last-child td {
  border-bottom: 0;
}

.fp-yes {
  color: var(--ink);
  font-weight: 600;
}

.fp-no {
  color: var(--yard);
}

.fp-repeat { margin-top: 24px; }

/* Document Pages (About, Privacy, Terms) */
.fp-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  padding: 16px 0 44px;
}

.fp-doc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-doc-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
}

.fp-doc-card p {
  margin: 0;
  color: var(--quiet);
  line-height: 1.55;
}

.fp-doc-card .fp-btn,
.fp-doc-card .fp-section-link {
  margin-top: auto;
  align-self: flex-start;
}

.fp-scrim[hidden] { display: none !important; }

.fp-plan-current {
  margin-top: auto;
  color: var(--quiet);
  font-weight: 600;
}

.fp-btn[aria-busy="true"] { opacity: 0.72; }

.fp-scrim,
.fp-dialog { overscroll-behavior: contain; }

.fp-scrim {
  position: fixed;
  z-index: 40;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(23 33 28 / 48%);
}

.fp-dialog {
  position: relative;
  width: min(420px, 100%);
  max-height: min(640px, calc(100vh - 32px));
  overflow: auto;
  padding: 24px 22px 20px;
  background: var(--card);
  border: 1px solid var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dialog);
}

.fp-dialog-x {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.fp-dialog-x:hover { background: var(--paper); }

.fp-auth h2,
.fp-dialog h2 {
  margin: 0 36px 0 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.fp-auth-lead {
  margin: 8px 0 0;
  color: var(--quiet);
}

.fp-auth-tabs {
  display: flex;
  width: 100%;
  margin-top: 16px;
}

.fp-auth-tabs .fp-chip { flex: 1; }

.fp-auth .fp-google { margin-top: 14px; }

.fp-auth .fp-or {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fp-auth .fp-or::before,
.fp-auth .fp-or::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.fp-captcha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.fp-captcha-img {
  display: block;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.fp-captcha-img img {
  display: block;
  width: auto;
  height: 42px;
}

.fp-auth-hint {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 500;
}

.fp-auth-error {
  margin: 0;
  color: var(--marker);
  font-weight: 600;
}

.fp-dialog form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.fp-dialog form .fp-btn,
.fp-dialog .fp-google { width: 100%; }

.fp-dialog .fp-or {
  margin: 12px 0 0;
  text-align: center;
}

.fp-dialog h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
}

.fp-offer {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.fp-offer div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}

.fp-offer .fp-btn { min-width: 160px; }

/* Responsive: Tablet (768px - 1099px) */
@media (max-width: 1099px) {
  .fp-stage { grid-template-columns: 152px minmax(0, 1fr); }
  .fp-inspector { grid-column: 2; border-left: 0; border-top: 1px solid var(--line); }
  .fp-stage .fp-field,
  .fp-board > .fp-field-wrap .fp-field { --fp-h: clamp(420px, 70vh, 640px); }

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

  .fp-prose,
  .fp-steps,
  .fp-starts,
  .fp-editorial-grid { grid-template-columns: 1fr 1fr; }

  .fp-plans { grid-template-columns: 1fr 1fr; }
  .fp-plan-season { order: -1; grid-column: 1 / -1; }

  .fp-toolbar { flex-wrap: wrap; }
  .fp-page-head h1 { font-size: 36px; }
  .fp-footer { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .fp-examples { grid-template-columns: 1fr; }
}

/* Responsive: Mobile (<= 767px) */
@media (max-width: 767px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip;
  }

  input,
  textarea,
  select {
    font-size: 16px;
  }

  .fp-scrim {
    padding: 12px;
  }
  .fp-dialog {
    width: min(360px, calc(100vw - 24px));
    max-width: 100%;
    max-height: calc(100dvh - 32px);
    padding: 16px 14px 14px;
  }
  .fp-dialog h1,
  .fp-dialog h2 {
    font-size: 20px;
  }
  .fp-dialog .fp-auth-lead {
    font-size: 14px;
    margin: 4px 0 10px;
  }

  .fp-wrap { width: min(var(--content), calc(100% - 24px)); }

  .fp-nav-links { display: none; }

  .fp-nav-end { display: flex; margin-left: auto; }

  .fp-menu { display: block; }

  .fp-menu summary {
    list-style: none;
    min-width: 44px;
  }

  .fp-menu summary::-webkit-details-marker { display: none; }

  .fp-nav {
    position: sticky;
    top: 0;
    z-index: 25;
    width: 100%;
    max-width: none;
    min-height: 52px;
    padding: 0 12px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .fp-nav .fp-brand { font-size: 19px; }
  .fp-nav .fp-logo { width: 28px; height: 28px; }

  .fp-page-head { padding-top: 8px; padding-bottom: 6px; }
  .fp-page-head h1 { font-size: 24px; }
  .fp-lede { font-size: 14px; }
  .fp-cap-strip { display: none; }

  .fp-toolbar .fp-actions,
  .fp-toolbar .fp-spacer { display: none; }
  .fp-toolbar { flex-direction: column; align-items: stretch; gap: 6px; }
  .fp-toolbar .fp-seg {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fp-toolbar .fp-seg::-webkit-scrollbar { display: none; }
  .fp-toolbar .fp-seg .fp-chip { flex: 1 0 auto; min-height: 44px; }

  .fp-linebar {
    flex-wrap: nowrap;
    gap: 10px;
    padding: 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fp-linebar::-webkit-scrollbar { display: none; }
  .fp-linebar > * { flex: none; }
  .fp-linetitle { display: none; }
  .fp-linegroup { padding-right: 10px; border-right: 1px solid var(--line); }
  .fp-linegroup:last-child { border-right: 0; }
  .fp-hint-board { padding: 6px 8px; font-size: 13px; }
  .fp-linebar .fp-mark { min-width: 44px; }

  .fp-board { width: calc(100% - 24px); max-width: calc(100% - 24px); overflow-x: clip; }
  .fp-stage { display: block; width: 100%; max-width: 100%; min-width: 0; min-height: 0; }
  .fp-toolbar,
  .fp-toolbar .fp-seg,
  .fp-linebar,
  .fp-rail,
  .fp-touch-bar,
  .fp-field-wrap,
  .fp-dock { max-width: 100%; min-width: 0; }

  .fp-inspector,
  .fp-inspector-bar { display: none; }

  .fp-rail {
    flex-direction: row;
    align-items: center;
    grid-row: auto;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    scrollbar-width: none;
    padding: 6px 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .fp-rail::-webkit-scrollbar { display: none; }

  .fp-rail .fp-rail-title { display: none; }
  .fp-rail .fp-pieces { display: flex; flex: none; gap: 6px; }
  .fp-rail .fp-piece { flex: none; touch-action: pan-x; min-width: 44px; min-height: 44px; }

  .fp-touch-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .fp-touch-bar::-webkit-scrollbar { display: none; }
  .fp-touch-bar .fp-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 4px 10px;
    font-size: 13px;
  }
  .fp-touch-tip {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--quiet);
    font-size: 12px;
    white-space: nowrap;
  }

  .fp-field-wrap {
    padding: 8px;
    touch-action: pan-y;
  }
  .fp-field-wrap.fp-field-draw,
  .fp-field-wrap.fp-field-draw svg {
    touch-action: none;
  }
  .fp-field-wrap.fp-field-draw {
    box-shadow: inset 0 0 0 2px var(--marker);
  }
  .fp-stage .fp-field,
  .fp-board > .fp-field-wrap .fp-field {
    height: auto;
    min-height: 0;
    max-height: none;
  }
  .fp-play .fp-field { width: 100%; max-height: none; }

  .fp-meta { flex-direction: column; align-items: stretch; }
  .fp-meta .fp-label:last-child { display: none; }

  .fp-state-selected .fp-drawer {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 18;
    max-height: 30vh;
    overflow: auto;
    padding: 8px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--card);
    border-top: 1px solid var(--ink);
    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 28px rgb(23 33 28 / 18%);
    overscroll-behavior: contain;
  }

  .fp-state-selected .fp-drawer::before {
    content: "";
    display: block;
    width: 32px;
    height: 3px;
    margin: 0 auto 6px;
    border-radius: 999px;
    background: var(--line);
  }

  .fp-state-selected .fp-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  .fp-drawer-label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--quiet);
  }
  .fp-drawer-label input {
    width: 64px;
    height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--card);
    color: var(--ink);
    font-size: 16px;
  }
  .fp-drawer-label-wide { flex: 1; }
  .fp-drawer-label-wide input { width: 100%; min-width: 0; }

  .fp-drawer-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
  }

  .fp-drawer-routes {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0;
  }
  .fp-drawer-routes::-webkit-scrollbar { display: none; }
  .fp-drawer-routes .fp-chip {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 4px 12px;
    font-size: 13px;
  }

  .fp-dock {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .fp-dock .fp-tool,
  .fp-dock summary {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
    min-height: 46px;
    padding: 6px 2px;
    font-size: 12px;
    white-space: nowrap;
  }

  .fp-dock .fp-dock-png {
    display: flex;
    width: 100%;
    min-width: 0;
  }
  .fp-dock .fp-dock-caret {
    flex: 0 0 24px;
    width: 24px;
    min-width: 24px;
    padding: 0;
  }

  .fp-dock .fp-share {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    top: auto;
    width: auto;
    z-index: 18;
  }

  .fp-more { display: block; position: relative; }

  .fp-more div {
    position: absolute;
    right: 0;
    bottom: calc(100% + 8px);
    z-index: 12;
    display: flex;
    flex-direction: column;
    min-width: 180px;
    padding: 4px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
  }

  .fp-more .fp-btn { justify-content: flex-start; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .fp-more .fp-btn:last-child { border-bottom: 0; }

  .fp-steps,
  .fp-starts,
  .fp-examples,
  .fp-plays,
  .fp-prose,
  .fp-plans,
  .fp-editorial-grid,
  .fp-versus,
  .fp-footer-cols,
  .fp-pair-grid { grid-template-columns: 1fr; }

  .fp-pair-arrow {
    padding-top: 0;
    justify-self: center;
    transform: rotate(90deg);
  }

  .fp-plan-season { grid-column: auto; }

  .fp-offer div { flex-direction: column; align-items: stretch; }
  .fp-offer .fp-btn { width: 100%; }

  .fp-compare thead { display: none; }

  .fp-compare,
  .fp-compare tbody,
  .fp-compare tr,
  .fp-compare td { display: block; width: 100%; }

  .fp-compare tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .fp-compare td { border: 0; padding: 2px 0; }
  .fp-compare td:first-child { font-weight: 700; }
  .fp-compare td[data-label]::before {
    content: attr(data-label);
    display: block;
    color: var(--quiet);
    font-size: 12px;
    font-weight: 700;
  }

  .fp-section { padding: 28px 0; }
  .fp-section h2 { font-size: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

a.fp-chip { color: inherit; text-decoration: none; }

/* Workspace (/app): My plays & Playbooks */
.fp-ws-section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.fp-ws-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.fp-ws-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fp-ws-title-group h2 {
  margin: 0;
}

.fp-ws-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fp-ws-quota {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fp-ws-quota-pro {
  border-color: var(--chalk);
  background: #fdf6dc;
  color: var(--ink);
}

.fp-ws-empty {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-ws-empty h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
}

.fp-ws-empty p {
  margin: 6px 0 14px;
  color: var(--quiet);
  max-width: 60ch;
}

.fp-ws-empty-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-ws-plays {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.fp-ws-card-active {
  border-color: var(--marker);
  box-shadow: 0 0 0 1px var(--marker), var(--shadow-sm);
}

.fp-ws-tag-editing {
  background: #fef2f2;
  border-color: var(--marker);
  color: var(--marker);
}

.fp-ws-thumb {
  display: block;
  width: 100%;
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  cursor: pointer;
}

.fp-ws-thumb svg {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 260;
  max-height: 220px;
  margin-inline: auto;
}

.fp-ws-note {
  margin: 0;
  padding: 10px 14px 0;
  color: var(--quiet);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fp-ws-card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface);
}

.fp-ws-card-actions .fp-btn {
  min-height: 38px;
  padding: 0 10px;
  font-size: 13px;
}

.fp-ws-card-actions .fp-btn-primary {
  flex: 1 1 auto;
}

.fp-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.fp-btn-danger:not(:disabled):hover {
  border-color: var(--marker);
  color: var(--marker);
}

.fp-ws-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.fp-ws-book-list {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fp-ws-book-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: transparent;
  text-align: left;
  transition: background-color 0.12s ease;
}

.fp-ws-book-item:last-child {
  border-bottom: 0;
}

.fp-ws-book-item:hover {
  background: var(--surface);
}

.fp-ws-book-item.is-active {
  border-left-color: var(--marker);
  background: var(--surface);
}

.fp-ws-book-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fp-ws-book-item-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-ws-book-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--quiet);
  font-size: 13px;
}

.fp-ws-shared-dot {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--defense);
  font-weight: 600;
}

.fp-ws-shared-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--defense);
}

.fp-ws-book-detail {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fp-ws-book-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.fp-ws-book-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.fp-ws-book-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fp-ws-book-title-row h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}

.fp-ws-count-note {
  color: var(--quiet);
  font-size: 13px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.fp-ws-share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fp-ws-share-label {
  color: var(--defense);
  font-size: 13px;
  font-weight: 600;
}

.fp-ws-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.fp-ws-book-actions .fp-btn {
  min-height: 38px;
  padding: 0 12px;
  font-size: 14px;
}

.fp-ws-btn-sm {
  min-height: 32px !important;
  min-width: 32px !important;
  padding: 0 9px !important;
  font-size: 13px !important;
}

.fp-ws-roster-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--quiet);
}

.fp-ws-roster-empty p {
  margin: 0 0 12px;
}

.fp-ws-roster-empty .fp-ws-empty-btns {
  justify-content: center;
}

.fp-ws-roster {
  display: flex;
  flex-direction: column;
}

.fp-ws-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  transition: background-color 0.12s ease;
}

.fp-ws-roster-row:last-child {
  border-bottom: 0;
}

.fp-ws-roster-row.is-dragging {
  opacity: 0.45;
}

.fp-ws-roster-row.is-drag-over {
  background: #f0f4f8;
  box-shadow: inset 0 2px 0 var(--focus);
}

.fp-ws-drag {
  color: var(--yard);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -2px;
  cursor: grab;
  user-select: none;
  padding: 4px 2px;
}

.fp-ws-mini-thumb {
  width: 68px;
  height: 52px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 3px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.fp-ws-mini-thumb svg {
  width: 100%;
  height: 100%;
}

.fp-ws-roster-info {
  flex: 1;
  min-width: 0;
}

.fp-ws-roster-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.fp-ws-roster-title strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-ws-roster-note {
  margin: 2px 0 0;
  color: var(--quiet);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fp-ws-roster-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.fp-ws-export-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.fp-ws-export-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.fp-ws-select-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--quiet);
}

.fp-ws-select {
  min-height: 36px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
}

.fp-ws-export-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fp-ws-export-btns .fp-btn {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.fp-ws-pro-tag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 2px;
  background: var(--chalk);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
}

.fp-ws-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.fp-ws-modal-actions .fp-btn {
  width: auto !important;
  min-width: 96px;
}

.fp-ws-picker-dialog {
  width: min(540px, 100%);
}

.fp-ws-picker-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  font-size: 14px;
}

.fp-ws-picker-list {
  display: flex;
  flex-direction: column;
  max-height: 320px;
  overflow: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.fp-ws-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.fp-ws-picker-row:last-child {
  border-bottom: 0;
}

.fp-ws-picker-empty {
  margin-top: 12px;
  color: var(--quiet);
  font-size: 14px;
}

.fp-ws-billing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.fp-ws-billing-pro {
  border-color: var(--ink);
  box-shadow: inset 0 3px 0 var(--chalk), var(--shadow-sm);
}

.fp-ws-billing-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.fp-ws-billing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.fp-ws-billing-top h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.fp-ws-billing-desc {
  margin: 0;
  color: var(--quiet);
  font-size: 15px;
}

.fp-ws-billing-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1099px) {
  .fp-ws-plays { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-ws-workbench { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  .fp-ws-plays { grid-template-columns: 1fr; }
  .fp-ws-roster-row { flex-wrap: wrap; }
  .fp-ws-drag { display: none; }
  .fp-ws-roster-actions { width: 100%; justify-content: flex-end; padding-top: 4px; }
  .fp-ws-export-bar { flex-direction: column; align-items: stretch; }
  .fp-ws-export-btns .fp-btn { flex: 1; }
}
