:root{font-family:DM Sans,system-ui,sans-serif;color:#18302f;background:#f5f7f5;font-synthesis:none;--ink:#18302f;--muted:#657574;--line:#dce4e1;--surface:#fff;--teal:#176e68;--teal-dark:#103f3c;--mint:#e3f3ee;--coral:#ef735f;--amber:#e8a33d;--shadow:0 8px 30px rgba(23,48,46,.07)}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,textarea,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(23,110,104,.23);outline-offset:2px}h1,h2,h3,p{margin-top:0}h1,h2,h3{font-family:Manrope,sans-serif;letter-spacing:-.025em}h1{font-size:clamp(2rem,3vw,3rem);line-height:1.08;margin-bottom:.45rem}h2{font-size:1.3rem;margin-bottom:.3rem}.boot{min-height:100vh;display:grid;place-content:center;justify-items:center;gap:18px;color:var(--muted)}.brand-mark{width:42px;height:42px;display:grid;place-items:center;background:#d5eee8;color:var(--teal);border-radius:13px}.brand-mark svg{width:24px}.eyebrow{font-size:.69rem;letter-spacing:.14em;font-weight:700;color:var(--teal);margin-bottom:.45rem}.eyebrow.light{color:#91d9ca}.muted{color:var(--muted)}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(390px,46%) 1fr}.login-intro{background:linear-gradient(145deg,#0e4844,#0d3735);color:#fff;padding:clamp(32px,5vw,76px);display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-intro:after{content:"";position:absolute;width:430px;height:430px;border:1px solid rgba(255,255,255,.08);border-radius:50%;right:-240px;bottom:-100px;box-shadow:0 0 0 70px #ffffff06,0 0 0 140px #ffffff05}.login-intro h1{font-size:clamp(2.6rem,5vw,4.8rem);max-width:700px}.login-intro p:not(.eyebrow){color:#bed3d0;max-width:580px;font-size:1.07rem;line-height:1.7}.logo{display:flex;align-items:center;gap:11px;border:0;background:transparent;font-family:Manrope;font-size:1.17rem;font-weight:700;cursor:pointer;padding:0}.lockup{color:#fff;align-self:flex-start}.privacy-note{display:flex;align-items:center;gap:11px;color:#c9dcda;font-size:.9rem;z-index:1}.privacy-note svg{color:#7bd1bf}.login-panel{display:grid;place-items:center;padding:40px;background:#f5f7f5}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:22px;padding:38px;box-shadow:var(--shadow);display:grid;gap:22px}.login-card h2{font-size:1.8rem}.login-card>div>p:last-child{color:var(--muted)}label{display:grid;gap:8px;font-size:.83rem;font-weight:600;color:#3c4e4d}input,textarea,select{width:100%;min-height:48px;border:1px solid #ccd7d4;border-radius:11px;background:#fff;padding:11px 13px;color:var(--ink)}textarea{min-height:88px;resize:vertical}.btn{min-height:46px;border:0;border-radius:11px;padding:10px 17px;display:inline-flex;justify-content:center;align-items:center;gap:8px;font-weight:700;cursor:pointer;transition:.18s ease}.btn svg{width:18px}.btn.primary{color:#fff;background:var(--teal);box-shadow:0 4px 12px #176e6833}.btn.primary:hover{background:#115d58;transform:translateY(-1px)}.btn.secondary{background:#fff;border:1px solid var(--line)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.wide{width:100%}.demo-hint{background:#f1f7f5;border-radius:11px;padding:13px 15px;display:grid;gap:3px;font-size:.78rem}.demo-hint span{color:var(--muted)}.error{display:flex;gap:8px;align-items:center;padding:11px 13px;color:#982f20;background:#fff0ed;border-radius:10px;font-size:.85rem}.topbar{height:70px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 max(24px,calc((100vw - 1240px)/2));position:sticky;top:0;z-index:20}.topbar>.logo{margin-right:auto}.clinic-name{font-size:.76rem;color:var(--muted);display:flex;gap:7px;align-items:center;margin-right:24px}.status-dot{width:8px;height:8px;background:#49a96c;border-radius:50%;box-shadow:0 0 0 3px #e5f5e9}.user-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;border-left:1px solid var(--line);padding-left:22px;cursor:pointer}.avatar{background:#dfeeea;color:var(--teal-dark);font-size:.76rem;font-weight:700;width:36px;height:36px;border-radius:10px;display:grid;place-items:center}.user-copy{display:grid;text-align:left;font-size:.79rem}.user-copy small{color:var(--muted)}.user-menu{position:absolute;right:max(20px,calc((100vw - 1240px)/2));top:62px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:7px}.user-menu button{border:0;background:#fff;display:flex;align-items:center;gap:8px;padding:10px 15px;border-radius:8px;cursor:pointer}.page,.episode-context,.episode-content{width:min(1240px,calc(100% - 40px));margin:0 auto}.page{padding:42px 0 72px}.welcome{display:flex;align-items:end;justify-content:space-between;margin-bottom:26px}.welcome p:last-child{color:var(--muted)}.searchbox{height:64px;background:#fff;border:1px solid var(--line);border-radius:16px;display:flex;align-items:center;padding:0 18px;margin-bottom:36px;box-shadow:0 6px 22px #22413e0d}.searchbox>svg{color:var(--teal);width:22px}.searchbox input{border:0;min-height:62px;font-size:1rem;background:transparent}.searchbox button{border:0;background:transparent;color:var(--muted);cursor:pointer}.searchbox button svg{width:19px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:42px}.section-title{display:flex;align-items:center;gap:9px;margin:29px 0 13px}.section-title>span{color:var(--teal);display:grid}.section-title svg{width:20px}.section-title h2{font-size:1rem;margin:0}.section-title b{background:#e5eeeb;border-radius:20px;font-size:.7rem;padding:3px 8px}.patient-list{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden}.patient-row{width:100%;min-height:77px;border:0;border-bottom:1px solid #edf1ef;background:#fff;display:flex;align-items:center;gap:14px;padding:13px 17px;text-align:left;cursor:pointer}.patient-row:last-child{border-bottom:0}.patient-row:hover{background:#f8fbfa}.patient-avatar{width:43px;height:43px;border-radius:50%;flex:0 0 auto}.patient-main{display:grid;gap:3px;flex:1}.patient-main small{color:var(--muted)}.alert-badge{color:#a53d2c;background:#fff0ed;padding:5px 8px;border-radius:7px;font-size:.71rem;display:flex;align-items:center;gap:4px}.alert-badge svg{width:13px}.chevron{font-size:1.5rem;color:#94a19f}.active-list{display:grid;gap:11px}.active-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px;text-align:left;display:grid;gap:10px;cursor:pointer;box-shadow:0 4px 16px #22413e09}.active-card:hover{border-color:#96c3bb}.active-card>div{display:flex;align-items:center;justify-content:space-between}.active-card small{color:var(--muted)}.active-card>span{display:flex;gap:5px;align-items:center;color:var(--muted);font-size:.75rem}.active-card svg{width:15px}.status{font-size:.63rem;text-transform:uppercase;font-weight:700;letter-spacing:.1em;padding:5px 8px;border-radius:20px;background:#e6f3ed;color:#237452}.status.seguimiento{background:#fff1d9;color:#9b6111}.status.alta{background:#e9eff4;color:#4d6577}.status.derivado,.status.abandonado{background:#f3eceb;color:#805551}.back{border:0;background:transparent;display:flex;align-items:center;gap:8px;color:var(--teal);font-weight:700;padding:4px 0;margin-bottom:24px;cursor:pointer}.back svg{width:18px}.patient-header{display:flex;align-items:center;gap:18px;padding-bottom:28px;border-bottom:1px solid var(--line)}.hero-avatar{width:70px;height:70px;border-radius:18px;font-size:1.2rem}.grow{flex:1}.patient-header h1{font-size:2rem;margin-bottom:7px}.meta-line{display:flex;gap:18px;color:var(--muted);font-size:.86rem}.alerts-line{display:flex;align-items:center;gap:10px;margin:18px 0 0;background:#fff1ed;color:#943b2c;border-radius:11px;padding:12px 15px;font-size:.82rem}.alerts-line svg{width:18px}.alerts-line span{padding-right:10px;border-right:1px solid #efc7bf}.patient-facts{margin-top:22px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:18px;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.fact{display:grid;gap:4px}.fact small{color:var(--muted);font-size:.71rem;text-transform:uppercase;letter-spacing:.06em}.fact span{font-size:.85rem}.episode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.episode-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;text-align:left;cursor:pointer;display:grid;min-height:190px}.episode-card:hover{border-color:#93bbb4;box-shadow:var(--shadow)}.episode-card>div:first-child{display:flex;align-items:center;justify-content:space-between}.episode-code{color:var(--muted);font-size:.75rem;font-weight:700}.episode-card h3{margin:18px 0 7px}.episode-card p{color:var(--muted);font-size:.82rem;line-height:1.5}.episode-foot{align-self:end;display:flex;justify-content:space-between;color:var(--teal);font-size:.75rem;font-weight:600}.episode-foot span{display:flex;align-items:center;gap:4px}.episode-foot svg{width:14px}.episode-page{padding-bottom:80px}.episode-context{padding-top:27px}.episode-context .back{margin-bottom:18px}.episode-heading{display:flex;justify-content:space-between;align-items:center;padding-bottom:25px}.episode-heading h1{font-size:2rem;margin:4px 0}.patient-kicker{color:var(--muted);font-size:.84rem}.tabs{background:#fff;border-top:1px solid var(--line);border-bottom:1px solid var(--line);display:flex;gap:4px;overflow-x:auto;padding:0 max(20px,calc((100vw - 1240px)/2));position:sticky;top:70px;z-index:10}.tabs button{min-height:55px;border:0;background:transparent;padding:0 12px;white-space:nowrap;color:var(--muted);font-size:.78rem;font-weight:600;border-bottom:3px solid transparent;cursor:pointer}.tabs button.active{color:var(--teal);border-color:var(--teal)}.tabs button span{font-size:.6rem;background:#e7efed;border-radius:12px;padding:2px 6px;margin-left:5px}.episode-content{padding-top:33px}.summary-title,.module-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.summary-title h2{font-size:1.5rem}.fresh{font-size:.73rem;color:#3b7b5a;display:flex;align-items:center;gap:6px}.fresh svg{width:16px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px;min-width:0}.span-2{grid-column:span 2}.card-head{display:flex;align-items:center;gap:8px;padding-bottom:13px;border-bottom:1px solid #edf1ef;margin-bottom:15px}.card-head span{color:var(--teal);display:grid}.card-head svg{width:18px}.card-head h3{font-size:.9rem;margin:0}.clinical-lead{display:grid;grid-template-columns:1fr 1fr;gap:22px}.clinical-lead small{color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.06em}.clinical-lead p{font-size:.86rem;line-height:1.5;margin:5px 0}.metric-row{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.metric{background:#f3f7f5;padding:11px;border-radius:10px;display:grid;gap:2px}.metric strong{font-family:Manrope;font-size:1.22rem}.metric span{font-size:.68rem;color:var(--muted)}.metric.amber{background:#fff6e8;color:#9b6111}.metric.red{background:#fff0ed;color:#a23d2d}.metric.green{background:#eaf7ee;color:#2b7048}.tag-list{display:flex;flex-wrap:wrap;gap:7px}.tag-list>span{padding:6px 9px;border-radius:8px;background:#f0f5f3;color:#425856;font-size:.72rem}.compact-list{display:grid}.compact-list>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #edf1ef;padding:9px 0;font-size:.78rem}.compact-list>div:last-child{border:0}.compact-list strong{font-size:.72rem;color:#9c6a18}.compact-list .bad{color:#a74332}.measure-table{display:grid;font-size:.77rem}.measure-table>div{display:grid;grid-template-columns:1.4fr .7fr .7fr .9fr;padding:9px;border-bottom:1px solid #edf1ef;align-items:center}.measure-table .table-head{color:var(--muted);font-size:.67rem;text-transform:uppercase;background:#f6f8f7;border-radius:7px}.pain-text{color:#a74332}.ok-text{color:#387351}.goals{display:grid;gap:12px}.goals>div{display:flex;align-items:center;gap:10px;font-size:.8rem}.goals>div>span:last-child{display:grid}.goals small{text-transform:capitalize;color:var(--muted)}.goal-check{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:#edf2f0;color:#91a09e}.goal-check svg{width:14px}.goal-check.parcial{background:#fff2da;color:#b07318}.goal-check.conseguido{background:#e5f4ea;color:#377551}.evolution-note{font-size:.9rem;line-height:1.6}.next-action{border-left:3px solid var(--teal);background:#f0f7f5;padding:11px 13px;display:grid;gap:2px}.next-action span{font-size:.66rem;color:var(--muted);text-transform:uppercase}.next-action strong{font-size:.8rem}.details{display:grid;gap:13px}.timeline-section{margin-top:35px}.timeline{background:#fff;border:1px solid var(--line);border-radius:15px;padding:8px 20px}.timeline>div{display:grid;grid-template-columns:120px 20px 145px 1fr;gap:12px;align-items:center;min-height:53px;font-size:.77rem}.timeline time{color:var(--muted)}.timeline>div>span{width:10px;height:10px;background:var(--teal);border:3px solid #d8ebe7;border-radius:50%;position:relative}.timeline>div:not(:last-child)>span:after{content:"";position:absolute;width:1px;height:45px;background:#cbdad6;top:7px;left:1.5px}.timeline p{margin:0;color:var(--muted)}.module-header>div{display:flex;align-items:center;gap:13px}.module-header p{color:var(--muted);margin:0;font-size:.84rem}.module-icon{width:42px;height:42px;border-radius:12px;background:var(--mint);color:var(--teal);display:grid;place-items:center;flex:0 0 auto}.module-icon svg{width:21px}.record-list{display:grid;gap:11px;margin-top:18px}.record-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:17px;display:flex;gap:14px;align-items:flex-start}.record-icon{width:36px;height:36px;border-radius:10px;background:#f0f5f3;color:var(--teal);display:grid;place-items:center;flex:0 0 auto}.record-icon svg{width:18px}.record-card>div{flex:1}.record-card h3{font-size:.93rem;margin:0 0 5px}.record-card p:not(.eyebrow){font-size:.79rem;color:var(--muted);margin:0;line-height:1.5}.record-card .tag-list{margin-top:8px}.finalized{font-size:.67rem;color:#33724e;display:flex;gap:4px}.finalized svg{width:14px}.assessment-board{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;margin-bottom:18px}.pain-scale,.pain-picker{display:grid;grid-template-columns:repeat(11,1fr);gap:5px}.pain-scale span,.pain-picker button{height:36px;border-radius:8px;background:#edf3f1;display:grid;place-items:center;font-size:.72rem;border:1px solid transparent}.pain-scale .selected,.pain-picker button.active{background:var(--coral);color:#fff;font-weight:700}.pain-picker button{cursor:pointer}.split-tables{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin-top:23px}.mini-measure{display:grid;grid-template-columns:1fr 75px 75px;border-bottom:1px solid #edf1ef;padding:8px;font-size:.76rem}.comparison{background:#fff;border:1px solid var(--line);border-radius:15px;overflow:hidden;margin-bottom:18px}.comparison>div{display:grid;grid-template-columns:1.5fr repeat(4,1fr);padding:12px 16px;border-bottom:1px solid #edf1ef;font-size:.79rem}.comparison-head{background:#f3f7f5;color:var(--muted);font-size:.68rem!important;text-transform:uppercase}.current-value{color:var(--teal);font-weight:700}.improvement{color:#34734f}.report-types{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.report-types>div{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;display:grid;gap:5px}.report-types>div>span{font-size:.65rem;color:var(--teal)}.report-types small{color:var(--muted)}.modal-backdrop{position:fixed;inset:0;background:#0a201e80;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:grid;place-items:center;padding:20px;z-index:100}.modal{width:min(680px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:19px;box-shadow:0 20px 60px #00000038}.modal form{padding:24px}.modal-head{display:flex;align-items:center;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:20px}.modal-head>div:nth-child(2){flex:1}.modal-head h2{margin:0}.icon-btn{width:40px;height:40px;border:0;border-radius:10px;background:#f1f5f4;display:grid;place-items:center;cursor:pointer}.icon-btn svg{width:18px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.full{grid-column:1/-1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:19px;margin-top:22px}.field-title{font-size:.8rem;font-weight:600;margin-bottom:9px}.field-title strong{color:var(--teal);float:right}.chip-row{display:flex;gap:7px;flex-wrap:wrap}.chip{min-height:38px;border:1px solid #cbd8d5;background:#fff;border-radius:20px;padding:7px 12px;display:flex;align-items:center;gap:5px;font-size:.75rem;cursor:pointer}.chip svg{width:14px}.chip.active{background:var(--mint);border-color:#7fbab0;color:var(--teal);font-weight:600}.source-warning{display:flex;align-items:center;gap:8px;background:#edf7f4;border-radius:10px;padding:11px;color:#3a625e;font-size:.75rem}.source-warning svg{width:18px}.report-preview{background:#f7f8f7;border:1px solid var(--line);border-radius:10px;padding:15px}.report-preview p:last-child{font-family:Georgia,serif;line-height:1.6;font-size:.86rem}.empty{min-height:130px;border:1px dashed #c8d4d1;border-radius:14px;color:var(--muted);display:grid;place-content:center;justify-items:center;text-align:center}.empty svg{color:#9ab2ad}.empty p{margin:8px}.loading{height:50vh;display:grid;place-content:center;justify-items:center;gap:10px;color:var(--muted)}.loading span{width:25px;height:25px;border:3px solid #dbe6e3;border-top-color:var(--teal);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:900px){.login-page{grid-template-columns:1fr}.login-intro{min-height:330px;padding:35px}.login-intro h1{font-size:2.7rem}.privacy-note{margin-top:35px}.dashboard-grid{grid-template-columns:1fr}.episode-grid,.summary-grid{grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}.patient-facts,.report-types{grid-template-columns:1fr 1fr}.clinic-name{display:none}.clinical-lead{grid-template-columns:1fr}.timeline>div{grid-template-columns:100px 20px 1fr}.timeline p{display:none}}@media(max-width:640px){.topbar{height:62px;padding:0 15px}.topbar>.logo .brand-mark{width:35px;height:35px}.user-copy,.user-button>svg{display:none}.user-button{padding-left:12px}.page,.episode-context,.episode-content{width:min(100% - 28px,1240px)}.page{padding-top:25px}.welcome{align-items:flex-start;gap:18px}.welcome h1{font-size:1.8rem}.welcome p:last-child{display:none}.welcome .btn{font-size:0;width:45px;padding:0}.welcome .btn svg{width:21px}.searchbox{margin-bottom:23px;height:57px}.dashboard-grid{gap:10px}.patient-row{padding:12px}.patient-main strong{font-size:.83rem}.patient-main small{font-size:.72rem}.alert-badge{font-size:0;padding:6px}.chevron{display:none}.patient-header{align-items:flex-start;flex-wrap:wrap}.hero-avatar{width:55px;height:55px}.patient-header h1{font-size:1.55rem}.patient-header .btn{width:100%}.meta-line{flex-wrap:wrap;gap:5px 13px}.patient-facts{grid-template-columns:1fr 1fr}.episode-grid{grid-template-columns:1fr}.tabs{top:62px;padding:0 8px}.tabs button{min-height:51px}.episode-heading h1{font-size:1.55rem}.episode-content{padding-top:23px}.summary-title{align-items:start}.fresh{display:none}.summary-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.metric-row{grid-template-columns:1fr 1fr}.measure-table>div{grid-template-columns:1.2fr .6fr .6fr}.measure-table>div span:last-child{display:none}.timeline{padding:8px 13px}.timeline>div{grid-template-columns:80px 15px 1fr;gap:8px}.module-header{align-items:flex-start}.module-header .btn{font-size:0;width:45px;padding:0}.module-header .btn svg{display:block}.record-card{padding:13px}.split-tables{grid-template-columns:1fr}.comparison{overflow-x:auto}.comparison>div{min-width:620px}.report-types{grid-template-columns:1fr}.modal-backdrop{padding:0;place-items:end center}.modal{max-height:94vh;border-radius:18px 18px 0 0}.modal form{padding:18px}.form-grid{grid-template-columns:1fr}.full{grid-column:auto}.pain-picker{grid-template-columns:repeat(6,1fr)}.pain-picker button{height:40px}.modal-actions{position:sticky;bottom:-18px;background:#fff;padding:13px 0 18px}.modal-actions .btn{flex:1}.login-panel{padding:20px}.login-card{padding:27px 22px}.login-intro{min-height:290px}.login-intro h1{font-size:2.25rem}.privacy-note{margin-top:20px}}@media(hover:none){.btn,.patient-row,.active-card,.episode-card,.tabs button{min-height:48px}}.btn.soft{background:var(--mint);color:var(--teal);border:1px solid #b8dcd5}.btn.compact{min-height:40px;padding:8px 13px}.pending-badge{background:#fff2d8;color:#956016;border-radius:8px;padding:5px 8px;font-size:.68rem;font-weight:700}.profile-strip{display:flex;gap:11px;align-items:center;margin-top:18px;padding:13px 15px;background:#eaf6ef;color:#34724d;border-radius:12px}.profile-strip.pending{background:#fff5e5;color:#936116}.profile-strip svg{width:19px;flex:0 0 auto}.profile-strip div{display:grid;gap:2px}.profile-strip strong{font-size:.82rem}.profile-strip span{font-size:.74rem}.visit-actions{display:flex;gap:10px;margin-bottom:24px}.simple-tabs{background:#fff;border-block:1px solid var(--line);display:flex;gap:7px;padding:0 max(20px,calc((100vw - 1240px)/2));position:sticky;top:70px;z-index:10}.simple-tabs button{height:54px;border:0;border-bottom:3px solid transparent;background:transparent;color:var(--muted);padding:0 17px;font-size:.82rem;font-weight:700;cursor:pointer}.simple-tabs button.active{color:var(--teal);border-color:var(--teal)}.simple-tabs span{background:#e8efed;border-radius:12px;padding:2px 6px;font-size:.64rem}.compact-summary{max-width:980px}.summary-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.summary-top h2{font-size:1.45rem}.priority-stack{display:grid;grid-template-columns:1.15fr .85fr;gap:14px}.priority-card{background:#fff;border:1px solid var(--line);border-radius:15px;padding:19px}.warning-card{grid-column:1/-1;border-left:4px solid #d59b3e}.latest-card,.slim-card{grid-column:1/-1}.clinical-alert-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.clinical-alert-grid>div{background:#f6f8f7;border-radius:10px;padding:12px;min-height:80px}.clinical-alert-grid small,.pain-summary small{display:block;color:var(--muted);font-size:.67rem;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px}.clinical-alert-grid p{font-size:.78rem;margin:0;color:var(--muted)}.clinical-alert-grid>div>div{display:flex;gap:5px;flex-wrap:wrap}.clinical-alert-grid span{background:#fff;border:1px solid var(--line);padding:5px 7px;border-radius:7px;font-size:.72rem}.clinical-alert-grid .danger{background:#fff0ed}.clinical-alert-grid .danger span{color:#9b3b2d;border-color:#efc1b8}.pain-summary{display:grid;grid-template-columns:110px 1fr;gap:14px}.pain-summary>div{display:grid;align-content:start}.pain-summary strong{font-size:.83rem}.pain-number{grid-row:span 2;background:#fff2e5;border-radius:12px;padding:13px;place-items:center;text-align:center}.pain-number strong{font-size:2.2rem;color:#b56132}.pain-number span{font-size:.68rem;color:var(--muted)}.latest-record{display:grid;grid-template-columns:1fr .9fr;gap:10px 22px}.latest-record h3{margin:4px 0}.latest-record>p{font-size:.85rem;color:var(--muted);line-height:1.5}.record-date{font-size:.68rem;color:var(--teal);font-weight:700}.latest-record .next-action{grid-column:2;grid-row:1/3}.highlight-row{display:flex;gap:8px;flex-wrap:wrap}.highlight-row span{display:grid;gap:2px;background:#f2f6f5;border-radius:9px;padding:10px 12px;font-size:.72rem}.highlight-row strong{font-size:.78rem}.wizard-shell{position:fixed;inset:0;background:#f4f7f5;z-index:200;display:grid;grid-template-rows:auto auto 1fr auto}.wizard-header{min-height:72px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px;padding:10px max(20px,calc((100vw - 1050px)/2))}.wizard-header>div{flex:1}.wizard-header h2{margin:0;font-size:1.15rem}.wizard-header .eyebrow{margin:0}.wizard-position{font-size:.75rem;color:var(--muted);font-weight:700}.wizard-progress{background:#fff;border-bottom:1px solid var(--line);display:flex;justify-content:center;overflow-x:auto;padding:12px 20px}.wizard-progress button{width:105px;border:0;background:transparent;display:grid;justify-items:center;gap:4px;color:#83918f;position:relative;cursor:pointer}.wizard-progress button:not(:last-child):after{content:"";height:1px;width:65px;background:#d6e0dd;position:absolute;left:72px;top:14px}.wizard-progress button>span{width:28px;height:28px;border-radius:50%;background:#e9efed;display:grid;place-items:center;font-size:.7rem;font-weight:700;z-index:1}.wizard-progress button svg{width:14px}.wizard-progress button.active,.wizard-progress button.done{color:var(--teal)}.wizard-progress button.active>span{background:var(--teal);color:#fff}.wizard-progress button.done>span{background:#dff1eb;color:var(--teal)}.wizard-progress small{font-size:.66rem}.wizard-body{overflow-y:auto;padding:33px 20px 100px}.wizard-section{width:min(900px,100%);margin:0 auto}.wizard-section>header{margin-bottom:26px}.wizard-section>header h1{font-size:1.9rem}.wizard-section>header>p:last-child{color:var(--muted)}.wizard-footer{min-height:72px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding:10px max(20px,calc((100vw - 1050px)/2));gap:15px}.wizard-footer>button:first-child{justify-self:start}.wizard-footer>button:last-child{justify-self:end}.wizard-footer>span{font-size:.72rem;color:var(--muted)}.clinical-profile-editor{display:grid;gap:18px}.clinical-profile-editor>section{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px}.editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}.editor-heading h3{margin-bottom:4px;font-size:1rem}.editor-heading p{margin:0;color:var(--muted);font-size:.76rem}.status-selector,.segmented{display:flex;background:#edf2f0;border-radius:9px;padding:3px;gap:2px}.status-selector button,.segmented button{min-height:40px;border:0;background:transparent;border-radius:7px;padding:7px 9px;font-size:.68rem;cursor:pointer;white-space:nowrap}.status-selector button.active,.segmented button.active{background:#fff;box-shadow:0 1px 5px #1932301a;color:var(--teal);font-weight:700}.status-selector button.pending.active,.segmented button.pending.active{color:#946116}.segmented button.danger.active{color:#a13c2d;background:#fff0ed}.segmented.large{max-width:520px}.segmented.large button{flex:1;min-height:44px}.choice-grid{display:flex;gap:7px;flex-wrap:wrap}.choice-chip{min-height:44px;border:1px solid #ccd9d6;background:#fff;border-radius:21px;padding:8px 13px;display:flex;align-items:center;gap:5px;font-size:.76rem;cursor:pointer}.choice-chip svg{width:14px}.choice-chip.active{background:var(--mint);border-color:#77b5ab;color:var(--teal);font-weight:700}.inline-add{display:flex;margin-top:13px;max-width:520px}.inline-add input{border-radius:10px 0 0 10px}.inline-add button{border:0;background:#e3efec;color:var(--teal);font-weight:700;border-radius:0 10px 10px 0;padding:0 14px;display:flex;align-items:center;gap:5px;cursor:pointer}.inline-add svg{width:16px}.editable-items{display:flex;flex-wrap:wrap;gap:7px;margin-top:10px}.editable-items span{background:#f0f5f3;padding:6px 8px;border-radius:8px;font-size:.72rem;display:flex;align-items:center;gap:5px}.editable-items button,.medication-list button,.selected-activities>div>button{border:0;background:transparent;display:grid;place-items:center;color:var(--muted);cursor:pointer}.editable-items svg,.medication-list button svg,.selected-activities>div>button svg{width:14px}.medication-add{display:grid;grid-template-columns:1.2fr .7fr 1fr auto;gap:8px}.medication-list{display:grid;gap:7px;margin-top:10px}.medication-list>div{display:flex;align-items:center;gap:10px;background:#f3f7f5;border-radius:9px;padding:9px 11px}.medication-list>div>svg{width:17px;color:var(--teal)}.medication-list span{display:grid;flex:1;font-size:.77rem}.medication-list small{color:var(--muted)}.pain-entry{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px}.pain-control{grid-column:1/-1}.pain-control.compact{grid-column:auto}.pain-picker{display:grid;grid-template-columns:repeat(11,1fr);gap:5px}.pain-picker button{height:42px;border:1px solid #d5dfdc;background:#f5f8f7;border-radius:8px;cursor:pointer}.pain-picker button.active{background:var(--coral);border-color:var(--coral);color:#fff;font-weight:700}.activities-editor{background:#fff;border:1px solid var(--line);border-radius:14px;padding:19px;margin-top:16px}.subheading{font-size:.92rem;margin:18px 0 8px}.helper{font-size:.74rem;color:var(--muted)}.selected-activities{display:grid;gap:8px;margin-top:18px}.selected-activities>div{display:grid;grid-template-columns:170px 1fr 30px;align-items:center;gap:12px;border-top:1px solid var(--line);padding-top:11px}.selected-activities>div>span{font-size:.79rem;font-weight:700}.selected-activities .field-title{margin-bottom:4px}.selected-activities .pain-picker button{height:34px}.tri-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}.tri-grid>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:11px;display:flex;align-items:center;justify-content:space-between;gap:10px}.tri-grid strong{font-size:.75rem}.mobility-list{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.mobility-row{display:grid;grid-template-columns:1fr 1.5fr 130px;align-items:center;gap:12px;padding:12px 15px;border-bottom:1px solid var(--line)}.mobility-row:last-child{border:0}.mobility-row strong{font-size:.8rem}.mobility-row label{display:flex;align-items:center;position:relative}.mobility-row label span{position:absolute;right:12px;color:var(--muted)}.quick-rows{display:grid;gap:7px}.quick-select-row{background:#fff;border:1px solid var(--line);border-radius:11px;padding:10px 12px;display:grid;grid-template-columns:160px 1fr;align-items:center}.quick-select-row>strong{font-size:.77rem}.quick-select-row>div{display:flex;gap:5px;flex-wrap:wrap}.quick-select-row button{border:1px solid #d3dedb;background:#fff;border-radius:7px;padding:6px 8px;font-size:.68rem;cursor:pointer}.quick-select-row button.active{background:var(--mint);border-color:#80b8ae;color:var(--teal);font-weight:700}.structure-list{display:grid;gap:9px;margin-top:16px}.structure-list label{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px;display:grid;grid-template-columns:230px 1fr;align-items:center}.structure-list textarea{min-height:62px}.review-warnings{display:grid;gap:7px;margin-bottom:16px}.review-warnings>div{background:#fff3de;color:#916017;border-radius:10px;padding:10px 12px;display:flex;align-items:center;gap:8px;font-size:.76rem}.review-warnings svg{width:17px}.review-warnings .all-reviewed{background:#e8f6ed;color:#34734e}.review-cards{display:grid;grid-template-columns:1fr 1fr;gap:10px}.review-cards>div{background:#fff;border:1px solid var(--line);border-radius:11px;padding:13px;display:grid;gap:5px}.review-cards small{color:var(--muted);font-size:.68rem;text-transform:uppercase}.review-cards strong{font-size:.8rem}.top-gap{margin-top:16px}.field-help{color:var(--muted);font-weight:400}.wide-modal{width:min(850px,100%)}@media(max-width:760px){.visit-actions{display:grid;grid-template-columns:1fr 1fr}.priority-stack{grid-template-columns:1fr}.warning-card,.latest-card,.slim-card{grid-column:auto}.clinical-alert-grid{grid-template-columns:1fr}.pain-summary{grid-template-columns:90px 1fr}.latest-record{grid-template-columns:1fr}.latest-record .next-action{grid-column:auto;grid-row:auto}.simple-tabs{top:62px}.wizard-header{min-height:64px;padding:8px 13px}.wizard-progress{justify-content:flex-start;padding:9px 12px}.wizard-progress button{min-width:75px;width:75px}.wizard-progress button:not(:last-child):after{width:40px;left:55px}.wizard-progress small{font-size:.59rem}.wizard-body{padding:23px 14px 110px}.wizard-section>header{margin-bottom:18px}.wizard-section>header h1{font-size:1.55rem}.wizard-footer{grid-template-columns:1fr 1fr;padding:9px 13px}.wizard-footer>span{display:none}.wizard-footer .btn{width:100%}.editor-heading{display:grid}.status-selector{overflow-x:auto}.clinical-profile-editor>section{padding:14px}.medication-add{grid-template-columns:1fr 1fr}.medication-add .btn{grid-column:1/-1}.pain-entry{grid-template-columns:1fr;padding:14px}.pain-control{grid-column:auto}.pain-picker{grid-template-columns:repeat(6,1fr)}.selected-activities>div{grid-template-columns:1fr 28px}.selected-activities .pain-control{grid-column:1/-1;grid-row:2}.selected-activities>div>button{grid-column:2;grid-row:1}.tri-grid{grid-template-columns:1fr}.tri-grid>div{display:grid}.segmented{width:100%}.segmented button{flex:1}.mobility-row{grid-template-columns:1fr 1fr;padding:10px}.mobility-row>label{grid-column:1/-1}.quick-select-row{grid-template-columns:1fr;gap:8px}.structure-list label,.review-cards{grid-template-columns:1fr}.choice-chip{min-height:44px}.modal.wide-modal{max-height:96vh}.pending-badge{font-size:0}.pending-badge:after{content:"!";font-size:.75rem}}.device-menu{min-width:245px;z-index:50}.device-menu button,.device-menu .menu-file{width:100%;color:var(--text);font:inherit;text-align:left;white-space:nowrap}.device-menu button:hover,.device-menu .menu-file:hover{background:#f0f6f4}.menu-file{display:flex;align-items:center;gap:8px;padding:10px 15px;border-radius:8px;cursor:pointer}.menu-file input{display:none}@media(max-width:640px){.device-menu{right:14px;top:56px;max-width:calc(100vw - 28px)}}.measurement-editor{display:grid;gap:14px;margin-top:18px}.measurement-card{padding:18px;background:#fff;border:1px solid var(--line);border-radius:14px;margin:14px 0}.measurement-head{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:12px}.measurement-head h3{margin:4px 0}.measurement-head small{color:var(--muted)}.check-label{display:flex;align-items:center;gap:10px;margin:14px 0;min-height:44px;font-size:.88rem}.check-label input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;accent-color:var(--teal)}.action-wrap{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.report-center{margin:24px 0}.report-type{display:grid;gap:8px;background:#fff;border:1px solid var(--line);padding:18px;border-radius:12px;text-align:left;cursor:pointer;font:inherit;color:var(--text)}.report-type.active{border:2px solid var(--teal);background:var(--mint)}.report-document{background:#fff;border:1px solid var(--line);padding:28px;margin:20px 0;border-radius:12px}.report-document pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.7}.report-text-editor{min-height:460px;width:100%;line-height:1.6}.table-scroll{overflow-x:auto;margin-top:18px}.clinical-table{width:100%;border-collapse:collapse;background:#fff;min-width:500px}.clinical-table th,.clinical-table td{padding:12px;border:1px solid var(--line);text-align:left;vertical-align:top}details.measurement-card summary{cursor:pointer;min-height:44px}@media(max-width:640px){.measurement-head{display:block}.measurement-card{padding:14px}.action-wrap .btn{flex:1 1 150px}.report-document{padding:16px}.report-center{width:100%;min-width:0}}@media print{body *{visibility:hidden!important}.print-target,.print-target *{visibility:visible!important}.print-target{position:absolute;left:0;top:0;margin:0;padding:0;border:0;width:100%;font-size:11pt}.print-target pre{white-space:pre-wrap;overflow-wrap:anywhere}body{background:#fff}.topbar,.wizard-shell,.report-text-editor{display:none!important}}.template-settings fieldset{border:0;padding:0;min-width:0}.template-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(230px,100%),1fr));gap:14px}.template-logo,.report-logo{display:block;width:100%;max-width:310px;max-height:95px;object-fit:contain;object-position:left;margin:12px 0 20px}.report-prose{font-family:Calibri,Arial,sans-serif;line-height:1.7;overflow-wrap:anywhere}.report-prose p{white-space:pre-wrap;margin:0 0 1em}.report-prose h3{color:var(--report-section);font-size:12pt;break-after:avoid;margin:1.5em 0 .6em}.report-prose .report-title{color:var(--report-title);text-align:center;font-size:17pt;text-decoration:underline}.report-document footer{white-space:pre-wrap;border-top:1px solid #ddd;padding-top:12px;font-size:10pt;margin-top:28px}.evaluation-step{max-width:900px;margin:0 auto}.evaluation-gate{background:#fff;border:1px solid var(--line);border-radius:18px;padding:22px;margin-bottom:22px}.evaluation-gate h2{font-size:1.3rem}.evaluation-choices{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.evaluation-choices button{border-radius:12px;min-height:52px;font-size:1rem}.structure-dialog{width:min(650px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid #ccd7d4;border-radius:18px;color:var(--ink);overflow:auto}.structure-dialog::backdrop{background:#10282599}.structure-dialog-content{padding:22px}.structure-dialog-content h2{margin-top:0}.structure-dialog-content label{display:grid;gap:8px;margin:22px 0}.structure-dialog-content textarea{min-height:150px}.structure-dialog-content footer{position:sticky;bottom:-22px;background:#fff;padding:16px 0 10px}.selected-structures{margin-top:20px}.writing-suggestion{margin:16px 0;background:#eef7f3;padding:16px;border-radius:12px;white-space:pre-wrap}.writing-suggestion button{display:block;margin-top:12px}.wizard-shell{height:100dvh;max-height:100dvh;bottom:auto;grid-template-rows:auto auto minmax(0,1fr) auto}.wizard-body{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.wizard-progress button{flex-shrink:0}.ultrasound-editor h1{font-size:1.65rem}@media(pointer:coarse),(max-width:760px){input,textarea,select{font-size:16px!important}.wizard-body{padding-bottom:30px}.structure-dialog-content{padding:16px}.structure-dialog-content footer{bottom:-16px}.structure-dialog .action-wrap button{flex:1 1 150px}.evaluation-gate{padding:16px}.evaluation-choices{display:grid;grid-template-columns:1fr}.evaluation-choices button{justify-content:center}.wizard-progress{scroll-padding-inline:12px}}.report-v3{color:#1c2830}.report-v3 .report-prose{font-family:Calibri,FisioCarlito,Arial,sans-serif;font-size:11pt;line-height:1.45}.report-v3 .report-prose h3{border-bottom:1px solid #c4dce9;padding-bottom:5px}.report-v3 .report-prose .report-title{font-size:16pt;border:0}.report-v3 .report-footer-logo{display:block;max-width:145px;max-height:40px;object-fit:contain;margin-bottom:10px}.report-v3 .report-prose p{margin-bottom:.8em}@media print{.report-v3{font-size:11pt}.report-v3 .report-prose h3{break-after:avoid}}@media(pointer:coarse){html,body,#root,.wizard-shell,.structure-dialog,.wizard-shell input,.wizard-shell textarea{touch-action:pan-x pan-y}}.basic-visit .wizard-section>label{display:grid;gap:8px;margin:18px 0}.basic-details{border:1px solid #d8e6e3;border-radius:14px;margin:18px 0;background:#fff}.basic-details>summary{padding:16px;font-weight:650;cursor:pointer;min-height:48px}.basic-details>div{padding:0 16px 18px}.basic-details label{margin-top:12px}.basic-visit .source-warning{display:block;line-height:1.6}.basic-visit .wizard-progress{grid-template-columns:repeat(5,minmax(0,1fr))}.basic-visit .wizard-progress button{min-width:0}.basic-visit .wizard-progress small{white-space:normal}.basic-visit .basic-details .clinical-table{min-width:0;table-layout:fixed}.basic-visit .basic-details .clinical-table th,.basic-visit .basic-details .clinical-table td{overflow-wrap:anywhere;padding:10px}@media(max-width:480px){.visit-actions{grid-template-columns:1fr}.visit-actions .btn{width:100%;min-width:0;white-space:normal}}.quick-visit{grid-template-rows:auto 4px minmax(0,1fr) auto;overflow:hidden;background:#edf5f3}.quick-header{display:flex;gap:14px;align-items:center;background:#fff;padding:12px max(18px,calc((100vw - 880px)/2));min-height:68px}.quick-header>button{border:0;border-radius:50%;background:#edf5f3;width:42px;height:42px;font-size:28px;flex-shrink:0}.quick-header>div{display:grid;gap:3px;min-width:0;flex:1}.quick-header strong{font-size:1rem}.quick-header small{font-size:.75rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.quick-header>span{font-size:.8rem;color:var(--muted)}.quick-progress{background:#d8e8e3}.quick-progress>span{display:block;height:100%;background:var(--teal)}.quick-stage{display:grid;place-items:center;min-height:0;padding:clamp(12px,3vh,30px) 18px;overflow:hidden}.quick-card{width:min(760px,100%);max-height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:16px}.quick-card>header>p:first-child{font-size:.65rem;font-weight:750;letter-spacing:.13em;color:var(--teal);margin-bottom:10px}.quick-card h1{font-size:clamp(26px,4vw,40px);line-height:1.15;margin:0 0 10px;outline:none}.quick-card>header>p:last-child{font-size:1rem;color:var(--muted);line-height:1.35;margin:0}.quick-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-height:0}.quick-answer{min-height:76px;display:flex;justify-content:center;align-items:center;gap:10px;border:2px solid #d6e5df;border-radius:18px;background:#fff;padding:12px;font-size:1.1rem;font-weight:650;line-height:1.2;cursor:pointer;overflow-wrap:anywhere}.quick-answer.selected{background:#dff2e9;border-color:var(--teal);color:#124f48}.quick-answer.quiet{background:transparent;border-style:dashed;color:#536b65;font-size:.95rem}.quick-answer:disabled,.quick-footer button:disabled{opacity:.55;cursor:default}.quick-context{grid-column:1/-1;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;padding:12px 16px;background:#deeee7;border-radius:14px;font-size:1rem;line-height:1.35}.quick-score-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.quick-score-grid button{min-height:58px;font-size:1.25rem;padding:8px}.quick-pain>.quick-answer,.quick-reference{grid-column:1/-1}.quick-reference{margin:0;color:#526a64;font-size:.8rem;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}.quick-footer{background:#fff;border-top:1px solid #dce8e3;padding:12px max(18px,calc((100vw - 760px)/2));display:grid;gap:10px}.quick-footer>div{display:flex;gap:12px;justify-content:space-between}.quick-footer button{min-height:44px;background:#fff;border:0;border-radius:12px;font-size:.95rem;padding:10px 16px;color:#2f5750;font-weight:650;cursor:pointer}.quick-footer .quick-continue{min-height:54px;background:var(--teal);color:#fff;font-size:1.05rem}.quick-writing{min-height:0;font-size:1rem}.quick-writing textarea{height:clamp(70px,20vh,160px);max-height:100%;resize:none;font-size:18px!important}.quick-review{grid-column:1/-1;display:grid;gap:10px}.quick-review-item{display:grid;gap:7px;text-align:left;border:1px solid #cbded5;border-radius:16px;padding:15px;background:#fff;min-height:75px;cursor:pointer}.quick-review-item small{color:#61766f;font-size:.8rem}.quick-review-item strong{font-size:1rem;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere}.quick-error{margin:0;color:#8f281d;background:#fff0ed;padding:10px;border-radius:10px;font-size:.85rem}@media(max-width:480px){.quick-stage{padding:16px}.quick-card{gap:14px}.quick-answer{min-height:72px;font-size:1rem;padding:11px;border-radius:16px}.quick-answers{gap:10px}.quick-header{padding:10px 14px}.quick-card h1{font-size:28px}.quick-footer{padding:10px 14px}.quick-score-grid button{min-height:55px}.quick-reference{font-size:.75rem}}@media(max-height:700px){.quick-stage{padding:10px 14px}.quick-card{gap:10px}.quick-card h1{font-size:25px;margin-bottom:6px}.quick-card>header>p:first-child{margin-bottom:6px}.quick-card>header>p:last-child{font-size:.87rem}.quick-answer{min-height:55px;padding:9px;font-size:.95rem}.quick-score-grid button{min-height:46px}.quick-context{padding:8px 12px}.quick-review-item{padding:10px;min-height:61px;gap:4px}.quick-footer{padding:8px 14px;gap:4px}.quick-footer .quick-continue{min-height:46px}.quick-header{min-height:56px;padding:8px 14px}.quick-answers{gap:8px}}.quick-short .quick-stage{padding:8px 14px}.quick-short .quick-card{gap:8px}.quick-short .quick-card>header>p{display:none}.quick-short .quick-card h1{font-size:23px}.quick-short .quick-answer{min-height:40px;font-size:.9rem;padding:6px}.quick-short .quick-score-grid button{min-height:38px}.quick-short .quick-context,.quick-short .quick-reference{font-size:.75rem;padding:5px;-webkit-line-clamp:1}.quick-short .quick-review-item{padding:7px;min-height:42px;gap:2px}.quick-short .quick-review-item strong{-webkit-line-clamp:1;font-size:.9rem}.quick-short .quick-header{min-height:48px;padding:5px 14px}.quick-short .quick-header small{display:none}.quick-short .quick-footer button{min-height:36px;padding:6px 12px}.quick-short .quick-footer .quick-continue{min-height:40px}.quick-short .quick-writing textarea{height:60px}.quick-short .quick-footer{padding:5px 14px}.quick-stage{place-items:stretch center;padding:12px}.quick-card{height:100%;width:min(1100px,100%);gap:12px}.quick-card>header>p:first-child{display:none}.quick-card>header>p:last-child{font-size:.9rem}.quick-card h1{font-size:clamp(26px,3.5vw,38px);margin-bottom:6px}.quick-answers{grid-auto-rows:minmax(0,1fr);gap:10px}.quick-answer{height:100%;min-height:0;font-size:clamp(22px,2.7vw,32px);padding:14px;border-radius:22px}.quick-answer.quiet{font-size:clamp(19px,2.3vw,26px)}.quick-answers>.quick-answer:last-child:nth-child(odd){grid-column:1/-1}.quick-answers:has(>.quick-context){grid-template-rows:auto;grid-auto-rows:minmax(0,1fr)}.quick-answers:has(>.quick-context)>.quick-answer:last-child{grid-column:1/-1}.quick-answers.quick-pain{grid-template-rows:auto minmax(0,1fr) minmax(60px,.4fr) auto}.quick-score-grid{grid-auto-rows:minmax(0,1fr)}.quick-score-grid .quick-answer{min-height:0;height:100%;font-size:clamp(25px,4vw,38px)}.quick-review{grid-auto-rows:minmax(0,1fr)}.quick-review-item strong{font-size:1.2rem}.quick-header{min-height:56px;padding-top:7px;padding-bottom:7px}.quick-footer{padding-top:7px;padding-bottom:7px}.quick-context{padding:9px 12px}@media(max-height:700px){.quick-stage{padding:8px 10px}.quick-card{gap:8px}.quick-answer{font-size:19px;padding:9px;border-radius:17px}.quick-answer.quiet{font-size:17px}.quick-score-grid .quick-answer{font-size:24px}.quick-card h1{font-size:25px}.quick-answers.quick-pain{grid-template-rows:auto minmax(0,1fr) minmax(44px,.35fr) auto}.quick-review-item strong{font-size:1rem}}.quick-short .quick-answer{min-height:0;height:100%;font-size:17px}.quick-short .quick-score-grid .quick-answer{min-height:0;font-size:22px}.quick-short .quick-card,.quick-short .quick-answers{gap:6px}.quick-short .quick-context{margin:0}.quick-short .quick-answers.quick-pain{grid-template-rows:auto minmax(0,1fr) 38px auto}.tile-flow .tile-content{border:0;padding:0;margin:0;min-height:0;display:flex;flex-direction:column;gap:10px;overflow:hidden}.tile-flow .tile-grid{flex:1;min-height:0;width:100%;margin:0;grid-auto-rows:minmax(0,1fr)}.tile-flow .quick-answer{min-height:0;flex-direction:column;justify-content:center;text-align:center;overflow-wrap:anywhere;padding:14px;font-size:clamp(19px,4.8vw,28px)}.tile-flow .quick-answer small{display:block;font-size:14px;font-weight:400;margin-top:5px}.tile-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;flex:none}.tile-pages button{min-height:44px;padding:8px 12px;border:1px solid #cbd5e1;border-radius:12px;background:#fff;font-size:16px}.tile-form{display:flex;flex-direction:column;gap:18px;flex:1;min-height:0}.tile-form label{display:flex;flex-direction:column;gap:10px;font-size:20px}.tile-form input,.tile-flow select{width:100%;min-height:60px;font-size:20px;padding:12px;box-sizing:border-box;min-width:0}.tile-form>.quick-answer{flex:1}.tile-scroll{overflow:auto!important;overscroll-behavior:contain}.tile-scroll .quick-card{height:auto!important;min-height:100%;display:flex;flex-direction:column}.tile-scroll .tile-content{overflow:visible;flex:1;display:block}.tile-scroll input,.tile-scroll select,.tile-scroll textarea{font-size:18px!important;min-height:56px;max-width:100%;box-sizing:border-box}.tile-scroll textarea{min-height:110px}.tile-scroll button{min-height:58px;font-size:18px;white-space:normal}.tile-scroll .choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tile-scroll .choice-grid button{min-height:76px}.tile-flow .quick-error{font-size:16px}@media(max-height:550px){.tile-flow .quick-answer{padding:6px;font-size:18px}.tile-flow .quick-card>header p{font-size:13px}.tile-flow .quick-card>header h1{font-size:22px}.tile-form input{min-height:44px}.tile-flow .quick-answer small{font-size:12px}}.tile-summary{display:flex;flex:1;min-height:0;flex-direction:column;gap:6px}.tile-summary>p{margin:0;font-size:16px;line-height:1.35}.tile-summary>.quick-answers{margin-top:6px}.tile-flow.quick-short .tile-summary>p{font-size:13px}.tile-flow.quick-short .tile-summary .quick-answer{font-size:16px;padding:4px}.sheet-shell{position:fixed;inset:0;z-index:1000;background:#f4f7f8;display:flex;flex-direction:column;color:#14333c}.sheet-shell>header{padding:12px 16px;background:#fff;box-shadow:0 1px 8px #1232;display:flex;flex-wrap:wrap;gap:10px;align-items:center}.sheet-shell>header strong{flex:1}.sheet-shell nav{display:flex;gap:8px;width:100%}.sheet-shell main{overflow:auto;padding:16px;flex:1}.sheet-shell fieldset{border:0;padding:0;min-width:0}.sheet-shell section{scroll-margin-top:10px;margin:0 auto 22px;max-width:900px}.sheet-shell label{display:flex;flex-direction:column;gap:5px;margin:10px 0}.sheet-shell input,.sheet-shell textarea,.sheet-shell select{width:100%;min-height:44px;box-sizing:border-box;font-size:16px;padding:8px;border:1px solid #9bb3bc;border-radius:8px;background:#fff}.sheet-shell button{min-height:44px;padding:10px 16px;border-radius:8px;border:1px solid #71909b;background:#fff;color:#14333c;cursor:pointer}.sheet-shell button:disabled{opacity:.5}.sheet-row{padding:12px;border:1px solid #bccdd2;border-radius:12px;background:#fff;margin:12px 0}.sheet-row-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.sheet-shell input[type=checkbox]{width:24px;min-height:24px}.sheet-shell form{max-width:700px;margin:auto}
