/* projeto-rpg — demo wireframes */
:root {
  --ink: #0c1219;
  --ink-2: #151d28;
  --panel: #1a2433;
  --line: #2a3a4f;
  --muted: #8b9bb0;
  --paper: #e8eef6;
  --paper-dim: #c5d0e0;
  --accent: #d4f34a;
  --accent-dim: #9fb82e;
  --warn: #f0a43a;
  --danger: #e85a6b;
  --ok: #3ecf8e;
  --gm: #5b9fd4;
  --player: #d4f34a;
  --radius: 6px;
  --font-display: "Syne", sans-serif;
  --font-body: "Source Sans 3", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* —— Landing / roadmap —— */
.landing {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #1e3a2f 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, #1a2a44 0%, transparent 50%),
    linear-gradient(180deg, var(--ink) 0%, #0a0e14 100%);
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  backdrop-filter: blur(12px);
  background: rgba(12, 18, 25, 0.85);
  z-index: 20;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-decoration: none;
}

.brand span {
  color: var(--accent);
}

.landing-nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
}

.landing-nav-links a {
  color: var(--paper-dim);
  font-size: 0.95rem;
  text-decoration: none;
}

.landing-nav-links a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--ink);
}

.btn-primary:hover {
  background: #e2ff6a;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm {
  padding: 0.35rem 0.7rem;
  font-size: 0.85rem;
}

.hero {
  padding: 4.5rem 2rem 3.5rem;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.hero-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0;
  max-width: 14ch;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--paper-dim);
  max-width: 42rem;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--paper);
  font-weight: 600;
}

.section {
  padding: 3rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 2rem;
  max-width: 40rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
}

.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card p,
.card li {
  color: var(--paper-dim);
  font-size: 0.95rem;
}

.card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: var(--ink-2);
  color: var(--muted);
  border: 1px solid var(--line);
  margin-bottom: 0.6rem;
}

.tag-mvp {
  color: var(--accent);
  border-color: var(--accent-dim);
}

.tag-out {
  color: var(--warn);
}

.roadmap {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sprint {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.sprint-id {
  background: var(--ink-2);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  border-right: 1px solid var(--line);
}

.sprint-id strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
}

.sprint-id span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sprint-body {
  padding: 1.15rem 1.25rem 1.25rem 0;
}

.sprint-body h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.sprint-body p {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.sprint-body ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--paper-dim);
  font-size: 0.92rem;
}

.sitemap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.sitemap a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  text-decoration: none;
  font-size: 0.92rem;
}

.sitemap a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.sitemap a small {
  display: block;
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 0.8rem;
}

.footer {
  padding: 2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 720px) {
  .sprint {
    grid-template-columns: 1fr;
  }

  .sprint-id {
    border-right: none;
    border-bottom: 1px solid var(--line);
    flex-direction: row;
    gap: 0.75rem;
    align-items: baseline;
  }

  .sprint-body {
    padding: 1rem 1.15rem 1.25rem;
  }

  .landing-nav {
    padding: 1rem;
  }
}

/* —— Wireframe chrome —— */
.wf-body {
  background:
    linear-gradient(90deg, rgba(212, 243, 74, 0.03) 1px, transparent 1px),
    linear-gradient(rgba(212, 243, 74, 0.03) 1px, transparent 1px),
    var(--ink);
  background-size: 24px 24px, 24px 24px, auto;
  min-height: 100vh;
}

.wf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  background: rgba(12, 18, 25, 0.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  flex-wrap: wrap;
}

.wf-badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  background: var(--accent);
  padding: 0.2rem 0.45rem;
  border-radius: 3px;
  font-weight: 700;
}

.wf-path {
  font-size: 0.85rem;
  color: var(--muted);
}

.wf-path strong {
  color: var(--paper);
}

.wf-top-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.wf-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 52px);
}

.wf-sidebar {
  background: var(--ink-2);
  border-right: 1px solid var(--line);
  padding: 1rem 0.75rem;
}

.wf-sidebar .role {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding: 0 0.5rem;
  margin-bottom: 0.5rem;
}

.wf-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.wf-nav a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 6px;
  color: var(--paper-dim);
  text-decoration: none;
  font-size: 0.92rem;
}

.wf-nav a:hover,
.wf-nav a.active {
  background: var(--panel);
  color: var(--accent);
  text-decoration: none;
}

.wf-nav .nav-section {
  margin-top: 1rem;
  padding: 0.4rem 0.65rem 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.wf-main {
  padding: 1.25rem 1.5rem 2.5rem;
}

.wf-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.wf-title h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0;
  letter-spacing: -0.03em;
}

.wf-title p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.anno {
  border: 1px dashed var(--accent-dim);
  background: rgba(212, 243, 74, 0.06);
  color: var(--accent);
  font-size: 0.8rem;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.anno strong {
  color: var(--paper);
}

.wf-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.wf-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.wf-row > * {
  flex: 1;
  min-width: 200px;
}

.field {
  margin-bottom: 0.85rem;
}

.field label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.field .box,
.fake-input {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  color: var(--paper-dim);
  font-size: 0.95rem;
  min-height: 2.2rem;
}

.fake-input.filled {
  color: var(--paper);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  text-align: left;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
}

.table th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  color: var(--paper-dim);
}

.pill-ok {
  border-color: var(--ok);
  color: var(--ok);
}

.pill-warn {
  border-color: var(--warn);
  color: var(--warn);
}

.pill-gm {
  border-color: var(--gm);
  color: var(--gm);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.stat {
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  text-align: center;
}

.stat .v {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
}

.stat .k {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.points-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.points-bar .big {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
}

.tree {
  display: grid;
  gap: 0.4rem;
}

.tree-node {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.65rem;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9rem;
}

.tree-node.locked {
  opacity: 0.55;
}

.tree-node .req {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--warn);
}

.tree-node.ok .req {
  color: var(--ok);
}

.visibility-list label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--paper-dim);
}

.visibility-list input {
  accent-color: var(--accent);
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

  .wf-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .wf-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

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

  .split-2 {
    grid-template-columns: 1fr;
  }
}

/* Auth / select screens without sidebar */
.wf-center {
  max-width: 480px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.wf-wide {
  max-width: 960px;
  margin: 1.5rem auto;
  padding: 0 1rem 2rem;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.choice {
  display: block;
  padding: 1.5rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--paper);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.15s;
}

.choice:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--paper);
}

.choice h2 {
  font-family: var(--font-display);
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.choice p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.choice.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.choice .soon {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--warn);
}

/* —— Wizard / mesa / dados (2026-07-12) —— */
.muted-sm {
  font-size: 0.8rem;
  color: var(--muted);
}

.live-header {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.live-header-id {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.avatar-ph {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--ink);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.live-stats {
  flex: 1;
  min-width: 12rem;
}

.live-budget {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  font-size: 0.85rem;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.wizard-steps span {
  font-size: 0.7rem;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.wizard-steps .done {
  border-color: var(--ok);
  color: var(--ok);
}

.wizard-steps .current {
  border-color: var(--accent);
  background: rgba(212, 243, 74, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.mesa-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .mesa-layout {
    grid-template-columns: 1fr;
  }
}

.mesa-rail {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.rail-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  margin: 0.75rem 0 0.35rem;
}

.rail-title:first-child {
  margin-top: 0;
}

.speed-order {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.85rem;
}

.speed-order li {
  margin-bottom: 0.35rem;
}

.speed-order li span {
  display: inline-block;
  min-width: 2.4rem;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.speed-order li.active {
  color: var(--paper);
  font-weight: 700;
}

.speed-order em {
  color: var(--warn);
  font-style: normal;
  font-size: 0.75rem;
}

.pc-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.pc-card {
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 11rem;
  font: inherit;
}

.pc-card.selected {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.pc-card.compact {
  width: 100%;
  margin-top: 0.35rem;
  cursor: default;
}

.pc-card span {
  font-size: 0.8rem;
  color: var(--muted);
}

.gm-adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 700px) {
  .gm-adjust-grid {
    grid-template-columns: 1fr;
  }
}

.end-dialog {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 32rem;
}

.end-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.check-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0;
  font-size: 0.95rem;
}

.step-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--paper-dim);
}

.step-list li {
  margin-bottom: 0.45rem;
}

.doc-h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 1.75rem 0 0.75rem;
}

.framed-table {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.mermaid-wrap {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow: auto;
}

.canvas-stats {
  margin-bottom: 1.25rem;
}

.callout-warn {
  border: 1px solid var(--warn);
  background: rgba(240, 164, 58, 0.08);
  color: var(--paper-dim);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.domain-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.domain {
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
  background: var(--panel);
}

.domain.billing {
  border-color: var(--warn);
}

.domain.sheet {
  border-color: var(--gm);
}

.domain.mesa {
  border-color: var(--accent);
}

.domain-flow .arrow {
  color: var(--muted);
}

.row-info td:first-child {
  color: var(--gm);
}

.row-warn td:first-child {
  color: var(--warn);
}

.theme-toggle {
  font-size: 0.8rem;
}

html[data-theme="light"] body.wf-body,
html[data-theme="light"] body.landing {
  --ink: #f4f6f8;
  --ink-2: #e8eef4;
  --panel: #ffffff;
  --line: #c5d0de;
  --muted: #5a6b7d;
  --paper: #121820;
  --paper-dim: #3a4a5c;
  --accent: #6a8f00;
  --accent-dim: #8fb82e;
  color: var(--paper);
  background: var(--ink);
}

html[data-theme="light"] .landing {
  background: linear-gradient(180deg, #eef3f8 0%, #e4ebf3 100%);
}

html[data-theme="light"] .landing-nav {
  background: rgba(244, 246, 248, 0.92);
}

html[data-theme="light"] .brand {
  color: var(--paper);
}

html[data-theme="light"] .wf-badge {
  background: var(--accent);
  color: #fff;
}

/* —— Product demo interactivity —— */
.real-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--ink-2);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.real-input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

textarea.real-input {
  resize: vertical;
  min-height: 4rem;
}

.choice {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  appearance: none;
}

.choice.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.choice.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.wizard-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 1rem 0;
}

.wizard-steps .wiz-step,
.wizard-steps span {
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-family: var(--font-body);
}

.wizard-steps .wiz-step.done,
.wizard-steps span.done {
  color: var(--paper-dim);
  border-color: var(--line);
}

.wizard-steps .wiz-step.current,
.wizard-steps span.current {
  background: var(--accent);
  color: var(--ink);
  border-color: var(--accent);
  font-weight: 700;
}

.locale-switch {
  display: inline-flex;
  gap: 0.15rem;
}

.locale-btn.active-locale {
  border-color: var(--accent);
  color: var(--accent);
}

.toast-host {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--paper);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  animation: toast-in 0.2s ease;
}

.toast-ok {
  border-color: var(--ok);
}

.toast-out {
  opacity: 0;
  transform: translateY(6px);
  transition: 0.25s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.splash-hero {
  min-height: calc(100vh - 4rem);
  align-content: center;
}

.splash-note {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.splash-tour {
  max-width: 52rem;
  margin: 0 auto 3rem;
  padding: 0 1.25rem 2rem;
}

.splash-tour h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 1rem;
}

.tour-steps {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  counter-reset: tour;
  display: grid;
  gap: 1rem;
}

.tour-steps li {
  counter-increment: tour;
  position: relative;
  padding: 1rem 1rem 1rem 3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.tour-steps li::before {
  content: counter(tour);
  position: absolute;
  left: 0.85rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.tour-steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
}

.splash-shortcuts h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

.splash-shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.splash-logged-in .splash-shortcuts {
  outline: 1px solid var(--accent);
  outline-offset: 0.5rem;
  border-radius: var(--radius);
  padding: 0.75rem;
}

.spell-tree-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spell-tree-board {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

.spell-tree-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 11rem;
  flex: 1;
}

.spell-tree-arrow {
  width: 1.5rem;
  align-self: center;
  height: 2px;
  background: var(--line);
  position: relative;
  flex: 0 0 1.5rem;
}

.spell-tree-arrow::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -4px;
  border: 5px solid transparent;
  border-left-color: var(--line);
}

.spell-node-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.65rem 0.75rem;
  background: var(--panel);
}

.spell-node-card.locked {
  opacity: 0.85;
  border-style: dashed;
}

.spell-node-btn {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  padding: 0;
}

.spell-req {
  margin: 0.4rem 0 0;
}

.spell-node {
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
}

.spell-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}

.end-diff {
  margin-top: 1.25rem;
}

.end-diff-panel {
  max-width: 40rem;
}

.end-diff-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

tr.diff-changed td:last-child {
  font-weight: 700;
  color: var(--accent);
}

.review-block {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.review-block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.review-block-head strong {
  font-family: var(--font-display);
}

.code-preview {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow: auto;
  max-height: 24rem;
  font-size: 0.8rem;
  color: var(--paper-dim);
}

button.pc-card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.speed-order li {
  cursor: pointer;
}

/* —— DEMO-001b polish —— */
.context-bar {
  margin: 0 0 1rem;
}

.context-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.context-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.85rem;
  color: var(--paper);
}

.muted-chip {
  color: var(--muted);
  max-width: 28rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--paper-dim);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}

.chip-toggle.on {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--accent);
  font-weight: 600;
}

.pc-chip {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.diary-entry {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.diary-entry:last-child {
  border-bottom: 0;
}

.diary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.35rem;
}

.test-matrix .need-cell {
  color: var(--accent);
  white-space: nowrap;
}

.test-matrix .why-row td {
  background: var(--ink-2);
  border-top: 0;
}

button.choice {
  width: 100%;
}

.active-test-host {
  margin-bottom: 1rem;
}

.active-test-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--panel));
}
