.recipe-mode .workbook-grid,.recipe-mode .sheet-switcher{display:none!important}.recipe-intro{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 0}.recipe-intro h2{font-size:clamp(24px,3vw,36px);letter-spacing:-.04em;margin:6px 0 10px}.recipe-intro p{margin:0;color:var(--theme-muted);max-width:540px}.recipe-eyebrow{font-size:11px;font-weight:800;letter-spacing:.14em}.recipe-actions,.recipe-dialog-actions{display:flex;gap:10px;flex-wrap:wrap}.recipe-actions .button{white-space:nowrap}.recipe-summary{display:flex;gap:30px;border-block:1px solid var(--theme-border);padding:18px 0;margin-bottom:24px;color:var(--theme-muted);font-size:13px}.recipe-summary strong{font-size:23px;color:var(--theme-text);margin-right:4px}.recipe-filters{display:grid;grid-template-columns:2fr 1fr auto;gap:16px;align-items:end;margin-bottom:24px}.recipe-filters label,.recipe-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:700;min-width:0}.recipe-filters input,.recipe-filters select,.recipe-dialog input,.recipe-dialog select,.recipe-dialog textarea{width:100%;min-width:0;border:1px solid var(--theme-border);border-radius:10px;padding:12px;background:var(--theme-surface);color:var(--theme-text);font:inherit;font-size:16px;box-sizing:border-box}.recipe-filters .recipe-favorite-filter{flex-direction:row;align-items:center;min-height:48px;white-space:nowrap}.recipe-favorite-filter input{width:18px;height:18px}.recipe-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding-bottom:40px}.recipe-card{position:relative;border:1px solid var(--theme-border);border-radius:18px;background:var(--theme-surface);overflow:hidden}.recipe-card-open{width:100%;text-align:left;display:flex;flex-direction:column;align-items:start;gap:16px;padding:24px;border:0;background:transparent;color:inherit;cursor:pointer;min-height:224px}.recipe-card-open strong{font-size:23px;line-height:1.3;letter-spacing:-.02em;overflow-wrap:anywhere;max-width:100%}.recipe-category{font-size:11px;text-transform:uppercase;letter-spacing:.08em;padding-right:40px;color:var(--theme-muted)}.recipe-meta{font-size:13px;color:var(--theme-muted)}.recipe-card-cta{margin-top:auto;font-size:13px;font-weight:800}.recipe-heart{position:absolute;right:12px;top:10px;border:0;background:transparent;font-size:25px;width:44px;height:44px;cursor:pointer;color:inherit}.recipe-empty{text-align:center;padding:60px 20px;background:var(--theme-soft);border-radius:18px}.recipe-empty p{max-width:470px;margin:16px auto;color:var(--theme-muted)}.recipe-dialog{width:min(720px,calc(100% - 32px));max-height:90dvh;box-sizing:border-box;padding:28px;border:1px solid var(--theme-border);border-radius:22px;background:var(--theme-surface);color:var(--theme-text);overflow:auto;overscroll-behavior:contain}.recipe-dialog::backdrop{background:color-mix(in srgb, var(--theme-accent) 69%, transparent);backdrop-filter:blur(4px)}.recipe-dialog-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.recipe-dialog-head h2{font-size:27px;margin:0;letter-spacing:-.035em;overflow-wrap:anywhere}.recipe-dialog-head .dialog-close{flex:none}.recipe-dialog h3{font-size:18px;margin:24px 0 14px}.recipe-dialog p{line-height:1.6}.recipe-portions{background:var(--theme-soft);border-radius:14px;padding:1px 20px 8px;margin:22px 0}.recipe-portion-controls{display:flex;align-items:end;gap:12px}.recipe-portion-controls label{max-width:115px}.recipe-portion-controls button{height:48px;min-width:48px}.recipe-portions p{font-size:12px;color:var(--theme-muted)}.recipe-ingredients-view table{border-collapse:collapse;width:100%;font-size:15px;table-layout:fixed}.recipe-ingredients-view th{font-size:12px;text-align:left;color:var(--theme-muted)}.recipe-ingredients-view td,.recipe-ingredients-view th{padding:12px 5px;border-bottom:1px solid var(--theme-border);overflow-wrap:anywhere}.recipe-ingredients-view th:first-child{width:32%}.recipe-ingredients-view td:first-child{font-weight:800}.recipe-ingredients-view small{display:block;font-size:12px;font-weight:400;color:var(--theme-muted);margin-top:4px}.recipe-steps ol{padding-left:25px;line-height:1.7}.recipe-steps li{padding-left:8px;margin:16px 0;white-space:pre-line;overflow-wrap:anywhere}.recipe-notes{white-space:pre-wrap;overflow-wrap:anywhere}.recipe-source{display:inline-block;margin:15px 0;text-decoration:underline;font-size:13px}.recipe-dialog-actions{justify-content:flex-end;margin-top:28px;border-top:1px solid var(--theme-border);padding-top:20px}.recipe-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0}.recipe-fields>label:first-child{grid-column:1/-1}.recipe-editor>label{margin:20px 0}.recipe-editor textarea{line-height:1.6;resize:vertical}.recipe-ingredient-line{display:grid;grid-template-columns:90px 70px minmax(0,1fr);gap:10px;padding:15px 0;border-bottom:1px solid var(--theme-border);margin-bottom:15px}.recipe-ingredient-line .ingredient-note{grid-column:1/3}.recipe-ingredient-line>button{align-self:end;justify-self:end;min-height:44px}.recipe-import-form{display:grid;gap:15px;margin:24px 0}.recipe-dialog details{padding:16px 0;border-top:1px solid var(--theme-border)}.recipe-dialog summary{cursor:pointer;font-weight:700}.recipe-paste form{display:grid;gap:15px;padding-top:20px}.recipe-error{color:var(--theme-danger);overflow-wrap:anywhere}.recipe-import-notice{padding:16px;background:var(--theme-soft);border-radius:12px;font-size:13px;margin-top:16px}.recipe-import-notice p{margin:6px 0}.recipe-dialog button:focus-visible,.recipe-card button:focus-visible{outline:3px solid var(--theme-text);outline-offset:3px}
@media(max-width:950px){.recipe-intro{align-items:start;flex-direction:column}.recipe-list{grid-template-columns:repeat(2,minmax(0,1fr))}.recipe-filters{grid-template-columns:1fr 1fr}.recipe-favorite-filter{grid-column:1/-1}.recipe-summary{gap:20px}}
@media(max-width:550px){.recipe-intro{padding:20px 0}.recipe-actions{width:100%;display:grid;grid-template-columns:1fr}.recipe-actions button{width:100%;min-height:48px}.recipe-summary{justify-content:space-between;gap:10px}.recipe-summary span{display:flex;flex-direction:column;font-size:11px}.recipe-summary strong{font-size:24px}.recipe-filters{gap:12px;grid-template-columns:1fr}.recipe-list{grid-template-columns:1fr;gap:12px}.recipe-card-open{min-height:174px;padding:20px;gap:10px}.recipe-card-open strong{font-size:22px}.recipe-dialog{width:calc(100% - 16px);padding:20px 16px;max-height:94dvh;border-radius:18px}.recipe-dialog-head h2{font-size:23px}.recipe-fields{gap:14px}.recipe-fields>label:nth-child(2),.recipe-fields>label:nth-child(3){grid-column:1/-1}.recipe-ingredient-line{grid-template-columns:80px 1fr}.recipe-ingredient-line>label:nth-child(3){grid-column:1/-1}.recipe-ingredient-line .ingredient-note{grid-column:1/-1}.recipe-ingredient-line>button{grid-column:1/-1}.recipe-dialog-actions{display:grid;grid-template-columns:1fr;width:100%}.recipe-dialog-actions button{width:100%;min-height:48px}.recipe-dialog-actions .button{grid-row:1}.recipe-empty{padding:32px 16px}}
