
@font-face { font-family: 'SpaceGrotesk'; src: url('/assets/fonts/spacegrotesk-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'SpaceGrotesk'; src: url('/assets/fonts/spacegrotesk-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'PlexMono'; src: url('/assets/fonts/plexmono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }

/* Neutral, hairline-delineated system — shadcn restraint, Base typography,
   a touch of macOS frosted depth. Dark theme: flat surfaces on near-black;
   structure comes from borders and space, not shadows. */
:root {
  --paper: #0a0a0b;                 /* page */
  --card: #111114;                  /* surfaces (delimited by hairline) */
  --sc: #1b1b1f;                    /* subtle fill: hover, active, wells */
  --sc-high: #27272c;               /* stronger fill: active indicator */
  --ink: #fafafa;                   /* foreground (near-white) */
  --on-ink: #0a0a0b;                /* text on top of a --ink fill */
  --ink-hover: #e4e4e7;             /* --ink fill hover */
  --muted: #9a9aa4;                 /* secondary text */
  --faint: #6b6b74;                 /* placeholders */
  --line: #262629;                  /* hairline borders / dividers */
  --outline: #3a3a42;               /* field borders */
  --outline-hover: #52525b;         /* field/border hover */
  --accent: #fafafa;
  --accent-ink: #fafafa;
  --r: 12px;                        /* cards, wells */
  --r-lg: 16px;                     /* large panels */
  --r-sm: 9px;                      /* buttons, inputs, badges */
  --ink-soft: #d4d4d8;              /* long-form prose */
  --ok: #65a30d;                    /* live / success */
  --ring: 0 0 0 3px rgba(250, 250, 250, .16);  /* focus ring */
  --lift: 0 2px 14px rgba(0, 0, 0, .5);        /* soft depth on hover */
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper); color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3 { font-family: 'SpaceGrotesk', system-ui, sans-serif; }
h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; margin: 40px 0 12px; }
h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.012em; margin: 44px 0 14px; }
h3 { font-size: 15px; font-weight: 600; margin: 24px 0 6px; }
p  { margin: 0 0 12px; }
a  { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* mono micro-labels — an editorial, non-generic accent */
.eyebrow, th, .tile .l {
  font-family: 'PlexMono', ui-monospace, monospace;
  text-transform: uppercase; letter-spacing: .1em;
}

.shell { max-width: 1180px; margin: 0 auto; padding: 40px 32px 120px; }
.shell.wide { max-width: 1400px; }
/* Frosted, translucent top app bar (macOS-style vibrancy) */
header.appbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 10, 11, .7);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.appbar-inner {
  max-width: 1400px; margin: 0 auto; height: 60px; padding: 0 32px;
  display: flex; align-items: center; gap: 18px;
}
@media (max-width: 640px) { .shell { padding: 28px 18px 80px; } .appbar-inner { padding: 0 18px; gap: 10px; } }
.wordmark {
  font-family: 'SpaceGrotesk', sans-serif; font-weight: 700; font-size: 17px;
  letter-spacing: .24em; text-decoration: none; line-height: 1;
  color: var(--ink);
}
.wordmark:hover { color: var(--muted); }
/* Editorial nav: plain text links, an active underline, a divider */
nav.main { display: flex; gap: 22px; align-items: center; margin-left: auto; }
nav.main a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px;
  white-space: nowrap; padding: 0;
}
nav.main a:hover { color: var(--ink); }
nav.main a.active { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; text-decoration-color: var(--ink); }
nav.main a.btn { color: var(--on-ink); text-decoration: none; }
nav.main a.btn:hover { color: var(--on-ink); }
.navsep { width: 1px; height: 22px; background: var(--line); }
nav.main a.account-link {
  display: inline-flex; align-items: center; min-width: 0;
  padding: 5px 11px; border-radius: var(--r-sm);
  background: var(--sc); border: 1px solid var(--line); text-decoration: none;
}
nav.main a.account-link:hover { background: var(--sc-high); border-color: var(--outline); }
nav.main a.account-link.active { color: var(--ink); border-color: var(--outline-hover); }
.account-name { max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.linkbtn { background: none; border: none; margin: 0; padding: 0; height: auto; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.linkbtn:hover { color: var(--ink); background: none; box-shadow: none; }
.btn.sm { height: 34px; padding: 0 15px; font-size: 13px; margin-top: 0; }
@media (max-width: 640px) { nav.main { gap: 14px; } nav.main a.active { text-decoration: none; } }
@media (max-width: 520px) { nav.main a[href="/tickets"] { display: none; } }
@media (max-width: 380px) { nav.main a[href="/"] { display: none; } }

.lede { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 60ch; margin-bottom: 32px; }

.category-section h2 { margin-top: 30px; }
.category-section .grid { margin-top: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 32px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; color: inherit; display: block;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--outline); box-shadow: var(--lift); transform: translateY(-2px); }
.card-primary { display: block; color: inherit; text-decoration: none; }
.card .cover {
  aspect-ratio: 8 / 5; width: 100%; height: auto; display: block;
  object-fit: contain; object-position: center; background: #050506;
  border-bottom: 1px solid var(--line);
}
.card .body { padding: 16px 18px 18px; }
.card .name { font-family: 'SpaceGrotesk', sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.card .sum { color: var(--muted); font-size: 14px; margin-top: 4px; min-height: 2.6em; }
.card .meta { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.card-links { display: flex; border-top: 1px solid var(--line); }
.card-links a { flex: 1; padding: 11px 18px; color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; text-decoration: none; }
.card-links a + a { border-left: 1px solid var(--line); }
.card-links a:hover { background: var(--sc); color: var(--ink); }

/* One box, one weight. Price and tier differ by text colour only, so the
   badge never competes with the plugin name or the download button. */
.pill {
  display: inline-flex; align-items: center; border-radius: var(--r-sm); padding: 2px 8px;
  font-family: 'PlexMono', ui-monospace, monospace; font-size: 11px; letter-spacing: .04em;
  border: 1px solid var(--line); background: var(--sc); color: var(--muted);
}
.pill.paid, .pill.request, .pill.ok { color: var(--ink); }
.pill.bad { color: var(--muted); }

.hero-cover {
  width: 100%; aspect-ratio: 8 / 5; display: block;
  object-fit: contain; object-position: center; border-radius: var(--r-lg);
  margin-top: 28px; background: #050506; border: 1px solid var(--line);
}

/* Public plugin sub-navigation and documentation workspace. */
.product-tabs {
  display: flex; align-items: center; gap: 24px; margin: -10px 0 34px;
  border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none;
}
.product-tabs::-webkit-scrollbar { display: none; }
.product-tabs a {
  position: relative; flex: 0 0 auto; padding: 14px 1px 13px; color: var(--muted);
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.product-tabs a:hover { color: var(--ink); }
.product-tabs a.active { color: var(--ink); }
.product-tabs a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: var(--ink); border-radius: 2px 2px 0 0;
}
.versions-section { scroll-margin-top: 84px; }
.plugin-head h1 { margin-top: 24px; }
.plugin-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 18px 0 0; }
.plugin-copy { max-width: 900px; margin-top: 30px; }
.plugin-copy p { margin-bottom: 16px; }
.landing-prose h2 { margin: 34px 0 13px; font-size: 25px; }
.landing-prose h3 { margin: 26px 0 11px; font-size: 19px; }
.landing-prose p { color: var(--ink-soft); line-height: 1.75; }
.landing-prose ul, .landing-prose ol { margin: 0 0 20px 22px; color: var(--ink-soft); }
.landing-prose li { margin-bottom: 7px; }
.plugin-requirements { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; }
.plugin-fact { padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.plugin-fact small { display: block; color: var(--muted); margin-bottom: 5px; }
.plugin-actions { margin-top: 26px; }
.versions-section h1 { margin-top: 24px; }

.docs-landing { max-width: 1060px; margin: 0 auto; }
.docs-landing-head { max-width: 720px; margin: 42px auto 0; text-align: center; }
.docs-landing-head h1 { margin-top: 10px; }
.docs-landing-head .lede { margin-left: auto; margin-right: auto; }
.docs-search {
  display: flex; align-items: center; width: 100%; max-width: 620px; height: 50px;
  margin: 26px auto 0; padding: 0 14px; gap: 10px; background: var(--card);
  border: 1px solid var(--outline); border-radius: var(--r); box-shadow: var(--lift);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.docs-search:focus-within { border-color: var(--ink); box-shadow: var(--ring); }
.docs-search > span { color: var(--muted); font-size: 21px; line-height: 1; transform: rotate(-18deg); }
.docs-search input { height: 46px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.docs-search input:hover, .docs-search input:focus { border: 0; box-shadow: none; }
.docs-search kbd {
  min-width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); background: var(--sc); border: 1px solid var(--line); border-radius: 6px;
  font-family: 'PlexMono', ui-monospace, monospace; font-size: 11px;
}
.docs-search.compact { height: 40px; margin: 22px 0 0; padding: 0 11px; box-shadow: none; border-radius: var(--r-sm); }
.docs-search.compact input { height: 38px; font-size: 13px; }
.docs-search.compact > span { font-size: 17px; }
.docs-search-status { min-height: 20px; margin-top: 7px; color: var(--muted); font-size: 12px; }
.docs-landing-head .docs-search-status { text-align: left; max-width: 620px; margin-left: auto; margin-right: auto; }
.docs-index-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 44px; }
.docs-index-card {
  display: flex; gap: 16px; min-height: 136px; padding: 20px; color: inherit; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.docs-index-card:hover { border-color: var(--outline-hover); transform: translateY(-2px); box-shadow: var(--lift); }
.docs-index-card[hidden] { display: none; }
.docs-index-icon, .docs-product > span {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 10px; background: var(--ink); color: var(--on-ink);
  font-family: 'SpaceGrotesk', sans-serif; font-size: 17px; font-weight: 700;
}
.docs-index-card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.docs-index-card strong { font-family: 'SpaceGrotesk', sans-serif; font-size: 16px; }
.docs-index-card small { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 4px; }
.docs-index-card em { color: var(--ink); font-size: 12px; font-style: normal; margin-top: auto; padding-top: 12px; }
.docs-no-results { padding: 60px 20px; text-align: center; color: var(--muted); }
.docs-no-results[hidden] { display: none; }
.docs-no-results h2 { color: var(--ink); margin: 0 0 6px; }

.docs-workspace {
  display: grid; grid-template-columns: 230px minmax(0, 760px) 190px; justify-content: center;
  gap: 52px; align-items: start;
}
.docs-sidebar, .docs-on-page { position: sticky; top: 88px; min-width: 0; }
.docs-back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 12px; margin-bottom: 20px; }
.docs-back:hover { color: var(--ink); }
.docs-product { display: flex; gap: 12px; align-items: center; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.docs-product > span { width: 38px; height: 38px; font-size: 15px; border-radius: 9px; }
.docs-product div { display: flex; flex-direction: column; min-width: 0; }
.docs-product strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'SpaceGrotesk', sans-serif; font-size: 14px; }
.docs-product small { color: var(--muted); font-size: 11px; }
.doc-tree { display: flex; flex-direction: column; margin-top: 22px; }
.doc-nav-label { color: var(--faint); font-family: 'PlexMono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 9px; }
.doc-tree-link, .doc-on-page-link {
  display: block; color: var(--muted); text-decoration: none; font-size: 12.5px; line-height: 1.4;
  padding: 7px 10px; margin-left: -10px; border-radius: 7px; border-left: 1px solid transparent;
}
.doc-tree-link.nested { padding-left: 22px; font-size: 12px; }
.doc-tree-link:hover, .doc-tree-link.active, .doc-on-page-link:hover, .doc-on-page-link.active { color: var(--ink); background: var(--sc); }
.doc-tree-empty { color: var(--faint); font-size: 12px; padding: 7px 0; }
.docs-article { min-width: 0; }
.docs-article-head { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.docs-article-head h1 { margin-top: 9px; }
.docs-article-head .lede { max-width: 680px; margin-bottom: 18px; }
.docs-article-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.docs-prose { max-width: 720px; }
.doc-section { padding-top: 34px; scroll-margin-top: 78px; }
.doc-section[hidden] { display: none; }
.doc-section h2, .doc-section h3 { margin: 0 0 14px; }
.doc-section h2 { font-size: 24px; }
.doc-section h3 { font-size: 18px; }
.doc-section h2 a, .doc-section h3 a { text-decoration: none; }
.doc-section h2 a:hover::after, .doc-section h3 a:hover::after { content: "  #"; color: var(--faint); font-weight: 400; }
.doc-section p { color: var(--ink-soft); line-height: 1.75; margin-bottom: 16px; }
.doc-section strong { color: var(--ink); }
.doc-section ul, .doc-section ol { margin: 0 0 18px 22px; color: var(--ink-soft); }
.doc-section li { padding-left: 4px; margin-bottom: 7px; }
.doc-section code { color: var(--ink); background: var(--sc); border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; }
.doc-section pre { position: relative; padding: 18px; margin: 18px 0 22px; line-height: 1.65; }
.doc-section pre code { padding: 0; background: transparent; border: 0; }
.doc-section blockquote { margin: 18px 0; padding: 14px 17px; border-left: 3px solid var(--outline-hover); background: var(--card); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.doc-section blockquote p { margin: 0; color: var(--muted); }
.doc-section hr { height: 1px; border: 0; background: var(--line); margin: 28px 0; }
.doc-image { margin: 22px 0 26px; }
.doc-image img { display: block; width: 100%; max-height: 620px; object-fit: contain; background: #080809; border: 1px solid var(--line); border-radius: var(--r); }
.doc-image figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.doc-video { margin: 24px 0 28px; }
.doc-video video, .doc-video-frame { display: block; width: 100%; background: #050505; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.doc-video video { max-height: 680px; }
.doc-video-frame { aspect-ratio: 16 / 9; }
.doc-video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.doc-video figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }
.doc-callout { margin: 20px 0; padding: 16px 18px; background: var(--sc); border: 1px solid var(--outline); border-left: 3px solid var(--ink); border-radius: var(--r-sm); }
.doc-callout strong { display: block; margin-bottom: 4px; font-family: 'SpaceGrotesk', sans-serif; font-size: 13px; }
.doc-callout p { margin: 0; color: var(--ink-soft); }
.doc-callout.warning { border-left-color: #f59e0b; }
.doc-action { margin: 20px 0 24px; }
.doc-action .btn { gap: 9px; margin: 0; }
.doc-table-wrap { width: 100%; overflow-x: auto; margin: 20px 0 24px; border-radius: var(--r); }
.doc-table-wrap table { min-width: 480px; margin: 0; }
.docs-on-page { display: flex; flex-direction: column; padding-left: 16px; border-left: 1px solid var(--line); }
.doc-on-page-link { margin-left: -9px; padding-top: 5px; padding-bottom: 5px; font-size: 11.5px; }
.doc-on-page-link.nested { padding-left: 18px; }
.doc-help-link { color: var(--muted); font-size: 11.5px; text-decoration: none; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.doc-help-link:hover { color: var(--ink); }
.docs-empty { margin-top: 34px; padding: 44px 32px; text-align: center; border: 1px dashed var(--outline); border-radius: var(--r); background: var(--card); }
.docs-empty-mark { color: var(--muted); font-size: 30px; }
.docs-empty h2 { margin: 10px 0 5px; }
.docs-empty p { color: var(--muted); }
@media (max-width: 1080px) {
  .docs-workspace { grid-template-columns: 210px minmax(0, 1fr); gap: 38px; }
  .docs-on-page { display: none; }
}
@media (max-width: 760px) {
  .product-tabs { margin-top: -2px; }
  .docs-workspace { display: block; }
  .docs-sidebar { position: static; margin-bottom: 34px; }
  .doc-tree { flex-direction: row; gap: 5px; overflow-x: auto; padding-bottom: 8px; }
  .doc-tree .doc-nav-label, .doc-tree-empty { display: none; }
  .doc-tree-link, .doc-tree-link.nested { flex: 0 0 auto; margin: 0; padding: 7px 10px; border: 1px solid var(--line); }
  .docs-article-head h1 { margin-top: 8px; }
  .docs-index-grid { grid-template-columns: 1fr; }
}

/* Full documentation authoring workspace. */
.doc-editor-panel > .panel-body { padding: 0; }
.doc-preview-link { color: var(--muted); font-size: 12px; text-decoration: none; }
.doc-preview-link:hover { color: var(--ink); }
.doc-editor { overflow: hidden; background: #0d0d0f; }
.doc-editor-topbar { min-height: 52px; padding: 8px 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: var(--card); }
.doc-editor-tools { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; }
.doc-editor button { margin: 0; box-shadow: none; }
.editor-tool { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; color: var(--muted); background: transparent; border-color: transparent; border-radius: 7px; font-family: 'Inter', sans-serif; }
.editor-tool:hover { color: var(--ink); background: var(--sc-high); border-color: var(--line); box-shadow: none; }
.editor-tool-text { width: auto; min-width: 34px; padding: 0 8px; font-family: 'PlexMono', monospace; font-size: 11px; }
.editor-tool-separator { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.doc-view-switch { display: flex; flex: 0 0 auto; padding: 3px; background: var(--sc); border: 1px solid var(--line); border-radius: 8px; }
.doc-view-switch button { height: 27px; padding: 0 9px; color: var(--muted); background: transparent; border: 0; border-radius: 6px; font-size: 11px; font-weight: 500; }
.doc-view-switch button:hover, .doc-view-switch button.active { color: var(--ink); background: var(--sc-high); }
.doc-editor-workspace { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr) 150px; min-height: 610px; }
.doc-source-pane, .doc-preview-pane, .doc-block-library { min-width: 0; }
.doc-source-pane, .doc-preview-pane { display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.doc-pane-label { height: 36px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; color: var(--faint); background: #0f0f11; border-bottom: 1px solid var(--line); font-family: 'PlexMono', monospace; font-size: 9px; letter-spacing: .09em; text-transform: uppercase; }
.doc-source-pane textarea { flex: 1 1 auto; min-height: 574px; resize: none; padding: 22px; border: 0; border-radius: 0; background: #0d0d0f; font-family: 'PlexMono', monospace; font-size: 13px; line-height: 1.75; tab-size: 2; }
.doc-source-pane textarea:hover, .doc-source-pane textarea:focus { border: 0; box-shadow: inset 0 0 0 1px transparent; }
.doc-preview-pane { background: var(--paper); }
.doc-editor-preview { flex: 1 1 auto; max-width: none; min-height: 574px; max-height: 720px; overflow-y: auto; padding: 24px; }
.doc-editor-preview h2 { margin: 8px 0 13px; font-size: 22px; }
.doc-editor-preview h3 { margin: 24px 0 9px; font-size: 16px; }
.doc-editor-preview p { color: var(--ink-soft); line-height: 1.72; margin-bottom: 14px; }
.doc-editor-preview ul, .doc-editor-preview ol { margin: 0 0 18px 20px; color: var(--ink-soft); }
.doc-editor-preview pre { overflow-x: auto; padding: 15px; margin: 16px 0; }
.doc-editor-preview blockquote { margin: 16px 0; padding: 12px 15px; border-left: 3px solid var(--outline-hover); background: var(--card); }
.doc-editor-preview blockquote p { margin: 0; }
.doc-editor-empty { display: grid; min-height: 420px; place-content: center; padding: 30px; text-align: center; color: var(--muted); }
.doc-editor-empty strong { display: block; color: var(--ink); margin-bottom: 4px; font-family: 'SpaceGrotesk', sans-serif; }
.doc-block-library { padding-bottom: 14px; background: var(--card); }
.doc-block-library > button { display: grid; grid-template-columns: 25px 1fr; width: calc(100% - 14px); height: auto; min-height: 49px; margin: 7px 7px 0; padding: 8px; color: var(--ink); text-align: left; background: transparent; border-color: transparent; }
.doc-block-library > button:hover { background: var(--sc); border-color: var(--line); }
.doc-block-library > button > span { grid-row: 1 / 3; align-self: center; color: var(--muted); font-size: 15px; }
.doc-block-library > button strong { font-size: 11px; line-height: 1.3; }
.doc-block-library > button small { color: var(--faint); font-size: 9px; line-height: 1.3; }
.doc-outline { margin: 18px 10px 0; padding-top: 16px; border-top: 1px solid var(--line); }
.doc-outline nav { display: flex; flex-direction: column; }
.doc-outline a { overflow: hidden; padding: 4px 0; color: var(--muted); font-size: 10px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.doc-outline a.nested { padding-left: 10px; color: var(--faint); }
.doc-outline a:hover { color: var(--ink); }
.doc-editor-footer { min-height: 38px; padding: 0 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--faint); border-top: 1px solid var(--line); background: var(--card); font-size: 10px; }
.doc-publish-bar { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); background: var(--card); }
.doc-publish-bar div { display: flex; flex-direction: column; }
.doc-publish-bar strong { font-size: 13px; }
.doc-publish-bar small { color: var(--muted); font-size: 11px; }
.doc-publish-bar button { margin: 0; }
.doc-editor.is-uploading [data-md-image-trigger], .doc-editor.is-uploading [data-md-video-trigger] { opacity: .45; pointer-events: none; }
.doc-editor[data-view="write"] .doc-preview-pane, .doc-editor[data-view="write"] .doc-block-library { display: none; }
.doc-editor[data-view="write"] .doc-editor-workspace { grid-template-columns: 1fr; }
.doc-editor[data-view="preview"] .doc-source-pane, .doc-editor[data-view="preview"] .doc-block-library { display: none; }
.doc-editor[data-view="preview"] .doc-editor-workspace { grid-template-columns: 1fr; }
@media (max-width: 1120px) {
  .doc-editor-workspace { grid-template-columns: minmax(260px, 1fr) minmax(260px, 1fr); }
  .doc-block-library { display: none; }
}
@media (max-width: 760px) {
  .doc-editor-topbar { align-items: flex-start; flex-direction: column; }
  .doc-editor-workspace { grid-template-columns: 1fr; }
  .doc-preview-pane { display: none; }
  .doc-editor[data-view="preview"] .doc-preview-pane { display: flex; }
  .doc-source-pane textarea, .doc-editor-preview { min-height: 480px; }
  .doc-publish-bar { align-items: stretch; flex-direction: column; }
}

table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
th { font-size: 11px; color: var(--muted); background: var(--sc); font-weight: 500; }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border-radius: var(--r); }
.table-wrap table { min-width: 760px; }

form.stack { max-width: 460px; margin-top: 16px; }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid label { margin-top: 0; }
.release-review-form { width: 100%; max-width: none; }
.release-review-form > label { margin-top: 20px; }
.plugin-settings-form { width: 100%; max-width: 980px; display: flex; flex-direction: column; gap: 0; }
.settings-group { padding: 4px 0 26px; }
.settings-group + .settings-group { padding-top: 26px; border-top: 1px solid var(--line); }
.settings-group-head { margin-bottom: 18px; }
.settings-group-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.settings-group-head p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }
.settings-field { display: flex; flex-direction: column; gap: 7px; margin: 0; min-width: 0; }
.settings-field > span { font-size: 13px; font-weight: 500; }
.settings-field > small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.45; }
.settings-group > .settings-field { margin-top: 18px; }
.settings-readonly {
  min-height: 66px; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--sc); display: flex; flex-direction: column; justify-content: center; gap: 3px;
}
.settings-readonly strong { font-size: 14px; }
.settings-readonly small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; }
.settings-check {
  min-height: 66px; display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 13px;
  border: 1px solid var(--outline); border-radius: var(--r-sm); cursor: pointer;
}
.settings-check:hover { border-color: var(--outline-hover); background: var(--sc); }
.settings-check input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.settings-check span { display: flex; flex-direction: column; gap: 2px; }
.settings-check strong { font-size: 13px; }
.settings-check small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.35; }
.settings-actions { display: flex; justify-content: flex-end; padding-top: 22px; border-top: 1px solid var(--line); }
.settings-actions button { margin: 0; }
.locked-field {
  min-width: 0; min-height: 72px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sc);
  display: flex; flex-direction: column; justify-content: center;
}
.locked-field span, .locked-field small { color: var(--muted); font-size: 12px; }
.locked-field strong { overflow-wrap: anywhere; }
.creation-panel { max-width: 780px; }
.repository-create-form { max-width: none; }
label { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 7px; color: var(--ink); }
/* shadcn-style outlined inputs with a soft focus ring */
input, select, textarea {
  width: 100%; border: 1px solid var(--outline); background: var(--card); color: var(--ink);
  padding: 10px 13px; font: inherit; font-size: 14px; border-radius: var(--r-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: var(--outline-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
/* buttons: solid rectangle (not pill), light fill on dark */
button {
  margin-top: 18px; border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
  padding: 0 18px; height: 40px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  border-radius: var(--r-sm); transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
button:hover { background: var(--ink-hover); border-color: var(--ink-hover); box-shadow: var(--lift); }
button:disabled, input:disabled, select:disabled { opacity: .55; cursor: not-allowed; }
button.ghost {
  background: transparent; color: var(--ink); border: 1px solid var(--outline);
  margin-top: 0; height: 34px; padding: 0 14px; font-size: 13px; font-weight: 500; box-shadow: none;
}
button.ghost:hover { border-color: var(--outline-hover); background: var(--sc); box-shadow: none; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--on-ink); text-decoration: none; border: 1px solid var(--ink);
  padding: 0 18px; height: 40px; font-size: 14px; font-weight: 600; border-radius: var(--r-sm); margin-top: 12px;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--ink-hover); border-color: var(--ink-hover); box-shadow: var(--lift); }
/* secondary (tonal/outline) button */
.btn.tonal { background: var(--sc); color: var(--ink); border-color: var(--line); }
.btn.tonal:hover { background: var(--sc-high); border-color: var(--outline); }
/* primary action with a leading glyph — a button, not a floating FAB */
.fab { height: 44px; padding: 0 20px; margin: 0; gap: 8px; font-size: 14px; border-radius: var(--r-sm); }
.fab .plus { font-size: 18px; line-height: 1; font-weight: 400; }
.oauth { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.oauth + .dim { margin-top: 10px; }
form.stack + .dim { margin-top: 16px; }
.oauth a {
  display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--outline);
  background: var(--card); border-radius: var(--r-sm); padding: 9px 16px; font-weight: 500; font-size: 14px;
}
.oauth a:hover { border-color: var(--outline-hover); background: var(--sc); }

.msg { background: var(--card); border: 1px solid var(--line); border-left: 2px solid var(--ink); border-radius: var(--r-sm); padding: 13px 16px; margin-top: 26px; font-size: 14px; }
.key, code { font-family: 'PlexMono', ui-monospace, monospace; font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.licence-help { display: flex; gap: 8px 18px; align-items: baseline; flex-wrap: wrap; background: var(--sc); }
.licence-help span { color: var(--muted); font-size: 13px; flex: 1 1 420px; }
.usb-registration-code { display: flex; align-items: center; gap: 10px; min-width: 250px; }
.usb-registration-code code { overflow-wrap: anywhere; }
button.copy-code {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 32px; height: 32px; margin: 0; padding: 0; background: transparent; color: var(--muted);
  border: 1px solid var(--outline); box-shadow: none;
}
button.copy-code:hover { color: var(--ink); background: var(--sc); border-color: var(--outline-hover); box-shadow: none; }
button.copy-code:focus-visible { outline: none; border-color: var(--ink); box-shadow: var(--ring); }
.copy-code svg { width: 16px; height: 16px; }
.copy-code .copied-icon { display: none; }
.copy-code[data-copied="true"] { color: var(--ok); border-color: var(--ok); }
.copy-code[data-copied="true"] .copy-icon { display: none; }
.copy-code[data-copied="true"] .copied-icon { display: block; }
pre { font-family: 'PlexMono', ui-monospace, monospace; font-size: 13px; background: var(--sc); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; overflow-x: auto; margin: 12px 0 18px; }
.dim { color: var(--muted); font-size: 13px; }
.inline-form { display: inline-flex; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 20px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tabs a { display: inline-flex; gap: 7px; align-items: center; height: 36px; padding: 0 12px; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; }
.tabs a:hover { color: var(--ink); background: var(--sc); }
.tabs a.active { color: var(--ink); background: var(--sc); }
.tabs .count { color: var(--faint); font-family: 'PlexMono', ui-monospace, monospace; font-size: 11px; }
.account-tabs { margin-top: 24px; }
.account-section { margin-top: 24px; }
.user-actions { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.action-menu { position: static; }
.action-menu summary { list-style: none; cursor: pointer; color: var(--ink); border: 1px solid var(--outline); border-radius: var(--r-sm); padding: 6px 11px; font-size: 13px; }
.action-menu summary::-webkit-details-marker { display: none; }
.action-menu[open] summary { background: var(--sc); border-color: var(--outline-hover); }
.action-menu-items { width: 190px; margin-top: 6px; padding: 8px; background: var(--card); border: 1px solid var(--outline); border-radius: var(--r-sm); box-shadow: var(--lift); display: grid; gap: 6px; }
.action-menu-items .inline-form { display: flex; width: 100%; }
.action-menu-items button { width: 100%; justify-content: flex-start; }
.gitea-state { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 14px 0 20px; color: var(--muted); font-size: 13px; }
.gitea-prepare label { margin-top: 0; }
.control-row { display: flex; gap: 10px; align-items: stretch; }
.control-row input { flex: 1 1 280px; min-width: 0; }
.control-row button { margin-top: 0; white-space: nowrap; }
.gitea-release-fields { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(150px, .45fr) auto; gap: 10px; align-items: end; }
.gitea-release-fields label { margin-top: 0; }
.gitea-release-fields input { margin-top: 7px; }
.gitea-release-fields button { margin-top: 0; white-space: nowrap; }
.delivery-detail { max-width: 440px; margin-top: 5px; overflow-wrap: anywhere; }
.section-head.compact { margin-top: 28px; }
@media (max-width: 560px) {
  .control-row { align-items: stretch; flex-direction: column; }
  .control-row input { flex: 0 0 auto; height: 40px; }
  .gitea-release-fields { grid-template-columns: 1fr; }
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* Admin: quiet sidebar + wide content, all flat */
.admin-shell { display: flex; gap: 40px; align-items: flex-start; margin-top: 20px; }
.rail {
  position: sticky; top: 84px; flex: 0 0 200px;
  display: flex; flex-direction: column; gap: 2px;
}
.rail a {
  display: flex; align-items: center; height: 40px; padding: 0 14px;
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 14px;
  border-radius: var(--r-sm); transition: background .12s ease, color .12s ease;
}
.rail a:hover { background: var(--sc); color: var(--ink); }
.rail a.active { background: var(--sc); color: var(--ink); font-weight: 600; }
.admin-content { flex: 1 1 auto; min-width: 0; }
.admin-content > h1:first-child, .section-head:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .admin-shell { flex-direction: column; gap: 20px; }
  .rail { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .admin-content { width: 100%; max-width: 100%; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 14px; margin: 24px 0 8px; }
.tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 20px 18px; text-decoration: none; color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.tile:hover { border-color: var(--outline); box-shadow: var(--lift); transform: translateY(-2px); }
.tile .n { font-family: 'SpaceGrotesk', sans-serif; font-weight: 700; font-size: 34px; line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tile .l { color: var(--muted); font-size: 11px; margin-top: 10px; }
.back { display: inline-block; color: var(--muted); font-size: 14px; text-decoration: none; margin: 0 0 20px; }
.back:hover { color: var(--ink); }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 6px; }
.section-head h1 { margin: 0; }
.section-head .lede { margin-bottom: 0; }
@media (max-width: 560px) {
  .rail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
  .rail a { flex: 0 0 auto; }
  .section-head { align-items: flex-start; flex-direction: column; }
}

/* each plugin as its own flat, bordered row */
.plugin-list { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.plugin-row {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; transition: border-color .15s ease, box-shadow .15s ease;
}
.plugin-row:hover { border-color: var(--outline); box-shadow: var(--lift); }
.plugin-row .pr-title { font-family: 'SpaceGrotesk', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.plugin-row .pr-title a { text-decoration: none; }
.plugin-row .pr-meta { color: var(--muted); font-size: 13px; margin-top: 7px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.plugin-row > div:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.plugin-row .pr-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.icon-link { width: 40px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.icon-link svg { width: 17px; height: 17px; }
.plugin-row details { max-width: 100%; }
.plugin-row pre { max-width: 100%; overflow: auto; }
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); gap: 18px; align-items: start; }
.review-sidebar { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 84px; min-width: 0; }
.review-sidebar code { display: block; overflow-wrap: anywhere; font-size: 11px; }
.review-meta-label { margin-top: 16px; }
.review-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-actions button { margin-top: 0; }
.build-details { margin-top: 18px; max-width: 100%; }
.build-details pre { max-width: 100%; overflow: auto; }
@media (max-width: 900px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); }
  .review-sidebar { position: static; }
}
@media (max-width: 640px) {
  .form-grid.two { grid-template-columns: minmax(0, 1fr); }
  .plugin-row { align-items: stretch; flex-direction: column; }
  .plugin-row .pr-actions { justify-content: flex-start; }
}

/* per-plugin shared task list */
.tasks { list-style: none; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.tasks li {
  display: flex; align-items: center; gap: 12px;
  background: var(--sc); border-radius: var(--r-sm); padding: 10px 14px;
}
.tasks li.done { opacity: .6; }
.tasks li.done .t-body { text-decoration: line-through; color: var(--muted); }
.tasks .t-body { flex: 1 1 auto; min-width: 0; }
.tasks .t-who { color: var(--muted); font-size: 12px; white-space: nowrap; }
.tasks .icon-btn { margin: 0; height: 30px; min-width: 30px; padding: 0 9px; font-size: 14px; border-radius: var(--r-sm); }
.card-pane { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.ticket-thread { display: flex; flex-direction: column; gap: 12px; }
.ticket-message { background: var(--sc); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; }
.ticket-message.admin { border-color: var(--outline); }
.ticket-message p { margin-bottom: 0; }
.msg-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-meta strong { color: var(--ink); font-size: 13px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 3px rgba(101, 163, 13, .14); }
.live-dot.stale::before { background: var(--faint); box-shadow: none; }

/* Structured section panel — a bordered card with a header and body,
   used to group forms/tables into clear blocks (account, admin forms). */
.panels { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; }
.panel-head + table, .panel-head + .panel-body { border-top: 1px solid var(--line); }
.panel-head h2 { font-family: 'SpaceGrotesk', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: -0.005em; margin: 0; }
.panel-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.panel-body { padding: 18px 20px; }
.panel-body > *:first-child { margin-top: 0; }
.panel-body form.stack { max-width: none; margin-top: 0; }
.panel-body form.stack > label:first-of-type { margin-top: 0; }
/* tables sit flush inside a panel — the panel supplies the frame */
.panel table { border: none; border-radius: 0; margin: 0; }
.license-usb-list { display: flex; flex-direction: column; gap: 8px; min-width: 250px; }
.license-usb {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sc);
}
.license-usb strong { display: block; font-size: 13px; }
.license-usb .key { margin-top: 3px; font-size: 10px; }
.license-usb-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.license-usb-actions button { margin-top: 0; }
.panel table + .panel-body { border-top: 1px solid var(--line); }
.panel table th, .panel table td { padding-left: 20px; padding-right: 20px; }
/* compact inline form: one field + a button on a row */
/* Modal used for creating things, so a list page stays a list page. */
dialog {
  /* the global reset zeroes margin, which is what centres a modal dialog */
  margin: auto; width: min(520px, calc(100vw - 32px)); padding: 20px 22px 22px; color: var(--ink);
  background: var(--card); border: 1px solid var(--outline); border-radius: var(--r);
  box-shadow: var(--lift);
}
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog form.stack { max-width: none; margin-top: 0; }
dialog form.stack > label:first-of-type { margin-top: 0; }
.dialog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dialog-head h2 { font-family: 'SpaceGrotesk', sans-serif; font-size: 15px; font-weight: 600; margin: 0; }
.row-actions { display: flex; gap: 12px; align-items: center; white-space: nowrap; }
td.key { white-space: nowrap; }
.row-actions a { color: var(--muted); font-size: 13px; text-decoration: none; }
.row-actions a:hover { color: var(--ink); }
.row-actions button { margin: 0; }
/* Checkbox list used where a set is picked from the catalogue, not typed. */
.pick { border: 1px solid var(--outline); border-radius: var(--r-sm); overflow: hidden; max-height: 260px; overflow-y: auto; }
.pick-row {
  display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 12px;
  font-weight: 400; cursor: pointer; border-bottom: 1px solid var(--line);
}
.pick-row:last-child { border-bottom: 0; }
.pick-row:hover { background: var(--sc); }
.pick-row input { width: auto; margin: 0; flex: 0 0 auto; accent-color: var(--ink); }
.pick-row span:nth-of-type(2) { margin-left: auto; font-size: 12px; }
.pick:empty { display: none; }
.grants { display: flex; gap: 6px; flex-wrap: wrap; }
.row-form { display: flex; gap: 10px; align-items: stretch; }
.row-form input { flex: 1 1 auto; }
.row-form button { margin: 0; flex: 0 0 auto; }
@media (max-width: 520px) { .row-form { flex-direction: column; } }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin-top: 12px; }
.faq-item h3 { margin-top: 0; }
footer {
  max-width: 1180px; margin: 40px auto 0; padding: 28px 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; display: flex; gap: 18px; flex-wrap: wrap;
}
footer a { color: var(--muted); }
