:root {
  --bg: #090806;
  --card: #17130f;
  --ink: #f3efe6;
  --muted: #a79a86;
  --line: rgba(197, 157, 83, 0.24);
  --soft: #221b14;
  --soft-2: #120f0c;
  --steel: #0f1114;
  --gold: #c59d53;
  --gold-bright: #e3c277;
  --ember: #d46a2f;
  --shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 28% 18%, rgba(212, 106, 47, 0.26), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(197, 157, 83, 0.12), transparent 22%),
    linear-gradient(180deg, #050403 0%, var(--bg) 42%, #0e0b08 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.coach-app {
  min-height: 100vh;
}

.onboarding-shell {
  width: min(720px, 100%);
  padding: 50px 26px 34px;
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.wordmark {
  color: #9ba3b4;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.26em;
}

.wordmark sup,
.mobile-rail-toggle sup {
  position: relative;
  top: -0.42em;
  margin-left: 2px;
  font-size: 0.45em;
  letter-spacing: 0.04em;
}

.quiet-note {
  color: #a7afbd;
  font-size: 13px;
  font-weight: 700;
}

.brand-inline,
.rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-inline img {
  width: 34px;
  height: 28px;
  object-fit: cover;
  object-position: center;
}

.hero-logo {
  display: block;
  width: min(360px, 76vw);
  height: auto;
  margin: -28px 0 24px;
  border: 1px solid rgba(197, 157, 83, 0.24);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.screen {
  display: none;
  padding-top: 72px;
}

.screen.active {
  display: block;
}

.hero-copy h1 {
  max-width: 610px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(54px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 12px 0 54px;
  color: var(--muted);
  font-size: 23px;
}

.story-input {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

textarea {
  width: 100%;
  min-height: 132px;
  padding: 18px 20px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  resize: vertical;
  box-shadow: none;
}

textarea::placeholder,
input::placeholder {
  color: #c8ced9;
}

textarea:focus,
input:focus {
  border-color: #aeb6c4;
  box-shadow: 0 0 0 4px rgba(151, 160, 178, 0.12);
}

.back-link {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0;
  margin-bottom: 28px;
  color: #8b94a5;
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 800;
}

.back-link:hover {
  color: var(--ink);
}

.suggestion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 26px;
}

.suggestion-grid button,
.tag-row span {
  min-height: 36px;
  padding: 0 16px;
  color: #536072;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  white-space: normal;
  transition: border-color 160ms ease, color 160ms ease, transform 160ms ease, background 160ms ease;
}

.suggestion-grid button:hover,
.suggestion-grid button.selected {
  color: var(--ink);
  border-color: #bcc4d2;
  transform: translateY(-1px);
}

.large-cta {
  width: 100%;
  min-height: 60px;
  color: #cbd2dc;
  background: var(--soft);
  border: 0;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
}

.large-cta.active,
.large-cta:not(:disabled) {
  color: #fff;
  background: var(--ink);
}

.large-cta:not(:disabled):hover,
.small-button:hover,
.coach-form button:hover,
.unlock-banner button:hover {
  background: #172033;
}

.dev-shortcut {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.dev-shortcut label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(9, 8, 6, 0.48);
  border: 1px solid rgba(197, 157, 83, 0.24);
  border-radius: 999px;
}

.dev-shortcut button {
  min-height: 34px;
  padding: 0 12px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.dev-shortcut button[hidden] {
  display: none;
}

.progress-label {
  margin-bottom: 16px;
  color: #8c95a7;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.progress-bar {
  height: 1px;
  margin-bottom: 54px;
  background: var(--line);
}

.progress-bar span {
  display: block;
  height: 1px;
  background: var(--ink);
}

.screen h2 {
  margin: 0 0 36px;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
}

.choice-stack {
  display: grid;
  gap: 16px;
}

.choice-stack button {
  position: relative;
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  padding: 19px 21px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 750;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.choice-stack button span,
.question-block p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 450;
}

.choice-stack button:hover,
.choice-stack button.selected {
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.choice-stack button.selected::after {
  content: "Selected";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.choice-stack.compact button {
  min-height: 70px;
}

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

.piece-grid label {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 750;
  cursor: pointer;
}

.piece-grid label:has(input:checked) {
  border-color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.piece-grid input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--ink);
}

.question-block {
  margin-bottom: 52px;
}

.question-block h2 {
  margin-bottom: 8px;
}

.question-block p {
  margin: 0 0 26px;
}

.result-screen {
  padding-top: 56px;
}

.result-screen h2 {
  margin-bottom: 8px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.tag-row span {
  display: inline-flex;
  align-items: center;
}

.costume-card,
.overview-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.costume-card {
  padding: 22px 24px;
  margin-bottom: 30px;
}

.build-name-field {
  display: grid;
  gap: 8px;
  margin: -8px 0 18px;
}

.build-name-field span {
  color: #8f98aa;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.build-name-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 18px;
  font-weight: 750;
}

.owned-summary {
  padding: 18px 20px;
  margin: -12px 0 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.owned-summary[hidden] {
  display: none;
}

.owned-summary p {
  margin: 0 0 12px;
  color: #8f98aa;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.owned-summary div,
.complete-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.owned-summary span,
.complete-strip span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #405067;
  background: var(--soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 750;
}

.compact-owned {
  margin: 0 0 18px;
}

.costume-card p,
.workspace-head p {
  margin: 0 0 12px;
  color: #8f98aa;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.14em;
}

blockquote {
  margin: 0;
  color: #2d3748;
  font-size: 18px;
  font-style: italic;
}

.overview-list {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.overview-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 0 24px;
}

.overview-item .number {
  color: #c9ced8;
  font-weight: 850;
}

.overview-item strong {
  font-size: 18px;
}

.overview-item span {
  color: #8b95a6;
}

.overview-actions {
  display: grid;
  gap: 10px;
}

.overview-actions p {
  margin: 0;
  color: #8b95a6;
  font-size: 14px;
  text-align: center;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(221, 226, 234, 0.5) 1px, transparent 1px),
    linear-gradient(0deg, rgba(221, 226, 234, 0.45) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
}

.mobile-rail-toggle,
.rail-scrim {
  display: none;
}

.app-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 16px;
  color: #090806;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border: 1px solid rgba(255, 244, 207, 0.38);
  border-radius: 999px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.36);
  font-weight: 850;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.rail {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 30px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.rail-brand {
  display: grid;
  gap: 10px;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.rail-brand img {
  width: 76px;
  height: 62px;
  object-fit: cover;
}

.rail nav {
  display: grid;
  gap: 8px;
}

.rail-link {
  min-height: 44px;
  padding: 0 12px;
  color: #606b7d;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font-weight: 750;
}

.rail-link.active,
.rail-link:hover {
  color: var(--ink);
  background: var(--soft);
}

.project-mini,
.tier-card {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.project-mini span,
.tier-card span {
  display: block;
  margin-bottom: 8px;
  color: #8d96a7;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-mini strong,
.tier-card strong {
  display: block;
  line-height: 1.25;
}

.project-mini input,
.project-mini select {
  width: 100%;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 10px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
}

.project-mini input {
  font-weight: 750;
}

.mini-button {
  width: 100%;
  min-height: 36px;
  margin-top: 10px;
  color: #090806;
  background: var(--gold);
  border: 0;
  border-radius: 10px;
  font-weight: 850;
}

.mini-button.ghost {
  color: var(--gold-bright);
  background: transparent;
  border: 1px solid var(--line);
}

.tier-card {
  margin-top: auto;
  background: #f8f9fb;
}

.tier-card p {
  margin: 8px 0 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.45;
}

.tier-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tier-toggle input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--gold);
}

.workspace-panel {
  display: none;
  padding: 38px;
}

.workspace-panel.active {
  display: block;
}

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

.workspace-head.compact-head {
  margin-top: 34px;
}

.workspace-head h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1.05;
}

.dashboard-grid {
  display: grid;
  gap: 18px;
}

.dashboard-hero,
.dashboard-next,
.dashboard-lists article,
.dashboard-stats article {
  background: rgba(23, 19, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.dashboard-hero,
.dashboard-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
}

.dashboard-hero span,
.dashboard-next span,
.dashboard-lists span,
.dashboard-stats span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.dashboard-hero strong,
.dashboard-next strong,
.dashboard-stats strong {
  display: block;
  color: #fff7eb;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
}

.dashboard-hero p,
.dashboard-next p,
.dashboard-lists p,
.dashboard-lists li {
  color: #c5b9a7;
  line-height: 1.5;
}

.dashboard-ring {
  position: relative;
  flex: 0 0 132px;
  width: 132px;
  height: 132px;
}

.dashboard-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.dashboard-ring circle {
  fill: none;
  stroke: rgba(197, 157, 83, 0.22);
  stroke-width: 12;
}

.dashboard-ring circle + circle {
  stroke: var(--gold-bright);
  stroke-dasharray: 302;
  transition: stroke-dashoffset 180ms ease;
}

.dashboard-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff7eb;
  font-size: 24px;
}

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

.dashboard-stats article {
  padding: 18px;
}

.dashboard-stats strong {
  font-size: 30px;
}

.dashboard-next button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 18px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.share-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  color: #fff7eb;
  background:
    linear-gradient(135deg, rgba(96, 199, 132, 0.18), rgba(227, 194, 119, 0.12)),
    rgba(23, 19, 15, 0.94);
  border: 1px solid rgba(96, 199, 132, 0.42);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.share-card span {
  display: block;
  margin-bottom: 8px;
  color: #7fe19d;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.share-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.1;
}

.share-card p {
  margin: 0;
  color: #d7cbb9;
  line-height: 1.45;
}

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

.share-actions button {
  min-height: 42px;
  padding: 0 16px;
  color: #090806;
  background: #60c784;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.reference-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(23, 19, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

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

.reference-head span {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.reference-head h3 {
  margin: 0 0 8px;
  color: #fff7eb;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
}

.reference-head p,
.empty-reference {
  margin: 0;
  color: #c5b9a7;
  line-height: 1.5;
}

.reference-head strong {
  flex: 0 0 auto;
  padding: 8px 11px;
  color: #090806;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
}

.reference-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(150px, 0.5fr) auto auto;
  gap: 10px;
}

.reference-form input,
.reference-form select {
  min-height: 42px;
  padding: 0 12px;
  color: #fff7eb;
  background: rgba(9, 8, 6, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.reference-upload,
.reference-form button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.reference-upload {
  color: var(--gold-bright);
  background: rgba(9, 8, 6, 0.5);
  border: 1px solid rgba(227, 194, 119, 0.28);
  cursor: pointer;
}

.reference-upload input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.reference-form button {
  color: #090806;
  background: var(--gold-bright);
  border: 0;
}

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

.reference-card {
  overflow: hidden;
  background: rgba(9, 8, 6, 0.56);
  border: 1px solid rgba(227, 194, 119, 0.24);
  border-radius: 14px;
}

.reference-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.35);
}

.reference-card div {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.reference-card strong {
  color: #fff7eb;
  line-height: 1.25;
}

.reference-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.reference-card button {
  width: calc(100% - 20px);
  min-height: 32px;
  margin: 0 10px 10px;
  color: #d7cbb9;
  background: transparent;
  border: 1px solid rgba(227, 194, 119, 0.24);
  border-radius: 999px;
  font-weight: 800;
}

.dashboard-lists {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
}

.dashboard-lists article {
  padding: 18px;
}

.dashboard-lists article > div {
  display: grid;
  gap: 10px;
}

.dashboard-lists button {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  color: #fff7eb;
  background: rgba(9, 8, 6, 0.42);
  border: 1px solid rgba(227, 194, 119, 0.22);
  border-radius: 10px;
  text-align: left;
}

.dashboard-lists em {
  color: #c5b9a7;
  font-style: normal;
}

.dashboard-lists ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.small-button,
.coach-form button {
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.today-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  color: #fff;
  background: var(--ink);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.today-card p {
  margin: 0 0 8px;
  color: #aab3c2;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.today-card h3 {
  margin: 0;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.today-card span {
  display: block;
  max-width: 560px;
  margin-top: 10px;
  color: #d7dce6;
  line-height: 1.5;
}

.today-card button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.journey-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.journey-step {
  min-height: 120px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.journey-step.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.journey-step span {
  display: block;
  margin-bottom: 10px;
  color: #98a1b3;
  font-size: 12px;
  font-weight: 850;
}

.journey-step.active span,
.journey-step.active p {
  color: #cdd5e3;
}

.journey-step strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.journey-step p {
  margin: 0;
  color: #667287;
  font-size: 13px;
  line-height: 1.4;
}

.unlock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid #cfd6e1;
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.unlock-banner[hidden] {
  display: none;
}

.unlock-banner p {
  margin: 0 0 6px;
  color: #8f98aa;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.unlock-banner strong {
  display: block;
  font-size: 20px;
}

.unlock-banner span {
  display: block;
  margin-top: 4px;
  color: #5f6878;
}

.unlock-banner button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.phase-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 16px;
}

.phase-board[hidden] {
  display: none;
}

.piece-planner,
.consolidated-plan {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
}

.planner-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  background: rgba(15, 17, 20, 0.94);
  border: 1px solid rgba(227, 194, 119, 0.34);
  border-radius: 16px;
}

.planner-head span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.planner-head h3 {
  margin: 6px 0 8px;
  color: #fff7eb;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
}

.planner-head p {
  max-width: 720px;
  margin: 0;
  color: #c5b9a7;
  line-height: 1.55;
}

.planner-head > strong {
  flex: 0 0 auto;
  padding: 8px 12px;
  color: #090806;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
}

.piece-option-grid,
.piece-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.build-list-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.build-mannequin {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(197, 157, 83, 0.36);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(18, 27, 43, 0.02);
}

.build-mannequin span {
  display: block;
  margin-bottom: 4px;
  color: #7c5a18;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.build-mannequin strong {
  color: var(--ink);
  font-size: 18px;
}

.build-mannequin svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 16px 24px rgba(18, 27, 43, 0.1));
}

.build-map-image-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(76, 108, 139, 0.16);
  border-radius: 10px;
  background: #edf8ff;
  filter: drop-shadow(0 16px 24px rgba(18, 27, 43, 0.1));
}

.build-map-image {
  display: block;
  width: 100%;
  height: auto;
}

.build-map-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.build-map-complete-layer {
  opacity: 1;
}

.build-map-action-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.build-map-action {
  fill: transparent;
  stroke: transparent;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
}

.build-map-action:hover,
.build-map-action:focus-visible {
  fill: rgba(227, 194, 119, 0.18);
  stroke: rgba(227, 194, 119, 0.78);
  stroke-width: 2;
}

.build-mannequin .build-map-hit {
  position: absolute;
  display: block;
  margin: 0;
  border: 2px solid rgba(15, 109, 71, 0.72);
  border-radius: 18px;
  background: rgba(80, 207, 133, 0.5);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.18), 0 0 12px rgba(95, 210, 135, 0.26);
  pointer-events: none;
  mix-blend-mode: multiply;
}

.build-mannequin .build-map-hit[data-region="visor"],
.build-mannequin .build-map-hit[data-region="belt"] {
  border-radius: 999px;
}

.build-mannequin .build-map-hit[data-region="prop"],
.build-mannequin .build-map-hit[data-region="harness"] {
  background: rgba(80, 207, 133, 0.28);
  border-style: dashed;
}

.build-map-c {
  background: linear-gradient(180deg, #edf8ff 0%, #e6f4ff 58%, #f7fbff 100%);
  border-radius: 10px;
}

.build-mannequin-reference strong {
  color: #253243;
}

.build-map-reference {
  border: 1px solid rgba(76, 108, 139, 0.16);
}

.build-map-reference .mannequin-part {
  fill: #eef8ff;
  stroke: #38516a;
  stroke-width: 2.6;
}

.build-map-reference .mannequin-part[data-region="harness"] {
  fill: none;
  stroke: rgba(214, 166, 74, 0.56);
  stroke-width: 1.2;
  stroke-dasharray: 4 4;
}

.build-map-reference .mannequin-part[data-region="harness"].complete {
  fill: none;
  stroke: #2d9d56;
  filter: none;
}

.build-map-reference .mannequin-part.complete {
  fill: url(#completePlate);
  stroke: #1c7450;
}

.mannequin-part {
  fill: #f8f2e6;
  stroke: #4f5964;
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 180ms ease, stroke 180ms ease, filter 180ms ease;
}

.mannequin-part.complete {
  fill: #5fd287;
  stroke: #166a3d;
  filter: drop-shadow(0 0 6px rgba(95, 210, 135, 0.32));
}

.build-map-c .mannequin-part.complete {
  fill: url(#completePlate);
}

.mannequin-line {
  fill: none;
  stroke: #4f5964;
  stroke-width: 3.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.mannequin-blueprint {
  fill: none;
  stroke: rgba(122, 130, 139, 0.34);
  stroke-width: 1.3;
  stroke-dasharray: 5 7;
  stroke-linecap: round;
}

.mannequin-blueprint.faint {
  stroke: rgba(197, 157, 83, 0.2);
  stroke-width: 1;
  stroke-dasharray: 2 8;
}

.mannequin-detail {
  fill: none;
  stroke: #7a828b;
  stroke-width: 2.2;
  stroke-linejoin: round;
  stroke-linecap: round;
  opacity: 0.72;
  pointer-events: none;
}

.mannequin-detail.faint-forge {
  stroke: rgba(122, 130, 139, 0.22);
  stroke-width: 1.4;
  opacity: 0.55;
}

.mannequin-detail.jewel {
  stroke: #d6a64a;
  stroke-width: 2.6;
}

.map-c-badge path {
  fill: #273342;
  stroke: #d6a64a;
  stroke-width: 1.5;
}

.map-c-badge text {
  fill: #d6a64a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 800;
  text-anchor: middle;
}

.mannequin-shadow {
  fill: rgba(18, 27, 43, 0.12);
}

.piece-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 12px;
  min-height: 132px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}

.piece-option.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(227, 194, 119, 0.28);
}

.piece-option input {
  grid-row: 1 / span 3;
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.piece-option span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.piece-option strong {
  color: var(--ink);
  font-size: 20px;
}

.piece-option em {
  color: #6c7482;
  font-style: normal;
  line-height: 1.45;
}

.manual-piece-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px;
  background: rgba(15, 17, 20, 0.86);
  border: 1px solid rgba(227, 194, 119, 0.24);
  border-radius: 16px;
}

.manual-piece-form input {
  min-height: 46px;
  padding: 0 14px;
  color: #fff7eb;
  background: rgba(9, 8, 6, 0.72);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.manual-piece-form button {
  min-height: 46px;
  padding: 0 18px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 12px;
  font-weight: 850;
}

.phase-card,
.piece-card {
  min-height: 210px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(18, 27, 43, 0.02);
}

.piece-card.piece-complete {
  border-color: rgba(96, 199, 132, 0.52);
}

.phase-card.has-complete,
.piece-card.has-complete {
  border-color: #bcc4d2;
}

.piece-card {
  display: grid;
  gap: 14px;
}

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

.piece-head span {
  color: #7c5a18;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piece-head h3 {
  margin: 6px 0 0;
  font-size: 24px;
}

.piece-head strong {
  min-width: 64px;
  padding: 7px 10px;
  color: #090806;
  background: var(--gold);
  border-radius: 999px;
  font-size: 13px;
  text-align: center;
}

.level-bar {
  height: 12px;
  overflow: hidden;
  background: #0d0a07;
  border: 1px solid rgba(197, 157, 83, 0.3);
  border-radius: 999px;
}

.level-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--ember), var(--gold-bright));
  border-radius: inherit;
}

.stage-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.stage-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.stage-row .done,
.stage-row .current {
  color: #090806;
  background: var(--gold);
}

.stage-row .done {
  background: #60c784;
}

.stage-row .open {
  color: var(--gold-bright);
  border-color: rgba(227, 194, 119, 0.48);
}

.stage-row .locked {
  opacity: 0.5;
}

.piece-card p,
.piece-card li {
  color: #303845;
  line-height: 1.5;
}

.piece-card ul {
  padding-left: 18px;
  margin: 0;
}

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

.piece-meta-grid span {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  color: #302513;
  background: rgba(227, 194, 119, 0.78);
  border: 1px solid rgba(255, 244, 207, 0.3);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.open-piece,
.coach-stage {
  justify-self: start;
  min-height: 38px;
  padding: 0 14px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.piece-detail {
  margin-top: 18px;
  padding: 22px;
  background: rgba(15, 17, 20, 0.94);
  border: 1px solid rgba(227, 194, 119, 0.4);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.piece-detail[hidden] {
  display: none;
}

.piece-detail-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.piece-detail-head span,
.piece-stage-options p,
.piece-stage-guide span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piece-detail-head h3 {
  margin: 6px 0 8px;
  font-size: clamp(28px, 4vw, 44px);
}

.piece-detail-head p {
  margin: 0;
  color: #c5b9a7;
}

.piece-detail-level {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}

.piece-detail-level strong {
  color: #090806;
  background: var(--gold);
  border-radius: 999px;
  padding: 7px 11px;
}

.piece-complete-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
  background: rgba(96, 199, 132, 0.14);
  border: 1px solid rgba(96, 199, 132, 0.45);
  border-radius: 14px;
}

.piece-complete-banner strong {
  color: #e7f8ea;
}

.piece-complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.piece-complete-banner button {
  min-height: 36px;
  padding: 0 13px;
  color: #090806;
  background: #60c784;
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.piece-current-step,
.piece-source-panel,
.piece-secondary {
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(23, 19, 15, 0.86);
  border: 1px solid rgba(227, 194, 119, 0.28);
  border-radius: 16px;
}

.piece-current-step {
  display: grid;
  gap: 14px;
  background: linear-gradient(135deg, rgba(38, 29, 18, 0.94), rgba(16, 18, 22, 0.94));
  border-color: rgba(227, 194, 119, 0.48);
}

.piece-current-step span,
.piece-source-panel span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piece-current-step h4 {
  margin: 5px 0 6px;
  color: #fff7eb;
  font-size: clamp(26px, 3vw, 38px);
}

.piece-current-step p,
.piece-current-step li,
.piece-source-panel p,
.piece-source-panel em {
  color: #d7cbb9;
  line-height: 1.45;
}

.piece-current-step ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.piece-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.piece-current-actions button,
.piece-source-list a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
  text-decoration: none;
}

.piece-current-actions button:nth-child(2) {
  background: #60c784;
}

.piece-source-panel {
  display: grid;
  gap: 14px;
}

.piece-source-panel strong {
  display: block;
  margin-top: 5px;
  color: #fff7eb;
  font-size: 20px;
}

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

.piece-source-list article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: rgba(9, 8, 6, 0.42);
  border: 1px solid rgba(227, 194, 119, 0.22);
  border-radius: 14px;
}

.piece-source-list article strong {
  margin: 0;
  font-size: 16px;
}

.piece-source-list em {
  font-style: normal;
  font-size: 13px;
}

.piece-source-list a {
  justify-self: start;
  min-height: 34px;
  font-size: 13px;
}

.piece-secondary {
  display: block;
}

.piece-secondary summary {
  color: #fff7eb;
  cursor: pointer;
  font-weight: 850;
}

.piece-secondary[open] summary {
  margin-bottom: 14px;
}

.piece-stage-options {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px 14px;
  background: rgba(23, 19, 15, 0.82);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.piece-stage-options p {
  margin: 0 8px 0 0;
}

.piece-stage-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7cbb9;
  font-size: 13px;
  font-weight: 800;
}

.piece-stage-options input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.piece-material-picker {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(23, 19, 15, 0.82);
  border: 1px solid rgba(227, 194, 119, 0.28);
  border-radius: 16px;
}

.piece-material-picker > div:first-child {
  display: grid;
  gap: 5px;
}

.piece-material-picker span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piece-material-picker strong {
  color: #fff7eb;
  font-size: 18px;
}

.piece-material-picker p {
  margin: 0;
  color: #c5b9a7;
}

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

.material-choice-grid label {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 14px;
  background: rgba(9, 8, 6, 0.42);
  border: 1px solid rgba(227, 194, 119, 0.22);
  border-radius: 14px;
  cursor: pointer;
}

.material-choice-grid label.selected {
  background: rgba(227, 194, 119, 0.18);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(227, 194, 119, 0.16);
}

.material-choice-grid input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--gold);
}

.material-choice-grid label strong {
  font-size: 16px;
}

.material-choice-grid label span {
  color: #d7cbb9;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.piece-problem-watch {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  background: rgba(91, 43, 28, 0.34);
  border: 1px solid rgba(212, 106, 47, 0.36);
  border-radius: 16px;
}

.piece-problem-watch span {
  color: var(--ember);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.piece-problem-watch strong {
  display: block;
  margin-top: 5px;
  color: #fff7eb;
}

.piece-problem-watch ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.piece-problem-watch li {
  color: #e4d5c2;
  line-height: 1.45;
}

.piece-stage-guide {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.piece-stage-guide article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 16px;
  background: rgba(23, 19, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.piece-stage-guide article.current {
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 1px rgba(227, 194, 119, 0.18);
}

.piece-stage-guide article.done {
  border-color: rgba(96, 199, 132, 0.55);
}

.stage-select-card {
  cursor: pointer;
}

.piece-stage-guide h4 {
  margin: 0;
  font-size: 18px;
}

.piece-stage-guide p {
  margin: 0;
  color: #c5b9a7;
  line-height: 1.45;
}

.piece-stage-guide .stage-risk {
  padding-top: 10px;
  color: #e0bf8a;
  border-top: 1px solid rgba(227, 194, 119, 0.18);
  font-size: 13px;
}

.piece-stage-guide .stage-risk strong {
  color: var(--gold-bright);
}

.open-stage {
  align-self: end;
  min-height: 38px;
  padding: 0 13px;
  color: #090806;
  background: var(--gold-bright);
  border: 0;
  border-radius: 999px;
  font-weight: 850;
}

.stage-screen {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 16px;
}

.stage-screen-main,
.stage-screen-side {
  padding: 20px;
  background: rgba(23, 19, 15, 0.94);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.stage-screen-main {
  display: grid;
  gap: 18px;
}

.stage-screen-main > span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.stage-screen-main h4 {
  margin: 0;
  color: #fff7eb;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.stage-screen-main p {
  margin: 0;
  color: #d7cbb9;
  line-height: 1.55;
}

.stage-screen-main section {
  padding: 16px;
  background: rgba(9, 8, 6, 0.45);
  border: 1px solid rgba(227, 194, 119, 0.22);
  border-radius: 14px;
}

.stage-screen-main section.problem-watch {
  background: rgba(91, 43, 28, 0.28);
  border-color: rgba(212, 106, 47, 0.36);
}

.stage-screen-main section strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-bright);
}

.stage-screen-main ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
  margin: 0;
}

.stage-screen-main li {
  color: #d7cbb9;
  line-height: 1.45;
}

.stage-screen-side {
  display: grid;
  align-content: start;
  gap: 14px;
}

.stage-screen-complete {
  min-height: 58px;
}

.source-stage {
  min-height: 66px;
  display: grid;
  gap: 4px;
  justify-items: start;
  padding: 12px 14px;
  color: #090806;
  background: linear-gradient(135deg, #e6c26c, #f5d783);
  border-color: rgba(255, 225, 145, 0.72);
  text-align: left;
}

.source-stage span {
  color: rgba(9, 8, 6, 0.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.3;
}

.stage-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.stage-detail-actions button {
  min-height: 30px;
  padding: 0 10px;
  color: var(--gold-bright);
  background: rgba(9, 8, 6, 0.42);
  border: 1px solid rgba(227, 194, 119, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.stage-detail-panel {
  padding: 12px;
  background: rgba(9, 8, 6, 0.5);
  border: 1px solid rgba(227, 194, 119, 0.24);
  border-radius: 12px;
}

.stage-detail-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #fff7eb;
  font-size: 14px;
}

.stage-detail-panel ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  margin: 0;
}

.stage-detail-panel li {
  color: #d7cbb9;
  line-height: 1.35;
}

.complete-stage {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  background: rgba(9, 8, 6, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.complete-stage input {
  width: 16px;
  min-height: 16px;
  accent-color: #60c784;
}

.complete-stage strong {
  color: var(--ink);
  font-size: 13px;
}

.complete-strip {
  padding: 12px;
  margin: 14px 0;
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.complete-strip strong {
  flex-basis: 100%;
  color: var(--ember);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.phase-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.phase-card p,
.phase-card li,
.material-card p,
.guide-card p,
.chat-message,
.critique p,
.critique li {
  color: #5f6878;
  line-height: 1.5;
}

.phase-card ul {
  padding-left: 18px;
}

.chat-log {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-bottom: 14px;
}

.prompt-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 840px;
  margin: -6px 0 18px;
}

.prompt-strip button {
  min-height: 36px;
  padding: 0 13px;
  color: #4f5b6f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 750;
}

.prompt-strip button:hover {
  color: var(--ink);
  border-color: #b7bfce;
}

.chat-message {
  width: fit-content;
  max-width: 76%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(18, 27, 43, 0.02);
}

.chat-message.user {
  justify-self: end;
  color: #fff;
  background: var(--ink);
}

.coach-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 840px;
}

input {
  min-height: 48px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
}

.material-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.file-advisor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.pattern-workflow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.file-advisor article,
.pattern-workflow article,
.file-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(18, 27, 43, 0.02);
}

.file-advisor span,
.pattern-workflow span,
.file-card span {
  color: var(--ember);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.file-advisor strong,
.pattern-workflow strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

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

.file-market-list h3 {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.file-card {
  display: grid;
  gap: 14px;
}

.file-card h4 {
  margin: 6px 0 6px;
  font-size: 22px;
}

.file-card p {
  margin: 0;
}

.file-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.file-card dt {
  color: var(--gold);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-card dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.file-warning {
  color: var(--gold-bright);
  font-size: 13px;
}

.file-card a {
  justify-self: start;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #090806;
  background: var(--gold);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
}

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

.material-card,
.guide-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(18, 27, 43, 0.02);
}

.guide-card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
}

.material-card strong,
.guide-card h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.guide-card h3 {
  margin-top: 0;
}

.material-card span,
.guide-card span {
  color: var(--ember);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.mini-tags em {
  padding: 6px 9px;
  color: #667287;
  background: var(--soft);
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.photo-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.photo-drop,
.photo-preview,
.critique {
  min-height: 280px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.photo-drop {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  text-align: center;
}

.photo-drop input {
  display: none;
}

.photo-drop span {
  color: var(--muted);
}

.photo-preview {
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: cover;
}

@media (max-width: 900px) {
  .onboarding-shell {
    width: 100%;
  }

  .workspace-shell {
    grid-template-columns: 1fr;
    padding-top: 72px;
  }

  .mobile-rail-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 35;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 7px 13px 7px 8px;
    color: var(--gold-bright);
    background: rgba(12, 10, 8, 0.94);
    border: 1px solid rgba(197, 157, 83, 0.38);
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.14em;
  }

  .mobile-rail-toggle img {
    width: 34px;
    height: 28px;
    object-fit: cover;
  }

  .rail-scrim {
    position: fixed;
    inset: 0;
    z-index: 38;
    display: block;
    background: rgba(0, 0, 0, 0.48);
    border: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .workspace-shell.rail-open .rail-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .rail {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(82vw, 320px);
    max-width: 320px;
    gap: 22px;
    overflow-y: auto;
    transform: translateX(-102%);
    transition: transform 220ms ease;
    box-shadow: 18px 0 42px rgba(0, 0, 0, 0.34);
  }

  .workspace-shell.rail-open .rail {
    transform: translateX(0);
  }

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

  .tier-card {
    display: none;
  }

  .phase-board,
  .dashboard-stats,
  .dashboard-lists,
  .piece-option-grid,
  .piece-list-grid,
  .build-list-layout,
  .stage-screen,
  .piece-stage-guide,
  .piece-source-list,
  .material-choice-grid,
  .reference-form,
  .reference-grid,
  .file-advisor,
  .pattern-workflow,
  .file-market-list,
  .guide-grid,
  .piece-grid,
  .material-list,
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .unlock-banner,
  .dashboard-hero,
  .dashboard-next,
  .share-card,
  .today-card,
  .journey-rail {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .onboarding-shell,
  .workspace-panel {
    padding: 28px 18px;
  }

  .screen {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: 46px;
  }

  .workspace-head,
  .planner-head,
  .reference-head,
  .manual-piece-form,
  .coach-form {
    display: grid;
    grid-template-columns: 1fr;
  }

  .build-mannequin {
    position: static;
  }

  .overview-item {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .overview-item span:last-child {
    grid-column: 2;
  }

  .app-toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    max-width: none;
    text-align: center;
  }
}

/* Honesmith forge theme */
.wordmark {
  color: var(--gold-bright);
}

.quiet-note,
.back-link,
.overview-item span,
.overview-actions p,
.tier-card p,
.journey-step p,
.photo-drop span {
  color: var(--muted);
}

.hero-copy p,
.back-link:hover,
.rail-link.active,
.rail-link:hover,
.suggestion-grid button:hover,
.suggestion-grid button.selected,
.prompt-strip button:hover {
  color: var(--gold-bright);
}

textarea,
input,
.choice-stack button,
.suggestion-grid button,
.tag-row span,
.costume-card,
.overview-item,
.piece-grid label,
.owned-summary,
.project-mini,
.tier-card,
.unlock-banner,
.phase-card,
.piece-card,
.piece-detail,
.piece-stage-guide article,
.chat-message,
.prompt-strip button,
.material-card,
.file-advisor article,
.pattern-workflow article,
.file-card,
.guide-card,
.photo-drop,
.photo-preview,
.critique {
  color: var(--ink);
  background: rgba(23, 19, 15, 0.94);
  border-color: var(--line);
}

textarea::placeholder,
input::placeholder {
  color: #736552;
}

textarea:focus,
input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(197, 157, 83, 0.14);
}

.suggestion-grid button,
.tag-row span,
.prompt-strip button {
  color: #d5c7b2;
}

.choice-stack button:hover,
.choice-stack button.selected,
.piece-grid label:has(input:checked) {
  border-color: var(--gold);
}

.choice-stack button.selected::after,
.large-cta.active,
.large-cta:not(:disabled),
.small-button,
.coach-form button,
.unlock-banner button,
.chat-message.user,
.journey-step.active {
  color: #090806;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
}

.large-cta:not(:disabled):hover,
.small-button:hover,
.coach-form button:hover,
.unlock-banner button:hover {
  background: #e8cb84;
}

.large-cta:disabled {
  color: #746a5b;
  background: #18130e;
}

.progress-label,
.costume-card p,
.workspace-head p,
.owned-summary p,
.today-card p,
.unlock-banner p,
.project-mini span,
.tier-card span,
.material-card span,
.file-advisor span,
.pattern-workflow span,
.file-card span,
.guide-card span,
.complete-strip strong,
.journey-step span {
  color: var(--gold);
}

.progress-bar span {
  background: var(--gold-bright);
}

blockquote,
.overview-item strong,
.phase-card h3,
.piece-head h3,
.piece-detail-head h3,
.piece-stage-guide h4,
.material-card strong,
.file-advisor strong,
.pattern-workflow strong,
.file-card h4,
.guide-card h3,
.project-mini strong,
.tier-card strong,
.unlock-banner strong {
  color: var(--ink);
}

.overview-item .number {
  color: #705c37;
}

.workspace-shell {
  background:
    radial-gradient(circle at 34% 12%, rgba(212, 106, 47, 0.2), transparent 25%),
    linear-gradient(90deg, rgba(197, 157, 83, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(197, 157, 83, 0.06) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
}

.rail {
  background: rgba(12, 10, 8, 0.96);
}

.rail-link {
  color: #c4b7a4;
}

.today-card {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(197, 157, 83, 0.14), rgba(212, 106, 47, 0.08)),
    var(--steel);
  border: 1px solid rgba(197, 157, 83, 0.32);
}

.today-card span,
.file-advisor p,
.pattern-workflow p,
.file-card p,
.phase-card p,
.phase-card li,
.piece-card p,
.piece-card li,
.piece-detail-head p,
.piece-stage-guide p,
.material-card p,
.guide-card p,
.chat-message,
.critique p,
.critique li,
.unlock-banner span {
  color: #c5b9a7;
}

.today-card button {
  color: #090806;
  background: var(--gold-bright);
}

.journey-step {
  background: rgba(23, 19, 15, 0.82);
}

.journey-step.active span,
.journey-step.active p {
  color: #2d2110;
}

.complete-strip,
.mini-tags em,
.owned-summary span,
.complete-strip span {
  color: #d0c1aa;
  background: var(--soft);
}

.photo-preview {
  color: var(--muted);
}
