/* Docs: sidebar, article, "On this page", and the "Where to click" animation. Uses the home page's header and footer. */
.docs { --d-ink: #141218; --d-text: #3b3a40; --d-muted: #6b6776; --d-line: #e9e5df; --d-soft: #f3f1ee; --d-card: #fff;
  --d-yellow: #F6DC82; --d-yellow-soft: rgba(246, 220, 130, .42); --d-mint: #BFE3CF; --d-blue: #2F6FEB;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--d-ink); }
.docs h1, .docs h2, .docs h3 { font-family: Inter, system-ui, sans-serif; font-variation-settings: normal; color: var(--d-ink); }

.d-shell { width: min(1304px, 100% - 48px); margin: 0 auto; padding-top: 76px; display: grid; grid-template-columns: 236px minmax(0, 1fr) 208px; gap: 56px; align-items: start; }

/* ── sidebar ── */
.d-side { position: sticky; top: 76px; max-height: calc(100vh - 76px); overflow: auto; padding: 30px 6px 48px 0; scrollbar-width: thin; scrollbar-color: #dcd7cf transparent; }
.sg + .sg { margin-top: 22px; }
.sg-l { margin: 0 0 6px; padding: 0 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); }
.d-side ul, .d-mnav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.d-side a, .d-mnav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.35; color: var(--d-text); text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.d-side a:hover, .d-mnav a:hover { background: var(--d-soft); color: var(--d-ink); }
.d-mnav a[aria-current="page"] { background: var(--d-yellow-soft); color: var(--d-ink); font-weight: 500; }
.d-side nav { position: relative; }
.d-side li { position: relative; z-index: 1; }
.d-side a[aria-current="page"] { color: var(--d-ink); font-weight: 500; background: transparent; }
.d-side a[aria-current="page"]:hover { background: transparent; }
/* one highlight that slides to the current page */
.side-pill { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 10px; background: var(--d-yellow-soft); opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), height .45s cubic-bezier(.22, 1, .36, 1), width .45s cubic-bezier(.22, 1, .36, 1); }

/* moving between docs pages: header and sidebar stay, the article fades and rises in */
.d-main { view-transition-name: docmain; }
.d-toc { view-transition-name: doctoc; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(docmain), ::view-transition-old(doctoc) { animation: d-out .16s ease both; }
::view-transition-new(docmain), ::view-transition-new(doctoc) { animation: d-in .38s cubic-bezier(.22, 1, .36, 1) .06s both; }
::view-transition-group(docmain), ::view-transition-group(doctoc) { animation-duration: 0s; }
@keyframes d-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes d-in { from { opacity: 0; transform: translateY(12px); } }
.d-main.d-leave { opacity: 0; transform: translateY(-6px); transition: opacity .14s ease, transform .14s ease; }
.d-main.d-enter { opacity: 0; transform: translateY(12px); }
.d-main { transition: opacity .38s cubic-bezier(.22, 1, .36, 1), transform .38s cubic-bezier(.22, 1, .36, 1); }
.d-main h1:focus { outline: none; }
.ni { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: .8; }
.d-mnav { display: none; }

/* ── article ── */
.d-main { min-width: 0; max-width: 760px; padding: 34px 0 72px; }
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.d-crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--d-muted); }
.d-crumbs a { color: var(--d-muted); text-decoration: none; }
.d-crumbs a:hover { color: var(--d-ink); }
.d-crumbs .b-sep { color: #c9c4bc; }
.d-copy { position: relative; display: flex; }
.d-copy .cp, .d-copy .cp-more { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--d-line); background: var(--d-card);
  font: 500 13.5px/1 Inter, sans-serif; color: var(--d-ink); cursor: pointer; transition: background-color .15s ease; }
.d-copy .cp { border-radius: 10px 0 0 10px; }
.d-copy .cp-more { border-left: 0; border-radius: 0 10px 10px 0; padding: 0 8px; }
.d-copy .cp:hover, .d-copy .cp-more:hover { background: var(--d-soft); }
.d-copy .ci { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d-copy .cp-more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cp-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 250px; padding: 6px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; box-shadow: 0 18px 40px -20px rgba(20, 18, 24, .3); }
.cp-menu[hidden] { display: none; }
.cp-menu a, .cp-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 9px; background: none; text-align: left; text-decoration: none; cursor: pointer; font-family: inherit; }
.cp-menu a:hover, .cp-menu button:hover { background: var(--d-soft); }
.cp-menu b { display: block; font-size: 14px; font-weight: 500; color: var(--d-ink); }
.cp-menu small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--d-muted); }

.d-main h1 { margin: 0 0 14px; font-size: clamp(32px, 4vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.028em; text-wrap: balance; }
.d-lead { margin: 0 0 28px; font-size: 18.5px; line-height: 1.6; color: var(--d-text); max-width: 680px; }
.d-lead .k-combo { vertical-align: 1px; }

.d-body { font-size: 16.5px; line-height: 1.72; color: var(--d-text); }
.d-body > * + * { margin-top: 16px; }
.d-body h2 { margin: 46px 0 14px; font-size: 24px; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; scroll-margin-top: 100px; }
.d-body h2:first-child { margin-top: 36px; }
.d-body p { margin: 0 0 14px; }
.d-body a { color: var(--d-ink); text-decoration: underline; text-decoration-color: rgba(20, 18, 24, .3); text-underline-offset: 3px; }
.d-body a:hover { text-decoration-color: var(--d-ink); }
.d-body strong { color: var(--d-ink); font-weight: 600; }
.d-body ul { margin: 0 0 16px; padding-left: 20px; }
.d-body ul li { margin: 6px 0; padding-left: 4px; }
.d-body ul li::marker { color: #b7b1a8; }
.d-body code { padding: 2px 6px; border-radius: 6px; background: var(--d-soft); font: 500 .88em/1.4 ui-monospace, "Cascadia Code", Consolas, monospace; color: var(--d-ink); }

kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border: 1px solid #ddd8d0; border-bottom-width: 2px; border-radius: 7px; background: #fff;
  font: 600 12.5px/1 Inter, sans-serif; color: var(--d-ink); white-space: nowrap; }
.k-combo { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.k-plus { font-size: 12px; color: var(--d-muted); }

.d-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 0; }
.d-steps li { position: relative; display: flex; gap: 16px; padding: 0 0 18px; }
.d-steps li:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 1px; background: var(--d-line); }
.d-n { flex: none; display: grid; place-items: center; width: 27px; height: 27px; margin-top: 1px; border-radius: 50%; background: var(--d-ink); color: #fff; font-size: 13px; font-weight: 600; }
.d-steps li > div { padding-top: 1px; }

.d-note { display: flex; gap: 12px; margin: 20px 0; padding: 14px 16px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; font-size: 15.5px; line-height: 1.6; }
.d-note svg { flex: none; width: 18px; height: 18px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--d-muted); }
.d-note-tip { background: rgba(191, 227, 207, .32); border-color: rgba(120, 180, 148, .35); }
.d-note-warn { background: rgba(246, 220, 130, .28); border-color: rgba(214, 180, 70, .35); }
.d-note p { margin: 0; }

.d-table { overflow-x: auto; margin: 18px 0 22px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; }
.d-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.55; }
.d-table th { padding: 11px 16px; text-align: left; font-size: 13px; font-weight: 600; color: var(--d-muted); white-space: nowrap; background: #fbfaf8; border-bottom: 1px solid var(--d-line); }
.d-table td { padding: 11px 16px; vertical-align: top; border-top: 1px solid var(--d-line); }
.d-table tr:first-child td { border-top: 0; }
.d-table td:first-child { color: var(--d-ink); font-weight: 500; white-space: nowrap; }

.d-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.d-body .d-link { display: block; padding: 16px 18px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s ease, transform .2s ease; }
.d-body .d-link:hover { border-color: #cfc9bf; transform: translateY(-1px); }
.d-link b { display: block; font-size: 15.5px; font-weight: 600; color: var(--d-ink); }
.d-link span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--d-muted); }

.d-faq h2 { margin-bottom: 8px; }
.d-faq details { border-top: 1px solid var(--d-line); }
.d-faq details:last-of-type { border-bottom: 1px solid var(--d-line); }
.d-faq summary { list-style: none; cursor: pointer; position: relative; padding: 16px 36px 16px 0; font-size: 16.5px; font-weight: 600; line-height: 1.45; color: var(--d-ink); }
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::after { content: ""; position: absolute; right: 6px; top: 23px; width: 8px; height: 8px; border-right: 1.6px solid var(--d-muted); border-bottom: 1.6px solid var(--d-muted); transform: rotate(45deg); transition: transform .2s ease; }
.d-faq details[open] summary::after { transform: rotate(-135deg); top: 27px; }
.d-faq details p { margin: 0 0 18px; font-size: 16px; }

.d-upd { margin: 48px 0 0; padding-top: 18px; border-top: 1px solid var(--d-line); font-size: 14px; color: var(--d-muted); }
.d-upd a { color: var(--d-ink); }
.d-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.pn { display: block; padding: 16px 18px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s ease; }
.pn:hover { border-color: #cfc9bf; }
.pn.next { text-align: right; }
.pn small { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--d-muted); }
.pn small svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pn b { display: block; margin-top: 4px; font-size: 16px; font-weight: 600; color: var(--d-ink); }

/* ── on this page ── */
.d-toc { position: relative; }
.d-toc .stick { position: sticky; top: 100px; padding-top: 34px; }
.d-toc .b-lbl { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--d-ink); }
.d-toc ol { position: relative; list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--d-line); display: grid; gap: 10px; }
.d-toc li { margin: 0; }
.d-toc a { display: block; font-size: 13.5px; line-height: 1.45; color: var(--d-muted); text-decoration: none; transition: color .25s ease; }
.d-toc a:hover, .d-toc a.on { color: var(--d-ink); }
.d-toc a.on { font-weight: 500; }
.toc-bar { position: absolute; left: -2px; top: 0; width: 2px; height: 0; border-radius: 2px; background: var(--d-ink); opacity: 0;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), height .45s cubic-bezier(.22, 1, .36, 1), opacity .2s ease; pointer-events: none; }
.toc-bar.on { opacity: 1; }

/* ── "Where to click" ── */
.d-where { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--d-line); border-radius: 14px; background: #fff; }
.d-where .wl { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--d-muted); }
.d-where .wl svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.wc { height: 28px; padding: 0 11px; border: 1px solid var(--d-line); border-radius: 999px; background: var(--d-soft); font: 500 13px/1 Inter, sans-serif; color: var(--d-text); cursor: pointer; transition: background-color .25s ease, color .25s ease, border-color .25s ease; }
.wc:hover { border-color: #cfc9bf; }
.wc.on { background: var(--d-ink); border-color: var(--d-ink); color: #fff; }
.wc-sep { width: 6px; height: 6px; border-right: 1.5px solid #bdb7ae; border-top: 1.5px solid #bdb7ae; transform: rotate(45deg); margin: 0 2px 0 -2px; }

.demo { margin: 0 0 8px; }
.d-win { container-type: inline-size; position: relative; overflow: hidden; border: 1px solid var(--d-line); border-radius: 18px; background: #fff; aspect-ratio: 16 / 10;
  box-shadow: 0 1px 0 rgba(20, 18, 24, .03); display: flex; flex-direction: column; font-family: Inter, sans-serif; user-select: none; }
.demo figcaption { display: flex; align-items: center; gap: 10px; padding: 12px 4px 0; font-size: 14.5px; line-height: 1.5; color: var(--d-text); }
.cap-n { flex: none; font-size: 12.5px; font-weight: 600; color: var(--d-muted); font-variant-numeric: tabular-nums; }
.cap-t { flex: 1; }
.cap-play { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--d-line); border-radius: 50%; background: #fff; cursor: pointer; color: var(--d-ink); }
.cap-play svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.cap-play .pl { display: none; fill: currentColor; stroke: none; }
.demo.paused .cap-play .pz { display: none; }
.demo.paused .cap-play .pl { display: block; }

/* browser chrome */
.d-bar { flex: none; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--d-line); background: #f7f5f2; }
.d-dots { display: flex; gap: 6px; }
.d-dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcd7cf; }
.d-url { flex: 1; display: flex; align-items: center; gap: 6px; height: 24px; max-width: 360px; padding: 0 10px; border-radius: 8px; background: #fff; border: 1px solid var(--d-line); font-size: 11.5px; color: var(--d-muted); overflow: hidden; white-space: nowrap; }
.d-url svg { flex: none; width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.d-tb { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.d-tb > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: #55505c; transition: background-color .2s ease; }
.d-tb svg { width: 15px; height: 15px; }
.d-ext svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.d-mine { color: var(--d-ink) !important; opacity: 0; transform: scale(.6); transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1) !important; }
.d-av { width: 18px !important; height: 18px !important; border-radius: 50% !important; background: #e3ded6; }
.demo:not(.v-store) .d-mine, .demo.s-pinned .d-mine { opacity: 1; transform: none; }
.demo.s-extmenu .d-ext { background: #e9e5df; }

.d-view { position: relative; flex: 1; overflow: hidden; background: #fcfbf9; }

/* page skeleton */
.d-page { position: absolute; inset: 0; padding: 3.4cqw 6cqw 0; display: flex; flex-direction: column; gap: 3.4cqw; transition: opacity .35s ease; }
.d-nav { display: flex; align-items: center; justify-content: space-between; }
.d-nav b { width: 13%; height: 1.5cqw; border-radius: 5px; background: #2b2830; }
.d-nav span { display: flex; gap: 10px; }
.d-nav span i { width: 5.5cqw; height: 1.1cqw; border-radius: 4px; background: #e2ddd5; }
.d-nav em { width: 11%; height: 3cqw; border-radius: 999px; background: #2b2830; }
.d-hero { display: grid; justify-items: center; gap: 1.4cqw; }
.d-hero b { height: 2cqw; border-radius: 7px; background: #d9d3ca; }
.d-hero .l1 { width: 46%; } .d-hero .l2 { width: 32%; }
.d-hero .l3 { width: 20%; height: 3.6cqw; margin-top: .8cqw; border-radius: 999px; background: #E8883A; }
.d-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.d-c { position: relative; height: 0; padding-bottom: 52%; border-radius: 12px; border: 1px solid #ece8e2; background: #fff; }
.d-c > i.ic { position: absolute; left: 10%; top: 13%; width: 18%; aspect-ratio: 1; border-radius: 8px; background: var(--d-mint); }
.d-c > b { position: absolute; left: 10%; top: 50%; width: 55%; height: 1.2cqw; border-radius: 4px; background: #cfc9bf; }
.d-c > b.s { top: 66%; width: 75%; height: .9cqw; background: #e6e1da; }
.d-c > b.s2 { top: 78%; width: 48%; }
.d-c.c3 > i.ic { background: #E5A5F8; }
.d-c.ph { overflow: visible; background: linear-gradient(135deg, #F6DC82 0%, #E8883A 55%, #6495D4 100%); border: 0; }

/* store variant */
.d-store { position: absolute; inset: 0; display: none; align-items: center; gap: 16px; padding: 0 9%; background: #fff; }
.v-store .d-store { display: flex; }
.v-store .d-page { opacity: 0; }
.st-ic { flex: none; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 2.4cqw; background: #141218; color: #fff; }
.st-ic svg { width: 55%; height: 55%; }
.st-t { flex: 1; min-width: 0; display: grid; gap: 4px; }
.st-t b { font-size: 18px; font-weight: 600; color: var(--d-ink); }
.st-t em { font-style: normal; font-size: 12.5px; color: var(--d-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-stars { font-size: 11px; letter-spacing: 2px; color: #E8B13A; }
.st-btn { flex: none; padding: 10px 16px; border-radius: 999px; background: #1a73e8; color: #fff; font-size: 13px; font-weight: 600; transition: background-color .3s ease; }
.demo.s-added .st-btn, .demo.s-extmenu .st-btn, .demo.s-pinned .st-btn { background: #e8eaed; color: #3c4043; }
.d-confirm { position: absolute; left: 50%; top: 12%; width: min(330px, 80%); display: grid; gap: 6px; padding: 16px; border-radius: 12px; background: #fff; box-shadow: 0 12px 36px -10px rgba(20, 18, 24, .35); border: 1px solid var(--d-line);
  opacity: 0; transform: translate(-50%, -8px) scale(.97); pointer-events: none; transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.d-confirm b { font-size: 14px; } .d-confirm em { font-style: normal; font-size: 12px; color: var(--d-muted); }
.d-confirm span { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.d-confirm i { font-style: normal; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--d-line); font-size: 12px; font-weight: 500; }
.d-confirm i.go { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.demo.s-confirm .d-confirm { opacity: 1; transform: translate(-50%, 0); }
.d-added { position: absolute; right: 10px; top: 8px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--d-line); box-shadow: 0 10px 30px -12px rgba(20, 18, 24, .35);
  font-size: 12px; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .3s ease; }
.d-added svg { width: 15px; height: 15px; }
.demo.s-added .d-added { opacity: 1; transform: none; }
.demo.s-extmenu .d-added { opacity: 0; }
.d-extmenu { position: absolute; right: 10px; top: 8px; width: min(250px, 70%); display: grid; gap: 2px; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--d-line); box-shadow: 0 14px 36px -12px rgba(20, 18, 24, .35);
  opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .25s ease, transform .3s ease; }
.d-extmenu > b { padding: 2px 6px 8px; font-size: 13px; }
.em-r { display: flex; align-items: center; gap: 9px; padding: 7px 6px; border-radius: 8px; font-size: 12.5px; color: var(--d-ink); }
.em-r:first-of-type { background: var(--d-soft); }
.em-r.dim { color: var(--d-muted); }
.em-ic { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #141218; color: #fff; }
.em-ic svg { width: 12px; height: 12px; }
.em-r.dim .em-ic { background: #ddd8d0; }
.em-pin { margin-left: auto; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--d-muted); }
.em-pin svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.demo.s-pinned .em-r:first-of-type .em-pin { color: #1a73e8; }
.demo.s-extmenu .d-extmenu { opacity: 1; transform: none; }

/* dock: the extension's glass dock (content.css #sr-toolbar), scaled to the demo */
.d-win { --b: clamp(19px, 4.8cqw, 32px); }
.o-dock { position: absolute; left: 50%; bottom: 4.2%; z-index: 9; display: flex; align-items: center; gap: calc(var(--b) * .11); padding: calc(var(--b) * .14) calc(var(--b) * .17);
  border-radius: calc(var(--b) * .39); background: rgba(18, 18, 22, .9); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 4px 12px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .2), inset 0 -1px 0 rgba(0, 0, 0, .35);
  opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s ease, transform .4s cubic-bezier(.16, 1, .3, 1), left .3s cubic-bezier(.16, 1, .3, 1); }
.o-dock .db { display: grid; place-items: center; width: var(--b); height: var(--b); border-radius: calc(var(--b) * .22); color: #a1a1aa; transition: background-color .22s ease, color .22s ease, box-shadow .22s ease; }
.o-dock svg { width: calc(var(--b) * .5); height: calc(var(--b) * .5); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.o-dock .dsplit { display: flex; align-items: center; }
.o-dock .dchev { display: grid; place-items: center; width: calc(var(--b) * .44); height: var(--b); margin-left: -2px; color: #8b8b94; }
.o-dock .dchev svg { width: calc(var(--b) * .3); height: calc(var(--b) * .3); stroke-width: 2.4; }
.o-dock .dsep { width: 1px; height: calc(var(--b) * .56); margin: 0 calc(var(--b) * .11); background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .22), transparent); }
.demo.s-dock .o-dock { opacity: 1; transform: translate(-50%, 0); }
.demo.s-b-inspect [data-at="b-inspect"], .demo.s-b-measure [data-at="b-measure"], .demo.s-b-color [data-at="b-color"], .demo.s-b-figma [data-at="b-figma"],
.demo.s-b-resp [data-at="b-resp"], .demo.s-b-panel [data-at="b-panel"] { background: #fff; color: #09090b; box-shadow: 0 3px 12px rgba(255, 255, 255, .35), inset 0 1px 0 rgba(255, 255, 255, .9); }
.demo.s-b-inspect [data-at="b-inspect"] svg, .demo.s-b-measure [data-at="b-measure"] svg, .demo.s-b-color [data-at="b-color"] svg, .demo.s-b-figma [data-at="b-figma"] svg,
.demo.s-b-resp [data-at="b-resp"] svg, .demo.s-b-panel [data-at="b-panel"] svg { stroke-width: 2; }
.demo.s-b-pause [data-at="b-pause"] { background: #f59e0b; color: #000; }
.o-dtab { position: absolute; left: 50%; bottom: 0; z-index: 9; display: grid; place-items: center; width: calc(var(--b) * 1.6); height: calc(var(--b) * .6); border-radius: 9px 9px 0 0;
  background: rgba(20, 20, 24, .94); color: #e4e4e7; transform: translate(-50%, 110%); transition: transform .3s ease; }
.o-dtab svg { width: calc(var(--b) * .42); height: calc(var(--b) * .42); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.demo.s-dock-hidden .o-dock { opacity: 0; transform: translate(-50%, 140%); }
.demo.s-dock-hidden .o-dtab { transform: translate(-50%, 0); }
/* the side panel pushes the dock into the space that is left (content.css .sr-sp-pushed) */
.demo.s-panel .o-dock { left: 31%; --b: clamp(16px, 3.9cqw, 27px); }

/* inspector: the box model drawn on the page (content.css #sr-bm-*) */
.o-bm { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.bm-m { position: absolute; inset: -1.3cqw; background: rgba(246, 178, 107, .42); border-radius: 3px; }
.bm-p { position: absolute; inset: 0; background: rgba(147, 196, 125, .5); border-radius: 12px; }
.bm-c { position: absolute; inset: 2.1cqw; background: rgba(111, 168, 220, .5); border-radius: 4px; }
.bm-tag { position: absolute; left: -1.3cqw; bottom: calc(100% + 1.3cqw); display: inline-flex; gap: 5px; padding: 2px 6px; border-radius: 3px 3px 0 0; background: #0969da; color: rgba(255, 255, 255, .92);
  font: 500 clamp(8px, 1.4cqw, 10.5px)/1.4 Inter, sans-serif; white-space: nowrap; }
.bm-tag b { color: #fff; font-weight: 600; }
.demo.s-hover .c1 .o-bm { opacity: 1; }

/* the inspector card (content.css #sr-panel): dark, sections and rows */
.o-info { position: absolute; left: 70%; bottom: 40%; z-index: 6; width: clamp(150px, 31cqw, 214px); display: grid; gap: 2px; padding: 8px 10px 9px; border-radius: 12px; background: #1c1c1f; color: #e4e4e7;
  border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .6); font: 500 clamp(8.5px, 1.45cqw, 10.5px)/1.45 Inter, sans-serif;
  opacity: 0; transform: translateY(4px); transition: opacity .22s ease, transform .3s cubic-bezier(.22, 1, .36, 1), box-shadow .25s ease; pointer-events: none; }
.oi-h { display: flex; align-items: center; gap: 6px; padding-bottom: 5px; margin-bottom: 2px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.oi-h b { font-weight: 600; color: #fff; }
.oi-h .hint { margin-left: auto; font-style: normal; color: #71717a; }
.oi-pin { display: none; margin-left: auto; align-items: center; gap: 4px; color: #a1a1aa; }
.oi-pin svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.oi-pin i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; background: rgba(255, 255, 255, .08); }
.oi-s { margin-top: 4px; font-size: .86em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #71717a; }
.oi-r { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.oi-r > span { display: inline-flex; align-items: center; gap: 4px; color: #a1a1aa; }
.oi-r > span svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; }
.oi-r b { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; color: #fff; }
.oi-r .aa { font-style: normal; padding: 0 3px; border-radius: 3px; background: #fff; color: #141218; font-weight: 700; font-size: .9em; }
.oi-r .lvl { font-style: normal; padding: 0 4px; border-radius: 3px; background: rgba(74, 222, 128, .2); color: #4ade80; font-weight: 700; font-size: .85em; }
.demo.s-hover .c1 .o-info { opacity: 1; transform: none; }
.demo.s-pin .oi-h .hint { display: none; }
.demo.s-pin .oi-pin { display: inline-flex; }
.demo.s-pin .c1 .o-info { box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .25), 0 16px 34px -14px rgba(0, 0, 0, .6); }
.o-parent { position: absolute; inset: -1.3cqw; z-index: 2; border-radius: 4px; background: rgba(111, 168, 220, .28); outline: 1px dashed rgba(9, 105, 218, .55); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.o-parent .bm-tag { left: 0; bottom: 100%; }
.demo.s-parent .o-parent { opacity: 1; }

/* measurement (content.css #sr-dist-*): selected blue, hovered red stripes, blue line and badge */
.o-rulers i { position: absolute; z-index: 5; background: #1c1c1f; opacity: 0; transition: opacity .25s ease; }
.o-rulers .rt { left: 0; right: 0; top: 0; height: 1.9cqw; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 1.25cqw); background-size: 100% 45%; background-repeat: no-repeat; background-position: bottom; }
.o-rulers .rl { left: 0; top: 0; bottom: 0; width: 1.9cqw; background-image: repeating-linear-gradient(180deg, rgba(255, 255, 255, .35) 0 1px, transparent 1px 1.25cqw); background-size: 45% 100%; background-repeat: no-repeat; background-position: right; }
.demo.s-rulers .o-rulers i { opacity: 1; }
.o-sel { position: absolute; inset: 0; z-index: 2; border: 1.5px solid #0969da; border-radius: 12px; background: rgba(9, 105, 218, .08); opacity: 0; transition: opacity .2s ease; }
.demo.s-sel .c1 .o-sel, .demo.s-pick .c1 .o-sel { opacity: 1; }
.o-hl2 { position: absolute; inset: 0; z-index: 2; border-radius: 12px; border: 1.5px solid #ef4444; background: repeating-linear-gradient(45deg, rgba(239, 68, 68, .12) 0 6px, transparent 6px 12px); opacity: 0; transition: opacity .2s ease; }
.demo.s-gap .o-hl2 { opacity: 1; }
.o-gap { position: absolute; left: 100%; top: 50%; z-index: 3; width: 2.4cqw; opacity: 0; transition: opacity .25s ease; }
.g-line { position: absolute; left: 0; right: 0; top: 0; height: 1.5px; background: #0969da; }
.g-badge { position: absolute; left: 50%; top: -2.6cqw; transform: translateX(-50%); padding: 1px 5px; border-radius: 4px; background: #0969da; color: #fff; font: 600 clamp(8px, 1.5cqw, 11px)/1.3 Inter, sans-serif; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.demo.s-gap .o-gap { opacity: 1; }

/* colors */
.d-cur .drop { display: none; }
.demo.s-dropper .d-cur .arrow { display: none; }
.demo.s-dropper .d-cur .drop { display: block; }
.o-toast { position: absolute; left: 50%; bottom: 20%; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 7px 12px 7px 8px; border-radius: 14px; background: rgba(18, 18, 22, .9);
  border: 1px solid rgba(255, 255, 255, .14); color: #fff; font: 600 clamp(9px, 1.6cqw, 12px)/1 Inter, sans-serif; opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .3s ease; }
.o-toast i { width: 2.6cqw; height: 2.6cqw; max-width: 18px; max-height: 18px; border-radius: 6px; background: #E8883A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.o-toast em { font-style: normal; color: #4ade80; }
.demo.s-toast .o-toast { opacity: 1; transform: translate(-50%, 0); }
.o-pal { position: absolute; left: 50%; top: 50%; z-index: 4; display: grid; gap: 6px; padding: 7px; border-radius: 12px; background: rgba(18, 18, 22, .94); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); opacity: 0; transform: translate(-50%, -40%) scale(.95); transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.pl-sw { display: flex; gap: 3px; }
.pl-sw i { width: 3cqw; height: 3cqw; max-width: 22px; max-height: 22px; border-radius: 5px; }
.pl-row { display: flex; align-items: center; gap: 4px; font: 600 clamp(7.5px, 1.3cqw, 9.5px)/1 Inter, sans-serif; white-space: nowrap; }
.pl-row em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; padding: 4px 5px; border-radius: 6px; background: rgba(255, 255, 255, .1); color: #e4e4e7; }
.pl-row em svg { width: 8px; height: 8px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.pl-row b { padding: 4px 6px; border-radius: 6px; background: #fff; color: #09090b; }
.demo.s-imgpal .o-pal { opacity: 1; transform: translate(-50%, -50%); }
.demo.s-imgpal .c2 { outline: 1.5px solid #0969da; outline-offset: 2px; }

/* side panel (content.css #sr-sidepanel): dark */
.o-panel { position: absolute; top: 0; right: 0; bottom: 0; z-index: 7; width: 38%; min-width: 200px; display: flex; flex-direction: column; gap: 8px; padding: 11px; color: #e4e4e7;
  background: #0d0e12; border-left: 1px solid rgba(255, 255, 255, .08); font: 500 clamp(8.5px, 1.45cqw, 11px)/1.4 Inter, sans-serif;
  transform: translateX(102%); transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.demo.s-panel .o-panel { transform: none; }
.op-h { display: flex; align-items: baseline; gap: 6px; }
.op-h b { color: #fff; font-weight: 600; } .op-h em { font-style: normal; color: #71717a; }
.op-h i { margin-left: auto; align-self: center; color: #71717a; } .op-h i svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2; }
.op-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 9px; background: rgba(255, 255, 255, .06); }
.op-tabs span { padding: 4px 0; border-radius: 7px; text-align: center; color: #a1a1aa; transition: background-color .2s ease, color .2s ease; }
.op-tabs .t-el, .demo.s-panel-page .op-tabs .t-pg { background: rgba(255, 255, 255, .12); color: #fff; }
.demo.s-panel-page .op-tabs .t-el { background: none; color: #a1a1aa; }
.op-el, .op-pg { display: grid; gap: 6px; align-content: start; }
.op-pg, .demo.s-panel-page .op-el { display: none; }
.demo.s-panel-page .op-pg { display: grid; }
.xp { display: grid; gap: 6px; padding: 8px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); }
.xp-top { display: flex; align-items: center; gap: 5px; }
.xp-t { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; }
.xp-t svg, .xp-o svg, .xp-see svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp-m b { font-weight: 600; padding: 1px 6px; border-radius: 999px; }
.xp-m .rd { background: rgba(255, 255, 255, .08); color: #a1a1aa; } .xp-m .ok { display: none; background: rgba(74, 222, 128, .16); color: #4ade80; }
.demo.s-match .xp-m .rd { display: none; } .demo.s-match .xp-m .ok { display: inline; }
.xp-o { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; color: #a1a1aa; }
.xp-p { display: block; height: 15cqw; max-height: 74px; overflow: hidden; border-radius: 7px; background: #fff; }
.xp-p .mini { transform: scale(.75); transform-origin: 50% 0; }
.xp-f { display: flex; flex-wrap: wrap; gap: 3px; }
.xp-f i { font-style: normal; padding: 2px 5px; border-radius: 6px; background: rgba(255, 255, 255, .06); color: #a1a1aa; transition: background-color .2s ease, color .2s ease; }
.xp-f .on-tw, .demo.s-react .xp-f .f-react { background: #fff; color: #09090b; }
.demo.s-react .xp-f .on-tw { background: rgba(255, 255, 255, .06); color: #a1a1aa; }
.xp-a { display: flex; gap: 4px; }
.xp-a b { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 4px 0; border-radius: 7px; background: #fff; color: #09090b; font-weight: 600; }
.xp-a i { display: grid; place-items: center; width: 3.6cqw; max-width: 26px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #fff; }
.xp-a svg { width: 10px; height: 10px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp-a .l-re, .demo.s-react .xp-a .l-tw { display: none; } .demo.s-react .xp-a .l-re { display: inline; }
.xp-see { display: inline-flex; align-items: center; gap: 4px; color: #a1a1aa; }
.op-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 2px; border-top: 1px solid rgba(255, 255, 255, .07); }
.op-row b { color: #fff; font-weight: 600; } .op-row em { font-style: normal; color: #a1a1aa; }
.op-row i { width: 30%; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.op-sw { display: flex; gap: 3px; }
.op-sw i { flex: 1; height: 2.8cqw; max-height: 20px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.op-as { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.op-as i { height: 3.2cqw; max-height: 22px; border-radius: 5px; background: linear-gradient(135deg, #F6DC82, #E8883A); }
.op-as i:nth-child(2) { background: var(--d-mint); } .op-as i:nth-child(3) { background: #E5A5F8; } .op-as i:nth-child(4) { background: #c6d2e3; }

/* the small page used in screens, previews and the Figma frame, with its own nav bar */
.mini { display: grid; gap: 5px; padding: 0 8px 8px; background: #fff; }
.mini .mnav { display: flex; align-items: center; gap: 5px; height: 14px; margin: 0 -8px 3px; padding: 0 8px; border-bottom: 1px solid #f0ece6; }
.mini .mnav i { display: block; height: 3px; border-radius: 2px; background: #d9d3ca; }
.mini .mnav .lg { width: 14px; height: 5px; margin-right: auto; background: #2b2830; }
.mini .mnav .lk { width: 10px; }
.mini .mnav .bt { width: 15px; height: 6px; border-radius: 999px; background: #2b2830; }
.mini .mnav .burger { display: none; width: 8px; height: 6px; background: linear-gradient(#2b2830 0 1px, transparent 1px 2.5px, #2b2830 2.5px 3.5px, transparent 3.5px 5px, #2b2830 5px 6px); border-radius: 0; }
.mini b { height: 5px; border-radius: 3px; background: #d9d3ca; justify-self: center; }
.mini .m1 { width: 60%; margin-top: 4px; } .mini .m2 { width: 42%; } .mini .m3 { width: 50%; margin-top: 4px; }
.mini .mb { justify-self: center; width: 24%; height: 7px; border-radius: 999px; background: #E8883A; }
.mini .mg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.mini .mg i { height: 16px; border-radius: 3px; background: #efebe5; }
.mini .mg i.ph { background: linear-gradient(135deg, #F6DC82, #E8883A); }
.mini .mft { height: 18px; margin: 6px -8px -8px; background: #2b2830; }

/* Copy to Figma tray (content.css #sr-figma-hud): dark */
.o-tray { position: absolute; left: 50%; bottom: calc(4.2% + var(--b) + 16px); z-index: 8; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 13px; background: rgba(24, 24, 24, .96);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); color: #e4e4e7; font: 500 clamp(8.5px, 1.45cqw, 11px)/1 Inter, sans-serif; white-space: nowrap;
  opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.tr-acts { display: flex; gap: 3px; }
.tr-b { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 9px; }
.tr-b svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tr-b .tc { width: 9px; height: 9px; stroke-width: 2.4; color: #8b8b94; }
.tr-b.on { background: rgba(13, 153, 255, .22); box-shadow: inset 0 0 0 1px rgba(13, 153, 255, .75); color: #fff; }
.tr-done { display: none; align-items: center; gap: 8px; padding: 0 6px 0 2px; }
.tr-th { width: 38px; height: 28px; overflow: hidden; border-radius: 6px; background: #fff; }
.tr-th .mini { transform: scale(.4); transform-origin: 0 0; width: 250%; }
.tr-tx b { display: block; color: #4ade80; } .tr-tx em { display: block; margin-top: 3px; font-style: normal; color: #a1a1aa; }
.demo.s-tray .o-tray { opacity: 1; transform: translate(-50%, 0); }
.demo.s-copied .tr-done { display: flex; }
.demo.s-copied .tr-acts { display: none; }

/* Figma canvas */
.o-figma { position: absolute; inset: 0; z-index: 10; display: flex; background: #e9e9e9; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.fg-l { width: 22%; display: grid; align-content: start; gap: 7px; padding: 10px; background: #fff; border-right: 1px solid #e0e0e0; font-size: 11px; }
.fg-l b { margin-bottom: 4px; }
.fg-l i { height: 7px; width: 70%; border-radius: 3px; background: #e4e4e4; }
.fg-l .in { margin-left: 12%; width: 58%; } .fg-l .in2 { margin-left: 24%; width: 46%; background: #c7dafc; }
.fg-c { flex: 1; display: grid; place-items: center; }
.fg-frame { position: relative; width: 46%; border-radius: 2px; background: #fff; outline: 1.5px solid #0d99ff; box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .3); transform: scale(.9); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1) .1s, opacity .3s ease .1s; }
.fg-frame em { position: absolute; left: -1px; top: -18px; font-style: normal; font-size: 10px; font-weight: 500; color: #0d99ff; white-space: nowrap; }
.fg-frame .mini b { height: 6px; } .fg-frame .mini .mg i { height: 20px; }
.demo.s-figma .o-figma { opacity: 1; }
.demo.s-figma .fg-frame { transform: none; opacity: 1; }

/* Responsive mode (content.css #sr-responsive-stage): dark dotted stage, its top bar and screen headers */
.o-resp { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; background-color: #0b0b0e; background-image: radial-gradient(circle, rgba(255, 255, 255, .12) 1.1px, transparent 1.1px);
  background-size: 16px 16px; color: #e4e4e7; font: 500 clamp(7.5px, 1.35cqw, 11px)/1 Inter, sans-serif; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.demo.s-resp .o-resp { opacity: 1; }
.o-resp svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.rp-bar { flex: none; display: flex; align-items: center; gap: .8cqw; height: 6cqw; max-height: 44px; min-height: 26px; padding: 0 1.4cqw; background: #121216; border-bottom: 1px solid rgba(255, 255, 255, .12); white-space: nowrap; }
.rp-bar > span, .rp-bar > i { display: inline-flex; align-items: center; height: 70%; border-radius: 7px; font-style: normal; }
.rp-url { gap: 5px; min-width: 0; flex: 0 1 26%; padding: 0 3px 0 7px; background: rgba(255, 255, 255, .07); color: #9b9ba4; overflow: hidden; }
.rp-url span { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #d4d4d8; }
.rp-url i { margin-left: auto; display: grid; place-items: center; }
.rp-zoom { gap: 3px; color: #d4d4d8; } .rp-zoom i { display: grid; place-items: center; width: 1.6em; } .rp-zoom .fit { width: auto; padding: 0 .5em; font-style: normal; border-radius: 6px; background: rgba(255, 255, 255, .07); height: 80%; }
.rp-fill { flex: 1; }
.rp-sync { gap: 5px; padding: 0 6px; }
.rp-sync .tg { position: relative; width: 2.2em; height: 1.2em; border-radius: 999px; background: #3b82f6; }
.rp-sync .tg::after { content: ""; position: absolute; right: 2px; top: 2px; width: calc(1.2em - 4px); height: calc(1.2em - 4px); border-radius: 50%; background: #fff; }
.rp-sep { width: 1px; height: 45% !important; background: rgba(255, 255, 255, .12); }
.rp-cap { gap: 5px; padding: 0 8px; background: rgba(255, 255, 255, .1); font-weight: 650; }
.rp-add { gap: 5px; padding: 0 9px 0 7px; background: #fff; color: #09090b; font-weight: 650; }
.rp-x { display: grid !important; place-items: center; width: 2em; color: #9b9ba4; }
.rp-stage { flex: 1; display: flex; align-items: flex-start; justify-content: center; gap: 2.6cqw; padding: 2.6cqw 2.6cqw 0; overflow: hidden; }
.rp-dev { display: flex; flex-direction: column; gap: .8cqw; transform: translateY(10px); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s ease; }
.demo.s-resp .rp-dev { transform: none; opacity: 1; }
.demo.s-resp .rp-dev.tb { transition-delay: .07s; } .demo.s-resp .rp-dev.dk { transition-delay: .14s; }
.rp-dh { display: flex; align-items: center; gap: 4px; color: #9b9ba4; font-size: .92em; white-space: nowrap; }
.rp-dh b { color: #e4e4e7; font-weight: 600; } .rp-dh em { font-style: normal; }
.rp-da { margin-left: auto; display: inline-flex; gap: 2px; }
.rp-da i { display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 5px; }
.rp-dev.ph .rp-da i:not(:first-child) { display: none; }
.rp-scr { position: relative; display: block; overflow: hidden; border-radius: 6px; background: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.rp-dev.ph .rp-scr { width: 11.7cqw; height: 25.3cqw; } .rp-dev.tb .rp-scr { width: 23cqw; height: 30.7cqw; } .rp-dev.dk .rp-scr { width: 38.4cqw; height: 24cqw; }
.rp-scr .mini { transition: transform 1.1s cubic-bezier(.45, 0, .2, 1); }
.rp-dev.ph .mini { gap: 4px; padding: 0 5px 6px; } .rp-dev.ph .mini .mnav { margin: 0 -5px 3px; padding: 0 5px; }
.rp-dev.ph .mini .lk, .rp-dev.ph .mini .bt, .rp-dev.tb .mini .lk:nth-child(4) { display: none; }
.rp-dev.ph .mini .burger { display: block; }
.rp-dev.ph .mini .mg { grid-template-columns: 1fr; } .rp-dev.ph .mini .mg i:not(:first-child) { display: none; }
.rp-dev.ph .mini .mb { width: 50%; }
.rp-dev.dk .mini { padding: 0 14px 10px; } .rp-dev.dk .mini .mnav { margin: 0 -14px 4px; padding: 0 14px; }
.demo.s-scrolled .rp-scr .mini { transform: translateY(-28%); }
.rp-menu { position: absolute; right: 5%; top: 7cqw; z-index: 2; width: clamp(160px, 30cqw, 220px); display: grid; gap: 2px; padding: 7px; border-radius: 12px; background: #18181c; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(-4px); transition: opacity .25s ease, transform .3s ease; }
.demo.s-adddev .rp-menu { opacity: 1; transform: none; }
.rm-tabs { display: flex; gap: 3px; margin-bottom: 4px; }
.rm-tabs b, .rm-tabs i { font-style: normal; padding: 4px 7px; border-radius: 6px; } .rm-tabs b { background: rgba(255, 255, 255, .12); color: #fff; } .rm-tabs i { color: #9b9ba4; }
.rm-i { display: flex; justify-content: space-between; gap: 8px; padding: 6px 7px; border-radius: 7px; color: #e4e4e7; }
.rm-i:nth-of-type(2) { background: rgba(255, 255, 255, .07); }
.rm-i em { font-style: normal; color: #9b9ba4; }
.rp-flash { position: absolute; inset: 6cqw 0 0; background: #fff; opacity: 0; pointer-events: none; }
.demo.s-flash .rp-flash { animation: dflash .7s ease; }
.demo.s-flash .o-dock, .demo.s-shots .o-dock { opacity: 0; }
@keyframes dflash { 0% { opacity: 0; } 25% { opacity: .7; } 100% { opacity: 0; } }
.rp-shots { position: absolute; left: 50%; top: 52%; z-index: 3; width: min(300px, 74%); display: grid; gap: 10px; padding: 12px; border-radius: 14px; background: #18181c; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); opacity: 0; transform: translate(-50%, -46%); transition: opacity .3s ease, transform .35s cubic-bezier(.22, 1, .36, 1); }
.rp-shots > b { color: #fff; }
.rs-th { display: flex; align-items: flex-end; gap: 8px; height: 12cqw; max-height: 80px; }
.rs-th i { border-radius: 4px; background: linear-gradient(#fff 0 8%, #f3efe9 8% 10%, #fff 10% 30%, #f3efe9 30% 40%, #fff 40% 62%, #efebe5 62% 72%, #fff 72% 88%, #2b2830 88%); }
.rs-th .p { width: 18%; height: 100%; } .rs-th .t { width: 26%; height: 92%; } .rs-th .d { flex: 1; height: 70%; }
.rs-btns { display: flex; gap: 6px; }
.rs-btns i { display: inline-flex; align-items: center; gap: 5px; font-style: normal; padding: 6px 9px; border-radius: 8px; background: rgba(255, 255, 255, .1); color: #e4e4e7; font-weight: 600; }
.rs-btns i.go { background: #fff; color: #09090b; }
.demo.s-shots .rp-shots { opacity: 1; transform: translate(-50%, -50%); }

/* key and cursor */
.o-key { position: absolute; left: 50%; top: 52%; z-index: 9; display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 14px; background: rgba(20, 18, 24, .88); color: #fff;
  opacity: 0; transform: translate(-50%, -50%) scale(.9); transition: opacity .2s ease, transform .3s cubic-bezier(.34, 1.56, .64, 1); pointer-events: none; }
.o-key kbd { min-width: 34px; height: 34px; padding: 0 10px; border-color: #3d3944; border-bottom-color: #2a2730; background: #24212a; color: #fff; font-size: 14px; }
.o-key .k-plus { color: #9a96a1; font-size: 14px; }
.o-key.on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.d-cur { position: absolute; left: 0; top: 0; z-index: 10; width: 22px; height: 22px; transform: translate(70%, 60%); transition: transform .7s cubic-bezier(.65, 0, .25, 1); pointer-events: none; will-change: transform; }
.d-cur svg { position: absolute; left: 0; top: 0; width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(20, 18, 24, .25)); }
.d-cur .drop { left: -11px; top: -11px; }
.d-cur .ripple { position: absolute; left: -12px; top: -12px; width: 24px; height: 24px; border-radius: 50%; background: rgba(47, 111, 235, .35); opacity: 0; transform: scale(.3); }
.d-cur.click .ripple { animation: dripple .5s ease-out; }
@keyframes dripple { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.6); } }
.d-cur.click svg { transform: scale(.88); transition: transform .12s ease; }

/* ── tablets and phones ── */
@media (max-width: 1180px) {
  .d-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
  .d-toc { display: none; }
}
@media (max-width: 900px) {
  .d-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 88px; }
  .d-side { display: none; }
  .d-mnav { display: block; position: sticky; top: 84px; z-index: 20; margin-top: 4px; }
  .d-mnav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 11px 44px 11px 14px; position: relative;
    border: 1px solid var(--d-line); border-radius: 14px; background: #fff; }
  .d-mnav summary::-webkit-details-marker { display: none; }
  .d-mnav summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.6px solid var(--d-muted); border-bottom: 1.6px solid var(--d-muted); transform: rotate(45deg); transition: transform .2s ease; }
  .d-mnav[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
  .d-mnav .k { font-size: 13px; color: var(--d-muted); }
  .d-mnav .k::after { content: ""; display: inline-block; width: 1px; height: 14px; margin-left: 10px; vertical-align: -2px; background: var(--d-line); }
  .d-mnav .cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 500; }
  /* a strip of page color fills the gap between the header and the bar, so the text never shows through it */
  .d-mnav::before { content: ""; position: absolute; left: -24px; right: -24px; top: -10px; bottom: 50%; z-index: -1; background: var(--d-bg, #faf8f5); }
  .d-mnav[open] summary { border-color: #d9d4cc; }
  /* the list: a fixed height that does not jump when the phone's address bar hides, its own layer, and big rows */
  /* the home page also has a .panel (the feature demo, with a fixed shape): undo its size, shape and clipping here */
  .d-mnav .panel { width: auto; max-width: none; height: auto; aspect-ratio: auto; margin: 0; }
  .d-mnav .panel { position: absolute; left: 0; right: 0; top: calc(100% + 8px); max-height: 420px; max-height: min(calc(100svh - 190px), 520px);
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; contain: paint; isolation: isolate;
    padding: 8px; border: 1px solid var(--d-line); border-radius: 16px; background: #fff; box-shadow: 0 18px 40px -16px rgba(20, 18, 24, .3);
    transform-origin: top center; animation: d-drop .18s ease-out; scrollbar-width: thin; }
  @keyframes d-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
  .d-mnav:not([open]) .panel { display: none; }
  .d-mnav .panel ul { gap: 2px; }
  .d-mnav .panel a { min-height: 46px; padding: 10px 12px; font-size: 15.5px; }
  .d-mnav .panel a:active { background: var(--d-soft); }
  .d-main { padding-top: 22px; }
  .d-body h2 { scroll-margin-top: 150px; }
}
@media (max-width: 640px) {
  .d-crumbs { font-size: 13px; }
  .d-main h1 { font-size: 32px; }
  .d-lead { font-size: 17px; }
  .d-body { font-size: 16px; }
  .d-body h2 { font-size: 21px; margin-top: 38px; }
  .d-links, .d-pn { grid-template-columns: 1fr; }
  .d-win { aspect-ratio: 4 / 3.2; border-radius: 14px; }
  .d-where .wl { width: 100%; }
  .d-url { max-width: 150px; }
  .d-nav span, .d-c > b.s2 { display: none; }
  .d-cards { gap: 10px; }
  .st-t b { font-size: 15px; } .d-store { gap: 10px; padding: 0 6%; }
  .st-btn { padding: 8px 11px; font-size: 11.5px; }
  .fg-l { display: none; } .fg-frame { width: 64%; }
  .o-panel { width: 60%; min-width: 0; padding: 8px; }
  .demo.s-panel .o-dock { opacity: 0; }
  .rp-url, .rp-zoom, .rp-sep, .rp-dh em { display: none !important; }
  .o-info { left: 46%; }
  .d-table td:first-child { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .side-pill, .d-main { transition: none !important; }
  ::view-transition-old(docmain), ::view-transition-new(docmain), ::view-transition-old(doctoc), ::view-transition-new(doctoc) { animation: none; }
  .d-cur, .o-dock, .o-panel, .rp-scr .mini, .toc-bar, .o-info, .o-tray { transition: none !important; }
  .d-cur.click .ripple, .demo.s-flash .rp-flash { animation: none; }
}

/* the Animations demo: a floating icon and the Animations section of the side panel */
.v-anim .c3 .ic { animation: dfloat 2s ease-in-out infinite alternate; }
.demo.s-replay .c3 .ic { animation-name: dfloat2; }
@keyframes dfloat { to { transform: translateY(-1.3cqw); } }
@keyframes dfloat2 { to { transform: translateY(-1.3cqw); } }
.o-pick3 { position: absolute; left: 10%; top: 13%; width: 18%; height: 0; z-index: 3; opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.o-pick3 .bm-tag { left: 0; bottom: 4px; }
.demo.s-pick3 .o-pick3 { opacity: 1; }
.demo.s-pick3 .c3 .ic { outline: 1.5px solid #0969da; outline-offset: 2px; }
.o-panel { overflow: hidden; }
.op-an { display: none; gap: 6px; align-content: start; }
.demo.s-anim .op-el { display: none; }
.demo.s-anim .op-an { display: grid; }
.an-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.an-head b { color: #fff; font-weight: 600; }
.an-ctrls i { margin-left: 3px; padding: 2px 6px; border-radius: 6px; font-style: normal; background: rgba(255, 255, 255, .08); color: #e4e4e7; transition: background-color .2s ease, color .2s ease; }
.demo.s-replay .an-ctrls i:first-child { background: #fff; color: #09090b; }
.an-ai { padding: 4px 8px; border-radius: 7px; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; text-align: center; transition: background-color .2s ease, color .2s ease; }
.demo.s-aicopied .an-ai { background: #fff; color: #09090b; }
.an-grp { margin-top: 2px; font-size: .86em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #71717a; }
.an-card { display: grid; gap: 4px; padding: 7px 8px; border-radius: 9px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .25s ease; }
.demo.s-an-hl .an-card[data-at] { box-shadow: 0 0 0 1.5px #F6DC82; }
.an-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.an-top b { color: #fff; font-weight: 600; }
.an-top em { padding: 1px 5px; border-radius: 5px; font-style: normal; font-size: .85em; background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.an-on { color: #71717a; }
.an-body { display: flex; align-items: center; gap: 8px; }
.an-grid { flex: 1; display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; }
.an-grid i { font-style: normal; color: #a1a1aa; }
.an-grid b { color: #fff; font-weight: 500; text-align: right; }
.an-curve { flex: none; width: clamp(30px, 6.5cqw, 48px); height: auto; }
.an-curve rect { fill: none; stroke: rgba(255, 255, 255, .15); stroke-width: .02; }
.an-curve path { fill: none; stroke: #F6DC82; stroke-width: .06; stroke-linecap: round; }
.an-kf { display: grid; gap: 1px; }
.an-kf code { display: block; overflow: hidden; padding: 0; background: none; color: #93c5fd; font: 500 .9em/1.4 ui-monospace, Consolas, monospace; white-space: nowrap; text-overflow: ellipsis; }
.o-toast2 { position: absolute; left: 50%; bottom: 20%; z-index: 8; display: grid; gap: 3px; padding: 8px 12px; border-radius: 14px; background: rgba(18, 18, 22, .92); border: 1px solid rgba(255, 255, 255, .14);
  color: #fff; font: 600 clamp(9px, 1.6cqw, 12px)/1.25 Inter, sans-serif; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .25s ease, transform .3s ease; pointer-events: none; }
.o-toast2 em { font-style: normal; color: #a1a1aa; font-weight: 500; }
.demo.s-panel .o-toast2 { left: 31%; }
.demo.s-aicopied .o-toast2 { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .v-anim .c3 .ic { animation: none; } }
