:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #646464;
  --line: #dedede;
  --surface: #ffffff;
  --page: #f4f2ee;
  --accent: #a82f25;
  --accent-dark: #7e211a;
  --soft: #f8e9e6;
  --warning: #fff5d8;
  --error: #a32121;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

.shell {
  width: min(100% - 28px, 680px);
  margin: 0 auto;
  padding: 28px 0 48px;
}

.intro { padding: 8px 0 20px; }
.intro > p:last-child { margin-bottom: 0; color: var(--muted); }
.eyebrow { margin: 0 0 6px; color: var(--accent); font-size: 13px; font-weight: 700; }
h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.2; }
h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.3; }
p { line-height: 1.65; }

.demo-notice,
section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.demo-notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
}

section { padding: 22px; }
section + section { margin-top: 16px; }
label, legend { display: block; margin-bottom: 8px; font-weight: 650; }
input, select, textarea, button { width: 100%; min-height: 48px; font: inherit; }

input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(168, 47, 37, .18);
  border-color: var(--accent);
}

fieldset { margin: 18px 0 0; padding: 0; border: 0; }
.segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

.segments label {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: center;
  font-weight: 500;
}

.segments label:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.segments input { width: auto; min-height: auto; margin-right: 4px; }

.primary,
.secondary {
  margin-top: 14px;
  border-radius: 6px;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.primary { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.secondary { border: 1px solid var(--accent); background: #fff; color: var(--accent); }
.secondary:hover { background: var(--soft); }
button:disabled { cursor: not-allowed; background: #8b8b8b; border-color: #8b8b8b; color: #fff; }

.error {
  min-height: 20px;
  margin: 4px 0 8px;
  color: var(--error);
  font-size: 13px;
}

.room-tip { padding: 12px; background: var(--warning); border-left: 4px solid #b07a00; }
.fine-print { color: var(--muted); font-size: 13px; }
.handoff-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.handoff-panel h3 { margin: 0 0 8px; font-size: 18px; }
.handoff-panel > p { margin-top: 0; }
.summary { margin: 16px 0; padding: 12px; background: var(--soft); border-radius: 6px; line-height: 1.6; }
.link-button { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.link-button.is-disabled { border-color: #8b8b8b; background: #f3f3f3; color: #777; cursor: not-allowed; }
[hidden] { display: none !important; }

@media (min-width: 720px) {
  .shell { padding-top: 48px; }
  section { padding: 30px; }
}
