    :root {
      color-scheme: light dark;
      --canvas: #f0f2f5;
      --surface: #ffffff;
      --surface-soft: #f7f8fa;
      --ink: #14171a;
      --muted: #65676b;
      --line: #e1e4e8;
      --blue: #0866ff;
      --blue-strong: #075ce6;
      --blue-soft: #e7f3ff;
      --green: #31a24c;
      --nav: rgba(255, 255, 255, .94);
      --header-core: rgba(240, 242, 245, .88);
      --header-mid: rgba(240, 242, 245, .58);
      --control: #ffffff;
      --shadow: 0 2px 12px rgba(16, 24, 40, .08);
    }
    @media (prefers-color-scheme: dark) {
      :root {
        --canvas: #18191a;
        --surface: #242526;
        --surface-soft: #2f3031;
        --ink: #f2f3f5;
        --muted: #b0b3b8;
        --line: #3a3b3c;
        --blue: #2d88ff;
        --blue-strong: #4599ff;
        --blue-soft: #263951;
        --green: #45bd62;
        --nav: rgba(36, 37, 38, .95);
        --header-core: rgba(24, 25, 26, .9);
        --header-mid: rgba(24, 25, 26, .62);
        --control: #242526;
        --shadow: 0 2px 14px rgba(0, 0, 0, .28);
      }
    }
    * { box-sizing: border-box; }
    html {
      scroll-behavior: auto;
      scroll-padding-top: calc(158px + env(safe-area-inset-top));
      scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }
    body {
      margin: 0;
      min-width: 0;
      background: var(--canvas);
      color: var(--ink);
      font-family: "DM Sans", ui-sans-serif, sans-serif;
      font-size: 16px;
      line-height: 1.5;
      text-rendering: optimizeLegibility;
    }
    a { color: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button:focus-visible, a:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--blue) 45%, transparent);
      outline-offset: 3px;
    }
    svg { display: block; }
    .app-header {
      position: fixed;
      inset: 0 0 auto;
      /* Above the menu scrim (40) so the morphed X stays tappable while the
         drawer is open; below the drawer itself (50). */
      z-index: 45;
      height: calc(170px + env(safe-area-inset-top));
      pointer-events: none;
      background: radial-gradient(ellipse 82% 92% at 50% 0%, var(--header-core) 0%, var(--header-core) 42%, var(--header-mid) 68%, transparent 100%);
    }
    .topbar {
      position: relative;
      width: min(760px, calc(100% - 28px));
      height: calc(142px + env(safe-area-inset-top));
      padding-top: env(safe-area-inset-top);
      margin: 0 auto;
      pointer-events: auto;
    }
    .identity {
      position: absolute;
      top: calc(8px + env(safe-area-inset-top));
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      flex-direction: column;
      align-items: center;
      min-width: 0;
      text-decoration: none;
    }
    .top-avatar {
      position: relative;
      z-index: 2;
      width: 92px;
      height: 92px;
      flex: 0 0 auto;
      object-fit: cover;
      border-radius: 50%;
      border: 4px solid var(--control);
      box-shadow: 0 1px 0 rgba(16, 24, 40, .08), 0 5px 18px rgba(16, 24, 40, .12);
    }
    .identity h1 {
      position: relative;
      z-index: 1;
      margin: -9px 0 0;
      padding: 8px 18px 9px;
      border-radius: 999px;
      background: var(--control);
      color: var(--ink);
      box-shadow: 0 1px 0 rgba(16, 24, 40, .08), 0 4px 14px rgba(16, 24, 40, .10);
      font-size: 16px;
      line-height: 1;
      letter-spacing: -.01em;
      white-space: nowrap;
    }
    .icon-button {
      position: absolute;
      top: calc(8px + env(safe-area-inset-top));
      min-width: 52px;
      height: 52px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
      background: var(--control);
      color: var(--ink);
      text-decoration: none;
      box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
      font-size: 14px;
      font-weight: 700;
    }
    .icon-button.left {
      left: 0;
      width: 52px;
      border-radius: 50%;
    }
    .icon-button.right {
      right: 0;
      padding: 0 20px;
      border-radius: 999px;
    }
    .icon-button:hover { color: var(--blue); }
    button.icon-button {
      font: inherit;
      cursor: pointer;
      padding: 0;
    }
    .feed {
      width: min(720px, calc(100% - 28px));
      margin: 0 auto;
      padding: calc(154px + env(safe-area-inset-top)) 0 calc(112px + env(safe-area-inset-bottom));
    }
    .profile {
      padding: 10px 6px 22px;
      text-align: center;
    }
    .roleline {
      max-width: 510px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 16px;
      font-weight: 400; /* h1 carries UA bold; the roleline stays regular */
    }
    .profile-actions {
      display: flex;
      justify-content: center;
      gap: 9px;
      margin-top: 19px;
    }
    .action {
      min-height: 42px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 18px;
      border-radius: 10px;
      font-weight: 700;
      font-size: 14px;
      text-decoration: none;
    }
    .action.primary { background: var(--blue); color: white; }
    .action.primary:hover { background: var(--blue-strong); }
    .action.secondary { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
    .action.secondary:hover { color: var(--blue); background: var(--blue-soft); }
    .thread {
      display: grid;
      gap: 8px;
      margin: 12px 0 20px;
    }
    .bubble {
      max-width: 84%;
      margin: 0;
      padding: 12px 15px;
      border-radius: 19px;
      font-size: clamp(17px, 3vw, 20px);
      line-height: 1.42;
      text-align: left;
    }
    .bubble.from-me {
      justify-self: end;
      border-bottom-right-radius: 5px;
      background: var(--blue);
      color: #fff;
    }
    .bubble.from-world {
      justify-self: start;
      border-bottom-left-radius: 5px;
      background: var(--surface);
      color: var(--ink);
      box-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    }
    .surface {
      margin-top: 16px;
      padding: 22px;
      background: var(--surface);
      border-radius: 18px;
      box-shadow: var(--shadow);
    }
    .post-head {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-bottom: 20px;
    }
    .mini-avatar {
      width: 40px;
      height: 40px;
      object-fit: cover;
      border-radius: 50%;
    }
    .post-author { font-weight: 700; line-height: 1.15; }
    .post-meta { margin-top: 3px; color: var(--muted); font-size: 12px; }
    .section-title {
      margin: 0;
      font-size: clamp(25px, 5vw, 34px);
      line-height: 1.12;
      letter-spacing: -.03em;
    }
    .section-intro {
      margin: 10px 0 0;
      color: var(--muted);
      font-size: 17px;
    }
    .timeline { margin-top: 22px; }
    .job {
      display: grid;
      grid-template-columns: 118px minmax(0, 1fr);
      gap: 20px;
      padding: 21px 0;
      border-top: 1px solid var(--line);
    }
    .job:first-child { border-top-color: var(--ink); }
    .years {
      padding-top: 3px;
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
      letter-spacing: .02em;
    }
    .job h3 {
      margin: 0 0 7px;
      font-size: 18px;
      line-height: 1.3;
    }
    .company { color: var(--blue); }
    .job p { margin: 0; color: var(--muted); }
    .work-list {
      display: grid;
      gap: 8px;
      margin: 13px 0 0;
      padding: 0;
      list-style: none;
    }
    .work-list li { position: relative; padding-left: 19px; }
    .work-list li::before {
      content: "";
      position: absolute;
      top: .58em;
      left: 2px;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--blue);
    }
    .skills {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      padding-top: 18px;
      border-top: 1px solid var(--line);
    }
    .skill {
      padding: 7px 11px;
      border-radius: 9px;
      background: var(--blue-soft);
      color: var(--blue-strong);
      font-size: 12px;
      font-weight: 700;
    }
    .thought {
      margin-top: 18px;
      padding: 18px 0 0;
      border-top: 1px solid var(--line);
    }
    .thought h3 { margin: 0 0 8px; font-size: 19px; }
    .thought p { margin: 0; color: var(--muted); }
    .principles {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 22px;
    }
    .principle {
      min-height: 126px;
      padding: 16px;
      background: var(--surface-soft);
      border-radius: 12px;
    }
    .principle b {
      display: block;
      margin-bottom: 22px;
      color: var(--blue);
      font-size: 12px;
    }
    .principle p { margin: 0; font-weight: 600; line-height: 1.35; }
    .contact-panel {
      overflow: hidden;
      margin-top: 16px;
      background: var(--blue);
      color: #fff;
      border-radius: 18px;
      box-shadow: var(--shadow);
    }
    .contact-content { padding: 26px 22px 20px; }
    .contact-panel .section-title { max-width: 460px; }
    .contact-panel p { margin: 10px 0 0; color: rgba(255,255,255,.78); }
    .contact-options {
      display: grid;
      grid-template-columns: 1fr 1fr;
      border-top: 1px solid rgba(255,255,255,.25);
    }
    .contact-options a,
    .copy-button {
      min-height: 58px;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      border: 0;
      background: transparent;
      color: white;
      font: 700 14px/1 "DM Sans", ui-sans-serif, sans-serif;
      text-decoration: none;
      cursor: pointer;
    }
    .contact-options > * + * { border-left: 1px solid rgba(255,255,255,.25); }
    .contact-options a:hover,
    .copy-button:hover { background: rgba(0,0,0,.1); }
    footer {
      padding: 30px 10px 12px;
      color: var(--muted);
      text-align: center;
      font-size: 12px;
    }
    .bottom-nav {
      --active-index: 0;
      position: fixed;
      left: 50%;
      bottom: max(10px, env(safe-area-inset-bottom));
      z-index: 30;
      width: min(560px, calc(100% - 24px));
      transform: translateX(-50%);
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      padding: 7px;
      border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
      border-radius: 999px;
      background: var(--control);
      box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
      isolation: isolate;
    }
    .bottom-nav::before {
      content: "";
      position: absolute;
      z-index: 0;
      top: 7px;
      bottom: 7px;
      left: 7px;
      width: calc((100% - 14px) / 3);
      border-radius: 999px;
      background: var(--blue-soft);
      transform: translateX(calc(var(--active-index) * 100%));
      transition: transform .34s cubic-bezier(.2, .82, .25, 1);
      pointer-events: none;
      /* Own view-transition snapshot so the pill slides between tabs on
         cross-document navigation. Without this the pill only ever renders
         in its final position (the ::before transition needs a live DOM
         update, which a fresh page load never gives it). Reduced-motion
         users stay safe: @view-transition is no-preference-only and the
         reduce block below disables all view-transition animations. */
      view-transition-name: nav-highlight;
    }
    .bottom-nav a {
      position: relative;
      z-index: 1;
      min-width: 0;
      min-height: 52px;
      touch-action: manipulation;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      border-radius: 999px;
      color: var(--muted);
      font-size: 10px;
      font-weight: 700;
      text-decoration: none;
      transition: color .2s ease;
    }
    .bottom-nav a.active { color: var(--blue); }
    .bottom-nav svg { width: 22px; height: 22px; }
    .bottom-nav.no-active::before { display: none; }

    /* Motion micro-interactions. Every transition below is killed under
       prefers-reduced-motion (see the media query near the end). */

    /* Active tab swaps outline -> filled, iOS-style. .icon-fill overrides the
       stroke look of .ui-icon because filled Tabler glyphs are solid shapes. */
    .ui-icon.icon-fill { fill: currentColor; stroke: none; }
    .bottom-nav .tab-icon-fill { display: none; }
    .bottom-nav a.active .tab-icon-outline { display: none; }
    .bottom-nav a.active .tab-icon-fill { display: block; }

    /* Menu button morphs into an X while the drawer is open. The SVG is
       inlined in the header (not a <use> of the sprite) because paths inside
       a <use> shadow tree can't be targeted by CSS. */
    .menu-icon .mi {
      transition: transform .25s cubic-bezier(.3, .7, .3, 1), opacity .18s ease;
      transform-box: fill-box;
      transform-origin: center;
    }
    body.menu-open .menu-icon .mi-top { transform: translateY(5px) rotate(45deg); }
    body.menu-open .menu-icon .mi-mid { transform: scaleX(0); opacity: 0; }
    body.menu-open .menu-icon .mi-bot { transform: translateY(-5px) rotate(-45deg); }

    /* Drawer links stagger in when the drawer opens. */
    @media (prefers-reduced-motion: no-preference) {
      .site-drawer.open nav a { animation: drawer-item-in .3s cubic-bezier(.2, .82, .25, 1) backwards; }
      .site-drawer.open nav a:nth-child(2) { animation-delay: .04s; }
      .site-drawer.open nav a:nth-child(3) { animation-delay: .08s; }
      .site-drawer.open nav a:nth-child(4) { animation-delay: .12s; }
      .site-drawer.open nav a:nth-child(5) { animation-delay: .16s; }
      .site-drawer.open nav a:nth-child(6) { animation-delay: .2s; }
    }
    @keyframes drawer-item-in { from { opacity: 0; transform: translateX(-14px); } }

    /* Copy button morphs copy -> check on success (class set by site.js). */
    .copy-icon { position: relative; display: inline-block; width: 18px; height: 18px; flex: none; }
    .copy-icon svg { position: absolute; inset: 0; transition: opacity .18s ease, transform .28s cubic-bezier(.3, 1.4, .4, 1); }
    .copy-icon .copy-check { opacity: 0; transform: scale(.4); }
    .copy-button.copied .copy-idle { opacity: 0; transform: scale(.4); }
    .copy-button.copied .copy-check { opacity: 1; transform: scale(1); }
    /* Menu drawer: slides in from the left when the header menu button
       is tapped. Hidden off-canvas (not display:none) so it can animate;
       without JS it simply never opens. */
    .scrim {
      position: fixed;
      inset: 0;
      z-index: 40;
      background: rgba(16, 24, 40, .38);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s;
    }
    .scrim.open { opacity: 1; visibility: visible; }
    .site-drawer {
      position: fixed;
      top: 0;
      bottom: 0;
      left: 0;
      z-index: 50;
      width: min(320px, 84vw);
      display: flex;
      flex-direction: column;
      padding: 20px 14px calc(20px + env(safe-area-inset-bottom));
      background: var(--control);
      border-right: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
      border-radius: 0 24px 24px 0;
      box-shadow: 8px 0 32px rgba(16, 24, 40, .18);
      transform: translateX(-102%);
      visibility: hidden;
      transition: transform .3s cubic-bezier(.2, .82, .25, 1), visibility .3s;
    }
    .site-drawer.open { transform: none; visibility: visible; }
    .site-drawer nav { display: flex; flex-direction: column; gap: 2px; }
    .site-drawer nav a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 11px 12px;
      border-radius: 14px;
      color: var(--ink);
      font-size: 15px;
      font-weight: 600;
      text-decoration: none;
    }
    .site-drawer nav a.active {
      background: var(--blue-soft);
      color: var(--blue);
    }
    .drawer-contact {
      margin-top: auto;
      padding-top: 12px;
      border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
      display: flex;
      flex-direction: column;
      gap: 2px;
    }
    .drawer-contact a {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 12px;
      border-radius: 14px;
      color: var(--muted);
      font-size: 14px;
      font-weight: 600;
      text-decoration: none;
    }
    body.menu-open { overflow: hidden; }
    .toast {
      position: fixed;
      left: 50%;
      bottom: calc(86px + env(safe-area-inset-bottom));
      z-index: 40;
      padding: 11px 15px;
      border-radius: 10px;
      background: var(--ink);
      color: var(--surface);
      font-size: 13px;
      font-weight: 700;
      opacity: 0;
      transform: translate(-50%, 8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease;
    }
    .toast.show { opacity: 1; transform: translate(-50%, 0); }
    .site-footer-links {
      display: flex;
      justify-content: center;
      gap: 18px;
      margin-top: 7px;
    }
    .site-footer-link {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      color: var(--blue);
      font-weight: 700;
      text-decoration: none;
    }
    .site-footer-link:hover { text-decoration: underline; }
    .icon-sprite {
      position: absolute;
      width: 0;
      height: 0;
      overflow: hidden;
    }
    .ui-icon {
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    /* Cross-document view transitions: the fixed chrome (avatar, name pill,
       bottom nav) persists between pages while the content crossfades.
       Unsupported browsers simply navigate normally. */
    @media (prefers-reduced-motion: no-preference) {
      @view-transition { navigation: auto; }
    }
    .top-avatar { view-transition-name: site-avatar; }
    .identity h1 { view-transition-name: site-pill; }
    .bottom-nav { view-transition-name: site-nav; }
    .docs-view {
      width: min(1040px, calc(100% - 28px));
      margin: 0 auto;
      padding: calc(160px + env(safe-area-inset-top)) 0 calc(54px + env(safe-area-inset-bottom));
    }
    .docs-lead {
      max-width: 700px;
      padding: 12px 2px 34px;
    }
    .docs-back {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      margin-bottom: 18px;
      color: var(--blue);
      font-size: 14px;
      font-weight: 700;
      text-decoration: none;
    }
    .docs-back:hover { text-decoration: underline; }
    .docs-lead h2 {
      margin: 0;
      font-size: clamp(34px, 7vw, 58px);
      line-height: 1;
      letter-spacing: -.045em;
    }
    .docs-lead p {
      max-width: 610px;
      margin: 16px 0 0;
      color: var(--muted);
      font-size: 18px;
    }
    .docs-layout {
      display: grid;
      grid-template-columns: 188px minmax(0, 1fr);
      gap: 38px;
      align-items: start;
    }
    .docs-menu {
      position: sticky;
      top: calc(164px + env(safe-area-inset-top));
      display: grid;
      gap: 4px;
      padding: 6px;
      border-radius: 14px;
      background: var(--surface);
      box-shadow: var(--shadow);
    }
    .docs-menu a {
      padding: 10px 12px;
      border-radius: 9px;
      color: var(--muted);
      font-size: 13px;
      font-weight: 700;
      text-decoration: none;
    }
    .docs-menu a:hover,
    .docs-menu a:focus-visible { color: var(--blue); background: var(--blue-soft); }
    .docs-content { min-width: 0; }
    .docs-panel {
      padding: 26px 0 34px;
      border-top: 1px solid var(--line);
      scroll-margin-top: calc(160px + env(safe-area-inset-top));
    }
    .docs-panel:first-child { padding-top: 0; border-top: 0; }
    .docs-panel h3 {
      margin: 0;
      font-size: clamp(24px, 4vw, 32px);
      line-height: 1.15;
      letter-spacing: -.025em;
    }
    .docs-panel > p {
      max-width: 650px;
      margin: 9px 0 0;
      color: var(--muted);
    }
    .doc-callout {
      margin-top: 20px;
      padding: 16px 18px;
      border-radius: 12px;
      background: var(--blue-soft);
      color: var(--blue-strong);
      font-weight: 600;
    }
    .doc-list {
      display: grid;
      gap: 0;
      margin: 20px 0 0;
      padding: 0;
      list-style: none;
      border-top: 1px solid var(--line);
    }
    .doc-list li {
      display: grid;
      grid-template-columns: 128px minmax(0, 1fr);
      gap: 16px;
      padding: 15px 0;
      border-bottom: 1px solid var(--line);
    }
    .doc-list b { font-size: 13px; }
    .doc-list span { color: var(--muted); }
    .token-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      margin-top: 20px;
    }
    .token {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 11px;
      background: var(--surface);
    }
    .token-color { height: 64px; background: var(--swatch); }
    .token-label { padding: 10px; font-size: 11px; font-weight: 700; }
    .lab {
      margin-top: 20px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 14px;
      background: var(--surface);
    }
    .lab-toolbar {
      display: flex;
      flex-wrap: wrap;
      gap: 14px 20px;
      align-items: end;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--line);
    }
    .lab-control {
      display: grid;
      gap: 5px;
      min-width: 120px;
      color: var(--muted);
      font-size: 11px;
      font-weight: 700;
    }
    .lab-control input,
    .lab-control select {
      accent-color: var(--blue);
      min-height: 34px;
      max-width: 180px;
      color: var(--ink);
      font: inherit;
    }
    .type-preview {
      padding: 24px 2px 8px;
      font-size: 34px;
      font-weight: 600;
      line-height: 1.1;
      letter-spacing: -.03em;
      overflow-wrap: anywhere;
    }
    .icon-preview-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 8px;
      padding-top: 18px;
    }
    .icon-preview {
      min-height: 88px;
      display: grid;
      place-items: center;
      border-radius: 10px;
      background: var(--surface-soft);
      color: var(--ink);
    }
    .icon-preview svg { width: 28px; height: 28px; }
    .lottie-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
      gap: 12px;
      padding-top: 18px;
    }
    .lottie-demo {
      display: grid;
      gap: 10px;
      justify-items: center;
      padding: 18px 12px 14px;
      border-radius: 10px;
      background: var(--surface-soft);
      text-align: center;
    }
    .lottie-mount { width: 96px; height: 96px; color: var(--blue); }
    .lottie-mount svg { width: 100%; height: 100%; display: block; }
    .lottie-caption { color: var(--muted); font-size: 12px; }
    .lottie-demo .action { min-height: 40px; padding: 0 18px; font-size: 13px; }
    .component-row {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
      margin-top: 20px;
    }
    .component-row .icon-button {
      position: static;
      width: 52px;
      border-radius: 50%;
    }
    .component-note {
      margin-top: 12px;
      color: var(--muted);
      font-size: 13px;
    }
    .code-block {
      overflow-x: auto;
      margin: 20px 0 0;
      padding: 16px;
      border-radius: 10px;
      background: #111827;
      color: #e5edf9;
      font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      white-space: pre;
    }
    .docs-foot {
      padding-top: 24px;
      color: var(--muted);
      font-size: 12px;
    }
    @media (max-width: 760px) {
      .docs-layout { grid-template-columns: 1fr; gap: 24px; }
      .docs-menu {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      .docs-menu a { text-align: center; }
      .token-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 600px) {
      .feed, .topbar { width: min(100% - 20px, 520px); }
      .feed { padding-top: calc(150px + env(safe-area-inset-top)); }
      .app-header { height: calc(166px + env(safe-area-inset-top)); }
      .topbar { height: calc(138px + env(safe-area-inset-top)); }
      .top-avatar { width: 88px; height: 88px; }
      .icon-button { top: calc(8px + env(safe-area-inset-top)); min-width: 50px; height: 50px; }
      .icon-button.left { width: 50px; }
      .icon-button.right { padding-inline: 17px; }
      .surface { padding: 18px 16px; border-radius: 16px; }
      .profile { padding-top: 8px; }
      .profile-actions .action { flex: 1; max-width: 190px; padding-inline: 12px; }
      .bubble { max-width: 92%; }
      .job { grid-template-columns: 1fr; gap: 6px; }
      .years { padding: 0; }
      .principles { grid-template-columns: 1fr; }
      .principle { min-height: 108px; }
      .contact-panel { border-radius: 16px; }
      .docs-view { width: min(100% - 20px, 520px); padding-top: calc(150px + env(safe-area-inset-top)); }
      .docs-lead { padding-inline: 4px; }
      .docs-lead h2 { font-size: 38px; }
      .docs-lead p { font-size: 16px; }
      .doc-list li { grid-template-columns: 1fr; gap: 3px; }
      .icon-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .type-preview { font-size: 29px; }
    }
    @media (max-width: 360px) {
      .icon-button.right { width: 50px; padding: 0; border-radius: 50%; }
      .icon-button.right span { display: none; }
      .bottom-nav { width: calc(100% - 16px); }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      .toast, .bottom-nav::before, .bottom-nav a, .scrim, .site-drawer,
      .menu-icon .mi, .copy-icon svg { transition: none; }
      ::view-transition-group(*),
      ::view-transition-old(*),
      ::view-transition-new(*) { animation: none !important; }
    }
    @media print {
      :root { --canvas: #fff; --surface: #fff; --ink: #000; --muted: #444; --line: #bbb; }
      .app-header, .bottom-nav, .profile-actions, .contact-panel, .toast, .site-drawer, .scrim { display: none !important; }
      .feed { width: 100%; padding: 0; }
      .profile { text-align: left; }
      .profile-avatar-wrap { margin-left: 0; }
      .surface { box-shadow: none; border: 1px solid #bbb; break-inside: avoid; }
    }
