/* Café usa os mesmos tokens, bordas e controles do aplicativo. */
#view-cafe [hidden] { display: none !important; }
#view-cafe.active-view { display: flex !important; flex-direction: column; }
#view-cafe .coffee-library-header, #view-cafe .coffee-setup-header { position: relative; top: auto; left: auto; right: auto; flex-shrink: 0; }
#view-cafe .coffee-content { position: relative; top: auto; bottom: auto; flex: 1; min-height: 0; box-sizing: border-box; }
#view-cafe .coffee-library-header, #view-cafe .coffee-setup-header { display: none; }
#view-cafe[data-coffee-mode="home"] .coffee-library-header { display: flex; }
.coffee-library-header input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; color: var(--text-main); font: inherit; font-size: 16px; }
#view-cafe[data-coffee-mode="setup"] .coffee-setup-header { display: flex; }
#view-cafe.active-view[data-coffee-mode="setup"] ~ .app-bottom-nav { display: none !important; }
#view-cafe[data-coffee-mode="home"] .coffee-content { top: auto; }
#view-cafe[data-coffee-mode="setup"] .coffee-content { padding-bottom: calc(28px + var(--safe-bottom)); }
.coffee-setup-header { gap: 10px; }
.coffee-setup-heading { flex: 1; min-width: 0; }
.coffee-setup-heading h1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coffee-setup-header > .coffee-text-btn { flex: 0 0 28px; justify-content: center; height: 40px; }
.coffee-free-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 16px; border: 1px solid #596318; border-radius: 16px; background: #20250F; color: var(--brand-color); cursor: pointer; font: inherit; }
.coffee-free-card > span:nth-child(2) { flex: 1; min-width: 0; }
.coffee-free-card strong, .coffee-free-card small { display: block; }
.coffee-free-card strong { font-size: 16px; font-weight: 600; }
.coffee-free-card small { font-size: 12px; color: var(--text-sec); margin-top: 5px; line-height: 1.5; }
.coffee-free-card + .coffee-free-card { margin-top: 12px; }
.coffee-v60-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; color: var(--brand-color); }
.coffee-v60-icon svg { display: block; width: 100%; height: 100%; }
.coffee-method-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 20px; }
.coffee-method-choice button { min-width: 0; min-height: 44px; padding: 8px; background: var(--app-card); color: var(--text-sec); border: 1px solid #444; border-radius: 10px; font: inherit; font-size: 12px; cursor: pointer; }
.coffee-method-choice button[aria-pressed="true"] { color: var(--brand-color); border-color: var(--brand-color); background: #252B13; }
.coffee-ratio-reference { display: flex; justify-content: space-between; gap: 2px; margin: 18px 0 8px; color: var(--text-sec); font-size: 11px; }
.coffee-ratio-reference .is-current { color: var(--brand-color); font-weight: 700; }
.coffee-ratio-note { font-size: 11px; line-height: 1.6; color: var(--text-sec); margin: 12px 0 0; }
.coffee-library-heading { font-size: 14px; font-weight: 600; color: var(--text-sec); margin: 28px 0 12px; }
.coffee-library-list { display: flex; flex-direction: column; gap: 10px; }
.coffee-profile-card { width: 100%; display: flex; align-items: center; gap: 12px; padding: 18px 16px; border: 1px solid #2C2C2C; border-radius: 14px; text-align: left; background: var(--app-card); color: var(--text-main); font: inherit; cursor: pointer; }
.coffee-profile-card > span:first-child { flex: 1; min-width: 0; }
.coffee-profile-card strong { display: block; overflow-wrap: anywhere; font-size: 16px; font-weight: 500; line-height: 1.4; }
.coffee-profile-card small { display: block; margin-top: 6px; color: var(--text-sec); font-size: 11px; line-height: 1.6; }
.coffee-profile-card > .material-symbols-rounded { color: var(--brand-color); font-size: 22px; }
.coffee-library-status, .coffee-save-status { color: var(--text-sec); font-size: 13px; line-height: 1.6; }
.coffee-library-status:empty { display: none; }
.coffee-save-status { margin: 0 0 12px; }
.coffee-save:disabled { opacity: 0.6; cursor: wait; }
.coffee-setup-actions { padding: 16px; margin: 16px 0 20px; }
.coffee-setup-actions > .coffee-primary { min-height: 48px; padding: 12px 16px; font-size: 15px; border-radius: 12px; }
.coffee-profile-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #303030; margin: 16px 0 -8px; padding: 8px 0; }
.coffee-profile-actions > button { min-height: 44px; margin: 0; font: inherit; font-size: 12px; line-height: 1.4; }
.coffee-profile-actions .coffee-save { width: auto; margin-left: auto; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: #D0D0D0; font-weight: 500; }
.coffee-delete { display: flex; align-items: center; justify-content: center; width: 44px; flex: 0 0 44px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #FF575D; cursor: pointer; }
.coffee-delete .material-symbols-rounded { font-size: 24px; line-height: 1; }
.coffee-sensory { border: 1px solid #353535; border-radius: 16px; padding: 18px 14px; margin: 0 0 20px; background: var(--app-card); scroll-margin-top: 16px; }
.coffee-sensory h2 { font-size: 19px; line-height: 1.4; color: var(--brand-color); margin: 0 0 12px; }
.coffee-sensory-intro, .coffee-sensory fieldset > p { font-size: 12px; line-height: 1.6; color: var(--text-sec); margin: 0 0 12px; }
.coffee-sensory fieldset { min-width: 0; margin: 22px 0; padding: 0; border: 0; }
.coffee-sensory legend { font-size: 14px; font-weight: 600; color: var(--text-main); margin: 0 0 6px; padding: 0; }
.coffee-rating-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.coffee-rating-options label, .coffee-sensory-chips label { position: relative; cursor: pointer; }
.coffee-rating-options input, .coffee-sensory-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.coffee-rating-options span { display: flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid #555; border-radius: 9px; background: #262626; color: var(--text-main); font-size: 15px; }
.coffee-rating-options input:checked + span, .coffee-sensory-chips input:checked + span { background: #303915; color: var(--brand-color); border-color: var(--brand-color); }
.coffee-rating-options input:focus-visible + span, .coffee-sensory-chips input:focus-visible + span { outline: 2px solid var(--brand-color); outline-offset: 3px; }
.coffee-rating-anchors { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--text-sec); margin-top: 7px; }
.coffee-rating-anchors span:last-child { text-align: right; }
.coffee-sensory-unrated { display: flex; align-items: center; gap: 6px; min-height: 34px; font-size: 11px; color: var(--text-sec); width: fit-content; cursor: pointer; }
.coffee-sensory input { accent-color: var(--brand-color); }
.coffee-sensory details { border-bottom: 1px solid #3A3A3A; }
.coffee-sensory summary { padding: 14px 0; font-size: 12px; cursor: pointer; color: var(--text-main); }
.coffee-sensory-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 0 12px; }
.coffee-sensory-chips span { display: flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 8px 12px; border: 1px solid #555; border-radius: 22px; font-size: 12px; line-height: 1.4; color: var(--text-sec); }
.coffee-sensory-skip { margin-top: 10px; }
.coffee-complete-sensory { padding: 18px 0; margin-bottom: 18px; border-bottom: 1px solid #3A3A3A; }
.coffee-complete-sensory h3 { font-size: 16px; margin: 0 0 8px; }
.coffee-complete-sensory .btn-outline { margin-top: 10px; }
.coffee-library-more { margin-top: 16px; }
.coffee-resume { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 0; padding: 14px; background: var(--app-card); border: 1px solid #333; border-radius: 12px; color: var(--text-main); font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.coffee-header { height: var(--header-details-height); box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; }
.coffee-header h1 { color: var(--brand-color); font-size: 22px; line-height: 1.2; margin: 0; }
.coffee-header p { color: var(--text-sec); font-size: 13px; margin: 4px 0 0; }
.coffee-header p span { margin: 0 5px; }
.coffee-header-icon { font-size: 30px; color: var(--brand-color); }
.coffee-content { top: var(--header-details-height); padding: 20px 20px calc(var(--nav-height) + 28px); }
#view-cafe.active-view[data-coffee-mode="brew"] ~ .app-bottom-nav { display: none !important; }
#view-cafe[data-coffee-mode="brew"] .coffee-content { padding-bottom: calc(28px + var(--safe-bottom)); }
.coffee-content > section, .coffee-storage-note { max-width: 640px; margin-left: auto; margin-right: auto; }
.coffee-panel { border: 1px solid #2C2C2C; background: var(--app-card); border-radius: 16px; overflow: hidden; }
.coffee-label { font-size: 11px; font-weight: 600; color: var(--text-sec); text-transform: uppercase; letter-spacing: 0.7px; }
.coffee-label span { text-transform: none; letter-spacing: 0; }
.coffee-measures { display: grid; grid-template-columns: 1fr 1fr; }
.coffee-measure { text-align: center; padding: 16px 4px; min-width: 0; }
.coffee-measure + .coffee-measure { border-left: 1px solid #2C2C2C; }
.coffee-stepper { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0; margin-top: 8px; }
.coffee-stepper button { width: 100%; min-width: 0; height: 40px; padding: 0; background: transparent; border: none; border-radius: 8px; font-size: 24px; color: var(--text-sec); cursor: pointer; }
.coffee-stepper button:active { background: #333; color: var(--brand-color); }
.coffee-stepper input { width: calc(var(--coffee-value-ch, 3) * 1ch + 2px); min-width: 0; padding: 0; height: 40px; background: transparent; border: none; border-radius: 6px; color: var(--brand-color); font: inherit; font-size: 30px; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.coffee-stepper input::-webkit-inner-spin-button, .coffee-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.coffee-content button:focus-visible, .coffee-content summary:focus-visible { outline: 2px solid var(--brand-color); outline-offset: 3px; }
.coffee-fields { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 20px; }
.coffee-field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.coffee-field input { width: 100%; min-width: 0; box-sizing: border-box; border: 0; border-bottom: 1px solid #333; border-radius: 0; padding: 0 0 10px; background: transparent; color: var(--text-main); font-family: inherit; font-size: 16px; }
.coffee-field input::placeholder { color: #777; opacity: 1; }
.coffee-controls { margin-top: 16px; }
.coffee-equipment { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.coffee-equipment-control { min-width: 0; padding: 12px 4px; display: flex; flex-direction: column; align-items: stretch; gap: 4px; }
.coffee-equipment-control + .coffee-equipment-control { border-left: 1px solid #2C2C2C; }
.coffee-equipment-control > label { color: var(--text-sec); font-size: 11px; line-height: 1.5; text-align: center; }
.coffee-equipment .coffee-stepper { margin: 0; gap: 0; height: 40px; }
.coffee-equipment .coffee-stepper input { font-size: 22px; }
.coffee-temperature-value { display: flex; align-items: baseline; justify-content: center; gap: 2px; }
.coffee-temperature-value > span { color: var(--text-sec); font-size: 12px; white-space: nowrap; }
.coffee-range-group { padding: 16px; border-top: 1px solid #2C2C2C; }
.coffee-control-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.coffee-control-heading output { color: var(--brand-color); font-size: 12px; font-weight: 500; white-space: nowrap; }
.coffee-range { --range-progress: 50%; -webkit-appearance: none; appearance: none; width: 100%; height: 4px; padding: 0; margin: 12px 0 8px; border-radius: 4px; background: linear-gradient(to right, var(--brand-color) var(--range-progress), #444 var(--range-progress)); cursor: pointer; display: block; }
.coffee-range::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border: 3px solid var(--app-card); border-radius: 50%; background: var(--brand-color); box-shadow: 0 0 0 1px #444; }
.coffee-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid var(--app-card); border-radius: 50%; background: var(--brand-color); box-shadow: 0 0 0 1px #444; }
.coffee-range-caption { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-sec); margin: -3px 0 14px; }
.coffee-range-labels { display: flex; justify-content: space-between; gap: 2px; }
.coffee-range-labels button { padding: 10px 0 0; min-height: 30px; background: transparent; border: none; font-family: inherit; color: var(--text-sec); font-size: 11px; cursor: pointer; }
.coffee-range-labels button[aria-pressed="true"] { color: var(--brand-color); font-weight: 600; }
.coffee-ratio-labels { gap: 0; }
.coffee-ratio-labels button { flex: 0 0 18px; text-align: center; }
.coffee-range-precise { height: 32px; margin: 4px 0 0; background: transparent; box-sizing: border-box; }
.coffee-range-precise::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--brand-color) var(--range-progress), #444 var(--range-progress)); }
.coffee-range-precise::-webkit-slider-thumb { box-sizing: border-box; margin-top: -7px; }
.coffee-range-precise::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(to right, var(--brand-color) var(--range-progress), #444 var(--range-progress)); }
.coffee-ratio-precise { position: relative; display: block; height: 43px; margin: -4px 9px 0; }
.coffee-ratio-precise button { position: absolute; left: var(--tick-position); top: calc(var(--tick-row) * 18px); transform: translateX(-50%); width: 20px; min-height: 18px; height: 18px; padding: 0; font-size: 10px; line-height: 18px; font-variant-numeric: tabular-nums; }
.coffee-ratio-precise button::before { content: ''; position: absolute; top: calc(-4px - var(--tick-row) * 18px); left: 50%; width: 1px; height: 3px; background: #666; pointer-events: none; }
.coffee-ratio-precise button[aria-pressed="true"]::before { background: var(--brand-color); }
.coffee-timer.coffee-lab-timer { position:relative;inset:auto;transform:none;margin:12px auto 20px;width:min(240px,100%);border:3px solid var(--brand-color);border-radius:50%;box-sizing:border-box; }
.coffee-lab-part { text-align:center;margin:0 0 24px; }
.coffee-lab-part strong { color:var(--text-main);font-variant-numeric:tabular-nums; }
.coffee-lab-step { margin-bottom:12px; }
.coffee-profile-labels button { font-size: 10px; }
.coffee-recipe-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); text-align: center; margin: 0 0 18px; }
.coffee-recipe-preview > div + div { border-left: 1px solid #333; }
.coffee-recipe-preview strong { display: block; color: var(--text-main); font-size: 18px; font-weight: 600; letter-spacing: -0.3px; font-variant-numeric: tabular-nums; }
.coffee-recipe-preview small { display: block; margin-top: 4px; color: var(--text-sec); font-size: 10px; }
.coffee-primary { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 0; font-family: inherit; }
.coffee-primary .material-symbols-rounded { font-size: 22px; }
#view-cafe[data-coffee-phase="draining"] .coffee-timer-progress { stroke: var(--brand-color); }
.coffee-method-help { color: var(--text-sec); font-size: 12px; line-height: 1.6; margin-top: 18px; }
.coffee-method-help summary { cursor: pointer; text-align: center; }
.coffee-method-help p { padding: 0 5px; }
.coffee-storage-note { color: var(--text-sec); font-size: 11px; text-align: center; margin-top: 24px; line-height: 1.5; }
.coffee-brew-header { display: none; position: relative; flex-shrink: 0; min-height: var(--header-details-height); box-sizing: border-box; align-items: center; }
#view-cafe.active-view[data-coffee-mode="brew"] { display: flex !important; flex-direction: column; }
#view-cafe[data-coffee-mode="brew"] .coffee-content { position: relative; top: auto; bottom: auto; flex: 1; min-height: 0; }
#view-cafe[data-coffee-mode="brew"] .coffee-setup-header { display: none; }
#view-cafe[data-coffee-mode="brew"] .coffee-brew-header { display: flex; }
.coffee-brew-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: 8px; width: 100%; }
.coffee-brew-toolbar > .coffee-sound-btn { justify-self: end; }
.coffee-brew-header .coffee-text-btn { min-width: 0; min-height: 40px; justify-content: flex-start; align-items: center; padding: 0; text-align: left; }
.coffee-name-display { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; max-height: 36px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: normal; overflow-wrap: anywhere; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text-main); text-align: left; }
.coffee-brew-header .coffee-text-btn > .material-symbols-rounded { flex-shrink: 0; }
.coffee-text-btn { display: inline-flex; align-items: center; gap: 8px; background: none; border: none; color: var(--text-sec); padding: 8px 0; font-family: inherit; font-size: 13px; cursor: pointer; }
.coffee-text-btn .material-symbols-rounded { font-size: 20px; }
.coffee-sound-btn { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #333; border-radius: 12px; background: transparent; color: var(--text-sec); cursor: pointer; }
.coffee-sound-btn[aria-pressed="true"] { color: var(--brand-color); }
.coffee-brew-summary { min-width: 0; margin: 0; color: var(--text-sec); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; white-space: pre-line; text-align: center; }
.coffee-brew-stage { position: relative; height: 276px; }
.coffee-timer { width: min(240px, calc(100% - 80px)); aspect-ratio: 1; position: absolute; top: 144px; left: 50%; transform: translate(-50%, -50%); }
.coffee-timer svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.coffee-timer circle { fill: none; stroke-width: 3; }
.coffee-timer-track { stroke: #333; }
.coffee-timer-progress { stroke: var(--brand-color); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.coffee-timer-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.coffee-timer-face strong { color: var(--text-main); font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
#coffee-timer-hint { font-size: 12px; color: var(--text-sec); }
.coffee-announcement { color: var(--brand-color); font-size: 13px; min-height: 20px; margin: 0 0 14px; text-align: center; }
.coffee-announcement:empty { display: none; }
.coffee-targets { display: flex; justify-content: space-between; position: absolute; top: 12px; left: -3px; right: -3px; background: transparent; border: 0; border-radius: 0; overflow: visible; pointer-events: none; }
.coffee-targets > div { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.coffee-targets > div + div { text-align: right; }
.coffee-targets strong { font-size: 26px; font-weight: 700; color: var(--brand-color); font-variant-numeric: tabular-nums; }
.coffee-targets small { font-size: 16px; font-weight: 400; }
#coffee-next-target { color: var(--text-sec); font-size: 26px; margin-top: 0; }
.coffee-targets > .coffee-target-stats { gap: 16px; }
.coffee-time-metric { display: flex; flex-direction: column; gap: 8px; }
.coffee-estimate, .coffee-brew-tip, .coffee-chart-note { color: var(--text-sec); font-size: 11px; line-height: 1.5; text-align: center; margin: 12px 0 20px; }
.coffee-display-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 12px; }
.coffee-display-toggle { margin-left: auto; }
.coffee-display-toggle { display: flex; padding: 3px; background: var(--app-card); border: 1px solid #2C2C2C; border-radius: 10px; }
.coffee-display-toggle button { border: 0; border-radius: 7px; padding: 7px 10px; color: var(--text-sec); background: transparent; font-family: inherit; font-size: 11px; cursor: pointer; }
.coffee-display-toggle button[aria-pressed="true"] { background: #333; color: var(--brand-color); }
.coffee-steps { list-style: none; padding: 0; margin: 0; }
.coffee-step { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; padding: 15px 0; border-bottom: 1px solid #2C2C2C; }
.coffee-step time { color: var(--text-sec); font-size: 12px; font-variant-numeric: tabular-nums; }
.coffee-step strong { display: block; color: var(--text-main); font-size: 13px; font-weight: 500; line-height: 1.5; }
.coffee-step p { color: var(--text-sec); font-size: 11px; margin: 4px 0 0; line-height: 1.5; }
.coffee-step > span { color: var(--text-sec); font-size: 15px; white-space: nowrap; }
.coffee-step { opacity: .55; border-left: 3px solid transparent; padding-left: 10px; }
.coffee-step.is-current { opacity: 1; border-left-color: var(--brand-color); background: #c5e01e0a; border-radius: 6px; }
.coffee-step.is-current strong, .coffee-step.is-current > span { color: var(--brand-color); }
.coffee-step.is-current strong { font-weight: 700; }
.coffee-step.is-next { opacity: .8; }
.coffee-step.is-complete { opacity: .45; }
.coffee-chart { display: flex; gap: 8px; height: 185px; padding: 12px 2px 0; border-bottom: 1px solid #333; }
.coffee-bar-column { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; position: relative; }
.coffee-bar { min-height: 3px; position: relative; overflow: hidden; background: #222; border: 0; border-radius: 6px 6px 0 0; }
.coffee-bar-fill { position: absolute; inset: 0; background: var(--brand-color); transform: scaleY(0); transform-origin: bottom; }
.coffee-bar-column.is-complete .coffee-bar-fill { background: #657014; }
.coffee-bar-value { color: var(--text-sec); font-size: 11px; margin-bottom: 7px; font-variant-numeric: tabular-nums; }
.coffee-bar-column.is-current .coffee-bar-value { color: var(--brand-color); }
.coffee-bar-label { color: var(--text-sec); font-size: 10px; padding: 8px 0; }
.coffee-brew-actions { display: contents; }
.coffee-brew-actions button { position: absolute; margin: 0; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#coffee-restart { width: 56px; height: 56px; left: -5px; top: 200px; }
#coffee-start:disabled { opacity: 1; cursor: default; }
#coffee-start { width: 56px; height: 56px; right: -6px; top: 200px; }
#coffee-next { width: 42px; height: 42px; right: 0; top: 114px; }
.coffee-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%); white-space: nowrap; border: 0 !important; }
.coffee-secondary { height: 56px; border: 1px solid #3a3a3a; background: var(--app-card); border-radius: 12px; color: var(--text-main); padding: 0 12px; font: inherit; font-size: 12px; display: flex; justify-content: center; align-items: center; gap: 4px; cursor: pointer; }
.coffee-secondary:disabled { color: #666; opacity: 0.65; cursor: default; }
.coffee-complete { text-align: center; margin: 24px 0 0; padding: 24px 0 0; border-top: 1px solid #333; }
.coffee-complete p { color: var(--text-sec); font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
@media (max-width: 360px) {
    .coffee-range-group { padding: 14px 12px; }
    .coffee-measure { padding-left: 4px; padding-right: 4px; }
    .coffee-stepper input { font-size: 27px; }
    .coffee-profile-labels button { font-size: 9px; }
    .coffee-control-heading output { font-size: 11px; }
}

.coffee-preset-guide { color: var(--text-sec); font-size: 11px; line-height: 1.6; margin: 0 0 20px; }
.coffee-stepper button:disabled { opacity: 0.35; cursor: default; }

.coffee-equipment-name { display: block; box-sizing: border-box; width: 100%; min-width: 0; min-height: 32px; padding: 6px 4px; border: 0; border-radius: 6px; background: transparent; color: var(--text-sec); font: inherit; font-size: 11px; line-height: 20px; text-align: center; text-overflow: ellipsis; }
.coffee-equipment-name::placeholder { color: var(--text-sec); opacity: 1; }
.coffee-equipment-name:focus { outline: none; background: #171717; color: var(--text-main); }

/* New recipe editor/history use the established coffee controls and tokens. */
#coffee-journal-view { max-width: 640px; margin: 0 auto; }
.czj-library-tabs { margin: 24px 0 12px auto; width: fit-content; }
.czj-grid, .czj-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:12px; }
.czj-field { display:flex; flex-direction:column; gap:9px; min-width:0; margin:0 0 20px; color:var(--text-sec); font-size:12px; }
.czj-field input, .czj-field select, .czj-field textarea { width:100%; min-width:0; box-sizing:border-box; border:0; border-bottom:1px solid #333; border-radius:0; padding:8px 0 10px; background:transparent; color:var(--text-main); font:inherit; font-size:16px; }
.czj-field select { background:var(--app-card); }
.czj-field textarea { resize:vertical; }
.czj-status, .czj-muted { font-size:12px; line-height:1.6; color:var(--text-sec); overflow-wrap:anywhere; }
.czj-status:empty { display:none; }
.czj-status.is-error { color:#ffb4a8; }
.czj-step-editor, .czj-preview, .czj-notice { min-width:0; border:1px solid #2c2c2c; border-radius:16px; background:var(--app-card); padding:16px; margin:16px 0 20px; font-size:13px; line-height:1.6; }
.czj-step-editor legend { color:var(--text-sec); padding:0 8px; }
.czj-step-actions { display:grid; grid-template-columns:44px 44px minmax(0,1fr); gap:8px; }
.czj-step-actions button { min-width:0; font-size:12px; }
.czj-timeline { list-style:none; padding:0; margin:14px 0 0; }
.czj-timeline li { display:grid; grid-template-columns:56px minmax(0,1fr); gap:12px; padding:12px 0; border-bottom:1px solid #333; font-size:12px; }
.czj-timeline time { color:var(--text-sec); font-variant-numeric:tabular-nums; }
.czj-timeline strong { display:block; font-weight:500; overflow-wrap:anywhere; }
.czj-timeline small { display:block; margin-top:5px; color:var(--text-sec); line-height:1.6; }
.czj-events { padding-left:20px; color:var(--text-sec); font-size:12px; line-height:1.8; }
.czj-actions > *, .czj-grid > * { min-width:0; }
#coffee-sensory { margin-top:28px; }
#coffee-chart { overflow-x:auto; }
#coffee-chart .coffee-bar-column { min-width:22px; }
#view-cafe[data-coffee-mode="brew"] #coffee-result { margin-top:24px; }

/* Cafeteria is the entrance; collections are independent inner screens. */
#view-cafe .coffee-hub-header { display:none; position:relative; inset:auto; flex-shrink:0; box-sizing:border-box; }
#view-cafe[data-coffee-mode="home"] .coffee-library-header { display:none; }
#view-cafe[data-coffee-mode="home"] .coffee-hub-header { display:flex; }
#view-cafe[data-coffee-mode="library"] .coffee-library-header { display:flex; }
#view-cafe.active-view:not([data-coffee-mode="home"]) ~ .app-bottom-nav { display:none !important; }
#view-cafe[data-coffee-mode="library"] .coffee-content { padding-bottom:calc(28px + var(--safe-bottom)); }
.coffee-hub-actions { display:flex; flex-direction:column; gap:12px; }
.coffee-hub-actions .coffee-free-card { margin:0; }

/* Main Café header shares the exact home-header layout used by the other menu entries. */
#coffee-hub-search { width:100%; min-width:0; background:transparent; border:0; color:var(--text-main); font:inherit; font-size:16px; outline:none; }
#view-cafe[data-coffee-mode="home"] .coffee-hub-actions .coffee-free-card { min-height:104px; box-sizing:border-box; padding:22px; gap:18px; }
#view-cafe[data-coffee-mode="home"] .coffee-hub-actions .material-symbols-rounded { font-size:30px; }

/* Recipe collection uses the same detail header as the recipe setup screen. */
#view-cafe[data-coffee-mode="collection"] .coffee-setup-header { display:flex; }
#view-cafe[data-coffee-mode="collection"] .coffee-content { padding-bottom:calc(28px + var(--safe-bottom)); }
.coffee-item-menu:disabled { opacity:1; cursor:default; }
.coffee-item-menu .material-symbols-rounded { font-size:26px; }

/* Extraction actions follow the established left-trash/right-action layout. */
.coffee-extraction-actions > .coffee-primary { width:auto; min-height:44px; height:auto; margin:0 0 0 auto; padding:12px 16px; }

/* Saved results share the recipe cards; only sensory observations remain editable. */
.coffee-extraction-summary { padding:20px; }
.coffee-extraction-summary h2 { margin:0 0 20px; color:var(--brand-color); font-size:18px; line-height:1.4; }
.coffee-result-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px 12px; }
.coffee-result-stats > div { min-width:0; }
.coffee-result-stats span { display:block; color:var(--text-sec); font-size:11px; line-height:1.5; margin-bottom:6px; }
.coffee-result-stats strong { display:block; color:var(--text-main); font-size:16px; font-weight:500; overflow-wrap:anywhere; }
.coffee-result-equipment { grid-template-columns:repeat(2,minmax(0,1fr)); }
.coffee-result-equipment, .coffee-result-times { border-top:1px solid #333; margin-top:20px; padding-top:20px; }
.coffee-result-times strong { font-variant-numeric:tabular-nums; }
#coffee-sensory { max-width:640px; box-sizing:border-box; margin:20px auto 0; }
#coffee-sensory-status:empty { display:none; }
.coffee-item-actions { position:absolute; right:20px; top:calc(100% - 4px); z-index:120; min-width:224px; max-width:calc(100% - 40px); padding:6px; background:var(--app-card); border:1px solid #333; border-radius:12px; box-shadow:0 10px 28px #0008; }
.coffee-item-actions[hidden] { display:none; }
.coffee-item-actions button { display:flex; align-items:center; gap:12px; width:100%; min-height:44px; padding:10px 12px; border:0; border-radius:8px; background:transparent; color:var(--text-main); text-align:left; font:inherit; font-size:13px; cursor:pointer; }
.coffee-item-actions button:hover, .coffee-item-actions button:focus-visible { background:#ffffff0d; }
.coffee-item-actions .coffee-menu-delete { color:#ff6262; }

.coffee-method-guide { padding:20px; margin:20px 0; }
.coffee-method-guide h2 { margin:0 0 12px; font-size:16px; color:var(--brand-color); }
.coffee-method-guide p { font-size:12px; line-height:1.7; color:var(--text-sec); }
.coffee-method-guide a { font-size:12px; color:var(--brand-color); }

.coffee-score-summary { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr); align-items:start; gap:8px; margin:0 0 24px; }
.coffee-score-ring { width:min(140px,100%); aspect-ratio:1; justify-self:center; border:3px solid #353535; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; box-sizing:border-box; }
.coffee-score-ring.is-rated { border-color:var(--brand-color); }
.coffee-score-ring strong { color:var(--text-main); font-size:clamp(24px,8vw,44px); font-weight:700; font-variant-numeric:tabular-nums; letter-spacing:-1px; }
.coffee-score-ring span { color:var(--text-sec); font-size:12px; }
.coffee-score-metric { min-width:0; text-align:left; }
.coffee-score-metric strong { display:block; font-size:clamp(16px,5vw,24px); color:var(--text-main); font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.coffee-score-metric span { display:block; font-size:11px; color:var(--text-sec); margin-bottom:6px; }
.coffee-result-method { grid-template-columns:1fr; margin-bottom:18px; }
.coffee-extraction-summary .coffee-result-measures { grid-template-columns:repeat(2,minmax(0,1fr)); }
#coffee-sensory { padding:0; border:0; background:transparent; }
.coffee-score-card,.coffee-sensory-card { border:1px solid #353535; border-radius:16px; padding:18px 14px; background:var(--app-card); box-sizing:border-box; }
.coffee-score-card { margin-bottom:20px; }
.coffee-score-card .czj-field { margin:0; }
.coffee-score-card input { font-size:28px; font-weight:600; }

/* Execution: keep the summary and target text in their own layout rows. */
.coffee-brew-toolbar { grid-template-columns:40px minmax(0,1fr) 40px; grid-template-rows:40px auto; gap:4px 10px; }
.coffee-brew-toolbar > .coffee-text-btn { grid-column:1; grid-row:1; }
.coffee-brew-toolbar > .coffee-name-display { grid-column:2; grid-row:1; justify-self:stretch; text-align:center; }
.coffee-brew-toolbar > .coffee-sound-btn { grid-column:3; grid-row:1; }
.coffee-brew-summary { grid-column:1 / -1; grid-row:2; display:flex; flex-direction:column; gap:2px; line-height:15px; font-size:clamp(10px,3vw,12px); }
.coffee-brew-summary span { display:block; max-width:100%; overflow-wrap:anywhere; }
/* One fixed-height row with all three items centered on the same axis. */
.coffee-brew-header { align-items:flex-start; }
.coffee-brew-toolbar { align-items:center; }
.coffee-brew-header .coffee-text-btn { align-items:center; justify-content:flex-start; padding:0; width:40px; height:40px; box-sizing:border-box; }
.coffee-brew-header .coffee-text-btn > .material-symbols-rounded, .coffee-name-display { line-height:20px; }
.coffee-name-display { max-height:40px; }
.coffee-setup-header { align-items:flex-start; }
.coffee-setup-heading { padding-top:7px; }
.coffee-brew-stage { height:auto; min-height:0; display:grid; grid-template-columns:minmax(0,1fr); grid-template-rows:auto 250px; row-gap:8px; }
.coffee-targets { grid-area:1 / 1; position:static; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.2fr); gap:12px; width:100%; box-sizing:border-box; }
.coffee-targets > div { gap:4px; }
.coffee-targets strong { overflow-wrap:anywhere; line-height:1.2; }
#coffee-next-target { font-size:clamp(16px,5.5vw,24px); }
.coffee-timer { grid-area:2 / 1; position:relative; top:auto; left:auto; transform:none; align-self:center; justify-self:center; width:min(240px,calc(100% - 86px)); }
.coffee-brew-actions { grid-area:2 / 1; position:relative; display:block; pointer-events:none; }
.coffee-brew-actions button { pointer-events:auto; }
.coffee-lab-orbit { display:grid; grid-template-columns:48px minmax(0,1fr) 56px; grid-template-rows:repeat(2,minmax(64px,1fr)); align-items:center; gap:4px; width:100%; max-width:356px; margin:12px auto; }
.coffee-lab-orbit .coffee-lab-timer { grid-area:1 / 2 / 3 / 3; width:100%; max-width:240px; margin:0; }
.coffee-lab-orbit .coffee-timer-face { gap:4px; }
.coffee-lab-orbit .coffee-timer-face strong { font-size:clamp(30px,10vw,44px); }
.coffee-lab-orbit .coffee-label { text-align:center; padding:0 6px; }
.coffee-lab-orbit .coffee-lab-control { width:48px; height:48px; min-height:48px; padding:0; margin:0; border-radius:50%; display:flex; align-items:center; justify-content:center; box-sizing:border-box; }
.coffee-lab-control[data-lab-control="pour"] { grid-area:1 / 1; }
.coffee-lab-control[data-lab-control="wait"] { grid-area:2 / 1; }
.coffee-lab-control[data-lab-control="mark"] { grid-area:1 / 3; }
.coffee-lab-orbit .coffee-lab-control[data-lab-control="play"] { grid-area:2 / 3; width:56px; height:56px; min-height:56px; }
.coffee-lab-orbit .coffee-lab-control[data-lab-control="mark"] { justify-self:center; }
.coffee-lab-control.is-active { background:var(--brand-color); border-color:var(--brand-color); color:#111; }
.coffee-lab-control:disabled { opacity:.45; }
.coffee-lab-finish { width:100%; min-height:48px; }
.coffee-lab-finish:disabled { background:var(--app-card); color:var(--text-sec); opacity:.5; cursor:not-allowed; }
.coffee-lab-audio { display:flex; gap:6px; flex-shrink:0; }
.coffee-lab-audio .coffee-sound-btn { box-sizing:border-box; }
.coffee-lab-audio .coffee-sound-btn[aria-pressed="false"] { opacity:.55; }
.coffee-lab-audio .coffee-sound-btn[aria-pressed="true"] { border-color:var(--brand-color); }
.coffee-lab-review { display:flex; flex-direction:column; gap:16px; width:100%; max-width:640px; margin:0 auto; }
.coffee-lab-review-card,.coffee-lab-review-summary { box-sizing:border-box; padding:clamp(14px,4vw,20px); }
.coffee-lab-review-card h2,.coffee-lab-review-heading { margin:0 0 14px; color:var(--brand-color); font-size:16px; line-height:1.3; }
.coffee-lab-review-heading { margin:8px 0 0; }
.coffee-lab-review-timing { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) minmax(0,1fr); gap:8px; align-items:center; }
.coffee-lab-review-timing .coffee-score-metric { text-align:center; }
.coffee-lab-review-timing .coffee-score-ring strong { font-size:clamp(22px,7vw,36px); }
.coffee-lab-review-count { text-align:center; color:var(--text-sec); font-size:12px; padding-top:14px; }
.coffee-lab-review-card .czj-field { margin:0 0 16px; }
.coffee-lab-review-card .czj-grid { gap:16px 12px; }
.coffee-lab-review-card .czj-grid .czj-field { margin:0; }
.coffee-lab-review-card .czj-field:last-child { margin-bottom:0; }
.coffee-lab-review-equipment { border-top:1px solid #333; margin-top:16px; padding-top:16px; }
.coffee-lab-review-equipment h3 { margin:0 0 14px; color:var(--text-sec); font-size:13px; font-weight:600; }
.coffee-lab-ratio { display:flex; flex-direction:column; gap:9px; min-width:0; color:var(--text-sec); font-size:12px; }
.coffee-lab-ratio strong { color:var(--text-main); font-size:20px; line-height:1.5; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.coffee-lab-review .coffee-lab-step { margin:0; }
.coffee-lab-step-header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.coffee-lab-step-name { display:flex; align-items:center; gap:10px; min-width:0; }
.coffee-lab-step-name > .material-symbols-rounded { color:var(--brand-color); font-size:24px; }
.coffee-lab-step-name small,.coffee-lab-step-duration small { display:block; color:var(--text-sec); font-size:11px; line-height:1.4; }
.coffee-lab-step-name strong { display:block; font-size:16px; line-height:1.4; }
.coffee-lab-step-duration { text-align:right; flex-shrink:0; }
.coffee-lab-step-duration strong { display:block; font-size:24px; font-variant-numeric:tabular-nums; color:var(--brand-color); line-height:1.2; }
.coffee-lab-step-times { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:14px 0; margin:12px 0; border-top:1px solid #333; border-bottom:1px solid #333; }
.coffee-lab-step-times .coffee-score-metric strong { font-size:18px; }
.coffee-lab-review > .btn-outline { margin-top:0!important; }
.coffee-lab-orbit + .coffee-lab-part { margin:0 0 12px; }
#coffee-restart, #coffee-start { top:auto; bottom:0; }
#coffee-next { top:calc(50% - 21px); }
.coffee-planned-time { display:flex; flex-direction:column; align-items:flex-start; gap:3px; min-width:0; }
.coffee-planned-time small { color:var(--text-sec); font-size:9px; line-height:1.15; margin:0; }




