
/* CF2 medicine design v1 */
body[data-cf2-theme="medicine"] {
  --med-sidebar:284px; --med-ink:#08234c; --med-blue:#0065cc;
  background:#f6f9ff!important;color:var(--med-ink)!important;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
body[data-cf2-theme] > header {
  margin-left:var(--med-sidebar)!important;min-height:82px!important;height:auto!important;
  padding:16px 24px!important;background:#fbfcff!important;color:#08234c!important;
  border-color:#dce6f7!important;box-shadow:0 2px 8px #08234c08;
  gap:16px;z-index:30!important;
}
.cf2-brand-source{display:none!important}
.cf2-med-controls{display:flex;align-items:center;gap:24px;flex:1;min-width:120px}
.cf2-med-menu{border:0;background:none;color:#083e79;font-size:27px;padding:6px;cursor:pointer}
.cf2-med-search{display:flex;align-items:center;gap:12px;width:min(100%,380px);padding:11px 16px;background:#edf2fc;border-radius:15px;color:#174b87}
.cf2-med-search input{width:100%;min-width:0;border:0!important;background:transparent!important;outline:none;color:#12305a!important;font-size:14px}
.cf2-med-search:focus-within{outline:2px solid #65a8ec;outline-offset:2px}
body[data-cf2-theme] #user-pill,body[data-cf2-theme] #acl-btn{background:#fff!important;color:#08234c!important;border-color:#dce6f7!important}
body[data-cf2-theme] #user-role-badge{background:#d9faf1!important;color:#008364!important;border-color:#c4f1e6!important}
body[data-cf2-theme] > header button{color:#16416c}
#cf2-med-avatar{display:grid;place-items:center;width:36px;height:36px;flex:none;border-radius:50%;background:#deebfa;color:#064879;font-weight:700}
body[data-cf2-theme] #cf2-sidebar {
  position:fixed!important;left:0;top:0;bottom:0;width:284px!important;
  display:flex!important;flex-direction:column;overflow-y:auto;z-index:40;
  padding:26px 17px!important;background:linear-gradient(150deg,#092d57,#041d3c)!important;
  border-right:1px solid #16416a!important;color:#f4f8ff!important;gap:4px;
}
.cf2-side-brand{display:flex;align-items:flex-start;gap:11px;padding:2px 10px 26px;margin-bottom:10px;border-bottom:1px solid #21456b}
.cf2-side-brand img{width:64px;height:64px;object-fit:contain;flex:none}
#cf2-med-brand{display:block;color:#f8fbff;font-size:27px;font-weight:750;line-height:1.15;overflow-wrap:anywhere}
#cf2-med-subtitle{color:#d6e7fa;font-size:11px;line-height:1.5;margin-top:8px}
.cf2-workspace-label{padding:12px 13px;color:#b4cbea;font-size:12px;letter-spacing:.04em;font-weight:650}
body[data-cf2-theme] #cf2-sidebar>button{min-height:46px;padding:11px 14px!important;border-radius:11px;font-size:15px;color:#f2f7ff!important;gap:17px}
body[data-cf2-theme] #cf2-sidebar>button:hover{background:#17416a!important}
body[data-cf2-theme] #cf2-sidebar>button[aria-current="page"]{background:#0066ce!important;box-shadow:0 4px 14px #001e4a40}
body[data-cf2-theme] #cf2-sidebar>footer{margin-top:auto;padding-top:24px;border-color:#21456b;color:#b9d0eb}
body[data-cf2-theme] main {
  margin:0 0 0 var(--med-sidebar)!important;width:calc(100% - var(--med-sidebar))!important;
  max-width:none!important;min-width:0;min-height:calc(100vh - 82px);
  padding:26px 32px!important;background:#f7faff!important;color:#08234c!important;
}
body[data-cf2-theme].cf2-catalog-open main{padding:0!important}
body[data-cf2-theme] main :is(h1,h2,h3,h4,label){color:#08234c!important}
body[data-cf2-theme] main [class*="text-zinc-"]{color:#435979!important}
body[data-cf2-theme] main :is([class*="bg-zinc-"],article,form,[class*="card"]){background-color:#fff!important;color:#163356!important;border-color:#dce7f6!important}
body[data-cf2-theme] main :is(input,textarea,select){background:#fff!important;color:#17385e!important;border-color:#cadcf0!important}
body[data-cf2-theme] main [class*="border-zinc-"]{border-color:#dce7f6!important}
body[data-cf2-theme] main button[class*="bg-emerald-"]{background:#0769cf!important;color:#fff!important;border-color:#0769cf!important}
body[data-cf2-theme] .pd-cat-root{background:#f7faff;min-height:calc(100vh - 82px);padding:26px 32px}
body[data-cf2-theme] .pd-cat-shell{max-width:none}
body[data-cf2-theme] .pd-cat-hero{background:#e4f1ff url("/static/medicine-banner.svg") right center/auto 100% no-repeat;box-shadow:0 5px 18px #1261ac0b;border-radius:15px}
body[data-cf2-theme] .pd-cat-hero-art{display:none}
body[data-cf2-theme] .pd-cat-hero h1{font-size:32px;letter-spacing:-.035em}
body[data-cf2-theme] .pd-cat-card{border-radius:12px;box-shadow:0 2px 6px #0b356b09}
body[data-cf2-theme] .pd-cat-table tbody td{padding:8px 20px;font-size:15px;border-color:#e7eef9}
body[data-cf2-theme] .pd-cat-table thead th{background:#edf3fd;padding:14px 20px;font-size:15px}
body[data-cf2-theme] .pd-pill{padding:2px 11px;border:0;background:#e0f1ff;color:#0060c5}
body[data-cf2-theme] .pd-cat-foot{padding-top:22px;font-size:12px}
body[data-cf2-theme].cf2-menu-closed{--med-sidebar:0px}
body[data-cf2-theme].cf2-menu-closed #cf2-sidebar{transform:translateX(-100%)}
@media(max-width:1000px){
  body[data-cf2-theme]{--med-sidebar:0px}
  body[data-cf2-theme] #cf2-sidebar{transform:translateX(-100%)}
  body[data-cf2-theme].cf2-menu-open #cf2-sidebar{transform:none}
  body[data-cf2-theme] > header{padding:12px!important;gap:8px}
  .cf2-med-controls{gap:8px}
  body[data-cf2-theme] main{padding:18px!important}
  body[data-cf2-theme] .pd-cat-root{padding:18px}
}
@media(max-width:640px){
  #cf2-med-avatar{display:none}
  body[data-cf2-theme] #acl-btn{max-width:120px}
  body[data-cf2-theme] .pd-cat-hero{background-position:60% center}
  body[data-cf2-theme] .pd-cat-hero h1{font-size:23px}
}
