:root{--bg:#f7f7f4;--ink:#222520;--green:#283d32;--muted:#656e62;--line:#e0e4dc;--soft:#e6ede3}
h1{font-family:inherit;font-size:clamp(26px,4vw,36px);letter-spacing:-1px}.recipe-nav{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}.recipe-nav button{flex:none}.btn,.recipe-segments button{min-height:44px}.recipe-tile{display:flex;flex-direction:column;gap:10px;padding:22px}.recipe-tile h2{font-size:20px;margin:0}.recipe-tile p{margin:0;font-size:13px;line-height:1.5}.recipe-tile .actions{margin-top:auto;padding-top:10px}.recipe-warning{padding:13px 15px;background:#fff5df;border:1px solid #e4d0a0;border-radius:12px;color:#745321;font-size:13px;line-height:1.6}.recipe-success{padding:15px;background:var(--soft);border-radius:12px}.recipe-segments{display:flex;gap:5px;padding:5px;background:var(--soft);border-radius:13px;margin:16px 0;overflow-x:auto}.recipe-segments button{border:0;border-radius:10px;background:transparent;padding:9px 16px;color:var(--green);font:inherit;white-space:nowrap;cursor:pointer}.recipe-segments .selected{background:white;box-shadow:0 1px 3px #203b3412;font-weight:650}.recipe-ingredients{margin:15px 0}.recipe-ingredients>div{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line)}.recipe-ingredients dt{font-weight:600;font-size:14px}.recipe-ingredients dt small{display:block;font-size:12px;line-height:1.5;color:var(--muted);font-weight:400;max-width:300px;margin-top:5px}.recipe-ingredients dd{font-size:15px;font-weight:700;margin:0;text-align:right;flex-shrink:0;max-width:45%}.recipe-steps{padding-left:23px;line-height:1.7;font-size:14px}.recipe-steps li{padding:7px}.guided-step{font-size:23px;line-height:1.5;margin:20px 0}.recipe-step-controls{display:flex;gap:12px;justify-content:space-between;margin:20px 0}.recipe-step-controls button:last-child{background:var(--green);color:white}.cup-guide{display:flex;align-items:center;justify-content:center;gap:20px;margin:22px 0;padding:15px;background:#f4f6f0;border-radius:14px;font-size:14px}.cup-guide svg{height:130px;width:110px;color:var(--green)}.cup-guide small{font-size:11px;color:var(--muted)}.foam-comparison{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0}.foam-comparison figure{margin:0;text-align:center;font-size:12px;line-height:1.6}.foam-cup{width:70px;height:85px;border:2px solid var(--green);border-radius:0 0 14px 14px;margin:0 auto 10px;background:#b7a18b;overflow:hidden}.foam-cup>div{background:#faf5e9;width:100%;border-bottom:1px dashed #b9b5a5}.recipe-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:20px 0}.recipe-metrics button{display:flex;flex-direction:column;align-items:start;text-align:left;gap:10px;cursor:pointer;color:var(--ink);margin:0;padding:18px}.recipe-metrics strong{font-size:28px}.recipe-metrics span{font-size:12px;line-height:1.5}.recipe-metrics .selected{border-color:var(--green);background:var(--soft)}.recipe-gap{display:flex;align-items:center;gap:16px;justify-content:space-between}.recipe-gap h3{font-size:15px;margin:0}.recipe-gap p{font-size:12px;line-height:1.6;margin-bottom:0}.quantity-stepper{display:flex;gap:12px;align-items:center;margin:12px 0}.quantity-stepper input{width:110px;text-align:center}.quantity-stepper button{font-size:20px;width:48px}.batch-panel,.calibration{padding:18px;background:#f6f8f2;border:1px solid var(--line);border-radius:14px;margin:18px 0}.calibration-inputs,.recipe-measure{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.calibration-inputs{grid-template-columns:repeat(3,1fr)}.calibration-inputs input{width:100%;min-width:0}.calibration label{display:block}.calibration textarea{width:100%;margin-top:10px}.recipe-timer{padding:18px;background:var(--soft);border-radius:14px;margin:18px 0}.recipe-timer strong{display:block;font-size:32px;margin-bottom:8px;font-variant-numeric:tabular-nums}.recipe-timer span{font-size:12px}.recipe-timer .actions{margin-top:15px;flex-wrap:wrap}.recipe-edit-actions{padding-top:20px}.recipe-edit-variant{background:#f8faf5;padding:14px;border-radius:12px;margin:15px 0}.recipe-edit-variant fieldset{margin:14px 0;padding:13px}.recipe-edit-variant textarea{min-height:110px}#recipe-body progress{width:100%;accent-color:var(--green)}
@media(max-width:600px){.library-grid{grid-template-columns:1fr}.recipe-nav{margin-right:-12px}.recipe-metrics{grid-template-columns:repeat(2,1fr)}.recipe-gap{align-items:start}.recipe-ingredients dd{max-width:42%}.dialog-body{padding:18px}.calibration-inputs{grid-template-columns:1fr}.recipe-tile{padding:20px}.cup-guide{gap:8px}.recipe-step-controls .btn{padding:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.foam-height-30{height:30px}.foam-height-15{height:15px}.foam-height-4{height:4px}
.recipe-reference{margin:18px 0}.recipe-reference img{display:block;width:100%;max-height:360px;object-fit:contain;background:var(--soft);border:1px solid var(--line);border-radius:14px}.recipe-reference figcaption{font-size:11px;color:var(--muted);margin-top:7px;line-height:1.5}.recipe-training{display:flex;flex-direction:column;gap:10px;margin:15px 0}.recipe-training a{line-height:1.5;text-decoration:none;white-space:normal}.recipe-media-editor{padding:16px;border:1px solid var(--line);border-radius:12px;margin:16px 0}.training-link-row{padding:12px 0;border-top:1px solid var(--line)}
