*,*:before,*:after{box-sizing:border-box}html,body{margin:0;min-height:100%}:root{--bg:#eef2f7;--panel:#ffffff;--panel-soft:#f7f9fc;--ink:#243247;--muted:#708093;--line:#d9e2ec;--board-top:#2b3038;--board-bottom:#232831;--board-line:rgba(255,255,255,.07);--blue:#3b82f6;--green:#21906d;--amber:#d28a26;--red:#d85852;--silver:#8f9daf;--slate:#738598;--cyan:#55a8e8;--teal:#7fc8c9;--shadow:0 20px 56px rgba(18,35,57,.12)}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:var(--ink);background:radial-gradient(circle at 8% 0%,rgba(255,255,255,.98),transparent 32%),linear-gradient(180deg,#f8fafc,#eaf0f6);-webkit-font-smoothing:antialiased}.app-header{position:static;display:grid;gap:0;margin-bottom:18px;border:1px solid rgba(217,226,236,.95);background:#fff;box-shadow:0 8px 24px #1223390f}.topbar{display:flex;align-items:center;gap:28px;min-height:68px;padding:10px 16px;border-bottom:1px solid var(--line);background:#fff}.brand{display:flex;align-items:center;gap:12px;min-width:0}.brand-copy{display:grid;align-content:center;gap:4px;min-width:0}.contextbar{display:flex;align-items:center;gap:12px;min-height:78px;padding:15px 16px;background:#fff}.logo{width:42px;height:42px;border-radius:0;display:grid;place-items:center;color:var(--blue);font-size:27px}.logo img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:0}.title{margin:0;font-size:20px;line-height:1.05;letter-spacing:-.02em}.brand-subtitle{margin:0;color:var(--muted);font-size:10px;font-weight:700;line-height:1.2;letter-spacing:0;text-transform:none}.app-nav{display:flex;align-self:stretch;align-items:center;gap:4px}.app-nav-item{display:flex;align-items:center;height:100%;padding:0 14px;border-bottom:2px solid transparent;color:var(--muted);font-size:13px;font-weight:650}.app-nav-item.active{border-bottom-color:var(--ink);color:var(--ink)}.back-to-appointments{appearance:none;display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:8px 0 8px 12px;border:0;border-left:1px solid var(--line);background:transparent;color:#526174;font:inherit;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer;transition:color .14s ease}.back-to-appointments:hover{color:#2563eb}.back-to-appointments:focus-visible{outline:3px solid rgba(59,130,246,.25);outline-offset:3px}.back-to-appointments-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}.dentition-switch{align-items:center;gap:8px;flex-wrap:wrap;padding:4px 12px 4px 4px;border-right:1px solid var(--line)}.dentition-label{font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}.dentition-pills{display:flex;gap:12px;flex-wrap:wrap;margin-top:5px}.dentition-btn{appearance:none;border:1px solid var(--line);background:var(--panel);color:var(--ink);min-height:34px;padding:0 14px;border-radius:0;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.dentition-btn.active{background:#e8f1ff;border-color:#84b3ff;color:#1f4a86}.dentition-hint{flex-basis:100%;font-size:10px;line-height:1.1;color:var(--muted)}.meta{display:flex;gap:6px;flex:1;flex-wrap:wrap}.meta-block small{display:block;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.meta-block strong{display:block;font-size:16px;font-weight:750;line-height:1.25;color:var(--ink)}.meta-block span{display:block;margin-top:4px;font-size:11px;font-weight:550;color:var(--muted)}.meta-block span:empty{display:none}.meta-card{appearance:none;border:1px solid transparent;border-radius:0;background:transparent;padding:0;text-align:left;cursor:pointer;position:relative;transition:background .14s ease,border-color .14s ease,box-shadow .14s ease}.meta-card .meta-block{padding:7px 36px 7px 12px;min-width:180px}.meta-card:hover{background:var(--panel-soft);border-color:var(--line)}.meta-card:after{content:"›";position:absolute;right:13px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:500;color:#8b9bad}#patient-trigger{min-width:245px;border-color:#bfd5f2;background:#f5f9ff}#patient-trigger:hover{border-color:#82afe9;background:#edf5ff;box-shadow:0 4px 12px #3b82f61a}#patient-trigger.needs-patient{border-color:#75a9ea;box-shadow:inset 3px 0 0 var(--blue)}#patient-trigger.needs-patient strong{color:#1f5fae}#patient-trigger.needs-patient:after{content:"Add";font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#2f7ce5}.topbar-actions{display:flex;gap:10px;flex-wrap:wrap}.btn,.pill,.chip,.surface-chip{appearance:none;border:1px solid transparent;font:inherit;cursor:pointer;transition:transform .12s ease,background .12s ease,border-color .12s ease,color .12s ease,opacity .12s ease}.btn:hover,.pill:hover,.chip:hover,.surface-chip:hover{transform:translateY(-1px)}.btn:disabled,.chip:disabled,.surface-chip:disabled{cursor:not-allowed;transform:none;opacity:.42}.btn{height:40px;padding:0 16px;border-radius:0;font-weight:750}.btn.primary{background:linear-gradient(180deg,#5ca3ff,#2f7ce5);color:#fff;box-shadow:0 7px 16px #2f7ce533}.contextbar>.topbar-actions{margin-left:auto;align-items:center;flex:none;flex-wrap:nowrap}.contextbar>.topbar-actions .btn{height:40px}.pdf-icon-btn{width:120px;padding:0 11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap}.pdf-download-icon{display:block;width:25px;height:25px;object-fit:contain;flex:none}.btn.secondary{background:var(--panel-soft);border-color:var(--line);color:var(--ink)}.btn:focus-visible,.chip:focus-visible,.dentition-btn:focus-visible,.meta-card:focus-visible,.surface-chip:focus-visible{outline:3px solid rgba(59,130,246,.25);outline-offset:2px}.layout{display:grid;grid-template-columns:minmax(620px,1.08fr) minmax(480px,.92fr);gap:18px;align-items:stretch;padding:15px 40px}.chart-card,.sidebar{border-radius:8px;background:var(--panel)}.chart-card{padding:0;min-width:0;border:1px solid rgba(217,226,236,.92);box-shadow:0 18px 48px #12233917;overflow:hidden}.print-patient-card,.print-note-card,.print-page-number{display:none}.print-patient-card{padding:18px 20px;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:var(--shadow);margin-bottom:14px}.print-export-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:14px}.print-export-title{font-size:28px;line-height:1;font-weight:700}.print-export-subtitle{margin-top:4px;font-size:13px;color:var(--muted)}.print-patient-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px}.print-info-item{padding:10px 12px;border-radius:14px;background:var(--panel-soft);border:1px solid var(--line)}.print-info-item.wide{grid-column:1 / -1}.print-info-item .print-label{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:4px}.print-info-item .print-value{display:block;font-size:14px;font-weight:700;color:var(--ink);line-height:1.4;white-space:pre-wrap}.print-note-card{padding:14px 16px 18px;border-top:1px solid var(--line);background:var(--panel)}.print-note-body{padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:var(--panel-soft);font-size:13px;line-height:1.5;color:var(--ink);white-space:pre-wrap}.chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:18px 20px 14px;background:linear-gradient(180deg,#fff,#fbfcfe)}.chart-head h2{margin:0;font-size:22px}.chart-head p{margin:5px 0 0;font-size:12px;color:var(--muted)}.chart-view-key{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end;color:var(--muted)}.chart-view-key:before{content:"View guide:";font-size:9px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8793a2}.chart-view-key span{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:10px;font-weight:700;white-space:nowrap}.chart-head-controls{display:grid;gap:0;width:min(320px,100%);justify-items:stretch;flex:0 1 320px}.mobile-entry-trigger,.mobile-entry-hint,.chart-layer-switch{display:none}.chart-layer-btn{height:30px;min-height:30px;max-height:30px;padding:4px 10px;border:0;border-radius:5px;background:transparent;color:var(--muted);font:inherit;font-size:10px;font-weight:850;line-height:1;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}.chart-layer-btn.active{background:var(--ink);color:#fff;box-shadow:0 4px 12px #1622332e}.chart-layer-btn[data-chart-view=planned].active{color:#a9d1ff}.view-key-icon{width:12px;height:16px;display:inline-block;border:1.5px solid #7f8b9a;background:#f5f2ec;border-radius:7px 7px 4px 4px}.view-key-icon.root{height:17px;border-radius:7px 7px 50% 50%}.view-key-icon.crown{width:15px;height:10px;border-radius:50%}.chart-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}.chart-tools-label{font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}.chart-view-toggle{justify-content:flex-end}.legend{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.pill{min-height:30px;padding:0 10px;border-radius:999px;background:#fff;border-color:var(--line);color:var(--ink);display:inline-flex;align-items:center;gap:7px;font-size:11px}.dot{width:11px;height:11px;border-radius:999px;display:inline-block}.chart-stage-wrap{overflow-x:auto;overflow-y:hidden;border-radius:0;scrollbar-width:none;-ms-overflow-style:none}.chart-stage-wrap::-webkit-scrollbar{display:none}.chart-stage{position:relative;min-width:720px;width:100%;padding:14px 12px 10px;border-radius:0;background:var(--board-bottom);border:1px solid rgba(255,255,255,.16);box-shadow:inset 0 1px #ffffff1f,inset 0 0 36px #141b2329;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.chart-stage.hidden{display:none}.split-stage{display:grid;gap:16px;padding:16px}.split-stage .orientation-grid{margin-bottom:-12px}.split-group{display:grid;gap:0;position:relative;padding:16px 8px 12px;border:1px solid rgba(255,255,255,.08);border-radius:6px;background:linear-gradient(180deg,#ffffff05,#0000000b)}.split-group+.split-group{margin-top:0}.split-group-head{display:grid;grid-template-columns:70px repeat(16,minmax(30px,1fr)) 70px;align-items:center;padding:0 0 4px}.split-status-label{display:inline-block;font-size:14px;font-weight:900;line-height:1;letter-spacing:.22em;text-transform:uppercase}.split-group-head .split-status-label{grid-column:9 / span 2;justify-self:center}.split-status-label.existing{color:#ffffffe6}.split-status-label.planned{color:#94c5ffdb}.split-divider{height:1px;background:linear-gradient(90deg,transparent,rgba(255,255,255,.18) 18%,rgba(255,255,255,.18) 82%,transparent);margin:4px 0}.entries-panel{padding:16px 20px 20px;border-top:1px solid var(--line);background:var(--panel)}.entries-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.entries-head h3{margin:0;font-size:16px}.entries-head span{font-size:12px;color:var(--muted)}.entries-list{display:grid;gap:4px;max-height:240px;overflow:auto}.entry-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:0 12px 0 0;border:1px solid transparent;border-radius:5px;background:transparent;transition:background .12s ease,border-color .12s ease;text-align:left}.entry-row:hover{background:var(--panel-soft);border-color:var(--line)}.entry-open{display:grid;grid-template-columns:52px minmax(0,1fr);gap:12px;align-items:center;width:100%;padding:10px 12px;border:0;background:transparent;color:inherit;text-align:left;cursor:pointer}.entry-remove{min-width:74px;padding:8px 10px;border:1px solid #e7b9b7;background:#fff;color:#b53d38;border-radius:4px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}.entry-remove-icon{display:none;width:18px;height:18px}.entry-remove:hover{border-color:#d85852;background:#fff3f2;color:#982f2b}.entry-remove:focus-visible,.entry-open:focus-visible{outline:2px solid #79aef7;outline-offset:2px}.entry-preview{width:52px;height:40px;border-radius:0;background:transparent;display:grid;place-items:center;justify-self:center;overflow:hidden;flex:none;position:relative}.summary-treatment-icon{width:32px;height:32px;border:1px solid var(--line);border-radius:6px;background:var(--panel-soft);display:grid;place-items:center}.entry-preview .art-core.front.upper{transform:scale(.26,-.26)}.entry-preview .art-core.front.lower{transform:scale(.26)}.entry-preview .art-core.occ{transform:scale(.3)}.entry-text{display:grid;grid-template-columns:minmax(170px,1.15fr) minmax(180px,1fr);grid-template-areas:"title meta" "note note";align-items:center;column-gap:16px;row-gap:5px;min-width:0}.entry-title{grid-area:title;font-size:12px;font-weight:700;color:var(--ink);min-width:0}.entry-meta{grid-area:meta;font-size:12px;color:var(--muted);min-width:0}.entry-note{grid-area:note;font-size:12px;color:var(--ink);min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.45}.entry-empty{padding:14px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);font-size:13px;background:var(--panel-soft)}.arch+.arch{margin-top:12px}.arch-grid,.orientation-grid{grid-template-columns:84px minmax(0,1fr) 84px;gap:1px 0;align-items:center}.upper-grid,.lower-grid{grid-template-rows:auto auto auto}.teeth-row,.orientation-row{display:grid;grid-template-columns:repeat(16,minmax(30px,1fr));column-gap:0;width:94%;margin-inline:auto}.teeth-row{align-items:flex-end;min-height:60px;padding-right:2px}.teeth-row.occ{min-height:30px;align-items:center}.teeth-row.numbers{min-height:18px;align-items:center}.arch-label-row{display:flex;justify-content:flex-start;align-items:center;min-height:18px;padding-left:6px;align-self:stretch}.arch-label-text{font-size:12px;font-weight:750;color:#fffffff0;letter-spacing:.01em;line-height:1.25;margin-bottom:10px;margin-top:17px}.arch-side{min-height:1px}.orientation-grid{margin-bottom:2px}.orientation-side{min-height:1px}.orientation-row{grid-column:2;align-items:center;min-height:18px}.side-label{font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:#ffffffc7;justify-self:center;line-height:1}.side-label.left{grid-column:4 / span 2}.side-label.right{grid-column:12 / span 2}.upper-label{grid-column:1;grid-row:1 / span 2;align-items:center}.upper-root-row{grid-column:2;grid-row:1;transform:translateY(11px)}.upper-crown-row{grid-column:2;grid-row:2;transform:translateY(-9px)}.upper-number-row{grid-column:2;grid-row:3}.lower-number-row{grid-column:2;grid-row:1}.lower-label{grid-column:1;grid-row:2 / span 2;align-items:center}.lower-crown-row{grid-column:2;grid-row:2;transform:translateY(2px)}.lower-root-row{grid-column:2;grid-row:3;transform:translateY(-26px)}.split-stage .arch-grid,.split-stage .orientation-grid{grid-template-columns:70px minmax(0,1fr) 70px}.split-stage .upper-grid{grid-template-rows:108px 58px 22px}.split-stage .lower-grid{grid-template-rows:22px 58px 108px;padding-bottom:30px}.split-stage .teeth-row{min-height:0;align-items:center}.split-stage .upper-root-row,.split-stage .upper-crown-row,.split-stage .lower-crown-row,.split-stage .lower-root-row{transform:none}.split-stage .upper-root-row,.split-stage .lower-root-row,.split-stage .teeth-row.occ{align-items:center}.split-stage .tooth,.split-stage .lower-grid .tooth{transform:none}.split-stage .arch-label-text{font-weight:700;color:#ffffffc2}.split-stage .upper-label .arch-label-text:after{display:block;margin-top:4px;font-size:8px;font-weight:600;color:#ffffff5c}.split-stage .lower-label .arch-label-text:after{display:block;margin-top:4px;font-size:8px;font-weight:600;color:#ffffff5c}.arch-divider-line{grid-column:1 / -1;height:1px;margin:1px 0;background:#ffffff29}.midline{width:2px;background:linear-gradient(180deg,transparent,rgba(255,255,255,.42),transparent)}.midline.tall{align-self:stretch}.midline.short{align-self:center;height:30px}.number{font-size:9px;font-weight:700;color:#fffffff0;text-align:center}.number.empty{opacity:0}.number.ghost{opacity:.34}.tooth{position:relative;cursor:pointer;display:flex;justify-content:center}.tooth.ghost{cursor:default}.tooth.ghost .tooth-art{opacity:.34;filter:saturate(.75)}.tooth.ghost:hover .tooth-art{transform:none;filter:none;opacity:.48}.tooth-spacer{min-height:1px}.tooth.active .tooth-art{transform:translateY(-2px) scale(1.07);filter:brightness(1.06) contrast(1.04) drop-shadow(0 9px 6px rgba(0,0,0,.42))}.tooth-art{position:relative;display:grid;place-items:center;transition:transform .16s ease,filter .16s ease}.tooth:hover .tooth-art{transform:translateY(-3px) scale(1.08);filter:brightness(1.05) contrast(1.05) drop-shadow(0 10px 7px rgba(0,0,0,.46))}.tooth.has-tooltip:after{content:attr(data-tooltip);position:absolute;left:calc(100% + 10px);top:50%;transform:translateY(-50%);min-width:140px;max-width:180px;padding:7px 9px;border-radius:10px;background:#0f172af5;border:1px solid rgba(143,201,255,.24);color:#f8fafc;font-size:11px;line-height:1.4;white-space:pre-line;text-align:left;box-shadow:0 12px 28px #00000047;opacity:0;pointer-events:none;z-index:30;transition:opacity .12s ease,transform .12s ease}.tooth.has-tooltip:before{content:"";position:absolute;left:calc(100% + 4px);top:50%;transform:translateY(-50%);border:6px solid transparent;border-right-color:#0f172af5;opacity:0;pointer-events:none;z-index:30;transition:opacity .12s ease}.tooth.tooltip-left:after{left:auto;right:calc(100% + 10px)}.tooth.tooltip-left:before{left:auto;right:calc(100% + 4px);border-right-color:transparent;border-left-color:#0f172af5}.tooth.has-tooltip:hover:after,.tooth.has-tooltip:hover:before{opacity:1}.tooth.has-tooltip:hover:after{transform:translateY(-50%) translate(2px)}.tooth.tooltip-left:hover:after{transform:translateY(-50%) translate(-2px)}.art-core{position:relative;transform-origin:center center}.art-core.front.upper{transform:scale(.59,-.59)}.art-core.front.lower{transform:scale(.59)}.art-core.occ{transform:scale(.9)}.art-core.front svg path[fill=none]{opacity:.42!important;stroke-width:1.15!important;stroke-linecap:round;stroke-linejoin:round}.art-core.occ svg>path:first-of-type{stroke:#aa9782!important;stroke-width:1.05!important}.art-core.occ svg path[fill=none]{stroke:#a88f77!important;opacity:.68!important;stroke-linecap:round;stroke-linejoin:round}.art-core.front svg ellipse[fill^="url(#sg"]{opacity:.68!important}.art-core.occ svg{filter:drop-shadow(1px 4px 3px rgba(0,0,0,.42))}.surface-svg{position:absolute;inset:0}.surface-region{stroke-width:1;transition:fill .14s ease,stroke .14s ease,fill-opacity .14s ease}.surface-region:hover{stroke:#16c7c1;stroke-width:2.25;filter:none;fill:#38d9d2!important;fill-opacity:.34}.surface-region.selected{stroke:#159eaa;stroke-width:2.5;filter:none;fill-opacity:.48}.status-ring,.plan-ring{position:absolute;inset:-3px;pointer-events:none}.status-ring{border-radius:14px;border:2px solid var(--ring-color)}.plan-ring{border-radius:14px;border:2.4px dashed var(--ring-color);background:color-mix(in srgb,var(--ring-color) 12%,transparent);box-shadow:0 0 0 1px color-mix(in srgb,var(--ring-color) 32%,transparent),0 0 12px color-mix(in srgb,var(--ring-color) 18%,transparent)}.plan-ring{display:none}.review-badge{position:absolute;top:3px;left:50%;right:auto;transform:translate(-50%);min-width:16px;height:16px;padding:0 4px;border-radius:999px;display:grid;place-items:center;background:#526f8f;color:#fff;font-size:10px;font-weight:800;line-height:1;border:1px solid rgba(220,232,244,.88);box-shadow:0 4px 10px #1a2d424d;pointer-events:none;z-index:4}.review-badge.bottom{top:auto;bottom:3px}.entry-preview .review-badge{inset:0 1px auto auto;transform:none;min-width:15px;height:15px;font-size:8px;padding:0 3px}.rct-lines{position:absolute;inset:0;pointer-events:none}.rct-lines span{position:absolute;width:5px;border-radius:999px;background:linear-gradient(180deg,#ff9d94,#ff5a4f 45%,#d9322a);box-shadow:0 0 14px #ff5a4f99}.missing-box{display:flex;align-items:center;justify-content:center;border:2px dashed rgba(255,255,255,.28);border-radius:14px;color:#ffffffad;font-size:16px;font-weight:700;background:#ffffff0a}.sidebar{margin-top:0;padding:18px;background:var(--panel);border:1px solid rgba(217,226,236,.92);color:var(--ink);position:static;height:100%;max-height:none;overflow:visible;box-shadow:0 18px 48px #12233917}.sidebar-empty{display:none}.sidebar-empty h3{margin:0;font-size:20px}.sidebar-empty p{margin:0;line-height:1.5;color:var(--muted)}.helper-list{display:grid;gap:10px}.helper-list div{padding:12px 14px;border-radius:14px;background:var(--panel-soft);color:var(--ink);font-size:13px;border:1px solid var(--line)}.editor{display:grid;gap:14px}.editor.show{display:grid}.selected-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,22%);align-items:stretch;gap:20px;padding-bottom:14px;border-bottom:1px solid var(--line);min-width:0;overflow:hidden}.selected-main{display:grid;gap:6px;align-content:start}.selected-side{display:grid;grid-template-rows:minmax(130px,1fr) auto;align-items:stretch;width:100%;height:100%;max-width:100%;min-width:0;overflow:hidden}.selected-code{font-size:42px;line-height:.9;font-weight:800;letter-spacing:-.04em}.selected-name{margin-top:2px;color:var(--muted);font-size:12px;line-height:1.45}.mini-preview{width:100%;height:100%;min-height:150px;border-radius:6px;background:var(--ink);border:1px solid var(--panel-soft);display:grid;place-items:center;overflow:hidden}.mini-preview.empty{color:#a4adba;font-size:28px}.mini-preview .mini-art{position:relative;width:100%;height:100%;overflow:hidden}.mini-preview .mini-art .art-core{position:absolute;left:50%;top:50%;width:max-content;height:max-content;transform-origin:center center}.field{display:grid;gap:8px}.field-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}.field-title{font-size:10px;font-weight:800;letter-spacing:.15em;text-transform:uppercase;color:var(--muted)}.field-heading-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.field-manage-btn{appearance:none;border:0;background:transparent;padding:2px 0;color:#2f7ce5;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.field-manage-btn:hover{text-decoration:underline}.selection-row{display:grid;gap:6px}.selected-teeth{display:flex;flex-wrap:wrap;gap:6px}.tooth-tag{min-height:22px;padding:0 8px;border-radius:5px;background:var(--panel-soft);border:1px solid var(--line);display:inline-flex;align-items:center;font-size:10px;color:var(--ink)}.chip-grid{display:flex;flex-wrap:wrap;gap:7px}#treatment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;align-items:stretch}.surface-grid{display:block}.chip{min-height:36px;padding:0 13px;border-radius:6px;background:var(--panel-soft);border-color:var(--line);color:var(--ink);font-size:11px}.chip.active{background:#e8f1ff;border-color:#84b3ff;color:#1f4a86}.chip.treatment{width:100%;border-radius:6px;min-height:40px;padding:6px 8px;display:grid;grid-template-columns:20px minmax(0,1fr);align-items:center;gap:7px}.treatment-icon{width:18px;height:18px;border-radius:6px;background:#eef3f8;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #2432470f}.treatment-text{display:grid;gap:1px;text-align:left}.treatment-name{font-size:10px;font-weight:750;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.treatment-hint{display:none}.surface-pad{display:grid;grid-template-columns:repeat(3,54px);grid-template-rows:repeat(3,32px);grid-template-areas:". top ." "left center right" ". bottom .";gap:5px;align-items:center;justify-content:flex-start}.surface-pad.inactive{opacity:.38;filter:saturate(.75)}.surface-chip{width:54px;height:32px;border-radius:5px;background:var(--panel-soft);border-color:var(--line);color:var(--ink);font-weight:700;font-size:13px;display:grid;place-items:center}.surface-chip.active{background:#21906d3d;border-color:#62deb485;box-shadow:0 0 0 1px #62deb429 inset}.surface-chip.empty{visibility:hidden;pointer-events:none}.surface-chip[data-area=top]{grid-area:top}.surface-chip[data-area=left]{grid-area:left}.surface-chip[data-area=center]{grid-area:center}.surface-chip[data-area=right]{grid-area:right}.surface-chip[data-area=bottom]{grid-area:bottom}.field-note{font-size:10px;color:var(--muted);line-height:1.35}.note-input{width:100%;height:clamp(160px,22vh,240px);min-height:160px;resize:vertical;padding:12px;border-radius:6px;border:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;font-size:12px;line-height:1.5}.note-input::placeholder{color:#9aa6b2}.note-input:disabled{opacity:.42}.preview{padding:11px 12px;border-radius:6px;background:var(--panel-soft);border:1px solid var(--line);font-size:11px;line-height:1.45;width:100%}.preview strong{color:var(--ink)}.form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;min-width:0;padding-top:12px;border-top:1px solid var(--line)}.form-actions .btn{width:100%;min-width:0;height:42px;padding-inline:10px}.selected-actions .btn{width:100%;min-height:34px;padding:0 12px;font-size:11px}.modal-backdrop{position:fixed;inset:0;background:#0f172a7a;display:none;align-items:center;justify-content:center;padding:18px;z-index:100;overscroll-behavior:contain}.auth-gate{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:radial-gradient(circle at 50% 0%,rgba(255,255,255,.98),transparent 42%),linear-gradient(180deg,#f8fafc,#eaf0f6)}.auth-gate-dialog{width:min(460px,100%);padding:32px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 28px 70px #0f172a2e;text-align:center}.auth-gate-icon{width:58px;height:58px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:#edf5ff;color:#2563eb;font-size:26px;font-weight:800}.auth-gate-dialog h1{margin:0;color:var(--ink);font-size:24px}.auth-gate-dialog p{margin:12px 0 0;color:var(--muted);font-size:14px;line-height:1.6}.auth-gate-actions{display:flex;justify-content:center;gap:10px;margin-top:24px}.modal-backdrop.show{display:flex}.modal{width:min(1500px,100%);max-height:calc(100vh - 36px);overflow:auto;border-radius:8px;background:#fff;box-shadow:0 28px 70px #0f172a47;padding:18px}.patient-modal{width:min(1200px,100%);height:min(780px,calc(100vh - 36px));padding:24px;overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr);overscroll-behavior:contain}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.modal-head h3{margin:0;font-size:22px}.modal-head p{margin:6px 0 0;font-size:13px;color:var(--muted)}.icon-btn{appearance:none;border:1px solid var(--line);background:#fff;width:34px;height:34px;border-radius:12px;font:inherit;cursor:pointer}.patient-modal>.patient-form{min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:6px}.patient-form{display:grid;gap:12px}.patient-tabs{display:flex;gap:4px;margin-bottom:20px;padding:4px;border:1px solid var(--line);border-radius:8px;background:var(--panel-soft)}.patient-tab{flex:1;min-height:44px;padding:10px 16px;border:0;border-radius:6px;background:transparent;color:var(--muted);font:inherit;font-weight:800;cursor:pointer}.patient-tab.active{background:#fff;color:var(--ink);box-shadow:0 1px 4px #0f172a1f}.existing-patient-panel{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:18px;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;padding-right:6px}.existing-patient-panel[hidden],.patient-form[hidden]{display:none}.patient-search-copy h4{margin:0;font-size:18px;color:var(--ink)}.patient-search-copy p{margin:5px 0 0;color:var(--muted);font-size:13px}.patient-search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px}.patient-search-bar input{width:100%;min-height:48px;padding:11px 14px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font:inherit}.patient-search-bar input:focus{outline:2px solid rgba(11,142,161,.2);border-color:#0b8ea1}.patient-search-results{min-height:280px;border:1px dashed var(--line);border-radius:8px;background:var(--panel-soft);display:grid;place-items:center;padding:24px}.patient-search-empty{display:grid;justify-items:center;gap:7px;color:var(--muted);text-align:center}.patient-search-empty strong{color:var(--ink);font-size:15px}.patient-search-empty p{margin:0;font-size:12px}.patient-search-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#fff;border:1px solid var(--line);color:#0b8ea1;font-size:28px}.patient-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.patient-field{display:grid;gap:6px}.patient-field label{font-size:12px;font-weight:700;color:var(--ink)}.patient-field input,.patient-field textarea,.patient-field select{width:100%;min-height:40px;padding:10px 12px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit}.patient-field textarea{min-height:78px;resize:vertical}.patient-field.full{grid-column:1 / -1}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}.date-field-shell{display:grid;grid-template-columns:minmax(0,1fr) 46px;gap:8px;align-items:center}.date-text-input{width:100%;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit;font-size:16px;font-weight:700}.date-text-input::placeholder{color:var(--muted);font-weight:600}.date-text-input.invalid{border-color:#ef4444;box-shadow:0 0 0 1px #ef44442e}.date-picker-btn{width:46px;height:46px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit;font-size:18px;display:grid;place-items:center;cursor:pointer}.date-popover{position:fixed;z-index:140;width:min(420px,calc(100vw - 28px));border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 28px 70px #0f172a3d;padding:18px}.date-popover[hidden]{display:none}.date-popover-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.date-nav-btn{appearance:none;border:1px solid var(--line);background:#fff;width:40px;height:40px;border-radius:14px;font:inherit;font-size:24px;line-height:1;cursor:pointer;color:var(--ink)}.date-title-btn{appearance:none;border:none;background:#f3f5f8;color:var(--ink);font:inherit;font-size:18px;font-weight:800;border-radius:16px;padding:12px 18px;cursor:pointer;min-width:180px}.date-view{display:grid;gap:10px}.date-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;color:var(--muted);font-size:12px;font-weight:800;text-align:center}.date-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.date-grid-btn{appearance:none;border:none;background:#fff;color:var(--ink);font:inherit;border-radius:18px;min-height:48px;cursor:pointer;font-weight:700}.date-grid-btn:hover{background:#f4f7fb}.date-grid-btn.muted{color:#a4adba}.date-grid-btn.active{background:#bfe8ee;color:#12344d;box-shadow:inset 0 0 0 2px #0b8ea1}.date-grid-btn.today{box-shadow:inset 0 0 0 1px #c9d8eb}.date-months,.date-years{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.date-months .date-grid-btn,.date-years .date-grid-btn{min-height:84px;font-size:17px}.date-popover-actions{display:flex;justify-content:space-between;gap:10px;margin-top:16px}.date-popover-actions .btn{min-width:108px}.treatment-manager-modal{width:min(860px,100%)}.treatment-manager-section,.add-treatment-form{display:grid;gap:12px;padding:14px 0}.treatment-manager-section{border-bottom:1px solid var(--line)}.manager-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.manager-section-head strong{font-size:13px}.manager-section-head span{font-size:11px;color:var(--muted)}.treatment-method-list{display:grid;gap:7px;max-height:330px;overflow:auto;padding-right:4px}.treatment-method-row{display:grid;grid-template-columns:24px 34px minmax(150px,1fr) 150px 54px 84px;gap:8px;align-items:center;padding:8px;border:1px solid var(--line);background:var(--panel-soft)}.method-visible{width:18px;height:18px;margin:0;accent-color:var(--blue);cursor:pointer}.manager-icon-preview{width:30px;height:30px;display:grid;place-items:center;background:#fff;border:1px solid var(--line)}.treatment-method-row input,.treatment-method-row select,.add-treatment-grid input,.add-treatment-grid select{width:100%;min-height:36px;padding:7px 9px;border:1px solid var(--line);border-radius:5px;background:#fff;color:var(--ink);font:inherit;font-size:12px}.method-color-input{padding:4px!important;cursor:pointer}.method-remove-btn{appearance:none;border:1px solid #f0c5c2;background:#fff6f5;color:#b8413b;min-height:36px;padding:0 10px;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.method-remove-btn:disabled{border-color:var(--line);background:#f4f6f8;color:#9aa6b2;cursor:not-allowed}.add-treatment-form{border-bottom:1px solid var(--line)}.add-treatment-grid{display:grid;grid-template-columns:1.6fr 1fr 90px;gap:8px}.add-treatment-grid label{display:grid;gap:5px;font-size:10px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}.add-treatment-grid input[type=color]{padding:4px;cursor:pointer}.add-method-btn{justify-self:start}.manager-actions{margin-top:14px}#mobile-tooth-modal,#mobile-entry-modal{display:none}@media(max-width:600px){#mobile-tooth-modal.show{display:flex}.mobile-tooth-backdrop{padding:10px;background:#070e18b8}.mobile-tooth-modal{width:100%;max-height:calc(100dvh - 20px);padding:16px;border-radius:12px}.mobile-tooth-modal-head{margin-bottom:8px}.mobile-tooth-kicker{display:block;margin-bottom:3px;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.mobile-tooth-close{width:44px;height:44px;flex:none;font-size:18px}.mobile-tooth-instruction{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.4}.mobile-tooth-navigation{display:grid;grid-template-columns:minmax(96px,1fr) auto minmax(96px,1fr);gap:8px;align-items:center;margin-bottom:12px}.mobile-tooth-nav-btn{min-width:0;min-height:48px;padding:7px 10px;border:1px solid #b9cee8;border-radius:10px;background:#eef6ff;color:#24537f;display:flex;align-items:center;justify-content:center;gap:7px;font:inherit;font-size:21px;font-weight:800;cursor:pointer;touch-action:manipulation}.mobile-tooth-nav-btn small{font-size:11px;font-weight:800;white-space:nowrap}.mobile-tooth-nav-btn:disabled{border-color:var(--line);background:#f4f5f7;color:#a4adb8;cursor:not-allowed}.mobile-tooth-nav-hint{color:var(--muted);font-size:9px;font-weight:700;line-height:1.25;text-align:center}.mobile-tooth-views{display:grid;grid-template-columns:1fr 1fr;gap:10px}.mobile-tooth-view{min-width:0;padding:12px 8px;border:1px solid var(--line);border-radius:10px;background:var(--panel-soft);text-align:center}.mobile-tooth-view>strong{display:block;font-size:12px;color:var(--ink)}.mobile-tooth-art{height:180px;display:grid;place-items:center;overflow:visible}.mobile-tooth-art .tooth{width:100%;height:100%;align-items:center;cursor:pointer}.mobile-tooth-art .tooth-art{transform:none!important;filter:none!important}.mobile-tooth-art.root .art-core.front.upper{transform:scale(1.35,-1.35)}.mobile-tooth-art.root .art-core.front.lower{transform:scale(1.35)}.mobile-tooth-art.crown .art-core.occ{transform:scale(2.65)}.mobile-tooth-art .surface-region{cursor:pointer;touch-action:manipulation}.mobile-tooth-selection{min-height:34px;margin-top:10px;padding:9px 10px;border-radius:8px;background:#eef6ff;color:#315778;font-size:12px;font-weight:700;text-align:center}.mobile-optional-molar-btn{width:100%;min-height:46px;margin-top:10px;padding:9px 12px;border:1px solid #d7a7a3;border-radius:9px;background:#fff4f3;color:#a33b35;font:inherit;font-size:12px;font-weight:800;cursor:pointer;touch-action:manipulation}.mobile-optional-molar-btn.activate{border-color:#9bc7ac;background:#effaf3;color:#277244}.mobile-optional-molar-btn[hidden]{display:none}.mobile-tooth-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}.mobile-tooth-actions .btn{width:100%;min-height:44px}#mobile-entry-modal.show{display:flex}.mobile-entry-backdrop{padding:8px;background:#070e18b8}.mobile-entry-modal{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:100%;height:calc(100dvh - 16px);max-height:none;padding:14px;overflow:hidden;border-radius:12px}.mobile-entry-head{margin-bottom:8px}.mobile-entry-heading{min-width:0;flex:1}.mobile-entry-head h3{margin-top:12px;font-size:19px}.mobile-entry-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;width:min(260px,100%);margin-inline:auto;padding:3px 4px 0}.mobile-entry-stage{appearance:none;position:relative;display:grid;justify-items:center;gap:4px;min-width:0;padding:0;border:0;background:transparent;color:#9aa6b2;font:inherit;font-size:9px;font-weight:800;text-align:center;cursor:pointer;touch-action:manipulation}.mobile-entry-stage:focus-visible{outline:2px solid #3484e8;outline-offset:3px;border-radius:5px}.mobile-entry-stage:not(:last-child):after{content:"";position:absolute;top:14px;left:calc(50% + 16px);right:calc(-50% + 16px);height:2px;background:#dce3eb}.mobile-entry-stage span{position:relative;z-index:1;width:28px;height:28px;border:2px solid #dce3eb;border-radius:50%;display:grid;place-items:center;background:#fff;color:#8b98a7;font-size:11px}.mobile-entry-stage small{font:inherit;white-space:nowrap}.mobile-entry-stage.current{color:#24537f}.mobile-entry-stage.current span{border-color:#3484e8;color:#24537f;box-shadow:0 0 0 3px #3484e81f}.mobile-entry-stage.complete{color:#277244}.mobile-entry-stage.complete span{border-color:#2f9b62;background:#2f9b62;color:#fff}.mobile-entry-stage.complete:after{background:#2f9b62}.mobile-entry-content{min-height:0;overflow:auto;padding:0 2px 10px}.mobile-entry-content .editor{display:grid;gap:14px;padding:0}.mobile-entry-content .selected-head{display:grid;grid-template-columns:1fr;gap:10px;overflow:visible}.mobile-entry-content .selected-side{grid-row:1;max-width:none}.mobile-entry-content .selected-main{grid-row:2}.mobile-entry-content .mini-preview{width:100%;height:150px;min-height:150px}.mobile-entry-content .form-actions{display:none}.mobile-entry-content .field-pair{display:contents}.mobile-entry-content .editor>.field,.mobile-entry-content .field-pair>.field{display:none!important}.mobile-entry-content[data-step="2"] .selection-field,.mobile-entry-content[data-step="2"] .view-field,.mobile-entry-content[data-step="2"] #surface-field,.mobile-entry-content[data-step="3"] .selection-field,.mobile-entry-content[data-step="3"] .treatment-field,.mobile-entry-content[data-step="4"] .selection-field,.mobile-entry-content[data-step="4"] .status-field,.mobile-entry-content[data-step="4"] .note-field{display:grid!important}.mobile-entry-content .preview{font-size:12px}.mobile-entry-content #treatment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mobile-entry-content .note-input{height:170px;min-height:170px}.mobile-entry-footer{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid var(--line)}.mobile-entry-footer .btn{width:100%;min-height:46px}.mobile-entry-footer [hidden]{display:none}}@media(max-width:1280px){.layout{grid-template-columns:1fr;padding:0}.sidebar{height:auto}.selected-head{grid-template-columns:minmax(0,1fr) minmax(180px,22%)}.selected-side{max-width:none}#treatment-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:900px){.page{padding:12px}.app-header{position:static}.topbar{padding:12px}.app-nav{display:none}.contextbar{display:grid;grid-template-columns:1fr;padding:10px}.contextbar>.topbar-actions{justify-self:end}.dentition-switch{border-right:0;border-bottom:1px solid var(--line);padding:4px 4px 10px}.meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.meta-card .meta-block{min-width:0}.chart-head{flex-direction:column}.chart-view-key{justify-content:flex-start}.field-pair{grid-template-columns:1fr}#treatment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.patient-modal{height:calc(100dvh - 20px);padding:16px}.patient-tabs{margin-bottom:14px}.patient-tab{padding:9px 8px;font-size:12px}.patient-search-bar{grid-template-columns:1fr}.patient-search-bar .btn{width:100%}.existing-patient-panel{min-height:360px}.page{padding:8px}.chart-card,.sidebar{border-radius:8px}.topbar{align-items:center;flex-wrap:wrap;gap:10px;padding:10px}.header-status{font-size:10px}.brand{flex:1 1 165px;min-width:0}.topbar-actions{flex:0 1 auto;margin-left:auto;gap:6px}.title{font-size:16px}.brand-copy{gap:3px}.brand-subtitle{font-size:9px;font-weight:700}.dentition-switch{align-items:flex-start}.dentition-label{flex-basis:100%}.dentition-btn{min-height:32px;padding-inline:12px;font-size:11px}.meta{grid-template-columns:1fr}.meta-block small{font-size:9px;margin-bottom:3px}.meta-block strong{font-size:14px;line-height:1.2}.meta-block span{margin-top:3px;font-size:10px;line-height:1.3}.meta-card .meta-block{padding:8px 32px 8px 10px}.meta-card:after{right:10px;font-size:18px}.topbar-actions{display:grid;grid-template-columns:auto auto}.contextbar>.topbar-actions{width:100%;grid-template-columns:1fr 1fr;justify-self:stretch}.contextbar>.topbar-actions .btn,.contextbar>.topbar-actions .pdf-icon-btn{width:100%}.topbar-actions .btn{padding-inline:11px;font-size:11px}.chart-head{padding:13px}.chart-head h2{font-size:16px}.chart-head p{font-size:10px;line-height:1.35}.chart-head-controls{width:100%;grid-template-columns:auto auto;justify-content:start;justify-items:start;gap:6px 8px;flex:none}.chart-head-controls .chart-view-key{grid-column:1 / -1}.chart-head-controls .chart-layer-switch{grid-column:1}.mobile-entry-trigger{display:inline-flex;grid-column:2;align-items:center;justify-content:center;height:38px;min-height:38px;margin-top:8px;align-self:start;padding:3px 11px;border:1px solid #b9cee8;border-radius:7px;background:#eef6ff;color:#24537f;font:inherit;font-size:10px;font-weight:800;cursor:pointer}.mobile-entry-trigger:disabled{border-color:var(--line);background:#f4f5f7;color:#9aa6b2;cursor:not-allowed}.mobile-entry-hint{display:block;grid-column:1 / -1;color:var(--muted);font-size:10px;line-height:1.35}.layout>.sidebar{display:none}.split-stage .teeth-row .tooth:first-child .review-badge{left:calc(50% + 16px)}.split-stage .teeth-row .tooth:last-child .review-badge{left:calc(50% - 16px)}.split-stage .upper-root-row .tooth:first-child .review-badge{top:12px;left:52%}.split-stage .upper-root-row .tooth:last-child .review-badge{top:12px;left:40%}.split-stage .lower-root-row .tooth:first-child .review-badge.bottom{bottom:18px;left:50%}.split-stage .lower-root-row .tooth:last-child .review-badge.bottom{bottom:18px;left:40%}.chart-layer-switch{display:inline-grid;grid-template-columns:auto auto;align-items:center;align-self:start;width:max-content;max-width:100%;height:38px;margin-top:8px;padding:3px;gap:3px;border:1px solid var(--line);border-radius:7px;background:var(--panel-soft)}.split-group.view-hidden{display:none}.chart-stage{min-width:0;width:100%;overflow:hidden;padding:12px 4px 8px;border-radius:6px}.chart-stage .arch-grid,.chart-stage .orientation-grid{grid-template-columns:48px minmax(0,1fr) 48px}.chart-stage .teeth-row,.chart-stage .orientation-row{width:100%;grid-template-columns:repeat(16,minmax(0,1fr))}.chart-stage .art-core.front.upper{transform:scale(.42,-.42)}.chart-stage .art-core.front.lower{transform:scale(.42)}.chart-stage .art-core.occ{transform:scale(.68)}.chart-stage .tooth:hover .tooth-art{transform:translateY(-2px) scale(1.03)}.chart-stage .tooth.active .tooth-art{transform:translateY(-px) scale(1.04)}.split-stage .surface-region{pointer-events:none}.split-stage>.split-group .surface-region{pointer-events:none}#mobile-tooth-modal .surface-region{pointer-events:auto}.split-stage .upper-grid{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;grid-template-rows:118px 72px 30px;padding-bottom:1px}.split-stage .upper-grid .upper-label{grid-row:1 / span 2;align-items:flex-start}.split-stage .upper-grid .upper-label .arch-label-text{margin-top:30px;white-space:nowrap}.split-stage .upper-grid .tooth{min-height:48px;align-items:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.split-stage .upper-grid .tooth,.split-stage .upper-grid .number{--arch-y:0px;--arch-r:0deg;transform:translateY(var(--arch-y)) rotate(var(--arch-r));transform-origin:50% 50%}.split-stage .upper-grid .upper-crown-row{width:110%;margin-inline:-4%}.split-stage .upper-grid .upper-root-row{width:114%;margin-inline:-6%}.split-stage .upper-grid .upper-number-row{width:110%;margin-inline:-4%}.split-stage .upper-root-row .review-badge{top:10px}.split-stage .lower-root-row .review-badge.bottom{bottom:12px}.split-stage .upper-grid .upper-root-row .art-core{transform:scale(.33,-.36)}.split-stage .upper-grid .upper-crown-row .art-core{transform:scale(.48)}.split-stage .upper-grid .upper-root-row .tooth{--arch-y:calc(var(--arch-depth) * 1.15);--arch-r:var(--arch-angle)}.split-stage .upper-grid .upper-crown-row .tooth{--arch-y:calc(var(--arch-depth) - 50px);--arch-r:var(--arch-angle)}.split-stage .upper-grid .upper-number-row .number{--arch-y:calc((var(--arch-depth) * 1) - 85px);--arch-r:var(--arch-angle)}.split-stage .upper-grid :is(.tooth,.number):nth-child(1){--arch-depth:44px;--arch-angle:-23deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(2){--arch-depth:34px;--arch-angle:-19deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(3){--arch-depth:25px;--arch-angle:-15deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(4){--arch-depth:17px;--arch-angle:-12deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(5){--arch-depth:10px;--arch-angle:-9deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(6){--arch-depth:5px;--arch-angle:-6deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(7){--arch-depth:2px;--arch-angle:-3deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(8){--arch-depth:0px;--arch-angle:-1deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(9){--arch-depth:0px;--arch-angle:1deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(10){--arch-depth:2px;--arch-angle:3deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(11){--arch-depth:5px;--arch-angle:6deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(12){--arch-depth:10px;--arch-angle:9deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(13){--arch-depth:17px;--arch-angle:12deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(14){--arch-depth:25px;--arch-angle:15deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(15){--arch-depth:34px;--arch-angle:19deg}.split-stage .upper-grid :is(.tooth,.number):nth-child(16){--arch-depth:44px;--arch-angle:23deg}.split-stage .split-divider{transform:translateY(-40px)}.split-stage .lower-grid{display:grid;grid-template-columns:18px minmax(0,1fr) 18px;grid-template-rows:52px 74px 106px;margin-top:-64px;padding-bottom:0}.split-stage .lower-grid .lower-label{grid-column:1;grid-row:3;align-items:flex-end;justify-content:flex-start;transform:translateY(-30px);z-index:2}.split-stage .lower-grid .lower-label .arch-label-text{margin-top:0;margin-left:0;white-space:nowrap;width:max-content}.split-stage .lower-grid .tooth{min-height:48px;align-items:center;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.split-stage .lower-grid .tooth,.split-stage .lower-grid .number{--lower-y:0px;--lower-r:0deg;transform:translateY(var(--lower-y)) rotate(var(--lower-r));transform-origin:50% 50%}.split-stage .lower-grid .lower-number-row,.split-stage .lower-grid .lower-crown-row{width:110%;margin-inline:-4%}.split-stage .lower-grid .lower-root-row{width:114%;margin-inline:-6%}.split-stage .lower-grid .lower-crown-row .art-core{transform:scale(.48)}.split-stage .lower-grid .lower-root-row .art-core{transform:scale(.33,.36)}.split-stage .lower-grid .lower-number-row .number{--lower-y:calc(var(--lower-depth) + 12px);--lower-r:var(--lower-angle)}.split-stage .lower-grid .lower-crown-row .tooth{--lower-y: calc(var(--lower-depth) - 30px);--lower-r: var(--lower-angle)}.split-stage .lower-grid .lower-root-row .tooth{--lower-y:calc(var(--lower-depth) - 80px);--lower-r:var(--lower-angle)}.split-stage .lower-grid :is(.tooth,.number):nth-child(1){--lower-depth:0px;--lower-angle:23deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(2){--lower-depth:10px;--lower-angle:19deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(3){--lower-depth:19px;--lower-angle:15deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(4){--lower-depth:27px;--lower-angle:12deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(5){--lower-depth:34px;--lower-angle:9deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(6){--lower-depth:39px;--lower-angle:6deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(7){--lower-depth:42px;--lower-angle:3deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(8){--lower-depth:44px;--lower-angle:1deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(9){--lower-depth:44px;--lower-angle:-1deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(10){--lower-depth:42px;--lower-angle:-3deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(11){--lower-depth:39px;--lower-angle:-6deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(12){--lower-depth:34px;--lower-angle:-9deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(13){--lower-depth:27px;--lower-angle:-12deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(14){--lower-depth:19px;--lower-angle:-15deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(15){--lower-depth:10px;--lower-angle:-19deg}.split-stage .lower-grid :is(.tooth,.number):nth-child(16){--lower-depth:0px;--lower-angle:-23deg}.split-group{padding:14px 4px 10px;border-radius:6px}.split-group-head{display:grid;grid-template-columns:1fr;place-items:center;padding-bottom:10px}.split-group-head .split-status-label{grid-column:1;justify-self:center;text-align:center;margin-bottom:15px}.entries-panel{padding:12px}.entries-head{margin-bottom:8px}.entries-head h3{font-size:14px}.entries-head span{font-size:10px}.entry-row{gap:4px;padding-right:4px}.entry-open{grid-template-columns:38px minmax(0,1fr);gap:7px;padding:7px 4px}.entry-preview{width:36px;height:32px}.entry-text{grid-template-columns:1fr;grid-template-areas:"title" "meta" "note";gap:2px;white-space:normal}.entry-title,.entry-meta,.entry-note{font-size:10px;line-height:1.25}.entry-remove{display:grid;place-items:center;width:36px;height:36px;min-width:36px;padding:0;border-radius:6px}.entry-remove-text{display:none}.entry-remove-icon{display:block}.sidebar{padding:15px}.selected-head{grid-template-columns:minmax(0,1fr) 112px;gap:12px}.selected-side{max-width:112px}.mini-preview{width:82px;height:92px;min-height:92px}#treatment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.surface-pad{grid-template-columns:repeat(3,48px)}.surface-chip{width:48px}.note-input{height:150px;min-height:150px}.form-actions{display:grid;grid-template-columns:1fr 1fr}.form-actions .btn{width:100%;min-width:0}.patient-grid{grid-template-columns:1fr}.modal-head{margin-bottom:10px}.modal-head h3,.mobile-entry-head h3{font-size:16px;line-height:1.2}.modal-head p{margin-top:4px;font-size:10px;line-height:1.35}.patient-form,.patient-grid{gap:10px}.patient-field{gap:4px}.patient-field label{font-size:10px}.patient-field input,.patient-field textarea,.patient-field select{min-height:38px;padding:8px 10px;font-size:12px}.patient-field textarea{min-height:68px}.date-text-input{min-height:40px;padding:8px 10px;font-size:12px}.date-field-shell{grid-template-columns:minmax(0,1fr) 40px;gap:7px}.date-picker-btn{width:40px;height:40px;font-size:15px}.modal-actions{gap:8px}.modal-actions .btn{height:38px;padding-inline:12px;font-size:11px}.icon-btn{width:36px;height:36px;border-radius:10px;font-size:14px}.treatment-method-row{grid-template-columns:24px 30px minmax(0,1fr)}.treatment-method-row .method-icon-select,.treatment-method-row .method-color-input,.treatment-method-row .method-remove-btn{grid-column:3}.add-treatment-grid{grid-template-columns:1fr 1fr}.patient-field.full{grid-column:auto}.modal,.date-popover{padding:14px;border-radius:8px}.date-weekdays,.date-days{gap:4px}.date-grid-btn{min-height:42px;border-radius:13px}@media(max-width:420px){.brand{flex-basis:150px;gap:8px}.logo{width:40px;height:40px}.title{font-size:16px}.dentition-label{font-size:9px}.topbar-actions .btn{height:36px;padding-inline:8px;font-size:10px}}}@media print{@page{size:A4 portrait;margin:8mm}body{background:#fff}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}.page{max-width:none;padding:0}.topbar,.contextbar,.sidebar,.topbar-actions{display:none!important}.layout{display:block}.chart-card{background:#fff;border:none!important;border-radius:0;box-shadow:none!important}.chart-head{display:none!important}.chart-stage{min-width:0;width:100%;zoom:.8}.split-group{break-inside:avoid;page-break-inside:avoid}.split-group.view-hidden{display:grid!important}.chart-layer-switch{display:none!important}.print-page-one{break-after:page;page-break-after:always}.entries-panel{padding:0;background:#fff;break-before:page;page-break-before:always}.entries-head h3.saved-entries-title{font-size:0}.entries-head h3.saved-entries-title:before{content:"Summary";font-size:16px}.entries-list{max-height:none;overflow:visible}.entry-row{break-inside:avoid}.entry-remove{display:none!important}.print-patient-card{padding:6px 0 8px!important;border:none!important;border-radius:0!important;box-shadow:none!important;margin-bottom:8px!important;background:#fff!important}.print-export-head{margin-bottom:6px}.print-export-title{font-size:16px}.print-export-subtitle{display:none}.print-patient-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px 8px}.print-info-item{padding:2px 4px;border:none;background:transparent;border-radius:0}.print-info-item .print-label{font-size:8px;margin-bottom:1px}.print-info-item .print-value{font-size:11px;line-height:1.2}.tooth-art,.tooth.active .tooth-art,.tooth:hover .tooth-art{filter:none!important;transform:none!important}.chart-stage svg{filter:none!important}.chart-stage svg [fill^="url(#cg"]{fill:#f7f4ee!important}.chart-stage svg [fill^="url(#og"]{fill:#f7f4ee!important}.chart-stage svg [fill^="url(#rg"]{fill:#d3a06a!important}.chart-stage svg [fill^="url(#sg"]{display:none!important}.chart-stage svg [fill="#d7ae80"],.chart-stage svg [fill="#d8b28b"]{display:none!important}.chart-stage svg [stroke^="url(#gg"]{stroke:#c6beb2!important;opacity:.32!important}.chart-stage .surface-region{stroke-width:1.1!important}.print-patient-card,.print-note-card{display:block}}
