/* Visual contract: system-ui only; dark default; center the page; desktop ≥720px
   is first-class, not a left-glued phone column. No webfonts, SPA, JS layout,
   backdrop-filter, or icon fonts. 44px form controls. Status not color-only.
   Cool night / morning air; sea accent. Not lodge brown. */
:root {
  color-scheme: dark;
  --bg: #12171d;
  --fg: #eef3f8;
  --muted: #93a0ae;
  --line: #4a5a6a;
  --card: #1a222b;
  --ok: #4ecf8a;
  --err: #f07178;
  --pending: #e8c04a;
  --focus: #4fd0c2;
  --accent: #3db8a8;
  --accent-fg: #0c1418;
  --accent-mute: #2d6f68;
  --wash: #171d24;
  --measure: 42rem;
  --measure-wide: 72rem;
  --radius: 0.5rem;
  --page-pad: 1.5rem;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6f9;
  --fg: #1a222c;
  --muted: #4a5868;
  --line: #5c6d7e;
  --card: #ffffff;
  --ok: #0d6b3d;
  --err: #b4233a;
  --pending: #8a5800;
  --focus: #0d7a72;
  --accent: #0d7a72;
  --accent-fg: #f3f6f9;
  --accent-mute: #8eb8b3;
  --wash: #e7eef4;
}
html[data-theme="myspace"] {
  color-scheme: light;
  --bg: #d4eaf6;
  --fg: #000000;
  --muted: #2a3366;
  --line: #3d5a88;
  --card: #ffffff;
  --ok: #0a5c2e;
  --err: #a10f22;
  --pending: #8a4b00;
  --focus: #003399;
  --accent: #c82e00;
  --accent-fg: #ffffff;
  --accent-mute: #ff9966;
  --wash: #c5dff0;
  --radius: 0;
}
html[data-theme="neopets"] {
  color-scheme: light;
  --bg: #ffe135;
  --fg: #1c2a0a;
  --muted: #3a3f10;
  --line: #2f6410;
  --card: #ffffff;
  --ok: #14520f;
  --err: #9b1c1c;
  --pending: #6a4000;
  --focus: #2f6410;
  --accent: #2f6410;
  --accent-fg: #fff04a;
  --accent-mute: #7cb83a;
  --wash: #fff6a0;
  --radius: 0.35rem;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 16px/1.5 system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  padding:
    env(safe-area-inset-top)
    env(safe-area-inset-right)
    env(safe-area-inset-bottom)
    env(safe-area-inset-left);
}
.skip {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.skip:focus-visible {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  min-height: 44px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
main a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.bar {
  width: 100%;
  margin-inline: auto;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  width: min(var(--measure-wide), 100%);
  margin-inline: auto;
  padding: 0.75rem var(--page-pad);
  min-height: 3.75rem;
}
.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0;
  font-size: 1.0625rem;
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
}
.brand::after {
  content: "";
  display: block;
  width: 2.75rem;
  height: 2px;
  background: var(--accent, #3db8a8);
}
.bar details {
  min-width: 0;
}
.bar details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.03em;
}
@media (min-width: 480px) {
  .bar details {
    display: contents;
  }
  .bar details::details-content {
    display: contents;
    content-visibility: visible;
  }
  .bar details summary {
    display: none;
  }
}
nav { display: flex; gap: 0.5rem; flex-wrap: wrap; }
nav a {
  color: inherit;
  text-decoration: none;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  display: inline-flex;
  align-items: center;
}
header.bar nav a {
  color: var(--muted);
  border-radius: var(--radius);
  padding: 0.5rem 0.85rem;
  transition: color 0.15s ease, background-color 0.15s ease;
}
header.bar nav a:hover,
header.bar nav a:focus-visible {
  color: var(--fg);
  background: color-mix(in srgb, var(--accent-mute, var(--accent, #3db8a8)) 28%, transparent);
}
header.bar nav a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent, #3db8a8);
}
main {
  padding: var(--page-pad);
  max-width: var(--measure);
  margin-inline: auto;
}
main.wide {
  max-width: var(--measure-wide);
}
@media (min-width: 720px) {
  main:has(.auth) {
    max-width: none;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 1.25rem;
    min-height: calc(100dvh - 3.5rem);
  }
  .auth:has(.explainer) {
    max-width: 46rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem 2.5rem;
    padding: 2.5rem 2.25rem;
    align-items: center;
  }
  .auth:has(.explainer) .explainer {
    grid-column: 1;
    grid-row: 1 / span 8;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-inline-end: 1.5rem;
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: none;
    border-inline-end: 1px solid var(--line);
  }
  .auth:has(.explainer) > :not(.explainer) {
    grid-column: 2;
  }
}
main.wide h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
  border-top: 1px solid var(--line);
  position: sticky;
  top: 3.75rem;
  z-index: 4;
  background: var(--bg);
}
main.wide h1 + h2 { margin-top: 1.25rem; padding-top: 0; border-top: none; }
main:not(.wide) h2 {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
main:not(.wide) .hero + h2,
main:not(.wide) .ok + h2,
main:not(.wide) .pending-shares + h2 {
  margin-top: 1.25rem;
}
main .auth h2,
.pending-shares h2,
.terms h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
main.wide > form,
main.wide > ul,
main.wide > ol {
  max-width: var(--measure);
}
.panel {
  max-width: var(--measure);
  min-width: 0;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.panel > form {
  margin: 0;
}
.panel > form + form {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.auth {
  width: 100%;
  max-width: 24rem;
  margin-inline: auto;
  padding: 1.75rem 1.5rem 2rem;
  border: 1px solid var(--line);
  border-top-color: var(--accent-mute, var(--accent, #3db8a8));
  background: var(--wash, var(--card));
  border-radius: var(--radius);
}
.explainer {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.7;
  padding-bottom: 1.35rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.explainer h1 {
  color: var(--fg);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  line-height: 1.05;
}
.explainer p {
  margin: 0 0 1rem;
}
.explainer p:last-child {
  margin-bottom: 0;
  font-size: 0.92em;
  line-height: 1.65;
}
.auth .action {
  min-width: 0;
}
.action form {
  margin-top: 0.5rem;
  margin-bottom: 0;
}
.action h2 {
  letter-spacing: -0.03em;
}
.action input:not([type="hidden"]):not([type="checkbox"]) {
  background: var(--bg);
  max-width: none;
}
.action .primary {
  width: 100%;
  max-width: 24rem;
  background: var(--accent, #3db8a8);
  color: var(--accent-fg, #0c1418);
  border: 2px solid var(--accent-fg, #0c1418);
}
.action .primary:hover {
  filter: brightness(1.1);
}
.action .primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.action input:not([type="hidden"]):hover {
  border-color: var(--muted);
}
.action input:not([type="hidden"]):focus-visible {
  border-color: var(--accent, #3db8a8);
}
h1, h2, h3, h4, h5 {
  line-height: 1.2;
  margin: 1.25rem 0 0.75rem;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h1:first-child, h2:first-child, h3:first-child { margin-top: 0; }
label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 0.75rem 0;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0 0.55rem;
  margin: 0.05rem -0.35rem;
  border-radius: 0.25rem;
  cursor: pointer;
}
.check:hover,
.check:focus-within {
  background: var(--wash, var(--bg));
}
input:not([type="hidden"]):not([type="checkbox"]),
select,
textarea {
  width: 100%;
  max-width: 24rem;
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
input:not([type="hidden"]):not([type="checkbox"]):hover,
select:hover,
textarea:hover {
  border-color: var(--accent-mute, var(--accent, var(--focus)));
}
input:not([type="hidden"]):not([type="checkbox"]):focus-visible,
select:focus-visible,
textarea:focus-visible {
  border-color: var(--focus);
}
input[type="datetime-local"] { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
.check input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: auto;
  padding: 0;
  border: none;
  background: none;
  accent-color: var(--accent, var(--focus));
  flex-shrink: 0;
}
input, select, textarea, button {
  font: inherit;
  padding: 0.625rem 0.75rem;
  min-height: 44px;
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
textarea {
  min-height: 6rem;
  resize: vertical;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--fg);
  min-height: 44px;
  border-radius: var(--radius);
}
button:hover:not(:disabled) {
  border-color: var(--accent-mute, var(--accent, var(--focus)));
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
main button {
  width: fit-content;
  max-width: 100%;
}
.bar form {
  margin: 0;
  width: auto;
  flex-direction: row;
}
@media (min-width: 720px) {
  .bar-inner {
    flex-wrap: nowrap;
    min-height: 4rem;
    padding-block: 0.55rem;
  }
  header.bar nav {
    flex-direction: row;
    flex: 1 1 auto;
    justify-content: center;
    gap: 0.15rem 0.25rem;
  }
  .bar form {
    margin-inline-start: auto;
  }
  .bar form + form {
    margin-inline-start: 0;
  }
}
.bar button {
  width: auto;
  align-self: center;
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  padding: 0.5rem 0.75rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.bar button:hover,
.bar button:focus-visible {
  color: var(--fg);
  border-color: var(--line);
  background: transparent;
}
.bar .theme {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  width: auto;
}
.bar .theme label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  min-height: 44px;
}
.bar .theme select {
  width: auto;
  max-width: 10rem;
  min-width: 8rem;
}
html[data-theme="myspace"] body {
  font-family: Verdana, Tahoma, sans-serif;
}
html[data-theme="myspace"] .bar {
  background: #000000;
  border-bottom: 3px solid #ff4300;
}
html[data-theme="myspace"] .brand {
  font-family: cursive, Verdana, sans-serif;
  color: #ff4300;
}
html[data-theme="myspace"] header.bar nav a,
html[data-theme="myspace"] .bar button,
html[data-theme="myspace"] .bar .theme label {
  color: #ffffff;
}
html[data-theme="myspace"] header.bar nav a[aria-current="page"] {
  color: #ff4300;
  box-shadow: inset 0 -2px 0 #ff4300;
}
html[data-theme="myspace"] .bar .theme select {
  background: #ffffff;
  color: #000000;
}
html[data-theme="myspace"] .auth,
html[data-theme="myspace"] .panel,
html[data-theme="myspace"] .room {
  background: #ffffff;
  border: 1px solid #6699cc;
  box-shadow: 2px 2px 0 #99c2e0;
}
html[data-theme="neopets"] body {
  font-family: Verdana, Geneva, sans-serif;
}
html[data-theme="neopets"] .bar {
  background: #ffe135;
  border-bottom: 0;
}
html[data-theme="neopets"] .brand,
html[data-theme="neopets"] h1,
html[data-theme="neopets"] h2,
html[data-theme="neopets"] h3 {
  font-family: Verdana, Geneva, sans-serif;
  color: #2d5c0f;
}
html[data-theme="neopets"] .bar .theme label,
html[data-theme="neopets"] .bar button {
  color: #2d5c0f;
}
html[data-theme="neopets"] header.bar nav a {
  background: #2f6410;
  color: #fff04a;
  border: 2px outset #5aa01e;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
}
html[data-theme="neopets"] header.bar nav a:hover,
html[data-theme="neopets"] header.bar nav a:focus-visible {
  background: #3d7a14;
  color: #fff8a0;
}
html[data-theme="neopets"] header.bar nav a[aria-current="page"] {
  background: #1e420a;
  color: #fff04a;
  box-shadow: none;
  border-style: inset;
}
html[data-theme="neopets"] .bar .theme select {
  background: #ffffff;
  color: #1c2a0a;
  border: 2px solid #2f6410;
}
html[data-theme="neopets"] .auth,
html[data-theme="neopets"] .panel,
html[data-theme="neopets"] .room {
  border: 2px solid #2f6410;
  background: #ffffff;
}
.primary {
  font-weight: 600;
  background: var(--accent, var(--fg));
  color: var(--accent-fg, var(--bg));
  border: 2px solid var(--accent, var(--fg));
  width: 100%;
  max-width: 24rem;
}
.primary:hover:not(:disabled) {
  border-color: var(--accent-mute, var(--accent, var(--fg)));
}
.danger {
  border: 2px dashed var(--err);
}
main.wide .primary {
  background: var(--accent, #3db8a8);
  color: var(--accent-fg, #0c1418);
  border: 2px solid var(--accent-mute, var(--accent, #3db8a8));
  font-weight: 600;
}
main.wide .primary:hover {
  background: var(--accent-mute, #2d6f68);
}
main.wide .primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
main.wide .danger {
  background: transparent;
  color: var(--err);
  border: 2px dashed var(--err);
}
main.wide .danger:hover {
  background: color-mix(in srgb, var(--err) 12%, transparent);
}
main.wide .danger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.auth fieldset {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.45rem 0.4rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.auth legend {
  padding: 0 0.5rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--wash, var(--card));
  font-size: 0.9rem;
}
.auth fieldset > label:not(.check) {
  margin: 0.35rem 0 0;
  padding: 0.25rem 0.85rem 0.45rem;
}
.auth .check {
  min-height: 52px;
  margin: 0;
  padding: 0.85rem 0.9rem;
  border-radius: calc(var(--radius) - 0.1rem);
  align-items: flex-start;
  gap: 0.9rem;
  cursor: pointer;
}
.auth .check input[type="checkbox"] {
  margin-top: 0.15rem;
}
.auth .check:hover {
  background: var(--card);
}
.auth .check:focus-within {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.auth .check:focus-within input:focus-visible {
  outline: none;
}
.auth header {
  margin: 0 0 1.35rem;
}
.auth header h1 {
  margin: 0 0 0.3rem;
  letter-spacing: -0.03em;
}
.auth header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.auth h1 {
  letter-spacing: -0.02em;
}
.auth .primary {
  background: var(--accent, var(--focus));
  color: var(--accent-fg, var(--bg));
  border-color: var(--accent, var(--focus));
  border-style: solid;
  width: 100%;
  max-width: none;
}
.auth .primary:hover,
.auth button.primary:hover:not(:disabled) {
  background: var(--fg);
  background-color: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.auth .primary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.auth .danger {
  background: transparent;
  color: var(--muted);
  border: 2px dashed var(--err);
  font-weight: 500;
  width: auto;
  max-width: 100%;
  align-self: center;
  padding-inline: 1.15rem;
}
.auth .danger:hover,
.auth button.danger:hover {
  color: var(--err);
  background: transparent;
  border-style: dashed;
}
.auth .danger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.auth form {
  margin-top: 0.5rem;
  gap: 1rem;
}
.auth .meta + p a {
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-underline-offset: 0.18em;
}
form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1rem 0;
}
fieldset {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-mute, var(--line));
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.85rem 1.1rem 1.1rem;
  margin: 0;
  min-width: 0;
}
legend {
  padding: 0.15rem 0.55rem;
  font-weight: 700;
  color: var(--accent, var(--muted));
  background: var(--wash, var(--bg));
  border-radius: 0.25rem;
}
fieldset.diet {
  border-left: 3px solid var(--accent-mute, var(--line));
}
fieldset.diet legend {
  color: var(--accent, var(--muted));
}
fieldset.texts {
  border-left: 3px solid var(--focus);
}
fieldset.texts legend {
  color: var(--focus);
}
.hint, .meta, .estimate, .split { color: var(--muted); }
.hint {
  font-size: 0.8125rem;
  margin: 0;
}
.quiet {
  color: var(--muted);
  font-size: 0.9375rem;
}
.split {
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.hero {
  margin: 0 0 1.5rem;
}
.hero h1 {
  margin-top: 0;
  margin-bottom: 0.35rem;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.hero .meta {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.hero .estimate {
  margin: 0;
  border: 1px solid var(--accent-mute);
  border-radius: var(--radius);
  padding: 0 0.85rem 0.75rem;
  background: var(--card);
}
.hero .estimate strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--accent);
}
.hero .estimate + p {
  margin: 0.75rem 0 0;
}
.hero a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  width: fit-content;
}
.hero a:hover {
  background: var(--accent);
  color: var(--accent-fg);
}
.hero a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (min-width: 720px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: baseline;
    column-gap: 2.5rem;
  }
  .hero h1,
  .hero .estimate strong {
    font-size: 2.5rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
  }
}
.estimate {
  border: 1px solid var(--accent-mute, var(--accent, #3db8a8));
  border-left-width: 0.35rem;
  border-left-color: var(--accent, #3db8a8);
  background: color-mix(in srgb, var(--accent, #3db8a8) 14%, var(--wash, var(--bg)));
  padding: 0.75rem 1rem;
}
.estimate strong {
  color: var(--accent, #3db8a8);
  font-variant-numeric: tabular-nums;
}
.pending-shares {
  color: var(--pending);
  border: 1px dashed var(--pending);
  border-left-width: 0.35rem;
  background: color-mix(in srgb, var(--pending) 14%, var(--wash, var(--bg)));
  padding: 0.75rem 1rem;
  margin: 0 0 1.25rem;
}
.warn { color: var(--pending); }
.error {
  color: var(--err);
  border: 1px solid var(--err);
  border-left-width: 0.35rem;
  background: color-mix(in srgb, var(--err) 16%, var(--wash, var(--bg)));
  padding: 0.75rem 1rem;
}
.ok {
  color: var(--ok);
  border: 1px solid var(--ok);
  border-left-width: 0.35rem;
  background: color-mix(in srgb, var(--ok) 16%, var(--wash, var(--bg)));
  padding: 0.75rem 1rem;
}
.switcher {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.switcher a {
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: transparent;
}
.switcher a:hover {
  border-color: var(--accent-mute, var(--focus));
  background: var(--accent-mute, var(--card));
}
.switcher a:focus-visible {
  border-color: var(--accent, var(--focus));
}
.switcher a[aria-current="page"] {
  background: var(--accent-mute, var(--card));
  border-color: var(--accent, var(--fg));
  border-width: 2px;
  font-weight: 600;
}
.switcher a[aria-current="page"]:hover,
.switcher a[aria-current="page"]:focus-visible {
  background: var(--accent-mute, var(--card));
  border-color: var(--accent, var(--fg));
}
.itin {
  list-style: none;
  margin: 0.75rem 0 1.5rem;
  padding: 0.2rem 0 0.3rem 0;
  border-left: 2px solid var(--accent-mute, var(--line));
}
.itin li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem 1.25rem;
  margin: 0 0 1.2rem;
  padding: 0 0 0 1.15rem;
  position: relative;
}
.itin li::before {
  content: "";
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--accent, var(--focus));
}
.itin time {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.itin strong { font-weight: 700; }
.itin li > span {
  display: block;
  color: var(--muted);
  font-size: 0.8125rem;
}
@media (min-width: 720px) {
  .itin li {
    grid-template-columns: 9rem minmax(0, 1fr);
    align-items: baseline;
  }
  .itin time {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .itin strong {
    grid-column: 2;
    grid-row: 1;
  }
  .itin li > span {
    grid-column: 2;
    grid-row: 2;
  }
}
.stay {
  margin: 1.5rem 0 2rem;
  border-radius: var(--radius);
}
.stay + .stay {
  margin-top: 2.5rem;
}
.stay h3 {
  margin-top: 0;
  letter-spacing: -0.02em;
}
.stay-notes {
  color: var(--muted);
  margin: 0 0 1rem;
}
.floor {
  margin: 1.25rem 0;
  padding: 0.85rem 1.1rem 1.2rem 1.15rem;
  background: var(--wash);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
}
.floor h4 {
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.rooms, .cars, .addons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.rooms {
  align-items: stretch;
}
@media (min-width: 700px) {
  .rooms {
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 1.25rem;
  }
  .cars, .addons {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  }
}
.addons {
  list-style: none;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  gap: 0.75rem;
}
.addons li {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.addons li:hover {
  border-color: var(--accent-mute, var(--focus));
}
.addons li:focus-within {
  border-color: var(--accent-mute, var(--focus));
}
.addons li.picked {
  border: 2px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--card));
}
.addons li.done {
  border: 2px solid var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--card));
}
.addons .addon-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}
.addons .addon-name {
  font-weight: 600;
}
.addons .price {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.addons .addon-meta,
.addons .addon-state {
  margin: 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.addons .addon-state {
  font-weight: 600;
  color: var(--ok);
}
.addons form {
  flex-direction: column;
  flex-wrap: wrap;
  align-items: stretch;
  margin: 0;
  gap: 0.5rem;
}
.addons .check {
  margin: 0;
  flex: none;
  width: 100%;
  min-height: 44px;
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius);
}
.addons .check:hover {
  background: var(--accent-mute, var(--wash, var(--card)));
}
.addons .primary {
  width: fit-content;
  max-width: 100%;
}
.addons .addon-unpick {
  margin: 0;
}
.addons .addon-unpick button {
  width: fit-content;
  max-width: 100%;
  background: transparent;
  color: var(--muted);
}
.addons .addon-unpick button:hover,
.addons .addon-unpick button:focus-visible {
  color: var(--fg);
  border-color: var(--line);
}
.room, .car, .bed {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius);
}
.room, .car {
  content-visibility: auto;
  contain-intrinsic-size: auto 12rem;
}
.room {
  height: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 0.35rem;
  background: var(--card);
  border-radius: var(--radius);
  content-visibility: visible;
}
.room h5 {
  margin-top: 0;
  margin-bottom: 0.1rem;
  letter-spacing: -0.02em;
}
.room-notes {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
  margin: 0 0 0.15rem;
}
ol.itin li {
  content-visibility: auto;
  contain-intrinsic-size: auto 3.5rem;
}
.bed {
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.bed:not(:has(li)) {
  border: 1px dashed var(--line);
  background: var(--bg);
  color: var(--muted);
}
.bed:has(li) {
  border: 1px solid var(--line);
  background: var(--bg);
}
.room > .bed:first-of-type { margin-top: 0.5rem; }
.bed > p:first-child {
  font-weight: 600;
  margin-top: 0;
}
.bed:not(:has(li)) > p:first-child {
  font-weight: 500;
}
.room ul, .car ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
}
.room li {
  margin: 0.375rem 0;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) - 2px);
  font-weight: 600;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.room li.pending {
  color: var(--pending);
  border: 1px dashed var(--pending);
  background: color-mix(in srgb, var(--pending) 14%, var(--wash, var(--bg)));
  font-weight: 500;
  padding: 0.5rem 0.75rem;
}
.cars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.car {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: var(--radius);
}
.car h3 { margin: 0; }
.car .route {
  margin: 0;
  color: var(--muted);
  padding: 0.15rem 0 0.7rem 0.85rem;
  border-left: 3px solid var(--accent-mute, var(--line));
  border-bottom: 1px solid var(--accent-mute, var(--line));
  font-variant-numeric: tabular-nums;
}
.car .route span {
  color: var(--fg);
  font-weight: 600;
}
.car .route time {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.seats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.car li {
  margin: 0;
  border: 1px solid var(--line);
  padding: 0.5rem 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: 0.35rem;
  background: var(--bg);
}
.car li.driver {
  border-left: 3px solid var(--accent, var(--fg));
  font-weight: 600;
}
.car li:empty,
.car li.open {
  color: var(--muted);
  background: transparent;
  border-style: dashed;
  font-weight: 400;
}
.car li:empty::before {
  content: "open";
}
.car .split {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}
.car .actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.car .actions form {
  margin: 0;
}
.car .actions button {
  width: 100%;
}
.car .actions button:hover {
  border-color: var(--accent-mute, var(--line));
  background: var(--wash, var(--bg));
}
.car .actions button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.car .actions .primary {
  border-width: 2px;
  border-color: var(--fg);
  font-weight: 600;
}
.car .actions .share {
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line);
  color: var(--muted);
}
.car .actions .share button {
  font-weight: 400;
  border-width: 1px;
  border-color: var(--line);
  background: var(--card);
  color: var(--fg);
}
@media (min-width: 720px) {
  .car {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
    column-gap: 1.25rem;
    row-gap: 0.5rem;
    align-items: start;
  }
  .car:not(:has(.actions)) { grid-template-columns: 1fr; }
  .car h3,
  .car .route { grid-column: 1 / -1; }
  .seats,
  .car .split { grid-column: 1; }
  .car .actions {
    grid-column: 2;
    grid-row: 3 / -1;
    border-left: 1px solid var(--accent-mute, var(--line));
    padding-left: 1.25rem;
    align-self: stretch;
  }
  .car:not(:has(.seats li)) .actions {
    grid-column: 1 / -1;
    grid-row: auto;
    border-left: none;
    padding-left: 0;
  }
}
li.pending {
  color: var(--pending);
  border: 1px dashed var(--pending);
  background: color-mix(in srgb, var(--pending) 14%, var(--wash, var(--bg)));
  padding: 0.5rem 0.75rem;
}
.pending-slot {
  border: 1px dashed var(--pending);
  outline: 2px dashed var(--pending);
  outline-offset: 2px;
  background: color-mix(in srgb, var(--pending) 12%, var(--wash, var(--bg)));
  padding: 1rem;
  content-visibility: visible;
}
.share { margin-top: 0.75rem; }
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.table-wrap table { min-width: 36rem; }
.table-wrap thead th {
  background: var(--wash);
  font-weight: 600;
}
.table-wrap th,
.table-wrap td {
  font-variant-numeric: tabular-nums;
}
main.wide .table-wrap form {
  margin: 0.25rem 0;
  gap: 0.35rem;
}
table { width: 100%; border-collapse: collapse; }
th, td {
  text-align: left;
  padding: 0.625rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.cal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
  justify-content: space-between;
  align-items: center;
}
.cal-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.6rem;
  color: inherit;
}
.cal-nav a:first-child,
.cal-nav a:last-child { font-weight: 600; }
.cal-nav a:nth-child(2) { color: var(--muted); }
.cal-nav a:hover {
  color: var(--accent, #3db8a8);
  text-decoration: underline;
}
.cal-grid { table-layout: fixed; }
.cal-grid th, .cal-grid td {
  border: 1px solid var(--line);
  width: 14.28%;
}
.cal-grid th {
  text-align: center;
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--wash, var(--bg));
  padding: 0.45rem 0.2rem;
}
.cal-grid abbr { text-decoration: none; }
.cal-grid td {
  height: 6.5rem;
  min-height: 6.5rem;
  padding: 0.5rem 0.4rem;
  background: var(--card);
  vertical-align: top;
}
.cal-day {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  line-height: 1.2;
}
.cal-grid td.cal-other {
  background: var(--wash, var(--bg));
  color: var(--muted);
}
.cal-other .cal-day { opacity: 0.45; }
.cal-today {
  outline: 2px solid var(--accent, #3db8a8);
  outline-offset: -3px;
}
.cal-today .cal-day {
  font-weight: 700;
  color: var(--fg);
  font-size: 1rem;
}
.cal-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cal-events a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.4rem;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  border-radius: 0.25rem;
  background: var(--wash, var(--card));
  border: 1px solid var(--accent-mute, var(--line));
}
.cal-events a:hover {
  border-color: var(--accent, #3db8a8);
  background: var(--card);
}
.empty {
  border: 1px dashed var(--line);
  padding: 0.75rem 1rem;
  color: var(--muted);
  background: var(--wash, color-mix(in srgb, var(--line) 10%, var(--bg)));
}
.list {
  list-style: none;
  padding: 0;
  margin: 1.25rem auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-width: var(--measure);
  width: 100%;
}
.list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.list li:hover {
  border-color: var(--accent-mute);
}
.list li:focus-within {
  border-color: var(--accent-mute);
}
.list a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.2rem;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
  flex: 1 1 12rem;
  min-width: 0;
}
.list a strong {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
}
.list a span {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.875rem;
}
.list form {
  margin: 0;
  flex-direction: row;
  width: auto;
}
.list button {
  width: auto;
  min-width: 5.5rem;
  min-height: 44px;
  font-weight: 600;
  border-color: var(--accent-mute);
}
.pay-facts {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 1.5rem;
  padding: 1.25rem 1.35rem;
  margin: 1.25rem 0;
  font-size: 1.25rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent, #3db8a8);
  border-radius: var(--radius);
  background: var(--wash, var(--card));
}
.pay-facts li {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.pay-facts span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pay-facts strong { word-break: break-word; }
.pay-facts .pay-amount {
  color: var(--accent, #3db8a8);
  font-size: 1.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.pay-facts .pay-email {
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.pay-facts code {
  display: inline-block;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--accent-mute, var(--accent, #3db8a8));
  background: var(--card);
  color: var(--fg);
  word-break: break-word;
  border-radius: var(--radius);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 720px) {
  .pay-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }
}
code {
  font-size: 0.95em;
  word-break: break-word;
  padding: 0.35rem 0.5rem;
  background: var(--card);
  border: 1px solid var(--line);
}
.terms {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent-mute, var(--accent, #3db8a8));
  background: var(--wash, var(--card));
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
  border-radius: var(--radius);
  line-height: 1.65;
  max-width: 36rem;
}
main .terms h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
.terms p {
  margin: 0 0 0.85rem;
  color: var(--fg);
}
.terms p:last-child { margin-bottom: 0; }
button.pay-send {
  background: var(--accent, #3db8a8);
  color: var(--accent-fg, var(--bg));
  border: 2px solid var(--accent, #3db8a8);
  font-weight: 600;
}
button.pay-send:hover {
  border-color: var(--fg);
}
button.pay-send:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
@media (max-width: 479px) {
  .bar-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }
  .brand {
    align-self: flex-start;
  }
  .bar form,
  .bar button {
    width: 100%;
    text-align: start;
  }
  header.bar nav a[aria-current="page"] {
    box-shadow: inset 2px 0 0 var(--accent, #3db8a8);
  }
  nav { flex-direction: column; }
  nav a { width: 100%; }
  .cal-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0.15rem;
  }
  .cal-nav a {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    padding: 0.35rem 0.25rem;
    font-size: 0.85rem;
  }
  .switcher {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .switcher a { flex: 0 0 auto; width: auto; }
  input:not([type="hidden"]):not([type="checkbox"]),
  select,
  textarea {
    max-width: none;
  }
  .cal-grid th, .cal-grid td {
    padding: 0.25rem 0.15rem;
  }
  .cal-grid .cal-events a {
    word-break: break-word;
    min-width: 0;
    font-size: 0.75rem;
    padding: 0.2rem 0.2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
