:root {
  color-scheme: light;
  --ink: #5b5859;
  --muted: #7c797a;
  --paper: #f4fbfe;
  --card: #ffffff;
  --coffee: #46a6cc;
  --coffee-dark: #2586ad;
  --line: #d8e9f0;
  --green: #46a6cc;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
.wechat-share-source { position: absolute; top: 0; left: -10000px; width: 600px; height: 600px; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
select { font: inherit; }

.app-shell { min-height: 100svh; max-width: 520px; margin: 0 auto; overflow: hidden; }
.view { min-height: 100svh; padding: max(22px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom)); }
[hidden] { display: none !important; }

.setup-view { display: flex; flex-direction: column; }
.hero { padding: 10px 4px 20px; }
.brand-logo { display: block; width: min(64%, 205px); height: auto; mix-blend-mode: multiply; }
.footer-logo { flex: 0 0 auto; margin: auto auto 0; padding-top: 18px; }
h1 { margin: 10px 0 12px; font-family: Georgia, "Songti SC", serif; font-size: clamp(38px, 11vw, 52px); line-height: 1.07; letter-spacing: -.04em; }
.hero-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero-title-row h1 { flex: 1; margin: 6px 0 8px; font-size: clamp(22px, 6.5vw, 30px); line-height: 1.2; letter-spacing: -.03em; }
.hero-tagline { margin: 0 0 10px; font-family: Georgia, "Songti SC", serif; font-size: clamp(34px, 10vw, 48px); font-weight: 700; line-height: 1.05; letter-spacing: -.04em; }
.recipe-select-wrap { flex: 0 0 auto; }
.recipe-select-wrap > span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 9px; text-align: right; }
.recipe-select-wrap select { max-width: 112px; padding: 7px 25px 7px 10px; border: 1px solid var(--line); border-radius: 12px; outline: 0; background-color: #fff; color: var(--coffee-dark); font: 700 11px/1.2 "PingFang SC", "Microsoft YaHei", sans-serif; }
.hero p { max-width: 340px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hero p strong { color: var(--ink); font-weight: 700; }

.recipe-card { padding: 19px; border: 1px solid rgba(70, 166, 204, .18); border-radius: 22px; background: var(--card); box-shadow: 0 12px 38px rgba(40, 120, 152, .08); }
.card-heading { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.step-label { color: var(--muted); font-size: 12px; }
.card-heading h2 { margin: 4px 0 0; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.time-badge { padding: 5px 9px; border-radius: 20px; background: #e3f4fa; color: var(--coffee-dark); font-size: 10px; font-weight: 700; }
.recipe-info-button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--coffee-dark); font-size: 11px; font-weight: 700; }
.brew-parameters { padding: 14px 0; border-bottom: 1px solid var(--line); }
.parameter-heading { display: block; margin-bottom: 10px; color: var(--coffee-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.parameter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.parameter-grid span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.parameter-grid strong { color: var(--ink); font-size: 15px; line-height: 1.3; }
.parameter-grid strong small { margin-left: 2px; color: var(--muted); font-size: 10px; font-weight: 500; }
.temperature-list { display: grid; width: max-content; gap: 3px; }
.temperature-list span { display: grid; grid-template-columns: 28px 38px; gap: 6px; align-items: baseline; margin: 0; color: var(--ink); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.temperature-list b { color: var(--muted); font-size: 9px; font-weight: 500; text-align: right; }
.powder-options { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: #e7f4f9; }
.powder-option { min-width: 36px; padding: 4px 6px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 11px; font-weight: 700; }
.powder-option.is-active { background: var(--coffee); color: white; box-shadow: 0 2px 7px rgba(70, 166, 204, .24); }
.grind-value { display: block; font-size: 12px !important; line-height: 1.35; }
.field-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; padding: 14px 0; }
.field-grid label > span:first-child { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.recipe-stat > span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.recipe-stat strong { display: block; font-family: Georgia, serif; font-size: 25px; line-height: 1.25; }
.recipe-stat strong small { margin-left: 3px; color: var(--muted); font-family: "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 12px; font-weight: 500; }
.rhythm-main { display: flex; min-height: 32px; align-items: center; gap: 7px; }
.rhythm-main strong { flex: 0 0 auto; font-size: 23px; }
.recipe-stat em { display: block; margin-top: 2px; color: var(--coffee); font-size: 9px; font-style: normal; line-height: 1.35; }
.recipe-stat em.is-sequence { font-size: 8px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.recipe-stat .rhythm-duration { flex: 0 0 auto; margin: 0; padding: 4px 7px; color: var(--coffee-dark); font-size: 9px; white-space: nowrap; }
.input-wrap { display: flex; align-items: baseline; gap: 3px; }
.input-wrap input { width: 100%; min-width: 0; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; background: transparent; color: var(--ink); font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.input-wrap input:focus { border-color: var(--coffee); }
.input-wrap b { color: var(--muted); font-size: 12px; font-weight: 500; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding-top: 2px; }
.switch-row strong, .switch-row small { display: block; }
.switch-row strong { font-size: 14px; }
.switch-row small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.switch input { position: absolute; opacity: 0; }
.switch span { display: block; width: 46px; height: 27px; padding: 3px; border-radius: 20px; background: #cfc7bd; transition: .2s; }
.switch span::after { content: ""; display: block; width: 21px; height: 21px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px #0002; transition: .2s; }
.switch input:checked + span { background: var(--coffee); }
.switch input:checked + span::after { transform: translateX(19px); }

.primary-button, .secondary-button { width: 100%; min-height: 56px; border: 0; border-radius: 17px; font-size: 16px; font-weight: 800; cursor: pointer; }
.primary-button { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 22px; background: var(--coffee); color: white; box-shadow: 0 12px 30px rgba(70, 166, 204, .28); }
.primary-button span { font-size: 22px; }
.setup-view > .primary-button { margin-top: 18px; }
.support-note { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.home-shop-link { align-self: center; margin-top: 10px; color: var(--coffee-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.home-shop-link span { display: inline-block; margin-left: 3px; transition: transform .2s; }
.home-shop-link:active span { transform: translateX(3px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.hero { padding: 2px 4px 14px; }
.hero-logo { width: min(34%, 126px); margin: 0 0 16px; }
.hero h1 { margin: 0 0 12px; color: #202124; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: clamp(34px, 9vw, 46px); font-weight: 850; line-height: 1.08; letter-spacing: -.06em; }
.hero p { max-width: none; margin: 0 0 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.flow-steps { display: flex; align-items: center; gap: 7px; margin-top: 12px; padding: 9px 11px; border: 1px solid rgba(70, 166, 204, .12); border-radius: 16px; background: rgba(255, 255, 255, .62); }
.flow-steps span { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 5px; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.flow-steps b { display: inline-grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: #eef8fd; color: var(--coffee-dark); font-size: 11px; }
.flow-steps em { flex: 0 0 auto; color: var(--coffee); font-size: 15px; font-style: normal; }

.recipe-card { position: relative; padding: 20px 22px 18px; border: 2px solid rgba(70, 166, 204, .58); border-radius: 24px; background: rgba(255, 255, 255, .78); box-shadow: 0 12px 34px rgba(40, 120, 152, .06); }
.card-heading { display: block; padding-bottom: 0; border-bottom: 0; }
.step-label { display: block; margin-bottom: 14px; color: var(--muted); font-size: 14px; font-weight: 700; }
.recipe-title-row { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.recipe-drop { display: block; width: 20px; height: 26px; margin-top: 7px; border: 2px solid var(--coffee); border-radius: 50% 50% 55% 55%; transform: rotate(45deg); opacity: .95; }
.card-heading h2 { margin: 0 0 7px; color: #202124; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: 30px; font-weight: 850; line-height: 1.08; letter-spacing: -.04em; }
.card-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.recipe-info-button { position: absolute; top: 18px; right: 18px; z-index: 1; display: grid; width: 28px; height: 28px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .85); color: var(--coffee-dark); font-size: 13px; font-weight: 900; }
.brew-parameters { padding: 18px 0 0; border-bottom: 0; }
.powder-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.powder-row > span { color: var(--muted); font-size: 13px; font-weight: 700; }
.powder-options { gap: 4px; padding: 4px; border-radius: 13px; background: #eef6fb; }
.powder-option { min-width: 46px; padding: 6px 11px; border-radius: 10px; color: var(--muted); font-size: 13px; font-weight: 800; }
.powder-option.is-active { background: var(--coffee-dark); color: white; box-shadow: 0 4px 12px rgba(40, 120, 152, .16); }
.powder-option.is-disabled { cursor: not-allowed; opacity: .38; }
.parameter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.parameter-grid > div { min-height: 48px; padding: 9px 10px; border-radius: 13px; background: #eef6fb; }
.parameter-grid > div > span { display: block; margin-bottom: 3px; color: var(--muted); font-size: 10px; font-weight: 700; }
.parameter-grid strong span { display: inline; margin: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.parameter-grid strong { display: block; color: #313437; font-size: 12px; font-weight: 800; line-height: 1.25; word-break: keep-all; }
.parameter-grid strong small { margin-left: 0; color: inherit; font-size: inherit; font-weight: inherit; }
.grind-value { font-size: 13px !important; }
.temperature-list { display: block; width: auto; }
.temperature-list span { display: inline; margin: 0; color: #313437; font-size: 13px; font-weight: 800; white-space: normal; }
.temperature-list span + span::before { content: " · "; color: var(--muted); }
.temperature-list b { margin-right: 2px; color: var(--muted); font-size: 10px; font-weight: 700; }
.change-recipe-button { display: block; width: 100%; min-height: 42px; margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; color: var(--coffee-dark); font-size: 15px; font-weight: 850; }
.primary-button { min-height: 62px; margin-top: 16px; border-radius: 21px; background: var(--coffee-dark); box-shadow: 0 14px 28px rgba(40, 120, 152, .26); font-size: 20px; }
.home-shop-card { display: block; margin-top: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 19px; background: rgba(255, 255, 255, .82); color: inherit; text-decoration: none; box-shadow: 0 10px 28px rgba(40, 120, 152, .05); }
.home-shop-card span { display: block; color: var(--coffee); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.home-shop-card strong { display: block; margin: 7px 0 5px; color: #202124; font-size: 22px; line-height: 1.15; }
.home-shop-card small { display: block; color: var(--coffee-dark); font-size: 14px; font-weight: 800; }
.home-shop-card b { font-size: 15px; }

.ice-confirm-view { display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 50% 18%, #ffffff 0, #f4fbfe 45%, #eaf6fb 100%); }
.ice-confirm-close { position: absolute; top: max(24px, env(safe-area-inset-top)); right: 22px; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255, 255, 255, .82); color: var(--coffee-dark); font-size: 23px; }
.ice-confirm-card { padding: 30px 24px 24px; border: 1px solid var(--line); border-radius: 28px; background: rgba(255, 255, 255, .88); box-shadow: 0 18px 48px rgba(40, 120, 152, .09); }
.ice-confirm-eyebrow { color: var(--coffee); font-size: 10px; font-weight: 900; letter-spacing: .15em; }
.ice-confirm-card h1 { margin: 12px 0 12px; color: #202124; font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; font-size: clamp(32px, 9vw, 44px); font-weight: 900; line-height: 1.12; letter-spacing: -.05em; }
.ice-confirm-card p { margin: 0 0 26px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.ice-confirm-card .primary-button { margin-top: 0; }

.recipe-sheet { position: fixed; z-index: 28; inset: 0; display: grid; align-items: end; }
.recipe-sheet-backdrop { position: absolute; inset: 0; background: rgba(25, 28, 31, .56); backdrop-filter: blur(2px); }
.recipe-sheet-card { position: relative; z-index: 1; width: min(100%, 520px); margin: 0 auto; padding: 26px 18px max(22px, env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: #fff; box-shadow: 0 -16px 45px #0002; }
.sheet-handle { display: block; width: 44px; height: 4px; margin: 0 auto 18px; border-radius: 999px; background: #d8dde1; }
.recipe-sheet-card h2 { margin: 0 0 16px; color: #202124; font-size: 18px; }
.recipe-option { display: grid; width: 100%; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 66px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid #e7edf2; border-radius: 15px; background: #fff; color: var(--ink); text-align: left; }
.recipe-option.is-active { border-color: var(--coffee); background: #f7fcff; }
.recipe-option:disabled { opacity: 1; }
.recipe-option-icon { display: block; width: 24px; height: 31px; border: 2px solid var(--coffee); border-radius: 50% 50% 55% 55%; transform: rotate(45deg); }
.recipe-option-icon.is-muted { border-color: #b7c0c7; border-style: dashed; }
.recipe-option strong, .recipe-option small { display: block; }
.recipe-option strong { margin-bottom: 4px; color: #202124; font-size: 15px; }
.recipe-option small { color: var(--muted); font-size: 11px; line-height: 1.35; }
.recipe-option em { padding: 4px 8px; border-radius: 999px; background: #eaf7fc; color: var(--coffee-dark); font-size: 10px; font-style: normal; font-weight: 800; }
.recipe-option i { color: var(--muted); font-size: 18px; font-style: normal; }
.sheet-done-button { width: 100%; min-height: 48px; margin-top: 10px; border: 0; border-radius: 18px; background: #eaf4fb; color: var(--coffee-dark); font-size: 15px; font-weight: 800; }

.brew-view { display: flex; flex-direction: column; background: #575455; color: #fff; }
.brew-header { display: flex; align-items: center; justify-content: space-between; }
.brew-header > span { font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid #ffffff24; border-radius: 50%; background: transparent; color: #fff; font-size: 22px; }
.progress-track { height: 3px; margin: 22px 0; border-radius: 3px; background: #ffffff18; overflow: hidden; }
.progress-track span { display: block; width: 10%; height: 100%; background: #51b5db; transition: width .3s; }
.brew-content { display: flex; flex: 1; flex-direction: column; align-items: center; text-align: center; }
.status-pill { margin-top: 9px; padding: 7px 13px; border-radius: 20px; background: #51b5db2c; color: #7fd3f2; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.instruction { margin: 30px 0 2px; color: #c7bdb2; font-size: 15px; }
.weight { display: flex; align-items: baseline; }
.weight span { font-family: Georgia, serif; font-size: clamp(86px, 27vw, 128px); line-height: 1; letter-spacing: -.06em; }
.weight small { margin-left: 8px; color: #c7bdb2; font-size: 25px; }
.action-hint { margin: 8px 0 20px; color: #e6dbd0; font-size: 14px; }
.timer-ring { display: grid; width: 154px; height: 154px; margin: auto 0; place-items: center; border-radius: 50%; background: conic-gradient(#51b5db var(--progress, 0%), #ffffff16 0); position: relative; }
.timer-ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #575455; }
.timer-ring div { z-index: 1; display: flex; flex-direction: column; }
.timer-ring span { font-family: Georgia, serif; font-size: 48px; line-height: 1; }
.timer-ring small { margin-top: 8px; color: #a99e93; font-size: 10px; }
.next-card { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-top: auto; padding: 18px 0 8px; border-top: 1px solid #ffffff1f; }
.next-card span { color: #9e9388; font-size: 12px; }
.next-card strong { font-size: 14px; }
.brew-actions { margin-top: 16px; }
.secondary-button { margin-top: 0; border: 1px solid #ffffff55; background: transparent; color: white; transition: background .2s, border-color .2s, color .2s, transform .12s; }
.secondary-button:active { transform: scale(.985); }
.secondary-button.is-paused { border-color: var(--coffee); background: var(--coffee); color: white; box-shadow: 0 10px 24px rgba(40, 140, 180, .28); }
.end-button { display: block; margin: 8px auto 0; padding: 8px 18px; border: 0; background: transparent; color: #c9c4c5; font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }

.countdown-view { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; background: #575455; color: white; text-align: center; }
.countdown-view::before { content: ""; position: absolute; inset: 0; opacity: .12; background-image: radial-gradient(#fff 0.7px, transparent 0.7px); background-size: 5px 5px; pointer-events: none; }
.countdown-close { position: absolute; z-index: 3; top: max(24px, env(safe-area-inset-top)); right: 22px; width: 40px; height: 40px; border: 1px solid #ffffff3b; border-radius: 50%; background: transparent; color: white; font-size: 23px; }
.film-frame { position: relative; display: grid; width: min(76vw, 310px); aspect-ratio: 1; place-items: center; overflow: hidden; border: 2px solid #ffffff6b; border-radius: 50%; }
.film-circle { position: absolute; border: 2px solid #ffffff52; border-radius: 50%; }
.film-circle-outer { inset: 12%; }
.film-circle-inner { inset: 29%; }
.film-line { position: absolute; background: #ffffff42; }
.film-line-x { left: 0; width: 100%; height: 1px; }
.film-line-y { top: 0; width: 1px; height: 100%; }
.film-sweep { position: absolute; width: 50%; height: 50%; top: 0; right: 0; transform-origin: 0 100%; background: rgba(70, 166, 204, .55); animation: film-sweep 1s linear infinite; }
.film-frame strong { z-index: 2; font-family: Georgia, serif; font-size: 120px; line-height: 1; text-shadow: 0 6px 30px #0003; }
.countdown-view p { margin: 32px 0 0; color: #d8d5d6; font-size: 13px; letter-spacing: .08em; }
@keyframes film-sweep { to { transform: rotate(360deg); } }
@keyframes count-pop { 0% { opacity: .25; transform: scale(.78); } 28% { opacity: 1; transform: scale(1); } 100% { opacity: .88; } }

.done-view { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; text-align: center; }
.done-mark { display: grid; width: 84px; height: 84px; margin-bottom: 30px; place-items: center; border-radius: 50%; background: var(--green); color: white; font-size: 38px; }
.done-view h1 { margin-bottom: 10px; }
.done-view > p { margin: 0 0 28px; color: var(--muted); }
.shop-card { width: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: white; text-align: left; box-shadow: 0 12px 38px rgba(40, 120, 152, .09); }
.shop-card > span { color: var(--coffee-dark); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.shop-card h2 { margin: 9px 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 22px; }
.shop-card p { margin: 0 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.shop-card a { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 16px; border-radius: 15px; background: var(--coffee); color: white; font-size: 14px; font-weight: 800; text-decoration: none; }
.shop-card a b { font-size: 20px; }
.done-view .text-button { width: 100%; min-height: 58px; margin-top: 22px; padding: 0 18px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, .86); color: var(--coffee-dark); font-size: 18px; font-weight: 850; text-decoration: none; box-shadow: 0 8px 24px rgba(40, 120, 152, .04); }
.done-view .text-button:active { transform: scale(.99); }

.recipe-modal { position: fixed; z-index: 30; inset: 0; display: grid; align-items: end; }
.recipe-modal-backdrop { position: absolute; inset: 0; background: rgba(48, 46, 47, .55); backdrop-filter: blur(3px); }
.recipe-modal-card { position: relative; z-index: 1; width: min(100%, 520px); max-height: min(82svh, 720px); margin: 0 auto; padding: 25px 22px max(25px, env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 26px 26px 0 0; background: #fff; box-shadow: 0 -16px 45px #0002; }
.recipe-modal-close { position: absolute; top: 17px; right: 18px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 22px; }
.recipe-modal-eyebrow { color: var(--coffee-dark); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.recipe-modal-card h2 { margin: 7px 42px 16px 0; font-family: Georgia, "Songti SC", serif; font-size: 26px; }
.recipe-modal-content { color: var(--ink); font-size: 13px; line-height: 1.75; }
.recipe-modal-content p { margin: 0 0 14px; }
.recipe-modal-content h3 { margin: 20px 0 8px; color: var(--coffee-dark); font-size: 14px; line-height: 1.45; }
.recipe-modal-content ol + h3 { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.recipe-modal-content ol { margin: 8px 0 0; padding-left: 22px; }
.recipe-modal-content li { margin-bottom: 8px; padding-left: 2px; }

@media (max-height: 700px) { .view { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: max(10px, env(safe-area-inset-bottom)); } .hero { padding-top: 2px; padding-bottom: 14px; } .hero-title-row h1 { font-size: 21px; margin-block: 4px 6px; } .hero-tagline { margin-bottom: 7px; font-size: 33px; } .hero p { font-size: 13px; line-height: 1.5; } .recipe-card { padding: 15px 16px; } .brew-parameters { padding: 10px 0; } .field-grid { padding: 10px 0; } .switch-row small { margin-top: 2px; } .setup-view > .primary-button { margin-top: 13px; min-height: 50px; } .support-note { margin-top: 7px; } .home-shop-link { margin-top: 7px; } .footer-logo { width: 170px; padding-top: 12px; } }

@media (max-width: 360px) { .hero-title-row { align-items: flex-start; } .recipe-select-wrap select { max-width: 100px; } .parameter-grid, .field-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .temperature-list span { grid-template-columns: 26px 36px; gap: 4px; font-size: 11px; } .rhythm-main { gap: 3px; } .rhythm-main strong { font-size: 22px; } .rhythm-main strong small { font-size: 10px; } .recipe-stat .rhythm-duration { padding-inline: 4px; font-size: 8px; } .recipe-stat em.is-sequence { font-size: 7px; letter-spacing: -.04em; } }
