:root{font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,Segoe UI,Inter,Arial,sans-serif;color:#24292e;background:#f4f5f6;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html{height:100%;-webkit-text-size-adjust:100%}body{margin:0;min-width:320px}button,input,textarea,select{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{opacity:.45;cursor:not-allowed}input,select,textarea{outline:none}input:focus,select:focus,textarea:focus{border-color:#929aa3!important;box-shadow:0 0 0 3px #a1adb624}p{line-height:1.5}h1,h2,h3,p{margin-top:0}.app-shell{min-height:100vh;display:flex;flex-direction:column}.topbar{position:sticky;top:0;z-index:20;border-bottom:1px solid #e5e7e9;background:#f9fafadd;backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}.topbar-inner{max-width:1070px;margin:auto;padding:12px 22px;display:flex;justify-content:space-between;align-items:center;gap:16px}.brand,.top-nav,.sync-pill{border:0;background:transparent;color:#292d31;display:inline-flex;align-items:center;justify-content:center;gap:9px;font-weight:650}.brand{white-space:nowrap;font-size:16px;padding:0}.app-mark{width:36px;height:36px;border-radius:12px;background:#282d31;color:#fff;display:grid;place-items:center;font-size:22px;box-shadow:0 4px 10px #262b3024}.app-mark.large{width:62px;height:62px;font-size:36px;border-radius:18px;margin:auto auto 20px}.top-actions{display:flex;gap:8px;align-items:center}.top-nav{padding:10px 12px;border-radius:12px;color:#6e7780}.top-nav.active{color:#252b31;background:#e9ebed}.top-nav:hover{background:#e9ebed}.sync-pill{border:1px solid #d7dbde;background:#fff;border-radius:100px;padding:8px 10px;color:#68737c;font-size:11px;font-weight:550}.sync-pill.pc{color:#2b7053;background:#eff8f2;border-color:#d5eadb}.sync-pill.offline,.sync-pill.error,.sync-pill.auth,.sync-pill.conflicts{color:#ab651f;background:#fff8eb;border-color:#f2e3cc}.sync-pill b{background:#d27b26;color:#fff;border-radius:100%;font-size:10px;min-width:17px;height:17px;display:grid;place-items:center}.main-frame{flex:1;width:100%;max-width:1035px;margin:0 auto;padding:22px 24px 64px}.content-column{max-width:870px;margin:0 auto;display:flex;flex-direction:column;gap:17px}.demo-banner,.unsynced-banner{font-size:12px;display:flex;align-items:center;gap:8px;padding:11px 15px;border-radius:13px;margin:0 auto 18px;max-width:870px}.demo-banner{color:#81878e;background:#eaecee}.unsynced-banner{background:#fff8ee;color:#9d6428;border:1px solid #f2e2cd}.heading-row{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:6px 0 1px}.heading-row h1{font-size:31px;letter-spacing:-.9px;line-height:1.15;margin:4px 0}.subtitle{color:#89929a;font-size:14px;margin:6px 0 0}.eyebrow{font-size:11px;letter-spacing:.075em;text-transform:uppercase;font-weight:650;color:#8d969d;display:flex;align-items:center;gap:5px}.panel{background:#fff;border:1px solid #e5e8ea;border-radius:20px;padding:21px 22px;box-shadow:0 6px 22px #151a1e05;min-width:0}.panel-heading{margin-bottom:17px}.panel-heading h2{font-size:18px;letter-spacing:-.35px;margin:0;font-weight:700}.panel-heading p{font-size:13px;color:#929ba2;margin:5px 0 0}.btn{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:42px;padding:10px 16px;border-radius:12px;border:1px solid transparent;text-align:center;white-space:normal;line-height:1.25;font-size:13.5px;font-weight:650;transition:background .16s,transform .16s;max-width:100%;-webkit-user-select:none;user-select:none}.btn:active{transform:scale(.985)}.btn-primary{background:#292e33;color:#fff}.btn-primary:hover{background:#43494f}.btn-secondary{background:#f3f4f5;color:#3b4249;border-color:#e9eaeb}.btn-secondary:hover{background:#ebedef}.btn-ghost{background:transparent;color:#4b555d}.btn-ghost:hover{background:#f5f6f7}.btn-danger{background:#a94343;color:#fff}.btn-success{background:#338461;color:#fff}.btn-small{min-height:36px;padding:8px 11px;font-size:12px}.btn.wide{width:100%;min-width:0}.btn.left{justify-content:flex-start;padding-left:0}.icon-btn,.small-icon{border:0;background:transparent;display:grid;place-items:center;color:#8f989f;border-radius:8px;min-width:36px;height:36px;padding:7px}.small-icon:hover,.icon-btn:hover{background:#f0f1f2}.danger-text{color:#b45d5d!important}.field{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:650;color:#707983;min-width:0}.field input,.field select,.field textarea,.search input,.price-entry input{border:1px solid #e2e5e8;border-radius:11px;padding:10px 12px;font-size:14px;background:#fbfbfc;color:#283038;min-height:43px;max-width:100%;width:100%;resize:vertical}.field textarea{min-height:88px}.field select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23818b95' stroke-width='2'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");background-position:right 13px center;background-repeat:no-repeat;padding-right:36px}.form-stack{display:flex;flex-direction:column;gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.filters{display:flex;gap:12px;align-items:center;margin-bottom:14px}.search{display:flex;flex:1;align-items:center;gap:8px;background:#fbfbfc;border:1px solid #e2e5e8;border-radius:11px;padding:0 12px;color:#99a1a8}.search input{border:0;padding-left:0;background:transparent;box-shadow:none!important}.filters select{flex:0 0 200px;border:1px solid #e2e5e8;border-radius:11px;min-height:43px;padding:8px 12px;background:#fbfbfc;font-size:13px;color:#59636b}.patient-list{display:flex;flex-direction:column}.patient-row{display:flex;align-items:center;gap:0;border-top:1px solid #f0f1f2}.patient-row:first-child{border-top:0}.patient-main{flex:1;display:flex;align-items:center;text-align:left;gap:12px;border:0;background:transparent;padding:13px 8px 13px 0;min-width:0}.patient-main:hover strong{color:#596d7b}.avatar{width:44px;height:44px;border-radius:15px;background:#eef0f2;color:#6f7982;display:grid;place-items:center;flex-shrink:0}.patient-details{flex:1;display:flex;flex-direction:column;gap:5px;min-width:0}.patient-details strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.patient-details small{font-size:11.5px;color:#9ca3a9;display:flex;align-items:center;gap:5px}.patient-arrow{color:#a4abb1;flex-shrink:0}.empty{text-align:center;padding:32px 12px;color:#9ca4ab;margin:0;font-size:14px}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:50;background:#1e232854;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);display:flex;justify-content:center;align-items:center;padding:16px}.dialog{background:#fff;width:100%;max-width:520px;max-height:min(90dvh,750px);overflow:auto;border-radius:22px;box-shadow:0 30px 90px #10171f30}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:22px 22px 14px;position:sticky;top:0;background:#fff;z-index:2}.dialog-head h2{font-size:18px;letter-spacing:-.4px;margin:0}.dialog-body{padding:8px 22px 22px}.dialog-body p{color:#626c74}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;padding:14px 22px 22px;border-top:1px solid #eff0f1}.message{display:flex;gap:9px;align-items:center;padding:12px 13px;border-radius:11px;font-size:13px;line-height:1.45}.message.good{color:#276a50;background:#ecf8f0;border:1px solid #d7ecdf}.message.warn{color:#98682f;background:#fff8eb;border:1px solid #f2e3c9}.message.neutral{color:#4c5d69;background:#edf1f4;border:1px solid #e0e7ea}.patient-back{max-width:870px;margin:0 auto 17px;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#909aa2;font-size:12px}.patient-back button{border:0;display:flex;align-items:center;gap:6px;background:transparent;padding:6px 0;color:#747e87;font-size:13px}.patient-back span{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tabbar{display:flex;max-width:870px;margin:0 auto 20px;background:#e9ebee;padding:5px;border-radius:15px;gap:4px}.tabbar button{flex:1;border:0;background:transparent;color:#899198;font-size:13px;font-weight:600;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:9px;padding:12px;min-height:44px}.tabbar button.active{color:#30383f;background:#fff;box-shadow:0 2px 8px #0000000c}.patient-info{display:grid;grid-template-columns:1fr 1fr;gap:18px}.patient-info strong{font-size:17px}.patient-info p{margin:7px 0 0;color:#6f7981;font-size:13px}.muted{color:#8d969d!important;font-size:12px}.tiny{font-size:11px!important}.note{margin-top:18px;border-radius:10px;padding:12px;color:#697780;background:#f6f7f8;font-size:13px}.price-entry{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.price-entry input{width:170px;flex:1 1 160px}.price-entry>span{color:#56616a;font-weight:650}.quick-prices{display:flex;gap:6px}.quick-prices button{border:1px solid #e2e5e8;background:#f6f7f8;color:#6e7882;border-radius:9px;padding:10px;font-size:12px;white-space:nowrap;min-height:42px}.quick-prices button.active{background:#dae1e6;border-color:#b8c5ce}.teeth-scroll{overflow:visible}.teeth-content{width:100%;min-width:0}.jaw+.jaw{margin-top:24px}.jaw-title{font-size:12px;color:#8e979f;font-weight:600;margin-bottom:11px;text-align:center}.tooth-row{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:5px}.tooth{position:relative;border:1px solid #e4e6e8;background:#fafbfc;color:#7c8791;border-radius:11px;min-width:0;height:59px;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:11px;font-weight:700;gap:0}.tooth:hover{background:#eff2f4}.tooth.tooth-selected{color:#536c7e;background:#e7eef3;border:2px solid #829ba9;box-shadow:0 3px 8px #819daa22}.tooth-gap{margin-left:5px}.tooth-shape{width:25px;height:28px}.status-dot{position:absolute;right:2px;top:2px;width:8px;height:8px;border-radius:50%}.status-dot.planned,.legend-dot.planned{background:#e6a04d}.status-dot.completed,.legend-dot.completed{background:#4daa7c}.legend{display:flex;flex-wrap:wrap;gap:16px;margin-top:20px;justify-content:center;color:#a0a8ae;font-size:11px}.legend span{display:flex;align-items:center;gap:5px}.legend-dot{display:inline-block;width:9px;height:9px;border-radius:50%}.legend-dot.selected{background:#8a9dad}.separator{height:1px;background:#e9ebee}.hint{display:flex;gap:8px;font-size:12px;color:#838f98;line-height:1.5;background:#f7f8f9;padding:11px 13px;border-radius:11px}.preview{border:1px solid #e4e8ea;background:#f8f9fa;border-radius:13px;padding:14px}.preview h3{font-size:13px;margin:0 0 13px;color:#49545d}.stage-list{position:relative}.stage-line{display:flex;gap:11px;align-items:flex-start;padding:9px 0}.stage-line+.stage-line{border-top:1px solid #e9ecee}.stage-count,.step-index{width:25px;height:25px;border-radius:50%;background:#e7ebee;color:#788590;display:grid;place-items:center;flex-shrink:0;font-size:11px;font-weight:700}.stage-content{flex:1;min-width:0;display:flex;flex-direction:column;gap:7px}.stage-content strong{font-size:13px}.stage-content small{color:#6f7982}.stage-content em{font-size:10px;color:#8b642b;background:#fff1dc;font-style:normal;border-radius:6px;padding:3px 6px;display:inline-block}.stage-edit-price{font-size:11px;color:#8a9299;display:flex;gap:6px;align-items:center}.stage-edit-price input{width:105px;padding:6px 8px;border-radius:8px;border:1px solid #e1e3e5;background:#fff;color:#4c565f;font-size:12px}.inline-actions,.button-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.preview-total,.block-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:14px;border-top:1px solid #e9ecee;color:#7f8991;font-size:13px}.preview-total strong,.block-footer strong{font-size:17px;color:#303840;white-space:nowrap}.plan-card{padding-bottom:14px}.plan-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-bottom:13px;border-bottom:1px solid #eef0f1}.plan-card-head h3{font-size:16px;letter-spacing:-.35px;margin:5px 0 0;line-height:1.4}.plan-steps{padding:8px 0}.plan-step{display:flex;gap:12px;position:relative;padding:14px 0}.plan-step:not(:last-child):before{content:"";position:absolute;top:36px;bottom:-11px;left:12px;width:1px;background:#e5e9ea}.step-index{z-index:1;background:#f9ecd9;color:#be8841}.step-index.finished{background:#e4f4ea;color:#3b9468}.step-main{flex:1;min-width:0}.step-top{display:flex;justify-content:space-between;gap:12px;font-size:14px}.step-top strong:last-child{white-space:nowrap}.step-sub{display:flex;gap:8px;flex-wrap:wrap;color:#939da5;font-size:11px;margin-top:6px}.planned-label{color:#b98748}.done-label{color:#388e63}.step-actions{display:flex;gap:17px;flex-wrap:wrap;margin-top:12px}.step-actions button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;color:#75818b;font-size:11px}.step-actions button:hover{color:#2e363d}.preview-order{padding:10px;border:1px solid #e6e9ea;background:#fff;border-radius:9px;color:#67727a;font-size:12px;margin-top:6px}.preview-order.is-active{border-color:#91a9bb;background:#eaf1f5;color:#4d6576;font-weight:700}.preview-order small{color:#3b9670}.totals{display:flex;flex-direction:column;gap:12px;background:#f6f8f9;padding:17px;border-radius:13px}.totals div{display:flex;justify-content:space-between;gap:15px;color:#7a858e;font-size:13px}.totals b{color:#3c454d}.totals .grand-total{padding-top:13px;border-top:1px solid #e0e4e7;color:#323c45;font-size:16px;font-weight:700}.grand-total strong{font-size:21px}.pdf-buttons{display:flex;flex-wrap:wrap;gap:9px}.subtabs{display:flex;gap:7px;margin-bottom:18px;border-bottom:1px solid #edf0f2;padding-bottom:12px}.subtab{border:0;background:#f5f6f7;padding:10px 13px;border-radius:9px;font-size:13px;color:#7b848b;min-height:39px}.subtab.active{color:#fff;background:#343b41}.photo-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}.photo-cell{position:relative}.photo-tile{padding:0;border:1px solid #edf0f2;border-radius:12px;overflow:hidden;text-align:left;background:#fff;width:100%;color:#454f57}.photo-thumb{aspect-ratio:1;background:#eef0f1;display:grid;place-items:center;color:#9ba4ac}.photo-thumb img{width:100%;height:100%;object-fit:cover}.photo-description{display:flex;flex-direction:column;gap:5px;padding:9px}.photo-description strong{font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.photo-description span{font-size:10px;color:#9da6ad}.photo-delete{position:absolute;right:5px;top:5px;background:#fffffff0;color:#a55353}.lightbox{position:fixed;z-index:80;top:0;right:0;bottom:0;left:0;background:#121619;display:flex;flex-direction:column;color:#fff}.lightbox-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:15px 20px}.lightbox-tools strong{font-size:13px}.lightbox-tools button{border:0;background:#343b40;color:#fff;border-radius:9px;width:36px;height:36px;display:grid;place-items:center}.lightbox-tools svg{width:17px}.lightbox-tools span{color:#cad0d4;font-size:12px}.lightbox-view{flex:1;min-height:0;display:flex;justify-content:space-between;align-items:center;overflow:hidden;position:relative}.lightbox-media{flex:1;min-width:0;display:grid;place-items:center;transition:transform .12s}.lightbox-media img{max-height:80vh;max-width:100%;object-fit:contain}.lightbox-prev,.lightbox-next{z-index:1;background:#fff2;border:0;border-radius:12px;padding:9px;color:#fff}.history-list{display:flex;flex-direction:column}.history-entry{display:flex;align-items:flex-start;gap:12px;padding:16px 0;border-top:1px solid #eceff0}.history-entry:first-child{border-top:0}.history-entry>div{flex:1;min-width:0}.history-entry strong{font-size:13px;display:block;margin-top:6px}.history-entry b{font-size:13px;white-space:nowrap}.history-entry p{font-size:12px;color:#828c95;margin:6px 0}.history-icon{background:#e8f4ed;color:#4e9d71;width:32px;height:32px;border-radius:11px;display:grid;place-items:center}.storage-rows{display:flex;flex-direction:column;gap:13px;margin-bottom:16px}.storage-rows>div{display:flex;align-items:center;gap:13px}.storage-rows svg{background:#f1f3f4;border-radius:10px;box-sizing:content-box;padding:10px;color:#7e8a95}.storage-rows span{display:flex;flex-direction:column;gap:3px}.storage-rows strong{font-size:13px}.storage-rows small{font-size:11px;color:#8b969e}.catalog-group{margin-top:20px}.catalog-group h3{font-size:13px;color:#6f7b85;margin-bottom:9px}.settings-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.settings-heading p{color:#8b969e;font-size:12px;margin:0}.catalog-row{display:flex;align-items:center;gap:6px;padding:10px 0;border-top:1px solid #f0f2f3}.catalog-row>span{flex:1;font-size:13px;display:flex;flex-direction:column;gap:4px;min-width:0}.catalog-row small{color:#9aa3aa}.conflict-row{padding:14px 0;border-top:1px solid #eaecee;display:flex;flex-direction:column;gap:8px}.footer{text-align:center;color:#a4adb4;font-size:11px;padding:20px}.login-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:20px;background:radial-gradient(ellipse at top,#fff,#f3f4f6 58%,#eceff0)}.login-card{width:100%;max-width:410px;padding:36px 32px;border:1px solid #e1e5e8;border-radius:24px;background:#fff;box-shadow:0 25px 70px #1c2b3810;text-align:center}.login-card h1{font-size:24px;letter-spacing:-.7px;margin-bottom:7px}.login-card>p{color:#929ba3;font-size:14px;margin:0 0 28px}.login-card form{text-align:left;display:flex;flex-direction:column;gap:13px}.login-card .btn{margin-top:5px}.login-card .demo-note{display:flex;align-items:center;justify-content:center;gap:5px;color:#a4adb3;font-size:11px;line-height:1.5;margin:25px 0 0}.error-msg{background:#fff0ee;color:#b35247;padding:9px 11px;font-size:12px;border-radius:9px}@media(max-width:750px){.topbar-inner{padding:11px 13px}.top-nav span{display:none}.top-nav{padding:10px}.brand span:last-child{font-size:13px}.sync-pill span{display:none}.sync-pill{padding:9px}.main-frame{padding:15px 14px 40px}.content-column{gap:12px}.panel{padding:18px 16px;border-radius:17px}.heading-row h1{font-size:27px}.tooth-row{grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.tooth{height:57px}.tooth-gap{margin-left:0}.jaw-title{text-align:left}.jaw+.jaw{margin-top:24px}.tabbar{gap:0}.tabbar button{flex-direction:column;gap:5px;padding:9px 4px;font-size:11px}.tabbar button svg{width:18px}.photo-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.demo-banner,.unsynced-banner{font-size:11px;padding:10px 11px}.patient-info{gap:8px}.plan-card-head{align-items:flex-start}.plan-card-head h3{font-size:14px}.plan-card-head .btn{font-size:0;min-width:36px}.plan-card-head .btn svg{width:17px}.step-actions{gap:10px}.step-actions button{font-size:11px}.form-grid{grid-template-columns:1fr}.login-card{padding:32px 23px}.pdf-buttons .btn{flex:1}.lightbox-tools{padding:10px}.lightbox-prev,.lightbox-next{padding:5px}}@media(max-width:400px){.brand span:last-child{font-size:12px}.topbar-inner{gap:6px}.top-actions{gap:1px}.patient-info{grid-template-columns:1fr}.filters{flex-direction:column;align-items:stretch}.filters select{flex:auto}.tabbar button{font-size:10px}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dialog{max-height:92dvh}.dialog-actions .btn{flex:1}.step-top,.quick-prices{flex-wrap:wrap}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}.text-link{font-size:11px;text-align:left;width:max-content;color:#6d8495;background:transparent;border:0;padding:0}.stage-content>input{border:1px solid #dce2e6;border-radius:8px;background:#fff;font-size:12px;padding:8px;max-width:100%}.ortho-extras{padding:14px;margin:10px 0;background:#f7f8fa;border:1px solid #e8eaee;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start;gap:8px}.ortho-extras p{margin:0;line-height:1.5}.ortho-extras .btn{max-width:100%;white-space:normal;text-align:left;min-height:42px}.payment-row{display:flex;width:100%;justify-content:space-between;align-items:center;border-top:1px solid #e5e7eb;padding:8px 0;gap:8px}.patient-row{position:relative}.patient-main{min-height:74px;padding:13px 10px;border-radius:12px}.patient-main:hover,.patient-main:focus-visible{background:#f1f4f6;outline:2px solid #c4d1da;outline-offset:-2px}.patient-main:active{background:#e8eef3}.patient-row>.small-icon{position:relative;z-index:1}.procedure-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.procedure-choice{border:1px solid #e0e5e8;border-radius:12px;background:#f7f8f9;color:#55616b;text-align:left;padding:11px 12px;min-height:46px;font-size:13px;line-height:1.35;font-weight:600}.procedure-choice:hover{background:#eff2f4}.procedure-choice.is-selected{background:#dce7ed;border-color:#90a8b8;color:#344b5c;box-shadow:inset 0 0 0 1px #b3c4ce}.procedure-choice:focus-visible{outline:2px solid #819cad;outline-offset:2px}@media(max-width:460px){.procedure-choices{gap:6px}.procedure-choice{font-size:12px;min-height:51px;padding:9px}}.linked-before-add{border:1px solid #d8e1e9;background:#f7f9fb;border-radius:17px;padding:15px;display:grid;gap:12px}.linked-before-add h3{margin:0;color:#394956;font-size:15px}.linked-before-add .procedure-choices{margin:0}.linked-before-add-steps{display:grid;gap:7px}.linked-before-add-steps>div{display:flex;justify-content:space-between;gap:12px;align-items:start;font-size:13px;color:#46515d}.linked-before-add-steps strong{white-space:nowrap}@media(max-width:480px){.linked-before-add{padding:12px}.linked-before-add .procedure-choices{grid-template-columns:1fr}}.linked-direct-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.linked-direct-item{min-width:0;display:grid;align-content:start;gap:8px;padding:11px;border:1px solid #e0e6eb;border-radius:13px;background:#fff}.linked-direct-item .procedure-choice{width:100%;display:grid;gap:5px}.linked-direct-item .procedure-choice b,.linked-direct-choices>.procedure-choice b{display:block;color:#3f6857;font-size:12px}.linked-direct-item .field{margin:0}.linked-direct-item .price-entry{max-width:100%}@media(max-width:600px){.linked-direct-choices{grid-template-columns:1fr}}.floating-toast{position:fixed;z-index:90;left:50%;bottom:max(20px,env(safe-area-inset-bottom,0px) + 18px);transform:translate(-50%);width:max-content;max-width:calc(100vw - 30px);padding:13px 17px;border:1px solid #bee1ca;background:#ecf8f0;box-shadow:0 12px 32px #21644022;border-radius:15px;display:flex;align-items:center;gap:10px;color:#276f48;font-size:14px;font-weight:650;line-height:1.4;animation:toast-pop .22s ease-out;pointer-events:none}.floating-toast .check{border-radius:50%;width:25px;height:25px;display:grid;place-items:center;background:#32895a;color:#fff;flex-shrink:0}@keyframes toast-pop{0%{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%)}}@media(prefers-reduced-motion:reduce){.floating-toast{animation:none}}@media(max-width:750px){.teeth-scroll{overflow-x:hidden}.tooth-row{grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}.tooth{min-width:0;height:58px;font-size:11px;padding:3px 0}.tooth-shape{width:19px;height:24px;max-width:100%}.status-dot{width:6px;height:6px;top:2px;right:2px}.tooth-gap{margin-left:0}}@media(max-width:360px){.tooth-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.tooth{height:58px}.tooth-shape{width:24px;height:28px}}.teeth-scroll,.teeth-content,.tooth-row{width:100%;max-width:100%;min-width:0}.tooth-row{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:2px}.tooth-gap{margin-left:0}.tooth{height:55px;min-height:0;min-width:0;padding:3px 0;font-size:10px;border-radius:6px;gap:1px;touch-action:manipulation}.tooth-shape{width:16px;height:22px;max-width:95%}.status-dot{width:5px;height:5px;right:0;top:1px}@media(max-width:750px){.teeth-scroll{overflow-x:hidden}.tooth-row{grid-template-columns:repeat(16,minmax(0,1fr));gap:1px}.tooth{height:50px;min-height:0;padding:2px 0;font-size:9px;line-height:1.1;border-radius:5px;gap:1px}.tooth-shape{width:13px;height:18px;max-width:95%}}@media(max-width:360px){.tooth-row{grid-template-columns:repeat(16,minmax(0,1fr));gap:1px}.tooth{height:48px;font-size:8px;border-radius:4px}.tooth-shape{width:11px;height:16px}}.calendar-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;text-transform:capitalize}.calendar-toolbar button,.calendar-event>button{border:0;background:#f0f2f3;border-radius:9px;padding:9px;display:grid;place-items:center;color:#5c6970}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}.calendar-grid>b{text-align:center;font-size:12px;color:#87919a;padding:10px 0}.calendar-grid>button{position:relative;border:1px solid #e5e8eb;border-radius:10px;background:#f9fafb;min-height:46px;color:#35414b}.calendar-grid>button.chosen{background:#334c49;color:#fff;border-color:#334c49}.calendar-grid>button.has-event:after{content:"";position:absolute;bottom:5px;left:calc(50% - 3px);width:6px;height:6px;background:#49ad85;border-radius:50%}.calendar-events{display:grid;gap:8px}.calendar-event{display:flex;gap:14px;align-items:start;padding:12px;border:1px solid #e8ebed;border-radius:12px}.calendar-event>strong{color:#3b7862}.calendar-event>div{flex:1;min-width:0}.calendar-event p{margin:5px 0 0;font-size:12px;color:#8b959b}@media(max-width:480px){.calendar-grid{gap:3px}.calendar-grid>button{min-height:39px;border-radius:7px;font-size:12px}.calendar-demo .panel{padding:14px}}.aplan-login-logo{width:88px;height:88px;object-fit:cover;border-radius:22px;display:block;margin:0 auto 12px}.aplan-brand-logo{width:30px;height:30px;object-fit:cover;border-radius:8px;vertical-align:middle;margin-right:7px}.mobile-nav{display:none}@media(max-width:750px){body{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px))}.app-shell,.login-page{min-height:100dvh}.top-actions>.top-nav{display:none}.topbar-inner{min-height:60px;padding-top:max(11px,env(safe-area-inset-top,0px))}.mobile-nav{position:fixed;z-index:40;left:0;right:0;bottom:0;display:flex;align-items:stretch;gap:1px;width:100%;max-width:100vw;overflow-x:auto;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));background:#f9fafaf5;border-top:1px solid #dce1e5;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mobile-nav-btn{flex:1 0 52px;min-width:0;min-height:52px;border:0;border-radius:11px;background:transparent;color:#596873;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:5px 2px;font-size:10px;line-height:1.15;touch-action:manipulation}.mobile-nav-btn.active{background:#e5ecef;color:#263b44}.mobile-nav-btn:active{background:#dce5e9}.mobile-nav-btn:focus-visible{outline:2px solid #607d8b;outline-offset:-2px}.main-frame{padding-bottom:24px}.footer{padding-bottom:18px}.login-page{padding:max(18px,env(safe-area-inset-top,0px)) 14px max(18px,env(safe-area-inset-bottom,0px))}.login-card{width:100%;max-width:420px}.login-card .btn,.field input,.field select,.field textarea{min-height:44px}.dialog-actions{flex-wrap:wrap}}
