@layer reset, base, components, responsive;

/* Website and docs palette matches asenotify.app; demo themes remain independent. */
:root {
  --theme-page: #f5f5f5;
  --theme-surface: #fbfcfa;
  --theme-raised: #e4ece8;
  --theme-ink: #1f2927;
  --theme-prose: #1f2927;
  --theme-muted: #526c66;
  --theme-border: #dce6e2;
  --theme-hover: #e8f1ed;
  --theme-link: #17675a;
  --theme-link-hover: #17675a;
  --theme-primary: #17675a;
  --theme-primary-hover: #208374;
  --theme-on-primary: #f5f5f5;
  --theme-soft: #d7ede5;
  --theme-soft-ink: #145248;
  --theme-soft-border: #b8cdc6;
  --site-header: #f5f5f5e8;
  --site-preview: linear-gradient(135deg, #e0f1eb, #d4e9e3 65%, #e9f3ef);
  --site-preview-border: #c9e0d7;
  --site-code: #1f2927;
  --site-selection: #17675a;
  --site-selection-ink: #ffffff;
}
:root[data-theme='dark'] {
  --theme-page: #282828;
  --theme-surface: #323232;
  --theme-raised: #3f514b;
  --theme-ink: #f5f5f5;
  --theme-prose: #f5f5f5;
  --theme-muted: #b9cbc6;
  --theme-border: #4d5d58;
  --theme-hover: #35443f;
  --theme-link: #89c8bd;
  --theme-link-hover: #b9e1d7;
  --theme-primary: #17675a;
  --theme-primary-hover: #208374;
  --theme-on-primary: #f5f5f5;
  --theme-soft: #205e51;
  --theme-soft-ink: #b9e1d7;
  --theme-soft-border: #66877e;
  --site-header: #282828ed;
  --site-preview: linear-gradient(135deg, #284e44, #355c50 65%, #2c473f);
  --site-preview-border: #51756b;
  --site-code: #323232;
  --site-selection: #123b33;
  --site-selection-ink: #f5f5f5;
}
.theme-toggle {
  border-color: transparent;
  background: transparent;
  color: var(--theme-soft-ink);
}

@layer reset {
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  body,
  h1,
  h2,
  h3,
  p,
  figure {
    margin: 0;
  }
  img {
    display: block;
    max-width: 100%;
    height: auto;
  }
  button,
  input {
    font: inherit;
  }
  button,
  summary {
    cursor: pointer;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  button {
    color: inherit;
  }
  [hidden] {
    display: none !important;
  }
}
@layer base {
  :root {
    --paper: var(--theme-page);
    --white: var(--theme-surface);
    --ink: var(--theme-ink);
    --muted: var(--theme-muted);
    --green: var(--theme-link);
    --bright: var(--theme-link-hover);
    --pale: var(--theme-soft);
    --line: var(--theme-border);
    --code: var(--site-code);
    --radius: 18px;
    font-family:
      Inter,
      ui-sans-serif,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      sans-serif;
    font-synthesis: none;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
  }
  body {
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  ::selection {
    background: var(--site-selection);
    color: var(--site-selection-ink);
  }
  :focus-visible {
    outline: 3px solid #208374;
    outline-offset: 5px;
    border-radius: 3px;
  }
  h1,
  h2,
  h3 {
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 650;
    text-wrap: balance;
  }
  p {
    text-wrap: pretty;
  }
  h1 {
    font-size: clamp(3.2rem, 6.8vw, 6.3rem);
  }
  h2 {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
  }
  h3 {
    font-size: 1.35rem;
    letter-spacing: -0.025em;
  }
  .wrap {
    width: min(1240px, calc(100% - 80px));
    margin-inline: auto;
  }
  .skip {
    position: fixed;
    top: -80px;
    left: 16px;
    z-index: 99;
    padding: 10px 18px;
    background: var(--theme-primary);
    color: var(--theme-on-primary);
  }
  .skip:focus {
    top: 10px;
  }
  .eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--green);
    margin-bottom: 22px;
  }
  .lede {
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.7;
    max-width: 570px;
    margin-top: 24px;
  }
  .section {
    padding-block: 100px;
    border-top: 1px solid var(--line);
  }
  .section-heading {
    max-width: 680px;
    margin-bottom: 46px;
  }
  .section-heading > p:last-child {
    margin-top: 20px;
    color: var(--muted);
    font-size: 1.08rem;
  }
  .text-link {
    font-weight: 650;
    color: var(--green);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
  }
  .text-link:hover {
    color: var(--ink);
  }
  .tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    border: 1px solid var(--line);
    border-radius: 99px;
    padding: 5px 12px;
    font-weight: 600;
    letter-spacing: 0.025em;
  }
}
@layer components {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--site-header);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }
  .header-inner {
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    letter-spacing: -0.04em;
    font-size: 1.35rem;
    flex-shrink: 0;
  }
  .brand img {
    width: 37px;
    height: 37px;
  }
  .brand small {
    margin-left: 8px;
    letter-spacing: 0;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
    border-left: 1px solid var(--line);
    padding-left: 16px;
  }
  .main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    font-size: 0.88rem;
    font-weight: 550;
  }
  .main-nav a:hover {
    color: var(--bright);
  }
  .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 13px 21px;
    border: 1px solid var(--theme-primary);
    border-radius: 8px;
    background: var(--theme-primary);
    color: var(--theme-on-primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s;
  }
  .button:hover {
    background: var(--theme-primary-hover);
    color: #fff !important;
  }
  .button.secondary {
    background: transparent;
    color: var(--theme-soft-ink);
    border-color: var(--theme-soft-border);
  }
  .button.secondary:hover {
    background: var(--theme-hover);
    color: var(--theme-soft-ink) !important;
  }
  .actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 32px;
  }
  .menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 7px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
  }
  .hero {
    padding-block: 76px 80px;
  }
  .hero-top {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    align-items: end;
    gap: 60px;
    margin-bottom: 48px;
  }
  .hero h1 {
    max-width: 780px;
  }
  .hero h1 em {
    font-style: normal;
    color: var(--green);
  }
  .hero-side {
    padding-bottom: 4px;
  }
  .hero-side .lede {
    margin: 0;
    font-size: 1.08rem;
  }
  .release-note {
    margin-top: 19px;
    color: var(--muted);
    font-size: 0.76rem;
  }
  .release-note a {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .shot-shell {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--site-preview);
    border: 1px solid var(--site-preview-border);
    box-shadow: 0 24px 80px -35px #123c3220;
  }
  .shot-bar {
    height: 42px;
    display: flex;
    align-items: center;
    padding-inline: 18px;
    gap: 7px;
    background: var(--white);
    color: var(--muted);
    font-size: 0.69rem;
  }
  .shot-bar i {
    width: 7px;
    height: 7px;
    border: 1px solid var(--muted);
    border-radius: 50%;
  }
  .shot-bar span {
    margin: auto;
  }
  .shot-bar small {
    font-size: 0.62rem;
    color: var(--muted);
  }
  .hero-shot img {
    width: 100%;
    aspect-ratio: 1.8;
    object-fit: cover;
    object-position: top;
  }
  .screenshot-toolbar,
  .image-viewer-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
  }
  .hero-shot .screenshot-toolbar {
    margin: 0;
    padding: 8px 12px;
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .screenshot-controls {
    display: inline-flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--theme-soft-border);
    border-radius: 8px;
    background: var(--paper);
  }
  .screenshot-controls button {
    min-height: 32px;
    padding: 5px 11px;
    border: 1px solid transparent;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.4;
  }
  .screenshot-controls button[aria-pressed='true'] {
    background: var(--theme-soft);
    color: var(--theme-soft-ink);
    border-color: var(--theme-soft-border);
  }
  .screenshot-controls button:hover {
    color: var(--ink);
    background: var(--theme-hover);
  }
  .documentation-shot {
    margin-block: 30px;
  }
  .gallery .screenshot-toolbar {
    margin: 0;
    padding: 10px 12px;
  }
  .prose .documentation-shot img {
    margin-block: 0;
  }
  .image-viewer-toolbar {
    padding: 0 20px 12px;
    margin: 0;
    background: var(--white);
  }
  .hero-caption {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 0.72rem;
    margin-top: 16px;
  }
  .principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding-block: 27px;
    gap: 32px;
    border-block: 1px solid var(--line);
    font-size: 0.9rem;
  }
  .principles strong {
    display: block;
    font-weight: 650;
    margin-bottom: 4px;
  }
  .principles p {
    font-size: 0.84rem;
    color: var(--muted);
  }
  .split {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 90px;
    align-items: center;
  }
  .split.reverse {
    grid-template-columns: 1.2fr 0.8fr;
  }
  .split h2 {
    max-width: 480px;
  }
  .split p {
    margin-top: 22px;
    color: var(--muted);
  }
  .feature-list {
    margin-top: 28px;
    padding: 0;
    list-style: none;
  }
  .feature-list li {
    display: flex;
    gap: 13px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.9rem;
  }
  .feature-list li::before {
    content: '↗';
    color: var(--green);
  }
  .feature-picture {
    border-radius: var(--radius);
    padding: 25px;
    background: var(--pale);
    border: 1px solid var(--line);
  }
  .feature-picture img {
    border-radius: 9px;
    box-shadow: 0 8px 26px #123c321b;
  }
  .feature-picture:has(img[src*='inbox-mobile']) {
    max-width: 390px;
    margin-inline: auto;
    padding: 18px;
  }
  .feature-picture:has(img[src*='inbox-mobile']) img {
    width: 100%;
    max-height: 620px;
    object-fit: contain;
  }
  .spaced {
    margin-top: 20px;
  }
  .feature-picture figcaption {
    font-size: 0.72rem;
    color: var(--theme-soft-ink);
    margin-top: 15px;
  }
  .feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 65px;
  }
  .feature-grid article {
    border-top: 1px solid var(--line);
    padding-top: 24px;
  }
  .feature-grid .number {
    font-size: 0.73rem;
    color: var(--green);
    display: block;
    margin-bottom: 20px;
  }
  .feature-grid p {
    font-size: 0.9rem;
    color: var(--muted);
    margin-top: 14px;
  }
  .feature-grid a {
    display: inline-block;
    font-size: 0.82rem;
    margin-top: 20px;
  }
  .integration {
    background: #175f53;
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
  }
  .integration .eyebrow {
    color: #d9e9e3;
  }
  .integration .lede,
  .integration p {
    color: #d9e9e3;
  }
  .integration .text-link {
    color: #f5f5f5;
  }
  .integration .button {
    background: #f5f5f5;
    color: #145248;
    border-color: #f5f5f5;
  }
  .integration .button:hover {
    background: #e8f1ed;
    color: #145248 !important;
  }
  .integration .split {
    align-items: start;
  }
  .connection {
    margin-top: 20px;
  }
  .connection-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 18px;
    padding: 25px 0;
    border-bottom: 1px solid #a7ccc1;
  }
  .connection-item b {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #a7ccc1;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 500;
  }
  .connection-item strong {
    font-size: 1rem;
    font-weight: 600;
    display: block;
  }
  .connection-item p {
    font-size: 0.86rem;
    line-height: 1.65;
    margin-top: 7px;
  }
  .integration-note {
    font-size: 0.73rem;
    margin-top: 24px;
    max-width: 450px;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
    counter-reset: steps;
  }
  .step {
    border-top: 1px solid var(--line);
    padding-top: 25px;
  }
  .step::before {
    counter-increment: steps;
    content: '0' counter(steps);
    display: block;
    color: var(--green);
    font-size: 0.8rem;
    margin-bottom: 20px;
  }
  .step p {
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 15px;
  }
  .step a {
    display: inline-block;
    margin-top: 22px;
    font-size: 0.85rem;
  }
  .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  .gallery figure {
    background: var(--pale);
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .gallery a {
    display: block;
    padding: 18px 18px 0;
  }
  .gallery img {
    border-radius: 8px 8px 0 0;
    width: 100%;
  }
  .gallery figcaption {
    padding: 20px;
    font-size: 0.84rem;
    color: var(--theme-soft-ink);
  }
  .gallery figcaption strong {
    display: block;
    font-size: 0.95rem;
    color: var(--ink);
    margin-bottom: 4px;
  }
  .faq-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 100px;
  }
  details {
    border-bottom: 1px solid var(--line);
    padding: 22px 0;
  }
  summary {
    font-size: 1rem;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 24px;
  }
  summary::-webkit-details-marker {
    display: none;
  }
  summary::after {
    content: '+';
    color: var(--green);
    font-weight: 400;
  }
  details[open] summary::after {
    content: '−';
  }
  details p {
    font-size: 0.92rem;
    color: var(--muted);
    padding-top: 16px;
    max-width: 580px;
  }
  .closing {
    text-align: center;
    padding-block: 85px;
  }
  .closing .actions {
    justify-content: center;
  }
  .closing p {
    margin: 20px auto 0;
    color: var(--muted);
    max-width: 570px;
  }
  .legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-block: 16px;
    font-size: 0.78rem;
    line-height: 1.6;
  }
  .site-footer {
    border-top: 1px solid var(--line);
    padding: 40px 0 28px;
  }
  .footer-top {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: start;
  }
  .footer-top p {
    color: var(--muted);
    font-size: 0.8rem;
    margin-top: 12px;
  }
  .footer-links {
    display: flex;
    gap: 30px;
    font-size: 0.8rem;
  }
  .footer-bottom {
    border-top: 1px solid var(--line);
    margin-top: 35px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    font-size: 0.7rem;
    color: var(--muted);
  }
  .page-intro {
    padding: 76px 0 60px;
    max-width: 840px;
  }
  .page-intro h1 {
    font-size: clamp(3rem, 6vw, 5.6rem);
  }
  .comparison {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 35px;
  }
  .comparison th,
  .comparison td {
    padding: 20px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
  }
  .comparison th {
    background: var(--pale);
  }
  .table-scroll {
    overflow-x: auto;
    margin-block: 28px;
  }
  .comparison td:first-child {
    font-weight: 600;
  }
  .subhero {
    padding: 60px 0;
  }
  .docs-header .header-inner {
    height: 72px;
  }
  .docs-header .wrap {
    width: calc(100% - 56px);
    max-width: none;
  }
  .docs-topnav {
    display: flex;
    gap: 26px;
    align-items: center;
    font-size: 0.82rem;
  }
  .search-trigger svg {
    display: none;
  }
  .search-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    min-width: 250px;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 7px;
    padding: 9px 12px;
    color: var(--muted);
    font-size: 0.84rem;
  }
  kbd {
    font: inherit;
    font-size: 0.72em;
    border: 1px solid var(--line);
    padding: 1px 5px;
    border-radius: 4px;
    background: var(--paper);
  }
  .docs-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 760px) 190px;
    gap: 54px;
    max-width: 1490px;
    margin-inline: auto;
    padding-inline: 28px;
  }
  .docs-sidebar {
    position: sticky;
    top: 72px;
    height: calc(100dvh - 72px);
    overflow-y: auto;
    padding: 35px 12px 40px 0;
    scrollbar-width: thin;
  }
  .docs-version {
    font-size: 0.7rem;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--muted);
    margin-bottom: 25px;
  }
  .docs-sidebar h2 {
    font-size: 0.71rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    line-height: 1.5;
    margin: 26px 0 9px;
    padding-left: 10px;
    font-weight: 700;
    color: var(--muted);
  }
  .docs-sidebar a {
    display: block;
    font-size: 0.81rem;
    color: var(--muted);
    padding: 7px 10px;
    border-radius: 5px;
    line-height: 1.5;
  }
  .docs-sidebar a:hover {
    background: var(--pale);
    color: var(--ink);
  }
  .docs-sidebar a[aria-current] {
    background: var(--theme-soft);
    color: var(--theme-soft-ink);
    font-weight: 650;
  }
  .docs-article {
    padding: 52px 0 65px;
    min-width: 0;
  }
  .breadcrumb {
    font-size: 0.74rem;
    color: var(--green);
    margin-bottom: 20px;
  }
  .docs-article h1 {
    font-size: clamp(2.1rem, 3.5vw, 3.05rem);
    margin-bottom: 25px;
    line-height: 1.15;
  }
  .docs-article .description {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 30px;
  }
  .prose {
    font-size: 0.96rem;
    color: var(--theme-prose);
    line-height: 1.85;
  }
  .prose h2 {
    font-size: 1.65rem;
    margin: 48px 0 18px;
    color: var(--ink);
    letter-spacing: -0.03em;
    line-height: 1.3;
    scroll-margin-top: 95px;
  }
  .prose h3 {
    font-size: 1.2rem;
    margin: 32px 0 12px;
    color: var(--ink);
    line-height: 1.4;
    scroll-margin-top: 95px;
  }
  .prose h4 {
    scroll-margin-top: 95px;
  }
  .prose p,
  .prose ul,
  .prose ol {
    margin: 18px 0;
  }
  .prose li {
    margin: 9px 0;
    padding-left: 5px;
  }
  .prose a {
    color: var(--theme-link);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
  }
  .prose a:hover {
    text-decoration-color: currentColor;
  }
  .prose .anchor {
    font-size: 0.7em;
    opacity: 0;
    text-decoration: none;
    margin-left: 10px;
  }
  .prose :is(h2, h3):hover .anchor,
  .prose .anchor:focus {
    opacity: 1;
  }
  .prose blockquote {
    margin: 28px 0;
    padding: 4px 24px;
    border-left: 3px solid var(--green);
    background: var(--pale);
    border-radius: 0 8px 8px 0;
    font-size: 0.88rem;
  }
  .prose blockquote a {
    color: var(--theme-soft-ink);
  }
  .prose img {
    border-radius: 10px;
    border: 1px solid var(--line);
    margin-block: 30px 12px;
    width: 100%;
  }
  .prose img[src*='mobile'] {
    max-width: 300px;
    margin-inline: auto;
  }
  .prose p:has(> em:only-child) {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.6;
  }
  .prose code {
    background: var(--theme-raised);
    border-radius: 4px;
    padding: 2px 5px;
    color: var(--theme-soft-ink);
    font-size: 0.82em;
    overflow-wrap: anywhere;
  }
  .clipboard-fallback {
    position: fixed;
    left: 0;
    top: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .code-block {
    position: relative;
    margin: 26px 0;
  }
  .prose pre {
    background: var(--code);
    color: #f5f5f5;
    border-radius: 9px;
    padding: 48px 22px 22px;
    overflow: auto;
    font-size: 0.83rem;
    line-height: 1.7;
    margin: 0;
  }
  .prose pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
    overflow-wrap: normal;
  }
  .copy {
    position: absolute;
    right: 12px;
    top: 10px;
    border: 1px solid var(--theme-soft-border);
    background: var(--theme-raised);
    color: var(--theme-soft-ink);
    border-radius: 5px;
    padding: 3px 10px;
    font-size: 0.7rem;
    min-height: 28px;
  }
  .prose table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.82rem;
    line-height: 1.7;
  }
  .prose td,
  .prose th {
    padding: 13px 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--line);
    min-width: 130px;
  }
  .prose th {
    background: var(--pale);
    color: var(--ink);
  }
  .prose td {
    overflow-wrap: anywhere;
  }
  .docs-toc {
    position: sticky;
    top: 111px;
    align-self: start;
    max-height: calc(100dvh - 140px);
    overflow: auto;
    font-size: 0.73rem;
    color: var(--muted);
    line-height: 1.6;
    padding: 0 0 12px 16px;
    border-left: 1px solid var(--line);
    margin-top: 53px;
  }
  .docs-toc h2 {
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  .docs-toc a {
    display: block;
    padding: 5px 0;
  }
  .docs-toc a:hover {
    color: var(--green);
  }
  .docs-page-footer {
    border-top: 1px solid var(--line);
    margin-top: 42px;
    padding-top: 20px;
    font-size: 0.73rem;
    color: var(--muted);
  }
  .page-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 30px;
  }
  .page-pagination a {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 9px;
    font-size: 0.85rem;
  }
  .page-pagination small {
    display: block;
    color: var(--muted);
    font-size: 0.7rem;
    margin-bottom: 5px;
  }
  .page-pagination a:last-child {
    text-align: right;
  }
  .docs-home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 30px 0;
  }
  .docs-home-grid a {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 22px;
    background: var(--white);
    font-size: 0.85rem;
  }
  .docs-home-grid strong {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 1rem;
  }
  .docs-home-grid span {
    color: var(--muted);
  }
  dialog.search-dialog {
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 35px 100px #0b211f44;
    padding: 0;
    background: var(--white);
    color: var(--ink);
    width: min(640px, calc(100% - 24px));
    max-height: 80dvh;
    margin: 10dvh auto auto;
  }
  dialog::backdrop {
    background: #071e19c4;
    backdrop-filter: blur(4px);
  }
  .screenshot-link {
    display: block;
    cursor: zoom-in;
  }
  html:has(.image-viewer[open]) {
    overflow: hidden;
  }
  dialog.image-viewer {
    width: min(1280px, calc(100% - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 30px 100px #0b211f55;
    overflow: auto;
  }
  .image-viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
  }
  .image-viewer-header h2 {
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.4;
  }
  .image-viewer-header form {
    flex-shrink: 0;
  }
  .image-viewer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--pale);
    color: var(--green);
  }
  .image-viewer-media {
    position: relative;
    min-height: 100px;
    background: var(--pale);
  }
  .image-viewer-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 220px);
    object-fit: contain;
    margin: auto;
  }
  .image-viewer-status {
    padding: 24px;
    font-size: 0.85rem;
    color: var(--muted);
  }
  .image-viewer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 24px;
    border-top: 1px solid var(--line);
    padding: 14px 20px;
    font-size: 0.75rem;
    color: var(--muted);
  }
  .image-viewer-original {
    flex-shrink: 0;
  }
  .search-form {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
  }
  .search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .search-form input {
    width: 100%;
    min-width: 0;
    background: transparent;
    color: var(--ink);
    border: 0;
    padding: 8px;
    outline-offset: 0;
  }
  .search-close {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 5px;
    padding: 4px 9px;
    font-size: 0.72rem;
  }
  .search-results {
    max-height: 55dvh;
    overflow: auto;
    padding: 12px;
  }
  .search-results a {
    display: block;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid transparent;
  }
  .search-results a:hover,
  .search-results a:focus-visible {
    background: var(--pale);
    border-color: var(--line);
  }
  .search-results strong {
    display: block;
    font-size: 0.95rem;
  }
  .search-results span {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 4px;
  }
  .search-status {
    font-size: 0.77rem;
    color: var(--muted);
    padding: 10px 18px;
  }
  .mobile-docs-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 6px 10px;
  }
  .notfound {
    padding-block: 100px;
    min-height: 65vh;
    max-width: 700px;
  }
}
@layer responsive {
  @media (min-width: 1500px) {
    .hero {
      padding-top: 95px;
    }
    .hero h1 {
      font-size: 6.6rem;
    }
  }
  @media (max-width: 1200px) {
    .docs-layout {
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 40px;
      max-width: 1100px;
    }
    .docs-toc {
      display: none;
    }
    .hero-top {
      gap: 35px;
    }
    .split {
      gap: 50px;
    }
    .main-nav {
      gap: 20px;
    }
  }
  @media (max-width: 900px) {
    .wrap {
      width: calc(100% - 48px);
    }
    .header-inner {
      height: 72px;
    }
    .hero-top {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .hero h1 {
      font-size: 5.3rem;
    }
    .hero-side {
      max-width: 600px;
    }
    .hero-side .lede {
      font-size: 1.12rem;
    }
    .hero {
      padding-top: 55px;
    }
    .split,
    .split.reverse {
      grid-template-columns: 1fr;
      gap: 38px;
    }
    .split.reverse .feature-picture {
      order: 2;
    }
    .split h2 {
      max-width: 620px;
    }
    .section {
      padding-block: 70px;
    }
    .feature-grid {
      gap: 25px;
    }
    .faq-layout {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .docs-topnav .source-link {
      display: none;
    }
    .search-trigger {
      min-width: 190px;
      gap: 15px;
    }
    .docs-layout {
      gap: 28px;
      padding-inline: 24px;
      grid-template-columns: 190px minmax(0, 1fr);
    }
    .docs-sidebar a {
      font-size: 0.75rem;
    }
    .footer-links {
      gap: 20px;
    }
  }
  @media (max-width: 760px) {
    .wrap {
      width: calc(100% - 36px);
    }
    .header-inner {
      gap: 10px;
    }
    .header-inner > .brand {
      margin-right: auto;
    }
    .brand {
      font-size: 1.2rem;
    }
    .brand img {
      width: 33px;
      height: 33px;
    }
    .menu-toggle {
      display: block;
    }
    .main-nav {
      display: none;
      position: absolute;
      top: 71px;
      left: 0;
      right: 0;
      background: var(--paper);
      border-bottom: 1px solid var(--line);
      padding: 20px 24px;
      flex-direction: column;
      align-items: stretch;
      gap: 16px;
      box-shadow: 0 20px 25px #19342e12;
    }
    .main-nav.is-open {
      display: flex;
    }
    .hero {
      padding-block: 44px 45px;
    }
    .hero h1 {
      font-size: clamp(3rem, 12.3vw, 4.8rem);
    }
    .hero-top {
      margin-bottom: 32px;
    }
    .hero-side .lede {
      font-size: 1rem;
    }
    .hero-caption {
      flex-direction: column;
      gap: 5px;
    }
    .hero-shot {
      margin-inline: -6px;
    }
    .shot-bar {
      height: 32px;
      padding-inline: 12px;
    }
    .shot-bar small {
      display: none;
    }
    .principles {
      grid-template-columns: 1fr;
      gap: 20px;
      padding-block: 25px;
    }
    .principles strong {
      font-size: 0.9rem;
    }
    .section {
      padding-block: 58px;
    }
    .section-heading {
      margin-bottom: 30px;
    }
    .feature-grid,
    .steps {
      grid-template-columns: 1fr;
      gap: 30px;
      margin-top: 35px;
    }
    .feature-grid article {
      padding-top: 20px;
    }
    .feature-grid .number {
      margin-bottom: 12px;
    }
    .feature-picture {
      padding: 14px;
    }
    .gallery {
      grid-template-columns: 1fr;
    }
    .faq-layout {
      gap: 15px;
    }
    .footer-top {
      flex-direction: column;
    }
    .footer-links {
      flex-wrap: wrap;
      gap: 16px 25px;
    }
    .footer-bottom {
      flex-direction: column;
      gap: 10px;
    }
    .closing {
      padding-block: 65px;
    }
    .page-intro {
      padding-top: 50px;
    }
    .docs-header .wrap {
      width: calc(100% - 30px);
    }
    .docs-header .brand small {
      display: none;
    }
    .docs-topnav {
      gap: 8px;
    }
    .docs-topnav > a {
      display: none;
    }
    .search-trigger {
      min-width: 0;
      padding: 8px 12px;
      font-size: 0.78rem;
    }
    .search-trigger svg {
      display: block;
      width: 18px;
      height: 18px;
    }
    .search-trigger span {
      position: absolute;
      width: 1px;
      height: 1px;
      overflow: hidden;
      clip-path: inset(50%);
    }
    .search-trigger kbd {
      display: none;
    }
    .mobile-docs-toggle {
      display: block;
    }
    .docs-layout {
      display: block;
      padding-inline: 20px;
    }
    .docs-sidebar {
      display: none;
      position: fixed;
      left: 0;
      top: 72px;
      width: min(330px, 90vw);
      height: calc(100dvh - 72px);
      padding: 24px;
      background: var(--paper);
      z-index: 19;
      box-shadow: 12px 10px 40px #19342e33;
    }
    .docs-sidebar.is-open {
      display: block;
    }
    .docs-sidebar a {
      font-size: 0.86rem;
      padding: 9px 10px;
    }
    .docs-article {
      padding-top: 34px;
    }
    .docs-article h1 {
      font-size: 2.3rem;
    }
    .docs-article .description {
      font-size: 1.05rem;
    }
    .prose {
      font-size: 0.93rem;
    }
    .prose h2 {
      font-size: 1.45rem;
    }
    .prose pre {
      font-size: 0.73rem;
      padding-inline: 16px;
    }
    .prose ul,
    .prose ol {
      padding-left: 22px;
    }
    .docs-home-grid {
      grid-template-columns: 1fr;
    }
    .page-pagination {
      grid-template-columns: 1fr;
    }
    .page-pagination a:last-child {
      text-align: left;
    }
    .actions .button {
      min-height: 46px;
    }
    .comparison {
      font-size: 0.8rem;
    }
    .comparison td,
    .comparison th {
      padding: 14px;
    }
  }
  @media (max-width: 310px) {
    .docs-header .brand span {
      display: none;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    :root {
      scroll-behavior: auto;
    }
    *,
    *::before,
    *::after {
      transition: none !important;
      animation: none !important;
    }
  }
}
