/* Local system fonts only. Clinical content never leaves this WordPress instance. */
:root{--bg:#fff8fb;--ink:#322536;--muted:#6e5c70;--line:#ecdde6;--pink:#d72f78;--pink-deep:#bd205f;--pink-soft:#fff0f6;--pink-tint:#ffe0ee;--pink-border:#efb5cf;--lilac:#f2e8fa;--sidebar:246px;--radius:16px;--shadow:0 3px 16px #8e245509}
*{box-sizing:border-box}html{scroll-behavior:smooth}body.gineco-app{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.55}button,input,select,textarea{font:inherit}a{color:inherit;text-decoration:none}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}a,button{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.65}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #a564b4;outline-offset:4px;border-radius:5px}h1,h2,h3,p{margin:0}h1{font-size:29px;line-height:1.3;letter-spacing:-.9px;font-weight:650}h2{font-size:17px;letter-spacing:-.35px;font-weight:650}h3{font-size:15px;font-weight:600}small{font-size:12px}.muted{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:fixed;left:20px;top:-100px;z-index:100;padding:10px 20px;background:white}.skip-link:focus{top:15px}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);padding:34px 22px 22px;display:flex;flex-direction:column;z-index:30;overflow-y:auto}.brand{display:flex;align-items:center;gap:10px;padding:0 12px 32px;font-size:32px;font-weight:720;letter-spacing:-1.7px;line-height:1}.brand-symbol{width:38px;height:42px;display:flex;align-items:center;color:var(--pink);transform:rotate(-12deg)}.brand-symbol svg{width:35px;height:35px;stroke-width:1.4}.brand-dot{color:var(--pink)}.brand small{display:block;letter-spacing:1.2px;font-size:7.5px;font-weight:600;color:#9791a0;margin-top:9px}.workspace{display:flex;gap:10px;align-items:center;padding:14px 10px;background:#faf8fc;border:1px solid #f0edf5;border-radius:11px;margin-bottom:32px}.workspace-avatar{display:grid;place-items:center;width:32px;height:32px;border-radius:9px;background:#efe7f4;color:#9b71ad;font-weight:600}.workspace strong{font-size:12px;font-weight:600;display:block}.workspace small{font-size:10px;color:var(--muted);display:block;margin-top:2px}.online-dot,.tiny-dot{width:6px;height:6px;background:#86b29c;border-radius:50%;display:inline-block}.online-dot{margin-left:auto;flex-shrink:0}.nav-label{font-size:9px;letter-spacing:1.65px;color:#a19aaa;margin:0 14px 12px;font-weight:600}.nav-item{display:flex;gap:13px;align-items:center;min-height:47px;padding:12px 14px;margin-bottom:6px;color:#807a8d;font-size:13px;border-radius:9px;transition:background .15s,color .15s}.nav-item svg{width:18px;height:18px}.nav-item:hover{background:#faf6fa;color:var(--pink-deep)}.nav-item.active{background:#f6eaf0;color:var(--pink-deep);font-weight:600}.nav-active-dot{width:5px;height:5px;border-radius:50%;background:var(--pink);margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:60px}.privacy-note{padding:17px 15px;background:#f9f7fc;border-radius:12px;margin-bottom:24px}.privacy-note>span{color:#ad90bb;display:block;margin-bottom:9px}.privacy-note strong{font-size:11px;display:block;font-weight:600}.privacy-note p{font-size:10.5px;color:#91889d;line-height:1.8;margin-top:5px}.main-shell{margin-left:var(--sidebar)}.topbar{height:86px;padding:0 42px;border-bottom:1px solid var(--line);background:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px}.breadcrumb{color:#9b96a6;font-size:11px}.breadcrumb span{margin:0 12px;color:#d1cbd8}.breadcrumb strong{color:#625c71;font-weight:500}.topbar-left{display:flex;align-items:center;gap:12px}.account{display:flex;align-items:center;gap:13px}.account>div{text-align:right}.account strong{font-size:11px;font-weight:600;display:block}.account small{font-size:10px;color:#9b93a7;display:block;margin-top:2px}.avatar{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:12px;font-size:13px;font-weight:600}.account-avatar{background:#f0eaf6;color:#9775b0;border:3px solid #faf7fc}.main-content{max-width:1560px;margin:auto;padding:32px 42px 20px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:26px}.eyebrow{font-size:9px;letter-spacing:1.6px;font-weight:650;color:#9990a5;margin-bottom:7px}.page-heading .muted{margin-top:7px;font-size:12px}.button{border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border-radius:9px;line-height:1.45;font-size:12px;font-weight:600;white-space:nowrap;min-height:42px;text-align:center}.button svg{width:17px;height:17px}.primary{background:var(--pink);border-color:var(--pink);color:#fff;box-shadow:0 4px 9px #ba628817}.primary:hover{background:var(--pink-deep);border-color:var(--pink-deep)}.secondary{background:#fff;color:#70647d;border:1px solid #e6e0ed}.secondary:hover{background:#faf7fc;border-color:#baa4c5}.text-link,.banner-link{color:var(--pink-deep);font-size:11px;font-weight:600}.text-link:hover,.banner-link:hover{text-decoration:underline}.welcome-banner{border:1px solid #eee2ee;background:linear-gradient(110deg,#f8eaf0 0%,#f6ecf4 48%,#eeebf8 100%);border-radius:var(--radius);padding:24px 30px;min-height:226px;display:flex;position:relative;overflow:hidden;align-items:center;justify-content:space-between;margin-bottom:24px}.banner-tag{font-size:10px;color:#986c88;background:#fff8;padding:5px 9px;border-radius:6px;display:inline-flex;align-items:center;gap:7px;margin-bottom:11px}.banner-tag .tiny-dot{width:4px;height:4px;background:#c38cae}.welcome-banner h2{font-size:27px;font-weight:620;line-height:1.3;letter-spacing:-.8px;color:#62495f}.welcome-banner h2 span{color:#9c718e;font-weight:450}.welcome-banner p{max-width:380px;color:#947d90;font-size:11px;line-height:1.8;margin:11px 0 13px}.banner-link{display:inline-flex;align-items:center;gap:9px}.banner-link svg{width:16px;height:16px}.banner-art{position:relative;flex:0 0 270px;height:204px;display:grid;place-items:center}.orbit{position:absolute;width:190px;height:190px;border-radius:50%;border:1px solid #ddd3eb80}.orbit-one{width:250px;height:250px}.orbit-two{background:#e4daef33}.art-card{position:relative;width:134px;height:166px;background:#fffdfd;border-radius:15px;transform:rotate(10deg);box-shadow:8px 17px 30px #a88bb525;border:1px solid #fff;padding:23px 17px}.art-heart{width:37px;height:37px;background:#faeaf1;color:#ca89a8;border-radius:12px;display:grid;place-items:center;margin-bottom:15px}.art-heart svg{width:23px;height:23px;stroke-width:1.4}.art-line{height:5px;background:#eee8f3;width:78px;border-radius:5px;display:block;margin-bottom:8px}.art-line.short{width:53px;background:#f3edf6}.pulse{height:37px;width:104px;fill:none;stroke:#c18caf;stroke-width:2;margin-top:7px}.art-check{position:absolute;right:-16px;bottom:24px;background:#a2c2b3;color:white;width:36px;height:36px;display:grid;place-items:center;border-radius:12px;border:4px solid #f1edf5;transform:rotate(-10deg);font-size:17px}.floating-heart{position:absolute;left:22px;top:37px;background:#fff9;border-radius:12px;width:39px;height:39px;display:grid;place-items:center;color:#bc9dc9;transform:rotate(-15deg);box-shadow:0 5px 15px #b7a2c522}.floating-heart svg{width:20px;height:20px}.art-spark{position:absolute;right:25px;top:30px;color:#c2a2cf;font-size:30px;font-weight:200}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:26px}.metric{background:white;border:1px solid var(--line);border-radius:13px;padding:19px 20px;box-shadow:var(--shadow)}.metric-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.metric-top>span:first-child{color:#81778d;font-size:10.5px;font-weight:500;line-height:1.6}.metric-icon{width:33px;height:33px;display:grid;place-items:center;border-radius:10px;flex-shrink:0}.metric-icon svg{width:17px;height:17px}.pink{color:#b97896;background:#f9eaf0}.purple,.lavender{color:#9476b5;background:#f1ecf8}.peach{color:#ba9477;background:#fcf1e8}.mint{color:#6e9e8a;background:#edf6f1}.neutral{color:#8a8495;background:#f4f2f7}.metric>strong{display:block;font-size:31px;font-weight:600;letter-spacing:-1px;line-height:1.4;margin-top:5px}.metric>small{font-size:10px;color:#a199ab;display:block;margin-top:3px}.dashboard-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(275px,1fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:23px 23px 18px}.panel-heading h2{font-size:15px}.panel-heading p{color:#9a90a4;font-size:10.5px;margin-top:4px}.table-scroll{overflow-x:auto;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{font-size:9px;text-transform:uppercase;letter-spacing:.6px;color:#9a90a4;font-weight:500;background:#fcfbfd;padding:12px 23px;white-space:nowrap;border-top:1px solid #f5f2f8;border-bottom:1px solid #f5f2f8}td{padding:18px 23px;border-bottom:1px solid #f4f1f7;vertical-align:middle}tr:last-child td{border-bottom:none}tbody tr:hover{background:#fdfafd}.person-cell{display:flex;align-items:center;gap:11px;min-width:190px}.person-cell small{display:block;font-size:9px;color:#a39aa9;margin-top:4px}.person-name{font-size:11px;font-weight:600}.person-name:hover{color:var(--pink-deep)}.person-cell .avatar{width:34px;height:34px;border-radius:10px}.tag{display:inline-flex;align-items:center;padding:5px 9px;border-radius:6px;font-size:9px;font-weight:500;white-space:nowrap;line-height:1.4}.cell-subtitle{font-size:9px;color:#a39aa9;display:block;margin-top:5px}.table-action{font-size:10px;color:#aa7b97;display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.table-action svg{width:13px;height:13px}.empty-state{text-align:center;padding:37px 24px 42px;max-width:480px;margin:auto}.empty-icon{width:51px;height:51px;background:#faf1f6;color:#c69cb7;border-radius:17px;display:grid;place-items:center;margin:0 auto 15px}.empty-icon svg{width:24px;height:24px;stroke-width:1.3}.empty-state h3{font-size:13px;font-weight:600;color:#817089}.empty-state p{font-size:11px;color:#a195a8;max-width:290px;margin:7px auto 17px;line-height:1.8}.empty-state .button{font-size:10px;min-height:35px;padding:8px 13px}.agenda-panel .empty-state{padding:25px 20px 28px}.agenda-panel .empty-state p{max-width:215px}.agenda-panel .empty-icon{width:43px;height:43px;border-radius:14px}.panel-bottom-link{display:flex;justify-content:center;align-items:center;gap:10px;border-top:1px solid var(--line);padding:13px;color:#a27a95;font-size:10px}.panel-bottom-link:hover{background:#fcf8fc}.panel-bottom-link svg{width:14px;height:14px}.appointment-card{display:flex;align-items:center;gap:13px;padding:16px 22px;border-top:1px solid #f5f2f8}.appointment-card:hover{background:#fcf8fb}.appointment-time{font-size:13px;font-weight:600;letter-spacing:-.5px;color:#8d698f;background:#f7f1f9;border-radius:9px;padding:9px;text-align:center;min-width:59px}.appointment-time small{font-size:9px;letter-spacing:0;display:block;margin-top:1px;font-weight:400}.appointment-card>span:nth-child(2){min-width:0}.appointment-card strong{display:block;font-size:11px;font-weight:600}.appointment-card small{display:block;font-size:10px;color:#a292a5;margin-top:3px}.appointment-arrow{margin-left:auto;color:#b8a5c0;font-size:20px}.care-note{display:flex;gap:15px;align-items:center;border:1px solid #ede9f3;border-radius:13px;padding:18px 21px;margin:24px 0;background:#f5f3fa}.care-icon{width:35px;height:35px;display:grid;place-items:center;background:#ede8f5;color:#a38ab7;flex-shrink:0;border-radius:10px}.care-icon svg{width:19px;height:19px}.care-note strong{font-size:11px;font-weight:600;color:#897496}.care-note p{font-size:10px;color:#a095ad;margin-top:4px;line-height:1.8}.app-footer{display:flex;justify-content:space-between;gap:20px;font-size:9px;color:#aaa3b3;padding:24px 0 4px}.notice{padding:13px 17px;border:1px solid;border-radius:10px;font-size:12px;margin-bottom:22px;line-height:1.8}.success{background:#f0f8f3;color:#47775d;border-color:#d9ebdf}.info{background:#f7f3fa;color:#82718e;border-color:#e8e0f0}.patient-tools{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:20px}.search-form{display:flex;align-items:center;gap:12px;flex:1}.search-input{position:relative;display:flex;align-items:center;flex:1;max-width:490px}.search-input svg{position:absolute;left:13px;top:13px;width:16px;height:16px;color:#b19fb9}.search-input input{padding-left:39px;width:100%;background:#fcfbfe}.results-count{font-size:11px;white-space:nowrap}input:not([type=checkbox]):not([type=hidden]),select,textarea{border:1px solid #e6dfed;border-radius:8px;padding:11px 12px;color:var(--ink);background:#fff;min-height:43px;max-width:100%;font-size:13px}input:focus,select:focus,textarea:focus{outline:2px solid #d3b7dd;outline-offset:1px}input::placeholder,textarea::placeholder{color:#b1a6b9;font-size:12px}textarea{resize:vertical}select{padding-right:30px}input[type=checkbox]{accent-color:var(--pink);width:16px;height:16px}.pagination{border-top:1px solid var(--line);padding:18px 24px;display:flex;gap:10px;align-items:center}.pagination>span{font-size:11px;color:var(--muted);margin-right:auto}.back-link{display:inline-block;margin-bottom:20px;color:#a87e9d;font-size:12px}.form-panel{padding:27px 30px;margin-bottom:22px}.form-panel>p{font-size:12px;margin-top:8px}.form-panel h3{margin-top:24px}.clinical-form{margin-top:23px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:21px 25px}.form-field{display:flex;flex-direction:column;gap:8px;min-width:0}.form-field label{font-size:12px;color:#7d6d89;font-weight:500}.required{color:var(--pink)}.wide{grid-column:1/-1}.form-field small{font-size:11px;color:#a293ab}.reason-field{margin-top:25px;background:#faf7fc;border:1px solid #ece4f0;border-radius:10px;padding:18px}.form-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-top:24px;border-top:1px solid var(--line);margin-top:27px}.form-actions .muted{font-size:11px}.clinical-form.submitting{opacity:.7}.patient-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:25px}.patient-summary>div{display:flex;align-items:center;gap:14px}.patient-summary svg{color:#c6accf;background:#f9f5fb;border-radius:10px;box-sizing:content-box;padding:11px;width:19px;height:19px}.patient-summary span{font-size:10px;color:#a090ac}.patient-summary strong{display:block;font-size:13px;color:#75617e;font-weight:500;margin-top:4px}.pregnancy-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}.pregnancy-toolbar form{display:flex;align-items:center;gap:12px}.pregnancy-toolbar label{font-size:12px;color:#8d7b96}.tabs{display:flex;gap:24px;border-bottom:1px solid #e6dfed;margin-bottom:25px;overflow-x:auto;white-space:nowrap;scrollbar-width:thin}.tabs a{font-size:12px;padding:12px 0;color:#9d8ca7;border-bottom:2px solid transparent}.tabs a:hover{color:var(--pink-deep)}.tabs a.selected{border-bottom-color:var(--pink);color:var(--pink-deep);font-weight:600}.detail-panel{padding:27px 28px;margin-bottom:22px}.detail-panel>.panel-heading{padding:0 0 22px}.data-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 30px;margin:15px 0 0}.data-list>div{border-bottom:1px solid var(--line);padding:14px 0}.data-list dt{font-size:11px;color:#a190a9}.data-list dd{font-size:13px;color:#74617e;margin:5px 0 0;overflow-wrap:anywhere;white-space:normal}.section-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:15px}.section-heading h2{font-size:20px}.record-card{padding:23px;margin-top:18px}.record-card>.panel-heading{padding:0 0 16px}.record-card summary{font-size:12px;color:#ac7e9d;cursor:pointer;min-height:25px}.record-actions{margin-top:20px}.history{padding:20px 23px;margin-top:18px;box-shadow:none}.history summary{font-size:12px;color:#8e789e;cursor:pointer}.record-card>.history{background:#fcfafd}.revision{padding:18px 0;border-bottom:1px solid var(--line)}.revision strong{font-size:12px;color:#83718e}.revision p{font-size:12px;color:#a28faa;margin:8px 0 14px}.comparison{margin-bottom:25px}.comparison td{font-size:11px;white-space:nowrap}.comparison .muted{font-size:10px}.access-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.check-label{display:flex;gap:12px;align-items:center;padding:12px 0;font-size:13px;color:#8e789c}.agenda-list{max-width:850px}.agenda-list .appointment-card{padding:22px 26px}.setup{max-width:550px;margin:15vh auto;background:white;padding:40px;border-radius:18px;border:1px solid var(--line)}.setup p{margin:20px 0}.setup a{color:var(--pink-deep)}.icon-button{background:#fff;border:1px solid var(--line);padding:5px 9px;border-radius:8px;font-size:20px;color:var(--pink)}.mobile-menu{display:none}
@media(min-width:1550px){.main-content{padding-top:40px}.welcome-banner{min-height:260px}.banner-art{margin-right:45px}.welcome-banner h2{font-size:32px}.welcome-banner p{font-size:13px;max-width:440px}.metric-top>span:first-child{font-size:12px}.metric>small{font-size:11px}.person-name{font-size:13px}.person-cell small{font-size:11px}.tag{font-size:11px}.table-action{font-size:12px}.panel-heading h2{font-size:17px}.panel-heading p{font-size:12px}.empty-state h3{font-size:15px}.empty-state p{font-size:12px}.empty-state{padding-top:45px;padding-bottom:45px}}
@media(max-width:1250px){:root{--sidebar:220px}.sidebar{padding:30px 16px 20px}.main-content{padding:27px 27px 20px}.topbar{padding:0 27px}.dashboard-columns{grid-template-columns:minmax(0,1.6fr) minmax(250px,1fr);gap:17px}td,th{padding-left:17px;padding-right:17px}.metric{padding:16px}.metrics{gap:12px}.metric-top{align-items:flex-start}.metric-icon{width:28px;height:28px}.metric-icon svg{width:15px;height:15px}.welcome-banner{padding:22px 25px}.banner-art{flex-basis:225px}.welcome-banner h2{font-size:25px}.account strong{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patient-tools{flex-wrap:wrap}.search-form{min-width:0}.results-count{display:none}}
@media(max-width:1050px){:root{--sidebar:200px}.workspace{padding:11px 8px}.workspace small{font-size:9px}.brand{padding-left:9px;font-size:29px}.nav-item{font-size:12px;padding:11px}.main-content{padding:24px}.topbar{padding:0 24px}.dashboard-columns{grid-template-columns:1fr}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-top>span:first-child{font-size:12px}.metric-icon{width:33px;height:33px}.welcome-banner h2{font-size:25px}.banner-art{flex-basis:190px;transform:scale(.85);transform-origin:center}.welcome-banner p{max-width:310px}.page-heading h1{font-size:25px}.access-grid{grid-template-columns:1fr}.breadcrumb{font-size:10px}.account strong{max-width:110px}}
@media(max-width:760px){:root{--sidebar:246px}.sidebar{transform:translateX(-100%);transition:transform .2s ease;box-shadow:10px 0 60px #3c234718}.menu-open .sidebar{transform:translateX(0)}.menu-open:after{content:"";position:fixed;inset:0;background:#362c4740;z-index:20}.main-shell{margin-left:0}.mobile-menu{display:block}.topbar{height:72px;padding:0 20px;gap:10px}.breadcrumb{font-size:10px}.breadcrumb>span{margin:0 7px}.account>div{display:none}.account .avatar{width:33px;height:33px}.main-content{padding:25px 20px 20px}.page-heading{align-items:flex-start;gap:15px;flex-wrap:wrap;margin-bottom:22px}.page-heading h1{font-size:27px}.page-heading .muted{max-width:340px;font-size:12px}.page-heading>.button{font-size:11px;padding:10px 13px}.welcome-banner{padding:25px 22px;min-height:237px}.welcome-banner h2{font-size:25px}.welcome-banner p{font-size:11px;max-width:275px}.banner-art{flex-basis:145px;margin-left:-15px;transform:scale(.75);height:175px}.welcome-banner>div:first-child{z-index:1}.orbit-one{width:220px;height:220px}.metrics{gap:12px;margin-bottom:22px}.metric{padding:17px}.metric-top>span:first-child{font-size:10px}.metric-icon{width:29px;height:29px}.metric>strong{font-size:30px;margin-top:7px}.metric>small{font-size:9px}.dashboard-columns{gap:20px}.person-name{font-size:11px}.person-cell{min-width:175px}.person-cell small{font-size:9px}.table-action{font-size:10px}.patient-table th,.patient-table td{padding:15px}.patient-table .tag{font-size:9px}.care-note{align-items:flex-start;padding:17px}.app-footer{display:block;font-size:9px}.app-footer span{display:block;margin-bottom:5px}.form-panel{padding:22px 19px}.form-grid{grid-template-columns:1fr;gap:18px}.form-actions{flex-direction:column;align-items:stretch}.form-actions .button{width:100%}.form-actions .muted{text-align:center;font-size:10px}.patient-summary{padding:18px;grid-template-columns:1fr;gap:20px}.patient-summary>div{gap:13px}.patient-summary strong{font-size:12px}.pregnancy-toolbar{align-items:flex-start;gap:15px}.pregnancy-toolbar form{flex-wrap:wrap;gap:10px}.pregnancy-toolbar label{width:100%}.pregnancy-toolbar select{max-width:220px}.tabs{gap:23px;margin-bottom:20px}.tabs a{font-size:11px}.data-list{grid-template-columns:1fr}.detail-panel{padding:22px 20px}.detail-panel .panel-heading{flex-wrap:wrap}.comparison{display:none}.section-heading{flex-wrap:wrap}.section-heading h2{font-size:19px}.record-card{padding:19px}.record-card>.panel-heading{align-items:flex-start}.record-card .panel-heading p{max-width:220px}.record-card .history{padding:15px}.patient-tools{padding:18px}.search-form{flex-wrap:wrap;gap:10px}.search-input{flex-basis:100%;max-width:none}.search-input input{font-size:12px}.patient-tools .button{font-size:11px;min-height:36px}.pagination{padding:16px;flex-wrap:wrap}.empty-state{padding:35px 20px}.notice{font-size:11px}.care-note p{font-size:10px}.section-heading>.button{font-size:11px}.panel-heading{padding:21px 20px 16px}}
@media(max-width:450px){.welcome-banner{min-height:238px}.banner-art{position:absolute;right:-46px;top:40px;opacity:.52;transform:scale(.67)}.welcome-banner p{max-width:225px}.welcome-banner h2{font-size:24px}.welcome-banner>div:first-child{max-width:250px}.breadcrumb{max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.metric-top>span:first-child{max-width:110px;font-size:10px}.metric-icon{width:26px;height:26px}.metric>small{font-size:9px}.main-content{padding-left:16px;padding-right:16px}.page-heading h1{font-size:25px}.patient-table .table-action{font-size:0}.patient-table .table-action svg{width:18px;height:18px}.patient-table .person-cell{min-width:150px}.patient-table td,.patient-table th{padding:13px 11px}.table-action svg{font-size:12px}.patient-table .avatar{width:29px;height:29px;font-size:12px}.patient-table .person-cell{gap:8px}.metric{padding:15px}.record-card>.panel-heading{gap:10px}}
.login-shell{display:grid;grid-template-columns:1fr 1fr;min-height:100vh;background:#fff}.login-story{padding:45px 62px 30px;background:linear-gradient(140deg,#f7eaf0 0%,#f3eaf4 50%,#ebe9f7 100%);position:relative;overflow:hidden;display:flex;flex-direction:column}.login-brand{padding:0;align-self:flex-start}.login-brand .brand-symbol{width:44px}.login-brand small{font-size:8px;letter-spacing:1.5px}.login-story-content{max-width:490px;margin:65px auto 25px;width:100%}.login-eyebrow{font-size:10px;letter-spacing:2.1px;color:#ad829f;font-weight:600}.login-story h1{font-size:42px;line-height:1.22;letter-spacing:-1.6px;color:#69516a;margin:18px 0}.login-story h1 span{color:#ab82a1;font-weight:400}.login-story-content>p{font-size:13px;line-height:1.95;max-width:355px;color:#a08ba1}.login-illustration{height:290px;position:relative;display:grid;place-items:center;margin-top:15px}.login-orbit{position:absolute;border:1px solid #cbbbdc66;border-radius:50%;width:275px;height:275px;right:26px;top:2px}.login-orbit.inner{width:218px;height:218px;right:54px;top:30px;background:#e2d7ed30}.login-art-sheet{background:#fffafc;border:1px solid #fff;border-radius:20px;width:208px;height:242px;padding:27px;position:relative;transform:rotate(8deg);box-shadow:12px 19px 45px #ae90bc30;margin-left:45px}.login-art-heart{display:grid;place-items:center;width:46px;height:46px;background:#f9e9f0;border-radius:15px;color:#c38ba7;margin-bottom:17px}.login-art-heart svg{width:26px;height:26px;stroke-width:1.4}.login-art-title{font-size:10px;color:#9a7e9f;font-weight:600;display:block;margin-bottom:15px}.login-art-sheet .art-line{width:133px;background:#eee5f1;height:5px}.login-art-sheet .art-line.short{width:88px;background:#f2eaf5}.login-pulse{width:156px;height:51px;stroke:#c08bad;stroke-width:2;display:block;margin-top:11px}.login-art-note{font-size:8px;color:#ba9db8}.login-art-check{position:absolute;bottom:22px;right:-19px;border:5px solid #f0eaf4;background:#9abbad;color:white;width:44px;height:44px;border-radius:15px;display:grid;place-items:center;font-size:21px;transform:rotate(-8deg)}.login-floating-heart{position:absolute;left:56px;top:48px;color:#ad92c0;background:#fff9;border:1px solid #fff9;border-radius:17px;display:grid;place-items:center;width:54px;height:54px;transform:rotate(-14deg);box-shadow:0 9px 24px #b29db51a}.login-floating-heart svg{width:28px;height:28px;stroke-width:1.3}.login-spark{font-size:38px;color:#bca1cd;position:absolute;right:15px;top:21px}.login-story-footer{display:flex;align-items:center;gap:9px;color:#aa95b2;font-size:10px;margin-top:auto}.login-story-footer svg{width:16px;height:16px}.login-form-side{padding:55px 65px 26px;display:flex;flex-direction:column;justify-content:center;position:relative}.login-form-wrap{max-width:370px;width:100%;margin:auto}.login-form-icon{width:47px;height:47px;display:grid;place-items:center;background:#faf0f5;color:#bb819f;border-radius:15px;margin-bottom:27px}.login-form-icon svg{width:25px;height:25px;stroke-width:1.5}.login-form-wrap>.eyebrow{font-size:9px;letter-spacing:1.8px;color:#a791ad;margin-bottom:9px}.login-form-wrap>h2{font-size:28px;font-weight:600;letter-spacing:-.8px;color:#514457;line-height:1.4}.login-intro{font-size:12px;color:#a194a9;margin-top:8px;margin-bottom:30px}.login-form{display:grid;gap:22px}.login-form .form-field{gap:9px}.login-form label{font-size:12px;color:#8f7c9a;font-weight:500}.login-form input:not([type=checkbox]):not([type=hidden]){border-color:#e9e1ec;background:#fefcfe;min-height:48px;font-size:13px;border-radius:9px;padding:13px 15px;width:100%}.login-form input::placeholder{color:#b4a7bd;font-size:12px}.password-input{position:relative}.password-input input{padding-right:49px!important}.password-toggle{position:absolute;right:7px;top:7px;width:34px;height:34px;padding:6px;display:grid;place-items:center;background:transparent;border:0;border-radius:7px;color:#b3a0bc}.password-toggle:hover{background:#f5ecf7}.password-toggle svg{width:18px;height:18px}.login-options{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:-5px}.login-options label{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:400;color:#9a8ba3}.login-options input{width:14px;height:14px;margin:0}.login-options a{font-size:10px;color:#af7698;font-weight:500}.login-options a:hover{text-decoration:underline}.login-submit{width:100%;min-height:48px;font-size:12px;gap:13px;border-radius:9px;box-shadow:0 6px 16px #b4658b20;margin-top:3px}.login-submit svg{width:17px;height:17px}.login-role-note{display:flex;gap:9px;align-items:flex-start;margin-top:24px;background:#faf7fc;border:1px solid #f0eaf5;padding:13px;border-radius:9px;color:#b6a0bf}.login-role-note svg{width:15px;height:15px;margin-top:2px;flex-shrink:0}.login-role-note p{font-size:10px;line-height:1.85;color:#ad9bb7}.login-help{border-top:1px solid #f0eaf4;margin-top:27px;padding-top:22px;text-align:center}.login-help strong{font-size:11px;color:#927c9e;font-weight:500}.login-help p{font-size:10px;color:#b09fba;margin:5px auto 0;max-width:270px;line-height:1.8}.login-footer{text-align:center;font-size:9px;color:#b3a5bc;margin-top:50px}.login-footer span{display:block;font-size:9px;margin-top:4px;color:#c2b8c9}.login-error{color:#a05d78;background:#fcf0f4;border-color:#eed9e3;font-size:11px;margin-top:20px}.profile-cartilla{padding:24px;display:flex;align-items:center;gap:18px;margin-bottom:24px}.profile-cartilla .metric-icon{width:45px;height:45px}.profile-cartilla p{font-size:12px;margin-top:5px}.profile-cartilla .button{margin-left:auto}
@media(min-width:1500px){.login-story{padding:50px 85px 35px}.login-story-content{margin-top:80px}.login-story h1{font-size:49px}.login-story-content>p{font-size:14px;max-width:380px}.login-illustration{height:350px;margin-top:30px}.login-art-sheet{transform:rotate(8deg) scale(1.12)}.login-orbit{right:14px;top:10px;width:315px;height:315px}.login-orbit.inner{right:48px;top:44px;width:247px;height:247px}.login-form-wrap{max-width:390px}.login-form-wrap>h2{font-size:31px}}
@media(max-width:1100px){.login-story{padding:36px}.login-story h1{font-size:34px}.login-story-content{margin-top:60px}.login-form-side{padding:45px 36px 24px}.login-form-wrap>h2{font-size:25px}.login-floating-heart{left:8px}.login-orbit{right:-16px}.login-orbit.inner{right:12px}.login-spark{right:0}.login-form-icon{margin-bottom:22px}}
@media(max-width:760px){.login-shell{grid-template-columns:1fr}.login-story{padding:25px 25px 26px}.login-brand{font-size:29px}.login-brand .brand-symbol svg{width:31px;height:31px}.login-brand small{font-size:7px}.login-story-content{margin:29px 0 0;max-width:100%;padding-right:95px}.login-story h1{font-size:28px;letter-spacing:-.7px;margin:11px 0 0}.login-story h1 br:nth-child(2){display:none}.login-story-content>p,.login-story-footer{display:none}.login-eyebrow{font-size:8px;letter-spacing:1.6px}.login-illustration{position:absolute;right:-18px;top:70px;width:170px;height:190px;transform:scale(.58);transform-origin:center;margin:0;opacity:.7}.login-art-sheet{flex-shrink:0}.login-orbit{right:-45px}.login-orbit.inner{right:-17px}.login-floating-heart{left:-20px;top:17px}.login-spark{right:-45px}.login-form-side{padding:35px 27px 20px;min-height:calc(100vh - 225px)}.login-form-wrap{max-width:420px}.login-form-icon{display:none}.login-form-wrap>h2{font-size:25px}.login-form-wrap>.eyebrow{font-size:8px}.login-intro{margin-bottom:25px}.login-form{gap:20px}.login-form input:not([type=checkbox]):not([type=hidden]){min-height:49px;font-size:16px}.login-options a{font-size:11px}.login-help{margin-top:23px;padding-top:19px}.login-footer{margin-top:32px}.login-role-note{margin-top:22px}.profile-cartilla{flex-wrap:wrap;padding:20px}.profile-cartilla>div{flex:1;min-width:190px}.profile-cartilla .button{margin-left:0;width:100%}}
@media(max-width:380px){.login-form-side{padding-left:21px;padding-right:21px}.login-story h1{font-size:25px}.login-story-content{padding-right:70px}.login-illustration{right:-35px;opacity:.4}.login-options{gap:8px}.login-options a{font-size:10px}}
/* Keep the soft palette while maintaining readable form text. */
.login-eyebrow{color:#89627f}.login-story-content>p{color:#7d6585}.login-story-footer{color:#7f6a8c}.login-form-wrap>.eyebrow{color:#806789}.login-intro{color:#7d6b86}.login-form label{color:#786480}.login-form input::placeholder{color:#8a7994}.login-options label{color:#7c6986}.login-options a{color:#995377}.login-submit{background:#aa527b;border-color:#aa527b}.login-submit:hover{background:#94416b;border-color:#94416b}.login-role-note p{color:#7c6889}.login-role-note svg{color:#8c739d}.login-help strong{color:#776080}.login-help p{color:#84708f}.login-footer,.login-footer span{color:#85748e}
.account-creation-note{margin-top:20px}.password-shell{min-height:100vh;display:grid;place-items:center;background:linear-gradient(145deg,#faf1f6,#efedf8);padding:40px 20px}.password-card{background:#fff;border:1px solid #e9e0ee;border-radius:22px;box-shadow:0 20px 70px #8b6b9a12;padding:36px 42px;max-width:495px;width:100%}.password-card .brand{padding:0 0 30px;justify-content:center}.password-card .login-form-icon{display:grid;margin:0 0 20px}.password-card h1{font-size:28px;margin-bottom:12px;color:#604b6a}.password-card>.muted{font-size:13px;line-height:1.9;color:#85708f}.password-change-form{display:grid;gap:21px;margin-top:25px}.password-change-form label{color:#796482}.password-change-form small{font-size:11px;color:#907d9b;line-height:1.8}.password-change-form input{width:100%;min-height:47px!important}.password-change-form .button{min-height:47px;margin-top:3px;background:#aa527b;border-color:#aa527b}.password-session-note{font-size:11px;color:#8d7898;text-align:center;line-height:1.8;margin:20px 0 14px}.password-card>.text-link{display:block;text-align:center}.patient-login-note strong{font-weight:600}
@media(max-width:760px){.password-shell{padding:20px 15px}.password-card{padding:27px 23px;border-radius:16px}.password-card h1{font-size:25px}.password-change-form input{font-size:16px!important}.password-card .brand{padding-bottom:27px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.ficha-section {
    --ficha-border: #e9e0ee;
    --ficha-heading: #634a70;
    --ficha-surface: #fcfafe;
    --ficha-header: #f4edf6;
    --ficha-accent: #75476b;
    min-width: 0;
    margin: 0 0 20px;
    padding: 16px 20px;
    border: 1px solid var(--ficha-border);
    border-radius: 12px;
    background: var(--ficha-surface);
}
.ficha-section legend,
.ficha-section h3 {
    color: var(--ficha-heading);
    font-size: 15px;
    font-weight: 650;
}
.ficha-section legend { padding: 0 8px; }
.ficha-section h3 { margin: 0 0 8px; }
.ficha-section .data-list { margin-bottom: 0; }
@media (max-width: 760px) {
    .ficha-section { padding: 12px; }
}

.obstetric-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 4px 0 18px;
}
.obstetric-card {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid var(--ficha-border);
    border-radius: 10px;
    background: #fff;
}
.obstetric-card h4 {
    margin: 0 0 12px;
    padding-bottom: 9px;
    border-bottom: 1px solid #f1eaf4;
    color: var(--ficha-heading);
    font-size: 13px;
    font-weight: 650;
}
.obstetric-card .data-list,
.obstetric-card .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 94px), 1fr));
    gap: 10px;
    margin: 0;
}
.obstetric-card .data-list > div { border: 0; padding: 2px 0; }
.obstetric-card .data-list dd { font-size: 16px; font-weight: 600; }
@media (max-width: 760px) {
    .obstetric-overview { grid-template-columns: 1fr; }
}

.ficha-checklist .form-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 4px 8px;
}
.ficha-checklist .check-label,
.ficha-frequency .check-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 5px 8px;
    margin: 0;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.3;
}
.ficha-checklist .check-label:hover,
.ficha-frequency .check-label:hover {
    background: #f2ebf6;
}
.ficha-checklist .check-label input,
.ficha-frequency .check-label input {
    flex: 0 0 auto;
    margin: 0;
    accent-color: var(--ficha-accent);
}
.ficha-frequency .form-grid {
    grid-template-columns: minmax(95px, 1fr) minmax(0, 2fr);
    align-items: center;
    gap: 7px 12px;
}
.ficha-frequency .form-field { gap: 3px; }
.ficha-checklist .wide,
.ficha-frequency .wide { margin-top: 6px; }

.ficha-frequency {
    --frequency-columns: minmax(110px, 145px) minmax(0, 1fr);
}
.ficha-frequency .frequency-heading,
.ficha-frequency .form-grid {
    display: grid;
    grid-template-columns: var(--frequency-columns);
    gap: 6px 10px;
    width: 100%;
}
.ficha-frequency .frequency-heading {
    margin-bottom: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--ficha-border);
    color: var(--ficha-heading);
    font-size: 12px;
    font-weight: 650;
}
.ficha-frequency .frequency-heading span:first-child { padding-inline-start: 8px; }
.ficha-frequency .form-field { position: relative; min-width: 0; }
.ficha-frequency .form-field:not(.wide) label:not(.check-label) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.ficha-frequency .form-field input[type="text"] {
    width: 100%;
    min-height: 34px;
    padding: 5px 9px;
}
.ficha-frequency .form-field textarea {
    min-height: 54px;
    height: 54px;
    resize: vertical;
}
@media (max-width: 420px) {
    .ficha-frequency { --frequency-columns: minmax(92px, 110px) minmax(0, 1fr); }
}

.mark-field {
    min-width: 0;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid var(--ficha-border);
    border-radius: 8px;
    background: #fff;
}
.mark-field legend { padding: 0 4px; font-size: 12px; }
.mark-options { display: flex; flex-wrap: wrap; gap: 5px 10px; }
.mark-options label { display: inline-flex; align-items: center; gap: 5px; padding: 3px 0; }
.mark-options input[type="radio"] { min-height: 0; margin: 0; accent-color: var(--ficha-accent); }
.mark-field { background: #fff; padding: 8px 10px 10px; }
.mark-options { gap: 5px; align-items: center; }
.mark-options label {
    padding: 5px 8px;
    border: 1px solid var(--ficha-border);
    border-radius: 6px;
    background: #faf7fb;
}
.mark-options label:has(input:checked) {
    border-color: #b78cae;
    background: #f2e5f0;
    color: #583451;
    font-weight: 600;
}
.clear-mark {
    display: none;
    padding: 3px 5px;
    border: 0;
    background: transparent;
    color: var(--ficha-accent);
    font-size: 11px;
    text-decoration: underline;
}
.mark-field:has(input:checked) .clear-mark { display: inline-block; }
.hospitalization-panel { display: grid; gap: 12px; }
.hospitalization-panel > .form-grid { grid-template-columns: 1fr; }
.hospitalization-panel:has(input[name="fields[hospitalization_state]"]):not(:has(input[name="fields[hospitalization_state]"][value="yes"]:checked)) .hospitalization-details {
    display: none;
}

.lab-table-scroll {
    overflow-x: auto;
    border: 1px solid var(--ficha-border);
    border-radius: 8px;
}
.lab-table {
    width: 100%;
    min-width: 570px;
    border-collapse: collapse;
    background: #fff;
    font-size: 13px;
}
.lab-table th,
.lab-table td {
    padding: 6px 9px;
    border-bottom: 1px solid #eee8f1;
    text-align: left;
    vertical-align: middle;
}
.lab-table thead th { background: var(--ficha-header); color: var(--ficha-heading); }
.lab-table tbody th { width: 24%; color: #493954; font-weight: 600; }
.lab-table tbody tr:nth-child(even) { background: var(--ficha-surface); }
.lab-table tbody:last-of-type tr:last-child > * { border-bottom: 0; }
.lab-table .lab-group th {
    padding: 7px 9px;
    background: var(--ficha-header);
    color: var(--ficha-heading);
    font-size: 12px;
    font-weight: 650;
}
.lab-table .lab-date { width: 138px; }
.lab-table .form-grid,
.lab-table .data-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0;
}
.lab-table .form-field { flex: 1 1 100px; min-width: 0; gap: 2px; }
.lab-table .form-field > input {
    width: 100%;
    min-height: 30px;
    padding: 4px 6px;
}
.lab-table .mark-field { flex-basis: auto; padding: 0; border: 0; background: transparent; }
.lab-table .mark-options { gap: 3px; }
.lab-table .mark-options label { padding: 3px 5px; font-size: 11px; }
.lab-table .mark-field legend,
.lab-table .lab-result label[for$="_value"],
.lab-table .lab-value dt,
.lab-table .lab-date label,
.lab-table .lab-date dt {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.lab-table .data-list > div { padding: 0; border: 0; }
.lab-table .data-list dd { margin: 0; }
.lab-table th,
.lab-table td {
    font-family: inherit;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
}
.lab-table .lab-group th { font-size: 13px; }

.patient-control { padding: 0; margin-top: 12px; overflow: hidden; border: 1px solid #e8e2ed; border-radius: 14px; box-shadow: 0 2px 8px #34243c03; }
.patient-control > summary.patient-control-heading { display: flex; align-items: center; gap: 16px; padding: 20px 22px; list-style: none; cursor: pointer; color: #30243c; font-family: inherit; transition: background .15s; }
.patient-control > summary.patient-control-heading:hover { background: #fcf9fd; }
.patient-control > summary.patient-control-heading:focus-visible { outline-offset: -4px; }
.patient-control > summary::-webkit-details-marker { display: none; }
.control-calendar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: #f3ebf6; color: #86618f; flex-shrink: 0; }
.control-calendar svg { width: 23px; height: 23px; }
.control-heading-text { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 5px; }
.control-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.control-title { font-size: 15px; font-weight: 650; line-height: 1.35; overflow-wrap: anywhere; min-width: 0; }
.patient-exam-empty { margin-top: 20px; }
.appointment-state { align-self: flex-start; padding: 2px 9px; border-radius: 20px; background: #f1edf4; color: #65546f; font-size: 11px; font-weight: 550; }
.appointment-state.is-scheduled { background: #f0e9f8; color: #714c8b; }
.appointment-state.is-completed { background: #edf5f0; color: #496d59; }
.appointment-state.is-cancelled { background: #fbeef0; color: #945364; }
.control-latest { padding: 2px 8px; border-radius: 20px; background: #edf5f0; color: #496d59; font-size: 10px; font-weight: 550; }
.control-visit-date { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #65546f; line-height: 1.4; font-variant-numeric: tabular-nums; }
.control-meta-dot { color: #b5a7bd; }
.control-location { font-size: 12px; color: #7b6c85; overflow-wrap: anywhere; }
.patient-control-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid #e6dbea; border-radius: 9px; background: #faf6fc; color: #75476b; font-size: 12px; font-weight: 550; flex-shrink: 0; }
.patient-control .control-hide { display: none; }
.patient-control[open] .control-show { display: none; }
.patient-control[open] .control-hide { display: inline; }
.patient-control .control-chevron { width: 16px; height: 16px; transition: transform .15s; }
.patient-control[open] .control-chevron { transform: rotate(180deg); }
.patient-control-content { margin: 0 22px; border-top: 1px solid #eee8f1; padding: 4px 0 18px; font-family: inherit; }
.patient-control-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; margin: 14px 0; border: 1px solid #ebe6ef; border-radius: 12px; overflow: hidden; background: #fdfcfe; }
.patient-control-metrics > div { padding: 16px 18px; min-width: 0; }
.patient-control-metrics dt { color: #786b82; font-size: 12px; font-weight: 500; line-height: 1.5; }
.patient-control-metrics dd { margin: 6px 0 0; color: #352c3f; font-size: 18px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.patient-control-note { display: grid; grid-template-columns: minmax(150px, 190px) minmax(0, 1fr); gap: 16px 28px; margin: 0; padding: 20px 2px; border: 0; border-bottom: 1px solid #f0ecf3; border-radius: 0; background: transparent; }
.patient-control-note h4 { margin: 0; padding: 2px 0; font-family: inherit; font-size: 12px; font-weight: 500; color: #786b82; line-height: 1.6; letter-spacing: 0; }
.patient-control-note p { margin: 0; font-family: inherit; font-size: 14px; font-weight: 400; color: #352c3f; line-height: 1.75; overflow-wrap: anywhere; }
.patient-control-content .data-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.patient-control-content .data-list > div { padding: 16px 2px; border-bottom: 1px solid #f0ecf3; min-width: 0; }
.patient-control-content .data-list dt { font-size: 12px; font-weight: 500; color: #786b82; line-height: 1.6; }
.patient-control-content .data-list dd { margin: 6px 0 0; font-size: 14px; color: #352c3f; line-height: 1.75; overflow-wrap: anywhere; }
.patient-control-footer { display: flex; align-items: center; gap: 7px; padding: 14px 2px 0; margin-top: 0; border: 0; color: #85788e; font-size: 11px; line-height: 1.6; }
.patient-control-footer::before { content: ''; width: 5px; height: 5px; background: #bcadc8; border-radius: 50%; flex-shrink: 0; }
.staff-control-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee8f1; }
.staff-control-actions .muted { font-size: 12px; }
@media (max-width: 600px) {
    .patient-control > summary.patient-control-heading { padding: 16px; gap: 12px; flex-wrap: wrap; }
    .control-calendar { width: 40px; height: 40px; border-radius: 11px; }
    .control-title-row { gap: 5px; }
    .control-title { font-size: 14px; }
    .patient-control-toggle { margin-left: 52px; padding: 6px 10px; }
    .patient-control-content { margin: 0 16px; }
    .patient-control-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .patient-control-metrics > div { padding: 12px; }
    .patient-control-metrics dd { font-size: 16px; }
    .patient-control-note { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
    .patient-control-note h4 { padding: 0; }
    .patient-control-content .data-list { grid-template-columns: 1fr; }
}
/* Aligned patient directory toolbar and columns. */
.gineco-app .patient-tools { padding: 20px 24px; gap: 24px; display: flex; flex-wrap: nowrap; align-items: center; }
.gineco-app .patient-tools .search-form { display: flex; align-items: center; gap: 12px; min-width: 0; }
.gineco-app .patient-tools .search-input { flex: 1; min-width: 0; max-width: 560px; margin: 0; }
.gineco-app .patient-tools .search-input svg { left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.gineco-app .patient-tools .search-input input { height: 44px; min-height: 44px; padding: 10px 14px 10px 42px; border: 1px solid #e6dfed; border-radius: 9px; background: #fdfcfe; font: inherit; font-size: 13px; }
.gineco-app .patient-tools .button { height: 44px; min-height: 44px; padding: 10px 20px; flex-shrink: 0; border-radius: 9px; }
.gineco-app .patient-tools .results-count { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 8px; background: #f7f4fa; color: #75647f; font-size: 12px; }
.patient-directory-table { table-layout: fixed; width: 100%; }
.patient-directory-table th:nth-child(1) { width: 43%; }
.patient-directory-table th:nth-child(2) { width: 23%; }
.patient-directory-table th:nth-child(3) { width: 19%; }
.patient-directory-table th:nth-child(4) { width: 15%; }
.gineco-app .patient-directory-table :is(th, td) { padding: 18px 24px; vertical-align: middle; }
.patient-directory-table .person-cell { min-width: 0; gap: 12px; }
.patient-directory-table .person-cell > div { min-width: 0; }
.patient-directory-table .person-name { white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.patient-directory-table td:last-child { text-align: right; }
.patient-directory-table .table-action { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; white-space: nowrap; font-size: 12px; }
@media (max-width: 760px) {
    .gineco-app .patient-tools { flex-wrap: wrap; padding: 16px; gap: 12px; }
    .gineco-app .patient-tools .search-form { flex: 1 1 100%; flex-wrap: wrap; }
    .gineco-app .patient-tools .search-input { flex: 1 1 180px; max-width: none; }
    .gineco-app .patient-tools .results-count { margin-left: auto; }
    .patient-directory-table { table-layout: auto; min-width: 620px; }
    .gineco-app .patient-directory-table :is(th, td) { padding: 16px; }
    .patient-directory-table .table-action { font-size: 12px; }
}
/* Shared controls for the patient record and clinical forms. */
.gineco-app :is(.clinical-form, .pregnancy-toolbar, .ficha-section)
    :is(label, input, select, textarea, button, .mark-field legend) {
    font-family: inherit;
    font-size: 13px;
}
.gineco-app :is(.clinical-form, .pregnancy-toolbar) select {
    appearance: none;
    min-height: 36px;
    padding: 6px 30px 6px 10px;
    border: 1px solid #e6dfed;
    border-radius: 7px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23756480' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 10px center;
    color: inherit;
}
.gineco-app .clinical-form :is(input[type="checkbox"], input[type="radio"]) {
    appearance: none;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 1px solid #a897af;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
}
.gineco-app .clinical-form :is(input[type="checkbox"], input[type="radio"]):checked {
    border-color: #75476b;
    background: #75476b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.gineco-app .clinical-form :is(.mark-options label, .check-label) {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 4px 7px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #634a70;
    font-weight: 500;
}
.gineco-app .clinical-form :is(.mark-options label, .check-label):is(:hover, :has(input:checked)) {
    background: #f2eaf5;
}
@media (forced-colors: active) {
    .gineco-app :is(.clinical-form, .pregnancy-toolbar) select,
    .gineco-app .clinical-form :is(input[type="checkbox"], input[type="radio"]) {
        appearance: auto;
    }
}

/* Mobile layouts: keep content readable and actions within thumb reach. */
@media (max-width: 760px) {
    .gineco-app .main-shell,
    .gineco-app .main-content,
    .gineco-app .panel,
    .gineco-app .clinical-form,
    .gineco-app .form-grid > *,
    .gineco-app .ficha-section { min-width: 0; max-width: 100%; }
    .gineco-app .main-content { padding: 22px 14px 24px; }
    .gineco-app :is(h1, h2, h3, h4, dd, .person-name, .notice) { overflow-wrap: anywhere; }
    .gineco-app .page-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
    .gineco-app .page-heading h1 { font-size: 24px; }
    .gineco-app :is(.button, .icon-button, .tabs a, .nav-item) { min-height: 44px; }
    .gineco-app .tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
    .gineco-app .tabs a { display: inline-flex; align-items: center; flex-shrink: 0; padding: 10px 12px; font-size: 13px; }
    .gineco-app .clinical-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
    .gineco-app .pregnancy-toolbar select,
    .gineco-app .patient-tools .search-input input { font-size: 16px; min-height: 44px; max-width: 100%; }
    .gineco-app .clinical-form :is(.mark-options label, .check-label) { min-height: 44px; padding: 10px 8px; }
    .gineco-app :is(.form-grid, .obstetric-overview) { grid-template-columns: minmax(0, 1fr); }
    .gineco-app .pregnancy-toolbar form { width: 100%; min-width: 0; }
    .gineco-app .pregnancy-toolbar select { flex: 1; min-width: 0; max-width: none; }
    .gineco-app .patient-tools .search-input { flex-basis: 100%; }
    .gineco-app .patient-tools .search-form > .button { flex: 1; }
    .gineco-app .patient-directory-table { display: block; min-width: 0; width: 100%; }
    .gineco-app .patient-directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .gineco-app .patient-directory-table tbody { display: block; width: 100%; }
    .gineco-app .patient-directory-table tr { display: grid; grid-template-columns: minmax(0, 1fr); padding: 16px; border-top: 1px solid #eee8f1; gap: 12px; }
    .gineco-app .patient-directory-table td { display: block; width: auto; padding: 0; border: 0; white-space: normal; }
    .gineco-app .patient-directory-table td:nth-child(2)::before { content: 'Seguimiento'; }
    .gineco-app .patient-directory-table td:nth-child(3)::before { content: 'Contacto'; }
    .gineco-app .patient-directory-table td:nth-child(2)::before,
    .gineco-app .patient-directory-table td:nth-child(3)::before { display: block; margin-bottom: 5px; color: #786b82; font-size: 12px; }
    .gineco-app .patient-directory-table .person-cell { min-width: 0; }
    .gineco-app .patient-directory-table .person-name { font-size: 14px; }
    .gineco-app .patient-directory-table td:last-child { text-align: left; padding-top: 4px; }
    .gineco-app .patient-directory-table .table-action { display: flex; justify-content: center; min-height: 44px; width: 100%; border: 1px solid #e6dbea; border-radius: 9px; background: #faf6fc; font-size: 13px; }
    .gineco-app .patient-directory-table .table-action svg { width: 18px; height: 18px; }
    .gineco-app .patient-control > summary.patient-control-heading { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px; }
    .gineco-app .patient-control .control-calendar { width: 40px; height: 40px; }
    .gineco-app .patient-control .patient-control-toggle { grid-column: 1 / -1; justify-content: center; margin: 0; min-height: 44px; }
    .gineco-app .control-visit-date { flex-wrap: wrap; }
    .gineco-app .patient-control-note { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 16px 0; }
    .gineco-app .patient-control-content .data-list { grid-template-columns: minmax(0, 1fr); }
    .gineco-app .staff-control-actions { align-items: stretch; flex-direction: column; }
    .gineco-app .staff-control-actions .button { justify-content: center; width: 100%; }
    .gineco-app .patient-control .history { padding: 14px; margin-top: 14px; }
    .gineco-app .history summary { min-height: 44px; padding: 10px 0; }
    .gineco-app :is(.table-scroll, .lab-table-scroll) { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
@media (max-width: 380px) {
    .gineco-app .patient-control-metrics { grid-template-columns: minmax(0, 1fr); }
    .gineco-app .control-title-row { align-items: flex-start; flex-direction: column; }
    .gineco-app .topbar { padding-left: 14px; padding-right: 14px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .gineco-app *, .gineco-app *::before, .gineco-app *::after { scroll-behavior: auto; transition: none; }
}

/* Shared identity for the sidebar, login and first-access screen. */
.gineco-app .brand { position: relative; display: flex; gap: 12px; padding: 0 0 26px; min-height: 138px; font-family: inherit; letter-spacing: 0; line-height: 1; align-items: center; }
.gineco-app .brand-maternity { display: block; flex: 0 0 56px; width: 56px; pointer-events: none; }
.gineco-app .brand-maternity img { display: block; width: 100%; height: auto; object-fit: contain; border-radius: 0; background: transparent; }
.gineco-app .brand-wordmark { display: flex; flex-direction: column; min-width: 0; gap: 4px; }
.gineco-app .brand-prefix { color: #a85c80; font-size: 12px; font-weight: 550; letter-spacing: .6px; }
.gineco-app .brand .brand-emblem { display: grid; place-items: center; width: 34px; height: 44px; flex: 0 0 34px; color: #b4819b; transform: none; }
.gineco-app .brand .brand-emblem svg { width: 30px; height: 30px; stroke-width: 1.1; }
.gineco-app .login-brand .brand-emblem { width: 42px; flex-basis: 42px; }
.gineco-app .login-brand .brand-emblem svg { width: 36px; height: 36px; }
.gineco-app .brand-name { display: block; color: #382e46; font-size: 24px; font-weight: 650; letter-spacing: -.7px; line-height: 1.08; }
.gineco-app .brand-name > span { display: block; }
.gineco-app .brand .brand-wordmark small { margin: 5px 0 0; color: #88728e; font-size: 8px; font-weight: 450; line-height: 1.5; letter-spacing: .1px; }
.gineco-app .login-brand { width: 260px; max-width: 100%; min-height: 155px; padding: 0; gap: 18px; }
.gineco-app .login-brand .brand-maternity { width: 74px; flex-basis: 74px; }
.gineco-app .login-brand .brand-name { font-size: 30px; }
.gineco-app .login-form-wrap > .eyebrow { line-height: 1.7; overflow-wrap: anywhere; }
@media (min-width: 761px) and (max-width: 1050px) {
    .gineco-app .sidebar .brand { gap: 8px; }
    .gineco-app .sidebar .brand-maternity { width: 44px; flex-basis: 44px; }
    .gineco-app .sidebar .brand-name { font-size: 21px; }
}
@media (max-width: 760px) {
    .gineco-app .login-brand .brand-name { font-size: 24px; }
    .gineco-app .login-brand { width: 230px; min-height: 124px; padding: 0; gap: 14px; }
    .gineco-app .login-brand .brand-maternity { width: 60px; flex-basis: 60px; }
}
/* Profile reading view is deliberately distinct from the editing form. */
.gineco-app .profile-details { padding: 24px; }
.profile-details-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid #eee8f1; }
.profile-details-heading p { margin-top: 5px; font-size: 12px; }
.profile-details-heading .button { flex-shrink: 0; }
.profile-registered-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.gineco-app .profile-registered-data .ficha-section { padding: 20px 0 6px; margin: 0; border: 0; border-radius: 0; background: transparent; min-width: 0; }
.gineco-app .profile-registered-data .ficha-section h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #7f5a82; }
.gineco-app .profile-registered-data .data-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; gap: 0; }
.gineco-app .profile-registered-data .data-list > div { display: grid; grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid #f3eff6; }
.gineco-app .profile-registered-data dt { color: #81738b; font-size: 12px; line-height: 1.6; }
.gineco-app .profile-registered-data dd { margin: 0; color: #352c3f; font-size: 13px; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.profile-details .clinical-form { margin-top: 20px; }
.profile-email-note { margin-top: 16px; font-size: 12px; }
@media (max-width: 760px) {
    .gineco-app .profile-details { padding: 18px; }
    .profile-registered-data { grid-template-columns: minmax(0, 1fr); }
    .profile-details-heading { align-items: flex-start; gap: 12px; padding-bottom: 16px; }
}
@media (max-width: 380px) {
    .gineco-app .profile-registered-data .data-list > div { grid-template-columns: minmax(0, 1fr); gap: 3px; }
}

/* Patient chart: clinical action in the header, identity editing inside its section. */
.gineco-app .patient-heading .page-heading { align-items: flex-start; margin-bottom: 26px; gap: 24px; }
.patient-heading .page-heading > div { min-width: 0; }
.patient-heading h1 { overflow-wrap: anywhere; }
.patient-heading .button { flex-shrink: 0; margin-top: 18px; }
.patient-account-details { margin: 0 0 22px; border: 1px solid #e8e2ee; border-radius: 12px; background: #fff; color: #81738b; font-size: 12px; }
.patient-account-details summary { display: flex; align-items: center; gap: 10px; padding: 13px 16px; cursor: pointer; list-style: none; }
.patient-account-details summary::-webkit-details-marker { display: none; }
.patient-account-details summary > svg { width: 17px; height: 17px; color: #aa7797; }
.patient-account-details summary > span { min-width: 0; overflow-wrap: anywhere; }
.patient-account-details strong { color: #65536f; font-weight: 550; }
.patient-account-more { margin-left: auto; flex-shrink: 0; font-size: 11px; color: #9a6486; }
.patient-account-details[open] summary { border-bottom: 1px solid #f0ebf4; }
.patient-account-details > p { padding: 13px 16px; line-height: 1.7; }
.gineco-app .pregnancy-toolbar { background: transparent; border: 0; border-radius: 0; padding: 0 0 18px; margin-bottom: 0; gap: 12px; }
.gineco-app .pregnancy-toolbar form { flex: 0 1 auto; min-width: 0; gap: 10px; }
.gineco-app .pregnancy-toolbar select { flex: 0 1 330px; min-width: 0; width: 330px; max-width: 100%; background-color: #fff; font-size: 12px; }
.gineco-app .pregnancy-toolbar label { font-size: 12px; }
.gineco-app .pregnancy-toolbar .button { background: transparent; border-color: transparent; box-shadow: none; padding: 8px 10px; min-height: 36px; color: #995c7d; }
.gineco-app .pregnancy-toolbar .button:hover { background: #f4ecf3; }
.gineco-app .detail-panel .patient-account-details { margin: 24px 0 0; background: #faf8fc; }
.detail-panel .panel-heading .muted,.care-picker .panel-heading .muted { margin-top: 5px; font-size: 12px; }
.gineco-app .care-picker { padding: 28px; }
.gineco-app .care-picker .panel-heading { padding: 0; margin: 0 0 24px; align-items: center; gap: 20px; }
.care-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.care-option { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid #e8e0ec; border-radius: 14px; background: #fdfbfe; transition: border-color .15s,background .15s; }
.care-option:hover { border-color: #c18ba9; background: #fcf4f8; }
.care-option-icon { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; color: #ac5c85; background: #f6e7ef; }
.care-option:nth-child(2) .care-option-icon { color: #89649f; background: #eee7f6; }
.care-option > span:nth-child(2) { display: flex; flex-direction: column; align-self: stretch; flex: 1; min-width: 0; }
.care-option strong { display: block; font-size: 15px; color: #48394f; }
.care-option-description { display: block; color: #8a7b93; font-size: 12px; line-height: 1.8; margin-top: 8px; margin-bottom: 20px; }
.care-option-action { display: flex; align-items: center; gap: 8px; color: #ad6188; font-size: 12px; font-weight: 600; margin-top: auto; }
.care-option-action svg { width: 16px; height: 16px; }
.care-picker-note { font-size: 12px; color: #8a7b93; margin: 22px 0 0; line-height: 1.7; }
@media(max-width:760px) {
 .gineco-app .patient-heading .page-heading { align-items: stretch; flex-direction: column; gap: 16px; }
 .patient-heading .button { margin-top: 0; align-self: flex-start; }
 .patient-account-details summary { flex-wrap: wrap; }
 .patient-account-more { margin-left: 27px; }
 .gineco-app .care-picker { padding: 20px; }
 .gineco-app .care-picker .panel-heading { align-items: flex-start; margin-bottom: 20px; }
 .care-options { grid-template-columns: minmax(0,1fr); gap: 16px; }
 .care-option { padding: 20px; gap: 14px; }
 .gineco-app .pregnancy-toolbar form { flex-wrap: wrap; }
 .gineco-app .pregnancy-toolbar select { width: 100%; flex-basis: 100%; }
 .detail-panel .panel-heading { align-items: flex-start; flex-wrap: wrap; gap: 14px; }
}

.gineco-app .exam-upload { display: grid; gap: 16px; margin: 24px 0; padding: 24px; border: 1px solid #e7dfed; border-radius: 14px; background: #fcfafd; }
.exam-upload-heading { display: flex; align-items: center; gap: 12px; }
.exam-upload-icon { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px; color: #ae6289; background: #f5e8f0; }
.gineco-app .exam-upload label { font-size: 13px; font-weight: 600; color: #53425e; cursor: pointer; }
.exam-upload-heading p { margin: 3px 0 0; font-size: 12px; color: #94849e; }
.gineco-app .exam-upload input[type="file"] { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 12px; color: #8d7c97; line-height: 1.6; }
.exam-upload input::file-selector-button { font: inherit; font-weight: 600; color: #a35980; background: #fff; border: 1px solid #ddc7d7; border-radius: 9px; padding: 11px 16px; margin-right: 14px; cursor: pointer; transition: background .15s,border-color .15s; }
.exam-upload input::file-selector-button:hover { background: #f8edf3; border-color: #b8789b; }
.exam-upload input:focus-visible { outline: 2px solid #ad7cba; outline-offset: 5px; }
.exam-upload small { color: #94849e; line-height: 1.7; font-size: 11px; }
.exam-upload .exam-upload-privacy { margin: -7px 0 0; color: #94849e; font-size: 11px; }
.exam-selected-files { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.exam-selected-files[hidden] { display: none; }
.exam-selected-files li { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid #ece5f0; border-radius: 8px; background: #fff; color: #66516f; font-size: 12px; }
.exam-selected-files li span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.exam-selected-files li span:last-child { color: #9989a2; font-size: 11px; white-space: nowrap; }
@media(max-width:760px) { .gineco-app .exam-upload { padding: 18px; } .exam-upload input::file-selector-button { margin-right: 8px; padding: 10px 12px; } }
.exam-attachments { margin: 22px 0; }
.exam-attachments h4 { margin: 0 0 12px; font-size: 13px; color: #65506f; }
.exam-attachments ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.exam-attachments a { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid #e9e0ed; border-radius: 10px; color: #a25d83; background: #fff; }
.exam-attachments a:hover { background: #faf4f8; }
.exam-attachments a > span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.exam-attachments small { display: block; margin-top: 3px; font-size: 11px; color: #8d7c97; }

.exam-attachments .exam-download-link { display: inline-flex; margin: 4px 0 8px 14px; padding: 3px 0; border: 0; background: transparent; font-size: 11px; }

.lab-battery { margin: 22px 0; padding: 22px; border: 1px solid #e7dfed; border-radius: 12px; background: #fcfafd; }
.lab-battery[hidden],.auxiliary-lab-form .form-field[hidden] { display: none; }
.lab-battery-heading { margin-bottom: 20px; }
.lab-battery-heading h3 { font-size: 14px; color: #6e507e; }
.lab-battery-heading p { margin-top: 6px; font-size: 12px; color: #92829c; }
.lab-battery-section { padding: 18px 0 0; margin: 18px 0 0; border: 0; border-top: 1px solid #ece5f1; min-width: 0; }
.lab-battery-section legend { padding: 0 10px 0 0; font-size: 12px; font-weight: 600; color: #796482; }
@media(max-width:760px) { .lab-battery { padding: 16px; } }

.lab-order-selection { margin: 22px 0; padding: 22px; border: 1px solid #e8e0ed; border-radius: 12px; background: #fcfafd; }
.lab-order-selection > p { font-size: 12px; margin-top: 6px; }
.lab-order-summary { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0; }
.lab-order-summary li { padding: 6px 10px; border: 1px solid #e4d6e7; border-radius: 8px; color: #75577e; font-size: 12px; background: #fff; }
.lab-order-options { border-top: 1px solid #eae2ef; padding-top: 14px; }
.lab-order-options summary { cursor: pointer; color: #9b5b80; font-size: 12px; font-weight: 600; padding: 5px 0; }
.lab-search-label { display: grid; gap: 6px; margin: 16px 0; font-size: 12px; color: #8e7b98; }
.lab-order-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 18px; max-height: 340px; overflow-y: auto; padding: 2px; }
.lab-order-check { display: flex; align-items: flex-start; gap: 10px; padding: 9px 6px; font-size: 12px; cursor: pointer; color: #6e5a78; }
.lab-order-check[hidden],.lab-order-form .form-field[hidden] { display: none; }
.tabs .tab-disabled { font-size: 12px; padding: 12px 0; color: var(--muted); opacity: .65; border-bottom: 2px solid transparent; cursor: not-allowed; }
@media (max-width: 768px) { .tabs .tab-disabled { font-size: 11px; } }
.unsaved-dialog { width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: #fff; }
.unsaved-dialog::backdrop { background: #25152d80; }
.unsaved-dialog p { margin-top: 12px; color: var(--muted); }
.unsaved-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 520px) { .unsaved-dialog-actions { flex-direction: column; } .unsaved-dialog-actions .button { width: 100%; } }
.lab-exam-picker { margin-bottom: 18px; }
.lab-exam-picker p { font-size: 12px; }
.lab-exam-picker p:empty { display: none; }
.lab-exam-results { max-height: 260px; overflow-y: auto; border: 1px solid #e9dfed; border-radius: 9px; }
.lab-exam-results button { display: block; width: 100%; padding: 10px 12px; border: 0; border-bottom: 1px solid #f0eaf3; background: #fff; color: #66506e; text-align: left; font-size: 12px; }
.lab-exam-results button:hover,.lab-exam-results button:focus-visible { background: #f8edf4; }
.lab-exam-results button:last-child { border-bottom: 0; color: var(--pink-deep); }
.gineco-app .lab-order-check input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; margin-top: 2px; padding: 0; flex-shrink: 0; accent-color: #b5658c; }
.lab-order-view h4 { margin: 20px 0 12px; font-size: 13px; color: #76577f; }
.lab-order-view ul { margin: 0; padding-left: 22px; columns: 2; column-gap: 28px; }
.lab-order-view li { padding: 4px 0; break-inside: avoid; font-size: 13px; }
.lab-order-view p { font-size: 13px; }
.lab-order-pending { margin-top: 20px; color: #95849e; }
@media(max-width:760px) { .lab-order-selection { padding: 16px; } .lab-order-checks { grid-template-columns: minmax(0,1fr); } .lab-order-view ul { columns: 1; } }

.rx-item { position: relative; min-width: 0; margin: 24px 0; padding: 22px; border: 1px solid #e7dfed; border-radius: 12px; background: #fcfafd; }
.rx-item legend { padding: 0 10px; color: #92577e; font-size: 13px; font-weight: 600; }
.rx-item .form-grid { margin-top: 8px; }
.rx-item-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.rx-profile-heading { display: grid; justify-items: start; gap: 16px; }
.agenda-booking-back { margin-bottom: 12px; }
.agenda-booking { max-width: 760px; padding: clamp(18px, 4vw, 30px); }
.agenda-booking .clinical-form { display: grid; gap: 20px; margin-top: 0; }
.agenda-booking .clinical-form .form-actions { margin-top: 0; padding-top: 18px; }
.agenda-detail { max-width: 820px; }
.agenda-detail-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: clamp(16px, 4vw, 26px); background: #fcf7fb; border-bottom: 1px solid #eee4ee; }
.agenda-detail-title { display: flex; align-items: center; gap: 12px; overflow-wrap: anywhere; }
.agenda-detail-title h2 { font-size: 20px; }
.agenda-detail-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; color: var(--pink-deep); background: #f3e5ef; border-radius: 10px; }
.agenda-detail-status { justify-self: start; padding: 5px 10px; border-radius: 20px; color: #764662; background: #f4e7ef; font-size: 12px; font-weight: 600; }
.agenda-detail-status:is(.status-arrived, .status-attended) { color: #38674f; background: #e9f3ed; }
.agenda-detail-status:is(.status-no_show, .status-cancelled) { color: #6d6172; background: #f0ebf1; }
.agenda-detail-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; overflow-wrap: anywhere; }
.agenda-detail-meta dt { color: #786579; font-size: 11px; }
.agenda-detail-meta dd { margin: 2px 0 0; font-size: 13px; font-weight: 600; }
.agenda-detail-body { padding: clamp(16px, 4vw, 26px); }
.agenda-detail-body:empty { display: none; }
.agenda-detail-section + :is(.agenda-detail-section, .button) { margin-top: 18px; }
.agenda-detail-section + .agenda-detail-section { padding-top: 18px; border-top: 1px solid var(--line); }
.agenda-detail-section h3 { margin: 0 0 12px; }
.agenda-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.agenda-detail-actions .clinical-form { margin: 0; }
.agenda-detail-disclosure { margin-top: 12px; }
.agenda-detail-disclosure > summary { padding: 6px 0; color: var(--pink-deep); font-size: 12px; font-weight: 600; cursor: pointer; }
.agenda-detail-disclosure[open] { padding: 6px 14px 14px; border: 1px solid #eee4ee; border-radius: 10px; background: #fcfafd; }
.agenda-detail-disclosure .search-form { margin-top: 8px; }
.agenda-detail-disclosure .search-form input { min-width: 0; flex: 1; }
@media(max-width:480px) { .agenda-detail-header { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.rx-added-items { margin: 12px 0 20px; padding: 0; list-style: none; }
.rx-added-items > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-bottom: 10px; padding: 14px 16px; border: 1px solid #e7dfed; border-left: 3px solid var(--pink); border-radius: 10px; background: #fdfafd; overflow-wrap: anywhere; }
.rx-added-items strong { color: #604b62; }
.rx-added-items .rx-item-actions { grid-column: 2; grid-row: 1; gap: 6px; }
.rx-added-items .text-link { min-height: 34px; padding: 5px 10px; border: 1px solid transparent; border-radius: 7px; background: transparent; }
.rx-added-items .text-link:first-child { background: #f5e8ef; }
.rx-added-items .text-link:hover { border-color: #d8b3c8; text-decoration: none; }
.rx-added-items dl { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0; padding-top: 10px; border-top: 1px solid #eee4ef; }
.rx-added-items dl > div:last-child { flex-basis: 100%; }
.rx-added-items dt { color: #786579; font-size: 11px; font-weight: 600; }
.rx-added-items dd { margin: 2px 0 0; font-size: 13px; white-space: pre-wrap; }
@media(max-width:480px) { .rx-added-items > li { grid-template-columns: minmax(0, 1fr); } .rx-added-items .rx-item-actions { grid-column: 1; grid-row: auto; } }
.rx-catalog-note { font-size: 11px; line-height: 1.8; margin-top: 12px; }
.rx-signing { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid #e9e2ee; }
.rx-signing > div { flex: 1; }
.rx-signing p { margin-top: 5px; color: #8d7b97; font-size: 12px; }
.rx-signing > .check-label,.rx-signing > p { flex-basis: 100%; }
.rx-medication { padding: 18px 0; border-bottom: 1px solid #eee6f1; }
.rx-medication h4 { font-size: 14px; color: #7c547f; margin: 0 0 14px; }
.rx-medication .data-list { margin: 0; }
.rx-download { margin-top: 20px; }
.rx-signature-status { margin-top: 9px; font-size: 11px; }
.rx-profile-link { display: inline-block; margin: 0 0 20px; }
@media(max-width:760px) { .rx-item { padding: 18px; } .rx-signing { align-items: flex-start; } }

/* Patient welcome */
.profile-welcome{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 220px;gap:24px;padding:40px 42px;margin-bottom:24px;border:1px solid #eedfe9;border-radius:24px;background:linear-gradient(115deg,#fff8fa 0%,#f8edf3 58%,#eeeaf7 100%);overflow:hidden}
.profile-welcome-copy{position:relative;z-index:1;max-width:580px}
.profile-welcome-eyebrow{font-size:10px;font-weight:600;letter-spacing:2px;color:#98617e}
.profile-welcome h1{font-size:32px;line-height:1.25;letter-spacing:-.8px;color:#513b57;margin:16px 0}
.profile-welcome h1 span{display:block;font-size:23px;font-weight:400;color:#956780;margin-top:7px;letter-spacing:-.4px}
.profile-welcome-copy>p{font-size:13px;line-height:1.9;color:#79667e;margin:0 0 24px;max-width:490px}
.profile-welcome-signature{margin-top:24px;font-size:12px;font-weight:600;color:#805d77}
.profile-welcome-signature span{display:block;margin-top:5px;font-size:10px;font-weight:400;letter-spacing:.7px;color:#947d99}
.profile-welcome-art{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:240px}
.profile-welcome-orbit{position:absolute;width:205px;height:205px;border:1px solid #cfb9d580;border-radius:50%;transform:rotate(-20deg)}
.profile-welcome-orbit:before,.profile-welcome-orbit:after{content:'';position:absolute;border:1px solid #cfb9d560;border-radius:50%;inset:18px}
.profile-welcome-orbit:after{inset:-20px;border-color:#cfb9d530}
.profile-welcome-heart{position:relative;display:grid;place-items:center;width:112px;height:120px;border-radius:40px 40px 44px 44px;background:#ffffffb3;border:1px solid #fff;color:#b77698;box-shadow:0 16px 40px #a978a21a;transform:rotate(-8deg)}
.profile-welcome-heart svg{width:52px;height:52px;stroke-width:1.1}
.profile-welcome-art-caption{position:relative;margin-top:22px;color:#987c9c;font-size:11px;letter-spacing:1px}
.profile-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:20px}
.profile-shortcut{display:flex;align-items:center;gap:14px;padding:22px 20px;border:1px solid #ebe3ee;border-radius:16px;background:#fff;color:#513e5a;transition:border-color .18s,box-shadow .18s}
.profile-shortcut:hover{border-color:#cda8bf;box-shadow:0 6px 20px #855e8b0c}
.profile-shortcut:focus-visible{outline:2px solid #ae6a93;outline-offset:4px}
.profile-shortcut-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:44px;border-radius:13px;background:#f8eaf1;color:#b26b91}
.profile-shortcut:nth-child(2) .profile-shortcut-icon{background:#eeeaf7;color:#9881b0}
.profile-shortcut:nth-child(3) .profile-shortcut-icon{background:#eaf3ef;color:#6e9787}
.profile-shortcut-icon svg{width:21px;height:21px}
.profile-shortcut strong{display:block;font-size:13px;font-weight:600}
.profile-shortcut small{display:block;font-size:11px;line-height:1.6;color:#8d7c96;margin-top:5px}
.profile-shortcut-arrow{margin-left:auto;flex-shrink:0;color:#b29aba}
.profile-shortcut-arrow svg{width:16px;height:16px}
.profile-care-note{display:flex;align-items:center;gap:10px;margin:0 0 28px;padding:0 4px;color:#8c7a95;font-size:12px;line-height:1.7}
.profile-care-note svg{width:17px;height:17px;flex-shrink:0;color:#b17b9a}
@media(max-width:1100px){.profile-welcome{grid-template-columns:minmax(0,1fr) 160px;padding:32px}.profile-welcome-orbit{width:155px;height:155px}.profile-shortcuts{gap:10px}.profile-shortcut{padding:18px 14px;gap:10px}.profile-shortcut-arrow{display:none}}
@media(max-width:760px){.profile-welcome{grid-template-columns:1fr;padding:28px 24px;border-radius:18px}.profile-welcome h1{font-size:28px}.profile-welcome h1 span{font-size:21px}.profile-welcome-art{display:none}.profile-shortcuts{grid-template-columns:1fr;gap:10px}.profile-shortcut{padding:18px}.profile-shortcut-arrow{display:block}.profile-care-note{align-items:flex-start}.profile-welcome-copy>.button{display:inline-flex}}
.patient-care-select{display:flex;align-items:flex-end;gap:16px;max-width:680px;margin-top:24px}
.patient-care-select .form-field{flex:1;min-width:0;margin:0}
.patient-care-select .form-field label{display:block;margin-bottom:9px}
.patient-care-select .button{flex-shrink:0}
.patient-care-context{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 24px;padding:16px 20px;border:1px solid #e9e0ed;border-radius:12px;background:#fff;font-size:13px;color:#775a80}
.patient-care-context .text-link{flex-shrink:0}
@media(max-width:600px){.patient-care-select{flex-direction:column;align-items:stretch}.patient-care-context{align-items:flex-start;flex-direction:column;gap:10px}}
.patient-care-context form{display:flex;align-items:center;gap:14px;flex:1;min-width:0;max-width:650px}
.patient-care-context label{flex-shrink:0;font-size:12px}
.patient-care-context select{width:100%;min-width:0}
#main-content[aria-busy="true"] .tabs,#main-content[aria-busy="true"] .panel{opacity:.55;pointer-events:none}
@media(max-width:600px){.patient-care-context form{width:100%;flex-direction:column;align-items:stretch;gap:8px}}

/* Balanced patient attention landing, on desktop and mobile. */
.patient-care-intro{max-width:960px;margin:12px auto 30px;text-align:center}
.patient-care-intro .page-heading{justify-content:center;margin-bottom:0}
.patient-care-intro h1{overflow-wrap:anywhere}
.gineco-app .care-picker.patient-care-picker{max-width:960px;margin:0 auto 28px;padding:36px}
.gineco-app .patient-care-picker .panel-heading{justify-content:center;text-align:center;margin-bottom:28px}
.patient-care-picker .care-options{gap:24px;align-items:stretch}
.patient-care-picker .care-option{flex-direction:column;align-items:center;padding:32px 26px;text-align:center;gap:18px;min-height:245px}
.patient-care-picker .care-option-icon{width:54px;height:54px;border-radius:17px}
.patient-care-picker .care-option-icon svg{width:25px;height:25px}
.patient-care-picker .care-option>span:nth-child(2){align-items:center;width:100%}
.patient-care-picker .care-option-description{max-width:290px;margin:10px auto 24px}
.patient-care-picker .care-option-action{justify-content:center;min-height:34px}
@media(max-width:760px){
 .patient-care-intro{margin:8px auto 24px;padding:0 8px}
 .patient-care-intro h1{font-size:25px;line-height:1.35;letter-spacing:-.5px}
 .patient-care-intro .page-heading .muted{max-width:300px;margin:10px auto 0;line-height:1.8}
 .gineco-app .care-picker.patient-care-picker{padding:24px 18px;border-radius:18px}
 .gineco-app .patient-care-picker .panel-heading{margin-bottom:22px;justify-content:center;align-items:center}
 .patient-care-picker .care-options{gap:16px}
 .patient-care-picker .care-option{min-height:0;padding:26px 20px;gap:14px}
 .patient-care-picker .care-option-description{margin-bottom:16px}
 .gineco-app .app-footer{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;text-align:center;padding:20px 16px 28px;line-height:1.7}
}
.patient-care-intro{text-align:left;max-width:none;margin:0 0 26px}
.patient-care-intro .page-heading{justify-content:space-between}
@media(max-width:760px){
 .patient-care-intro{margin:0 0 24px;padding:0}
 .patient-care-intro .page-heading .muted{max-width:none;margin:7px 0 0}
}

/* Patient agenda: a single clean card per appointment. */
.gineco-app .patient-agenda-note{display:flex;align-items:center;gap:12px;max-width:960px;padding:16px 20px;border:0;border-radius:12px;background:#f0edf6;color:#7c688b;font-size:12px;line-height:1.8;margin-bottom:24px}
.patient-agenda-note svg{width:19px;height:19px;color:#9c7bad}
.gineco-app .patient-agenda-list{max-width:960px;display:grid;gap:16px}
.gineco-app .patient-agenda-list>.patient-control{margin:0;border:1px solid #e8dfec;border-radius:16px;box-shadow:0 4px 18px #73517d06;overflow:hidden;background:#fff}
.gineco-app .patient-agenda-list .patient-control-heading{padding:24px;gap:18px}
.patient-agenda-list .control-calendar{width:56px;height:56px;border-radius:17px;background:#f6e9f0;color:#ae658e}
.patient-agenda-list .control-title{font-size:16px;line-height:1.5;color:#49344f}
.patient-agenda-list .control-visit-date{font-size:13px;color:#887092;margin-top:6px}
.patient-agenda-list .patient-control-toggle{border-color:#e6d8e8;background:#fff;color:#98547c;padding:10px 16px;min-height:42px;border-radius:10px}
.patient-agenda-list .patient-control[open] .patient-control-heading{background:#fdf9fc;border-bottom:1px solid #eee4ef}
.patient-agenda-list .patient-control-content{padding:24px}
@media(max-width:760px){
 .gineco-app .patient-agenda-note{padding:14px 16px;align-items:flex-start;margin-bottom:20px}
 .gineco-app .patient-agenda-list .patient-control-heading{padding:20px;grid-template-columns:44px minmax(0,1fr);gap:14px}
 .gineco-app .patient-agenda-list .control-calendar{width:44px;height:44px;border-radius:13px}
 .patient-agenda-list .control-title{font-size:15px}
 .patient-agenda-list .control-visit-date{font-size:12px;line-height:1.8}
 .gineco-app .patient-agenda-list .patient-control-toggle{grid-column:1/-1;justify-content:center;margin:2px 0 0;width:100%;min-height:44px;background:#fbf6fa}
 .patient-agenda-list .patient-control-content{padding:20px}
}
.patient-quick-group{margin-bottom:30px}
.patient-quick-record{min-width:0}
.patient-quick-context{margin:0 0 9px;padding:0 4px;font-size:12px;line-height:1.7;color:#8d7298;overflow-wrap:anywhere}
.patient-quick-record>.patient-control{margin:0}
.patient-quick-record>.text-link{display:inline-block;margin:10px 4px 4px;min-height:32px;padding:5px 0}

.gineco-app .pregnancy-closure-actions{margin-top:28px;padding-top:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;clear:both}
.pregnancy-closure-buttons{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-shrink:0}
@media(max-width:760px){
 .gineco-app .pregnancy-closure-actions{flex-direction:column;align-items:stretch;gap:16px}
 .pregnancy-closure-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .pregnancy-closure-buttons .button{white-space:normal;min-height:44px}
}
@media(max-width:380px){.pregnancy-closure-buttons{grid-template-columns:1fr}}
.pregnancy-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:10px}
@media(max-width:760px){.pregnancy-header-actions{width:100%;justify-content:flex-start}.pregnancy-header-actions .button{flex:1;white-space:normal;min-height:44px}}

/* Compact attention choices. */
.gineco-app .care-picker.patient-care-picker{max-width:860px;padding:26px 28px}
.gineco-app .patient-care-picker .panel-heading{margin-bottom:20px}
.patient-care-picker .care-options{gap:18px}
.patient-care-picker .care-option{min-height:0;padding:22px 24px;gap:12px;border-radius:13px}
.patient-care-picker .care-option-icon{width:42px;height:42px;border-radius:13px}
.patient-care-picker .care-option-icon svg{width:22px;height:22px}
.patient-care-picker .care-option strong{font-size:14px}
.patient-care-picker .care-option-description{margin:7px auto 14px;line-height:1.7;font-size:12px}
.patient-care-picker .care-option-action{min-height:28px;font-size:11px}
@media(max-width:760px){
 .gineco-app .care-picker.patient-care-picker{padding:22px 18px}
 .patient-care-picker .care-options{gap:12px}
 .patient-care-picker .care-option{padding:20px;gap:10px}
 .patient-care-picker .care-option-description{margin-bottom:10px}
}

/* Keep the attention context and its record in one visual unit. */
.patient-quick-record{background:#fff;border:1px solid #e8dfec;border-radius:15px;overflow:hidden;box-shadow:0 3px 14px #73517d05}
.patient-quick-record .patient-quick-context{margin:0;padding:12px 22px;background:#faf7fc;border-bottom:1px solid #eee6f1;color:#8a7095;font-size:11px;line-height:1.7}
.gineco-app .patient-quick-record>.patient-control{border:0;border-radius:0;box-shadow:none;margin:0;background:#fff}
.gineco-app .patient-quick-record .patient-control-heading{padding:20px 22px}
.patient-quick-footer{border-top:1px solid #f0e9f3;padding:10px 22px;display:flex;justify-content:flex-end}
.patient-quick-footer .text-link{display:inline-flex;align-items:center;min-height:32px;font-size:11px}
@media(max-width:760px){
 .patient-quick-record .patient-quick-context{padding:12px 16px}
 .gineco-app .patient-quick-record .patient-control-heading{padding:18px 16px}
 .patient-quick-footer{padding:10px 16px;justify-content:center}
 .patient-quick-footer .text-link{justify-content:center;min-height:40px;width:100%}
}

.evolution-objective{min-width:0;border:1px solid #e9dfed;border-radius:13px;padding:20px;margin:24px 0}
.evolution-objective legend{padding:0 8px;font-weight:600;color:#73577d;font-size:14px}
.evolution-vitals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.evolution-vital>label{display:block;margin-bottom:8px;font-size:12px;color:#8e7698}
.evolution-measure{display:flex;align-items:center;gap:8px;min-width:0}
.gineco-app .evolution-measure input{min-width:0;width:100%;padding:10px}
.evolution-measure>span{flex-shrink:0;color:#947b9d;font-size:12px}
.evolution-diagnosis{margin:24px 0}
.evolution-diagnosis>label{display:block;margin-bottom:9px;color:#82668e;font-size:13px}
.evolution-diagnosis>p{margin:8px 0;font-size:12px}
[data-cie-results]{max-height:280px;overflow-y:auto;border-radius:10px}
[data-cie-results]:not(:empty){border:1px solid #e9dfed}
[data-cie-results] button{display:block;width:100%;text-align:left;background:#fff;border:0;border-bottom:1px solid #f0eaf3;color:#66506e;padding:12px 14px;font:inherit;font-size:12px;line-height:1.7}
[data-cie-results] button:hover,[data-cie-results] button:focus-visible{background:#f8edf4}
.evolution-note{margin:0 0 24px}
.evolution-note h3{font-size:13px;color:#9b6085;margin-bottom:10px}
.evolution-note p{font-size:13px;line-height:1.9;color:#75617f;overflow-wrap:anywhere}
.evolution-values{display:flex;flex-wrap:wrap;gap:12px;margin:0}
.evolution-values>div{padding:10px 14px;border:1px solid #eee5f1;border-radius:10px;background:#fcf9fd;min-width:95px}
.evolution-values dt{font-size:11px;color:#9a83a3}.evolution-values dd{margin:4px 0 0;font-size:13px;color:#6b5077}
@media(max-width:760px){.evolution-vitals{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.evolution-vital:first-child{grid-column:1/-1}.evolution-objective{padding:16px}.evolution-values{gap:8px}}
.evolution-diagnosis>h3{margin:0 0 18px;color:#73577d;font-size:14px}
.evolution-diagnosis input[type=search]{width:100%}
.cie-diagnoses{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}
.cie-diagnoses:empty{display:none}
.cie-diagnoses>li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid #e7dfed;border-left:3px solid var(--pink);border-radius:8px;background:#fcf8fc;color:#604b62;font-size:13px;overflow-wrap:anywhere}
.evolution-diagnosis [data-cie-results]:not(:empty){margin-bottom:18px}
.patient-care-summary{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.patient-care-summary .cell-subtitle{margin-top:5px}
.patient-care-summary{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 10px;max-width:280px}
.patient-care-summary .tag{padding:6px 10px;line-height:1.4;white-space:nowrap;border-radius:7px}
.patient-care-summary .patient-care-obstetric{background:#eee9f6;color:#8a6ba3}
@media(max-width:760px){.patient-care-summary{gap:7px;min-width:175px}.patient-care-summary .tag{padding:5px 8px}}
.rx-search-status{margin:8px 0 0;color:#907b9c;font-size:11px;line-height:1.8}
.rx-search-results{max-height:270px;overflow-y:auto;border-radius:10px;margin-top:10px;overscroll-behavior:contain}
.rx-search-results:not(:empty){border:1px solid #e6dbea}
.rx-search-results button{display:block;width:100%;padding:13px 16px;text-align:left;font:inherit;font-size:12px;line-height:1.7;color:#715479;background:#fff;border:0;border-bottom:1px solid #eee6f1;min-height:44px}
.rx-search-results button:last-child{border-bottom:0}
.rx-search-results button:hover,.rx-search-results button:focus-visible{background:#f8edf4;color:#945879}
.doctor-create-actions{display:flex;align-items:center;margin-top:24px}
.doctor-access-actions{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:220px}
.doctor-access-actions .clinical-form{margin:0}
.doctor-access-change{max-width:330px;white-space:normal}
.doctor-access-change summary{color:var(--pink-deep);cursor:pointer;font-size:12px;font-weight:600}
.doctor-access-change p{font-size:12px;line-height:1.7;margin:12px 0}
.doctor-access-change .clinical-form{display:grid;gap:16px}
@media(max-width:760px){.doctor-create-actions .button{width:100%;white-space:normal}}
.calendar-settings{margin-bottom:24px}
.calendar-settings>p{margin:14px 0;font-size:12px;line-height:1.9}
.calendar-settings>.panel-heading{padding:0 0 18px;gap:16px;flex-wrap:wrap}
.calendar-settings>.panel-heading p{margin-top:6px;font-size:12px}
.calendar-connection-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap;margin:18px 0}
.calendar-settings .calendar-sync-help{margin-top:22px;padding-top:18px;border-top:1px solid #eee6f1}
.calendar-settings summary{cursor:pointer;font-weight:600;color:#7b597f}
.calendar-callback{display:block;padding:14px;margin:18px 0;border-radius:9px;background:#f8f4fb;font-size:11px;color:#7e648b;overflow-wrap:anywhere;user-select:all}

.gineco-app .staff-control-actions{align-items:center}
.gineco-app .staff-control-actions>.clinical-form{display:inline-flex;align-items:center;margin:0;padding:0;width:auto;flex:0 0 auto}
.gineco-app .staff-control-actions>.clinical-form .button,.gineco-app .staff-control-actions>.button{margin:0;min-height:42px}
.appointment-form-buttons{display:flex;align-items:center;justify-content:flex-end;gap:12px}
.gineco-app .appointment-form-actions{align-items:center;gap:20px;margin-top:28px}
@media(max-width:760px){
 .gineco-app .staff-control-actions>.clinical-form{display:flex;width:100%}
 .gineco-app .appointment-form-actions{flex-direction:column;align-items:stretch;gap:16px}
 .appointment-form-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .appointment-form-buttons .button{min-height:44px;white-space:normal}
}

/* Vivid rose palette shared by administration, clinical care and patient access. */
.gineco-app .primary,
.gineco-app .login-submit,
.gineco-app .password-change-form .button{
 background:var(--pink);border-color:var(--pink);color:#fff;
 box-shadow:0 5px 14px #d72f7826;
}
.gineco-app .primary:hover,
.gineco-app .login-submit:hover,
.gineco-app .password-change-form .button:hover{
 background:var(--pink-deep);border-color:var(--pink-deep);
}
.gineco-app :is(a,button,summary):focus-visible{outline-color:var(--pink)}
.gineco-app .secondary{color:#614256;border-color:#dbaec4}
.gineco-app .secondary:hover{background:var(--pink-soft);border-color:var(--pink)}
.gineco-app :is(.text-link,.banner-link,.table-action,.care-option-action,.login-options a,
 .record-card summary,.calendar-settings summary,.patient-control-toggle){color:var(--pink-deep)}
.gineco-app .nav-item{color:#6c586c}
.gineco-app .nav-item:hover{background:var(--pink-soft);color:var(--pink-deep)}
.gineco-app .nav-item.active{background:var(--pink-tint);color:var(--pink-deep);box-shadow:inset 3px 0 var(--pink)}
.gineco-app .tabs a{color:#79647a}
.gineco-app .tabs a.selected{color:var(--pink-deep);border-bottom:3px solid var(--pink)}
.gineco-app :is(.brand-prefix,.eyebrow,.login-eyebrow,.profile-welcome-eyebrow){color:var(--pink-deep)}
.gineco-app :is(.brand small,.nav-label,.breadcrumb,.account small,.panel-heading p,
 .metric-top>span:first-child,.metric>small,.person-cell small,.form-field small,
 .care-note p,.care-option-description,.care-picker-note,.app-footer,
 .login-intro,.login-help p,.login-footer,.login-footer span,.login-role-note p,
 .password-card>.muted,.password-change-form small,.password-session-note,
 .profile-welcome-copy>p,.profile-welcome-signature span,.profile-care-note,
 .patient-agenda-list .control-visit-date,.empty-state p,.patient-summary span,.data-list dt){color:var(--muted)}
.gineco-app :is(.data-list dd,.patient-summary strong,.empty-state h3){color:var(--ink)}
.gineco-app :is(.form-field label,.login-form label,.login-options label,.login-help strong){color:#60495f}
.gineco-app :is(input,textarea)::placeholder{color:#826d80;opacity:1}
.gineco-app :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border-color:#bd7c9d}
.gineco-app :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea):focus{
 border-color:var(--pink);outline:2px solid #d72f7830;outline-offset:1px;
}
.gineco-app input{accent-color:var(--pink)}
.gineco-app .clinical-form :is(input[type=checkbox],input[type=radio]):checked{background-color:var(--pink);border-color:var(--pink)}
.gineco-app .clinical-form :is(.mark-options label,.check-label):is(:hover,:has(input:checked)){
 background:var(--pink-tint);color:#863153;
}
.gineco-app .ficha-section{
 --ficha-border:#e8bfd3;--ficha-heading:#873255;--ficha-surface:#fffbfd;
 --ficha-header:#ffeaf3;--ficha-accent:var(--pink-deep);
}
.gineco-app .welcome-banner{
 background:linear-gradient(110deg,#ffe0ee 0%,#fff0f7 58%,#f1e5fc 100%);border-color:var(--pink-border);
}
.gineco-app .welcome-banner h2{color:#64304f}
.gineco-app .welcome-banner h2 span{color:var(--pink-deep)}
.gineco-app .welcome-banner p{color:#73516b}
.gineco-app .banner-tag{color:#8b3159;background:#fff9}
.gineco-app .banner-tag .tiny-dot{background:var(--pink)}
.gineco-app :is(.pink,.care-option-icon,.login-form-icon,.login-art-heart,
 .agenda-detail-icon,.patient-agenda-list .control-calendar,.empty-icon,.art-heart,.patient-summary svg){background:var(--pink-tint);color:var(--pink-deep)}
.gineco-app :is(.care-note,.login-role-note,.patient-agenda-note){background:var(--pink-soft);border-color:var(--pink-border)}
.gineco-app :is(.care-note strong,.care-icon,.login-role-note svg,.profile-care-note svg){color:var(--pink-deep)}
.gineco-app .care-icon{background:var(--pink-tint)}
.gineco-app .care-option:hover{background:var(--pink-soft);border-color:var(--pink)}
.gineco-app .agenda-detail-header{background:var(--pink-soft);border-color:var(--pink-border)}
.gineco-app .agenda-detail-status:not(.status-arrived):not(.status-attended):not(.status-no_show):not(.status-cancelled){background:var(--pink-tint);color:#8b3159}
.gineco-app .patient-directory-table .table-action{background:var(--pink-soft);border-color:var(--pink-border)}
.gineco-app .patient-agenda-list .patient-control-toggle{color:var(--pink-deep);background:var(--pink-soft);border-color:var(--pink-border)}
.gineco-app .profile-welcome{background:linear-gradient(115deg,#fff3f9 0%,#ffe0ee 60%,#f0e2fb 100%);border-color:var(--pink-border)}
.gineco-app .profile-welcome h1{color:#61304d}
.gineco-app .profile-welcome h1 span{color:var(--pink-deep)}
.gineco-app :is(.profile-welcome-signature,.profile-welcome-art-caption){color:#89345c}
.gineco-app .profile-welcome-heart{color:var(--pink);box-shadow:0 16px 40px #d72f781a}
.gineco-app .login-story{background:linear-gradient(140deg,#ffe0ee 0%,#fff0f7 55%,#f0e2fb 100%)}
.gineco-app .login-story h1{color:#61304d}
.gineco-app .login-story h1 span{color:var(--pink-deep)}
.gineco-app :is(.login-story-content>p,.login-story-footer){color:#75506b}
.gineco-app :is(.login-art-title,.login-art-note){color:#8b3159}
.gineco-app .login-pulse{stroke:var(--pink)}
.gineco-app .password-shell{background:linear-gradient(145deg,#fff0f7,#f3e6fc)}

/* Shared action groups stay together instead of spreading across the heading. */
.page-heading-copy { flex: 1 1 260px; min-width: 0; }
.page-heading-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; flex: 0 1 auto; }
.page-heading-actions .button { min-height: 44px; white-space: normal; }
.patient-care-intro .page-heading { align-items: center; gap: 20px; }
.gineco-app .patient-care-intro { max-width: 960px; margin: 0 auto 24px; }
.gineco-app .care-picker.patient-care-picker { max-width: 960px; }

@media (max-width: 1050px) {
 .page-heading { flex-wrap: wrap; }
 .page-heading-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
 .gineco-app .page-heading { gap: 16px; }
 .page-heading-copy { flex-basis: 100%; }
 .page-heading-actions { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
 .page-heading-actions .button { width: 100%; padding: 11px 12px; font-size: 13px; }
 .gineco-app .patient-care-intro { padding: 0; }
 .gineco-app .main-content { padding: 20px 16px 28px; }
 .gineco-app .main-content :is(.panel-heading, .section-heading) { gap: 12px; flex-wrap: wrap; }
 .gineco-app .main-content :is(.panel-heading, .section-heading) > div { min-width: 0; }
 .gineco-app .main-content :is(.form-panel, .detail-panel, .record-card) { padding: 20px 16px; }
 .gineco-app .main-content :is(.form-field, fieldset, .search-form, .search-input, .data-list > div) { min-width: 0; }
 .gineco-app .main-content :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]), select, textarea),
 .gineco-app .login-form input:not([type=checkbox]):not([type=hidden]) { font-size: 16px; min-height: 46px; }
 .gineco-app .main-content :is(input[type=date], input[type=datetime-local], select) { width: 100%; min-width: 0; }
 .gineco-app .main-content textarea { width: 100%; resize: vertical; }
 .gineco-app .main-content input[type=file] { width: 100%; font-size: 13px; overflow: hidden; }
 .gineco-app .main-content :is(.button, .text-link, .table-action) { white-space: normal; overflow-wrap: anywhere; }
 .gineco-app .main-content :is(.text-link, .table-action) { display: inline-flex; align-items: center; min-height: 44px; }
 .gineco-app .main-content .data-list dd { overflow-wrap: anywhere; }
 .gineco-app .main-content .tabs { overscroll-behavior-x: contain; scroll-padding-inline: 12px; }
 .gineco-app .tabs .tab-disabled { flex: 0 0 auto; padding: 10px 12px; min-height: 44px; font-size: 13px; }
 .gineco-app .patient-care-context { padding: 16px; gap: 12px; flex-direction: column; align-items: stretch; }
 .gineco-app .patient-care-context form { width: 100%; max-width: none; flex-direction: column; align-items: stretch; gap: 8px; }
 .gineco-app .patient-care-context .text-link { align-self: flex-start; }
 .gineco-app .care-options { grid-template-columns: minmax(0, 1fr); }
 .gineco-app .patient-care-picker .care-option { min-height: 0; padding: 22px 18px; }
 .gineco-app .patient-care-picker .care-option strong { font-size: 16px; }
 .gineco-app .patient-care-picker .care-option-description { font-size: 13px; }
 .gineco-app .main-content .rx-item { margin: 20px 0; padding: 16px 12px; }
 .gineco-app .main-content :is(.rx-item-actions, .agenda-detail-actions) { gap: 10px; }
 .gineco-app .main-content :is(.rx-added-items .text-link, .lab-exam-results button, .rx-search-results button) { min-height: 44px; font-size: 14px; }
 .gineco-app .main-content :is(.agenda-detail-actions > .clinical-form, .agenda-detail-actions > .button) { flex: 1 1 180px; }
 .gineco-app .agenda-detail-actions .button { width: 100%; }
 .gineco-app .agenda-detail-meta { gap: 12px 20px; }
 .gineco-app .agenda-detail-meta > div { min-width: 0; flex: 1 1 140px; }
 .gineco-app .main-content .form-actions { gap: 14px; }
 .gineco-app .main-content .form-actions > div { min-width: 0; max-width: 100%; }
 .gineco-app .topbar-left { min-width: 0; }
 .gineco-app .breadcrumb { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .gineco-app .account, .gineco-app .mobile-menu { flex-shrink: 0; }
 .gineco-app .doctor-directory-table,
 .gineco-app .doctor-directory-table tbody { display: block; width: 100%; min-width: 0; }
 .gineco-app .doctor-directory-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
 .gineco-app .doctor-directory-table tr { display: grid; gap: 12px; padding: 18px 16px; border-top: 1px solid var(--line); }
 .gineco-app .doctor-directory-table td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
 .gineco-app .doctor-directory-table td:first-child { font-weight: 600; font-size: 15px; }
 .gineco-app .doctor-directory-table td:nth-child(2)::before { content: 'Usuario'; }
 .gineco-app .doctor-directory-table td:nth-child(3)::before { content: 'Correo'; }
 .gineco-app .doctor-directory-table td:nth-child(2)::before,
 .gineco-app .doctor-directory-table td:nth-child(3)::before { display: block; color: var(--muted); font-size: 12px; }
 .gineco-app .doctor-access-actions { min-width: 0; width: 100%; }
 .gineco-app .doctor-access-actions > .clinical-form,
 .gineco-app .doctor-access-change,
 .gineco-app .doctor-access-actions .button { width: 100%; max-width: none; }
 .gineco-app .doctor-access-change summary { min-height: 44px; padding-block: 10px; }
 .gineco-app .sidebar { max-width: calc(100vw - 48px); padding-bottom: max(22px, env(safe-area-inset-bottom)); }
}
@media (max-width: 380px) {
 .page-heading-actions { grid-template-columns: minmax(0, 1fr); }
 .gineco-app .main-content { padding-inline: 12px; }
 .gineco-app .appointment-form-buttons { grid-template-columns: minmax(0, 1fr); }
}

/* Compact access layout, with the form kept in view on small screens. */
.gineco-app .login-shell{min-height:100vh;min-height:100svh;grid-template-columns:1fr 1fr}
.gineco-app .login-story{padding:30px clamp(28px,4vw,64px) 24px}
.gineco-app .login-brand{min-height:110px;gap:14px}
.gineco-app .login-brand .brand-maternity{width:62px;flex-basis:62px}
.gineco-app .login-brand .brand-name{font-size:28px}
.gineco-app .login-story-content{margin:32px auto 20px;max-width:440px}
.gineco-app .login-story h1{font-size:clamp(30px,3.2vw,42px);margin:14px 0;line-height:1.2}
.gineco-app .login-story-content>p{line-height:1.75;max-width:360px}
.gineco-app .login-illustration{height:240px;margin-top:10px;transform:scale(.84);transform-origin:top center;margin-bottom:-35px}
.gineco-app .login-form-side{padding:36px clamp(28px,4vw,64px) 24px;gap:26px}
.gineco-app .login-form-wrap{max-width:390px;margin:auto}
.gineco-app .login-form-icon{width:44px;height:44px;margin-bottom:18px}
.gineco-app .login-form-wrap>h2{font-size:28px;line-height:1.25}
.gineco-app .login-intro{margin:8px 0 24px;font-size:13px}
.gineco-app .login-form{gap:18px}
.gineco-app .login-form .form-field{gap:7px}
.gineco-app .login-options a{font-size:12px;min-height:32px;display:inline-flex;align-items:center}
.gineco-app .login-options label{min-height:32px;font-size:12px}
.gineco-app .login-role-note{margin-top:20px;padding:12px 14px}
.gineco-app .login-footer{margin-top:0;line-height:1.8}
@media(max-width:760px){
 .gineco-app .login-shell{grid-template-columns:minmax(0,1fr)}
 .gineco-app .login-story{padding:20px 24px 22px}
 .gineco-app .login-brand{min-height:76px;width:auto;gap:12px}
 .gineco-app .login-brand .brand-maternity{width:44px;flex-basis:44px}
 .gineco-app .login-brand .brand-name{font-size:23px}
 .gineco-app .login-story-content{margin:16px 0 0;padding:0;max-width:none}
 .gineco-app .login-story h1{font-size:24px;line-height:1.25;letter-spacing:-.6px;margin:8px 0 0}
 .gineco-app .login-story h1 br{display:none}
 .gineco-app .login-story h1>span{display:block;font-size:21px;margin-top:4px}
 .gineco-app .login-illustration{display:none}
 .gineco-app .login-form-side{padding:28px 24px 20px;min-height:0;gap:26px;justify-content:flex-start}
 .gineco-app .login-form-wrap{max-width:440px;margin:0 auto}
 .gineco-app .login-form-wrap>.eyebrow{display:none}
 .gineco-app .login-form-wrap>h2{font-size:25px}
 .gineco-app .login-intro{margin-bottom:22px}
 .gineco-app .login-form input:not([type=checkbox]):not([type=hidden]){font-size:16px;min-height:48px}
 .gineco-app .login-submit{min-height:48px;font-size:14px}
 .gineco-app .login-options{flex-wrap:wrap;gap:4px 12px}
 .gineco-app .login-role-note{margin-top:18px}
 .gineco-app .login-footer{font-size:10px}
}
@media(max-width:380px){.gineco-app .login-story{padding:18px 20px}.gineco-app .login-form-side{padding:24px 20px 18px}.gineco-app .login-story h1{font-size:22px}.gineco-app .login-story h1>span{font-size:19px}}
