:root{--system-bg: #f8fafc;--system-panel: #ffffff;--system-line: #e2e8f0;--system-line-strong: #1e293b;--system-text: #0f172a;--system-muted: #64748b;--system-slate-950: #020617;--system-slate-900: #0f172a;--system-slate-800: #1e293b;--system-clinical-50: #f0f9ff;--system-clinical-100: #e0f2fe;--system-clinical-500: #0ea5e9;--system-clinical-600: #0284c7;--system-secondary-50: #ecfeff;--system-secondary-500: #22d3ee;--system-accent-50: #eef2ff;--system-accent-500: #6366f1;--system-emerald-500: #10b981;--system-indigo-600: #6366f1;--system-indigo-50: #eef2ff;--system-rose-500: #f43f5e;--system-light-gray: #f1f5f9;--system-dark-gray: #1e293b;--system-shadow: 0 10px 20px rgba(15, 23, 42, .05)}app-root{display:block;min-height:100vh}body[data-page=system]{margin:0;font-family:Plus Jakarta Sans,sans-serif;color:var(--system-text);background:var(--system-bg)}.brand-mark{width:38px;height:38px;flex-shrink:0}.brand-mark.large{width:44px;height:44px}.brand-mark.small{width:24px;height:24px}.brand-copy{display:flex;flex-direction:column;line-height:1}.brand-copy strong{font-size:16px;font-weight:800}.brand-copy small{margin-top:4px;color:var(--system-muted);font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}.brand-copy-light small{color:#cbd5e1}.auth-screen,.app-shell{min-height:100vh;color:var(--system-text);background:var(--system-bg)}.auth-layout{display:grid;min-height:100vh;grid-template-columns:1fr 1fr}.auth-showcase{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;padding:48px;color:#fff;background:linear-gradient(135deg,#0f172a,#020617,#0c4a6e);overflow:hidden}.auth-pattern{position:absolute;inset:0;opacity:.08;background-image:linear-gradient(rgba(255,255,255,.6) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.6) 1px,transparent 1px);background-size:40px 40px}.auth-brand-row,.mobile-auth-brand{position:relative;z-index:1;display:flex;align-items:center;gap:12px;font-size:18px;font-weight:800}.mobile-auth-brand{display:none;color:var(--system-text)}.auth-copy,.auth-meta{position:relative;z-index:1}.auth-pill{display:inline-flex;padding:6px 12px;border:1px solid rgba(14,165,233,.35);border-radius:999px;color:#38bdf8;background:#0ea5e91f;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.auth-copy h2{max-width:560px;margin:18px 0 14px;font-size:42px;line-height:1.08;font-weight:800}.auth-copy p{max-width:560px;margin:0;color:#cbd5e1;font-size:14px;line-height:1.9}.auth-quote{display:flex;gap:16px;align-items:center;max-width:560px;margin-top:28px;padding:18px;border:1px solid rgba(51,65,85,.7);border-radius:18px;background:#1e293b6b;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.auth-quote img,.profile-card img{width:44px;height:44px;object-fit:cover;border-radius:12px}.auth-quote strong{display:block;font-size:12px;line-height:1.6}.auth-quote span{display:block;margin-top:6px;color:#38bdf8;font-size:10px;font-weight:700}.auth-meta{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#94a3b8;font-size:12px}.auth-meta div{display:flex;gap:16px}.auth-meta a:hover{color:#fff}.auth-form-panel{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:48px 32px;background:#fff}.auth-form-wrap{width:100%;max-width:420px}.auth-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}.back-link{display:inline-flex;align-items:center;gap:8px;color:var(--system-muted);background:transparent;font-size:12px;font-weight:700}.auth-head h3{margin:0;font-size:32px;font-weight:800}.auth-head p{margin:6px 0 0;color:var(--system-muted);font-size:12px}.login-form{margin-top:28px;display:grid;gap:16px}.field label,.field-top a,.small-label,.field-label{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.field label,.small-label,.field-label{color:#94a3b8}.field-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.field-top a{color:var(--system-clinical-600);text-transform:none;letter-spacing:0}.field-input{position:relative}.field-input i{position:absolute;left:16px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:14px}.field-input input,.search-box input,textarea{width:100%;border:1px solid var(--system-line);border-radius:8px;outline:none}.field-input input{padding:12px 14px 12px 44px;color:var(--system-text);font-size:13px;background:#fff}.field-input input:focus,.search-box input:focus,textarea:focus{border-color:var(--system-clinical-500);box-shadow:0 0 0 1px #0ea5e91f}.remember-row{display:flex;align-items:center;gap:10px;color:var(--system-muted);font-size:12px}.system-primary-button,.system-secondary-button,.system-indigo-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 18px;border-radius:8px;color:#fff;font-size:12px;font-weight:700}.system-primary-button{background:var(--system-clinical-500)}.system-secondary-button{color:var(--system-dark-gray);background:var(--system-panel);border:1px solid var(--system-line)}.system-indigo-button{background:var(--system-accent-500)}.support-divider{display:flex;align-items:center;gap:16px;margin:24px 0 18px;color:#94a3b8;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.support-divider:before,.support-divider:after{content:"";flex:1;border-top:1px solid #e2e8f0}.demo-note{padding:16px;border:1px solid var(--system-clinical-100);border-radius:16px;color:#0c4a6e;background:var(--system-clinical-50)}.demo-note strong{display:flex;align-items:center;gap:8px;font-size:12px}.demo-note p{margin:8px 0 0;font-size:12px;line-height:1.7}.form-error-message{margin:0;color:#be123c;font-size:11px;font-weight:700}.app-layout{display:grid;min-height:100vh;grid-template-columns:256px 1fr;background:#eef3f8}.app-sidebar{display:flex;flex-direction:column;justify-content:space-between;position:sticky;top:0;height:100vh;overflow-y:auto;color:var(--system-text);background:#f8fbff;border-right:1px solid #dbe4f0}.app-sidebar-brand{display:flex;align-items:center;gap:12px;padding:24px;border-bottom:1px solid #e2e8f0}.app-sidebar-brand .brand-copy small{color:var(--system-clinical-600)}.sidebar-search{position:relative;margin:16px 16px 12px}.sidebar-search i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#64748b;font-size:12px}.sidebar-search input{width:100%;padding:11px 14px 11px 38px;color:var(--system-text);background:#fff;border:1px solid #dbe4f0;border-radius:8px;outline:none;font-size:12px}.sidebar-search input::placeholder{color:#64748b}.app-nav-label{padding:0 20px 10px;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}.app-nav{padding:16px;display:grid;gap:8px}.tab-button{display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;color:#94a3b8;background:transparent;border-radius:14px;text-align:left;font-size:12px;font-weight:700}.tab-button i{width:16px}.tab-button-main{display:flex;flex:1;min-width:0;flex-direction:column;gap:2px}.tab-button-main small{color:#64748b;font-size:10px;font-weight:600}.nav-arrow{color:#475569;font-size:11px}.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:36px;padding:4px 8px;color:var(--system-accent-500);background:#e8eaff;border:1px solid rgba(99,102,241,.42);border-radius:999px;font-size:9px;font-weight:800;letter-spacing:.08em}.tab-button:hover{color:var(--system-text);background:#0ea5e914}.tab-button.active{color:#fff;background:var(--system-clinical-600)}.tab-button.active .tab-button-main small,.tab-button.highlight.active .tab-button-main small{color:#ffffffbf}.tab-button.active .nav-arrow,.tab-button.highlight.active .nav-arrow{color:#ffffffd9}.tab-button.highlight.active{background:var(--system-accent-500)}.app-sidebar-footer{padding:16px;border-top:1px solid #e2e8f0}.profile-card{display:flex;align-items:center;gap:12px;padding:10px;border-radius:8px;background:#fff;border:1px solid #e2e8f0}.profile-card strong{display:block;color:var(--system-text);font-size:12px}.profile-card span{display:block;margin-top:2px;color:#38bdf8;font-size:10px;font-weight:700}.logout-button{display:flex;align-items:center;gap:8px;margin-top:14px;padding:0;color:#64748b;background:transparent;border:0;outline:0;box-shadow:none;font-size:11px;font-weight:800;appearance:none;-webkit-appearance:none;cursor:pointer}.logout-button:hover{color:#fb7185}.logout-button:focus,.logout-button:focus-visible,.logout-button:active{border:0;outline:0;box-shadow:none}.app-main{display:flex;flex-direction:column;min-width:0;background:#eef3f8}.mobile-app-header,.system-mobile-menu{display:none}.mobile-app-actions{display:flex;align-items:center;gap:10px}.app-topbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 32px;background:#fff;border-bottom:1px solid var(--system-line)}.app-topbar-left{display:flex;align-items:center;gap:12px;color:#94a3b8;font-size:12px;font-weight:600}.status-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 10px;border-radius:999px;color:#0f766e;background:var(--system-secondary-50);font-size:10px;font-weight:800}.status-dot{width:6px;height:6px;border-radius:50%;background:var(--system-emerald-500)}.app-topbar-right{display:flex;align-items:center;gap:16px}.search-box{position:relative;width:260px}.search-box i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:#94a3b8;font-size:12px}.search-box input{padding:10px 14px 10px 36px;background:#f8fafc;font-size:12px}.notification-button{position:relative;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;color:#475569;border-radius:12px;background:transparent}.system-theme-toggle{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.system-theme-toggle.compact{width:40px;height:40px;color:#fff;background:#0f172abf;border-color:#334155b3}.notification-button:hover{background:#f1f5f9}.notification-button span{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--system-rose-500)}.app-content{flex:1;padding:24px 32px 32px;overflow-y:auto}.app-tab.active{display:block}.welcome-banner{position:relative;overflow:hidden;padding:28px 32px;border:1px solid var(--system-slate-800);border-radius:24px;color:#fff;background:linear-gradient(90deg,#0f172a,#020617 52%,#082f49);box-shadow:var(--system-shadow)}.banner-copy{max-width:720px}.banner-copy h2,.section-top h2,.ia-banner h2{margin:0;font-size:28px;font-weight:900}.banner-copy p,.section-top p,.ia-banner p,.panel-card p,.timeline-item p{color:#94a3b8;font-size:13px;line-height:1.75}.banner-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}.kpi-grid,.summary-grid,.agenda-grid,.odontogram-grid,.ia-grid{display:grid;gap:16px;margin-top:24px}.kpi-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-card,.panel-card{background:var(--system-panel);border:1px solid #f1f5f9;border-radius:22px;box-shadow:var(--system-shadow)}.kpi-card{display:flex;align-items:center;gap:16px;padding:20px}.kpi-icon{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;font-size:18px}.kpi-icon.clinical{color:var(--system-clinical-600);background:var(--system-clinical-50)}.kpi-icon.emerald{color:#0f766e;background:var(--system-secondary-50)}.kpi-icon.indigo,.kpi-icon.amber{color:var(--system-accent-500);background:var(--system-accent-50)}.kpi-card span{display:block;color:#94a3b8;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.kpi-card strong{display:block;margin-top:4px;font-size:20px;font-weight:800}.summary-grid,.agenda-grid,.odontogram-grid,.ia-grid{grid-template-columns:2fr 1fr}.panel-card{padding:24px}.panel-card.large{min-width:0}.panel-card.slim{height:fit-content}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid #f1f5f9}.panel-head h3{margin:0;color:var(--system-text);font-size:14px;font-weight:700}.panel-head p{margin:4px 0 0}.panel-head>span,.simple-tag{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;color:var(--system-clinical-600);background:var(--system-clinical-50);font-size:10px;font-weight:800}.panel-head.simple{padding-bottom:0;border-bottom:0}.wait-list{display:grid;margin-top:8px}.wait-item{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 0;border-top:1px solid #f1f5f9}.wait-item:first-child{border-top:0}.avatar-box{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:10px;color:#334155;background:#f1f5f9;font-size:12px;font-weight:800}.avatar-box.clinical{color:#0369a1;background:var(--system-clinical-100)}.avatar-box.teal{color:#0f766e;background:#ccfbf1}.wait-item strong,.patient-button strong,.timeline-item h4{display:block;font-size:12px;font-weight:800}.wait-item p,.patient-button span{margin:2px 0 0;color:#94a3b8;font-size:10px}.wait-item>span{padding:8px 10px;border-radius:10px;color:#334155;background:#f1f5f9;font-size:10px;font-weight:800}.progress-item{margin-top:18px}.progress-item div:first-child{display:flex;justify-content:space-between;gap:12px;margin-bottom:8px;font-size:12px}.progress-item span{color:var(--system-muted)}.progress-item strong{color:var(--system-text)}.progress-bar{width:100%;height:6px;overflow:hidden;border-radius:999px;background:#e2e8f0}.progress-bar span{display:block;height:100%;border-radius:999px;background:var(--system-clinical-500)}.section-top{display:flex;align-items:center;justify-content:space-between;gap:18px}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.calendar-grid.labels{margin-top:16px;color:#94a3b8;font-size:10px;font-weight:800;text-align:center}.calendar-grid.days{margin-top:10px;color:#475569;font-size:12px;text-align:center}.calendar-grid.days span{padding:8px 0;border-radius:10px}.calendar-grid.days .muted{color:#cbd5e1}.calendar-grid.days .active-day{color:#fff;font-weight:800;background:var(--system-clinical-500)}.timeline-list{display:grid;margin-top:14px}.timeline-item{display:grid;grid-template-columns:90px 1fr;gap:18px;padding:16px;border-top:1px solid #f1f5f9;border-left:4px solid transparent}.timeline-item:first-child{border-top:0}.timeline-item.clinical{border-left-color:var(--system-clinical-500);background:#0ea5e90d}.timeline-item.emerald{border-left-color:var(--system-emerald-500)}.timeline-item strong{color:var(--system-clinical-600);font-size:12px}.patient-list{display:grid;gap:8px;margin-top:16px}.patient-button{display:flex;align-items:center;gap:12px;width:100%;padding:14px;text-align:left;border:1px solid transparent;border-radius:16px;background:transparent}.patient-button:hover{background:#f8fafc}.patient-button.active{border-color:var(--system-clinical-100);background:#f0f9ffb3}.teeth-section{margin-top:24px}.small-label.centered{display:block;margin-bottom:18px;text-align:center}.teeth-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px}.tooth-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px;border:1px solid #f1f5f9;border-radius:16px;background:#fff}.tooth-card span:first-child{color:var(--system-muted);font-size:12px;font-weight:800}.tooth-card svg{width:34px;height:34px}.tooth-card strong{font-size:10px;font-weight:800}.tooth-healthy{color:#10b981}.tooth-caries{color:#f43f5e}.tooth-treated{color:#0ea5e9}.tooth-missing{color:#94a3b8}.status-healthy{color:#059669}.status-caries{color:#e11d48}.status-treated{color:#0284c7}.status-missing{color:#64748b}.odont-toolbar{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.odont-status-button{display:inline-flex;align-items:center;gap:12px;min-height:46px;padding:0 22px;border:1.5px solid #d8e4f4;border-radius:999px;background:#fff;color:var(--system-text);font-size:12px;font-weight:800;box-shadow:0 8px 18px #94a3b814}.odont-status-button .tone-dot{width:12px;height:12px;border-radius:999px;background:currentColor;flex:0 0 12px}.odont-status-button.active{background:#f8fbff;border-color:#c9dcf7;box-shadow:0 0 0 3px #0ea5e914}.odont-status-button.healthy.active{color:#10b981;background:#10b98114;border-color:#10b9813d}.odont-status-button.caries.active{color:#f43f5e;background:#f43f5e14;border-color:#f43f5e3d}.odont-status-button.missing.active{color:#94a3b8;background:#94a3b814;border-color:#94a3b83d}.odont-status-button.watch.active{color:#d97706;background:#d9770614;border-color:#d977063d}.odont-status-button.healthy{color:#10b981}.odont-status-button.caries{color:#f43f5e}.odont-status-button.missing{color:#94a3b8}.odont-status-button.watch{color:#d97706}.odont-status-button.treatment-amalgama{color:#fff;background:#475569;border-color:#475569}.odont-status-button.treatment-resina{color:#fff;background:#0ea5e9;border-color:#0ea5e9}.odont-status-button.treatment-endo{color:#fff;background:#f97316;border-color:#f97316}.odont-status-button.treatment-crown{color:#fff;background:#6366f1;border-color:#6366f1}.odont-status-button.treatment-implant{color:#fff;background:#14b8a6;border-color:#14b8a6}.odont-status-button.treatment.active{box-shadow:0 0 0 4px #0f172a14;transform:translateY(-1px)}.odont-board{display:flex;flex-direction:column;gap:24px;margin-top:18px}.odont-bottom-grid{display:grid;grid-template-columns:3fr 9fr;gap:24px;align-items:start}.odont-col-3{display:flex;flex-direction:column;gap:18px}.odont-col-9{display:flex;flex-direction:column;gap:24px}.odont-tools-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.odont-budget-card,.odont-summary-stack div,.odont-stage-card,.odont-procedures-card{border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:var(--system-shadow)}.odont-stage-card{position:relative}.odont-budget-card{padding:20px;background:linear-gradient(180deg,#f8fcff,#fff)}.odont-budget-card>span,.odont-summary-stack span{display:block;color:var(--system-muted);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.odont-budget-card>strong{display:block;margin-top:10px;color:var(--system-clinical-600);font-size:28px;font-weight:900}.odont-budget-lines{display:grid;gap:12px;margin-top:18px}.odont-budget-lines div{display:flex;align-items:center;justify-content:space-between;gap:16px;color:var(--system-text);font-size:12px}.odont-budget-lines strong{font-size:14px;font-weight:900}.odont-budget-highlight{margin-top:18px;padding:14px 16px;border:1px solid rgba(34,211,238,.26);border-radius:16px;color:var(--system-clinical-600);background:#22d3ee14}.odont-budget-highlight strong{display:block;margin-top:6px;font-size:22px;font-weight:900}.odont-budget-discount-field{display:grid;gap:8px;margin-top:16px}.odont-summary-stack{display:grid;gap:12px}.odont-summary-stack div{padding:14px 16px}.odont-summary-stack strong{display:block;margin-top:8px;font-size:13px;font-weight:900}.odont-stage-card{padding:22px}.odont-arc-label-row{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;color:var(--system-muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.odont-arc-label-row.lower{margin-top:16px;margin-bottom:0}.odont-arc{display:grid;grid-template-columns:repeat(16,minmax(38px,1fr));gap:8px;align-items:end}.odont-piece-column{display:flex;flex-direction:column;align-items:center;gap:8px;min-width:0}.odont-piece-column.lower{justify-content:flex-end}.odont-piece-number{color:var(--system-muted);font-size:10px;font-weight:800}.odont-tooth-button,.odont-marker-button{display:inline-flex;align-items:center;justify-content:center;width:100%;border:0;background:transparent}.odont-tooth-button{padding:0;cursor:pointer;transition:transform .18s ease,filter .18s ease}.odont-tooth-button:hover,.odont-marker-button:hover{transform:translateY(-1px)}.odont-tooth-button.is-selected{filter:drop-shadow(0 10px 20px rgba(14,165,233,.22))}.odont-tooth-button svg{width:40px;height:56px}.odont-marker-button{cursor:pointer;padding:2px 0 0}.odont-surface-indicator{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border:2px solid currentColor;border-radius:999px;background:#fff;font-size:10px;font-weight:900;line-height:1}.odont-marker-button.is-selected .odont-surface-indicator{box-shadow:0 0 0 4px #0ea5e924}.odont-sextants{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;margin:22px 0}.odont-sextants span{position:relative;padding-top:26px;color:var(--system-muted);font-size:10px;font-weight:700;text-align:center}.odont-sextants span:before{content:"";position:absolute;top:0;left:50%;width:46px;height:18px;border:2px solid #94a3b8;border-bottom:0;border-radius:999px 999px 0 0;transform:translate(-50%)}.odont-legend-grid{display:flex;flex-wrap:wrap;gap:10px}.odont-legend-item{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;border:1px solid #e2e8f0;background:#fff;color:var(--system-text);font-size:11px;font-weight:800}.odont-legend-item:before{content:"";width:10px;height:10px;border-radius:999px;background:currentColor}.odont-procedures-card{overflow:hidden;padding:18px 20px 20px}.odont-procedures-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.odont-procedures-counter{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #dbe7f5;background:#f8fbff;color:var(--system-muted);font-size:12px;font-weight:800}.odont-procedures-list{display:grid;gap:12px;margin-top:16px}.odont-procedure-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;padding:16px 18px;border:1px solid #e2e8f0;border-radius:20px;background:linear-gradient(180deg,#fff,#f8fbff)}.odont-procedure-main{display:grid;gap:10px;align-content:center}.odont-procedure-badge{display:inline-flex;align-items:center;width:fit-content;padding:7px 14px;border-radius:999px;background:#4f46e51a;color:#4f46e5;font-size:12px;font-weight:900}.odont-procedure-meta{display:grid;gap:3px}.odont-procedure-meta strong{font-size:14px;font-weight:900}.odont-procedure-meta small{color:var(--system-muted);font-size:11px;font-weight:700}.odont-procedure-pricing{display:grid;grid-template-columns:repeat(4,auto);gap:12px;align-items:center}.odont-procedure-price{min-width:90px;display:grid;gap:4px;text-align:right}.odont-procedure-price span,.odont-discount-field>span{color:var(--system-muted);font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.odont-procedure-price strong{font-size:14px;font-weight:900}.odont-procedure-price.net strong{color:var(--system-clinical-600)}.odont-discount-field{display:grid;gap:6px}.odont-discount-input-wrap{display:inline-flex;align-items:center;gap:8px;min-width:96px;padding:0 12px;height:42px;border:1px solid #dbe7f5;border-radius:8px;background:#fff}.odont-discount-input-wrap input{width:48px;border:0;outline:0;background:transparent;color:var(--system-text);font-size:14px;font-weight:900}.odont-discount-input-wrap small{color:var(--system-muted);font-size:12px;font-weight:800}.odont-row-remove{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid rgba(244,63,94,.18);border-radius:8px;background:#fff1f2d1;color:#e11d48;font-size:12px;font-weight:700;cursor:pointer}.odont-row-remove:hover{background:#ffe4e6eb}.odont-legend-item.healthy,.odont-surface-indicator.healthy{color:#10b981}.odont-legend-item.caries,.odont-surface-indicator.caries{color:#f43f5e}.odont-legend-item.treated,.odont-surface-indicator.treated{color:#0ea5e9}.odont-legend-item.missing,.odont-surface-indicator.missing{color:#94a3b8}.odont-legend-item.implant,.odont-surface-indicator.implant{color:#14b8a6}.odont-legend-item.crown,.odont-surface-indicator.crown{color:#6366f1}.tooth-implant{color:#14b8a6}.tooth-crown{color:#6366f1}.odont-tool-card,.odont-summary-card{padding:16px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:var(--system-shadow)}.odont-tool-head h4{margin:0;font-size:14px;font-weight:800}.odont-tool-head p,.odont-summary-card>span{margin:6px 0 0;color:var(--system-muted);font-size:11px;font-weight:700}.odont-status-button.treatment.active{background:var(--system-accent-500);border-color:var(--system-accent-500)}.odont-state-totals{display:grid;gap:10px;margin-top:14px}.odont-total-chip{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:8px;background:#f8fafc;color:var(--system-text);font-size:12px;font-weight:600}.odont-total-chip strong{font-size:14px}.odont-total-chip.caries{color:#e11d48}.odont-total-chip.missing{color:#64748b}.odont-total-chip.watch{color:#b45309}.odont-total-chip.treatment{color:#4f46e5}.odont-legend-stack{display:grid;gap:14px}.odont-legend-group{display:grid;gap:10px}.odont-legend-title{color:var(--system-muted);font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.odont-arc{display:grid;grid-template-columns:repeat(16,minmax(0,1fr));gap:6px;align-items:start}.odont-piece-column{gap:8px}.odont-tooth-shell{position:relative;width:44px;height:112px;transition:transform .18s ease,filter .18s ease}.odont-tooth-shell.is-selected{transform:translateY(-1px);filter:drop-shadow(0 12px 20px rgba(14,165,233,.18))}.odont-tooth-svg{position:absolute;top:14px;left:50%;width:36px;height:64px;transform:translate(-50%);color:#10b981}.odont-tooth-svg.tooth-absent{color:#94a3b8;opacity:.7}.odont-tooth-svg.tooth-root-alert .odont-root-path{color:#f59e0b;opacity:1}.odont-tooth-trigger{position:absolute;inset:0;border:0;background:transparent;padding:0;cursor:pointer}.odont-tooth-flags{position:absolute;left:50%;bottom:4px;display:inline-flex;gap:4px;transform:translate(-50%)}.odont-tooth-flag{min-width:18px;height:18px;padding:0 5px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:9px;font-weight:900;border:1px solid rgba(148,163,184,.34);background:#fffffff2;color:#64748b;box-shadow:0 6px 14px #94a3b824}.odont-tooth-flag.caries{color:#f43f5e;border-color:#f43f5e47;background:#fff1f2f2}.odont-tooth-flag.root{color:#f59e0b;border-color:#f59e0b47;background:#fffbebf5}.odont-tooth-flag.treatment{color:#0ea5e9;border-color:#0ea5e947;background:#f0f9fff5}.odont-face-button{position:absolute;width:24px;height:24px;border:1px solid rgba(148,163,184,.45);background:#fffffff5;color:#94a3b8;border-radius:999px;padding:0;font-size:9px;font-weight:900;line-height:1;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background .18s ease;box-shadow:0 6px 16px #94a3b824}.odont-face-button:hover{box-shadow:0 10px 18px #0ea5e929}.odont-root-button:hover{transform:translate(-50%) translateY(-1px)}.odont-face-button.is-selected,.odont-root-button.is-selected{box-shadow:0 0 0 3px #0ea5e92e;border-color:var(--system-clinical-500)}.odont-face-button.is-absent{opacity:.72}.odont-face-button.face-o{top:0;left:50%;transform:translate(-50%)}.odont-face-button.face-m{top:44px;left:0}.odont-face-button.face-v{top:52px;left:50%;transform:translate(-50%)}.odont-face-button.face-d{top:44px;right:0}.odont-face-button.face-l{top:88px;left:50%;transform:translate(-50%)}.odont-face-code{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%}.odont-face-treatment-tag{position:absolute;right:-4px;bottom:-5px;min-width:14px;height:14px;padding:0 3px;border-radius:999px;color:#fff;font-size:7px;font-weight:900;line-height:14px;text-align:center;box-shadow:0 4px 12px #0f172a29}.odont-root-button{position:absolute;left:50%;bottom:0;width:28px;height:28px;border:1px solid rgba(148,163,184,.55);border-radius:999px;background:#fff;color:#94a3b8;font-size:11px;font-weight:900;transform:translate(-50%);cursor:pointer;box-shadow:0 8px 18px #94a3b824}.odont-root-button.root-alert{color:#f59e0b;border-color:#f59e0b73;background:#f59e0b14}.odont-tooth-treatment-badge{position:absolute;top:16px;right:-2px;min-width:24px;height:24px;padding:0 6px;border-radius:999px;color:#fff;font-size:9px;font-weight:900;line-height:24px;text-align:center;box-shadow:0 6px 14px #0f172a2e}.odont-popover{position:absolute;z-index:12;width:320px;padding:20px 20px 22px;border-radius:28px;border:1px solid rgba(226,232,240,.9);background:#fffffffa;box-shadow:0 24px 40px #0f172a29;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);transform-origin:top left}.odont-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.odont-popover-head strong{display:block;color:var(--system-text);font-size:18px;font-weight:900}.odont-popover-head span{display:block;margin-top:6px;color:var(--system-muted);font-size:13px;line-height:1.45}.odont-popover-close{width:44px;height:44px;border:1px solid #dbe6f5;border-radius:999px;background:#f8fbff;color:#64748b;cursor:pointer;font-size:18px}.odont-popover-body{display:grid;gap:20px;margin-top:16px}.odont-popover-diagram{position:relative;width:180px;height:190px;margin:0 auto}.odont-popover-svg{position:absolute!important;top:24px;left:50%;transform:translate(-50%);width:72px!important;height:144px!important;display:block;z-index:1;pointer-events:none}.odont-popover-svg svg{width:100%!important;max-width:100%!important;height:100%!important;color:#94a3b8;opacity:.15}.odont-popover-faces{position:absolute;inset:0}.odont-popover .odont-face-button{width:44px;height:44px;font-size:14px;border-width:2px}.odont-popover .odont-face-button.face-o{top:0}.odont-popover .odont-face-button.face-m{top:62px}.odont-popover .odont-face-button.face-v{top:78px}.odont-popover .odont-face-button.face-d{top:62px}.odont-popover .odont-face-button.face-l{top:142px}.odont-popover .odont-root-button{width:52px;height:52px;bottom:-2px;font-size:22px;border-width:2px}.odont-popover-meta{display:grid;gap:14px}.odont-popover-meta div{padding:16px 18px;border:1.5px solid #ddebfa;border-radius:24px;background:linear-gradient(180deg,#f8fbff,#fff)}.odont-popover-meta span{display:block;color:var(--system-muted);font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.odont-popover-meta strong{display:block;margin-top:8px;color:var(--system-text);font-size:16px;font-weight:900}.odont-face-button.healthy{color:#10b981;border-color:#10b98147;background:#10b98114}.odont-face-button.caries{color:#f43f5e;border-color:#f43f5e47;background:#f43f5e14}.odont-face-button.missing{color:#94a3b8;border-color:#94a3b85c;background:#94a3b81f}.odont-face-button.watch{color:#d97706;border-color:#d9770647;background:#f59e0b1a}.odont-legend-item.watch{color:#d97706}.odont-legend-item.treatment-amalgama,.odont-face-treatment-tag.treatment-amalgama,.odont-tooth-treatment-badge.treatment-amalgama{color:#fff;background:#475569}.odont-legend-item.treatment-resina,.odont-face-treatment-tag.treatment-resina,.odont-tooth-treatment-badge.treatment-resina{color:#fff;background:#0ea5e9}.odont-legend-item.treatment-endo,.odont-face-treatment-tag.treatment-endo,.odont-tooth-treatment-badge.treatment-endo{color:#fff;background:#f97316}.odont-legend-item.treatment-crown,.odont-face-treatment-tag.treatment-crown,.odont-tooth-treatment-badge.treatment-crown{color:#fff;background:#6366f1}.odont-legend-item.treatment-implant,.odont-face-treatment-tag.treatment-implant,.odont-tooth-treatment-badge.treatment-implant{color:#fff;background:#14b8a6}.status-implant{color:#0f766e}.status-crown{color:#4f46e5}.ia-banner{padding:24px;color:#fff;border:1px solid var(--system-slate-800);border-radius:24px;background:var(--system-slate-900)}.ia-banner span{display:inline-flex;padding:4px 8px;border:1px solid rgba(99,102,241,.3);border-radius:999px;color:#818cf8;background:#6366f12e;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.ia-grid{grid-template-columns:1fr 1.3fr}textarea{margin-top:8px;padding:14px;resize:vertical;color:var(--system-text);font-size:12px;background:#fff}.visual-card{min-height:360px}.ia-placeholder,.ia-spinner,.ia-output{display:flex;align-items:center;justify-content:center;min-height:100%;flex-direction:column;text-align:center}.placeholder-icon{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;color:var(--system-accent-500);background:var(--system-accent-50);font-size:20px}.ia-placeholder h4{margin:14px 0 8px;font-size:14px;font-weight:800}.ia-placeholder p,.ia-output p,.ia-spinner p{max-width:320px;color:var(--system-muted);font-size:12px;line-height:1.7}.ia-output img{max-height:260px;object-fit:contain;margin:0 auto 12px;border:1px solid #f1f5f9;border-radius:18px;box-shadow:var(--system-shadow)}.spinner-ring{width:44px;height:44px;border:4px solid #dbeafe;border-top-color:var(--system-accent-500);border-radius:50%;animation:spin 1s linear infinite}.system-toast{position:fixed;right:20px;bottom:20px;z-index:80;display:flex;align-items:center;gap:12px;padding:14px 18px;color:#fff;background:var(--system-slate-900);border-radius:16px;box-shadow:0 20px 40px #0f172a2e;opacity:0;transform:translateY(20px);transition:opacity .25s ease,transform .25s ease}.system-toast.visible{opacity:1;transform:translateY(0)}.system-toast-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--system-emerald-500);font-size:10px}body[data-system-theme=dark]{--system-bg: #0b1220;--system-panel: #111827;--system-line: #243244;--system-text: #e2e8f0;--system-muted: #94a3b8;--system-shadow: 0 14px 32px rgba(2, 6, 23, .32);color:#e2e8f0;background:linear-gradient(180deg,#0b1220,#111827)}body[data-system-theme=dark] .app-layout,body[data-system-theme=dark] .app-main,body[data-system-theme=dark] .app-content{background:transparent}body[data-system-theme=dark] .app-sidebar,body[data-system-theme=dark] .app-sidebar-brand,body[data-system-theme=dark] .app-sidebar-footer{background:#0f172a;border-color:#1f2b3d}body[data-system-theme=dark] .app-sidebar .brand-copy strong,body[data-system-theme=dark] .mobile-app-brand .brand-copy strong,body[data-system-theme=dark] .app-sidebar .app-nav-label,body[data-system-theme=dark] .profile-card strong{color:#f8fafc}body[data-system-theme=dark] .app-sidebar .brand-copy small,body[data-system-theme=dark] .sidebar-search i,body[data-system-theme=dark] .sidebar-search input,body[data-system-theme=dark] .tab-button,body[data-system-theme=dark] .tab-button-main small,body[data-system-theme=dark] .nav-arrow,body[data-system-theme=dark] .profile-card span,body[data-system-theme=dark] .logout-button{color:#94a3b8}body[data-system-theme=dark] .profile-card,body[data-system-theme=dark] .sidebar-search input{background:#172234;border-color:#243244}body[data-system-theme=dark] .app-topbar,body[data-system-theme=dark] .panel-card,body[data-system-theme=dark] .kpi-card,body[data-system-theme=dark] .chart-card,body[data-system-theme=dark] .system-table-card,body[data-system-theme=dark] .profile-grid>*,body[data-system-theme=dark] .invoice-grid>*,body[data-system-theme=dark] .profile-panel,body[data-system-theme=dark] .profile-summary,body[data-system-theme=dark] .invoice-panel,body[data-system-theme=dark] .summary-stat,body[data-system-theme=dark] .kanban-column,body[data-system-theme=dark] .mini-card,body[data-system-theme=dark] .search-box input,body[data-system-theme=dark] textarea,body[data-system-theme=dark] .system-theme-toggle,body[data-system-theme=dark] .field-input input,body[data-system-theme=dark] .auth-form-panel,body[data-system-theme=dark] .demo-note{color:#e2e8f0;background:#111827;border-color:#243244}body[data-system-theme=dark] .auth-form-panel{background:#0f172a}body[data-system-theme=dark] .auth-head h3,body[data-system-theme=dark] .section-top h2,body[data-system-theme=dark] .panel-head h3,body[data-system-theme=dark] .wait-item strong,body[data-system-theme=dark] .timeline-item h4,body[data-system-theme=dark] .patient-button strong,body[data-system-theme=dark] .kpi-card strong,body[data-system-theme=dark] .small-label,body[data-system-theme=dark] .field-label,body[data-system-theme=dark] .field label,body[data-system-theme=dark] .mobile-auth-brand,body[data-system-theme=dark] .back-link,body[data-system-theme=dark] .support-divider,body[data-system-theme=dark] .ia-placeholder h4{color:#f8fafc}body[data-system-theme=dark] .auth-head p,body[data-system-theme=dark] .banner-copy p,body[data-system-theme=dark] .section-top p,body[data-system-theme=dark] .panel-card p,body[data-system-theme=dark] .timeline-item p,body[data-system-theme=dark] .wait-item p,body[data-system-theme=dark] .patient-button span,body[data-system-theme=dark] .kpi-card span,body[data-system-theme=dark] .progress-item span,body[data-system-theme=dark] .app-topbar-left,body[data-system-theme=dark] .ia-placeholder p,body[data-system-theme=dark] .ia-output p,body[data-system-theme=dark] .ia-spinner p,body[data-system-theme=dark] .remember-row,body[data-system-theme=dark] .demo-note p{color:#94a3b8}body[data-system-theme=dark] .welcome-banner,body[data-system-theme=dark] .ia-banner{border-color:#243244;background:linear-gradient(90deg,#111827,#0f172a 52%,#082f49)}body[data-system-theme=dark] .progress-bar{background:#1e293b}body[data-system-theme=dark] .wait-item,body[data-system-theme=dark] .timeline-item,body[data-system-theme=dark] .panel-head,body[data-system-theme=dark] .panel-head.simple,body[data-system-theme=dark] .data-table th,body[data-system-theme=dark] .data-table td,body[data-system-theme=dark] .support-divider:before,body[data-system-theme=dark] .support-divider:after{border-color:#243244}body[data-system-theme=dark] .patient-button:hover,body[data-system-theme=dark] .tooth-card,body[data-system-theme=dark] .calendar-grid.days span:not(.active-day),body[data-system-theme=dark] .notification-button:hover,body[data-system-theme=dark] .tab-button:hover{background:#172234}body[data-system-theme=dark] .odont-status-button{color:#e2e8f0;background:#172234;border-color:#243244}body[data-system-theme=dark] .odont-status-button.active{color:#fff;background:var(--system-clinical-500);border-color:var(--system-clinical-500)}body[data-system-theme=dark] .odont-status-button.treatment.active{background:var(--system-accent-500);border-color:var(--system-accent-500)}body[data-system-theme=dark] .odont-budget-card,body[data-system-theme=dark] .odont-summary-stack div,body[data-system-theme=dark] .odont-stage-card,body[data-system-theme=dark] .odont-procedures-card,body[data-system-theme=dark] .odont-legend-item,body[data-system-theme=dark] .odont-mini-header,body[data-system-theme=dark] .odont-tool-card,body[data-system-theme=dark] .odont-summary-card{background:#172234;border-color:#243244}body[data-system-theme=dark] .odont-budget-highlight{background:#22d3ee1f;border-color:#22d3ee38}body[data-system-theme=dark] .odont-budget-card>span,body[data-system-theme=dark] .odont-summary-stack span,body[data-system-theme=dark] .odont-arc-label-row,body[data-system-theme=dark] .odont-piece-number,body[data-system-theme=dark] .odont-sextants span{color:#94a3b8}body[data-system-theme=dark] .odont-summary-stack strong,body[data-system-theme=dark] .odont-budget-lines div,body[data-system-theme=dark] .odont-budget-highlight strong,body[data-system-theme=dark] .odont-mini-copy strong{color:#f8fafc}body[data-system-theme=dark] .odont-mini-copy span{color:#94a3b8}body[data-system-theme=dark] .odont-surface-indicator{background:#0f172a}body[data-system-theme=dark] .odont-sextants span:before{border-color:#64748b}body[data-system-theme=dark] .odont-total-chip{background:#0f172ab8}body[data-system-theme=dark] .odont-face-button{background:#0f172aeb;border-color:#94a3b840}body[data-system-theme=dark] .odont-face-button.healthy{background:#10b9812e;border-color:#10b98157}body[data-system-theme=dark] .odont-face-button.caries{background:#f43f5e2e;border-color:#f43f5e5c}body[data-system-theme=dark] .odont-face-button.missing{background:#94a3b829;border-color:#94a3b847}body[data-system-theme=dark] .odont-face-button.watch{background:#f59e0b2e;border-color:#f59e0b57}body[data-system-theme=dark] .odont-root-button{background:#0f172aeb;border-color:#94a3b847}body[data-system-theme=dark] .odont-tooth-flag{background:#0f172af5;border-color:#94a3b847;color:#cbd5e1}body[data-system-theme=dark] .odont-tooth-flag.caries{background:#7f1d1d33;border-color:#fb71853d;color:#fda4af}body[data-system-theme=dark] .odont-tooth-flag.root{background:#78350f33;border-color:#fbbf2438;color:#fcd34d}body[data-system-theme=dark] .odont-tooth-flag.treatment{background:#082f4942;border-color:#38bdf838;color:#7dd3fc}body[data-system-theme=dark] .odont-popover{border-color:#1e293bf2;background:#0f172afa;box-shadow:0 24px 48px #02081785}body[data-system-theme=dark] .odont-popover-close{border-color:#334155f0;background:#1e293bf5;color:#cbd5e1}body[data-system-theme=dark] .odont-popover-head strong,body[data-system-theme=dark] .odont-popover-meta strong{color:#f8fafc}body[data-system-theme=dark] .odont-popover-head span,body[data-system-theme=dark] .odont-popover-meta span{color:#94a3b8}body[data-system-theme=dark] .odont-popover-meta div{border-color:#334155e6;background:linear-gradient(180deg,#0f172ae6,#0f172afa)}body[data-system-theme=dark] .odont-tooth-svg{color:#34d399}body[data-system-theme=dark] .odont-tooth-svg.tooth-absent{color:#64748b}body[data-system-theme=dark] .patient-button.active{background:#0ea5e91f;border-color:#38bdf847}body[data-system-theme=dark] .tab-button.active,body[data-system-theme=dark] .tab-button.highlight.active{color:#fff}body[data-system-theme=dark] .system-mobile-menu{background:#020617fa}body[data-system-theme=dark] .mobile-app-header{color:#fff;background:#0f172a;border-bottom-color:#1f2b3d}body[data-system-theme=dark] .system-mobile-menu button,body[data-system-theme=dark] .system-mobile-menu a{color:#fff;background:#0f172ad6;border-color:#33415580}body[data-system-theme=dark] .search-box input::placeholder,body[data-system-theme=dark] .sidebar-search input::placeholder,body[data-system-theme=dark] .field-input input::placeholder,body[data-system-theme=dark] textarea::placeholder{color:#64748b}body[data-system-theme=dark] .system-theme-toggle{color:#e2e8f0;background:#172234}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:1024px){.auth-layout,.app-layout,.summary-grid,.agenda-grid,.odontogram-grid,.ia-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.app-sidebar{display:none}.mobile-app-header{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;color:var(--system-text);background:#fff;border-bottom:1px solid #dbe4f0}.mobile-app-brand{display:flex;align-items:center;gap:10px}.mobile-app-brand .brand-copy strong{font-size:13px}.mobile-nav-toggle{width:40px;height:40px;color:#fff;background:transparent;border-radius:12px}.system-mobile-menu{display:grid;gap:8px;padding:16px 20px;background:#f8fafcfa;border-bottom:1px solid #dbe4f0}.system-mobile-menu[hidden]{display:none}.system-mobile-menu button{padding:14px 16px;color:var(--system-text);text-align:left;border:1px solid #dbe4f0;border-radius:8px;background:#fff;font-size:12px;font-weight:700}.system-mobile-menu a{display:block;padding:14px 16px;color:var(--system-text);text-align:left;border:1px solid #dbe4f0;border-radius:8px;background:#fff;font-size:12px;font-weight:700}.system-mobile-menu-footer{padding-top:4px}.system-mobile-logout{width:100%;display:flex;align-items:center;gap:10px}.app-topbar{display:none}}@media(max-width:768px){.auth-showcase{display:none}.auth-layout{min-height:100vh}.auth-form-panel{padding:28px 20px}.mobile-auth-brand{display:flex;margin-bottom:20px}.auth-head h3,.banner-copy h2,.section-top h2,.ia-banner h2{font-size:24px}.app-content{padding:20px}.section-top,.banner-actions{flex-direction:column;align-items:stretch}.kpi-grid,.wait-item,.timeline-item{grid-template-columns:1fr}.timeline-item strong{margin-bottom:6px}.panel-card,.welcome-banner,.ia-banner{padding:20px;border-radius:20px}.odont-board{grid-template-columns:1fr}.odont-arc{grid-template-columns:repeat(8,minmax(34px,1fr))}.odont-sextants{grid-template-columns:repeat(3,minmax(0,1fr))}.odont-arc-label-row{flex-direction:column;align-items:flex-start}.sidebar-search,.app-nav-label{display:none}.system-toast{right:12px;left:12px;bottom:12px}.brand-mark{width:32px;height:32px}.brand-copy strong{font-size:14px}.brand-copy small{font-size:9px}}body[data-page=system] *{box-sizing:border-box}body[data-page=system] a{color:inherit;text-decoration:none}body[data-page=system] button,body[data-page=system] input,body[data-page=system] select,body[data-page=system] textarea{font:inherit}.topbar-tools{position:relative;display:flex;align-items:center;gap:12px}.notification-shell{position:relative}.notification-dot{position:absolute;top:8px;right:8px;width:8px;height:8px;border-radius:50%;background:var(--system-rose-500)}.notification-counter{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin-left:6px;color:#fff;background:var(--system-clinical-600);border-radius:999px;font-size:10px;font-weight:800}.notification-menu{position:absolute;top:calc(100% + 12px);right:0;width:360px;max-width:calc(100vw - 32px);overflow:hidden;background:var(--system-panel);border:1px solid var(--system-line);border-radius:20px;box-shadow:0 20px 40px #0f172a1f;z-index:1000}.notification-menu[hidden]{display:none}.notification-menu-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px 18px;border-bottom:1px solid var(--system-line)}.notification-menu-head strong{display:block;font-size:13px;font-weight:800}.notification-menu-head span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.notification-menu-body{max-height:420px;overflow-y:auto}.notification-item{display:grid;grid-template-columns:1fr auto;gap:14px;padding:16px 18px;border-bottom:1px solid #f1f5f9}.notification-item:last-child{border-bottom:0}.notification-item.unread{background:#0ea5e90d}.notification-copy strong{display:block;font-size:12px;font-weight:800}.notification-copy p{margin:6px 0;color:var(--system-muted);font-size:11px;line-height:1.65}.notification-copy span{color:#94a3b8;font-size:10px;font-weight:700}.notification-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-end}.text-button,.icon-button,.pager-button,.section-tab,.view-switch button{border:1px solid transparent;cursor:pointer}.text-button{padding:0;color:var(--system-clinical-600);background:transparent;font-size:11px;font-weight:800}.switch-inline{display:inline-flex;align-items:center;gap:10px;color:var(--system-text-secondary);font-weight:600}.switch-inline input{width:18px;height:18px;accent-color:var(--system-primary-500)}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:var(--system-muted);background:#f8fafc;border-color:#e2e8f0;border-radius:12px}.text-button:hover,.icon-button:hover,.pager-button:hover,.section-tab:hover,.view-switch button:hover{filter:brightness(.98)}.notification-empty{padding:26px 18px;text-align:center;color:var(--system-muted);font-size:12px}.page-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}.page-hero h1{margin:0;font-size:28px;font-weight:900}.page-hero p{margin:8px 0 0;color:var(--system-muted);font-size:13px;line-height:1.7}.page-actions,.quick-actions,.section-tabs,.view-switch,.table-filters{display:flex;flex-wrap:wrap;gap:12px}.quick-actions{margin-top:18px}.action-chip,.section-tab,.view-switch button,.filter-select,.inline-select{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:0 14px;color:var(--system-text);background:var(--system-panel);border:1px solid var(--system-line);border-radius:8px;font-size:12px;font-weight:700}.action-chip.primary{color:#fff;background:var(--system-clinical-500);border-color:var(--system-clinical-500)}.action-chip.indigo{color:#fff;background:var(--system-accent-500);border-color:var(--system-accent-500)}.section-tabs{margin:22px 0 8px}.section-tab.active,.view-switch button.active,.pager-button.active{color:#fff;background:var(--system-clinical-500);border-color:var(--system-clinical-500)}.chart-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px;margin-top:24px}.chart-card,.system-table-card,.profile-grid>*,.invoice-grid>*,.kanban-column,.mini-card,.summary-stat{background:var(--system-panel);border:1px solid #f1f5f9;border-radius:22px;box-shadow:var(--system-shadow)}.chart-card{padding:22px}.chart-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.chart-card-head h3,.summary-stat strong,.mini-card strong,.kanban-card h4,.invoice-meta strong{margin:0;font-size:14px;font-weight:800}.chart-card-head p,.mini-card p,.empty-copy,.kanban-card p,.invoice-meta p,.line-summary-row span{margin:4px 0 0;color:var(--system-muted);font-size:11px;line-height:1.65}.trend{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800}.trend.up{color:#0f766e;background:var(--system-secondary-50)}.trend.indigo{color:var(--system-accent-500);background:var(--system-accent-50)}.mini-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:end;min-height:220px}.mini-bar-col{display:flex;flex-direction:column;align-items:center;gap:10px;height:100%}.mini-bar-value,.line-summary-row strong,.invoice-totals strong{font-size:11px;font-weight:800}.mini-bar-track{display:flex;align-items:flex-end;width:100%;height:160px;padding:6px;background:#f8fafc;border-radius:16px}.mini-bar-track span{display:block;width:100%;border-radius:12px;background:linear-gradient(180deg,#22d3ee,#0ea5e9)}.mini-bar-col small,.line-summary-row small{color:var(--system-muted);font-size:10px;font-weight:700}.line-summary{display:grid;gap:14px}.line-summary-row{display:grid;gap:8px}.line-summary-row>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:12px}.line-summary-bar{width:100%;height:8px;overflow:hidden;border-radius:999px;background:#e2e8f0}.line-summary-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#0ea5e9,#6366f1)}.donut-wrap{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:center}.donut-chart{position:relative;width:220px;height:220px;border-radius:50%}.donut-hole{position:absolute;inset:28px;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--system-panel);border-radius:50%}.donut-hole strong{font-size:22px;font-weight:900}.donut-hole span{color:var(--system-muted);font-size:11px;text-align:center}.donut-legend{display:grid;gap:12px}.donut-legend div{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center}.donut-legend span{width:10px;height:10px;border-radius:50%}.donut-legend small{color:var(--system-muted);font-size:10px;font-weight:700}.summary-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:24px}.summary-stat{padding:18px 20px}.summary-stat span{display:block;color:var(--system-muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.summary-stat small{display:inline-flex;margin-top:12px;color:var(--system-clinical-600);font-size:11px;font-weight:700}.system-table-card{padding:22px}.table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.table-toolbar>div:first-child{min-width:0}.table-toolbar strong{display:block;font-size:16px;font-weight:900}.table-toolbar span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.table-toolbar .action-chip span,.table-actions .action-chip span,.modal-foot .action-chip span,.action-chip span{margin-top:0;color:inherit;font-size:inherit}.table-filters{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:nowrap;width:min(100%,620px)}.filter-select,.inline-select,.modal-grid input,.modal-grid select,.modal-grid textarea,.table-toolbar input,.calendar-form input,.calendar-form textarea{width:100%;min-height:40px;padding:0 14px;color:var(--system-text);background:#fff;border:1px solid var(--system-line);border-radius:8px;outline:none;font-size:12px}.table-toolbar input{min-width:240px;flex:1 1 360px}.table-filters .filter-select{width:180px;min-width:180px}.table-wrap{width:100%;overflow-x:auto}.data-table{width:100%;border-collapse:collapse}.data-table th,.data-table td{padding:14px 12px;border-top:1px solid #f1f5f9;text-align:left;vertical-align:top;font-size:12px}.data-table thead th{color:var(--system-muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;border-top:0}.data-table tbody small{display:block;margin-top:4px;color:var(--system-muted);font-size:10px}.table-person{display:flex;align-items:center;gap:12px}.table-avatar{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;color:var(--system-clinical-700);background:linear-gradient(135deg,#38bdf829,#6366f124);border:1px solid rgba(56,189,248,.18);font-size:12px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}.table-person strong{display:block;font-size:12px;font-weight:700}.table-actions{display:flex;flex-wrap:nowrap;align-items:center;gap:8px}.icon-action-button,.toolbar-icon-button{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:36px;height:36px;color:var(--system-clinical-600);background:#0ea5e914;border:1px solid rgba(14,165,233,.18);border-radius:12px;font-size:13px;font-weight:800;line-height:1;text-decoration:none;outline:none;appearance:none;transition:transform .16s ease,color .16s ease,background .16s ease,border-color .16s ease,box-shadow .16s ease}.toolbar-icon-button{width:40px;height:40px;border-radius:8px}.icon-action-button:hover,.toolbar-icon-button:hover{transform:translateY(-1px);color:var(--system-clinical-700);background:#0ea5e924;border-color:#0ea5e94d}.icon-action-button:after,.toolbar-icon-button:after{content:attr(data-tooltip);position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%) translateY(4px);padding:7px 10px;color:#fff;background:#0f172af0;border-radius:10px;box-shadow:0 12px 26px #02061738;font-size:10px;font-weight:800;line-height:1.2;white-space:nowrap;opacity:0;pointer-events:none;transition:opacity .14s ease,transform .14s ease}.icon-action-button:hover:after,.icon-action-button:focus-visible:after,.toolbar-icon-button:hover:after,.toolbar-icon-button:focus-visible:after{opacity:1;transform:translate(-50%) translateY(0)}.icon-action-button:focus-visible,.toolbar-icon-button:focus-visible{box-shadow:0 0 0 4px #0ea5e91f}.whatsapp-action-button{color:#128c7e;background:#10b98114;border-color:#10b98138}.whatsapp-action-button:hover{color:#0f766e;background:#10b98124;border-color:#10b98157}.status-badge{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800}.status-badge.success{color:#0f766e;background:var(--system-secondary-50)}.status-badge.warning{color:var(--system-accent-500);background:var(--system-accent-50)}.status-badge.info{color:var(--system-clinical-600);background:var(--system-clinical-50)}.status-badge.danger{color:#be123c;background:#ffe4e6}.status-badge.neutral{color:#475569;background:#e2e8f0}.empty-inline-state{padding:18px 0;color:var(--system-muted);font-size:12px;font-weight:600}.workspace-notice{margin-top:18px;padding:18px 20px;border-radius:18px;border:1px solid #e2e8f0;background:#fff}.workspace-notice strong{display:block;font-size:14px;font-weight:900}.workspace-notice p{margin:6px 0 0;color:var(--system-muted);font-size:12px;line-height:1.7}.workspace-notice.error{border-color:#fecdd3;background:#fff1f2}.inventory-summary-grid{margin-top:22px}.table-inline-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.appointment-status-select{min-width:152px}.pager{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px}.pagination-meta{display:flex;align-items:center;gap:8px;color:var(--system-text-soft);font-size:13px}.pagination-meta strong{color:var(--system-text);font-size:14px}.pagination-actions{display:flex;align-items:center;gap:12px}.pagination-size{display:inline-flex;align-items:center;gap:10px;color:var(--system-text-soft);font-size:13px;font-weight:700}.pagination-size select{min-width:72px;height:38px;padding:0 12px;color:var(--system-text);background:#fff;border:1px solid var(--system-line);border-radius:12px;font-size:13px;font-weight:700}.pager-button{min-width:38px;height:38px;color:var(--system-text);background:#fff;border:1px solid var(--system-line);border-radius:12px;font-size:12px;font-weight:800}.modal-backdrop{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:20px;background:#0206178c}.modal-backdrop[hidden]{display:none}.modal-card{width:min(720px,100%);max-height:calc(100vh - 40px);overflow:auto;padding:22px;background:var(--system-panel);border:1px solid var(--system-line);border-radius:24px;box-shadow:0 25px 60px #0f172a2e}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.modal-head h3{margin:0;font-size:16px;font-weight:900}.modal-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.modal-grid label,.calendar-form label{display:grid;gap:8px}.modal-grid span,.calendar-form span{color:var(--system-muted);font-size:11px;font-weight:800}.modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.users-modal-card{width:min(760px,100%)}.wide-modal{width:min(920px,100%)}.appointment-modal-card{width:min(980px,100%)}.appointment-form-shell{display:grid;gap:18px}.appointment-modal-grid{align-items:start}.modal-span-2{grid-column:1 / -1}.autocomplete-field,.autocomplete-shell{position:relative}.autocomplete-panel{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:30;display:grid;gap:6px;padding:10px;background:var(--system-panel);border:1px solid var(--system-line);border-radius:18px;box-shadow:0 20px 40px #0f172a24}.autocomplete-option{display:grid;gap:2px;width:100%;padding:10px 12px;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--system-text);cursor:pointer}.autocomplete-option strong{font-size:14px}.autocomplete-option small{color:var(--system-muted);font-size:12px}.autocomplete-option:hover{border-color:var(--system-line);background:#0ea5e90f}.users-modal-copy{margin:6px 0 0;color:var(--system-muted);font-size:13px}.users-modal-switch{grid-column:1 / -1}.detail-list{display:grid;gap:12px}.detail-list div,.invoice-meta,.invoice-totals li,.payment-list li,.about-grid div{display:flex;align-items:center;justify-content:space-between;gap:12px}.detail-list span,.about-grid span,.invoice-meta span{color:var(--system-muted);font-size:11px}.calendar-layout,.invoice-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px}.profile-grid{display:grid;grid-template-columns:minmax(320px,680px) 1fr;gap:24px}.calendar-board.week{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.calendar-column,.kanban-card{padding:16px;border:1px solid #f1f5f9;border-radius:18px;background:#f8fafccc}.calendar-column header{margin-bottom:12px}.calendar-column header strong,.month-cell strong,.day-row strong,.invoice-total-figure strong{font-size:12px;font-weight:900}.calendar-event{margin-top:10px;padding:12px;border-left:4px solid var(--system-clinical-500);border-radius:8px;background:#fff}.calendar-event strong,.day-row h4{display:block;font-size:12px;font-weight:600}.calendar-event p,.day-row p{margin:6px 0 0;color:var(--system-muted);font-size:10px}.calendar-month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px}.month-cell{min-height:120px;padding:12px;border:1px solid #f1f5f9;border-radius:18px;background:#f8fafccc}.month-cell span{display:block;margin-top:8px;padding:6px 8px;color:#fff;border-radius:10px;font-size:10px;font-weight:700}.calendar-day-list{display:grid;gap:12px}.day-row{display:grid;grid-template-columns:90px 1fr auto;gap:14px;align-items:center;padding:16px;border:1px solid #f1f5f9;border-radius:18px;background:#f8fafccc}.calendar-chip{display:inline-flex;width:14px;height:14px;border-radius:50%}.calendar-form textarea{min-height:120px;padding:12px 14px;resize:vertical}.calendar-form .system-primary-button{width:100%;margin-top:4px}.profile-grid{align-items:start}.profile-odont-row{margin-top:16px}.profile-record-card{padding:22px;background:var(--system-panel);border:1px solid var(--system-line);border-radius:28px;box-shadow:var(--system-shadow)}.page-inline-chip{display:inline-flex;align-items:center;min-height:48px;padding:0 1rem;border:1px solid var(--system-line);border-radius:18px;background:var(--system-panel);color:var(--system-text);font-weight:800}.profile-record-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid #eef4fb}.profile-record-header strong{display:block;font-size:18px;font-weight:900}.profile-record-header span{display:block;margin-top:4px;color:var(--system-muted);font-size:12px}.profile-record-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.patient-form-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.patient-form-panel{min-width:0}.section-divider{padding-top:10px;margin-bottom:16px;border-top:1px solid #eef4fb}.section-divider strong{font-size:15px;font-weight:800}.section-divider strong small{margin-left:6px;color:var(--system-muted);font-size:11px;font-weight:700}.reports-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.report-format-list{display:grid;gap:12px}.report-format-card{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:16px 18px;border:1px solid var(--system-line);border-radius:18px;background:var(--system-soft);color:var(--system-text);text-align:left;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.report-format-card:hover{transform:translateY(-1px);border-color:#0ea5e952;box-shadow:0 18px 28px #0f172a0f}.report-format-card.active{border-color:#0ea5e973;background:#0ea5e914}.report-format-card strong{display:block;font-size:15px;font-weight:800}.report-format-card small{display:block;margin-top:4px;color:var(--system-muted)}.donut-legend.compact{display:grid;gap:14px}.patient-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.angular-odontogram-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}.angular-odontogram-card{display:flex;flex-direction:column;gap:1rem}.angular-odontogram-card-head{display:flex;align-items:center;justify-content:space-between;gap:1rem}.angular-odontogram-form{grid-template-columns:repeat(2,minmax(0,1fr))}.legacy-odontogram-shell{overflow:hidden;min-height:80vh;border:1px solid var(--system-line);border-radius:28px;background:var(--system-panel);box-shadow:var(--system-shadow)}.legacy-odontogram-frame{width:100%;min-height:88vh;border:0;background:transparent}.patient-field{display:grid;gap:8px}.patient-field-date{min-width:0}.patient-field.full{grid-column:1 / -1}.patient-field span{color:var(--system-muted);font-size:11px;font-weight:600}.patient-field input,.patient-field textarea,.patient-field select,.modal-grid input,.modal-grid textarea,.modal-grid select{width:100%;min-height:44px;padding:0 14px;color:var(--system-text);background:#fff;border:1px solid var(--system-line);border-radius:8px;font-size:13px;outline:none;appearance:none}.patient-field textarea,.modal-grid textarea{min-height:126px;padding:14px;resize:none}.modal-textarea{min-height:160px}.patient-field-date input[type=date]{min-width:0;width:100%;font-variant-numeric:tabular-nums}.patient-choice-row,.patient-check-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:44px}.patient-choice-pill,.patient-active-pill{display:inline-flex;align-items:center;gap:8px;min-height:42px;padding:0 14px;color:var(--system-muted);background:#fff;border:1px solid var(--system-line);border-radius:999px;font-size:13px;font-weight:700}.patient-choice-pill.active,.patient-active-pill.active{color:var(--system-clinical-700);background:#0ea5e914;border-color:#0ea5e93d}.patient-form-footer{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:22px;padding-top:18px;border-top:1px dashed #dbe4f0}.profile-history-card{margin-top:18px}.odont-mini-header{display:flex;align-items:center;gap:14px;margin-bottom:16px;padding:14px 18px;border:1px solid #e2e8f0;border-radius:18px;background:#ffffffb8}.odont-mini-avatar{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#6366f1);border-radius:8px;font-size:16px;font-weight:700}.odont-mini-copy{display:grid;gap:2px}.odont-mini-copy strong{color:var(--system-text);font-size:15px;font-weight:700}.odont-mini-copy span{color:var(--system-muted);font-size:12px}.profile-summary,.profile-panel,.invoice-panel{padding:22px}.profile-summary{position:sticky;top:24px}.profile-avatar{display:inline-flex;align-items:center;justify-content:center;width:72px;height:72px;margin-bottom:14px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#6366f1);border-radius:20px;font-size:22px;font-weight:900}.profile-summary h1{margin:0;font-size:24px;font-weight:900}.profile-summary p{margin:8px 0 0;color:var(--system-muted);font-size:12px}.profile-balance{margin:18px 0;padding:16px;border-radius:18px;background:#0ea5e914}.profile-balance span,.invoice-total-figure span{display:block;color:var(--system-muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.profile-balance strong{display:block;margin-top:6px;font-size:28px;font-weight:900}.tag-list,.invoice-methods{display:flex;flex-wrap:wrap;gap:8px}.tag-chip{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;color:var(--system-accent-500);background:var(--system-accent-50);border-radius:999px;font-size:10px;font-weight:800}.about-grid{display:grid;gap:10px;margin-top:16px}.panel-stack{display:grid;gap:16px}.page-actions-inline{flex-direction:row;align-items:center;flex-wrap:wrap}.page-actions-inline .inline-select{width:auto;min-width:280px;flex:0 1 420px}.page-actions-inline .system-secondary-button{flex:0 0 auto;white-space:nowrap}.mini-card,.link-card{display:block;padding:16px}.invoice-grid{align-items:start}.invoice-panel{padding:22px}.invoice-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.invoice-topbar h1{margin:0;font-size:24px;font-weight:900}.invoice-meta-grid,.invoice-totals,.payment-list{display:grid;gap:10px}.invoice-total-figure{padding:18px;border-radius:20px;background:#0ea5e917}.invoice-total-figure strong{display:block;margin-top:8px;font-size:26px}.kanban-board{display:grid;grid-template-columns:repeat(6,minmax(260px,1fr));gap:16px;overflow-x:auto}.kanban-column{padding:18px}.kanban-column header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.kanban-column header strong{font-size:13px;font-weight:900}.kanban-column header span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;padding:0 8px;color:var(--system-clinical-600);background:var(--system-clinical-50);border-radius:999px;font-size:10px;font-weight:800}.kanban-stack{display:grid;gap:12px}.kanban-card strong{display:block;margin-top:12px}.kanban-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px}.empty-copy{margin:0}.admin-entry-button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;color:#475569;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.admin-entry-button.active{color:#fff;background:var(--system-clinical-600);border-color:transparent}.admin-hub-group{margin-top:24px}.admin-hub-group:first-child{margin-top:0}.admin-group-title{margin:0 0 14px;color:var(--system-muted);font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.admin-hub-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-domain-card,.admin-side-card,.admin-access-card{background:var(--system-panel);border:1px solid #f1f5f9;border-radius:22px;box-shadow:var(--system-shadow)}.admin-domain-card{display:grid;gap:14px;padding:22px}.admin-domain-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.admin-domain-head strong,.admin-side-card h3,.admin-access-card h2{display:block;margin:0;font-size:16px;font-weight:900}.admin-domain-head span,.admin-side-card p,.admin-domain-card p,.admin-access-card p{color:var(--system-muted);font-size:11px;line-height:1.7}.admin-state-pill,.impact-chip{display:inline-flex;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:10px;font-weight:800}.admin-state-pill.active,.impact-chip.success{color:#0f766e;background:var(--system-secondary-50)}.admin-state-pill.pending,.impact-chip.warning{color:var(--system-accent-500);background:var(--system-accent-50)}.impact-chip.info{color:var(--system-clinical-600);background:var(--system-clinical-50)}.impact-chip.neutral{color:#475569;background:#e2e8f0}.impact-row{display:flex;flex-wrap:wrap;gap:8px}.admin-link-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-link-row a{color:var(--system-clinical-600);font-size:12px;font-weight:800}.admin-page-grid{display:grid;grid-template-columns:1.3fr .9fr;gap:16px;margin-top:24px}.admin-crud-stack,.admin-side-stack{display:grid;gap:16px}.admin-side-card{padding:22px}.admin-side-card ul,.admin-domain-card ul,.admin-access-card ul{display:grid;gap:10px;margin:14px 0 0;padding:0;list-style:none}.admin-side-card li,.admin-domain-card li,.admin-access-card li{color:var(--system-muted);font-size:11px;line-height:1.7}.admin-form-card{padding:22px;background:var(--system-panel);border:1px solid #f1f5f9;border-radius:22px;box-shadow:var(--system-shadow)}.admin-form-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:18px}.admin-form-head strong{display:block;font-size:16px;font-weight:900}.admin-form-head span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.admin-form-grid{display:grid;gap:14px}.admin-form-grid.two-cols{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-field{display:grid;gap:8px}.admin-field label{color:var(--system-muted);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}.admin-field input,.admin-field select,.admin-field textarea{width:100%;min-height:42px;padding:0 14px;color:var(--system-text);background:#fff;border:1px solid var(--system-line);border-radius:8px;outline:none;font-size:12px}.admin-field textarea{min-height:108px;padding:14px;resize:vertical}.admin-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.admin-toggle-list,.admin-crud-list{display:grid;gap:12px}.admin-toggle-item,.admin-crud-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px}.table-toolbar-actions{display:inline-flex;align-items:center;gap:10px}.top-gap{margin-top:18px}.admin-toggle-copy strong,.admin-crud-copy strong{display:block;font-size:13px;font-weight:800}.admin-toggle-copy span,.admin-crud-copy span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.admin-switch{width:46px;height:28px;padding:4px;display:inline-flex;align-items:center;justify-content:flex-start;background:#dbeafe;border-radius:999px}.admin-switch span{width:20px;height:20px;display:block;background:var(--system-clinical-500);border-radius:50%}.admin-crud-actions{display:flex;flex-wrap:wrap;gap:8px}.access-denied-card{max-width:760px;padding:32px;background:var(--system-panel);border:1px solid #f1f5f9;border-radius:24px;box-shadow:var(--system-shadow)}.access-denied-card h2{margin:12px 0 0;font-size:28px;font-weight:900}.access-denied-card p{margin:12px 0 0;color:var(--system-muted);font-size:13px;line-height:1.75}body[data-system-theme=dark] .notification-menu,body[data-system-theme=dark] .modal-card,body[data-system-theme=dark] .calendar-event,body[data-system-theme=dark] .calendar-column,body[data-system-theme=dark] .month-cell,body[data-system-theme=dark] .day-row,body[data-system-theme=dark] .kanban-card,body[data-system-theme=dark] .mini-bar-track,body[data-system-theme=dark] .action-chip,body[data-system-theme=dark] .section-tab,body[data-system-theme=dark] .view-switch button,body[data-system-theme=dark] .filter-select,body[data-system-theme=dark] .inline-select,body[data-system-theme=dark] .table-toolbar input,body[data-system-theme=dark] .pagination-size select,body[data-system-theme=dark] .modal-grid input,body[data-system-theme=dark] .modal-grid select,body[data-system-theme=dark] .modal-grid textarea,body[data-system-theme=dark] .patient-field input,body[data-system-theme=dark] .patient-field select,body[data-system-theme=dark] .patient-field textarea,body[data-system-theme=dark] .calendar-form input,body[data-system-theme=dark] .calendar-form textarea,body[data-system-theme=dark] .pager-button,body[data-system-theme=dark] .icon-button{color:#e2e8f0;background:#172234;border-color:#243244}body[data-system-theme=dark] .data-table,body[data-system-theme=dark] .data-table tbody tr,body[data-system-theme=dark] .data-table td,body[data-system-theme=dark] .data-table th,body[data-system-theme=dark] .table-person strong,body[data-system-theme=dark] .invoice-totals strong,body[data-system-theme=dark] .detail-list strong,body[data-system-theme=dark] .about-grid strong,body[data-system-theme=dark] .kanban-column header strong,body[data-system-theme=dark] .calendar-column header strong,body[data-system-theme=dark] .day-row strong,body[data-system-theme=dark] .day-row h4,body[data-system-theme=dark] .invoice-total-figure strong,body[data-system-theme=dark] .modal-card,body[data-system-theme=dark] .system-table-card strong{color:#e2e8f0}body[data-system-theme=dark] .data-table thead th,body[data-system-theme=dark] .data-table tbody small,body[data-system-theme=dark] .table-person small,body[data-system-theme=dark] .invoice-topbar p,body[data-system-theme=dark] .invoice-panel p,body[data-system-theme=dark] .kanban-column header span,body[data-system-theme=dark] .calendar-event p,body[data-system-theme=dark] .month-cell strong,body[data-system-theme=dark] .page-actions,body[data-system-theme=dark] .table-toolbar span,body[data-system-theme=dark] .pagination-meta,body[data-system-theme=dark] .pagination-size{color:#94a3b8}body[data-system-theme=dark] .data-table tbody tr:hover{background:#1722348c}body[data-system-theme=dark] .status-badge.success{color:#67e8f9;background:#22d3ee29}body[data-system-theme=dark] .status-badge.warning{color:#c7d2fe;background:#6366f12e}body[data-system-theme=dark] .status-badge.info{color:#7dd3fc;background:#0ea5e92e}body[data-system-theme=dark] .status-badge.danger{color:#fda4af;background:#f43f5e29}body[data-system-theme=dark] .status-badge.neutral{color:#cbd5e1;background:#94a3b82e}body[data-system-theme=dark] .profile-record-card,body[data-system-theme=dark] .profile-record-header,body[data-system-theme=dark] .section-divider{border-color:#243244}body[data-system-theme=dark] .patient-choice-pill,body[data-system-theme=dark] .patient-active-pill{color:#cbd5e1;background:#172234;border-color:#243244}body[data-system-theme=dark] .patient-choice-pill.active,body[data-system-theme=dark] .patient-active-pill.active{color:#7dd3fc;background:#0ea5e929;border-color:#22d3ee3d}body[data-system-theme=dark] .patient-form-footer{border-top-color:#243244}body[data-system-theme=dark] .text-button{color:#38bdf8}body[data-system-theme=dark] .notification-item,body[data-system-theme=dark] .data-table th,body[data-system-theme=dark] .data-table td,body[data-system-theme=dark] .notification-menu-head,body[data-system-theme=dark] .line-summary-bar,body[data-system-theme=dark] .mini-bar-track,body[data-system-theme=dark] .notification-copy,body[data-system-theme=dark] .modal-head{border-color:#243244}body[data-system-theme=dark] .notification-item.unread,body[data-system-theme=dark] .profile-balance,body[data-system-theme=dark] .invoice-total-figure{background:#0ea5e91f}body[data-system-theme=dark] .nav-badge{color:#c7d2fe;background:#6366f138;border-color:#6366f166}body[data-system-theme=dark] .page-hero p,body[data-system-theme=dark] .chart-card-head p,body[data-system-theme=dark] .notification-copy p,body[data-system-theme=dark] .notification-copy span,body[data-system-theme=dark] .table-toolbar span,body[data-system-theme=dark] .data-table tbody small,body[data-system-theme=dark] .mini-card p,body[data-system-theme=dark] .kanban-card p,body[data-system-theme=dark] .about-grid span,body[data-system-theme=dark] .detail-list span,body[data-system-theme=dark] .modal-grid span,body[data-system-theme=dark] .calendar-form span,body[data-system-theme=dark] .line-summary-row span,body[data-system-theme=dark] .donut-hole span,body[data-system-theme=dark] .empty-copy,body[data-system-theme=dark] .invoice-meta span{color:#94a3b8}body[data-system-theme=dark] .notification-copy strong,body[data-system-theme=dark] .page-hero h1,body[data-system-theme=dark] .modal-head h3,body[data-system-theme=dark] .invoice-topbar h1,body[data-system-theme=dark] .profile-summary h1,body[data-system-theme=dark] .admin-domain-head strong,body[data-system-theme=dark] .admin-side-card h3,body[data-system-theme=dark] .admin-access-card h2,body[data-system-theme=dark] .access-denied-card h2{color:#f8fafc}body[data-system-theme=dark] .admin-entry-button,body[data-system-theme=dark] .admin-domain-card,body[data-system-theme=dark] .admin-side-card,body[data-system-theme=dark] .admin-form-card,body[data-system-theme=dark] .admin-access-card,body[data-system-theme=dark] .access-denied-card{color:#e2e8f0;background:#172234;border-color:#243244}body[data-system-theme=dark] .admin-entry-button.active{color:#fff;background:var(--system-clinical-500)}body[data-system-theme=dark] .admin-domain-head span,body[data-system-theme=dark] .admin-side-card p,body[data-system-theme=dark] .admin-side-card li,body[data-system-theme=dark] .admin-domain-card p,body[data-system-theme=dark] .admin-domain-card li,body[data-system-theme=dark] .admin-form-head span,body[data-system-theme=dark] .admin-toggle-copy span,body[data-system-theme=dark] .admin-crud-copy span,body[data-system-theme=dark] .admin-field label,body[data-system-theme=dark] .access-denied-card p,body[data-system-theme=dark] .admin-group-title{color:#94a3b8}body[data-system-theme=dark] .admin-field input,body[data-system-theme=dark] .admin-field select,body[data-system-theme=dark] .admin-field textarea,body[data-system-theme=dark] .admin-toggle-item,body[data-system-theme=dark] .admin-crud-item{color:#e2e8f0;background:#172234;border-color:#243244}body[data-system-theme=dark] .admin-toggle-copy strong,body[data-system-theme=dark] .admin-crud-copy strong,body[data-system-theme=dark] .admin-form-head strong{color:#f8fafc}body[data-system-theme=dark] .admin-switch{background:#0ea5e92e}body[data-system-theme=dark] .admin-link-row a{color:#38bdf8}body[data-system-theme=dark] .impact-chip.neutral{color:#cbd5e1;background:#94a3b82e}body[data-system-theme=dark] .impact-chip.info{color:#7dd3fc;background:#0ea5e92e}body[data-system-theme=dark] .impact-chip.success,body[data-system-theme=dark] .admin-state-pill.active{color:#67e8f9;background:#22d3ee29}body[data-system-theme=dark] .impact-chip.warning,body[data-system-theme=dark] .admin-state-pill.pending{color:#c7d2fe;background:#6366f12e}body[data-system-theme=dark] .section-tab.active,body[data-system-theme=dark] .view-switch button.active,body[data-system-theme=dark] .pager-button.active,body[data-system-theme=dark] .action-chip.primary,body[data-system-theme=dark] .action-chip.indigo{color:#fff}body[data-page=system] button,body[data-page=system] input,body[data-page=system] select,body[data-page=system] textarea{appearance:none;-webkit-appearance:none}body[data-page=system] button{outline:none}.system-primary-button,.system-secondary-button,.system-indigo-button{border:1px solid transparent;outline:none}.system-primary-button{border-color:var(--system-clinical-500)}.system-indigo-button{border-color:var(--system-accent-500)}.notification-button{border:1px solid #e2e8f0}.action-chip,.section-tab,.view-switch button,.filter-select,.inline-select{outline:none}body[data-system-theme=dark] .notification-button{border-color:#243244}.planner-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px}.planner-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.55fr);gap:16px}.planner-main-card,.planner-side-card{background:var(--system-panel);border:1px solid #f1f5f9;border-radius:22px;box-shadow:var(--system-shadow)}.planner-main-card{padding:22px}.planner-sidebar{display:grid;gap:16px}.planner-side-card{padding:22px}.planner-sidebar:empty{display:none}.planner-board-head,.planner-side-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.planner-board-head strong,.planner-side-head strong{display:block;font-size:14px;font-weight:800}.planner-board-head span,.planner-side-head span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.planner-legend{display:flex;flex-wrap:wrap;gap:10px}.planner-legend span{display:inline-flex;align-items:center;gap:8px;color:var(--system-muted);font-size:10px;font-weight:700}.planner-legend i{display:inline-flex;width:10px;height:10px;border-radius:50%}.planner-week{display:grid;gap:12px}.planner-week-head,.planner-week-row{display:grid;grid-template-columns:180px repeat(5,minmax(0,1fr));gap:12px}.planner-corner,.planner-day-head,.planner-doctor-lane,.planner-day-cell{border:1px solid #f1f5f9;border-radius:18px;background:#f8fafcd1}.planner-corner,.planner-day-head,.planner-doctor-lane{padding:14px 16px}.planner-corner{color:var(--system-muted);font-size:11px;font-weight:800}.planner-day-head strong,.planner-doctor-lane strong{display:block;font-size:13px;font-weight:800}.planner-day-head span,.planner-doctor-lane span{display:block;margin-top:4px;color:var(--system-muted);font-size:10px}.planner-day-cell{min-height:148px;padding:10px}.planner-block{margin-top:8px;padding:12px;border-left:4px solid var(--planner-accent, var(--system-clinical-500));border-radius:8px;background:#fff}.planner-block:first-child{margin-top:0}.planner-block strong{display:block;font-size:12px;font-weight:600}.planner-block p{margin:6px 0 0;color:var(--system-muted);font-size:10px}.planner-empty-slot{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:48px;border:1px dashed var(--system-line);border-radius:8px;color:var(--system-muted);font-size:10px;font-weight:700}.planner-side-copy p{margin:0;color:var(--system-muted);font-size:12px;line-height:1.7}.planner-month-grid .month-cell{min-height:128px}.planner-month-grid .month-cell em{display:block;margin-top:6px;color:var(--system-muted);font-size:10px;font-style:normal}.planner-day-list .day-row{background:#f8fafcd1}body[data-system-theme=dark] .planner-main-card,body[data-system-theme=dark] .planner-side-card,body[data-system-theme=dark] .planner-corner,body[data-system-theme=dark] .planner-day-head,body[data-system-theme=dark] .planner-doctor-lane,body[data-system-theme=dark] .planner-day-cell,body[data-system-theme=dark] .planner-day-list .day-row{background:#111827;border-color:#243244}body[data-system-theme=dark] .planner-block{background:#172234}body[data-system-theme=dark] .planner-empty-slot{border-color:#243244;color:#64748b}body[data-system-theme=dark] .planner-board-head span,body[data-system-theme=dark] .planner-side-head span,body[data-system-theme=dark] .planner-legend span,body[data-system-theme=dark] .planner-day-head span,body[data-system-theme=dark] .planner-doctor-lane span,body[data-system-theme=dark] .planner-block p,body[data-system-theme=dark] .planner-side-copy p,body[data-system-theme=dark] .planner-month-grid .month-cell em{color:#94a3b8}body[data-system-theme=dark] .planner-day-head strong,body[data-system-theme=dark] .planner-doctor-lane strong,body[data-system-theme=dark] .planner-block strong,body[data-system-theme=dark] .planner-focus-time,body[data-system-theme=dark] .planner-focus-item strong{color:#e2e8f0}body[data-system-theme=dark] .icon-action-button,body[data-system-theme=dark] .toolbar-icon-button{color:#67e8f9;background:#0ea5e91f;border-color:#22d3ee33}body[data-system-theme=dark] .icon-action-button:hover,body[data-system-theme=dark] .toolbar-icon-button:hover{color:#a5f3fc;background:#0ea5e92e;border-color:#22d3ee4d}.site-chat{position:fixed;right:20px;bottom:20px;z-index:40}.site-chat.is-idle .site-chat-button,.assistant-chat.is-idle .assistant-chat-toggle{animation:chatFloat 3.8s ease-in-out infinite}.site-chat-button{display:inline-flex;align-items:center;gap:10px;padding:14px 18px;color:#fff;background:linear-gradient(135deg,#16a34a,#22c55e);border-radius:999px;box-shadow:0 24px 50px #16a34a47;font-size:13px;font-weight:800;border:0;outline:none;appearance:none;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.site-chat-button:hover{transform:translateY(-2px);box-shadow:0 28px 56px #16a34a38;filter:brightness(1.02)}.site-chat-panel{position:absolute;right:0;bottom:72px;width:min(360px,calc(100vw - 32px));padding:18px;border:1px solid #e2e8f0;border-radius:24px;background:#fffffffa;box-shadow:0 24px 64px #0f172a29;animation:chatEnter .22s ease}.site-chat-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.site-chat-header strong{display:block;color:var(--system-text);font-size:15px;font-weight:800}.site-chat-header span,.site-chat-body p,.site-chat-field span{color:var(--system-muted);font-size:11px}.site-chat-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:#475569;background:#f8fafc;border-radius:12px;border:0;outline:none;appearance:none;transition:transform .16s ease,background .16s ease}.site-chat-close:hover,.assistant-chat-close:hover{transform:scale(1.04)}.site-chat-body{margin-top:16px}.site-chat-body p{margin:0 0 14px;line-height:1.7}.site-chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.site-chat-quick button{padding:8px 10px;color:var(--system-clinical-600);background:#0ea5e914;border:1px solid rgba(14,165,233,.18);border-radius:999px;font-size:11px;font-weight:700;outline:none;appearance:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.site-chat-quick button:hover,.assistant-chat-quick button:hover{transform:translateY(-1px);background:#0ea5e924}.site-chat-field{display:grid;gap:8px}.site-chat-field textarea{width:100%;min-height:108px;padding:12px 14px;color:var(--system-text);background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;resize:vertical;outline:none}.site-chat-field textarea::placeholder{color:#0f172a94}.site-chat-send{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;padding:13px 16px;color:#fff;background:linear-gradient(135deg,#16a34a,#22c55e);border-radius:16px;font-size:13px;font-weight:800;border:0;outline:none;appearance:none;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.site-chat-send:hover{transform:translateY(-1px);box-shadow:0 18px 36px #16a34a38;filter:brightness(1.02)}.assistant-chat{position:fixed;right:20px;bottom:20px;z-index:60;display:grid;justify-items:end;gap:10px}.assistant-chat-teaser{display:inline-grid;gap:2px;max-width:220px;padding:12px 14px;color:var(--system-text);background:#fffffffa;border:1px solid rgba(219,228,240,.92);border-radius:18px 18px 18px 6px;box-shadow:0 16px 36px #0f172a1f;text-align:left;outline:none;appearance:none;transition:transform .18s ease,box-shadow .18s ease}.assistant-chat-teaser strong{font-size:13px;font-weight:800}.assistant-chat-teaser span{color:var(--system-muted);font-size:11px;font-weight:600}.assistant-chat-teaser:hover{transform:translateY(-2px);box-shadow:0 18px 40px #0f172a24}.assistant-chat-toggle{display:inline-flex;align-items:center;gap:10px;padding:14px 18px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#6366f1);border-radius:999px;box-shadow:0 24px 56px #6366f142;font-size:13px;font-weight:800;border:0;outline:none;appearance:none;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.assistant-chat-toggle:hover{transform:translateY(-2px);box-shadow:0 28px 58px #6366f138;filter:brightness(1.03)}.assistant-chat-panel{position:absolute;right:0;bottom:72px;width:min(390px,calc(100vw - 32px));padding:18px;border:1px solid #e2e8f0;border-radius:24px;background:#fffffffa;box-shadow:0 24px 70px #0f172a29;animation:chatEnter .22s ease}.assistant-chat-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.assistant-chat-head strong{display:block;color:var(--system-text);font-size:15px;font-weight:800}.assistant-chat-head span{display:block;margin-top:4px;color:var(--system-muted);font-size:11px}.assistant-chat-close{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;color:#475569;background:#f8fafc;border-radius:12px;border:0;outline:none;appearance:none;transition:transform .16s ease,background .16s ease}.assistant-chat-log{display:grid;gap:10px;max-height:320px;margin:16px 0;overflow-y:auto}.assistant-chat-bubble{max-width:86%;padding:12px 14px;border-radius:18px;font-size:12px;line-height:1.65}.assistant-chat-bubble.bot{color:var(--system-text);background:#f8fafc;border:1px solid #e2e8f0}.assistant-chat-bubble.user{margin-left:auto;color:#fff;background:linear-gradient(135deg,#0ea5e9,#6366f1)}.assistant-chat-quick{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.assistant-chat-quick button{padding:8px 10px;color:var(--system-clinical-600);background:#0ea5e914;border:1px solid rgba(14,165,233,.18);border-radius:999px;font-size:11px;font-weight:700;outline:none;appearance:none;transition:transform .16s ease,background .16s ease,border-color .16s ease}.assistant-chat-form{display:grid;grid-template-columns:1fr auto;gap:10px}.assistant-chat-form textarea{min-height:54px;padding:12px 14px;color:var(--system-text);background:#f8fafc;border:1px solid #dbe4f0;border-radius:16px;resize:none;outline:none}.assistant-chat-send{display:inline-flex;align-items:center;justify-content:center;min-width:54px;padding:0 16px;color:#fff;background:linear-gradient(135deg,#0ea5e9,#6366f1);border-radius:16px;font-size:13px;font-weight:800;border:0;outline:none;appearance:none;transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}.assistant-chat-send:hover{transform:translateY(-1px);box-shadow:0 18px 36px #6366f133;filter:brightness(1.03)}.assistant-chat-footer{margin-top:12px;display:flex;justify-content:flex-end}.assistant-chat-link{color:var(--system-clinical-600);font-size:12px;font-weight:800}body[data-system-theme=dark] .site-chat-panel,body[data-system-theme=dark] .assistant-chat-panel{background:#0f172afa;border-color:#243244}body[data-system-theme=dark] .site-chat-header strong,body[data-system-theme=dark] .assistant-chat-head strong{color:#f8fafc}body[data-system-theme=dark] .assistant-chat-teaser{color:#f8fafc;background:#0f172af5;border-color:#243244}body[data-system-theme=dark] .assistant-chat-teaser span,body[data-system-theme=dark] .site-chat-header span,body[data-system-theme=dark] .site-chat-body p,body[data-system-theme=dark] .site-chat-field span,body[data-system-theme=dark] .assistant-chat-head span{color:#94a3b8}body[data-system-theme=dark] .site-chat-close,body[data-system-theme=dark] .assistant-chat-close{color:#cbd5e1;background:#172234}body[data-system-theme=dark] .site-chat-field textarea,body[data-system-theme=dark] .assistant-chat-form textarea,body[data-system-theme=dark] .assistant-chat-bubble.bot{color:#f8fafc;background:#172234;border-color:#243244}body[data-system-theme=dark] .site-chat-quick button{color:#eff6ff;background:#0ea5e929;border-color:#22d3ee47}body[data-system-theme=dark] .site-chat-field textarea::placeholder,body[data-system-theme=dark] .assistant-chat-form textarea::placeholder{color:#f8fafca3}body[data-system-theme=dark] .assistant-chat-bubble.user{box-shadow:0 0 0 1px #6366f133,0 12px 28px #0ea5e929}body[data-system-theme=dark] .assistant-chat-link{color:#67e8f9}.assistant-page-shell{max-width:980px}.assistant-page-card{padding:26px}.assistant-page-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.assistant-page-head h3{margin:0;font-size:20px;font-weight:900}.assistant-page-head p{margin:6px 0 0;color:var(--system-muted);font-size:13px}.assistant-page-actions{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}@keyframes chatFloat{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes chatEnter{0%{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@media(max-width:1200px){.chart-grid,.calendar-layout,.planner-layout,.invoice-grid,.profile-grid,.summary-stat-grid,.planner-summary-grid,.admin-hub-grid,.admin-page-grid,.donut-wrap{grid-template-columns:1fr}}@media(max-width:1024px){.page-hero{flex-direction:column;align-items:stretch}.notification-menu{right:auto;left:0}.odont-bottom-grid,.odont-tools-row{grid-template-columns:1fr}}@media(max-width:768px){.chart-grid,.calendar-layout,.planner-layout,.invoice-grid,.profile-grid,.summary-stat-grid,.planner-summary-grid,.admin-hub-grid,.admin-page-grid{grid-template-columns:1fr}.mini-bars{grid-template-columns:repeat(3,minmax(0,1fr))}.modal-grid,.calendar-board.week,.calendar-month-grid,.planner-week-head,.planner-week-row,.admin-form-grid.two-cols,.patient-form-layout,.patient-form-grid{grid-template-columns:1fr}.table-filters{width:100%;flex-wrap:wrap;justify-content:stretch}.table-toolbar input,.table-filters .filter-select{width:100%;min-width:0;flex:1 1 100%}.pagination-bar,.pagination-actions{flex-direction:column;align-items:flex-start}.day-row{grid-template-columns:1fr}.notification-menu{width:min(100vw - 24px,360px)}}html,body{min-height:100%}body{margin:0}.auth-eye-button{border:0;background:transparent;color:#94a3b8;cursor:pointer;font-size:16px;padding:0}.auth-eye-button:hover{color:#0f172a}body[data-system-theme=dark] .auth-eye-button:hover{color:#e2e8f0}body[data-system-theme=dark]{--system-dark-gray: #e2e8f0}@keyframes fadeInUp{0%{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}.animate-fade-in-up{animation:fadeInUp .4s cubic-bezier(.16,1,.3,1) both}.system-primary-button,.system-secondary-button,.system-indigo-button,.action-chip,.section-tab,.view-switch button,.logout-button,.icon-action-button,.toolbar-icon-button{transition:all .25s cubic-bezier(.4,0,.2,1)!important;cursor:pointer}.system-primary-button:hover:not(:disabled){background:var(--system-clinical-600)!important;transform:translateY(-2px);box-shadow:0 4px 14px #0ea5e940}.system-primary-button:active:not(:disabled){transform:translateY(0)}.system-secondary-button:hover:not(:disabled){background:var(--system-bg)!important;border-color:var(--system-muted)!important;transform:translateY(-2px);box-shadow:0 4px 12px #0f172a0d}.system-secondary-button:active:not(:disabled){transform:translateY(0)}.system-indigo-button:hover:not(:disabled){background:#4f46e5!important;transform:translateY(-2px);box-shadow:0 4px 14px #6366f140}.system-indigo-button:active:not(:disabled){transform:translateY(0)}.action-chip:hover:not(.primary):not(.indigo):not(:disabled){background:var(--system-bg)!important;border-color:var(--system-muted)!important;transform:translateY(-1px)}.action-chip.primary:hover:not(:disabled){background:var(--system-clinical-600)!important;transform:translateY(-1px);box-shadow:0 4px 10px #0ea5e926}.action-chip.indigo:hover:not(:disabled){background:#4f46e5!important;transform:translateY(-1px);box-shadow:0 4px 10px #6366f126}.section-tab:hover:not(.active){background:var(--system-bg)!important;border-color:var(--system-muted)!important}.notification-item{transition:all .2s cubic-bezier(.4,0,.2,1)!important}.notification-item:hover{background:#0ea5e908!important;transform:translate(4px)}.modal-grid input[type=checkbox],.patient-field input[type=checkbox]{width:18px!important;height:18px!important;min-height:auto!important;appearance:checkbox!important;-webkit-appearance:checkbox!important;margin:0!important;padding:0!important;border:none!important;background:transparent!important}
