@layer clinic-visibility,clinic-standard,clinic-layout,endo-theme;
@import url("/clinic-layout.css?v=574") layer(clinic-layout);
@import url("/dental-shell.css?v=574") layer(clinic-layout);
@import url("/dashboard-standard.css?v=582") layer(clinic-standard);
@import url("/page-standard.css?v=582") layer(clinic-standard);
/* Transitional theme contract. Important declarations live in one named layer
   so legacy unlayered page overrides cannot mix light surfaces with dark text.
   Layout and role-based visibility remain owned by the page. */
@layer clinic-visibility {[hidden]{display:none!important}}
@layer endo-theme {
  *,*::before,*::after {box-sizing:border-box!important;}
  :root {
    --endo-bg:#dfe6ec;--endo-surface:#f1f5f8;--endo-surface-alt:#e5edf3;
    --endo-text:#132f43;--endo-muted:#3d566b;--endo-line:#b9c8d4;
    --endo-primary:#0a7890;--endo-primary-hover:#005573;--endo-header:#edf2f6;
    --endo-positive:#166534;--endo-positive-bg:#dcfce7;
    --endo-danger:#b91c1c;--endo-danger-bg:#fee2e2;--endo-focus:#0e7490;
    /* Application design contract: Clinic, Laboratory and Assistant share these values. */
    --dental-font:'Segoe UI',Arial,sans-serif;--dental-text-size:16px;
    --dental-title-size:24px;--dental-section-size:20px;--dental-label-size:15px;
    --dental-table-size:14px;--dental-control-size:15px;--dental-control-height:44px;
    --dental-card-radius:14px;--dental-control-radius:9px;
    --dental-space:20px;--dental-header-min-height:96px;
    --dental-nav-bg:#103546;--dental-nav-text:#d8e7ef;--dental-nav-muted:#b1cbd9;
    --dental-nav-hover:#1b5368;--dental-nav-active:#0c637c;--dental-nav-line:#2b4d60;
    color-scheme:light!important;
  }
  /* Current dark mode uses real dark surfaces; Vintage overrides below remain independent. */
  :root.ed-dark {--endo-bg:#101c29;--endo-surface:#1c3047;--endo-surface-alt:#263e55;--endo-text:#e6f1ff;--endo-muted:#b8ccdf;--endo-line:#5b7891;--endo-primary:#087f99;--endo-primary-hover:#06677d;--endo-header:#182b3e;--endo-positive:#94e8be;--endo-positive-bg:#143d2f;--endo-danger:#ffb4bc;--endo-danger-bg:#492633;--endo-focus:#72d7ea;color-scheme:dark!important;}

  html,body {background:var(--endo-bg)!important;color:var(--endo-text)!important;}
  body {font-family:Segoe UI,Arial,sans-serif!important;}
  main,.container,.page,.wrap {color:var(--endo-text)!important;min-width:0!important;}
  .card,.panel,dialog,.section,.health-section,.content-card,.modal-card,.dialog,.login-box,
  .business-profile-card,.setup-profile-card,.lab-card,.chat-sidebar,.chat-main,.followup-dialog,.followup-item,.followup-readonly,
  .sidebar,.chat-panel,.chat-header,.messages,.composer,.conversation-item,.welcome,.calendar-scroll,.calendar-grid,.day-cell,.day-header {
    background:var(--endo-surface)!important;color:var(--endo-text)!important;
    border-color:var(--endo-line)!important;
  }
  h1,h2,h3,h4,h5,label,strong,.card-title,.card-value,.section-title {color:var(--endo-text)!important;}
  p,small,.muted,.hint,.help,.empty,.card-footer {color:var(--endo-muted)!important;}
  .empty,.empty-state {background:var(--endo-surface-alt)!important;color:var(--endo-muted)!important;}
  header,.header,.topbar,.app-header {background:var(--endo-header)!important;color:var(--endo-text)!important;}
  header h1,header h2,header p,header strong,.header h1,.topbar h1,.topbar strong {color:var(--endo-text)!important;}
  .patient-clinical-header h2 {color:var(--endo-text)!important;}
  .main-navigation {background:var(--endo-header)!important;border-color:var(--endo-line)!important;}
  .main-navigation a,.main-navigation .nav-button {color:var(--endo-text)!important;}
  .main-navigation .active,.main-navigation [aria-current=page] {background:#d9f3ef!important;color:#075d67!important;}
  input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea {
    background:var(--endo-surface-alt)!important;color:var(--endo-text)!important;
    border-color:var(--endo-line)!important;max-width:100%!important;box-sizing:border-box!important;
  }
  input::placeholder,textarea::placeholder {color:var(--endo-muted)!important;opacity:1!important;}
  :focus-visible {outline:2px solid var(--endo-focus)!important;outline-offset:2px!important;}
  button,.btn-primary,.primary-button {background:var(--endo-primary)!important;color:#fff!important;border-color:var(--endo-primary)!important;}
  button:hover,.btn-primary:hover {background:var(--endo-primary-hover)!important;}
  button.secondary,.btn-secondary,.secondary-button {background:var(--endo-surface-alt)!important;color:var(--endo-text)!important;border-color:var(--endo-line)!important;}
  button.danger,.btn-danger,.button-danger,.danger-button {background:#b91c1c!important;color:#fff!important;}
  button:disabled {opacity:.6!important;cursor:default!important;}
  .message.success,.success-message,.status.success {background:var(--endo-positive-bg)!important;color:var(--endo-positive)!important;}
  .message.error,.error-message,.status.error {background:var(--endo-danger-bg)!important;color:var(--endo-danger)!important;}
  table,td {background:var(--endo-surface)!important;color:var(--endo-text)!important;border-color:var(--endo-line)!important;}
  th,thead {background:var(--endo-surface-alt)!important;color:var(--endo-text)!important;border-color:var(--endo-line)!important;}
  .table-wrap,.table-wrapper,.table-container {max-width:100%!important;overflow-x:auto!important;min-width:0!important;}
  [hidden] {display:none!important;}
  button strong,.badge strong,.pill strong,.nav-button strong {color:inherit!important;}
  #endoChatLauncher {bottom:72px!important;}
  #endoChatPanel {bottom:132px!important;}
  .ed-preferences-header {display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:12px!important;}
  .ed-preferences {display:flex!important;align-items:center!important;gap:8px!important;margin-left:auto!important;flex-shrink:0!important;}
  .dashboard-header-actions-v4,.endo-login-topbar,.login-toolbar {display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important;gap:8px!important;height:auto!important;}
  .ed-visually-hidden {position:absolute!important;width:1px!important;height:1px!important;padding:0!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;}
  .ed-theme-button {position:static!important;inset:auto!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;max-width:34px!important;height:34px!important;min-height:34px!important;padding:7px!important;border-radius:8px!important;margin:0!important;flex:0 0 34px!important;box-shadow:none!important;}
  .ed-theme-button svg {display:block!important;width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
  .ed-language-bar {position:static!important;inset:auto!important;display:inline-flex!important;align-items:center!important;gap:0!important;width:auto!important;max-width:80px!important;min-width:0!important;height:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;box-shadow:none!important;flex:0 0 auto!important;}
  .ed-language-bar select {width:68px!important;min-width:68px!important;max-width:68px!important;height:34px!important;min-height:34px!important;font:600 12px Segoe UI,Arial,sans-serif!important;padding:5px 7px!important;border:1px solid var(--endo-line)!important;border-radius:8px!important;}
  @media(max-width:800px) {
    .grid,.two-column,.two-columns,.form-grid,.task-final-layout {grid-template-columns:minmax(0,1fr)!important;}
    .task-final-nav {max-width:100%!important;min-width:0!important;box-sizing:border-box!important;}
    .task-final-content {min-width:0!important;max-width:100%!important;}
    main#mainContent,.container,#mainContent {min-width:0!important;max-width:100%!important;box-sizing:border-box!important;}
    main#mainContent .grid {grid-template-columns:minmax(0,1fr)!important;}
    header,.header,.topbar {height:auto!important;min-height:64px!important;flex-wrap:wrap!important;gap:10px!important;}
    .chat-launcher,.chat-toggle,#chatWidgetToggle {bottom:62px!important;}
  }
}

/* Premium Vintage reference: illyrian-network/vintage-v1, index.css blob
   8ae5d020cba56832fedfd091258b3cc76fcb2602. No remote font requests. */
@layer endo-theme {
 :root[data-smartdent-theme="vintage"] {
  --endo-bg:hsl(42 32% 95%);--endo-surface:hsl(41 32% 97%);--endo-surface-alt:hsl(40 21% 89%);
  --endo-text:hsl(156 24% 14%);--endo-muted:hsl(154 10% 32%);--endo-line:hsl(37 19% 58%);
  --endo-primary:hsl(156 28% 16%);--endo-primary-hover:hsl(156 28% 23%);--endo-header:hsl(40 21% 89%);
  --endo-focus:hsl(156 28% 16%);--dental-nav-bg:hsl(156 28% 16%);--dental-nav-text:hsl(42 32% 95%);
  --dental-nav-hover:hsl(155 23% 23%);--dental-nav-active:hsl(155 23% 23%);
 }
 :root.ed-dark[data-smartdent-theme="vintage"] {
  --endo-bg:hsl(155 27% 10%);--endo-surface:hsl(155 24% 14%);--endo-surface-alt:hsl(155 19% 18%);
  --endo-text:hsl(42 29% 93%);--endo-muted:hsl(43 14% 74%);--endo-line:hsl(155 14% 42%);
  --endo-primary:hsl(42 34% 62%);--endo-primary-hover:hsl(42 34% 72%);--endo-header:hsl(155 24% 14%);
  --endo-focus:hsl(42 34% 62%);color-scheme:dark!important;
 }
 :root[data-smartdent-theme="vintage"] h1,:root[data-smartdent-theme="vintage"] h2,:root[data-smartdent-theme="vintage"] h3 {font-family:Georgia,serif!important;letter-spacing:-.02em;}
 :root.ed-dark[data-smartdent-theme="vintage"] button {color:hsl(155 27% 10%)!important;}
 :root.ed-dark[data-smartdent-theme="vintage"] button.secondary,:root.ed-dark[data-smartdent-theme="vintage"] button.danger {color:var(--endo-text)!important;}
 :root[data-smartdent-theme="vintage"] .lp-eyebrow {color:var(--endo-muted)!important;}
 #ed-design-select {min-height:44px;max-width:140px;}
}

@layer clinic-standard {
 :root.ed-dark[data-smartdent-theme="vintage"] body #accessSummary a.btn {color:hsl(155 27% 10%)!important;}
}
