/* WeRrcm Training Academy — shared styles */

:root {
  --blue: #0057ff;
  --blue-hover: #0049d6;
  --blue-ring: rgba(0, 87, 255, 0.18);
  --navy: #0d2470;
  --ink: #0f172a;
  --text: #1e293b;
  --label: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --field: #f8fafc;
  --page: #f3f5f9;
  --white: #fff;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --radius: 16px;
  --font: "DM Sans", -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--blue-ring); outline-offset: 2px; }

/* ---------- Logo tile ---------- */

.logo-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(150deg, #1f3a93 0%, #1a2f7a 100%);
  box-shadow: 0 6px 16px -6px rgba(8, 20, 70, 0.6);
}
.logo-tile img { width: 62%; height: 62%; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(0, 87, 255, 0.75);
}
.btn-primary:hover { background: var(--blue-hover); }

.btn-success {
  background: #079669;
  color: var(--white);
  box-shadow: 0 10px 22px -10px rgba(7, 150, 105, 0.7);
}
.btn-success:hover { background: #067f59; }

.btn-block { width: 100%; }

.btn-ghost {
  background: #f8f9fb;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover { background: #eef1f5; }
.btn-ghost[aria-current="page"] { background: #eaf0ff; border-color: #c9d8ff; color: #0a3fb8; }

.btn-locked {
  background: #eef0f3;
  color: #b9c0cb;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- App header ---------- */

.app-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px 32px;
  background: var(--white);
  border-bottom: 1px solid #eceff3;
}

/* Company logo (assets/img/werrcm-logo.jpg, white background like the header), then which part
   of the site this is: "Training" or "Training Admin". */
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.app-logo { display: block; width: auto; height: 46px; }
.app-brand__label {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--muted);
  white-space: nowrap;
}

.app-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.app-user { margin-right: 12px; font-size: 16px; font-weight: 500; color: var(--label); }

@media (max-width: 640px) {
  .app-header { padding: 12px 16px; }
  .app-logo { height: 34px; }
  .app-brand { gap: 10px; }
  .app-brand__label { padding-left: 10px; font-size: 13px; }
  .app-user { flex-basis: 100%; margin: 0; font-size: 14px; }
  .app-nav .btn { padding: 8px 12px; font-size: 14px; }
}

/* ---------- Hero (dashboard) ---------- */
/* Same look as the Sign In page and werrcm.com: navy-to-green with moving light. */

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 45px 36px;
  color: var(--white);
  background:
    radial-gradient(800px 420px at 88% 10%, rgba(57, 228, 111, 0.4), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(31, 114, 208, 0.5), transparent 60%),
    linear-gradient(160deg, #0c1c30 0%, #112740 60%, #0d4a22 100%);
}
/* Brand bar along the top edge */
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  height: 4px;
  background: linear-gradient(90deg, #1f72d0 0%, #2bb84d 50%, #39e46f 100%);
}

.hero__bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__bg span { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero__bg .b1 { width: 460px; height: 460px; right: -6%; top: -40%; background: rgba(57, 228, 111, 0.4); animation: wrDrift1 18s ease-in-out infinite; }
.hero__bg .b2 { width: 400px; height: 400px; left: -8%; bottom: -60%; background: rgba(31, 114, 208, 0.55); animation: wrDrift2 22s ease-in-out infinite; }
.hero__bg .b3 { width: 320px; height: 320px; left: 45%; top: 10%; background: rgba(43, 184, 77, 0.3); animation: wrDrift3 16s ease-in-out infinite; }
.hero__bg .dots {
  inset: 0;
  border-radius: 0;
  filter: none;
  opacity: 0.28;
  background-image: radial-gradient(rgba(255, 255, 255, 0.5) 1px, transparent 1.2px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 75%);
  animation: wrGrid 6s linear infinite;
}
.hero__bg .orbit {
  right: -160px;
  top: -220px;
  width: 560px;
  height: 560px;
  filter: none;
  border: 1px dashed rgba(120, 240, 160, 0.25);
  animation: wrSpin 80s linear infinite;
}
.hero__bg .streak {
  left: 0;
  top: 20%;
  width: 28vw;
  height: 2px;
  border-radius: 2px;
  filter: none;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(120, 240, 160, 0.8), transparent);
  animation: wrStreak 5s linear infinite;
}
.hero__bg .streak.s2 { top: 55%; animation-duration: 6.7s; animation-delay: 1.3s; }
.hero__bg .streak.s3 { top: 85%; animation-duration: 8.4s; animation-delay: 2.6s; }

.hero__inner {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}
.hero__text { flex: 1 1 420px; min-width: 0; animation: wrRise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero h1 span {
  background: linear-gradient(90deg, #5ef08a 0%, #9af5b8 40%, #c8f7d6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: #aec5dc; }

.hero .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  padding: 5px 12px 5px 5px;
  border: 1px solid rgba(120, 240, 160, 0.35);
  border-radius: 999px;
  background: rgba(35, 166, 69, 0.25);
  color: #c8f7d6;
  font-size: 13px;
  font-weight: 500;
}
.hero__eyebrow b { padding: 3px 8px; border-radius: 999px; background: #39e46f; color: #0c1c30; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }

/* Overall progress card */
.hero__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px 26px 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7);
  animation: wrRise 0.6s 0.1s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ring { position: relative; display: grid; place-items: center; }
.ring svg { filter: drop-shadow(0 0 10px rgba(57, 228, 111, 0.45)); }
.ring strong { position: absolute; display: grid; justify-items: center; font-size: 21px; font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.ring strong small { margin-top: 2px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #9af5b8; }
.ring__value { animation: wrRing 1.6s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__stats { display: grid; gap: 12px; margin: 0; }
.hero__stats dt { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #9af5b8; }
.hero__stats dd { margin: 2px 0 0; font-size: 26px; font-weight: 800; line-height: 1.1; }
.hero__stats small { font-size: 15px; font-weight: 600; color: #aec5dc; }

/* The journey: four tracks, then "Fully onboarded" */
.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 30px 0 0;
  padding: 22px 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  list-style: none;
  backdrop-filter: blur(6px);
  animation: wrRise 0.6s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.journey::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 43px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1f72d0, #39e46f);
  opacity: 0.45;
}
.journey__step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.journey__dot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 2px solid rgba(174, 197, 220, 0.45);
  border-radius: 50%;
  background: #112740;
  color: #aec5dc;
  font-size: 15px;
  font-weight: 700;
}
.journey__name { font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; }
.journey__status { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #7da0c2; }

.journey__step.is-certified .journey__dot { border-color: transparent; background: linear-gradient(135deg, #23a645, #39e46f); color: #0c1c30; font-size: 18px; }
.journey__step.is-certified .journey__status { color: #5ef08a; }
.journey__step.is-in-progress .journey__dot {
  border-color: transparent;
  background: linear-gradient(135deg, #1f72d0, #23a645);
  color: #fff;
  animation: wrBeat 1.8s ease-out infinite;
}
.journey__step.is-in-progress .journey__status { color: #c8f7d6; }
/* Unlocked but not started: a glowing outline, inviting the first click */
.journey__step.is-ready .journey__dot { border-color: #39e46f; color: #5ef08a; animation: wrBeat 1.8s ease-out infinite; }
.journey__step.is-ready .journey__status { color: #5ef08a; }
.journey__step.is-locked .journey__name { color: #aec5dc; }
.journey__step.is-locked .journey__dot { font-size: 14px; }
.journey__step.is-final .journey__dot { font-size: 18px; }

@keyframes wrBeat { 0% { box-shadow: 0 0 0 0 rgba(57, 228, 111, 0.7); } 100% { box-shadow: 0 0 0 14px rgba(57, 228, 111, 0); } }
@keyframes wrDrift1 { 50% { transform: translate(-120px, 80px) scale(1.15); } }
@keyframes wrDrift2 { 50% { transform: translate(140px, -60px) scale(0.9); } }
@keyframes wrDrift3 { 50% { transform: translate(-80px, -60px); } }
@keyframes wrGrid { to { background-position: 48px 48px; } }
@keyframes wrSpin { to { transform: rotate(360deg); } }
@keyframes wrStreak { 0% { transform: translateX(-30vw); opacity: 0; } 10%, 90% { opacity: 1; } 100% { transform: translateX(110vw); opacity: 0; } }
@keyframes wrRise { from { opacity: 0; transform: translateY(18px); } }
@keyframes wrRing { from { stroke-dasharray: 0 132; } }
@keyframes wrGrow { from { width: 0; } }
@keyframes wrShine { 0%, 62% { left: -60%; } 100% { left: 130%; } }

@media (max-width: 640px) {
  .hero { padding: 32px 16px 24px; }
  .hero p { font-size: 16px; }
  .hero__summary { width: 100%; padding: 14px 18px 14px 14px; }
  .ring svg { width: 78px; height: 78px; }
  .ring strong { font-size: 18px; }
  .journey { padding: 16px 6px 14px; }
  .journey::before { top: 35px; }
  .journey__dot { width: 36px; height: 36px; font-size: 13px; }
  .journey__name { font-size: 11px; }
  .journey__name span { display: none; }
  .journey__status { font-size: 10px; }
}

/* ---------- Content ---------- */

.content { padding: 32px 40px 64px; }

@media (max-width: 640px) {
  .content { padding: 20px 16px 48px; }
}

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 20px;
}

.card {
  border: 1px solid #e9edf2;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px -18px rgba(15, 23, 42, 0.35);
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 26px 25px 24px;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s;
  /* "backwards" (not "both"): once the fade-in ends the card's own styles apply again, so the hover lift can ease in */
  animation: wrRise 0.6s calc(0.25s + var(--i, 0) * 0.08s) cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
/* Coloured top edge, as on the homepage's feature cards */
.track-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1f72d0, #2bb84d, #39e46f);
}
.track-card.is-certified::before { background: linear-gradient(90deg, #23a645, #39e46f); }
.track-card.is-locked::before { background: #dbe1e7; }
.track-card.is-in-progress,
.track-card.is-ready { border-color: #c8f7d6; box-shadow: 0 18px 40px -26px rgba(21, 122, 50, 0.7); }
.track-card:not(.is-locked):hover {
  transform: translateY(-6px);
  border-color: #9af5b8;
  box-shadow: 0 30px 56px -28px rgba(12, 28, 48, 0.5), 0 0 0 1px rgba(57, 228, 111, 0.15);
}
.track-card .track-icon { transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
.track-card:not(.is-locked):hover .track-icon { transform: scale(1.08) rotate(-3deg); }

.track-card__top { display: flex; align-items: flex-start; justify-content: space-between; }

.track-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 55px;
  border-radius: 10px;
  background: var(--tint, #eef2fb);
  font-size: 24px;
}

.chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: #eef3ff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.chip--locked { background: #f1f3f6; color: var(--muted); font-weight: 600; }
.chip--certified { background: #e7f8ee; color: var(--ink); }
.track-card .chip--in-progress { background: #ecfcf1; border: 1px solid #c8f7d6; color: #157a32; }
.track-card .chip--ready { background: #e8f1fb; border: 1px solid #c7defa; color: #0a4890; }
.track-card .chip--certified { background: linear-gradient(120deg, #23a645, #39e46f); color: #fff; }

.track-card__kicker {
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #0d5cb6, #2bb84d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.track-card__title {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.track-card__meta { margin: 12px 0 0; font-size: 15px; color: var(--label); }
.track-card__count { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }

.track-card__bar { display: flex; align-items: center; gap: 12px; margin: auto 0 18px; padding-top: 22px; }
.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #e8eef4;
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f72d0, #2bb84d, #39e46f);
  animation: wrGrow 1.2s 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.track-card__pct { min-width: 38px; text-align: right; font-size: 14px; font-weight: 700; color: var(--label); }

.track-card .btn { padding: 13px 16px; font-size: 16px; font-weight: 700; }
/* The track to work on next gets the Sign In page's green button, with its light sweep */
.track-card .btn-primary {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(120deg, #5ef08a 0%, #39e46f 100%);
  color: #0c1c30;
  box-shadow: 0 10px 28px -8px rgba(57, 228, 111, 0.6);
}
/* Gradients can't animate, so hover brightens and lifts the button instead of swapping its gradient */
.track-card .btn-primary,
.track-card .btn-success { transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s, filter 0.3s; }
.track-card .btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05) saturate(1.15);
  box-shadow: 0 16px 32px -10px rgba(57, 228, 111, 0.75);
}
.track-card .btn-primary:active,
.track-card .btn-success:active { transform: translateY(0); transition-duration: 0.1s; }
.track-card .btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  z-index: 1;
  width: 45%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  animation: wrShine 4.5s ease-in-out infinite;
}
.track-card .btn-success { background: linear-gradient(120deg, #0a4890 0%, #157a32 100%); }
.track-card .btn-success:hover {
  transform: translateY(-2px);
  filter: brightness(1.12);
  box-shadow: 0 16px 32px -10px rgba(21, 122, 50, 0.7);
}

.track-card__note { margin: 14px 0 0; text-align: center; font-size: 14px; color: #b4bcc8; }

.track-card.is-locked { background: #fbfcfd; box-shadow: none; }
.track-card.is-locked .track-icon,
.track-card.is-locked .track-card__kicker,
.track-card.is-locked .track-card__title,
.track-card.is-locked .track-card__meta,
.track-card.is-locked .track-card__count,
.track-card.is-locked .track-card__bar { opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .hero__bg span,
  .hero__text,
  .hero__summary,
  .journey,
  .journey__dot,
  .ring__value,
  .track-card,
  .progress span,
  .track-card .btn-primary::after { animation: none !important; }
  .track-card,
  .track-card .track-icon,
  .track-card .btn-primary,
  .track-card .btn-success { transition: none; }
  .track-card:not(.is-locked):hover,
  .track-card:not(.is-locked):hover .track-icon,
  .track-card .btn-primary:hover,
  .track-card .btn-success:hover { transform: none; }
}

/* ---------- Simple pages (track, certificates) ---------- */

.page-head h1 { margin: 0; font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.page-head p { margin: 10px 0 0; color: var(--muted); }

.empty {
  margin-top: 24px;
  padding: 40px 28px;
  text-align: center;
}
.empty h2 { margin: 0; font-size: 18px; color: var(--ink); }
.empty p { margin: 10px auto 0; max-width: 460px; color: var(--muted); line-height: 1.55; }

.cert-list { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
}
.cert-row__title { flex: 1 1 220px; font-weight: 600; color: var(--ink); }

/* ---------- Track page: module viewer ---------- */

.track-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 30px;
  background: var(--white);
  border-bottom: 1px solid #eceff3;
}
.track-bar h1 { margin: 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.track-bar p { margin: 5px 0 0; font-size: 15px; color: var(--muted); }

.module-layout {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  min-height: calc(100vh - 165px);
}

.module-nav { background: var(--white); border-right: 1px solid #eceff3; }
.module-nav__inner { position: sticky; top: 80px; max-height: calc(100vh - 80px); overflow-y: auto; }

.module-nav__label {
  padding: 18px 24px;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.module-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px 16px 17px;
  border-bottom: 1px solid #f0f2f5;
  border-left: 3px solid transparent;
  color: inherit;
  text-decoration: none;
}
a.module-link:hover { background: #f8faff; }
.module-link[aria-current="page"] { background: #eef3ff; border-left-color: var(--blue); }
.module-link strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.module-link small { display: block; margin-top: 4px; font-size: 13px; color: var(--faint); }

.module-num {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f3f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.module-link[aria-current="page"] .module-num { background: var(--blue); color: var(--white); }
.module-link.is-done .module-num { background: #14a35b; color: var(--white); font-size: 14px; }

.module-link.is-locked { background: #f8f9fb; }
.module-link.is-locked > * { opacity: 0.55; }
.module-num--quiz { background: #dbe6ff; font-size: 13px; }

.module-main { padding: 40px 50px 72px; }
.module-article { max-width: 900px; }

.eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.module-title { margin: 10px 0 0; font-size: 32px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }

.prose h2 { margin: 44px 0 0; font-size: 21px; font-weight: 700; color: #0f1f4d; }
.prose p,
.prose li { font-size: 17px; line-height: 1.85; color: var(--text); }
.prose p { margin: 22px 0 0; }
.prose ul,
.prose ol { margin: 22px 0 0; padding-left: 25px; }
.prose li + li { margin-top: 8px; }
.prose strong { font-weight: 700; color: var(--ink); }

.callout {
  margin: 28px 0 0;
  padding: 24px 28px;
  border-left: 4px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: #ebf0fd;
  font-size: 16px;
  line-height: 1.85;
}
.callout__title { display: block; }
.prose .callout p { margin: 2px 0 0; font-size: 16px; }
.callout--warn { border-left-color: #d97706; background: #fefbeb; }
.callout--danger { border-left-color: #dc2626; background: #fdf0f0; }
.callout--success { border-left-color: #16a34a; background: #ecfbf2; }

.prose h3 { margin: 32px 0 0; font-size: 18px; font-weight: 600; color: #0f1f4d; }
.prose h3 + ul { margin-top: 14px; }
.prose .callout + .callout { margin-top: 20px; }

.table-wrap { margin-top: 24px; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.data-table th { padding: 17px 16px; background: #0f1f4d; color: var(--white); font-weight: 700; text-align: left; }
.data-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); line-height: 1.7; color: var(--text); }
.data-table--numbered th:first-child,
.data-table--numbered td:first-child { width: 70px; }

.complete-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}
.complete-box p { margin: 0; font-size: 16px; color: var(--label); }
.complete-box .btn { padding: 13px 36px; font-size: 17px; font-weight: 700; }
.complete-box .btn-done { padding-inline: 34px; background: #0f8a5c; color: var(--white); cursor: default; }

.module-lead { margin: 12px 0 0; font-size: 18px; line-height: 1.5; color: var(--label); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
  max-width: 860px;
  margin: 64px 0 0;
  padding-left: 30px;
}
.stat-grid div { display: flex; flex-direction: column-reverse; gap: 12px; }
.stat-grid dd { margin: 0; font-size: 30px; font-weight: 800; line-height: 1; color: var(--ink); }
.stat-grid dt { font-size: 15px; font-weight: 600; color: var(--label); }

.btn-begin { margin-top: 56px; min-width: 350px; padding: 18px 30px; font-size: 18px; font-weight: 700; }
.form-note { margin: 16px 0 0; font-size: 15px; color: var(--muted); }

@media (max-width: 640px) {
  .stat-grid { margin-top: 36px; padding-left: 0; }
  .btn-begin { width: 100%; min-width: 0; }
}

.done-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #e8f8ef;
  color: #0f8a5c;
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 900px) {
  .module-layout { grid-template-columns: 1fr; min-height: 0; }
  .module-nav { border-right: 0; border-bottom: 1px solid #eceff3; }
  .module-nav__inner { position: static; max-height: none; }
  .module-main { padding: 28px 16px 56px; }
  .module-title { font-size: 26px; }
  .track-bar { padding: 16px; }
}

/* ---------- Final assessment ---------- */

.quiz { max-width: 922px; margin: 0 auto; padding: 44px 16px 72px; }

.quiz-head { text-align: center; }
.quiz-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.quiz-head p { margin: 14px 0 0; font-size: 17px; color: var(--label); }

.quiz-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 22px 0 0; padding: 0; list-style: none; }
.quiz-chips li {
  padding: 12px 22px;
  border: 1px solid #e6eaf0;
  border-radius: 10px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.question { min-width: 0; margin: 20px 0 0; padding: 30px; }
#quiz-form .question:first-child { margin-top: 40px; }
.question__text { margin: 14px 0 22px; font-size: 19px; font-weight: 600; line-height: 1.4; color: var(--ink); }

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}
.option + .option { margin-top: 10px; }
.option:hover { border-color: #c9d8ff; background: #f8faff; }
.option:has(input:checked) { border-color: var(--blue); background: #eef3ff; }
.option input { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--blue); }

/* After submitting, answers are locked. On the answer review (review.html, certified tracks only)
   the correct option shows green, a wrong pick red, each with a word label. */
.is-graded .option { cursor: default; }
.is-graded .option:hover { border-color: var(--line); background: transparent; }
.question .option.is-answer { border-color: #22a35a; background: #ecfbf2; color: #0f7a4a; }
.question .option.is-wrong-pick { border-color: #f2b8b5; background: #fdf0f0; color: var(--danger); }
.option__tag { flex: none; margin-left: auto; font-size: 13px; font-weight: 700; }
.quiz-head + .question { margin-top: 40px; }

.question.is-unanswered { border-color: #f2b8b5; }

.explanation {
  margin: 16px 0 0;
  padding: 14px 20px;
  border-left: 3px solid var(--blue);
  border-radius: 0 6px 6px 0;
  background: #f3f5f9;
  font-size: 15px;
  line-height: 1.65;
  color: var(--label);
}
.explanation strong { color: var(--ink); }

.quiz-submit { margin-top: 32px; text-align: center; }
.quiz-error {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 15px;
}

.quiz-result { margin-top: 32px; padding: 40px 28px; text-align: center; }
.quiz-result:focus { outline: none; }
.quiz-result__score { margin: 0; font-size: 72px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.quiz-result__msg { margin: 18px 0 0; font-size: 18px; font-weight: 700; }
.quiz-result__note { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.is-pass { color: #0f8a5c; }
.is-fail { color: #dc2626; }
.quiz-result__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
.btn-attest { margin-top: 28px; padding: 18px 48px; font-size: 19px; font-weight: 700; border-radius: 10px; }

/* ---------- Attestation dialog ---------- */

.attest {
  width: min(625px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(15, 23, 42, 0.6);
}
.attest::backdrop { background: rgba(30, 41, 82, 0.45); backdrop-filter: blur(3px); }
.attest__form { padding: 40px; }
.attest h2 { margin: 0; font-size: 24px; font-weight: 800; color: var(--ink); }
.attest__intro { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--label); }
.attest__statement {
  margin: 26px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f6f7fa;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}
.attest__statement p { margin: 0; }
.attest__statement p + p { margin-top: 18px; }
.attest label { display: block; margin: 26px 0 10px; font-size: 15px; font-weight: 600; color: var(--label); }
.attest input {
  width: 100%;
  height: 50px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--field);
  font-size: 17px;
  color: var(--ink);
}
.attest input::placeholder { color: var(--faint); }
.attest input:focus { outline: none; border-color: var(--blue); background: #eef3ff; box-shadow: 0 0 0 3px var(--blue-ring); }
.attest input[aria-invalid="true"] { border-color: var(--danger); }
.attest .quiz-error { margin: 14px 0 0; }
.attest__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.attest__actions .btn { padding: 13px 26px; font-size: 17px; font-weight: 700; }
.attest .btn-ghost { background: var(--white); }

@media (max-width: 640px) {
  .attest__form { padding: 26px 20px; }
  .btn-attest { width: 100%; padding-inline: 20px; }
}

@media (max-width: 640px) {
  .quiz { padding-top: 28px; }
  .quiz-head h1 { font-size: 24px; }
  .question { padding: 22px 18px; }
}

/* ---------- Certificate ---------- */

.cert-page { max-width: 1157px; margin: 0 auto; padding: 40px 16px 72px; }
.cert-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-bottom: 24px; }
.btn-navy { background: #0f1f4d; color: var(--white); box-shadow: 0 10px 22px -12px rgba(15, 31, 77, 0.8); }
.btn-navy:hover { background: #16296a; }
.cert-actions .btn { padding: 13px 28px; font-size: 16px; font-weight: 700; }
.cert-actions .btn-ghost { background: var(--white); }

.certificate {
  position: relative;
  padding: 24px;
  border-radius: 6px;
  background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.45);
}
.certificate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(90deg, #0f1f4d 0%, #c9a24a 35%, #2f6bff 70%, #0057ff 100%);
}

.certificate__frame {
  position: relative;
  padding: 48px 56px 28px;
  border: 1.5px solid #d9bd72;
  text-align: center;
  background: radial-gradient(600px 300px at 50% 75%, rgba(0, 87, 255, 0.04), transparent 70%);
}
.certificate__frame::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid #ecdcae;
  pointer-events: none;
}

.cert-star { position: absolute; font-size: 20px; line-height: 1; color: #b8913a; }
.cert-star--tl { top: 22px; left: 24px; }
.cert-star--tr { top: 22px; right: 24px; }
.cert-star--bl { bottom: 22px; left: 24px; }
.cert-star--br { bottom: 22px; right: 24px; }

.cert-logo { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.cert-logo .logo-tile { width: 46px; height: 46px; border-radius: 6px; background: linear-gradient(150deg, #5266e8, #3d4fd1); box-shadow: none; }
.cert-logo strong {
  display: block;
  padding-right: 48px;
  border-bottom: 1.5px solid #4155d8;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  color: #0f1f4d;
}
.cert-logo small { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 8px; color: var(--muted); }
.cert-logo small b { padding: 1px 3px; border-radius: 2px; background: #3d4fd1; color: var(--white); font-size: 6px; }

.cert-divider {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 540px;
  margin: 26px auto 0;
  color: #b8913a;
  font-size: 12px;
}
.cert-divider::before,
.cert-divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, #c9a24a, transparent); }

.cert-eyebrow { margin: 38px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; color: #555e6e; }
.cert-title { margin: 14px 0 0; font-family: var(--serif); font-size: 44px; font-weight: 700; color: #0f1f4d; }
.cert-lead { margin: 34px 0 0; font-size: 16px; font-style: italic; color: var(--faint); }
.cert-name { margin: 10px 0 0; font-family: var(--serif); font-size: 68px; font-weight: 700; line-height: 1.1; color: #0f1f4d; overflow-wrap: anywhere; }
.cert-text { max-width: 800px; margin: 24px auto 0; font-size: 17px; line-height: 1.6; color: var(--label); }
.cert-course {
  display: inline-block;
  margin: 26px 0 0;
  padding: 18px 42px;
  border: 1px solid #c7d6ff;
  border-radius: 8px;
  background: #f2f6ff;
  font-size: 21px;
  font-weight: 700;
  color: var(--blue);
}

.cert-seal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 108px;
  height: 108px;
  margin: 30px auto 0;
  border: 4px solid var(--white);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2350e6, #142f9e);
  box-shadow: 0 0 0 2px #9fb6ff, 0 12px 28px -8px rgba(0, 87, 255, 0.6);
  color: var(--white);
}
.cert-seal span { font-size: 8px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.cert-seal b { font-size: 30px; line-height: 1.1; }

.cert-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 690px;
  margin: 30px auto 0;
  padding: 20px 0;
  border-top: 1px solid #e6e9ef;
  border-bottom: 1px solid #e6e9ef;
}
.cert-meta div { display: flex; flex-direction: column-reverse; gap: 8px; padding: 0 12px; }
.cert-meta div + div { border-left: 1px solid #dfe3ea; }
.cert-meta dd { margin: 0; font-size: 20px; font-weight: 800; color: #0f1f4d; overflow-wrap: anywhere; }
.cert-meta dt { font-size: 11px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--label); }

.cert-signs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 690px;
  margin: 36px auto 0;
  padding-top: 24px;
  border-top: 1px solid #eef0f4;
}
.cert-sign { margin: 0; font-family: var(--serif); font-size: 27px; font-style: italic; color: #2b3a67; }
.cert-signer { margin: 22px 0 0; font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: #0f1f4d; }
.cert-role { margin: 6px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }
.cert-foot { margin: 30px 0 0; font-size: 11px; color: var(--faint); }

@media (max-width: 760px) {
  .certificate { padding: 12px; }
  .certificate__frame { padding: 44px 18px 28px; }
  .cert-eyebrow { letter-spacing: 0.3em; font-size: 11px; }
  .cert-title { font-size: 30px; }
  .cert-name { font-size: 40px; }
  .cert-course { padding: 14px 20px; font-size: 17px; }
  .cert-meta dd { font-size: 16px; }
  .cert-signs { grid-template-columns: 1fr; }
}

@media print {
  @page { size: A4 portrait; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: var(--white); }
  .app-header,
  .cert-actions { display: none !important; }
  .cert-page { max-width: none; padding: 0; }
  .certificate { padding: 0; box-shadow: none; }
  .certificate::before { display: none; }
  .certificate__frame { padding: 40px 40px 24px; break-inside: avoid; }
  .cert-eyebrow { margin-top: 30px; }
  .cert-title { font-size: 38px; }
  .cert-lead { margin-top: 26px; }
  .cert-name { font-size: 56px; }
  .cert-text { font-size: 16px; max-width: 560px; }
  .cert-seal,
  .cert-meta { margin-top: 22px; }
  /* A4 width falls under the narrow-screen breakpoint; keep the signatures side by side. */
  .cert-signs { grid-template-columns: 1fr 1fr; margin-top: 24px; }
  .cert-foot { margin-top: 22px; }
}

/* Admin area (admin.html, assets/js/admin.js): tables, detail cards, and the module and question editors. */
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.admin-tabs--sub { margin: 20px 0 0; }
/* Selected admin tab: the Sign In page's dark-to-green tab */
.admin-tabs .btn[aria-current="page"] {
  border-color: transparent;
  background: linear-gradient(120deg, #163150, #23a645);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(21, 122, 50, 0.9);
}

/* Overview hero: the dashboard hero as a rounded panel inside the page */
.hero--panel {
  margin: 0 0 24px;
  padding: 40px 40px 36px;
  border-radius: 22px;
  box-shadow: 0 30px 60px -36px rgba(12, 28, 48, 0.8);
}
.hero--panel::before { border-radius: 22px 22px 0 0; }

.admin-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 20px;
}
.admin-panel { min-width: 0; padding: 24px 26px; animation: wrRise 0.6s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.admin-panel h2 { margin: 0 0 18px; font-size: 17px; font-weight: 700; color: var(--ink); }
.admin-panel__empty { margin: 0; color: var(--muted); }

.admin-bars { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.admin-bars li { display: grid; grid-template-columns: minmax(130px, 34%) 1fr auto; align-items: center; gap: 14px; }
.admin-bars__label { font-size: 15px; font-weight: 600; color: var(--label); }
.admin-bars__track { height: 10px; border-radius: 999px; background: #e8eef4; overflow: hidden; }
.admin-bars__track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f72d0, #2bb84d, #39e46f);
  animation: wrGrow 1.2s 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.admin-bars__value { min-width: 56px; text-align: right; font-size: 16px; font-weight: 800; color: var(--ink); }
.admin-bars__value small { font-size: 13px; font-weight: 600; color: var(--muted); }

.admin-feed { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.admin-feed li { display: flex; align-items: center; gap: 14px; padding: 11px 0; }
.admin-feed li + li { border-top: 1px solid #eef1f5; }
.admin-feed__icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfcf1, #e8f1fb);
  font-size: 17px;
}
.admin-feed__text { flex: 1; min-width: 0; font-weight: 600; color: var(--ink); }
.admin-feed__text a { color: inherit; text-decoration: none; }
.admin-feed__text a:hover { text-decoration: underline; }
.admin-feed__text small { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 500; color: var(--muted); }
.admin-feed__text small a { color: #0a4890; }
.admin-feed__date { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--muted); }

@media (max-width: 640px) {
  .hero--panel { padding: 28px 18px 24px; border-radius: 18px; }
  .admin-bars li { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .admin-bars__track { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .admin-panel,
  .admin-bars__track span { animation: none !important; }
}
.admin-table { font-size: 15px; }
.admin-table th { padding: 13px 16px; }
.admin-table td { padding: 12px 16px; line-height: 1.5; }
.admin-table tbody tr:hover { background: #f8faff; }
.admin-table .btn { padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.admin-download:disabled { opacity: 0.6; cursor: wait; }
.admin-h2 { margin: 36px 0 0; font-size: 20px; color: var(--ink); }
.admin-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 24px 0 0; padding: 24px; }
.admin-dl dt { font-size: 14px; font-weight: 600; color: var(--label); }
.admin-dl dd { margin: 6px 0 0; color: var(--ink); overflow-wrap: anywhere; }
.admin-filter { display: flex; align-items: center; gap: 10px; margin-top: 20px; font-weight: 600; color: var(--label); }
.admin-filter input { flex: 1; max-width: 360px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; }
.admin-note { margin-top: 20px; }
.admin-back { margin: 0 0 16px; }
.admin-module { margin-top: 12px; }
.admin-module summary { display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 600; color: var(--ink); cursor: pointer; }
.admin-module .prose,
.admin-module > .form-note { margin: 0; padding: 0 22px 24px; }

.admin-actions { margin: 20px 0 0; }
.admin-item__title { display: flex; flex-direction: column; gap: 4px; }
.admin-item__title small { font-size: 13px; font-weight: 400; color: var(--faint); }
.admin-item__title .chip { align-self: flex-start; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.admin-module .admin-item__actions { margin: 0; padding: 0 22px 8px; }
.admin-danger { color: var(--danger); }
.admin-danger:hover { background: var(--danger-bg); }
.btn-danger { background: var(--danger); color: var(--white); box-shadow: 0 10px 22px -10px rgba(180, 35, 24, 0.7); }
.btn-danger:hover { background: #912018; }
.admin-dialog .btn:disabled,
.admin-item__actions .btn:disabled,
.admin-access .btn:disabled { opacity: 0.6; cursor: wait; }

/* Confirmation dialog (admin.js confirmAction), styled like the attestation dialog. */
.admin-dialog { width: min(520px, calc(100% - 32px)); }
.admin-dialog .attest__form { padding: 32px; }
.admin-dialog h2 { font-size: 22px; }
.admin-dialog__subject { display: grid; gap: 4px; margin: 18px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.admin-dialog__subject strong { font-size: 16px; color: var(--ink); overflow-wrap: anywhere; }
.admin-dialog__subject span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.admin-dialog__points { margin: 18px 0 0; padding-left: 20px; font-size: 15px; line-height: 1.6; color: var(--label); }
.admin-dialog__points li + li { margin-top: 6px; }
.admin-dialog .attest__actions { margin-top: 26px; }
.admin-dialog .attest__actions .btn { padding: 11px 22px; font-size: 15px; }
.is-hidden { opacity: 0.6; }
.admin-access { display: grid; gap: 14px; justify-items: start; margin-top: 16px; padding: 22px 24px; }
.admin-access p { margin: 0; color: var(--text); line-height: 1.55; }
.admin-history { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); line-height: 1.7; }
.is-hidden .admin-item__actions { opacity: 1; }

.admin-form { display: grid; gap: 20px; margin-top: 24px; padding: 28px; }
.admin-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; font-weight: 600; color: var(--label); }
.admin-field small { font-weight: 400; color: var(--muted); }
.admin-field input[type="text"],
.admin-field input:not([type]),
.admin-field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font: inherit; font-weight: 400; color: var(--text); }
.admin-field textarea[name="body"] { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 14px; line-height: 1.6; }
.admin-field :focus { outline: 2px solid var(--blue-ring); border-color: var(--blue); }
.admin-options legend { margin-bottom: 8px; }
.admin-option { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.admin-option input[type="radio"] { flex: none; width: 18px; height: 18px; accent-color: var(--blue); }
.admin-option input[type="text"] { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-weight: 400; }
.admin-options > .btn { justify-self: start; }
.admin-help { color: var(--text); font-weight: 400; }
.admin-help summary { cursor: pointer; font-weight: 600; color: var(--label); }
.admin-help ul { margin: 10px 0 0; padding-left: 22px; line-height: 1.8; }
.admin-help code { font-size: 13px; overflow-wrap: anywhere; }
.admin-form__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-preview iframe { width: 100%; height: 520px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

@media (max-width: 640px) {
  .admin-filter { flex-wrap: wrap; }
  .admin-filter input { max-width: none; }
  .admin-form { padding: 20px 16px; }
  .admin-form__actions .btn { flex: 1; }
}
