/* =========================================================================
   Program Twórców EduBe — design system aplikacji.
   Tokeny z brandbooku EduBe (krem + koral, Bricolage Grotesque + Plus Jakarta Sans,
   miękki neo-brutalizm: grube kontury i twarde cienie). Trzy powierzchnie:
   index.html (strona programu), creator.html (panel twórcy), admin.html (panel programu).
   ========================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* --- marka --- */
  --brand: #ff5a3c;         --brand-hover: #ff745b;   --brand-dark: #d8431f;
  --brand-100: #ffe2d3;     --brand-200: #ffd9c6;     --brand-400: #ffb38f;   --brand-900: #a7361b;
  --ink: #2a1206;           --ink-2: #3d2416;         --ink-3: #4a2d1c;
  --cream: #fff5ea;         --paper: #fffaf3;         --white: #ffffff;

  /* --- akcenty --- */
  --yellow: #ffd23f;   --yellow-900: #5a3d00; --yellow-700: #a8720a; --yellow-500: #ffd23f; --yellow-200: #ffeeb0; --yellow-100: #fff8dc;
  --green: #22a36b;    --green-900: #14532d;  --green-700: #167a4f;  --green-500: #22a36b;  --green-200: #cdeedc;  --green-100: #edf8e6;
  --violet: #5b5bd6;   --violet-900: #2a2a6e; --violet-700: #4747b8; --violet-500: #5b5bd6; --violet-200: #dedeff; --violet-100: #f0f0ff;
  --red-900: #6d1a12;  --red-700: #a62019;    --red-500: #d8431f;    --red-200: #ffd0c6;    --red-100: #ffe1dd;
  --brown-700: #6e4a38; --brown-500: #9a5b42; --brown-300: #c9a58f;
  --line: #e5c6b2;      --line-soft: #efdfd0;

  /* aliasy dla nazw używanych w kodzie (lime/pink/purple) */
  --lime-900: var(--green-900); --lime-700: var(--green-700); --lime-500: var(--green-500); --lime-200: var(--green-200); --lime-100: var(--green-100);
  --pink-900: var(--red-900);   --pink-700: var(--red-700);   --pink-500: var(--red-500);   --pink-200: var(--red-200);   --pink-100: var(--red-100);
  --purple-900: var(--violet-900); --purple-700: var(--violet-700); --purple-500: var(--violet-500); --purple-200: var(--violet-200); --purple-100: var(--violet-100);
  --neutral-900: var(--ink); --neutral-700: var(--brown-700); --neutral-500: var(--brown-500); --neutral-400: var(--brown-300); --neutral-200: var(--line-soft); --neutral-100: var(--cream);

  /* --- semantyka --- */
  --fg-1: var(--ink);
  --fg-2: #3b2517;
  --fg-3: var(--brown-700);
  --bg-1: var(--cream);
  --bg-2: var(--white);
  --bg-3: #f3e6d8;
  --bg-inverse: var(--ink);
  --border-subtle: var(--line-soft);
  --border-strong: var(--ink);
  --shadow-card: 0 1px 0 rgba(42,18,6,.05), 0 2px 8px rgba(42,18,6,.06);
  --shadow-hard: 3px 4px 0 var(--ink);
  --shadow-hard-sm: 2px 3px 0 var(--ink);
  --shadow-pop: 0 14px 36px rgba(42,18,6,.16);

  /* --- typografia --- */
  --font-headline: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-accent: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif;

  /* --- kształt --- */
  --r-sm: 10px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* atrybut hidden ma wygrywać z każdym display (np. .shell { display:flex }) */
[hidden] { display: none !important; }

body {
  font: 400 15px/1.5 var(--font-body);
  color: var(--fg-1);
  background: var(--bg-1);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,h2,h3,h4 { font-family: var(--font-headline); letter-spacing: -0.01em; margin: 0; }
.h-page   { font: 800 30px/1.15 var(--font-headline); letter-spacing: -0.02em; }
.h-sub    { font: 400 15px/1.5 var(--font-body); color: var(--fg-3); }
.h-card   { font: 700 18px/1.25 var(--font-headline); }
.label {
  font: 700 11.5px/1.4 var(--font-body);
  text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3);
}
.big-num { font: 800 44px/1.1 var(--font-accent); letter-spacing: -0.02em; }
a { color: var(--fg-1); }

/* ========================= Szkielet aplikacji ========================= */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px; flex: 0 0 236px;
  background: var(--bg-inverse); color: var(--cream);
  display: flex; flex-direction: column;
  padding: 24px 14px; gap: 4px;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; padding: 4px 10px 20px; }
.sidebar .brand img { height: 36px; }
.sidebar .brand .brand-name { font: 800 19px/1 var(--font-headline); color: var(--cream); }
.sidebar .brand .brand-sub { font: 600 10.5px/1.3 var(--font-body); color: var(--brown-300); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 3px; }

.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px; border-radius: var(--r-pill);
  color: #e9d6c6; font: 600 14.5px/1 var(--font-body);
  text-decoration: none; cursor: pointer; border: 0; background: transparent;
  transition: background-color 120ms ease, color 120ms ease;
}
.nav-item svg { width: 18px; height: 18px; stroke-width: 2; flex: 0 0 18px; }
.nav-item:hover { background: var(--ink-2); color: var(--white); }
.nav-item.active { background: var(--brand); color: var(--ink); font-weight: 700; }
.nav-item .nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: var(--r-pill); background: var(--yellow); color: var(--ink);
  font: 800 11.5px/20px var(--font-headline); text-align: center;
}
.nav-item.active .nav-badge { background: var(--ink); color: var(--yellow); }

.sidebar .sidebar-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--ink-3); }
.sidebar .user { display: flex; gap: 10px; align-items: center; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: 0 0 34px;
  background: var(--violet-200); color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font: 800 13px/1 var(--font-headline);
}
.avatar.av-brand, .avatar.av-pink { background: var(--brand); }
.avatar.av-yellow { background: var(--yellow); }
.avatar.av-violet, .avatar.av-purple { background: var(--violet-200); }
.avatar.av-green, .avatar.av-lime { background: var(--green-200); }
.sidebar .user .u-name { font: 700 13.5px/1.2 var(--font-body); color: var(--cream); }
.sidebar .user > div { min-width: 0; }
.sidebar .user .u-name { overflow-wrap: anywhere; }
.sidebar .user .u-role { font: 400 11.5px/1.2 var(--font-body); color: var(--brown-300); overflow-wrap: anywhere; }

.main { flex: 1; min-width: 0; padding: 32px 36px 80px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head .ph-text { flex: 1; min-width: 240px; }
.page-head .ph-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ========================= Przyciski ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 22px; height: 46px; border-radius: var(--r-pill);
  background: var(--brand); color: var(--ink);
  font: 700 15px/1 var(--font-body); letter-spacing: -0.01em;
  border: 2px solid var(--ink); box-shadow: var(--shadow-hard);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { background: var(--brand-hover); transform: translate(-1px, -2px); box-shadow: 5px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.btn svg { width: 17px; height: 17px; stroke-width: 2.2; }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--ink-2); }
.btn--ghost { background: var(--white); color: var(--ink); box-shadow: var(--shadow-hard-sm); }
.btn--ghost:hover { background: var(--brand-100); }
.btn--sm { height: 36px; padding: 0 15px; font-size: 13.5px; box-shadow: var(--shadow-hard-sm); }
.btn--sm:hover { box-shadow: 3px 4px 0 var(--ink); }
.btn--xs { height: 30px; padding: 0 12px; font-size: 12.5px; border-width: 1.5px; box-shadow: 2px 2px 0 var(--ink); }
.btn--xs:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; pointer-events: none; }
.btn--link { background: none; border: 0; box-shadow: none; height: auto; padding: 0; color: var(--fg-2); text-decoration: underline; font-weight: 600; }
.btn--link:hover { background: none; transform: none; box-shadow: none; color: var(--brand-dark); }

/* ========================= Karty / chipy ========================= */
.card {
  background: var(--bg-2); border-radius: 20px; padding: 24px;
  border: 1.5px solid var(--line); box-shadow: var(--shadow-card);
}
.card--flat { box-shadow: none; }
.card--hard { border: 2px solid var(--ink); box-shadow: 5px 6px 0 var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 11px; border-radius: var(--r-pill);
  font: 700 12px/1 var(--font-body); white-space: nowrap;
}
.chip--yellow { background: var(--yellow-200); color: var(--yellow-900); }
.chip--purple, .chip--violet { background: var(--violet-200); color: var(--violet-900); }
.chip--pink, .chip--red { background: var(--red-200); color: var(--red-900); }
.chip--lime, .chip--green { background: var(--green-200); color: var(--green-900); }
.chip--brand { background: var(--brand-100); color: var(--brand-900); }
.chip--neutral { background: var(--bg-3); color: var(--fg-3); }
.chip--dark { background: var(--ink); color: var(--cream); }
.chip--outline { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--fg-3); }

/* ========================= Kafle KPI ========================= */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi { border-radius: 20px; padding: 20px 22px; background: var(--bg-2); border: 1.5px solid var(--line); position: relative; overflow: hidden; }
.kpi .kpi-value { font: 800 40px/1.1 var(--font-accent); letter-spacing: -0.02em; margin: 6px 0 2px; }
.kpi .kpi-note { font: 400 12.5px/1.4 var(--font-body); color: var(--fg-3); }
.kpi--brand, .kpi--yellow { background: var(--brand); border-color: var(--ink); box-shadow: 4px 5px 0 var(--ink); }
.kpi--brand .label, .kpi--brand .kpi-note, .kpi--yellow .label, .kpi--yellow .kpi-note { color: rgba(42,18,6,0.7); }
.kpi--dark { background: var(--ink); color: var(--cream); }
.kpi--dark .label, .kpi--dark .kpi-note { color: var(--brown-300); }
.kpi--purple, .kpi--violet { background: var(--violet-200); }
.kpi--lime, .kpi--green { background: var(--green-200); }

/* ========================= Tabele ========================= */
.table-wrap { background: var(--bg-2); border-radius: 20px; border: 1.5px solid var(--line); overflow: hidden; }
table.ugc { width: 100%; border-collapse: collapse; }
table.ugc th {
  text-align: left; padding: 13px 18px;
  font: 700 11px/1.3 var(--font-body); text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-3);
  border-bottom: 1.5px solid var(--line); white-space: nowrap; background: var(--paper);
}
table.ugc td { padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font: 400 14px/1.45 var(--font-body); vertical-align: middle; }
table.ugc tr:last-child td { border-bottom: 0; }

/* ========================= Szuflada ========================= */
.overlay { position: fixed; inset: 0; background: rgba(42,18,6,0.5); z-index: 40; opacity: 0; pointer-events: none; transition: opacity 180ms ease; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 96vw);
  background: var(--bg-1); z-index: 50; box-shadow: var(--shadow-pop); border-left: 2px solid var(--ink);
  transform: translateX(102%); transition: transform 220ms ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { padding: 24px 28px 0; }
.drawer-body { padding: 18px 28px 40px; overflow-y: auto; flex: 1; }
.drawer-close {
  position: absolute; top: 18px; right: 20px;
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--ink); cursor: pointer;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-hard-sm);
  display: inline-flex; align-items: center; justify-content: center;
}
.drawer-close:hover { background: var(--brand-100); }
.drawer-close svg { width: 17px; height: 17px; stroke-width: 2.4; }

/* ========================= Zakładki ========================= */
.tabs { display: flex; gap: 6px; margin: 18px 0 0; flex-wrap: wrap; }
.tab {
  height: 36px; padding: 0 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line);
  background: var(--white); color: var(--fg-3); cursor: pointer; font: 600 13.5px/1 var(--font-body);
}
.tab:hover { color: var(--fg-1); border-color: var(--ink); }
.tab.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ========================= Oś czasu ========================= */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 14px; padding: 0 0 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .t-dot { width: 16px; height: 16px; flex: 0 0 16px; border-radius: 50%; background: var(--bg-3); margin-top: 2px; border: 3px solid var(--bg-1); }
.timeline li.t-done .t-dot { background: var(--green); }
.timeline li.t-now .t-dot { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-200); }
.timeline .t-text { font: 400 13.5px/1.45 var(--font-body); }

/* ========================= Formularze ========================= */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; }
.input, .select, textarea.input {
  width: 100%; height: 46px; padding: 0 16px;
  border-radius: var(--r-md); border: 1.5px solid var(--brown-300);
  background: var(--bg-2); color: var(--fg-1);
  font: 400 14.5px/1.4 var(--font-body);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
textarea.input { height: auto; padding: 12px 16px; resize: vertical; }
.input:focus, .select:focus, textarea.input:focus { outline: none; border-color: var(--ink); box-shadow: 2px 3px 0 var(--ink); }
.input.invalid { border-color: var(--red-700); background: var(--red-100); }
.field .err { display: none; font: 500 12px/1.4 var(--font-body); color: var(--red-700); margin-top: 4px; }
.field.show-err .err { display: block; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font: 400 14px/1.4 var(--font-body); }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }

.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg .seg-opt {
  height: 40px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line); background: var(--bg-2); color: var(--fg-2); cursor: pointer;
  font: 600 13.5px/1 var(--font-body);
}
.seg .seg-opt:hover { border-color: var(--ink); }
.seg .seg-opt.sel { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ========================= Modal ========================= */
.modal-wrap {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: flex-start; justify-content: center; overflow-y: auto;
  background: rgba(42,18,6,0.5); padding: 5vh 16px 40px;
}
.modal-wrap.open { display: flex; }
.modal {
  background: var(--bg-1); border-radius: var(--r-lg); border: 2px solid var(--ink); box-shadow: 6px 7px 0 var(--ink);
  width: min(680px, 100%); padding: 28px 30px; position: relative;
  animation: modal-in 220ms ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ========================= Toast ========================= */
.toast-zone { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: var(--ink); color: var(--cream);
  border-radius: var(--r-pill); padding: 12px 22px;
  font: 600 14px/1.3 var(--font-body); box-shadow: var(--shadow-pop);
  display: flex; align-items: center; gap: 10px; max-width: min(560px, 92vw);
  animation: toast-in 220ms ease;
}
.toast .t-ok { width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--white); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; }
.toast .t-ok svg { width: 12px; height: 12px; stroke-width: 3; }
.toast--error { background: var(--red-700); color: var(--white); }
.toast--error .t-ok { background: var(--white); color: var(--red-700); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ========================= Ekran logowania ========================= */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.auth {
  width: min(440px, 100%); background: var(--white); border: 2px solid var(--ink); border-radius: var(--r-lg);
  box-shadow: 6px 7px 0 var(--ink); padding: 30px 32px;
}
.auth .auth-logo { height: 34px; margin-bottom: 18px; }
.auth h1 { font: 800 26px/1.15 var(--font-headline); letter-spacing: -0.02em; margin-bottom: 6px; }
.auth .auth-sub { font: 400 14px/1.5 var(--font-body); color: var(--fg-3); margin-bottom: 20px; }
.auth .auth-foot { margin-top: 16px; font: 400 13px/1.5 var(--font-body); color: var(--fg-3); }
.auth .auth-foot a { color: var(--fg-2); }
.auth .msg { border-radius: var(--r-md); padding: 12px 14px; font: 500 13.5px/1.5 var(--font-body); margin-bottom: 14px; }
.auth .msg--error { background: var(--red-100); color: var(--red-900); border: 1.5px solid var(--red-200); }
.auth .msg--ok { background: var(--green-100); color: var(--green-900); border: 1.5px solid var(--green-200); }

/* ========================= Drobiazgi ========================= */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.muted { color: var(--fg-3); }
.small { font: 400 12.5px/1.5 var(--font-body); }
.bold { font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .grid-2, .frow { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.empty { text-align: center; padding: 44px 20px; color: var(--fg-3); border: 2px dashed var(--line); border-radius: 20px; font: 400 14px/1.5 var(--font-body); }
.section-note {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--violet-100); color: var(--violet-900);
  border-radius: var(--r-md); padding: 10px 16px; font: 500 13px/1.45 var(--font-body);
}
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(42,18,6,0.25); border-top-color: var(--ink); animation: spin 700ms linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--brown-300); border-radius: var(--r-pill); }
::-webkit-scrollbar-track { background: transparent; }

/* =========================================================================
   Dokumenty prawne — Markdown → HTML (doc-render.js)
   ========================================================================= */
.doc-scroll, .doc-view { font: 400 13.5px/1.7 var(--font-body); color: var(--fg-1); }
.doc-scroll { max-height: 380px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg-2); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 18px 22px; scroll-behavior: smooth; }
.doc-scroll:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.doc-view { max-height: 62vh; min-height: 220px; overflow-y: auto; padding: 20px 24px; }
.doc-view--notice { background: var(--yellow-100); max-height: 30vh; }
.doc-scroll h2, .doc-view h2 { font: 800 17px/1.3 var(--font-headline); margin: 22px 0 8px; }
.doc-scroll h3, .doc-view h3 { font: 700 15px/1.35 var(--font-headline); margin: 18px 0 6px; }
.doc-scroll h4, .doc-view h4, .doc-scroll h5, .doc-view h5 { font: 700 13.5px/1.4 var(--font-body); margin: 14px 0 5px; }
.doc-scroll > :first-child, .doc-view > :first-child { margin-top: 0; }
.doc-scroll p, .doc-view p { margin: 0 0 10px; }
.doc-scroll ul, .doc-view ul, .doc-scroll ol, .doc-view ol { margin: 0 0 10px; padding-left: 22px; }
.doc-scroll li, .doc-view li { margin-bottom: 5px; }
.doc-scroll code, .doc-view code { font: 500 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--yellow-100); border-radius: 4px; padding: 1px 5px; }
.doc-scroll a, .doc-view a { color: inherit; text-decoration: underline; }
.doc-hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
.doc-quote { margin: 0 0 12px; padding: 10px 16px; border-left: 3px solid var(--brand); background: var(--brand-100); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.doc-quote > :last-child { margin-bottom: 0; }
.doc-scroll .table-wrap, .doc-view .table-wrap { box-shadow: none; border: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; border-radius: var(--r-sm); }
.doc-scroll table.ugc th, .doc-view table.ugc th { padding: 8px 12px; font-size: 11px; }
.doc-scroll table.ugc td, .doc-view table.ugc td { padding: 8px 12px; font-size: 12.5px; line-height: 1.5; vertical-align: top; }
.doc-end { margin-top: 18px; padding-top: 12px; border-top: 1px dashed var(--line); font: 600 12px/1.4 var(--font-body); color: var(--fg-3); text-align: center; }
