/* MasterMD v19 — Theme System & UI Refinement
   Font policy: keep Apple/system UI stack; no decorative font changes. */
:root{
  color-scheme: dark;
  --mmd-font:-apple-system,BlinkMacSystemFont,"SF Pro Text","SF Pro Display","Segoe UI",Roboto,Inter,Arial,sans-serif;
  --mmd-bg:#07111f; --mmd-bg-2:#0b1728; --mmd-surface:rgba(15,27,45,.86); --mmd-surface-2:rgba(8,17,31,.78);
  --mmd-text:#f6f8fc; --mmd-muted:#a9b8d0; --mmd-line:rgba(151,180,220,.18);
  --mmd-blue:#246fe0; --mmd-cyan:#36bfff; --mmd-green:#20c997; --mmd-amber:#f6c85f; --mmd-red:#ef5b6d;
  --mmd-radius:18px; --mmd-radius-lg:26px; --mmd-shadow:0 24px 72px rgba(0,0,0,.22);
  --mmd-liquid-a:rgba(54,191,255,.18); --mmd-liquid-b:rgba(36,111,224,.22); --mmd-liquid-c:rgba(32,201,151,.10);
}
html[data-mmd-theme="light"]{color-scheme:light;--mmd-bg:#f4f7fb;--mmd-bg-2:#ffffff;--mmd-surface:rgba(255,255,255,.92);--mmd-surface-2:rgba(246,249,253,.88);--mmd-text:#152033;--mmd-muted:#5f6f86;--mmd-line:rgba(31,53,84,.13);--mmd-blue:#1769d7;--mmd-cyan:#0ea5e9;--mmd-green:#059669;--mmd-amber:#b7791f;--mmd-red:#dc2626;--mmd-shadow:0 20px 64px rgba(20,39,69,.12);--mmd-liquid-a:rgba(14,165,233,.13);--mmd-liquid-b:rgba(23,105,215,.11);--mmd-liquid-c:rgba(5,150,105,.07)}
html[data-mmd-theme="mono"]{color-scheme:light;--mmd-bg:#f7f8fa;--mmd-bg-2:#ffffff;--mmd-surface:rgba(255,255,255,.94);--mmd-surface-2:rgba(247,248,250,.92);--mmd-text:#1f2937;--mmd-muted:#667085;--mmd-line:rgba(16,24,40,.12);--mmd-blue:#475467;--mmd-cyan:#667085;--mmd-green:#344054;--mmd-amber:#667085;--mmd-red:#475467;--mmd-shadow:0 18px 50px rgba(16,24,40,.10);--mmd-liquid-a:rgba(102,112,133,.08);--mmd-liquid-b:rgba(71,84,103,.07);--mmd-liquid-c:rgba(52,64,84,.05)}
*{font-family:var(--mmd-font)}
html{background:var(--mmd-bg);scroll-behavior:smooth} body{font-family:var(--mmd-font);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
body,body.admin-body{background:radial-gradient(circle at 16% -10%,var(--mmd-liquid-a),transparent 30%),radial-gradient(circle at 86% 4%,var(--mmd-liquid-b),transparent 34%),linear-gradient(135deg,var(--mmd-bg),var(--mmd-bg-2));color:var(--mmd-text)}
body.mastermd-liquid-body,.mastermd-liquid-scope{background:radial-gradient(circle at 16% 12%,var(--mmd-liquid-a),transparent 30%),radial-gradient(circle at 82% 10%,var(--mmd-liquid-b),transparent 32%),radial-gradient(circle at 55% 88%,var(--mmd-liquid-c),transparent 38%),linear-gradient(180deg,var(--mmd-bg),var(--mmd-bg-2));color:var(--mmd-text)}
.m18-wrap,.admin-main,.admin-sidebar,.mmd-nav-wrap{font-family:var(--mmd-font)}
h1,h2,h3,.admin-topbar h1,.m18-hero h1{font-family:var(--mmd-font);letter-spacing:-.035em;color:var(--mmd-text)}
p,small,td,th,input,select,textarea,button,a{font-family:var(--mmd-font)}
/* Header refinement */
.mmd-site-header{background:color-mix(in srgb,var(--mmd-surface) 82%,transparent);border-bottom:1px solid var(--mmd-line);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
@supports not (backdrop-filter:blur(1px)){.mmd-site-header,.m18-card,.admin-card,.table-card,.card{background:var(--mmd-surface)}}
.mmd-nav-link,.mmd-nav-btn{color:var(--mmd-muted)}.mmd-nav-link:hover,.mmd-nav-btn:hover{color:var(--mmd-text)}
/* Liquid buttons — premium but readable */
.m18-btn,.mmd-nav-btn,.btn,button.btn,.newsletter button,.theme-pill{position:relative;overflow:hidden;isolation:isolate;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease}
.m18-btn:before,.mmd-nav-btn:before,.btn:before,button.btn:before,.newsletter button:before,.theme-pill:before{content:"";position:absolute;inset:-120% -40%;background:linear-gradient(115deg,transparent 35%,rgba(255,255,255,.26),transparent 65%);transform:translateX(-42%);opacity:.58;z-index:-1;transition:transform .62s ease}
.m18-btn:hover:before,.mmd-nav-btn:hover:before,.btn:hover:before,button.btn:hover:before,.newsletter button:hover:before,.theme-pill:hover:before{transform:translateX(42%)}
.m18-btn:hover,.mmd-nav-btn:hover,.btn:hover,button.btn:hover,.theme-pill:hover{transform:translateY(-1px);box-shadow:0 14px 38px rgba(36,111,224,.16)}
.m18-btn-primary,.mmd-nav-cta,.btn-primary{background:linear-gradient(135deg,var(--mmd-blue),var(--mmd-cyan));color:#fff;border-color:rgba(255,255,255,.24)}
html[data-mmd-theme="mono"] .m18-btn-primary,html[data-mmd-theme="mono"] .mmd-nav-cta,html[data-mmd-theme="mono"] .btn-primary{background:linear-gradient(135deg,#344054,#667085)}
/* Cards and panels */
.m18-card,.table-card,.admin-card,.card,.admin-userbox{background:linear-gradient(145deg,color-mix(in srgb,var(--mmd-surface) 88%,transparent),color-mix(in srgb,var(--mmd-surface-2) 92%,transparent));border-color:var(--mmd-line);box-shadow:var(--mmd-shadow);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.m18-table td,.m18-case-row{background:color-mix(in srgb,var(--mmd-surface) 70%,transparent);border-color:var(--mmd-line);color:var(--mmd-text)}
.m18-muted,.m18-case-row small,.admin-userbox span,small,.table-head p,.table-card p{color:var(--mmd-muted)}
.m18-field input,.m18-field select,.m18-field textarea,.m18-filter input,.m18-filter select,input,select,textarea{background:color-mix(in srgb,var(--mmd-bg) 86%,white 0%);border-color:var(--mmd-line);color:var(--mmd-text)}
html[data-mmd-theme="light"] input,html[data-mmd-theme="light"] select,html[data-mmd-theme="light"] textarea,html[data-mmd-theme="mono"] input,html[data-mmd-theme="mono"] select,html[data-mmd-theme="mono"] textarea{background:#fff;color:var(--mmd-text)}
/* Admin full theme */
.admin-body{--bg:var(--mmd-bg);--sidebar:var(--mmd-bg-2);--surface:var(--mmd-surface);--line:var(--mmd-line);--line2:var(--mmd-line);--text:var(--mmd-text);--muted:var(--mmd-muted);--blue:var(--mmd-blue);--cyan:var(--mmd-cyan);--success:var(--mmd-green);--warning:var(--mmd-amber);--danger:var(--mmd-red)}
.admin-sidebar{background:linear-gradient(180deg,color-mix(in srgb,var(--mmd-bg) 94%,black 6%),color-mix(in srgb,var(--mmd-bg-2) 94%,black 6%));border-right:1px solid var(--mmd-line)}
.admin-main{background:radial-gradient(circle at 92% -8%,var(--mmd-liquid-b),transparent 34%),linear-gradient(135deg,var(--mmd-bg),var(--mmd-bg-2))}.admin-nav-section-title,.admin-kicker{color:var(--mmd-cyan)}.admin-nav a{color:var(--mmd-muted)}.admin-nav a:hover,.admin-nav a.active{background:color-mix(in srgb,var(--mmd-surface) 70%,transparent);border-color:var(--mmd-line);color:var(--mmd-text)}
/* Theme switcher */
.mmd-theme-switcher{display:inline-flex;align-items:center;gap:5px;padding:5px;border:1px solid var(--mmd-line);border-radius:999px;background:color-mix(in srgb,var(--mmd-surface) 80%,transparent);box-shadow:0 10px 30px rgba(0,0,0,.08)}
.theme-pill{appearance:none;border:0;border-radius:999px;background:transparent;color:var(--mmd-muted);min-height:32px;padding:0 10px;font-size:12px;font-weight:850;cursor:pointer;white-space:nowrap}
.theme-pill.is-active{background:linear-gradient(135deg,var(--mmd-blue),var(--mmd-cyan));color:#fff;box-shadow:0 10px 26px rgba(36,111,224,.18)}
html[data-mmd-theme="mono"] .theme-pill.is-active{background:#344054;color:#fff}
.admin-theme-row{display:flex;justify-content:flex-end;margin:0 0 14px}.admin-theme-row .mmd-theme-switcher{margin-left:auto}
/* Responsive polishing */
img,svg,video{max-width:100%;height:auto}.table-scroll,.m18-table{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}.m18-case-row,.m18-card,.admin-card,.table-card{overflow-wrap:anywhere}
@media(max-width:1100px){.mmd-nav{background:color-mix(in srgb,var(--mmd-surface) 96%,black 4%);border-color:var(--mmd-line)}.mmd-theme-switcher{width:100%;justify-content:space-between}.theme-pill{flex:1}.mmd-nav-actions{gap:9px}.mmd-nav-btn,.mmd-nav-link{min-height:46px}}
@media(max-width:860px){:root{--mmd-radius-lg:22px}.mastermd-liquid-scope{padding:24px 14px 54px}.m18-hero h1,.admin-topbar h1{font-size:clamp(30px,9vw,42px);line-height:1.03}.m18-grid{grid-template-columns:1fr}.m18-filter{display:grid;grid-template-columns:1fr}.m18-filter input{min-width:0}.admin-sidebar{border-right:0;border-bottom:1px solid var(--mmd-line);max-height:none}.admin-nav{grid-template-columns:1fr}.admin-theme-row{justify-content:stretch}.admin-theme-row .mmd-theme-switcher{width:100%}table{min-width:720px}}
@media(max-width:540px){.mmd-brand{min-width:0}.mmd-brand-logo{height:44px;max-width:180px}.mmd-nav-wrap{padding:12px 14px}.m18-card,.table-card,.admin-card,.card{border-radius:20px;padding:18px}.m18-stat strong{font-size:34px}.m18-actions,.toolbar,.action-row{display:grid;grid-template-columns:1fr;width:100%}.m18-btn,.btn,.mmd-nav-btn{width:100%}.m18-case-row{padding:14px}.admin-main{padding:18px 13px 50px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.001ms!important}.mastermd-liquid-scope:after,.m18-pulse:after{display:none}}

/* =========================================================
 * MasterMD v49.2 — Light & Sade theme contrast refinement
 * Açık tema: gri + bordo + kırık beyaz
 * Sade tema: gri + siyah + kırık beyaz
 * Amaç: düşük kontrast çakışmalarını, mavi/cyan ağırlığını ve göz yoran beyazlığı azaltmak.
 * ========================================================= */
html[data-mmd-theme="light"]{
  color-scheme:light;
  --mmd-bg:#f2efed;--mmd-bg-2:#ebe6e3;--mmd-surface:rgba(255,255,255,.94);--mmd-surface-2:rgba(248,244,242,.94);--mmd-text:#241f21;--mmd-muted:#6f6468;--mmd-line:rgba(102,42,58,.18);--mmd-blue:#8a1538;--mmd-cyan:#b45f73;--mmd-green:#357960;--mmd-amber:#a06a1f;--mmd-red:#a61b3d;--mmd-shadow:0 18px 46px rgba(50,38,39,.10);--mmd-liquid-a:rgba(138,21,56,.08);--mmd-liquid-b:rgba(96,86,88,.08);--mmd-liquid-c:rgba(255,255,255,.28);
  --m24-page:#f2efed;--m24-page-2:#ebe6e3;--m24-page-3:#e4dcda;--m24-surface:#ffffff;--m24-surface-2:#f8f4f2;--m24-surface-3:#eee7e5;--m24-surface-glass:rgba(255,255,255,.86);--m24-line:rgba(102,42,58,.16);--m24-line-strong:rgba(102,42,58,.26);--m24-text:#241f21;--m24-text-2:#4b4245;--m24-text-3:#756a6d;--m24-primary:#8a1538;--m24-primary-2:#b45f73;--m24-accent:#357960;--m24-danger:#a61b3d;--m24-warning:#a06a1f;--m24-success:#357960;--m24-shadow-sm:0 8px 20px rgba(50,38,39,.07);--m24-shadow:0 18px 44px rgba(50,38,39,.10);--m24-shadow-lg:0 30px 80px rgba(50,38,39,.13);--m24-grad-a:radial-gradient(circle at 0% 0%,rgba(138,21,56,.085),transparent 32%);--m24-grad-b:radial-gradient(circle at 100% 0%,rgba(90,82,84,.08),transparent 30%);--m24-grad-c:radial-gradient(circle at 50% 100%,rgba(255,255,255,.36),transparent 34%);
  --m42-bg:#f2efed;--m42-surface:#ffffff;--m42-surface-2:#f8f4f2;--m42-surface-3:#eee7e5;--m42-text:#241f21;--m42-text-2:#4b4245;--m42-muted:#756a6d;--m42-line:rgba(102,42,58,.16);--m42-line-2:rgba(102,42,58,.26);--m42-primary:#8a1538;--m42-primary-2:#b45f73;--m42-selected:#8a1538;--m42-selected-2:#5f0f27;--m42-success:#357960;--m42-danger:#a61b3d;--m42-warning:#a06a1f;--m42-shadow:0 18px 44px rgba(50,38,39,.10);
  --m43-surface:#ffffff;--m43-surface-2:#f8f4f2;--m43-line:rgba(102,42,58,.17);--m43-text:#241f21;--m43-muted:#756a6d;--m43-blue:#8a1538;--m43-cyan:#b45f73;--m43-active:#8a1538;--m43-active-2:#5f0f27;--m43-shadow:0 18px 44px rgba(50,38,39,.10);
  --m27-page:#f2efed;--m27-surface:#ffffff;--m27-surface-2:#f8f4f2;--m27-surface-3:#eee7e5;--m27-glass:rgba(255,255,255,.86);--m27-text:#241f21;--m27-text-2:#4b4245;--m27-text-3:#756a6d;--m27-line:rgba(102,42,58,.16);--m27-line-2:rgba(102,42,58,.26);--m27-blue:#8a1538;--m27-cyan:#b45f73;--m27-green:#357960;--m27-red:#a61b3d;--m27-orange:#a06a1f;--m27-shadow:0 18px 46px rgba(50,38,39,.11);--m27-shadow-soft:0 8px 24px rgba(50,38,39,.07);
  --auth-bg:#f2efed;--auth-surface:rgba(255,255,255,.94);--auth-surface-2:rgba(248,244,242,.96);--auth-line:rgba(102,42,58,.16);--auth-line-2:rgba(102,42,58,.26);--auth-text:#241f21;--auth-text-2:#4b4245;--auth-muted:#756a6d;--auth-primary:#8a1538;--auth-cyan:#b45f73;--auth-green:#357960;--auth-danger:#a61b3d;--auth-shadow:0 22px 56px rgba(50,38,39,.11);
}
html[data-mmd-theme="mono"]{
  color-scheme:light;
  --mmd-bg:#efede8;--mmd-bg-2:#e5e1da;--mmd-surface:rgba(252,251,248,.95);--mmd-surface-2:rgba(244,242,237,.95);--mmd-text:#1f2023;--mmd-muted:#64666b;--mmd-line:rgba(31,32,35,.15);--mmd-blue:#2f3033;--mmd-cyan:#5c5f66;--mmd-green:#3f4348;--mmd-amber:#6b6254;--mmd-red:#3f4348;--mmd-shadow:0 16px 40px rgba(31,32,35,.09);--mmd-liquid-a:rgba(31,32,35,.055);--mmd-liquid-b:rgba(92,95,102,.055);--mmd-liquid-c:rgba(255,255,255,.28);
  --m24-page:#efede8;--m24-page-2:#e5e1da;--m24-page-3:#dad6ce;--m24-surface:#fcfbf8;--m24-surface-2:#f4f2ed;--m24-surface-3:#ebe8e1;--m24-surface-glass:rgba(252,251,248,.88);--m24-line:rgba(31,32,35,.14);--m24-line-strong:rgba(31,32,35,.23);--m24-text:#1f2023;--m24-text-2:#44464b;--m24-text-3:#686a70;--m24-primary:#2f3033;--m24-primary-2:#5c5f66;--m24-accent:#3f4348;--m24-danger:#3f4348;--m24-warning:#6b6254;--m24-success:#3f4348;--m24-shadow-sm:0 8px 20px rgba(31,32,35,.06);--m24-shadow:0 16px 40px rgba(31,32,35,.09);--m24-shadow-lg:0 26px 70px rgba(31,32,35,.11);--m24-grad-a:radial-gradient(circle at 0% 0%,rgba(31,32,35,.06),transparent 30%);--m24-grad-b:radial-gradient(circle at 100% 0%,rgba(92,95,102,.055),transparent 28%);--m24-grad-c:radial-gradient(circle at 50% 100%,rgba(255,255,255,.36),transparent 34%);
  --m42-bg:#efede8;--m42-surface:#fcfbf8;--m42-surface-2:#f4f2ed;--m42-surface-3:#ebe8e1;--m42-text:#1f2023;--m42-text-2:#44464b;--m42-muted:#686a70;--m42-line:rgba(31,32,35,.14);--m42-line-2:rgba(31,32,35,.23);--m42-primary:#2f3033;--m42-primary-2:#5c5f66;--m42-selected:#2f3033;--m42-selected-2:#1f2023;--m42-success:#3f4348;--m42-danger:#3f4348;--m42-warning:#6b6254;--m42-shadow:0 16px 40px rgba(31,32,35,.09);
  --m43-surface:#fcfbf8;--m43-surface-2:#f4f2ed;--m43-line:rgba(31,32,35,.14);--m43-text:#1f2023;--m43-muted:#686a70;--m43-blue:#2f3033;--m43-cyan:#5c5f66;--m43-active:#2f3033;--m43-active-2:#1f2023;--m43-shadow:0 16px 40px rgba(31,32,35,.09);
  --m27-page:#efede8;--m27-surface:#fcfbf8;--m27-surface-2:#f4f2ed;--m27-surface-3:#ebe8e1;--m27-glass:rgba(252,251,248,.88);--m27-text:#1f2023;--m27-text-2:#44464b;--m27-text-3:#686a70;--m27-line:rgba(31,32,35,.14);--m27-line-2:rgba(31,32,35,.23);--m27-blue:#2f3033;--m27-cyan:#5c5f66;--m27-green:#3f4348;--m27-red:#3f4348;--m27-orange:#6b6254;--m27-shadow:0 16px 40px rgba(31,32,35,.10);--m27-shadow-soft:0 8px 22px rgba(31,32,35,.06);
  --auth-bg:#efede8;--auth-surface:rgba(252,251,248,.95);--auth-surface-2:rgba(244,242,237,.96);--auth-line:rgba(31,32,35,.14);--auth-line-2:rgba(31,32,35,.23);--auth-text:#1f2023;--auth-text-2:#44464b;--auth-muted:#686a70;--auth-primary:#2f3033;--auth-cyan:#5c5f66;--auth-green:#3f4348;--auth-danger:#3f4348;--auth-shadow:0 18px 50px rgba(31,32,35,.10);
}
html[data-mmd-theme="light"] body,
html[data-mmd-theme="mono"] body,
html[data-mmd-theme="light"] body.admin-body,
html[data-mmd-theme="mono"] body.admin-body,
html[data-mmd-theme="light"] .mm-home,
html[data-mmd-theme="mono"] .mm-home{
  background:
    radial-gradient(circle at 12% -8%,var(--mmd-liquid-a),transparent 30%),
    radial-gradient(circle at 88% 2%,var(--mmd-liquid-b),transparent 32%),
    linear-gradient(135deg,var(--mmd-bg),var(--mmd-bg-2))!important;
  color:var(--mmd-text)!important;
}
html[data-mmd-theme="light"] .mmd-site-header,
html[data-mmd-theme="mono"] .mmd-site-header,
html[data-mmd-theme="light"] .admin-topbar,
html[data-mmd-theme="mono"] .admin-topbar{
  background:color-mix(in srgb,var(--mmd-surface) 92%,transparent)!important;
  border-color:var(--mmd-line)!important;
  box-shadow:0 10px 28px rgba(40,32,33,.055)!important;
}
html[data-mmd-theme="light"] .section-card,
html[data-mmd-theme="light"] .m18-card,
html[data-mmd-theme="light"] .table-card,
html[data-mmd-theme="light"] .dash-card,
html[data-mmd-theme="light"] .card,
html[data-mmd-theme="light"] .branch-card,
html[data-mmd-theme="light"] .admin-card,
html[data-mmd-theme="light"] .clinical-block,
html[data-mmd-theme="light"] .mastermd-consult-card,
html[data-mmd-theme="light"] .auth-card,
html[data-mmd-theme="light"] .mmd-auth-card,
html[data-mmd-theme="light"] .patient-card,
html[data-mmd-theme="light"] .patient-hero,
html[data-mmd-theme="light"] .mmd-pro-report,
html[data-mmd-theme="mono"] .section-card,
html[data-mmd-theme="mono"] .m18-card,
html[data-mmd-theme="mono"] .table-card,
html[data-mmd-theme="mono"] .dash-card,
html[data-mmd-theme="mono"] .card,
html[data-mmd-theme="mono"] .branch-card,
html[data-mmd-theme="mono"] .admin-card,
html[data-mmd-theme="mono"] .clinical-block,
html[data-mmd-theme="mono"] .mastermd-consult-card,
html[data-mmd-theme="mono"] .auth-card,
html[data-mmd-theme="mono"] .mmd-auth-card,
html[data-mmd-theme="mono"] .patient-card,
html[data-mmd-theme="mono"] .patient-hero,
html[data-mmd-theme="mono"] .mmd-pro-report{
  background:linear-gradient(180deg,var(--mmd-surface),var(--mmd-surface-2))!important;
  color:var(--mmd-text)!important;
  border-color:var(--mmd-line)!important;
  box-shadow:var(--mmd-shadow)!important;
}
html[data-mmd-theme="light"] h1,html[data-mmd-theme="light"] h2,html[data-mmd-theme="light"] h3,
html[data-mmd-theme="light"] .mmd-pro-report h1,html[data-mmd-theme="light"] .mmd-pro-report h2,html[data-mmd-theme="light"] .mmd-pro-report h3,
html[data-mmd-theme="mono"] h1,html[data-mmd-theme="mono"] h2,html[data-mmd-theme="mono"] h3,
html[data-mmd-theme="mono"] .mmd-pro-report h1,html[data-mmd-theme="mono"] .mmd-pro-report h2,html[data-mmd-theme="mono"] .mmd-pro-report h3{color:var(--mmd-text)!important;}
html[data-mmd-theme="light"] p,html[data-mmd-theme="light"] li,html[data-mmd-theme="light"] small,html[data-mmd-theme="light"] .muted,html[data-mmd-theme="light"] .m18-muted,html[data-mmd-theme="light"] .patient-muted,
html[data-mmd-theme="mono"] p,html[data-mmd-theme="mono"] li,html[data-mmd-theme="mono"] small,html[data-mmd-theme="mono"] .muted,html[data-mmd-theme="mono"] .m18-muted,html[data-mmd-theme="mono"] .patient-muted{color:var(--mmd-muted)!important;}
html[data-mmd-theme="light"] input,html[data-mmd-theme="light"] select,html[data-mmd-theme="light"] textarea,
html[data-mmd-theme="mono"] input,html[data-mmd-theme="mono"] select,html[data-mmd-theme="mono"] textarea{
  background:var(--mmd-surface)!important;
  color:var(--mmd-text)!important;
  border-color:var(--mmd-line)!important;
  box-shadow:inset 0 1px 2px rgba(30,25,25,.035)!important;
}
html[data-mmd-theme="light"] input:focus,html[data-mmd-theme="light"] select:focus,html[data-mmd-theme="light"] textarea:focus{border-color:rgba(138,21,56,.42)!important;box-shadow:0 0 0 4px rgba(138,21,56,.12)!important;}
html[data-mmd-theme="mono"] input:focus,html[data-mmd-theme="mono"] select:focus,html[data-mmd-theme="mono"] textarea:focus{border-color:rgba(47,48,51,.35)!important;box-shadow:0 0 0 4px rgba(47,48,51,.10)!important;}
html[data-mmd-theme="light"] .mmd-nav-cta,
html[data-mmd-theme="light"] .btn-primary,
html[data-mmd-theme="light"] .m18-btn-primary,
html[data-mmd-theme="light"] .patient-submit,
html[data-mmd-theme="light"] .mastermd-btn-primary,
html[data-mmd-theme="light"] input[type="submit"],
html[data-mmd-theme="mono"] .mmd-nav-cta,
html[data-mmd-theme="mono"] .btn-primary,
html[data-mmd-theme="mono"] .m18-btn-primary,
html[data-mmd-theme="mono"] .patient-submit,
html[data-mmd-theme="mono"] .mastermd-btn-primary,
html[data-mmd-theme="mono"] input[type="submit"]{
  background:linear-gradient(135deg,var(--mmd-blue),var(--mmd-cyan))!important;
  color:#fff!important;
  border-color:transparent!important;
}
html[data-mmd-theme="light"] .theme-pill.is-active{background:linear-gradient(135deg,#8a1538,#b45f73)!important;color:#fff!important;box-shadow:0 8px 18px rgba(138,21,56,.18)!important;}
html[data-mmd-theme="mono"] .theme-pill.is-active{background:linear-gradient(135deg,#1f2023,#5c5f66)!important;color:#fff!important;box-shadow:0 8px 18px rgba(31,32,35,.14)!important;}
html[data-mmd-theme="light"] .mmd-theme-switcher,
html[data-mmd-theme="mono"] .mmd-theme-switcher{background:var(--mmd-surface-2)!important;border-color:var(--mmd-line)!important;}
html[data-mmd-theme="light"] table tbody td,html[data-mmd-theme="light"] .m18-table tbody td,
html[data-mmd-theme="mono"] table tbody td,html[data-mmd-theme="mono"] .m18-table tbody td{background:var(--mmd-surface)!important;color:var(--mmd-text)!important;border-color:var(--mmd-line)!important;}
html[data-mmd-theme="light"] .admin-sidebar,
html[data-mmd-theme="mono"] .admin-sidebar{background:linear-gradient(180deg,var(--mmd-surface),var(--mmd-surface-2))!important;border-color:var(--mmd-line)!important;}
html[data-mmd-theme="light"] .admin-nav a:hover,html[data-mmd-theme="light"] .admin-nav a.active,
html[data-mmd-theme="mono"] .admin-nav a:hover,html[data-mmd-theme="mono"] .admin-nav a.active{background:var(--mmd-surface-3,var(--mmd-surface-2))!important;color:var(--mmd-text)!important;border-color:var(--mmd-line)!important;}
html[data-mmd-theme="light"] .mmd-pro-section,
html[data-mmd-theme="light"] .mmd-pro-case-card,
html[data-mmd-theme="light"] .mmd-pro-ai-output,
html[data-mmd-theme="light"] .mmd-pro-meta-grid div,
html[data-mmd-theme="mono"] .mmd-pro-section,
html[data-mmd-theme="mono"] .mmd-pro-case-card,
html[data-mmd-theme="mono"] .mmd-pro-ai-output,
html[data-mmd-theme="mono"] .mmd-pro-meta-grid div{background:var(--mmd-surface)!important;border-color:var(--mmd-line)!important;color:var(--mmd-text)!important;}
@media(max-width:760px){
  html[data-mmd-theme="light"] .mmd-nav,
  html[data-mmd-theme="mono"] .mmd-nav{background:var(--mmd-surface)!important;border-color:var(--mmd-line)!important;}
}
