@font-face {
  font-family: 'Adwaita Sans';
  src: url('../fonts/adwaita-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Adwaita Mono';
  src: local('Adwaita Mono'), url('../fonts/adwaita-mono-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Adwaita Mono';
  src: local('Adwaita Mono Bold'), url('../fonts/adwaita-mono-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --window-bg-color: light-dark(#fafafb, #222226);
  --window-fg-color: light-dark(rgb(0 0 6 / 80%), #ffffff);
  --view-bg-color: light-dark(#ffffff, #1d1d20);
  --headerbar-bg-color: light-dark(#ffffff, #2e2e32);
  --headerbar-shade-color: light-dark(rgb(0 0 6 / 12%), rgb(0 0 6 / 36%));
  --sidebar-bg-color: light-dark(#ebebed, #2e2e32);
  --sidebar-border-color: light-dark(rgb(0 0 6 / 7%), rgb(0 0 6 / 36%));
  --card-bg-color: light-dark(#ffffff, #343437);
  --card-shade-color: light-dark(rgb(0 0 6 / 7%), rgb(0 0 6 / 36%));
  --popover-bg-color: light-dark(#ffffff, #36363a);
  --accent-bg-color: #3584e4;
  --accent-fg-color: #ffffff;
  --accent-color: light-dark(#0461be, #81d0ff);
  --success-color: light-dark(#007c3d, #78e9ab);
  --muted-color: light-dark(#6c6c72, #b0b0b7);
  --border-color: light-dark(rgb(0 0 6 / 15%), rgb(255 255 255 / 15%));
  --hover-color: light-dark(rgb(0 0 6 / 4%), rgb(255 255 255 / 5%));
  --selected-color: light-dark(rgb(0 0 6 / 7%), rgb(255 255 255 / 10%));
  --nested-bg-color: light-dark(#f6f6f8, #2e2e32);
  --font-family: 'Adwaita Sans', Cantarell, system-ui, sans-serif;
  --monospace-font-family: 'Adwaita Mono', monospace;
  --header-height: 47px;
  --sidebar-width: 240px;
  font-family: var(--font-family);
  scroll-padding-top: calc(var(--header-height) + 24px);
  scrollbar-gutter: stable;
}

:root[data-theme='light'] { color-scheme: light; }
:root[data-theme='dark'] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--window-bg-color); color: var(--window-fg-color); font-size: .9375rem; line-height: 1.6; }
[hidden] { display: none !important; }
a { color: var(--accent-color); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; height: auto; }
.symbolic-icon { display: inline-block; flex: none; vertical-align: middle; }
::selection { background: var(--accent-bg-color); color: var(--accent-fg-color); }
:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 700; line-height: 1.35; }
h1 { margin-bottom: 12px; font-size: 1.75rem; }
h2 { margin-bottom: 12px; font-size: 1.25rem; }
h3 { margin-bottom: 10px; font-size: 1rem; }
p { margin-bottom: 16px; }
code, kbd { font-family: var(--monospace-font-family); }
kbd { padding: 2px 5px; border: 1px solid var(--border-color); border-bottom-width: 2px; border-radius: 4px; background: var(--view-bg-color); font-size: .85em; white-space: nowrap; }
.container { width: min(920px, calc(100% - 64px)); margin-inline: auto; }
.content-pane { min-width: 0; min-height: 100dvh; margin-left: var(--sidebar-width); }
.skip-link { position: fixed; z-index: 100; top: 8px; left: calc(var(--sidebar-width) + 8px); padding: 8px 12px; border-radius: 6px; background: var(--accent-bg-color); color: var(--accent-fg-color); transform: translateY(-180%); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.app-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 60; display: flex; flex-direction: column; width: var(--sidebar-width); height: 100dvh; border-right: 1px solid var(--sidebar-border-color); background: var(--sidebar-bg-color); }
.sidebar-header { display: flex; align-items: center; justify-content: space-between; flex: none; min-height: var(--header-height); padding: 6px 12px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--window-fg-color); font-size: .875rem; font-weight: 700; text-decoration: none; }
.wordmark img { width: 32px; height: 32px; }
.sidebar-content { flex: 1; min-height: 0; padding: 6px 6px 16px; overflow-y: auto; scrollbar-width: thin; }
.app-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.app-sidebar nav a, .sidebar-footer a { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 8px 12px; border-radius: 6px; color: var(--window-fg-color); font-size: .875rem; line-height: 1.4; text-decoration: none; }
.app-sidebar nav a:hover, .sidebar-footer a:hover { background: var(--hover-color); }
.app-sidebar nav a[aria-current='page'] { background: var(--selected-color); font-weight: 700; }
.sidebar-group { margin-top: 26px; }
.sidebar-group h2 { margin: 0 12px 8px; color: var(--muted-color); font-size: .75rem; font-weight: 700; }
.sidebar-group nav a { font-size: .8125rem; }
.sidebar-footer { flex: none; padding: 6px; border-top: 1px solid var(--sidebar-border-color); }
.sidebar-footer a { font-size: .8125rem; }
.sidebar-version { margin-left: auto; color: var(--muted-color); font-size: .75rem; }
.sidebar-backdrop { position: fixed; z-index: 55; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(0 0 0 / 35%); }
.site-header { position: sticky; top: 0; z-index: 40; display: grid; grid-template-columns: minmax(40px, 1fr) minmax(0, 2fr) minmax(40px, 1fr); align-items: center; gap: 6px; min-height: var(--header-height); padding: 6px; background: var(--headerbar-bg-color); box-shadow: 0 1px var(--headerbar-shade-color); }
.header-start, .header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions { justify-content: flex-end; }
.window-title { min-width: 0; overflow: hidden; font-size: .875rem; font-weight: 700; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--window-fg-color); text-decoration: none; }
.icon-button:hover, .appearance-menu[open] > summary { background: var(--hover-color); }
.icon-button:active { background: var(--selected-color); }
.appearance-menu { position: relative; }
.appearance-menu > summary { list-style: none; cursor: pointer; }
.appearance-menu > summary::-webkit-details-marker { display: none; }
.app-menu { position: absolute; top: calc(100% + 6px); right: 0; width: 230px; padding: 6px; border: 1px solid var(--card-shade-color); border-radius: 12px; background: var(--popover-bg-color); box-shadow: 0 3px 8px rgb(0 0 6 / 18%), 0 8px 24px rgb(0 0 6 / 10%); }
.menu-heading { margin: 6px 10px 8px; color: var(--muted-color); font-size: .75rem; }
.appearance-switcher { display: flex; justify-content: space-between; gap: 10px; margin: 8px 10px 12px; }
.appearance-switcher button { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 34px; padding: 0; border: 1px solid transparent; border-radius: 6px; background: transparent; }
.appearance-switcher button:hover { background: var(--hover-color); }
.appearance-switcher button[aria-pressed='true'] { border-color: var(--accent-color); box-shadow: 0 0 0 1px var(--accent-color); }
.app-menu hr { margin: 6px -6px; border: 0; border-top: 1px solid var(--card-shade-color); }
.app-menu > a { display: flex; align-items: center; min-height: 34px; padding: 6px 10px; border-radius: 6px; color: var(--window-fg-color); font-size: .875rem; text-decoration: none; }
.app-menu > a:hover { background: var(--hover-color); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 6px 18px; border: 1px solid transparent; border-radius: 6px; background: var(--selected-color); color: var(--window-fg-color); font-size: .875rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.button:hover { background: color-mix(in srgb, var(--window-fg-color) 12%, transparent); }
.button-primary { background: var(--accent-bg-color); color: var(--accent-fg-color); }
.button-primary:hover { background: color-mix(in srgb, var(--accent-bg-color) 90%, white); }
.button:active { filter: brightness(.95); }
.text-link, .breadcrumb, .feed-link { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; text-decoration: none; }
.text-link:hover, .breadcrumb:hover, .feed-link:hover { text-decoration: underline; }

.project-page { max-width: 760px; }
.app-overview { display: grid; grid-template-columns: 64px minmax(0, 1fr) 128px; align-items: center; gap: 16px; padding-block: 32px 24px; }
.app-icon { width: 64px; height: 64px; }
.app-identity h1 { margin-bottom: 2px; font-size: 1.75rem; font-weight: 800; }
.app-identity p { margin-bottom: 8px; font-size: .9375rem; }
.app-version { color: var(--muted-color); font-size: .75rem; text-decoration: none; }
.app-version:hover { color: var(--accent-color); text-decoration: underline; }
.app-install { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.app-install .button { width: 100%; }
.app-install > span { color: var(--muted-color); font-size: .75rem; }
.screenshot-viewer { margin: 0 0 24px; }
.preview-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 8px; }
.preview-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 100px; min-height: 34px; padding: 7px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--window-fg-color); font-size: .8125rem; }
.preview-tab:hover { background: var(--hover-color); }
.preview-tab[aria-pressed='true'] { background: var(--selected-color); font-weight: 700; }
.screenshot-link { display: block; border-radius: 12px; }
.screenshot-link img { width: auto; max-width: 100%; height: auto; max-height: min(420px, 52svh); margin-inline: auto; }
.screenshot-viewer figcaption { margin: 10px auto 0; color: var(--muted-color); font-size: .75rem; text-align: center; }
.preferences-page { max-width: 760px; margin-inline: auto; }
.app-description { margin-bottom: 28px; padding-top: 24px; border-top: 1px solid var(--card-shade-color); font-size: .9375rem; line-height: 1.75; }
.app-description h2 { font-size: 1.125rem; }
.preferences-group { margin-bottom: 32px; }
.group-heading { margin-bottom: 12px; }
.group-heading h2 { margin-bottom: 4px; font-size: .875rem; font-weight: 700; }
.group-heading p { margin-bottom: 0; color: var(--muted-color); font-size: .8125rem; }
.group-heading-inline { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.group-heading-inline h2 { margin-bottom: 0; }
.group-description { margin: 10px 0 0; color: var(--muted-color); font-size: .8125rem; }
.row-label { display: flex; flex: 1; flex-direction: column; gap: 3px; min-width: 0; }
.row-label > strong { font-size: .875rem; font-weight: 400; line-height: 1.45; }
.row-label > span { color: var(--muted-color); font-size: .8125rem; line-height: 1.5; }
.row-label > time { margin-top: 5px; color: var(--muted-color); font-size: .75rem; }
.row-icon, .row-chevron { display: inline-flex; align-items: center; justify-content: center; flex: none; }
.row-chevron { color: var(--muted-color); transition: transform 200ms ease; }
.feature-details, .property-list, .action-list, .doc-index, .release-highlight, .news-row { border: 1px solid var(--card-shade-color); border-radius: 12px; background: var(--card-bg-color); box-shadow: 0 1px 2px rgb(0 0 6 / 3%); }
.feature-details { overflow: clip; }
.feature-detail + .feature-detail { border-top: 1px solid var(--card-shade-color); }
.feature-detail > summary { display: flex; align-items: center; gap: 12px; min-height: 70px; padding: 12px 16px; list-style: none; cursor: pointer; }
.feature-detail > summary::-webkit-details-marker { display: none; }
.feature-detail > summary:hover { background: var(--hover-color); }
.feature-detail > summary:active { background: var(--selected-color); }
.feature-detail > summary:focus-visible { outline-offset: -3px; }
.feature-detail[open] > summary .row-chevron { transform: rotate(180deg); }
.detail-body { padding: 16px 20px 1px 44px; border-top: 1px solid var(--card-shade-color); background: var(--nested-bg-color); font-size: .875rem; line-height: 1.75; overflow-wrap: break-word; }
.detail-body p > span { padding-inline: 4px; color: var(--muted-color); }
.feature-list { margin: 0 0 18px; padding-left: 18px; }
.feature-list li { margin-bottom: 10px; }
.provider-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; padding-left: 18px; margin: 0 0 18px; }
.provider-list li { overflow-wrap: anywhere; }
.release-highlight, .news-row { display: flex; align-items: center; gap: 18px; padding: 16px; color: var(--window-fg-color); text-decoration: none; }
.release-highlight:hover, .news-row:hover { background: color-mix(in srgb, var(--window-fg-color) 3%, var(--card-bg-color)); }
.release-highlight > .symbolic-icon, .news-row > .symbolic-icon { color: var(--muted-color); }
.command-line { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 8px 8px 8px 16px; border: 1px solid var(--card-shade-color); border-radius: 12px; background: var(--card-bg-color); }
.command-line code { flex: 1; min-width: 0; font-size: .8125rem; overflow-wrap: anywhere; user-select: all; }
.copy-button { margin-left: auto; }
.copy-success, .copy-button.is-copied .copy-default { display: none; }
.copy-button.is-copied .copy-success { display: inline-flex; color: var(--success-color); }
.property-list { margin: 0; overflow: clip; }
.property-list > div { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; min-height: 50px; padding: 13px 16px; font-size: .875rem; }
.property-list > div + div { border-top: 1px solid var(--card-shade-color); }
.property-list dd { min-width: 0; margin: 0; color: var(--muted-color); text-align: right; overflow-wrap: anywhere; }
.property-list dd code { font-size: .75rem; }
.action-list { padding: 0; margin: 0; list-style: none; overflow: clip; }
.action-list li + li { border-top: 1px solid var(--card-shade-color); }
.action-list a { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 16px; color: var(--window-fg-color); text-decoration: none; }
.action-list a:hover { background: var(--hover-color); }
.action-list a:focus-visible { outline-offset: -3px; }
.action-list a > .symbolic-icon:last-child { color: var(--muted-color); }
.project-news > .feed-link { margin-top: 14px; }

.site-footer { padding: 8px 32px 24px; }
.footer-inner { max-width: 760px; margin-inline: auto; padding-top: 20px; border-top: 1px solid var(--card-shade-color); color: var(--muted-color); font-size: .6875rem; }
.footer-inner p { margin-bottom: 8px; }
.footer-inner a { color: inherit; }
.asset-credit { max-width: 80ch; }
.toast { position: fixed; z-index: 90; bottom: 24px; left: calc(50% + var(--sidebar-width) / 2); width: max-content; max-width: min(480px, calc(100% - var(--sidebar-width) - 32px)); padding: 12px 22px; border-radius: 999px; background: #303034; color: #ffffff; box-shadow: 0 2px 6px rgb(0 0 6 / 25%); font-size: .875rem; text-align: center; opacity: 0; visibility: hidden; transform: translate(-50%, 8px); transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease; }
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.clipboard-fallback { position: fixed; top: 0; left: -9999px; }

.content-shell, .article-shell { max-width: 760px; padding-block: 40px 24px; }
.page-heading { margin-bottom: 28px; }
.page-heading h1 { margin-bottom: 8px; }
.page-heading > p:not(.eyebrow) { margin-bottom: 12px; color: var(--muted-color); font-size: .9375rem; line-height: 1.65; }
.eyebrow { margin-bottom: 8px; color: var(--muted-color); font-size: .75rem; }
.article-shell .page-heading { margin-top: 24px; }
.article-shell > .button { margin-top: 16px; }
.release-list { display: grid; gap: 28px; margin-bottom: 24px; }
.release-entry { overflow: clip; border: 1px solid var(--card-shade-color); border-radius: 12px; background: var(--card-bg-color); }
.release-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; border-bottom: 1px solid var(--card-shade-color); }
.release-heading h2 { margin-bottom: 4px; font-size: 1rem; }
.release-heading h2 a { color: var(--window-fg-color); text-decoration: none; }
.release-heading h2 a:hover { color: var(--accent-color); text-decoration: underline; }
.release-heading time { color: var(--muted-color); font-size: .75rem; }
.latest-label { color: var(--success-color); font-size: .75rem; font-weight: 700; }
.release-content { padding: 20px; font-size: .875rem; }
.release-content > h3 { font-size: .9375rem; }
.release-content .prose h2 { font-size: 1rem; }
.release-content .prose h3 { font-size: .9375rem; }
.news-list { display: grid; gap: 0; }
.news-entry { padding-block: 24px; border-top: 1px solid var(--card-shade-color); }
.news-entry:first-child { padding-top: 0; border-top: 0; }
.news-entry time { color: var(--muted-color); font-size: .75rem; }
.news-entry h2 { margin: 10px 0; font-size: 1.125rem; }
.news-entry h2 a { color: var(--window-fg-color); text-decoration: none; }
.news-entry h2 a:hover { color: var(--accent-color); text-decoration: underline; }
.news-entry p { color: var(--muted-color); }

.docs-layout { max-width: 760px; padding-top: 40px; padding-bottom: 24px; }
.docs-layout.has-toc { display: grid; grid-template-columns: minmax(0, 700px) 160px; gap: 32px; max-width: 960px; }
.docs-article { min-width: 0; }
.docs-toc { position: sticky; top: calc(var(--header-height) + 24px); align-self: start; max-height: calc(100dvh - var(--header-height) - 48px); padding-left: 16px; border-left: 1px solid var(--card-shade-color); overflow-y: auto; scrollbar-width: thin; }
.sidebar-heading { margin-bottom: 12px; color: var(--muted-color); font-size: .75rem; font-weight: 700; }
.docs-toc nav { display: flex; flex-direction: column; gap: 12px; }
.docs-toc a { color: var(--muted-color); font-size: .75rem; line-height: 1.5; text-decoration: none; }
.docs-toc a:hover { color: var(--accent-color); text-decoration: underline; }
.doc-index { margin-bottom: 32px; overflow: clip; }
.doc-index > a { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 16px; color: var(--window-fg-color); text-decoration: none; }
.doc-index > a + a { border-top: 1px solid var(--card-shade-color); }
.doc-index > a:hover { background: var(--hover-color); }
.doc-index > a:focus-visible { outline-offset: -3px; }
.doc-index > a > .symbolic-icon:last-child { color: var(--muted-color); }
.docs-introduction { color: var(--muted-color); }
.doc-pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--card-shade-color); }
.doc-pagination a { display: flex; align-items: center; gap: 12px; max-width: 50%; font-size: .8125rem; text-decoration: none; }
.doc-pagination a:hover { text-decoration: underline; }
.doc-pagination small { display: block; margin-bottom: 3px; color: var(--muted-color); font-size: .75rem; }
.doc-pagination a:last-child { margin-left: auto; text-align: right; }

.prose { overflow-wrap: break-word; font-size: 1rem; line-height: 1.8; }
.prose h2 { margin: 28px 0 14px; font-size: 1.25rem; }
.prose h3 { margin-top: 24px; font-size: 1rem; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 16px 0; padding-left: 24px; }
.prose li { margin-bottom: 8px; }
.prose li > p { margin-bottom: 8px; }
.prose code:not(pre code), .detail-body code { padding: 2px 4px; border-radius: 4px; background: var(--hover-color); font-size: .8125em; overflow-wrap: anywhere; }
.prose pre { position: relative; margin: 20px 0; padding: 46px 16px 16px; border: 1px solid var(--card-shade-color); border-radius: 8px; background: var(--view-bg-color); color: var(--window-fg-color); overflow-x: auto; font-size: .8125rem; line-height: 1.8; }
.prose pre.giallo { background-color: var(--view-bg-color) !important; color: var(--window-fg-color) !important; }
.prose pre code { font-size: inherit; white-space: pre; }
.code-copy { position: absolute; top: 6px; right: 6px; display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 30px; padding: 4px 10px; border: 0; border-radius: 6px; background: var(--selected-color); font-size: .75rem; font-weight: 700; }
.code-copy:hover { background: var(--hover-color); }
.code-copy.is-copied { color: var(--success-color); }
.giallo-l { display: inline-block; min-height: 1lh; width: 100%; }
.prose blockquote { margin: 20px 0; padding: 0 0 0 18px; border-left: 3px solid var(--border-color); color: var(--muted-color); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose table { display: block; max-width: 100%; width: 100%; margin: 20px 0; overflow-x: auto; border-spacing: 0; font-size: .875rem; }
.prose th { text-align: left; font-weight: 700; }
.prose td, .prose th { padding: 10px 12px; border-bottom: 1px solid var(--card-shade-color); }
.prose hr { margin-block: 28px; border: 0; border-top: 1px solid var(--card-shade-color); }
.prose img { border-radius: 8px; }
.release-content .prose { font-size: .875rem; }
.error-page { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: calc(100dvh - var(--header-height) - 160px); padding-block: 64px; text-align: center; }
.error-page > .symbolic-icon { margin-bottom: 24px; color: var(--muted-color); }
.error-page h1 { font-size: 1.5rem; }
.error-page p { color: var(--muted-color); }

@media (max-width: 1180px) {
  .docs-layout.has-toc { display: block; max-width: 760px; }
  .docs-toc { display: none; }
}

@media (max-width: 860px) {
  :root { --header-height: 56px; }
  .content-pane { margin-left: 0; }
  .container { width: min(760px, calc(100% - 40px)); }
  .skip-link { left: 8px; }
  .site-header { padding: 6px; }
  .site-header .icon-button, .sidebar-header .icon-button { width: 44px; height: 44px; }
  .window-title { font-size: .875rem; }
  .app-sidebar { position: static; width: 100%; height: auto; border: 0; border-bottom: 1px solid var(--sidebar-border-color); }
  .app-sidebar .sidebar-header { min-height: 56px; }
  .app-sidebar .sidebar-content { overflow: visible; }
  .app-sidebar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-sidebar .sidebar-resources, .app-sidebar .sidebar-footer { display: none; }
  .js .app-sidebar { position: fixed; z-index: 60; width: min(300px, calc(100% - 48px)); height: 100dvh; border-right: 1px solid var(--sidebar-border-color); border-bottom: 0; transform: translateX(-100%); visibility: hidden; transition: transform 200ms ease, visibility 200ms ease; }
  .js .app-sidebar .sidebar-content { overflow-y: auto; }
  .js .app-sidebar nav { display: flex; }
  .js .app-sidebar nav a { min-height: 44px; }
  .js .app-sidebar .sidebar-resources, .js .app-sidebar .sidebar-footer { display: block; }
  .sidebar-open { overflow: hidden; }
  .sidebar-open .app-sidebar { transform: translateX(0); visibility: visible; }
  .app-overview { padding-top: 28px; }
  .toast { left: 50%; max-width: calc(100% - 32px); }
  .site-footer { padding-inline: 20px; }
  .content-shell, .article-shell, .docs-layout { padding-top: 28px; }
}

@media (max-width: 520px) {
  .container { width: calc(100% - 32px); }
  .app-overview { grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding-block: 24px; }
  .app-identity h1 { font-size: 1.5rem; }
  .app-identity p { margin-bottom: 4px; font-size: .8125rem; }
  .app-install { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; gap: 12px; }
  .app-install .button { width: 128px; min-height: 40px; }
  .preview-tabs { gap: 4px; width: 100%; }
  .preview-tab { min-width: 0; min-height: 40px; padding-inline: 8px; }
  .screenshot-viewer { margin-bottom: 20px; }
  .preferences-group { margin-bottom: 28px; }
  .feature-detail > summary { gap: 12px; padding-inline: 12px; }
  .row-label > span { font-size: .75rem; }
  .detail-body { padding: 14px 16px 1px; }
  .property-list > div { gap: 16px; padding-inline: 12px; font-size: .8125rem; }
  .command-line code { font-size: .75rem; }
  .command-line .copy-button { width: 40px; height: 40px; }
  .action-list a, .doc-index > a { padding-inline: 12px; }
  .doc-index > a { min-height: 80px; }
  .release-heading { padding-inline: 16px; }
  .release-content { padding: 16px; }
  .prose { font-size: .9375rem; }
  .prose h2 { font-size: 1.125rem; }
  .prose table { font-size: .8125rem; }
  .prose td, .prose th { padding: 8px; }
  .doc-pagination { gap: 16px; }
  .doc-pagination a { gap: 8px; }
  .site-footer { padding-inline: 16px; }
}

@media (prefers-contrast: more) {
  :root { --muted-color: var(--window-fg-color); --card-shade-color: currentColor; --sidebar-border-color: currentColor; --headerbar-shade-color: currentColor; --border-color: currentColor; }
  .button { border-color: currentColor; }
  .app-sidebar nav a[aria-current='page'], .preview-tab[aria-pressed='true'] { outline: 1px solid currentColor; outline-offset: -1px; }
}

@media (forced-colors: active) {
  .button, .app-menu, .feature-details, .property-list, .action-list, .doc-index, .release-highlight, .news-row, .release-entry, .command-line { border: 1px solid CanvasText; }
  .app-sidebar nav a[aria-current='page'], .preview-tab[aria-pressed='true'], .appearance-switcher button[aria-pressed='true'] { outline: 2px solid Highlight; outline-offset: -2px; }
  .app-sidebar, .site-header { border-color: CanvasText; }
  .sidebar-backdrop { background: Canvas; opacity: .7; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
