:root {
  --emqh-navy: #071827;
  --emqh-ink: #102033;
  --emqh-muted: #64748b;
  --emqh-card: rgba(255,255,255,0.88);
  --emqh-border: rgba(15, 23, 42, 0.10);
  --emqh-accent: #15c8a8;
  --emqh-accent-2: #5b7cfa;
  --emqh-soft: #f4f8fb;
  --emqh-danger: #ef4444;
  --emqh-shadow: 0 24px 70px rgba(2, 8, 23, .12);
  --emqh-radius: 26px;
}

.emqh-wrap * { box-sizing: border-box; }
.emqh-wrap {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  color: var(--emqh-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.emqh-wrap a { text-decoration: none; }
.emqh-wrap h1, .emqh-wrap h2, .emqh-wrap h3 { color: var(--emqh-navy); line-height: 1.05; margin: 0; letter-spacing: -0.035em; }
.emqh-wrap p { margin: 0; color: var(--emqh-muted); }

.emqh-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 60px;
  border: 1px solid var(--emqh-border);
  border-radius: 36px;
  background:
    radial-gradient(circle at 16% 12%, rgba(21, 200, 168, .24), transparent 32%),
    radial-gradient(circle at 90% 20%, rgba(91, 124, 250, .22), transparent 34%),
    linear-gradient(135deg, #ffffff, #f3f8fb 52%, #edf7f5);
  box-shadow: var(--emqh-shadow);
}
.emqh-hero:after {
  content: "";
  position: absolute;
  inset: auto -120px -160px auto;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  background: rgba(21, 200, 168, .14);
  filter: blur(8px);
}
.emqh-hero-copy { position: relative; z-index: 2; }
.emqh-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(21, 200, 168, .22);
  border-radius: 999px;
  background: rgba(21, 200, 168, .10);
  color: #047d70;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}
.emqh-hero h1, .emqh-page-hero h1, .emqh-auth-copy h1, .emqh-dashboard-top h1 { font-size: clamp(42px, 7vw, 82px); }
.emqh-lead { font-size: clamp(18px, 2vw, 23px); max-width: 640px; margin-top: 18px !important; }
.emqh-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.emqh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: 16px;
  font-weight: 900;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.emqh-btn:hover { transform: translateY(-2px); }
.emqh-btn-primary { color: white !important; background: linear-gradient(135deg, var(--emqh-navy), #153a59); box-shadow: 0 14px 28px rgba(7, 24, 39, .20); }
.emqh-btn-soft { color: var(--emqh-navy) !important; background: rgba(255,255,255,.76); border: 1px solid var(--emqh-border); }
.emqh-btn-danger { color: #991b1b !important; background: #fee2e2; }
.emqh-btn-small { min-height: 36px; padding: 8px 12px; border-radius: 12px; font-size: 13px; }

.emqh-hero-card {
  position: relative;
  z-index: 2;
  padding: 24px;
  min-height: 390px;
  border-radius: 30px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: 0 30px 80px rgba(7,24,39,.16);
  backdrop-filter: blur(14px);
}
.emqh-browser-bar { display: flex; gap: 7px; margin-bottom: 24px; }
.emqh-browser-bar span { width: 11px; height: 11px; border-radius: 999px; background: #cbd5e1; }
.emqh-browser-bar span:first-child { background: #fb7185; }
.emqh-browser-bar span:nth-child(2) { background: #fbbf24; }
.emqh-browser-bar span:nth-child(3) { background: #34d399; }
.emqh-preview-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 20px; border-radius: 22px; background: var(--emqh-navy); color: white; }
.emqh-preview-top small, .emqh-preview-top strong { display: block; color: white; }
.emqh-preview-top small { opacity: .75; }
.emqh-preview-top strong { font-size: 26px; margin-top: 5px; }
.emqh-score { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 20px; background: var(--emqh-accent); color: #043b35; font-weight: 950; }
.emqh-preview-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 16px; }
.emqh-preview-grid div { padding: 18px; border-radius: 18px; background: var(--emqh-soft); }
.emqh-preview-grid strong { display: block; font-size: 28px; color: var(--emqh-navy); }
.emqh-preview-grid small { color: var(--emqh-muted); }
.emqh-ai-strip { margin-top: 16px; padding: 18px; border-radius: 20px; background: linear-gradient(135deg, rgba(21,200,168,.16), rgba(91,124,250,.12)); color: #0f3f50; font-weight: 850; }

.emqh-section-heading { margin: 56px auto 22px; text-align: center; max-width: 780px; }
.emqh-section-heading span { color: #047d70; font-weight: 900; }
.emqh-section-heading h2, .emqh-pricing-panel h2 { font-size: clamp(32px, 4vw, 52px); margin-top: 8px; }
.emqh-feature-grid, .emqh-library-grid, .emqh-plan-grid, .emqh-stat-grid { display: grid; gap: 18px; }
.emqh-feature-grid { grid-template-columns: repeat(3, 1fr); }
.emqh-feature, .emqh-card, .emqh-library-card, .emqh-plan, .emqh-stat, .emqh-resource-card, .emqh-empty-state {
  border: 1px solid var(--emqh-border);
  background: var(--emqh-card);
  border-radius: var(--emqh-radius);
  padding: 24px;
  box-shadow: 0 14px 42px rgba(2,8,23,.06);
}
.emqh-feature h3, .emqh-library-card h2, .emqh-card h2, .emqh-resource-card h3 { margin: 12px 0 8px; }
.emqh-icon { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(21,200,168,.13); color: #047d70; font-weight: 950; }

.emqh-pricing-panel { margin: 34px 0 10px; padding: 32px; border-radius: 32px; background: var(--emqh-navy); display: grid; grid-template-columns: .9fr 1.1fr; gap: 22px; align-items: center; }
.emqh-pricing-panel h2, .emqh-pricing-panel p { color: white; }
.emqh-plan-grid { grid-template-columns: 1fr 1fr; }
.emqh-plan { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.emqh-plan h3, .emqh-plan strong, .emqh-plan li { color: white; }
.emqh-plan strong { display: block; font-size: 24px; margin: 8px 0 12px; }
.emqh-plan ul { margin: 0; padding-left: 18px; }
.emqh-plan-highlight { background: linear-gradient(135deg, rgba(21,200,168,.22), rgba(91,124,250,.20)); }

.emqh-page-hero, .emqh-dashboard-top, .emqh-auth-shell { margin-top: 20px; padding: 34px; border: 1px solid var(--emqh-border); border-radius: 34px; background: linear-gradient(135deg, #fff, #f4fbfa); box-shadow: var(--emqh-shadow); }
.emqh-page-hero p, .emqh-dashboard-top p { max-width: 720px; margin: 12px 0 22px; }
.emqh-library-grid { grid-template-columns: repeat(2, 1fr); margin-top: 20px; }
.emqh-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.emqh-chip, .emqh-tag-main { display: inline-flex; padding: 7px 10px; border-radius: 999px; background: #eefaf7; color: #047d70; font-size: 12px; font-weight: 850; }

.emqh-auth-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; align-items: start; }
.emqh-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.emqh-form { display: grid; gap: 14px; }
.emqh-form label { display: grid; gap: 7px; color: var(--emqh-navy); font-weight: 850; }
.emqh-form small { color: var(--emqh-muted); font-weight: 600; }
.emqh-form input, .emqh-form select, .emqh-form textarea, .emqh-search {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--emqh-border);
  border-radius: 14px;
  padding: 11px 13px;
  background: rgba(255,255,255,.9);
  color: var(--emqh-ink);
  outline: none;
}
.emqh-form textarea { resize: vertical; }
.emqh-check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; }
.emqh-check input { width: 18px; min-height: 18px; }
.emqh-dashboard-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.emqh-stat-grid { grid-template-columns: repeat(4,1fr); margin: 20px 0; }
.emqh-stat strong { display: block; font-size: 38px; color: var(--emqh-navy); }
.emqh-stat span { color: var(--emqh-muted); font-weight: 800; }
.emqh-dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; align-items: start; }
.emqh-form-head, .emqh-section-line, .emqh-resource-head, .emqh-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.emqh-form-head span { color: var(--emqh-muted); font-weight: 800; }
.emqh-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.emqh-tools-card p { margin: 8px 0 16px; }
.emqh-tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.emqh-mini-tool { border: 1px solid var(--emqh-border); border-radius: 15px; background: #fff; min-height: 48px; padding: 10px; font-weight: 850; cursor: pointer; color: var(--emqh-navy); }
.emqh-coming-soon { margin-top: 16px; padding: 16px; border-radius: 18px; background: #f8fafc; display: grid; gap: 4px; }
.emqh-coming-soon strong { color: var(--emqh-navy); }
.emqh-coming-soon span { color: var(--emqh-muted); }
.emqh-resources-section { margin: 28px 0; }
.emqh-section-line { margin-bottom: 16px; }
.emqh-search { max-width: 320px; }
.emqh-resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.emqh-resource-card { display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
.emqh-fav { font-size: 23px; color: #cbd5e1; }
.emqh-fav.is-active { color: #f59e0b; }
.emqh-meta-row { display: flex; flex-wrap: wrap; gap: 8px; }
.emqh-meta-row span { padding: 6px 9px; background: #f1f5f9; color: #475569; border-radius: 999px; font-size: 12px; font-weight: 800; }
.emqh-tags { color: var(--emqh-muted); }
.emqh-card-actions { margin-top: auto; justify-content: flex-start; }
.emqh-empty-state { text-align: center; padding: 46px; }
.emqh-notice { margin: 16px 0; padding: 14px 16px; border-radius: 16px; font-weight: 850; }
.emqh-notice-ok { background: #dcfce7; color: #166534; }
.emqh-notice-error { background: #fee2e2; color: #991b1b; }

.emqh-selection-toolbar {
  display: none;
  position: fixed;
  z-index: 999999;
  gap: 6px;
  padding: 8px;
  background: #061522;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
}
.emqh-selection-toolbar.is-visible { display: flex; }
.emqh-selection-toolbar button {
  border: 0;
  border-radius: 999px;
  padding: 9px 11px;
  background: rgba(255,255,255,.10);
  color: white;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}
.emqh-selection-toolbar button:hover { background: var(--emqh-accent); color: #04251f; }

@media (max-width: 980px) {
  .emqh-hero, .emqh-auth-shell, .emqh-dashboard-grid, .emqh-pricing-panel { grid-template-columns: 1fr; padding: 28px; }
  .emqh-feature-grid, .emqh-resource-grid { grid-template-columns: repeat(2,1fr); }
  .emqh-stat-grid { grid-template-columns: repeat(2,1fr); }
  .emqh-auth-grid, .emqh-library-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .emqh-wrap { width: min(100% - 20px, 1180px); }
  .emqh-hero { min-height: auto; border-radius: 24px; padding: 22px; }
  .emqh-hero h1, .emqh-page-hero h1, .emqh-auth-copy h1, .emqh-dashboard-top h1 { font-size: 40px; }
  .emqh-feature-grid, .emqh-resource-grid, .emqh-plan-grid, .emqh-stat-grid, .emqh-two-col, .emqh-tool-list { grid-template-columns: 1fr; }
  .emqh-dashboard-top, .emqh-section-line, .emqh-form-head { flex-direction: column; align-items: flex-start; }
  .emqh-search { max-width: 100%; }
  .emqh-selection-toolbar { left: 10px !important; right: 10px; flex-wrap: wrap; border-radius: 20px; justify-content: center; }
}
/* EzMedQ Hub v1.1 standalone app shell */
html { scroll-behavior: smooth; }
body.emqh-standalone-app {
  margin: 0 !important;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0%, rgba(21, 200, 168, .18), transparent 34%),
    radial-gradient(circle at 92% 2%, rgba(91, 124, 250, .16), transparent 32%),
    linear-gradient(180deg, #f8fbff 0%, #eef7f6 48%, #ffffff 100%) !important;
  color: #102033;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
body.emqh-standalone-app .wp-site-blocks,
body.emqh-standalone-app .site,
body.emqh-standalone-app #page,
body.emqh-standalone-app #content,
body.emqh-standalone-app .content-area,
body.emqh-standalone-app .site-main,
body.emqh-standalone-app main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}
body.emqh-standalone-app header.wp-block-template-part,
body.emqh-standalone-app footer.wp-block-template-part,
body.emqh-standalone-app .site-header,
body.emqh-standalone-app .site-footer,
body.emqh-standalone-app .entry-header,
body.emqh-standalone-app .page-header,
body.emqh-standalone-app .entry-title,
body.emqh-standalone-app h1.entry-title,
body.emqh-standalone-app .wp-block-post-title {
  display: none !important;
}
.emqh-app-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(6, 21, 34, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 21, 34, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.72), transparent 78%);
}
.emqh-app-nav {
  position: sticky;
  top: 16px;
  z-index: 1000;
  width: min(1180px, calc(100vw - 32px));
  margin: 16px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 999px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 18px 55px rgba(2, 8, 23, .10);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.emqh-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #061522 !important;
  font-weight: 950;
  letter-spacing: -0.035em;
  text-decoration: none !important;
  font-size: 18px;
}
.emqh-brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #061522, #123e5f);
  color: #27e0bf;
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(6, 21, 34, .18);
}
.emqh-nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.emqh-nav-links a {
  color: #334155 !important;
  text-decoration: none !important;
  font-weight: 850;
  padding: 10px 13px;
  border-radius: 999px;
  line-height: 1;
}
.emqh-nav-links a:hover { background: rgba(15, 23, 42, .06); color: #061522 !important; }
.emqh-nav-links .emqh-nav-cta {
  color: white !important;
  background: linear-gradient(135deg, #061522, #16466a);
  box-shadow: 0 12px 24px rgba(6, 21, 34, .18);
}
.emqh-app-main { padding: 0 0 46px !important; }
.emqh-app-footer {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto 26px;
  padding: 18px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-weight: 750;
  font-size: 13px;
}
.emqh-app-footer a { color: #047d70 !important; font-weight: 900; text-decoration: none !important; }

/* Premium visual refinements */
:root {
  --emqh-navy: #061522;
  --emqh-ink: #0f2538;
  --emqh-muted: #617089;
  --emqh-card: rgba(255,255,255,0.82);
  --emqh-border: rgba(15, 23, 42, 0.095);
  --emqh-accent: #21d3b4;
  --emqh-accent-2: #637cff;
  --emqh-soft: #f3f8fb;
  --emqh-shadow: 0 30px 90px rgba(2, 8, 23, .12);
}
.emqh-wrap { padding: 42px 0 64px; }
.emqh-hero {
  min-height: min(720px, calc(100vh - 140px));
  border-radius: 42px;
  border-color: rgba(255,255,255,.75);
  background:
    linear-gradient(135deg, rgba(255,255,255,.92), rgba(255,255,255,.62)),
    radial-gradient(circle at 15% 12%, rgba(33, 211, 180, .38), transparent 34%),
    radial-gradient(circle at 88% 18%, rgba(99, 124, 255, .28), transparent 35%),
    linear-gradient(135deg, #ffffff, #eef8f7 58%, #edf2ff);
  box-shadow: 0 34px 100px rgba(6, 21, 34, .14);
}
.emqh-hero:before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.72);
  pointer-events: none;
}
.emqh-hero h1 {
  max-width: 620px;
  font-size: clamp(54px, 8vw, 104px) !important;
  letter-spacing: -0.072em !important;
}
.emqh-lead { color: #53657c !important; max-width: 650px; }
.emqh-pill {
  background: rgba(33, 211, 180, .13);
  border-color: rgba(33, 211, 180, .28);
  color: #047d70;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.55);
}
.emqh-btn { border-radius: 17px; box-shadow: none; }
.emqh-btn-primary { background: linear-gradient(135deg, #061522, #16466a) !important; }
.emqh-btn-soft { background: rgba(255,255,255,.72) !important; }
.emqh-hero-card {
  padding: 26px;
  border-radius: 34px;
  background: rgba(255,255,255,.70);
  box-shadow: 0 28px 80px rgba(6,21,34,.16);
}
.emqh-preview-top { border-radius: 26px; background: linear-gradient(135deg, #061522, #123450); }
.emqh-score { background: linear-gradient(135deg, #21d3b4, #18bf9f); color: #04251f; }
.emqh-feature, .emqh-card, .emqh-library-card, .emqh-plan, .emqh-stat, .emqh-resource-card, .emqh-empty-state {
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.emqh-feature:hover, .emqh-library-card:hover, .emqh-resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 60px rgba(2,8,23,.10);
}
.emqh-feature, .emqh-library-card, .emqh-resource-card { transition: transform .22s ease, box-shadow .22s ease; }
.emqh-page-hero, .emqh-dashboard-top, .emqh-auth-shell {
  border-color: rgba(255,255,255,.72);
  background:
    radial-gradient(circle at 90% 0%, rgba(99, 124, 255, .12), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(242,250,249,.86));
}

@media (max-width: 760px) {
  .emqh-app-nav {
    top: 8px;
    width: min(100vw - 16px, 1180px);
    margin-top: 8px;
    border-radius: 24px;
    align-items: flex-start;
    padding: 10px;
  }
  .emqh-brand { font-size: 16px; }
  .emqh-brand-mark { width: 34px; height: 34px; border-radius: 12px; }
  .emqh-nav-links { gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
  .emqh-nav-links a { padding: 8px 9px; font-size: 12px; }
  .emqh-wrap { width: min(100% - 18px, 1180px); padding-top: 24px; }
  .emqh-hero { padding: 24px !important; border-radius: 28px; }
  .emqh-hero:before { inset: 12px; border-radius: 20px; }
  .emqh-hero h1 { font-size: 48px !important; letter-spacing: -0.06em !important; }
  .emqh-app-footer { width: min(100vw - 20px, 1180px); flex-direction: column; align-items: flex-start; }
}

/* EzMedQ Hub v1.2 product-level redesign */
body.emqh-standalone-app {
  background:
    radial-gradient(circle at 6% 8%, rgba(33, 211, 180, .20), transparent 30%),
    radial-gradient(circle at 92% 4%, rgba(99, 124, 255, .18), transparent 32%),
    linear-gradient(180deg, #f7fbff 0%, #eef8f7 42%, #ffffff 100%) !important;
}
.emqh-app-main { min-height: calc(100vh - 180px); }
.emqh-wrap { width: min(1180px, calc(100vw - 36px)); }
.emqh-v12-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(420px, .97fr);
  gap: 34px;
  align-items: center;
  min-height: 670px;
  padding: 56px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.70)),
    radial-gradient(circle at 15% 15%, rgba(33, 211, 180, .34), transparent 34%),
    radial-gradient(circle at 90% 12%, rgba(99, 124, 255, .25), transparent 36%),
    linear-gradient(135deg, #ffffff, #eef8f6 60%, #eef2ff);
  box-shadow: 0 38px 100px rgba(2, 8, 23, .12);
}
.emqh-v12-hero:before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.78);
  pointer-events: none;
}
.emqh-v12-hero-copy, .emqh-workspace-mockup { position: relative; z-index: 2; }
.emqh-v12-hero h1 {
  margin: 0;
  max-width: 690px;
  color: #061522;
  font-size: clamp(54px, 6.8vw, 92px);
  line-height: .92;
  letter-spacing: -.075em;
}
.emqh-v12-hero .emqh-lead {
  max-width: 690px;
  margin-top: 22px !important;
  color: #52647b !important;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.65;
}
.emqh-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.emqh-trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.68);
  color: #42536a;
  font-size: 13px;
  font-weight: 850;
}
.emqh-workspace-mockup {
  padding: 22px;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 34px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 30px 80px rgba(6,21,34,.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.emqh-mockup-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #061522;
  font-weight: 950;
}
.emqh-mockup-topbar span { width: 10px; height: 10px; border-radius: 999px; background: #fb7185; }
.emqh-mockup-topbar span:nth-child(2) { background: #fbbf24; }
.emqh-mockup-topbar span:nth-child(3) { background: #34d399; margin-right: 8px; }
.emqh-mockup-grid {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}
.emqh-mockup-sidebar {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 24px;
  background: #061522;
}
.emqh-mockup-sidebar span {
  padding: 10px 11px;
  border-radius: 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 850;
}
.emqh-mockup-sidebar .active { color: #04251f; background: #21d3b4; }
.emqh-mockup-main { display: grid; gap: 12px; }
.emqh-mockup-statline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.emqh-mockup-statline div, .emqh-mockup-main article {
  border: 1px solid rgba(15,23,42,.075);
  border-radius: 20px;
  background: rgba(248,250,252,.86);
  padding: 15px;
}
.emqh-mockup-statline strong { display: block; color: #061522; font-size: 27px; line-height: 1; }
.emqh-mockup-statline small, .emqh-mockup-main small { display: block; margin-top: 4px; color: #66758a; font-weight: 750; }
.emqh-mockup-main b { display: block; color: #061522; font-size: 16px; }
.emqh-selection-demo {
  margin-top: 14px;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(33,211,180,.18), rgba(99,124,255,.14));
  color: #0d4953;
  font-weight: 900;
}
.emqh-tight-heading p { margin-top: 12px !important; }
.emqh-v12-feature-grid .emqh-feature { min-height: 214px; }
.emqh-v12-pathway {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 24px;
  align-items: center;
  margin: 34px 0;
  padding: 32px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.68);
  box-shadow: 0 20px 70px rgba(2,8,23,.08);
}
.emqh-v12-pathway h2 { font-size: clamp(34px, 4.5vw, 60px); }
.emqh-step-list { display: grid; gap: 14px; }
.emqh-step-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 18px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 22px;
  background: rgba(248,250,252,.86);
}
.emqh-step-list span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #061522;
  color: #21d3b4;
  font-weight: 950;
}
.emqh-step-list b { color: #061522; font-size: 18px; }
.emqh-step-list small { color: #66758a; font-weight: 750; }
.emqh-v12-categories {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 16px;
  margin: 28px 0 34px;
}
.emqh-category-card {
  min-height: 176px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 14px 42px rgba(2,8,23,.06);
}
.emqh-category-card.dark {
  grid-row: span 2;
  justify-content: space-between;
  background:
    radial-gradient(circle at 85% 5%, rgba(33,211,180,.28), transparent 34%),
    linear-gradient(135deg, #061522, #11314b);
}
.emqh-category-card.dark h2, .emqh-category-card.dark span { color: #fff; }
.emqh-category-card.dark h2 { font-size: clamp(30px, 3.8vw, 48px); }
.emqh-category-card.dark span { opacity: .72; font-weight: 900; }
.emqh-category-card b { color: #061522; font-size: 22px; }
.emqh-category-card small { color: #66758a; font-weight: 750; font-size: 14px; line-height: 1.6; }
.emqh-v12-pricing { margin-top: 28px; }

/* Auth page refinement */
.emqh-v12-auth-shell {
  grid-template-columns: .92fr 1.08fr;
  gap: 20px;
  padding: 28px;
  min-height: auto;
}
.emqh-auth-intro-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 20% 0%, rgba(33,211,180,.20), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.70), rgba(248,250,252,.72));
}
.emqh-auth-intro-card h1 {
  font-size: clamp(42px, 5.2vw, 68px) !important;
  line-height: .98 !important;
  letter-spacing: -.065em !important;
  max-width: 560px;
}
.emqh-auth-intro-card p { max-width: 500px; margin-top: 14px !important; font-size: 18px; }
.emqh-auth-benefits { display: grid; gap: 10px; margin-top: 24px; }
.emqh-auth-benefits div {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.075);
  background: rgba(255,255,255,.72);
}
.emqh-auth-benefits b { display: block; color: #061522; }
.emqh-auth-benefits small { display: block; margin-top: 3px; color: #66758a; font-weight: 750; }
.emqh-v12-auth-grid { align-items: stretch; }
.emqh-auth-card {
  padding: 24px;
  border-radius: 28px;
  box-shadow: 0 18px 55px rgba(2,8,23,.08);
}
.emqh-auth-card h2 { font-size: 30px; letter-spacing: -.045em; }
.emqh-form-kicker { color: #047d70; font-size: 12px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.emqh-form input, .emqh-form select, .emqh-form textarea, .emqh-search {
  border-color: rgba(15,23,42,.12) !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.emqh-form input:focus, .emqh-form select:focus, .emqh-form textarea:focus, .emqh-search:focus {
  border-color: rgba(33,211,180,.75) !important;
  box-shadow: 0 0 0 4px rgba(33,211,180,.14) !important;
}
.emqh-login-card .emqh-btn-soft, .emqh-login-card .emqh-btn-primary { width: 100%; }

/* Logged-in workspace refinement */
.emqh-dashboard-top h1 { font-size: clamp(38px, 5.4vw, 66px) !important; }
.emqh-stat { border-radius: 24px; }
.emqh-add-form { position: sticky; top: 112px; }

@media (max-width: 1040px) {
  .emqh-v12-hero, .emqh-v12-pathway, .emqh-v12-auth-shell { grid-template-columns: 1fr; }
  .emqh-v12-hero { padding: 34px; min-height: auto; }
  .emqh-workspace-mockup { max-width: 680px; }
  .emqh-v12-categories { grid-template-columns: 1fr 1fr; }
  .emqh-category-card.dark { grid-row: auto; grid-column: span 2; }
  .emqh-auth-intro-card { min-height: auto; }
}
@media (max-width: 760px) {
  .emqh-wrap { width: min(100% - 18px, 1180px); }
  .emqh-v12-hero { padding: 22px; border-radius: 28px; gap: 22px; }
  .emqh-v12-hero:before { inset: 12px; border-radius: 20px; }
  .emqh-v12-hero h1 { font-size: 44px; letter-spacing: -.06em; }
  .emqh-v12-hero .emqh-lead { font-size: 16px; }
  .emqh-mockup-grid { grid-template-columns: 1fr; }
  .emqh-mockup-sidebar { grid-template-columns: repeat(2,1fr); }
  .emqh-mockup-statline { grid-template-columns: 1fr; }
  .emqh-v12-pathway, .emqh-v12-auth-shell { padding: 18px; border-radius: 26px; }
  .emqh-v12-categories { grid-template-columns: 1fr; }
  .emqh-category-card.dark { grid-column: auto; }
  .emqh-auth-intro-card { padding: 18px; }
  .emqh-auth-intro-card h1 { font-size: 40px !important; }
  .emqh-v12-auth-grid { grid-template-columns: 1fr; }
  .emqh-add-form { position: static; }
}

/* EzMedQ Hub v1.3 - Premium authentication system */
body.emqh-student-user #wpadminbar { display: none !important; }
body.emqh-student-user.admin-bar { margin-top: 0 !important; }
.emqh-auth-v13 {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  gap: 22px;
  min-height: min(760px, calc(100vh - 190px));
  padding: 22px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,255,255,.70)),
    radial-gradient(circle at 18% 10%, rgba(33,211,180,.25), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(99,124,255,.18), transparent 34%);
  box-shadow: 0 38px 105px rgba(2,8,23,.13);
}
.emqh-auth-v13:before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.70);
  border-radius: 30px;
  pointer-events: none;
}
.emqh-auth-visual,
.emqh-auth-panel {
  position: relative;
  z-index: 2;
}
.emqh-auth-visual {
  overflow: hidden;
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 32px;
  background:
    radial-gradient(circle at 12% 10%, rgba(33,211,180,.32), transparent 36%),
    linear-gradient(145deg, #061522 0%, #0d2c44 50%, #153d5c 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 70px rgba(6,21,34,.22);
}
.emqh-auth-visual .emqh-pill {
  width: max-content;
  color: #baf8ec;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
  box-shadow: none;
}
.emqh-auth-visual h1 {
  max-width: 680px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 5.8vw, 78px);
  line-height: .96;
  letter-spacing: -.073em;
}
.emqh-auth-visual p {
  max-width: 620px;
  margin-top: 18px !important;
  color: rgba(255,255,255,.72);
  font-size: 18px;
  line-height: 1.75;
}
.emqh-auth-orb {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  filter: blur(8px);
  opacity: .35;
  pointer-events: none;
}
.emqh-auth-orb-one { right: -90px; top: -80px; background: #21d3b4; }
.emqh-auth-orb-two { left: -100px; bottom: -100px; background: #637cff; }
.emqh-auth-preview-card {
  position: relative;
  margin-top: 30px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 28px;
  background: rgba(255,255,255,.10);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.emqh-auth-preview-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.emqh-auth-preview-head .emqh-brand-mark {
  background: rgba(255,255,255,.12);
  color: #21d3b4;
  box-shadow: none;
}
.emqh-auth-preview-head strong,
.emqh-auth-preview-head small {
  display: block;
  color: #fff;
}
.emqh-auth-preview-head small { margin-top: 2px; opacity: .62; }
.emqh-auth-preview-list { display: grid; gap: 10px; }
.emqh-auth-preview-list div {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 4px 12px;
  align-items: center;
  padding: 13px;
  border-radius: 18px;
  background: rgba(255,255,255,.10);
}
.emqh-auth-preview-list span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #21d3b4;
  grid-row: span 2;
}
.emqh-auth-preview-list b { color: #fff; font-size: 14px; }
.emqh-auth-preview-list small { color: rgba(255,255,255,.62); font-weight: 750; }
.emqh-auth-proof-row {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 20px;
}
.emqh-auth-proof-row div {
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
}
.emqh-auth-proof-row b,
.emqh-auth-proof-row small { display: block; color: #fff; }
.emqh-auth-proof-row b { font-size: 20px; letter-spacing: -.035em; }
.emqh-auth-proof-row small { margin-top: 3px; opacity: .62; font-weight: 750; }
.emqh-auth-panel {
  align-self: center;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(255,255,255,.86);
  border-radius: 34px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 30px 85px rgba(2,8,23,.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.emqh-auth-panel-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}
.emqh-auth-eyebrow {
  display: block;
  color: #047d70;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .10em;
  margin-bottom: 8px;
}
.emqh-auth-panel h2 {
  margin: 0;
  color: #061522;
  font-size: clamp(34px, 4vw, 48px);
  letter-spacing: -.065em;
  line-height: .98;
}
.emqh-auth-lock {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 11px;
  border-radius: 999px;
  background: #eefaf7;
  color: #047d70;
  font-size: 12px;
  font-weight: 900;
}
.emqh-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 6px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: #eef3f8;
}
.emqh-auth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #52647b;
  font-weight: 950;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.emqh-auth-tabs button.is-active {
  background: #fff;
  color: #061522;
  box-shadow: 0 10px 28px rgba(2,8,23,.08);
}
.emqh-auth-form { display: none; gap: 14px; }
.emqh-auth-form.is-active { display: grid; }
.emqh-auth-form label {
  color: #0b1e31;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.01em;
}
.emqh-auth-form input[type="text"],
.emqh-auth-form input[type="email"],
.emqh-auth-form input[type="password"] {
  min-height: 54px;
  border-radius: 18px !important;
  font-size: 15px;
}
.emqh-password-field {
  position: relative;
  display: block;
}
.emqh-password-field input { padding-right: 78px !important; }
.emqh-password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-height: 38px;
  padding: 0 12px;
  border: 0;
  border-radius: 13px;
  background: #f1f5f9;
  color: #314155;
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}
.emqh-auth-remember {
  display: flex !important;
  grid-template-columns: auto 1fr !important;
  align-items: center;
  gap: 9px !important;
  color: #52647b !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}
.emqh-auth-remember input {
  width: 18px !important;
  min-height: 18px !important;
  margin: 0;
}
.emqh-auth-submit { width: 100%; min-height: 56px; margin-top: 4px; border-radius: 18px; }
.emqh-auth-small {
  color: #6a7890 !important;
  font-size: 13px;
  line-height: 1.65;
  text-align: center;
}
@media (max-width: 1060px) {
  .emqh-auth-v13 { grid-template-columns: 1fr; }
  .emqh-auth-visual { min-height: auto; gap: 24px; }
  .emqh-auth-panel { max-width: none; }
}
@media (max-width: 640px) {
  .emqh-auth-v13 { padding: 12px; border-radius: 28px; gap: 12px; }
  .emqh-auth-v13:before { inset: 10px; border-radius: 20px; }
  .emqh-auth-visual { padding: 22px; border-radius: 24px; }
  .emqh-auth-visual h1 { font-size: 40px; letter-spacing: -.06em; }
  .emqh-auth-visual p { font-size: 15px; }
  .emqh-auth-proof-row { grid-template-columns: 1fr; }
  .emqh-auth-panel { padding: 20px; border-radius: 24px; }
  .emqh-auth-panel-top { flex-direction: column; }
  .emqh-auth-tabs { border-radius: 20px; }
  .emqh-auth-tabs button { border-radius: 16px; }
}

/* EzMedQ Hub v1.4 - Open launch access redesign */
:root {
  --emqh-navy: #071725;
  --emqh-ink: #101f2f;
  --emqh-muted: #627188;
  --emqh-line: rgba(15, 23, 42, .09);
  --emqh-glass: rgba(255,255,255,.78);
  --emqh-glass-strong: rgba(255,255,255,.92);
  --emqh-accent: #19c7aa;
  --emqh-blue: #5b7cfa;
  --emqh-shadow-soft: 0 24px 80px rgba(2, 8, 23, .10);
  --emqh-shadow-card: 0 14px 44px rgba(2, 8, 23, .07);
}
body.emqh-standalone-app {
  background:
    radial-gradient(circle at 0% 0%, rgba(25,199,170,.20), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(91,124,250,.16), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #eef7f7 38%, #ffffff 100%) !important;
}
.emqh-app-bg { opacity: .7; }
.emqh-wrap {
  width: min(1200px, calc(100vw - 40px));
  padding: 34px 0 72px;
}
.emqh-app-nav {
  width: min(1200px, calc(100vw - 40px));
  top: 14px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 999px;
  border-color: rgba(255,255,255,.72);
  background: rgba(255,255,255,.72);
  box-shadow: 0 18px 60px rgba(2,8,23,.10);
}
.emqh-brand { letter-spacing: -.04em; }
.emqh-brand-mark {
  background: #071725;
  color: #28dfc0;
  border-radius: 14px;
}
.emqh-nav-links a { font-size: 14px; color: #405069 !important; }
.emqh-nav-links .emqh-nav-cta { background: #071725; }
.emqh-app-main { padding-bottom: 34px !important; }
.emqh-pill {
  min-height: 34px;
  padding: 8px 13px;
  background: rgba(25,199,170,.12);
  border-color: rgba(25,199,170,.28);
  color: #047b70;
  font-size: 12px;
  letter-spacing: .01em;
}
.emqh-btn {
  min-height: 50px;
  padding: 13px 18px;
  border-radius: 16px;
}
.emqh-btn-primary { background: #071725 !important; color: #fff !important; }
.emqh-btn-soft { background: rgba(255,255,255,.78) !important; color: #071725 !important; border-color: rgba(15,23,42,.10) !important; }
.emqh-btn:hover { transform: translateY(-2px); }

.emqh-v14-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(390px, .96fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  min-height: 670px;
  padding: clamp(26px, 5vw, 64px);
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 42px;
  background:
    radial-gradient(circle at 18% 12%, rgba(25,199,170,.28), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(91,124,250,.20), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.68));
  box-shadow: var(--emqh-shadow-soft);
}
.emqh-v14-hero:before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.75);
  pointer-events: none;
  z-index: -1;
}
.emqh-v14-hero-copy { max-width: 720px; }
.emqh-v14-hero h1 {
  color: #071725;
  margin: 0;
  font-size: clamp(46px, 7vw, 94px);
  line-height: .93;
  letter-spacing: -.075em;
}
.emqh-v14-hero .emqh-lead {
  max-width: 690px;
  margin-top: 22px !important;
  color: #53647b !important;
  font-size: clamp(17px, 1.55vw, 22px);
  line-height: 1.72;
}
.emqh-v14-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.emqh-v14-quick-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.68);
  color: #45556c;
  font-size: 13px;
  font-weight: 850;
}
.emqh-v14-device {
  position: relative;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.90);
  border-radius: 34px;
  background: rgba(255,255,255,.74);
  box-shadow: 0 34px 90px rgba(7,23,37,.15);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.emqh-v14-device-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #071725;
  font-weight: 950;
}
.emqh-v14-device-top span { width: 10px; height: 10px; border-radius: 99px; background: #fb7185; }
.emqh-v14-device-top span:nth-child(2) { background: #fbbf24; }
.emqh-v14-device-top span:nth-child(3) { background: #34d399; margin-right: 8px; }
.emqh-v14-device-body {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}
.emqh-v14-device aside {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-radius: 24px;
  background: #071725;
}
.emqh-v14-device aside strong {
  padding: 6px 10px 4px;
  color: rgba(255,255,255,.60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.emqh-v14-device aside span {
  padding: 10px 11px;
  border-radius: 14px;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  font-weight: 850;
}
.emqh-v14-device aside .is-active { color: #042d29; background: #28dfc0; }
.emqh-v14-device main { display: grid; gap: 12px; }
.emqh-v14-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.emqh-v14-stats div,
.emqh-v14-device article {
  padding: 15px;
  border: 1px solid rgba(15,23,42,.075);
  border-radius: 20px;
  background: rgba(248,250,252,.88);
}
.emqh-v14-stats b { display: block; color: #071725; font-size: 28px; line-height: 1; }
.emqh-v14-stats small,
.emqh-v14-device article small { display: block; margin-top: 4px; color: #6a7890; font-weight: 760; }
.emqh-v14-device article b { display: block; color: #071725; font-size: 16px; }
.emqh-v14-toolbar-preview {
  margin-top: 14px;
  padding: 15px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(25,199,170,.18), rgba(91,124,250,.13));
  color: #0d4953;
  font-weight: 900;
  font-size: 14px;
}
.emqh-v14-intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 22px 0 4px;
  padding: 18px 22px;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 26px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--emqh-shadow-card);
}
.emqh-v14-intro-band span { color: #047b70; font-size: 13px; font-weight: 950; text-transform: uppercase; letter-spacing: .08em; }
.emqh-v14-intro-band p { color: #57677f !important; font-weight: 760; }
.emqh-v14-feature-grid .emqh-feature { min-height: 214px; }
.emqh-v14-pathway,
.emqh-v14-ecosystem {
  margin-top: 32px;
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--emqh-shadow-card);
}
.emqh-v14-pathway {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 26px;
  align-items: center;
  padding: 32px;
}
.emqh-v14-pathway h2 { font-size: clamp(36px, 4.5vw, 62px); }
.emqh-v14-ecosystem {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
  padding: 18px;
}
.emqh-v14-ecosystem-main,
.emqh-v14-ecosystem article {
  min-height: 180px;
  border-radius: 28px;
  padding: 24px;
}
.emqh-v14-ecosystem-main {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background:
    radial-gradient(circle at 86% 8%, rgba(25,199,170,.25), transparent 34%),
    linear-gradient(135deg, #071725, #123a58);
  color: #fff;
}
.emqh-v14-ecosystem-main span { color: rgba(255,255,255,.72); font-weight: 950; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
.emqh-v14-ecosystem-main h2 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); }
.emqh-v14-ecosystem-main p { color: rgba(255,255,255,.72) !important; }
.emqh-v14-ecosystem article {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  border: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.74);
}
.emqh-v14-ecosystem article b { color: #071725; font-size: 22px; }
.emqh-v14-ecosystem article small { color: #66758a; line-height: 1.65; font-weight: 750; }

/* v1.4 auth polish */
.emqh-auth-v13 {
  border-radius: 42px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.70)),
    radial-gradient(circle at 18% 10%, rgba(25,199,170,.23), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(91,124,250,.17), transparent 34%);
}
.emqh-auth-visual {
  background:
    radial-gradient(circle at 12% 10%, rgba(25,199,170,.32), transparent 36%),
    linear-gradient(145deg, #071725 0%, #0d2d45 52%, #153d5d 100%);
}
.emqh-auth-panel {
  background: rgba(255,255,255,.86);
  border-color: rgba(255,255,255,.90);
}
.emqh-auth-form input { border-color: rgba(15,23,42,.12) !important; }
.emqh-launch-note {
  margin-top: 16px;
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(25,199,170,.09);
  border: 1px solid rgba(25,199,170,.18);
}
.emqh-launch-note strong { color: #071725; }
.emqh-launch-note span { color: #66758a; line-height: 1.55; }
.emqh-dashboard-top,
.emqh-page-hero,
.emqh-card,
.emqh-feature,
.emqh-library-card,
.emqh-stat,
.emqh-resource-card,
.emqh-empty-state {
  border-color: rgba(255,255,255,.78) !important;
  background: rgba(255,255,255,.76) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.emqh-dashboard-grid { grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); }
.emqh-stat { min-height: 132px; display: flex; flex-direction: column; justify-content: center; }
.emqh-stat strong { font-size: clamp(30px, 4vw, 42px); }
.emqh-resource-card { min-height: 250px; }

@media (max-width: 1080px) {
  .emqh-v14-hero,
  .emqh-v14-pathway,
  .emqh-auth-v13,
  .emqh-dashboard-grid { grid-template-columns: 1fr; }
  .emqh-v14-device { max-width: 720px; }
  .emqh-v14-ecosystem { grid-template-columns: 1fr 1fr; }
  .emqh-v14-ecosystem-main { grid-column: span 2; grid-row: auto; }
  .emqh-add-form { position: static; }
}
@media (max-width: 820px) {
  .emqh-wrap,
  .emqh-app-nav,
  .emqh-app-footer { width: min(100vw - 24px, 1200px); }
  .emqh-app-nav { align-items: flex-start; border-radius: 26px; }
  .emqh-nav-links { flex-wrap: wrap; justify-content: flex-end; }
  .emqh-v14-hero { min-height: auto; padding: 24px; border-radius: 30px; }
  .emqh-v14-hero:before { inset: 10px; border-radius: 22px; }
  .emqh-v14-hero h1 { font-size: clamp(42px, 11vw, 68px); }
  .emqh-v14-device-body { grid-template-columns: 1fr; }
  .emqh-v14-device aside { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .emqh-v14-device aside strong { grid-column: 1 / -1; }
  .emqh-v14-intro-band { flex-direction: column; align-items: flex-start; }
  .emqh-v14-pathway { padding: 22px; border-radius: 28px; }
  .emqh-v14-ecosystem { grid-template-columns: 1fr; }
  .emqh-v14-ecosystem-main { grid-column: auto; }
  .emqh-feature-grid,
  .emqh-library-grid,
  .emqh-resource-grid { grid-template-columns: 1fr; }
  .emqh-dashboard-top { align-items: flex-start; }
}
@media (max-width: 540px) {
  .emqh-wrap { width: min(100vw - 16px, 1200px); padding-top: 18px; }
  .emqh-app-nav { width: min(100vw - 16px, 1200px); top: 8px; margin-top: 8px; padding: 9px; }
  .emqh-brand span:last-child { font-size: 15px; }
  .emqh-brand-mark { width: 34px; height: 34px; border-radius: 12px; }
  .emqh-nav-links a { padding: 8px 9px; font-size: 12px; }
  .emqh-v14-hero { padding: 18px; }
  .emqh-v14-device { padding: 14px; border-radius: 24px; }
  .emqh-v14-stats { grid-template-columns: 1fr; }
  .emqh-v14-toolbar-preview { font-size: 12px; }
  .emqh-hero-actions { flex-direction: column; }
  .emqh-btn { width: 100%; }
  .emqh-stat-grid,
  .emqh-two-col,
  .emqh-tool-list { grid-template-columns: 1fr !important; }
  .emqh-auth-v13 { border-radius: 26px; padding: 10px; }
  .emqh-auth-visual { padding: 20px; border-radius: 22px; }
  .emqh-auth-panel { padding: 18px; }
  .emqh-auth-proof-row { grid-template-columns: 1fr; }
  .emqh-selection-toolbar { max-width: calc(100vw - 20px); }
}

/* EzMedQ Hub v1.5 - Clean auth page: no marketing hero, just login/register */
.emqh-auth-clean {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: min(720px, calc(100vh - 170px));
  padding: clamp(18px, 5vw, 48px) !important;
  border-radius: 40px;
  background:
    radial-gradient(circle at 18% 10%, rgba(25,199,170,.18), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(91,124,250,.14), transparent 34%),
    rgba(255,255,255,.70) !important;
}
.emqh-auth-clean:before { display: none !important; }
.emqh-auth-panel-clean {
  width: min(100%, 520px) !important;
  max-width: 520px !important;
  margin: 0 auto !important;
  padding: clamp(24px, 5vw, 44px) !important;
  border-radius: 32px !important;
  background: rgba(255,255,255,.94) !important;
  border: 1px solid rgba(255,255,255,.88) !important;
  box-shadow: 0 30px 90px rgba(2,8,23,.13) !important;
}
.emqh-auth-clean-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 26px;
}
.emqh-auth-clean-brand strong {
  color: #071725;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: -.04em;
}
.emqh-auth-panel-top-clean {
  display: block !important;
  text-align: center;
  margin-bottom: 24px !important;
}
.emqh-auth-panel-top-clean .emqh-auth-eyebrow {
  margin-bottom: 10px;
}
.emqh-auth-panel-top-clean h2 {
  max-width: 420px;
  margin: 0 auto !important;
  font-size: clamp(32px, 5vw, 46px) !important;
  line-height: 1.02 !important;
}
.emqh-auth-panel-clean .emqh-auth-tabs {
  margin-bottom: 22px;
}
.emqh-auth-panel-clean .emqh-auth-form {
  gap: 15px;
}
.emqh-auth-panel-clean .emqh-auth-submit {
  margin-top: 8px;
}
@media (max-width: 640px) {
  .emqh-auth-clean {
    min-height: auto;
    padding: 12px !important;
    border-radius: 26px;
  }
  .emqh-auth-panel-clean {
    padding: 20px !important;
    border-radius: 24px !important;
  }
  .emqh-auth-panel-top-clean h2 {
    font-size: 32px !important;
  }
}


/* EzMedQ Hub v1.6 study room and cleaner dashboard */
.emqh-v14-quick-row { gap: 10px; }
.emqh-v14-quick-row span {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(15,23,42,.08);
  box-shadow: 0 10px 24px rgba(2,8,23,.04);
}
.emqh-study-center-card {
  min-height: 100%;
  background:
    radial-gradient(circle at 86% 0%, rgba(21,200,168,.18), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,.94), rgba(246,252,251,.92));
}
.emqh-study-center-head h2 { font-size: clamp(26px, 3vw, 38px); margin: 8px 0 10px; }
.emqh-study-center-head p { margin-bottom: 18px; }
.emqh-study-select-label { display: grid; gap: 8px; color: var(--emqh-navy); font-weight: 900; }
.emqh-study-select-label select,
.emqh-upload-field input[type="file"] {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--emqh-border);
  border-radius: 16px;
  padding: 12px;
  background: white;
  color: var(--emqh-ink);
}
.emqh-start-study-btn { width: 100%; margin-top: 14px; }
.emqh-study-hint,
.emqh-study-empty,
.emqh-study-tip {
  margin-top: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(21,200,168,.10);
  border: 1px solid rgba(21,200,168,.20);
  display: grid;
  gap: 5px;
}
.emqh-study-hint strong,
.emqh-study-empty strong,
.emqh-study-tip strong { color: var(--emqh-navy); }
.emqh-study-hint span,
.emqh-study-empty span,
.emqh-study-tip span { color: var(--emqh-muted); }

.emqh-study-room { margin-top: 18px; }
.emqh-study-topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border-radius: 32px;
  border: 1px solid var(--emqh-border);
  background: linear-gradient(135deg, #ffffff, #f3fbfa);
  box-shadow: var(--emqh-shadow);
}
.emqh-study-topbar h1 { font-size: clamp(32px, 4vw, 56px); margin: 0 0 12px; }
.emqh-study-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.emqh-study-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
}
.emqh-study-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.emqh-study-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.emqh-study-viewer-card,
.emqh-study-notes-card {
  border: 1px solid var(--emqh-border);
  background: rgba(255,255,255,.9);
  border-radius: 28px;
  box-shadow: 0 14px 42px rgba(2,8,23,.06);
  overflow: hidden;
}
.emqh-study-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--emqh-border);
  background: rgba(248,250,252,.94);
}
.emqh-study-toolbar button {
  border: 1px solid var(--emqh-border);
  background: white;
  color: var(--emqh-navy);
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 900;
  cursor: pointer;
}
.emqh-study-toolbar button.is-active {
  background: var(--emqh-navy);
  color: white;
}
.emqh-study-toolbar span {
  margin-left: auto;
  color: var(--emqh-muted);
  font-weight: 850;
  font-size: 13px;
}
.emqh-study-viewer {
  position: relative;
  min-height: 72vh;
  background:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px),
    #f8fafc;
  background-size: 28px 28px;
}
.emqh-study-object,
.emqh-study-object iframe,
.emqh-study-image {
  display: block;
  width: 100%;
  height: 72vh;
  border: 0;
  object-fit: contain;
}
.emqh-study-link-preview {
  min-height: 72vh;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 12px;
  padding: 28px;
}
.emqh-study-link-preview h3 { margin: 0; font-size: 34px; }
.emqh-annotation-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}
.emqh-annotation-canvas.is-drawing { pointer-events: auto; cursor: crosshair; }
.emqh-study-notes-card { padding: 22px; position: sticky; top: 18px; }
.emqh-study-notes-card h2 { font-size: 30px; margin-bottom: 8px; }
.emqh-study-notes-card p { margin-bottom: 14px; }
.emqh-study-notes-card textarea {
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--emqh-border);
  border-radius: 18px;
  padding: 14px;
  background: #fff;
  color: var(--emqh-ink);
  resize: vertical;
  outline: none;
  font: inherit;
}
.emqh-study-note-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

@media (max-width: 1100px) {
  .emqh-study-layout { grid-template-columns: 1fr; }
  .emqh-study-notes-card { position: static; }
}
@media (max-width: 760px) {
  .emqh-study-topbar { flex-direction: column; padding: 20px; border-radius: 24px; }
  .emqh-study-actions { justify-content: flex-start; width: 100%; }
  .emqh-study-actions .emqh-btn { flex: 1 1 140px; }
  .emqh-study-viewer,
  .emqh-study-object,
  .emqh-study-object iframe,
  .emqh-study-image,
  .emqh-study-link-preview { min-height: 58vh; height: 58vh; }
  .emqh-study-toolbar span { width: 100%; margin-left: 0; }
  .emqh-study-note-actions { grid-template-columns: 1fr; }
}
