/* تلخيص شهادة Google UX Design — #نذير. سطح القراءة الطويلة من عالم home/DESIGN.md (مكوّنات الدليل) */

:root {
  --navy: #2D2A47;
  --violet: #5B5391;
  --brand: #2D2A47;          /* نصوص العناوين */
  --brand-2: #5B5391;        /* الصوت الثاني: h3، الروابط، المربعات */
  --brand-solid: #2D2A47;    /* الحقول المصمتة */
  --on-brand: #FFFFFF;
  --bg: #F6F5FA;
  --surface: #FFFFFF;
  --surface-2: #EFEDF6;
  --text: #1C1A2E;
  --muted: #595571;
  --border: #E2DFEC;
  --frame: #2D2A47;
  --row-alt: #FAF9FD;
  --grid-line: rgba(45, 42, 71, .07);

  --amber-bg: #FEF3C7; --amber-tx: #92400E; --amber-bd: #F5D78A;
  --red-tx: #991B1B;
  --gray-bg: #F3F2F7; --gray-tx: #3A3750; --gray-bd: #DEDBE8;

  --topbar-h: 60px;
  --shadow: 0 1px 2px rgba(45, 42, 71, .06), 0 6px 20px rgba(45, 42, 71, .06);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #ECEAF5;
    --brand-2: #A79FE0;
    --brand-solid: #5B5391;
    --bg: #121119;
    --surface: #1A1824;
    --surface-2: #231F33;
    --text: #ECEAF5;
    --muted: #A9A4C3;
    --border: #2F2C40;
    --frame: #4A4566;
    --row-alt: #1E1C29;
    --grid-line: rgba(236, 234, 245, .04);

    --amber-bg: rgba(245, 158, 11, .12); --amber-tx: #FCD34D; --amber-bd: rgba(245, 158, 11, .35);
    --red-tx: #FCA5A5;
    --gray-bg: rgba(255, 255, 255, .05); --gray-tx: #D6D3E4; --gray-bd: rgba(255, 255, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 18px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  font-size: 17px;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }

a { color: var(--brand-2); }
::selection { background: #2D2A47; color: #fff; }
strong { font-weight: 700; }
svg { width: 1.15em; height: 1.15em; flex: none; }
small[dir="ltr"] { display: block; text-align: right; font-size: .56em; font-weight: 600; color: var(--muted); line-height: 1.5; margin-top: 2px; }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 60; background: var(--brand-solid); color: var(--on-brand); padding: 8px 14px; border-radius: 2px; }
.skip:focus { top: 10px; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; }
.sq { display: inline-block; width: 6px; height: 6px; background: currentColor; opacity: .6; flex: none; }

/* ---------- الشريط العلوي ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); background: #2D2A47; color: #fff; }
.topbar-inner {
  max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; gap: 12px;
}
.brand { display: flex; align-items: center; flex: none; }
.brand picture { display: contents; }
.brand-logo { height: 34px; width: auto; }
.brand-title { color: #fff; text-decoration: none; font-weight: 600; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb-sep { width: 6px; height: 6px; background: #A79FE0; flex: none; }
.crumb-course { color: #D9D5F2; font-size: 15px; white-space: nowrap; flex: none; }
@media (max-width: 520px) { .brand-title { display: none; } }
/* شريط تقدّم القراءة: من shared/brand.css + shared/read-progress.js */

/* ---------- الأزرار ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px;
  border-radius: 2px; border: 1.5px solid var(--brand-solid);
  background: var(--brand-solid); color: var(--on-brand);
  font: inherit; font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.btn:hover { background: #3A3660; border-color: #3A3660; }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--border); }
.btn--ghost:hover { background: var(--surface-2); border-color: var(--brand-2); }
.btn--small { min-height: 38px; padding: 0 14px; font-size: 14px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff; }
.btn--small:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .3); }
.menu-btn { margin-inline-start: auto; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 2px; background: transparent; color: var(--brand); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }

/* ---------- التقدّم ---------- */
.bar { display: block; flex: 1; height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--border); }
.bar > span { display: block; height: 100%; width: 100%; background: var(--brand-2); transform: scaleX(0); transform-origin: right; transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.txt { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- التخطيط ---------- */
.layout {
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px;
}
main { min-width: 0; max-width: 780px; width: 100%; margin: 0 auto; }

/* الشريط الجانبي: درج على الجوال، وثابت على الشاشات العريضة */
.sidebar {
  position: fixed; z-index: 40; inset-block: 0; inset-inline-start: 0;
  width: min(340px, 88vw); overflow: auto; padding: 16px 16px 40px;
  background: var(--surface); box-shadow: inset 1.5px 0 0 var(--frame);
  transform: translateX(105%); transition: transform .35s cubic-bezier(.16, 1, .3, 1);
  visibility: hidden;
}
.sidebar.open { transform: none; visibility: visible; }
.scrim { position: fixed; inset: 0; z-index: 35; background: rgba(18, 17, 25, .45); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }

@media (min-width: 1100px) {
  .layout { grid-template-columns: 290px minmax(0, 1fr); }
  main { margin: 0; }
  .sidebar {
    position: sticky; top: calc(var(--topbar-h) + 20px); z-index: auto;
    width: auto; transform: none; visibility: visible; transition: none;
    align-self: start; max-height: calc(100vh - var(--topbar-h) - 40px);
    padding: 20px 0 24px; background: none; box-shadow: none;
  }
  .menu-btn, .menu-close, .scrim { display: none !important; }
}
.sidebar-title { margin: 18px 0 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }
.sidebar-head .sidebar-title { margin-top: 4px; }

.course-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.course-nav a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 2px; text-decoration: none; color: var(--text); font-size: 14.5px; line-height: 1.5; }
.course-nav a:hover { background: var(--surface-2); }
.course-nav a[aria-current] { background: var(--surface-2); color: var(--brand); font-weight: 700; }
.course-nav .num, .toc-mod-title .num {
  display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 2px;
  background: var(--surface-2); color: var(--brand-2); font-size: 13px; font-weight: 700;
}
.course-nav a[aria-current] .num { background: #2D2A47; color: #fff; }
.cn-title { flex: 1; min-width: 0; }
.cn-pct { font-size: 12.5px; font-weight: 700; color: var(--brand-2); }

.course-progress { display: flex; align-items: center; gap: 10px; margin: 0 10px 10px; }

.toc-tree { list-style: none; margin: 0; padding: 0; }
.toc-mod { margin-bottom: 6px; }
.toc-mod-title { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 2px; text-decoration: none; color: var(--brand); font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.toc-mod-title:hover { background: var(--surface-2); }
.num--sq::before { content: ""; width: 7px; height: 7px; background: var(--brand-2); }
.toc-lessons { list-style: none; margin: 0 0 4px; padding: 0; }
.toc-lessons a { display: flex; align-items: baseline; gap: 10px; padding: 4px 10px 4px 10px; padding-inline-start: 44px; border-radius: 2px; text-decoration: none; color: var(--text); font-size: 14px; line-height: 1.6; position: relative; }
.toc-lessons a:hover { background: var(--surface-2); }
.toc-lessons a.active { background: var(--surface-2); color: var(--brand); font-weight: 700; }
.toc-lessons .state { position: absolute; inset-inline-start: 22px; top: .78em; width: 9px; height: 9px; border-radius: 1px; box-shadow: inset 0 0 0 1.5px var(--muted); }
.toc-lessons a.done .state { background: var(--brand-2); box-shadow: none; }
.toc-lessons a.done { color: var(--muted); }

/* ---------- رأس الكورس ---------- */
.course-hero { padding: 40px 0 8px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--brand-2); font-weight: 700; font-size: 15px; }
.eyebrow .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 2px; background: #2D2A47; color: #fff; font-size: 15px; }
.course-hero h1, .hero h1 { margin: 0; color: var(--brand); font-size: clamp(28px, 6vw, 42px); line-height: 1.35; font-weight: 700; text-wrap: balance; }
.source { margin: 10px 0 0; color: var(--muted); font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.course-intro { margin-top: 18px; }
.course-intro p { margin: 0 0 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }

/* ---------- الوحدات والدروس ---------- */
.module { padding-top: 44px; }
.module-title {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 6px; padding-bottom: 12px; border-bottom: 2px solid var(--frame);
  color: var(--brand); font-size: clamp(22px, 4.4vw, 27px); line-height: 1.45; font-weight: 700;
}
.module-title .num { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 2px; background: #2D2A47; color: #fff; font-size: 17px; }
.glossary .module-title .num::before { content: ""; width: 12px; height: 12px; background: #fff; }

.lesson { padding: 26px 0 8px; border-bottom: 1px solid var(--border); }
.lesson h3 { margin: 0 0 12px; color: var(--brand-2); font-size: 21px; line-height: 1.5; font-weight: 700; }
.lesson h3 small { font-size: 13.5px; }
.anchor { color: inherit; text-decoration: none; }
.anchor:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.lesson h4 { margin: 24px 0 8px; color: var(--brand); font-size: 18px; line-height: 1.5; }
.lesson p { margin: 0 0 14px; }
.lesson em { color: var(--muted); font-style: normal; font-weight: 600; }

.list { margin: 0 0 16px; padding: 0; list-style: none; }
.list li { position: relative; padding-inline-start: 26px; margin-bottom: 6px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 6px; top: .8em; width: 7px; height: 7px; background: var(--brand-2); }
.list .list li::before { width: 5px; height: 5px; background: var(--muted); }
.list .list { margin: 6px 0 4px; }
.steps { margin: 0 0 18px; padding: 0; list-style: none; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding-inline-start: 42px; margin-bottom: 10px; min-height: 28px; }
.steps > li::before {
  content: counter(s); position: absolute; inset-inline-start: 0; top: 3px;
  width: 28px; height: 28px; border-radius: 2px; display: grid; place-items: center;
  background: var(--surface-2); color: var(--brand-2); font-weight: 700; font-size: 14px; line-height: 1;
}
.steps .list, .steps .steps { margin-top: 6px; }

/* الفكرة: إطار كحلي بدون ظل. الملاحظة: لوح رمادي */
.callout { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin: 16px 0 18px; padding: 14px 18px; border-radius: 2px; font-size: 16.5px; line-height: 1.85; }
.callout p { margin: 0 0 6px !important; }
.callout p:last-child { margin-bottom: 0 !important; }
.callout-icon svg { width: 22px; height: 22px; margin-top: 4px; }
.callout-title { font-weight: 700; font-size: 17px; }
.callout-label { display: block; font-size: 13.5px; font-weight: 700; color: var(--brand-2); line-height: 1.6; }
.callout--idea { background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--frame); color: var(--text); }
.callout--idea .callout-icon { color: var(--brand-2); }
.callout--idea p { font-weight: 600; }
.callout--note { background: var(--gray-bg); color: var(--gray-tx); border: 1px solid var(--gray-bd); }
.callout--amber { background: var(--amber-bg); color: var(--amber-tx); border: 1px solid var(--amber-bd); }
.callout .list { margin: 4px 0 0; }

.figure { margin: 18px 0 22px; }
.figure img { display: block; width: 100%; height: auto; border-radius: 2px; background: #fff; box-shadow: inset 0 0 0 1px var(--border); outline: 1px solid var(--border); }
.figure figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; display: flex; gap: 8px; }
.figure figcaption::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: .7em; background: var(--brand-2); }

.verdict { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; vertical-align: .05em; }
.verdict--ok { background: var(--brand-2); }
.verdict--bad { background: var(--red-tx); }

/* ---------- الجداول ---------- */
.table-wrap { margin: 16px 0 22px; border: 1px solid var(--border); border-radius: 2px; overflow-x: auto; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.75; }
.table th { background: #2D2A47; color: #fff; font-weight: 600; padding: 10px 14px; text-align: start; vertical-align: top; }
.table td { padding: 10px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.table tbody tr:nth-child(even) td { background: var(--row-alt); }
.table td:first-child { font-weight: 600; color: var(--brand); }
.table p { margin: 0; }

/* على الجوال: كل صف بطاقة، وعنوان العمود فوق قيمته */
@media (max-width: 640px) {
  .table-wrap { border: 0; background: none; overflow: visible; }
  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { margin-bottom: 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 2px; background: var(--surface); }
  .table tbody tr:nth-child(even) td { background: none; }
  .table td { border: 0; padding: 3px 0; }
  .table td[data-label]:not([data-label=""])::before { content: attr(data-label); display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
  .table td:empty { display: none; }
  .table td:first-child { font-size: 16px; }
  .table td:first-child::before { display: none !important; }
}

/* ---------- زر «قرأته» ---------- */
.done-btn {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 18px;
  min-height: 42px; padding: 0 16px 0 14px; border: 0; border-radius: 2px;
  background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--frame);
  color: var(--brand); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.done-box { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 2px; box-shadow: inset 0 0 0 1.5px currentColor; }
.done-box svg { width: 14px; height: 14px; opacity: 0; }
.done-on { display: none; }
.done-btn[aria-pressed="true"] { background: #2D2A47; color: #fff; box-shadow: none; }
.done-btn[aria-pressed="true"] .done-box { background: #fff; color: #2D2A47; box-shadow: none; }
.done-btn[aria-pressed="true"] .done-box svg { opacity: 1; }
.done-btn[aria-pressed="true"] .done-off { display: none; }
.done-btn[aria-pressed="true"] .done-on { display: inline; }
@media (hover: hover) { .done-btn[aria-pressed="false"]:hover { background: var(--surface-2); } }

/* ---------- المسرد ---------- */
.glossary { padding-top: 44px; }
.gl-search { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; padding: 0 12px; border: 1.5px solid var(--border); border-radius: 2px; background: var(--surface); color: var(--muted); }
.gl-search:focus-within { border-color: var(--brand-2); }
.gl-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px; }
.gl-search input:focus { outline: none; }
.gl-table .table td:first-child { direction: ltr; text-align: end; white-space: nowrap; }
@media (max-width: 640px) { .gl-table .table td:first-child { text-align: start; white-space: normal; } }
.gl-empty { color: var(--muted); }

/* ---------- التنقل بين الكورسات ---------- */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 44px 0 8px; }
.pager-link { display: flex; flex-direction: column; padding: 14px 16px; border-radius: 2px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--frame); color: var(--brand); text-decoration: none; font-weight: 700; line-height: 1.6; transition: background .35s cubic-bezier(.16, 1, .3, 1), color .35s cubic-bezier(.16, 1, .3, 1); }
.pager-link--next { text-align: end; grid-column: 2; }
.pager-dir { font-size: 13.5px; font-weight: 600; color: var(--muted); }
@media (hover: hover) {
  .pager-link:hover { background: #2D2A47; color: #fff; }
  .pager-link:hover .pager-dir { color: #E4E0FA; }
}
@media (max-width: 520px) { .pager { grid-template-columns: 1fr; } .pager-link--next { grid-column: 1; } }

/* ---------- صفحة الكورسات ---------- */
.home { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hero { padding: 48px 0 8px; }
.lead { margin: 10px 0 0; color: var(--brand-2); font-weight: 600; font-size: clamp(17px, 3.6vw, 20px); }
.overall { display: flex; align-items: center; gap: 12px; max-width: 520px; margin-top: 20px; }
.overall[hidden] { display: none; }

.home main { max-width: none; }
/* 7 كورسات: الأول يأخذ عمودين، فتكتمل الصفوف (8 خانات) على عمودين أو أربعة */
.courses { display: grid; gap: 10px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .courses { grid-template-columns: repeat(2, 1fr); } .ctile:first-child { grid-column: span 2; } }
@media (min-width: 1000px) { .courses { grid-template-columns: repeat(4, 1fr); } }
.ctile {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 230px;
  padding: 18px; border-radius: 2px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--frame);
  color: var(--text); text-decoration: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .35s cubic-bezier(.16, 1, .3, 1), color .35s cubic-bezier(.16, 1, .3, 1);
}
.ctile:first-child { background: var(--violet); color: #fff; box-shadow: none; }
.ctile-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 2px; background: #2D2A47; color: #fff; font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.ctile:first-child .ctile-num { background: #fff; color: var(--violet); }
.ctile-title { color: var(--brand); font-weight: 700; font-size: 20px; line-height: 1.4; max-width: 18ch; }
.ctile:first-child .ctile-title { font-size: clamp(23px, 3vw, 30px); }
.ctile:first-child .ctile-title { color: #fff; }
.ctile-en { color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: right; }
.ctile:first-child .ctile-en, .ctile:first-child .ctile-meta, .ctile:first-child .txt { color: #E4E0FA; }
.ctile-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; margin-top: auto; padding-top: 10px; }
.ctile-progress { display: flex; align-items: center; gap: 10px; }
.ctile:first-child .bar { background: rgba(255, 255, 255, .18); box-shadow: none; }
.ctile:first-child .bar > span { background: #fff; }
.ctile .go {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--brand); transform: scale(.27); transform-origin: left top;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.ctile:first-child .go { background: #fff; }
.ctile .go svg { width: 18px; height: 18px; color: var(--surface); opacity: 0; transition: opacity .3s; }
.ctile:first-child .go svg { color: var(--violet); }
.ctile:hover .go, .ctile:focus-visible .go { transform: none; }
.ctile:hover .go svg, .ctile:focus-visible .go svg { opacity: 1; }
@media (hover: hover) {
  .ctile:hover { background: #2D2A47; color: #fff; box-shadow: none; }
  .ctile:hover .ctile-title { color: #fff; }
  .ctile:hover .ctile-en, .ctile:hover .ctile-meta, .ctile:hover .txt { color: #E4E0FA; }
  .ctile:hover .ctile-num { background: #fff; color: #2D2A47; }
  .ctile:hover .go { background: #fff; }
  .ctile:hover .go svg { color: #2D2A47; }
  .ctile:hover .bar { background: rgba(255, 255, 255, .18); box-shadow: none; }
  .ctile:hover .bar > span { background: #fff; }
}

.about { display: grid; gap: 10px; margin-top: 28px; }
@media (min-width: 900px) { .about { grid-template-columns: 1fr 1fr; align-items: start; } }
.about .callout { margin: 0; }

/* ---------- التذييل ---------- */
.footer { margin-top: 56px; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { max-width: 1240px; margin: 0 auto; padding: 22px 16px 28px; text-align: center; color: var(--muted); font-size: 15px; }
.footer p { margin: 4px 0; }
.footer strong { color: var(--brand); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; }

.to-top {
  position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 25;
  width: 44px; height: 44px; border-radius: 2px; display: grid; place-items: center;
  background: var(--brand-solid); color: #fff; text-decoration: none;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.to-top.show { opacity: 1; pointer-events: auto; }

@media print {
  .topbar, .sidebar, .scrim, .to-top, .actions, .done-btn, .gl-search, .pager, .footer-links { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
