/* Desert Stone web app: large type, large buttons, one step per screen. Right-to-left. */
:root {
  --bg: #f7f1e8; --card: #ffffff; --ink: #2b2118; --muted: #6b5a4a; --line: #e2d5c3;
  --accent: #8a5a2b; --accent-ink: #ffffff; --ok: #2f7a3e; --warn: #9a5b00; --bad: #a12a2a; --soft: #f1e6d6;
  --radius: 16px; --gap: 16px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1712; --card: #2a221b; --ink: #f4ebe0; --muted: #c4b3a0; --line: #45382c;
    --accent: #d39a5c; --accent-ink: #1d1712; --ok: #6cc07c; --warn: #e2a64a; --bad: #ef7d7d; --soft: #352a20;
  }
}
* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5;
  font-family: "Rubik", "Assistant", "Segoe UI", system-ui, -apple-system, Arial, sans-serif; }
#app { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-size: 1.6rem; margin: 8px 0 4px; }
h2 { font-size: 1.25rem; margin: 0 0 8px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.loading { text-align: center; color: var(--muted); padding: 48px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.stack > * + * { margin-top: 12px; }
label { display: block; font-weight: 600; margin-bottom: 4px; }
input, select, textarea { width: 100%; font: inherit; font-size: 1.1rem; padding: 14px; border: 2px solid var(--line);
  border-radius: 12px; background: var(--card); color: var(--ink); min-height: 56px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
input[type=checkbox] { width: 28px; height: 28px; min-height: 0; vertical-align: middle; margin-inline-end: 10px; }
input[type=time], input[type=date] { direction: ltr; text-align: right; }
.ltr { direction: ltr; text-align: right; unicode-bidi: isolate; }
button { font: inherit; font-size: 1.1rem; font-weight: 700; min-height: 56px; padding: 12px 20px; border-radius: 14px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--accent-ink); cursor: pointer; width: 100%; }
button.secondary { background: transparent; color: var(--accent); }
button.danger { background: transparent; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: none; color: var(--accent); width: auto; min-height: 0; padding: 4px; text-decoration: underline; }
button:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 10px; align-items: center; }
.row > * { flex: 1; }
.check { display: flex; align-items: center; font-weight: 600; min-height: 48px; }
.err { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); border-radius: 12px; padding: 12px; font-weight: 600; }
.ok { color: var(--ok); font-weight: 700; }
.notice { background: color-mix(in srgb, var(--warn) 14%, var(--card)); border: 2px solid var(--warn); }
.dev { background: var(--soft); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.steps { display: flex; gap: 6px; justify-content: center; margin: 4px 0 12px; }
.steps span { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.steps span.on { background: var(--accent); }
.choices { display: grid; gap: 12px; }
.choice { text-align: right; background: var(--card); color: var(--ink); border: 2px solid var(--line); font-weight: 400; }
.choice.on { border-color: var(--accent); background: var(--soft); }
.choice b { display: block; font-size: 1.2rem; }
.seg { display: flex; gap: 8px; }
.seg button { background: var(--card); color: var(--ink); border-color: var(--line); font-weight: 600; }
.seg button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill { display: inline-block; border-radius: 999px; padding: 2px 12px; font-size: .9rem; font-weight: 700; background: var(--soft); }
.pill.on { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
ul.list { list-style: none; padding: 0; margin: 0; }
ul.list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ul.list li:last-child { border-bottom: none; }
ul.list li button { width: auto; min-height: 44px; padding: 6px 14px; font-size: 1rem; }
ul.examples { padding-inline-start: 20px; } ul.examples li { margin: 4px 0; }
.menu button { text-align: right; background: var(--card); color: var(--ink); border-color: var(--line); margin-top: 10px;
  display: flex; justify-content: space-between; }
.menu button::after { content: "‹"; color: var(--muted); }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.top button { width: auto; }
