/* MEDIPHARM Medical Dictionary v2.3.4 — Detail Workspace + Runtime Performance */
.nahmed-dictionary{
  --nahmed-bg:#f4f8fb;
  --nahmed-surface:#ffffff;
  --nahmed-surface-2:#f8fbfd;
  --nahmed-text:#122033;
  --nahmed-muted:#64748b;
  --nahmed-line:#dce7ef;
  --nahmed-primary:#0b6f8f;
  --nahmed-primary-strong:#075a78;
  --nahmed-primary-soft:#e8f5f8;
  --nahmed-blue:#1769aa;
  --nahmed-shadow:0 18px 52px rgba(18,32,51,.09);
  --nahmed-card-shadow:0 8px 24px rgba(18,32,51,.06);
  --nahmed-sticky-offset:0px;
  box-sizing:border-box;
  width:100%;
  max-width:1080px;
  margin:0 auto;
  padding:clamp(12px,2.2vw,28px);
  color:var(--nahmed-text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.5;
  color-scheme:light;
}
.nahmed-dictionary *,
.nahmed-dictionary *::before,
.nahmed-dictionary *::after{box-sizing:border-box}
.nahmed-dictionary button,
.nahmed-dictionary input{font:inherit}
.nahmed-dictionary button{appearance:none;-webkit-appearance:none}
.nahmed-dictionary a{color:inherit}
.nahmed-dictionary [hidden]{display:none!important}
.nahmed-dictionary .screen-reader-text{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}

.nahmed-standalone-body{margin:0;min-height:100vh;background:#edf4f8;color:#122033}
.nahmed-standalone-body .nahmed-dictionary{max-width:1160px;min-height:100vh}

.nahmed-dictionary .nahmed-app-shell{
  width:100%;
  min-width:0;
  overflow:visible;
  border:1px solid rgba(11,111,143,.10);
  border-radius:28px;
  background:linear-gradient(180deg,rgba(255,255,255,.99),rgba(248,251,253,.98));
  box-shadow:var(--nahmed-shadow);
}

/* Top app bar: Logo → Search → Menu */
.nahmed-dictionary .nahmed-app-header{
  position:sticky;
  top:var(--nahmed-sticky-offset);
  z-index:9000;
  isolation:isolate;
  padding:clamp(14px,2vw,22px);
  border-bottom:1px solid var(--nahmed-line);
  border-radius:28px 28px 0 0;
  background:
    radial-gradient(circle at 85% -20%,rgba(54,186,190,.16),transparent 36%),
    linear-gradient(135deg,#f7fcfd 0%,#edf8fa 48%,#f5f9fd 100%);
}

/* v2.3.3 — Canonical sticky app header. CSS-only: no scroll listeners or requests. */
body.admin-bar .nahmed-dictionary{--nahmed-sticky-offset:32px}
.nahmed-dictionary .nahmed-app-header{
  box-shadow:0 10px 26px rgba(18,32,51,.07);
  -webkit-backdrop-filter:saturate(1.08) blur(8px);
  backdrop-filter:saturate(1.08) blur(8px);
}
.nahmed-dictionary .nahmed-topic-section,
.nahmed-dictionary .nahmed-workbench,
.nahmed-dictionary [id]{scroll-margin-top:calc(var(--nahmed-sticky-offset) + 150px)}
@media(max-width:782px){
  body.admin-bar .nahmed-dictionary{--nahmed-sticky-offset:46px}
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-app-menu{top:calc(var(--nahmed-sticky-offset) + 66px)}
  .nahmed-dictionary .nahmed-topic-section,
  .nahmed-dictionary .nahmed-workbench,
  .nahmed-dictionary [id]{scroll-margin-top:calc(var(--nahmed-sticky-offset) + 126px)}
}
.nahmed-dictionary .nahmed-topbar{
  display:grid;
  grid-template-columns:minmax(190px,auto) minmax(320px,1fr) auto;
  align-items:center;
  gap:16px;
  min-width:0;
}
.nahmed-dictionary .nahmed-brand{
  display:flex;
  align-items:center;
  gap:11px;
  min-width:0;
  text-decoration:none!important;
}
.nahmed-dictionary .nahmed-brand-mark{
  display:grid!important;
  place-items:center!important;
  flex:0 0 52px!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  min-height:52px!important;
  padding:5px!important;
  overflow:hidden!important;
  border:1px solid rgba(11,111,143,.11)!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 7px 18px rgba(15,76,129,.11)!important;
}
.nahmed-dictionary .nahmed-brand-logo{display:block!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;background:#fff!important;opacity:1!important;visibility:visible!important}
.nahmed-dictionary .nahmed-brand-logo image{display:block!important;width:192px!important;height:192px!important;opacity:1!important;visibility:visible!important}
.nahmed-dictionary .nahmed-brand-copy{display:flex;flex-direction:column;min-width:0;line-height:1.12}
.nahmed-dictionary .nahmed-brand-eyebrow{margin-bottom:4px;color:var(--nahmed-primary);font-size:10px;font-weight:850;letter-spacing:.15em}
.nahmed-dictionary .nahmed-brand-copy strong{overflow:hidden;color:#0d2a3d;font-size:16px;font-weight:850;white-space:nowrap;text-overflow:ellipsis}

.nahmed-dictionary .nahmed-primary-search{
  display:grid;
  grid-template-columns:44px minmax(0,1fr) auto;
  align-items:center;
  min-width:0;
  height:54px;
  overflow:hidden;
  border:1px solid rgba(11,111,143,.18);
  border-radius:17px;
  background:#fff;
  box-shadow:0 8px 24px rgba(15,76,129,.08);
  transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
.nahmed-dictionary .nahmed-primary-search:focus-within{border-color:rgba(11,111,143,.54);box-shadow:0 0 0 4px rgba(11,111,143,.08),0 10px 26px rgba(15,76,129,.10)}
.nahmed-dictionary .nahmed-search-icon{display:grid;place-items:center;color:var(--nahmed-primary)}
.nahmed-dictionary .nahmed-search-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.nahmed-dictionary input.nahmed-search{
  width:100%!important;
  min-width:0!important;
  height:100%!important;
  margin:0!important;
  padding:0 10px 0 0!important;
  border:0!important;
  border-radius:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--nahmed-text)!important;
  font-size:16px!important;
  line-height:1.3!important;
}
.nahmed-dictionary input.nahmed-search::placeholder{color:#91a0af;opacity:1}
.nahmed-dictionary button.nahmed-search-button{
  align-self:stretch;
  min-width:82px;
  margin:5px;
  padding:0 18px;
  border:0!important;
  border-radius:12px!important;
  background:linear-gradient(135deg,var(--nahmed-primary),#1587a4)!important;
  color:#fff!important;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:none!important;
}
.nahmed-dictionary button.nahmed-search-button:hover{filter:brightness(.96)}

.nahmed-dictionary .nahmed-menu-wrap{position:relative;z-index:30}
.nahmed-dictionary .nahmed-menu-trigger{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:9px!important;
  min-height:50px!important;
  padding:0 15px!important;
  border:1px solid rgba(11,111,143,.15)!important;
  border-radius:15px!important;
  background:rgba(255,255,255,.86)!important;
  color:#17384b!important;
  font-weight:800!important;
  cursor:pointer!important;
  box-shadow:0 6px 18px rgba(15,76,129,.07)!important;
}
.nahmed-dictionary .nahmed-menu-trigger:hover,
.nahmed-dictionary .nahmed-menu-trigger[aria-expanded="true"]{border-color:rgba(11,111,143,.36)!important;background:#fff!important;color:var(--nahmed-primary)!important}
.nahmed-dictionary .nahmed-menu-icon{display:flex;flex-direction:column;gap:3px;width:18px}
.nahmed-dictionary .nahmed-menu-icon span{display:block;width:18px;height:2px;border-radius:999px;background:currentColor}
.nahmed-dictionary .nahmed-app-menu{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(280px,calc(100vw - 32px));
  padding:8px;
  border:1px solid var(--nahmed-line);
  border-radius:18px;
  background:rgba(255,255,255,.98);
  box-shadow:0 18px 46px rgba(18,32,51,.18);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}
.nahmed-dictionary .nahmed-menu-item{
  display:grid!important;
  grid-template-columns:30px minmax(0,1fr)!important;
  align-items:center!important;
  width:100%!important;
  min-height:44px!important;
  margin:0!important;
  padding:8px 10px!important;
  border:0!important;
  border-radius:12px!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--nahmed-text)!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1.25!important;
  text-align:left!important;
  text-decoration:none!important;
  cursor:pointer!important;
}
.nahmed-dictionary .nahmed-menu-item:hover,.nahmed-dictionary .nahmed-menu-item:focus{background:var(--nahmed-primary-soft)!important;color:var(--nahmed-primary-strong)!important;outline:none}
.nahmed-dictionary .nahmed-menu-glyph{display:grid;place-items:center;width:26px;height:26px;border-radius:9px;background:#eff7f9;color:var(--nahmed-primary);font-size:17px;font-weight:800}
.nahmed-dictionary .nahmed-author-panel{margin:5px 4px 2px;padding:11px 12px 12px 40px;border-top:1px solid var(--nahmed-line);color:var(--nahmed-muted);font-size:12.5px;line-height:1.5}
.nahmed-dictionary .nahmed-author-panel strong{display:block;color:var(--nahmed-text);font-size:13.5px}
.nahmed-dictionary .nahmed-author-panel span{display:block;margin-top:2px}

.nahmed-dictionary .nahmed-header-summary{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:16px;padding-top:15px;border-top:1px solid rgba(11,111,143,.10)}
.nahmed-dictionary .nahmed-kicker{margin:0 0 4px!important;color:var(--nahmed-primary)!important;font-size:11px!important;font-weight:850!important;letter-spacing:.09em!important;line-height:1.4!important;text-transform:uppercase}
.nahmed-dictionary .nahmed-version-inline{display:inline-block;margin-left:4px;color:#688297;font-size:10px;font-weight:750;letter-spacing:.03em;text-transform:none}
.nahmed-dictionary .nahmed-header-description{margin:0!important;max-width:760px;color:var(--nahmed-muted)!important;font-size:14px!important;line-height:1.55!important}
.nahmed-dictionary .nahmed-corpus-count{display:flex;align-items:baseline;gap:6px;flex:0 0 auto;margin:0!important;padding:8px 11px;border:1px solid rgba(11,111,143,.11);border-radius:12px;background:rgba(255,255,255,.72);color:#60798b!important;font-size:12px;line-height:1.2;white-space:nowrap}
.nahmed-dictionary .nahmed-corpus-count strong{color:var(--nahmed-primary-strong);font-size:18px;font-weight:900;font-variant-numeric:tabular-nums}

/* Topic discovery cards */
.nahmed-dictionary .nahmed-topic-section{padding:clamp(18px,2.2vw,26px);border-bottom:1px solid var(--nahmed-line);background:#fff}
.nahmed-dictionary .nahmed-section-heading,.nahmed-dictionary .nahmed-lookup-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:13px}
.nahmed-dictionary .nahmed-section-kicker{margin:0 0 3px!important;color:#7990a1!important;font-size:10px!important;font-weight:850!important;letter-spacing:.13em!important;line-height:1.35!important}
.nahmed-dictionary .nahmed-section-heading h2,.nahmed-dictionary .nahmed-lookup-heading h2{margin:0!important;color:var(--nahmed-text)!important;font-size:clamp(18px,2.3vw,23px)!important;font-weight:850!important;line-height:1.2!important;letter-spacing:-.02em!important}
.nahmed-dictionary .nahmed-topic-reset{padding:8px 12px!important;border:1px solid var(--nahmed-line)!important;border-radius:999px!important;background:#fff!important;color:var(--nahmed-primary)!important;font-size:12.5px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-topic-reset:hover{border-color:rgba(11,111,143,.30)!important;background:var(--nahmed-primary-soft)!important}
.nahmed-dictionary .nahmed-topic-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.nahmed-dictionary .nahmed-topic-card{
  --nahmed-topic:#0b6f8f;
  --nahmed-topic-soft:#eaf6f8;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:11px!important;
  min-width:0!important;
  min-height:92px!important;
  margin:0!important;
  padding:13px!important;
  border:1px solid var(--nahmed-line)!important;
  border-radius:17px!important;
  background:linear-gradient(145deg,#fff 0%,#fbfdfe 100%)!important;
  color:var(--nahmed-text)!important;
  text-align:left!important;
  cursor:pointer!important;
  box-shadow:0 4px 14px rgba(18,32,51,.035)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease!important;
}
.nahmed-dictionary .nahmed-topic-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--nahmed-topic) 35%,var(--nahmed-line))!important;box-shadow:0 10px 25px rgba(18,32,51,.08)!important}
.nahmed-dictionary .nahmed-topic-card.is-active{border-color:var(--nahmed-topic)!important;background:linear-gradient(145deg,var(--nahmed-topic-soft),#fff)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--nahmed-topic) 10%,transparent),0 10px 24px rgba(18,32,51,.07)!important}
.nahmed-dictionary .nahmed-topic-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;background:var(--nahmed-topic-soft);color:var(--nahmed-topic);font-size:12px;font-weight:900;letter-spacing:-.02em}
.nahmed-dictionary .nahmed-topic-copy{display:block;min-width:0}
.nahmed-dictionary .nahmed-topic-copy strong{display:block;overflow:visible;margin:0 0 4px;color:#183247;font-size:13.5px;font-weight:850;line-height:1.25;white-space:normal;text-overflow:clip}
.nahmed-dictionary .nahmed-topic-copy small{display:block;overflow:visible;color:#748797;font-size:11.5px;font-weight:500;line-height:1.38;white-space:normal;text-overflow:clip;-webkit-line-clamp:unset;-webkit-box-orient:initial}
.nahmed-dictionary .nahmed-topic-arrow{color:var(--nahmed-topic);font-size:18px;font-weight:800;opacity:.72;transition:transform .16s ease}
.nahmed-dictionary .nahmed-topic-card:hover .nahmed-topic-arrow{transform:translateX(2px)}
.nahmed-dictionary .nahmed-topic-card-eponym{--nahmed-topic:#7956a7;--nahmed-topic-soft:#f3eef9}
.nahmed-dictionary .nahmed-topic-card-symptom{--nahmed-topic:#bf5c55;--nahmed-topic-soft:#fbefed}
.nahmed-dictionary .nahmed-topic-card-disease{--nahmed-topic:#1769aa;--nahmed-topic-soft:#edf4fb}
.nahmed-dictionary .nahmed-topic-card-drug{--nahmed-topic:#238269;--nahmed-topic-soft:#eaf7f2}
.nahmed-dictionary .nahmed-topic-card-test{--nahmed-topic:#8b6b20;--nahmed-topic-soft:#fbf6e8}
.nahmed-dictionary .nahmed-topic-card-procedure{--nahmed-topic:#9a4e74;--nahmed-topic-soft:#faeef4}
.nahmed-dictionary .nahmed-topic-card-anatomy{--nahmed-topic:#3d7393;--nahmed-topic-soft:#edf6fa}
.nahmed-dictionary .nahmed-topic-card-abbr{--nahmed-topic:#5c6475;--nahmed-topic-soft:#f1f3f6}

/* Lookup + A-Z */
.nahmed-dictionary .nahmed-workbench{padding:clamp(18px,2.2vw,26px);background:var(--nahmed-surface-2);border-radius:0 0 28px 28px}
.nahmed-dictionary .nahmed-lookup-nav{margin-bottom:15px}
.nahmed-dictionary .nahmed-active-filter{display:inline-flex;align-items:center;max-width:52%;padding:7px 10px;border-radius:999px;background:var(--nahmed-primary-soft);color:var(--nahmed-primary-strong);font-size:12px;font-weight:800;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nahmed-dictionary .nahmed-az{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;width:100%!important;margin:0!important;padding:5px 1px 8px!important;overflow-x:auto!important;overflow-y:hidden!important;border:0!important;background:transparent!important;scrollbar-width:thin;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}
.nahmed-dictionary .nahmed-az button{flex:0 0 35px!important;width:35px!important;min-width:35px!important;height:35px!important;margin:0!important;padding:0!important;border:1px solid var(--nahmed-line)!important;border-radius:11px!important;background:#fff!important;color:#577084!important;font-size:12px!important;font-weight:850!important;line-height:35px!important;text-align:center!important;cursor:pointer!important;box-shadow:none!important;transition:background .15s ease,border-color .15s ease,color .15s ease,transform .15s ease!important}
.nahmed-dictionary .nahmed-az button:hover{border-color:rgba(11,111,143,.28)!important;color:var(--nahmed-primary)!important;transform:translateY(-1px)}
.nahmed-dictionary .nahmed-az button.is-active{border-color:var(--nahmed-primary)!important;background:var(--nahmed-primary)!important;color:#fff!important;box-shadow:0 5px 13px rgba(11,111,143,.18)!important}
.nahmed-dictionary .nahmed-az.is-dragging{cursor:grabbing;user-select:none}

.nahmed-dictionary .nahmed-browser,.nahmed-dictionary .nahmed-browser-main{min-width:0}
.nahmed-dictionary .nahmed-result-meta{min-height:22px;margin:0 0 9px;color:#6f8494;font-size:13px;font-weight:650}
.nahmed-dictionary .nahmed-results{display:grid;gap:10px}
.nahmed-dictionary .nahmed-entry{overflow:hidden;border:1px solid var(--nahmed-line);border-radius:17px;background:var(--nahmed-surface);box-shadow:var(--nahmed-card-shadow);transition:border-color .16s ease,box-shadow .16s ease}
.nahmed-dictionary .nahmed-entry:hover{border-color:rgba(11,111,143,.22);box-shadow:0 10px 28px rgba(18,32,51,.075)}
.nahmed-dictionary .nahmed-entry.is-expanded{border-color:rgba(11,111,143,.28);box-shadow:0 12px 32px rgba(18,32,51,.085)}
.nahmed-dictionary .nahmed-entry-button{display:block!important;width:100%!important;margin:0!important;padding:16px 18px!important;border:0!important;border-radius:0!important;background:transparent!important;color:inherit!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-entry-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.nahmed-dictionary .nahmed-entry-title{min-width:0}
.nahmed-dictionary .nahmed-entry h2{margin:0!important;color:var(--nahmed-primary-strong)!important;font-size:20px!important;font-weight:850!important;line-height:1.25!important;letter-spacing:-.015em!important;overflow-wrap:anywhere}
.nahmed-dictionary .nahmed-ipa{margin:4px 0 0!important;color:#8a9baa!important;font-family:"Segoe UI Symbol","Noto Sans",sans-serif!important;font-size:13px!important;line-height:1.35!important}
.nahmed-dictionary .nahmed-meaning{margin:9px 0 0!important;color:#263c4f!important;font-size:15.5px!important;line-height:1.55!important}
.nahmed-dictionary .nahmed-entry-summary-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:11px}
.nahmed-dictionary .nahmed-badges{display:flex;flex-wrap:wrap;gap:5px;margin:0!important}
.nahmed-dictionary .nahmed-badges span,.nahmed-dictionary .nahmed-review-label{display:inline-flex;align-items:center;min-height:24px;padding:4px 8px;border-radius:999px;background:var(--nahmed-primary-soft);color:var(--nahmed-primary-strong);font-size:10.5px;font-weight:750;line-height:1.2}
.nahmed-dictionary .nahmed-review-label{flex:0 0 auto;background:#fff5df;color:#886018}
.nahmed-dictionary .nahmed-open-label{flex:0 0 auto;color:var(--nahmed-primary);font-size:11.5px;font-weight:850;white-space:nowrap}
.nahmed-dictionary .nahmed-close-text{display:none}
.nahmed-dictionary .nahmed-entry-button[aria-expanded="true"] .nahmed-open-text{display:none}
.nahmed-dictionary .nahmed-entry-button[aria-expanded="true"] .nahmed-close-text{display:inline}
.nahmed-dictionary .nahmed-entry-detail{margin:0;padding:0 18px 18px;border-top:1px solid var(--nahmed-line);background:linear-gradient(180deg,#fbfdfe,#fff)}
.nahmed-dictionary .nahmed-detail-loading,.nahmed-dictionary .nahmed-detail-empty{padding:16px 0;color:var(--nahmed-muted);font-size:13px}
.nahmed-dictionary .nahmed-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.nahmed-dictionary .nahmed-detail-grid-secondary{grid-template-columns:repeat(2,minmax(0,1fr))}
.nahmed-dictionary .nahmed-detail-card{min-width:0;margin:0!important;padding:13px 14px;border:1px solid #e1eaf0;border-radius:14px;background:#fff}
.nahmed-dictionary .nahmed-detail-card h3{margin:0 0 6px!important;color:#1e3a4e!important;font-size:13px!important;font-weight:850!important;line-height:1.35!important}
.nahmed-dictionary .nahmed-detail-card-body,.nahmed-dictionary .nahmed-detail-card-body p,.nahmed-dictionary .nahmed-detail-card-body li{color:#40576a;font-size:13px;line-height:1.6}
.nahmed-dictionary .nahmed-detail-card-body p{margin:5px 0!important}
.nahmed-dictionary .nahmed-detail-card-body ul,.nahmed-dictionary .nahmed-detail-card-body ol{margin:6px 0!important;padding-left:20px!important}
.nahmed-dictionary .nahmed-detail-facts{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0 0}
.nahmed-dictionary .nahmed-detail-fact{display:inline-flex;gap:5px;padding:6px 8px;border-radius:10px;background:#eef5f8;color:#426176;font-size:11.5px;line-height:1.3}
.nahmed-dictionary .nahmed-detail-fact strong{color:#29495f}
.nahmed-dictionary .nahmed-examples{display:grid;gap:7px}
.nahmed-dictionary .nahmed-examples>div{padding:9px 10px;border-radius:10px;background:#f2f7fa}
.nahmed-dictionary .nahmed-secondary-details,.nahmed-dictionary .nahmed-source-details{margin-top:10px;border:1px solid var(--nahmed-line);border-radius:13px;background:#fff}
.nahmed-dictionary .nahmed-secondary-details summary,.nahmed-dictionary .nahmed-source-details summary{padding:10px 12px;color:#385469;font-size:12.5px;font-weight:800;cursor:pointer}
.nahmed-dictionary .nahmed-secondary-details>p,.nahmed-dictionary .nahmed-secondary-details>ol,.nahmed-dictionary .nahmed-secondary-details>ul,.nahmed-dictionary .nahmed-source-details>ul{margin:0!important;padding:0 28px 12px!important;color:#496174;font-size:12.5px;line-height:1.6}
.nahmed-dictionary .nahmed-source-details li,.nahmed-dictionary .nahmed-references li{margin:5px 0}
.nahmed-dictionary .nahmed-source-details a,.nahmed-dictionary .nahmed-references a{color:var(--nahmed-primary)!important;text-decoration:none!important;overflow-wrap:anywhere}
.nahmed-dictionary .nahmed-source-details a:hover,.nahmed-dictionary .nahmed-references a:hover{text-decoration:underline!important}
.nahmed-dictionary .nahmed-source-permalink,.nahmed-dictionary .nahmed-source-location{margin-top:3px;color:#8a9aaa;font-size:10.5px}
.nahmed-dictionary .nahmed-admin-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px;padding-top:12px;border-top:1px dashed var(--nahmed-line)}
.nahmed-dictionary .nahmed-admin-edit,.nahmed-dictionary .nahmed-admin-delete{display:inline-flex!important;align-items:center!important;min-height:36px!important;padding:7px 11px!important;border:1px solid var(--nahmed-line)!important;border-radius:10px!important;background:#fff!important;color:#39566b!important;font-size:12px!important;font-weight:750!important;text-decoration:none!important;cursor:pointer!important}
.nahmed-dictionary .nahmed-admin-delete{color:#a33e3e!important}

.nahmed-dictionary .nahmed-loading,.nahmed-dictionary .nahmed-empty{padding:34px 20px;border:1px dashed #d8e3ea;border-radius:16px;background:#fff;color:#7a8d9c;text-align:center;font-size:13.5px}
.nahmed-dictionary .nahmed-api-diagnostic{margin-top:7px;color:#9a6971;font-size:11px}
.nahmed-dictionary .nahmed-pagination{display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important;padding:20px 0 2px!important}
.nahmed-dictionary .nahmed-pagination>:not(.nahmed-load-more):not(.nahmed-pagination-status){display:none!important}
.nahmed-dictionary .nahmed-load-more{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:136px!important;min-height:42px!important;padding:9px 18px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,var(--nahmed-primary),#1687a4)!important;color:#fff!important;cursor:pointer!important;box-shadow:0 8px 18px rgba(11,111,143,.17)!important}
.nahmed-dictionary .nahmed-load-more-label{display:inline!important;color:#fff!important;font-size:12px!important;font-weight:850!important;line-height:1.2!important;text-transform:uppercase!important;letter-spacing:.03em!important;visibility:visible!important;opacity:1!important}
.nahmed-dictionary .nahmed-pagination-status{display:inline-flex;align-items:center;padding:7px 10px;border-radius:999px;background:#eef5f8;color:#688092;font-size:11.5px;font-weight:700}

/* Local dark mode. No global html/body mutation in embedded mode. */
.nahmed-dictionary.nahmed-theme-dark{
  --nahmed-bg:#08131e;
  --nahmed-surface:#111f2d;
  --nahmed-surface-2:#0c1824;
  --nahmed-text:#e7f0f7;
  --nahmed-muted:#9eb0bf;
  --nahmed-line:#253746;
  --nahmed-primary:#67c5da;
  --nahmed-primary-strong:#91d8e7;
  --nahmed-primary-soft:#153443;
  --nahmed-blue:#76b8ee;
  --nahmed-shadow:0 18px 52px rgba(0,0,0,.28);
  --nahmed-card-shadow:0 8px 24px rgba(0,0,0,.18);
  color-scheme:dark;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-app-shell{border-color:#203543;background:linear-gradient(180deg,#101f2d,#0b1722)}
.nahmed-dictionary.nahmed-theme-dark .nahmed-app-header{border-bottom-color:#213645;background:radial-gradient(circle at 85% -20%,rgba(74,179,201,.16),transparent 36%),linear-gradient(135deg,#102735 0%,#102330 48%,#101d2b 100%)}
.nahmed-dictionary.nahmed-theme-dark .nahmed-brand-mark,.nahmed-dictionary.nahmed-theme-dark .nahmed-brand-logo{background:#f8fbfd!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-brand-copy strong{color:#e9f4fa}
.nahmed-dictionary.nahmed-theme-dark .nahmed-primary-search{border-color:#2a4353;background:#101e2b;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.nahmed-dictionary.nahmed-theme-dark input.nahmed-search{color:#e9f2f8!important}
.nahmed-dictionary.nahmed-theme-dark input.nahmed-search::placeholder{color:#778d9e}
.nahmed-dictionary.nahmed-theme-dark .nahmed-menu-trigger{border-color:#2b4657!important;background:#10202e!important;color:#d9e9f2!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-app-menu{border-color:#294151;background:rgba(14,28,40,.98)}
.nahmed-dictionary.nahmed-theme-dark .nahmed-menu-item{color:#deebf3!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-menu-item:hover{background:#173341!important;color:#a8e2ee!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-menu-glyph{background:#183341;color:#90d9e8}
.nahmed-dictionary.nahmed-theme-dark .nahmed-author-panel{border-top-color:#294151;color:#9db0bf}
.nahmed-dictionary.nahmed-theme-dark .nahmed-author-panel strong{color:#e8f1f6}
.nahmed-dictionary.nahmed-theme-dark .nahmed-header-summary{border-top-color:#234052}
.nahmed-dictionary.nahmed-theme-dark .nahmed-corpus-count{border-color:#2b4657;background:#122635;color:#9fb2c0!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-corpus-count strong{color:#9be2ee}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-section{border-bottom-color:#263847;background:#101d29}
.nahmed-dictionary.nahmed-theme-dark .nahmed-section-heading h2,.nahmed-dictionary.nahmed-theme-dark .nahmed-lookup-heading h2{color:#edf5f9!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-reset{border-color:#2c4353!important;background:#11212f!important;color:#9edce8!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card{border-color:#263a49!important;background:linear-gradient(145deg,#132332,#101d29)!important;color:#e5eff5!important;box-shadow:0 4px 14px rgba(0,0,0,.12)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card.is-active{border-color:var(--nahmed-topic)!important;background:linear-gradient(145deg,color-mix(in srgb,var(--nahmed-topic) 18%,#10202c),#101d29)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-copy strong{color:#e2edf4}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-copy small{color:#91a6b5}
.nahmed-dictionary.nahmed-theme-dark .nahmed-workbench{background:#0b1722}
.nahmed-dictionary.nahmed-theme-dark .nahmed-az button{border-color:#273c4b!important;background:#111f2d!important;color:#9eb1bf!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-entry{border-color:#263947;background:#111f2d;box-shadow:0 8px 24px rgba(0,0,0,.16)}
.nahmed-dictionary.nahmed-theme-dark .nahmed-entry h2{color:#92d9e6!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-meaning{color:#d3e0e8!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-entry-detail{border-top-color:#263947;background:linear-gradient(180deg,#0f1d2a,#111f2d)}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-card,.nahmed-dictionary.nahmed-theme-dark .nahmed-secondary-details,.nahmed-dictionary.nahmed-theme-dark .nahmed-source-details{border-color:#2a3d4b;background:#132431}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-card h3{color:#d8e9f2!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-card-body,.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-card-body p,.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-card-body li{color:#bdd0dc}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-fact,.nahmed-dictionary.nahmed-theme-dark .nahmed-examples>div{background:#172d3a;color:#b6cbd7}
.nahmed-dictionary.nahmed-theme-dark .nahmed-loading,.nahmed-dictionary.nahmed-theme-dark .nahmed-empty{border-color:#2a3c49;background:#111f2d;color:#9fb2c0}


/* Desktop safe zone: reserve side gutters for NAH Search Dock Pro / host navigation. */
@media(min-width:981px){
  .nahmed-dictionary{width:88%;max-width:1080px}
  .nahmed-standalone-body .nahmed-dictionary{width:90%;max-width:1160px}
}

/* Responsive layout */
@media(max-width:980px){
  .nahmed-dictionary .nahmed-topbar{grid-template-columns:auto minmax(0,1fr) auto}
  .nahmed-dictionary .nahmed-brand-copy{display:none}
  .nahmed-dictionary .nahmed-brand-mark{flex-basis:50px!important;width:50px!important;height:50px!important;min-width:50px!important;min-height:50px!important}
  .nahmed-dictionary .nahmed-topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .nahmed-dictionary{padding:0;max-width:none}
  .nahmed-dictionary .nahmed-app-shell{border-left:0;border-right:0;border-radius:0;box-shadow:none}
  .nahmed-dictionary .nahmed-app-header{padding:12px;border-radius:0}
  .nahmed-dictionary .nahmed-topbar{grid-template-columns:44px minmax(0,1fr) 44px;gap:8px}
  .nahmed-dictionary .nahmed-brand-mark{flex-basis:44px!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:4px!important;border-radius:13px!important}
  .nahmed-dictionary .nahmed-primary-search{grid-template-columns:36px minmax(0,1fr);height:46px;border-radius:14px}
  .nahmed-dictionary button.nahmed-search-button{display:none!important}
  .nahmed-dictionary .nahmed-search-icon svg{width:18px;height:18px}
  .nahmed-dictionary input.nahmed-search{padding-right:8px!important;font-size:14px!important}
  .nahmed-dictionary .nahmed-menu-trigger{width:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border-radius:13px!important}
  .nahmed-dictionary .nahmed-menu-label{display:none}
  .nahmed-dictionary .nahmed-app-menu{position:fixed;top:66px;right:10px;width:min(290px,calc(100vw - 20px));z-index:10000}
  .nahmed-dictionary .nahmed-header-summary{align-items:flex-start;margin-top:12px;padding-top:12px}
  .nahmed-dictionary .nahmed-kicker{font-size:9.5px!important;letter-spacing:.07em!important}
  .nahmed-dictionary .nahmed-header-description{font-size:12.5px!important;line-height:1.45!important}
  .nahmed-dictionary .nahmed-corpus-count{padding:6px 8px;font-size:10.5px}
  .nahmed-dictionary .nahmed-corpus-count strong{font-size:15px}
  .nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-workbench{padding:15px 12px}
  .nahmed-dictionary .nahmed-workbench{border-radius:0}
  .nahmed-dictionary .nahmed-section-heading,.nahmed-dictionary .nahmed-lookup-heading{align-items:center;margin-bottom:11px}
  .nahmed-dictionary .nahmed-section-heading h2,.nahmed-dictionary .nahmed-lookup-heading h2{font-size:17px!important}
  .nahmed-dictionary .nahmed-topic-grid{display:flex;gap:9px;overflow-x:auto;padding:1px 1px 7px;scroll-snap-type:x proximity;scrollbar-width:none}
  .nahmed-dictionary .nahmed-topic-grid::-webkit-scrollbar{display:none}
  .nahmed-dictionary .nahmed-topic-card{flex:0 0 min(82vw,300px)!important;min-height:84px!important;scroll-snap-align:start}
  .nahmed-dictionary .nahmed-active-filter{max-width:48%;font-size:10.5px}
  .nahmed-dictionary .nahmed-az{gap:7px!important;padding-bottom:9px!important;scrollbar-width:none}
  .nahmed-dictionary .nahmed-az::-webkit-scrollbar{display:none}
  .nahmed-dictionary .nahmed-entry-button{padding:14px!important}
  .nahmed-dictionary .nahmed-entry h2{font-size:18px!important}
  .nahmed-dictionary .nahmed-meaning{font-size:14px!important}
  .nahmed-dictionary .nahmed-entry-summary-footer{align-items:center}
  .nahmed-dictionary .nahmed-badges{max-width:72%}
  .nahmed-dictionary .nahmed-entry-detail{padding:0 14px 14px}
  .nahmed-dictionary .nahmed-detail-grid,.nahmed-dictionary .nahmed-detail-grid-secondary{grid-template-columns:1fr}
}
@media(max-width:430px){
  .nahmed-dictionary .nahmed-header-summary{display:block}
  .nahmed-dictionary .nahmed-corpus-count{display:inline-flex;margin-top:9px!important}
  .nahmed-dictionary .nahmed-topic-reset{padding:6px 9px!important;font-size:11px!important}
  .nahmed-dictionary .nahmed-topic-card{flex-basis:86vw!important;grid-template-columns:42px minmax(0,1fr) 18px!important;padding:12px!important}
  .nahmed-dictionary .nahmed-topic-icon{width:42px;height:42px}
}
@media(prefers-reduced-motion:reduce){
  .nahmed-dictionary *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

.nahmed-dictionary:fullscreen{width:100vw!important;max-width:none!important;height:100vh!important;max-height:none!important;margin:0!important;padding:12px!important;overflow:auto!important;background:var(--nahmed-bg)!important}
.nahmed-standalone-body.nahmed-dark{background:#08131e;color:#e7f0f7}


/* ==========================================================
   v1.6 — Desktop Density & Dictionary Reading Experience
   Frontend-only. Keeps the v1.5 safe desktop width unchanged.
   ========================================================== */
.nahmed-dictionary .nahmed-entry-meta-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
  margin-top:7px;
}
.nahmed-dictionary .nahmed-entry-meta-line .nahmed-meaning{margin:0!important}
.nahmed-dictionary .nahmed-meta-separator{color:#a6b3bd;font-size:13px;font-weight:800;line-height:1}
.nahmed-dictionary .nahmed-open-arrow{display:inline-block;margin-left:2px;font-size:15px;line-height:1;transform:translateY(1px)}

@media(min-width:981px){
  /* Preserve v1.2+ Search Dock safe zone exactly. */
  .nahmed-dictionary{width:88%;max-width:1080px}
  .nahmed-standalone-body .nahmed-dictionary{width:90%;max-width:1160px}

  /* Compact A–Z / result rhythm without changing information architecture. */
  .nahmed-dictionary .nahmed-workbench{padding-top:20px;padding-bottom:21px}
  .nahmed-dictionary .nahmed-lookup-nav{margin-bottom:11px}
  .nahmed-dictionary .nahmed-result-meta{min-height:19px;margin-bottom:6px;font-size:12px}

  /* One unified dictionary sheet instead of a stack of floating cards. */
  .nahmed-dictionary .nahmed-results{
    display:block;
    overflow:hidden;
    border:1px solid var(--nahmed-line);
    border-radius:15px;
    background:var(--nahmed-surface);
    box-shadow:0 5px 16px rgba(18,32,51,.035);
  }
  .nahmed-dictionary .nahmed-entry{
    overflow:hidden;
    margin:0!important;
    border:0;
    border-bottom:1px solid #e7edf1;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    transition:background .14s ease,border-color .14s ease;
  }
  .nahmed-dictionary .nahmed-entry:last-child{border-bottom:0}
  .nahmed-dictionary .nahmed-entry:hover{border-color:#e7edf1;background:#fbfdfe;box-shadow:none}
  .nahmed-dictionary .nahmed-entry.is-expanded{border-color:#dfe9ee;background:#fff;box-shadow:inset 3px 0 0 rgba(11,111,143,.40)}
  .nahmed-dictionary .nahmed-entry-button{
    padding:10px 15px 9px!important;
  }
  .nahmed-dictionary .nahmed-entry-heading{gap:9px}
  .nahmed-dictionary .nahmed-entry h2{
    font-size:17px!important;
    line-height:1.22!important;
    letter-spacing:-.012em!important;
  }
  .nahmed-dictionary .nahmed-ipa{
    margin:2px 0 0!important;
    font-size:11.5px!important;
    line-height:1.25!important;
  }
  .nahmed-dictionary .nahmed-entry-meta-line{
    flex-wrap:nowrap;
    gap:6px;
    margin-top:5px;
    min-height:22px;
  }
  .nahmed-dictionary .nahmed-meaning{
    flex:0 1 auto;
    min-width:0;
    color:#31495b!important;
    font-size:13.5px!important;
    font-weight:690!important;
    line-height:1.35!important;
  }
  .nahmed-dictionary .nahmed-badges{
    display:flex;
    flex:0 1 auto;
    flex-wrap:nowrap;
    gap:4px;
    min-width:0;
    max-width:52%;
  }
  .nahmed-dictionary .nahmed-badges span,
  .nahmed-dictionary .nahmed-review-label{
    min-height:20px;
    padding:3px 6px;
    border-radius:7px;
    font-size:9.5px;
    line-height:1.15;
  }
  .nahmed-dictionary .nahmed-review-label{margin-top:1px}
  .nahmed-dictionary .nahmed-open-label{
    margin-left:auto;
    padding-left:10px;
    font-size:10.5px;
    line-height:1.2;
  }
  .nahmed-dictionary .nahmed-open-label:hover{text-decoration:underline}
  .nahmed-dictionary .nahmed-entry-detail{
    padding:0 15px 14px;
    border-top:1px solid #edf1f4;
    background:linear-gradient(180deg,#fbfdfe,#fff);
  }
  .nahmed-dictionary .nahmed-detail-grid{margin-top:11px}
  .nahmed-dictionary .nahmed-pagination{margin-top:14px}
}

/* New markup stays comfortably tappable on tablet/mobile. */
@media(max-width:980px){
  .nahmed-dictionary .nahmed-entry-meta-line{align-items:flex-end;margin-top:9px}
  .nahmed-dictionary .nahmed-entry-meta-line .nahmed-meaning{flex:1 0 100%;font-size:14px!important}
  .nahmed-dictionary .nahmed-meta-separator{display:none}
  .nahmed-dictionary .nahmed-open-label{margin-left:auto}
}

.nahmed-dictionary.nahmed-theme-dark .nahmed-meta-separator{color:#687e8e}
@media(min-width:981px){
  .nahmed-dictionary.nahmed-theme-dark .nahmed-results{border-color:#263947;background:#111f2d;box-shadow:0 5px 16px rgba(0,0,0,.12)}
  .nahmed-dictionary.nahmed-theme-dark .nahmed-entry{border-bottom-color:#263947;background:transparent}
  .nahmed-dictionary.nahmed-theme-dark .nahmed-entry:hover{border-color:#263947;background:#132431;box-shadow:none}
  .nahmed-dictionary.nahmed-theme-dark .nahmed-entry.is-expanded{background:#111f2d;box-shadow:inset 3px 0 0 rgba(91,188,210,.55)}
  .nahmed-dictionary.nahmed-theme-dark .nahmed-meaning{color:#c4d5df!important}
  .nahmed-dictionary.nahmed-theme-dark .nahmed-entry-detail{border-top-color:#263947;background:linear-gradient(180deg,#0f1d2a,#111f2d)}
}


/* ==========================================================
   v2.3.4 — Responsive Detail Workspace
   Expanded entries use the full result-sheet width. Desktop uses
   responsive multi-column cards; mobile remains one readable FULL-width
   column rather than a narrow inset column.
   ========================================================== */
.nahmed-dictionary .nahmed-entry-detail{
  width:100%!important;
  max-width:none!important;
  min-width:0!important;
  box-sizing:border-box!important;
}
.nahmed-dictionary .nahmed-entry-detail > *{
  max-width:none!important;
}
.nahmed-dictionary .nahmed-detail-grid,
.nahmed-dictionary .nahmed-detail-grid-secondary{
  width:100%!important;
  max-width:none!important;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))!important;
  align-items:start;
}
.nahmed-dictionary .nahmed-detail-card{
  width:100%!important;
  max-width:none!important;
  height:100%;
}
.nahmed-dictionary .nahmed-secondary-details,
.nahmed-dictionary .nahmed-source-details,
.nahmed-dictionary .nahmed-detail-facts,
.nahmed-dictionary .nahmed-admin-actions{
  width:100%!important;
  max-width:none!important;
}
@media(min-width:1180px){
  .nahmed-standalone-body .nahmed-dictionary .nahmed-detail-grid,
  .nahmed-standalone-body .nahmed-dictionary .nahmed-detail-grid-secondary{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(min-width:701px) and (max-width:980px){
  .nahmed-dictionary .nahmed-detail-grid,
  .nahmed-dictionary .nahmed-detail-grid-secondary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-entry-detail{
    margin:0!important;
    padding:0 12px 14px!important;
  }
  .nahmed-dictionary .nahmed-detail-grid,
  .nahmed-dictionary .nahmed-detail-grid-secondary{
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    width:100%!important;
    gap:9px!important;
  }
  .nahmed-dictionary .nahmed-detail-card{
    min-width:0!important;
    padding:13px 12px!important;
  }
  .nahmed-dictionary .nahmed-detail-card-body,
  .nahmed-dictionary .nahmed-detail-card-body p,
  .nahmed-dictionary .nahmed-detail-card-body li{
    overflow-wrap:anywhere;
    word-break:normal;
  }
  .nahmed-dictionary .nahmed-detail-fact{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
  }
}


/* ==========================================================
   v2.3.5 — Full-width Definition + Readability Hotfix
   The primary definition is a narrative block, not a dashboard tile.
   It must span the entire expanded result width on every viewport.
   Any detail grid with only one card also expands that card full width.
   ========================================================== */
.nahmed-dictionary .nahmed-detail-grid > .nahmed-definition-card,
.nahmed-dictionary .nahmed-detail-grid > .nahmed-detail-card:only-child{
  grid-column:1 / -1!important;
  width:100%!important;
  max-width:none!important;
}
.nahmed-dictionary .nahmed-detail-card{
  padding:16px 18px!important;
}
.nahmed-dictionary .nahmed-detail-card h3{
  margin-bottom:8px!important;
  font-size:15.5px!important;
  line-height:1.4!important;
}
.nahmed-dictionary .nahmed-detail-card-body,
.nahmed-dictionary .nahmed-detail-card-body p,
.nahmed-dictionary .nahmed-detail-card-body li{
  font-size:15.5px!important;
  line-height:1.72!important;
}
.nahmed-dictionary .nahmed-detail-card-body p{
  margin:7px 0!important;
}
.nahmed-dictionary .nahmed-detail-card-body ul,
.nahmed-dictionary .nahmed-detail-card-body ol{
  margin:8px 0!important;
  padding-left:23px!important;
}
.nahmed-dictionary .nahmed-detail-fact{
  font-size:13.5px!important;
  line-height:1.45!important;
  padding:7px 9px!important;
}
.nahmed-dictionary .nahmed-secondary-details summary,
.nahmed-dictionary .nahmed-source-details summary{
  font-size:14px!important;
  line-height:1.45!important;
}
.nahmed-dictionary .nahmed-secondary-details>p,
.nahmed-dictionary .nahmed-secondary-details>ol,
.nahmed-dictionary .nahmed-secondary-details>ul,
.nahmed-dictionary .nahmed-source-details>ul{
  font-size:14.5px!important;
  line-height:1.7!important;
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-entry-detail{
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .nahmed-dictionary .nahmed-detail-card{
    padding:14px 13px!important;
    border-radius:12px!important;
  }
  .nahmed-dictionary .nahmed-detail-card h3{
    font-size:15.5px!important;
  }
  .nahmed-dictionary .nahmed-detail-card-body,
  .nahmed-dictionary .nahmed-detail-card-body p,
  .nahmed-dictionary .nahmed-detail-card-body li{
    font-size:15.5px!important;
    line-height:1.7!important;
  }
  .nahmed-dictionary .nahmed-secondary-details summary,
  .nahmed-dictionary .nahmed-source-details summary{
    font-size:14px!important;
  }
  .nahmed-dictionary .nahmed-secondary-details>p,
  .nahmed-dictionary .nahmed-secondary-details>ol,
  .nahmed-dictionary .nahmed-secondary-details>ul,
  .nahmed-dictionary .nahmed-source-details>ul{
    font-size:14.5px!important;
  }
}

/* ==========================================================================
 * v2.3.6 — Unified Fullscreen Host Canvas
 * Removes the legacy 1080/1160px outer cap. Desktop consumes the canonical
 * host canvas/right-rail tokens; mobile removes the decorative outer frame.
 * ========================================================================== */
.nahmed-dictionary{
  --nahmed-unified-canvas-max:var(--med-host-canvas-max,clamp(1480px,90vw,3000px));
  --nahmed-unified-gutter:var(--med-host-gutter,clamp(20px,2.35vw,48px));
  --nahmed-unified-rail:var(--med-host-right-rail-safe,0px);
  box-sizing:border-box!important;
  min-width:0!important;
}
@media (min-width:1200px){
  .nahmed-dictionary{
    width:min(var(--nahmed-unified-canvas-max),calc(100vw - var(--nahmed-unified-rail) - var(--nahmed-unified-gutter) - var(--nahmed-unified-gutter)))!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw + max(var(--nahmed-unified-gutter),calc((100vw - var(--nahmed-unified-rail) - var(--nahmed-unified-canvas-max))/2)))!important;
    margin-right:0!important;
    padding:0!important;
  }
  .nahmed-standalone-body .nahmed-dictionary{
    margin-left:max(var(--nahmed-unified-gutter),calc((100vw - var(--nahmed-unified-rail) - var(--nahmed-unified-canvas-max))/2))!important;
  }
  .nahmed-app-shell,
  .nahmed-workbench,
  .nahmed-workbench > *{
    min-width:0!important;
    max-width:none!important;
    box-sizing:border-box!important;
  }
}
@media (min-width:768px) and (max-width:1199px){
  .nahmed-dictionary{
    width:calc(100vw - 24px)!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw + 12px)!important;
    margin-right:0!important;
    padding:0!important;
  }
  .nahmed-standalone-body .nahmed-dictionary{margin-left:12px!important;}
}
@media (max-width:767px){
  .nahmed-dictionary,
  .nahmed-standalone-body .nahmed-dictionary{
    width:100vw!important;
    max-width:none!important;
    margin-left:calc(50% - 50vw)!important;
    margin-right:0!important;
    padding:0!important;
  }
  .nahmed-standalone-body .nahmed-dictionary{margin-left:0!important;}
  .nahmed-app-shell{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .nahmed-workbench{
    border-left:0!important;
    border-right:0!important;
    border-radius:0!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
  }
}


/* v2.3.8 — multiline reader-facing clinical definition points */
.nahmed-dictionary .nahmed-structured-points{
  margin:2px 0 0!important;
  padding-left:20px!important;
  display:grid;
  gap:7px;
}
.nahmed-dictionary .nahmed-structured-points li{
  margin:0!important;
  padding-left:2px;
  line-height:1.65!important;
}
.nahmed-dictionary .nahmed-structured-lines{
  display:grid;
  gap:7px;
}
.nahmed-dictionary .nahmed-structured-lines p{
  margin:0!important;
}

/* ==========================================================
   v2.4.0 — Minimalist Header + Topic-first Layout Refresh
   ========================================================== */
.nahmed-dictionary{
  --nahmed-bg:#ffffff;
  --nahmed-surface:#ffffff;
  --nahmed-surface-2:#ffffff;
  --nahmed-line:#dce8f0;
  max-width:1180px;
}
.nahmed-standalone-body{background:#ffffff}
.nahmed-standalone-body .nahmed-dictionary{max-width:1180px}

.nahmed-dictionary .nahmed-app-shell{
  border:0;
  border-radius:28px;
  background:radial-gradient(circle at 100% 0%,rgba(100,191,211,.12),transparent 22%), #ffffff;
  box-shadow:none;
}

.nahmed-dictionary .nahmed-app-header{
  position:sticky;
  top:var(--nahmed-sticky-offset);
  padding:16px 18px 10px;
  border-bottom:1px solid rgba(11,111,143,.10);
  border-radius:28px 28px 0 0;
  background:transparent;
  box-shadow:none;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
}

.nahmed-dictionary .nahmed-topbar{grid-template-columns:minmax(220px,280px) minmax(360px,1fr) auto;gap:14px}
.nahmed-dictionary .nahmed-brand{align-items:flex-start;gap:12px}
.nahmed-dictionary .nahmed-brand-copy{position:relative;display:block;min-width:0;padding-right:52px}
.nahmed-dictionary .nahmed-brand-eyebrow{display:none}
.nahmed-dictionary .nahmed-brand-copy strong{display:block;white-space:normal;font-size:16px;font-weight:850;line-height:1.18;color:#0d2a3d}
.nahmed-dictionary .nahmed-brand-version{position:absolute;top:0;right:0;color:#74889a;font-size:11px;font-weight:800;letter-spacing:.02em;line-height:1.2}

.nahmed-dictionary .nahmed-primary-search{height:52px;border-radius:16px;box-shadow:none;background:#ffffff}
.nahmed-dictionary .nahmed-menu-trigger{min-height:52px;border-radius:15px;box-shadow:none;background:#ffffff!important}

.nahmed-dictionary .nahmed-header-inline-summary{
  margin:12px 0 0 332px!important;
  color:#62778a!important;
  font-size:14px!important;
  line-height:1.45!important;
}
.nahmed-dictionary .nahmed-header-inline-summary strong{color:var(--nahmed-primary-strong);font-size:18px;font-weight:900;font-variant-numeric:tabular-nums}

.nahmed-dictionary .nahmed-az-strip{padding:12px 18px 10px;border-bottom:1px solid var(--nahmed-line);background:transparent}
.nahmed-dictionary .nahmed-az{gap:10px!important;padding:0!important;scrollbar-width:none}
.nahmed-dictionary .nahmed-az::-webkit-scrollbar{display:none}
.nahmed-dictionary .nahmed-az button{
  flex:0 0 34px!important;
  width:34px!important;
  min-width:34px!important;
  height:34px!important;
  border:0!important;
  border-radius:10px!important;
  background:transparent!important;
  color:#355572!important;
  box-shadow:none!important;
}
.nahmed-dictionary .nahmed-az button:hover{background:#f2f7fb!important;border-color:transparent!important;transform:none;color:var(--nahmed-primary)!important}
.nahmed-dictionary .nahmed-az button.is-active{background:var(--nahmed-primary)!important;color:#fff!important;border-color:transparent!important;box-shadow:none!important}

.nahmed-dictionary .nahmed-topic-section{padding:20px 18px 18px;border-bottom:1px solid var(--nahmed-line);background:transparent}
.nahmed-dictionary .nahmed-workbench{padding:18px;background:transparent;border-radius:0 0 28px 28px}
.nahmed-dictionary .nahmed-results-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.nahmed-dictionary .nahmed-results-heading h2{margin:0!important;color:#0d2a3d!important;font-size:clamp(22px,2.4vw,25px)!important;font-weight:850!important;line-height:1.18!important;letter-spacing:-.02em!important}
.nahmed-dictionary .nahmed-result-meta{min-height:0;margin:4px 0 0!important;color:#708699;font-size:13px;font-weight:600}
.nahmed-dictionary .nahmed-active-filter{align-self:flex-start;max-width:40%;margin-top:3px}

/* Result cards: compact grid, minimalist summary */
.nahmed-dictionary .nahmed-results{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  overflow:visible;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
}
.nahmed-dictionary .nahmed-entry{
  overflow:hidden;
  border:1px solid var(--nahmed-line);
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 4px 14px rgba(18,32,51,.035);
}
.nahmed-dictionary .nahmed-entry:hover{transform:none;border-color:rgba(11,111,143,.24);box-shadow:0 10px 24px rgba(18,32,51,.06)}
.nahmed-dictionary .nahmed-entry-button{padding:14px 16px!important;min-height:122px}
.nahmed-dictionary .nahmed-entry-heading{display:block}
.nahmed-dictionary .nahmed-review-label{display:none}
.nahmed-dictionary .nahmed-entry h2{margin:0!important;color:#0a6aa0!important;font-size:14px!important;font-weight:850!important;line-height:1.25!important}
.nahmed-dictionary .nahmed-ipa{margin:4px 0 0!important;color:#8b9caf!important;font-size:12px!important;line-height:1.35!important}
.nahmed-dictionary .nahmed-entry-meta-line{display:grid;grid-template-columns:minmax(0,1fr) 14px;align-items:start;gap:10px;margin-top:8px}
.nahmed-dictionary .nahmed-meaning{margin:0!important;color:#30465b!important;font-size:14px!important;line-height:1.5!important}
.nahmed-dictionary .nahmed-meta-separator,
.nahmed-dictionary .nahmed-badges{display:none!important}
.nahmed-dictionary .nahmed-open-label{display:grid;place-items:center;align-self:center;margin-left:0!important;color:#5e7a90;font-size:18px;font-weight:700;line-height:1}
.nahmed-dictionary .nahmed-open-text,
.nahmed-dictionary .nahmed-close-text{display:inline!important;font-size:0!important;line-height:0}
.nahmed-dictionary .nahmed-open-text .nahmed-open-arrow,
.nahmed-dictionary .nahmed-close-text .nahmed-open-arrow{font-size:18px;line-height:1}
.nahmed-dictionary .nahmed-entry-button[aria-expanded="true"] .nahmed-open-label{color:var(--nahmed-primary)}
.nahmed-dictionary .nahmed-entry-detail{padding:0 16px 16px;border-top:1px solid rgba(11,111,143,.08);background:#fbfdfe}

.nahmed-dictionary .nahmed-pagination{display:flex;justify-content:center;padding-top:14px}
.nahmed-dictionary .nahmed-load-more{min-width:190px;padding:10px 16px!important;border:0!important;border-radius:999px!important;background:#eff6fb!important;color:var(--nahmed-primary)!important;font-size:14px!important;font-weight:800!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-load-more:hover{background:#e6f2f9!important}
.nahmed-dictionary .nahmed-pagination-status{color:#7b8f9f;font-size:12.5px;font-weight:600}

/* Simplify dark mode while keeping compatibility */
.nahmed-dictionary.nahmed-theme-dark .nahmed-app-shell{background:radial-gradient(circle at 100% 0%,rgba(62,154,180,.18),transparent 24%), #0b1722}
.nahmed-dictionary.nahmed-theme-dark .nahmed-workbench,
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-section,
.nahmed-dictionary.nahmed-theme-dark .nahmed-az-strip{background:transparent}
.nahmed-dictionary.nahmed-theme-dark .nahmed-results{background:transparent!important}

@media(min-width:981px){
  .nahmed-dictionary{width:92%;max-width:1180px}
  .nahmed-standalone-body .nahmed-dictionary{width:94%;max-width:1180px}
}

@media(max-width:980px){
  .nahmed-dictionary .nahmed-topbar{grid-template-columns:56px minmax(0,1fr) auto}
  .nahmed-dictionary .nahmed-brand-copy{display:block;padding-right:44px}
  .nahmed-dictionary .nahmed-brand-copy strong{font-size:15px}
  .nahmed-dictionary .nahmed-header-inline-summary{margin-left:0!important}
  .nahmed-dictionary .nahmed-results{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:700px){
  .nahmed-dictionary{padding:0;max-width:none}
  .nahmed-dictionary .nahmed-app-shell{border-radius:0}
  .nahmed-dictionary .nahmed-app-header{padding:12px 12px 10px;border-radius:0}
  .nahmed-dictionary .nahmed-topbar{grid-template-columns:48px minmax(0,1fr) 48px;gap:8px}
  .nahmed-dictionary .nahmed-brand-copy{padding-right:0}
  .nahmed-dictionary .nahmed-brand-copy strong{font-size:14px;max-width:118px}
  .nahmed-dictionary .nahmed-brand-version{position:static;display:block;margin-top:2px;font-size:10px}
  .nahmed-dictionary .nahmed-primary-search{grid-template-columns:36px minmax(0,1fr);height:46px}
  .nahmed-dictionary .nahmed-header-inline-summary{margin:10px 0 0!important;font-size:12.5px!important}
  .nahmed-dictionary .nahmed-header-inline-summary strong{font-size:16px}
  .nahmed-dictionary .nahmed-az-strip,
  .nahmed-dictionary .nahmed-topic-section,
  .nahmed-dictionary .nahmed-workbench{padding-left:12px;padding-right:12px}
  .nahmed-dictionary .nahmed-az-strip{padding-top:10px;padding-bottom:8px}
  .nahmed-dictionary .nahmed-results-heading{display:block}
  .nahmed-dictionary .nahmed-active-filter{display:inline-flex;margin-top:8px;max-width:100%}
  .nahmed-dictionary .nahmed-results{grid-template-columns:1fr}
  .nahmed-dictionary .nahmed-entry-button{min-height:unset}
}

@media(max-width:430px){
  .nahmed-dictionary .nahmed-topic-card{flex-basis:86vw!important}
  .nahmed-dictionary .nahmed-results-heading h2{font-size:20px!important}
}

/* ==========================================================
   v2.4.1 — Lean package + layout stabilization hotfix
   ========================================================== */
.nahmed-dictionary .nahmed-app-header{
  position:relative;
  top:auto;
  z-index:auto;
}
.nahmed-dictionary .nahmed-app-shell{display:flex;flex-direction:column}
.nahmed-dictionary .nahmed-topbar{align-items:start}
.nahmed-dictionary .nahmed-brand{align-items:center}
.nahmed-dictionary .nahmed-brand-copy{display:flex;align-items:center;min-width:0;padding-right:0}
.nahmed-dictionary .nahmed-brand-title-row{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap;line-height:1.15}
.nahmed-dictionary .nahmed-brand-copy strong{display:block;max-width:190px;white-space:normal}
.nahmed-dictionary .nahmed-brand-version{position:static;display:inline-flex;align-items:center;margin:1px 0 0;color:#74889a;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap}
.nahmed-dictionary .nahmed-header-inline-summary{margin:10px 0 0 290px!important}

/* Results should appear directly below the search / A-Z zone. */
.nahmed-dictionary .nahmed-workbench{order:1;border-bottom:1px solid var(--nahmed-line)}
.nahmed-dictionary .nahmed-topic-section{order:2;border-bottom:0}

/* Keep A–Z row stable when scrolling. */
.nahmed-dictionary .nahmed-az-strip{position:relative;z-index:1}

@media(max-width:980px){
  .nahmed-dictionary .nahmed-header-inline-summary{margin-left:0!important}
  .nahmed-dictionary .nahmed-brand-copy strong{max-width:170px}
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-app-header{padding-bottom:8px}
  .nahmed-dictionary .nahmed-brand{align-items:flex-start}
  .nahmed-dictionary .nahmed-brand-copy{display:block}
  .nahmed-dictionary .nahmed-brand-title-row{display:flex;gap:6px;align-items:flex-start}
  .nahmed-dictionary .nahmed-brand-copy strong{max-width:132px;font-size:13.5px}
  .nahmed-dictionary .nahmed-brand-version{margin-top:1px;font-size:10px}
  .nahmed-dictionary .nahmed-header-inline-summary{margin-top:8px!important}
}

/* ==========================================================
   v2.4.2 — Sticky header + menu overlay z-index hotfix
   ========================================================== */
.nahmed-dictionary .nahmed-app-shell{overflow:visible}
.nahmed-dictionary .nahmed-app-header{
  position:sticky;
  top:var(--nahmed-sticky-offset);
  z-index:10020;
  isolation:isolate;
  background:radial-gradient(circle at 100% 0%,rgba(100,191,211,.12),transparent 22%), rgba(255,255,255,.98);
  box-shadow:0 8px 22px rgba(18,32,51,.06);
  -webkit-backdrop-filter:saturate(1.02) blur(8px);
  backdrop-filter:saturate(1.02) blur(8px);
}
.nahmed-dictionary .nahmed-menu-wrap{z-index:10040}
.nahmed-dictionary .nahmed-app-menu{z-index:10050}
.nahmed-dictionary .nahmed-az-strip,
.nahmed-dictionary .nahmed-workbench,
.nahmed-dictionary .nahmed-topic-section{position:relative;z-index:1}

@media(max-width:700px){
  .nahmed-dictionary .nahmed-app-header{
    z-index:10030;
    padding-bottom:8px;
  }
  .nahmed-dictionary .nahmed-app-menu{
    top:calc(var(--nahmed-sticky-offset) + 58px);
    right:10px;
    z-index:10060;
  }
}

/* ==========================================================
   v2.4.3 — Mobile spacing, admin-bar sticky tuning, detail modal redesign
   ========================================================== */
body.nahmed-modal-open{overflow:hidden}

.nahmed-dictionary .nahmed-app-header{
  padding:10px 14px 8px;
}
.nahmed-dictionary .nahmed-app-menu{
  top:calc(100% + 8px);
  z-index:10100;
}
.nahmed-dictionary .nahmed-header-inline-summary{
  margin-top:8px!important;
}

/* Detail modal for long dictionary entries */
.nahmed-dictionary .nahmed-detail-modal{
  position:fixed;
  inset:0;
  z-index:10120;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.nahmed-dictionary .nahmed-detail-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,18,30,.46);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
}
.nahmed-dictionary .nahmed-detail-modal-dialog{
  position:relative;
  z-index:1;
  width:min(940px, calc(100vw - 40px));
  max-height:calc(100vh - 44px);
  overflow:hidden;
  border-radius:22px;
  background:#fff;
  box-shadow:0 28px 70px rgba(8,18,30,.22);
  display:flex;
  flex-direction:column;
}
.nahmed-dictionary .nahmed-detail-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:18px 20px 16px;
  border-bottom:1px solid rgba(11,111,143,.10);
  background:radial-gradient(circle at 100% 0%,rgba(100,191,211,.10),transparent 22%), #fff;
}
.nahmed-dictionary .nahmed-detail-modal-heading{min-width:0}
.nahmed-dictionary .nahmed-detail-modal-heading h3{
  margin:0!important;
  color:#0d2a3d!important;
  font-size:26px!important;
  font-weight:850!important;
  line-height:1.2!important;
  letter-spacing:-.02em!important;
  overflow-wrap:anywhere;
}
.nahmed-dictionary .nahmed-detail-modal-subtitle{
  margin:5px 0 0!important;
  color:#7890a3!important;
  font-size:13px!important;
  line-height:1.35!important;
}
.nahmed-dictionary .nahmed-detail-modal-meaning{
  margin:8px 0 0!important;
  color:#264357!important;
  font-size:15px!important;
  line-height:1.55!important;
}
.nahmed-dictionary .nahmed-detail-modal-close{
  flex:0 0 auto;
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  padding:0!important;
  border:1px solid rgba(11,111,143,.12)!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#355572!important;
  font-size:28px!important;
  line-height:1!important;
  cursor:pointer!important;
  box-shadow:none!important;
}
.nahmed-dictionary .nahmed-detail-modal-content{
  overflow:auto;
  padding:18px 20px 22px;
  background:#fbfdfe;
}
.nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card,
.nahmed-dictionary .nahmed-detail-modal-content .nahmed-secondary-details,
.nahmed-dictionary .nahmed-detail-modal-content .nahmed-source-details{
  background:#fff;
}

.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-dialog{background:#0f1d2a}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-header{border-bottom-color:#26404f;background:#10202d}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-heading h3{color:#e8f1f6!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-subtitle{color:#9db0bf!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-meaning{color:#c8d8e2!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-close{border-color:#294151!important;background:#122635!important;color:#dfeaf0!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-content{background:#0b1722}
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-content .nahmed-detail-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-content .nahmed-secondary-details,
.nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-content .nahmed-source-details{background:#132431}

@media(max-width:782px){
  body.admin-bar .nahmed-dictionary{--nahmed-sticky-offset:46px}
}

@media(max-width:700px){
  .nahmed-dictionary .nahmed-app-header{padding:8px 10px 8px}
  .nahmed-dictionary .nahmed-topbar{gap:6px}
  .nahmed-dictionary .nahmed-header-inline-summary{margin-top:6px!important;font-size:12px!important;line-height:1.35!important}
  .nahmed-dictionary .nahmed-header-inline-summary strong{font-size:15px}
  .nahmed-dictionary .nahmed-app-menu{
    position:fixed;
    top:calc(var(--nahmed-sticky-offset) + 52px);
    right:10px;
    width:min(286px, calc(100vw - 20px));
    z-index:10110;
  }
  .nahmed-dictionary .nahmed-detail-modal{
    padding:0;
    align-items:flex-end;
  }
  .nahmed-dictionary .nahmed-detail-modal-dialog{
    width:100%;
    max-height:none;
    height:min(100dvh, 100vh);
    border-radius:18px 18px 0 0;
  }
  .nahmed-dictionary .nahmed-detail-modal-header{padding:14px 14px 12px}
  .nahmed-dictionary .nahmed-detail-modal-heading h3{font-size:20px!important}
  .nahmed-dictionary .nahmed-detail-modal-meaning{font-size:14px!important}
  .nahmed-dictionary .nahmed-detail-modal-content{padding:14px 14px 20px}
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-grid{grid-template-columns:1fr}
}

/* ==========================================================
   v2.4.4 — Mobile / tablet header layout stabilization hotfix
   ========================================================== */
/* Tablet + mobile: prioritize clean logo mark + search + menu layout. */
@media (max-width:1180px){
  .nahmed-dictionary .nahmed-topbar{
    grid-template-columns:52px minmax(0,1fr) auto !important;
    align-items:center !important;
    gap:10px !important;
  }
  .nahmed-dictionary .nahmed-brand{
    align-items:center !important;
  }
  .nahmed-dictionary .nahmed-brand-copy{
    display:none !important;
  }
  .nahmed-dictionary .nahmed-brand-mark{
    flex-basis:52px !important;
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    min-height:52px !important;
  }
  .nahmed-dictionary .nahmed-primary-search{
    min-width:0;
  }
  .nahmed-dictionary .nahmed-header-inline-summary{
    margin:8px 0 0 !important;
    font-size:13px !important;
    line-height:1.4 !important;
  }
}

@media (max-width:900px){
  .nahmed-dictionary .nahmed-menu-label{
    display:none !important;
  }
  .nahmed-dictionary .nahmed-menu-trigger{
    width:48px !important;
    min-width:48px !important;
    padding:0 !important;
  }
}

@media (max-width:700px){
  .nahmed-dictionary .nahmed-app-header{
    padding:8px 10px 8px !important;
  }
  .nahmed-dictionary .nahmed-topbar{
    grid-template-columns:44px minmax(0,1fr) 44px !important;
    gap:8px !important;
  }
  .nahmed-dictionary .nahmed-brand-mark{
    flex-basis:44px !important;
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
    min-height:44px !important;
    padding:4px !important;
    border-radius:13px !important;
  }
  .nahmed-dictionary .nahmed-primary-search{
    height:44px !important;
    grid-template-columns:34px minmax(0,1fr) !important;
    border-radius:14px !important;
  }
  .nahmed-dictionary input.nahmed-search{
    font-size:14px !important;
  }
  .nahmed-dictionary .nahmed-header-inline-summary{
    margin-top:6px !important;
    font-size:12px !important;
  }
  .nahmed-dictionary .nahmed-header-inline-summary strong{
    font-size:15px !important;
  }
  .nahmed-dictionary .nahmed-app-menu{
    top:calc(var(--nahmed-sticky-offset) + 54px) !important;
    right:10px !important;
    width:min(280px, calc(100vw - 20px)) !important;
  }
}

/* ==========================================================
   v2.4.5 — Responsive density + phone detail viewer refinement
   ========================================================== */

/* Reduce vertical rhythm between summary and A–Z without crowding. */
.nahmed-dictionary .nahmed-header-inline-summary{
  margin-bottom:0!important;
}
.nahmed-dictionary .nahmed-az-strip{
  padding-top:8px;
}

/* Landscape tablet: preserve a wide, usable search field. */
@media (min-width:701px) and (max-width:1180px){
  .nahmed-dictionary .nahmed-app-header{
    padding:10px 14px 8px!important;
  }
  .nahmed-dictionary .nahmed-topbar{
    grid-template-columns:50px minmax(420px,1fr) 52px!important;
    gap:10px!important;
  }
  .nahmed-dictionary .nahmed-brand-mark{
    width:50px!important;
    height:50px!important;
    min-width:50px!important;
    min-height:50px!important;
  }
  .nahmed-dictionary .nahmed-primary-search{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:48px!important;
  }
  .nahmed-dictionary button.nahmed-search-button{
    display:block!important;
    min-width:74px!important;
    margin:4px!important;
    padding:0 16px!important;
  }
  .nahmed-dictionary .nahmed-menu-trigger{
    width:52px!important;
    min-width:52px!important;
    min-height:48px!important;
  }
  .nahmed-dictionary .nahmed-header-inline-summary{
    margin:6px 0 0 60px!important;
    font-size:12.5px!important;
  }
  .nahmed-dictionary .nahmed-az-strip{
    padding-top:7px!important;
    padding-bottom:7px!important;
  }
}

/* Phone: shorter sticky header and tighter summary/A–Z rhythm. */
@media (max-width:700px){
  .nahmed-dictionary .nahmed-app-header{
    padding:6px 8px 6px!important;
  }
  .nahmed-dictionary .nahmed-topbar{
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    gap:6px!important;
  }
  .nahmed-dictionary .nahmed-brand-mark{
    flex-basis:40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border-radius:12px!important;
  }
  .nahmed-dictionary .nahmed-primary-search{
    height:40px!important;
    grid-template-columns:32px minmax(0,1fr)!important;
    border-radius:13px!important;
  }
  .nahmed-dictionary .nahmed-search-icon svg{
    width:17px!important;
    height:17px!important;
  }
  .nahmed-dictionary input.nahmed-search{
    font-size:13.5px!important;
    padding-right:5px!important;
  }
  .nahmed-dictionary .nahmed-menu-trigger{
    width:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    height:40px!important;
    border-radius:12px!important;
  }
  .nahmed-dictionary .nahmed-menu-icon{
    width:17px!important;
  }
  .nahmed-dictionary .nahmed-menu-icon span{
    width:17px!important;
  }
  .nahmed-dictionary .nahmed-header-inline-summary{
    margin:5px 2px 0!important;
    font-size:11.5px!important;
    line-height:1.3!important;
  }
  .nahmed-dictionary .nahmed-header-inline-summary strong{
    font-size:14.5px!important;
  }
  .nahmed-dictionary .nahmed-az-strip{
    padding:6px 10px 6px!important;
  }
  .nahmed-dictionary .nahmed-az{
    gap:9px!important;
  }
  .nahmed-dictionary .nahmed-az button{
    flex-basis:36px!important;
    width:36px!important;
    min-width:36px!important;
    height:36px!important;
    line-height:36px!important;
  }
  .nahmed-dictionary .nahmed-app-menu{
    top:calc(var(--nahmed-sticky-offset) + 48px)!important;
  }
}

/* Phone detail viewer: true reading surface with a fixed heading and safe-area spacing. */
@media (max-width:700px){
  .nahmed-dictionary .nahmed-detail-modal{
    align-items:stretch!important;
    padding:0!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-dialog{
    width:100%!important;
    height:100dvh!important;
    max-height:100dvh!important;
    border-radius:0!important;
    box-shadow:none!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-header{
    position:sticky;
    top:0;
    z-index:3;
    padding:calc(10px + env(safe-area-inset-top,0px)) 12px 10px!important;
    background:rgba(255,255,255,.98)!important;
    -webkit-backdrop-filter:blur(10px);
    backdrop-filter:blur(10px);
  }
  .nahmed-dictionary .nahmed-detail-modal-heading h3{
    font-size:19px!important;
    line-height:1.18!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-subtitle{
    margin-top:3px!important;
    font-size:12px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-meaning{
    margin-top:5px!important;
    font-size:13.5px!important;
    line-height:1.4!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-close{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    border-radius:11px!important;
    font-size:25px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content{
    flex:1 1 auto;
    min-height:0;
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch;
    padding:12px 12px calc(18px + env(safe-area-inset-bottom,0px))!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-grid,
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-grid-secondary{
    grid-template-columns:1fr!important;
    gap:10px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card,
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-secondary-details,
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-source-details{
    border-radius:14px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card{
    padding:12px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card h3{
    font-size:14px!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card-body,
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card-body p,
  .nahmed-dictionary .nahmed-detail-modal-content .nahmed-detail-card-body li{
    font-size:13.5px!important;
    line-height:1.55!important;
  }
  .nahmed-dictionary.nahmed-theme-dark .nahmed-detail-modal-header{
    background:rgba(16,32,45,.98)!important;
  }
}

/* ==========================================================
   v2.5.0 — Learning Hub + Search Overlay + On-demand A–Z
   ========================================================== */
.nahmed-dictionary .nahmed-app-shell{display:flex;flex-direction:column}
.nahmed-dictionary .nahmed-topic-section{order:1!important;border-bottom:1px solid var(--nahmed-line)!important}
.nahmed-dictionary .nahmed-learning-section{order:2}
.nahmed-dictionary .nahmed-az-home{order:3}
.nahmed-dictionary .nahmed-workbench{order:4!important}

/* Search results stay attached to the sticky header instead of pushing page content. */
.nahmed-dictionary .nahmed-app-header{overflow:visible!important}
.nahmed-dictionary .nahmed-search-overlay{
  position:absolute;
  left:clamp(14px,2vw,22px);
  right:clamp(14px,2vw,22px);
  top:calc(100% - 2px);
  z-index:10200;
  overflow:hidden;
  border:1px solid rgba(11,111,143,.16);
  border-radius:0 0 18px 18px;
  background:rgba(255,255,255,.99);
  box-shadow:0 22px 48px rgba(18,32,51,.16);
}
.nahmed-dictionary .nahmed-search-overlay-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 14px;border-bottom:1px solid var(--nahmed-line);color:#244257;font-size:13px}
.nahmed-dictionary .nahmed-search-overlay-head button{width:32px!important;height:32px!important;padding:0!important;border:0!important;border-radius:10px!important;background:#f1f6f9!important;color:#4f687a!important;font-size:22px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-search-overlay-results{max-height:min(56vh,520px);overflow:auto;padding:6px}
.nahmed-dictionary .nahmed-search-hit{display:grid!important;grid-template-columns:minmax(0,1fr) 22px!important;align-items:center!important;gap:10px!important;width:100%!important;margin:0!important;padding:10px 12px!important;border:0!important;border-bottom:1px solid #edf2f5!important;border-radius:10px!important;background:transparent!important;color:#183247!important;text-align:left!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-search-hit:hover{background:#f5fafc!important}
.nahmed-dictionary .nahmed-search-hit span:first-child{display:grid;gap:2px;min-width:0}
.nahmed-dictionary .nahmed-search-hit strong{color:#096f9f;font-size:14px;line-height:1.3}
.nahmed-dictionary .nahmed-search-hit small{color:#8a9baa;font-size:11.5px}
.nahmed-dictionary .nahmed-search-hit em{overflow:hidden;color:#485f72;font-size:12.5px;font-style:normal;white-space:nowrap;text-overflow:ellipsis}
.nahmed-dictionary .nahmed-search-hit-arrow{color:#6c8799;font-size:20px}
.nahmed-dictionary .nahmed-search-overlay-loading,.nahmed-dictionary .nahmed-search-overlay-empty{padding:22px 14px;color:#718697;font-size:13px;text-align:center}
.nahmed-dictionary .nahmed-search-overlay-foot{padding:8px 12px;color:#8295a3;font-size:11px;text-align:center}

/* Learning Hub */
.nahmed-dictionary .nahmed-learning-section{padding:clamp(18px,2.2vw,26px);border-bottom:1px solid var(--nahmed-line);background:#fff}
.nahmed-dictionary .nahmed-learning-intro{margin:5px 0 0!important;max-width:760px;color:#718697!important;font-size:13px!important;line-height:1.5!important}
.nahmed-dictionary .nahmed-learning-badge{align-self:flex-start;padding:5px 9px;border-radius:999px;background:#edf7fa;color:#0b6f8f;font-size:10px;font-weight:900;letter-spacing:.08em}
.nahmed-dictionary .nahmed-learning-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.nahmed-dictionary .nahmed-learning-card{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:8px 10px!important;min-height:132px!important;margin:0!important;padding:14px!important;border:1px solid var(--nahmed-line)!important;border-radius:17px!important;background:linear-gradient(145deg,#fff,#fbfdfe)!important;color:#183247!important;text-align:left!important;cursor:pointer!important;box-shadow:0 4px 14px rgba(18,32,51,.035)!important}
.nahmed-dictionary .nahmed-learning-card:hover{border-color:rgba(11,111,143,.28)!important;box-shadow:0 10px 24px rgba(18,32,51,.07)!important}
.nahmed-dictionary .nahmed-learning-index{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf6f8;color:#0b6f8f;font-size:11px;font-weight:900}
.nahmed-dictionary .nahmed-learning-card>span:nth-child(2){min-width:0}
.nahmed-dictionary .nahmed-learning-card strong{display:block;margin-bottom:5px;color:#17384b;font-size:13.5px;line-height:1.3}
.nahmed-dictionary .nahmed-learning-card small{display:block;color:#738797;font-size:11.5px;line-height:1.42}
.nahmed-dictionary .nahmed-learning-progress{grid-column:2;justify-self:start;padding:3px 7px;border-radius:999px;background:#f0f5f8;color:#627b8d;font-size:10.5px;font-weight:850}

.nahmed-dictionary .nahmed-az-home{padding:16px clamp(18px,2.2vw,26px) 14px;border-bottom:1px solid var(--nahmed-line);background:#fff}
.nahmed-dictionary .nahmed-az-heading{display:flex;align-items:baseline;gap:8px;margin-bottom:8px}
.nahmed-dictionary .nahmed-az-heading strong{color:#17384b;font-size:15px}
.nahmed-dictionary .nahmed-az-heading span{color:#7a8f9f;font-size:12px}

/* Learning lesson modal */
.nahmed-dictionary .nahmed-learning-modal{position:fixed;inset:0;z-index:10250;display:flex;align-items:center;justify-content:center;padding:20px}
.nahmed-dictionary .nahmed-learning-modal-backdrop{position:absolute;inset:0;background:rgba(8,18,30,.48);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px)}
.nahmed-dictionary .nahmed-learning-modal-dialog{position:relative;z-index:1;width:min(900px,calc(100vw - 40px));max-height:calc(100vh - 44px);overflow:hidden;border-radius:22px;background:#fff;box-shadow:0 28px 70px rgba(8,18,30,.24);display:flex;flex-direction:column}
.nahmed-dictionary .nahmed-learning-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:18px 20px 15px;border-bottom:1px solid var(--nahmed-line);background:radial-gradient(circle at 100% 0%,rgba(100,191,211,.10),transparent 24%),#fff}
.nahmed-dictionary .nahmed-learning-modal-kicker{display:block;margin-bottom:3px;color:#7d91a0;font-size:9.5px;font-weight:900;letter-spacing:.12em}
.nahmed-dictionary .nahmed-learning-modal-header h3{margin:0!important;color:#0d2a3d!important;font-size:24px!important;font-weight:850!important;line-height:1.2!important}
.nahmed-dictionary .nahmed-learning-modal-close{width:40px!important;height:40px!important;padding:0!important;border:1px solid var(--nahmed-line)!important;border-radius:12px!important;background:#fff!important;color:#496476!important;font-size:26px!important;line-height:1!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-learning-modal-content{overflow:auto;padding:18px 20px 24px;background:#fbfdfe}
.nahmed-dictionary .nahmed-lesson-block{margin:0 0 14px;padding:15px;border:1px solid var(--nahmed-line);border-radius:15px;background:#fff}
.nahmed-dictionary .nahmed-lesson-block h4{margin:0 0 10px!important;color:#17384b!important;font-size:15px!important;font-weight:850!important}
.nahmed-dictionary .nahmed-lesson-block p,.nahmed-dictionary .nahmed-lesson-block li{color:#425a6c;font-size:13.5px;line-height:1.6}
.nahmed-dictionary .nahmed-lesson-block ul{margin:0;padding-left:20px}
.nahmed-dictionary .nahmed-lesson-terms{display:flex;flex-wrap:wrap;gap:8px}
.nahmed-dictionary .nahmed-lesson-term{display:inline-flex;align-items:baseline;gap:6px;padding:7px 9px;border-radius:10px;background:#f1f7fa}
.nahmed-dictionary .nahmed-lesson-term strong{color:#0b6f8f;font-size:13px}
.nahmed-dictionary .nahmed-lesson-term em{color:#5f7687;font-size:12px;font-style:normal}
.nahmed-dictionary .nahmed-lesson-context{border-left:4px solid #0b6f8f}
.nahmed-dictionary .nahmed-lesson-context p:first-of-type{color:#17384b;font-weight:750}
.nahmed-dictionary .nahmed-lesson-question{margin:0 0 12px;padding:12px;border:1px solid #e3ecf2;border-radius:12px}
.nahmed-dictionary .nahmed-lesson-question legend{padding:0 5px;color:#264357;font-size:13px;font-weight:800}
.nahmed-dictionary .nahmed-lesson-question label{display:flex;align-items:center;gap:8px;margin:7px 0;color:#4a6071;font-size:13px;cursor:pointer}
.nahmed-dictionary .nahmed-lesson-submit{padding:9px 15px!important;border:0!important;border-radius:999px!important;background:#0b6f8f!important;color:#fff!important;font-size:13px!important;font-weight:850!important;cursor:pointer!important}
.nahmed-dictionary .nahmed-lesson-score{display:none;margin-top:10px;padding:9px 11px;border-radius:10px;background:#edf7fa;color:#0b6f8f;font-size:13px;font-weight:850}
.nahmed-dictionary .nahmed-lesson-score.is-visible{display:block}

.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-section,.nahmed-dictionary.nahmed-theme-dark .nahmed-az-home{background:#101d29}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card,.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-block{border-color:#263a49!important;background:#132332!important;color:#e5eff5!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card strong,.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-block h4{color:#e2edf4!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card small,.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-intro{color:#91a6b5!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-search-overlay{border-color:#294151;background:#10202d}
.nahmed-dictionary.nahmed-theme-dark .nahmed-search-overlay-head{border-bottom-color:#294151;color:#dce9f0}
.nahmed-dictionary.nahmed-theme-dark .nahmed-search-hit{border-bottom-color:#203744!important;color:#d8e6ed!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-search-hit:hover{background:#142a38!important}

@media(max-width:1100px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-az-home{padding-left:12px;padding-right:12px}
  .nahmed-dictionary .nahmed-learning-grid{display:flex;gap:9px;overflow-x:auto;padding-bottom:5px;scroll-snap-type:x proximity;scrollbar-width:none}
  .nahmed-dictionary .nahmed-learning-grid::-webkit-scrollbar{display:none}
  .nahmed-dictionary .nahmed-learning-card{flex:0 0 min(82vw,300px)!important;scroll-snap-align:start}
  .nahmed-dictionary .nahmed-search-overlay{left:8px;right:8px;top:100%;border-radius:0 0 16px 16px}
  .nahmed-dictionary .nahmed-search-overlay-results{max-height:55vh}
  .nahmed-dictionary .nahmed-az-heading{display:block;margin-bottom:7px}
  .nahmed-dictionary .nahmed-az-heading span{display:block;margin-top:2px}
  .nahmed-dictionary .nahmed-learning-modal{padding:0;align-items:flex-end}
  .nahmed-dictionary .nahmed-learning-modal-dialog{width:100%;height:min(100dvh,100vh);max-height:none;border-radius:18px 18px 0 0}
  .nahmed-dictionary .nahmed-learning-modal-header{padding:14px}
  .nahmed-dictionary .nahmed-learning-modal-header h3{font-size:20px!important}
  .nahmed-dictionary .nahmed-learning-modal-content{padding:14px 14px calc(20px + env(safe-area-inset-bottom))}
}

/* ==========================================================
   v2.5.1 — Learning Curriculum Expansion & Progress Dashboard
   ========================================================== */
.nahmed-dictionary .nahmed-learning-heading{margin-bottom:12px}
.nahmed-dictionary .nahmed-learning-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:14px;
  margin:0 0 10px;
  padding:12px 13px;
  border:1px solid var(--nahmed-line);
  border-radius:15px;
  background:#fbfdfe;
}
.nahmed-dictionary .nahmed-course-progress{min-width:0}
.nahmed-dictionary .nahmed-course-progress-copy{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}
.nahmed-dictionary .nahmed-course-progress-copy strong{color:#183247;font-size:13px}
.nahmed-dictionary .nahmed-course-progress-copy span{color:#74899a;font-size:11.5px}
.nahmed-dictionary .nahmed-course-progress-track{height:7px;overflow:hidden;border-radius:999px;background:#e8f0f5}
.nahmed-dictionary .nahmed-course-progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,#0b6f8f,#20a1b7);transition:width .2s ease}
.nahmed-dictionary .nahmed-course-continue{padding:9px 14px!important;border:0!important;border-radius:999px!important;background:#0b6f8f!important;color:#fff!important;font-size:12.5px!important;font-weight:850!important;white-space:nowrap;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-learning-filters{display:flex;align-items:center;gap:7px;margin:0 0 12px;overflow-x:auto;scrollbar-width:none}
.nahmed-dictionary .nahmed-learning-filters::-webkit-scrollbar{display:none}
.nahmed-dictionary .nahmed-learning-filters button{flex:0 0 auto;padding:7px 10px!important;border:1px solid var(--nahmed-line)!important;border-radius:999px!important;background:#fff!important;color:#60798b!important;font-size:11.5px!important;font-weight:800!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-learning-filters button.is-active{border-color:#0b6f8f!important;background:#eaf6f8!important;color:#0b6f8f!important}
.nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.nahmed-dictionary .nahmed-learning-card{min-height:126px!important}
.nahmed-dictionary .nahmed-learning-card.is-complete{border-color:rgba(35,130,105,.28)!important;background:linear-gradient(145deg,#f4fbf8,#fff)!important}
.nahmed-dictionary .nahmed-learning-card.is-complete .nahmed-learning-progress{background:#e8f7f0;color:#238269}
.nahmed-dictionary .nahmed-lesson-position{margin:0 0 10px;color:#7a8f9f;font-size:11px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.nahmed-dictionary .nahmed-lesson-application{border-left:4px solid #238269}
.nahmed-dictionary .nahmed-lesson-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:2px}
.nahmed-dictionary .nahmed-lesson-nav button{padding:8px 12px!important;border:1px solid var(--nahmed-line)!important;border-radius:999px!important;background:#fff!important;color:#0b6f8f!important;font-size:12px!important;font-weight:850!important;cursor:pointer!important;box-shadow:none!important}
.nahmed-dictionary .nahmed-lesson-nav button:hover{background:#edf7fa!important}

.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-toolbar{border-color:#263a49;background:#11212f}
.nahmed-dictionary.nahmed-theme-dark .nahmed-course-progress-copy strong{color:#e2edf4}
.nahmed-dictionary.nahmed-theme-dark .nahmed-course-progress-copy span{color:#91a6b5}
.nahmed-dictionary.nahmed-theme-dark .nahmed-course-progress-track{background:#203543}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-filters button{border-color:#294151!important;background:#11212f!important;color:#9eb2c0!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-filters button.is-active{border-color:#4ca9bc!important;background:#173341!important;color:#a8e2ee!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card.is-complete{border-color:#285445!important;background:linear-gradient(145deg,#123129,#132332)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-nav button{border-color:#294151!important;background:#122635!important;color:#9edce8!important}

@media(max-width:1100px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:820px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .nahmed-dictionary .nahmed-learning-toolbar{grid-template-columns:1fr;gap:9px;padding:10px}
  .nahmed-dictionary .nahmed-course-progress-copy{display:block}
  .nahmed-dictionary .nahmed-course-progress-copy span{display:block;margin-top:2px}
  .nahmed-dictionary .nahmed-course-continue{width:100%!important}
  .nahmed-dictionary .nahmed-learning-grid{display:flex;gap:9px;overflow-x:auto;padding-bottom:6px;scroll-snap-type:x proximity;scrollbar-width:none}
  .nahmed-dictionary .nahmed-learning-card{flex:0 0 min(84vw,310px)!important;min-height:122px!important;scroll-snap-align:start}
  .nahmed-dictionary .nahmed-lesson-nav{position:sticky;bottom:0;padding:10px 0 calc(4px + env(safe-area-inset-bottom));background:linear-gradient(180deg,rgba(251,253,254,0),#fbfdfe 28%)}
}


/* ==========================================================
   v2.5.3 — Expanded Clinical Lessons & Independent Import Pagination
   ========================================================== */
.nahmed-dictionary .nahmed-learning-card{
  position:relative;
  overflow:hidden;
  background:var(--nahmed-lesson-card-bg,linear-gradient(145deg,#fff,#fbfdfe))!important;
  border-color:var(--nahmed-lesson-card-border,var(--nahmed-line))!important;
}
.nahmed-dictionary .nahmed-learning-card::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:var(--nahmed-lesson-card-accent,#0b6f8f);
  opacity:.8;
}
.nahmed-dictionary .nahmed-learning-card .nahmed-learning-index{
  background:var(--nahmed-lesson-index-bg,#eaf6f8)!important;
  color:var(--nahmed-lesson-card-accent,#0b6f8f)!important;
}
.nahmed-dictionary .nahmed-learning-card .nahmed-learning-progress{
  background:var(--nahmed-lesson-progress-bg,#f0f5f8)!important;
  color:var(--nahmed-lesson-card-accent,#627b8d)!important;
}
.nahmed-dictionary .nahmed-learning-tone-1{--nahmed-lesson-card-bg:linear-gradient(145deg,#f6fbff,#eef7ff);--nahmed-lesson-card-border:#dbeaf5;--nahmed-lesson-card-accent:#2676a5;--nahmed-lesson-index-bg:#e0f0fa;--nahmed-lesson-progress-bg:#e7f3fa}
.nahmed-dictionary .nahmed-learning-tone-2{--nahmed-lesson-card-bg:linear-gradient(145deg,#f5fcf8,#edf8f2);--nahmed-lesson-card-border:#d8ece0;--nahmed-lesson-card-accent:#2d7d5f;--nahmed-lesson-index-bg:#dff1e7;--nahmed-lesson-progress-bg:#e3f3e9}
.nahmed-dictionary .nahmed-learning-tone-3{--nahmed-lesson-card-bg:linear-gradient(145deg,#fffaf2,#fff4df);--nahmed-lesson-card-border:#f1e1c2;--nahmed-lesson-card-accent:#9a6a1f;--nahmed-lesson-index-bg:#f8e9c9;--nahmed-lesson-progress-bg:#f8ecd5}
.nahmed-dictionary .nahmed-learning-tone-4{--nahmed-lesson-card-bg:linear-gradient(145deg,#faf7ff,#f2edfb);--nahmed-lesson-card-border:#e4daf3;--nahmed-lesson-card-accent:#7354a0;--nahmed-lesson-index-bg:#e9def7;--nahmed-lesson-progress-bg:#eee6f8}
.nahmed-dictionary .nahmed-learning-tone-5{--nahmed-lesson-card-bg:linear-gradient(145deg,#fff7f7,#fceeee);--nahmed-lesson-card-border:#efdada;--nahmed-lesson-card-accent:#9b5a64;--nahmed-lesson-index-bg:#f4dfe2;--nahmed-lesson-progress-bg:#f6e5e7}
.nahmed-dictionary .nahmed-learning-card:hover{transform:translateY(-1px)}

.nahmed-dictionary .nahmed-learning-modal-dialog{width:min(980px,calc(100vw - 40px))}
.nahmed-dictionary .nahmed-lesson-section-title{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.nahmed-dictionary .nahmed-lesson-section-title h4{margin:0!important}
.nahmed-dictionary .nahmed-lesson-section-title>div>p{margin:2px 0 0!important;color:#7a8e9d!important;font-size:11.5px!important;line-height:1.45!important}
.nahmed-dictionary .nahmed-lesson-language{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:0 8px;border-radius:9px;background:#e8f4f8;color:#0b6f8f;font-size:10px;font-weight:950;letter-spacing:.08em}
.nahmed-dictionary .nahmed-lesson-language-terms{min-width:42px;background:#eef2f7;color:#586f80}
.nahmed-dictionary .nahmed-lesson-essay{padding:18px 18px 17px}
.nahmed-dictionary .nahmed-lesson-essay-en{border-left:4px solid #3b82a0;background:linear-gradient(135deg,#fff,#f5fbfd)}
.nahmed-dictionary .nahmed-lesson-essay-vi{border-left:4px solid #4b8b6b;background:linear-gradient(135deg,#fff,#f6fbf8)}
.nahmed-dictionary .nahmed-lesson-prose p{margin:0 0 10px!important;color:#354f62!important;font-size:14.5px!important;line-height:1.75!important}
.nahmed-dictionary .nahmed-lesson-prose p:last-child{margin-bottom:0!important}
.nahmed-dictionary .nahmed-lesson-prose strong{padding:1px 3px;border-radius:4px;background:rgba(11,111,143,.08);color:#0d566f;font-weight:850}
.nahmed-dictionary .nahmed-lesson-essay-vi .nahmed-lesson-prose strong{background:rgba(45,125,95,.09);color:#256248}
.nahmed-dictionary .nahmed-lesson-word-study{padding:18px}
.nahmed-dictionary .nahmed-word-study-list{display:grid;gap:12px}
.nahmed-dictionary .nahmed-word-study-card{overflow:hidden;border:1px solid #e0e9ef;border-radius:15px;background:#fff}
.nahmed-dictionary .nahmed-word-study-head{display:grid;grid-template-columns:32px minmax(0,1fr) auto;align-items:center;gap:10px;padding:13px 14px;border-bottom:1px solid #e8eef2;background:#fafcfd}
.nahmed-dictionary .nahmed-word-study-number{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#e8f4f8;color:#0b6f8f;font-size:10px;font-weight:950}
.nahmed-dictionary .nahmed-word-study-head h5{margin:0!important;color:#17384b!important;font-size:16px!important;line-height:1.2!important}
.nahmed-dictionary .nahmed-word-study-head p{margin:3px 0 0!important;color:#667f90!important;font-size:12px!important;line-height:1.35!important}
.nahmed-dictionary .nahmed-word-study-ipa{padding:5px 8px;border-radius:8px;background:#eef3f6;color:#526b7c;font-family:Georgia,'Times New Roman',serif;font-size:12px;white-space:nowrap}
.nahmed-dictionary .nahmed-word-anatomy{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e8eef2}
.nahmed-dictionary .nahmed-word-anatomy>div{min-width:0;padding:11px 12px;background:#fff}
.nahmed-dictionary .nahmed-word-anatomy span,.nahmed-dictionary .nahmed-word-etymology>span,.nahmed-dictionary .nahmed-word-example>span{display:block;margin-bottom:4px;color:#8a9aa7;font-size:9.5px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.nahmed-dictionary .nahmed-word-anatomy strong{display:block;color:#2e4b5f;font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.nahmed-dictionary .nahmed-word-etymology{padding:11px 12px;border-top:1px solid #edf1f4;background:#fff}
.nahmed-dictionary .nahmed-word-etymology p{margin:0!important;color:#516879!important;font-size:12.5px!important;line-height:1.55!important}
.nahmed-dictionary .nahmed-word-example{padding:11px 12px;border-top:1px solid #edf1f4;background:#fbfdfe}
.nahmed-dictionary .nahmed-word-example p{margin:0 0 4px!important;color:#3f596b!important;font-size:12.8px!important;line-height:1.5!important}
.nahmed-dictionary .nahmed-word-example p:last-child{margin-bottom:0!important;color:#667d8d!important}
.nahmed-dictionary .nahmed-lesson-objectives{background:#fbfcfe}
.nahmed-dictionary .nahmed-lesson-practice{border-left:4px solid #d59a3a;background:#fffcf6}
.nahmed-dictionary .nahmed-lesson-application{border-left:4px solid #7a64a8;background:#faf8fe}
.nahmed-dictionary .nahmed-lesson-quiz-block{background:#fbfdfe}

.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-1{--nahmed-lesson-card-bg:linear-gradient(145deg,#132a39,#102532);--nahmed-lesson-card-border:#294456;--nahmed-lesson-card-accent:#6bb6df;--nahmed-lesson-index-bg:#17394c;--nahmed-lesson-progress-bg:#173344}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-2{--nahmed-lesson-card-bg:linear-gradient(145deg,#152d28,#122720);--nahmed-lesson-card-border:#2a4940;--nahmed-lesson-card-accent:#71c49f;--nahmed-lesson-index-bg:#1b3b31;--nahmed-lesson-progress-bg:#19372e}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-3{--nahmed-lesson-card-bg:linear-gradient(145deg,#30291d,#2a2319);--nahmed-lesson-card-border:#4b402b;--nahmed-lesson-card-accent:#dfb766;--nahmed-lesson-index-bg:#413620;--nahmed-lesson-progress-bg:#3a311f}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-4{--nahmed-lesson-card-bg:linear-gradient(145deg,#29233a,#221e31);--nahmed-lesson-card-border:#433a5a;--nahmed-lesson-card-accent:#b19ade;--nahmed-lesson-index-bg:#382e4c;--nahmed-lesson-progress-bg:#322945}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-5{--nahmed-lesson-card-bg:linear-gradient(145deg,#332329,#2b1e23);--nahmed-lesson-card-border:#503840;--nahmed-lesson-card-accent:#dda0aa;--nahmed-lesson-index-bg:#442d34;--nahmed-lesson-progress-bg:#3d2930}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card{background:var(--nahmed-lesson-card-bg)!important;border-color:var(--nahmed-lesson-card-border)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-essay-en{border-color:#5ca5c6!important;background:linear-gradient(135deg,#132332,#10212e)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-essay-vi{border-color:#5aa57c!important;background:linear-gradient(135deg,#142a25,#11231f)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-prose p{color:#cbd9e2!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-prose strong{background:rgba(103,186,220,.14);color:#9bd4ea}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-essay-vi .nahmed-lesson-prose strong{background:rgba(113,196,159,.14);color:#a0dabc}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-card{border-color:#29404f;background:#132332}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head,.nahmed-dictionary.nahmed-theme-dark .nahmed-word-anatomy>div,.nahmed-dictionary.nahmed-theme-dark .nahmed-word-etymology{background:#132332}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head{border-bottom-color:#29404f}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head h5{color:#e4eef4!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head p,.nahmed-dictionary.nahmed-theme-dark .nahmed-word-etymology p,.nahmed-dictionary.nahmed-theme-dark .nahmed-word-example p{color:#a9bac6!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-ipa{background:#1b3140;color:#c4d4de}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-anatomy{background:#29404f}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-anatomy strong{color:#cbd9e2}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-etymology,.nahmed-dictionary.nahmed-theme-dark .nahmed-word-example{border-top-color:#29404f}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-example{background:#10212e}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-objectives,.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-quiz-block{background:#132332!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-practice{border-color:#c59649!important;background:#2b261b!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-application{border-color:#9a85c9!important;background:#251f34!important}

@media(max-width:700px){
  .nahmed-dictionary .nahmed-learning-card{flex-basis:min(84vw,310px)!important}
  .nahmed-dictionary .nahmed-word-study-head{grid-template-columns:30px minmax(0,1fr)}
  .nahmed-dictionary .nahmed-word-study-ipa{grid-column:2;justify-self:start;margin-top:2px}
  .nahmed-dictionary .nahmed-word-anatomy{grid-template-columns:1fr}
  .nahmed-dictionary .nahmed-lesson-prose p{font-size:14px!important;line-height:1.7!important}
}


/* v2.5.4 — compact learning/topic cards and reader-facing cleanup */
.nahmed-dictionary .nahmed-brand-title-row{gap:0!important}
.nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(auto-fit,minmax(176px,1fr))!important;gap:8px!important}
.nahmed-dictionary .nahmed-learning-card{grid-template-columns:28px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;min-height:82px!important;padding:10px 11px!important;gap:8px!important;border-radius:14px!important}
.nahmed-dictionary .nahmed-learning-card::before{width:3px!important}
.nahmed-dictionary .nahmed-learning-index{width:28px!important;height:28px!important;border-radius:8px!important;font-size:9.5px!important}
.nahmed-dictionary .nahmed-learning-card strong{margin-bottom:2px!important;font-size:12.8px!important;line-height:1.24!important}
.nahmed-dictionary .nahmed-learning-card small{display:-webkit-box!important;overflow:hidden!important;font-size:10.7px!important;line-height:1.3!important;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.nahmed-dictionary .nahmed-learning-progress{grid-column:3!important;grid-row:1!important;align-self:start!important;padding:3px 6px!important;font-size:9.5px!important}
.nahmed-dictionary .nahmed-learning-badge{padding:4px 8px!important;font-size:9.5px!important;letter-spacing:.03em!important}
.nahmed-dictionary .nahmed-topic-grid{gap:8px!important}
.nahmed-dictionary .nahmed-topic-card{grid-template-columns:34px minmax(0,1fr) 16px!important;min-height:68px!important;padding:10px 11px!important;border-radius:14px!important;gap:9px!important}
.nahmed-dictionary .nahmed-topic-icon{width:34px!important;height:34px!important;border-radius:10px!important;font-size:0!important}
.nahmed-dictionary .nahmed-topic-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nahmed-dictionary .nahmed-topic-copy strong{font-size:12.8px!important;line-height:1.25!important}
.nahmed-dictionary .nahmed-topic-copy small{display:-webkit-box!important;overflow:hidden!important;font-size:10.7px!important;line-height:1.3!important;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.nahmed-dictionary .nahmed-learning-modal-kicker,.nahmed-dictionary .nahmed-lesson-language{display:none!important}
.nahmed-dictionary .nahmed-lesson-section-title{gap:0!important}
.nahmed-dictionary .nahmed-lesson-section-title>div>p{margin-top:3px!important}
.nahmed-dictionary .nahmed-api-diagnostic{display:none!important}
@media(max-width:1100px){.nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:820px){.nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.nahmed-dictionary .nahmed-learning-card{min-height:78px!important}}
@media(max-width:560px){.nahmed-dictionary .nahmed-learning-grid{display:grid!important;grid-template-columns:1fr 1fr!important;overflow:visible!important}.nahmed-dictionary .nahmed-learning-card{min-width:0!important;min-height:76px!important;padding:9px!important}.nahmed-dictionary .nahmed-learning-card small{display:none!important}.nahmed-dictionary .nahmed-learning-progress{font-size:9px!important}.nahmed-dictionary .nahmed-topic-grid{display:grid!important;grid-template-columns:1fr 1fr!important;overflow:visible!important}.nahmed-dictionary .nahmed-topic-card{min-width:0!important;min-height:64px!important}.nahmed-dictionary .nahmed-topic-copy small{display:none!important}}


/* ==========================================================
   v2.5.5 — Mobile / tablet / foldable lesson-space optimization
   ========================================================== */
/* The late v2.5.3 dialog width used to override the earlier mobile full-width rule. */
@media (max-width:1100px){
  .nahmed-dictionary .nahmed-learning-modal{padding:8px!important}
  .nahmed-dictionary .nahmed-learning-modal-dialog{
    width:calc(100vw - 16px)!important;
    max-width:none!important;
    max-height:calc(100dvh - 16px)!important;
    border-radius:18px!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-header{padding:12px 14px 11px!important}
  .nahmed-dictionary .nahmed-learning-modal-content{padding:12px 12px calc(16px + env(safe-area-inset-bottom,0px))!important}
  .nahmed-dictionary .nahmed-topic-section,
  .nahmed-dictionary .nahmed-learning-section,
  .nahmed-dictionary .nahmed-az-home,
  .nahmed-dictionary .nahmed-workbench{padding-left:10px!important;padding-right:10px!important}
}

/* Unfolded foldables and tablets: use the available width without making text lines too long. */
@media (min-width:880px) and (max-width:1100px){
  .nahmed-dictionary .nahmed-learning-modal-dialog{width:calc(100vw - 20px)!important;max-width:1060px!important}
  .nahmed-dictionary .nahmed-word-study-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important}
  .nahmed-dictionary .nahmed-word-study-card{min-width:0}
}

@media (max-width:700px){
  .nahmed-dictionary{padding-left:0!important;padding-right:0!important}
  .nahmed-dictionary .nahmed-app-header{padding-left:8px!important;padding-right:8px!important}
  .nahmed-dictionary .nahmed-topic-section,
  .nahmed-dictionary .nahmed-learning-section,
  .nahmed-dictionary .nahmed-az-home,
  .nahmed-dictionary .nahmed-workbench{padding-left:7px!important;padding-right:7px!important}
  .nahmed-dictionary .nahmed-learning-modal{
    padding:4px!important;
    align-items:flex-end!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-dialog{
    width:calc(100vw - 8px)!important;
    height:calc(100dvh - 8px)!important;
    max-height:calc(100dvh - 8px)!important;
    border-radius:16px 16px 9px 9px!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-header{
    flex:0 0 auto;
    align-items:center!important;
    padding:10px 10px 9px!important;
    gap:8px!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-header h3{font-size:19px!important;line-height:1.18!important}
  .nahmed-dictionary .nahmed-learning-modal-close{width:36px!important;height:36px!important;min-width:36px!important;border-radius:11px!important;font-size:23px!important}
  .nahmed-dictionary .nahmed-learning-modal-content{
    padding:9px 7px calc(12px + env(safe-area-inset-bottom,0px))!important;
    overscroll-behavior:contain;
    scrollbar-gutter:stable;
  }
  .nahmed-dictionary .nahmed-lesson-position{margin:0 2px 7px!important;font-size:10px!important}
  .nahmed-dictionary .nahmed-lesson-block{margin:0 0 9px!important;padding:11px!important;border-radius:13px!important}
  .nahmed-dictionary .nahmed-lesson-block h4{margin-bottom:7px!important;font-size:14.5px!important}
  .nahmed-dictionary .nahmed-lesson-block p,
  .nahmed-dictionary .nahmed-lesson-block li{font-size:13px!important;line-height:1.55!important}
  .nahmed-dictionary .nahmed-lesson-essay,
  .nahmed-dictionary .nahmed-lesson-word-study{padding:12px 11px!important}
  .nahmed-dictionary .nahmed-lesson-prose p{font-size:13.5px!important;line-height:1.62!important;margin-bottom:8px!important}
  .nahmed-dictionary .nahmed-word-study-list{gap:9px!important}
  .nahmed-dictionary .nahmed-word-study-card{border-radius:12px!important}
  .nahmed-dictionary .nahmed-word-study-head{grid-template-columns:27px minmax(0,1fr)!important;gap:8px!important;padding:10px!important}
  .nahmed-dictionary .nahmed-word-study-number{width:25px!important;height:25px!important;border-radius:8px!important;font-size:9px!important}
  .nahmed-dictionary .nahmed-word-study-head h5{font-size:14.5px!important}
  .nahmed-dictionary .nahmed-word-study-head p{font-size:11.5px!important}
  .nahmed-dictionary .nahmed-word-study-ipa{grid-column:2!important;justify-self:start!important;margin-top:0!important;padding:4px 7px!important;font-size:11px!important}
  /* Keep morphology horizontally compact on normal phones; only very narrow phones stack it. */
  .nahmed-dictionary .nahmed-word-anatomy{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .nahmed-dictionary .nahmed-word-anatomy>div{padding:8px 7px!important}
  .nahmed-dictionary .nahmed-word-anatomy span,
  .nahmed-dictionary .nahmed-word-etymology>span,
  .nahmed-dictionary .nahmed-word-example>span{font-size:8.5px!important;margin-bottom:3px!important}
  .nahmed-dictionary .nahmed-word-anatomy strong{font-size:10.8px!important;line-height:1.35!important}
  .nahmed-dictionary .nahmed-word-etymology,
  .nahmed-dictionary .nahmed-word-example{padding:9px!important}
  .nahmed-dictionary .nahmed-word-etymology p,
  .nahmed-dictionary .nahmed-word-example p{font-size:11.8px!important;line-height:1.45!important}
  .nahmed-dictionary .nahmed-lesson-question{margin-bottom:9px!important;padding:9px 10px!important;border-radius:11px!important}
  .nahmed-dictionary .nahmed-lesson-question legend{font-size:12.5px!important;line-height:1.4!important}
  .nahmed-dictionary .nahmed-lesson-question label{gap:7px!important;margin:6px 0!important;font-size:12.5px!important}
  /* Navigation is part of the document flow: it no longer covers quiz choices. */
  .nahmed-dictionary .nahmed-lesson-nav{
    position:static!important;
    bottom:auto!important;
    margin-top:2px!important;
    padding:5px 1px 1px!important;
    background:transparent!important;
  }
  .nahmed-dictionary .nahmed-lesson-nav button{padding:7px 10px!important;font-size:11.5px!important}
}

@media (max-width:380px){
  .nahmed-dictionary .nahmed-learning-modal{padding:2px!important}
  .nahmed-dictionary .nahmed-learning-modal-dialog{width:calc(100vw - 4px)!important;height:calc(100dvh - 4px)!important;max-height:calc(100dvh - 4px)!important}
  .nahmed-dictionary .nahmed-learning-modal-content{padding-left:5px!important;padding-right:5px!important}
  .nahmed-dictionary .nahmed-word-anatomy{grid-template-columns:1fr!important}
  .nahmed-dictionary .nahmed-learning-grid,.nahmed-dictionary .nahmed-topic-grid{gap:6px!important}
}

/* Short landscape / folded-window mode: preserve vertical reading room. */
@media (max-height:650px) and (min-width:600px){
  .nahmed-dictionary .nahmed-learning-modal{padding:4px!important}
  .nahmed-dictionary .nahmed-learning-modal-dialog{width:calc(100vw - 8px)!important;max-height:calc(100dvh - 8px)!important}
  .nahmed-dictionary .nahmed-learning-modal-header{padding:8px 11px!important}
  .nahmed-dictionary .nahmed-learning-modal-header h3{font-size:18px!important}
  .nahmed-dictionary .nahmed-learning-modal-content{padding:8px 10px 12px!important}
  .nahmed-dictionary .nahmed-lesson-block{margin-bottom:8px!important;padding:10px!important}
}


/* v2.5.6 — Deep lesson rebuild: denser vocabulary without widening the reading canvas */
.nahmed-dictionary .nahmed-lesson-position{font-weight:800;letter-spacing:.01em}
.nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:15px;line-height:1.78}
.nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose p{margin:0 0 13px}
.nahmed-dictionary .nahmed-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.nahmed-dictionary .nahmed-family-card{min-width:0;border:1px solid #dce7ed;border-radius:15px;background:#f9fcfd;padding:12px}
.nahmed-dictionary .nahmed-family-card>strong{display:block;margin-bottom:8px;color:#17384b;font-size:14px}
.nahmed-dictionary .nahmed-family-forms{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.nahmed-dictionary .nahmed-family-forms span{display:inline-flex;border-radius:999px;background:#eaf4f8;padding:5px 8px;color:#23627d;font-size:11.5px;font-weight:750}
.nahmed-dictionary .nahmed-family-card p{margin:0;color:#667c8b;font-size:12px;line-height:1.5}
.nahmed-dictionary .nahmed-related-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.nahmed-dictionary .nahmed-related-term{display:grid;grid-template-columns:26px minmax(0,1fr);gap:9px;align-items:start;border:1px solid #e0e9ee;border-radius:13px;background:#fff;padding:10px 11px}
.nahmed-dictionary .nahmed-related-term-no{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#edf5f8;color:#24718a;font-size:10.5px;font-weight:900}
.nahmed-dictionary .nahmed-related-term strong{display:block;color:#18384a;font-size:13px;line-height:1.3}
.nahmed-dictionary .nahmed-related-term p{margin:3px 0 0;color:#708493;font-size:11.5px;line-height:1.4}
.nahmed-dictionary .nahmed-component-list{display:flex;flex-wrap:wrap;gap:8px}
.nahmed-dictionary .nahmed-component-chip{display:inline-flex;align-items:baseline;gap:6px;border:1px solid #dce7ed;border-radius:999px;background:#f8fbfc;padding:7px 10px}
.nahmed-dictionary .nahmed-component-chip strong{color:#18445a;font-size:12px}
.nahmed-dictionary .nahmed-component-chip em{color:#738693;font-size:11px;font-style:normal}
.nahmed-dictionary .nahmed-confusable-pair{border-left:4px solid #8b6aba;border-radius:14px;background:#faf8fd;padding:13px 14px}
.nahmed-dictionary .nahmed-confusable-pair>div{display:flex;align-items:center;flex-wrap:wrap;gap:9px;color:#3f3155}
.nahmed-dictionary .nahmed-confusable-pair>div strong{font-size:14px}
.nahmed-dictionary .nahmed-confusable-pair p{margin:7px 0 0;color:#665c70;font-size:12.5px;line-height:1.55}
.nahmed-dictionary .nahmed-lesson-practice .nahmed-practice-primary{font-weight:650}
.nahmed-dictionary .nahmed-lesson-practice ol{margin:10px 0 0;padding-left:20px}
.nahmed-dictionary .nahmed-lesson-practice li{margin:7px 0;color:#536a79;line-height:1.55}
.nahmed-dictionary .nahmed-quiz-intro{margin:-2px 0 11px;color:#748693;font-size:12px}
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-card,.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term,.nahmed-dictionary.nahmed-theme-dark .nahmed-component-chip{border-color:#2b4252;background:#162a39}
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-card>strong,.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term strong,.nahmed-dictionary.nahmed-theme-dark .nahmed-component-chip strong{color:#e1edf3}
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-card p,.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term p,.nahmed-dictionary.nahmed-theme-dark .nahmed-component-chip em{color:#9bb0bd}
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-forms span,.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term-no{background:#203b4c;color:#9cd3e5}
.nahmed-dictionary.nahmed-theme-dark .nahmed-confusable-pair{background:#241f31;border-left-color:#a98bd2}
.nahmed-dictionary.nahmed-theme-dark .nahmed-confusable-pair>div{color:#e2d5f4}
.nahmed-dictionary.nahmed-theme-dark .nahmed-confusable-pair p{color:#bbaecc}
@media(max-width:760px){
  .nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:14px;line-height:1.7}
  .nahmed-dictionary .nahmed-family-grid{grid-template-columns:1fr}
  .nahmed-dictionary .nahmed-related-grid{grid-template-columns:1fr 1fr;gap:6px}
  .nahmed-dictionary .nahmed-related-term{grid-template-columns:22px minmax(0,1fr);padding:8px 9px;gap:7px}
  .nahmed-dictionary .nahmed-related-term-no{width:21px;height:21px;border-radius:7px;font-size:9.5px}
  .nahmed-dictionary .nahmed-related-term strong{font-size:12px}
  .nahmed-dictionary .nahmed-related-term p{font-size:10.8px}
  .nahmed-dictionary .nahmed-component-chip{padding:6px 8px}
}
@media(max-width:420px){
  .nahmed-dictionary .nahmed-related-grid{grid-template-columns:1fr}
}
@media(min-width:880px) and (max-width:1100px){
  .nahmed-dictionary .nahmed-family-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .nahmed-dictionary .nahmed-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* ==========================================================
   v2.5.7 — Readability uplift + calm corner-gradient cards
   ========================================================== */
/* Learning cards: near-white surfaces with only a faint color wash in one corner. */
.nahmed-dictionary .nahmed-learning-card{
  --nahmed-lesson-wash:rgba(38,118,165,.055);
  --nahmed-lesson-card-border:#e2e9ed;
  --nahmed-lesson-index-bg:#f3f7f9;
  --nahmed-lesson-progress-bg:#f3f7f9;
  background:radial-gradient(circle at 100% 0%,var(--nahmed-lesson-wash) 0,rgba(255,255,255,0) 48%),#fff!important;
  border-color:var(--nahmed-lesson-card-border)!important;
  box-shadow:0 3px 12px rgba(18,32,51,.03)!important;
}
.nahmed-dictionary .nahmed-learning-card::before{width:2px!important;opacity:.32!important}
.nahmed-dictionary .nahmed-learning-card:hover{box-shadow:0 7px 18px rgba(18,32,51,.055)!important}
.nahmed-dictionary .nahmed-learning-card.is-complete{
  background:radial-gradient(circle at 100% 0%,rgba(35,130,105,.055) 0,rgba(255,255,255,0) 48%),#fff!important;
  border-color:#dde9e4!important;
}
.nahmed-dictionary .nahmed-learning-tone-1{--nahmed-lesson-wash:rgba(38,118,165,.060);--nahmed-lesson-card-accent:#49788e;--nahmed-lesson-card-border:#e1e9ee;--nahmed-lesson-index-bg:#f1f6f8;--nahmed-lesson-progress-bg:#f2f6f8}
.nahmed-dictionary .nahmed-learning-tone-2{--nahmed-lesson-wash:rgba(45,125,95,.055);--nahmed-lesson-card-accent:#527d69;--nahmed-lesson-card-border:#e1eae5;--nahmed-lesson-index-bg:#f2f7f4;--nahmed-lesson-progress-bg:#f2f7f4}
.nahmed-dictionary .nahmed-learning-tone-3{--nahmed-lesson-wash:rgba(154,106,31,.050);--nahmed-lesson-card-accent:#806b48;--nahmed-lesson-card-border:#eae6dd;--nahmed-lesson-index-bg:#f8f6f1;--nahmed-lesson-progress-bg:#f8f6f1}
.nahmed-dictionary .nahmed-learning-tone-4{--nahmed-lesson-wash:rgba(115,84,160,.050);--nahmed-lesson-card-accent:#756b86;--nahmed-lesson-card-border:#e8e4ed;--nahmed-lesson-index-bg:#f7f5f9;--nahmed-lesson-progress-bg:#f7f5f9}
.nahmed-dictionary .nahmed-learning-tone-5{--nahmed-lesson-wash:rgba(155,90,100,.045);--nahmed-lesson-card-accent:#826c70;--nahmed-lesson-card-border:#ebe4e5;--nahmed-lesson-index-bg:#f8f5f5;--nahmed-lesson-progress-bg:#f8f5f5}

/* Topic discovery cards follow the same calmer surface treatment. */
.nahmed-dictionary .nahmed-topic-card{
  background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--nahmed-topic) 5%,transparent) 0,transparent 48%),#fff!important;
  box-shadow:0 3px 12px rgba(18,32,51,.025)!important;
}
.nahmed-dictionary .nahmed-topic-card.is-active{
  background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--nahmed-topic) 9%,transparent) 0,transparent 50%),#fff!important;
}

/* Slightly larger lesson typography without inflating headings or navigation. */
.nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:16px!important;line-height:1.8!important}
.nahmed-dictionary .nahmed-lesson-block p,
.nahmed-dictionary .nahmed-lesson-block li{font-size:14px!important;line-height:1.62!important}
.nahmed-dictionary .nahmed-word-study-head p{font-size:12.6px!important}
.nahmed-dictionary .nahmed-word-anatomy strong{font-size:12.4px!important}
.nahmed-dictionary .nahmed-word-etymology p{font-size:13px!important;line-height:1.58!important}
.nahmed-dictionary .nahmed-word-example p{font-size:13.2px!important;line-height:1.55!important}
.nahmed-dictionary .nahmed-family-card p{font-size:12.5px!important}
.nahmed-dictionary .nahmed-related-term strong{font-size:13.3px!important}
.nahmed-dictionary .nahmed-related-term p{font-size:12px!important}
.nahmed-dictionary .nahmed-confusable-pair p{font-size:13px!important}

/* Dark mode keeps the same restrained one-corner wash. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card{
  background:radial-gradient(circle at 100% 0%,var(--nahmed-lesson-wash) 0,transparent 50%),#132332!important;
  border-color:#2a3c49!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-1{--nahmed-lesson-wash:rgba(107,182,223,.075);--nahmed-lesson-card-accent:#8cb9cf;--nahmed-lesson-index-bg:#1a3040;--nahmed-lesson-progress-bg:#192e3d}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-2{--nahmed-lesson-wash:rgba(113,196,159,.065);--nahmed-lesson-card-accent:#94c8af;--nahmed-lesson-index-bg:#1a302b;--nahmed-lesson-progress-bg:#192d29}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-3{--nahmed-lesson-wash:rgba(223,183,102,.060);--nahmed-lesson-card-accent:#c4ad7c;--nahmed-lesson-index-bg:#302c23;--nahmed-lesson-progress-bg:#2c2922}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-4{--nahmed-lesson-wash:rgba(177,154,222,.060);--nahmed-lesson-card-accent:#b7a7d0;--nahmed-lesson-index-bg:#2b2735;--nahmed-lesson-progress-bg:#292531}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-tone-5{--nahmed-lesson-wash:rgba(221,160,170,.055);--nahmed-lesson-card-accent:#c2a0a6;--nahmed-lesson-index-bg:#30272a;--nahmed-lesson-progress-bg:#2c2528}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card{
  background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--nahmed-topic) 8%,transparent) 0,transparent 50%),#132332!important;
}

@media(max-width:760px){
  .nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:15px!important;line-height:1.74!important}
  .nahmed-dictionary .nahmed-lesson-block p,
  .nahmed-dictionary .nahmed-lesson-block li{font-size:13.6px!important;line-height:1.6!important}
  .nahmed-dictionary .nahmed-word-study-head p{font-size:12px!important}
  .nahmed-dictionary .nahmed-word-anatomy strong{font-size:11.2px!important}
  .nahmed-dictionary .nahmed-word-etymology p,
  .nahmed-dictionary .nahmed-word-example p{font-size:12.2px!important;line-height:1.5!important}
  .nahmed-dictionary .nahmed-related-term strong{font-size:12.4px!important}
  .nahmed-dictionary .nahmed-related-term p{font-size:11.2px!important}
}
/* Final specificity guards for completed/active cards in dark mode. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card.is-complete{
  background:radial-gradient(circle at 100% 0%,rgba(113,196,159,.070) 0,transparent 50%),#132332!important;
  border-color:#30463f!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card.is-active{
  background:radial-gradient(circle at 100% 0%,color-mix(in srgb,var(--nahmed-topic) 11%,transparent) 0,transparent 50%),#132332!important;
  border-color:color-mix(in srgb,var(--nahmed-topic) 38%,#263a49)!important;
}


/* v2.5.8 — provider-owned membership handoff and 30-use guest gate */
.nahmed-dictionary .nahmed-access-gate{position:fixed;inset:0;z-index:12050;display:grid;place-items:center;padding:16px;background:rgba(15,23,42,.48);backdrop-filter:blur(8px)}
.nahmed-dictionary .nahmed-access-gate[hidden]{display:none!important}
.nahmed-dictionary .nahmed-access-gate-card{position:relative;width:min(470px,calc(100vw - 24px));padding:28px;border:1px solid #dbe6eb;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.22);text-align:center;color:#173042}
.nahmed-dictionary .nahmed-access-gate-close{position:absolute;top:12px;right:12px;width:40px;height:40px;border:1px solid #d8e3e8;border-radius:13px;background:#fff;color:#506574;font-size:26px;line-height:1;cursor:pointer}
.nahmed-dictionary .nahmed-access-gate-icon{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;border-radius:18px;background:radial-gradient(circle at 82% 18%,rgba(73,181,203,.15),rgba(73,181,203,.035) 52%,transparent 72%),#f8fbfc;color:#0b6f8f;font-weight:800;font-size:21px}
.nahmed-dictionary .nahmed-access-gate-card h3{margin:0 0 10px;font-size:24px;line-height:1.25;color:#142c3c}
.nahmed-dictionary .nahmed-access-gate-card p{margin:0 auto 20px;max-width:390px;font-size:15.5px;line-height:1.65;color:#5a6d79}
.nahmed-dictionary .nahmed-access-gate-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.nahmed-dictionary .nahmed-access-gate-actions a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 14px;border-radius:14px;text-decoration:none!important;font-weight:750}
.nahmed-dictionary .nahmed-access-primary{background:#0b6f8f;color:#fff!important}
.nahmed-dictionary .nahmed-access-secondary{border:1px solid #cbdde5;background:#f8fbfc;color:#0b6f8f!important}
.nahmed-dictionary .nahmed-access-later{margin-top:12px;border:0;background:transparent;color:#607582;font-weight:650;cursor:pointer}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-gate-card{border-color:#294252;background:#10202d;color:#e5f0f5}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-gate-card h3{color:#eaf4f8}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-gate-card p,.nahmed-dictionary.nahmed-theme-dark .nahmed-access-later{color:#9bb0bc}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-gate-close{border-color:#304b5b;background:#142735;color:#dbe8ee}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-gate-icon{background:radial-gradient(circle at 82% 18%,rgba(99,213,231,.13),rgba(99,213,231,.03) 52%,transparent 72%),#142735;color:#93dce8}
.nahmed-dictionary.nahmed-theme-dark .nahmed-access-secondary{border-color:#345362;background:#142735;color:#9fe1ec!important}
@media(max-width:600px){.nahmed-dictionary .nahmed-access-gate{padding:6px}.nahmed-dictionary .nahmed-access-gate-card{width:calc(100vw - 12px);padding:24px 18px 20px;border-radius:20px}.nahmed-dictionary .nahmed-access-gate-card h3{font-size:21px}.nahmed-dictionary .nahmed-access-gate-actions{grid-template-columns:1fr}}


/* ==========================================================
   v2.5.9 — lesson readability refinement
   Increase only supporting learning text that remained small.
   ========================================================== */
.nahmed-dictionary .nahmed-word-study-head p{font-size:13.4px!important;line-height:1.45!important}
.nahmed-dictionary .nahmed-word-study-ipa{font-size:13px!important;line-height:1.2!important}
.nahmed-dictionary .nahmed-word-anatomy span,
.nahmed-dictionary .nahmed-word-etymology>span,
.nahmed-dictionary .nahmed-word-example>span{font-size:10.4px!important}
.nahmed-dictionary .nahmed-word-anatomy strong{font-size:13.2px!important;line-height:1.45!important}
.nahmed-dictionary .nahmed-word-etymology p{font-size:13.8px!important;line-height:1.62!important}
.nahmed-dictionary .nahmed-word-example p{font-size:14px!important;line-height:1.62!important}
.nahmed-dictionary .nahmed-family-card>strong{font-size:14px!important}
.nahmed-dictionary .nahmed-family-card p{font-size:13.2px!important;line-height:1.55!important}
.nahmed-dictionary .nahmed-family-forms span{font-size:12.2px!important}
.nahmed-dictionary .nahmed-related-term strong{font-size:14px!important}
.nahmed-dictionary .nahmed-related-term p{font-size:12.8px!important;line-height:1.48!important}
.nahmed-dictionary .nahmed-component-chip strong{font-size:12.8px!important}
.nahmed-dictionary .nahmed-component-chip em{font-size:12px!important}
.nahmed-dictionary .nahmed-confusable-pair p{font-size:13.6px!important;line-height:1.58!important}
.nahmed-dictionary .nahmed-quiz-intro{font-size:13px!important}
.nahmed-dictionary .nahmed-lesson-question legend{font-size:13.6px!important;line-height:1.48!important}
.nahmed-dictionary .nahmed-lesson-question label{font-size:13.6px!important;line-height:1.45!important}
.nahmed-dictionary .nahmed-lesson-score{font-size:13.6px!important}
@media(max-width:760px){
  .nahmed-dictionary .nahmed-word-study-head p{font-size:13px!important}
  .nahmed-dictionary .nahmed-word-study-ipa{font-size:12.2px!important}
  .nahmed-dictionary .nahmed-word-anatomy span,
  .nahmed-dictionary .nahmed-word-etymology>span,
  .nahmed-dictionary .nahmed-word-example>span{font-size:10px!important}
  .nahmed-dictionary .nahmed-word-anatomy strong{font-size:12.3px!important}
  .nahmed-dictionary .nahmed-word-etymology p,
  .nahmed-dictionary .nahmed-word-example p{font-size:13px!important;line-height:1.55!important}
  .nahmed-dictionary .nahmed-family-card p{font-size:12.8px!important}
  .nahmed-dictionary .nahmed-family-forms span{font-size:11.8px!important}
  .nahmed-dictionary .nahmed-related-term strong{font-size:13.2px!important}
  .nahmed-dictionary .nahmed-related-term p{font-size:12.2px!important;line-height:1.45!important}
  .nahmed-dictionary .nahmed-component-chip strong{font-size:12.2px!important}
  .nahmed-dictionary .nahmed-component-chip em{font-size:11.5px!important}
  .nahmed-dictionary .nahmed-confusable-pair p{font-size:13px!important}
  .nahmed-dictionary .nahmed-quiz-intro{font-size:12.6px!important}
  .nahmed-dictionary .nahmed-lesson-question legend,
  .nahmed-dictionary .nahmed-lesson-question label{font-size:13.2px!important}
}
\n\n/* v2.5.10 — unified single-title modules & leaner cards */\n.nahmed-dictionary .nahmed-section-heading{align-items:center!important;margin-bottom:10px!important}\n.nahmed-dictionary .nahmed-topic-section .nahmed-section-heading h2,\n.nahmed-dictionary .nahmed-learning-section .nahmed-section-heading h2{margin:0!important;font-size:20px!important;line-height:1.2!important;letter-spacing:.015em!important}\n.nahmed-dictionary .nahmed-topic-card{min-height:56px!important}\n.nahmed-dictionary .nahmed-topic-copy{display:flex!important;align-items:center!important}\n.nahmed-dictionary .nahmed-topic-copy strong{margin:0!important}\n.nahmed-dictionary .nahmed-learning-card{min-height:64px!important}\n.nahmed-dictionary .nahmed-learning-card>span:nth-child(2){display:flex!important;align-items:center!important;min-width:0!important}\n.nahmed-dictionary .nahmed-learning-card strong{margin:0!important;font-size:13.2px!important;line-height:1.26!important}\n.nahmed-dictionary .nahmed-az-heading{display:block!important;margin-bottom:8px!important}\n.nahmed-dictionary .nahmed-az-heading strong{font-size:16px!important;letter-spacing:.02em!important}\n@media(max-width:820px){\n .nahmed-dictionary .nahmed-topic-section .nahmed-section-heading h2,\n .nahmed-dictionary .nahmed-learning-section .nahmed-section-heading h2{font-size:18px!important}\n .nahmed-dictionary .nahmed-learning-card{min-height:58px!important}\n .nahmed-dictionary .nahmed-topic-card{min-height:54px!important}\n}\n

/* ==========================================================
   v2.5.13 — Calm Canvas, Paged Learning Grid & Right-Rail Harmony
   ========================================================== */
/* White-forward surfaces with one very light left-corner wash. */
.nahmed-dictionary .nahmed-learning-card{
  --nahmed-lesson-wash:rgba(85,154,188,.055);
  background:linear-gradient(90deg,var(--nahmed-lesson-wash) 0,rgba(255,255,255,.94) 24%,#fff 48%,#fff 100%)!important;
  border-color:#e2e9ed!important;
  box-shadow:0 3px 10px rgba(18,32,51,.025)!important;
}
.nahmed-dictionary .nahmed-learning-tone-1{--nahmed-lesson-wash:rgba(72,151,191,.055);--nahmed-lesson-card-accent:#477a94}
.nahmed-dictionary .nahmed-learning-tone-2{--nahmed-lesson-wash:rgba(82,163,126,.050);--nahmed-lesson-card-accent:#4f8068}
.nahmed-dictionary .nahmed-learning-tone-3{--nahmed-lesson-wash:rgba(184,144,70,.045);--nahmed-lesson-card-accent:#846f45}
.nahmed-dictionary .nahmed-learning-tone-4{--nahmed-lesson-wash:rgba(126,103,174,.045);--nahmed-lesson-card-accent:#75668d}
.nahmed-dictionary .nahmed-learning-tone-5{--nahmed-lesson-wash:rgba(174,101,112,.040);--nahmed-lesson-card-accent:#87666b}
.nahmed-dictionary .nahmed-learning-card.is-complete{
  background:linear-gradient(90deg,rgba(74,160,119,.055) 0,rgba(255,255,255,.95) 24%,#fff 48%,#fff 100%)!important;
  border-color:#dce8e1!important;
}
.nahmed-dictionary .nahmed-topic-card,
.nahmed-dictionary .nahmed-topic-card.is-active{
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-topic) 5%,transparent) 0,rgba(255,255,255,.96) 24%,#fff 48%,#fff 100%)!important;
  border-color:#e2e9ed!important;
  box-shadow:0 3px 10px rgba(18,32,51,.025)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card.is-complete{
  background:linear-gradient(90deg,var(--nahmed-lesson-wash) 0,rgba(19,35,50,.96) 28%,#132332 54%,#132332 100%)!important;
  border-color:#293d4a!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card.is-active{
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-topic) 6%,transparent) 0,rgba(19,35,50,.96) 28%,#132332 54%,#132332 100%)!important;
  border-color:#293d4a!important;
}

/* Curriculum navigation: numbered pages on desktop, progressive load on smaller canvases. */
.nahmed-dictionary .nahmed-learning-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin:14px 0 2px;min-height:38px}
.nahmed-dictionary .nahmed-learning-page{min-width:36px;height:36px;padding:0 10px;border:1px solid #dbe5ea;border-radius:11px;background:#fff;color:#496273;font-size:12.5px;font-weight:750;cursor:pointer}
.nahmed-dictionary .nahmed-learning-page.is-active{border-color:#0b7898;background:#0b7898;color:#fff}
.nahmed-dictionary .nahmed-learning-load-more{display:block;margin:13px auto 2px;min-height:42px;padding:8px 20px;border:1px solid #cbdde5;border-radius:999px;background:#fff;color:#0b708f;font-weight:800;cursor:pointer}
.nahmed-dictionary .nahmed-learning-load-more[hidden],.nahmed-dictionary .nahmed-learning-pagination[hidden]{display:none!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-page,.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-load-more{border-color:#304855;background:#122431;color:#a9c0cd}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-page.is-active{border-color:#69bbca;background:#18495a;color:#eaf8fb}

/* Consume both host and Search Dock-owned safe-area tokens. */
.nahmed-dictionary{
  --nahmed-v2513-rail:max(var(--med-host-right-rail-safe,0px),var(--nah-sdp-safe-right,0px));
}
@media (min-width:1200px){
  .nahmed-dictionary{
    --nahmed-unified-rail:var(--nahmed-v2513-rail);
    width:min(var(--nahmed-unified-canvas-max),calc(100vw - var(--nahmed-v2513-rail) - var(--nahmed-unified-gutter) - var(--nahmed-unified-gutter)))!important;
    margin-left:calc(50% - 50vw + max(var(--nahmed-unified-gutter),calc((100vw - var(--nahmed-v2513-rail) - var(--nahmed-unified-canvas-max))/2)))!important;
  }
  .nahmed-dictionary .nahmed-learning-modal,
  .nahmed-dictionary .nahmed-detail-modal{
    right:var(--nahmed-v2513-rail)!important;
    width:auto!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-dialog{
    width:min(1120px,calc(100vw - var(--nahmed-v2513-rail) - var(--nahmed-unified-gutter) - var(--nahmed-unified-gutter)))!important;
    max-width:none!important;
  }
  .nahmed-dictionary .nahmed-detail-modal-dialog{
    max-width:min(1180px,calc(100vw - var(--nahmed-v2513-rail) - var(--nahmed-unified-gutter) - var(--nahmed-unified-gutter)))!important;
  }
}
/* Right rail is absent below desktop; use almost all available width. */
@media (min-width:768px) and (max-width:1199px){
  .nahmed-dictionary{width:calc(100vw - 16px)!important;margin-left:calc(50% - 50vw + 8px)!important}
  .nahmed-standalone-body .nahmed-dictionary{margin-left:8px!important}
  .nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-az-home,.nahmed-dictionary .nahmed-workbench{padding-left:8px!important;padding-right:8px!important}
  .nahmed-dictionary .nahmed-learning-pagination{display:none!important}
}
@media (max-width:767px){
  .nahmed-dictionary .nahmed-learning-pagination{display:none!important}
  .nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-az-home,.nahmed-dictionary .nahmed-workbench{padding-left:max(4px,env(safe-area-inset-left))!important;padding-right:max(4px,env(safe-area-inset-right))!important}
}


/* ==========================================================
   v2.5.14 — Learning Card Visual Harmony
   ========================================================== */
/* Lesson cards now use the same geometry and line-icon language as clinical-topic cards. */
.nahmed-dictionary .nahmed-learning-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
}
.nahmed-dictionary .nahmed-learning-card{
  display:grid!important;
  grid-template-columns:34px minmax(0,1fr) auto!important;
  grid-template-rows:auto!important;
  align-items:center!important;
  gap:9px!important;
  min-width:0!important;
  min-height:56px!important;
  padding:10px 11px!important;
  border-radius:14px!important;
  text-align:left!important;
}
.nahmed-dictionary .nahmed-learning-card::before{display:none!important}
.nahmed-dictionary .nahmed-learning-icon{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:var(--nahmed-lesson-index-bg,#f1f6f8)!important;
  color:var(--nahmed-lesson-card-accent,#49788e)!important;
  flex:0 0 34px!important;
}
.nahmed-dictionary .nahmed-learning-icon svg{
  width:18px!important;
  height:18px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}
.nahmed-dictionary .nahmed-learning-copy{
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
}
.nahmed-dictionary .nahmed-learning-copy strong{
  margin:0!important;
  color:#183247!important;
  font-size:12.8px!important;
  font-weight:850!important;
  line-height:1.25!important;
}
.nahmed-dictionary .nahmed-learning-progress{
  grid-column:3!important;
  grid-row:1!important;
  align-self:start!important;
  justify-self:end!important;
  min-width:29px!important;
  padding:3px 6px!important;
  border-radius:999px!important;
  background:var(--nahmed-lesson-progress-bg,#f2f6f8)!important;
  color:var(--nahmed-lesson-card-accent,#627b8d)!important;
  font-size:9.5px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:center!important;
}
.nahmed-dictionary .nahmed-learning-card:hover{
  transform:translateY(-1px)!important;
  border-color:color-mix(in srgb,var(--nahmed-lesson-card-accent,#49788e) 30%,#e2e9ed)!important;
  box-shadow:0 7px 18px rgba(18,32,51,.055)!important;
}
.nahmed-dictionary .nahmed-learning-index{display:none!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-copy strong{color:#e2edf4!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-icon{
  background:var(--nahmed-lesson-index-bg,#1a3040)!important;
  color:var(--nahmed-lesson-card-accent,#8cb9cf)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-progress{
  background:var(--nahmed-lesson-progress-bg,#192e3d)!important;
  color:var(--nahmed-lesson-card-accent,#8cb9cf)!important;
}
@media(max-width:1100px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media(max-width:820px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .nahmed-dictionary .nahmed-learning-card{min-height:54px!important}
}
@media(max-width:560px){
  .nahmed-dictionary .nahmed-learning-grid{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .nahmed-dictionary .nahmed-learning-card{grid-template-columns:30px minmax(0,1fr) auto!important;min-height:52px!important;padding:8px!important;gap:7px!important}
  .nahmed-dictionary .nahmed-learning-icon{width:30px!important;height:30px!important;border-radius:9px!important}
  .nahmed-dictionary .nahmed-learning-icon svg{width:16px!important;height:16px!important}
  .nahmed-dictionary .nahmed-learning-copy strong{font-size:12px!important;line-height:1.22!important}
  .nahmed-dictionary .nahmed-learning-progress{padding:2px 5px!important;font-size:8.8px!important}
}

/* ==========================================================
   v2.5.15 — Lesson Readability & Contrast
   Final cascade layer: larger learning text + stronger contrast
   across desktop, tablet, foldable and mobile.
   ========================================================== */
.nahmed-dictionary .nahmed-learning-modal-header h3{
  font-size:26px!important;
  line-height:1.22!important;
  color:#102f43!important;
}
.nahmed-dictionary .nahmed-lesson-block h4,
.nahmed-dictionary .nahmed-lesson-section-title h4{
  font-size:16.5px!important;
  line-height:1.3!important;
  color:#17384b!important;
}
.nahmed-dictionary .nahmed-lesson-section-title>div>p{
  font-size:13.2px!important;
  line-height:1.5!important;
  color:#526b7b!important;
}
.nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{
  font-size:17px!important;
  line-height:1.82!important;
  color:#2f4b5d!important;
}
.nahmed-dictionary .nahmed-lesson-block p,
.nahmed-dictionary .nahmed-lesson-block li{
  font-size:15px!important;
  line-height:1.68!important;
  color:#385465!important;
}
.nahmed-dictionary .nahmed-word-study-head h5{
  font-size:17px!important;
  line-height:1.28!important;
  color:#17384b!important;
}
.nahmed-dictionary .nahmed-word-study-head p{
  font-size:14.2px!important;
  line-height:1.5!important;
  color:#455f70!important;
}
.nahmed-dictionary .nahmed-word-study-ipa{
  font-size:14.2px!important;
  line-height:1.25!important;
  color:#344f61!important;
  background:#edf3f6!important;
}
.nahmed-dictionary .nahmed-word-anatomy span,
.nahmed-dictionary .nahmed-word-etymology>span,
.nahmed-dictionary .nahmed-word-example>span{
  font-size:11.4px!important;
  line-height:1.3!important;
  color:#5b7080!important;
}
.nahmed-dictionary .nahmed-word-anatomy strong{
  font-size:14px!important;
  line-height:1.5!important;
  color:#29495d!important;
}
.nahmed-dictionary .nahmed-word-etymology p{
  font-size:14.6px!important;
  line-height:1.68!important;
  color:#3c5869!important;
}
.nahmed-dictionary .nahmed-word-example p{
  font-size:14.8px!important;
  line-height:1.66!important;
  color:#334f61!important;
}
.nahmed-dictionary .nahmed-word-example p:last-child{color:#4f6878!important}
.nahmed-dictionary .nahmed-family-card>strong{
  font-size:15px!important;
  line-height:1.35!important;
  color:#17384b!important;
}
.nahmed-dictionary .nahmed-family-forms span{
  font-size:13px!important;
  line-height:1.25!important;
  color:#235d76!important;
}
.nahmed-dictionary .nahmed-family-card p{
  font-size:14px!important;
  line-height:1.62!important;
  color:#455f70!important;
}
.nahmed-dictionary .nahmed-related-term strong{
  font-size:14.6px!important;
  line-height:1.38!important;
  color:#17384b!important;
}
.nahmed-dictionary .nahmed-related-term p{
  font-size:13.6px!important;
  line-height:1.55!important;
  color:#4d6676!important;
}
.nahmed-dictionary .nahmed-related-term-no{font-size:11.5px!important;color:#1f667f!important}
.nahmed-dictionary .nahmed-component-chip strong{font-size:13.6px!important;color:#183f54!important}
.nahmed-dictionary .nahmed-component-chip em{font-size:12.8px!important;color:#526a79!important}
.nahmed-dictionary .nahmed-confusable-pair>div{color:#3c3150!important}
.nahmed-dictionary .nahmed-confusable-pair>div strong{font-size:15px!important}
.nahmed-dictionary .nahmed-confusable-pair p{
  font-size:14.2px!important;
  line-height:1.65!important;
  color:#51475b!important;
}
.nahmed-dictionary .nahmed-lesson-practice li{color:#3e5969!important}
.nahmed-dictionary .nahmed-quiz-intro{
  font-size:13.8px!important;
  line-height:1.55!important;
  color:#526a79!important;
}
.nahmed-dictionary .nahmed-lesson-question legend{
  font-size:14.6px!important;
  line-height:1.5!important;
  color:#203f53!important;
}
.nahmed-dictionary .nahmed-lesson-question label{
  font-size:14.5px!important;
  line-height:1.5!important;
  color:#385465!important;
}
.nahmed-dictionary .nahmed-lesson-score{
  font-size:14.5px!important;
  line-height:1.5!important;
}

/* Dark mode: preserve hierarchy while lifting muted-text contrast. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-header h3,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-block h4,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-section-title h4,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head h5,
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-card>strong,
.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term strong{
  color:#e8f2f6!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-section-title>div>p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-reading .nahmed-lesson-prose,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-block p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-block li,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-head p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-etymology p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-example p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-family-card p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-related-term p,
.nahmed-dictionary.nahmed-theme-dark .nahmed-component-chip em,
.nahmed-dictionary.nahmed-theme-dark .nahmed-quiz-intro,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-question label{
  color:#bfd0da!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-anatomy span,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-etymology>span,
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-example>span{color:#a9bdc8!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-anatomy strong,
.nahmed-dictionary.nahmed-theme-dark .nahmed-component-chip strong,
.nahmed-dictionary.nahmed-theme-dark .nahmed-lesson-question legend{color:#d8e6ed!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-word-study-ipa{background:#1c3444!important;color:#d0e0e8!important}

/* Tablet/foldable: keep desktop readability while fitting the shorter canvas. */
@media (min-width:768px) and (max-width:1199px){
  .nahmed-dictionary .nahmed-learning-modal-header h3{font-size:23px!important}
  .nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:16.5px!important;line-height:1.8!important}
  .nahmed-dictionary .nahmed-lesson-block p,
  .nahmed-dictionary .nahmed-lesson-block li{font-size:14.7px!important;line-height:1.66!important}
}

/* Mobile: never fall back to the old 10–13 px support typography. */
@media (max-width:767px){
  .nahmed-dictionary .nahmed-learning-modal-header h3{font-size:21px!important;line-height:1.24!important}
  .nahmed-dictionary .nahmed-lesson-block h4,
  .nahmed-dictionary .nahmed-lesson-section-title h4{font-size:15.8px!important}
  .nahmed-dictionary .nahmed-lesson-section-title>div>p{font-size:12.8px!important;color:#4f6777!important}
  .nahmed-dictionary .nahmed-lesson-reading .nahmed-lesson-prose{font-size:16px!important;line-height:1.78!important}
  .nahmed-dictionary .nahmed-lesson-block p,
  .nahmed-dictionary .nahmed-lesson-block li{font-size:14.5px!important;line-height:1.64!important}
  .nahmed-dictionary .nahmed-word-study-head h5{font-size:15.8px!important}
  .nahmed-dictionary .nahmed-word-study-head p{font-size:13.8px!important;color:#425c6d!important}
  .nahmed-dictionary .nahmed-word-study-ipa{font-size:13.5px!important}
  .nahmed-dictionary .nahmed-word-anatomy span,
  .nahmed-dictionary .nahmed-word-etymology>span,
  .nahmed-dictionary .nahmed-word-example>span{font-size:10.8px!important;color:#566c7b!important}
  .nahmed-dictionary .nahmed-word-anatomy strong{font-size:13px!important}
  .nahmed-dictionary .nahmed-word-etymology p,
  .nahmed-dictionary .nahmed-word-example p{font-size:14px!important;line-height:1.62!important}
  .nahmed-dictionary .nahmed-family-card>strong{font-size:14.5px!important}
  .nahmed-dictionary .nahmed-family-card p{font-size:13.7px!important}
  .nahmed-dictionary .nahmed-family-forms span{font-size:12.6px!important}
  .nahmed-dictionary .nahmed-related-term strong{font-size:14px!important}
  .nahmed-dictionary .nahmed-related-term p{font-size:13.2px!important;line-height:1.52!important}
  .nahmed-dictionary .nahmed-component-chip strong{font-size:13px!important}
  .nahmed-dictionary .nahmed-component-chip em{font-size:12.3px!important}
  .nahmed-dictionary .nahmed-confusable-pair p{font-size:13.8px!important}
  .nahmed-dictionary .nahmed-quiz-intro{font-size:13.4px!important}
  .nahmed-dictionary .nahmed-lesson-question legend,
  .nahmed-dictionary .nahmed-lesson-question label{font-size:14.2px!important}
  .nahmed-dictionary .nahmed-lesson-score{font-size:14.2px!important}
}


/* v2.5.16 — inpatient/outpatient scenario learning */
.nahmed-scenario-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.nahmed-scenario-card{border:1px solid rgba(15,76,129,.12);border-radius:14px;padding:14px 15px;background:linear-gradient(90deg,rgba(14,165,233,.045) 0,rgba(255,255,255,.98) 36%,#fff 100%);min-width:0}
.nahmed-scenario-setting{display:inline-flex;align-items:center;min-height:26px;padding:4px 9px;border-radius:999px;background:rgba(8,145,178,.09);color:#155e75;font-size:12.8px;font-weight:800;letter-spacing:.01em;margin-bottom:8px}
.nahmed-scenario-card h5{margin:0 0 7px;font-size:16px;line-height:1.35;color:#15384b}
.nahmed-scenario-summary{margin:0 0 10px;font-size:14.8px;line-height:1.6;color:#334e60}
.nahmed-scenario-phrases{display:grid;gap:7px;margin:0 0 10px}
.nahmed-scenario-phrases>div{display:grid;grid-template-columns:minmax(130px,.8fr) minmax(0,1.2fr);gap:9px;padding:8px 10px;border-radius:10px;background:rgba(255,255,255,.72);border:1px solid rgba(15,76,129,.08)}
.nahmed-scenario-phrases strong{font-size:14px;line-height:1.45;color:#183b50}
.nahmed-scenario-phrases span{font-size:14px;line-height:1.45;color:#405b6a}
.nahmed-scenario-task{margin:0;font-size:14.4px;line-height:1.55;color:#27495c}
html.nahmed-dark .nahmed-scenario-card,html[data-theme="dark"] .nahmed-scenario-card,body.nahmed-dark .nahmed-scenario-card{background:linear-gradient(90deg,rgba(14,116,144,.13) 0,rgba(15,23,42,.97) 38%,#0f172a 100%);border-color:rgba(148,163,184,.18)}
html.nahmed-dark .nahmed-scenario-setting,html[data-theme="dark"] .nahmed-scenario-setting,body.nahmed-dark .nahmed-scenario-setting{background:rgba(34,211,238,.12);color:#a5f3fc}
html.nahmed-dark .nahmed-scenario-card h5,html[data-theme="dark"] .nahmed-scenario-card h5,body.nahmed-dark .nahmed-scenario-card h5{color:#f1f5f9}
html.nahmed-dark .nahmed-scenario-summary,html[data-theme="dark"] .nahmed-scenario-summary,body.nahmed-dark .nahmed-scenario-summary,html.nahmed-dark .nahmed-scenario-task,html[data-theme="dark"] .nahmed-scenario-task,body.nahmed-dark .nahmed-scenario-task{color:#cbd5e1}
html.nahmed-dark .nahmed-scenario-phrases>div,html[data-theme="dark"] .nahmed-scenario-phrases>div,body.nahmed-dark .nahmed-scenario-phrases>div{background:rgba(15,23,42,.72);border-color:rgba(148,163,184,.16)}
html.nahmed-dark .nahmed-scenario-phrases strong,html[data-theme="dark"] .nahmed-scenario-phrases strong,body.nahmed-dark .nahmed-scenario-phrases strong{color:#e2e8f0}
html.nahmed-dark .nahmed-scenario-phrases span,html[data-theme="dark"] .nahmed-scenario-phrases span,body.nahmed-dark .nahmed-scenario-phrases span{color:#cbd5e1}
@media(max-width:820px){.nahmed-scenario-grid{grid-template-columns:1fr}.nahmed-scenario-card{padding:13px}.nahmed-scenario-card h5{font-size:15.5px}.nahmed-scenario-summary{font-size:14.5px}.nahmed-scenario-phrases strong,.nahmed-scenario-phrases span{font-size:13.8px}}
@media(max-width:560px){.nahmed-scenario-card{padding:12px 11px}.nahmed-scenario-phrases>div{grid-template-columns:1fr;gap:3px}.nahmed-scenario-setting{font-size:12.5px}.nahmed-scenario-summary,.nahmed-scenario-task{font-size:14.3px}}


/* v2.5.17 — contextual Medical English scenario workspace */
.nahmed-dictionary .nahmed-context-section{order:3;padding:clamp(18px,2.2vw,26px);border-bottom:1px solid var(--nahmed-line);background:#fff}
.nahmed-dictionary .nahmed-az-home{order:4!important}
.nahmed-dictionary .nahmed-workbench{order:5!important}
.nahmed-dictionary .nahmed-context-section .nahmed-section-heading h2{margin:0!important;font-size:20px!important;line-height:1.2!important;letter-spacing:.015em!important}
.nahmed-dictionary .nahmed-context-progress{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 6px;gap:9px 14px;align-items:center;margin:0 0 10px;padding:10px 12px;border:1px solid #dfe8ed;border-radius:14px;background:#fbfdfe}
.nahmed-dictionary .nahmed-context-progress-copy{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;color:#526b7a;font-size:12.8px}.nahmed-dictionary .nahmed-context-progress-copy strong{color:#17384b;font-size:13.4px}.nahmed-dictionary .nahmed-context-progress-copy span{white-space:nowrap}
.nahmed-dictionary .nahmed-context-progress-track{grid-column:1/-1;height:6px;border-radius:999px;background:#e9f0f4;overflow:hidden}.nahmed-dictionary .nahmed-context-progress-track span{display:block;width:0;height:100%;border-radius:inherit;background:#0b7897;transition:width .2s ease}
.nahmed-dictionary .nahmed-context-continue{padding:8px 13px!important;border:0!important;border-radius:999px!important;background:#0b7897!important;color:#fff!important;font-size:12.5px!important;font-weight:850!important;cursor:pointer!important;white-space:nowrap}
.nahmed-dictionary .nahmed-context-filters{display:flex;gap:7px;overflow-x:auto;margin:0 0 10px;padding:0 0 2px;scrollbar-width:none}.nahmed-dictionary .nahmed-context-filters::-webkit-scrollbar{display:none}.nahmed-dictionary .nahmed-context-filters button{flex:0 0 auto;padding:7px 10px!important;border:1px solid #dbe5ea!important;border-radius:999px!important;background:#fff!important;color:#60798b!important;font-size:11.5px!important;font-weight:800!important;cursor:pointer!important}.nahmed-dictionary .nahmed-context-filters button.is-active{border-color:#0b7897!important;color:#0b7897!important;background:#f4fafc!important}
.nahmed-dictionary .nahmed-context-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.nahmed-dictionary .nahmed-context-card{display:grid!important;grid-template-columns:34px minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important;min-height:58px!important;margin:0!important;padding:10px 11px!important;border:1px solid #e1e9ee!important;border-radius:14px!important;background:linear-gradient(90deg,rgba(41,121,151,.045) 0,rgba(255,255,255,.985) 34%,#fff 100%)!important;color:#17384b!important;text-align:left!important;cursor:pointer!important;box-shadow:0 4px 12px rgba(18,32,51,.028)!important}.nahmed-dictionary .nahmed-context-card:hover{border-color:rgba(11,111,143,.24)!important;box-shadow:0 7px 18px rgba(18,32,51,.055)!important}.nahmed-dictionary .nahmed-context-card.is-complete{border-color:rgba(35,130,105,.24)!important;background:linear-gradient(90deg,rgba(35,130,105,.055) 0,#fff 34%,#fff 100%)!important}
.nahmed-dictionary .nahmed-context-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f1f6f8;color:#49788e}.nahmed-dictionary .nahmed-context-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nahmed-dictionary .nahmed-context-copy{min-width:0}.nahmed-dictionary .nahmed-context-copy strong{display:block;margin:0;color:#17384b;font-size:13.2px;line-height:1.26}.nahmed-dictionary .nahmed-context-copy small{display:block;margin-top:2px;color:#617888;font-size:11.4px;line-height:1.25}.nahmed-dictionary .nahmed-context-score{align-self:start;padding:3px 6px;border-radius:999px;background:#f2f6f8;color:#60798b;font-size:9.5px;font-weight:850}
.nahmed-dictionary .nahmed-context-pagination{display:flex;align-items:center;justify-content:center;gap:6px;margin:14px 0 2px;min-height:38px}.nahmed-dictionary .nahmed-context-page{min-width:36px;height:36px;padding:0 10px;border:1px solid #dbe5ea;border-radius:11px;background:#fff;color:#496273;font-size:12.5px;font-weight:750;cursor:pointer}.nahmed-dictionary .nahmed-context-page.is-active{border-color:#0b7897;background:#0b7897;color:#fff}.nahmed-dictionary .nahmed-context-load-more{display:block;margin:13px auto 2px;min-height:42px;padding:8px 20px;border:1px solid #cbdde5;border-radius:999px;background:#fff;color:#0b708f;font-weight:800;cursor:pointer}.nahmed-dictionary .nahmed-context-load-more[hidden],.nahmed-dictionary .nahmed-context-pagination[hidden]{display:none!important}
.nahmed-dictionary .nahmed-context-modal-dialog{width:min(1060px,calc(100vw - var(--med-host-right-rail-safe,0px) - var(--nah-sdp-safe-right,0px) - 40px))!important}.nahmed-dictionary .nahmed-context-vignette>p{margin:0 0 12px;font-size:17px;line-height:1.7;color:#233f51}.nahmed-dictionary .nahmed-context-translation{margin-top:12px;padding:12px 13px;border-left:3px solid #8fb9c7;border-radius:10px;background:#f7fafb}.nahmed-dictionary .nahmed-context-translation strong{display:block;margin-bottom:5px;color:#17384b}.nahmed-dictionary .nahmed-context-translation p{margin:0;font-size:15px;line-height:1.65;color:#334e60}
.nahmed-dictionary .nahmed-context-phrase-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.nahmed-dictionary .nahmed-context-phrase-list>div{padding:10px 11px;border:1px solid #e1e9ee;border-radius:12px;background:#fbfdfe}.nahmed-dictionary .nahmed-context-phrase-list strong{display:block;color:#15384b;font-size:14.5px;line-height:1.4}.nahmed-dictionary .nahmed-context-phrase-list span{display:block;margin-top:2px;color:#334e60;font-size:14.2px;line-height:1.45}.nahmed-dictionary .nahmed-context-phrase-list em{display:block;margin-top:4px;color:#607582;font-size:13.2px;line-height:1.4;font-style:normal}
.nahmed-dictionary .nahmed-context-dialogue{display:grid;gap:8px}.nahmed-dictionary .nahmed-context-dialogue>div{display:grid;grid-template-columns:92px minmax(0,1fr);gap:4px 10px;padding:10px 11px;border:1px solid #e1e9ee;border-radius:12px;background:#fff}.nahmed-dictionary .nahmed-context-dialogue b{grid-row:1/3;color:#0b7897;font-size:13.5px}.nahmed-dictionary .nahmed-context-dialogue p{margin:0;color:#233f51;font-size:15px;line-height:1.5}.nahmed-dictionary .nahmed-context-dialogue span{color:#526d7c;font-size:14px;line-height:1.45}
.nahmed-dictionary .nahmed-context-note{display:grid;gap:8px}.nahmed-dictionary .nahmed-context-note>div{padding:10px 11px;border-left:3px solid #b2cbd4;border-radius:9px;background:#f8fbfc}.nahmed-dictionary .nahmed-context-note strong{color:#17384b;font-size:13.5px}.nahmed-dictionary .nahmed-context-note p{margin:4px 0 2px;color:#233f51;font-size:14.8px;line-height:1.5}.nahmed-dictionary .nahmed-context-note span{color:#526d7c;font-size:13.8px;line-height:1.45}
.nahmed-dictionary .nahmed-context-collocations{display:flex;flex-wrap:wrap;gap:7px}.nahmed-dictionary .nahmed-context-collocations span{display:inline-flex;align-items:baseline;gap:6px;padding:7px 9px;border:1px solid #dce7ed;border-radius:999px;background:#f8fbfc}.nahmed-dictionary .nahmed-context-collocations strong{color:#17384b;font-size:13.8px}.nahmed-dictionary .nahmed-context-collocations em{color:#526d7c;font-size:13.2px;font-style:normal}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-section{background:#101d29}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-progress,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-card,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrase-list>div,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue>div,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note>div,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocations span{background:#132332!important;border-color:#263a49!important}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-copy strong,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-vignette>p,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrase-list strong,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue p,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note p,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocations strong{color:#edf5f9!important}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-copy small,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrase-list span,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrase-list em,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue span,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note span,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocations em{color:#b9cad4!important}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-translation{background:#172735;border-color:#4c7280}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-translation p{color:#c8d7df}.nahmed-dictionary.nahmed-theme-dark .nahmed-context-filters button,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-page,.nahmed-dictionary.nahmed-theme-dark .nahmed-context-load-more{background:#132332!important;border-color:#2a4150!important;color:#c8d7df!important}
@media(max-width:1199px){.nahmed-dictionary .nahmed-context-section{padding-left:8px!important;padding-right:8px!important}.nahmed-dictionary .nahmed-context-pagination{display:none!important}.nahmed-dictionary .nahmed-context-modal-dialog{width:calc(100vw - 16px)!important;max-width:none!important}.nahmed-dictionary .nahmed-context-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:820px){.nahmed-dictionary .nahmed-context-section .nahmed-section-heading h2{font-size:18px!important}.nahmed-dictionary .nahmed-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nahmed-dictionary .nahmed-context-progress{grid-template-columns:1fr auto}.nahmed-dictionary .nahmed-context-progress-copy{display:block}.nahmed-dictionary .nahmed-context-progress-copy span{display:block;margin-top:3px;white-space:normal}.nahmed-dictionary .nahmed-context-phrase-list{grid-template-columns:1fr}.nahmed-dictionary .nahmed-context-dialogue>div{grid-template-columns:78px minmax(0,1fr)}}
@media(max-width:560px){.nahmed-dictionary .nahmed-context-section{padding-left:max(4px,env(safe-area-inset-left))!important;padding-right:max(4px,env(safe-area-inset-right))!important}.nahmed-dictionary .nahmed-context-grid{grid-template-columns:1fr 1fr;gap:6px}.nahmed-dictionary .nahmed-context-card{grid-template-columns:30px minmax(0,1fr) auto!important;min-height:54px!important;padding:8px!important;gap:7px!important}.nahmed-dictionary .nahmed-context-icon{width:30px;height:30px}.nahmed-dictionary .nahmed-context-icon svg{width:16px;height:16px}.nahmed-dictionary .nahmed-context-copy strong{font-size:12.4px}.nahmed-dictionary .nahmed-context-copy small{font-size:10.8px}.nahmed-dictionary .nahmed-context-score{font-size:9px}.nahmed-dictionary .nahmed-context-progress{grid-template-columns:1fr;padding:9px}.nahmed-dictionary .nahmed-context-continue{justify-self:start}.nahmed-dictionary .nahmed-context-modal-dialog{width:calc(100vw - 8px)!important}.nahmed-dictionary .nahmed-context-dialogue>div{grid-template-columns:1fr}.nahmed-dictionary .nahmed-context-dialogue b{grid-row:auto}.nahmed-dictionary .nahmed-context-vignette>p{font-size:16px}.nahmed-dictionary .nahmed-context-translation p{font-size:14.5px}}


/* v2.5.18 — module order + naming layout hotfix */
.nahmed-dictionary .nahmed-topic-section{order:1!important}
.nahmed-dictionary .nahmed-learning-section{order:2!important}
.nahmed-dictionary .nahmed-context-section{order:3!important}
.nahmed-dictionary .nahmed-az-home{order:4!important}
.nahmed-dictionary .nahmed-workbench{order:5!important}


/* v2.5.19 — Applied Medical English quiz feedback */
.nahmed-dictionary .nahmed-context-modal .nahmed-lesson-question.is-correct{
  border-color:#8ecfb3!important;background:rgba(30,140,90,.055)!important;
}
.nahmed-dictionary .nahmed-context-modal .nahmed-lesson-question.is-incorrect{
  border-color:#e7b0aa!important;background:rgba(176,65,53,.045)!important;
}
.nahmed-dictionary .nahmed-context-modal .nahmed-lesson-submit:focus-visible{
  outline:3px solid rgba(11,111,143,.22)!important;outline-offset:3px!important;
}
.nahmed-dictionary .nahmed-context-modal .nahmed-lesson-score.is-visible{
  display:block!important;font-size:14.4px!important;line-height:1.5!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-modal .nahmed-lesson-question.is-correct{
  border-color:rgba(100,210,160,.58)!important;background:rgba(60,160,110,.10)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-modal .nahmed-lesson-question.is-incorrect{
  border-color:rgba(240,145,135,.58)!important;background:rgba(190,70,60,.10)!important;
}


/* v2.5.20 — Applied Medical English card redesign */
.nahmed-dictionary .nahmed-context-modal-content{
  --ctx-ink:#17384b;
  --ctx-body:#29495a;
  --ctx-muted:#587183;
  --ctx-line:#dce7ec;
  --ctx-teal:#0b7897;
  --ctx-radius:18px;
}
.nahmed-dictionary .nahmed-context-modal-content>.nahmed-context-detail-card{
  position:relative;
  overflow:hidden;
  margin:0 0 12px!important;
  padding:16px 17px!important;
  border:1px solid var(--ctx-line)!important;
  border-radius:var(--ctx-radius)!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(22,54,72,.045)!important;
}
.nahmed-dictionary .nahmed-context-modal-content>.nahmed-context-detail-card::after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:linear-gradient(180deg,rgba(11,120,151,.58),rgba(11,120,151,.08));
  pointer-events:none;
}
.nahmed-dictionary .nahmed-context-objectives-card{
  background:linear-gradient(112deg,rgba(225,248,247,.92) 0%,rgba(246,252,251,.86) 31%,#fff 72%)!important;
  border-color:#d5e9e5!important;
}
.nahmed-dictionary .nahmed-context-objectives-card::after{background:linear-gradient(180deg,#58ab9a,rgba(88,171,154,.10))!important}
.nahmed-dictionary .nahmed-context-vignette-card{
  background:linear-gradient(112deg,rgba(229,245,251,.95) 0%,rgba(248,252,254,.9) 34%,#fff 74%)!important;
  border-color:#d6e8ef!important;
}
.nahmed-dictionary .nahmed-context-vignette-card::after{background:linear-gradient(180deg,#4e9bb6,rgba(78,155,182,.10))!important}
.nahmed-dictionary .nahmed-context-block-heading{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:11px;
  align-items:start;
  margin:0 0 12px;
}
.nahmed-dictionary .nahmed-context-block-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  border-radius:13px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(126,165,181,.22);
  color:#397e98;
  box-shadow:0 4px 12px rgba(31,87,108,.055);
}
.nahmed-dictionary .nahmed-context-objectives-card .nahmed-context-block-icon{color:#397e70;background:rgba(255,255,255,.74)}
.nahmed-dictionary .nahmed-context-block-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.nahmed-dictionary .nahmed-context-block-heading h4{
  margin:1px 0 3px!important;
  color:var(--ctx-ink)!important;
  font-size:18px!important;
  line-height:1.25!important;
  font-weight:850!important;
}
.nahmed-dictionary .nahmed-context-block-heading p{
  margin:0!important;
  color:var(--ctx-muted)!important;
  font-size:13.8px!important;
  line-height:1.45!important;
}
.nahmed-dictionary .nahmed-context-objectives{
  display:grid;
  gap:7px;
  margin:2px 0 0 51px!important;
  padding-left:20px!important;
  color:var(--ctx-body)!important;
  font-size:15.2px!important;
  line-height:1.55!important;
}
.nahmed-dictionary .nahmed-context-objectives li::marker{color:#4f9c8d}

/* Clinical context: one bilingual card, no separate “Bản dịch” card. */
.nahmed-dictionary .nahmed-context-bilingual{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:10px;
  margin-top:4px;
}
.nahmed-dictionary .nahmed-context-language-pane{
  min-width:0;
  padding:13px 14px 14px;
  border:1px solid rgba(167,195,207,.42);
  border-radius:14px;
  background:rgba(255,255,255,.75);
}
.nahmed-dictionary .nahmed-context-language-pane.is-en{box-shadow:inset 3px 0 0 rgba(65,143,172,.38)}
.nahmed-dictionary .nahmed-context-language-pane.is-vi{box-shadow:inset 3px 0 0 rgba(70,151,131,.30)}
.nahmed-dictionary .nahmed-context-language-label{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  margin-bottom:7px;
  padding:3px 8px;
  border-radius:999px;
  background:#eef6f8;
  color:#477184;
  font-size:11.4px;
  line-height:1;
  font-weight:850;
  letter-spacing:.035em;
}
.nahmed-dictionary .nahmed-context-language-pane.is-vi .nahmed-context-language-label{background:#eff8f4;color:#477866}
.nahmed-dictionary .nahmed-context-language-pane p{
  margin:0!important;
  color:#29495a!important;
  font-size:16px!important;
  line-height:1.68!important;
}
.nahmed-dictionary .nahmed-context-language-pane.is-en p{font-size:16.5px!important;color:#203f51!important}
/* Legacy translation node is not used in v2.5.20 markup. */
.nahmed-dictionary .nahmed-context-vignette-card>.nahmed-context-translation{display:none!important}
.nahmed-dictionary .nahmed-context-vignette-card>p{display:none!important}

/* Supporting content cards: restrained editorial surfaces. */
.nahmed-dictionary .nahmed-context-phrases-card{background:linear-gradient(110deg,rgba(245,249,251,.98),#fff 44%)!important}
.nahmed-dictionary .nahmed-context-dialogue-card{background:linear-gradient(110deg,rgba(245,250,252,.98),#fff 44%)!important}
.nahmed-dictionary .nahmed-context-note-card{background:linear-gradient(110deg,rgba(247,250,248,.98),#fff 44%)!important}
.nahmed-dictionary .nahmed-context-collocation-card{background:linear-gradient(110deg,rgba(250,248,244,.98),#fff 44%)!important}
.nahmed-dictionary .nahmed-context-practice-card{background:linear-gradient(110deg,rgba(247,247,252,.98),#fff 44%)!important}
.nahmed-dictionary .nahmed-context-quiz-card{background:linear-gradient(110deg,rgba(246,249,251,.98),#fff 44%)!important}

.nahmed-dictionary .nahmed-context-phrase-list{gap:9px!important}
.nahmed-dictionary .nahmed-context-phrase-list>div{
  padding:11px 12px!important;
  border-color:#dde8ed!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.86)!important;
}
.nahmed-dictionary .nahmed-context-dialogue{gap:9px!important}
.nahmed-dictionary .nahmed-context-dialogue>div{
  padding:11px 12px!important;
  border-color:#dde8ed!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.88)!important;
}
.nahmed-dictionary .nahmed-context-note>div{
  padding:11px 12px!important;
  border-left:0!important;
  border:1px solid #dfe9e5!important;
  border-radius:13px!important;
  background:rgba(255,255,255,.86)!important;
  box-shadow:inset 3px 0 0 rgba(77,151,129,.24)!important;
}
.nahmed-dictionary .nahmed-context-collocations span{
  padding:8px 10px!important;
  border-color:#e2e5df!important;
  background:rgba(255,255,255,.88)!important;
}
.nahmed-dictionary .nahmed-context-practice-list{
  display:grid;
  gap:8px;
  margin:0!important;
  padding-left:22px!important;
  color:#29495a!important;
  font-size:15px!important;
  line-height:1.55!important;
}
.nahmed-dictionary .nahmed-context-quiz-card .nahmed-lesson-question{
  border-radius:14px!important;
  border-color:#dfe8ec!important;
  background:rgba(255,255,255,.86)!important;
}

/* Dark mode counterparts keep the gradient language without bright surfaces. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-modal-content{
  --ctx-ink:#edf5f9;
  --ctx-body:#d8e5eb;
  --ctx-muted:#b8cad4;
  --ctx-line:#2b4050;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-modal-content>.nahmed-context-detail-card{
  border-color:#2b4050!important;
  background:#132331!important;
  box-shadow:0 8px 24px rgba(0,0,0,.16)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-objectives-card{
  background:linear-gradient(112deg,rgba(37,86,76,.38) 0%,#132331 55%)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-vignette-card{
  background:linear-gradient(112deg,rgba(37,79,98,.42) 0%,#132331 56%)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-block-icon{background:rgba(18,42,56,.78);border-color:#365364;color:#8bc1d5}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-objectives-card .nahmed-context-block-icon{color:#8bcab7}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-block-heading h4{color:#edf5f9!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-block-heading p{color:#b8cad4!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-objectives,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-practice-list{color:#d8e5eb!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-pane{
  background:rgba(18,40,53,.78)!important;
  border-color:#355062!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-label{background:#1b3545;color:#b8d3df}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-pane.is-vi .nahmed-context-language-label{background:#1c382f;color:#b9dacb}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-pane p{color:#dbe7ed!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-pane.is-en p{color:#edf5f9!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrase-list>div,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue>div,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note>div,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocations span,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-quiz-card .nahmed-lesson-question{
  background:rgba(17,38,51,.82)!important;
  border-color:#304858!important;
}

@media(max-width:860px){
  .nahmed-dictionary .nahmed-context-bilingual{grid-template-columns:1fr}
  .nahmed-dictionary .nahmed-context-objectives{margin-left:0!important}
}
@media(max-width:560px){
  .nahmed-dictionary .nahmed-context-modal-content>.nahmed-context-detail-card{padding:13px 12px!important;border-radius:15px!important}
  .nahmed-dictionary .nahmed-context-block-heading{grid-template-columns:34px minmax(0,1fr);gap:9px;margin-bottom:10px}
  .nahmed-dictionary .nahmed-context-block-icon{width:34px;height:34px;border-radius:11px}
  .nahmed-dictionary .nahmed-context-block-icon svg{width:18px;height:18px}
  .nahmed-dictionary .nahmed-context-block-heading h4{font-size:16.5px!important}
  .nahmed-dictionary .nahmed-context-block-heading p{font-size:13px!important}
  .nahmed-dictionary .nahmed-context-language-pane{padding:11px 11px 12px}
  .nahmed-dictionary .nahmed-context-language-pane p{font-size:15.2px!important;line-height:1.62!important}
  .nahmed-dictionary .nahmed-context-language-pane.is-en p{font-size:15.5px!important}
  .nahmed-dictionary .nahmed-context-objectives{font-size:14.5px!important;line-height:1.5!important}
}

/* v2.5.20 bilingual vignette remains one visual card: language columns use dividers, not nested cards. */
.nahmed-dictionary .nahmed-context-language-pane{
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:8px 16px 9px!important;
}
.nahmed-dictionary .nahmed-context-language-pane:first-child{padding-left:2px!important}
.nahmed-dictionary .nahmed-context-language-pane.is-vi{
  border-left:1px solid rgba(141,176,190,.38)!important;
  padding-right:2px!important;
}
.nahmed-dictionary .nahmed-context-objectives-card .nahmed-context-block-heading h4,
.nahmed-dictionary .nahmed-context-vignette-card .nahmed-context-block-heading h4{
  text-transform:uppercase;
  letter-spacing:.018em!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-language-pane{
  border-color:#345061!important;
  background:transparent!important;
}
@media(max-width:860px){
  .nahmed-dictionary .nahmed-context-language-pane,
  .nahmed-dictionary .nahmed-context-language-pane:first-child,
  .nahmed-dictionary .nahmed-context-language-pane.is-vi{padding:9px 2px!important}
  .nahmed-dictionary .nahmed-context-language-pane.is-vi{
    border-left:0!important;
    border-top:1px solid rgba(141,176,190,.34)!important;
    margin-top:3px;
    padding-top:13px!important;
  }
}

/* v2.5.21 — Applied UI Contrast & Progress Layout Hotfix */
/* Progress surface: explicit header/action row + dedicated progress row. */
.nahmed-dictionary .nahmed-context-progress{
  display:block!important;
  margin:0 0 12px!important;
  padding:13px 14px 12px!important;
  border:1px solid #d8e5eb!important;
  border-radius:16px!important;
  background:linear-gradient(100deg,rgba(222,241,248,.78) 0%,rgba(246,251,253,.96) 42%,#fff 100%)!important;
  box-shadow:0 6px 18px rgba(21,63,82,.045)!important;
}
.nahmed-dictionary .nahmed-context-progress-head{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:14px!important;
  min-width:0!important;
  margin:0 0 11px!important;
}
.nahmed-dictionary .nahmed-context-progress-copy{
  display:flex!important;
  align-items:baseline!important;
  justify-content:space-between!important;
  gap:12px!important;
  flex:1 1 auto!important;
  min-width:0!important;
  color:#425f70!important;
  font-size:13.2px!important;
  line-height:1.4!important;
}
.nahmed-dictionary .nahmed-context-progress-copy strong{
  color:#12384c!important;
  font-size:14px!important;
  font-weight:850!important;
}
.nahmed-dictionary .nahmed-context-progress-copy span{
  color:#536f80!important;
  white-space:normal!important;
  text-align:right!important;
}
.nahmed-dictionary .nahmed-context-continue{
  flex:0 0 auto!important;
  align-self:center!important;
  position:static!important;
  inset:auto!important;
  transform:none!important;
  margin:0!important;
  min-height:40px!important;
  padding:9px 16px!important;
  border:1px solid #08728f!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,#087b9a,#0b6f8f)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:850!important;
  line-height:1.1!important;
  box-shadow:0 5px 13px rgba(11,120,151,.18)!important;
  white-space:nowrap!important;
}
.nahmed-dictionary .nahmed-context-continue:hover{filter:brightness(.97)}
.nahmed-dictionary .nahmed-context-progress-track{
  display:block!important;
  width:100%!important;
  height:7px!important;
  margin:0!important;
  border-radius:999px!important;
  background:#dfeaf0!important;
  overflow:hidden!important;
}
.nahmed-dictionary .nahmed-context-progress-track span{
  display:block!important;
  height:100%!important;
  border-radius:inherit!important;
  background:linear-gradient(90deg,#087b9a,#27a6b5)!important;
  box-shadow:0 0 0 1px rgba(8,123,154,.06) inset!important;
}

/* Stronger but restrained editorial surfaces. White remains dominant; accent is richer at the left. */
.nahmed-dictionary .nahmed-context-phrases-card{
  background:linear-gradient(105deg,rgba(210,235,246,.88) 0%,rgba(239,248,252,.96) 31%,#fff 68%)!important;
  border-color:#cbdfe8!important;
}
.nahmed-dictionary .nahmed-context-phrases-card::after{background:linear-gradient(180deg,#2f8fb1,rgba(47,143,177,.16))!important}
.nahmed-dictionary .nahmed-context-dialogue-card{
  background:linear-gradient(105deg,rgba(211,239,241,.90) 0%,rgba(239,250,250,.96) 31%,#fff 68%)!important;
  border-color:#cce4e5!important;
}
.nahmed-dictionary .nahmed-context-dialogue-card::after{background:linear-gradient(180deg,#298c91,rgba(41,140,145,.16))!important}
.nahmed-dictionary .nahmed-context-note-card{
  background:linear-gradient(105deg,rgba(216,241,229,.90) 0%,rgba(241,250,245,.96) 31%,#fff 68%)!important;
  border-color:#cfe5d8!important;
}
.nahmed-dictionary .nahmed-context-note-card::after{background:linear-gradient(180deg,#438f73,rgba(67,143,115,.16))!important}
.nahmed-dictionary .nahmed-context-collocation-card{
  background:linear-gradient(105deg,rgba(246,232,201,.82) 0%,rgba(252,247,235,.96) 31%,#fff 68%)!important;
  border-color:#eadcbf!important;
}
.nahmed-dictionary .nahmed-context-collocation-card::after{background:linear-gradient(180deg,#a87b2d,rgba(168,123,45,.15))!important}
.nahmed-dictionary .nahmed-context-practice-card{
  background:linear-gradient(105deg,rgba(230,222,246,.84) 0%,rgba(247,244,252,.97) 31%,#fff 68%)!important;
  border-color:#dfd5ef!important;
}
.nahmed-dictionary .nahmed-context-practice-card::after{background:linear-gradient(180deg,#7b62aa,rgba(123,98,170,.15))!important}
.nahmed-dictionary .nahmed-context-quiz-card{
  background:linear-gradient(105deg,rgba(211,234,245,.88) 0%,rgba(241,248,251,.97) 31%,#fff 68%)!important;
  border-color:#cfdee7!important;
}
.nahmed-dictionary .nahmed-context-quiz-card::after{background:linear-gradient(180deg,#397f9b,rgba(57,127,155,.15))!important}

/* Section-specific icons and inner surfaces: stronger hierarchy without saturated fills. */
.nahmed-dictionary .nahmed-context-phrases-card .nahmed-context-block-icon{color:#227a9c;background:#e4f3f8;border-color:#bddce8}
.nahmed-dictionary .nahmed-context-dialogue-card .nahmed-context-block-icon{color:#237c81;background:#e5f5f5;border-color:#c0dfdf}
.nahmed-dictionary .nahmed-context-note-card .nahmed-context-block-icon{color:#3d8068;background:#e7f5ed;border-color:#c6e1d2}
.nahmed-dictionary .nahmed-context-collocation-card .nahmed-context-block-icon{color:#94691f;background:#fbf2df;border-color:#ead6ac}
.nahmed-dictionary .nahmed-context-practice-card .nahmed-context-block-icon{color:#6f55a0;background:#f0eafa;border-color:#d8ccec}
.nahmed-dictionary .nahmed-context-quiz-card .nahmed-context-block-icon{color:#32758f;background:#e7f2f7;border-color:#c7dce6}
.nahmed-dictionary .nahmed-context-phrase-list>div{background:rgba(255,255,255,.93)!important;border-color:#d3e3ea!important}
.nahmed-dictionary .nahmed-context-dialogue>div{background:rgba(255,255,255,.94)!important;border-color:#d2e5e5!important}
.nahmed-dictionary .nahmed-context-note>div{background:rgba(255,255,255,.93)!important;border-color:#d2e6da!important;box-shadow:inset 3px 0 0 rgba(67,143,115,.42)!important}
.nahmed-dictionary .nahmed-context-collocations span{background:rgba(255,255,255,.94)!important;border-color:#e6d9bd!important}
.nahmed-dictionary .nahmed-context-quiz-card .nahmed-lesson-question{background:rgba(255,255,255,.94)!important;border-color:#d4e2e8!important}

/* Dark mode: richer local accents while preserving host-owned dark surface. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-progress{
  background:linear-gradient(105deg,rgba(28,67,83,.72) 0%,#132331 55%)!important;
  border-color:#2f4a5a!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-progress-copy strong{color:#edf5f9!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-progress-copy span{color:#c1d2dc!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-progress-track{background:#263b49!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrases-card{background:linear-gradient(105deg,rgba(37,91,116,.42),#132331 58%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue-card{background:linear-gradient(105deg,rgba(34,91,94,.42),#132331 58%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note-card{background:linear-gradient(105deg,rgba(42,89,68,.42),#132331 58%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocation-card{background:linear-gradient(105deg,rgba(104,79,31,.40),#132331 58%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-practice-card{background:linear-gradient(105deg,rgba(76,59,110,.42),#132331 58%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-quiz-card{background:linear-gradient(105deg,rgba(42,80,99,.44),#132331 58%)!important}

@media(max-width:820px){
  .nahmed-dictionary .nahmed-context-progress-head{align-items:flex-start!important}
  .nahmed-dictionary .nahmed-context-progress-copy{display:block!important}
  .nahmed-dictionary .nahmed-context-progress-copy span{display:block!important;margin-top:3px!important;text-align:left!important}
}
@media(max-width:560px){
  .nahmed-dictionary .nahmed-context-progress{padding:11px!important}
  .nahmed-dictionary .nahmed-context-progress-head{display:grid!important;grid-template-columns:1fr!important;gap:9px!important;margin-bottom:10px!important}
  .nahmed-dictionary .nahmed-context-continue{justify-self:start!important;width:auto!important;min-height:38px!important;padding:8px 14px!important}
  .nahmed-dictionary .nahmed-context-progress-track{height:7px!important}
}


/* v2.5.22 — Stronger Accent Learning UI & Applied Curriculum Expansion */
.nahmed-dictionary{
  --nahmed-strong-red:#b4233d;
  --nahmed-strong-pink:#b83268;
  --nahmed-strong-blue:#146b9e;
  --nahmed-strong-green:#1d7a59;
  --nahmed-strong-purple:#6f4ca5;
}
/* TRA CỨU THEO CHỦ ĐỀ: stronger left accents without full-card saturation */
.nahmed-dictionary .nahmed-topic-card{
  border-color:color-mix(in srgb,var(--nahmed-topic) 24%,#dfe7eb)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-topic) 14%,#fff) 0%,rgba(255,255,255,.985) 38%,#fff 100%)!important;
  box-shadow:0 5px 14px rgba(18,32,51,.045)!important;
}
.nahmed-dictionary .nahmed-topic-icon{
  color:color-mix(in srgb,var(--nahmed-topic) 88%,#102e40)!important;
  background:color-mix(in srgb,var(--nahmed-topic) 14%,#fff)!important;
  border-color:color-mix(in srgb,var(--nahmed-topic) 34%,#dfe7eb)!important;
}
.nahmed-dictionary .nahmed-topic-card:hover,.nahmed-dictionary .nahmed-topic-card.is-active{
  border-color:color-mix(in srgb,var(--nahmed-topic) 52%,#dfe7eb)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-topic) 20%,#fff) 0%,#fff 42%,#fff 100%)!important;
}
/* HỌC THUẬT NGỮ Y KHOA: deliberate 4-accent cycle */
.nahmed-dictionary .nahmed-learning-card:nth-child(4n+1){--nahmed-learn-accent:var(--nahmed-strong-red)}
.nahmed-dictionary .nahmed-learning-card:nth-child(4n+2){--nahmed-learn-accent:var(--nahmed-strong-blue)}
.nahmed-dictionary .nahmed-learning-card:nth-child(4n+3){--nahmed-learn-accent:var(--nahmed-strong-green)}
.nahmed-dictionary .nahmed-learning-card:nth-child(4n){--nahmed-learn-accent:var(--nahmed-strong-pink)}
.nahmed-dictionary .nahmed-learning-card{
  border-color:color-mix(in srgb,var(--nahmed-learn-accent) 25%,#dfe7eb)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-learn-accent) 13%,#fff) 0%,#fff 38%,#fff 100%)!important;
}
.nahmed-dictionary .nahmed-learning-card .nahmed-learning-icon{
  color:var(--nahmed-learn-accent)!important;
  background:color-mix(in srgb,var(--nahmed-learn-accent) 14%,#fff)!important;
  border-color:color-mix(in srgb,var(--nahmed-learn-accent) 34%,#dfe7eb)!important;
}
.nahmed-dictionary .nahmed-learning-card:hover{
  border-color:color-mix(in srgb,var(--nahmed-learn-accent) 50%,#dfe7eb)!important;
  box-shadow:0 8px 20px color-mix(in srgb,var(--nahmed-learn-accent) 10%,rgba(18,32,51,.08))!important;
}
/* Applied Medical English scenario cards: stronger red/blue/green/pink cycle */
.nahmed-dictionary .nahmed-context-card:nth-child(4n+1){--nahmed-context-accent:var(--nahmed-strong-red)}
.nahmed-dictionary .nahmed-context-card:nth-child(4n+2){--nahmed-context-accent:var(--nahmed-strong-blue)}
.nahmed-dictionary .nahmed-context-card:nth-child(4n+3){--nahmed-context-accent:var(--nahmed-strong-green)}
.nahmed-dictionary .nahmed-context-card:nth-child(4n){--nahmed-context-accent:var(--nahmed-strong-pink)}
.nahmed-dictionary .nahmed-context-card{
  border-color:color-mix(in srgb,var(--nahmed-context-accent) 27%,#dfe7eb)!important;
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-context-accent) 15%,#fff) 0%,#fff 40%,#fff 100%)!important;
  box-shadow:0 5px 14px rgba(18,32,51,.045)!important;
}
.nahmed-dictionary .nahmed-context-card .nahmed-context-icon{
  color:var(--nahmed-context-accent)!important;
  background:color-mix(in srgb,var(--nahmed-context-accent) 15%,#fff)!important;
  border-color:color-mix(in srgb,var(--nahmed-context-accent) 36%,#dfe7eb)!important;
}
.nahmed-dictionary .nahmed-context-card:hover{
  border-color:color-mix(in srgb,var(--nahmed-context-accent) 55%,#dfe7eb)!important;
  box-shadow:0 8px 20px color-mix(in srgb,var(--nahmed-context-accent) 10%,rgba(18,32,51,.08))!important;
}
/* Applied reader blocks: stronger accent palette, still white-dominant */
.nahmed-dictionary .nahmed-context-phrases-card{--nahmed-block-accent:var(--nahmed-strong-blue);background:linear-gradient(108deg,rgba(20,107,158,.16),#fff 48%)!important;border-color:rgba(20,107,158,.30)!important}
.nahmed-dictionary .nahmed-context-dialogue-card{--nahmed-block-accent:var(--nahmed-strong-green);background:linear-gradient(108deg,rgba(29,122,89,.16),#fff 48%)!important;border-color:rgba(29,122,89,.30)!important}
.nahmed-dictionary .nahmed-context-note-card{--nahmed-block-accent:var(--nahmed-strong-red);background:linear-gradient(108deg,rgba(180,35,61,.14),#fff 48%)!important;border-color:rgba(180,35,61,.28)!important}
.nahmed-dictionary .nahmed-context-collocation-card{--nahmed-block-accent:var(--nahmed-strong-pink);background:linear-gradient(108deg,rgba(184,50,104,.14),#fff 48%)!important;border-color:rgba(184,50,104,.28)!important}
.nahmed-dictionary .nahmed-context-practice-card{--nahmed-block-accent:var(--nahmed-strong-purple);background:linear-gradient(108deg,rgba(111,76,165,.15),#fff 48%)!important;border-color:rgba(111,76,165,.28)!important}
.nahmed-dictionary .nahmed-context-quiz-card{--nahmed-block-accent:#0f6f91;background:linear-gradient(108deg,rgba(15,111,145,.16),#fff 48%)!important;border-color:rgba(15,111,145,.30)!important}
.nahmed-dictionary .nahmed-context-phrases-card::after,
.nahmed-dictionary .nahmed-context-dialogue-card::after,
.nahmed-dictionary .nahmed-context-note-card::after,
.nahmed-dictionary .nahmed-context-collocation-card::after,
.nahmed-dictionary .nahmed-context-practice-card::after,
.nahmed-dictionary .nahmed-context-quiz-card::after{background:linear-gradient(180deg,var(--nahmed-block-accent),color-mix(in srgb,var(--nahmed-block-accent) 12%,transparent))!important}
.nahmed-dictionary .nahmed-context-phrases-card .nahmed-context-block-icon,
.nahmed-dictionary .nahmed-context-dialogue-card .nahmed-context-block-icon,
.nahmed-dictionary .nahmed-context-note-card .nahmed-context-block-icon,
.nahmed-dictionary .nahmed-context-collocation-card .nahmed-context-block-icon,
.nahmed-dictionary .nahmed-context-practice-card .nahmed-context-block-icon,
.nahmed-dictionary .nahmed-context-quiz-card .nahmed-context-block-icon{
  color:var(--nahmed-block-accent)!important;
  background:color-mix(in srgb,var(--nahmed-block-accent) 13%,#fff)!important;
  border-color:color-mix(in srgb,var(--nahmed-block-accent) 36%,#dfe7eb)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-card{
  background:linear-gradient(90deg,color-mix(in srgb,var(--nahmed-context-accent,var(--nahmed-learn-accent,var(--nahmed-topic,#2a6b87))) 24%,#132331) 0%,#132331 48%)!important;
  border-color:#355164!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-phrases-card{background:linear-gradient(105deg,rgba(20,107,158,.46),#132331 60%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-dialogue-card{background:linear-gradient(105deg,rgba(29,122,89,.44),#132331 60%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-note-card{background:linear-gradient(105deg,rgba(180,35,61,.38),#132331 60%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-collocation-card{background:linear-gradient(105deg,rgba(184,50,104,.38),#132331 60%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-practice-card{background:linear-gradient(105deg,rgba(111,76,165,.42),#132331 60%)!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-context-quiz-card{background:linear-gradient(105deg,rgba(15,111,145,.44),#132331 60%)!important}

/* ==========================================================
   v2.5.25 — Lesson Popup Editorial Card Refinement preserved
   Presentation-only: clearer section rhythm inside learning popups.
   ========================================================== */
.nahmed-dictionary .nahmed-learning-modal-content{
  --nahmed-popup-red:#b4233d;
  --nahmed-popup-pink:#b83268;
  --nahmed-popup-blue:#146b9e;
  --nahmed-popup-green:#1d7a59;
  --nahmed-popup-purple:#6f4ca5;
}

/* Shared editorial-card treatment: visible enough to separate long-form sections,
   restrained enough to keep white as the dominant reading surface. */
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-color:color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 24%,#dce6eb)!important;
  background:
    radial-gradient(circle at 0 0,color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 11%,transparent) 0,transparent 38%),
    linear-gradient(112deg,color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 7%,#fff) 0%,#fff 44%,#fff 100%)!important;
  box-shadow:
    0 7px 18px rgba(18,32,51,.055),
    0 1px 3px color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 9%,transparent)!important;
}
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--nahmed-popup-card-accent,#146b9e),color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 18%,transparent));
  opacity:.78;
}
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block h4{
  color:color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 38%,#17384b)!important;
}

/* HỌC THUẬT NGỮ Y KHOA — intentional alternating accent rhythm. */
.nahmed-dictionary .nahmed-lesson-reading-en{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-lesson-reading-vi{--nahmed-popup-card-accent:var(--nahmed-popup-green)}
.nahmed-dictionary .nahmed-lesson-word-study{--nahmed-popup-card-accent:var(--nahmed-popup-pink)}
.nahmed-dictionary .nahmed-lesson-families{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-lesson-related{--nahmed-popup-card-accent:var(--nahmed-popup-green)}
.nahmed-dictionary .nahmed-lesson-components{--nahmed-popup-card-accent:var(--nahmed-popup-purple)}
.nahmed-dictionary .nahmed-lesson-contrast{--nahmed-popup-card-accent:var(--nahmed-popup-red)}
.nahmed-dictionary .nahmed-lesson-objectives{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-lesson-practice{--nahmed-popup-card-accent:var(--nahmed-popup-green)}
.nahmed-dictionary .nahmed-lesson-application{--nahmed-popup-card-accent:var(--nahmed-popup-pink)}
.nahmed-dictionary .nahmed-lesson-quiz-block{--nahmed-popup-card-accent:var(--nahmed-popup-purple)}

/* Inner study cards stay subordinate to the parent section but gain a soft lift. */
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-study-card,
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-family-card,
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-related-term,
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-component-chip,
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-question{
  box-shadow:0 3px 10px rgba(18,32,51,.035)!important;
}

/* TIẾNG ANH Y KHOA ỨNG DỤNG — preserve semantic block colors, add editorial lift. */
.nahmed-dictionary .nahmed-context-objectives-card{--nahmed-popup-card-accent:var(--nahmed-popup-green)}
.nahmed-dictionary .nahmed-context-vignette-card{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-context-phrases-card{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-context-dialogue-card{--nahmed-popup-card-accent:var(--nahmed-popup-green)}
.nahmed-dictionary .nahmed-context-note-card{--nahmed-popup-card-accent:var(--nahmed-popup-red)}
.nahmed-dictionary .nahmed-context-collocation-card{--nahmed-popup-card-accent:var(--nahmed-popup-pink)}
.nahmed-dictionary .nahmed-context-practice-card{--nahmed-popup-card-accent:var(--nahmed-popup-purple)}
.nahmed-dictionary .nahmed-context-quiz-card{--nahmed-popup-card-accent:var(--nahmed-popup-blue)}
.nahmed-dictionary .nahmed-context-detail-card{
  box-shadow:
    0 8px 20px rgba(18,32,51,.06),
    0 2px 5px color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 9%,transparent)!important;
}

/* A little extra spacing creates a clear reading cadence without inflating mobile height. */
.nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block + .nahmed-lesson-block{
  margin-top:2px!important;
}

/* Dark mode: preserve hierarchy without luminous cards. */
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-lesson-block{
  border-color:color-mix(in srgb,var(--nahmed-popup-card-accent,#4c9cc0) 30%,#2a4150)!important;
  background:
    radial-gradient(circle at 0 0,color-mix(in srgb,var(--nahmed-popup-card-accent,#4c9cc0) 18%,transparent) 0,transparent 42%),
    linear-gradient(112deg,color-mix(in srgb,var(--nahmed-popup-card-accent,#4c9cc0) 10%,#142633) 0%,#142633 48%,#132431 100%)!important;
  box-shadow:0 8px 20px rgba(0,0,0,.18),0 1px 3px rgba(0,0,0,.14)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-lesson-block h4{
  color:color-mix(in srgb,var(--nahmed-popup-card-accent,#8cc3dc) 28%,#e5f0f5)!important;
}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-study-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-family-card,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-related-term,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-component-chip,
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-lesson-question{
  box-shadow:0 3px 10px rgba(0,0,0,.14)!important;
}

/* Tablet/mobile: retain visual separation but reduce depth and color density. */
@media(max-width:820px){
  .nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block{
    box-shadow:0 5px 14px rgba(18,32,51,.05),0 1px 2px rgba(18,32,51,.035)!important;
  }
  .nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block::before{width:2px}
}
@media(max-width:560px){
  .nahmed-dictionary .nahmed-learning-modal-content .nahmed-lesson-block{
    background:linear-gradient(112deg,color-mix(in srgb,var(--nahmed-popup-card-accent,#146b9e) 6%,#fff) 0%,#fff 52%)!important;
    box-shadow:0 4px 11px rgba(18,32,51,.045)!important;
  }
  .nahmed-dictionary.nahmed-theme-dark .nahmed-learning-modal-content .nahmed-lesson-block{
    background:linear-gradient(112deg,color-mix(in srgb,var(--nahmed-popup-card-accent,#4c9cc0) 8%,#142633) 0%,#132431 56%)!important;
  }
}

/* ==========================================================
   v2.5.32 — Desktop Readability, Balanced Learning Grid & Unified About
   ========================================================== */
.nahmed-dictionary .nahmed-about-modal[hidden]{display:none!important}
.nahmed-dictionary .nahmed-about-modal{position:fixed;inset:0;z-index:100000;display:grid;place-items:center;padding:18px}
.nahmed-dictionary .nahmed-about-backdrop{position:absolute;inset:0;border:0;background:rgba(15,23,42,.42);cursor:default}
.nahmed-dictionary .nahmed-about-card{position:relative;z-index:1;width:min(720px,calc(100vw - 28px));max-height:min(82vh,760px);overflow:hidden;border:1px solid #dfe8ec;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.22)}
.nahmed-dictionary .nahmed-about-scroll{max-height:min(82vh,760px);overflow:auto;padding:28px 30px 26px}
.nahmed-dictionary .nahmed-about-close{position:absolute;top:10px;right:10px;z-index:2;width:40px;height:40px;border:0;border-radius:50%;background:#f3f7f9;color:#506572;font-size:27px;line-height:1;cursor:pointer}
.nahmed-dictionary .nahmed-about-close:hover{background:#eaf2f5;color:#17384b}
.nahmed-dictionary .nahmed-about-card h3{margin:0 44px 18px 0;color:#102d40;font-size:26px;line-height:1.15}
.nahmed-dictionary .nahmed-about-card h4{margin:22px 0 8px;color:#17384b;font-size:17px;line-height:1.25}
.nahmed-dictionary .nahmed-about-card p,.nahmed-dictionary .nahmed-about-card li{color:#334f61;font-size:15px;line-height:1.62}
.nahmed-dictionary .nahmed-about-card ul{margin:8px 0 0;padding-left:22px}
.nahmed-dictionary .nahmed-about-author a{color:#0b7898;text-decoration:none}
.nahmed-dictionary .nahmed-about-author a:hover{text-decoration:underline}
.nahmed-dictionary .nahmed-about-apk{display:inline-flex;align-items:center;justify-content:center;margin-top:18px;min-height:44px;padding:10px 16px;border:1px solid #0b7898;border-radius:12px;background:#0b7898;color:#fff!important;font-size:14px;font-weight:800;text-decoration:none!important}
.nahmed-dictionary .nahmed-about-apk:hover{background:#086983;border-color:#086983}
.nahmed-dictionary .nahmed-about-version{margin:16px 0 0!important;color:#758995!important;font-size:12.5px!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-about-card{border-color:#304754;background:#132331}
.nahmed-dictionary.nahmed-theme-dark .nahmed-about-close{background:#203643;color:#c9d8e0}
.nahmed-dictionary.nahmed-theme-dark .nahmed-about-card h3,.nahmed-dictionary.nahmed-theme-dark .nahmed-about-card h4{color:#eef6f9}
.nahmed-dictionary.nahmed-theme-dark .nahmed-about-card p,.nahmed-dictionary.nahmed-theme-dark .nahmed-about-card li{color:#c3d3dc}

/* Desktop parity: both learning modules render 4 columns × 5 rows per page. */
@media (min-width:1200px){
  .nahmed-dictionary .nahmed-learning-grid,
  .nahmed-dictionary .nahmed-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}

/* Large/high-density desktop readability uplift. */
@media (min-width:1440px){
  .nahmed-dictionary .nahmed-section-heading h2,
  .nahmed-dictionary .nahmed-topic-section .nahmed-section-heading h2,
  .nahmed-dictionary .nahmed-learning-section .nahmed-section-heading h2,
  .nahmed-dictionary .nahmed-context-section .nahmed-section-heading h2{font-size:23px!important;line-height:1.2!important}

  .nahmed-dictionary .nahmed-topic-grid,
  .nahmed-dictionary .nahmed-learning-grid,
  .nahmed-dictionary .nahmed-context-grid{gap:11px!important}

  .nahmed-dictionary .nahmed-topic-card{min-height:70px!important;padding:12px 14px!important;border-radius:15px!important;gap:10px!important}
  .nahmed-dictionary .nahmed-topic-icon{width:38px!important;height:38px!important}
  .nahmed-dictionary .nahmed-topic-icon svg{width:20px!important;height:20px!important}
  .nahmed-dictionary .nahmed-topic-copy strong{font-size:15.2px!important;line-height:1.3!important}

  .nahmed-dictionary .nahmed-learning-card,
  .nahmed-dictionary .nahmed-context-card{min-height:72px!important;padding:12px 13px!important;border-radius:15px!important;gap:10px!important}
  .nahmed-dictionary .nahmed-learning-card{grid-template-columns:38px minmax(0,1fr) auto!important}
  .nahmed-dictionary .nahmed-context-card{grid-template-columns:38px minmax(0,1fr) auto!important}
  .nahmed-dictionary .nahmed-learning-icon,
  .nahmed-dictionary .nahmed-context-icon{width:38px!important;height:38px!important}
  .nahmed-dictionary .nahmed-learning-icon svg,
  .nahmed-dictionary .nahmed-context-icon svg{width:20px!important;height:20px!important}
  .nahmed-dictionary .nahmed-learning-card strong,
  .nahmed-dictionary .nahmed-context-copy strong{font-size:15.3px!important;line-height:1.3!important}
  .nahmed-dictionary .nahmed-context-copy small{font-size:12.4px!important;line-height:1.35!important}
  .nahmed-dictionary .nahmed-learning-progress,
  .nahmed-dictionary .nahmed-context-score{font-size:10.5px!important;min-width:34px!important}

  .nahmed-dictionary .nahmed-learning-filter,
  .nahmed-dictionary .nahmed-context-filters button{min-height:38px!important;padding:8px 14px!important;font-size:13.5px!important}
  .nahmed-dictionary .nahmed-course-progress,
  .nahmed-dictionary .nahmed-context-progress{padding:13px 15px!important}
  .nahmed-dictionary .nahmed-course-progress strong,
  .nahmed-dictionary .nahmed-context-progress-copy strong{font-size:15px!important}
  .nahmed-dictionary .nahmed-course-progress span,
  .nahmed-dictionary .nahmed-context-progress-copy span{font-size:13.4px!important}
  .nahmed-dictionary .nahmed-learning-page,
  .nahmed-dictionary .nahmed-context-page{min-width:40px!important;height:40px!important;font-size:13.5px!important}
}

@media(max-width:560px){
  .nahmed-dictionary .nahmed-about-modal{padding:6px}
  .nahmed-dictionary .nahmed-about-card{width:calc(100vw - 12px);max-height:88vh;border-radius:16px}
  .nahmed-dictionary .nahmed-about-scroll{max-height:88vh;padding:24px 20px 22px}
  .nahmed-dictionary .nahmed-about-card h3{font-size:23px}
  .nahmed-dictionary .nahmed-about-card p,.nahmed-dictionary .nahmed-about-card li{font-size:14.5px}
}
/* v2.5.35 multi-stage scenario depth */
.nahmed-context-stage-list{display:grid;gap:14px}.nahmed-context-stage{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;padding:16px;border:1px solid rgba(15,23,42,.10);border-radius:16px;background:#fff}.nahmed-context-stage-number{display:grid;place-items:center;width:30px;height:30px;border-radius:999px;background:rgba(15,118,110,.10);font-weight:800}.nahmed-context-stage h5{margin:2px 0 8px;font-size:1rem}.nahmed-context-stage p{margin:6px 0;line-height:1.65}.nahmed-context-stage-prompt,.nahmed-context-stage-feedback{padding:10px 12px;border-radius:12px;background:rgba(15,23,42,.035)}.nahmed-context-stage-options{display:grid;gap:8px;margin:10px 0}.nahmed-context-stage-option{padding:10px 12px;border:1px solid rgba(15,23,42,.10);border-radius:12px}.nahmed-context-stage-option.is-preferred{border-width:2px}@media(max-width:700px){.nahmed-context-stage{grid-template-columns:1fr}.nahmed-context-stage-number{margin-bottom:2px}}

/* v2.5.36 — Unified module cards & bilingual learning subtitles */
.nahmed-dictionary .nahmed-learning-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.nahmed-dictionary .nahmed-learning-copy small{display:block;margin-top:3px;font-size:12px;line-height:1.3;font-weight:500;color:#6c8190}
.nahmed-dictionary.nahmed-theme-dark .nahmed-learning-copy small{color:#adc0ca}
@media (min-width:1200px){
 .nahmed-dictionary .nahmed-learning-grid,.nahmed-dictionary .nahmed-context-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:1199px){
 .nahmed-dictionary .nahmed-learning-grid,.nahmed-dictionary .nahmed-context-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
\n/* v2.5.37 — bilingual topic cards + unified left text alignment */
.nahmed-dictionary .nahmed-topic-copy,
.nahmed-dictionary .nahmed-learning-copy,
.nahmed-dictionary .nahmed-context-copy{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;
  min-width:0!important;text-align:left!important;
}
.nahmed-dictionary .nahmed-topic-copy strong,
.nahmed-dictionary .nahmed-topic-copy small,
.nahmed-dictionary .nahmed-learning-copy strong,
.nahmed-dictionary .nahmed-learning-copy small,
.nahmed-dictionary .nahmed-context-copy strong,
.nahmed-dictionary .nahmed-context-copy small{width:100%!important;text-align:left!important}
.nahmed-dictionary .nahmed-topic-copy strong{margin:0!important}
.nahmed-dictionary .nahmed-topic-copy small{display:block!important;margin-top:3px!important;font-size:12px!important;line-height:1.3!important;font-weight:500!important;color:#6c8190!important;overflow:visible!important;white-space:normal!important}
.nahmed-dictionary.nahmed-theme-dark .nahmed-topic-copy small{color:#adc0ca!important}
@media(max-width:560px){.nahmed-dictionary .nahmed-topic-copy small,.nahmed-dictionary .nahmed-learning-copy small,.nahmed-dictionary .nahmed-context-copy small{display:block!important}}

/* v2.5.41 — Medical Essays */
.nahmed-essay-section{margin-top:34px;padding-top:26px;border-top:1px solid #dce8ed}
.nahmed-essay-section .nahmed-section-heading p{margin:5px 0 0;color:#647c8b;font-size:13px}
.nahmed-essay-progress{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0;padding:16px 20px;border:1px solid #d5e5eb;border-radius:18px;background:linear-gradient(110deg,#f2fbfd,#fff)}
.nahmed-essay-progress>div{display:flex;flex-direction:column;gap:4px;color:#5e7584}.nahmed-essay-progress strong{color:#17384b;font-size:17px}
.nahmed-essay-progress button,.nahmed-essay-load-more{border:0;border-radius:999px;background:#087e99;color:#fff;font-weight:700;padding:11px 20px}
.nahmed-essay-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.nahmed-essay-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:11px;min-height:78px;padding:12px 13px;border:1px solid #cbdde4;border-radius:16px;background:#fff;text-align:left}
.nahmed-essay-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#edf7fa;color:#087e99;font-size:21px;font-weight:800}
.nahmed-essay-copy{display:flex;flex-direction:column;min-width:0}.nahmed-essay-copy strong{font-size:15px;line-height:1.3;color:#17384b}.nahmed-essay-copy small{margin-top:3px;font-size:12px;line-height:1.3;color:#6c8190}
.nahmed-essay-progress-badge{font-size:11px;color:#637c8b;background:#f3f7f8;border-radius:999px;padding:4px 6px}
.nahmed-essay-load-more{display:block;margin:18px auto}.nahmed-essay-load-more[hidden]{display:none}
.nahmed-essay-modal{position:fixed;inset:0;z-index:999999;background:rgba(13,37,49,.55);overflow:auto;padding:28px}
.nahmed-essay-modal[hidden]{display:none}.nahmed-essay-dialog{position:relative;max-width:940px;margin:0 auto;background:#fff;border-radius:22px;padding:28px;box-shadow:0 24px 80px rgba(0,0,0,.22)}
.nahmed-essay-close{position:absolute;right:18px;top:14px;border:0;background:transparent;font-size:32px;color:#55717f}.nahmed-essay-dialog h2{margin:0 45px 3px 0;color:#16384b}.nahmed-essay-subtitle{margin:0 0 22px;color:#6a7f8c}
.nahmed-essay-pair{padding:18px 0;border-top:1px solid #e4ecef}.nahmed-essay-en,.nahmed-essay-vi{font-size:16px;line-height:1.75;color:#294a5c}.nahmed-essay-vi{margin-top:12px;color:#4f6674}.nahmed-essay-pair strong{color:#0b7089}
.nahmed-essay-learning{margin-top:20px;padding:20px;border-radius:16px;background:#f7fafb}.nahmed-essay-learning h3{margin-top:0}.nahmed-essay-learning h4{margin:18px 0 7px;color:#17384b}.nahmed-essay-learning ul{margin:0;padding-left:22px}.nahmed-essay-learning li{margin:5px 0;line-height:1.55}
@media(max-width:1199px){.nahmed-essay-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nahmed-essay-modal{padding:10px}.nahmed-essay-dialog{padding:20px 16px}.nahmed-essay-progress{padding:14px}.nahmed-essay-progress button{padding:10px 14px}}

/* v2.5.42 — unified learning modules + deep essay examples */
.nahmed-dictionary .nahmed-learning-card,
.nahmed-dictionary .nahmed-context-card,
.nahmed-dictionary .nahmed-essay-card{
 border:1px solid #cbdde4!important;border-radius:16px!important;background:#fff!important;
 box-shadow:0 2px 8px rgba(24,64,82,.035)!important;text-align:left!important;
}
.nahmed-dictionary .nahmed-learning-card:hover,
.nahmed-dictionary .nahmed-context-card:hover,
.nahmed-dictionary .nahmed-essay-card:hover{border-color:#8fc4d1!important;box-shadow:0 5px 16px rgba(24,64,82,.08)!important}
.nahmed-dictionary .nahmed-learning-progress,
.nahmed-dictionary .nahmed-context-progress,
.nahmed-dictionary .nahmed-essay-progress{
 border:1px solid #d5e5eb!important;border-radius:18px!important;
 background:linear-gradient(110deg,#f2fbfd,#fff)!important;
}
.nahmed-essay-examples{display:grid;gap:10px;margin-top:8px}
.nahmed-essay-examples article{padding:14px 16px;border:1px solid #dce8ed;border-radius:14px;background:#fff}
.nahmed-essay-examples p{margin:0;line-height:1.65}.nahmed-essay-examples .example-en{color:#23495c}.nahmed-essay-examples .example-vi{margin-top:6px;color:#526b78}
.nahmed-essay-examples small{display:block;margin-top:7px;color:#738995;font-style:italic}
.nahmed-essay-examples strong{color:#087e99}

/* v2.5.44 — Essay category gradient system
   White-first pastel gradients, category-stable, aligned with Topic/Scenario visual language. */
.nahmed-dictionary .nahmed-essay-card{
 --essay-tint:rgba(65,158,184,.18);
 --essay-tint-soft:rgba(65,158,184,.07);
 background:
   radial-gradient(circle at 100% 0%,var(--essay-tint) 0,transparent 48%),
   linear-gradient(135deg,var(--essay-tint-soft) 0%,rgba(255,255,255,.98) 55%,#fff 100%)!important;
}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Lịch sử Y học"],
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Lịch sử bệnh học"]{--essay-tint:rgba(76,145,180,.20);--essay-tint-soft:rgba(76,145,180,.075)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Danh nhân Y học"]{--essay-tint:rgba(69,166,151,.20);--essay-tint-soft:rgba(69,166,151,.075)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Phát minh & thuốc"],
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Lịch sử thuốc"]{--essay-tint:rgba(115,137,194,.20);--essay-tint-soft:rgba(115,137,194,.075)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Phát minh & công nghệ"]{--essay-tint:rgba(73,156,190,.20);--essay-tint-soft:rgba(73,156,190,.075)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Nghiên cứu cột mốc"],
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Nghiên cứu & học thuật"],
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Đọc–viết học thuật"]{--essay-tint:rgba(137,119,187,.19);--essay-tint-soft:rgba(137,119,187,.07)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Ca lâm sàng dài"]{--essay-tint:rgba(70,166,127,.19);--essay-tint-soft:rgba(70,166,127,.07)}
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Đạo đức & giao tiếp"]{--essay-tint:rgba(194,127,147,.18);--essay-tint-soft:rgba(194,127,147,.065)}
.nahmed-dictionary .nahmed-essay-card .nahmed-essay-icon{
 background:rgba(255,255,255,.74)!important;border:1px solid rgba(90,132,150,.12);
 box-shadow:0 2px 8px rgba(31,73,91,.045);
}
.nahmed-dictionary .nahmed-essay-card:hover{
 background:
   radial-gradient(circle at 100% 0%,var(--essay-tint) 0,transparent 53%),
   linear-gradient(135deg,var(--essay-tint-soft) 0%,#fff 62%)!important;
}

/* v2.5.45 — additional essay category tones */
.nahmed-dictionary .nahmed-essay-card[data-nahmed-essay-category="Y tế công cộng"]{--essay-tint:rgba(76,170,135,.19);--essay-tint-soft:rgba(76,170,135,.07)}

/* v2.5.46 — runtime/detail-view hotfix */
.nahmed-essay-modal{padding:0!important;background:transparent!important;overflow:visible!important}
.nahmed-essay-modal .nahmed-essay-dialog{
 position:relative!important;max-width:none!important;margin:0!important;padding:0!important;
 background:#fff!important;border-radius:inherit!important;box-shadow:none!important;
}
.nahmed-essay-modal .nahmed-learning-modal-header{align-items:flex-start}
.nahmed-essay-modal .nahmed-learning-modal-header h3{margin:0;color:#17384b}
.nahmed-essay-modal .nahmed-essay-subtitle{margin:4px 0 0;color:#6a7f8c}
.nahmed-essay-modal .nahmed-essay-modal-content{padding-top:4px}
.nahmed-essay-modal .nahmed-essay-pair{border:1px solid #dce8ed;border-radius:16px;padding:18px 20px;margin:14px 0;background:linear-gradient(135deg,rgba(71,157,183,.055),#fff 56%)}
.nahmed-essay-modal .nahmed-essay-learning{border:1px solid #dce8ed;border-radius:16px}
/* v2.5.47 — canonical responsive canvas / dialog / essay-card contract */
.nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-context-section,.nahmed-dictionary .nahmed-essay-section,.nahmed-dictionary .nahmed-az-home,.nahmed-dictionary .nahmed-workbench{box-sizing:border-box!important;width:100%!important;max-width:100%!important;margin-left:auto!important;margin-right:auto!important}
.nahmed-dictionary .nahmed-learning-grid,.nahmed-dictionary .nahmed-context-grid,.nahmed-dictionary .nahmed-essay-grid{box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important}
.nahmed-dictionary .nahmed-learning-card,.nahmed-dictionary .nahmed-context-card,.nahmed-dictionary .nahmed-essay-card{box-sizing:border-box!important;min-width:0!important;max-width:100%!important;overflow:hidden!important}
.nahmed-dictionary .nahmed-learning-copy,.nahmed-dictionary .nahmed-context-copy,.nahmed-dictionary .nahmed-essay-copy{min-width:0!important;width:100%!important;text-align:left!important}
.nahmed-dictionary .nahmed-learning-copy strong,.nahmed-dictionary .nahmed-context-copy strong,.nahmed-dictionary .nahmed-essay-copy strong,.nahmed-dictionary .nahmed-learning-copy small,.nahmed-dictionary .nahmed-context-copy small,.nahmed-dictionary .nahmed-essay-copy small{overflow-wrap:break-word!important;word-break:normal!important;hyphens:none!important}
.nahmed-dictionary .nahmed-learning-modal{box-sizing:border-box!important;padding:8px!important;align-items:center!important;justify-content:center!important}
.nahmed-dictionary .nahmed-learning-modal-dialog,.nahmed-dictionary .nahmed-context-modal-dialog,.nahmed-dictionary .nahmed-essay-dialog{box-sizing:border-box!important;width:min(1060px,calc(100vw - 16px))!important;max-width:1060px!important;height:auto!important;max-height:calc(100dvh - 16px)!important;margin:0!important;padding:0!important;border-radius:18px!important;overflow:hidden!important;background:#fff!important;box-shadow:0 24px 70px rgba(8,18,30,.24)!important}
.nahmed-dictionary .nahmed-learning-modal-header{box-sizing:border-box!important;width:100%!important;flex:0 0 auto!important}
.nahmed-dictionary .nahmed-learning-modal-content,.nahmed-dictionary .nahmed-context-modal-content,.nahmed-dictionary .nahmed-essay-modal-content{box-sizing:border-box!important;width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:auto!important}
.nahmed-dictionary .nahmed-essay-modal{padding:8px!important;background:rgba(13,37,49,.55)!important;overflow:hidden!important}
.nahmed-dictionary .nahmed-essay-dialog{position:relative!important}
@media(max-width:1199px){.nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-context-section,.nahmed-dictionary .nahmed-essay-section,.nahmed-dictionary .nahmed-az-home,.nahmed-dictionary .nahmed-workbench{padding-left:8px!important;padding-right:8px!important}.nahmed-dictionary .nahmed-learning-grid,.nahmed-dictionary .nahmed-context-grid,.nahmed-dictionary .nahmed-essay-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}}
@media(max-width:700px){.nahmed-dictionary .nahmed-topic-section,.nahmed-dictionary .nahmed-learning-section,.nahmed-dictionary .nahmed-context-section,.nahmed-dictionary .nahmed-essay-section,.nahmed-dictionary .nahmed-az-home,.nahmed-dictionary .nahmed-workbench{padding-left:7px!important;padding-right:7px!important}.nahmed-dictionary .nahmed-learning-modal{padding:4px!important;align-items:flex-end!important;justify-content:center!important}.nahmed-dictionary .nahmed-learning-modal-dialog,.nahmed-dictionary .nahmed-context-modal-dialog,.nahmed-dictionary .nahmed-essay-dialog{width:calc(100vw - 8px)!important;max-width:none!important;height:calc(100dvh - 8px)!important;max-height:calc(100dvh - 8px)!important;border-radius:16px 16px 9px 9px!important}.nahmed-dictionary .nahmed-essay-modal{padding:4px!important;align-items:flex-end!important}.nahmed-dictionary .nahmed-essay-grid{grid-template-columns:1fr 1fr!important;gap:7px!important}.nahmed-dictionary .nahmed-essay-card{grid-template-columns:30px minmax(0,1fr) auto!important;grid-template-rows:auto!important;align-items:center!important;min-height:76px!important;padding:9px!important;gap:7px!important;border-radius:14px!important}.nahmed-dictionary .nahmed-essay-icon{width:30px!important;height:30px!important;border-radius:9px!important;font-size:16px!important}.nahmed-dictionary .nahmed-essay-copy{justify-content:center!important}.nahmed-dictionary .nahmed-essay-copy strong{font-size:12.4px!important;line-height:1.25!important;margin:0!important}.nahmed-dictionary .nahmed-essay-copy small{display:-webkit-box!important;margin-top:3px!important;font-size:10.8px!important;line-height:1.3!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;overflow:hidden!important}.nahmed-dictionary .nahmed-essay-progress-badge{align-self:start!important;padding:3px 5px!important;font-size:9px!important;white-space:nowrap!important}.nahmed-dictionary .nahmed-essay-progress{box-sizing:border-box!important;width:100%!important;margin:12px 0!important;padding:12px!important;gap:10px!important}.nahmed-dictionary .nahmed-essay-progress button{padding:9px 13px!important}}
@media(max-width:380px){.nahmed-dictionary .nahmed-learning-modal-dialog,.nahmed-dictionary .nahmed-context-modal-dialog,.nahmed-dictionary .nahmed-essay-dialog{width:calc(100vw - 4px)!important;height:calc(100dvh - 4px)!important;max-height:calc(100dvh - 4px)!important;border-radius:14px 14px 7px 7px!important}.nahmed-dictionary .nahmed-learning-modal,.nahmed-dictionary .nahmed-essay-modal{padding:2px!important}}


/* ==========================================================
   v2.5.48 — Canonical Module Ordering Hotfix
   Final authoritative order inside .nahmed-app-shell.
   ========================================================== */
.nahmed-dictionary .nahmed-topic-section{order:1!important}
.nahmed-dictionary .nahmed-learning-section{order:2!important}
.nahmed-dictionary .nahmed-context-section{order:3!important}
.nahmed-dictionary .nahmed-essay-section{order:4!important}
.nahmed-dictionary .nahmed-az-home{order:5!important}
.nahmed-dictionary .nahmed-workbench{order:6!important}

/* v2.5.57 — Essay Grammar & Expression Learning UX Corrective */
.nahmed-grammar-cards{display:grid;gap:12px;margin:8px 0 18px}
.nahmed-grammar-card{border:1px solid rgba(25,68,87,.14);border-radius:14px;background:#fff;padding:14px 16px}
.nahmed-grammar-card h5{margin:0 0 9px;font-size:1.02em;line-height:1.35;color:inherit}
.nahmed-grammar-card p{margin:6px 0;line-height:1.55}
.nahmed-grammar-card code{white-space:normal;font:inherit;font-weight:650;background:rgba(25,68,87,.06);padding:2px 6px;border-radius:6px}
.nahmed-grammar-card em{font-style:normal}
@media(max-width:767px){.nahmed-grammar-card{padding:12px}.nahmed-grammar-cards{gap:9px}}
/* v2.5.58 — Essay Grammar Semantic Mapping Corrective */
.nahmed-grammar-card p:last-child{margin-bottom:0}.nahmed-grammar-empty{margin:0;padding:12px 14px;border:1px solid var(--nahmed-border,#dfe6eb);border-radius:12px;background:#fff}

/* v2.5.74 — Essay reading contract: full EN > full VI > lesson */
.nahmed-essay-modal .nahmed-essay-language-block{margin:18px 0 24px;padding:22px;border:1px solid #dce8ed;border-radius:18px;background:#fff}
.nahmed-essay-modal .nahmed-essay-vietnamese{background:#fbfcfd}
.nahmed-essay-modal .nahmed-essay-section-heading{padding-bottom:14px;margin-bottom:14px;border-bottom:1px solid #e5edf0}
.nahmed-essay-modal .nahmed-essay-section-heading h3{margin:3px 0 5px;font-size:22px;line-height:1.25;color:#17384b}
.nahmed-essay-modal .nahmed-essay-section-heading p{margin:0;color:#617582;font-size:14px;line-height:1.55}
.nahmed-essay-modal .nahmed-essay-section-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.12em;color:#0b7089}
.nahmed-essay-modal .nahmed-essay-prose{font-size:17px;line-height:1.82;color:#294a5c}
.nahmed-essay-modal .nahmed-essay-vietnamese .nahmed-essay-prose{color:#405b69}
.nahmed-essay-modal .nahmed-essay-paragraph{margin:0 0 17px}
.nahmed-essay-modal .nahmed-essay-paragraph:last-child{margin-bottom:0}
.nahmed-essay-modal .nahmed-essay-language-block strong,.nahmed-essay-modal .nahmed-essay-learning strong{color:#0b7089;font-weight:750}
.nahmed-essay-modal .nahmed-essay-learning{margin-top:28px;padding:22px;background:#f7fafb}
@media(max-width:700px){
 .nahmed-essay-modal .nahmed-essay-language-block,.nahmed-essay-modal .nahmed-essay-learning{padding:17px 16px;border-radius:15px}
 .nahmed-essay-modal .nahmed-essay-prose{font-size:16px;line-height:1.78}
 .nahmed-essay-modal .nahmed-essay-section-heading h3{font-size:20px}
}
