@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#09295a;--teal:#008d8b;--ink:#20334b;--muted:#84909e;--line:#e5eaf0;--bg:#f4f6f8}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select{font:inherit}button{cursor:pointer;transition:.15s}button:hover{filter:brightness(.96);transform:translateY(-1px)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #79cfcc;outline-offset:2px}input,select{min-width:0;border:1px solid var(--line);border-radius:8px;padding:10px;background:white;color:var(--ink)}input[type=number]{width:100%}.rail{width:74px;background:var(--navy);position:fixed;inset:0;display:flex;align-items:center;flex-direction:column;color:white}.logo{font:bold 48px Georgia;color:white;text-decoration:none;margin:18px 0 55px}.logo span{color:#66dbcd}.rail-icon{font-size:26px;border-radius:12px;background:#ffffff18;padding:9px 14px}.rail-label{font-size:8px;letter-spacing:1px;margin-top:9px;color:#a6bfdf}.rail-bottom{margin-top:auto;margin-bottom:24px;border:1px solid #ffffff40;border-radius:50%;padding:9px 13px}header{margin-left:74px;height:78px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:0 40px}.wordmark{font:bold 25px Manrope,sans-serif;color:var(--navy);letter-spacing:-1px}.wordmark span{font:10px 'DM Sans',sans-serif;letter-spacing:2px;color:#8a97a5;margin-left:15px}.demo{margin-left:auto;font-size:10px;letter-spacing:1px;color:var(--teal);background:#eaf7f4;padding:8px 12px;border-radius:5px}main{margin-left:74px;padding:32px 40px;max-width:1700px}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:2px;color:var(--teal);font-weight:700}h1{font:800 32px Manrope,sans-serif;letter-spacing:-1.2px;margin:8px 0}p{color:#7b8898;margin:6px 0;line-height:1.6}.primary{border:0;border-radius:8px;color:white;background:var(--navy);padding:13px 19px;font-weight:600}.primary span{margin-left:24px;color:#78daca}.ghost{border:1px solid var(--line);background:white;border-radius:7px;padding:9px 12px;color:#536579;font-size:12px}.patient{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);padding:18px 24px;border-radius:12px;margin-bottom:24px}.avatar{background:#e8eff7;color:var(--navy);padding:16px;border-radius:50%;font-weight:700}.patient small,small{font-size:9px;letter-spacing:1.3px;color:#8a96a5;display:block;margin-bottom:5px}.patient input{border:0;font-weight:700;padding:0;width:200px;font-size:16px}.patient-field{border-left:1px solid var(--line);padding-left:30px;margin-left:25px}.patient select{padding:0;border:0;font-weight:700}.draft{margin-left:auto;font-size:11px;color:#a37626;background:#fff6e6;border-radius:20px;padding:7px 14px}.workspace{display:grid;grid-template-columns:265px 1fr;gap:24px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:12px;padding:22px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.section-title h2{font:700 16px Manrope,sans-serif;margin:0}.section-title p{font-size:11px;margin:5px 0 0}.section-title>span{color:#b7c6d5;font-size:12px}.catalog>input{width:100%;background:#f7f9fb;margin-bottom:14px}.procedure{display:flex;align-items:center;width:100%;text-align:left;border:1px solid transparent;background:white;padding:10px;border-radius:8px;gap:12px;margin:4px 0;color:#536579}.procedure.active{border-color:#b1dfdb;background:#eff9f7;color:#007e79}.procedure .symbol{background:#f0f4f8;width:32px;height:32px;border-radius:8px;display:grid;place-items:center;font-size:21px}.procedure small{letter-spacing:0;font-size:10px;margin:2px 0 0}.custom{border-top:1px solid var(--line);margin-top:18px;padding-top:20px}.custom>input{width:100%;margin:3px 0 14px}.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.two label{font-size:10px;color:#7b8898}.two input,.two select{width:100%;margin-top:6px}.full{width:100%;background:var(--teal)}.helper{font-size:11px;min-height:20px;margin:14px 0}#message{font-size:11px;color:var(--teal)}.right{display:grid;gap:24px}.chart{padding-bottom:15px}.teeth{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:3px;touch-action:none;user-select:none}.tooth{position:relative;background:transparent;border:1px solid transparent;border-radius:9px;padding:5px 1px;color:#93a2b3;touch-action:none}.tooth svg{width:100%;max-width:43px;height:69px;display:block;margin:auto;overflow:visible}.tooth path{fill:#f6f8fb;stroke:#adb9c7;stroke-width:1.2}.tooth .root{fill:#e7edf4}.tooth span{font-size:10px;display:block;margin:3px}.tooth.planned path{fill:#d9f0eb;stroke:#66aaa0}.tooth.selected{background:#e4f5f2;border-color:#7ac9bd}.tooth.selected path{fill:#b7e3dc;stroke:#008d8b}#upperTeeth svg{transform:rotate(180deg)}.arch-head{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:2px;color:#a6b1be;margin-bottom:8px}.text-btn{border:0;background:none;color:var(--teal);font-size:10px;padding:5px}.midline{display:flex;align-items:center;gap:12px;margin:14px 0;color:#aab5c1;font-size:8px;letter-spacing:1.5px}.midline i{height:1px;background:var(--line);flex:1}.chart-footer{display:flex;justify-content:space-between;align-items:center;margin-top:14px;font-size:10px;color:#8a97a5;gap:10px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 4px 0 12px}.dot.selected{background:#008d8b}.dot.planned{background:#b7e3dc}.stage-head{display:flex;align-items:center;gap:8px;background:#f3f6fa;border-radius:7px;padding:10px 12px;margin:15px 0 5px}.stage-number{background:white;color:var(--teal);border-radius:5px;padding:5px 8px;font-size:10px}.stage-head input{background:transparent;border:0;padding:3px;font-weight:600;flex:1;width:80px}.stage-head .duration{font-size:10px;font-weight:400;flex:0 1 140px}.icon-btn{border:0;background:none;color:#99a6b6;padding:4px 6px;font-size:14px}.line-item{display:grid;grid-template-columns:1fr 115px 90px 50px 28px;gap:8px;align-items:center;border-bottom:1px solid #f0f3f7;padding:12px 10px}.line-item strong{font-size:12px}.line-item small{letter-spacing:0;font-size:10px;margin:3px 0 0}.line-item input{font-size:11px;width:100%;padding:6px}.line-item select{font-size:10px;padding:6px;width:100%}.line-item .amount{font-size:12px;text-align:right}.move{display:flex}.empty{padding:15px;color:#9aa6b4;font-size:11px}.total{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);margin-top:20px;padding-top:20px}.total strong{font:800 27px Manrope;color:var(--navy)}.total p{font-size:10px}footer{display:flex;justify-content:space-between;font-size:10px;color:#94a0ae;margin-top:25px}dialog{border:0;border-radius:14px;padding:0;width:min(1100px,95vw);max-height:94vh;background:#e8edf2}dialog::backdrop{background:#09204499;backdrop-filter:blur(5px)}.modal-toolbar{position:sticky;top:0;z-index:1;background:white;padding:16px 24px;display:flex;align-items:center;gap:15px;box-shadow:0 1px 0 var(--line)}.modal-toolbar div{margin-right:auto}.modal-toolbar small{margin:4px 0 0;letter-spacing:0}.modal-toolbar label{font-size:11px}#paper{margin:30px auto;background:white;max-width:790px;min-height:950px;padding:55px;box-shadow:0 8px 40px #102b4610}.quote-brand{display:flex;justify-content:space-between;color:var(--navy);align-items:center}.quote-brand b{font:800 30px Manrope;letter-spacing:-1px}.quote-brand span{font-size:9px;letter-spacing:2px}.quote-hero{background:var(--navy);color:white;padding:35px;margin:35px -55px 30px;border-right:8px solid #55c7b9}.quote-hero small{color:#92c8d0}.quote-hero h2{font:700 32px Manrope;margin:12px 0}.quote-hero p{color:#b9cbe2;font-size:12px}.quote-meta{display:flex;justify-content:space-between;font-size:12px;margin-bottom:30px}.quote-stage{margin:25px 0}.quote-stage h3{font-size:14px;border-bottom:2px solid var(--teal);padding-bottom:12px}.quote-stage h3 span{float:right;font-size:10px;color:#84909e;font-weight:400}.quote-row{display:flex;justify-content:space-between;border-bottom:1px solid var(--line);padding:12px 0;font-size:12px;gap:20px}.quote-row small{letter-spacing:0;margin-top:5px}.quote-sum{text-align:right;padding:22px;background:#f2f7f9;margin-top:25px}.quote-sum b{font:800 30px Manrope;color:var(--navy)}.quote-note{font-size:10px;margin-top:25px;line-height:1.7;color:#8190a0}.quote-footer{border-top:1px solid var(--line);margin-top:45px;padding-top:20px;color:var(--teal);font-size:10px}.minimal .quote-hero{background:#f5f7f9;color:var(--navy);border-right:0}.minimal .quote-hero p{color:#7c8b9d}
@media(min-width:1450px){.workspace{grid-template-columns:290px 1fr}.teeth svg{height:85px}}@media(max-width:1000px){main{padding:25px 20px}header{padding:0 20px}.wordmark span{display:none}.workspace{grid-template-columns:220px 1fr;gap:15px}.panel{padding:15px}.patient-field{margin-left:0;padding-left:15px}.line-item{grid-template-columns:1fr 80px 75px 25px}.move{display:none}.teeth{gap:0}.tooth svg{height:52px}.chart-footer>div{display:none}}@media(max-width:720px){.rail{display:none}header,main{margin-left:0}header{height:65px}.demo{font-size:8px}.heading{align-items:flex-start}.heading h1{font-size:25px}.heading p{font-size:11px}.heading .primary{padding:12px;font-size:11px}.patient{flex-wrap:wrap;padding:15px;gap:12px}.patient-field{border:0;padding:0}.patient-field strong{font-size:11px}.patient input{width:150px}.workspace{display:flex;flex-direction:column}.catalog,.right{width:100%}#procedures{display:grid;grid-template-columns:repeat(3,1fr)}.procedure{font-size:10px;padding:6px;gap:5px}.procedure .symbol{display:none}.custom{display:grid;grid-template-columns:1fr 1fr;gap:10px}.custom>small{grid-column:1/-1}.custom>input{margin:0}.custom .helper{margin:0}.custom #message{grid-column:1/-1}.teeth svg{height:45px}.tooth span{font-size:8px}.section-title p{font-size:10px}.line-item{padding:10px 0;grid-template-columns:1fr 70px 68px 22px;gap:5px}.line-item strong{font-size:11px}.stage-head .duration{max-width:95px}.total strong{font-size:22px}footer{gap:20px;font-size:9px}.modal-toolbar{padding:12px;flex-wrap:wrap}.modal-toolbar div{width:55%}.modal-toolbar .primary{font-size:11px}#paper{padding:25px;margin:12px}.quote-hero{margin:25px -25px;padding:25px}.quote-hero h2{font-size:25px}.quote-brand span{font-size:7px}.quote-meta{gap:12px;font-size:10px}}
@media print{body>*:not(dialog){display:none!important}dialog{display:block!important;position:static;max-height:none;width:100%;background:white;overflow:visible}.modal-toolbar{display:none}#paper{box-shadow:none;margin:0;max-width:none;padding:30px;min-height:0}.quote-hero{margin:25px -30px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.quote-stage{break-inside:avoid}@page{size:A4;margin:12mm}}
.tooth.planned path{fill:var(--tooth-fill);stroke:var(--tooth-stroke)}.tooth.selected{box-shadow:inset 0 0 0 2px #008d8b}.tooth.selected path{fill:var(--tooth-fill,#b7e3dc);stroke:var(--tooth-stroke,#008d8b)}.tooth-badges{display:flex;justify-content:center;flex-wrap:wrap;gap:2px;min-height:36px;align-content:start;pointer-events:none}.treatment-badge{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;border-radius:5px;font-size:10px;line-height:1;font-weight:700;color:var(--mark);background:var(--mark-bg);border:1px solid color-mix(in srgb,var(--mark) 30%,transparent)}.treatment-legend{display:flex;flex-wrap:wrap;gap:9px 16px;border-top:1px solid var(--line);padding-top:14px;margin-top:12px;color:#66788b;font-size:10px}.treatment-legend>span{display:inline-flex;align-items:center;gap:5px}@media(max-width:720px){.tooth-badges{min-height:46px}.tooth-badges .treatment-badge{width:13px;height:14px;font-size:8px;border-radius:3px}.treatment-legend{gap:8px 12px;font-size:9px}}
.tooth{display:flex;flex-direction:column;align-items:center;justify-content:flex-start}.tooth svg{flex-shrink:0;margin:0 auto}.tooth-badges{width:100%}
.quote-chart{margin:28px 0 34px;border:1px solid var(--line);border-radius:10px;padding:18px;break-inside:avoid}.quote-chart h3{margin:0;font-size:14px;color:var(--navy)}.quote-chart>p{font-size:10px;margin:6px 0 16px}.quote-chart .tooth{cursor:default}.quote-chart .tooth svg{height:56px}.quote-chart .tooth-badges{min-height:35px}.quote-chart .midline{margin:9px 0}.quote-chart .treatment-legend{font-size:9px;gap:7px 12px}.quote-chart .treatment-badge{print-color-adjust:exact;-webkit-print-color-adjust:exact}.quote-chart .tooth.planned path{print-color-adjust:exact;-webkit-print-color-adjust:exact}@media(max-width:720px){.quote-chart{padding:10px}.quote-chart .tooth svg{height:38px}.quote-chart .treatment-legend{font-size:8px}}@media print{.quote-chart{break-inside:avoid;page-break-inside:avoid}.quote-chart .tooth svg{height:56px}.quote-chart .treatment-badge{width:17px;height:17px;font-size:10px}.quote-chart .tooth-badges{min-height:36px}.quote-chart .treatment-legend{font-size:9px}}
.mouth-model{margin:18px 0 22px;border:1px solid #ebe7e1;border-radius:12px;padding:12px;background:#fff;break-inside:avoid}.mouth-model>svg{display:block;width:100%;height:auto;font-family:'DM Sans',sans-serif}.mouth-model .treatment-legend{margin:8px 0 0;font-size:10px}.model-note{font-size:9px!important;margin:9px 0 0!important;color:#9a9994!important}.quote-stage{break-inside:auto}@media print{.mouth-model{break-inside:avoid;page-break-inside:avoid;print-color-adjust:exact;-webkit-print-color-adjust:exact}.quote-stage{break-inside:avoid;page-break-inside:avoid}.quote-stage+.quote-stage{break-before:page}.mouth-model>svg{max-height:330px}.quote-row{break-inside:avoid}}
#clinicSetup{width:min(1150px,96vw);background:white;max-height:94vh}.setup-shell{display:grid;grid-template-columns:300px 1fr;min-height:660px}.setup-nav{padding:35px 28px;background:#edf3f6;display:flex;flex-direction:column}.setup-nav .wordmark{margin-bottom:55px}.setup-nav .wordmark span{display:block;margin:8px 0 0;font-size:9px}.setup-nav h2{font:800 27px Manrope;letter-spacing:-1px;color:var(--navy);line-height:1.4;margin:13px 0}.setup-nav p{font-size:12px}.setup-nav nav{display:grid;gap:9px;margin-top:32px}.setup-nav nav button{border:0;background:none;display:flex;align-items:center;text-align:left;gap:12px;padding:11px 8px;border-radius:9px;color:#7a8b9e;font-size:12px}.setup-nav nav b{width:25px;height:25px;border:1px solid #ced9e2;border-radius:50%;display:grid;place-items:center;font-size:10px}.setup-nav nav button.active{background:white;color:var(--navy);box-shadow:0 4px 20px #09295a08}.setup-nav nav button.active b{background:var(--teal);color:white;border:0}.setup-nav>small{margin-top:auto;padding-top:40px;letter-spacing:0;line-height:1.6}.setup-main{padding:28px 34px;min-width:0}.setup-top{display:flex;justify-content:space-between;align-items:center}.setup-top>span{color:var(--teal);font-size:10px;letter-spacing:2px}.setup-main>h2{font:800 25px Manrope;color:var(--navy);margin:26px 0 8px}.setup-subtitle{font-size:12px;margin-bottom:26px}.setup-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.setup-field{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#5d6e82;margin-bottom:16px}.setup-field input,.setup-field textarea{width:100%;font-size:13px}.setup-field textarea{font:13px 'DM Sans',sans-serif;resize:vertical;border:1px solid var(--line);border-radius:8px;padding:12px;line-height:1.6}.setup-field small{letter-spacing:0}.logo-upload{display:flex;align-items:center;gap:20px;margin-bottom:27px;border:1px dashed #cad7e1;border-radius:12px;padding:20px;background:#fafcfd}.logo-upload>div{width:80px;height:80px;background:white;border:1px solid var(--line);border-radius:10px;display:grid;place-items:center;font-size:30px;color:#9cb7c8}.logo-upload img{max-width:72px;max-height:72px;object-fit:contain}.logo-upload p{font-size:10px;margin:6px 0 14px}.upload-label{cursor:pointer;display:inline-block}.setup-info{font-size:10px;background:#f2f7f8;padding:12px;border-radius:8px;line-height:1.7;margin-top:20px}.setup-actions{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:20px;margin-top:20px}.setup-inline{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.setup-inline p{font-size:11px}.setup-inline label{font-size:10px;white-space:nowrap}.setup-inline select{margin-top:5px;display:block;width:100%}.setup-treatment,.treatment-table-head{display:grid;grid-template-columns:30px 1fr 90px 105px 20px;align-items:center;gap:8px;margin:8px 0}.setup-treatment input,.setup-treatment select{width:100%;padding:9px 6px;font-size:11px}.setup-treatment input[type=checkbox]{accent-color:var(--teal);width:16px}.treatment-table-head{color:#97a1af;font-size:9px;letter-spacing:.3px;margin-bottom:12px}.treatment-table{margin-bottom:18px}.color-fields{display:flex;gap:20px}.color-fields input{height:48px;padding:4px;width:100px}.setup-grid h3{font-size:13px;margin:0 0 18px}.swatches{display:flex;gap:10px;margin-bottom:32px}.swatches button{width:38px;height:38px;border:3px solid white;box-shadow:0 0 0 1px #dce3e9;border-radius:50%}.theme-choices{display:grid;gap:10px}.theme-choice{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:9px;padding:15px;font-size:12px}.theme-choice:has(input:checked){border-color:var(--teal);background:#f2f9f8}.theme-choice input{accent-color:var(--teal)}.theme-choice small{font-size:10px;letter-spacing:0;margin:5px 0 0}.clinic-mini{background:white;box-shadow:0 8px 40px #09295a12;border:1px solid var(--line);padding:23px;border-radius:8px;min-height:350px}.mini-brand{display:flex;align-items:center;gap:9px;color:var(--clinic-primary);overflow-wrap:anywhere}.mini-brand img{max-width:40px;max-height:35px}.mini-hero{padding:22px;margin:22px -23px;background:var(--clinic-primary);color:white;border-right:5px solid var(--clinic-accent)}.mini-hero small{color:#ffffffaa;font-size:7px;letter-spacing:1px}.mini-hero h3{font:700 22px Manrope;margin:12px 0}.mini-hero p{color:#ffffffbb;font-size:10px}.mini-minimal .mini-hero{background:#f4f7f9;color:var(--clinic-primary)}.mini-minimal .mini-hero p,.mini-minimal .mini-hero small{color:#7c8b9d}.mini-lines span{font-size:10px}.mini-lines i{display:block;height:1px;background:var(--line);margin:16px 0}.mini-lines div{font-size:10px;display:flex;justify-content:space-between;margin:25px 0}#setupError{color:#c44d61;font-size:12px}.quote-clinic-logo{max-width:90px;max-height:55px;object-fit:contain;margin-right:14px}.quote-brand{justify-content:flex-start;gap:12px}.quote-brand>b{font-size:24px;overflow-wrap:anywhere}.quote-brand>span{margin-left:auto}.clinic-terms{margin-top:30px;border-top:1px solid var(--line);padding-top:15px}.clinic-terms h3{font-size:14px}.clinic-terms h4{font-size:11px;margin:15px 0 4px}.clinic-terms p{font-size:10px;white-space:normal;overflow-wrap:anywhere}.quote-hero{border-right-color:var(--teal)}@media(max-width:850px){.setup-shell{grid-template-columns:1fr}.setup-nav{padding:18px}.setup-nav .wordmark{margin:0}.setup-nav>.eyebrow,.setup-nav>h2,.setup-nav>p,.setup-nav>small{display:none}.setup-nav nav{display:flex;margin-top:16px;gap:4px;flex-wrap:wrap}.setup-nav nav button{font-size:10px;padding:6px}.setup-main{padding:20px}.setup-grid{gap:12px}.setup-treatment,.treatment-table-head{grid-template-columns:22px 1fr 70px 85px 16px;gap:4px}header #clinicSettings{display:block;font-size:10px;padding:8px}header{gap:10px}.demo{display:none}}@media(max-width:500px){.setup-grid{grid-template-columns:1fr}.setup-inline{display:block}.setup-treatment input,.setup-treatment select{font-size:10px}.setup-nav nav button{font-size:9px}.setup-nav nav b{width:20px;height:20px}}
.price-import{border:1px dashed #b5cbd8;background:#f8fbfc;border-radius:12px;padding:18px;margin-bottom:25px;display:flex;align-items:center;gap:15px;flex-wrap:wrap}.price-import>div:first-child{flex:1}.price-import strong{font-size:12px;color:var(--navy)}.price-import p{font-size:10px}.price-import .upload-label{white-space:nowrap}#priceImportContent{width:100%}#priceFileError{width:100%;color:#c44d61;margin:0}.import-source{display:flex;align-items:center;justify-content:space-between;padding:15px 0;border-top:1px solid var(--line)}.import-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}.import-mapping{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:15px 0}.import-controls label,.import-mapping label{font-size:10px;color:#718093}.import-controls select,.import-mapping select{display:block;width:100%;font-size:11px;margin-top:6px}.import-summary{padding:10px;background:#eaf3f2;border-radius:6px;color:#257c70}.import-preview-scroll{overflow:auto;max-height:320px;border:1px solid var(--line);border-radius:7px}.import-preview{border-collapse:collapse;width:100%;font-size:10px;background:white}.import-preview th{position:sticky;top:0;background:#edf2f6;text-align:left;font-weight:600}.import-preview td,.import-preview th{padding:10px;border-bottom:1px solid var(--line);min-width:50px}.import-preview td:last-child{min-width:110px}.import-preview small{letter-spacing:0;font-size:9px;white-space:nowrap}.import-invalid td{background:#fff3f3;color:#ad3c4e}.import-footer{margin-top:14px;display:flex;align-items:center;gap:15px;justify-content:space-between}.import-footer p{max-width:320px}.import-footer button{font-size:11px;white-space:nowrap}button:disabled{cursor:not-allowed;opacity:.45;transform:none}.setup-treatment,.treatment-table-head{grid-template-columns:24px minmax(100px,1fr) 76px 65px 95px 18px}@media(max-width:850px){.setup-treatment,.treatment-table-head{grid-template-columns:22px minmax(90px,1fr) 68px 60px 82px 16px}}@media(max-width:500px){.treatment-table{overflow-x:auto}.setup-treatment,.treatment-table-head{min-width:470px}.import-mapping{grid-template-columns:1fr}.import-footer{align-items:stretch;flex-direction:column}.import-controls{grid-template-columns:1fr}}

.import-templates{width:100%;display:flex;flex-wrap:wrap;gap:10px}.import-templates a{display:inline-flex;align-items:center;text-decoration:none;font-size:11px}.import-templates p{width:100%;margin:0;line-height:1.6}

.bilingual-treatment label,.bilingual-stage label{display:block;font-size:10px;color:#718093}.bilingual-treatment input,.bilingual-stage input{width:100%;margin:3px 0 7px}.bilingual-stage{min-width:190px}.bilingual-stage small{font-size:9px;letter-spacing:0}.stage-head{align-items:start}.setup-treatment{align-items:center}
.import-filter{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;margin:12px 0}.import-visible-count{color:#617184}.import-preview td{vertical-align:top}.import-preview td>small{display:block;margin-top:5px;color:#758393}.import-delta{display:grid;gap:4px;min-width:100px;white-space:normal}.import-delta small{color:#6a7787}.import-delta span{color:#6a7787}.import-delta b{color:#258374}.import-delta strong{color:#176b5f;font-size:11px}.import-empty{padding:20px;text-align:center}
.import-selection{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:12px 0}.import-selection button{font-size:11px}.import-selection span{font-size:12px;font-weight:600}.import-selection p{width:100%;margin:0}.import-preview input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}
.platform-brand{display:flex;align-items:center;gap:16px}.platform-brand img{display:block;width:168px;height:auto;object-fit:contain}.platform-brand span{margin:0}.setup-nav .platform-brand{align-items:flex-start;flex-direction:column;gap:8px}.setup-nav .platform-brand img{width:190px;max-width:100%}.rail .platform-rail-logo{display:flex;align-items:center;justify-content:center;width:64px;height:76px;margin:10px 0 20px}.platform-rail-logo img{width:61px;height:auto}@media(max-width:720px){.platform-brand img{width:126px}.setup-nav .platform-brand img{width:160px}}
.clinic-gateway{padding:35px;background:#fff}.clinic-gateway>.platform-brand{margin-bottom:28px}.clinic-gateway h2{color:var(--navy)}.clinic-gateway p{color:#738295;font-size:12px}.clinic-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin:24px 0}.clinic-card{border:1px solid var(--line);border-radius:12px;padding:22px;background:#f8fafc;display:flex;flex-direction:column;text-align:left;align-items:flex-start;gap:12px;color:var(--navy)}.clinic-card img{width:110px;height:55px;object-fit:contain;object-position:left}.clinic-card small{letter-spacing:0}.clinic-card>span:last-child{font-size:11px;color:var(--teal)}.clinic-initial{font-size:30px;font-weight:700}.clinic-new{display:flex;align-items:end;gap:15px;border-top:1px solid var(--line);padding-top:22px}.clinic-gateway label{display:block;font-size:12px}.clinic-gateway label input{display:block;margin:8px 0;width:100%}#clinicPickerDialog,#patientPlansDialog{width:min(900px,95vw)}header{gap:10px;flex-wrap:wrap;height:auto;min-height:76px;padding-top:10px;padding-bottom:10px}header .demo{display:none}header .ghost{font-size:10px}header .platform-brand img{width:145px}#clinicPicker{max-width:200px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:720px){header>#clinicPicker,header>#planPicker,header>#clinicSettings{display:block}.clinic-new{align-items:stretch;flex-direction:column}.clinic-gateway{padding:22px}}
.backup-controls{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}.backup-controls h3{font-size:15px}.backup-controls .upload-label{display:inline-block;margin:8px}.backup-controls button{font-size:11px}.backup-controls p{line-height:1.6}#clinicBackupPreview{padding:0 12px;background:#f3f7fa;border-radius:8px}#clinicBackupPreview h4{padding-top:16px}#clinicBackupPreview ul{font-size:12px;line-height:1.8}#clinicBackupPreview button{margin:8px 8px 15px 0}#clinicBackupStatus{color:var(--teal)}
body.auth-locked>*:not(#loginScreen){display:none!important}#loginScreen{min-height:100vh;background:linear-gradient(140deg,#09295a,#0c626e);display:grid;place-items:center;padding:25px}.login-card{width:min(440px,100%);padding:38px;background:white;border-radius:20px;box-shadow:0 20px 90px #00152d55}.login-logo{width:225px;max-width:100%;display:block;margin-bottom:25px}.login-card h1{font-size:28px;color:var(--navy)}.login-card p{font-size:12px;line-height:1.7;color:#6e7d8b}.login-card label{display:block;font-size:12px;margin:18px 0}.login-card input{display:block;width:100%;margin-top:8px}.login-card form>.primary{width:100%}.login-card>small{display:block;font-size:10px;margin-top:20px;color:#82909b}#loginError{color:#a54252}.login-card details{font-size:12px;margin:18px 0}.admin-account{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:15px 0;padding:15px;border:1px solid var(--line);border-radius:10px}.admin-account strong{grid-column:1/-1;font-size:12px}.admin-account input{font-size:11px}.admin-access h3{font-size:14px}.setup-required>main,.setup-required>header,.setup-required>.rail{visibility:hidden}[hidden]{display:none!important}

.privacy-notice{padding:12px 18px;background:#fff5df;border:1px solid #ead29c;border-radius:10px;color:#72501e;font-size:12px;line-height:1.6;margin:12px 0}.login-card .privacy-notice{font-size:12px}#planNumber{font-size:12px;overflow-wrap:anywhere}

.ui-language-picker{display:inline-flex;align-items:center;gap:7px;font-size:11px;color:#687484;white-space:nowrap}.ui-language-picker select{width:auto!important;max-width:130px;padding:7px 9px;border:1px solid #d6dce4;border-radius:7px;background:white;font:inherit;color:#26313b}.login-card>.ui-language-picker{display:flex;justify-content:flex-end;margin-bottom:14px}.setup-top{flex-wrap:wrap;gap:10px}.modal-toolbar{flex-wrap:wrap}header{flex-wrap:wrap;height:auto;min-height:76px;gap:9px}#clinicPickerDialog .ui-language-picker,#patientPlansDialog .ui-language-picker{display:flex;justify-content:flex-end;margin-bottom:12px}@media(max-width:850px){header>.ui-language-picker{margin-left:auto}.ui-language-picker span{font-size:10px}}

/* Let chart content shrink inside the single-column mobile grid. */
.workspace>.right,.right>.panel{min-width:0}
@media(max-width:500px){.chart .section-title{flex-wrap:wrap}.chart-footer{flex-wrap:wrap}.total{gap:12px;flex-wrap:wrap}footer{gap:12px;flex-wrap:wrap}}

.discount-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-top:16px}.discount-controls label{font-size:12px;display:grid;gap:6px;flex:1;min-width:100px}.discount-controls input,.discount-controls select{width:100%}.discount-controls>strong{padding-bottom:12px}.net-total{margin-top:14px}.quote-discount{background:transparent;margin-top:0;padding-top:12px;padding-bottom:12px}.quote-discount b{font-size:20px}.quote-net{margin-top:0}

.admin-magic-link{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-width:0}.admin-magic-link input{width:100%;min-width:0}.admin-magic-link small{grid-column:1/-1;line-height:1.6;color:#6e7d8b}


.catalog-tabs{display:flex;gap:6px;margin-bottom:10px}.catalog-tabs [aria-pressed=true]{background:var(--navy);color:white}.procedure-entry{display:flex;align-items:center;gap:3px}.procedure-entry .procedure{flex:1;min-width:0}.favorite-toggle{border:0;background:transparent;color:#a16b16;font-size:24px;padding:8px}.stage-fields{flex:1;min-width:150px}.stage-fields label,.stage-time{display:block;font-size:11px}.stage-fields input{display:block;width:100%;padding:8px;background:white}.stage-fields details{margin-top:8px}.stage-fields summary{cursor:pointer;font-size:11px}.stage-time{flex:0 1 220px}.stage-head .stage-time .duration{display:block;width:100%;max-width:none;background:white;padding:8px;margin-top:4px}.stage-head{flex-wrap:wrap}.stage-head>button{white-space:nowrap}#newPatient{white-space:nowrap}

.procedure-entry{min-width:0;max-width:100%}.procedure-entry .procedure{overflow-wrap:anywhere;word-break:normal}.procedure-entry .procedure>div{min-width:0;flex:1}.procedure-entry .symbol{flex-shrink:0}.favorite-toggle{flex:0 0 32px;width:32px;padding:6px 2px}

.clinic-translations{grid-column:1/-1}.clinic-translations summary,.bilingual-treatment summary{cursor:pointer;padding:10px 0;color:var(--teal)}.arch-head{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}.arch-head>span:last-child{text-align:right}

header{position:sticky;top:0;z-index:30}.active-clinic-identity{display:flex;align-items:center;gap:12px;flex:1 1 100%;order:-1;padding:4px 0 10px;border-bottom:1px solid var(--line)}.active-clinic-identity[hidden]{display:none}.active-clinic-logo{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.active-clinic-logo img{width:100%;height:100%;object-fit:contain;padding:3px}.active-clinic-logo span{font-size:24px;font-weight:700;color:var(--navy)}.active-clinic-identity>div:last-child{min-width:0}.active-clinic-identity small{font-size:10px;letter-spacing:.6px;margin:0 0 4px;color:var(--teal)}.active-clinic-identity strong{display:block;font-size:18px;color:var(--navy);overflow-wrap:anywhere}@media(max-width:600px){.active-clinic-identity{gap:9px;padding-bottom:7px}.active-clinic-logo{width:40px;height:40px;flex-basis:40px}.active-clinic-identity strong{font-size:16px}}

/* Keep platform branding out of the clinic toolbar. */
header>.platform-brand{position:absolute;right:40px;top:22px;margin:0;display:flex;align-items:center;justify-content:flex-end;pointer-events:none}header>.platform-brand img{width:112px;height:auto;max-height:36px;object-fit:contain}header>.platform-brand>span{display:none}header>.active-clinic-identity{padding-right:145px}header>.ui-language-picker{margin-left:0}@media(max-width:900px){header>.platform-brand{right:20px;top:22px}}@media(max-width:600px){header>.platform-brand{right:20px;top:25px}header>.platform-brand img{width:86px;max-height:28px}header>.active-clinic-identity{padding-right:100px}}

.preview-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}#animationPreview{width:min(1120px,96vw);max-width:96vw;border:0;border-radius:18px;padding:0;max-height:94vh;overflow:auto;background:white;color:var(--ink)}#animationPreview::backdrop{background:#06172bc9}.animation-toolbar{display:flex;justify-content:space-between;align-items:center;padding:16px 22px;border-bottom:1px solid var(--line)}.animation-clinic{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.animation-clinic img{width:54px;height:38px;object-fit:contain}.animation-clinic span{color:var(--muted);font-size:12px}.animation-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px}.animation-viewport{position:relative;height:470px;background:radial-gradient(ellipse at center,#fff,#e9f0f4);overflow:hidden}.animation-viewport canvas{width:100%;height:100%;display:block;touch-action:none}.animation-badge{position:absolute;top:20px;left:20px;padding:7px 11px;background:#ffffffd9;color:#176761;border-radius:20px;font-weight:700;font-size:11px}.animation-subtitle{position:absolute;bottom:18px;left:20px;right:20px;margin:0;padding:15px 18px;border-radius:12px;background:#102a40ed;color:white;font-size:15px;text-align:center;line-height:1.5;pointer-events:none}.animation-sidebar{padding:20px;border-left:1px solid var(--line);min-width:0}.animation-sidebar h2{font-size:17px;margin-top:0}.animation-sidebar select{width:100%}.animation-sidebar>p{font-size:11px}.animation-chapters{display:grid;gap:5px;margin:14px 0}.animation-chapter{font-size:11px;text-align:left;line-height:1.5;border:1px solid transparent;border-radius:7px;background:#f4f6f8;padding:9px;color:#526574}.animation-chapter.active{background:#e1f5f0;border-color:#95c6be;color:#11685e}.animation-disclaimer{color:#7a8490!important;font-size:10px!important}.animation-controls{display:flex;gap:12px;align-items:center;padding:16px 20px;border-top:1px solid var(--line)}.animation-controls input{flex:1;min-width:60px;padding:0}.animation-controls span{font-size:11px;white-space:nowrap}@media(max-width:700px){.animation-layout{grid-template-columns:1fr}.animation-viewport{height:350px}.animation-sidebar{border-left:0;border-top:1px solid var(--line);padding:15px}.animation-chapters{grid-template-columns:1fr 1fr}.animation-controls{gap:7px;flex-wrap:wrap}.animation-controls button{padding:9px;font-size:11px}.animation-subtitle{font-size:12px;left:10px;right:10px;bottom:10px}.animation-toolbar{padding:12px}.preview-actions{justify-content:flex-end}.preview-actions button{font-size:11px;padding:10px}}
@media(min-width:701px){.animation-sidebar{max-height:min(530px,calc(94vh - 142px));overflow:auto}.animation-viewport{height:min(470px,calc(94vh - 142px))}}.animation-controls{position:sticky;bottom:0;background:white;z-index:2}
.animation-points{color:#176761;font-size:11px;line-height:1.6;overflow-wrap:anywhere}.animation-tooth-labels{position:absolute;inset:0;pointer-events:none}.animation-tooth-number{position:absolute;transform:translate(-50%,-50%);font-size:10px;font-weight:700;padding:3px 5px;border-radius:5px;background:#143d57e8;color:white;box-shadow:0 1px 4px #0002}
.animation-number-toggle{display:flex;align-items:center;gap:8px;font-size:11px;color:#526574;margin:12px 0}.animation-number-toggle input{width:15px;height:15px;margin:0;padding:0}

/* Keep every authorised clinic action reachable on narrow screens. */
@media(max-width:720px){header{padding:10px 16px;gap:8px}header>.ghost:not([hidden]){display:inline-flex;align-items:center;justify-content:center;min-height:38px;flex:1 1 auto;font-size:11px}header>[hidden]{display:none!important}.heading{flex-direction:column;gap:12px}.preview-actions{width:100%;justify-content:stretch}.preview-actions>button{flex:1;min-height:42px}.animation-launch-status{font-size:12px}.animation-viewport{height:min(350px,44dvh)}}
.animation-launch-status{padding:10px 14px;background:#eaf7f4;border:1px solid #b7dfd9;border-radius:8px;color:#176761}.animation-launch-status[hidden]{display:none}

header>#logout{margin-left:auto}

.rail button{border:0;color:white}.pdf-archive-search{display:flex;align-items:end;gap:12px;margin:16px 0}.pdf-archive-search input{display:block;margin:8px 0 0}.pdf-archive-list{display:grid;gap:10px;margin:16px 0}.pdf-archive-card{display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid var(--line);border-radius:10px;padding:16px;background:#f8fafc}.pdf-archive-card small{letter-spacing:0;line-height:1.5;margin-top:5px}.pdf-archive-actions{display:flex;gap:8px;flex-shrink:0}.pdf-archive-actions a{text-decoration:none}.pdf-archive-pagination{display:flex;gap:8px;margin:12px 0}@media(max-width:600px){.pdf-archive-card{align-items:flex-start;flex-direction:column}.pdf-archive-search{align-items:stretch;flex-direction:column}.pdf-archive-actions{width:100%}.pdf-archive-actions a{flex:1;text-align:center}}

/* Quotes must accommodate longer German and Russian labels without overlapping amounts. */
.quote-meta{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) minmax(0,1fr);gap:18px}.quote-meta>div{min-width:0;overflow-wrap:anywhere}.quote-row>div{min-width:0;overflow-wrap:anywhere}.quote-row>strong{flex-shrink:0;white-space:nowrap}.quote-brand>span{max-width:42%;text-align:right;line-height:1.5;overflow-wrap:anywhere}.quote-stage h3{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}.quote-stage h3 span{float:none}.quote-sum{overflow-wrap:anywhere}@media(max-width:600px){.quote-meta{grid-template-columns:1fr;gap:12px}.quote-brand{flex-wrap:wrap}.quote-brand>span{max-width:100%;margin-left:0;text-align:left}.quote-row{gap:12px}}

.animation-journey{display:flex;gap:8px;list-style:none;margin:0;padding:10px 20px;border-bottom:1px solid var(--line);background:#fff;overflow-x:auto;flex-shrink:0}.animation-journey li{flex:1;min-width:90px;padding:8px 12px;background:#f1f4f6;border-radius:8px;color:#697985;font-size:12px;text-align:center;line-height:1.4}.animation-journey li.active{background:#d9f3ee;color:#12695f;box-shadow:inset 0 0 0 1px #7bc6b9;font-weight:700}.animation-journey li.complete{background:#eef6f3;color:#3c7669}.animation-journey li.complete:before{content:'✓ ';}@media(max-width:700px){.animation-journey{padding:8px 12px;gap:5px}.animation-journey li{padding:7px 8px;font-size:11px;min-width:75px}}
@media(min-width:701px){#animationPreview .animation-viewport{height:min(430px,calc(90vh - 230px))}#animationPreview .animation-sidebar{max-height:min(430px,calc(90vh - 230px));overflow:auto}}

.animation-protocol{padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:5px;font-size:11px}.animation-protocol li{padding:5px 7px;border-radius:6px;background:#edf1f4;color:#637587}.animation-protocol li.active{background:#d9f3ee;color:#12695f;font-weight:700}

#animationPreview .animation-protocol{margin:0;padding:8px 20px;border-bottom:1px solid var(--line)}#animationPreview .animation-protocol[hidden]{display:none}@media(min-width:701px){#animationPreview .animation-viewport{height:min(390px,calc(90vh - 270px))}#animationPreview .animation-sidebar{max-height:min(390px,calc(90vh - 270px))}}

#animationPreview .animation-subtitle-footer{position:static;flex-shrink:0;margin:8px 20px;padding:12px 16px;background:#20364b;border-radius:10px;color:white;text-align:center;font-size:13px;line-height:1.45;overflow-wrap:anywhere}#animationPreview .animation-viewport{height:min(350px,calc(90dvh - 330px));min-height:220px}#animationPreview .animation-sidebar{max-height:min(350px,calc(90dvh - 330px))}@media(max-width:700px){#animationPreview .animation-subtitle-footer{margin:6px 10px;font-size:12px}#animationPreview .animation-viewport{height:300px;min-height:220px}#animationPreview .animation-sidebar{max-height:220px}}

#animationPreview .animation-sidebar{overflow:auto;min-height:0;overscroll-behavior:contain}

.titanium-bar-badge svg{width:14px;height:14px;display:block}.procedure .symbol:has(svg){color:#346477;background:#e0f1f4;display:inline-flex;align-items:center;justify-content:center;border-radius:6px}.titanium-bar-badge{display:inline-flex;align-items:center;justify-content:center}

/* Shared proposal designs: same clinical content, distinct presentation. */
.theme-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.theme-choice{position:relative;align-items:flex-start;padding:10px;gap:6px}.theme-card{min-width:0;flex:1}.theme-choice input{margin:3px 0}.theme-sample{height:96px;background:#fff;border:1px solid #dde3e8;margin:0 0 12px;padding:12px 7px;display:grid;gap:6px;align-content:start}.theme-sample i{height:5px;width:45%;background:var(--sample-primary)}.theme-sample b{height:28px;background:#edf2f5;border-left:3px solid var(--sample-accent)}.theme-sample span{height:3px;background:#dce3e8}.sample-premium b{background:var(--sample-primary);border:0;border-top:2px solid var(--sample-accent);border-bottom:2px solid var(--sample-accent)}.sample-minimal b{background:#fafafa;border:0;border-bottom:1px solid var(--sample-accent)}
.modern .quote-hero{background:#f4f7f9;color:var(--navy);border-right:0;border-left:8px solid var(--teal)}.modern .quote-hero p,.modern .quote-hero small{color:#596b80}.premium .quote-hero{background:var(--navy);color:var(--hero-ink);border:0;position:relative}.premium .quote-hero:before,.premium .quote-hero:after{content:'';display:block;height:2px;background:var(--teal)}.premium .quote-hero:before{margin-bottom:20px}.premium .quote-hero:after{margin-top:20px}.premium .quote-hero p,.premium .quote-hero small{color:var(--hero-ink)}.minimal .quote-hero{border-bottom:1px solid var(--teal)}.minimal .quote-hero small{color:#596b80}
.mini-modern .mini-hero{background:#f4f7f9;color:var(--clinic-primary);border-right:0;border-left:5px solid var(--clinic-accent)}.mini-modern .mini-hero p,.mini-modern .mini-hero small{color:#596b80}.mini-premium .mini-hero{color:var(--clinic-ink);border-right:0;border-top:2px solid var(--clinic-accent);border-bottom:2px solid var(--clinic-accent)}.mini-premium .mini-hero p,.mini-premium .mini-hero small{color:var(--clinic-ink)}.mini-minimal .mini-hero{border-right:0;border-bottom:1px solid var(--clinic-accent)}
@media(max-width:600px){.theme-choices{grid-template-columns:1fr}.theme-sample{height:65px}.theme-card{display:grid;grid-template-columns:80px 1fr;column-gap:12px}.theme-sample{grid-row:1/3}.theme-choice small{grid-column:2}}

/* Keep video export visible independently of the scrolling treatment list. */
.animation-toolbar{position:sticky;top:0;z-index:5;background:white;flex-wrap:wrap;gap:10px}.animation-toolbar-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.animation-toolbar-actions button{white-space:nowrap}.animation-toolbar #animationExportStatus{flex-basis:100%;margin:0}.animation-toolbar #animationExportStatus:empty{display:none}@media(max-width:700px){.animation-toolbar .animation-clinic{flex:1 1 100%;gap:8px}.animation-toolbar-actions{width:100%;justify-content:space-between}.animation-toolbar-actions #animationDownload{flex:1}.animation-toolbar .animation-clinic img{width:42px;height:30px}}

.animation-language{display:flex;gap:8px;align-items:center;font-size:12px;white-space:nowrap}.animation-language select{width:auto;max-width:130px;padding:8px}.animation-toolbar-actions{flex-wrap:wrap}@media(max-width:700px){.animation-language{flex:1 1 100%;justify-content:space-between}.animation-language select{max-width:180px;flex:1}}

.tooth-mode{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.tooth-mode p{flex-basis:100%;font-size:12px;margin:0;color:var(--muted)}.tooth-mode button[aria-pressed=true]{background:#e1f5f0;border-color:#218477;color:#11685e}.tooth.missing>svg{opacity:.2;stroke-dasharray:3 2}.missing-badge{color:#64748b;background:#edf1f5;padding:0 5px;border:1px dashed #64748b;border-radius:4px}

.payment-plan{border-top:1px solid var(--line);margin-top:20px;padding-top:18px}.payment-plan h3{margin:0}.payment-plan>p{font-size:12px;color:var(--muted);line-height:1.5}.payment-inputs{display:grid;gap:10px}.payment-input-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(130px,180px);gap:12px;align-items:center;padding:12px;background:#f5f8fa;border-radius:8px}.payment-input-row strong,.payment-input-row small{display:block;overflow-wrap:anywhere}.payment-input-row small{margin-top:5px;color:var(--muted);font-size:11px}.payment-input-row label{font-size:11px}.payment-input-row input{width:100%;margin-top:4px}.payment-totals{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px;font-size:12px}.payment-plan .payment-error{color:#b4354c}.payment-plan .payment-balanced{color:#117566}.quote-payment{margin:24px 0;break-inside:avoid}.quote-payment table{width:100%;border-collapse:collapse;font-size:13px;table-layout:fixed}.quote-payment th,.quote-payment td{padding:12px 8px;border-bottom:1px solid #dce3e8;text-align:left;overflow-wrap:anywhere;vertical-align:top}.quote-payment th:last-child,.quote-payment td:last-child{text-align:right}.quote-payment tfoot{font-weight:700}@media(max-width:600px){.payment-plan .section-title{align-items:flex-start;gap:10px;flex-wrap:wrap}.payment-input-row{grid-template-columns:1fr}.quote-payment table{font-size:11px}.quote-payment th,.quote-payment td{padding:8px 4px}}
/* Local operator guidance: visible steps, explicit scope, reversible additions. */
.plan-guide{display:flex;flex-wrap:wrap;gap:8px;padding:16px;margin:0 0 20px;background:#fff;border:1px solid #dce5ed;border-radius:16px}.plan-guide button{display:flex;align-items:center;gap:8px;flex:1;min-width:110px;background:#f2f6fa;color:#344b61;border:1px solid transparent;border-radius:10px;padding:12px}.plan-guide button[aria-current]{background:#e2f3ef;border-color:#79b9ab;color:#145e50}.plan-guide button span{font-weight:700}.plan-guide p{width:100%;margin:4px 0 0;color:#53667b;font-size:13px}.scope-choices{padding:12px;background:#edf7f5;border-radius:12px;margin:12px 0}.scope-choices p{margin:0 0 10px}.scope-choices div{display:flex;gap:8px}.scope-choices button{flex:1;min-height:44px;background:#126c60;color:white;border:0;border-radius:8px;padding:10px}.plan-action-notice{position:fixed;z-index:80;bottom:24px;left:50%;transform:translateX(-50%);width:min(760px,calc(100% - 32px));display:flex;align-items:center;gap:16px;background:#17324b;color:white;padding:14px 18px;border-radius:12px;box-shadow:0 6px 24px #0003}.plan-action-notice[hidden],.scope-choices[hidden]{display:none}.plan-action-notice span{flex:1;font-size:14px}.plan-action-notice button{min-height:44px;white-space:nowrap;background:white;color:#17324b;border:0;border-radius:8px;padding:10px 16px}@media(max-width:600px){.plan-guide{gap:5px;padding:10px}.plan-guide button{min-width:0;flex:1 1 28%;font-size:12px;justify-content:center;padding:10px 5px;min-height:44px}.scope-choices div{flex-wrap:wrap}.scope-choices button{min-width:110px}.plan-action-notice{bottom:12px;padding:12px;gap:8px}.plan-action-notice span{font-size:12px}main{padding-bottom:110px}}
.custom #add[hidden]{display:none}
.scope-choices{grid-column:1/-1;width:100%;box-sizing:border-box}.custom #selectionInfo[hidden]{display:none}
.language-help{display:block!important;font-size:11px;line-height:1.4;color:#5a6c7b;margin-top:4px;font-weight:400;max-width:220px}.mobile-review-dock{display:none}.plan-review-dialog{width:min(540px,calc(100% - 32px));box-sizing:border-box;border:0;border-radius:16px;padding:24px;max-height:85dvh;overflow:auto}.review-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.review-title h2{margin:0}.review-payment{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #dce5ed;padding:12px 0}.review-buttons{display:grid;gap:10px}.plan-review-dialog button{min-height:44px}.plan-review-dialog::backdrop{background:#10263c88}@media(max-width:600px){.mobile-review-dock{display:block;position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;border-top:1px solid #dce5ed;padding:10px 16px calc(10px + env(safe-area-inset-bottom))}.mobile-review-dock button{width:100%;min-height:48px}.plan-action-notice{bottom:calc(82px + env(safe-area-inset-bottom))}.language-help{max-width:160px}.plan-review-dialog{padding:20px}}
.shared-patient-language{display:block;background:#fff;border:1px solid #dce5ed;border-radius:12px;padding:12px 16px;margin:0 0 18px;max-width:360px}.shared-patient-language select{margin-left:12px}.shared-patient-language .language-help{max-width:none}.animation-language strong{display:block;margin-top:4px}
.ui-language-picker:has(.language-help){display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:4px 7px}.ui-language-picker .language-help{grid-column:1/-1;margin-top:0;white-space:normal}
.stage-time{min-width:160px}.stage-time small{display:block;font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px}.stage-time fieldset{margin:12px 0 0;padding:10px;border:1px solid #dce5ed;border-radius:8px;min-width:0}.stage-time legend{font-size:11px;white-space:normal}.stage-time fieldset label{display:block;margin:6px 0}.quote-stage h3{flex-wrap:wrap}.quote-stage h3 span{white-space:normal;line-height:1.5;max-width:100%}
/* Compact operator workspace, local review revision. */
.compact-workspace .rail{width:230px;padding:24px 18px;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:20px;overflow-y:auto}.compact-workspace .rail .logo{margin:0;padding:8px 12px;align-self:flex-start}.compact-workspace .rail .logo img{width:130px}.compact-workspace .rail-icon,.compact-workspace .rail-label,.compact-workspace .rail-bottom{display:none}.rail-actions{display:grid;gap:8px}.rail-actions button,.rail-preferences #logout{width:100%;text-align:left;color:#e9f2ff;border:1px solid #ffffff25;background:#ffffff0b;min-height:44px;font-size:13px;padding:12px;border-radius:9px}.rail-actions button:hover,.rail-preferences #logout:hover{background:#ffffff20}.compact-workspace .rail .plan-guide{display:grid;gap:6px;background:transparent;border:0;padding:0;margin:0}.compact-workspace .rail .plan-guide button{background:transparent;color:#b8cbe4;min-height:44px;padding:11px 12px;font-size:14px;flex:none;justify-content:flex-start}.compact-workspace .rail .plan-guide button[aria-current]{color:#fff;background:#ffffff1c;border-color:#ffffff30}.compact-workspace .rail .plan-guide p{font-size:11px;line-height:1.6;color:#9db3d1;padding:8px 12px;width:auto}.rail-preferences{margin-top:auto;display:grid;gap:18px}.rail-preferences .ui-language-picker{color:#cbd9ed;justify-content:start}.rail-preferences .language-help{color:#9db3d1}.compact-workspace header{margin-left:230px;min-height:86px;padding:18px 28px;position:relative}.compact-workspace main{margin-left:230px;padding:24px 28px 110px}.compact-workspace .heading{margin-bottom:16px;align-items:center;gap:12px}.compact-workspace .heading h1{font-size:24px;line-height:1.3;margin:0}.compact-workspace .heading .eyebrow,.compact-workspace .heading>div>p{display:none}.compact-workspace .preview-actions{gap:8px;flex-wrap:wrap}.compact-workspace .preview-actions button{min-height:44px;padding:11px 14px;font-size:12px}.patient-actions{display:flex;gap:8px}.compact-workspace .patient{margin:0 0 10px;padding:18px;gap:16px;flex-wrap:wrap}.compact-workspace .patient .shared-patient-language{margin:0;padding:0;border:0;background:transparent;max-width:230px;flex:1;min-width:185px;font-size:12px}.compact-workspace .patient .shared-patient-language select{margin-left:0;margin-top:5px;display:block;max-width:170px}.compact-workspace .patient .language-help{font-size:10px;letter-spacing:0}.storage-details{margin:0 0 20px;color:#637487;font-size:12px}.storage-details summary{cursor:pointer;padding:8px 2px;line-height:1.5}.storage-details .privacy-notice{margin:8px 0;font-size:12px}.workspace-menu,.workspace-menu-shade{display:none}.compact-workspace .workspace{grid-template-columns:minmax(240px,300px) minmax(0,1fr);gap:18px}.compact-workspace .active-clinic-identity{border-bottom:0;padding-bottom:0}
@media(max-width:1100px) and (min-width:801px){.compact-workspace .rail{width:200px;padding:18px 12px}.compact-workspace header,.compact-workspace main{margin-left:200px;padding-left:20px;padding-right:20px}.compact-workspace .workspace{grid-template-columns:240px minmax(0,1fr)}.compact-workspace .heading{flex-wrap:wrap}.compact-workspace .preview-actions{width:100%;justify-content:flex-start}.compact-workspace .patient .avatar{display:none}}
@media(max-width:800px){.compact-workspace .rail{display:none;width:240px;top:84px;bottom:0;height:calc(100dvh - 84px);z-index:110;padding:18px}.compact-workspace.workspace-menu-open .rail{display:flex}.workspace-menu-open .workspace-menu-shade{display:block;position:fixed;inset:84px 0 0;background:#10263c66;z-index:100;border:0;width:100%}.compact-workspace header{margin-left:0;min-height:84px;padding:12px 16px;gap:10px;position:sticky;top:0;z-index:120}.compact-workspace header>.platform-brand{right:16px;top:15px}.compact-workspace .active-clinic-identity{padding-right:86px;min-width:0;flex:1}.compact-workspace .active-clinic-logo{width:34px;height:34px;min-width:34px}.compact-workspace .active-clinic-identity strong{font-size:14px}.compact-workspace .workspace-menu{display:block;min-height:44px;padding:8px}.compact-workspace main{margin-left:0;padding:16px 14px 110px}.compact-workspace .heading{flex-wrap:wrap;gap:10px}.compact-workspace .heading h1{font-size:21px}.compact-workspace .preview-actions{width:100%;display:flex;justify-content:space-between}.compact-workspace .preview-actions button{padding:9px;font-size:11px}.patient-actions{flex:1}.compact-workspace .patient{padding:14px;gap:12px}.compact-workspace .patient .avatar{display:none}.compact-workspace .patient>div{min-width:0}.compact-workspace .patient .shared-patient-language{border-top:1px solid #dce5ed;flex-basis:100%;max-width:none;padding-top:12px}.compact-workspace .patient .shared-patient-language select{display:inline-block;margin:0 10px}.compact-workspace .workspace{grid-template-columns:1fr}.compact-workspace main>.plan-guide{padding:8px;margin-bottom:14px;gap:4px}.compact-workspace main>.plan-guide p{display:none}.compact-workspace main>.plan-guide button{min-height:36px;flex:1 1 15%;font-size:10px;gap:4px;padding:6px 3px}.compact-workspace main>.plan-guide button span{font-size:10px}.compact-workspace .rail .logo{display:none}.storage-details{font-size:11px;margin-bottom:14px}}
.compact-workspace .rail .logo{width:auto;max-width:100%;box-sizing:border-box}.compact-workspace .rail .logo img{max-width:100%;object-fit:contain}.compact-workspace .local-demo-tools{display:none}
@media(max-width:800px){.compact-workspace header{display:grid;grid-template-columns:minmax(0,1fr) 84px;grid-template-rows:auto auto;gap:4px 10px;height:84px;min-height:84px}.compact-workspace header>.active-clinic-identity{grid-column:1;grid-row:1/3;padding:0;margin:0;width:100%;max-width:none;flex:none}.compact-workspace header>.platform-brand{position:static;grid-column:2;grid-row:1;margin:0;padding:0;width:84px}.compact-workspace header>.platform-brand img{width:84px}.compact-workspace header>.workspace-menu{grid-column:2;grid-row:2;margin:0;width:84px;min-height:32px;padding:6px;font-size:11px}.compact-workspace header>.active-clinic-identity strong{font-size:14px;white-space:normal}.compact-workspace #procedures{display:grid;grid-template-columns:1fr;gap:6px}.compact-workspace .procedure-entry{grid-template-columns:minmax(0,1fr) 40px}.compact-workspace .procedure{min-height:48px}.compact-workspace .procedure>div{min-width:0;overflow-wrap:anywhere}}
.quote-brand{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:28px}.quote-brand>div{min-width:0}.quote-brand .clinic-slogan{text-align:right;letter-spacing:.04em;line-height:1.6;overflow-wrap:anywhere;font-size:12px;max-width:none}.quote-brand .clinic-quote-brand{align-items:center}.mini-brand>span{margin-left:auto;max-width:40%;font-size:8px;line-height:1.5;text-align:right}@media(max-width:600px){.quote-brand{gap:14px}.quote-brand .clinic-slogan{font-size:10px;letter-spacing:0}.quote-brand strong{overflow-wrap:anywhere}}
.quote-clinic-identity{display:flex;align-items:center;gap:18px}.quote-clinic-identity img{flex-shrink:0;object-fit:contain}.quote-clinic-identity strong{min-width:0;line-height:1.35}.quote-brand .clinic-slogan{justify-self:end}@media(max-width:600px){.quote-clinic-identity{gap:10px}.quote-clinic-identity img{max-width:58px}.quote-clinic-identity strong{font-size:16px}}
.quote-clinic-identity strong{font-size:clamp(18px,2.3vw,26px)}
.proposal-error{position:relative;margin:14px 24px;padding:18px 20px 18px 54px;background:#fff1f2;color:#8e1f32;border:1px solid #f2acb7;border-left:5px solid #c9344c;border-radius:10px;line-height:1.55}.proposal-error[hidden]{display:none}.proposal-error>strong{display:block;font-size:15px;color:#861b2d;letter-spacing:0}.proposal-error-icon{position:absolute;left:17px;top:20px;width:22px;height:22px;border:2px solid #b4233a;border-radius:50%;text-align:center;line-height:18px;font-weight:800;color:#b4233a}.proposal-error ul{margin:9px 0 0;padding-left:19px;font-size:13px}.proposal-error li{margin:5px 0;overflow-wrap:anywhere}@media(max-width:600px){.proposal-error{margin:12px;padding:16px 14px 16px 45px}.proposal-error-icon{left:12px;top:18px}.proposal-error>strong{font-size:14px}.proposal-error ul{font-size:12px}}
#paper .quote-brand .quote-clinic-identity strong{font-size:clamp(18px,2.3vw,26px)}@media(max-width:600px){#paper .quote-brand{grid-template-columns:1fr;gap:12px}#paper .quote-brand .quote-clinic-identity strong{font-size:18px}#paper .quote-brand .clinic-slogan{justify-self:end;text-align:right;max-width:100%}}
.login-card .login-logo{margin-bottom:10px}.login-card .login-tagline{margin:0 0 24px;color:#526577;font-size:12px;letter-spacing:.035em;line-height:1.5}
.plan-action-notice.error{background:#fff1f0;color:#8b2020;border:2px solid #d35050;box-shadow:0 6px 24px #8b202033;line-height:1.5}.plan-action-notice button[hidden]{display:none}

/* Local clinic branding review: checkerboard is UI only. */
#clinicSetup .logo-transparency-preview{flex-shrink:0;background-color:#fff;background-image:linear-gradient(45deg,#dde4ea 25%,transparent 25%),linear-gradient(-45deg,#dde4ea 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dde4ea 75%),linear-gradient(-45deg,transparent 75%,#dde4ea 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
#clinicSetup .logo-upload section{min-width:0}#clinicSetup .logo-transparency-hint{max-width:380px;line-height:1.5;color:#52677d}
#clinicSetup .clinic-slogan-section{grid-column:1/-1;border:1px solid #cadcde;border-radius:12px;background:#f5faf9;padding:18px;min-width:0}
#clinicSetup .clinic-slogan-section h3{font-size:15px;color:var(--navy);margin:0 0 8px}#clinicSetup .clinic-slogan-section>p{font-size:12px;line-height:1.6;margin:0 0 18px;color:#52677d}#clinicSetup .clinic-slogan-section .setup-field{margin-bottom:0}
@media(max-width:500px){#clinicSetup .logo-upload{gap:12px;padding:14px}#clinicSetup .clinic-slogan-section{padding:14px}}

.saved-plans-list{margin:18px 0}.saved-plans-list>summary{font-size:1.15rem;font-weight:700;cursor:pointer;margin:12px 0}.clinic-branches{display:flex;gap:14px;flex-wrap:wrap;margin-top:20px;padding:16px;border:1px solid #d7e1ec;border-radius:12px}.clinic-branches label{display:flex;gap:6px;align-items:center}.clinic-branches small{flex-basis:100%}
.multi-currency-prices{grid-column:3/5;display:grid;grid-template-columns:1fr 1fr;gap:8px;min-width:0}.multi-currency-prices label{font-size:11px;min-width:0}.multi-currency-prices input{width:100%;min-width:0}#currencyReprice label{display:block;margin:12px 0}#currencyReprice input{width:100%}#repriceSummary{font-size:14px;line-height:1.6}#repriceSummary ul{padding-left:20px}
@media(max-width:600px){#clinicSetup .treatment-table{overflow:visible}#clinicSetup .treatment-table-head{display:none}#clinicSetup .setup-treatment{min-width:0;grid-template-columns:22px minmax(0,1fr) 28px;gap:10px}#clinicSetup .bilingual-treatment{grid-column:2}#clinicSetup .multi-currency-prices{grid-column:2}#clinicSetup .setup-treatment>select{grid-column:2;max-width:100%}#clinicSetup .setup-treatment>button{grid-column:3;grid-row:1}#clinicSetup .setup-treatment>input[type=checkbox]{grid-column:1;grid-row:1}}
#currencyReprice label{display:grid;gap:8px;margin:14px 0;line-height:1.5}#currencyReprice label input{margin:0;display:block}

/* Packages are directly available beside the frequently used procedure catalogue. */
.quick-packages{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:20px}.quick-packages-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}.quick-packages h3{font:700 15px Manrope,sans-serif;margin:0}.quick-packages-heading .text-btn{font-size:11px;padding:8px 0;flex-shrink:0}.quick-packages>p{font-size:12px;letter-spacing:0;margin:7px 0 10px}.quick-package-list{display:flex;flex-wrap:wrap;gap:8px;max-height:260px;overflow:auto}.quick-package{border:1px solid #a9dcd7;background:#eff9f7;color:#007e79;border-radius:9px;min-height:44px;padding:10px 12px;text-align:left;max-width:100%;overflow-wrap:anywhere;font-weight:600}.quick-package:disabled{opacity:.6;cursor:wait}#quickPackageStatus:empty{display:none}#quickPackageStatus{color:#536579}.quick-packages-heading{flex-wrap:wrap}@media(max-width:720px){.quick-package-list{max-height:220px}.quick-package{flex:1 1 160px}.quick-packages{padding-bottom:15px}}
/* Local simplified operator experience; patient document styles are untouched. */
.simple-plan-workspace .heading{margin-bottom:16px;align-items:center}
.simple-plan-workspace .heading .preview-actions{display:flex;justify-content:flex-end;gap:12px}
.simple-plan-workspace .heading .narration-addon-action,.simple-plan-workspace .heading #preview{display:none}
.simple-plan-workspace .patient{margin-bottom:16px;padding:20px 24px}
.simple-plan-workspace .patient .avatar,.simple-plan-workspace .patient>.patient-field:first-of-type,.simple-plan-workspace .patient>.draft{display:none}
.simple-plan-workspace .patient input#patient{font-size:24px;min-width:0;width:100%;border-bottom:1px solid #d9e3e9}
.simple-plan-workspace .patient .shared-patient-language{margin:0;padding:0;border:0;box-shadow:none;background:none;width:auto}
.simple-plan-workspace .patient .language-help{font-size:11px;letter-spacing:0;line-height:1.4}
.simple-plan-workspace .quick-packages{margin:0 0 14px;padding:16px 20px}
.simple-plan-workspace .quick-packages>p{font-size:13px;margin:5px 0 10px}
.simple-plan-workspace .storage-details{font-size:12px;margin:10px 0 20px}
.simple-plan-workspace .mobile-catalog{min-width:0}
.simple-plan-workspace .mobile-catalog>summary{display:none}
.simple-plan-workspace .catalog{width:100%;height:100%}
.simple-plan-workspace #procedures{max-height:420px;overflow:auto}
.simple-plan-workspace .custom{border-top:1px solid #dce5ea;margin-top:16px;padding-top:16px}
.plan-more{font-size:13px;margin-top:12px}.plan-more>summary{cursor:pointer;padding:10px}.plan-more #reset{margin-top:8px}
.review-patient{display:flex;justify-content:space-between;gap:12px;padding:16px 0;border-bottom:1px solid #dce5ea}.review-patient>strong{font-size:22px}.review-patient>span{color:#607487}
.review-treatment-list>div{padding:10px 0;border-bottom:1px solid #e0e7ec}.review-treatment-list p{display:flex;justify-content:space-between;gap:16px;margin:12px 0}.review-treatment-list small{display:block;color:#607487;font-size:12px}.review-issues{background:#fff0ee;border-left:4px solid #c5453b;padding:14px;margin:16px 0;border-radius:8px}.plan-review-dialog{width:min(680px,calc(100vw - 24px));max-height:90dvh;overflow:auto;padding:24px}.review-buttons{position:sticky;bottom:-24px;background:white;padding:16px 0;display:flex;flex-wrap:wrap;gap:8px}.review-buttons button{min-height:44px}
.setup-optional{grid-column:1/-1;font-size:13px;border-top:1px solid #e0e7ec;padding-top:10px}.setup-optional>summary{cursor:pointer;color:#526b7e;margin-bottom:10px}.setup-optional[open]{display:block}.setup-optional label{margin:10px 0}.multi-currency-prices>.setup-optional{width:100%}
.login-card{max-width:460px}.login-card h1{font-size:30px}.login-admin{margin-top:20px;font-size:12px;color:#657a8b}.login-admin>summary{cursor:pointer}.login-card input{font-size:16px}
@media(max-width:800px){
 .simple-plan-workspace .heading{display:flex;flex-direction:row;align-items:center;gap:12px}.simple-plan-workspace .heading h1{font-size:22px}.simple-plan-workspace .heading .preview-actions{width:auto}.simple-plan-workspace #reviewPlan{display:none}.simple-plan-workspace .patient-actions{display:flex;gap:8px}.simple-plan-workspace .patient-actions button{font-size:13px;padding:10px;min-width:0}
 .simple-plan-workspace .patient{display:flex;flex-wrap:wrap;gap:16px;padding:18px}.simple-plan-workspace .patient>div:nth-child(2){flex:1 1 100%}.simple-plan-workspace .patient .shared-patient-language{flex:1 1 150px}.simple-plan-workspace .patient input#patient{font-size:22px}
 .simple-plan-workspace .workspace{display:flex;flex-direction:column;gap:16px}.simple-plan-workspace .right{width:100%;min-width:0}.simple-plan-workspace .mobile-catalog{width:100%;background:white;border:1px solid #dce5ea;border-radius:16px}.simple-plan-workspace .mobile-catalog>summary{display:list-item;cursor:pointer;padding:16px 22px;font-weight:650}.simple-plan-workspace .mobile-catalog .catalog{border:0;padding-top:0}.simple-plan-workspace .chart .custom{background:#f4f8fa;border-radius:12px;padding:16px}.simple-plan-workspace .quick-package-list{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.simple-plan-workspace .quick-package-list>button{flex:0 0 auto;max-width:220px;white-space:normal}
 .simple-plan-workspace input,.simple-plan-workspace select,#clinicSetup input,#clinicSetup select,#clinicSetup textarea{font-size:16px}.simple-plan-workspace .mobile-review-dock{padding-bottom:max(12px,env(safe-area-inset-bottom))}.plan-review-dialog{padding:18px}.review-buttons{bottom:-18px}.review-patient{flex-wrap:wrap}
}
.simple-plan-workspace .patient>div:nth-child(3){display:none}
.simple-plan-workspace .patient{display:flex;align-items:center;gap:24px;flex-wrap:wrap}.simple-plan-workspace .patient>div:nth-child(2){flex:1;min-width:200px}.simple-plan-workspace .patient .patient-field{flex:0 0 auto}
@media(min-width:801px){.simple-plan-workspace .patient .shared-patient-language{flex:0 1 250px}.simple-plan-workspace .mobile-catalog{align-self:start}}
.optional-plan-fields{margin:14px 0;border:1px solid #dce5ea;border-radius:12px;padding:14px}.optional-plan-fields>summary{cursor:pointer;font-weight:600;color:#29465f}.optional-plan-fields .discount-controls{margin-top:14px}.review-treatment-list small{overflow-wrap:anywhere}
@media(max-width:800px){.simple-plan-workspace .mobile-review-dock{display:block;position:fixed;bottom:0;left:0;right:0;z-index:70;background:#fff;border-top:1px solid #dce5ed;padding:10px 16px max(12px,env(safe-area-inset-bottom))}.simple-plan-workspace .mobile-review-dock button{width:100%;min-height:48px}.simple-plan-workspace main{padding-bottom:100px}.simple-plan-workspace .plan-action-notice{bottom:90px}}
.selection-summary{padding:12px 14px;background:#e7f4f1;border:1px solid #b4d8d0;border-radius:10px;color:#155b53;font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.simple-plan-workspace .line-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;padding:16px 0}.line-item>div:first-child{min-width:0}.line-item-total{white-space:nowrap;font-size:15px}.line-item-edit{grid-column:1/-1;font-size:13px}.line-item-edit>summary{cursor:pointer;color:#526c7f;width:fit-content}.line-item-edit[open]{display:grid;grid-template-columns:minmax(100px,1fr) minmax(90px,1fr) auto auto;gap:12px;align-items:center;padding:12px;background:#f3f7f9;border-radius:10px}.line-item-edit[open]>summary{grid-column:1/-1}.line-item-edit select,.line-item-edit input{width:100%;min-width:0}.payment-brief{margin:18px 0;padding:16px;background:#f3f7f9;border-radius:12px}.payment-brief h3{margin:0 0 12px;font-size:15px}.payment-brief p{display:flex;justify-content:space-between;gap:12px;margin:10px 0;font-size:14px}.payment-brief p>span{min-width:0;overflow-wrap:anywhere}.payment-brief strong{white-space:nowrap}
@media(max-width:800px){.simple-plan-workspace.editing-with-keyboard .mobile-review-dock{display:none}.line-item-edit[open]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.selection-summary{font-size:13px}}
.setup-treatment-title{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere;margin-bottom:10px}#clinicSetup .setup-treatment{grid-template-columns:24px minmax(140px,1fr) minmax(120px,180px);gap:14px}#clinicSetup .multi-currency-prices{grid-column:3;grid-template-columns:1fr}#clinicSetup .setup-treatment .setup-optional>button{min-height:40px}.setup-optional>summary{min-height:36px;line-height:1.5;display:list-item}.setup-optional>fieldset{margin-top:12px}.setup-optional .import-templates{padding:10px 0}
@media(max-width:600px){#clinicSetup .setup-treatment{grid-template-columns:22px minmax(0,1fr);gap:10px}#clinicSetup .multi-currency-prices{grid-column:2}#clinicSetup .bilingual-treatment{grid-column:2}#clinicSetup .setup-treatment-title{font-size:15px}#clinicSetup .setup-treatment .setup-optional select{max-width:100%;margin:10px 0}#clinicSetup .setup-actions{gap:8px;flex-wrap:wrap}#clinicSetup .setup-actions button{min-height:44px;font-size:14px;flex:1 1 auto}#clinicSetup .setup-main{padding:18px}#clinicSetup .setup-grid{grid-template-columns:minmax(0,1fr)}}
#clinicSetup .setup-treatment{grid-template-columns:minmax(160px,1fr) minmax(120px,180px)}#clinicSetup .bilingual-treatment{grid-column:1}#clinicSetup .multi-currency-prices{grid-column:2}.setup-treatment-active{display:flex!important;align-items:center;gap:10px}.setup-treatment-active input{width:auto!important;min-width:20px;min-height:20px}
@media(max-width:600px){#clinicSetup .setup-treatment{grid-template-columns:minmax(0,1fr)}#clinicSetup .bilingual-treatment,#clinicSetup .multi-currency-prices{grid-column:1}}
#priceImportContent:empty,#priceFileError:empty{display:none}#clinicSetup .price-import>.setup-optional{width:100%}@media(max-width:600px){#clinicSetup .price-import>div:first-child{flex-basis:100%}#clinicSetup .price-import>.upload-label{width:100%;justify-content:center}#clinicSetup .price-import{gap:12px;padding:14px}}
/* Keep iOS focus legible without disabling user pinch zoom. */
@media(max-width:800px){#loginScreen input,#loginScreen select,.simple-plan-workspace input:not([type=checkbox]):not([type=radio]),.simple-plan-workspace select,#clinicSetup input:not([type=checkbox]):not([type=radio]),#clinicSetup select,#clinicSetup textarea{font-size:18px!important}.simple-plan-workspace input#patient{font-size:22px}}
/* Long wait-reason labels must fit the mobile visit column. */
@media(max-width:800px){.stage-head,.stage-head>*{min-width:0;max-width:100%}.stage-time,.stage-time label{min-width:0;max-width:100%}.stage-time select{width:100%;max-width:100%;min-width:0}}

/* Keep treatment ordering available inside Edit on every screen size. */
.line-item .move{display:flex;gap:6px;align-items:center}
.line-item .move button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid #cad8e0;border-radius:8px;background:white;color:var(--navy);font-size:20px}
.stage-head .stage-time{display:flex;flex-direction:column;gap:8px}
.stage-head .stage-time>label{display:flex;flex-direction:column;gap:5px}
.stage-time .healing-range{margin:8px 0 0;padding:12px;background:white;border:1px solid #dce5ed;border-radius:10px}
.stage-time .healing-range legend{font-size:12px;font-weight:600;line-height:1.4;padding:0 4px}
.healing-range-inputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
.stage-time .healing-range label{display:flex;flex-direction:column;gap:5px;margin:0;color:#536579}
.stage-head .healing-range input{display:block;flex:none;width:100%;min-width:0;padding:10px;border:1px solid #dce5ed;border-radius:8px;background:#f8fafc;font-size:16px;font-weight:500}
.stage-time .healing-range small{letter-spacing:0;font-size:12px;font-weight:400;line-height:1.5;margin:10px 0 0;color:#617487}
@media(max-width:800px){.stage-head .stage-time{flex:1 1 100%;width:100%}.stage-time .healing-range{width:100%}.line-item .move{grid-column:1}}
.stage-head .stage-time .duration{flex:none;min-height:44px;height:auto}

/* Ordering belongs to the always-visible treatment summary. */
.item-summary{min-width:0}
.item-summary-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.item-summary-heading>strong{min-width:0;overflow-wrap:anywhere}
.item-summary-heading .move{flex-shrink:0}
.line-item-edit[open]{grid-template-columns:minmax(100px,1fr) minmax(90px,1fr) auto}
@media(max-width:800px){.item-summary-heading{gap:6px}.line-item-edit[open]{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

.applied-package-label{padding:10px 12px;border-left:3px solid var(--teal);background:#eaf7f4;color:#076e69;border-radius:7px;font-weight:600;overflow-wrap:anywhere}

/* Keep visit timing subordinate and readable without clipping long reasons. */
#paper .quote-stage h3{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 16px;min-width:0}
#paper .quote-stage h3 span{flex:1 1 320px;min-width:0;max-width:100%;font-size:11px;line-height:1.5;white-space:normal;overflow-wrap:anywhere;text-align:right}
@media(max-width:600px){#paper .quote-stage h3 span{flex-basis:100%;text-align:left}}
.admin-monitor{margin-top:20px;padding:18px;border:1px solid #d7e3ed;border-radius:14px;background:#fff}.admin-monitor>summary{font-weight:700;cursor:pointer}.monitor-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:14px 0}.monitor-toolbar label{display:grid;gap:6px;flex:1;min-width:150px}.monitor-entry{border-top:1px solid #e1e8ef;padding:14px 0;overflow-wrap:anywhere}.monitor-entry p{margin:6px 0}.monitor-entry small{display:block;color:#526577;margin-top:4px}@media(max-width:600px){.monitor-toolbar{display:grid;grid-template-columns:1fr}.monitor-toolbar select{font-size:16px;min-height:44px;width:100%}.monitor-toolbar button{width:100%}}
/* Support form never touches the patient workspace. */
.support-feedback{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:0;border-radius:18px;padding:24px;color:#20334b;background:white;box-sizing:border-box}
.support-feedback::backdrop{background:#09295a80}.support-feedback form{display:grid;gap:14px}.support-head{display:flex;align-items:start;justify-content:space-between;gap:16px}.support-head h2{margin:0;font-size:22px}.support-feedback label{display:grid;gap:7px}.support-feedback input,.support-feedback select,.support-feedback textarea{box-sizing:border-box;width:100%;font:16px/1.5 system-ui;padding:11px;border:1px solid #d5e0ea;border-radius:9px;min-width:0}.support-feedback textarea{resize:vertical}.support-feedback p{margin:0;line-height:1.5;overflow-wrap:anywhere}.support-feedback small{color:#687b8e;font:13px/1.5 system-ui;letter-spacing:normal}.support-feedback pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.6 system-ui;background:#f1f6f9;padding:12px}.support-feedback [data-status]{font-weight:600}.support-feedback [data-mode]{padding:10px;background:#fff5df;border-radius:8px}.support-feedback [type=submit]{min-height:44px}

.support-feedback [data-mode][data-delivery="email"]{background:#e5f5ef;color:#145948}
/* Dialog fields need the same iOS focus size even outside the workspace. */
@media(max-width:800px){.support-feedback input,.support-feedback select,.support-feedback textarea{font-size:18px!important}}

.account-recovery-dialog{border:0;border-radius:18px;width:min(540px,calc(100vw - 24px));max-height:90dvh;overflow:auto;color:#18324b}.account-recovery-dialog::backdrop{background:#102b5070}.account-recovery-dialog label{display:grid;gap:6px;margin:14px 0}.account-recovery-dialog input{min-width:0;width:100%;box-sizing:border-box;font-size:18px;min-height:46px}.account-recovery-dialog p{overflow-wrap:anywhere}

/* Row removal remains visible when edit fields are collapsed. */
.line-item-remove{grid-column:1/-1;justify-self:start;min-height:44px;padding:9px 14px;color:#9d3544;border-color:#e7cbd0;background:#fff;}
.line-item-remove:focus-visible{outline:3px solid #79cfcc;outline-offset:2px;}
.line-item-edit[open]{grid-template-columns:minmax(100px,1fr) minmax(90px,1fr);}
@media(max-width:800px){.line-item-edit[open]{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}}

/* Planner artwork is shared by the catalogue, treatment rows and tooth key. */
.dental-icon{display:block;width:20px;height:20px;flex-shrink:0}
.treatment-badge svg.dental-icon{width:13px;height:13px}
.procedure .symbol .treatment-badge{width:30px;height:30px;border-radius:9px}
.procedure .symbol .dental-icon{width:21px;height:21px}
.tooth .treatment-badge svg.dental-icon{width:12px;height:12px;margin:0;transform:none}
#upperTeeth .treatment-badge svg{transform:none}
.tooth .tooth-root{fill:#ebe5db;stroke:#b5ada0}
.tooth .tooth-anatomy-line{fill:none!important;stroke:#b3aa98;stroke-width:.8;opacity:.65}
.tooth.planned .tooth-crown,.tooth.selected .tooth-crown{fill:var(--tooth-fill,#ccece5)!important;stroke:var(--tooth-stroke,#008d8b)}
.tooth.missing .tooth-root,.tooth.missing .tooth-crown{fill:none!important;stroke:#bac7d3;stroke-dasharray:2 2;opacity:.55}
.tooth.missing .tooth-anatomy-line{display:none}

/* Compact visit cards retain the existing inputs, timing and translation controls. */
.simple-plan-workspace #stages .stage-head{display:grid;grid-template-columns:32px minmax(0,1fr) 150px auto;align-items:start;gap:12px;margin:20px 0 12px;padding:18px;border:1px solid #dce7ed;border-radius:14px;background:#f4f8fa}
.simple-plan-workspace #stages .stage-number{grid-column:1;grid-row:1;display:grid;place-items:center;width:32px;height:32px;margin-top:23px;background:#e2f2ef;color:#087b76;border-radius:9px;font-size:12px;font-weight:700}
.simple-plan-workspace #stages .stage-fields{grid-column:2;grid-row:1;min-width:0}
.simple-plan-workspace #stages .stage-fields label,.simple-plan-workspace #stages .stage-time>label{font-size:12px;font-weight:500;color:#526a7c}
.simple-plan-workspace #stages .stage-fields input{margin-top:5px;min-height:44px;font-size:16px;font-weight:600}
.simple-plan-workspace #stages .stage-fields details{margin-top:7px}
.simple-plan-workspace #stages .stage-fields summary{font-size:12px;color:#526a7c}
.simple-plan-workspace #stages .stage-time{display:contents}
.simple-plan-workspace #stages .stage-time>label:first-child{grid-column:3;grid-row:1}
.simple-plan-workspace #stages .stage-days-note{display:none}
.simple-plan-workspace #stages .duration-control{display:flex;align-items:center;gap:10px;margin-top:5px;padding-right:12px;background:#fff;border:1px solid #dce5ed;border-radius:8px;max-width:160px}
.simple-plan-workspace #stages .duration-control .duration{width:82px;min-height:44px;margin:0;border:0;background:transparent;padding:10px 12px;font-size:16px;font-weight:600}
.simple-plan-workspace #stages .duration-unit{font-size:13px;font-weight:400;color:#64788a}
.simple-plan-workspace #stages .stage-head>[data-delete-stage]{grid-column:4;grid-row:1;margin-top:21px;min-height:44px;background:transparent;border-color:transparent;padding:8px;color:#687b8b;font-size:12px}
.simple-plan-workspace #stages .stage-time>.healing-range{grid-column:2/-1;margin:4px 0 0;padding:12px;border-color:#dce5ed;background:#fff;border-radius:10px}
.simple-plan-workspace #stages .stage-time>label:has(select){grid-column:2/-1;min-width:0}
.simple-plan-workspace #stages .stage-time>label:has(select) select{display:block;width:100%;margin-top:5px;min-height:44px;font-size:16px}

/* A clear heading, always-visible order controls and a single action row. */
.simple-plan-workspace #stages .line-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 14px;margin:9px 0;padding:14px 16px;border:1px solid #e0e7ed;border-radius:12px;background:#fff}
.simple-plan-workspace #stages .item-summary-heading{align-items:center;gap:10px}
.simple-plan-workspace #stages .item-summary-heading>strong{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.4}
.simple-plan-workspace #stages .item-summary-heading>strong>span{min-width:0}
.simple-plan-workspace #stages .item-summary-heading .treatment-badge{flex:none;width:28px;height:28px;border-radius:8px}
.simple-plan-workspace #stages .item-summary-heading .dental-icon{width:19px;height:19px}
.simple-plan-workspace #stages .line-item .move{display:flex;gap:4px}
.simple-plan-workspace #stages .line-item .move button{width:44px;height:44px;min-height:44px;padding:0;border-color:#dce5ed;background:#f7f9fb;border-radius:9px;font-size:19px}
.simple-plan-workspace #stages .item-summary>small{display:block;margin:6px 0 0;font-size:12px;line-height:1.6;color:#657b8e;overflow-wrap:anywhere}
.simple-plan-workspace #stages .line-item-total{padding-top:11px;font-size:14px;white-space:nowrap}
.simple-plan-workspace #stages .line-item-footer{grid-column:1/-1;display:flex;align-items:flex-start;gap:12px;min-width:0;border-top:1px solid #edf1f5;padding-top:6px;margin-top:3px}
.simple-plan-workspace #stages .line-item-edit{flex:1;min-width:0;font-size:13px}
.simple-plan-workspace #stages .line-item-edit>summary{display:flex;align-items:center;min-height:44px;gap:6px;padding:4px 0;font-size:13px;font-weight:500;color:#375c75;list-style:none;cursor:pointer}
.simple-plan-workspace #stages .line-item-edit>summary::before{content:'▸';font-size:12px}
.simple-plan-workspace #stages .line-item-edit[open]>summary::before{content:'▾'}
.simple-plan-workspace #stages .line-item-edit[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.simple-plan-workspace #stages .line-item-edit[open]>summary{grid-column:1/-1}
.simple-plan-workspace #stages .line-item-edit input,.simple-plan-workspace #stages .line-item-edit select{width:100%;min-height:44px;font-size:16px}
.simple-plan-workspace #stages .line-item-remove{flex:none;min-height:44px;padding:8px 10px;border-color:transparent;border-radius:8px;background:transparent;color:#a64d59;font-size:12px}
.simple-plan-workspace #stages .line-item-remove:hover{background:#fff1f2}
@media(max-width:800px){
 .simple-plan-workspace #stages .stage-head{grid-template-columns:28px minmax(0,1fr) auto;gap:10px;padding:14px}
 .simple-plan-workspace #stages .stage-number{width:28px;height:28px}
 .simple-plan-workspace #stages .stage-head>[data-delete-stage]{grid-column:3;padding:8px 2px}
 .simple-plan-workspace #stages .stage-time>label:first-child{grid-column:2/-1;grid-row:2}
 .simple-plan-workspace #stages .line-item{gap:5px 9px;padding:12px}
 .simple-plan-workspace #stages .item-summary-heading{flex-wrap:wrap}
 .simple-plan-workspace #stages .item-summary-heading .move{margin-left:auto}
 .simple-plan-workspace #stages .line-item-total{font-size:13px}
}
@media(max-width:460px){
 .simple-plan-workspace #stages .stage-head{grid-template-columns:24px minmax(0,1fr);padding:12px;gap:10px}
 .simple-plan-workspace #stages .stage-number{width:24px;height:28px}
 .simple-plan-workspace #stages .stage-time>label:first-child{grid-column:2;grid-row:2;max-width:120px}
 .simple-plan-workspace #stages .duration-control{max-width:120px}
 .simple-plan-workspace #stages .duration-control .duration{width:62px}
 .simple-plan-workspace #stages .stage-head>[data-delete-stage]{grid-column:2;grid-row:2;align-self:end;justify-self:end;margin:0}
 .simple-plan-workspace #stages .line-item-footer{flex-wrap:wrap;gap:4px 8px}
 .simple-plan-workspace #stages .line-item-edit[open]{flex-basis:100%}
 .simple-plan-workspace #stages .line-item-remove{margin-left:auto}
}
.catalog-suggestion{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 10px;margin:8px 0 12px;padding:8px 10px;border-radius:9px;background:#edf7f5;color:#526c78;font-size:12px;line-height:1.5}
.catalog-suggestion .text-btn{min-height:44px;padding:6px;font-size:12px;font-weight:600}
#clinicSetup input[readonly]{background:#f5f7fa;color:#52677b}
#clinicSetup select[disabled]{background:#f5f7fa;color:#52677b;opacity:1}
#procedureName[readonly]{cursor:default}

/* Larger picker artwork, with separate touch targets rather than squeezed teeth. */
#upperTeeth,#lowerTeeth{grid-template-columns:repeat(16,minmax(44px,1fr));gap:3px;overflow-x:auto;touch-action:auto;padding:4px 3px 12px;scrollbar-width:thin;scrollbar-color:#a8c9cb #eef4f6;overscroll-behavior-x:contain}
#upperTeeth>.tooth,#lowerTeeth>.tooth{min-width:44px;touch-action:auto;padding:5px 2px}
#upperTeeth>.tooth>svg.dental-tooth,#lowerTeeth>.tooth>svg.dental-tooth{width:100%;max-width:54px;height:86.25px}
#upperTeeth>.tooth>span,#lowerTeeth>.tooth>span{font-size:12px;font-weight:700;color:#4e667d;margin:5px 0 6px;line-height:1.5}
#upperTeeth .dental-tooth .tooth-crown,#lowerTeeth .dental-tooth .tooth-crown{stroke:#7d8d9d;stroke-width:1.35}
#upperTeeth .dental-tooth .tooth-root,#lowerTeeth .dental-tooth .tooth-root{stroke:#988d7d;stroke-width:1.25}
#upperTeeth .dental-tooth .tooth-anatomy-line,#lowerTeeth .dental-tooth .tooth-anatomy-line{stroke:#938574;stroke-width:1;opacity:.8}
#upperTeeth .planned .tooth-crown,#lowerTeeth .planned .tooth-crown,#upperTeeth .selected .tooth-crown,#lowerTeeth .selected .tooth-crown{stroke:var(--tooth-stroke,#008d8b)}
#upperTeeth .missing .tooth-root,#upperTeeth .missing .tooth-crown,#lowerTeeth .missing .tooth-root,#lowerTeeth .missing .tooth-crown{stroke:#8ca5b8;opacity:.8}
.tooth-scroll-hint{font-size:12px;color:#637b8d;margin:6px 0 9px}
@media(max-width:1000px){#upperTeeth>.tooth>svg.dental-tooth,#lowerTeeth>.tooth>svg.dental-tooth{height:65px}}
@media(max-width:720px){#upperTeeth>.tooth>svg.dental-tooth,#lowerTeeth>.tooth>svg.dental-tooth{height:56.25px}#upperTeeth>.tooth>span,#lowerTeeth>.tooth>span{font-size:11px}}
#upperTeeth>.tooth.missing>.dental-tooth,#lowerTeeth>.tooth.missing>.dental-tooth{opacity:.65}
@media(min-width:1450px){#upperTeeth>.tooth>svg.dental-tooth,#lowerTeeth>.tooth>svg.dental-tooth{height:106.25px}}
.favorite-status{font-size:12px;line-height:1.5;color:#16766d;padding:8px 10px;background:#edf7f5;border-radius:8px;margin:7px 0}
.stage-name-main{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.stage-name-main>label{min-width:0}
.stage-name-main>.text-btn{min-height:44px;max-width:110px;font-size:12px;line-height:1.4;letter-spacing:0;padding:6px}
.stage-name-auto{display:block;font-size:11px;line-height:1.5;letter-spacing:0;color:#647b8d;margin-top:6px}
.simple-plan-workspace #stages .stage-name-main input[readonly]{background:transparent;border-color:transparent;padding-left:0;color:#203b54}
.stage-translations{padding:10px 12px;border:1px solid #dce5ed;border-radius:9px;background:#fff}
.stage-translations>p{font-size:12px;line-height:1.5;margin:9px 0}
.stage-translations>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
@media(max-width:600px){.stage-translations>div{grid-template-columns:minmax(0,1fr)}.stage-name-main>.text-btn{max-width:91px;font-size:11px}}

/* Compact navigation: everyday actions, separate administration, account footer. */
.compact-workspace .rail{gap:18px;overflow-y:auto}
.rail-actions{gap:3px}.rail-actions button,.rail-admin button,.rail-account button,.rail-preferences #logout{display:flex;align-items:center;gap:11px;width:100%;min-height:44px;padding:10px 12px;text-align:left;border:0;border-radius:9px;background:transparent;color:#e9f2ff;font-size:14px;font-weight:500;box-shadow:none}
.rail-actions button:hover,.rail-admin button:hover,.rail-account button:hover,.rail-preferences #logout:hover{background:#ffffff14}
.rail svg{width:20px;height:20px;flex:none;color:#a9c9df}.rail .menu-label{min-width:0;line-height:1.4;overflow-wrap:anywhere}
.rail-admin,.rail-account{border-top:1px solid #ffffff20;padding-top:8px}.rail-admin summary,.rail-account summary{cursor:pointer;min-height:44px;display:flex;align-items:center;gap:8px;padding:8px 12px;color:#b8cbe4;font-size:12px}.rail-admin summary:after,.rail-account summary:after{content:'⌄';margin-left:auto}.rail-admin[open] summary:after,.rail-account[open] summary:after{content:'⌃'}
.rail-preferences{margin-top:auto;gap:8px}.rail-preferences .ui-language-picker{display:grid;gap:6px;width:100%}.rail-preferences .ui-language-picker>span{font-size:11px;color:#b8cbe4}.rail-preferences select{width:100%!important;max-width:none;min-height:44px;font-size:16px;background:#ffffff10;color:#fff;border:1px solid #ffffff35;border-radius:8px;padding:8px 10px}.rail-preferences select option{background:white;color:#18324b}.rail-preferences .language-help{display:none!important}
.workspace-confirm-dialog,.workspace-package-dialog{box-sizing:border-box;width:min(480px,calc(100vw - 28px));max-height:90dvh;overflow:auto;border:1px solid #d6e0e8;border-radius:18px;padding:24px;color:#20334b;box-shadow:0 20px 70px #10263c30}
.workspace-confirm-dialog::backdrop,.workspace-package-dialog::backdrop{background:#10263c66}.workspace-confirm-dialog h2,.workspace-package-dialog h2{margin:0;font-size:21px}.workspace-confirm-dialog p,.workspace-package-dialog p{color:#60788a;font-size:14px;line-height:1.6}.workspace-dialog-actions,.workspace-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.workspace-dialog-actions{justify-content:flex-end;margin-top:22px}.workspace-dialog-actions button,.workspace-dialog-head button,.package-menu-actions button{min-height:44px}.package-menu-actions{display:grid;gap:10px;margin-top:20px}.package-menu-actions button{width:100%;text-align:left;padding:14px;border:1px solid #d6e3e9;border-radius:10px;font-size:14px;color:#20334b;background:#f7fafb}
.patient-actions{flex-wrap:wrap}.patient-actions #reset{font-weight:500;color:#60718a}
@media(max-width:800px){.compact-workspace .rail{width:min(280px,calc(100vw - 48px));padding:16px;gap:12px}.rail-actions button,.rail-admin button,.rail-account button,.rail-preferences #logout{font-size:14px}.workspace-confirm-dialog,.workspace-package-dialog{padding:20px}.workspace-dialog-actions{flex-wrap:wrap}.workspace-dialog-actions button{flex:1}.patient-actions{gap:6px}}

@media(max-width:800px){body.workspace-menu-open{overflow:hidden}}
.package-menu-actions button:disabled{opacity:.6;cursor:default}
