/* Shared outcome tools. No motion or horizontal category rails. */
.prep-entry{max-width:1160px;margin:36px auto 48px;padding:0 24px;color:#2c2a29}
.prep-kicker{font-size:12px;letter-spacing:.12em;color:#625d50;margin:0 0 8px}
.prep-entry h2{font-size:clamp(25px,3vw,36px);margin:0 0 26px;line-height:1.4}
.prep-stage-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0 0 24px}
.prep-stage-grid article{min-width:0;border-top:1px solid #b6b3a6;padding:18px 0}
.prep-stage-grid span{color:#77715f;font-size:14px}.prep-stage-grid h3{font-size:21px;margin:14px 0 8px}.prep-stage-grid p{font-size:15px;line-height:1.7;margin:0 0 16px}.prep-stage-grid a{font-size:15px;color:#344a3c;text-underline-offset:5px}
.prep-header-button{white-space:nowrap}
.prep-applicability{font-size:15px!important;color:#435d49!important;margin:10px 0!important}
.prep-savebar{border-top:1px solid #c6ccbf;margin:24px 0 8px;padding:18px 0;display:flex;flex-wrap:wrap;gap:14px;align-items:center;justify-content:space-between}
.prep-savebar>div{min-width:0}.prep-savebar p{margin:6px 0 0;font-size:14px;line-height:1.6;color:#4e584c}.prep-savebar strong{font-size:16px}
.prep-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.prep-savebar button,.prep-dialog button,.prep-entry>button,.prep-header-button{font:inherit;min-height:44px;padding:10px 18px;line-height:1.5;border:1px solid #bdc6ba;border-radius:24px;background:#f6f7f2;color:#344a3c;cursor:pointer;white-space:normal}
.prep-savebar [data-prep-save],.prep-dialog #prep-generate,.prep-dialog #prep-copy{background:#354d3d;color:#fff;border-color:#354d3d}
.prep-dialog button:disabled,.prep-savebar button:disabled{opacity:.55;cursor:wait}.prep-dialog [hidden],.prep-savebar [hidden],.prep-entry[hidden]{display:none!important}
.prep-paste{margin-top:24px}.prep-paste summary{min-height:44px;cursor:pointer}.prep-paste textarea{display:block;width:100%;box-sizing:border-box;min-height:120px;padding:14px;font:inherit;line-height:1.6;resize:vertical;border:1px solid #a8b0a3;background:#fff}.prep-paste p{font-size:14px}
.prep-dialog{width:min(820px,calc(100% - 32px));max-width:none;max-height:90vh;max-height:90dvh;padding:0;box-sizing:border-box;border:1px solid #c8c5ba;border-radius:12px;background:#fbf9f5;color:#2c2a29;box-shadow:0 20px 80px #10181030;overflow:hidden}
.prep-dialog[open]{display:flex;flex-direction:column}.prep-dialog::backdrop{background:#18211bbb}
.prep-dialog-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:24px 28px 18px;border-bottom:1px solid #d7d5cb;flex-shrink:0}.prep-dialog-head h2{font-size:26px;line-height:1.4;margin:0}.prep-dialog-head button{flex-shrink:0}.prep-dialog-body{padding:20px 28px 40px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0}.prep-dialog p{line-height:1.75}.prep-dialog .prep-note{font-size:13px;line-height:1.65;color:#666458}
.prep-dialog h3{font-size:21px;line-height:1.5;margin:0 0 14px}.prep-dialog a{color:#304b3b;text-underline-offset:4px}.prep-items{border-top:1px solid #d1d2c8;margin:22px 0}.prep-item{padding:17px 0;border-bottom:1px solid #d1d2c8;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px}.prep-item p{margin:4px 0;font-size:13px}.prep-item .prep-actions{grid-column:1/-1}.prep-item h3{font-size:17px;margin:0}.prep-item .prep-actions button,.prep-item .prep-actions a{font-size:14px}.prep-reading,.prep-consult,.prep-privacy{border-top:1px solid #c6cbbc;padding-top:24px;margin-top:26px}.prep-reading{margin-bottom:24px}.prep-reading ul{padding-left:20px}
.prep-dialog label{display:block;line-height:1.6;margin:12px 0 6px;font-size:15px}.prep-dialog textarea{display:block;width:100%;box-sizing:border-box;border:1px solid #a4ada0;border-radius:4px;background:#fff;padding:14px;font:inherit;font-size:16px;line-height:1.7;resize:vertical;margin:6px 0 14px}.prep-dialog input[type=checkbox]{width:19px;height:19px;margin:0 10px 0 0;accent-color:#354d3d;vertical-align:middle}.prep-dialog .prep-import{position:relative;border:1px solid #bdc6ba;border-radius:24px;min-height:44px;box-sizing:border-box;padding:10px 18px;margin:0;color:#344a3c}.prep-import input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.prep-dialog .prep-import:focus-within{outline:2px solid #354d3d;outline-offset:3px}.prep-dialog #prep-summary-options label{padding:8px 0}.prep-dialog #prep-summary-result{border-top:1px solid #c8cdbc;padding-top:14px;margin-top:22px}.prep-dialog #prep-hub-status,.prep-dialog #prep-copy-status{color:#394f3e;font-size:14px}.prep-modal-open{overflow:hidden}.prep-dialog :focus-visible,.prep-savebar :focus-visible,.prep-entry :focus-visible{outline:2px solid #3b5642;outline-offset:4px}
@media(max-width:900px){.prep-entry{padding:0 20px;margin:28px auto 36px}.prep-stage-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 20px}.prep-stage-grid h3{font-size:19px}.prep-stage-grid p,.prep-stage-grid a{font-size:14px}.header-actions .friend-label{display:none}#top .header-actions{gap:6px;flex-wrap:wrap}.prep-header-button{font-size:12px;padding:8px 12px}.prep-dialog{width:100%;height:100dvh;max-height:100dvh;border-radius:0;margin:0}.prep-dialog-head{padding:18px 20px 14px;padding-top:max(18px,env(safe-area-inset-top))}.prep-dialog-head h2{font-size:24px}.prep-dialog-body{padding:16px 20px calc(24px + env(safe-area-inset-bottom))}.prep-savebar{display:block}.prep-savebar .prep-actions{margin-top:12px}.prep-item{grid-template-columns:minmax(0,1fr)}.prep-entry h2{font-size:26px}}
@media(max-width:360px){.prep-stage-grid{grid-template-columns:1fr}.prep-dialog-head{gap:8px}.prep-dialog-head h2{font-size:22px}}
@media print{.prep-entry,.prep-savebar,.prep-dialog,.prep-header-button{display:none!important}}
/* Keep the preparation shortcut reachable in the existing compact mobile header. */
@media(max-width:900px){body.guide-sidebar #top .header-actions{display:flex;width:auto;margin-left:auto;flex-shrink:0}body.guide-sidebar #top .header-actions>a,body.guide-sidebar #top .header-actions .friend-label{display:none}body.guide-sidebar #top .prep-header-button{font-size:12px;white-space:nowrap;padding:8px 12px}body.guide-sidebar #top{gap:10px}}
.prep-savebar .prep-note{display:block;font-size:12px;line-height:1.6;color:#65695d;margin-top:5px}
