:root {
  color-scheme: dark;
  --bg: #141918;
  --surface: #1d2422;
  --surface-raised: #252e2a;
  --text: #edf2ef;
  --muted: #abb8b0;
  --line: #39453e;
  --accent: #9cdaa8;
  --accent-soft: #293f30;
  --accent-ink: #102317;
  --warning: #efce91;
  --shadow: 0 12px 34px rgb(0 0 0 / 16%);
  --radius: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-synthesis: none;
}

body[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f4f0;
  --surface: #fff;
  --surface-raised: #f4f7f3;
  --text: #1b2921;
  --muted: #55665b;
  --line: #d3ddd3;
  --accent: #22663b;
  --accent-soft: #e4efe5;
  --accent-ink: #fff;
  --warning: #79501c;
  --shadow: 0 12px 34px rgb(26 47 33 / 6%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; min-width: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button:disabled { opacity: .55; cursor: not-allowed; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--text); line-height: 1.2; }
h1 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.035em; }
h2 { font-size: 25px; letter-spacing: -.02em; }
h3 { font-size: 19px; }
code, pre, .project-version, .file-meta, .release-current { font-family: Consolas, "Courier New", monospace; }
svg { flex-shrink: 0; }

.page-wrapper { width: min(1240px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 200; transform: translateY(calc(-100% - 20px)); padding: 10px 16px; border: 1px solid var(--accent); border-radius: 7px; background: var(--surface); color: var(--accent); box-shadow: var(--shadow); font-weight: 650; }
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 88px;
  padding: 18px max(32px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header.page-wrapper { padding-inline: 0; background: transparent; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; flex-shrink: 0; }
.brand-mark {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--accent);
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 19px;
  font-weight: 750;
  line-height: 1;
}
.brand-mark span { margin-top: 8px; font-size: 12px; }
.brand-name { display: block; font-size: 19px; font-weight: 750; line-height: 1.25; letter-spacing: -.025em; }
.brand-name span { color: var(--accent); font-weight: 500; }
.brand-subtitle { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.top-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
.top-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
}
.icon-button:hover { background: var(--surface-raised); border-color: var(--muted); }
.icon-button svg { width: 20px; height: 20px; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
}
.button:hover { border-color: var(--muted); text-decoration: none; }
.button.primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.button.primary:hover { filter: brightness(1.07); }
.button.quiet { background: transparent; }
.button.small { padding-inline: 13px; font-size: 13px; }
.button svg { width: 17px; height: 17px; }

.intro { position: relative; padding: 35px 0 32px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.eyebrow { margin: 0 0 9px; color: var(--accent); font-size: 12px; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.intro h1 { max-width: 780px; margin: 0 0 12px; }
.intro-description { max-width: 710px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.intro-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; }
.intro-badge > span { color: var(--accent); font-family: Consolas, monospace; font-size: 20px; font-weight: 700; }
.intro-badge small { font-size: 12px; letter-spacing: .025em; }
.catalog-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 48px; }
.sidebar { position: sticky; top: 24px; min-width: 0; }
.mobile-category-filter { display: none; }
.sidebar-title { margin: 0 0 12px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.category-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.category-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  text-align: left;
}
.category-button:hover { color: var(--text); background: var(--surface); }
.category-button[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); border-color: var(--line); font-weight: 650; }
.category-button span:last-child { font-size: 12px; font-weight: 500; }
.sidebar-footer { margin-top: 24px; padding: 18px 12px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.sidebar-footer p { margin-bottom: 10px; }
.catalog-main { min-width: 0; }
.catalog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.catalog-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; font-size: 23px; }
.catalog-title h2 { margin: 0; font-size: 23px; }
.result-count { margin: 6px 0 0; color: var(--muted); font-size: 13px; font-weight: 400; }
.search-field { position: relative; display: flex; align-items: center; width: 320px; max-width: 100%; }
.search-field svg, .search-field > span { position: absolute; left: 13px; width: 18px; height: 18px; color: var(--muted); pointer-events: none; line-height: 18px; font-size: 24px; }
.search-field input { width: 100%; min-height: 44px; padding: 10px 13px 10px 39px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; }
.filter-chip { min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; }
.filter-chip:hover { color: var(--text); background: var(--surface); }
.filter-chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.project-list { display: grid; gap: 12px; }
.project-card { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.project-card:hover { border-color: var(--muted); }
.project-card > .project-icon { grid-column: 1; grid-row: 1 / span 2; }
.project-card-content { grid-column: 2; min-width: 0; }
.project-card > .project-actions { grid-column: 2; }
.project-card-content .project-heading { align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 7px; }
.project-card-content .project-label { margin: 0; }
.project-card-content .project-title { margin-bottom: 10px; }
.verification-summary { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.project-heading { display: flex; align-items: start; gap: 14px; margin-bottom: 12px; min-width: 0; }
.project-heading > :not(.project-icon) { min-width: 0; }
.project-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-raised); color: var(--accent); font-family: Consolas, monospace; font-size: 17px; font-weight: 700; }
.project-icon svg { width: 23px; height: 23px; }
.project-label { margin: 0 0 4px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.project-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; font-size: 21px; line-height: 1.35; letter-spacing: -.02em; overflow-wrap: anywhere; }
.project-title a { color: var(--text); text-decoration: none; }
.project-title a:hover { color: var(--accent); }
.project-version { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; white-space: nowrap; letter-spacing: 0; }
.project-description { max-width: 760px; margin: 0 0 17px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }
.tag { display: inline-flex; align-items: center; min-height: 25px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-raised); color: var(--muted); font-size: 12px; line-height: 1.5; white-space: normal; }
.project-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.empty-state { padding: 48px 24px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); background: var(--surface); }
.empty-state h3 { margin-bottom: 8px; }
.empty-state p:last-child { margin-bottom: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.section-heading h2 { margin: 0; }
.section-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.about-section { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 40px; padding: 32px 0; margin-bottom: 28px; border-top: 1px solid var(--line); }
.about-section h2 { margin-bottom: 0; font-size: 27px; }
.about-section p { margin-bottom: 13px; }
.about-section > div > :last-child { margin-bottom: 0; }
.friends-section { padding: 0 0 32px; margin-bottom: 16px; }
.friends-section .section-heading { margin-bottom: 16px; }
.friends-section h2 { font-size: 25px; }
.friends-section .eyebrow { margin-bottom: 8px; }
.friends-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.friend-card { display: flex; align-items: center; gap: 15px; min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.friend-card:hover { border-color: var(--muted); text-decoration: none; }
.friend-card > span:last-child { min-width: 0; }
.friend-card strong { display: block; font-size: 17px; }
.friend-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.friend-symbol { display: grid; place-items: center; flex: 0 0 52px; width: 52px; height: 52px; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-family: Consolas, monospace; font-size: 15px; font-weight: 700; }
.friend-domain { display: block; margin-top: 7px; color: var(--accent); font-size: 12px; overflow-wrap: anywhere; }
.support-section { display: grid; grid-template-columns: minmax(0, 1fr) 200px; align-items: center; gap: 36px; padding: 27px 30px; margin-bottom: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.support-section > div { min-width: 0; }
.support-section h2 { margin-bottom: 8px; font-size: 22px; }
.support-section p { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.support-section p + p { margin-top: 12px; }
.support-section .eyebrow { margin-bottom: 8px; color: var(--accent); font-size: 12px; }
.support-section p.muted { font-size: 13px; line-height: 1.7; }
.support-section .button { margin-top: 21px; }
.support-qr { display: flex; align-items: center; flex-direction: column; }
.support-qr img { width: 200px; padding: 12px; border-radius: 8px; background: #fff; }
.support-qr p { margin-top: 9px; font-size: 12px; text-align: center; }
.support-section.support-section--compact { grid-template-columns: minmax(0, 1fr) auto 112px; gap: 24px; padding: 20px 24px; margin-bottom: 28px; }
.support-section--compact h2 { margin: 0 0 6px; font-size: 20px; }
.support-section--compact p { font-size: 14px; line-height: 1.65; }
.support-section--compact p + p { margin-top: 8px; }
.support-section--compact .button { margin-top: 0; white-space: nowrap; }
.support-section--compact .support-qr img { width: 112px; height: 112px; padding: 6px; }
.support-section--compact .support-qr p { margin-top: 6px; font-size: 11px; }
.support-terms { margin-top: 8px; }
.support-terms summary { width: fit-content; color: var(--muted); font-size: 12px; cursor: pointer; }
.support-terms summary:hover { color: var(--accent); }
.support-terms[open] summary { margin-bottom: 8px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding: 25px 0 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--muted); }
.footer-counters { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 20px; }
.download-count { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.download-count strong { color: var(--text); font-weight: 600; }
.visit-count { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 13px; font-size: 12px; }
.visit-count > span:first-child { color: var(--text); }
.visit-count strong { color: var(--text); font-weight: 600; }

.project-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 25px 0 26px; color: var(--muted); font-size: 13px; }
.project-breadcrumb a { color: var(--muted); text-decoration: none; }
.project-breadcrumb a:hover { color: var(--accent); }
.project-header { margin-bottom: 28px; }
.project-header > .project-heading { align-items: center; flex-wrap: wrap; gap: 10px; }
.project-header .project-label { margin: 0; }
.project-header h1 { margin-bottom: 13px; overflow-wrap: anywhere; }
.version-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-left: auto; color: var(--muted); font-size: 13px; }
.version-switch select { min-width: 0; max-width: 220px; min-height: 44px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--text); font-size: 13px; }
.lead { max-width: 850px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.project-passport { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.passport-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding: 16px 20px; background: var(--surface); }
.passport-item label, .passport-item > span { color: var(--muted); font-size: 12px; }
.passport-item strong { font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.project-columns { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-bottom: 40px; }
.article-pane { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.project-tabs { display: flex; align-items: stretch; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 20px; scrollbar-width: thin; }
.project-tabs button { flex: 0 0 auto; min-height: 55px; padding: 13px 16px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; }
.project-tabs button:hover { color: var(--text); }
.project-tabs button[aria-selected="true"] { border-bottom-color: var(--accent); color: var(--accent); }
.article-content { padding: 28px; overflow-wrap: anywhere; }
.article-content > :last-child, .article-section > :last-child { margin-bottom: 0; }
.article-content h2 { margin-top: 32px; margin-bottom: 15px; font-size: 24px; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin-top: 25px; margin-bottom: 12px; font-size: 19px; }
.article-content p { margin-bottom: 18px; line-height: 1.8; }
.article-content ul, .article-content ol { padding-left: 23px; margin: 0 0 20px; }
.article-content li { margin-bottom: 8px; padding-left: 3px; }
.article-content li::marker { color: var(--accent); }
.article-content pre, .feedback-result pre { margin: 20px 0; padding: 18px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font-size: 13px; line-height: 1.7; tab-size: 2; white-space: pre; }
.article-content code { padding: 2px 5px; border-radius: 4px; background: var(--surface-raised); color: var(--accent); font-size: .875em; overflow-wrap: anywhere; }
.article-content pre code { padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; overflow-wrap: normal; }
.article-content a { overflow-wrap: anywhere; }
.article-figure { margin: 24px 0; }
.article-figure img { width: 100%; max-height: 680px; object-fit: contain; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.article-figure figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.article-section { scroll-margin-top: 24px; }
.download-pane { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.download-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.download-heading h2 { margin: 0; font-size: 21px; }
.download-heading p { width: 100%; margin: 0; color: var(--muted); font-size: 13px; }
.download-heading .eyebrow { margin-bottom: 6px; color: var(--accent); font-size: 12px; }
.download-pane .result-count { margin: 19px 0 12px; }
.selector-hint { margin: -7px 0 12px; font-size: 13px; line-height: 1.7; }
.download-footnote { margin: 18px 0 0; font-size: 12px; line-height: 1.7; }
.selector-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.selector-grid label, .feedback-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.selector-grid select, .feedback-form input, .feedback-form select, .feedback-form textarea { width: 100%; min-width: 0; min-height: 44px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 7px; background: var(--bg); color: var(--text); font-size: 14px; font-weight: 400; line-height: 1.5; }
.download-list { display: grid; gap: 12px; }
.file-card { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised); }
.file-name { display: block; margin: 0 0 6px; color: var(--text); font-size: 14px; line-height: 1.5; font-weight: 650; overflow-wrap: anywhere; }
.file-meta { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.file-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.file-badges .tag { background: var(--surface); }
.download-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.download-actions .button { flex: 1; }
.hash { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.hash code { display: block; max-width: 100%; margin-top: 4px; padding: 7px 9px; border-radius: 4px; background: var(--bg); color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.copy-button { min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; }
.copy-button:hover { color: var(--text); border-color: var(--muted); }
.hash .copy-button { margin-top: 8px; }
.notice { margin: 18px 0; padding: 13px 15px; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 1.7; }
.notice p { margin: 0 0 8px; }
.notice p:last-child { margin-bottom: 0; }
.notice.warning { border-left-color: var(--warning); background: var(--surface-raised); }
.notice.warning strong { color: var(--warning); }
.muted { color: var(--muted); }
.toc { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.toc h3 { margin: 0 0 10px; font-size: 14px; }
.toc ul, .toc ol { margin: 0; padding-left: 19px; }
.toc li { margin: 6px 0; }
.toc a { display: inline-block; padding-block: 3px; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.article-pane .toc { display: flex; flex-direction: column; align-items: start; gap: 4px; margin: 0; padding: 20px 28px; border-top: 0; border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.toc strong { margin-bottom: 3px; color: var(--text); font-size: 13px; }
#panel-releases { padding: 28px; }
.release-list { display: grid; gap: 16px; }
.release-item { padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.release-item h3 { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; }
.release-item > :last-child { margin-bottom: 0; }
.release-item.release-current { border-color: var(--accent); background: var(--accent-soft); font-family: inherit; }
.release-item .project-heading { align-items: center; flex-wrap: wrap; gap: 10px; }
.release-item .project-heading h3 { margin: 0; }
.feedback-form { display: grid; gap: 16px; }
.feedback-form label { color: var(--text); }
.feedback-form textarea { min-height: 135px; resize: vertical; }
.feedback-form input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--accent); }
.feedback-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 5px; }
.feedback-actions p { flex: 1; min-width: 180px; margin: 0; color: var(--muted); font-size: 12px; }
.feedback-result { margin-top: 20px; }
.feedback-result pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.nav-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: 0 0 20px; color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-back:hover { color: var(--accent); }
.project-breadcrumb .nav-back { margin: 0; }
.jump-link { color: var(--accent); font-size: 14px; }
.mobile-download-jump { display: none; }
dialog.feedback-dialog, .feedback-dialog dialog {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 28px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}
dialog.feedback-dialog::backdrop, .feedback-dialog dialog::backdrop { background: rgb(0 0 0 / 65%); }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 20px; }
.dialog-heading h2 { margin: 0 0 6px; font-size: 25px; }
.dialog-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.dialog-close { display: grid; place-items: center; flex: 0 0 44px; min-width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--text); font-size: 24px; line-height: 1; }
.dialog-close:hover { background: var(--surface-raised); }
.toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; width: max-content; max-width: calc(100% - 32px); transform: translateX(-50%); padding: 13px 18px; border: 1px solid var(--accent); border-radius: 9px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; text-align: center; }

@media (min-width: 1100px) {
  .intro-badge { position: absolute; right: 0; top: 38px; margin-top: 0; }
}

@media (max-width: 1050px) {
  .site-header { gap: 20px; }
  .top-nav { gap: 16px; }
  .catalog-layout { grid-template-columns: 200px minmax(0, 1fr); gap: 24px; }
  .catalog-top { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-field { width: 100%; }
  .project-columns { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }
  .article-content { padding: 23px; }
  .download-pane { padding: 18px; }
  .project-passport { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .page-wrapper { width: calc(100% - 40px); }
  .site-header { padding: 15px 20px; flex-wrap: wrap; gap: 10px 20px; }
  .brand { margin-right: auto; }
  .header-actions { margin-left: auto; }
  .top-nav { order: 3; width: 100%; margin-left: 0; gap: 23px; overflow-x: auto; }
  .top-nav a { flex-shrink: 0; min-height: 36px; }
  .intro { padding: 27px 0; margin-bottom: 25px; }
  .intro-badge { display: none; }
  .intro h1 br { display: none; }
  .catalog-layout { grid-template-columns: 1fr; gap: 23px; }
  .sidebar { position: static; }
  .mobile-category-filter { display: grid; grid-template-columns: 1fr; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
  .mobile-category-filter select { width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 400; }
  .sidebar-title, .category-list { display: none; }
  .category-button { width: auto; min-height: 44px; border-color: var(--line); background: var(--surface); padding: 9px 12px; }
  .sidebar-footer { display: none; }
  .catalog-top { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .search-field { width: 300px; flex: 1; min-width: 230px; }
  .project-columns { grid-template-columns: 1fr; }
  .download-pane { padding: 24px; }
  .selector-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body[data-page="project"] { padding-bottom: 76px; }
  .mobile-download-jump { position: fixed; z-index: 50; bottom: 14px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: calc(100% - 28px); margin: 0; padding: 9px 18px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow); text-decoration: none; font-size: 14px; font-weight: 650; }
  body[data-page="project"] .toast { bottom: 76px; }
  .project-breadcrumb { margin-block: 20px; }
  .project-header { margin-bottom: 22px; }
  .about-section { grid-template-columns: 1fr; gap: 18px; padding-top: 26px; }
  .friends-list { grid-template-columns: 1fr; }
  .support-section { grid-template-columns: 1fr; gap: 24px; padding: 23px; }
  .support-qr { align-items: flex-start; }
  .support-qr img { width: 170px; }
  .support-section.support-section--compact { grid-template-columns: minmax(0, 1fr) 112px; gap: 16px; padding: 20px; }
  .support-section--compact > .button { grid-column: 1; justify-self: start; }
  .support-section--compact .support-qr { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
}

@media (max-width: 480px) {
  body { line-height: 1.65; }
  .page-wrapper { width: calc(100% - 28px); }
  .site-header { min-height: 78px; padding: 13px 14px; gap: 10px 12px; }
  .brand { gap: 9px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 17px; }
  .brand-subtitle { font-size: 12px; }
  .header-actions { gap: 6px; }
  .header-actions .button { padding-inline: 10px; font-size: 12px; }
  .top-nav { gap: 20px; }
  .top-nav a { font-size: 13px; }
  .intro { padding-block: 19px; margin-bottom: 18px; }
  .intro h1 { margin-bottom: 9px; font-size: 28px; line-height: 1.2; }
  .project-header h1 { font-size: 31px; }
  .intro-description { font-size: 16px; }
  .intro .eyebrow { margin-bottom: 7px; }
  .catalog-layout { gap: 17px; }
  .intro-badge { font-size: 12px; }
  .category-list { gap: 6px; }
  .category-button { font-size: 13px; padding-inline: 10px; }
  .catalog-top { gap: 13px; }
  .catalog-title, .catalog-title h2 { font-size: 22px; }
  .search-field { width: 100%; min-width: 0; flex-basis: 100%; }
  .filter-bar { gap: 6px; padding-bottom: 16px; }
  .filter-chip { padding-inline: 10px; }
  .project-card { grid-template-columns: 39px minmax(0, 1fr); column-gap: 11px; padding: 19px 17px; }
  .project-heading { gap: 11px; }
  .project-icon { width: 39px; height: 39px; flex-basis: 39px; }
  .project-title { gap: 6px 8px; font-size: 20px; }
  .project-description { font-size: 16px; }
  .project-actions { gap: 8px; }
  .project-actions .button { flex-grow: 1; padding-inline: 11px; }
  .project-card > .project-actions { grid-column: 1 / -1; }
  .support-section { padding: 21px 18px; }
  .friend-card { padding: 17px; gap: 12px; }
  .support-section h2 { font-size: 21px; }
  .support-section .button { width: 100%; }
  .support-section.support-section--compact { grid-template-columns: minmax(0, 1fr) 96px; padding: 18px; }
  .support-section--compact > .support-copy { grid-column: 1 / -1; }
  .support-section--compact > .button { grid-column: 1; grid-row: 2; align-self: center; white-space: normal; text-align: center; }
  .support-section--compact .support-qr { grid-column: 2; grid-row: 2; align-self: center; }
  .support-section--compact .support-qr img { width: 96px; height: 96px; }
  .site-footer { align-items: start; flex-direction: column; gap: 10px; padding-top: 20px; }
  .lead { font-size: 16px; }
  .version-switch { width: 100%; margin-left: 0; }
  .version-switch select { flex: 1; max-width: 220px; }
  .project-passport { margin-top: 20px; }
  .passport-item { padding: 13px 14px; }
  .passport-item strong { font-size: 13px; }
  .project-tabs { padding-inline: 4px; }
  .project-tabs button { min-height: 51px; padding-inline: 12px; font-size: 13px; }
  .article-content { padding: 22px 18px; }
  .article-pane .toc { padding: 18px; }
  #panel-releases { padding: 22px 18px; }
  .article-content h2 { font-size: 22px; }
  .article-content h3 { font-size: 18px; }
  .article-content pre { padding: 13px; font-size: 12px; }
  .download-pane { padding: 21px 17px; }
  .selector-grid { grid-template-columns: 1fr; }
  .feedback-actions { align-items: stretch; flex-direction: column; }
  .feedback-actions p { min-width: 0; }
  dialog.feedback-dialog, .feedback-dialog dialog { padding: 21px 18px; max-height: calc(100dvh - 28px); }
  .dialog-heading { gap: 10px; }
  .dialog-heading h2 { font-size: 22px; }
  .toast { bottom: 14px; font-size: 13px; padding: 12px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .sidebar, .project-tabs, .download-pane, .support-section, .friends-section, .site-footer, .mobile-download-jump, .feedback-dialog, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  .page-wrapper { width: 100%; }
  .project-columns, .catalog-layout { display: block; }
  .article-pane, .project-card { border-color: #bbb; background: #fff; }
  .article-content { padding: 0; }
  .article-content h2, .article-content h3, .project-header h1 { color: #111; }
  .article-figure { break-inside: avoid; }
}
