/* styles.css — Claude Masterclass LMS design system
   Dark glassmorphism · Inter · restrained & crisp */

/* ------------------------------------------------------------ tokens */
:root {
  --bg: #0b0d14;
  --accent: #7c8cff;
  --accent-soft: rgba(124, 140, 255, 0.16);
  --success: #3ecf8e;
  --warn: #ffb454;
  --danger: #ff6b6b;
  --text: #e9ebf5;
  --dim: #9aa3bd;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-hi: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
  --sidebar-w: 240px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* ------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, canvas, svg { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: rgba(124, 140, 255, 0.35); }

/* ambient glows */
body::before, body::after {
  content: '';
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}
body::before {
  top: -220px; left: -180px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(124, 140, 255, 0.20), transparent 65%);
}
body::after {
  bottom: -240px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(62, 207, 142, 0.13), transparent 65%);
}

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.14) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.14); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------------------------------------ layout */
#app { display: flex; min-height: 100vh; }

#sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  position: sticky;
  top: 0;
  height: 100vh;
  background: rgba(13, 16, 26, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-right: 1px solid var(--line);
  z-index: 40;
}
.side-inner { display: flex; flex-direction: column; height: 100%; padding: 18px 12px 14px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 10px 18px;
  color: var(--text);
  font-weight: 800; font-size: 15px; line-height: 1.15;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), #5a6cf0);
  color: #fff; border-radius: 10px; font-size: 16px;
  box-shadow: 0 4px 14px rgba(124, 140, 255, 0.35);
}
.brand-txt em { display: block; font-style: normal; color: var(--dim); font-weight: 600; font-size: 12px; }

#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav-link {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--dim);
  font-weight: 500; font-size: 13.5px;
  transition: background .2s, color .2s;
}
.nav-link:hover { background: var(--glass); color: var(--text); text-decoration: none; }
.nav-link.active {
  background: var(--accent-soft);
  color: var(--text);
  box-shadow: inset 2px 0 0 var(--accent);
}
.nav-link .ni { font-size: 16px; width: 20px; text-align: center; }

.side-bottom { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.profile-chip {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  transition: background .2s, border-color .2s;
}
.profile-chip:hover { background: var(--glass-hi); border-color: rgba(255,255,255,0.14); }
.chip-meta { display: flex; flex-direction: column; min-width: 0; }
.chip-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-meta .dim { font-size: 11.5px; }

#main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

#topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px;
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
#menuBtn {
  display: none;
  background: var(--glass); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  width: 38px; height: 38px; font-size: 16px;
}
#globalSearch {
  flex: 1; max-width: 460px;
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 14px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
#globalSearch::placeholder { color: var(--dim); }
#globalSearch:focus {
  border-color: rgba(124, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}
#profileBtn {
  margin-left: auto;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(124, 140, 255, 0.5);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 700; font-size: 13px;
  transition: transform .2s, box-shadow .2s;
}
#profileBtn:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(124, 140, 255, 0.3); }

#view { flex: 1; padding: 26px 26px 60px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* --------------------------------------------------------- glass card */
.glass, .card {
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 20px; transition: transform .2s, border-color .2s, box-shadow .2s; }
.card.hoverable:hover, a.card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  text-decoration: none;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border-radius: 10px;
  padding: 9px 18px;
  font-size: 13.5px; font-weight: 600;
  border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
  color: var(--text);
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), #5a6cf0);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124, 140, 255, 0.35);
}
.btn.primary:hover { box-shadow: 0 6px 22px rgba(124, 140, 255, 0.45); }
.btn.ghost {
  background: var(--glass);
  border-color: var(--line);
}
.btn.ghost:hover { background: var(--glass-hi); border-color: rgba(255,255,255,0.16); }
.btn.sm { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn.lg { padding: 12px 26px; font-size: 15px; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: rgba(255, 107, 107, 0.12); border-color: rgba(255, 107, 107, 0.4); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ------------------------------------------------------------- inputs */
input[type="text"], input[type="search"], input[type="password"], input[type="number"],
input[type="email"], select, textarea, .input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  padding: 9px 12px;
  font-size: 13.5px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(124, 140, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.15);
}
select option { background: #141827; color: var(--text); }
textarea { resize: vertical; min-height: 90px; line-height: 1.6; }

.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--dim); margin: 10px 0; }
.field input, .field select { font-weight: 400; color: var(--text); }
.field .hint { font-weight: 400; font-size: 11.5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin: 12px 0; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }

/* -------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--glass-hi);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
  font-size: 11.5px; font-weight: 600;
  color: var(--dim);
  white-space: nowrap;
}
.chip.on { color: var(--success); border-color: rgba(62, 207, 142, 0.4); background: rgba(62, 207, 142, 0.1); }
.chip.warn { color: var(--warn); border-color: rgba(255, 180, 84, 0.4); background: rgba(255, 180, 84, 0.1); }
.chip.accent { color: var(--accent); border-color: rgba(124, 140, 255, 0.4); background: var(--accent-soft); }

/* ------------------------------------------------------- progress bar */
.progress {
  height: 8px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.progress > i, .progress > .bar {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), #5a6cf0);
  border-radius: 999px;
  transition: width .6s cubic-bezier(.4, 0, .2, 1);
}
.progress.success > i, .progress.success > .bar { background: linear-gradient(90deg, var(--success), #2eb377); }

/* ------------------------------------------------------ progress ring */
.ringwrap { position: relative; display: inline-grid; place-items: center; flex: none; }
.ringwrap svg { transform: rotate(-90deg); display: block; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.09); }
.ring-fg {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  animation: ringIn 1.1s cubic-bezier(.4, 0, .2, 1);
  transition: stroke-dashoffset .6s cubic-bezier(.4, 0, .2, 1);
}
@keyframes ringIn { from { stroke-dashoffset: var(--ring-c, 999); } }
.ring-label {
  position: absolute;
  font-size: 11px; font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* ------------------------------------------------------------- toasts */
#toasts {
  position: fixed;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 1000;
  pointer-events: none;
}
.toast {
  background: rgba(20, 24, 39, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  max-width: min(420px, 90vw);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* -------------------------------------------------------------- modal */
#overlay {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  background: rgba(5, 6, 10, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 500;
  padding: 20px;
}
#overlay.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: min(86vh, 780px);
  overflow-y: auto;
  padding: 26px 26px 24px;
  animation: popIn .25s cubic-bezier(.34, 1.4, .64, 1);
  background: rgba(19, 23, 37, 0.92);
}
@keyframes popIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 32px; height: 32px;
  border-radius: 9px;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--dim);
  font-size: 13px;
  transition: color .2s, background .2s;
}
.modal-close:hover { color: var(--text); background: var(--glass-hi); }
.modal h3, .modal h4 { letter-spacing: -0.01em; }
.settings-h { margin: 20px 0 4px; border-top: 1px solid var(--line); padding-top: 16px; }
.settings-block { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--glass); }
.settings-block summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--dim); }
.settings-block[open] summary { color: var(--text); margin-bottom: 8px; }

.onboard { text-align: center; }
.onboard .field, .onboard .field-grid { text-align: left; }
.onboard-icon { font-size: 44px; margin-bottom: 6px; }
.onboard h2 { margin: 6px 0 8px; letter-spacing: -0.02em; }
.onboard .btn.lg { margin-top: 14px; width: 100%; }
.onboard-modal { width: min(460px, 100%); }

/* profile rows in modal */
.prof-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.prof-row {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--glass);
}
.prof-row.current { border-color: rgba(124, 140, 255, 0.45); background: var(--accent-soft); }
.prof-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.prof-meta strong { font-size: 13.5px; }
.prof-meta .dim { font-size: 11.5px; text-transform: capitalize; }
.avatar {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(124, 140, 255, 0.4);
  font-size: 12px; font-weight: 700;
}

/* ----------------------------------------------------------- fx layer */
#fx { position: fixed; inset: 0; pointer-events: none; z-index: 2000; }

/* ----------------------------------------------------------- skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  min-height: 14px;
}
.skeleton::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.07) 50%, transparent 70%);
  animation: shimmer 1.4s infinite;
  transform: translateX(-100%);
}
@keyframes shimmer { to { transform: translateX(100%); } }

/* --------------------------------------------------------- empty state */
.empty-state { text-align: center; padding: 56px 28px; max-width: 480px; margin: 8vh auto; }
.empty-icon { font-size: 42px; margin-bottom: 8px; }
.empty-state h2 { margin: 6px 0 8px; letter-spacing: -0.02em; }

/* -------------------------------------------------------------- utils */
.dim { color: var(--dim); }
.row { display: flex; align-items: center; gap: 10px; }
.gap { gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.015em; }
.page-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; }
.page-sub { color: var(--dim); margin: 0 0 22px; font-size: 14px; }

/* ------------------------------------------------------------- prose */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}
.prose h1 { font-size: 28px; font-weight: 800; margin: 8px 0 16px; }
.prose h2 {
  font-size: 22px; font-weight: 700;
  margin: 40px 0 14px;
  padding-bottom: 9px;
  border-bottom: 2px solid rgba(124, 140, 255, 0.35);
}
.prose h3 { font-size: 18px; font-weight: 700; margin: 30px 0 10px; }
.prose h4 { font-size: 15.5px; font-weight: 700; margin: 24px 0 8px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.04em; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 26px; }
.prose li { margin: 5px 0; }
.prose li.task { list-style: none; margin-left: -22px; display: flex; align-items: baseline; gap: 9px; }
.prose li.task input { accent-color: var(--success); transform: translateY(2px); flex: none; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 34px 0; }
.prose strong { color: #fff; }
.prose a { border-bottom: 1px dotted rgba(124, 140, 255, 0.5); }

.icode {
  background: rgba(124, 140, 255, 0.13);
  border: 1px solid rgba(124, 140, 255, 0.22);
  border-radius: 6px;
  padding: 1.5px 6px;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.86em;
  color: #c3ccff;
}

.codewrap {
  position: relative;
  margin: 0 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(8, 10, 16, 0.75);
  overflow: hidden;
}
.codelang {
  position: absolute; top: 9px; left: 14px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--dim);
}
.copy-btn {
  position: absolute; top: 7px; right: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--dim);
  font-size: 11.5px; font-weight: 600;
  padding: 4px 11px;
  transition: color .2s, background .2s;
  z-index: 2;
}
.copy-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.12); }
pre.code {
  margin: 0;
  padding: 34px 16px 15px;
  overflow-x: auto;
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.62;
  color: #d5daf0;
}
pre.code code { font-family: inherit; }

pre.ascii {
  margin: 0 0 18px;
  padding: 16px;
  overflow-x: auto;
  border: 1px solid rgba(62, 207, 142, 0.18);
  border-radius: 12px;
  background: rgba(8, 14, 12, 0.7);
  font-family: ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.45;
  color: rgba(62, 207, 142, 0.82);
  white-space: pre;
}

.callout {
  margin: 0 0 18px;
  padding: 13px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.callout p { margin: 4px 0; font-size: 0.95em; }

.tablewrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 12px; }
.prose table, .tablewrap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.tablewrap th, .tablewrap td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tablewrap th {
  background: rgba(124, 140, 255, 0.09);
  font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--dim);
}
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }

details.exercise {
  margin: 0 0 18px;
  border: 1px solid rgba(255, 180, 84, 0.28);
  border-radius: 12px;
  background: rgba(255, 180, 84, 0.055);
  padding: 0 18px;
  transition: background .2s;
}
details.exercise[open] { background: rgba(255, 180, 84, 0.08); padding-bottom: 12px; }
details.exercise summary {
  cursor: pointer;
  list-style: none;
  padding: 13px 0;
  font-weight: 700; font-size: 15.5px;
  color: var(--warn);
  display: flex; align-items: center; gap: 9px;
}
details.exercise summary::-webkit-details-marker { display: none; }
details.exercise summary::before {
  content: '▸';
  font-size: 14px;
  transition: transform .2s;
}
details.exercise[open] summary::before { transform: rotate(90deg); }

/* --------------------------------------------------------- responsive */
@media (max-width: 900px) {
  #menuBtn { display: grid; place-items: center; }
  #view { padding: 18px 14px 96px; }
  .grid3, .grid4 { grid-template-columns: 1fr 1fr; }
  .field-grid { grid-template-columns: 1fr; }

  /* sidebar → bottom icon bar */
  #sidebar {
    position: fixed;
    top: auto; bottom: 0; left: 0; right: 0;
    width: 100%; height: 62px;
    border-right: 0;
    border-top: 1px solid var(--line);
    background: rgba(13, 16, 26, 0.88);
  }
  .side-inner { flex-direction: row; align-items: center; padding: 0 6px; height: 100%; }
  .brand, .side-bottom { display: none; }
  #nav {
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    overflow-x: auto; overflow-y: hidden;
    gap: 0;
  }
  .nav-link { flex-direction: column; gap: 3px; padding: 7px 10px; font-size: 9.5px; border-radius: 10px; }
  .nav-link .ni { font-size: 19px; width: auto; }
  .nav-link.active { box-shadow: none; }

  /* expanded drawer when menu button toggled */
  #sidebar.open {
    top: 0; height: 100%;
    width: min(300px, 84vw);
    right: auto;
    border-top: 0;
    border-right: 1px solid var(--line);
    box-shadow: 30px 0 80px rgba(0, 0, 0, 0.5);
    animation: slideIn .22s ease;
  }
  @keyframes slideIn { from { transform: translateX(-100%); } }
  #sidebar.open .side-inner { flex-direction: column; align-items: stretch; padding: 18px 12px 14px; }
  #sidebar.open .brand, #sidebar.open .side-bottom { display: flex; }
  #sidebar.open #nav { flex-direction: column; justify-content: flex-start; gap: 2px; }
  #sidebar.open .nav-link { flex-direction: row; gap: 11px; padding: 10px 12px; font-size: 13.5px; }
  #sidebar.open .nav-link .ni { font-size: 16px; width: 20px; }
}
@media (max-width: 560px) {
  .grid2, .grid3, .grid4 { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  #topbar { padding: 10px 12px; }
}

/* -------------------------------------------------------------- print */
@media print {
  body { background: #fff; color: #111; }
  body::before, body::after { display: none; }
  #sidebar, #topbar, #toasts, #overlay, #fx, .no-print, .btn { display: none !important; }
  #view { padding: 0; max-width: none; }
  .glass, .card {
    background: #fff;
    border-color: #ccc;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #111;
  }
  .dim { color: #555; }
  .certificate {
    page-break-inside: avoid;
    border: 3px double #888 !important;
    color: #111 !important;
  }
  .certificate * { color: #111 !important; }
  a { color: #111; text-decoration: none; }
}

/* ------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
