:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17332d;
  background: #f4f0e7;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; background: linear-gradient(180deg, #173f35 0 132px, #f4f0e7 132px); }
button, input, select { font: inherit; }
.shell { width: min(100%, 520px); margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 14px max(28px, env(safe-area-inset-bottom)); }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-height: 88px; padding: 6px 4px 18px; }
.brand-mark { display: block; width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center; overflow: hidden; }
.brand p { margin: 0 0 2px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; opacity: .78; }
.brand h1 { margin: 0; font-size: 1.55rem; line-height: 1.1; }
form { display: grid; gap: 10px; }
.card { background: #fff; border: 1px solid #ded8ca; border-radius: 15px; box-shadow: 0 6px 18px rgb(35 44 36 / 7%); padding: 14px; }
h2 { margin: 0 0 10px; font-size: 1rem; }
h3 { margin: 0; font-size: .9rem; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section-heading span { color: #65726d; font-size: .76rem; font-weight: 600; }
.context-grid, .money-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
label { display: grid; min-width: 0; gap: 6px; font-size: .8rem; font-weight: 750; }
input, select { width: 100%; min-height: 48px; border: 1px solid #c8c9c2; border-radius: 10px; background: #fff; color: #17332d; padding: 10px 11px; outline: none; }
input:focus, select:focus, .photo-button:focus-within { border-color: #1f745e; box-shadow: 0 0 0 3px rgb(31 116 94 / 16%); }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: #b53b31; background: #fff9f8; }
.photo-button[aria-invalid="true"] { border-color: #b53b31; background: #fff9f8; }
.money-input { display: flex; min-width: 0; align-items: center; min-height: 48px; border: 1px solid #c8c9c2; border-radius: 10px; overflow: hidden; }
.money-input:focus-within { border-color: #1f745e; box-shadow: 0 0 0 3px rgb(31 116 94 / 16%); }
.money-input b { padding-left: 11px; font-size: 1rem; }
.money-input input { min-width: 0; min-height: 46px; border: 0; box-shadow: none; padding-left: 7px; }
.site-reminder { margin: 9px 0 0; color: #5d6864; font-size: .78rem; }
.cash-summary { margin-top: 12px; border-top: 1px solid #e5e2da; padding-top: 9px; display: grid; gap: 6px; }
.cash-summary div { display: flex; min-width: 0; justify-content: space-between; align-items: center; gap: 8px; font-size: .8rem; color: #62706a; }
.cash-summary .cash-total { color: #173f35; font-size: 1.05rem; }
.cash-total strong { font-size: 1.55rem; color: #12614d; }
.extras { display: grid; gap: 10px; }
.milk-ice-section, #milk-ice-details { display: grid; gap: 10px; }
.milk-ice-section { border-top: 1px solid #e5e2da; padding-top: 10px; }
.milk-ice-toggle { grid-template-columns: 22px 1fr; align-items: center; }
.milk-ice-toggle input { width: 20px; min-height: 20px; margin: 0; accent-color: #17664f; }
.photo-button { grid-template-columns: 42px 1fr; align-items: center; min-height: 58px; border: 1px dashed #739287; border-radius: 11px; background: #f3faf7; padding: 8px 10px; cursor: pointer; }
.photo-button span:last-child { display: grid; gap: 3px; }
.photo-button small { color: #62706a; font-weight: 500; }
.camera { display: grid; place-items: center; width: 38px; height: 38px; background: #d9ede6; border-radius: 9px; font-size: 1.45rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.submit-button { width: 100%; min-height: 56px; border: 0; border-radius: 13px; background: #17664f; color: #fff; font-weight: 850; font-size: 1rem; box-shadow: 0 7px 15px rgb(23 102 79 / 24%); cursor: pointer; }
.submit-button:disabled { opacity: .62; cursor: wait; }
.field-error { min-height: 0; color: #a02923; font-size: .78rem; font-weight: 650; }
.field-error:empty { display: none; }
.warning, .network-status { padding: 10px 12px; border-radius: 10px; background: #fff3cd; color: #664d03; font-size: .82rem; font-weight: 650; }
.network-status { margin-bottom: 10px; }
.confirmation { margin-bottom: 10px; border-radius: 14px; padding: 14px; background: #e3f4eb; border: 1px solid #8dbba6; color: #174c3d; line-height: 1.4; }
.confirmation.review { background: #fff3cd; border-color: #d4b85a; color: #624d00; }
.privacy-note { margin: 0; text-align: center; color: #65726d; font-size: .72rem; }
.access-shell { max-width: 420px; }
.access-card { gap: 14px; padding: 20px; }
.access-card h2 { margin-bottom: 2px; font-size: 1.15rem; }
[hidden] { display: none !important; }

@media (max-width: 350px) {
  .shell { padding-inline: 10px; }
  .card { padding: 12px; }
  .context-grid { grid-template-columns: 1fr; }
}

@media (min-width: 700px) {
  body { background: linear-gradient(180deg, #173f35 0 150px, #f4f0e7 150px); }
  .shell { padding-top: 26px; }
}
