:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#173345;background:#f1f5f7}*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button{cursor:pointer}a{color:#0e617e}.site-header{display:flex;align-items:center;justify-content:space-between;padding:13px max(20px,calc((100vw - 1420px)/2));background:#193e57;color:#fff;gap:20px}.site-header a{color:#fff;text-decoration:none}.brand{display:flex;align-items:center;gap:8px;font-size:19px}.mark{display:grid;place-items:center;background:#bbdfea;color:#193e57;font-weight:900;border-radius:7px;width:30px;height:30px}.layout{display:grid;grid-template-columns:270px minmax(0,1fr);max-width:1420px;margin:auto;gap:25px;padding:22px 20px 70px}.sidebar{align-self:start;position:sticky;top:16px;background:#fff;border:1px solid #cfdee5;border-radius:15px;padding:20px;box-shadow:0 2px 10px #14364e10}.sidebar-top h1{font-size:33px;margin:5px 0;color:#1d546f}.sidebar-top p{line-height:1.45;color:#506570;margin:0 0 20px}.eyebrow{font-size:12px;font-weight:850;letter-spacing:.11em;color:#277494}.sidebar details{border-top:1px solid #d8e4e9;padding-top:12px}.sidebar summary{cursor:pointer;font-weight:750;display:flex;justify-content:space-between}.draft-inner{padding:14px 0}.sidebar-btn,.delete-one,.draft-list button{border:1px solid #a9c5d2;background:#fff;color:#1d526c;border-radius:8px;padding:9px 11px;text-align:left;font-weight:650}.draft-list{display:grid;gap:7px;margin:12px 0}.draft-list button{width:100%;font-size:14px;overflow-wrap:anywhere}.draft-list button[aria-current=true]{background:#dceff7;border-color:#277494}.delete-one{color:#ac332e;border-color:#deb0ac}.source{font-size:14px;margin-top:20px}.hint{font-size:14px;color:#5b6d77;line-height:1.45}.sidebar #saveStatus{color:#a12620;font-weight:700}.topline{display:flex;align-items:end;justify-content:space-between;gap:20px}.topline h2{font-size:clamp(26px,3.1vw,37px);margin:4px 0;color:#143d56}.topline p{margin:0;color:#586d76;line-height:1.45}.primary{border:1px solid #176786;border-radius:9px;background:#176786;color:#fff;padding:11px 17px;min-height:46px;font-weight:750;white-space:nowrap}.primary:hover{background:#124e67}.secondary{border:1px solid #176786;border-radius:9px;background:#e9f5f9;color:#145570;padding:11px 14px;min-height:46px;font-weight:750}.privacy,.warning,.card{margin-top:18px;border-radius:13px;padding:17px 19px}.privacy{background:#e7f4f5;border:1px solid #b9dade;line-height:1.5}.warning{background:#fff1ef;border:2px solid #c24039;color:#76241e}.warning p{line-height:1.5;margin:7px 0 12px}.danger{background:#b92d27;color:white;border:0;border-radius:9px;padding:10px 14px;font-weight:750}.card{background:#fff;border:1px solid #d3e0e6;box-shadow:0 2px 10px #14364e0d}.card h3{font-size:21px;color:#1c536d;margin:0 0 16px}.card p{margin:3px 0 15px}.section-title{display:flex;align-items:start;justify-content:space-between;gap:15px}.pill{font-size:12px;color:#155f80;background:#dceef5;border-radius:20px;padding:7px 9px;white-space:nowrap;font-weight:750}.grid{display:grid;gap:14px;grid-template-columns:repeat(2,minmax(0,1fr))}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.cnes-row{grid-template-columns:170px auto minmax(0,1fr);align-items:end}.grid.cid-row{grid-template-columns:135px minmax(0,1fr)}label{display:grid;gap:6px;font-weight:700;font-size:14px;color:#234456}label.block{margin-top:15px}input,textarea{width:100%;min-width:0;border:1px solid #adbec6;border-radius:8px;background:#fff;padding:11px 12px;color:#173345;font-size:16px}textarea{resize:vertical;line-height:1.5}input:focus,textarea:focus,.suggestions button:focus-visible{outline:3px solid #81c7db;outline-offset:1px}.med-list{display:grid;gap:10px}.med-row{display:grid;grid-template-columns:30px minmax(0,2.7fr) repeat(6,minmax(49px,1fr));gap:6px;align-items:start}.med-row .row-no{padding-top:12px;font-weight:850;color:#35819f}.med-row input{font-size:14px;padding:10px 6px;text-align:center}.med-row .med-input{font-size:16px;text-align:left;padding:10px}.med-row .med-cell{position:relative}.month-label{display:none}.med-head{display:grid;grid-template-columns:30px minmax(0,2.7fr) repeat(6,minmax(49px,1fr));gap:6px;font-size:12px;font-weight:800;color:#526b77;text-align:center}.med-head span:nth-child(2){text-align:left}.suggestions{border:1px solid #b1c5cf;background:#fff;border-radius:9px;box-shadow:0 12px 27px #173e5340;max-height:250px;overflow:auto;z-index:20}.med-cell .suggestions{position:absolute;top:calc(100% + 2px);left:0;right:0}.suggestions button{display:block;text-align:left;width:100%;border:0;background:white;border-bottom:1px solid #e5ecef;padding:10px 12px;color:#1b4458;font-size:14px;line-height:1.3}.suggestions button:hover,.suggestions button:focus-visible{background:#e6f4f8}.suggestions small{color:#5b7380}.suggestions .empty{padding:12px;color:#566b75;font-size:14px}fieldset{border:1px solid #e0e9ed;border-radius:10px;margin:15px 0;padding:14px}legend{font-weight:750;color:#244d61;padding:0 5px}.choice{display:flex;gap:7px;margin-bottom:12px}.choice.wrap{flex-wrap:wrap}.choice button{border:1px solid #a8c0cb;border-radius:9px;padding:10px 14px;min-height:43px;background:white;color:#245367;font-weight:700}.choice button[aria-pressed=true]{background:#176786;color:#fff;border-color:#176786}.end-actions{display:flex;align-items:center;gap:18px;margin-top:22px}footer{margin-top:32px;color:#5c707a;line-height:1.5;font-size:14px}dialog{border:0;border-radius:15px;padding:20px;width:min(820px,calc(100vw - 24px));max-height:90vh;overflow:auto;box-shadow:0 25px 75px #17374570}dialog::backdrop{background:#122f40a6}.dialog-head{display:flex;align-items:center;justify-content:space-between}.dialog-head h2{margin:0;color:#174e69}.dialog-head button{background:transparent;border:0;font-size:25px}.report-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;margin-top:14px}.report-actions span{margin-right:auto;font-size:14px}.fine{font-size:13px;color:#5c6f79}@media(max-width:1040px){.layout{grid-template-columns:220px minmax(0,1fr);gap:15px}.grid.cnes-row{grid-template-columns:150px auto}.grid.cnes-row label:last-child{grid-column:1/-1}.med-head{display:none}.med-row{grid-template-columns:24px repeat(3,1fr)}.med-row .med-cell{grid-column:2/-1}.month-label{display:block;font-size:12px;color:#536c79;margin:3px 0}.med-row input:not(.med-input){text-align:left}}@media(max-width:760px){.layout{display:block;padding:18px 13px 60px}.sidebar{position:static;margin-bottom:20px;padding:16px}.sidebar-top h1{font-size:29px}.sidebar-top p{margin-bottom:11px}.topline{align-items:start;flex-direction:column}.topline .primary{width:100%}.grid.two,.grid.cid-row{grid-template-columns:1fr}.grid.cnes-row{grid-template-columns:1fr auto}.grid.cnes-row label:last-child{grid-column:1/-1}.section-title{display:block}.pill{display:inline-block;margin-bottom:10px}.privacy,.warning,.card{padding:15px}.site-header{padding:12px 14px}.med-row{grid-template-columns:20px repeat(3,minmax(0,1fr))}.end-actions{align-items:stretch;flex-direction:column}.end-actions a{text-align:center}}@media(max-width:390px){.med-row{grid-template-columns:20px repeat(2,minmax(0,1fr))}.med-row .med-cell{grid-column:2/-1}.grid.cnes-row{grid-template-columns:1fr}.brand{font-size:16px}.site-header a:last-child{font-size:13px}}
.header-home{display:inline-flex;align-items:center;gap:6px;border:1px solid #93b7c3;border-radius:8px;padding:9px 12px;min-height:42px;font-weight:800;white-space:nowrap}.header-home:hover{background:#31596c}.header-home:focus-visible{outline:3px solid #88d2ed;outline-offset:3px}@media(max-width:650px){.site-header{flex-wrap:wrap}.header-home{order:-2}.site-header .brand{order:1;width:100%}.site-header>a:last-child:not(.header-home){order:-1;margin-left:auto}}
.patient-note{margin:20px 0 0;padding:14px 17px;background:#e8f3f7;border-left:4px solid #277494;border-radius:8px;color:#24495d;line-height:1.5}.patient-note strong{color:#143d56}

.term-panel{border:1px solid #c8dce6;background:#f2f8fb;border-radius:12px;padding:16px;margin:20px 0}.term-choice{background:#fff;border:1px solid #d7e2e8;border-radius:10px;padding:12px;margin:10px 0}.term-choice select{width:100%;max-width:100%;margin-top:8px;padding:12px;border:1px solid #a9c1cd;border-radius:8px;background:white;font:inherit;color:#24485a}.term-panel .report-actions{justify-content:flex-start;flex-wrap:wrap;gap:10px}.term-panel button{white-space:normal;min-height:44px}#documentStatus{color:#a32c22;font-weight:600}.term-choice a{font-size:14px} @media(max-width:600px){.term-panel{padding:12px}.term-panel .report-actions button{width:100%}}

.term-copies{display:flex;gap:10px;align-items:center;font-size:14px;margin:14px 0}.term-copies input{width:20px;height:20px;margin:0;flex-shrink:0}

.location-row{margin-top:14px}select{width:100%;min-width:0;border:1px solid #adbec6;border-radius:8px;background:#fff;padding:11px 12px;color:#173345;font:inherit}.mt-documents{border:2px solid #2d7e8a;background:#f5fbfb}.mt-dialog-documents{border-radius:12px;padding:16px;margin:20px 0}.mt-documents h3{margin:0 0 14px;color:#174f59}.mt-documents h4{margin:18px 0 9px;color:#174f59}.mt-documents p{line-height:1.5}.mt-alert{border-left:4px solid #bd6d28;background:#fff6e9;border-radius:7px;padding:12px;color:#664016}.mt-links{margin:8px 0 14px;padding-left:21px;display:grid;gap:9px}.mt-links li{line-height:1.4}.mt-links small{display:block;color:#60727b}.mt-documents details{margin:15px 0}.mt-documents summary{cursor:pointer;font-weight:700;color:#17556a}.mt-documents label{margin:14px 0}

.patient-note{background:#fff0f6;border:2px solid #b52b69;border-left:6px solid #b52b69;color:#76204a;font-size:16px;line-height:1.55;padding:17px 19px}.patient-note strong{font-weight:800}.term-review-note{background:#fff0f6;border:2px solid #b52b69;border-radius:10px;color:#76204a;padding:14px 16px;line-height:1.55;font-size:16px}.term-review-note strong{font-weight:800}
