/* onenightbeforekiit.in
   Colour tokens first (light, then dark), then one section per part of the page. */

:root {
  --bg: #FFFFFF;
  --subtle: #F6F7F9;
  --canvas: #ECEEF1;
  --fg: #1B1F24;
  --muted: #59636E;
  --faint: #8B949E;
  --border: #D8DDE3;
  --border-muted: #E7EAEE;
  --accent: #17694A;
  --accent-hover: #10553B;
  --accent-soft: #E8F3EE;
  --accent-fg: #FFFFFF;
  --link: #17694A;
  --focus: #2F8A64;
  --felt: #1E5A43;
  --felt-deep: #164634;
  --wood-a: #6E4527;
  --wood-b: #93603A;
  --brass: #D2A64A;
  --stamp: #B4232C;
  --row-hover: #F6F8FA;
  --shadow-sm: 0 1px 0 rgba(27, 31, 36, 0.04);
  --shadow-md: 0 1px 3px rgba(27, 31, 36, 0.08), 0 8px 24px -12px rgba(27, 31, 36, 0.18);
  --shadow-page: 0 1px 2px rgba(27, 31, 36, 0.08), 0 6px 20px -6px rgba(27, 31, 36, 0.18);
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --type: "Courier Prime", "Courier New", Courier, monospace;
  --radius: 8px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1114; --subtle: #151A1F; --canvas: #0A0C0F; --fg: #E6E9ED; --muted: #9AA4AF; --faint: #6E7781;
    --border: #2C333B; --border-muted: #21272E; --accent: #3FB37F; --accent-hover: #5CC795; --accent-soft: #14281F;
    --accent-fg: #06130D; --link: #5CC795; --focus: #5CC795; --felt: #184A37; --felt-deep: #10342A;
    --wood-a: #4A2E1A; --wood-b: #6B4528; --row-hover: #161B21;
    --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 28px -12px rgba(0, 0, 0, 0.7);
    --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px -8px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1114; --subtle: #151A1F; --canvas: #0A0C0F; --fg: #E6E9ED; --muted: #9AA4AF; --faint: #6E7781;
  --border: #2C333B; --border-muted: #21272E; --accent: #3FB37F; --accent-hover: #5CC795; --accent-soft: #14281F;
  --accent-fg: #06130D; --link: #5CC795; --focus: #5CC795; --felt: #184A37; --felt-deep: #10342A;
  --wood-a: #4A2E1A; --wood-b: #6B4528; --row-hover: #161B21;
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.3); --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4), 0 10px 28px -12px rgba(0, 0, 0, 0.7);
  --shadow-page: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--fg);
  font: 400 15px/1.5 var(--ui);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s, color 0.25s;
}
main { flex: 1; outline: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .container { padding: 0 16px; } }

.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--accent); color: var(--accent-fg); padding: 8px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-weight: 650; font-size: 1.02rem; letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
.logo svg { width: 30px; height: 30px; transition: transform 0.35s var(--ease); }
.logo:hover svg { transform: rotate(-6deg) scale(1.04); }
.logo b { color: var(--accent); font-weight: 650; }
.header-search { flex: 1; max-width: 420px; margin-left: 12px; }
.header-search .searchbox { height: 36px; box-shadow: none; }
.header-search input { font-size: 0.93rem; }
.header-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px;
  border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s;
}
.icon-btn:hover { background: var(--subtle); color: var(--fg); }
.icon-btn:active { transform: translateY(1px); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#theme-toggle svg { transition: transform 0.5s var(--ease); }
#theme-toggle:hover svg { transform: rotate(-20deg); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}
@media (max-width: 640px) { .header-search { display: none; } }

/* ---------- Buttons, labels, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 16px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--subtle); color: var(--fg);
  font-weight: 550; font-size: 0.92rem; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn:hover { background: var(--border-muted); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) inset; }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--muted); background: var(--bg);
  font: 500 0.75rem/1 var(--mono); letter-spacing: 0.01em; white-space: nowrap; vertical-align: 2px;
}
.badge {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 600; white-space: nowrap; vertical-align: 2px;
  color: var(--b-fg, var(--muted)); background: var(--b-bg, var(--subtle)); border: 1px solid var(--b-bd, var(--border-muted));
}
.b-mid { --b-fg: #0B5CAD; --b-bg: #EAF3FD; --b-bd: #C7DEF7; }
.b-end { --b-fg: #17694A; --b-bg: #E8F3EE; --b-bd: #C4E2D3; }
.b-annual { --b-fg: #5B4A9E; --b-bg: #F0EDFB; --b-bd: #D9D1F4; }
.b-backlog { --b-fg: #9A5B00; --b-bg: #FFF4E0; --b-bd: #F5DDB0; }
.b-supp { --b-fg: #9C2C5B; --b-bg: #FCEDF3; --b-bd: #F2CCDC; }
.b-remid { --b-fg: #4E5D6C; --b-bg: #EEF1F4; --b-bd: #D9DEE4; }
:root[data-theme="dark"] .b-mid { --b-fg: #8DC2F5; --b-bg: #0F2236; --b-bd: #1D3A57; }
:root[data-theme="dark"] .b-end { --b-fg: #7FD3A8; --b-bg: #10261C; --b-bd: #1E4231; }
:root[data-theme="dark"] .b-annual { --b-fg: #B9A9F2; --b-bg: #1D1A33; --b-bd: #34305A; }
:root[data-theme="dark"] .b-backlog { --b-fg: #F2C27A; --b-bg: #2A1E0B; --b-bd: #4A3615; }
:root[data-theme="dark"] .b-supp { --b-fg: #F0A3C2; --b-bg: #2C1220; --b-bd: #4D2238; }
:root[data-theme="dark"] .b-remid { --b-fg: #AEB9C4; --b-bg: #1A1F25; --b-bd: #2C333B; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .b-mid { --b-fg: #8DC2F5; --b-bg: #0F2236; --b-bd: #1D3A57; }
  :root:not([data-theme="light"]) .b-end { --b-fg: #7FD3A8; --b-bg: #10261C; --b-bd: #1E4231; }
  :root:not([data-theme="light"]) .b-annual { --b-fg: #B9A9F2; --b-bg: #1D1A33; --b-bd: #34305A; }
  :root:not([data-theme="light"]) .b-backlog { --b-fg: #F2C27A; --b-bg: #2A1E0B; --b-bd: #4A3615; }
  :root:not([data-theme="light"]) .b-supp { --b-fg: #F0A3C2; --b-bg: #2C1220; --b-bd: #4D2238; }
  :root:not([data-theme="light"]) .b-remid { --b-fg: #AEB9C4; --b-bg: #1A1F25; --b-bd: #2C333B; }
}
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--faint)); flex: none; vertical-align: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06) inset; }

/* ---------- Search box ---------- */
.searchbox {
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 6px 0 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.searchbox:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.searchbox > svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 1rem; }
.searchbox input::placeholder { color: var(--faint); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.kbd { font: 500 0.72rem/1 var(--mono); color: var(--muted); border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: var(--subtle); }
.searchbox .btn { height: 36px; }
@media (hover: none) { .kbd { display: none; } }

/* ---------- Hero ---------- */
.hero { background: var(--subtle); border-bottom: 1px solid var(--border); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 480px; gap: 56px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { margin: 0 0 12px; font-size: clamp(1.9rem, 3.6vw, 2.6rem); line-height: 1.15; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; max-width: 16ch; }
.lead { margin: 0 0 24px; color: var(--muted); font-size: 1.05rem; max-width: 46ch; }
.lead strong { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.examples { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center; }
.examples button {
  border: 1px solid var(--border); background: var(--bg); border-radius: 999px; padding: 3px 10px; font-size: 0.85rem; color: var(--fg);
  transition: border-color 0.15s, color 0.15s, transform 0.15s var(--ease);
}
.examples button:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.hero-copy > * { animation: rise 0.6s var(--ease) backwards; }
.hero-copy > :nth-child(2) { animation-delay: 0.06s; }
.hero-copy > :nth-child(3) { animation-delay: 0.12s; }
.hero-copy > :nth-child(4) { animation-delay: 0.18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
  .board-wrap { max-width: 520px; }
}

/* ---------- The notice board ---------- */
.board-wrap { position: relative; }
.board {
  position: relative; padding: 12px; border-radius: 10px;
  background: linear-gradient(135deg, var(--wood-b), var(--wood-a) 55%, var(--wood-b));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12), 0 24px 48px -24px rgba(30, 20, 10, 0.55);
  animation: rise 0.7s var(--ease) backwards;
}
.felt {
  position: relative; border-radius: 3px; padding: 22px 20px 24px;
  background-color: var(--felt);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.08), transparent 60%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(0, 0, 0, 0.25);
  display: grid; grid-template-columns: 1fr 1fr; gap: 22px 18px;
}
.notice-head {
  grid-column: 1 / -1; justify-self: center; position: relative;
  background: #FBFBF7; color: #23262A; padding: 10px 18px 9px; border-radius: 1px;
  font: 700 0.82rem/1.3 var(--type); letter-spacing: 0.14em; text-transform: uppercase; text-align: center;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 6px 12px -6px rgba(0, 0, 0, 0.5);
  transform: rotate(-0.6deg);
  animation: pin-in 0.7s var(--ease) 0.15s backwards;
}
.notice-head small { display: block; font-weight: 400; letter-spacing: 0.02em; text-transform: none; font-size: 0.8rem; color: #555B61; margin-top: 2px; }
.slip {
  --r: 0deg;
  position: relative; display: flex; flex-direction: column; gap: 3px;
  min-height: 116px; padding: 16px 14px 12px;
  background: #FFFFFF; color: #23262A; border-radius: 1px;
  font: 400 0.82rem/1.35 var(--type);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.18), 0 8px 14px -8px rgba(0, 0, 0, 0.55);
  transform: rotate(var(--r));
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  animation: pin-in 0.75s var(--ease) var(--d, 0s) backwards;
}
.slip:hover { text-decoration: none; transform: translateY(-4px) rotate(calc(var(--r) * 0.3)); box-shadow: 0 2px 2px rgba(0, 0, 0, 0.14), 0 18px 26px -12px rgba(0, 0, 0, 0.6); }
.slip:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.slip-title { font-weight: 700; font-size: 0.92rem; line-height: 1.25; color: #15181B; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slip.stamped .slip-title { padding-right: 50px; }
.slip-meta { color: #4F565D; }
.slip-foot { margin-top: auto; padding-top: 6px; border-top: 1px dashed #C9CDD1; color: #4F565D; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 8px; }
.pin {
  position: absolute; top: -6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #FFF3C8 0 12%, var(--brass) 38%, #8C6A22 100%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.45);
  animation: pin-press 0.35s var(--ease) calc(var(--d, 0s) + 0.5s) backwards;
}
.notice-head .pin { --d: 0.15s; }
.stamp {
  position: absolute; right: 8px; top: 14px;
  padding: 2px 6px; border: 2px solid var(--stamp); border-radius: 3px; color: var(--stamp);
  font: 700 0.72rem/1.2 var(--type); letter-spacing: 0.12em; text-transform: uppercase;
  transform: rotate(-12deg); opacity: 0.85; mix-blend-mode: multiply;
  animation: stamp 0.4s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--d, 0s) + 0.75s) backwards;
}
@keyframes pin-in {
  0% { opacity: 0; transform: translateY(-22px) rotate(calc(var(--r, 0deg) - 7deg)) scale(1.04); }
  65% { opacity: 1; transform: translateY(2px) rotate(var(--r, 0deg)) scale(1); }
  100% { transform: translateY(0) rotate(var(--r, 0deg)); }
}
@keyframes pin-press { 0% { transform: scale(1.9) translateY(-6px); opacity: 0; box-shadow: 0 10px 8px rgba(0, 0, 0, 0.2); } 100% { transform: none; opacity: 1; } }
@keyframes stamp { 0% { opacity: 0; transform: scale(2) rotate(-20deg); } 100% { opacity: 0.85; transform: scale(1) rotate(-12deg); } }
@media (max-width: 640px) {
  .felt { gap: 18px 12px; padding: 18px 12px 18px; }
  .slip { min-height: 104px; padding: 14px 10px 10px; font-size: 0.76rem; }
  .slip-title { font-size: 0.84rem; }
  .slip.stamped .slip-title { padding-right: 0; padding-top: 18px; }
  .stamp { top: 8px; right: 6px; font-size: 0.64rem; }
  .slip-foot { flex-direction: column; }
}

/* ---------- Sections and boxes ---------- */
.section { margin-top: 40px; }
.section h2 { margin: 0; font-size: 1.15rem; font-weight: 650; letter-spacing: -0.01em; }
.box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); overflow: hidden; }
.box-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px; background: var(--subtle); border-bottom: 1px solid var(--border);
}
.box-head h2 { font-size: 0.98rem; font-weight: 650; margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 999px; background: var(--border-muted); color: var(--fg); font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: 1px; }

/* Folders: schools, years, semesters */
.nodes { list-style: none; margin: 0; padding: 0; }
.nodes li + li { border-top: 1px solid var(--border-muted); }
.nodes.two { display: grid; grid-template-columns: 1fr 1fr; }
.nodes.two li { border-top: 0; border-bottom: 1px solid var(--border-muted); }
.nodes.two li:nth-child(odd) { border-right: 1px solid var(--border-muted); }
.nodes.two li:nth-last-child(-n + 2):nth-child(odd), .nodes.two li:last-child { border-bottom: 0; }
.node { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: var(--fg); transition: background 0.15s; }
.node:hover { background: var(--row-hover); text-decoration: none; }
.node:hover .name { color: var(--link); }
.node.enter { animation: rise 0.4s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 22ms); }
.node .name { flex: 1; min-width: 0; font-weight: 600; transition: color 0.15s; }
.node .sub { display: block; font-weight: 400; color: var(--muted); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node .n { color: var(--muted); font-size: 0.85rem; font-variant-numeric: tabular-nums; }
.folder { width: 20px; height: 20px; fill: color-mix(in srgb, var(--accent) 14%, transparent); stroke: var(--accent); stroke-width: 1.6; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.node:hover .folder { transform: translateY(-1px) rotate(-4deg); }
.chev { width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s var(--ease), stroke 0.2s; }
a:hover > .chev { transform: translateX(3px); stroke: var(--accent); }
@media (max-width: 760px) {
  .nodes.two { grid-template-columns: 1fr; }
  .nodes.two li:nth-child(odd) { border-right: 0; }
  .nodes.two li:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--border-muted); }
}
.group-head {
  display: flex; justify-content: space-between; align-items: center; padding: 8px 16px;
  background: var(--subtle); color: var(--muted); font-size: 0.78rem; font-weight: 650; letter-spacing: 0.02em;
  border-top: 1px solid var(--border-muted);
}
.results > .group-head:first-child { border-top: 0; }
.group-head span { font-weight: 500; font-variant-numeric: tabular-nums; }

/* Inside a folder the hero shrinks to a header: trail, title, counts, scoped search. */
.hero.compact .hero-grid { grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 26px; gap: 0; }
.hero.compact #board-slot { display: none; }
.hero.compact h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); max-width: none; margin-bottom: 6px; }
.hero.compact .lead { margin-bottom: 16px; font-size: 0.95rem; }
.hero.compact .searchbox { max-width: 640px; }
.hero.compact .hero-copy > * { animation: none; }
.hero.compact #hero-title { animation: rise 0.35s var(--ease); }
.place { margin-bottom: 10px; }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.hero.compact .title-row h1 { margin-bottom: 6px; }
.share-btn { height: 32px; padding: 0 12px; font-size: 0.85rem; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); color: var(--accent);
  font-size: 0.86rem; font-weight: 600; transition: background 0.15s;
}
.chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.chip:hover { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.inside { margin-top: 16px; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); animation: rise 0.3s var(--ease); }
.inside .box-head { background: var(--accent-soft); }
.snippet { margin: 6px 0 2px; color: var(--fg); font-size: 0.88rem; line-height: 1.5; max-width: 90ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.b-page { --b-fg: var(--accent); --b-bg: var(--accent-soft); --b-bd: color-mix(in srgb, var(--accent) 30%, transparent); }
.rail-foot { padding: 10px 14px; border-top: 1px solid var(--border-muted); font-size: 0.85rem; font-weight: 550; }
.crumbs svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.board.still, .slip.still, .slip.still .pin, .slip.still .stamp { animation: none; }

/* Filters toolbar */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.select {
  position: relative; display: inline-flex; align-items: center; height: 32px;
  border: 1px solid var(--border); border-radius: 6px; background: var(--subtle);
  font-size: 0.86rem; transition: border-color 0.15s, background 0.15s;
}
.select:hover { background: var(--border-muted); }
.select .sl { padding-left: 10px; color: var(--muted); pointer-events: none; }
.select select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; height: 100%;
  padding: 0 28px 0 6px; font-weight: 600; max-width: 150px; text-overflow: ellipsis; cursor: pointer; outline: none;
}
.select::after { content: ""; position: absolute; right: 11px; top: 50%; width: 6px; height: 6px; margin-top: -4px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.select.on { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: var(--accent-soft); }
.select.on select { color: var(--accent); }
.select:focus-within { outline: 2px solid var(--focus); outline-offset: 1px; }
.link-btn { border: 0; background: none; color: var(--link); font-size: 0.86rem; font-weight: 550; padding: 6px 4px; display: inline-flex; align-items: center; gap: 4px; }
.link-btn:hover { text-decoration: underline; }
.link-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
@media (max-width: 640px) {
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .select { flex: none; }
}
.sort { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.86rem; }
.sort select { border: 1px solid var(--border); border-radius: 6px; background: var(--bg); height: 28px; padding: 0 6px; font-weight: 550; color: var(--fg); }

/* Results */
.results { list-style: none; margin: 0; padding: 0; }
.results > li + li { border-top: 1px solid var(--border-muted); }
.row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; color: var(--fg); transition: background 0.15s; }
.row:hover { background: var(--row-hover); text-decoration: none; }
.row:hover .title { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.row-main { flex: 1; min-width: 0; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.title { font-weight: 600; font-size: 1rem; }
.row-meta { margin-top: 4px; color: var(--muted); font-size: 0.85rem; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.row-meta .sep { color: var(--faint); }
.subjects { margin-top: 4px; color: var(--muted); font-size: 0.82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-side { flex: none; text-align: right; font-size: 0.85rem; color: var(--muted); display: flex; align-items: center; gap: 14px; }
.row-side .when { color: var(--fg); font-weight: 550; font-variant-numeric: tabular-nums; }
.row-side .pp { font-size: 0.8rem; }
.row.enter { animation: rise 0.45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
mark { background: color-mix(in srgb, #F5D547 55%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
.ad-row { padding: 14px 16px; background: var(--subtle); }
.ad-row .ad { margin: 0 auto; }
@media (max-width: 640px) {
  .row { align-items: flex-start; padding: 12px 14px; gap: 10px; }
  .row-side { flex-direction: column; align-items: flex-end; gap: 2px; }
  .row-side .chev { display: none; }
}
.more { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-top: 1px solid var(--border-muted); background: var(--subtle); }
.more .link-btn { color: var(--muted); text-decoration: none; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
.nodes .ad-row { grid-column: 1 / -1; border-right: 0 !important; }
.nodes.two .ad-row { border-bottom: 1px solid var(--border-muted); }

/* Empty / loading */
.empty { padding: 48px 24px; text-align: center; }
.empty svg { width: 44px; height: 44px; margin: 0 auto 12px; fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.empty h3 { margin: 0 0 6px; font-size: 1.1rem; }
.empty p { margin: 0 auto 16px; color: var(--muted); max-width: 46ch; }
.skeleton li { height: 72px; padding: 16px; }
.skeleton li::before, .skeleton li::after { content: ""; display: block; height: 12px; border-radius: 4px; background: var(--border-muted); width: min(380px, 60%); animation: breathe 1.3s ease-in-out infinite; }
.skeleton li::after { margin-top: 10px; width: min(240px, 40%); }
@keyframes breathe { 50% { opacity: 0.5; } }

/* Ads: quiet, labelled, fixed size */
.ad {
  position: relative; display: grid; place-items: center;
  width: 100%; max-width: 728px; height: 90px; margin: 32px auto 0;
  border: 1px solid var(--border-muted); border-radius: 6px; background: var(--subtle);
  color: var(--faint); font-size: 0.72rem;
}
.ad::before { content: "Advertisement"; position: absolute; top: 5px; left: 8px; font-size: 0.66rem; letter-spacing: 0.04em; color: var(--faint); }
.ad-rect { max-width: 300px; height: 250px; margin: 0; }
@media (max-width: 760px) { .ad { max-width: 320px; height: 100px; } }

/* ---------- Viewer ---------- */
.viewer-mode .site-footer { margin-top: 0; }
.paper-head { border-bottom: 1px solid var(--border); background: var(--bg); }
.paper-head .container { padding-top: 18px; padding-bottom: 16px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { color: var(--link); }
.crumbs .sep { color: var(--faint); }
.paper-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.paper-title h1 { margin: 0; font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.25; font-weight: 650; letter-spacing: -0.015em; }
.paper-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.paper-head { animation: rise 0.4s var(--ease) backwards; }

.toolbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--border); }
.toolbar-inner { display: flex; align-items: center; gap: 10px; height: 52px; }
.tb-title { flex: 1; min-width: 0; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px); transition: opacity 0.2s, transform 0.25s var(--ease); }
.toolbar.stuck .tb-title { opacity: 1; transform: none; }
.group { display: inline-flex; align-items: stretch; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); overflow: hidden; height: 32px; }
.group > * + * { border-left: 1px solid var(--border); }
.group button {
  display: inline-grid; place-items: center; min-width: 32px; padding: 0 6px; border: 0; background: transparent; color: var(--fg);
  transition: background 0.15s;
}
.group button:hover:not(:disabled) { background: var(--border-muted); }
.group button:disabled { color: var(--faint); cursor: default; }
.group button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); }
.group svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.group .zoomval { min-width: 54px; font-size: 0.8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pageno { display: inline-flex; align-items: center; gap: 6px; padding: 0 8px; font-size: 0.82rem; color: var(--muted); background: var(--bg); }
.pageno input { width: 2.6em; height: 22px; border: 1px solid var(--border); border-radius: 4px; background: var(--bg); text-align: center; font-weight: 600; font-size: 0.82rem; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pageno input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.back-btn { flex: none; }
@media (max-width: 900px) { .wide { display: none !important; } }
@media (max-width: 520px) { .tb-title { display: none; } .toolbar-inner { justify-content: space-between; } }

.findbar { display: none; border-top: 1px solid var(--border-muted); }
.findbar.open { display: block; animation: rise 0.25s var(--ease); }
.findbar-inner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.findbar .searchbox { height: 34px; width: min(320px, 100%); padding: 0 10px; box-shadow: none; }
.findbar .searchbox input { font-size: 0.9rem; }
.find-hits { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 0.85rem; }
.find-hits button { height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.8rem; font-weight: 600; }
.find-hits button:hover { border-color: var(--accent); color: var(--accent); }

.reader { background: var(--canvas); flex: 1; }
.reader-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; padding-top: 28px; padding-bottom: 48px; align-items: start; }
.reader-grid.wide-sheets { grid-template-columns: minmax(0, 1fr); }
.reader-grid.wide-sheets .rail { display: none; }
@media (max-width: 1100px) { .reader-grid { grid-template-columns: minmax(0, 1fr); } }
.sheets-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.sheets { width: var(--sheet-w, 820px); margin: 0 auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.sheet { margin: 0 0 22px; }
.sheet-paper { position: relative; aspect-ratio: 1536 / 2176; background: #fff; border-radius: 2px; box-shadow: var(--shadow-page); overflow: hidden; transition: background 0.3s; }
.sheet canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.35s ease, filter 0.3s; }
.sheet[data-status="drawn"] canvas { opacity: 1; }
.night .sheet-paper { background: #1C1C1C; }
.night .sheet canvas { filter: invert(0.88); }
.sheet-state { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 12px; color: #6B7480; font-size: 0.88rem; text-align: center; padding: 16px; }
.sheet-state.loading::before { content: ""; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #DCE0E5; border-top-color: #17694A; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sheet-state button { color: #17694A; background: #fff; border: 1px solid #D8DDE3; border-radius: 6px; padding: 5px 12px; font-weight: 600; }
.sheet figcaption { margin-top: 8px; text-align: center; font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet.hit .sheet-paper { box-shadow: 0 0 0 3px #F5D547, var(--shadow-page); }
.cap-note { text-align: center; color: var(--muted); font-size: 0.88rem; }

.rail { position: sticky; top: 72px; display: grid; gap: 20px; }
.related { list-style: none; margin: 0; padding: 0; max-height: min(60vh, 520px); overflow-y: auto; }
.related li + li { border-top: 1px solid var(--border-muted); }
.related a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: var(--fg); transition: background 0.15s; }
.related a:hover { background: var(--row-hover); text-decoration: none; }
.related .r1 { font-weight: 600; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
.related .r2 { color: var(--muted); font-size: 0.8rem; }
.related a[aria-current="page"] { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.related a > span:first-child { flex: 1; min-width: 0; }
.rail-empty { margin: 0; padding: 14px; color: var(--muted); font-size: 0.88rem; }
@media (max-width: 1100px) { .rail { position: static; } .rail .ad-rect { max-width: 320px; height: 100px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; background: var(--subtle); color: var(--muted); font-size: 0.84rem; }
.site-footer p { margin: 0; }
.footer-top { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px 56px; padding-top: 32px; padding-bottom: 24px; }
.footer-about { display: grid; gap: 12px; align-content: start; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 650; font-size: 0.95rem; }
.footer-brand b { color: var(--accent); font-weight: 650; }
.footer-brand svg { width: 22px; height: 22px; }
.source { line-height: 1.55; }
.source a { font-weight: 550; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-links a { color: var(--fg); font-weight: 550; }
.footer-schools h2 { margin: 0 0 10px; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.footer-schools ul { list-style: none; margin: 0; padding: 0; columns: 3 190px; column-gap: 24px; }
.footer-schools li { break-inside: avoid; padding: 2px 0; }
.footer-schools a { color: var(--muted); }
.footer-schools a:hover { color: var(--link); }
.footer-bottom { display: flex; justify-content: space-between; gap: 6px 24px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 26px; border-top: 1px solid var(--border-muted); font-size: 0.8rem; }
@media (max-width: 760px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }
.viewer-mode .footer-schools { display: none; }
.noscript { padding: 40px 0; }

/* ---------- Continue reading, folder footers, report link ---------- */
.recent { margin-bottom: 20px; animation: rise 0.4s var(--ease) backwards; }
.recent h2 { display: inline-flex; align-items: center; gap: 8px; }
.recent h2 svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; }
.recent .link-btn { color: var(--muted); }
.recent-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
.recent-list li { border-bottom: 1px solid var(--border-muted); }
.recent-list li:nth-child(odd) { border-right: 1px solid var(--border-muted); }
.recent-list li:nth-last-child(-n + 2):nth-child(odd), .recent-list li:last-child { border-bottom: 0; }
.recent-list a { display: flex; align-items: center; gap: 12px; padding: 11px 16px; color: var(--fg); transition: background 0.15s; }
.recent-list a:hover { background: var(--row-hover); text-decoration: none; }
.recent-list a:hover .rl-title { color: var(--link); }
.rl-main { flex: 1; min-width: 0; }
.rl-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.15s; }
.rl-title .label { margin-left: 4px; }
.rl-sub { display: block; color: var(--muted); font-size: 0.82rem; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .recent-list { grid-template-columns: 1fr; }
  .recent-list li:nth-child(odd) { border-right: 0; }
  .recent-list li:nth-last-child(-n + 2):nth-child(odd) { border-bottom: 1px solid var(--border-muted); }
}
.box-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 12px 16px; border-top: 1px solid var(--border-muted); background: var(--subtle); color: var(--muted); font-size: 0.86rem; }
.box-foot svg { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.box-foot a { font-weight: 600; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.report { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.84rem; padding: 0 2px; }
.report svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.report:hover { color: var(--link); }

/* ---------- Send a paper ---------- */
.send-wrap { max-width: 760px; margin-top: 28px; }
.send { animation: rise 0.4s var(--ease) backwards; }
.send-body { display: grid; gap: 18px; padding: 22px 22px 6px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .flabel { font-weight: 600; font-size: 0.9rem; }
.opt { font-weight: 400; color: var(--faint); font-size: 0.82rem; margin-left: 4px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 700px) { .grid3 { grid-template-columns: minmax(0, 1fr); } .send-body { padding: 18px 16px 4px; } }
.input, .select-wide select {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg);
  font-size: 0.95rem; transition: border-color 0.15s, box-shadow 0.2s; outline: none;
}
textarea.input { height: auto; min-height: 104px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:focus, .select-wide select:focus { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.select-wide { position: relative; display: block; }
.select-wide select { appearance: none; -webkit-appearance: none; padding-right: 34px; font-weight: 550; cursor: pointer; }
.select-wide::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.7px solid var(--muted); border-bottom: 1.7px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.about { margin: -6px 0 0; padding: 10px 12px; border-radius: 6px; background: var(--accent-soft); font-size: 0.88rem; color: var(--muted); }
.about a { font-weight: 600; }
.is-message .doc-only { display: none; }
.drop {
  display: grid; justify-items: center; gap: 6px; padding: 26px 16px; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--border); border-radius: 8px; background: var(--subtle); color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
}
.drop svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.25s var(--ease); }
.drop strong { color: var(--link); }
.drop small { font-size: 0.8rem; color: var(--faint); }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop:hover svg, .drop.over svg { transform: translateY(-2px); }
.drop:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.files { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.files:empty { display: none; }
.files li { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 12px; border: 1px solid var(--border-muted); border-radius: 6px; font-size: 0.88rem; animation: rise 0.25s var(--ease); }
.files li > svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linejoin: round; }
.fname { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fsize { color: var(--muted); font-variant-numeric: tabular-nums; }
.files .icon-btn { width: 30px; height: 30px; }
.files .ftotal { border: 0; padding: 2px 4px; justify-content: space-between; color: var(--muted); font-size: 0.8rem; animation: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.send-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 16px 22px 20px; }
.send-status { flex: 1; min-width: 200px; display: grid; gap: 8px; }
.send-status p { margin: 0; color: var(--muted); font-size: 0.86rem; }
.send-status p:empty { display: none; }
.send-status p.bad { color: var(--stamp); }
.progress { height: 6px; border-radius: 999px; background: var(--border-muted); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width 0.2s linear; }
.send-foot .btn { height: 40px; padding: 0 20px; }
.send-foot .btn:disabled { opacity: 0.6; cursor: progress; }
@media (max-width: 520px) { .send-foot { padding: 14px 16px 18px; } .send-foot .btn { width: 100%; } }
.send-note { margin: 12px 2px 0; color: var(--faint); font-size: 0.8rem; }
.sent { padding: 40px 24px; text-align: center; animation: rise 0.4s var(--ease) backwards; }
.sent h2 { margin: 14px 0 6px; font-size: 1.25rem; }
.sent p { margin: 0 auto 20px; color: var(--muted); max-width: 46ch; }
.sent-mark { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); animation: pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards; }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
.sent-mark svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sent-actions { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 0.88rem; box-shadow: var(--shadow-md);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media print {
  body > * { display: none !important; }
  body::after { content: "Printing is turned off for papers on onenightbeforekiit.in."; display: block; padding: 40px; font: 16px sans-serif; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; }
}
