:root{--ecg-red:#b01e35;--ecg-dark:#241b1e;--ecg-muted:#766d70;--ecg-line:#e4dadd;--ecg-soft:#f8f4f5;--ecg-green:#176b52;--ecg-amber:#a66a13}.ecg-phrase-list article.is-inactive{opacity:.58;background:#f5f2f3}.ecg-phrase-list footer{flex-wrap:wrap}.ecg-app{min-height:100vh;color:var(--ecg-dark);background:#f3f0f1;font-family:Inter,Arial,sans-serif}.ecg-app button,.ecg-app input,.ecg-app select,.ecg-app textarea{font:inherit}.ecg-sidebar{z-index:30;color:#fff;background:#271c20;flex-direction:column;width:248px;padding:26px 18px;display:flex;position:fixed;inset:0 auto 0 0}.ecg-sidebar>a{padding:0 10px 24px;text-decoration:none}.ecg-sidebar nav{gap:6px;display:grid}.ecg-sidebar nav a,.ecg-sidebar nav button{color:#d7cdd0;text-align:left;background:0 0;border:0;border-radius:10px;align-items:center;gap:11px;min-height:46px;padding:0 13px;font-size:14px;text-decoration:none;display:flex}.ecg-sidebar nav svg{width:20px;height:20px}.ecg-sidebar nav .is-active{color:#fff;background:#b01e35}.ecg-profile{border-top:1px solid #47373c;align-items:center;gap:10px;margin-top:auto;padding:15px 10px 0;display:flex}.ecg-profile>span{background:#b01e35;border-radius:50%;place-items:center;width:36px;height:36px;font-weight:800;display:grid}.ecg-profile div{flex-direction:column;min-width:0;display:flex}.ecg-profile strong{font-size:12px}.ecg-profile small{color:#a99ca0;text-overflow:ellipsis;font-size:10px;overflow:hidden}.ecg-workspace{min-height:100vh;margin-left:248px}.ecg-topbar{border-bottom:1px solid var(--ecg-line);background:#fff;justify-content:space-between;align-items:center;min-height:112px;padding:23px clamp(24px,4vw,54px);display:flex}.ecg-topbar a{color:var(--ecg-red);font-size:12px;font-weight:800;text-decoration:none}.ecg-topbar p{color:var(--ecg-red);letter-spacing:.13em;margin:8px 0 2px;font-size:10px;font-weight:900}.ecg-topbar h1{margin:0;font:600 30px Georgia,serif}.ecg-topbar>div:last-child{gap:8px;display:flex}.ecg-topbar button,.ecg-final-actions button{color:#6a2633;background:#fff;border:1px solid #d8c9cd;border-radius:9px;min-height:42px;padding:0 15px;font-size:12px;font-weight:800}.ecg-stepbar{border-bottom:1px solid var(--ecg-line);background:#fff;grid-template-columns:repeat(4,1fr);padding:0 clamp(24px,4vw,54px);display:grid}.ecg-stepbar button{color:#91878a;background:0 0;border:0;border-bottom:3px solid #0000;justify-content:center;align-items:center;gap:9px;min-height:68px;display:flex}.ecg-stepbar button span{border:1px solid #ddd2d5;border-radius:50%;place-items:center;width:27px;height:27px;font-size:11px;display:grid}.ecg-stepbar button b{font-size:12px}.ecg-stepbar .is-active{border-color:var(--ecg-red);color:var(--ecg-red)}.ecg-stepbar .is-active span,.ecg-stepbar .is-done span{border-color:var(--ecg-red);color:#fff;background:var(--ecg-red)}.ecg-toast{z-index:100;color:#fff;background:#37292e;border:0;border-radius:10px;max-width:460px;padding:13px 16px;position:fixed;top:24px;right:24px;box-shadow:0 12px 36px #26141a40}.ecg-toast span{margin-left:14px}.ecg-layout{grid-template-columns:minmax(0,1fr) 310px;align-items:start;gap:20px;width:min(1420px,100% - 48px);margin:26px auto 60px;display:grid}.ecg-main-panel,.ecg-check{border:1px solid var(--ecg-line);background:#fff;border-radius:17px;box-shadow:0 10px 32px #4d29320a}.ecg-section{padding:28px}.ecg-section-title{border-bottom:1px solid var(--ecg-line);padding-bottom:22px}.ecg-section-title small{color:var(--ecg-red);letter-spacing:.12em;font-size:10px;font-weight:900}.ecg-section-title h2{margin:5px 0;font:600 27px Georgia,serif}.ecg-section-title p{color:var(--ecg-muted);margin:0;font-size:13px}.ecg-form-grid{grid-template-columns:repeat(3,1fr);gap:16px;margin-top:24px;display:grid}.ecg-form-grid label,.ecg-polarity-grid label{flex-direction:column;gap:7px;display:flex}.ecg-form-grid label>span,.ecg-polarity-grid label>span,.ecg-field>span,.ecg-editor-grid label>span{color:#5e5558;font-size:12px;font-weight:800}.ecg-form-grid .is-wide{grid-column:span 2}.ecg-form-grid input,.ecg-form-grid select,.ecg-polarity-grid select,.ecg-phrase-manager>input,.ecg-new-phrase input,.ecg-new-phrase select{background:#fff;border:1px solid #dbd0d3;border-radius:9px;outline:none;height:46px;padding:0 12px}.ecg-toggle{align-items:center;gap:9px;margin-top:18px;font-size:13px;font-weight:700;display:flex}.ecg-toggle input{width:18px;height:18px;accent-color:var(--ecg-red)}.ecg-doctor{background:var(--ecg-soft);border:1px solid #eadfe2;border-radius:11px;flex-direction:column;margin-top:20px;padding:17px;display:flex}.ecg-doctor>span{color:var(--ecg-red);letter-spacing:.1em;font-size:9px;font-weight:900}.ecg-doctor strong{margin-top:5px}.ecg-doctor small,.ecg-doctor p{color:var(--ecg-muted);margin:3px 0 0;font-size:11px}.ecg-mode-choice{grid-template-columns:1fr 1fr;gap:12px;margin-top:20px;display:grid}.ecg-mode-choice button{background:#fff;border:1px solid #ddd2d5;border-radius:12px;flex-direction:column;align-items:flex-start;min-height:86px;padding:16px;display:flex}.ecg-mode-choice button b{font:600 19px Georgia,serif}.ecg-mode-choice button span{color:var(--ecg-muted);margin-top:5px;font-size:11px}.ecg-mode-choice .is-active,.ecg-template-grid .is-active{border-color:var(--ecg-red);box-shadow:inset 0 0 0 1px var(--ecg-red);background:#fff1f3}.ecg-tabs,.ecg-mode-tabs{background:#f2edef;border-radius:10px;gap:6px;margin:22px 0;padding:5px;display:flex}.ecg-tabs button,.ecg-mode-tabs button{color:#766d70;background:0 0;border:0;border-radius:8px;flex:1;min-height:40px;font-size:12px;font-weight:800}.ecg-tabs .is-active,.ecg-mode-tabs .is-active{color:#fff;background:var(--ecg-red)}.ecg-measure-grid{grid-template-columns:repeat(3,1fr);gap:16px;display:grid}.ecg-measure-grid.two{grid-template-columns:repeat(2,1fr)}.ecg-measure-grid.three{grid-template-columns:repeat(3,1fr)}.ecg-field{flex-direction:column;gap:7px;display:flex}.ecg-field>div{border:1px solid #dbd0d3;border-radius:9px;height:44px;display:flex;overflow:hidden}.ecg-field input{border:0;outline:0;width:100%;min-width:0;padding:0 11px}.ecg-field b{color:#776d70;background:#f7f3f4;border-left:1px solid #e3dadd;place-items:center;min-width:40px;font-size:11px;display:grid}.ecg-inline-status{margin-top:6px;font-size:10px;display:block}.is-normal{color:var(--ecg-green)}.is-warning{color:var(--ecg-amber)}.is-abnormal{color:var(--ecg-red)}.is-neutral{color:var(--ecg-muted)}.ecg-qtc-grid{grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px;display:grid}.ecg-result{background:#fff;border:1px solid #e2dadd;border-left:4px solid #c7bfc1;border-radius:10px;flex-direction:column;justify-content:space-between;gap:10px;min-height:90px;padding:14px;display:flex}.ecg-result.is-normal{border-left-color:var(--ecg-green)}.ecg-result.is-warning{border-left-color:#d49325}.ecg-result.is-abnormal{border-left-color:var(--ecg-red)}.ecg-result div{flex-direction:column;display:flex}.ecg-result span{color:#6d6366;text-transform:uppercase;font-size:10px;font-weight:900}.ecg-result strong{color:var(--ecg-dark);margin-top:4px;font-size:16px}.ecg-result small{margin-top:4px;font-size:10px}.ecg-result button,.ecg-wide-add,.ecg-add-row button{color:var(--ecg-red);background:0 0;border:0;align-self:flex-start;font-size:10px;font-weight:900}.ecg-alert{color:#6c4d18;background:#fff8ea;border-left:3px solid #d49325;padding:12px 14px;font-size:12px;line-height:1.5}.ecg-subcard{background:#fbf8f9;border:1px solid #e5dcde;border-radius:12px;margin-top:18px;padding:18px}.ecg-subcard h3{margin:0;font:600 19px Georgia,serif}.ecg-subcard>p{color:var(--ecg-muted);font-size:11px;line-height:1.5}.ecg-add-row{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.ecg-add-row button,.ecg-wide-add{border:1px solid #d8b8bf;border-radius:7px;min-height:36px;padding:0 10px}.ecg-add-row button:disabled{opacity:.35}.ecg-polarity-grid{grid-template-columns:repeat(3,1fr);gap:12px;margin:15px 0;display:grid}.ecg-calc-columns{grid-template-columns:1fr 1fr;gap:14px;display:grid}.ecg-calc-columns .ecg-subcard{margin-top:0}.ecg-checklist{gap:8px;margin:13px 0;display:grid}.ecg-checklist label{align-items:flex-start;gap:8px;font-size:11px;display:flex}.ecg-checklist input{accent-color:var(--ecg-red)}.ecg-template-grid{grid-template-columns:repeat(2,1fr);gap:10px;display:grid}.ecg-template-grid button{text-align:left;background:#fff;border:1px solid #ded4d7;border-radius:11px;flex-direction:column;align-items:flex-start;min-height:100px;padding:15px;display:flex}.ecg-template-grid strong{font:600 17px Georgia,serif}.ecg-template-grid span{color:var(--ecg-muted);margin-top:7px;font-size:10px}.ecg-sequential{gap:12px;display:grid}.ecg-sequential>section{border:1px solid #e5dcde;border-radius:11px;overflow:hidden}.ecg-sequential section>header{background:#f8f4f5;justify-content:space-between;align-items:center;padding:12px 14px;display:flex}.ecg-sequential h3{margin:0;font:600 17px Georgia,serif}.ecg-sequential header span{color:var(--ecg-muted);font-size:9px}.ecg-sequential section>div{grid-template-columns:repeat(2,1fr);gap:6px;padding:8px;display:grid}.ecg-sequential section>div>button{text-align:left;background:#fff;border:1px solid #e4dcde;border-radius:8px;align-items:flex-start;gap:9px;min-height:67px;padding:10px;display:flex}.ecg-sequential section>div>button>b{color:#fff;background:#c7bfc1;border-radius:50%;flex:none;place-items:center;width:22px;height:22px;display:grid}.ecg-sequential section>div>button span{flex-direction:column;display:flex}.ecg-sequential section>div>button strong{font-size:11px}.ecg-sequential section>div>button small{color:var(--ecg-muted);margin-top:3px;font-size:9px;line-height:1.35}.ecg-sequential section>div>button.is-active{border-color:var(--ecg-red);background:#fff1f3}.ecg-sequential section>div>button.is-active>b{background:var(--ecg-red)}.ecg-compose{color:#fff;background:var(--ecg-red);border:0;border-radius:9px;min-height:43px;font-weight:800}.ecg-editor-grid{gap:13px;margin-top:20px;display:grid}.ecg-editor-grid label{flex-direction:column;gap:7px;display:flex}.ecg-editor-grid textarea,.ecg-review-report textarea,.ecg-new-phrase textarea{resize:vertical;border:1px solid #dcd2d5;border-radius:9px;min-height:130px;padding:13px;font:14px/1.55 Arial,sans-serif}.ecg-editor-grid label:first-child textarea{min-height:280px}.ecg-review-meta{grid-template-columns:1.3fr 1.3fr .7fr;gap:12px;display:grid}.ecg-review-meta>div{border:1px solid #e2d9db;border-radius:10px;flex-direction:column;padding:15px;display:flex}.ecg-review-meta span{color:var(--ecg-red);font-size:9px;font-weight:900}.ecg-review-meta strong{margin-top:5px}.ecg-review-meta small{color:var(--ecg-muted);margin-top:3px;font-size:10px}.ecg-review-meta select{border:1px solid #ddd;border-radius:6px;height:34px;margin-top:5px}.ecg-review-report{border:1px solid #e2d9db;border-radius:11px;margin-top:18px;padding:19px}.ecg-review-report h3{letter-spacing:.08em;font-size:11px}.ecg-review-report textarea{width:100%;min-height:130px}.ecg-final-actions{flex-wrap:wrap;gap:8px;margin-top:18px;display:flex}.ecg-final-actions .is-primary,.ecg-nav-actions .is-primary{border-color:var(--ecg-red);color:#fff;background:var(--ecg-red)}.ecg-nav-actions{border-top:1px solid var(--ecg-line);justify-content:space-between;align-items:center;min-height:66px;padding:12px 22px;display:flex}.ecg-nav-actions button{background:#fff;border:1px solid #d9cdd0;border-radius:8px;min-height:40px;padding:0 15px;font-size:11px;font-weight:800}.ecg-nav-actions button:disabled{opacity:.35}.ecg-nav-actions span{color:var(--ecg-muted);font-size:10px}.ecg-check{position:sticky;top:20px;overflow:hidden}.ecg-check>header{border-bottom:1px solid var(--ecg-line);justify-content:space-between;align-items:center;padding:17px;display:flex}.ecg-check header small{color:var(--ecg-red);letter-spacing:.1em;font-size:8px;font-weight:900}.ecg-check h2{margin:3px 0 0;font:600 20px Georgia,serif}.ecg-check header button{background:#fff;border:1px solid #ddd;border-radius:50%;width:30px;height:30px}.ecg-check>div{gap:8px;padding:12px;display:grid}.ecg-check .ecg-result{min-height:67px;padding:11px}.ecg-check>div>p{color:var(--ecg-muted);margin:5px;font-size:9px;line-height:1.5}.ecg-loading{min-height:360px;color:var(--ecg-muted);place-items:center;display:grid}.ecg-modal-backdrop{z-index:200;background:#211619c9;place-items:center;padding:25px;display:grid;position:fixed;inset:0}.ecg-modal{background:#fff;border-radius:16px;width:min(720px,100%);max-height:calc(100vh - 50px);overflow:auto;box-shadow:0 28px 80px #0005}.ecg-modal.is-wide{width:min(1080px,100%)}.ecg-modal>header{z-index:2;border-bottom:1px solid var(--ecg-line);background:#fff;justify-content:space-between;align-items:center;padding:18px 21px;display:flex;position:sticky;top:0}.ecg-modal h2{margin:0;font:600 23px Georgia,serif}.ecg-modal>header button{background:#f2edef;border:0;border-radius:50%;width:38px;height:38px;font-size:24px}.ecg-reference{grid-template-columns:1fr 1fr;gap:24px;padding:22px;display:grid}.ecg-reference table{border-collapse:collapse;width:100%}.ecg-reference th,.ecg-reference td{text-align:left;border-bottom:1px solid #eee;padding:10px;font-size:12px}.ecg-reference div{color:#5f5558;font-size:13px;line-height:1.6}.ecg-reference h3{color:var(--ecg-dark);font:600 18px Georgia,serif}.ecg-phrase-manager{padding:18px}.ecg-phrase-manager>input{width:100%}.ecg-new-phrase{background:#f9f6f7;border:1px solid #e3dadd;border-radius:10px;grid-template-columns:1fr 240px;gap:9px;margin-top:12px;padding:14px;display:grid}.ecg-new-phrase textarea{grid-column:1/-1;min-height:100px}.ecg-new-phrase button{color:#fff;background:var(--ecg-red);border:0;border-radius:8px;grid-column:2;min-height:40px;font-weight:800}.ecg-phrase-list{grid-template-columns:repeat(2,1fr);gap:9px;margin-top:14px;display:grid}.ecg-phrase-list article{border:1px solid #e3dadd;border-radius:10px;flex-direction:column;padding:13px;display:flex}.ecg-phrase-list article>span{color:var(--ecg-red);text-transform:uppercase;font-size:8px;font-weight:900}.ecg-phrase-list article>strong{margin-top:5px;font-size:12px}.ecg-phrase-list article>p{color:var(--ecg-muted);font-size:10px;line-height:1.45}.ecg-phrase-list footer{gap:5px;margin-top:auto;display:flex}.ecg-phrase-list footer button{background:#fff;border:1px solid #ded2d5;border-radius:6px;min-height:31px;padding:0 9px;font-size:9px;font-weight:800}.ecg-history{gap:8px;padding:18px;display:grid}.ecg-history article{border:1px solid #e2d9db;border-radius:10px;justify-content:space-between;align-items:center;padding:14px;display:flex}.ecg-history article div{flex-direction:column;display:flex}.ecg-history span{color:var(--ecg-red);font-size:9px;font-weight:900}.ecg-history strong{margin-top:3px}.ecg-history p{color:var(--ecg-muted);margin:5px 0 0;font-size:11px}.ecg-history button{color:#fff;background:var(--ecg-red);border:0;border-radius:7px;min-height:35px;padding:0 12px;font-weight:800}.ecg-print-document{display:none}.ecg-clinic-field{flex-direction:column;gap:7px;display:flex}.ecg-clinic-field>span{color:#5e5558;font-size:12px;font-weight:800}.ecg-clinic-field>div{grid-template-columns:minmax(0,1fr) auto;gap:8px;display:grid}.ecg-clinic-field select{background:#fff;border:1px solid #dbd0d3;border-radius:9px;height:46px;padding:0 12px}.ecg-clinic-field button,.ecg-clinic-form-actions button{color:#fff;background:var(--ecg-red);border:0;border-radius:9px;min-height:46px;padding:0 14px;font-weight:800}.ecg-clinic-field>small{color:var(--ecg-muted);font-size:10px}.ecg-clinic-manager{grid-template-columns:minmax(300px,.8fr) minmax(420px,1.2fr);gap:20px;padding:20px;display:grid}.ecg-clinic-manager h3{margin:0 0 14px;font:600 19px Georgia,serif}.ecg-clinic-form,.ecg-clinic-list{border:1px solid var(--ecg-line);border-radius:12px;padding:18px}.ecg-clinic-form>label,.ecg-clinic-form>div>label{flex-direction:column;gap:6px;display:flex}.ecg-clinic-form>div:not(.ecg-clinic-form-actions){grid-template-columns:1fr 1fr;gap:10px;display:grid}.ecg-clinic-form label+label,.ecg-clinic-form>div+label,.ecg-clinic-form>label+div{margin-top:10px}.ecg-clinic-form label>span{color:#5e5558;font-size:11px;font-weight:800}.ecg-clinic-form input:not([type=file]){border:1px solid #dbd0d3;border-radius:8px;height:43px;padding:0 11px}.ecg-logo-input{background:#fbf8f9;border:1px dashed #d8c8cc;border-radius:8px;margin-top:12px;padding:12px}.ecg-logo-input input{margin-top:4px}.ecg-logo-input small{color:var(--ecg-muted);font-size:9px}.ecg-clinic-form-actions{gap:8px;grid-template-columns:none!important;margin-top:14px!important;display:flex!important}.ecg-clinic-form-actions .is-muted{color:#6b5f62;background:#eee8ea}.ecg-clinic-list{flex-direction:column;gap:8px;display:flex}.ecg-clinic-list h3{margin-bottom:6px}.ecg-clinic-list article{border:1px solid #e5dcde;border-radius:9px;grid-template-columns:42px minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:10px;display:grid}.ecg-clinic-list article.is-selected{border-color:var(--ecg-red);background:#fff4f6}.ecg-clinic-list article>img,.ecg-clinic-list article>span{object-fit:contain;border-radius:7px;width:42px;height:42px}.ecg-clinic-list article>span{color:#fff;background:var(--ecg-red);place-items:center;font-size:10px;font-weight:900;display:grid}.ecg-clinic-list article>div{flex-direction:column;min-width:0;display:flex}.ecg-clinic-list article strong{font-size:11px}.ecg-clinic-list article small{color:var(--ecg-muted);text-overflow:ellipsis;font-size:9px;overflow:hidden}.ecg-clinic-list article button{color:#6a2633;background:#fff;border:1px solid #d9cdd0;border-radius:7px;min-height:34px;padding:0 9px;font-size:9px;font-weight:800}@media (width<=1100px){.ecg-sidebar{width:78px;padding-inline:12px}.ecg-sidebar>a .platform-brand-copy,.ecg-sidebar nav span,.ecg-profile div{display:none}.ecg-sidebar nav a,.ecg-sidebar nav button{justify-content:center}.ecg-profile{justify-content:center;padding-inline:0}.ecg-workspace{margin-left:78px}.ecg-layout{grid-template-columns:1fr}.ecg-check{position:static}.ecg-check>div{grid-template-columns:repeat(3,1fr)}}@media (width<=700px){.ecg-sidebar{display:none}.ecg-workspace{margin-left:0}.ecg-topbar{align-items:flex-start;padding:17px}.ecg-topbar>div:last-child{flex-direction:column}.ecg-topbar h1{font-size:24px}.ecg-stepbar{padding:0;overflow-x:auto}.ecg-stepbar button{min-width:120px}.ecg-layout{width:calc(100% - 20px);margin:12px auto 30px}.ecg-section{padding:18px 14px}.ecg-form-grid,.ecg-measure-grid,.ecg-qtc-grid,.ecg-calc-columns,.ecg-template-grid,.ecg-review-meta,.ecg-reference,.ecg-phrase-list{grid-template-columns:1fr}.ecg-form-grid .is-wide{grid-column:auto}.ecg-measure-grid.two,.ecg-measure-grid.three,.ecg-polarity-grid,.ecg-sequential section>div{grid-template-columns:1fr}.ecg-check>div{grid-template-columns:1fr 1fr}.ecg-new-phrase{grid-template-columns:1fr}.ecg-new-phrase textarea,.ecg-new-phrase button{grid-column:auto}.ecg-modal-backdrop{padding:0}.ecg-modal,.ecg-modal.is-wide{border-radius:0;width:100%;max-height:100vh}.ecg-final-actions button{flex:1}.ecg-nav-actions span{display:none}.ecg-clinic-manager,.ecg-clinic-field>div,.ecg-clinic-form>div:not(.ecg-clinic-form-actions){grid-template-columns:1fr}.ecg-clinic-list article{grid-template-columns:42px minmax(0,1fr)}.ecg-clinic-list article button{grid-column:auto}}@media print{@page{size:210mm 297mm;margin:0}html,body{background:#fff!important;width:210mm!important;min-height:297mm!important;margin:0!important}body .ecg-app,body .ecg-app *{visibility:visible!important}.ecg-sidebar,.ecg-workspace,.ecg-modal-backdrop,.ecg-toast{display:none!important}.ecg-print-document,.ecg-print-document *{visibility:visible!important}.ecg-print-document{font-family:Arial,sans-serif;font-size:11pt;line-height:1.45;box-sizing:border-box!important;color:#000!important;background:#fff!important;width:210mm!important;min-height:297mm!important;margin:0!important;padding:14mm 15mm 12mm!important;display:block!important;position:absolute!important;inset:0 auto auto 0!important}.ecg-print-document header{border-bottom:2px solid #000;padding-bottom:14px}.ecg-print-document header img{object-fit:contain;max-width:170px;max-height:65px}.ecg-print-document header strong{margin:8px 0;font-size:13pt;display:block}.ecg-print-document header>small{color:#333;margin:-3px 0 7px;font-size:8.5pt;display:block}.ecg-print-document header p{margin:2px 0}.ecg-print-document section{margin-top:22px}.ecg-print-document section h2{letter-spacing:.08em;margin:0 0 8px;font-size:10pt}.ecg-print-document section div{white-space:pre-wrap}.ecg-print-document footer{border-top:1px solid #777;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:48px;padding-top:12px;font-size:8pt;display:grid}.ecg-print-document footer p{flex-direction:column;margin:0;display:flex}}
