:root {
  --ink: #2b403a;
  --soft: #4a625b;
  --bg: #faf7f0;
  --card: #ffffff;
  --line: #e3ddce;
  --good: #23a455;
  --wait: #b7791f;
  --bad: #b42318;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
header {
  background: var(--ink); color: var(--bg); padding: 14px 16px; display: flex; justify-content: space-between; gap: 12px;
  font-family: Georgia, "Times New Roman", serif; font-size: 16px;
}
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-weight: normal; font-size: 28px; margin: 8px 0 16px; }
h2 { font-size: 18px; margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 0 0 16px; }
label { display: block; font-weight: 600; margin: 14px 0 6px; }
label:first-child { margin-top: 0; }
input, select, textarea {
  width: 100%; font: inherit; padding: 12px; border: 1.5px solid #c9c2b0; border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid #a7c4b5; border-color: var(--ink); }
button {
  font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 14px 18px; cursor: pointer;
  background: var(--ink); color: var(--bg); width: 100%; margin-top: 18px; min-height: 52px;
}
button:disabled { opacity: .55; cursor: default; }
button.secondary { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.two label { margin-top: 14px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 56px; margin: 0; font-size: 26px; padding: 6px; }
.stepper output { font-size: 28px; font-weight: 700; min-width: 2ch; text-align: center; }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.methods button { margin: 0; background: #fff; color: var(--ink); border: 1.5px solid #c9c2b0; }
.methods button[aria-checked="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.one { margin: 0; font-weight: 600; font-size: 19px; }
.msg { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.msg.good { color: var(--good); }
.msg.wait { color: var(--wait); }
.msg.bad { color: var(--bad); }
.quiet { color: var(--soft); font-size: 15px; font-weight: normal; }
.shut { font-size: 22px; text-align: center; margin: 25vh 0; }
.sentence { font-family: Georgia, "Times New Roman", serif; font-size: 21px; line-height: 1.5; margin: 0; }
.how ol { padding-left: 1.2em; margin: 0 0 12px; }
.how li { margin-bottom: 8px; }
.totals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.totals span { display: block; font-size: 14px; color: var(--soft); }
.totals strong { font-size: 26px; }
.warn { background: #fff4e5; border: 1px solid #f0c27b; border-radius: 10px; padding: 12px; }
.sales { list-style: none; padding: 0; margin: 0 0 16px; }
.sales li { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.sales .row { display: flex; justify-content: space-between; gap: 8px; }
.sales .pill { font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; align-self: flex-start; }
.pill.ok { background: #e3f4ea; color: #146c35; }
.pill.wait { background: #fff4e5; color: #8a5a10; }
.sales button { margin-top: 10px; min-height: 44px; padding: 8px; }
.foot { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.foot button { margin-top: 0; font-size: 16px; }
@media (max-width: 380px) { .two, .foot { grid-template-columns: 1fr; } }
