:root { color-scheme: light; --ink: #202020; --paper: #fff; --muted: #626262; --line: #b4b4b4; font-family: 'Chalkboard SE', 'Comic Sans MS', 'Comic Sans', cursive; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
body { margin: 0; font-size: 17px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select, input { min-height: 44px; }
button { cursor: pointer; background: white; padding: .55rem 1rem; border: 1.5px solid var(--ink); border-radius: 3px 8px 4px 6px; }
button:hover { background: #f0f0f0; }
button:disabled { cursor: default; color: var(--muted); }
:focus-visible { outline: 3px dashed var(--ink); outline-offset: 5px; }
input, textarea, select { max-width: 100%; background: white; border: 1.5px solid var(--ink); border-radius: 5px 3px 7px 4px; padding: .55rem .7rem; }
textarea { width: 100%; resize: vertical; }
h1, h2, h3, p { margin: 0 0 .75rem; }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
[hidden] { display: none !important; }
small, .muted { color: var(--muted); }
label { display: block; }
.demo-toolbar { padding: .7rem max(1rem, calc((100vw - 1120px) / 2)); border-bottom: 2px dashed var(--line); background: #f5f5f5; display: flex; gap: .65rem 1.25rem; flex-wrap: wrap; align-items: center; }
.demo-toolbar small { flex: 1; }
.demo-toolbar select { width: min(100%, 260px); }
.shell { max-width: 1120px; margin: auto; padding: 1.5rem 1rem 4rem; }
.app-header, .row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; }
.app-header { margin-bottom: 1.5rem; }
.stack { display: grid; gap: 1rem; }
.layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 1.5rem; }
.layout > *, .stack > * { min-width: 0; }
.card { padding: 1.25rem; border: 1.5px solid var(--ink); border-radius: 5px 9px 4px 8px; }
.sketch { position: relative; }
.sketch.has-outline { border-color: transparent; }
.sketch-outline { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.badge { display: inline-block; padding: .15rem .5rem; background: #ededed; color: #555; border: 0; border-radius: 2px; font-size: .85rem; line-height: 1.35; cursor: default; }
.squiggles { display: block; width: 100%; max-width: 28rem; height: auto; margin: .4rem 0 1rem; color: #777; }
.field { display: grid; gap: .3rem; }
.field input { width: 100%; }
.divider { border: 0; border-top: 1.5px dashed var(--line); margin: 1rem 0; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes li { border-bottom: 1px dashed var(--line); padding: .6rem 0; overflow-wrap: anywhere; }
.notes small { display: block; }
.empty { padding: 1rem 0; }
.status { min-height: 1.6rem; margin-top: .75rem; }
dialog { color: var(--ink); background: white; width: min(650px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); overflow: auto; padding: 1.5rem; border: 2px solid var(--ink); border-radius: 7px 4px 8px 3px; }
dialog::backdrop { background: rgb(0 0 0 / .2); }
.guide-panel { position: fixed; z-index: 100; width: min(300px, calc(100vw - 24px)); background: #edf3ef; border: 2px solid #62786a; border-radius: 6px 3px 8px 4px; padding: .7rem .9rem; font-size: 16px; box-shadow: 3px 3px 0 #dbe4de; }
.guide-panel p { margin: .25rem 0; }
.guide-panel button { font-size: 14px; padding: .3rem .6rem; }
.guide-pointer { position: absolute; left: var(--pointer-x, 30px); width: 12px; height: 12px; background: #edf3ef; border: solid #62786a; transform: rotate(45deg); }
.guide-panel[data-side='below'] .guide-pointer { top: -8px; border-width: 2px 0 0 2px; }
.guide-panel[data-side='above'] .guide-pointer { bottom: -8px; border-width: 0 2px 2px 0; }
.guide-panel[data-side='center'] .guide-pointer { display: none; }
.guide-target { outline: 2px dashed #62786a !important; outline-offset: 5px; }
.guide-count { font-size: .8rem; color: var(--muted); }
@media (max-width: 640px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .shell { padding-top: 1rem; }
  .demo-toolbar { gap: .5rem; }
  .demo-toolbar small { flex-basis: 100%; }
  .demo-toolbar select { flex: 1; min-width: 0; }
  .card { padding: 1rem; }
  dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }

.intro { max-width: 760px; padding-top: 2.5rem; }
.intro h1 { margin-top: .5rem; }
.intro h2 { margin-top: 1.5rem; }
.scenario-option { display: grid; gap: .35rem; text-align: left; padding: 1rem 1.2rem; width: 100%; }
.scenario-option strong { font-size: 1.1rem; }
.scenario-option span { font-size: .95rem; color: var(--muted); }
.free-form { border-top: 1.5px dashed var(--line); margin-top: 1.75rem; padding-top: .25rem; }
@media (max-width: 640px) { .intro { padding-top: 1.25rem; } }

/* Tour guidance can be tucked away without ending the walkthrough. */
.guide-panel .guide-minimize {
  position: absolute;
  top: 0;
  right: 0;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
}
.guide-count { padding-right: 34px; }
.guide-minimize svg, .guide-bubble svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.guide-bubble {
  position: fixed;
  z-index: 101;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  width: 48px;
  height: 48px;
  padding: 10px;
  border: 2px solid #62786a;
  border-radius: 50%;
  background: #edf3ef;
  color: #354e3e;
  box-shadow: 2px 2px 0 #dbe4de;
}
