/* Brew 0.2 — a quiet counter, a generous cylindrical brewing chamber. */
:root { --faint: #b9aaa0; --brand-footer-background: #14100d; --brand-footer-text: #f6efe7; --brand-footer-muted: #b9aaa0; }
html, body { height: auto; min-height: 100%; }
body { overflow: auto; background: radial-gradient(ellipse at 50% 28%, #211710 0, #14100d 65%); }
[hidden] { display: none !important; }
.appPage { min-height: 100dvh; display: flex; flex-direction: column; }
nav { position: relative; flex-shrink: 0; width: min(100%, 1160px); margin: 0 auto; padding: calc(1.4rem + env(safe-area-inset-top)) 1.8rem 1rem; }
.tab, #soundBtn, #settingsBtn { min-height: 44px; min-width: 44px; }
#timerStage { flex: 1; width: 100%; padding: 0 24px 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.brewHeader { text-align: center; margin: 0 0 24px; }
.brewHeader h1, .wizardBrand { font-size: 2.7rem; font-weight: 300; letter-spacing: -.06em; }
.brewHeader h1 span, .wizardBrand span { color: var(--crema); }
#beanSummary { margin-top: 8px; color: var(--faint); font: 12px/1.6 "IBM Plex Mono", monospace; max-width: 36rem; overflow-wrap: anywhere; }
#timerView { isolation: isolate; width: min(100%, 580px); height: clamp(410px, 57dvh, 620px); min-height: 410px; flex-shrink: 0; overflow: hidden; border: 1px solid #74533b; border-radius: 76px 76px 66px 66px / 46px 46px 40px 40px; background: linear-gradient(90deg, #ffffff05, #ffffff01 25%, #ffffff00 65%, #ffffff04); box-shadow: inset 12px 0 25px #e7ae7410, inset -14px 0 28px #0005, 0 28px 65px #0003; gap: 1.15rem; padding: 55px 42px 40px; }
#timerView > :not(#fill) { z-index: 1; }
#fill { position: absolute; z-index: -1; background: linear-gradient(90deg, #462a1b, #553420 48%, #3d2518); transition: height .25s linear; }
.vesselRim { position: absolute; left: 16px; right: 16px; top: 13px; height: 34px; border: 1px solid #bd8c623d; border-radius: 50%; pointer-events: none; }
.measureMarks { position: absolute; inset: 80px auto 55px 22px; display: flex; flex-direction: column; justify-content: space-around; pointer-events: none; color: #b5876266; font: 11px "IBM Plex Mono", monospace; }
.measureMarks span::after { content: ""; display: inline-block; width: 12px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 8px; }
#stepLabel { color: var(--faint); font-size: 10px; letter-spacing: .18em; }
#phase { font-size: .72rem; line-height: 1.5; letter-spacing: .25em; }
#time { font-size: clamp(5rem, 16vw, 9.5rem); }
#hint { font-size: .63rem; line-height: 1.8; letter-spacing: .14em; }
#firstHint { max-width: 270px; font-size: .55rem; line-height: 1.7; text-align: center; letter-spacing: .1em; }
#cancelBtn { min-height: 44px; border-radius: 24px; }
#recipeSummary { margin-top: 22px; font: 11px/1.8 "IBM Plex Mono", monospace; color: var(--faint); text-align: center; }
#fact { position: static; transform: none; min-height: 48px; max-width: 30rem; width: 100%; font-size: .85rem; margin-top: 16px; }
#transitionRing { width: 110px; height: 110px; position: relative; margin: 16px 0; }
#transitionRing svg { width: 100%; height: 100%; transform: rotate(-90deg); }
#transitionRing circle { fill: none; stroke: var(--crema); stroke-width: 2; }
#transitionRing .ringTrack { opacity: .18; }
#ringProgress { stroke-dasharray: 1; stroke-dashoffset: 1; stroke-linecap: round; }
#transitionCount { position: absolute; inset: 0; display: grid; place-items: center; font-size: 3rem; font-weight: 300; }
.subView { height: auto; overflow: visible; padding: 38px 24px 60px; width: 100%; max-width: 40rem; margin: 0 auto; }
.chip, .ghostBtn, .beanRow button { min-height: 44px; border-radius: 9px; }
.fieldRow { gap: 12px; }
.fieldRow input[type="text"] { min-width: 0; }
.beanRow { flex-wrap: wrap; gap: 8px; }
.beanRow .name { font: 300 1.05rem/1.4 "Fraunces", serif; text-transform: none; letter-spacing: 0; text-align: left; border: 0; padding-left: 0; min-width: 45%; overflow-wrap: anywhere; }
.beanRow .count { font-size: .62rem; }
#beanInput { min-width: 0; }
.version { margin-top: 2rem; color: var(--faint); font: 11px "IBM Plex Mono", monospace; }
button:disabled { opacity: .45; cursor: default; }
/* Setup uses the page flow so the shared footer and its language picker stay accessible. */
.isSetup > nav, .isSetup > #timerStage, .isSetup > .subView { display: none !important; }
#setup { position: static; background: none; flex: 1; gap: 24px; padding: 36px 24px 60px; }
.wizardBrand { text-align: center; }
.wizardCard { width: min(100%, 520px); }
#setupProgress { margin-bottom: 18px; text-align: center; font-size: .6rem; }
#setupTitle { font: 300 clamp(1.9rem, 5vw, 2.6rem)/1.2 "Fraunces", serif; color: var(--milk); letter-spacing: -.04em; text-transform: none; text-indent: 0; text-align: center; margin-bottom: 14px; }
#setupTitle:focus { outline: none; }
#setupIntro { font-style: normal; text-align: center; font-size: 1rem; margin-bottom: 32px; }
#setupList { width: 100%; gap: 20px; }
.setupField { display: grid; gap: 10px; font: 12px/1.6 "IBM Plex Mono", monospace; color: var(--faint); }
.inputUnit { display: flex; align-items: center; gap: 14px; padding: 15px 18px; border: 1px solid var(--hairline); border-radius: 14px; background: #f6efe704; }
.inputUnit:focus-within { border-color: var(--crema); }
.inputUnit input { width: 100%; min-width: 0; color: var(--milk); background: none; border: 0; font: 300 1.7rem "Fraunces", serif; user-select: text; }
.inputUnit input:focus { outline: none; }
.inputUnit input::placeholder { color: #a59588; font-size: 1.15rem; }
.inputUnit > span { color: var(--crema); }
.dosePreview { text-align: center; color: var(--crema); font-size: 1rem; }
.wizardActions { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.primaryBtn { margin-left: auto; background: var(--crema); color: var(--roast); border: 1px solid var(--crema); border-radius: 30px; min-height: 48px; padding: 14px 26px; font: 12px "IBM Plex Mono", monospace; cursor: pointer; }
.primaryBtn:hover { background: #deb28a; }
.wizardActions .ghostBtn { border: 0; color: var(--faint); font-size: 11px; text-transform: none; letter-spacing: 0; }
.localNote { text-align: center; color: var(--faint); font: 10px/1.6 "IBM Plex Mono", monospace; margin-top: 30px; }
#setupError { color: #f6be9e; font: 12px/1.6 "IBM Plex Mono", monospace; }
#setupError:not(:empty) { margin-top: 16px; }
.methodChoices { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.setupOpt { padding: 12px 14px; min-height: 48px; border-radius: 12px; font-size: .95rem; align-items: center; }
.setupOpt.selected { background: #c89b7215; border-color: var(--crema); color: var(--crema); }
.setupOpt:last-child { grid-column: 1 / -1; }
.setupTime { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--hairline); padding-bottom: 16px; }
.setupTime > :first-child { flex: 1; min-width: 0; font-size: 1rem; }
.setupPhaseName { width: 5rem; color: var(--milk); background: none; border: 0; border-bottom: 1px solid var(--hairline); font: 1rem "Fraunces", serif; padding: 8px 0; }
.timeUnit { display: flex; align-items: baseline; gap: 5px; color: var(--faint); font: 10px "IBM Plex Mono", monospace; }
.timeUnit input { width: 44px; min-height: 44px; text-align: center; background: #ffffff05; color: var(--milk); border: 1px solid var(--hairline); border-radius: 8px; font: 1.2rem "Fraunces", serif; appearance: textfield; }
.timeUnit input::-webkit-inner-spin-button { -webkit-appearance: none; }
.autoNote { font-size: .8rem; margin: 0; }
.setupReview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; padding: 24px; border: 1px solid var(--hairline); border-radius: 20px; }
.setupReview dt { color: var(--faint); font: 11px/1.6 "IBM Plex Mono", monospace; }
.setupReview dd { text-align: right; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  nav { padding: 12px 20px 8px; }
  .tabs { gap: 18px; }
  .navIcons { gap: 8px; }
  #timerStage { padding: 6px 20px 20px; }
  .brewHeader { margin-bottom: 18px; }
  .brewHeader h1 { font-size: 2.2rem; }
  #beanSummary { font-size: 10px; }
  #timerView { min-height: 370px; height: 54dvh; border-radius: 50px 50px 44px 44px / 32px 32px 28px 28px; padding: 52px 26px 28px; gap: 1rem; }
  .measureMarks { left: 12px; font-size: 9px; }
  .measureMarks span::after { width: 7px; margin-left: 5px; }
  #time { font-size: clamp(4.3rem, 21vw, 7rem); }
  #phase { font-size: .62rem; padding: 0 10px; }
  #hint { font-size: .55rem; }
  #fact { font-size: .78rem; }
  #setup { padding: 26px 20px 40px; }
  .setupTime { gap: 8px; }
  .setupTime .ghostBtn { padding: 4px 10px; }
  .statGrid { gap: 5px; }
  .stat span { font-size: .5rem; letter-spacing: .07em; }
}
@media (prefers-reduced-motion: reduce) { #fill { transition: none; } }

/* Brew 0.3 — one phone-sized experience, including on a desktop. */
.brewApp { background: radial-gradient(ellipse at 50% 30%, #302319, #100d0b 75%); }
.phoneShell { width: 100%; max-width: 430px; margin: auto; background: #14100d; }
.phoneShell .appPage { min-height: 100svh; }
.phoneShell .appPage > nav { position: sticky; top: 0; z-index: 10; width: 100%; padding: calc(10px + env(safe-area-inset-top)) 20px 8px; background: #14100df5; }
.phoneShell .tabs { gap: 16px; }
.phoneShell .tab { font-size: 10px; letter-spacing: .12em; }
.phoneShell .navIcons { gap: 2px; }
.phoneShell #timerStage { padding: 6px 20px 28px; justify-content: flex-start; }
.phoneShell .brewHeader { margin: 8px 0 22px; }
.phoneShell .brewHeader h1 { font-size: 2.8rem; }
.brewTagline { margin-top: 4px; color: var(--crema); font-size: .92rem; font-style: italic; }
.phoneShell #beanSummary { font-size: 10px; max-width: 320px; margin-top: 12px; }
.phoneShell #timerView { width: 100%; height: 370px; min-height: 370px; padding: 50px 26px 28px; gap: 1rem; border-radius: 48px 48px 42px 42px / 30px 30px 26px 26px; }
.phoneShell #time { font-size: 5.5rem; }
.phoneShell .measureMarks { left: 12px; font-size: 9px; }
.phoneShell .measureMarks span::after { width: 7px; margin-left: 5px; }
.phoneShell #phase { font-size: .62rem; padding: 0 10px; }
.phoneShell #hint { font-size: .55rem; }
.phoneShell #recipeSummary { margin-top: 20px; }
.phoneShell #fact { font-size: .8rem; margin-top: 10px; }
.guideLink { display: block; min-height: 44px; background: none; border: 0; color: var(--crema); font: 12px "IBM Plex Mono", monospace; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.phoneShell #setup { padding: 28px 20px 40px; }
.phoneShell #setupTitle { font-size: 2.1rem; }
.phoneShell .subView { padding: 28px 20px 42px; }
.phoneShell .brand-footer { padding: 20px 20px max(24px, env(safe-area-inset-bottom)); gap: 8px; }
.phoneShell .brand-footer-legal { width: 100%; display: grid; gap: 4px; }
.phoneShell .dryyyve-signature { margin-left: 0; }
.phoneShell .brand-language { margin-left: auto; }
.phoneShell .statGrid { gap: 5px; }
.phoneShell .stat span { font-size: .5rem; letter-spacing: .07em; }
.eyebrow { color: var(--crema); font: 10px/1.7 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .12em; }
#guideTitle { margin: 12px 0 16px; font-size: 2.35rem; line-height: 1.12; letter-spacing: -.05em; white-space: pre-line; }
.guideIntro, .guideRecipe > p, .tasteGuide > p { font-size: .95rem; line-height: 1.65; color: var(--faint); }
.guideMethods { display: flex; gap: 8px; margin: 24px 0; }
.guideMethods .chip { flex: 1; font-size: 12px; letter-spacing: .03em; text-transform: none; }
.guideRecipe { padding: 22px 18px; border: 1px solid var(--hairline); border-radius: 20px; background: linear-gradient(150deg, #c89b720b, transparent); }
.guideRecipe h3, .tasteGuide h3 { font-size: 1.65rem; font-weight: 300; letter-spacing: -.035em; line-height: 1.2; margin: 10px 0 12px; }
.brewParameters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 18px 0 14px; }
.brewParameters > div { padding: 14px 0; border-bottom: 1px solid var(--hairline); }
.brewParameters > div:last-child { grid-column: 1 / -1; }
.brewParameters dt { font: 10px/1.6 "IBM Plex Mono", monospace; color: var(--faint); }
.brewParameters dd { color: var(--milk); font-size: 1.5rem; font-weight: 300; margin-top: 5px; }
.guideRecipe .guideNote { font: 11px/1.75 "IBM Plex Mono", monospace; margin: 12px 0; }
.guideRecipe h4 { margin: 28px 0 20px; font-size: 1.3rem; font-weight: 300; }
.brewSteps { list-style: none; counter-reset: brew-step; }
.brewSteps li { position: relative; padding-left: 32px; margin: 0 0 22px; counter-increment: brew-step; }
.brewSteps li::before { content: "0" counter(brew-step); position: absolute; left: 0; top: 2px; color: var(--crema); font: 11px "IBM Plex Mono", monospace; }
.brewSteps strong { display: block; font-size: 1rem; font-weight: 400; margin-bottom: 6px; }
.brewSteps p { color: var(--faint); font-size: .9rem; line-height: 1.65; }
.guideRecipe .primaryBtn { width: 100%; padding: 14px 16px; line-height: 1.5; }
.guideRecipe .guideWarning { padding-left: 12px; border-left: 2px solid var(--crema); font-size: .85rem; margin-top: 16px; }
.tasteGuide { margin: 36px 0 24px; }
.tasteGuide > p { margin-bottom: 20px; }
.tasteGuide details { border-bottom: 1px solid var(--hairline); }
.tasteGuide summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; font-size: 1.08rem; list-style: none; }
.tasteGuide summary::-webkit-details-marker { display: none; }
.tasteGuide summary span { color: var(--crema); font: 20px "IBM Plex Mono", monospace; }
.tasteGuide details[open] summary span { transform: rotate(45deg); }
.tasteGuide details > p { padding: 0 10px 18px 0; color: var(--faint); font-size: .9rem; line-height: 1.7; }
.guideSources { font: 10px/1.6 "IBM Plex Mono", monospace; color: var(--faint); }
.guideSources a { display: flex; align-items: center; min-height: 44px; color: var(--crema); text-underline-offset: 4px; }
@media (min-width: 600px) {
  .brewApp { display: grid; place-items: center; min-height: 100svh; padding: 32px 20px; }
  .phoneShell { width: 404px; height: min(844px, calc(100svh - 64px)); overflow: auto; overscroll-behavior-y: contain; border: 7px solid #34291f; border-radius: 44px; box-shadow: 0 30px 100px #0008, 0 0 0 1px #80634b30; scrollbar-width: none; }
  .phoneShell::-webkit-scrollbar { display: none; }
  .phoneShell .appPage { min-height: min(830px, calc(100svh - 78px)); }
  .phoneShell .appPage > nav { padding-top: 12px; }
}
@media (max-width: 360px) {
  .phoneShell .tabs { gap: 10px; }
  .phoneShell .appPage > nav { padding-inline: 14px; }
  .phoneShell #timerView { padding-inline: 22px; }
  .phoneShell #time { font-size: 4.7rem; }
  #guideTitle { font-size: 2rem; }
  .guideRecipe { padding: 20px 14px; }
}

/* Brew 0.4 — a quiet clock, solid typography, a separate page footer. */
.brewApp { display: block; padding: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 400; }
.appViewport { min-height: 100svh; display: grid; place-items: center; padding: 28px 20px; }
.phoneShell { width: 404px; height: min(844px, calc(100svh - 56px)); max-width: 100%; margin: 0; overflow: auto; overscroll-behavior-y: auto; border: 7px solid #34291f; border-radius: 44px; box-shadow: 0 30px 100px #0008, 0 0 0 1px #80634b30; scrollbar-width: none; }
.phoneShell .appPage { min-height: 100%; }
.phoneShell .appNav { position: sticky; top: 0; padding: 14px 24px 12px; gap: 20px; align-items: center; background: #14100df5; }
.appBrand { min-height: 44px; border: 0; background: none; color: var(--milk); font: 750 28px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.06em; cursor: pointer; }
.appBrand span { color: var(--crema); }
.appMenu { position: relative; margin-left: auto; }
.appMenu > summary { width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; list-style: none; color: var(--crema); }
.appMenu > summary::-webkit-details-marker { display: none; }
.appMenu svg { width: 22px; height: 22px; }
.appMenuItems { position: absolute; z-index: 15; right: 0; top: calc(100% + 6px); min-width: 176px; padding: 8px; border: 1px solid var(--hairline); border-radius: 16px; background: #271d16; box-shadow: 0 16px 40px #0007; }
.appMenuItems button { display: block; min-height: 48px; width: 100%; border: 0; border-radius: 8px; padding: 10px 16px; text-align: left; background: transparent; color: var(--milk); cursor: pointer; font: 550 15px "Helvetica Neue", Helvetica, Arial, sans-serif; }
.appMenuItems button:hover, .appMenuItems button[aria-current="page"] { background: #c89b7220; color: var(--crema); }
.phoneShell #timerStage { padding: 20px 28px 30px; gap: 22px; justify-content: center; }
.phoneShell #timerView { width: 272px; max-width: 100%; height: 490px; min-height: 490px; padding: 38px 14px; gap: 20px; border: 1.5px solid #926949; border-radius: 34px 34px 30px 30px / 22px 22px 20px 20px; box-shadow: inset 8px 0 24px #e7ae7408, inset -10px 0 24px #0003; cursor: default; background: linear-gradient(90deg, #ffffff02, transparent 30%, #ffffff01); }
.clockButton { background: none; color: var(--milk); border: 0; padding: 0 6px; border-radius: 8px; cursor: pointer; font: inherit; }
.clockButton:disabled { opacity: 1; cursor: default; }
.phoneShell #time { font: 600 74px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -.06em; font-variant-numeric: tabular-nums; min-height: 1em; }
.timerPosition { position: absolute; top: 30px; left: 0; right: 0; text-align: center; color: var(--faint); font: 500 12px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .08em; }
.timerActions { display: flex; align-items: center; justify-content: center; gap: 10px; }
.timerActions .primaryBtn { min-height: 46px; min-width: 105px; margin: 0; padding: 12px 24px; font: 650 15px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.timerActions #soundBtn { display: grid; place-items: center; min-height: 46px; min-width: 44px; color: var(--faint); border: 1px solid var(--hairline); border-radius: 50%; }
.timerActions #soundBtn.on { color: var(--crema); }
.timerActions #soundBtn svg { width: 19px; height: 19px; }
.phoneShell #cancelBtn { margin: 0; border-radius: 30px; }
.phoneShell #cancelBtn.armed { color: var(--roast); background: #ecc9a5; }
#quickAddTimer { font-size: 12px; border-color: transparent; color: var(--faint); }
#firstHint { display: none !important; }
#transitionCount { font: 650 46px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; }
#transitionRing { margin: 0; }
.phoneShell .subView { padding: 24px 24px 40px; }
.brewApp h1, .brewApp h2, .brewApp h3, .brewApp h4, .brewApp .wizardBrand { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 700; }
.brewApp .subView h2 { font-size: 28px; letter-spacing: -.04em; margin-bottom: 24px; }
.brewApp #guideTitle { font-size: 30px; line-height: 1.15; }
.brewApp .guideRecipe h3, .brewApp .tasteGuide h3 { font-size: 23px; font-weight: 650; }
.brewApp .guideRecipe h4 { font-size: 19px; font-weight: 650; }
.brewApp .guideRecipe p, .brewApp .tasteGuide p, .brewApp .brewSteps p, .brewApp .guideIntro { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; font-weight: 400; line-height: 1.65; }
.brewApp .guideRecipe > .eyebrow, .brewApp .tasteGuide > .eyebrow, .brewApp .eyebrow, .brewApp .sectionLabel { font: 650 10px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: .12em; }
.brewApp .brewParameters dd { font: 650 22px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .brewParameters dt, .brewApp .brewSteps li::before, .brewApp .guideSources { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .brewSteps strong { font: 650 15px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .tasteGuide summary { font: 600 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .hintText { font: 400 14px/1.65 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .chip, .brewApp .ghostBtn, .brewApp .primaryBtn { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0; text-transform: none; font-weight: 600; }
.brewApp .chip { font-size: 13px; }
.brewApp .stat b { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-weight: 650; }
.brewApp .stat span { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 10px; }
.brewApp .beanRow .name { font: 600 16px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp input { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
.phoneShell #setup { position: relative; padding: 26px 24px 36px; gap: 22px; }
.brewApp .wizardBrand { font-size: 34px; line-height: 1.2; margin-top: 18px; }
.brewApp #setupTitle { font: 700 29px/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp #setupIntro { font-size: 15px; margin-bottom: 26px; }
.skipSetup { align-self: center; background: none; border: 0; min-height: 44px; padding: 8px; color: var(--faint); font: 500 12px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.brewApp .setupField { font: 550 13px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .inputUnit { border-radius: 14px; padding: 12px 14px; gap: 10px; }
.brewApp .inputUnit input { font: 600 25px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; }
.brewApp .inputUnit input::placeholder { font-size: 16px; }
.brewApp .gramControl .inputUnit input { text-align: center; }
.stepperButton { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: #c89b7214; color: var(--crema); font: 500 25px/1 "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.brewApp input[type="number"] { appearance: textfield; }
.brewApp input::-webkit-inner-spin-button, .brewApp input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.brewApp input[type="range"] { display: block; appearance: none; width: 100%; min-width: 0; height: 44px; background: transparent; padding: 0; margin: 0; cursor: ew-resize; touch-action: pan-y; accent-color: var(--crema); }
.brewApp input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: #6f513c; border-radius: 4px; }
.brewApp input[type="range"]::-moz-range-track { height: 4px; background: #6f513c; border-radius: 4px; }
.brewApp input[type="range"]::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; margin-top: -10px; background: var(--crema); border: 3px solid #f2cdaa; box-shadow: 0 2px 8px #0005; }
.brewApp input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--crema); border: 3px solid #f2cdaa; }
.timerRow { padding: 16px; margin: 0 0 14px; border: 1px solid var(--hairline); border-radius: 16px; background: #ffffff03; }
.timerRowHeader { display: flex; align-items: center; justify-content: space-between; min-height: 40px; font: 600 13px/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--faint); }
.removeTimer { width: 40px; min-height: 44px; border: 0; border-radius: 8px; color: var(--crema); background: transparent; font: 24px "Helvetica Neue", Helvetica, Arial, sans-serif; cursor: pointer; }
.timeFields { display: flex; gap: 20px; justify-content: center; margin: 8px 0; }
.timeField { display: flex; gap: 6px; align-items: baseline; font: 500 12px "Helvetica Neue", Helvetica, Arial, sans-serif; color: var(--faint); }
.timeField input { width: 64px; min-height: 48px; padding: 4px; border: 0; border-bottom: 1px solid var(--hairline); border-radius: 0; background: transparent; color: var(--milk); text-align: center; font: 600 34px/1.3 "Helvetica Neue", Helvetica, Arial, sans-serif; font-variant-numeric: tabular-nums; }
.timeField input:invalid { border-bottom-color: #ee9c77; }
.brewApp .setupTime { display: block; margin-bottom: 0; }
.brewApp .setupTime > :first-child { font-size: 13px; }
.brewApp .setupReview { font-size: 14px; padding: 18px; }
.brewApp .setupReview dt, .brewApp .localNote, .brewApp .dosePreview, .brewApp .version { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; }
@media (max-width: 599px) {
  .appViewport { padding: 0; }
  .phoneShell { width: 100%; max-width: 430px; height: auto; overflow: visible; border: 0; border-radius: 0; box-shadow: none; }
  .phoneShell .appPage { min-height: 100svh; }
  .phoneShell .appNav { padding-top: max(12px, env(safe-area-inset-top)); }
  .phoneShell #timerStage { padding-top: 12px; }
  .phoneShell #timerView { height: clamp(390px, 60svh, 530px); min-height: 390px; }
}
@media (max-width: 360px) {
  .phoneShell #timerStage { padding-inline: 24px; }
  .phoneShell #timerView { width: 250px; }
  .phoneShell #time { font-size: 66px; }
  .phoneShell .subView, .phoneShell #setup { padding-inline: 20px; }
  .timeFields { gap: 12px; }
}

.brewApp #totalPreview { font-family: inherit; font-size: 12px; letter-spacing: 0; }
