.tooth-visit{border-top:1px solid #d8dfd8;border-bottom:1px solid #d8dfd8;padding:26px 0;margin:28px 0}.tooth-card-heading,.tooth-card-footer{display:flex;justify-content:space-between;align-items:center;gap:18px}.tooth-card-heading h2{font-size:23px;margin:8px 0}.tooth-card-heading p{margin:6px 0}.tooth-kicker{font-size:11px;letter-spacing:1.7px;color:#61756b;font-weight:600}.tooth-status{display:inline-block;font-size:12px;vertical-align:middle;color:#874829;background:#f6e9dd;padding:5px 10px;border-radius:3px;margin-left:10px}.tooth-diagram{display:block;width:100%;height:auto;max-height:340px;margin:10px auto}.tooth-body{fill:#fdfdf9;stroke:#a4b3a8;stroke-width:1.4}.tooth-detail{fill:none;stroke:#c4cfc5;stroke-width:1}.tooth-label{font:15px 'Hanken Grotesk',Arial,sans-serif;fill:#6b7c72}.tooth.selected .tooth-body{stroke:#98562f;stroke-width:2.5;fill:#f3e5d6}.tooth.selected[role=button]{cursor:pointer}.tooth.selected:focus .tooth-body{stroke:#173e32;stroke-width:4}.tooth.removed .tooth-body{fill:#fbf5ec;stroke-dasharray:3 3;opacity:.7}.tooth.selected .tooth-label{fill:#854326;font-weight:700;font-size:18px}.tooth-cross{fill:none;stroke:#98562f;stroke-width:2.3}.jaw-arc{fill:none;stroke:#e1e5de;stroke-width:7}.jaw-label,.jaw-side{font:10px 'Hanken Grotesk',Arial,sans-serif;letter-spacing:1.5px;fill:#738378}.tooth-card-footer,.tooth-fine{font-size:12px;color:#6a796f;line-height:1.6}.tooth-card-footer{border-top:1px solid #e4e8e1;padding-top:13px}
.tooth-dialog{width:min(1140px,94vw);max-width:1140px;max-height:92vh;border:1px solid #d6ddd5;padding:0;border-radius:8px;color:#233e33;background:#fffefa;font-family:'Hanken Grotesk',Arial,sans-serif}.tooth-dialog::backdrop{background:#0e241ac4}.tooth-dialog>header{padding:25px 30px;border-bottom:1px solid #dfe4dc;display:flex;justify-content:space-between;gap:20px;align-items:flex-start}.tooth-dialog h2{font-size:28px;margin:5px 0 8px}.tooth-dialog h3{font-size:21px;margin:0 0 17px}.tooth-dialog header p{margin:4px 0}.tooth-dialog-body{padding:26px 30px}.tooth-chart-panel{max-width:900px;margin:auto}.tooth-tabs,.tooth-image-tools{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.tooth-tabs button,.tooth-image-tools button,.tooth-dialog>header button{border:1px solid #d7dfd3;color:#284b3b;background:#fffefa;padding:9px 13px;border-radius:3px;font:inherit;font-size:13px;cursor:pointer}.tooth-tabs button[aria-pressed=true]{background:#244635;color:#fffefa;border-color:#244635}.tooth-diagram-note{color:#874829;font-size:15px;font-weight:600}.tooth-image-panel{border-top:1px solid #dfe4dc;margin-top:22px;padding-top:24px}.tooth-image-caption{display:flex;justify-content:space-between;gap:15px;margin-bottom:15px;font-size:13px}.tooth-image-caption span{color:#6a796f}.tooth-scan{width:100%;display:block;max-height:65vh;background:#111a16;border:1px solid #2b3931;touch-action:manipulation}.tooth-scan polygon{stroke:#f5c975;stroke-width:2.5;fill:#f5c97528;stroke-linejoin:round}.scan-mark[hidden]{display:none}.tooth-image-tools{margin-top:13px}.tooth-image-empty{padding:30px;background:#f3f5ed;display:grid;grid-template-columns:62px 1fr;column-gap:24px;align-items:start}.tooth-image-empty>span{grid-row:1/3;border:1px dashed #af8061;color:#874829;font-size:24px;text-align:center;padding:13px 0}.tooth-image-empty h4{margin:2px 0;font-size:17px}.tooth-image-empty p{max-width:720px;margin:10px 0 0;line-height:1.6;font-size:14px}.tooth-editor-scan{cursor:crosshair;max-height:65vh}.tooth-editor .tooth-diagram{max-height:280px}.tooth-message{color:#874829;line-height:1.6;font-size:13px}.sheet-preview .tooth-diagram{max-height:140px;margin:0}.tooth-print-heading{font-size:11px;font-weight:600;color:#874829}.device-sources:has([data-new=imaging]){grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:720px){.tooth-card-heading{align-items:flex-start;flex-direction:column;gap:4px}.tooth-card-footer{align-items:flex-start;flex-direction:column;gap:3px}.tooth-diagram{min-width:0}.tooth-dialog>header,.tooth-dialog-body{padding:20px 16px}.tooth-dialog h2{font-size:24px}.tooth-image-caption{flex-direction:column;gap:4px}.tooth-image-empty{padding:18px;grid-template-columns:45px 1fr;gap:15px}.tooth-label{font-size:20px}.tooth.selected .tooth-label{font-size:22px}.jaw-side,.jaw-label{font-size:12px}.device-sources:has([data-new=imaging]){grid-template-columns:1fr}}
@media print{.tooth-image-tools,.tooth-tabs{display:none}.tooth-diagram{max-height:220px}}

.tooth-diagram-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}@media(max-width:480px){.tooth-diagram{min-width:590px}.tooth-dialog .tooth-chart-panel{min-width:0}.tooth-card-heading h2{font-size:22px}}

.tooth-scroll-hint{display:none}@media(max-width:480px){.tooth-scroll-hint{display:block;font-size:11px;color:#6a796f;margin:0 0 14px}.sheet-preview .tooth-diagram{min-width:0}.sheet-preview .tooth-scroll-hint{display:none}}@media print{.tooth-scroll-hint{display:none}.tooth-diagram{min-width:0}}
/* A treatment progresses through distinct, source-linked milestones. */
.implant-post{fill:#cad5d4;stroke:#3c6564;stroke-width:1.3}.implant-thread{fill:none;stroke:#3c6564;stroke-width:1}.implant-cap,.implant-abutment{fill:#a5bab8;stroke:#3c6564;stroke-width:1}.implant-crown{fill:#fffdf4;stroke:#477264;stroke-width:1.4}.temporary-tooth .implant-crown{fill:#f3f8f8;stroke:#638c98;stroke-dasharray:2 2}.temporary-seat{fill:none;stroke:#638c98;stroke-dasharray:2 2}.graft-bed{fill:#e8d5b7;stroke:#a17b45;stroke-width:1.2}.graft-grain{fill:#b18b57}.healing-site{fill:#dce9dc;stroke:#729e7c;stroke-width:1.1;stroke-dasharray:2 2}.healing-line{fill:none;stroke:#729e7c;stroke-width:1.4}.treatment-primary{display:flex;border-bottom:1px solid #d4ddd4;gap:28px;margin-bottom:22px}.treatment-primary button{background:none;border:0;border-bottom:2px solid transparent;border-radius:0;padding:12px 0 16px;color:#728077;font:600 15px 'Hanken Grotesk',Arial;cursor:pointer}.treatment-primary button[aria-pressed=true]{color:#214f3d;border-color:#214f3d}.treatment-options{display:flex;overflow-x:auto;gap:0;margin:0 0 22px;padding-bottom:4px;overscroll-behavior-x:contain}.treatment-options button{flex:1;min-width:133px;background:#f5f6f0;border:1px solid transparent;border-bottom:2px solid transparent;border-radius:0;color:#4c6357;text-align:left;padding:12px;font:500 13px 'Hanken Grotesk',Arial;cursor:pointer}.treatment-options button[aria-pressed=true]{background:#e9eee5;border-bottom-color:#41634f;color:#224534}.treatment-options small{display:block;font-size:10px;font-weight:400;margin-top:6px;color:#718174}.treatment-stage{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(260px,1.1fr);gap:42px;align-items:center;padding:10px 0 22px;min-height:290px}.treatment-illustration{margin:0;background:#f4f3e9;border:1px solid #e3e4d9;padding:16px 18px 14px}.treatment-illustration svg{display:block;width:100%;height:auto;max-height:280px}.treatment-illustration figcaption{font-size:11px;color:#819082;text-align:center;letter-spacing:.5px}.section-bone{fill:#e7e1ce;stroke:none}.section-gum{fill:none;stroke:#bf9f89;stroke-width:7;stroke-linecap:round}.section-guide{stroke:#c8c9b8;stroke-width:.7}.treatment-copy h3{font-size:28px;margin:6px 0 8px}.treatment-copy p{font-size:14px;line-height:1.65;margin:10px 0}.treatment-copy .treatment-state{font-size:10px;text-transform:uppercase;letter-spacing:1.3px;font-weight:600;color:#557668;margin:0}.treatment-copy .treatment-state.illustration,.treatment-copy .treatment-state.planned{color:#956637}.treatment-copy .treatment-date{font-size:12px;color:#708073;margin-top:0}.treatment-copy .treatment-note{font-weight:600;color:#31503f}.treatment-copy .treatment-boundary{font-size:12px;color:#886342;padding-left:12px;border-left:1px solid #c8b79c}.treatment-copy .tooth-fine{font-size:11px;color:#829084}.treatment-copy a{color:#4f7364}.treatment-mouth{border-top:1px solid #dfe4dc;padding:17px 0 0}.treatment-mouth summary{cursor:pointer;font-size:14px;font-weight:600;color:#3d5c49}.treatment-mouth summary span{display:inline-block;font-weight:400;color:#7f8b80;font-size:12px;margin-left:16px}.treatment-mouth .tooth-diagram{max-height:265px}.treatment-editor-list{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0}.treatment-editor-list button{text-align:left;font-size:13px}.treatment-editor-list button small{display:block;font-size:10px;color:#728174;margin-top:4px}.treatment-editor-list button[aria-pressed=true]{background:#e9eee5;border-color:#64816c}.treatment-stage-actions{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.treatment-stage-actions button{font-size:12px}.treatment-stage-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.tooth-editor .treatment-illustration{max-width:360px;margin:16px auto}.timeline-help{font-size:12px;line-height:1.6;color:#708074}
@media(max-width:720px){.treatment-primary{gap:20px}.treatment-primary button{font-size:13px}.treatment-stage{grid-template-columns:1fr;gap:20px}.treatment-illustration{max-width:410px;width:100%;box-sizing:border-box;margin:auto}.treatment-illustration svg{max-height:220px}.treatment-copy h3{font-size:24px}.treatment-options button{min-width:142px}.treatment-mouth summary span{display:block;margin:7px 0 0 15px}.tooth-dialog .treatment-copy{min-width:0}}
@media(prefers-reduced-motion:no-preference){.treatment-illustration svg{animation:stage-arrive .2s ease-out}@keyframes stage-arrive{from{opacity:.5;transform:translateY(3px)}to{opacity:1;transform:none}}}
.treatment-options button{display:flex;flex-direction:column;align-items:flex-start;gap:0}.treatment-options{scrollbar-width:thin;scrollbar-color:#9ba99c #f0f2ea}.treatment-stage .treatment-copy{overflow-wrap:anywhere}
