:root {
  --ink: #203451;
  --muted: #52627a;
  --panel: #fffefa;
  --panel-strong: #eef5fc;
  --line: #d5ddcd;
  --jade: #285d9b;
  --jade-dark: #204c80;
  --red: #a72f66;
  --gold: #438027;
  --blue: #265ea7;
  --pink: #a72f66;
  --pink-light: #dce9f8;
  --green-light: #e7f5d9;
  --shadow: 0 18px 50px rgba(32, 52, 81, 0.09);
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f1f6fc;
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255,255,255,.15) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.15) 50%, transparent 50%),
    #dce9f8;
  background-size: 24px 24px;
  color: var(--ink);
  border-right: 1px solid #b7cce6;
}

.brand {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 58px;
  height: 72px;
  place-items: center;
  border-radius: 7px;
  background: #fffefa;
  color: var(--pink);
  box-shadow: inset 0 -6px 0 #b9d1ed;
  font-size: 2rem;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 4px;
  color: inherit;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

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

h1 {
  margin-bottom: 0;
  font-size: 1.42rem;
  line-height: 1.08;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
}

.mode-nav {
  display: grid;
  gap: 10px;
}

.nav-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  border: 1px solid #b7cce6;
  border-radius: 7px;
  background: #f6faff;
  color: inherit;
  padding: 12px;
  text-align: left;
}

.nav-button span {
  color: #285d9b;
  font-size: 0.76rem;
  font-weight: 900;
}

.nav-button.active {
  background: #e4efff;
  color: #203451;
  border-color: #285d9b;
  box-shadow: inset 4px 0 0 #285d9b;
}

.progress-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 8px;
  background: #f6faff;
  border: 1px solid #b7cce6;
}

.progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}

.meter {
  height: 10px;
  margin: 12px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #d6e4f5;
}

.meter span {
  display: block;
  width: 28%;
  height: 100%;
  border-radius: inherit;
  background: #a72f66;
  transition: width 180ms ease;
}

.progress-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.content {
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.group-controls {
  display: flex;
  align-items: end;
  gap: 12px;
}

.group-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.group-controls input {
  width: 76px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.lesson-grid,
.trainer-layout,
.practice-layout,
.quiz-layout,
.card-layout,
.tools-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 22px;
  align-items: stretch;
}

.lesson-panel,
.table-visual,
.flashcard,
.tile-reference,
.hand-builder,
.call-card,
.quiz-card,
.night-card,
.card-guide,
.soap-lab,
.tool-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.lesson-panel,
.flashcard,
.tile-reference,
.hand-builder,
.call-card,
.quiz-card,
.night-card,
.card-guide,
.soap-lab,
.tool-panel {
  padding: 24px;
}

.lesson-kicker {
  margin-bottom: 18px;
  color: var(--jade);
  font-weight: 900;
}

.lesson-panel p,
.call-card p,
.night-card li,
.card-guide p,
.soap-lab p,
.tool-panel p,
.quiz-feedback,
.call-feedback,
.hand-feedback {
  color: var(--muted);
  line-height: 1.55;
}

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

.clean-list li {
  position: relative;
  padding-left: 25px;
}

.clean-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--gold);
  content: "";
}

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

.primary-button,
.secondary-button,
.icon-text-button {
  min-height: 42px;
  border-radius: 7px;
  padding: 10px 14px;
  font-weight: 850;
}

.primary-button {
  border: 1px solid var(--jade-dark);
  background: var(--jade);
  color: white;
}

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

.table-visual {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    #1c6654;
  background-size: 28px 28px;
}

.seat {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 118px;
  min-height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.95);
  color: var(--ink);
  font-weight: 900;
  text-align: center;
}

.seat span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.active-seat {
  outline: 4px solid rgba(214, 175, 93, 0.72);
}

.north {
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.south {
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.west {
  top: 50%;
  left: 28px;
  transform: translateY(-50%);
}

.east {
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
}

.wall {
  position: absolute;
  border-radius: 6px;
  background: repeating-linear-gradient(
    90deg,
    #fffefa 0 18px,
    #e8dfce 18px 22px
  );
}

.wall-top,
.wall-bottom {
  left: 24%;
  width: 52%;
  height: 34px;
}

.wall-top {
  top: 132px;
}

.wall-bottom {
  bottom: 132px;
}

.wall-left,
.wall-right {
  top: 26%;
  width: 34px;
  height: 48%;
  background: repeating-linear-gradient(
    0deg,
    #fffefa 0 18px,
    #e8dfce 18px 22px
  );
}

.wall-left {
  left: 152px;
}

.wall-right {
  right: 152px;
}

.discard-pool {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(3, 42px);
  gap: 8px;
  transform: translate(-50%, -50%);
}

.discard-pool span,
.mini-tile,
.tile-card,
.hand-tile,
.bank-tile {
  display: grid;
  place-items: center;
  border: 1px solid #bdcbaa;
  border-radius: 7px;
  background: #fffefa;
  box-shadow: inset 0 -5px 0 #c9dcf2;
  color: var(--ink);
  font-weight: 900;
}

.discard-pool span {
  width: 42px;
  height: 54px;
}

.trainer-layout {
  grid-template-columns: minmax(290px, 390px) 1fr;
}

.flashcard {
  display: grid;
  align-content: start;
  justify-items: start;
}

.tile-card {
  width: 132px;
  height: 164px;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 4.2rem;
}

.tile-family {
  margin-bottom: 4px;
  color: var(--jade);
  font-weight: 900;
}

.family-grid {
  display: grid;
  gap: 16px;
}

.family {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 14px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

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

.mini-tile {
  width: 34px;
  height: 44px;
  font-size: 1rem;
}

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

.hand-row {
  display: flex;
  min-height: 78px;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px dashed #9eb989;
  border-radius: 8px;
  background: #f3f8ee;
}

.hand-tile,
.bank-tile {
  width: 60px;
  height: 76px;
  gap: 2px;
  padding: 6px 4px 8px;
  line-height: 1;
  text-align: center;
}

.hand-tile.selected {
  outline: 3px solid var(--gold);
}

.hand-feedback,
.call-feedback,
.quiz-feedback {
  min-height: 28px;
  margin-bottom: 18px;
  font-weight: 750;
}

.tile-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bank-tile {
  background: #fffefa;
}

.tile-symbol {
  display: block;
  width: 100%;
  color: var(--red);
  font-size: 1.22rem;
  font-weight: 950;
  line-height: 1.05;
}

.tile-label {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.05;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.hand-tile .tile-label {
  font-size: 0.72rem;
}

.call-options,
.answer-grid {
  display: grid;
  gap: 10px;
}

.call-options button,
.answer-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  color: var(--ink);
  padding: 12px;
  font-weight: 850;
  text-align: left;
}

.call-options button.correct,
.answer-grid button.correct {
  border-color: var(--jade);
  background: #e7f5d9;
}

.call-options button.incorrect,
.answer-grid button.incorrect {
  border-color: var(--red);
  background: #fff0f6;
}

.quiz-card {
  min-height: 390px;
}

.quiz-score {
  display: inline-flex;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #e3f2f3;
  padding: 7px 12px;
  color: var(--jade-dark);
  font-weight: 900;
}

.plan-list {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
  padding-left: 22px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  color: var(--jade-dark);
  padding: 10px 14px;
  font-weight: 850;
  text-decoration: none;
}

.card-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.card-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8ee;
  padding: 16px;
}

.card-section span {
  display: inline-flex;
  margin-bottom: 10px;
  border-radius: 999px;
  background: #e9effa;
  color: var(--blue);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.card-section h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.card-section p,
.copyright-note {
  margin-bottom: 0;
}

.copyright-note {
  margin-top: 18px;
  font-size: 0.9rem;
  font-weight: 750;
}

.year-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.year-tiles .mini-tile {
  width: 54px;
  height: 70px;
  font-size: 1.35rem;
}

.soap-tile {
  color: var(--red);
}

.practice-prompt {
  margin: 22px 0 12px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
  line-height: 1.3;
}

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

.hand-coach-panel,
.tile-set-panel {
  grid-column: 1 / -1;
}

.tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.helper-line {
  color: var(--muted);
  font-weight: 750;
}

.coach-bank {
  max-height: 260px;
  overflow: auto;
}

.coach-bank-tile {
  min-width: 60px;
  padding-inline: 6px;
}

.empty-hand {
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.advice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.photo-picker {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 850;
  text-transform: uppercase;
}

.photo-picker input {
  width: min(100%, 420px);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  padding: 10px;
  color: var(--ink);
  text-transform: none;
}

.tile-photo-preview {
  display: block;
  width: min(100%, 520px);
  max-height: 260px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8ee;
  margin: 10px 0 16px;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 18px;
}

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

.custom-label-row {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8ee;
  padding: 10px;
}

.custom-label-row span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.custom-label-row .custom-symbol {
  color: var(--red);
  font-size: 1.15rem;
  font-weight: 950;
}

.custom-label-row input {
  min-width: 0;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 850;
}

.advice-card,
.recommendation-item,
.identifier-row,
.notation-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8ee;
  padding: 14px;
}

.advice-card h4 {
  margin: 0 0 10px;
}

.advice-card p,
.advice-card li {
  color: var(--muted);
  line-height: 1.45;
}

.advice-card ol {
  margin: 0;
  padding-left: 20px;
}

.recommendation-list,
.identifier-grid,
.notation-grid,
.checklist {
  display: grid;
  gap: 10px;
}

.recommendation-item {
  display: grid;
  gap: 4px;
}

.recommendation-item span,
.identifier-row span,
.notation-row span {
  color: var(--muted);
  line-height: 1.4;
}

.identifier-row p {
  margin: 6px 0 0;
}

.notation-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
}

.checklist label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f3f8ee;
  padding: 12px;
  color: var(--ink);
  font-weight: 750;
}

.checklist input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--jade);
}

.group-prompt {
  min-height: 96px;
  border: 1px dashed #9eb989;
  border-radius: 8px;
  background: #f3f8ee;
  padding: 16px;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 900;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding: 20px;
  }

  .mode-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-button {
    justify-content: center;
    text-align: center;
  }

  .lesson-grid,
  .trainer-layout,
  .practice-layout,
  .quiz-layout,
  .card-layout,
  .tools-layout,
  .advice-grid,
  .custom-label-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .content {
    padding: 18px;
  }

  .topbar,
  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .group-controls {
    align-items: end;
    justify-content: space-between;
  }

  .mode-nav {
    grid-template-columns: 1fr 1fr;
  }

  .nav-button {
    justify-content: flex-start;
  }

  .table-visual {
    min-height: 430px;
  }

  .wall-left {
    left: 112px;
  }

  .wall-right {
    right: 112px;
  }

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

  .card-section-grid {
    grid-template-columns: 1fr;
  }

  .notation-row {
    grid-template-columns: 1fr;
  }
}

.learning-path { color: var(--muted); max-width: 70ch; line-height: 1.6; }
.pass-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style-position: inside; padding: 0; }
.pass-steps li { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.pass-steps [aria-current] { background: var(--jade-dark); color: white; }
.selected-pass { outline: 3px solid var(--jade); background: #e7f5d9; }
button:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button:disabled { cursor: default; opacity: .55; }
select { font: inherit; padding: 10px; min-height: 44px; margin: 8px; }
#charlestonRack, #practiceTarget { flex-wrap: wrap; }
#charleston .lesson-panel { max-width: 1100px; }
#secondChoice, #courtesyChoice, details { margin: 22px 0; line-height: 1.6; }
#secondChoice button { margin: 4px; }
[hidden] { display: none !important; }
#passReceipt, #handFeedback { line-height: 1.6; min-height: 3em; }

/* Keep every teaching example beside its explanation, including on phones. */
.lesson-grid { grid-template-columns: minmax(0, 1fr); max-width: 1080px; }
.lesson-panel > p, .lesson-panel > ul { max-width: 76ch; line-height: 1.65; }
.lesson-panel h3 { line-height: 1.3; }
.example-tiles, .pattern-groups { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.shown-tile { display: flex; flex-direction: column; align-items: center; justify-content: space-between; width: 68px; min-height: 114px; padding: 5px 4px 10px; border: 1px solid #bdcbaa; border-radius: 8px; background: #fffefa; box-shadow: inset 0 -5px 0 #c9dcf2; flex-shrink: 0; }
.tile-art { display: block; width: 54px; height: 76px; flex-shrink: 0; }
.shown-tile .tile-label, .hand-tile .tile-label, .bank-tile .tile-label { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 11px; line-height: 1.2; }
.hand-tile, .coach-bank-tile { width: 68px; height: auto; min-height: 116px; align-content: start; }
#flashTile { width: 132px; height: 180px; }
#flashTile .tile-art { width: 112px; height: 154px; }
#lessonExample { margin: 22px 0 12px; }
.example-caption { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.lesson-check { border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 24px 0; max-width: 76ch; }
.lesson-check legend { font-weight: 750; padding: 0 8px; }
.lesson-check button { text-align: left; min-height: 46px; line-height: 1.5; }
.lesson-check .correct { border: 2px solid var(--jade-dark); background: #e7f5d9; }
.lesson-check .incorrect { border: 2px solid var(--red); background: #fff0f6; }
#lessonFeedback { min-height: 2em; line-height: 1.5; margin: 18px 0 0; }
.pattern-group { display: flex; flex-wrap: wrap; gap: 3px; max-width: 100%; border-bottom: 2px solid var(--line); padding-bottom: 8px; }
.pattern-group > span:last-child:not(.shown-tile) { flex-basis: 100%; font-size: .8rem; padding-top: 7px; }
.practice-line { border-top: 1px solid var(--line); padding: 22px 0; }
.practice-line button { margin-top: 16px; }
.practice-line [aria-pressed="true"] { background: var(--jade-dark); color: white; }
.target-reference { background: var(--panel-strong); padding: 16px; border-radius: 10px; }
.target-reference summary { cursor: pointer; font-weight: 750; min-height: 44px; }
#practiceTarget { display: block; }
.wall-example { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; background: #e8f4f1; padding: 24px 16px; border-radius: 8px; }
.example-stacks { display: flex; gap: 5px; align-items: center; min-height: 70px; }
.example-stacks i { display: block; width: 29px; height: 45px; border: 1px solid #bdcbaa; border-radius: 5px; background: #fffefa; box-shadow: 0 6px 0 #17664b; }
.example-stacks .tail-stack { transform: rotate(90deg); margin-left: 15px; }
#charlestonRack .selected-pass { outline: 3px solid var(--jade-dark); background: #e7f5d9; }
@media (max-width: 680px) {
  .lesson-panel { padding: 20px 16px; }
  .lesson-check { padding: 14px; }
  .example-tiles, .pattern-groups { gap: 8px; }
  .shown-tile { width: 58px; min-height: 108px; }
  .shown-tile .tile-art { width: 48px; height: 69px; }
  .family { min-width: 0; }
  .target-reference { padding: 12px; }
}
.lesson-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; }
.lesson-picker select { max-width: 100%; margin: 0; min-width: 0; }
#lessonTitle { scroll-margin-top: 24px; }
@media (max-width: 680px) { .lesson-picker select { width: 100%; } }
#quizExample, #callExample { margin: 18px 0; }

.printed-pattern { border: 2px solid #9ab8d9; border-radius: 8px; background: #fffefa; padding: 18px; margin: 12px 0 24px; }
.printed-heading { font-size: .8rem; font-weight: 750; color: var(--ink); margin-bottom: 16px; }
.printed-heading span { display: inline-block; margin-left: 12px; font-weight: 400; color: var(--muted); }
.printed-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 15px 22px; }
.printed-group { display: flex; flex-direction: column; gap: 5px; }
.printed-group strong { font-family: Georgia, serif; font-size: 2rem; letter-spacing: .06em; }
.printed-group small { font-size: .75rem; font-family: inherit; color: var(--muted); }
.suit-C { color: #245b9a; }.suit-B { color: #27673b; }.suit-D { color: #a72f66; }.suit-honor { color: var(--ink); }
.hand-marker { font-size: 1.2rem; margin-left: auto; padding: 6px 12px; background: #e9f1fb; border-radius: 5px; color: var(--ink); }
.row-instructions { font-size: .9rem; margin: 16px 0 0; color: var(--muted); }
.labeled-tiles { margin: 20px 0 26px; }
.labeled-tiles h4 { margin-bottom: 12px; }
.teaching-table, .passing-table { display: block; width: 100%; max-width: 720px; height: auto; margin: 0 auto 20px; background: #f4f8fd; border-radius: 12px; }
.table-cloth { fill: #dae9f8; stroke: #8eafd4; stroke-width: 2; }
.wall-stack { fill: #fffefa; stroke: #8ca6c4; stroke-width: 1; }
.counted-stack { fill: #ffe6f0; stroke: #a72f66; stroke-width: 2; }
.rack-bar { fill: #4b75a4; }
.diagram-label { fill: #203451; font: 600 15px system-ui,sans-serif; }
.diagram-small, .stack-number { fill: #3e536f; font: 12px system-ui,sans-serif; }
.gap-mark { fill: none; stroke: #a72f66; stroke-width: 4; stroke-dasharray: 3 3; }
.turn-arrow { fill: none; stroke: #275a94; stroke-width: 3; }
.demo-controls { display: flex; align-items: center; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 20px 0; }
.charleston-rounds { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 16px; background: #e9f1fb; border-radius: 8px; }
.charleston-rounds p { margin: 0; line-height: 1.6; }.charleston-rounds span { display: block; font-size: .85rem; }
.rack-comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rack-comparison article { padding: 16px; border: 1px solid #a9bfda; border-radius: 8px; background: #f6faff; }
.hidden-tiles { display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0; border-bottom: 8px solid #4b75a4; }
.hidden-tiles span { width: 23px; height: 34px; border-radius: 4px; background: #b8d1ed; border: 1px solid #6d91bd; box-shadow: inset 0 -4px #e7eff9; }
@media (max-width: 680px) {
  .rack-comparison { grid-template-columns: 1fr; }
  .printed-pattern { padding: 12px; }
  .printed-row { gap: 12px; }
  .printed-group strong { font-size: 1.6rem; }
}
.teaching-table { max-width: 560px; }
#lessonExample { scroll-margin-top: 14px; }
.row-key { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
