/*
 * NestNodeNavigator presentation design system.
 * Inspired by the supplied botanical, dotted, tabbed NestNode design.
 * Edit this single stylesheet for appearance; no CSS build tool is required.
 */
:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--text-size);
  --text-size: 12px;
  line-height: 1.6;
  --bg: #191e22;
  --header: #22282d;
  --surface: #272e34;
  --surface-alt: #30383e;
  --border: #4b5862;
  --ink: #e9eff2;
  --muted: #a7b4bc;
  --accent: #b7e6f4;
  --wash: color-mix(in srgb, var(--accent) 9%, var(--surface));
  --dots: color-mix(in srgb, var(--accent) 58%, var(--ink));
  --pattern-ink: #f4f6f8;
  --site-width: 1180px;
  --radius: 12px;
  --line: color-mix(in srgb, var(--ink) 38%, transparent);
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  position: relative;
  background: var(--bg);
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* Independent background styles. SVG geometry is embedded, so no launcher routes are needed. */
body::before {
  content: "";
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background-color: transparent;
  background-repeat: repeat;
}

/* Cube's accent nodes are separate from its gray geometry, so they follow the theme accent. */
body::after {
  content: none;
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

:root[data-background="hex"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22128%22 height=%22120%22 viewBox=%220 0 128 120%22%3E%0A%3Cdefs%3E%0A %3ClinearGradient id=%22up%22 x1=%220%22 y1=%220%22 x2=%2280%25%22 y2=%22100%25%22 objectBoundingBox=%22true%22%3E%0A  %3Cstop offset=%220%22 stop-color=%22%23fff%22 stop-opacity=%22.23%22/%3E%0A  %3Cstop offset=%22.62%22 stop-color=%22%23fff%22 stop-opacity=%22.08%22/%3E%0A  %3Cstop offset=%221%22 stop-color=%22%2316191c%22 stop-opacity=%22.10%22/%3E%0A %3C/linearGradient%3E%0A %3ClinearGradient id=%22down%22 x1=%220%22 y1=%220%22 x2=%2280%25%22 y2=%22100%25%22%3E%0A  %3Cstop offset=%220%22 stop-color=%22%2310151a%22 stop-opacity=%22.24%22/%3E%0A  %3Cstop offset=%22.42%22 stop-color=%22%230b0d10%22 stop-opacity=%22.12%22/%3E%0A  %3Cstop offset=%221%22 stop-color=%22%23fff%22 stop-opacity=%22.08%22/%3E%0A %3C/linearGradient%3E%0A %3Cfilter id=%22soft%22 x=%22-25%25%22 y=%22-25%25%22 width=%22150%25%22 height=%22150%25%22%3E%3CfeGaussianBlur stdDeviation=%221.0%22/%3E%3C/filter%3E%0A%3C/defs%3E%3Cpolygon points=%22-21.50,-15.72 -4.50,-15.72 4.00,-1.00 -4.50,13.72 -21.50,13.72 -30.00,-1.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22-21.50,-15.72 -4.50,-15.72 4.00,-1.00 -4.50,13.72 -21.50,13.72 -30.00,-1.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M-21.50 13.72 L-4.50 13.72 L4.00 -1.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22-21.50,24.28 -4.50,24.28 4.00,39.00 -4.50,53.72 -21.50,53.72 -30.00,39.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M-30.00 39.00 L-21.50 24.28 L-4.50 24.28 L4.00 39.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M-21.50 53.72 L-4.50 53.72 L4.00 39.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22-21.50,64.28 -4.50,64.28 4.00,79.00 -4.50,93.72 -21.50,93.72 -30.00,79.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22-21.50,64.28 -4.50,64.28 4.00,79.00 -4.50,93.72 -21.50,93.72 -30.00,79.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M-21.50 93.72 L-4.50 93.72 L4.00 79.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22-21.50,104.28 -4.50,104.28 4.00,119.00 -4.50,133.72 -21.50,133.72 -30.00,119.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M-30.00 119.00 L-21.50 104.28 L-4.50 104.28 L4.00 119.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M-21.50 133.72 L-4.50 133.72 L4.00 119.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22-21.50,144.28 -4.50,144.28 4.00,159.00 -4.50,173.72 -21.50,173.72 -30.00,159.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22-21.50,144.28 -4.50,144.28 4.00,159.00 -4.50,173.72 -21.50,173.72 -30.00,159.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M-21.50 173.72 L-4.50 173.72 L4.00 159.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22-21.50,184.28 -4.50,184.28 4.00,199.00 -4.50,213.72 -21.50,213.72 -30.00,199.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M-30.00 199.00 L-21.50 184.28 L-4.50 184.28 L4.00 199.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M-21.50 213.72 L-4.50 213.72 L4.00 199.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2210.50,-35.72 27.50,-35.72 36.00,-21.00 27.50,-6.28 10.50,-6.28 2.00,-21.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M2.00 -21.00 L10.50 -35.72 L27.50 -35.72 L36.00 -21.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M10.50 -6.28 L27.50 -6.28 L36.00 -21.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2210.50,4.28 27.50,4.28 36.00,19.00 27.50,33.72 10.50,33.72 2.00,19.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2210.50,4.28 27.50,4.28 36.00,19.00 27.50,33.72 10.50,33.72 2.00,19.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M10.50 33.72 L27.50 33.72 L36.00 19.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2210.50,44.28 27.50,44.28 36.00,59.00 27.50,73.72 10.50,73.72 2.00,59.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M2.00 59.00 L10.50 44.28 L27.50 44.28 L36.00 59.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M10.50 73.72 L27.50 73.72 L36.00 59.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2210.50,84.28 27.50,84.28 36.00,99.00 27.50,113.72 10.50,113.72 2.00,99.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2210.50,84.28 27.50,84.28 36.00,99.00 27.50,113.72 10.50,113.72 2.00,99.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M10.50 113.72 L27.50 113.72 L36.00 99.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2210.50,124.28 27.50,124.28 36.00,139.00 27.50,153.72 10.50,153.72 2.00,139.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M2.00 139.00 L10.50 124.28 L27.50 124.28 L36.00 139.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M10.50 153.72 L27.50 153.72 L36.00 139.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2210.50,164.28 27.50,164.28 36.00,179.00 27.50,193.72 10.50,193.72 2.00,179.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2210.50,164.28 27.50,164.28 36.00,179.00 27.50,193.72 10.50,193.72 2.00,179.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M10.50 193.72 L27.50 193.72 L36.00 179.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2242.50,-15.72 59.50,-15.72 68.00,-1.00 59.50,13.72 42.50,13.72 34.00,-1.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2242.50,-15.72 59.50,-15.72 68.00,-1.00 59.50,13.72 42.50,13.72 34.00,-1.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M42.50 13.72 L59.50 13.72 L68.00 -1.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2242.50,24.28 59.50,24.28 68.00,39.00 59.50,53.72 42.50,53.72 34.00,39.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M34.00 39.00 L42.50 24.28 L59.50 24.28 L68.00 39.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M42.50 53.72 L59.50 53.72 L68.00 39.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2242.50,64.28 59.50,64.28 68.00,79.00 59.50,93.72 42.50,93.72 34.00,79.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2242.50,64.28 59.50,64.28 68.00,79.00 59.50,93.72 42.50,93.72 34.00,79.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M42.50 93.72 L59.50 93.72 L68.00 79.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2242.50,104.28 59.50,104.28 68.00,119.00 59.50,133.72 42.50,133.72 34.00,119.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M34.00 119.00 L42.50 104.28 L59.50 104.28 L68.00 119.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M42.50 133.72 L59.50 133.72 L68.00 119.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2242.50,144.28 59.50,144.28 68.00,159.00 59.50,173.72 42.50,173.72 34.00,159.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2242.50,144.28 59.50,144.28 68.00,159.00 59.50,173.72 42.50,173.72 34.00,159.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M42.50 173.72 L59.50 173.72 L68.00 159.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2242.50,184.28 59.50,184.28 68.00,199.00 59.50,213.72 42.50,213.72 34.00,199.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M34.00 199.00 L42.50 184.28 L59.50 184.28 L68.00 199.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M42.50 213.72 L59.50 213.72 L68.00 199.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2274.50,-35.72 91.50,-35.72 100.00,-21.00 91.50,-6.28 74.50,-6.28 66.00,-21.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M66.00 -21.00 L74.50 -35.72 L91.50 -35.72 L100.00 -21.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M74.50 -6.28 L91.50 -6.28 L100.00 -21.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2274.50,4.28 91.50,4.28 100.00,19.00 91.50,33.72 74.50,33.72 66.00,19.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2274.50,4.28 91.50,4.28 100.00,19.00 91.50,33.72 74.50,33.72 66.00,19.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M74.50 33.72 L91.50 33.72 L100.00 19.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2274.50,44.28 91.50,44.28 100.00,59.00 91.50,73.72 74.50,73.72 66.00,59.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M66.00 59.00 L74.50 44.28 L91.50 44.28 L100.00 59.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M74.50 73.72 L91.50 73.72 L100.00 59.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2274.50,84.28 91.50,84.28 100.00,99.00 91.50,113.72 74.50,113.72 66.00,99.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2274.50,84.28 91.50,84.28 100.00,99.00 91.50,113.72 74.50,113.72 66.00,99.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M74.50 113.72 L91.50 113.72 L100.00 99.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%2274.50,124.28 91.50,124.28 100.00,139.00 91.50,153.72 74.50,153.72 66.00,139.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M66.00 139.00 L74.50 124.28 L91.50 124.28 L100.00 139.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M74.50 153.72 L91.50 153.72 L100.00 139.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%2274.50,164.28 91.50,164.28 100.00,179.00 91.50,193.72 74.50,193.72 66.00,179.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%2274.50,164.28 91.50,164.28 100.00,179.00 91.50,193.72 74.50,193.72 66.00,179.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M74.50 193.72 L91.50 193.72 L100.00 179.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22106.50,-15.72 123.50,-15.72 132.00,-1.00 123.50,13.72 106.50,13.72 98.00,-1.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22106.50,-15.72 123.50,-15.72 132.00,-1.00 123.50,13.72 106.50,13.72 98.00,-1.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M106.50 13.72 L123.50 13.72 L132.00 -1.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22106.50,24.28 123.50,24.28 132.00,39.00 123.50,53.72 106.50,53.72 98.00,39.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M98.00 39.00 L106.50 24.28 L123.50 24.28 L132.00 39.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M106.50 53.72 L123.50 53.72 L132.00 39.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22106.50,64.28 123.50,64.28 132.00,79.00 123.50,93.72 106.50,93.72 98.00,79.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22106.50,64.28 123.50,64.28 132.00,79.00 123.50,93.72 106.50,93.72 98.00,79.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M106.50 93.72 L123.50 93.72 L132.00 79.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22106.50,104.28 123.50,104.28 132.00,119.00 123.50,133.72 106.50,133.72 98.00,119.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M98.00 119.00 L106.50 104.28 L123.50 104.28 L132.00 119.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M106.50 133.72 L123.50 133.72 L132.00 119.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22106.50,144.28 123.50,144.28 132.00,159.00 123.50,173.72 106.50,173.72 98.00,159.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22106.50,144.28 123.50,144.28 132.00,159.00 123.50,173.72 106.50,173.72 98.00,159.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M106.50 173.72 L123.50 173.72 L132.00 159.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22106.50,184.28 123.50,184.28 132.00,199.00 123.50,213.72 106.50,213.72 98.00,199.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M98.00 199.00 L106.50 184.28 L123.50 184.28 L132.00 199.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M106.50 213.72 L123.50 213.72 L132.00 199.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22138.50,-35.72 155.50,-35.72 164.00,-21.00 155.50,-6.28 138.50,-6.28 130.00,-21.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M130.00 -21.00 L138.50 -35.72 L155.50 -35.72 L164.00 -21.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M138.50 -6.28 L155.50 -6.28 L164.00 -21.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22138.50,4.28 155.50,4.28 164.00,19.00 155.50,33.72 138.50,33.72 130.00,19.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22138.50,4.28 155.50,4.28 164.00,19.00 155.50,33.72 138.50,33.72 130.00,19.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M138.50 33.72 L155.50 33.72 L164.00 19.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22138.50,44.28 155.50,44.28 164.00,59.00 155.50,73.72 138.50,73.72 130.00,59.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M130.00 59.00 L138.50 44.28 L155.50 44.28 L164.00 59.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M138.50 73.72 L155.50 73.72 L164.00 59.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22138.50,84.28 155.50,84.28 164.00,99.00 155.50,113.72 138.50,113.72 130.00,99.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22138.50,84.28 155.50,84.28 164.00,99.00 155.50,113.72 138.50,113.72 130.00,99.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M138.50 113.72 L155.50 113.72 L164.00 99.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22138.50,124.28 155.50,124.28 164.00,139.00 155.50,153.72 138.50,153.72 130.00,139.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M130.00 139.00 L138.50 124.28 L155.50 124.28 L164.00 139.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M138.50 153.72 L155.50 153.72 L164.00 139.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22138.50,164.28 155.50,164.28 164.00,179.00 155.50,193.72 138.50,193.72 130.00,179.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22138.50,164.28 155.50,164.28 164.00,179.00 155.50,193.72 138.50,193.72 130.00,179.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M138.50 193.72 L155.50 193.72 L164.00 179.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22170.50,-15.72 187.50,-15.72 196.00,-1.00 187.50,13.72 170.50,13.72 162.00,-1.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22170.50,-15.72 187.50,-15.72 196.00,-1.00 187.50,13.72 170.50,13.72 162.00,-1.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M170.50 13.72 L187.50 13.72 L196.00 -1.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22170.50,24.28 187.50,24.28 196.00,39.00 187.50,53.72 170.50,53.72 162.00,39.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M162.00 39.00 L170.50 24.28 L187.50 24.28 L196.00 39.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M170.50 53.72 L187.50 53.72 L196.00 39.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22170.50,64.28 187.50,64.28 196.00,79.00 187.50,93.72 170.50,93.72 162.00,79.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22170.50,64.28 187.50,64.28 196.00,79.00 187.50,93.72 170.50,93.72 162.00,79.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M170.50 93.72 L187.50 93.72 L196.00 79.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22170.50,104.28 187.50,104.28 196.00,119.00 187.50,133.72 170.50,133.72 162.00,119.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M162.00 119.00 L170.50 104.28 L187.50 104.28 L196.00 119.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M170.50 133.72 L187.50 133.72 L196.00 119.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3Cpolygon points=%22170.50,144.28 187.50,144.28 196.00,159.00 187.50,173.72 170.50,173.72 162.00,159.00%22 transform=%22translate(1.3 2)%22 fill=%22%2307090c%22 fill-opacity=%22.24%22 filter=%22url(%23soft)%22/%3E%3Cpolygon points=%22170.50,144.28 187.50,144.28 196.00,159.00 187.50,173.72 170.50,173.72 162.00,159.00%22 fill=%22url(%23up)%22 stroke=%22%23f7f8f9%22 stroke-opacity=%22.29%22 stroke-width=%22.8%22/%3E%3Cpath d=%22M170.50 173.72 L187.50 173.72 L196.00 159.00%22 stroke=%22%23080c10%22 stroke-opacity=%22.28%22 stroke-width=%221.1%22 fill=%22none%22/%3E%3Cpolygon points=%22170.50,184.28 187.50,184.28 196.00,199.00 187.50,213.72 170.50,213.72 162.00,199.00%22 fill=%22url(%23down)%22 stroke=%22%230c1118%22 stroke-opacity=%22.20%22 stroke-width=%22.9%22/%3E%3Cpath d=%22M162.00 199.00 L170.50 184.28 L187.50 184.28 L196.00 199.00%22 fill=%22none%22 stroke=%22%23080a0e%22 stroke-opacity=%22.33%22 stroke-width=%222.2%22 filter=%22url(%23soft)%22/%3E%3Cpath d=%22M170.50 213.72 L187.50 213.72 L196.00 199.00%22 fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.30%22 stroke-width=%221.1%22/%3E%3C/svg%3E");
  background-size: 128px 120px;
}

:root[data-background="cube"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2257%22 height=%2265.818%22 viewBox=%220 0 57 65.818%22%3E%3Cg%3E%3Cpolygon points=%22-66.50,-82.27 -47.50,-82.27 -38.00,-65.82 -57.00,-65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,-65.82 -47.50,-49.36 -66.50,-49.36 -57.00,-65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,-49.36 -76.00,-65.82 -66.50,-82.27 -57.00,-65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,-82.27 -47.50,-82.27 -38.00,-65.82 -47.50,-49.36 -66.50,-49.36 -76.00,-65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 -65.82 L-66.50 -82.27 M-57.00 -65.82 L-38.00 -65.82 M-57.00 -65.82 L-66.50 -49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-66.50,-49.36 -47.50,-49.36 -38.00,-32.91 -57.00,-32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,-32.91 -47.50,-16.45 -66.50,-16.45 -57.00,-32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,-16.45 -76.00,-32.91 -66.50,-49.36 -57.00,-32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,-49.36 -47.50,-49.36 -38.00,-32.91 -47.50,-16.45 -66.50,-16.45 -76.00,-32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 -32.91 L-66.50 -49.36 M-57.00 -32.91 L-38.00 -32.91 M-57.00 -32.91 L-66.50 -16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-66.50,-16.45 -47.50,-16.45 -38.00,0.00 -57.00,0.00%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,0.00 -47.50,16.45 -66.50,16.45 -57.00,0.00%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,16.45 -76.00,0.00 -66.50,-16.45 -57.00,0.00%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,-16.45 -47.50,-16.45 -38.00,0.00 -47.50,16.45 -66.50,16.45 -76.00,0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 0.00 L-66.50 -16.45 M-57.00 0.00 L-38.00 0.00 M-57.00 0.00 L-66.50 16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-66.50,16.45 -47.50,16.45 -38.00,32.91 -57.00,32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,32.91 -47.50,49.36 -66.50,49.36 -57.00,32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,49.36 -76.00,32.91 -66.50,16.45 -57.00,32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,16.45 -47.50,16.45 -38.00,32.91 -47.50,49.36 -66.50,49.36 -76.00,32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 32.91 L-66.50 16.45 M-57.00 32.91 L-38.00 32.91 M-57.00 32.91 L-66.50 49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-66.50,49.36 -47.50,49.36 -38.00,65.82 -57.00,65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,65.82 -47.50,82.27 -66.50,82.27 -57.00,65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,82.27 -76.00,65.82 -66.50,49.36 -57.00,65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,49.36 -47.50,49.36 -38.00,65.82 -47.50,82.27 -66.50,82.27 -76.00,65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 65.82 L-66.50 49.36 M-57.00 65.82 L-38.00 65.82 M-57.00 65.82 L-66.50 82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-66.50,82.27 -47.50,82.27 -38.00,98.73 -57.00,98.73%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-38.00,98.73 -47.50,115.18 -66.50,115.18 -57.00,98.73%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-66.50,115.18 -76.00,98.73 -66.50,82.27 -57.00,98.73%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-66.50,82.27 -47.50,82.27 -38.00,98.73 -47.50,115.18 -66.50,115.18 -76.00,98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-57.00 98.73 L-66.50 82.27 M-57.00 98.73 L-38.00 98.73 M-57.00 98.73 L-66.50 115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,-65.82 -19.00,-65.82 -9.50,-49.36 -28.50,-49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,-49.36 -19.00,-32.91 -38.00,-32.91 -28.50,-49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,-32.91 -47.50,-49.36 -38.00,-65.82 -28.50,-49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,-65.82 -19.00,-65.82 -9.50,-49.36 -19.00,-32.91 -38.00,-32.91 -47.50,-49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 -49.36 L-38.00 -65.82 M-28.50 -49.36 L-9.50 -49.36 M-28.50 -49.36 L-38.00 -32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,-32.91 -19.00,-32.91 -9.50,-16.45 -28.50,-16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,-16.45 -19.00,0.00 -38.00,0.00 -28.50,-16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,0.00 -47.50,-16.45 -38.00,-32.91 -28.50,-16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,-32.91 -19.00,-32.91 -9.50,-16.45 -19.00,0.00 -38.00,0.00 -47.50,-16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 -16.45 L-38.00 -32.91 M-28.50 -16.45 L-9.50 -16.45 M-28.50 -16.45 L-38.00 0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,0.00 -19.00,0.00 -9.50,16.45 -28.50,16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,16.45 -19.00,32.91 -38.00,32.91 -28.50,16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,32.91 -47.50,16.45 -38.00,0.00 -28.50,16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,0.00 -19.00,0.00 -9.50,16.45 -19.00,32.91 -38.00,32.91 -47.50,16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 16.45 L-38.00 0.00 M-28.50 16.45 L-9.50 16.45 M-28.50 16.45 L-38.00 32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,32.91 -19.00,32.91 -9.50,49.36 -28.50,49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,49.36 -19.00,65.82 -38.00,65.82 -28.50,49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,65.82 -47.50,49.36 -38.00,32.91 -28.50,49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,32.91 -19.00,32.91 -9.50,49.36 -19.00,65.82 -38.00,65.82 -47.50,49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 49.36 L-38.00 32.91 M-28.50 49.36 L-9.50 49.36 M-28.50 49.36 L-38.00 65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,65.82 -19.00,65.82 -9.50,82.27 -28.50,82.27%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,82.27 -19.00,98.73 -38.00,98.73 -28.50,82.27%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,98.73 -47.50,82.27 -38.00,65.82 -28.50,82.27%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,65.82 -19.00,65.82 -9.50,82.27 -19.00,98.73 -38.00,98.73 -47.50,82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 82.27 L-38.00 65.82 M-28.50 82.27 L-9.50 82.27 M-28.50 82.27 L-38.00 98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-38.00,98.73 -19.00,98.73 -9.50,115.18 -28.50,115.18%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22-9.50,115.18 -19.00,131.64 -38.00,131.64 -28.50,115.18%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-38.00,131.64 -47.50,115.18 -38.00,98.73 -28.50,115.18%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-38.00,98.73 -19.00,98.73 -9.50,115.18 -19.00,131.64 -38.00,131.64 -47.50,115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M-28.50 115.18 L-38.00 98.73 M-28.50 115.18 L-9.50 115.18 M-28.50 115.18 L-38.00 131.64%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,-82.27 9.50,-82.27 19.00,-65.82 0.00,-65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,-65.82 9.50,-49.36 -9.50,-49.36 0.00,-65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,-49.36 -19.00,-65.82 -9.50,-82.27 0.00,-65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,-82.27 9.50,-82.27 19.00,-65.82 9.50,-49.36 -9.50,-49.36 -19.00,-65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 -65.82 L-9.50 -82.27 M0.00 -65.82 L19.00 -65.82 M0.00 -65.82 L-9.50 -49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,-49.36 9.50,-49.36 19.00,-32.91 0.00,-32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,-32.91 9.50,-16.45 -9.50,-16.45 0.00,-32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,-16.45 -19.00,-32.91 -9.50,-49.36 0.00,-32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,-49.36 9.50,-49.36 19.00,-32.91 9.50,-16.45 -9.50,-16.45 -19.00,-32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 -32.91 L-9.50 -49.36 M0.00 -32.91 L19.00 -32.91 M0.00 -32.91 L-9.50 -16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,-16.45 9.50,-16.45 19.00,0.00 0.00,0.00%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,0.00 9.50,16.45 -9.50,16.45 0.00,0.00%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,16.45 -19.00,0.00 -9.50,-16.45 0.00,0.00%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,-16.45 9.50,-16.45 19.00,0.00 9.50,16.45 -9.50,16.45 -19.00,0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 0.00 L-9.50 -16.45 M0.00 0.00 L19.00 0.00 M0.00 0.00 L-9.50 16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,16.45 9.50,16.45 19.00,32.91 0.00,32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,32.91 9.50,49.36 -9.50,49.36 0.00,32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,49.36 -19.00,32.91 -9.50,16.45 0.00,32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,16.45 9.50,16.45 19.00,32.91 9.50,49.36 -9.50,49.36 -19.00,32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 32.91 L-9.50 16.45 M0.00 32.91 L19.00 32.91 M0.00 32.91 L-9.50 49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,49.36 9.50,49.36 19.00,65.82 0.00,65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,65.82 9.50,82.27 -9.50,82.27 0.00,65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,82.27 -19.00,65.82 -9.50,49.36 0.00,65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,49.36 9.50,49.36 19.00,65.82 9.50,82.27 -9.50,82.27 -19.00,65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 65.82 L-9.50 49.36 M0.00 65.82 L19.00 65.82 M0.00 65.82 L-9.50 82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%22-9.50,82.27 9.50,82.27 19.00,98.73 0.00,98.73%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2219.00,98.73 9.50,115.18 -9.50,115.18 0.00,98.73%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%22-9.50,115.18 -19.00,98.73 -9.50,82.27 0.00,98.73%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%22-9.50,82.27 9.50,82.27 19.00,98.73 9.50,115.18 -9.50,115.18 -19.00,98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M0.00 98.73 L-9.50 82.27 M0.00 98.73 L19.00 98.73 M0.00 98.73 L-9.50 115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,-65.82 38.00,-65.82 47.50,-49.36 28.50,-49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,-49.36 38.00,-32.91 19.00,-32.91 28.50,-49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,-32.91 9.50,-49.36 19.00,-65.82 28.50,-49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,-65.82 38.00,-65.82 47.50,-49.36 38.00,-32.91 19.00,-32.91 9.50,-49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 -49.36 L19.00 -65.82 M28.50 -49.36 L47.50 -49.36 M28.50 -49.36 L19.00 -32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,-32.91 38.00,-32.91 47.50,-16.45 28.50,-16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,-16.45 38.00,0.00 19.00,0.00 28.50,-16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,0.00 9.50,-16.45 19.00,-32.91 28.50,-16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,-32.91 38.00,-32.91 47.50,-16.45 38.00,0.00 19.00,0.00 9.50,-16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 -16.45 L19.00 -32.91 M28.50 -16.45 L47.50 -16.45 M28.50 -16.45 L19.00 0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,0.00 38.00,0.00 47.50,16.45 28.50,16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,16.45 38.00,32.91 19.00,32.91 28.50,16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,32.91 9.50,16.45 19.00,0.00 28.50,16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,0.00 38.00,0.00 47.50,16.45 38.00,32.91 19.00,32.91 9.50,16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 16.45 L19.00 0.00 M28.50 16.45 L47.50 16.45 M28.50 16.45 L19.00 32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,32.91 38.00,32.91 47.50,49.36 28.50,49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,49.36 38.00,65.82 19.00,65.82 28.50,49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,65.82 9.50,49.36 19.00,32.91 28.50,49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,32.91 38.00,32.91 47.50,49.36 38.00,65.82 19.00,65.82 9.50,49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 49.36 L19.00 32.91 M28.50 49.36 L47.50 49.36 M28.50 49.36 L19.00 65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,65.82 38.00,65.82 47.50,82.27 28.50,82.27%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,82.27 38.00,98.73 19.00,98.73 28.50,82.27%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,98.73 9.50,82.27 19.00,65.82 28.50,82.27%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,65.82 38.00,65.82 47.50,82.27 38.00,98.73 19.00,98.73 9.50,82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 82.27 L19.00 65.82 M28.50 82.27 L47.50 82.27 M28.50 82.27 L19.00 98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2219.00,98.73 38.00,98.73 47.50,115.18 28.50,115.18%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2247.50,115.18 38.00,131.64 19.00,131.64 28.50,115.18%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2219.00,131.64 9.50,115.18 19.00,98.73 28.50,115.18%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2219.00,98.73 38.00,98.73 47.50,115.18 38.00,131.64 19.00,131.64 9.50,115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M28.50 115.18 L19.00 98.73 M28.50 115.18 L47.50 115.18 M28.50 115.18 L19.00 131.64%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,-82.27 66.50,-82.27 76.00,-65.82 57.00,-65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,-65.82 66.50,-49.36 47.50,-49.36 57.00,-65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,-49.36 38.00,-65.82 47.50,-82.27 57.00,-65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,-82.27 66.50,-82.27 76.00,-65.82 66.50,-49.36 47.50,-49.36 38.00,-65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 -65.82 L47.50 -82.27 M57.00 -65.82 L76.00 -65.82 M57.00 -65.82 L47.50 -49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,-49.36 66.50,-49.36 76.00,-32.91 57.00,-32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,-32.91 66.50,-16.45 47.50,-16.45 57.00,-32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,-16.45 38.00,-32.91 47.50,-49.36 57.00,-32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,-49.36 66.50,-49.36 76.00,-32.91 66.50,-16.45 47.50,-16.45 38.00,-32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 -32.91 L47.50 -49.36 M57.00 -32.91 L76.00 -32.91 M57.00 -32.91 L47.50 -16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,-16.45 66.50,-16.45 76.00,0.00 57.00,0.00%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,0.00 66.50,16.45 47.50,16.45 57.00,0.00%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,16.45 38.00,0.00 47.50,-16.45 57.00,0.00%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,-16.45 66.50,-16.45 76.00,0.00 66.50,16.45 47.50,16.45 38.00,0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 0.00 L47.50 -16.45 M57.00 0.00 L76.00 0.00 M57.00 0.00 L47.50 16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,16.45 66.50,16.45 76.00,32.91 57.00,32.91%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,32.91 66.50,49.36 47.50,49.36 57.00,32.91%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,49.36 38.00,32.91 47.50,16.45 57.00,32.91%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,16.45 66.50,16.45 76.00,32.91 66.50,49.36 47.50,49.36 38.00,32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 32.91 L47.50 16.45 M57.00 32.91 L76.00 32.91 M57.00 32.91 L47.50 49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,49.36 66.50,49.36 76.00,65.82 57.00,65.82%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,65.82 66.50,82.27 47.50,82.27 57.00,65.82%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,82.27 38.00,65.82 47.50,49.36 57.00,65.82%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,49.36 66.50,49.36 76.00,65.82 66.50,82.27 47.50,82.27 38.00,65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 65.82 L47.50 49.36 M57.00 65.82 L76.00 65.82 M57.00 65.82 L47.50 82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2247.50,82.27 66.50,82.27 76.00,98.73 57.00,98.73%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%2276.00,98.73 66.50,115.18 47.50,115.18 57.00,98.73%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2247.50,115.18 38.00,98.73 47.50,82.27 57.00,98.73%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2247.50,82.27 66.50,82.27 76.00,98.73 66.50,115.18 47.50,115.18 38.00,98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M57.00 98.73 L47.50 82.27 M57.00 98.73 L76.00 98.73 M57.00 98.73 L47.50 115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,-65.82 95.00,-65.82 104.50,-49.36 85.50,-49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,-49.36 95.00,-32.91 76.00,-32.91 85.50,-49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,-32.91 66.50,-49.36 76.00,-65.82 85.50,-49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,-65.82 95.00,-65.82 104.50,-49.36 95.00,-32.91 76.00,-32.91 66.50,-49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 -49.36 L76.00 -65.82 M85.50 -49.36 L104.50 -49.36 M85.50 -49.36 L76.00 -32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,-32.91 95.00,-32.91 104.50,-16.45 85.50,-16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,-16.45 95.00,0.00 76.00,0.00 85.50,-16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,0.00 66.50,-16.45 76.00,-32.91 85.50,-16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,-32.91 95.00,-32.91 104.50,-16.45 95.00,0.00 76.00,0.00 66.50,-16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 -16.45 L76.00 -32.91 M85.50 -16.45 L104.50 -16.45 M85.50 -16.45 L76.00 0.00%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,0.00 95.00,0.00 104.50,16.45 85.50,16.45%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,16.45 95.00,32.91 76.00,32.91 85.50,16.45%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,32.91 66.50,16.45 76.00,0.00 85.50,16.45%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,0.00 95.00,0.00 104.50,16.45 95.00,32.91 76.00,32.91 66.50,16.45%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 16.45 L76.00 0.00 M85.50 16.45 L104.50 16.45 M85.50 16.45 L76.00 32.91%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,32.91 95.00,32.91 104.50,49.36 85.50,49.36%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,49.36 95.00,65.82 76.00,65.82 85.50,49.36%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,65.82 66.50,49.36 76.00,32.91 85.50,49.36%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,32.91 95.00,32.91 104.50,49.36 95.00,65.82 76.00,65.82 66.50,49.36%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 49.36 L76.00 32.91 M85.50 49.36 L104.50 49.36 M85.50 49.36 L76.00 65.82%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,65.82 95.00,65.82 104.50,82.27 85.50,82.27%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,82.27 95.00,98.73 76.00,98.73 85.50,82.27%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,98.73 66.50,82.27 76.00,65.82 85.50,82.27%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,65.82 95.00,65.82 104.50,82.27 95.00,98.73 76.00,98.73 66.50,82.27%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 82.27 L76.00 65.82 M85.50 82.27 L104.50 82.27 M85.50 82.27 L76.00 98.73%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpolygon points=%2276.00,98.73 95.00,98.73 104.50,115.18 85.50,115.18%22 fill=%22%23f2f4f6%22 fill-opacity=%22.024%22/%3E%3Cpolygon points=%22104.50,115.18 95.00,131.64 76.00,131.64 85.50,115.18%22 fill=%22%23b9bec4%22 fill-opacity=%22.035%22/%3E%3Cpolygon points=%2276.00,131.64 66.50,115.18 76.00,98.73 85.50,115.18%22 fill=%22%23111820%22 fill-opacity=%22.015%22/%3E%3Cpolygon points=%2276.00,98.73 95.00,98.73 104.50,115.18 95.00,131.64 76.00,131.64 66.50,115.18%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3Cpath d=%22M85.50 115.18 L76.00 98.73 M85.50 115.18 L104.50 115.18 M85.50 115.18 L76.00 131.64%22 fill=%22none%22 stroke=%22%23888e94%22 stroke-opacity=%22.53%22 stroke-width=%22.65%22/%3E%3C/g%3E%3C/svg%3E");
  background-size: 80px 92.376px;
}

:root[data-background="cube"] body::after {
  content: "";
  background-color: var(--accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2257%22 height=%2265.818%22 viewBox=%220 0 57 65.818%22%3E%3Cg fill=%22black%22%3E%3Ccircle cx=%220.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%220.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3Ccircle cx=%2219.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%2219.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3Ccircle cx=%2238.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%2238.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3C/g%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2257%22 height=%2265.818%22 viewBox=%220 0 57 65.818%22%3E%3Cg fill=%22black%22%3E%3Ccircle cx=%220.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%220.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3Ccircle cx=%2219.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%2219.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3Ccircle cx=%2238.000%22 cy=%220.000%22 r=%220.95%22/%3E%3Ccircle cx=%2238.000%22 cy=%2232.909%22 r=%220.95%22/%3E%3C/g%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat;
  mask-repeat: repeat;
  -webkit-mask-size: 80px 92.376px;
  mask-size: 80px 92.376px;
}

:root[data-background="dots"] body::before {
  background-image: radial-gradient(circle, var(--pattern-ink) 0.65px, transparent 1px);
  background-size: 25px 25px;
  opacity: .55;
}

:root[data-background="diamonds"] body::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2252%22 height=%2252%22 viewBox=%220 0 52 52%22%3E%0A%3Cg fill=%22none%22 stroke=%22%23969ba0%22 stroke-opacity=%22.70%22 stroke-width=%22.95%22%0A stroke-dasharray=%22.55 3.2%22 stroke-linecap=%22round%22%3E%0A%3Cpath d=%22M26 0 L52 26 L26 52 L0 26 Z%22/%3E%0A%3Cpath d=%22M-26 0 L0 26 L-26 52 M78 0 L52 26 L78 52%22/%3E%0A%3C/g%3E%3C/svg%3E");
  background-size: 52px 52px;
}

/* Solid options are independent of the selected theme and contain no pattern. */
:root[data-background="solid-white"] body {
  background: #ffffff;
}

:root[data-background="solid-black"] body {
  background: #000000;
}

:root[data-background="solid-gray"] body {
  background: #808080;
}

:root[data-background^="solid-"] body::before {
  display: none;
}

body > .app-shell {
  position: relative;
  z-index: 1;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 4px; }
a:hover { text-decoration: underline; }
button, input, select, textarea { color: var(--ink); }
button, select, input, textarea { border-radius: 6px; }
button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
}
button:hover:not(:disabled), .subtle-button:hover {
  border-color: var(--accent);
  background: var(--wash);
}
button:disabled { opacity: 0.5; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip-link {
  position: absolute;
  z-index: 30;
  transform: translateY(-150%);
  padding: 8px 18px;
  background: var(--surface);
}
.skip-link:focus { transform: translateY(0); }

/* Full-width identity bar and compact hanging navigation tabs. */
.site-header {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid var(--border);
  background: var(--header);
  box-shadow: 0 6px 24px #0002;
}
.header-top, .header-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 12px clamp(18px, 4vw, 64px);
}
.header-top { min-height: 97px; }
.header-bottom {
  min-height: 67px;
  padding-block: 9px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
}
.brand { display: inline-flex; gap: 16px; align-items: center; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mirror {
  height: 76px;
  width: 74px;
  object-fit: contain;
  filter: drop-shadow(0 5px 4px #0004);
}
.brand-copy { display: flex; flex-direction: column; }
.brand strong { font-size: 1.7rem; font-weight: 680; letter-spacing: 0.02em; }
.brand small { color: var(--muted); font-size: 0.82rem; font-style: italic; }
.header-identity { display: flex; align-items: center; gap: 24px; }
.connection-indicator, .utc-clock { font-size: 0.82rem; color: var(--muted); }
.connection-indicator { display: flex; align-items: center; gap: 8px; }
.status-dot { height: 8px; width: 8px; border-radius: 50%; background: #96c7ad; }
.utc-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.route-wrap {
  display: flex;
  flex: 1 1 700px;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.nav-label, .eyebrow { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 700; }
.route-tabs { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 37px;
  padding: 7px 13px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
.nav-link:hover { background: var(--wash); text-decoration: none; }
.nav-link.active {
  color: var(--accent);
  background: var(--wash);
  border-color: var(--accent);
}
.nav-icon { color: var(--accent); font-size: 1.06rem; }
.appearance-controls {
  display: flex;
  flex: 1 1 360px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.appearance-controls label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
}
.appearance-controls select {
  min-height: 34px;
  max-width: 112px;
  border: 1px solid var(--border);
  padding: 5px 7px;
  background: var(--surface);
  color: var(--ink);
}

/* Central workspace, decorative heading folds, cards, and empty states. */
.main-shell { max-width: var(--site-width); margin: 0 auto; padding: 38px 26px 50px; }
.page-heading {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding: 12px 20px 19px;
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-heading::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 19px;
  height: 19px;
  background: linear-gradient(45deg, var(--surface-alt) 50%, var(--bg) 50%);
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.2; }
h2 { line-height: 1.3; }
.eyebrow { margin: 0 0 6px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-wrap input {
  width: min(260px, 35vw);
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}
.primary, .hero-button {
  border-color: var(--accent);
  background: var(--wash);
  color: var(--accent);
  font-weight: 650;
}
.primary:hover, .hero-button:hover { background: var(--surface-alt); }
/* Content grows by its rows, not by stretching a short card/detail across the viewport.
 * The common footer and final border are positioned by .main-shell, not grid row height. */
#content {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 24px;
}
.hero, .settings-panel, .stat-card, .entry-card, .empty-state {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: clamp(24px, 5vw, 48px);
  background-image: radial-gradient(circle at 92% 15%, var(--wash), transparent 54%);
}
.hero h2 { max-width: 650px; margin-bottom: 12px; font-size: clamp(1.8rem, 3.7vw, 3.1rem); }
.hero p:not(.eyebrow) { margin: 0; max-width: 580px; color: var(--muted); }
.hero-button { flex-shrink: 0; padding: 12px 20px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; color: var(--ink); }
.stat-card:hover, .entry-card:hover { border-color: var(--accent); text-decoration: none; }
.stat-label { color: var(--muted); font-size: 0.85rem; }
.stat-value { font-size: 2.3rem; line-height: 1.1; }
.stat-arrow { color: var(--accent); font-size: 0.82rem; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.section-heading h2 { margin: 0 0 4px; font-size: 1.25rem; }
.section-heading p { margin: 0; color: var(--muted); }
.entry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.entry-card { display: flex; flex-direction: column; min-width: 0; padding: 21px; }
.entry-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 9px;
  color: var(--accent);
  background: var(--wash);
  font-size: 0.75rem;
}
.entry-date { color: var(--muted); font-size: 0.76rem; white-space: nowrap; }
.entry-card h3 { margin: 15px 0 7px; font-size: 1.1rem; }
.entry-details { flex: 1; color: var(--muted); white-space: pre-wrap; }
.entry-price { font-size: 1.3rem; font-weight: 750; }
.entry-actions, .settings-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.entry-actions { margin-top: 14px; }
.subtle-button { min-height: 32px; padding: 5px 11px; font-size: 0.82rem; }
.danger { color: #e9a6a9; }
.empty-state { padding: 48px 24px; text-align: center; }
.empty-icon { color: var(--accent); font-size: 2.8rem; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { margin: 0; color: var(--muted); }
.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}
.storage-error { color: #e9a6a9; }

/* Management panels and shared forms use one component style. */
.settings-panel { padding: 24px; }
.settings-panel h2 { margin: 0 0 8px; font-size: 1.2rem; }
.settings-panel p { margin-bottom: 18px; color: var(--muted); }
.settings-note { font-size: 0.85rem; }
.management-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.management-form, form { display: grid; gap: 13px; }
.management-form label, form label { display: grid; gap: 5px; font-size: 0.86rem; }
.management-form input, .management-form textarea, form input, form textarea, form select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--border);
  background: var(--bg);
}
textarea { resize: vertical; }
.management-form button { justify-self: start; }
.management-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.management-heading h2 { margin: 0; }
.member-list { display: grid; gap: 8px; }
.member-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.member-info { display: grid; }
.member-info span, .member-info small { color: var(--muted); }
.empty-members { font-style: italic; }
.backup-panel button { margin: 0; }

/* Modal editor, field feedback, and unobtrusive notifications. */
dialog {
  width: min(95vw, 560px);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 20px 70px #0008;
}
dialog::backdrop { background: #080d10b5; }
.dialog-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.dialog-heading h2 { margin: 0; }
.icon-button { font-size: 1.2rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.dialog-note { color: var(--muted); }
.error { color: #e9a6a9; }
#notifications { position: fixed; right: 16px; bottom: 16px; z-index: 30; }
.toast {
  max-width: min(420px, 88vw);
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 13px 18px;
  background: var(--surface);
  box-shadow: 0 10px 35px #0005;
}

@media (max-width: 1100px) {
  .header-bottom { flex-wrap: wrap; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-top, .header-bottom { padding-inline: 16px; }
  .route-wrap { align-items: flex-start; flex-direction: column; }
  .header-identity { gap: 12px; }
  .connection-indicator { display: none; }
  .main-shell { padding: 24px 14px 36px; }
  .page-heading { flex-direction: column; align-items: stretch; }
  .top-actions { width: 100%; }
  .search-wrap { flex: 1; }
  .search-wrap input { width: 100%; }
  .management-grid { grid-template-columns: 1fr; }
  .hero { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 540px) {
  .brand strong { font-size: 1.35rem; }
  .brand-mirror { height: 57px; width: 52px; }
  .utc-clock { display: none; }
  .appearance-controls { flex-wrap: wrap; }
  .route-tabs { gap: 5px; }
  .nav-link { padding: 6px 9px; font-size: 0.78rem; }
  .entry-grid, .stats-grid { grid-template-columns: 1fr; }
  .member-row { flex-direction: column; align-items: stretch; }
}


/* Header labels and the hanging navigation strip retain the original folded-paper design. */
.site-header::before,
.site-header::after {
  position: absolute;
  top: 0;
  width: 18px;
  height: 18px;
  pointer-events: none;
  content: "";
}
.site-header::before {
  left: 0;
  background: linear-gradient(135deg, var(--bg) 48%, var(--accent) 52%);
  border-bottom-right-radius: 4px;
}
.site-header::after {
  right: 0;
  background: linear-gradient(225deg, var(--bg) 48%, var(--accent) 52%);
  border-bottom-left-radius: 4px;
}
.peel-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  padding: 7px 28px 7px 14px;
  border: 1px dotted var(--accent);
  border-radius: 5px 5px 13px 5px;
  background: var(--header);
  color: var(--muted);
  font: 600 0.72rem/1.6 ui-monospace, "Cascadia Code", monospace;
  letter-spacing: 0.08em;
}
.peel-label strong {
  color: var(--accent);
}
.peel-label::after {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 17px;
  height: 17px;
  border-top-left-radius: 5px;
  background: linear-gradient(135deg, var(--accent) 48%, var(--bg) 52%);
  content: "";
}
.header-label {
  flex: 0 0 auto;
  white-space: nowrap;
}
.nav-link {
  isolation: isolate;
  overflow: hidden;
  padding-right: 25px;
  border: 1px dotted var(--border);
  border-radius: 5px 12px 5px 5px;
  clip-path: none;
}
.nav-link::after {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom-left-radius: 4px;
  background: linear-gradient(225deg, var(--bg) 48%, var(--accent) 52%);
  content: "";
}
.navigation-header {
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--header) 65%, var(--bg));
}
.navigation-header-inner {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--site-width);
  margin-inline: auto;
  padding-inline: 26px;
}
.navigation-identity {
  margin-top: -1px;
  border-top: 0;
  border-radius: 0 0 13px 5px;
}
.navigation-trail {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.81rem;
}
.navigation-trail strong {
  color: var(--accent);
}
.utc-clock {
  display: inline-block;
  min-width: 115px;
  text-align: right;
  white-space: nowrap;
  color: var(--accent);
}
.appearance-controls select {
  max-width: 155px;
}
@media (max-width: 760px) {
  .navigation-header-inner {
    padding-inline: 16px;
  }
  .navigation-trail {
    min-height: 32px;
  }
}

/* Navigation follows the original dotted tabs and keeps the route buttons right-aligned. */
.route-tabs {
  margin-inline-start: auto;
  justify-content: flex-end;
}
.nav-link {
  border-color: var(--accent);
  border-style: dotted;
  background: var(--header);
  color: var(--muted);
}
.nav-link:hover,
.nav-link.active {
  color: var(--accent);
  background: var(--wash);
}
.navigation-header {
  border-bottom-color: var(--accent);
}
.navigation-header-inner {
  position: relative;
}
.navigation-trail {
  position: relative;
  flex: 1;
  min-width: 150px;
  border-bottom: 1px dotted var(--accent);
}
.navigation-identity {
  border-color: var(--accent);
}
.peel-label,
.peel-label strong {
  border-color: var(--accent);
}

/* Reuse the original folded footer and dotted action button visual language. */
.footer {
  display: flex;
  padding: 0;
  margin: 35px 0 10px;
  border: 0;
}
.footer-peel {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 13px 30px 13px 16px;
  border: 1px dotted var(--accent);
  border-radius: 5px 5px 16px 5px;
}
.footer-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  letter-spacing: 0.06em;
}
.footer-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.87rem;
}
.footer-status {
  color: var(--muted);
  letter-spacing: 0;
}
.footer-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-inline-start: auto;
}
.footer-button {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 7px 13px;
  border: 1px dotted var(--accent);
  border-radius: 5px 10px 5px 5px;
  background: var(--surface);
  color: var(--accent);
}
.footer-button:hover {
  background: var(--wash);
  text-decoration: none;
}

/* Content cards match the original Transaction Trail and expandable ASCII card format. */
.content-divider {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dotted var(--accent);
}
.content-divider-label {
  color: var(--accent);
  font-size: 1.15rem;
}
.content-browse {
  margin-inline-start: auto;
}
.content-create {
  border-color: var(--accent);
  border-style: dotted;
}
.content-system {
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.transaction-trail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 22px;
  color: var(--muted);
  font: 0.8rem ui-monospace, monospace;
}
.transaction-trail pre {
  margin: 0;
  color: var(--accent);
  font: 0.72rem/1.05 ui-monospace, monospace;
}
.content-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}
.content-card {
  min-width: 0;
  overflow: hidden;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.content-card:hover,
.content-card.expanded {
  border-color: var(--accent);
}
.content-card-summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  min-height: 153px;
  gap: 16px;
  padding: 20px 17px;
}
.content-number {
  color: var(--accent);
  font: 700 1.2rem ui-monospace, monospace;
}
.content-art {
  width: 63px;
  flex: 0 0 63px;
  margin: 0;
  color: var(--accent);
  font: 0.85rem/1.14 ui-monospace, monospace;
  white-space: pre;
}
.content-card-copy {
  flex: 1;
  min-width: 0;
}
.content-kicker {
  color: var(--accent);
  font: 700 0.67rem/1.4 ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.content-card-copy h3 {
  margin: 7px 0;
  font-size: 1.15rem;
}
.content-card-copy p {
  margin: 0;
  color: var(--muted);
}
.content-toggle {
  min-width: 32px;
  padding: 3px 8px;
  border: 1px dotted var(--accent);
  color: var(--accent);
  font-size: 1.3rem;
}
.content-card-detail {
  padding: 16px 20px;
  border-top: 1px dotted var(--accent);
  background: color-mix(in srgb, var(--bg) 28%, var(--surface));
}
.content-card-detail p {
  color: var(--muted);
}
@media (max-width: 820px) {
  .content-card-grid {
    grid-template-columns: 1fr;
  }
  .route-tabs {
    justify-content: flex-start;
    margin-inline-start: 0;
  }
}
@media (max-width: 480px) {
  .content-card-summary {
    flex-wrap: wrap;
  }
  .content-art {
    flex-basis: 50px;
  }
}

/* Original-inspired route buttons: simple rectangular tabs with no second nav panel. */
.header-bottom .route-tabs {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 7px;
  margin-inline-start: 0;
}
.header-bottom .nav-link {
  position: static;
  isolation: auto;
  overflow: visible;
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--accent);
  clip-path: none;
  font-size: 0.83rem;
  font-weight: 600;
}
.header-bottom .nav-link::after {
  content: none;
}
.header-bottom .nav-link:hover,
.header-bottom .nav-link.active {
  border-color: var(--accent);
  color: var(--ink);
  background: var(--wash);
  text-decoration: none;
}

/* Single label peel, with its accent rule extending across the route strip. */
.navigation-header {
  border-bottom: 0;
  background: transparent;
}
.navigation-header-inner {
  align-items: stretch;
  flex-wrap: nowrap;
  gap: 0;
  padding-inline: 0;
}
.navigation-identity {
  flex: 0 0 auto;
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 12px 5px;
  color: var(--accent);
  font-weight: 750;
}
.navigation-accent-line {
  flex: 1 1 auto;
  min-width: 10px;
  border-bottom: 1px dotted var(--accent);
}

/* A single-line peel footer and original-style action on its right. */
.footer-peel {
  flex-wrap: nowrap;
  justify-content: space-between;
}
.footer-copy {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 0.86rem;
  white-space: nowrap;
  letter-spacing: 0.03em;
  color: var(--accent);
}
.footer-button {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.8rem;
}

/* Keyboard-accessible section picker; uses existing routes, never duplicate storage. */
.navigator-dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: min(80vh, 650px);
  padding: 22px;
  border: 1px dotted var(--accent);
  border-radius: 8px 8px 16px 8px;
  background: var(--surface);
  color: var(--ink);
}
.navigator-dialog::backdrop {
  background: #0009;
}
.navigator-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.navigator-heading h2 {
  margin-bottom: 0;
}
.navigator-dialog label {
  display: block;
  margin-bottom: 7px;
}
.navigator-dialog input {
  width: 100%;
  margin-bottom: 14px;
}
#navigator-options {
  display: grid;
  gap: 6px;
}
.navigator-option {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--header);
  color: var(--ink);
}
.navigator-option:hover,
.navigator-option:focus-visible {
  border-color: var(--accent);
  background: var(--wash);
  text-decoration: none;
}
@media (max-width: 600px) {
  .footer-peel {
    flex-wrap: wrap;
  }
  .footer-copy {
    font-size: 0.75rem;
  }
  .navigation-header-inner {
    padding-inline: 12px;
  }
}


/* Main layout: one 80%-wide column for the header, body, and footer. */
.site-header,
.main-shell {
  width: 80%;
  max-width: none;
  margin-inline: auto;
}

.site-header {
  border: 1px dotted var(--accent);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.main-shell {
  padding: 24px 0 48px;
}

.header-top,
.header-bottom {
  padding-inline: 18px;
}

/* The Content label belongs to the dotted content container, not the header. */
.content-system {
  position: relative;
  overflow: visible;
  margin-top: 22px;
  padding: 0 0 16px;
  border: 1px dashed var(--accent);
  border-radius: 5px 5px 15px 5px;
  background: var(--header);
}

.content-heading {
  position: relative;
  min-height: 245px;
  padding: 38px 25px 24px;
  border-bottom: 1px dotted var(--accent);
}

.content-heading-peel {
  position: absolute;
  top: -1px;
  left: -1px;
  width: max-content;
  min-width: 120px;
  padding: 6px 24px 6px 13px;
  border-color: var(--accent);
  border-top: 0;
  border-radius: 0 0 14px 0;
  color: var(--accent);
  font-weight: 700;
}

.content-heading h1 {
  margin: 18px 0 7px;
  font-size: clamp(1.55rem, 2.8vw, 2.45rem);
  line-height: 1.2;
  color: var(--ink);
}

.content-heading > p {
  margin: 7px 0;
  color: var(--muted);
}

.content-heading .content-publisher,
.content-publisher {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--accent);
}

.hero-art {
  position: absolute;
  right: 24px;
  bottom: 21px;
  max-width: 50%;
  margin: 0;
  color: var(--accent);
  font: 0.81rem/1.25 ui-monospace, monospace;
  white-space: pre;
  overflow: auto;
}

.content-inner {
  padding: 8px 4px 18px;
}

.transaction-trail {
  justify-content: center;
  padding: 18px 18px 26px;
  color: var(--accent);
  font-size: 0.91rem;
}

.content-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  align-items: stretch;
  padding: 0 18px 20px;
}

.content-card {
  display: block;
  min-height: 178px;
  color: var(--ink);
  border: 1px dashed var(--border);
  border-radius: 5px 5px 14px 5px;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.content-card:hover,
.content-card:focus-visible {
  background: var(--wash);
  border-color: var(--accent);
  text-decoration: none;
}

.content-card-summary {
  min-height: 176px;
}

.content-bottom-peel {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: max-content;
  min-width: 120px;
  padding: 5px 19px 4px 12px;
  border-color: var(--accent);
  border-bottom: 0;
  border-radius: 12px 0 0 0;
  color: var(--accent);
}

.content-bottom-peel::after {
  right: auto;
  left: -1px;
  bottom: auto;
  top: -1px;
  transform: rotate(180deg);
}

.content-management-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 25px 0 38px;
}

.content-management-actions > button {
  border: 1px dotted var(--accent);
}

.content-detail {
  min-height: 320px;
  padding: 44px 25px 50px;
}

.content-detail h1 {
  margin-bottom: 10px;
}

.detail-description {
  color: var(--muted);
  font-size: 1.08rem;
}

.detail-art {
  max-width: 100%;
  margin-block: 25px;
  color: var(--accent);
  font: 0.9rem/1.35 ui-monospace, monospace;
  overflow-x: auto;
}

.detail-body {
  white-space: pre-wrap;
  line-height: 1.75;
}

.content-dialog,
#history-dialog {
  width: min(640px, calc(100vw - 28px));
  max-height: 85vh;
  overflow-y: auto;
  padding: 24px;
  border: 1px dotted var(--accent);
  background: var(--surface);
  color: var(--ink);
}

.content-dialog::backdrop,
#history-dialog::backdrop {
  background: #000a;
}

.ascii-input {
  font-family: ui-monospace, monospace;
  white-space: pre;
  overflow-x: auto;
}

.footer {
  margin-top: 38px;
  padding: 0;
  border: 0;
}

.footer-peel {
  position: relative;
  min-height: 61px;
  border: 1px dotted var(--accent);
  border-radius: 5px 5px 17px 17px;
}

.footer-peel::before {
  content: '';
  position: absolute;
  left: -1px;
  bottom: -1px;
  width: 18px;
  height: 18px;
  border-top-right-radius: 5px;
  background: linear-gradient(225deg, var(--accent) 48%, var(--bg) 52%);
}

.footer-management-actions {
  display: inline-flex;
  gap: 7px;
  margin-left: auto;
}

.footer-management-actions button {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px dotted var(--accent);
  font-size: 0.78rem;
}

.footer-button {
  margin-left: 7px;
  border: 1px dotted var(--accent);
}

.theme-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.theme-visibility-grid label {
  display: flex;
  align-items: center;
  gap: 7px;
}

.theme-visibility-grid button {
  justify-self: start;
}

.history-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dotted var(--border);
  padding-block: 11px;
}

@media (max-width: 820px) {
  .site-header,
  .main-shell {
    width: 90%;
  }

  .hero-art {
    position: static;
    max-width: 100%;
    margin-top: 20px;
  }

  .content-heading {
    min-height: 0;
  }

  .footer-peel {
    flex-wrap: wrap;
  }

  .footer-management-actions {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .site-header,
  .main-shell {
    width: 96%;
  }

  .content-heading {
    padding: 34px 15px 20px;
  }

  .content-card-grid {
    padding-inline: 10px;
  }
}

/*
 * NestNodeNavigator content presentation: retain the original full-width header
 * and center the editable hanging note above the content card canvas.
 * Card artwork placement is data-driven; avoid duplicate card templates.
 */
.site-header {
  width: 100%;
  max-width: none;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.main-shell {
  width: 80%;
}

.content-system {
  margin-top: 14px;
  padding-top: 0;
}

.content-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 43%);
  grid-template-rows: auto auto auto;
  align-content: center;
  min-height: 210px;
  column-gap: 30px;
  padding: 28px 26px;
}

.content-heading h1,
.content-heading > p {
  grid-column: 1;
}

.content-heading h1 {
  margin: 0 0 8px;
}

.hero-art {
  position: static;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
  max-width: 100%;
  margin: 0;
  padding: 10px 0;
  font: 0.82rem/1.35 "Cascadia Mono", Consolas, monospace;
  white-space: pre;
  overflow-x: auto;
  overflow-y: hidden;
}

.content-inner {
  position: relative;
  padding-top: 16px;
}

.transaction-trail {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0 12px 24px;
  margin-top: -34px;
  text-align: center;
}

.content-hanging-note {
  position: relative;
  z-index: 2;
  min-height: 36px;
  padding: 7px 30px 7px 18px;
  border: 1px dotted var(--accent);
  border-radius: 5px 5px 12px 5px;
  background: var(--header);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 6px 0 -5px var(--accent);
}

.content-hanging-note::before {
  position: absolute;
  left: 50%;
  top: -11px;
  height: 11px;
  border-left: 1px dotted var(--accent);
  content: "";
}

.content-card-summary {
  position: relative;
  display: block;
  min-height: 176px;
  padding: 21px 22px 60px;
}

.content-card-copy {
  position: relative;
  z-index: 1;
  max-width: min(100%, 80%);
}

.content-number {
  display: none;
}

.content-art {
  position: absolute;
  z-index: 0;
  width: max-content;
  max-width: 46%;
  max-height: 75%;
  flex: none;
  margin: 0;
  overflow: auto;
  color: var(--accent);
  opacity: 0.75;
  font: 0.8rem/1.15 "Cascadia Mono", Consolas, monospace;
  white-space: pre;
  pointer-events: none;
}

.art-top-left { top: 12px; left: 12px; }
.art-top-center { top: 12px; left: 50%; transform: translateX(-50%); }
.art-top-right { top: 12px; right: 12px; }
.art-center-left { top: 50%; left: 12px; transform: translateY(-50%); }
.art-center-center { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.art-center-right { top: 50%; right: 12px; transform: translateY(-50%); }
.art-bottom-left { bottom: 12px; left: 12px; }
.art-bottom-center { bottom: 12px; left: 50%; transform: translateX(-50%); }
.art-bottom-right { bottom: 12px; right: 12px; }

.content-bottom-peel {
  display: none;
}

.footer-copy {
  flex-direction: row;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.lab-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 900px) {
  .site-header { width: 100%; }
  .main-shell { width: 90%; }

  .content-heading {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .hero-art {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    max-width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 480px) {
  .site-header { width: 100%; }
  .main-shell { width: 96%; }
  .content-card-copy { max-width: 100%; }
  .content-card-summary { padding-bottom: 84px; }
  .footer-copy { white-space: normal; }
}

/*
 * Content composition: standalone solid introduction, original peel tabs,
 * and a separate dashed card canvas. Maximum four cards per row.
 */
.content-intro {
  margin: 0 0 24px;
  border: 1px solid var(--accent);
  border-right: 5px solid var(--accent);
  border-radius: 5px;
  background: var(--header);
}

.content-tabs-divider {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 53px;
  padding: 4px 0 13px;
  border-bottom: 1px dotted var(--accent);
}

.content-tab-list {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.content-tab {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 8px 25px 8px 12px;
  min-height: 35px;
  border: 1px dotted var(--accent);
  border-radius: 5px 12px 5px 5px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.content-tab::before,
.content-tab::after {
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
  content: "";
}

.content-tab::before {
  bottom: -1px;
  left: -1px;
  background: linear-gradient(45deg, var(--bg) 49%, var(--accent) 51%);
  border-top-right-radius: 4px;
}

.content-tab::after {
  top: -1px;
  right: -1px;
  background: linear-gradient(225deg, var(--bg) 49%, var(--accent) 51%);
  border-bottom-left-radius: 4px;
}

.content-tab:hover,
.content-tab[aria-current="page"] {
  color: var(--accent);
  background: var(--wash);
}

.content-create-card {
  flex: 0 0 auto;
  margin-left: auto;
  border: 1px solid var(--accent);
}

.content-tab-pager {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font: 0.8rem ui-monospace, monospace;
}

.content-tab-pager button {
  padding: 5px 10px;
}

.content-card-shell {
  position: relative;
  margin-top: 22px;
  padding: 26px 0 14px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-card-shell .transaction-trail {
  position: absolute;
  z-index: 2;
  top: -19px;
  right: 0;
  left: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.content-card-shell .content-hanging-note {
  min-height: 36px;
  margin: 0 auto;
  pointer-events: auto;
}

.content-card-shell .content-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 18px 6px;
}

.content-card-shell .content-card {
  min-width: 0;
}

.content-card-shell .content-card-summary {
  padding: 18px 15px 62px;
}

.content-card-shell .content-card-copy {
  max-width: 100%;
  overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
  .content-card-shell .content-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .content-card-shell .content-card-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .content-intro {
    padding-inline: 16px;
  }
}

/*
 * Content refinement: independent hanging label, compact page spacing,
 * classic peel corners, and safe BBCode controls.
 * Maintain these rules with the content components in src/main.ts.
 */
.site-header {
  border-radius: 0;
  border-bottom: 1px solid var(--accent);
}

.content-intro {
  position: relative;
  min-height: 0;
  margin-bottom: 13px;
  padding: 16px 22px;
  border: 1px solid var(--accent);
  border-left: 6px solid var(--accent);
  border-right: 1px solid var(--accent);
  border-radius: 0;
}

/* Two narrow dotted hangers connect the introduction to the header above. */
.content-intro::before,
.content-intro::after {
  position: absolute;
  top: -17px;
  height: 16px;
  border-left: 1px dotted var(--accent);
  content: '';
}

.content-intro::before { left: 17px; }
.content-intro::after { right: 17px; }

.content-intro h1 { margin: 0 0 5px; }
.content-intro > p { margin: 3px 0; }
.content-intro .hero-art { margin: 0; padding: 0; }

.content-tabs-divider {
  min-height: 0;
  padding-bottom: 10px;
}

.content-card-shell {
  margin-top: 24px;
  padding: 18px 0 9px;
  border-radius: 5px 5px 13px 5px;
}

/* Content canvas's own folded top-left and bottom-right corners. */
.content-card-shell::before,
.content-card-shell::after {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  pointer-events: none;
  content: '';
}

.content-card-shell::before {
  top: -1px;
  left: -1px;
  background: linear-gradient(135deg, var(--bg) 48%, var(--accent) 52%);
  border-bottom-right-radius: 5px;
}

.content-card-shell::after {
  right: -1px;
  bottom: -1px;
  background: linear-gradient(315deg, var(--bg) 48%, var(--accent) 52%);
  border-top-left-radius: 5px;
}

.content-card-shell .transaction-trail {
  top: -18px;
}

.content-card-shell .content-hanging-note {
  min-height: 33px;
  padding: 5px 20px;
}

.content-card-shell .content-card-grid {
  padding: 14px 15px 7px;
}

.content-card-shell .content-card-summary {
  min-height: 143px;
  padding: 13px 14px 45px;
}

.content-card-copy h3 { margin: 4px 0 6px; }
.content-management-actions { margin: 13px 0 18px; flex-wrap: wrap; }

/* A selected card's label is clamped above the card and attached with a dotted line. */
.content-detail {
  position: relative;
  min-height: 0;
  padding: 28px 22px 18px;
  margin-top: 25px;
}

.content-detail .detail-connector {
  position: absolute;
  z-index: 2;
  top: -17px;
  right: 0;
  left: 0;
  display: flex;
  justify-content: center;
}

.content-detail .detail-connector::before {
  position: absolute;
  bottom: 100%;
  left: 50%;
  height: 18px;
  border-left: 1px dotted var(--accent);
  content: '';
}

.detail-hanging-label {
  min-height: 32px;
  padding: 5px 21px;
  background: var(--header);
  border-color: var(--accent);
}

.content-detail h1 { margin: 0 0 5px; }
.content-detail .detail-description { margin: 0 0 5px; }
.content-detail .content-publisher { margin: 2px 0 6px; }
.content-detail .detail-art { margin: 6px 0 8px; }
.content-detail .detail-body { line-height: 1.45; }

.new-tab-form {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.new-tab-form input { min-width: 180px; max-width: 260px; }

.bbcode-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin: 5px 0;
}

.bbcode-toolbar button {
  padding: 4px 7px;
  min-height: 29px;
  font-size: 0.78rem;
}

.bbcode-toolbar input[type='color'] {
  width: 36px;
  height: 30px;
  padding: 2px;
  border: 1px solid var(--accent);
  background: var(--surface);
}

.bbcode-content { white-space: pre-wrap; overflow-wrap: anywhere; }
.bbcode-content a { color: var(--accent); }
.bbcode-content img, .bbcode-content video { max-width: 100%; height: auto; }
.bbcode-content audio { max-width: 100%; }
.bb-code { white-space: pre-wrap; font-family: ui-monospace, monospace; }
.bb-quote { border-left: 3px solid var(--accent); padding-left: 12px; }

@media (max-width: 720px) {
  .content-intro { padding: 14px 12px; }
  .content-detail { padding: 28px 12px 15px; }
}

/* Media directory explorer and shared header music player. */
.header-music {
  display: flex;
  position: relative;
  flex: 1;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 0.8rem;
}
.header-music[hidden] { display: none; }
.header-music-info { display: grid; max-width: 175px; line-height: 1.4; }
.header-music-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-music-info span { color: var(--muted); }
.header-music-controls { display: flex; gap: 3px; }
.header-music-controls button, .music-playlist-actions button {
  border: 1px dotted var(--accent);
  background: var(--surface);
  color: var(--ink);
  padding: 5px 9px;
}
.music-playlists { position: relative; }
.music-playlists > summary { cursor: pointer; color: var(--accent); }
.music-playlists[open] {
  z-index: 15;
  background: var(--surface);
  padding: 7px;
  border: 1px dotted var(--accent);
}
.music-playlist-actions { display: flex; flex-wrap: wrap; max-width: 270px; gap: 5px; margin-top: 8px; }
.media-library { display: grid; gap: 14px; }
.media-library-heading {
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  padding: 15px 18px;
  background: var(--surface);
}
.media-library-heading h2 { margin-bottom: 4px; }
.media-library-heading p { margin: 0; color: var(--muted); }
.media-controls, .media-filters, .media-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.media-controls input[type="search"] { flex: 1; min-width: 160px; }
.media-controls input, .media-controls select, .media-controls button,
.media-filters button, .media-breadcrumbs button {
  border: 1px dotted var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 7px 11px;
}
.media-filters button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.media-breadcrumbs button { color: var(--accent); }
.media-status { color: var(--muted); margin: 0; font-size: .85rem; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.media-grid.media-list { grid-template-columns: 1fr; }
.media-tile, .media-folder {
  min-width: 0;
  background: var(--surface);
  border: 1px dashed var(--border);
  color: var(--ink);
}
.media-folder { min-height: 80px; text-align: left; padding: 16px; }
.media-tile { display: grid; gap: 8px; padding: 8px; }
.media-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-alt);
  border: 1px dotted var(--border);
  color: var(--accent);
  padding: 0;
}
.media-preview img { width: 100%; height: 100%; object-fit: contain; }
.media-glyph { font-size: 2.5rem; }
.media-tile-caption { display: grid; min-width: 0; font-size: .82rem; gap: 3px; }
.media-tile-caption strong { overflow-wrap: anywhere; }
.media-tile-caption small { color: var(--muted); }
.media-open { font-size: .78rem; color: var(--accent); }
.media-grid.media-list .media-tile {
  grid-template-columns: 76px 1fr auto;
  align-items: center;
}
.media-grid.media-list .media-preview { aspect-ratio: 1; }
.media-more { justify-self: center; }
.media-viewer { max-width: min(1000px, 94vw); max-height: 90vh; background: var(--surface); color: var(--ink); }
.media-viewer-heading { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.media-viewer [data-media-viewer-body] img,
.media-viewer [data-media-viewer-body] video { max-width: 100%; max-height: 75vh; }
@media (max-width: 900px) {
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-music { flex-wrap: wrap; }
}
@media (max-width: 580px) {
  .media-grid { grid-template-columns: 1fr; }
}

/*
 * NestNetwork forum presentation.
 * These components use the existing theme variables, content widths, and BBCode renderer.
 * Edit the forum view in src/forum.ts; do not add a second stylesheet.
 */
.forum-shell {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0 auto;
}

/* Shared-panel geometry is defined once below. */
.forum-intro {
  background: var(--header);
}

.forum-intro h1 {
  margin: 0 0 5px;
}

.forum-intro p {
  margin: 5px 0;
}

.forum-local-notice {
  font-size: .8rem;
  color: var(--muted);
}

.forum-profile-toolbar,
.forum-actions,
.forum-search-controls,
.forum-thread-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.forum-profile-toolbar button,
.forum-actions button,
.forum-search-controls button,
.forum-thread-heading button,
.forum-notices button,
.forum-board-row > button {
  background: var(--surface);
  color: var(--ink);
  border: 1px dotted var(--border);
  padding: 7px 12px;
  cursor: pointer;
}

.forum-actions button:hover,
.forum-profile-toolbar button:hover,
.forum-topic-open:hover {
  border-color: var(--accent);
}

.forum-topic-list {
  display: grid;
  gap: 10px;
}

.forum-board-row,
.forum-notices,
.forum-profile-panel {
  padding: 13px;
  border: 1px dashed var(--border);
  background: var(--surface);
}

.forum-board-row p {
  margin: 5px 0 0;
}

.forum-topic-open {
  display: grid;
  width: 100%;
  gap: 6px;
  padding: 13px;
  background: var(--surface);
  color: var(--ink);
  border: 1px dashed var(--border);
  text-align: left;
  cursor: pointer;
}

.forum-topic-preview,
.forum-role,
.forum-post-meta,
.forum-profile-message small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
}

.forum-search-controls input,
.forum-search-controls select {
  flex: 1;
  min-width: 140px;
  max-width: 100%;
  padding: 8px;
  background: var(--surface);
  color: var(--ink);
  border: 1px dotted var(--border);
}

.forum-thread-heading h2 {
  flex: 1;
  margin: 0;
}

.forum-posts {
  display: grid;
  border: 1px dashed var(--border);
  background: var(--surface);
}

.forum-post {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
  border-bottom: 1px dotted var(--border);
}

.forum-post:last-child {
  border-bottom: 0;
}

.forum-author {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  padding: 13px;
  border-right: 1px dotted var(--border);
}

.forum-author-profile {
  border: 0;
  background: transparent;
  padding: 0;
  font-weight: 700;
  text-align: left;
  color: var(--accent);
  cursor: pointer;
}

.forum-avatar-placeholder {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px dotted var(--accent);
  border-radius: 50%;
}

.forum-post-content {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
}

.forum-message {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.forum-message pre {
  overflow-x: auto;
  white-space: pre;
}

.forum-dialog {
  width: min(680px, 94vw);
  max-height: 90vh;
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px dotted var(--accent);
}

.forum-form,
.forum-field {
  display: grid;
  gap: 9px;
}

.forum-field input,
.forum-field textarea {
  width: 100%;
  padding: 9px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.forum-form .bbcode-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

@media (max-width: 600px) {
  .forum-post {
    grid-template-columns: 1fr;
  }

  .forum-author {
    border-right: 0;
    border-bottom: 1px dotted var(--border);
  }
}

/*
 * Created page navigation is clamped to the main header's bottom border.
 * It projects below the header instead of adding an extra header row.
 * Hanger lines remain behind the tabs, attached to the header edge.
 */
.custom-page-tabs {
  position: absolute;
  z-index: 8;
  top: calc(100% - 1px);
  left: 10%;
  right: 10%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 0 10px;
  overflow-x: auto;
  border: 0;
  background: transparent;
}

.custom-page-tabs[hidden] {
  display: none;
}

.custom-page-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 8px 15px;
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--accent);
  border-top: 0;
  border-radius: 0 0 7px 7px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.custom-page-tab[aria-current="page"],
.custom-page-tab:hover {
  color: var(--accent);
  background: var(--wash);
}

.custom-page-tab::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 9px solid var(--accent);
  border-left: 9px solid transparent;
  content: "";
}

/* Reserve space for the clamped page tabs without shifting the main header. */
.site-header:has(.custom-page-tabs:not([hidden])) + .main-shell {
  padding-top: 72px;
}

/* Reach the header bottom, drawing underneath any created-page tab. */
.content-intro::before,
.content-intro::after,
.shared-panel-intro::before,
.shared-panel-intro::after {
  z-index: 0;
  top: -39px;
  height: 38px;
  pointer-events: none;
}

.site-header:has(.custom-page-tabs:not([hidden])) + .main-shell .content-intro::before,
.site-header:has(.custom-page-tabs:not([hidden])) + .main-shell .content-intro::after,
.site-header:has(.custom-page-tabs:not([hidden])) + .main-shell .shared-panel-intro::before,
.site-header:has(.custom-page-tabs:not([hidden])) + .main-shell .shared-panel-intro::after {
  top: -87px;
  height: 86px;
}

@media (max-width: 600px) {
  .custom-page-tabs {
    left: 2%;
    right: 2%;
  }
}

/* Show a useful message if the frontend module cannot initialize. */
.startup-placeholder,
.startup-error {
  margin: 1.5rem 0;
  padding: 1.25rem;
  border: 1px dashed var(--accent);
  background: var(--surface);
}

.startup-placeholder h1 {
  margin: 0 0 0.5rem;
}


/*
 * Shared NestNodeNavigator panel system.
 * Apply shared-panel-intro and shared-panel-body to all route compositions.
 * Themes and accents are inherited from the site's existing CSS variables.
 * Keep geometry and peel corners here instead of redefining them per section.
 */
.shared-section,
.forum-shell {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.shared-panel-intro {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 0 0 14px;
  padding: 16px 22px;
  border: 1px solid var(--accent);
  border-left: 6px solid var(--accent);
  border-radius: 0;
  background: var(--header);
  color: var(--ink);
}

.shared-panel-intro::before,
.shared-panel-intro::after {
  position: absolute;
  top: -17px;
  height: 16px;
  border-left: 1px dotted var(--accent);
  content: "";
  pointer-events: none;
}

.shared-panel-intro::before { left: 17px; }
.shared-panel-intro::after { right: 17px; }

.shared-panel-intro h1,
.shared-panel-intro h2 { margin: 0 0 5px; }
.shared-panel-intro p { margin: 3px 0; }

.shared-panel-body {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  border: 1px dashed var(--line);
  border-radius: 5px 5px 13px 5px;
  background: var(--surface);
}

.shared-panel-body::before,
.shared-panel-body::after {
  position: absolute;
  z-index: 3;
  width: 18px;
  height: 18px;
  content: "";
  pointer-events: none;
}

.shared-panel-body::before {
  top: -1px;
  left: -1px;
  background: linear-gradient(135deg, var(--bg) 48%, var(--accent) 52%);
  border-bottom-right-radius: 5px;
}

.shared-panel-body::after {
  right: -1px;
  bottom: -1px;
  background: linear-gradient(315deg, var(--bg) 48%, var(--accent) 52%);
  border-top-left-radius: 5px;
}

.forum-shell {
  gap: 17px;
}

.forum-body {
  display: grid;
  align-content: start;
  gap: 14px;
  margin-top: 10px;
  padding: 27px 20px 20px;
}

.forum-hanger {
  position: absolute;
  z-index: 4;
  top: -19px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.forum-hanging-note {
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.forum-section-title { margin: 0; }

.forum-topic-list {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.forum-board-row,
.forum-notices,
.forum-profile-panel,
.forum-posts {
  border-color: var(--line);
  border-radius: 5px;
  background: var(--surface);
}

.forum-topic-open,
.forum-board-row > button,
.forum-profile-toolbar button,
.forum-actions button,
.forum-thread-heading button {
  border-color: var(--accent);
  border-radius: 5px;
}

.forum-topic-open:hover,
.forum-board-row > button:hover,
.forum-profile-toolbar button:hover,
.forum-actions button:hover {
  background: var(--wash);
  color: var(--accent);
}

.forum-profile-toolbar,
.forum-actions,
.forum-search-controls,
.forum-thread-heading {
  justify-content: flex-start;
  min-width: 0;
}

.forum-posts,
.forum-post,
.forum-post-content,
.forum-message {
  min-width: 0;
}

@media (max-width: 600px) {
  .shared-panel-intro { padding: 13px 16px; }
  .forum-body { padding: 26px 12px 14px; }
  .forum-search-controls > * { min-width: 0; }
}

/* Animated dashboard artwork; custom pages retain editable ASCII previews. */
.content-intro .hero-image {
  display: block;
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
  width: min(220px, 100%);
  height: auto;
  max-height: 180px;
  object-fit: contain;
  image-rendering: pixelated;
}

@media (max-width: 900px) {
  .content-intro .hero-image {
    grid-column: 1;
    grid-row: auto;
    justify-self: center;
    width: min(160px, 100%);
    max-height: 140px;
  }
}


/* ASCII art retains editable spacing in every page, content card, and detail view. */
.hero-art,
.detail-art,
.content-art,
.ascii-input {
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
  tab-size: 4;
}

.hero-art,
.detail-art,
.content-art {
  max-width: 100%;
  overflow-x: auto;
}

/* Edit forms belong underneath the button that opens them, not in the toolbar row. */
.content-management-actions {
  align-items: flex-start;
  flex-wrap: wrap;
}
.content-action-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
}
.content-action-group > .new-tab-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  max-width: 270px;
}
.content-action-group > .new-tab-form input {
  min-width: 0;
  width: 100%;
}
.content-action-group > button { border: 1px dotted var(--accent); }
/* ASCII artwork is never line-wrapped, including on custom pages. */
.content-intro .hero-art,
.content-art,
.detail-art {
  white-space: pre;
  font-family: Consolas, 'Courier New', monospace;
  overflow-x: auto;
}


/* Management panels: legible theme choices at every viewport width. */
.theme-visibility-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 185px), 1fr));
  gap: 9px 18px;
  align-items: start;
}
.theme-visibility-grid > label {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  min-width: 0;
  width: auto;
  padding: 7px 4px;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
  line-height: 1.4;
}
.theme-visibility-grid > label > input[type="checkbox"] {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin: 0;
}
.theme-visibility-grid > button {
  grid-column: 1 / -1;
  justify-self: start;
  width: auto;
  min-width: 185px;
  white-space: normal;
}
.management-subsection {
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px dotted var(--border);
}
.management-subsection h3 { margin: 0 0 6px; }
.management-subsection p { margin: 0 0 12px; }
.backup-panel > .settings-panel {
  margin-top: 22px;
  padding: 16px 0 0;
  border: 0;
  border-top: 1px dotted var(--border);
  background: transparent;
}
/* The single shared Media title lives above its file browser. */
.media-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.media-pagination:empty { display: none; }
.media-pagination button {
  padding: 5px 9px;
  min-height: 31px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
}
.media-pagination button[aria-current="page"] {
  border-color: var(--accent);
  background: var(--wash);
  color: var(--accent);
  font-weight: 700;
}
.media-page-status { color: var(--muted); font-size: .83rem; margin-left: 8px; }
/* Reserve a separate column for page ASCII so it never covers header copy. */
.content-heading {
  grid-template-columns: minmax(0, 1fr) minmax(0, 47%);
  gap: 3px 22px;
}
.content-heading h1,
.content-heading > p { min-width: 0; overflow-wrap: anywhere; }
.content-intro .hero-art {
  grid-column: 2;
  grid-row: 1 / 4;
  min-width: 0;
  justify-self: stretch;
  width: 100%;
  max-height: 220px;
  overflow: auto;
  font-size: clamp(9px, 0.75vw, 12px);
  line-height: 1.3;
  white-space: pre;
}
/* When artwork is intentionally near a card heading, reserve its own region. */
.content-card-summary.artwork-top-left .content-card-copy,
.content-card-summary.artwork-center-left .content-card-copy {
  margin-left: 52%;
  max-width: 48%;
}
.content-card-summary.artwork-top-center .content-card-copy,
.content-card-summary.artwork-center-center .content-card-copy {
  padding-top: 96px;
  max-width: 100%;
}
.content-card-summary.artwork-top-right .content-card-copy,
.content-card-summary.artwork-center-right .content-card-copy {
  max-width: 52%;
}
@media (max-width: 900px) {
  .content-heading { grid-template-columns: minmax(0, 1fr); }
  .content-intro .hero-art {
    grid-column: 1;
    grid-row: auto;
    max-width: 100%;
    width: auto;
    font-size: 11px;
    justify-self: start;
  }
}

/* Cards and detail panels are flex containers; shared .site-footnote owns the footer. */
.content-card-summary, .content-detail {
  display: flex;
  flex-direction: column;
}

/* Navigation, media selection, live editor previews, and responsive appearance tools. */
.custom-page-tab[aria-current="page"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  box-shadow: inset 0 -3px 0 var(--accent), 0 4px 10px #0003;
  font-weight: 750;
}
.custom-page-tab[draggable="true"] { cursor: grab; }
.custom-page-tab.drop-target { outline: 2px dashed var(--accent); }
.custom-page-info { align-self: stretch; border-radius: 0 0 8px 8px; }
.live-preview {
  margin: 14px 0;
  padding: 15px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  background: var(--surface-alt);
  min-width: 0;
}
.live-preview h3, .live-preview h4 { margin: 0 0 8px; }
.live-preview p { overflow-wrap: anywhere; }
.content-preview-ascii {
  font-family: Consolas, "Courier New", monospace;
  white-space: pre;
  max-width: 100%;
  overflow-x: auto;
  text-align: left;
  font-size: 0.95em;
}
.media-picker-control { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.media-picker-control small { color: var(--muted); }
.media-picker-dialog { width: min(640px, 94vw); max-height: 85vh; }
.media-picker-dialog label { display: block; margin: 12px 0; }
.media-picker-dialog input { display: block; width: 100%; }
.media-picker-results { display: grid; gap: 5px; max-height: 50vh; overflow-y: auto; }
.media-picker-item { text-align: left; overflow-wrap: anywhere; }
.page-selected-media { grid-column: 2; max-width: min(280px, 100%); max-height: 180px; object-fit: contain; }
.appearance-studio { width: min(620px, 95vw); max-height: 88vh; }
#appearance-studio-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
#appearance-studio-controls label { display: grid; gap: 5px; color: var(--ink); }
#appearance-studio-controls select { width: 100%; max-width: none; }
.appearance-tuning { display: grid; gap: 12px; }
.appearance-tuning label { display: grid; gap: 4px; }
.appearance-tuning input { width: 100%; }
.appearance-studio-preview {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}
:root[data-background="hex"] body::before {
  background-size: calc(128px * var(--pattern-density, 1))
    calc(120px * var(--pattern-density, 1));
}
:root[data-background="cube"] body::before {
  background-size: calc(80px * var(--pattern-density, 1))
    calc(92.376px * var(--pattern-density, 1));
}
:root[data-background="cube"] body::after {
  -webkit-mask-size: calc(80px * var(--pattern-density, 1))
    calc(92.376px * var(--pattern-density, 1));
  mask-size: calc(80px * var(--pattern-density, 1))
    calc(92.376px * var(--pattern-density, 1));
}
:root[data-background="dots"] body::before {
  background-size: calc(25px * var(--pattern-density, 1))
    calc(25px * var(--pattern-density, 1));
}
:root[data-background="diamonds"] body::before {
  background-size: calc(52px * var(--pattern-density, 1));
}
body::before, body::after { opacity: var(--pattern-opacity, .55); }
:root[data-background^="solid-"] body::after { content: none; }
@media (max-width: 900px) {
  .header-top, .header-bottom { gap: 10px; flex-wrap: wrap; }
  .main-shell { padding-inline: 18px; }
  .content-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .management-grid, .settings-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .main-shell { padding-inline: 10px; }
  .header-top, .header-bottom { padding-inline: 12px; }
  .content-card-grid { grid-template-columns: minmax(0, 1fr); }
  .content-card-summary { min-width: 0; }
  .content-intro { display: grid; grid-template-columns: minmax(0, 1fr); }
  .content-intro > * { grid-column: 1 !important; }
  .content-intro .hero-art, .content-intro .hero-image {
    justify-self: end;
    max-width: 100%;
    height: auto;
    overflow-x: auto;
  }
  .content-intro .hero-art { font-size: 9px; }
  .page-selected-media { grid-column: 1; }
  .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .media-pagination { flex-wrap: wrap; }
  .custom-page-tabs { gap: 4px; }
  .custom-page-tab { padding-inline: 9px; }
  .management-grid, .theme-visibility-grid { grid-template-columns: minmax(0, 1fr); }
  #appearance-studio-controls { grid-template-columns: minmax(0, 1fr); }
  .content-dialog, .forum-dialog { width: 96vw; max-height: 90vh; }
}

/* Distinguish the category label, heading, and description at a glance. */
.content-card-copy .content-kicker {
  display: block;
  margin-bottom: 11px;
}

.content-card-copy h3 {
  margin: 0 0 15px;
  line-height: 1.35;
}

.content-card-copy p {
  margin: 0;
  line-height: 1.65;
}

/* A signature is not a second decorative border. */
.content-publisher-name {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline dotted;
  text-decoration-color: color-mix(in srgb, var(--ink) 60%, transparent);
  text-underline-offset: 3px;
}
.content-publisher-name:hover,
.content-publisher-name:focus-visible {
  color: var(--ink);
  text-decoration-color: var(--accent);
}
.site-about { max-width: 900px; }
.site-about-tagline { color: var(--muted); }
@media (max-width: 620px) {
  .footer-corner-tab { width: 39px; }
  .footer-ink-bleed { left: 38px; right: 38px; }
}

/* The entire Content card opens on Home and on child pages.
 * Keep the publisher link above the card link so profile links stay independent. */
.content-card-summary { position: relative; }
.content-card-open {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: block;
  border-radius: inherit;
}
.content-card-open:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
.content-card-summary > .content-publisher { position: relative; z-index: 5; }

/* Media selection uses one thumbnail renderer in the picker, selection list and preview. */
.media-picker-results { grid-template-columns: repeat(auto-fill, minmax(min(175px, 100%), 1fr)); gap: 10px; }
.media-picker-item { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 9px; }
.media-picker-filename { font-size: .8rem; overflow-wrap: anywhere; text-align: left; }
.editor-media-sample { display: flex; justify-content: center; align-items: center; min-height: 52px; }
.editor-media-sample img, .editor-media-sample video {
  width: 100%; max-height: 145px; object-fit: contain; border-radius: 5px;
}
.editor-media-sample audio { display: block; width: 100%; max-width: 360px; }
.content-selected-media { display: grid; gap: 9px; }
.selected-media-item {
  display: grid; grid-template-columns: minmax(90px, 130px) minmax(0, 1fr) auto;
  align-items: center; gap: 10px; border: 1px dotted var(--border);
  border-radius: 6px; padding: 8px;
}
.selected-media-label { color: var(--muted); overflow-wrap: anywhere; }
.selected-media-remove { white-space: nowrap; }
#content-preview-body > .editor-media-sample { justify-content: flex-start; margin-top: 12px; }
#content-preview-body > .editor-media-sample img,
#content-preview-body > .editor-media-sample video { width: auto; max-width: 100%; max-height: 210px; }
@media (max-width: 520px) {
  .selected-media-item { grid-template-columns: 90px minmax(0, 1fr); }
  .selected-media-remove { grid-column: 1 / -1; }
}

/* A selected image replaces artwork and occupies the actual header art column. */
.content-heading .page-selected-media {
  grid-column: 2;
  grid-row: 1 / 4;
  align-self: center;
  justify-self: end;
  width: min(320px, 100%);
  min-width: 0;
  max-width: 100%;
  max-height: 230px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}
.content-heading .page-selected-media > img,
.content-heading .page-selected-media > video {
  display: block;
  max-width: 100%;
  max-height: 230px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.content-heading .page-selected-media > audio { width: 100%; }
@media (max-width: 900px) {
  .content-heading .page-selected-media {
    grid-column: 1;
    grid-row: auto;
    justify-self: end;
    width: min(320px, 100%);
  }
}

/* About editor and its live preview reuse the existing Management dialog styling. */
#about-editor { width: min(680px, calc(100vw - 28px)); max-height: 90vh; overflow-y: auto; }
#about-form { display: grid; gap: 13px; }
#about-form > label { display: grid; gap: 5px; min-width: 0; }
#about-form input, #about-form textarea { width: 100%; min-width: 0; }
.about-editor-preview {
  border: 1px dotted var(--accent);
  border-radius: 6px;
  background: var(--surface);
  padding: 15px;
  overflow-wrap: anywhere;
}
#about-preview .site-about-description { white-space: pre-wrap; }

/* Content Header editing belongs beside card creation, not in the tab toolbar. */
.content-tabs-divider > .content-edit-header {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px dotted var(--accent);
  white-space: nowrap;
}


/* Shared site navigation footer. The same single frame renders on every route.
 * Fold geometry and support placement are defined once here, not per section. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-bottom: 19px;
}
body > .app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 0;
}
.main-shell {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  width: 80%;
  padding-bottom: 12px;
}
.main-shell > #content {
  flex: 1 0 auto;
  min-width: 0;
}
.footer {
  display: block;
  flex: none;
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}
.footer .footer-peel {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  min-height: 54px;
  gap: 9px 14px;
  padding: 9px 17px;
  overflow: visible;
  isolation: isolate;
  background: var(--header);
  border: 1px dotted var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 5px 5px 0 0;
}
.footer .footer-peel::before,
.footer .footer-peel::after {
  content: none;
  display: none;
}
.footer .footer-copy {
  display: flex;
  align-items: center;
  flex: 1 1 210px;
  min-width: 0;
  margin: 0;
  white-space: normal;
  overflow-wrap: anywhere;
}
.footer .footer-management-actions {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  flex-wrap: wrap;
  min-width: 0;
  gap: 7px;
  margin-left: auto;
}
.footer .footer-management-actions[hidden] { display: none; }
.footer .footer-management-actions > button {
  flex: 0 0 auto;
  min-height: 32px;
}
.footer .footer-button {
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  white-space: nowrap;
}
.footer .footer-peel > :not(.footer-corner-tab):not(.footer-ink-bleed) {
  position: relative;
  z-index: 3;
}
/* Original small, solid accent folds, mirrored at the two lower corners. */
.footer .footer-corner-tab {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  width: 18px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  box-shadow: none;
  pointer-events: none;
  opacity: 1;
}
.footer .footer-corner-tab-left {
  left: -1px;
  right: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.footer .footer-corner-tab-right {
  right: -1px;
  left: auto;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.footer .footer-corner-tab::before,
.footer .footer-corner-tab::after,
.footer .footer-ink-bleed {
  content: none;
  display: none;
}
/* The bottom frame is site-wide and independent of the active view. */
.final-site-footer {
  position: relative;
  z-index: 2;
  display: block;
  flex: 0 0 26px;
  align-self: stretch;
  width: 100%;
  height: 26px;
  min-height: 26px;
  margin-top: 20px;
  overflow: visible;
  isolation: isolate;
  background: var(--header);
  border: 1px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  border-radius: 4px 4px 0 0;
}
.final-site-footer .final-footer-label {
  position: absolute;
  z-index: 2;
  bottom: -18px;
  width: 18px;
  height: 17px;
  padding: 0;
  border: 0;
  border-radius: 0;
  pointer-events: none;
  background: var(--accent);
  box-shadow: none;
}
.final-site-footer .final-footer-label-left {
  left: -1px;
  right: auto;
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.final-site-footer .final-footer-label-right {
  right: -1px;
  left: auto;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}
.final-site-footer .final-footer-label::before,
.final-site-footer .final-footer-label::after,
.final-site-footer .final-footer-ink {
  content: none;
  display: none;
}
/* Braided supports emerge above the bottom border on both sides. */
.final-site-footer::before,
.final-site-footer::after {
  position: absolute;
  z-index: 1;
  bottom: 100%;
  width: 16px;
  height: 28px;
  content: '';
  pointer-events: none;
  border-inline: 1px solid color-mix(in srgb, var(--accent) 60%, transparent);
  background:
    repeating-linear-gradient(35deg,
      transparent 0 5px,
      color-mix(in srgb, var(--accent) 67%, transparent) 6px 7px,
      transparent 8px 12px),
    repeating-linear-gradient(-35deg,
      transparent 0 5px,
      color-mix(in srgb, var(--accent) 53%, transparent) 6px 7px,
      transparent 8px 12px),
    var(--header);
}
.final-site-footer::before { left: calc(10% + 1px); }
.final-site-footer::after { right: calc(10% + 1px); }
@media (max-width: 900px) {
  .main-shell { width: 90%; }
  .final-site-footer::before { left: calc(5% + 1px); }
  .final-site-footer::after { right: calc(5% + 1px); }
}
@media (max-width: 600px) {
  .main-shell { width: 96%; }
  .footer .footer-peel { padding: 10px 13px; }
  .footer .footer-management-actions { margin-left: 0; }
  .footer .footer-button { margin-left: auto; }
  .final-site-footer::before { left: calc(2% + 1px); width: 12px; }
  .final-site-footer::after { right: calc(2% + 1px); width: 12px; }
}

/* NestNetwork's shared message-board topic layout. One row, three distinct regions. */
.forum-message-board {
  display: grid;
  gap: 9px;
}
.forum-discussion-row {
  display: grid;
  grid-template-columns: minmax(92px, 140px) minmax(0, 1fr) minmax(132px, 175px);
  align-items: stretch;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.forum-discussion-row:hover { border-color: var(--accent); }
.forum-discussion-author {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 13px 9px;
  min-width: 0;
  border-right: 1px dashed var(--line);
}
.forum-discussion-avatar-button,
.forum-discussion-author-name {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.forum-discussion-author-name {
  font-size: .8rem;
  font-weight: 600;
  overflow-wrap: anywhere;
  text-align: center;
}
.forum-topic-avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 46px;
  height: 46px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  background: var(--header);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .04em;
}
.forum-topic-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.forum-discussion-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 16px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: left;
  color: var(--ink);
}
.forum-discussion-open:hover { background: var(--wash); }
.forum-discussion-title { color: var(--accent); font-size: 1.06rem; line-height: 1.35; }
.forum-discussion-excerpt {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.forum-discussion-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-left: 1px dashed var(--line);
  text-align: center;
}
.forum-discussion-meta { display: inline-flex; align-items: center; gap: 7px; }
.forum-message-bubble {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--header);
  color: var(--accent);
}
.forum-discussion-count { font-weight: 600; font-size: .85rem; color: var(--ink); }
.forum-discussion-date { font-size: .73rem; color: var(--muted); line-height: 1.35; }
.forum-follow-leaf {
  min-height: 30px;
  min-width: 38px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--header);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}
.forum-follow-leaf.is-following { border-color: var(--accent); background: var(--wash); }
.forum-follow-leaf:disabled { opacity: .5; cursor: not-allowed; }
.forum-hanger { gap: 9px; align-items: center; }
.forum-edit-hanging-note {
  pointer-events: auto;
  min-height: 28px;
  padding: 4px 9px;
  font-size: .75rem;
}
@media (max-width: 680px) {
  .forum-discussion-row { grid-template-columns: 76px minmax(0, 1fr); }
  .forum-discussion-author { padding: 10px 6px; }
  .forum-topic-avatar { width: 39px; height: 39px; }
  .forum-discussion-open { padding: 12px; }
  .forum-discussion-stats {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-end;
    border-left: 0;
    border-top: 1px dashed var(--line);
    padding: 7px 12px;
  }
  .forum-hanger { flex-wrap: wrap; }
}

/* Unified forum navigation is outside the bordered message board, above its top edge. */
.forum-toolbar-outside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
  margin: -4px 0 -10px;
}
.forum-navigation-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.forum-breadcrumb-home {
  color: var(--bg) !important;
  background: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  font-weight: 750;
  text-shadow: none;
}
.forum-breadcrumb-home:hover { filter: brightness(1.08); }
.forum-breadcrumb-link { border: 1px solid var(--accent); }
.forum-breadcrumb-current { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.forum-breadcrumb-separator { font-size: 1.2rem; color: var(--accent); }
.forum-toolbar-outside > .forum-profile-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Shared BBCode quote and code panels render identically in posts and live previews. */
.bb-quote, .bb-code {
  position: relative;
  display: block;
  max-width: 100%;
  margin: 12px 0;
  padding: 20px 22px;
  background: color-mix(in srgb, var(--accent) 6%, var(--surface));
  border: 1px solid var(--accent);
  border-radius: 7px;
  overflow-wrap: anywhere;
}
.bb-quote { padding-inline: 33px; font-style: italic; }
.bb-quote::before, .bb-quote::after {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 3rem;
  font-style: normal;
  line-height: 1;
  color: var(--accent);
  opacity: .75;
}
.bb-quote::before { content: '“'; left: 5px; top: 3px; }
.bb-quote::after { content: '”'; right: 5px; top: 3px; }
.bb-quote-author { display: block; color: var(--accent); font-style: normal; margin-bottom: 8px; }
.bb-code {
  padding: 0;
  overflow-x: auto;
  white-space: normal;
  font-family: Consolas, 'Courier New', monospace;
}
.bb-code-language {
  display: block;
  width: max-content;
  max-width: 100%;
  padding: 3px 12px;
  background: var(--accent);
  color: var(--bg);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.bb-code code {
  display: block;
  padding: 14px 17px;
  white-space: pre;
  overflow-x: auto;
  tab-size: 4;
  color: var(--ink);
}
.bbcode-toolbar select { max-width: 130px; }

/* Expandable Notes and Inventory items use green '+' / red '-' controls. */
.expandable-entry .entry-top { display: flex; align-items: center; gap: 10px; }
.entry-expand-toggle {
  margin-left: auto;
  padding: 0;
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  font-size: 1.35rem;
  font-weight: 750;
  color: #68d395;
  border: 1px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}
.entry-expand-toggle.is-expanded { color: #ec8181; }
.collapsible-entry-body {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  white-space: pre-line;
}
.expandable-entry.is-expanded .collapsible-entry-body {
  display: block;
  overflow: visible;
  white-space: pre-wrap;
}
.default-note-card { max-width: 650px; }
.default-note-card .entry-details { white-space: pre-wrap; }

/* Notes contain BBCode blocks: do not run the multiline line-clamp across quotes.
 * A height-limited block clips cleanly; expansion restores the natural layout. */
.entry-card .entry-details:has(.bb-quote) {
  display: block;
  max-height: 11rem;
  overflow: hidden;
  white-space: pre-wrap;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}
.entry-card.is-expanded .entry-details:has(.bb-quote) {
  max-height: none;
  overflow: visible;
}
.entry-card .entry-details .bb-quote {
  display: flow-root;
  clear: both;
  margin-block: 20px 16px;
  line-height: 1.6;
}

/* Flexible, book-style About page with two fitted pages and a central hanging ribbon. */
.site-about.about-book {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding: 0;
  min-height: 0;
  border: 1px dashed var(--accent);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: inset 0 0 30px #0001;
}
.about-book-page {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(20px, 3.5vw, 42px);
  overflow-wrap: anywhere;
}
.about-book-left {
  border-right: 1px solid var(--border);
  background: linear-gradient(100deg, var(--surface-alt), var(--surface));
}
.about-book-right {
  background: linear-gradient(100deg, var(--surface), var(--surface-alt));
}
.about-book-page h2, .about-book-page p { margin: 0; }
.about-book-intro { font-style: italic; color: var(--muted); }
.about-book-ribbon {
  position: absolute;
  z-index: 3;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 84px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%);
  filter: drop-shadow(0 5px 4px #0005);
  pointer-events: none;
}
.about-book .site-about-description { min-width: 0; white-space: pre-wrap; }
.about-book .site-about-contact { margin-top: auto; }
.about-image-zoom {
  align-self: flex-end;
  margin-top: auto;
  display: block;
  padding: 0;
  max-width: 25%;
  border: 1px solid var(--accent);
  background: transparent;
}
.about-book-image { display: block; max-width: 100%; height: auto; }
.about-image-dialog { max-width: 94vw; max-height: 94vh; background: var(--surface); }
.about-image-dialog img { display: block; max-width: 86vw; max-height: 78vh; object-fit: contain; }
.about-emoji-shelf { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0; }
.about-emoji { min-width: 35px; padding: 3px; font-size: 1.4rem; cursor: grab; }
#about-preview .about-book { font-size: .9em; }
#about-preview .about-book-page { padding: 20px; }

/* Media image/video lightbox takes up 80% of the available browser viewport. */
.media-viewer {
  width: 80vw;
  max-width: 80vw;
  height: 80vh;
  max-height: 80vh;
  padding: clamp(12px, 2vw, 24px);
  box-sizing: border-box;
  overflow: auto;
}
.media-viewer [data-media-viewer-body] {
  min-height: 0;
  display: grid;
  place-items: center;
}
.media-viewer [data-media-viewer-body] img,
.media-viewer [data-media-viewer-body] video {
  max-width: 100%;
  max-height: calc(80vh - 115px);
  object-fit: contain;
}
@media (max-width: 700px) {
  .site-about.about-book { grid-template-columns: minmax(0, 1fr); }
  .about-book-left { border-right: 0; border-bottom: 1px dashed var(--border); }
  .about-book-ribbon { left: auto; right: 25px; transform: none; }
  .forum-toolbar-outside { margin-block: 0 -6px; }
  .media-viewer { width: 92vw; max-width: 92vw; height: 86vh; max-height: 86vh; }
}

/* NestNetwork: a single accent-topped board index, with structured discussion rows. */
.forum-board-index {
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}
.forum-index-header {
  margin: 0;
  width: 100%;
  padding: 9px 16px;
  color: var(--bg);
  background: var(--accent);
  border-bottom: 1px solid var(--accent);
  font-weight: 750;
  font-size: 1.05rem;
}
.forum-board-index .forum-board-row {
  display: grid;
  grid-template-columns: 66px minmax(0, 1.65fr) minmax(115px, .65fr) minmax(170px, 1fr);
  align-items: stretch;
  gap: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-bottom: 1px dotted var(--accent);
  border-radius: 0;
  background: var(--surface);
}
.forum-board-index .forum-board-row:last-child { border-bottom: 0; }
.forum-board-icon {
  display: grid;
  place-items: center;
  align-self: center;
  width: 42px;
  height: 42px;
  margin: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--accent);
  background: var(--header);
  font-size: 1.7rem;
}
.forum-board-main,
.forum-board-stats,
.forum-board-last {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 12px 15px;
}
.forum-board-main { border-left: 1px solid var(--border); }
.forum-board-title {
  align-self: flex-start;
  width: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  color: var(--accent);
  background: transparent;
  font-size: 1.07rem;
  font-weight: 740;
  text-align: left;
}
.forum-board-title:hover { text-decoration: underline; }
.forum-board-description { margin: 6px 0 8px !important; color: var(--muted); }
.forum-board-discussions { align-self: flex-end; margin-top: auto; color: var(--muted); }
.forum-board-stats {
  justify-content: center;
  gap: 8px;
  border-left: 1px dotted var(--border);
  color: var(--ink);
  white-space: normal;
}
.forum-board-last {
  justify-content: center;
  gap: 5px;
  border-left: 1px solid var(--border);
  overflow-wrap: anywhere;
}
.forum-board-last small { color: var(--muted); }
.forum-last-message-link { color: var(--accent); font-size: .88rem; }
.forum-last-message-author {
  align-self: flex-start;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: .78rem;
  text-align: left;
}
.forum-last-message-author:hover { color: var(--accent); text-decoration: underline; }
.forum-preview-markers { display: flex; flex-wrap: wrap; gap: 7px; }
.forum-preview-code,
.forum-preview-quote {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface-alt);
  font-family: Consolas, 'Courier New', monospace;
  font-size: .73rem;
}
.forum-preview-quote {
  gap: 6px;
  font-family: Georgia, serif;
  font-style: italic;
}
.forum-preview-quote::before,
.forum-preview-quote::after { color: var(--accent); font-size: 1.35rem; line-height: .85; }
.forum-preview-quote::before { content: '“'; }
.forum-preview-quote::after { content: '”'; }
@media (max-width: 930px) {
  .forum-board-index .forum-board-row {
    grid-template-columns: 57px minmax(0, 1fr) minmax(108px, .5fr);
  }
  .forum-board-last {
    grid-column: 2 / -1;
    border-top: 1px dotted var(--border);
    border-left: 1px solid var(--border);
  }
}
@media (max-width: 520px) {
  .forum-board-index .forum-board-row { grid-template-columns: 52px minmax(0, 1fr); }
  .forum-board-stats,
  .forum-board-last { grid-column: 2 / -1; border-left: 1px solid var(--border); }
  .forum-board-stats { border-top: 1px dotted var(--border); }
  .forum-board-last { border-top: 1px dotted var(--border); }
}

/* Board creation stays accessible to Management, below the public topic index. */
.forum-board-management { display: flex; justify-content: flex-end; }
.forum-board-management button { border: 1px dotted var(--accent); }

/* Headings use their actual panel backgrounds; only their footnote is ruled. */
.page-heading,
.content-intro,
.shared-panel-intro {
  background-image: none;
}
.page-heading > *,
.content-intro > h1,
.content-intro > p,
.shared-panel-intro > h1,
.shared-panel-intro > h2,
.shared-panel-intro > p,
.content-intro > img,
.content-intro > pre,
.shared-panel-intro img {
  position: relative;
  z-index: 1;
}
.unified-header-tagline { margin: 7px 0 0; color: var(--muted); }
.page-heading .top-actions { z-index: 2; }
/* Four notes or inventory items per desktop row, then natural wrapping. */
.compact-entry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
}
.compact-entry-grid .entry-card { min-width: 0; padding: 14px; }
.compact-entry-grid .entry-card-preview { min-width: 0; flex: 1; overflow: hidden; }
.compact-entry-grid .entry-card:not(.is-expanded) .entry-card-preview {
  max-height: 100px;
}
.compact-entry-grid .entry-card.is-expanded .entry-card-preview {
  max-height: none;
  overflow: visible;
}
.compact-entry-grid .entry-card .entry-details {
  display: block;
  max-height: none;
  overflow: visible;
  line-clamp: unset;
  -webkit-line-clamp: unset;
}
.compact-entry-grid .entry-card .entry-details:has(.bb-quote) {
  max-height: none;
  overflow: visible;
}
.compact-entry-grid .entry-card .entry-details .bb-quote { margin-block: 16px; }
.compact-entry-grid .entry-card .entry-actions {
  margin-top: 12px;
  flex-shrink: 0;
}
.compact-entry-grid .default-note-card { max-width: none; }
@media (max-width: 1100px) {
  .compact-entry-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .compact-entry-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Heading rule uses the actual panel background, so it stays behind letters and artwork. */
.page-heading { --heading-paper: var(--surface); }
.content-intro, .shared-panel-intro { --heading-paper: var(--header); }
.page-heading > div:first-child,
.content-intro > h1, .content-intro > p,
.shared-panel-intro > h1, .shared-panel-intro > h2, .shared-panel-intro > p {
  background-color: var(--heading-paper);
  box-shadow: -7px 0 var(--heading-paper), 7px 0 var(--heading-paper);
}
/* Formatted heading titles and taglines are rendered by one safe BBCode renderer. */
.page-heading h1, .content-intro h1, .shared-panel-intro h1,
.unified-header-tagline { overflow-wrap: anywhere; }
#section-heading-editor textarea, #content-editor textarea[name="title"],
#about-editor textarea[name="aboutTitle"] { width: 100%; }

/* Canonical footnote: shared by Home, cards, Notes, Inventory, About and NestNetwork.
 * One full-width gray rule, minimal vertical padding, optional copy and controls. */
.site-footnote {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 5px 11px 6px;
  margin-top: auto;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  background-image: none;
  color: var(--ink);
  font-size: .79rem;
  line-height: 1.35;
}
.site-footnote-text {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  font-size: .79rem;
  line-height: 1.35;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.site-footnote-text:empty { display: none; }
.site-footnote-text > * { margin: 0; }
.site-footnote-text p + p { margin-top: 4px; }
.site-footnote-actions,
.site-footnote .top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
}
.site-footnote .top-actions .search-wrap { margin-right: auto; }
.site-footnote .top-actions input { max-width: 100%; }
.site-footnote .publisher-credit {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  color: var(--accent);
}
.site-footnote .content-publisher-name { color: var(--ink); font-weight: 650; }
/* The publisher signature is the footnote, not an extra nested panel. */
.content-card-summary > .site-footnote,
.content-detail > .site-footnote,
.content-heading > .site-footnote {
  position: relative;
  align-self: stretch;
  justify-self: stretch;
  flex: 0 0 auto;
  z-index: 5;
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: transparent;
}
/* Header artwork/text stay above; the single footer spans both grid columns. */
.content-heading > .site-footnote {
  grid-column: 1 / -1;
  grid-row: auto;
  width: calc(100% + 44px);
  margin: 8px -22px -16px;
  padding-inline: 15px;
  background: var(--header);
}
/* Card body owns the available height; the signature rests against the lower edge. */
.content-card-shell .content-card-summary {
  padding: 13px 14px 0;
  min-height: 176px;
}
.content-card-summary > .site-footnote {
  width: calc(100% + 28px);
  margin: auto -14px 0;
  padding-inline: 14px;
  background: var(--surface);
}
.content-detail > .site-footnote {
  width: calc(100% + 44px);
  margin: 12px -22px -18px;
  padding-inline: 22px;
  background: var(--header);
}
/* Notes and inventory: move edit/remove into the same bottom footnote. */
.compact-entry-grid .entry-card { padding-bottom: 0; }
.compact-entry-grid .entry-card > .site-footnote {
  width: calc(100% + 28px);
  margin: auto -14px 0;
  padding: 6px 14px;
}
.compact-entry-grid .site-footnote-actions { justify-content: flex-start; }
/* The site section headings put their Create/Edit/Search controls in this footer. */
.page-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.page-heading > .page-heading-footnote {
  grid-column: 1 / -1;
  width: calc(100% + 40px);
  margin: 0 -20px -19px;
  padding: 7px 20px 8px;
  background: var(--surface);
}
/* NestNetwork uses the same footer rule for heading, discussion controls and posts. */
.forum-intro > .site-footnote {
  width: calc(100% + 44px);
  margin: 10px -22px -16px;
  padding-inline: 16px;
  background: var(--header);
}
.forum-section-footnote {
  width: calc(100% + 40px);
  margin: 12px -20px -20px;
  padding-inline: 20px;
  background: var(--surface);
}
.forum-post-content > .site-footnote {
  width: calc(100% + 26px);
  margin: auto -13px -13px;
  padding: 6px 13px;
}
.forum-post-footnote > .forum-actions { margin: 0; }
@media (max-width: 900px) {
  .forum-intro > .site-footnote {
    width: calc(100% + 32px);
    margin-inline: -16px;
  }
}
.forum-section-footnote .forum-notification-bar,
.forum-section-footnote .forum-actions { margin: 0; }
.about-book > .site-footnote {
  grid-column: 1 / -1;
  align-self: end;
  z-index: 3;
  background: var(--surface);
}
@media (max-width: 900px) {
  .content-heading > .site-footnote {
    width: calc(100% + 32px);
    margin: 8px -16px -16px;
  }
}
@media (max-width: 600px) {
  .page-heading > .page-heading-footnote {
    width: calc(100% + 24px);
    margin-inline: -12px;
    padding-inline: 12px;
  }
}

/* Discussion board title follows search tools and caps the list with rounded top corners. */
.forum-message-board > .forum-index-header {
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  margin-bottom: 1px;
}

/* Canonical left-to-right action alignment across all navigable site sections. */
.page-heading .top-actions,
.page-heading .page-heading-footnote .top-actions,
.shared-panel-intro .site-footnote-actions,
.forum-profile-toolbar,
.forum-actions,
.forum-management-footer,
.forum-section-footnote,
.forum-board-management {
  justify-content: flex-start;
}
.forum-management-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}
.forum-management-footer select {
  min-width: 125px;
  max-width: 215px;
  width: auto;
}
/* One message-board pattern for every parent board and its topic rows. */
.forum-board-index {
  margin-bottom: 14px;
}
.forum-index-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.forum-collection-link {
  min-height: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
}
.forum-collection-link:hover { color: inherit; text-decoration: underline; background: transparent; }
.forum-header-mark { flex: none; font-size: 1.2rem; line-height: 1; }
.forum-collection-description {
  margin: 0;
  padding: 8px 15px;
  color: var(--muted);
  border-bottom: 1px dotted var(--border);
}
/* Hover responds on an individual square without blanketing adjacent metadata. */
.forum-board-index .forum-board-row > :hover,
.forum-discussion-row > :hover {
  background-color: color-mix(in srgb, var(--surface-alt) 50%, transparent);
}
.forum-board-index .forum-board-row > :focus-within,
.forum-discussion-row > :focus-within {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}
.forum-board-index .is-hidden,
.forum-board-index.is-hidden { opacity: .66; }
.forum-empty-collection,
.forum-empty-topic,
.forum-empty-discussion { min-height: 65px; }
.forum-empty-message {
  align-self: center;
  margin: 0;
  padding: 14px 16px;
  color: var(--muted);
}
@media (max-width: 650px) {
  .forum-management-footer select { max-width: min(100%, 190px); }
  .forum-management-footer > button { flex: 0 1 auto; }
}

/* Shared NestNetwork content markers: independent of pin/lock moderation status. */
.forum-content-marker {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 23px;
  height: 23px;
  padding: 0 4px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--accent);
  background: var(--header);
  font-size: .91rem;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}
.forum-state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  margin-inline: 3px;
  color: var(--accent);
  font-weight: 700;
}
.forum-discussion-open > .forum-content-marker,
.forum-discussion-open > .forum-state-icon { margin-right: 6px; }
.forum-board-icon { position: relative; }
.forum-board-icon > .forum-content-marker {
  position: absolute;
  right: -7px;
  bottom: -7px;
  min-width: 18px;
  height: 18px;
  font-size: .7rem;
}
.forum-thread-heading > .forum-content-marker { margin-right: 6px; }
.forum-message-bubble[data-style="round"],
.forum-message-bubble[data-style="double"] { border-radius: 50%; }
.forum-message-bubble[data-style="square"] { border-radius: 4px; }
.forum-message-bubble[data-style="minimal"] {
  border: 0;
  background: transparent;
}

/* Canonical NestNetwork heading and topic-row arrangement. */
.forum-topic-header,
.forum-board-index > .forum-index-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-radius: 7px 7px 0 0;
}
.forum-topic-header h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
}
.forum-topic-header .forum-content-marker,
.forum-board-index > .forum-index-header .forum-content-marker,
.forum-thread-heading > .forum-content-marker {
  flex: none;
  min-width: 37px;
  height: 37px;
  border-width: 2px;
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 850;
}
.forum-topic-header .forum-content-marker,
.forum-board-index > .forum-index-header .forum-content-marker {
  color: var(--bg);
  border-color: color-mix(in srgb, var(--bg) 45%, transparent);
  background: color-mix(in srgb, var(--accent) 70%, var(--surface));
}
.forum-header-mark {
  display: inline-grid;
  place-items: center;
  min-width: 37px;
  height: 37px;
  padding: 2px 7px;
  border: 2px solid color-mix(in srgb, var(--bg) 38%, transparent);
  border-radius: 8px;
  font-size: 1.35rem;
  font-weight: 850;
}
.forum-message-board {
  display: grid;
  gap: 0;
}
.forum-message-board > .forum-index-header {
  margin: 0;
  border-radius: 7px 7px 0 0;
}
.forum-message-board > .forum-index-header + .forum-discussion-row {
  margin-top: 0;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}
.forum-message-board > .forum-discussion-row + .forum-discussion-row {
  margin-top: 9px;
}
.forum-message-board > .forum-index-header + .forum-empty-discussion {
  min-height: 78px;
}
.forum-thread-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.forum-thread-heading > h2 { margin-right: auto; }
.forum-message-bubble:is(button) {
  padding: 0;
  min-width: 31px;
  min-height: 31px;
  cursor: pointer;
}
.forum-message-bubble:is(button):hover,
.forum-message-bubble:is(button):focus-visible {
  border-color: var(--accent);
  background: var(--wash);
}
.forum-editor-marker-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border-top: 1px solid var(--border);
}
.forum-post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.forum-post-meta > .forum-content-marker { margin-left: auto; }
/* Board/topic management lives in Management, separate from member-facing actions. */
.management-section-tabs,
.forum-admin-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.management-section-tabs { margin-bottom: 16px; }
.forum-admin-panel { min-width: 0; }
.forum-admin-panel > .forum-admin-toolbar { margin-block: 12px; }
.forum-admin-board {
  min-width: 0;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
}
.forum-admin-board > .forum-index-header { margin: 0; }
.forum-admin-board > .muted { margin: 8px 12px; }
.forum-admin-board > .forum-admin-toolbar { padding: 11px 12px; }
.forum-admin-topic {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px dotted var(--border);
}
@media (max-width: 650px) {
  .forum-admin-topic { align-items: flex-start; flex-direction: column; }
  .forum-admin-toolbar > button { max-width: 100%; }
}

/* Shared Management panel: native C server accounts, no standalone page. */
.server-accounts .server-login-form { display:flex; flex-wrap:wrap; align-items:end; gap:0.75rem; }
.server-accounts .server-login-form label { display:grid; gap:0.35rem; flex:1 1 220px; min-width:0; }
.server-accounts .server-login-form select { flex:1 1 200px; }
.server-accounts .server-login-extra { display:flex; flex-wrap:wrap; gap:0.75rem; flex-basis:100%; }
.server-accounts .server-login-extra p { flex-basis:100%; }
.server-accounts input, .server-accounts select { max-width:100%; box-sizing:border-box; }
.server-token-panel { display:flex; align-items:center; flex-wrap:wrap; gap:0.55rem; }
.server-token-panel h3, .server-token-panel p { flex-basis:100%; }
.server-token-value { display:block; flex-basis:100%; overflow-wrap:anywhere; padding:0.55rem 0.75rem; border:1px solid var(--line, #777); border-radius:0.3rem; font:0.8rem/1.5 ui-monospace,SFMono-Regular,Consolas,monospace; user-select:all; }
.server-member-row { display:flex; flex-wrap:wrap; align-items:center; gap:0.6rem; border-top:1px solid var(--line, #777); padding:0.7rem 0; }
@media (max-width:600px) { .server-token-panel button { width:100%; } }

/* Unified member account route; follows existing settings-panel conventions. */
.member-account-panel { display: grid; gap: 14px; align-content: start; }
.member-account-group { display: grid; align-content: start; justify-items: start; gap: 10px; padding: 14px 0; border-top: 1px solid var(--border, #7776); }
.member-account-form { display: grid; gap: 12px; width: min(100%, 660px); }
.member-account-field { display: grid; gap: 5px; width: 100%; }
.member-account-field input, .member-account-field textarea { width: 100%; box-sizing: border-box; }
.member-account-field textarea { min-height: 95px; resize: vertical; }
.member-account-avatar { width: 88px; height: 88px; border: 1px solid var(--border, #7776); border-radius: 16px; object-fit: cover; }
.brand-mirror.member-brand-avatar { object-fit: cover; border-radius: 12px; }
.member-account-danger { border-top: 1px solid var(--border, #7776); }
.member-account-feedback { overflow-wrap: anywhere; }

/* Shared compact footnote, owner mail and member account styling. */
.server-mail-panel { display:grid; gap:12px; align-content:start; }
.server-mail-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.server-mail-content { min-width:0; }
.server-mail-list { display:grid; gap:3px; }
.server-mail-row { display:grid; justify-items:start; text-align:left; gap:3px; padding:10px; width:100%; min-width:0; border:1px solid var(--border, #7776); border-radius:7px; background:transparent; color:inherit; cursor:pointer; overflow-wrap:anywhere; }
.server-mail-row:hover { background:color-mix(in srgb, currentColor 7%, transparent); }
.server-mail-compose { display:grid; gap:10px; max-width:690px; }
.server-mail-compose label { display:grid; gap:4px; }
.server-mail-compose input, .server-mail-compose select, .server-mail-compose textarea { min-width:0; width:100%; box-sizing:border-box; }
.server-mail-raw { overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; max-height:65vh; padding:12px; border:1px solid var(--border, #7776); }
.member-brand-avatar { border-radius:999px; object-fit:cover; }

/* Explicit sign-in and registration navigation. */
.member-account-auth-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.member-account-auth-tabs button { padding: 9px 16px; border: 1px solid var(--border, #7776); border-radius: 8px; cursor: pointer; }
.member-account-auth-tabs button[aria-pressed="true"] { border-color: currentColor; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

/* Keep My Account at the end and color its button with the chosen accent. */
.header-bottom .route-tabs { flex: 1 1 auto; }
.header-bottom .nav-link[href="/account"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.header-bottom .nav-link[href="/account"]:hover,
.header-bottom .nav-link[href="/account"].active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 2px var(--border);
}
/* Appearance Studio is a right-aligned, expandable form, not a modal. */
.header-bottom .appearance-studio-dropdown {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
  z-index: 30;
}
.appearance-studio-dropdown > summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  border-radius: 5px;
  background: var(--surface);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.appearance-studio-dropdown > summary::-webkit-details-marker { display: none; }
.appearance-studio-dropdown > summary::after { content: ' ▾'; }
.appearance-studio-dropdown[open] > summary::after { content: ' ▴'; }
.appearance-studio-form {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  display: grid;
  width: min(340px, calc(100vw - 24px));
  max-height: min(74vh, 620px);
  overflow: auto;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: 9px;
  background: var(--header);
  box-shadow: 0 12px 36px #0006;
}
.appearance-studio-form > label { display: grid; gap: 5px; font-size: .85rem; }
.appearance-studio-form select { width: 100%; max-width: none; }
.appearance-studio-form .appearance-tuning { display: grid; gap: 12px; }
.appearance-studio-form .appearance-tuning label { display: grid; gap: 5px; }
.appearance-studio-help { margin: 0; color: var(--muted); font-size: .78rem; }

/* Component-design studio (per-section values are validated in store.ts). */
.component-design-panel { margin-top: 18px; }
.component-design-form { display: grid; gap: 14px; }
.component-design-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.component-design-grid label { display: grid; gap: 5px; min-width: 0; }
.component-design-grid select { width: 100%; min-width: 0; }
@media (max-width: 620px) { .component-design-grid { grid-template-columns: 1fr; } }

/* Shared heading geometry on every route, including NestNotes and NestNetwork. */
.page-heading, .content-intro, .shared-panel-intro, .forum-intro {
  border-style: var(--section-heading-border, dotted);
  border-radius: var(--section-heading-radius, 6px);
}
.page-heading h1, .content-intro h1, .shared-panel-intro h1, .shared-panel-intro h2,
.forum-intro h1, .content-heading h1 {
  color: var(--section-heading-color, var(--ink));
  font-family: var(--section-heading-font, inherit);
}
/* Include every content surface in the design system rather than just entry cards. */
#content .entry-card, #content .media-tile, #content .media-folder,
#content .forum-board-row, #content .forum-posts, #content .forum-topic-row,
#content .settings-panel, #content .content-card-shell, #content .content-card-summary,
#content .about-book, #content .media-viewer, #content .forum-message-board {
  border-style: var(--section-content-border, solid);
  border-radius: var(--section-content-radius, 6px);
}
/* A hanging note's connective rule always reaches the element directly above it. */
.content-hanging-note::before { top: -22px; height: 22px; border-left: 1px dotted var(--accent); }
.forum-hanger .content-hanging-note::before { top: -21px; height: 21px; }
.content-card-shell .content-hanging-note::before { top: -22px; height: 22px; }

/* Alternate label and tab component designs, independently selectable by route. */
body[data-label-style="flat"] .peel-label,
body[data-label-style="flat"] .content-hanging-note {
  clip-path: none; border: 1px solid var(--accent); border-radius: 0;
  box-shadow: none; background-image: none;
}
body[data-label-style="flat"] .peel-label::after { content: none; }
body[data-label-style="ribbon"] .peel-label,
body[data-label-style="ribbon"] .content-hanging-note {
  clip-path: none; border: 1px dashed var(--accent); border-radius: 3px 14px 3px 14px;
  box-shadow: 3px 3px 0 var(--wash); background-image: none;
}
body[data-tab-style="flat"] :is(.route-tabs, .custom-page-tabs, .content-tabs, .management-section-tabs) button {
  border-radius: 0; clip-path: none; background-image: none;
}
body[data-tab-style="underline"] :is(.route-tabs, .custom-page-tabs, .content-tabs, .management-section-tabs) button {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; clip-path: none;
  box-shadow: none; background: transparent;
}
body[data-tab-style="underline"] :is(.route-tabs, .custom-page-tabs, .content-tabs, .management-section-tabs) button:is(.active, [aria-current], [aria-pressed="true"]) {
  border-bottom-color: var(--accent);
}

/* Media results: all metrics and page controls share one themed dotted bar. */
.media-results-bar {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 10px; min-width: 0;
  padding: 9px 12px; border: 1px dotted var(--accent);
  border-radius: var(--section-content-radius, 6px);
  background: var(--surface); color: var(--ink);
}
.media-results-bar .media-status { justify-self: start; color: var(--ink); }
.media-results-bar .media-pagination { justify-self: center; flex-wrap: wrap; }
.media-results-bar .media-page-status {
  justify-self: end; margin: 0; color: var(--muted); text-align: right;
}
@media (max-width: 850px) {
  .media-results-bar { grid-template-columns: minmax(0, 1fr); }
  .media-results-bar .media-status, .media-results-bar .media-pagination,
  .media-results-bar .media-page-status { justify-self: center; text-align: center; }
}

/* Two site footers: the identity bar rests on the helix supports; no folded corners. */
.footer .footer-peel { border-bottom: 2px solid var(--accent); border-radius: 5px 5px 0 0; }
.footer .footer-peel::before, .footer .footer-peel::after,
.footer .footer-corner-tab, .footer .footer-ink-bleed,
.final-site-footer .final-footer-label, .final-site-footer .final-footer-ink {
  content: none !important; display: none !important;
}
.final-site-footer::before, .final-site-footer::after {
  bottom: 100%; height: 34px;
  border-inline: 1px solid var(--accent);
}
.final-site-footer { display: flex; align-items: center; justify-content: center; min-height: 26px; height: auto; }
.final-site-footer:has(.local-site-notice:not([hidden])) { min-height: 48px; }
.local-site-notice { margin: 0; padding: 8px 16px; color: var(--muted); text-align: center; font-size: .78rem; }
.local-site-notice[hidden] { display: none; }
/* Each heading gets an actual complete configurable border, including forum headings. */
#content .forum-intro, #content .content-intro,
#content .shared-panel-intro, .page-heading {
  border: 1px var(--section-heading-border, dotted) var(--accent);
  border-radius: var(--section-heading-radius, 6px);
}

/* 2026 modular route/layout defaults: appearance menu overlays page headings. */
.site-header { position: relative; z-index: 50; border-left: 0; border-right: 0; }
.header-bottom, .header-top { overflow: visible; }
.appearance-studio-dropdown[open] { z-index: 1000; }
.appearance-studio-dropdown[open] .appearance-studio-form { z-index: 1001; }
.main-shell { position: relative; z-index: 1; }
/* Separate content canvas's existing dashed exterior from its children. */
body[data-design-section="dashboard"] .content-card-shell { border: 1px dashed var(--accent); }
body[data-design-section="dashboard"] .content-card-shell .content-card-summary { border: 0; box-shadow: none; }
/* Default solid borders; per-section settings can override each component. */
.page-heading, #content .content-intro, #content .shared-panel-intro, #content .forum-intro {
  border-style: var(--section-heading-border, solid);
}
#content .content-tabs, #content .custom-page-tabs { border-style: var(--section-tabs-border, solid); }
#content .content-hanging-note { border-style: var(--section-note-border, solid); }
#content .content-system, #content .forum-posts { border-style: var(--section-body-border, solid); }
#content .content-card, #content .entry-card, #content .media-tile,
#content .media-folder, #content .inventory-card { border-style: var(--section-card-border, solid); }
#content button, .management-section-tabs button { border-style: var(--section-button-border, solid); }
#content .forum-board-row, #content .forum-message-board { border-style: var(--section-board-border, solid); }
#content .forum-topic-row { border-style: var(--section-topic-border, solid); }
.component-design-preview { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap:10px;
  padding:14px; border:1px solid var(--accent); border-radius:8px; background:var(--surface); }
.component-design-preview > * { margin:0; padding:10px; border:1px solid var(--accent);
  background:var(--surface-alt); border-radius:4px; color:var(--ink); }
.component-design-preview > .component-preview-heading { grid-column:1/-1; }
/* Restore the small dangling peel tabs on the final footer only. */
.final-site-footer .final-footer-label { display:block !important; clip-path:polygon(0 0,100% 0,100% 100%) !important; }
.final-site-footer .final-footer-label-right { clip-path:polygon(0 0,100% 0,0 100%) !important; }

body[data-header-side-borders="true"] .site-header { border-left:1px solid var(--accent); border-right:1px solid var(--accent); }

/* Section-specific Management preview uses the same theme surfaces and border variables. */
.component-section-preview { display:grid; gap:10px; margin-top:12px; padding:14px;
  border:1px solid var(--accent); border-radius:8px; background:var(--surface); color:var(--ink); }
.component-section-preview-title { margin:0; padding:10px; border:1px solid var(--accent);
  background:var(--surface-alt); border-radius:6px; }
.component-section-preview > .component-preview-card { padding:10px; border:1px solid var(--accent);
  background:var(--surface-alt); color:var(--ink); border-radius:6px; }
.component-section-preview > .component-preview-card p { margin:5px 0 0; overflow-wrap:anywhere; }

/* Keep card ASCII fully within its chosen corner and the live preview. */
.content-card-summary .content-art{box-sizing:border-box;max-width:min(49%,calc(100% - 18px));max-height:calc(100% - 48px);overflow:auto;white-space:pre;font-size:clamp(8px,.7vw,11px);line-height:1.22}
.content-card-summary .content-art.art-bottom-right,.content-card-summary .content-art.art-bottom-left{bottom:41px!important}
.content-card-summary .content-art.art-top-right,.content-card-summary .content-art.art-top-left{top:10px!important}
.content-card-summary .content-art.art-center-right,.content-card-summary .content-art.art-center-left{top:50%;transform:translateY(-50%)}
.content-card-summary .content-art.art-top-left,.content-card-summary .content-art.art-center-left,.content-card-summary .content-art.art-bottom-left{left:10px!important;right:auto!important}
.content-card-summary .content-art.art-top-right,.content-card-summary .content-art.art-center-right,.content-card-summary .content-art.art-bottom-right{right:10px!important;left:auto!important}
.content-preview-ascii{display:block;max-width:100%;max-height:210px;overflow:auto;white-space:pre;font-size:clamp(9px,.85vw,12px);line-height:1.25}
/* The same compact publication affordance on every page footer. */
.final-site-footer .site-text-editor-ui{box-sizing:border-box;max-width:min(420px,calc(100% - 20px));width:max-content;margin:5px auto;padding:4px 8px;min-height:0}
.final-site-footer .site-text-editor-ui button{padding:4px 10px;min-height:28px;white-space:nowrap}
.final-site-footer .site-text-editor-ui [role="status"]{max-width:22ch;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Match the site's heading/body/footer tracks while retaining mobile breathing room. */
.final-site-footer{box-sizing:border-box;width:80%;max-width:none;margin-left:auto;margin-right:auto}
.final-site-footer::before{left:1px}.final-site-footer::after{right:1px}
@media(max-width:900px){.site-header,.main-shell,.final-site-footer{width:94%}}
@media(max-width:600px){.site-header,.main-shell,.final-site-footer{width:calc(100% - 18px)}}
