:root{--navy:#153c49;--teal:#007367;--mint:#e9f3ee;--ink:#203f49;--muted:#6c8086;--line:#dde7e3;--paper:#f5f8f6}*{box-sizing:border-box}html{scroll-behavior:smooth;scroll-padding-top:24px}body{margin:0;background:var(--paper);color:var(--ink);font:14px/1.55 system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .15s}a{color:var(--teal)}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #d3ac64;outline-offset:3px}[hidden]{display:none!important}.skip{position:fixed;top:-100px;left:20px;background:white;padding:12px;z-index:20}.skip:focus{top:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.sidebar{width:235px;position:fixed;inset:0 auto 0 0;background:white;border-right:1px solid var(--line);display:flex;flex-direction:column}.brand{height:100px;display:flex;align-items:center;justify-content:center;background:#193b53}.brand img{width:195px;max-height:88px;object-fit:contain}.side-content{padding:27px 18px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:750;color:var(--teal)}.sidebar .eyebrow{padding:0 9px;color:var(--muted);font-size:8px}.nav{display:flex;gap:10px;align-items:center;margin-top:12px;text-decoration:none;color:var(--muted);font-size:12px;padding:12px 10px;border-radius:6px}.nav.active{background:var(--mint);color:var(--teal);font-weight:650}.nav span{font-size:19px;line-height:1}.side-line{border-top:1px solid var(--line);margin:29px 8px}.step{display:flex;gap:13px;align-items:center;text-decoration:none;color:var(--ink);padding:13px 10px;font-size:12px}.step b{font-size:10px;color:var(--teal);border:1px solid #cfe0d8;border-radius:50%;width:29px;height:29px;display:grid;place-items:center}.step small{display:block;color:var(--muted);font-size:10px;margin-top:2px}.side-bottom{margin:auto 25px 25px;font-size:10px;color:var(--teal)}.side-bottom p{font-size:10px;color:var(--muted);margin:7px 0}.privacy-dot,.live-dot{display:inline-block;background:#6d9c83;border-radius:50%;width:6px;height:6px;margin-right:7px}.workspace{margin-left:235px}.topbar{height:66px;background:white;border-bottom:1px solid var(--line);padding:0 36px;display:flex;align-items:center;justify-content:space-between;font-size:11px;color:var(--muted)}.topbar i{font-style:normal;padding:0 10px;color:#b0bfba}.topbar b{font-weight:500;color:var(--ink)}.private-label{font-size:10px}main{padding:33px 36px 25px;max-width:1600px;margin:auto}.intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:27px}h1{font-size:32px;line-height:1.25;font-weight:550;letter-spacing:-1px;margin:8px 0 9px}.intro p{font-size:12px;color:var(--muted);margin:0}.editor-layout{display:grid;grid-template-columns:minmax(420px,1.2fr) minmax(310px,.9fr);align-items:start;gap:26px}.panel{background:white;border:1px solid var(--line);border-radius:9px;padding:25px;margin-bottom:20px;scroll-margin-top:20px}.section-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:24px}.section-number{display:grid;place-items:center;width:30px;height:30px;flex-shrink:0;background:var(--mint);color:var(--teal);border-radius:7px;font-size:10px;font-weight:700}.section-head h2{font-size:16px;margin:-2px 0 2px;font-weight:650}.section-head p{font-size:11px;color:var(--muted);margin:0}h3{font-size:12px;font-weight:650;margin:0 0 13px}.subheading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:8px}.subheading h3{margin:0}.text-button{background:none;border:0;color:var(--teal);font-size:10px;padding:0}.grid{display:grid;gap:15px}.grid.two{grid-template-columns:1fr 1fr}.span2{grid-column:span 2}label{display:block;color:var(--ink);font-size:11px;font-weight:550}label small{font-size:9px;color:#889991;font-weight:400;margin-left:4px}em{color:var(--teal);font-style:normal;font-size:11px}input:not([type=checkbox]):not([type=radio]),select,textarea{display:block;width:100%;min-width:0;margin-top:6px;padding:10px 11px;border:1px solid #d8e2dd;background:#fff;border-radius:5px;font-size:12px;color:var(--ink);min-height:40px}input::placeholder,textarea::placeholder{color:#94a39f;font-weight:400}textarea{resize:vertical;line-height:1.6}input:focus,select:focus,textarea:focus{border-color:var(--teal)}input[type=checkbox],input[type=radio]{accent-color:var(--teal);flex-shrink:0}.divider{border-top:1px solid var(--line);margin:23px 0}.segmented{border:0;padding:0;display:flex;background:#f2f6f3;border-radius:6px;margin:0 0 19px;gap:4px;padding:4px}.segmented label{flex:1;position:relative}.segmented input{position:absolute;opacity:0}.segmented span{display:block;text-align:center;padding:8px;font-size:11px;border-radius:4px;color:var(--muted)}.segmented input:checked+span{background:white;box-shadow:0 1px 4px #183b4611;color:var(--teal);font-weight:650}.segmented input:focus-visible+span{outline:3px solid #d3ac64}.field-note{font-size:10px;line-height:1.65;color:var(--muted);margin:13px 0 0}.badge{font-size:9px;background:var(--mint);color:var(--teal);border-radius:4px;padding:2px 6px;margin-left:5px;vertical-align:middle}.primary,.secondary{border-radius:5px;padding:10px 15px;min-height:40px;font-size:11px;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:8px}.primary{background:var(--teal);border:1px solid var(--teal);color:white}.primary:hover:not(:disabled){background:#005f55}.secondary{background:white;border:1px solid #d4e0da;color:var(--ink)}.secondary:hover:not(:disabled){background:var(--mint)}.add-button{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;width:100%;padding:17px 12px;background:#f6faf7;border:1px dashed #a4c5b4;border-radius:7px;color:var(--teal);font-size:12px;font-weight:600}.add-button span{font-size:20px;line-height:1}.add-button small{width:100%;font-size:9px;color:var(--muted);font-weight:400;margin-top:-4px}.catalog-note{font-size:9px;line-height:1.6;color:var(--muted);margin-top:13px}.catalog-note a{white-space:nowrap;margin-left:3px;text-decoration:none}.product-box{border:1px solid var(--line);border-radius:7px;margin-bottom:16px;overflow:hidden}.product-head{padding:15px;background:#f6f9f6;display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.product-head small{font-size:8px;color:var(--teal);text-transform:uppercase;letter-spacing:1px}.product-head h3{font-size:14px;line-height:1.4;margin:3px 0 0}.icon-button{background:none;border:0;font-size:24px;color:var(--muted);padding:0 5px;line-height:1.1}.product-body{padding:16px}.source-row{font-size:10px;padding-bottom:14px;margin-bottom:15px;border-bottom:1px solid var(--line);color:var(--muted)}.source-row b{color:var(--ink);font-weight:500}.choice-group{border:0;margin:0 0 15px;padding:0}.choice-group legend{font-size:10px;font-weight:650;padding:0;margin-bottom:7px}.choices{display:flex;flex-wrap:wrap;gap:6px}.choice{display:inline-flex;align-items:center;gap:6px;border:1px solid #d7e3dc;border-radius:4px;padding:7px 9px;line-height:1.4;font-size:10px;font-weight:450;cursor:pointer}.choice:has(input:checked){border-color:#78ad91;background:#edf6f0;color:var(--teal)}.choice input{margin:0;width:13px;height:13px}.product-body>.grid{margin-top:14px}.product-body>.field-note{padding:9px;background:#f7f7ef;border-radius:4px;font-size:9px}.review-check{display:flex;align-items:flex-start;gap:9px;background:#f1f7f3;padding:13px;border:1px solid #d8e8df;border-radius:5px;line-height:1.6;font-size:10px;margin:18px 0}.review-check input{margin:2px 0 0}.actions{display:flex;flex-wrap:wrap;gap:8px}.error-summary{font-size:11px;color:#994435;background:#fcf0ec;border:1px solid #eac4b8;padding:12px;border-radius:5px;margin-bottom:16px}.error-summary ul{padding-left:16px;margin:4px 0}.invalid{border-color:#b26148!important}footer{text-align:center;font-size:9px;color:#8c9c96;margin:30px 0 5px}footer span{padding:0 8px}.preview-column{position:sticky;top:22px;min-width:0}.preview-top{display:flex;align-items:center;justify-content:space-between;margin:0 0 13px}.preview-top>div{display:flex;align-items:center}.preview-top h2{margin:0;font-size:11px;font-weight:600}.live-dot{background:#158d6a;width:5px;height:5px}.preview-top>span{font-size:9px;color:var(--muted);border:1px solid var(--line);padding:3px 6px;border-radius:4px}.preview-frame{padding:16px;background:#eaf0ec;border:1px solid #dfe8e1;border-radius:8px;max-height:calc(100vh - 110px);overflow:auto}.paper{background:white;aspect-ratio:210/297;padding:13% 11%;box-shadow:0 2px 8px #183b4610;position:relative;margin-bottom:15px;display:flex;flex-direction:column;color:#1a1a1a;font-family:Arial,sans-serif}.paper:last-child{margin-bottom:0}.paper-date{text-align:right;font-size:8px;margin-bottom:29px}.paper-doctor{font-size:10px;text-transform:uppercase;min-height:15px;margin-bottom:10px;overflow-wrap:anywhere}.paper-meta{display:flex;justify-content:space-between;gap:10px;font-size:7px;border-bottom:1px solid #333;padding-bottom:7px;overflow-wrap:anywhere}.paper-address{font-size:7px;margin-top:7px;overflow-wrap:anywhere}.paper-recipient{font-size:8px;margin-top:25px;border-bottom:1px solid #333;padding-bottom:7px;overflow-wrap:anywhere}.paper-recipient p{margin:0 0 7px}.paper-recipient p:last-child{margin:0}.paper-item{font-size:8px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;margin-top:15px}.paper-item strong{font-weight:500}.paper-empty{margin:34px 0;color:#aaa;font-size:8px;text-align:center;line-height:1.8}.paper-signature{padding-top:38px;margin-top:auto;font-size:7px;overflow-wrap:anywhere}.paper-signature .signature-line{border-top:1px solid #444;margin-top:20px;padding-top:6px}.paper-page{font-size:6px;text-align:right;margin-top:13px;color:#888}.preview-caption{font-size:9px;text-align:center;line-height:1.8;color:var(--muted);margin:12px 0}dialog{border:1px solid var(--line);border-radius:12px;padding:25px;max-width:700px;width:calc(100% - 32px);max-height:85vh;color:var(--ink);box-shadow:0 20px 80px #153c4933}dialog::backdrop{background:#143c4960;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px}.dialog-head h2{margin:3px 0 0;font-size:23px;letter-spacing:-.5px;font-weight:550}.catalog-filters{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;position:sticky;top:-25px;background:white;padding-top:5px;padding-bottom:9px;z-index:1}.catalog-filters input,.catalog-filters select{margin:0!important}.catalog-result{width:100%;display:flex;justify-content:space-between;align-items:center;text-align:left;gap:20px;background:white;border:0;border-bottom:1px solid var(--line);padding:15px 2px;color:var(--ink)}.catalog-result:hover{background:#f2f8f4}.catalog-result b{display:block;font-size:13px;font-weight:600}.catalog-result small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.catalog-result>span:last-child{background:var(--mint);color:var(--teal);border-radius:4px;padding:4px 9px;font-size:17px}.send-info{background:var(--mint);border-radius:6px;font-size:12px;padding:13px;margin:18px 0}#send-dialog,#reset-dialog{max-width:470px}#send-dialog p,#reset-dialog p{font-size:12px;color:var(--muted)}#toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:12px 20px;border-radius:7px;z-index:40;font-size:12px;box-shadow:0 5px 25px #123b4933;max-width:90vw}
@media(min-width:1500px){.editor-layout{gap:34px}.panel{padding:30px}.preview-frame{padding:24px}.paper-date,.paper-item,.paper-recipient{font-size:10px}.paper-meta,.paper-address,.paper-signature{font-size:9px}.paper-doctor{font-size:12px}}
@media(max-width:1150px){.sidebar{width:200px}.workspace{margin-left:200px}main{padding:26px 22px}.topbar{padding:0 22px}.editor-layout{gap:18px;grid-template-columns:minmax(340px,1fr) minmax(265px,.8fr)}.panel{padding:20px}.brand img{width:170px}.paper{padding:12% 9%}.preview-frame{padding:10px}}
@media(max-width:950px){.sidebar{width:175px}.workspace{margin-left:175px}.brand img{width:150px}.side-content{padding:24px 10px}.sidebar .eyebrow{font-size:7px}.nav{font-size:10px}.step{font-size:10px}.side-bottom{margin: auto 18px 20px}.editor-layout{grid-template-columns:1fr}.preview-column{position:static;grid-row:2}.preview-frame{max-height:650px;padding:20px}.paper{max-width:500px;margin-left:auto;margin-right:auto;min-height:650px}.paper-item,.paper-recipient{font-size:11px}.paper-meta,.paper-address,.paper-signature,.paper-date{font-size:9px}.paper-doctor{font-size:13px}.preview-caption{margin-bottom:20px}}
@media(max-width:600px){.sidebar{position:static;width:100%;height:65px;flex-direction:row;background:#193b53;border:0}.brand{height:65px;width:155px}.brand img{width:145px;max-height:60px}.side-content{padding:0;margin-left:auto;display:flex;align-items:center}.side-content>.eyebrow,.side-content>.nav.active,.step,.side-line,.side-content>p,.side-bottom{display:none}.side-content .nav{color:#d9e6e1;margin:0 10px;font-size:10px;padding:6px}.side-content .nav span{display:none}.workspace{margin:0}.topbar{height:45px;padding:0 18px;font-size:9px}.private-label{font-size:8px}main{padding:24px 14px}.intro{gap:10px;align-items:flex-start}.intro h1{font-size:26px;letter-spacing:-.6px}.intro p{font-size:11px;max-width:250px}.intro .secondary{padding:7px 9px;min-height:32px;font-size:9px;margin-top:23px;white-space:nowrap}.panel{padding:19px 16px}.section-head p{font-size:10px}.grid{gap:13px}.grid.two{grid-template-columns:1fr 1fr}.actions .primary{flex-basis:100%}.actions .secondary{flex:1;padding:10px 12px}.catalog-filters{grid-template-columns:1fr}.preview-frame{padding:10px}.paper{min-height:510px}.paper-item,.paper-recipient{font-size:9px}.paper-meta,.paper-address,.paper-signature,.paper-date{font-size:7px}.paper-doctor{font-size:10px}.dialog-head h2{font-size:21px}dialog{padding:20px}.catalog-filters{top:-20px}.catalog-result b{font-size:12px}.subheading .text-button{font-size:9px}}
@media print{body{background:white}.sidebar,.topbar,.intro,.form-column,.preview-top,.preview-caption,dialog,#toast{display:none!important}.workspace{margin:0}main{padding:0;max-width:none}.editor-layout{display:block}.preview-column{position:static}.preview-frame{padding:0;background:white;border:0;overflow:visible;max-height:none}.paper{box-shadow:none;border:0;width:100%;height:260mm;max-width:none;aspect-ratio:auto;page-break-after:always;padding:15mm 12mm;margin:0}.paper:last-child{page-break-after:auto}.paper-item,.paper-recipient{font-size:12pt}.paper-meta,.paper-address,.paper-signature,.paper-date{font-size:10pt}.paper-doctor{font-size:13pt}.paper-page{font-size:8pt}@page{size:A4;margin:15mm}}
.pdf-sheet{display:block;width:100%;height:auto;background:white;box-shadow:0 2px 10px #183b4614;margin-bottom:15px}.pdf-sheet:last-child{margin-bottom:0}.product-body .specify{margin-bottom:15px}.source-link{font-size:9px;text-decoration:none}.empty-search{padding:35px 15px;text-align:center;font-size:12px;color:var(--muted)}@media print{.pdf-sheet{box-shadow:none;page-break-after:always;width:100%;height:auto;margin:0}.pdf-sheet:last-child{page-break-after:auto}@page{size:A4;margin:0}}
@font-face{font-family:RecipeSans;src:url('assets/DejaVuSans.ttf') format('truetype');font-weight:400;font-display:swap}@font-face{font-family:RecipeSans;src:url('assets/DejaVuSans-Bold.ttf') format('truetype');font-weight:700;font-display:swap}

.extra-fields{margin-top:18px;border-top:1px solid var(--line);padding-top:13px}.extra-fields summary{cursor:pointer;color:var(--teal);font-size:11px;font-weight:600}.extra-fields summary small{font-weight:400;color:var(--muted);margin-left:5px}.extra-fields[open] summary{margin-bottom:15px}.extra-fields label+label{margin-top:12px}.extra-fields .grid label{margin:0}.hospital-check{display:flex;gap:8px;align-items:center;margin-top:15px;font-size:11px}.product-summary{font-size:11px;color:var(--muted);margin:5px 0 0}.product-body>.grid{margin-top:0}label{font-size:12px}.field-note{font-size:11px}.preview-frame{max-height:calc(100vh - 100px)}

.clinic-date{grid-template-columns:minmax(0,1.5fr) minmax(145px,1fr)}.address-grid{grid-template-columns:minmax(0,1fr) 120px;margin-top:15px}.span-all{grid-column:1/-1}.same-clinic{display:flex;align-items:center;gap:8px;margin-bottom:14px;background:var(--mint);padding:12px;border-radius:5px;font-size:12px}input[readonly]{background:#f1f6f3!important;color:#536c61!important}.product-body select[data-key=product]{font-size:12px}.product-body .product-summary{margin:12px 0}.product-body>.grid{margin-top:14px}@media(max-width:600px){.clinic-date{grid-template-columns:1fr}.address-grid{grid-template-columns:minmax(0,1fr) 105px}}

.recipient-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:0;margin:0 0 15px;padding:0}.recipient-card{display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;padding:14px;cursor:pointer;font-size:13px}.recipient-card:has(input:checked){border-color:var(--teal);background:var(--mint);color:var(--teal)}.recipient-card input{margin:0}

.concentration-input{display:flex;align-items:center;border:1px solid #d8e2dd;border-radius:5px;margin-top:6px;background:white;overflow:hidden}.concentration-input input{margin:0!important;border:0!important;border-radius:0!important}.concentration-unit{padding:9px 13px;background:var(--mint);border-left:1px solid var(--line);font-size:13px;white-space:nowrap}.concentration-input:focus-within{outline:2px solid var(--teal);outline-offset:2px}

/* Comfortable reading on screen; PDF and print typography keep their own sizes. */
@media screen {
 body{font-size:16px;line-height:1.6}
 h1{font-size:36px}.intro p{font-size:16px;line-height:1.6}
 .section-head h2{font-size:22px}.section-head p{font-size:15px;line-height:1.6}
 h3,.product-head h3{font-size:18px}
 label,.recipient-card,.hospital-check{font-size:14px;line-height:1.55}
 input:not([type=checkbox]):not([type=radio]),select,textarea,.product-body select[data-key=product]{font-size:16px;min-height:48px;padding:12px;line-height:1.5}
 input[type=checkbox],input[type=radio],.choice input{width:18px;height:18px}
 .primary,.secondary,.intro .secondary{font-size:14px;min-height:48px;padding:12px 16px}
 .add-button{font-size:14px;min-height:54px}
 .text-button,.subheading .text-button{font-size:14px;line-height:1.5}
 .subheading{flex-wrap:wrap}
 .choice-group legend,.choice,.review-check,.extra-fields summary{font-size:14px}
 .choice{padding:10px 12px}.choices{gap:10px}
 .product-summary{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
 .concentration-unit{font-size:16px;padding:12px 15px}
 .field-note,.product-body>.field-note,.catalog-note,.source-row,.source-link,.preview-caption,footer,label small,.extra-fields summary small,.add-button small{font-size:14px;line-height:1.65}
 .product-head small,.eyebrow,.sidebar .eyebrow{font-size:12px;line-height:1.5}
 .nav,.step{font-size:15px;line-height:1.45}
 .step small,.side-bottom,.side-bottom p{font-size:13px}
 .step b,.section-number{font-size:14px}.badge{font-size:13px}
 .topbar,.private-label{font-size:14px}.topbar{gap:12px}
 .preview-top h2{font-size:16px}.preview-top>span{font-size:13px}
 .send-info,#send-dialog p,#reset-dialog p,.error-summary,#toast{font-size:16px}
 .dialog-head h2{font-size:26px}.dialog-head{gap:18px}
 .clinic-date{grid-template-columns:minmax(0,1.5fr) minmax(190px,1fr)}
 .address-grid{grid-template-columns:minmax(0,1fr) 150px}
 .section-head{gap:14px}.grid{gap:18px}
 input::placeholder,textarea::placeholder{color:#70827b}
}
@media screen and (max-width:950px){
 .nav,.step{font-size:14px}.sidebar .eyebrow{font-size:11px}
}
@media screen and (max-width:600px){
 .intro{flex-wrap:wrap}.intro h1{font-size:32px}.intro p{font-size:16px;max-width:none}
 .intro .secondary{margin-top:0}.side-content .nav{font-size:14px}
 .topbar{min-height:58px;height:auto;flex-wrap:wrap;padding:10px 18px}
 .clinic-date{grid-template-columns:1fr}.address-grid{grid-template-columns:minmax(0,1fr) 150px}
 .catalog-note a{white-space:normal}.recipient-card{padding:12px}
}
@media screen and (max-width:480px){
 .grid.two,.address-grid{grid-template-columns:1fr}.span2{grid-column:auto}
 .actions .secondary{flex-basis:calc(50% - 8px)}
 .side-content .nav{font-size:12px}.brand{width:145px}.brand img{width:135px}
}

/* Full-width workspace with a centered brand and prescriber links. */
@media screen {
 .workspace{margin:0}
 .topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);height:auto;min-height:112px;padding:16px 36px;gap:24px}
 .breadcrumb{justify-self:start}
 .topbar .brand{width:243px;height:72px;background:#193b53;border-radius:6px;overflow:hidden}
 .topbar .brand img{width:100%;max-height:none;height:auto;display:block}
 .prescriber-links{justify-self:end;display:flex;flex-direction:column;align-items:flex-end;gap:6px}
 .prescriber-links .private-label{white-space:nowrap}
 .catalog-link{font-size:14px;font-weight:600;text-decoration:none;line-height:1.5;padding:3px 0}
 .catalog-link:hover{text-decoration:underline;text-underline-offset:4px}
}
@media screen and (max-width:800px){
 .topbar{grid-template-columns:1fr;padding:20px 18px;gap:12px}
 .topbar .brand{grid-row:1;justify-self:center}
 .breadcrumb{grid-row:3;justify-self:center;text-align:center}
 .prescriber-links{grid-row:2;justify-self:center;align-items:center;gap:3px}
}
