* { box-sizing: border-box; }
:root { --artwork-canvas: #ffffff; } /* Source artwork canvas, independent of interface mode. */
:root { --control-focus-outline: 2px solid #fa5d19; } /* Firecrawl orange focus rings in both modes, in place of the theme's color-1. */
:root { --motion-large-spring: linear(0, .01, .036, .075, .124, .179, .237, .299, .36, .421, .48, .537, .59, .641, .687, .73, .769, .804, .836, .864, .889, .911, .93, .946, .96, .972, .982, .99, .996, 1.002, 1.006, 1.009, 1.012, 1.013, 1.014, 1.015, 1.015, 1.015, 1.015, 1.014, 1); --motion-large-spring-duration: 400ms; } /* The theme's Large spring (visual duration 0.36, bounce 0.2) for CSS: Motion's spring sampled every 10ms and stopped at 400ms, 1.3% short of rest. */
html { scroll-behavior: smooth; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: var(--space-zero); background: var(--neutral-1); color: var(--neutral-10); font-family: var(--font-ui); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-regular); }
button, input, select, a { -webkit-tap-highlight-color: var(--color-none); touch-action: manipulation; }
button, input, select { font-family: inherit; }
button, select { cursor: pointer; }
button, input, select, dialog { border: 0; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
button, a, input, select { outline-offset: 4px; }
:focus-visible { outline: var(--control-focus-outline); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
html:has(dialog[open]) { overflow: hidden; }
svg { width: 20px; height: 20px; display: block; flex: none; }
/* App glyph artwork is local; its outlined weight still follows the supplied theme. */
svg[stroke="currentColor"] { stroke-width: var(--icon-stroke-width); }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.page-width { width: min(1440px, calc(100% - 2 * var(--space-xxl))); margin-inline: auto; }
.site-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-xs); padding-block: var(--space-m); }
.site-description { grid-column: 1 / -1; margin: var(--space-zero); color: var(--neutral-8); font-family: var(--font-ui); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-regular); }
.powered-by { white-space: nowrap; }
/* Firecrawl's supplied 109 × 30 animated navigation logo, drawn one subcopy line tall.
 * Its wordmark baseline sits 7.07 canvas units above the artwork's bottom edge, and its
 * flame starts 5.05 units in; the leading padding absorbs that inset so the badge's
 * padding reads evenly on both sides. */
.firecrawl-badge { vertical-align: calc(var(--line-xs) * -7.07 / 30); padding-inline-start: calc(var(--space-xs) - var(--line-xs) * 5.05 / 30); transition: background-color var(--motion-duration) var(--motion-easing); }
@media (hover: hover) { .firecrawl-badge:hover { background: var(--neutral-4); } }
.firecrawl-badge img { display: block; width: auto; height: var(--line-xs); }
[data-theme="light"] .firecrawl-logo--dark, [data-theme="dark"] .firecrawl-logo--light { display: none; }
.brand { --wordmark-x-height: 17px; display: flex; align-items: center; gap: var(--space-xs); width: fit-content; }
/* The stacked-cards mark is 1.4 times the wordmark's ink height (the top of the i's dot to the baseline),
 * centered on it, so it reads as an app icon beside the name. */
.brand-mark { display: block; width: calc(var(--wordmark-x-height) * 1512 / 1102 * 1.4); height: calc(var(--wordmark-x-height) * 1512 / 1102 * 1.4); }
/* The "icons" wordmark: outlined Suisse Int'l Bold, sized by its x-height (1102 of the viewBox's 1512 units).
 * Its ink touches the viewBox edges, so overflow stays visible to keep the antialiased rounds whole. */
.brand-wordmark { width: calc(var(--wordmark-x-height) * 5080.3 / 1102); height: calc(var(--wordmark-x-height) * 1512 / 1102); overflow: visible; }
.header-nav { display: flex; gap: var(--space-xxs); align-items: center; }
/* The theme button's icon arrives with the script; until then its slot holds the icon's size so the header doesn't grow under the first paint. */
.header-nav .icon-button > [data-icon]:empty { width: 18px; height: 18px; }
main.page-width { padding-top: var(--space-s); }
/* The newest additions' icons use a canvas-colored cutout for clean, ordered overlap. */
.collection-update { display: flex; align-items: center; gap: var(--space-xs); margin-bottom: var(--space-s); }
/* Holds its place, unseen, until the catalog says what was added. */
.collection-update.is-pending { visibility: hidden; }
.update-icon-stack { display: flex; flex: none; isolation: isolate; }
.update-icon { display: grid; place-items: center; position: relative; flex: none; width: 36px; height: 36px; padding: calc(var(--space-xxs) / 2); border-radius: var(--radius-full); background: var(--neutral-1); }
.update-icon + .update-icon { margin-inline-start: calc(-1 * var(--space-xs)); }
.update-icon::after { content: ''; position: absolute; inset: calc(var(--space-xxs) / 2); border-radius: inherit; pointer-events: none; box-shadow: var(--glass-fallback-edge); }
.update-icon img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--artwork-canvas); }
/* A focused icon comes forward so its neighbor never covers the focus ring. */
.update-icon:focus-visible { z-index: 1; }
/* Each icon names itself in the theme's Tooltip surface once the pointer rests on it or keyboard
 * focus arrives (src/app.js). It floats over the header, centered on its icon where there's room. */
.update-icon-stack { position: relative; }
.update-tip { position: absolute; bottom: calc(100% + var(--space-xxs)); left: 0; z-index: 2; padding: var(--space-xxs) var(--space-xs); border-radius: var(--radius-s); background: var(--neutral-10); color: var(--neutral-1); box-shadow: var(--shadow-m); font-family: var(--font-ui); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-medium); white-space: nowrap; transform-origin: bottom center; animation: update-tip-in var(--motion-duration) var(--motion-easing); }
/* An unseen bridge over the gap keeps the tooltip up while the pointer moves onto it. */
.update-tip::after { content: ''; position: absolute; inset-inline: 0; top: 100%; height: var(--space-xxs); }
@keyframes update-tip-in { from { opacity: 0; scale: var(--motion-popup-scale); } }
/* The count reads as part of the line and opens the list of what it counts. */
.collection-update .update-count { display: block; text-align: start; }
.collection-update strong { color: var(--neutral-10); font-weight: var(--weight-ui-medium); white-space: nowrap; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; padding: var(--space-xs); background: var(--color-none); color: var(--neutral-7); }
.icon-button svg { width: 18px; height: 18px; }
@media (hover: hover) { .icon-button:hover { color: var(--neutral-10); } }
.library-controls { display: flex; gap: var(--space-xs); align-items: center; }
.search-field { flex: 1; min-width: 0; display: flex; gap: var(--space-xs); align-items: center; background: var(--neutral-3); padding-inline: var(--space-m) var(--space-xs); border-radius: var(--radius-s); }
.search-field > span { color: var(--neutral-7); }
.search-field input { min-width: 0; width: 100%; padding: var(--space-s) var(--space-zero); background: var(--color-none); color: var(--neutral-10); outline: none; }
.search-field:focus-within { outline: var(--control-focus-outline); outline-offset: 2px; }
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--neutral-7); }
/* Example searches type in over the empty, unfocused field; its fixed label names it for assistive tech. */
.search-input { position: relative; flex: 1; min-width: 0; display: flex; }
.search-placeholder { position: absolute; inset: 0; padding: var(--space-s) var(--space-zero); overflow: hidden; white-space: pre; text-overflow: ellipsis; pointer-events: none; color: var(--neutral-7); font-family: var(--font-ui); font-size: var(--size-s); line-height: var(--line-s); letter-spacing: var(--letter-spacing-s); transition: opacity var(--motion-large-duration) var(--motion-large-easing); }
.search-placeholder.is-leaving { opacity: 0; }
.search-placeholder span { animation: placeholder-letter var(--motion-duration) var(--motion-easing) both; }
@keyframes placeholder-letter { from { opacity: 0; } }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear, .select-clear { flex: none; padding: var(--space-xs); }
.search-clear svg, .select-clear svg { width: 24px; height: 24px; }
/* Keep the clear button's space reserved even while the query is empty. */
.search-clear:disabled { visibility: hidden; }
.filter-controls { display: flex; gap: var(--space-xs); align-items: center; }
.select-wrap { position: relative; display: inline-flex; align-items: center; }
.select-wrap :is(select, .select-trigger) { appearance: none; padding-right: calc(var(--space-m) + var(--space-s) + var(--space-xs)); }
.select-wrap > span { position: absolute; right: var(--space-m); pointer-events: none; color: var(--neutral-7); }
.select-wrap > span svg { width: 16px; height: 16px; }
.select-wrap.is-enhanced { min-width: 0; }
.select-trigger { display: inline-flex; align-items: center; min-width: 0; text-align: left; }
.select-trigger--with-icon { gap: var(--space-xs); }
.select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-leading-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 18px; height: 18px; pointer-events: none; }
.select-leading-icon svg { width: 100%; height: 100%; }
.select-wrap:has(.select-trigger[aria-expanded="true"]) > span { transform: rotate(180deg); }
/* The category control ends in the same slot as the search field's clear button: its chevron, or a clear button once a category is picked. */
.filter-controls :is(select, .select-trigger) { padding-right: calc(3 * var(--space-xs) + 24px); }
.filter-controls .select-wrap > span, .select-clear { position: absolute; right: var(--space-xs); width: calc(2 * var(--space-xs) + 24px); }
.select-clear:not([hidden]) + span { display: none; }
/* Placement dimensions constrain the floating menu, independent of theme rhythm. */
.select-popup { position: fixed; inset: auto; margin: 0; min-width: min(220px, calc(100vw - 2 * var(--space-xs))); max-width: calc(100vw - 2 * var(--space-xs)); max-height: 360px; overflow: auto; overscroll-behavior: contain; scroll-padding: var(--space-xxs); z-index: 50; }
.select-popup--with-icons { min-width: min(280px, calc(100vw - 2 * var(--space-xs))); }
.select-option { display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.select-option[aria-disabled="true"] { cursor: default; }
.select-option-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-option-check { width: 16px; height: 16px; flex: none; visibility: hidden; }
.select-option-check svg { width: 100%; height: 100%; }
.select-option[aria-selected="true"] .select-option-check { visibility: visible; }
@media (forced-colors: active) {
  .select-popup { outline: 1px solid CanvasText; }
  .select-option.is-active { background: Highlight; color: HighlightText; }
}
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: var(--space-s); margin-block: var(--space-m) var(--space-s); }
.results-bar p { display: flex; align-items: center; gap: var(--space-xxs); margin: var(--space-zero); color: var(--neutral-7); }
.results-bar strong { font-weight: var(--weight-ui-medium); color: var(--neutral-10); }
.view-controls, .sort-wrap { display: flex; align-items: center; gap: var(--space-xs); }
.sort-wrap { gap: var(--space-xxs); }
.sort-label { color: var(--neutral-7); }
/* Compact sort control composes the same select behavior with XS typography. */
.plain-select :is(select, .select-trigger) { background: var(--color-none); padding: var(--space-xxs) var(--space-m) var(--space-xxs) var(--space-xxs); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-medium); color: var(--neutral-10); }
.plain-select > span { right: var(--space-xxs); }
.plain-select > span svg { width: 13px; height: 13px; }
.density-control { display: flex; gap: var(--space-zero); padding: var(--space-xxs); background: var(--neutral-3); border-radius: var(--radius-s); }
.density-control .icon-button { padding: var(--space-xxs); }
.density-control .is-active { background: var(--neutral-1); color: var(--neutral-10); border-radius: var(--radius-xs); }
.icon-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); column-gap: var(--space-xs); row-gap: var(--space-s); }
.icon-card { min-width: 0; position: relative; border-radius: var(--radius-m); content-visibility: auto; contain-intrinsic-size: auto 158px; }
.icon-open { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-s); width: 100%; padding: var(--space-m) var(--space-xs) var(--space-s); background: var(--color-none); border-radius: var(--radius-m); }
/* Each card's content-visibility clips anything drawn outside it, so the card's focus ring sits just inside its edge. */
.icon-open:focus-visible { outline-offset: -2px; }
.app-icon { width: 74px; height: 74px; object-fit: contain; border-radius: var(--radius-l); background: var(--color-none); }
.icon-name { width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; color: var(--neutral-8); font-family: var(--font-ui); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-regular); }
.icon-grid.is-compact { grid-template-columns: repeat(10, minmax(0, 1fr)); row-gap: var(--space-xs); }
/* Until the collection arrives, the empty grid holds the footer below the fold, so filling it shifts nothing in view. */
.icon-grid.is-loading { min-height: 100vh; }
.is-compact .app-icon { width: 56px; height: 56px; border-radius: var(--radius-m); }
.is-compact .icon-open { gap: var(--space-xs); padding-block: var(--space-s); }
.icon-unavailable { display: flex; align-items: center; justify-content: center; width: 74px; height: 74px; background: var(--neutral-3); color: var(--neutral-7); border-radius: var(--radius-l); font-size: var(--size-l); line-height: var(--line-l); letter-spacing: var(--letter-spacing-l); }
.library-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-m); margin-top: var(--space-xl); padding-block: var(--space-l); color: var(--neutral-7); box-shadow: var(--separator-shadow-top); }
#back-top { margin-left: auto; }
.text-button { display: inline-flex; align-items: center; gap: var(--space-xxs); color: var(--neutral-7); padding: var(--space-zero); background: var(--color-none); font-family: var(--font-ui); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); font-weight: var(--weight-ui-regular); }
@media (hover: hover) { .text-button:hover { color: var(--neutral-10); } }
.text-button svg { width: 15px; height: 15px; }
.empty-state { text-align: center; padding: var(--space-xxl) var(--space-m); }
.empty-symbol { display: flex; justify-content: center; color: var(--neutral-6); margin-bottom: var(--space-s); }
.empty-symbol svg { width: 32px; height: 32px; }
.empty-state h2 { font-size: var(--size-m); line-height: var(--line-m); letter-spacing: var(--letter-spacing-m); font-weight: var(--weight-ui-medium); margin: var(--space-zero); }
.empty-state p { color: var(--neutral-7); margin: var(--space-xs) var(--space-zero) var(--space-m); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); }
dialog { width: min(480px, calc(100% - 2 * var(--space-s))); max-width: none; max-height: calc(100dvh - 2 * var(--space-s)); color: var(--neutral-10); }
/* Dialogs open without the browser's modal mode (src/dialog.js), so each brings its own backdrop with
 * the theme's tint and motion, which takes the page's clicks while its dialog is open. The :where() rule
 * restates the browser's modal placement at zero specificity, so each dialog's own layout still wins.
 * A closing dialog has already handed the page back: it and its backdrop play out their exit where they
 * were, inert, and under any dialog that opens meanwhile. */
:where(dialog:is([open], [data-dialog-state="closing"])) { display: block; position: fixed; inset-block: 0; max-width: calc(100% - 6px - 2em); overflow: auto; }
dialog[data-dialog-state="closing"] { z-index: 4; }
dialog[open] { z-index: 6; }
.dialog-backdrop { display: none; position: fixed; inset: 0; z-index: 3; opacity: 0; pointer-events: none; background: var(--neutral-10-transparent); transition: opacity calc(var(--motion-large-duration) * .4) var(--motion-large-easing); }
[data-theme="dark"] .dialog-backdrop { background: var(--neutral-1-transparent); }
dialog:is([open], [data-dialog-state="closing"]) + .dialog-backdrop { display: block; }
dialog[open] + .dialog-backdrop { z-index: 5; pointer-events: auto; }
dialog[data-dialog-state="open"] + .dialog-backdrop { opacity: 1; }
/* Dialogs open faster than the theme's Large curve, a local override of src/theme.css: they fade in over
 * a quarter of the Large duration while the Large spring grows them from the popup scale, and fade and
 * shrink back over 40% of the Large duration with no spring. The backdrop fades over 40% both ways. */
.gui-dialog { transition: opacity calc(var(--motion-large-duration) * .4) var(--motion-large-easing), scale calc(var(--motion-large-duration) * .4) var(--motion-large-easing), translate calc(var(--motion-large-duration) * .4) var(--motion-large-easing); }
.gui-dialog[data-dialog-state="open"] { transition: opacity calc(var(--motion-large-duration) * .25) var(--motion-large-easing), scale var(--motion-large-spring-duration) var(--motion-large-spring), translate var(--motion-large-spring-duration) var(--motion-large-spring); }
/* Dialogs take focus themselves when they open; the container isn't a control, so it never shows a ring. */
dialog:focus-visible { outline: none; }
.dialog-close { position: absolute; top: var(--space-xs); right: var(--space-xs); padding: var(--space-xs); color: var(--neutral-10); }
.detail-dialog { width: min(560px, calc(100% - 2 * var(--space-s))); max-height: calc(100dvh - 2 * var(--space-m)); padding: var(--space-zero); overflow: hidden; top: calc(25dvh + var(--space-m) / 2); bottom: auto; margin: var(--space-zero) auto; transform: translateY(-25%); }
.detail-dialog:is([open], [data-dialog-state="closing"]) { display: flex; flex-direction: column; }
.detail-dialog .dialog-close { z-index: 1; }
/* Swiping between icons (src/swipe.js). The dialog stays the center card, and ghost copies of it, filled the
 * same way, sit one card and a gap apart on a horizontal track; only translate and opacity change while it
 * moves. :where() gives ghosts the dialog's placement and limits at zero specificity, so .detail-dialog places
 * them exactly as it places the dialog, under it, and while a swipe is engaged every card takes the dialog's
 * width as measured when it engaged, so no card changes width as it crosses. Cards stay opaque, so the page never shows through them:
 * a veil of the card's own surface fades a card's content with its distance from the center, to 40% one
 * card away. The neighbors show only while a swipe is engaged, and appear and go at once: a card fading in
 * or out would let the page show through it. */
.detail-dialog { --swipe-gap: var(--space-s); --swipe-step: var(--space-s); }
.detail-dialog, .detail-dialog .detail-panel { touch-action: pan-y pinch-zoom; }
:where(.detail-ghost) { display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 5; height: fit-content; max-width: none; max-height: calc(100dvh - 2 * var(--space-s)); margin: auto; }
.detail-dialog.detail-ghost { visibility: hidden; opacity: 0; scale: 1; pointer-events: none; transition: none; }
.detail-dialog.detail-ghost.is-swipe-engaged { visibility: visible; opacity: 1; }
.detail-dialog.is-swiping { transition: none; will-change: translate; }
.detail-veil { position: absolute; inset: 0; z-index: 2; border-radius: inherit; background: inherit; opacity: 0; pointer-events: none; }
.is-swiping > .detail-veil { will-change: opacity; }
/* Previous and Next sit inside the card for a mouse or trackpad, at its left and right edges, centered on the
 * artwork and hidden at the ends of the list. src/swipe.js measures the card and the artwork. They follow the dialog's
 * state: hidden at once while it's closing or closed, so a reopened card never finds them already showing,
 * and they open with the card's own fade and spring, scaling about its center. Each has a 44px hit area
 * around the 18px glyph. */
.detail-nav { --detail-nav-inset: var(--space-s); display: none; position: fixed; inset: 0; z-index: 6; pointer-events: none; visibility: hidden; opacity: 0; scale: var(--motion-popup-scale); transform-origin: var(--card-origin, 50% 50%); }
@media (hover: hover) and (pointer: fine) { .detail-nav { display: block; } }
.detail-dialog[data-dialog-state="open"] ~ .detail-nav { visibility: visible; opacity: 1; scale: 1; transition: opacity calc(var(--motion-large-duration) * .25) var(--motion-large-easing), scale var(--motion-large-spring-duration) var(--motion-large-spring); }
.detail-nav .icon-button { position: absolute; top: var(--art-center); translate: 0 -50%; min-width: 44px; min-height: 44px; pointer-events: auto; }
.detail-nav .icon-button[hidden] { display: none; }
.detail-nav .icon-button:first-child { left: calc(var(--card-left) + var(--detail-nav-inset)); }
.detail-nav .icon-button:last-child { right: calc(100% - var(--card-right) + var(--detail-nav-inset)); }
.detail-header { flex: none; padding: var(--space-l) var(--space-l) var(--space-s); padding-right: calc(var(--space-l) + var(--space-s)); }
.detail-header h2 { overflow-wrap: anywhere; }
.detail-header p { margin: var(--space-xxs) var(--space-zero) var(--space-zero); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); }
.detail-panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-zero) var(--space-l) var(--space-s); }
.detail-art { display: flex; align-items: center; justify-content: center; }
.detail-art img { display: block; width: 148px; height: 148px; object-fit: contain; border-radius: var(--radius-xl); }
/* Hovering, pressing and holding, or focusing the artwork brings in a WebGL magnifier lens.
 * It floats over the whole dialog, so the scrolling panel never clips the circle.
 * --magnifier-reveal carries the theme's Large motion to the lens: the shadow grows and
 * fades with it in CSS, and the glass grows, magnifies, and catches light with it. */
@property --magnifier-reveal { syntax: '<number>'; inherits: true; initial-value: 0; }
.icon-glass-detail { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* Keyboard focus draws the theme's focus outline on the rim layer, above the frosted film that blurs what lies
 * beneath it, inset by the outline's 2px so the tile's rounded clip keeps all of it. */
.icon-glass-detail:focus-visible { outline: none; }
.icon-glass-detail:focus-visible .glass-rim { outline: var(--control-focus-outline); outline-offset: -2px; }
.detail-dialog[data-magnifying] .icon-glass-detail { cursor: none; }
.magnifier-lens { --magnifier-size: 132px; --magnifier-reveal: 0; position: absolute; top: 0; left: 0; z-index: 1; width: var(--magnifier-size); height: var(--magnifier-size); pointer-events: none; visibility: hidden; transition: --magnifier-reveal var(--motion-large-duration) var(--motion-large-easing), visibility 0s linear var(--motion-large-duration); }
.detail-dialog[data-magnifying] .magnifier-lens { --magnifier-reveal: 1; visibility: visible; transition-delay: 0s; }
.magnifier-lens::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius-full); box-shadow: var(--shadow-m); opacity: var(--magnifier-reveal); scale: calc(.75 + .25 * var(--magnifier-reveal)); }
/* The glass fades in over the first fifth of its reveal, while it barely magnifies yet. */
.magnifier-lens canvas { position: relative; display: block; width: 100%; height: 100%; opacity: min(1, var(--magnifier-reveal) * 5); }
@media (max-width: 650px), (max-height: 500px) { .magnifier-lens { --magnifier-size: 116px; } }
/* On touch screens, press and hold magnifies instead of lifting the image for drag and drop. */
@media (hover: none) { .icon-glass-detail img { -webkit-user-drag: none; } }
/* Format, size, and collection read as the theme's badges; their labels stay for screen readers. */
.detail-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-xxs); margin: var(--space-s) var(--space-zero) var(--space-zero); }
.detail-facts div { display: flex; }
.detail-facts dd { margin: var(--space-zero); }
/* Beside the artwork on short landscape screens, the tags start at the facts column's edge. */
@media (min-width: 541px) and (max-height: 500px) { .detail-facts { justify-content: flex-start; } }
@media (forced-colors: active) { .detail-facts .gui-badge { outline: 1px solid CanvasText; } }
.detail-actions { display: flex; gap: var(--space-xs); }
.detail-footer { flex: none; padding: var(--space-l); background: var(--neutral-3); box-shadow: var(--separator-shadow-top); }
.copy-fallback { margin-bottom: var(--space-m); }
.copy-fallback label { display: block; margin-bottom: var(--space-xs); font-size: var(--size-s); line-height: var(--line-s); letter-spacing: var(--letter-spacing-s); font-weight: var(--weight-ui-medium); }
.copy-fallback textarea { width: 100%; resize: vertical; }
.copy-toast { position: fixed; inset: auto var(--space-m) max(var(--space-m), env(safe-area-inset-bottom)) auto; width: min(380px, calc(100% - 2 * var(--space-s))); margin: var(--space-zero); }
.copy-toast:popover-open { display: flex; align-items: center; }
.copy-toast-check { color: var(--success); }
.copy-toast .gui-toast-title { flex: 1; }
.copy-toast-close { flex: none; padding: var(--space-xs); }
@media (max-width: 650px) {
  .copy-toast { inset: max(var(--space-s), env(safe-area-inset-top)) var(--space-s) auto auto; }
}
@media (forced-colors: active) { .copy-toast { outline: 1px solid CanvasText; } }
.detail-actions .button { flex: 1; white-space: nowrap; }
@media (hover: hover) {
  .detail-actions .gui-button--primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--neutral-9); }
}
/* Secondary actions need their own surface against the muted dialog footer. */
.detail-actions .gui-button--secondary:not(:disabled):not([aria-disabled="true"]) { background: var(--neutral-4); }
@media (hover: hover) { .detail-actions .gui-button--secondary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--neutral-5); } }
.about-dialog { width: min(560px, calc(100% - 2 * var(--space-s))); }
.about-symbol { display: block; margin-bottom: var(--space-m); }
.about-dialog h2 { margin: var(--space-zero) var(--space-zero) var(--space-s); }
.about-dialog h3 { font-weight: var(--weight-ui-medium); color: var(--neutral-10); margin: var(--space-m) var(--space-zero) var(--space-xs); font-size: var(--size-s); line-height: var(--line-s); letter-spacing: var(--letter-spacing-s); }
.about-dialog p { margin: var(--space-xs) var(--space-zero); color: var(--neutral-7); font-size: var(--size-s); line-height: var(--line-s); letter-spacing: var(--letter-spacing-s); }
.about-dialog .about-fine { font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); margin-top: var(--space-m); }
.about-dialog > a { margin-top: var(--space-s); }
/* The newest day's additions, listed from the line's count. The title and close button stay put
 * while the list scrolls inside the card. Rows use the Select popup's item treatment, with each
 * icon's artwork lined up under the title. */
.additions-dialog { max-height: min(640px, calc(100dvh - 2 * var(--space-s))); padding: var(--space-zero); overflow: hidden; }
.additions-dialog:is([open], [data-dialog-state="closing"]) { display: flex; flex-direction: column; }
.additions-header { flex: none; padding: var(--space-l) calc(var(--space-l) + var(--space-s)) var(--space-s) var(--space-l); }
.additions-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: var(--space-zero); padding: var(--space-zero) var(--space-m) var(--space-m); list-style: none; }
.additions-list li + li { margin-top: var(--space-xxs); }
.additions-item { display: flex; align-items: center; gap: var(--space-xs); width: 100%; padding: var(--space-xxs) var(--space-xs); border-radius: var(--radius-xs); background: var(--color-none); color: var(--neutral-10); text-align: start; font-size: var(--size-s); line-height: var(--line-s); letter-spacing: var(--letter-spacing-s); font-weight: var(--weight-ui-regular); }
@media (hover: hover) { .additions-item:hover { background: var(--neutral-3); } }
/* The scrolling list clips anything drawn outside a row, so its focus ring sits just inside. */
.additions-item:focus-visible { outline-offset: -2px; }
.additions-art { display: grid; place-items: center; flex: none; width: 40px; height: 40px; }
.additions-art img { display: block; width: 100%; height: 100%; object-fit: contain; border-radius: var(--radius-s); }
.additions-art img[data-artwork="mac"] { width: calc(100% * 1024 / 824); height: calc(100% * 1024 / 824); border-radius: var(--radius-zero); }
.additions-art img[data-artwork="round"] { border-radius: var(--radius-full); }
.additions-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skip-link { position: fixed; left: var(--space-s); top: var(--space-s); transform: translateY(-200%); z-index: 200; background: var(--neutral-10); color: var(--neutral-1); }
.skip-link:focus { transform: translateY(0); }
.noscript { margin: var(--space-l); }
@media (min-width: 1700px) { .icon-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); } .icon-grid.is-compact { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
@media (max-width: 1150px) { .page-width { width: calc(100% - 2 * var(--space-l)); } .icon-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } .icon-grid.is-compact { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
@media (max-width: 900px) { .icon-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .icon-grid.is-compact { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
@media (max-width: 650px) { .page-width { width: calc(100% - 2 * var(--space-s)); } .site-header { padding-block: var(--space-s); } .brand { --wordmark-x-height: 14.6px; } .header-nav { gap: var(--space-zero); } .icon-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-zero); row-gap: var(--space-xxs); } .icon-grid.is-compact { grid-template-columns: repeat(5, minmax(0, 1fr)); } .app-icon { width: 62px; height: 62px; border-radius: var(--radius-m); } .icon-open { padding-inline: var(--space-xxs); gap: var(--space-xs); } .is-compact .app-icon { width: 46px; height: 46px; } .icon-name { font-size: var(--size-xxs); line-height: var(--line-xxs); letter-spacing: var(--letter-spacing-xxs); } .sort-label { display: none; } .view-controls { gap: var(--space-xxs); } .results-bar { margin-top: var(--space-s); gap: var(--space-xxs); } .results-bar p:not(:has(strong)) { font-size: var(--size-xxs); line-height: var(--line-xxs); letter-spacing: var(--letter-spacing-xxs); } .filter-controls { gap: var(--space-xxs); } .library-footer { gap: var(--space-s); } #back-top { margin-left: auto; } }
/* Once its place on the page has scrolled out of view, the search bar docks and follows the scroll,
 * floating just under the top of the window as one rounded panel, so a search or filter is a reach away
 * from anywhere in the grid. The same element docks: its empty slot keeps its height, so nothing below
 * it moves. The panel's corners are concentric with the field's, and it floats under every dialog and popup. */
.library-controls-slot { height: var(--space-zero); }
.dock-filter { display: none; }
.library-controls { --dock-top: calc(var(--space-xs) + env(safe-area-inset-top)); --dock-pad: var(--space-xs); --dock-radius: calc(var(--radius-s) + var(--dock-pad)); }
.library-controls { --dock-spring: linear(0, 0.025, 0.089, 0.179, 0.282, 0.39, 0.496, 0.597, 0.688, 0.768, 0.837, 0.894, 0.94, 0.976, 1.003, 1.022, 1.035, 1.042, 1.046, 1.046, 1.044, 1.04, 1.036, 1.031, 1.026, 1.021, 1.017, 1.013, 1.009, 1.006, 1.004, 1.002, 1); }
.library-controls.is-docked { position: fixed; z-index: 10; top: var(--dock-top); left: var(--dock-left); width: var(--dock-width); padding: var(--dock-pad); border-radius: var(--dock-radius); translate: 0 var(--dock-viewport-top, 0px); isolation: isolate; }
.library-controls.is-settling { position: relative; isolation: isolate; }
:is(.library-controls.is-docked, .library-controls.is-settling)::before,
:is(.library-controls.is-docked, .library-controls.is-settling)::after { content: ''; position: absolute; z-index: -1; inset: 0; border-radius: var(--dock-radius); pointer-events: none; }
.library-controls.is-settling::before,
.library-controls.is-settling::after { inset: auto; left: var(--settle-x); top: var(--settle-y); width: var(--settle-w); height: var(--settle-h); }
:is(.library-controls.is-docked, .library-controls.is-settling)::before { background: var(--neutral-1); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--neutral-10) 6%, transparent); }
:is(.library-controls.is-docked, .library-controls.is-settling)::after { box-shadow: var(--shadow-m); }
.library-controls.is-docked :is(.search-field input, .search-placeholder, .select-trigger) { padding-block: var(--space-xs); }
.library-controls.is-docked .search-clear { padding-block: var(--space-xxs); }
/* Phones in portrait stack the category control under the search field, with its icon and label lined up with the field's.
 * Above 540px, where the longest category still leaves the search field 240px, both share one row, phones in landscape included. */
@media (max-width: 540px) {
  .library-controls { flex-wrap: wrap; }
  .search-field { flex-basis: 100%; }
  .filter-controls { width: 100%; }
  .filter-controls .select-wrap { flex: 1; }
  .filter-controls :is(select, .select-trigger) { width: 100%; }
  .filter-controls .select-leading-icon { width: 20px; height: 20px; }
}
/* Docked on a phone, the panel floats just inside the top safe area with the page's side margins, and the
 * category control folds into one filter button beside the field. The control itself stays, unseen,
 * across the panel, so its list opens just under the panel at the panel's width. */
@media (max-width: 540px) {
  .library-controls { --dock-top: calc(8px + env(safe-area-inset-top)); }
  .library-controls.is-docked { flex-wrap: nowrap; }
  .library-controls.is-docked .search-field { flex: 1; flex-basis: auto; }
  .library-controls.is-docked .filter-controls { position: absolute; inset: auto 0 0; visibility: hidden; }
  .library-controls.is-docked .dock-filter { display: inline-flex; position: relative; flex: none; width: 48px; height: 48px; padding: var(--space-xs); border-radius: var(--radius-s); background: var(--neutral-3); color: var(--neutral-8); }
  .dock-filter.is-active { color: var(--neutral-10); }
  .dock-filter.is-active::after { content: ''; position: absolute; top: var(--space-xxs); right: var(--space-xxs); width: 7px; height: 7px; border-radius: var(--radius-full); background: var(--neutral-10); box-shadow: 0 0 0 2px var(--neutral-3); }
}
/* Phones in portrait center the icon dialog exactly and stack its actions. */
@media (max-width: 540px) {
  .detail-dialog { top: 0; bottom: 0; margin: auto; transform: none; }
  .detail-actions { flex-direction: column; }
}
@media (max-width: 400px) {
  .filter-controls { display: grid; grid-template-columns: minmax(0, 1fr); }
  .filter-controls .select-wrap { grid-column: 1; }
}
/* Short landscape screens show the artwork beside its facts, so the dialog fits without scrolling. */
@media (min-width: 541px) and (max-height: 500px) {
  .detail-dialog { top: 0; bottom: 0; margin: auto; transform: none; width: min(640px, calc(100% - 2 * var(--space-s))); max-height: calc(100dvh - 2 * var(--space-xs)); }
  .detail-header { padding-top: var(--space-m); padding-bottom: var(--space-xs); }
  .detail-panel { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-l); }
  .detail-facts { margin-top: var(--space-zero); }
  .copy-fallback { grid-column: 1 / -1; margin-top: var(--space-s); }
  .detail-dialog .icon-glass-detail { --glass-size: 132px; }
  .detail-footer { padding-block: var(--space-s); }
  /* The artwork sits a panel padding from the card's edge here, so the left chevron's glyph only just clears it. */
  .detail-nav { --detail-nav-inset: var(--space-zero); }
}
/* Shorter phones, like the iPhone SE, get smaller artwork so the facts stay above the actions. */
@media (max-width: 540px) and (max-height: 700px) {
  .detail-dialog .icon-glass-detail { --glass-size: 148px; }
}
/* Touch screens get at least a 44px hit area around compact controls without changing how they look. */
@media (pointer: coarse) {
  :is(.brand, .header-nav .icon-button, .firecrawl-badge, .plain-select .select-trigger, .density-control .icon-button, .text-button) { position: relative; }
  :is(.brand, .header-nav .icon-button, .firecrawl-badge, .plain-select .select-trigger, .density-control .icon-button, .text-button)::after { content: ''; position: absolute; inset: min(0px, (100% - 44px) / 2); }
  /* The two density buttons share a toolbar, so each grows outward instead of into its neighbor. */
  .view-controls { column-gap: var(--space-xs); }
  .density-control .icon-button:first-child::after { inset-inline: min(0px, 100% - 44px) 0; }
  .density-control .icon-button:last-child::after { inset-inline: 0 min(0px, 100% - 44px); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after, *::backdrop { transition: none !important; animation: none !important; } }

/* Neutral optical tiles; the page canvas remains the active theme background. */
.site-header, main.page-width { position: relative; z-index: 2; }
.glass-canvas { position: absolute; top: 0; left: 0; z-index: 1; width: 100%; height: 100vh; pointer-events: none; }
.icon-glass { --glass-size: 102px; display: grid; place-items: center; position: relative; flex: none; width: var(--glass-size); height: var(--glass-size); border-radius: var(--glass-radius); overflow: hidden; isolation: isolate; }
/* One clipped film and a separate fine rim, shared by fallback and dialog artwork. */
.icon-glass::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: var(--glass-fallback-fill); }
.icon-glass::before { -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation)); }
.glass-rim { position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: var(--glass-fallback-edge); }
.glass-active .icon-grid .icon-glass::before, .glass-active .icon-grid .glass-rim { visibility: hidden; }
.icon-glass .app-icon { position: relative; z-index: 1; width: 72%; height: 72%; }
.icon-glass .app-icon[data-artwork="mac"] { width: calc(72% * 1024 / 824); height: calc(72% * 1024 / 824); border-radius: var(--radius-zero); }
.icon-glass .app-icon[data-artwork="round"] { border-radius: var(--radius-full); }
.icon-glass .icon-unavailable { position: relative; z-index: 1; width: 72%; height: 72%; }
.is-compact .icon-glass { --glass-size: 80px; }
/* A grid tile never grows wider than its column, so neighbors always keep an XS gap. */
.icon-card { container-type: inline-size; }
.icon-card .icon-glass { width: min(var(--glass-size), 100cqi - var(--space-xs)); height: min(var(--glass-size), 100cqi - var(--space-xs)); }
.icon-card { contain-intrinsic-size: auto 184px; }
.icon-glass-detail { --glass-size: 198px; }
.icon-glass-detail .detail-artwork { grid-area: 1 / 1; position: relative; z-index: 1; width: 74%; height: 74%; }
/* An icon stays hidden until its full image has loaded and decoded; until then a still skeleton in
 * the glass tile's shape holds its place, and the icon fades in over the skeleton on the Small
 * duration. An icon already decoded appears at once, and a card taking a new icon hides the old one
 * at once. */
.icon-glass-detail .detail-artwork { transition: opacity var(--motion-duration) var(--motion-easing); }
.icon-glass-detail .detail-artwork[data-loading] { opacity: 0; transition: none; }
.detail-skeleton { grid-area: 1 / 1; position: relative; z-index: 1; width: 74%; height: 74%; border-radius: var(--glass-radius); background: var(--neutral-4); transition: opacity var(--motion-duration) var(--motion-easing); }
.detail-artwork:not([data-loading]) ~ .detail-skeleton { opacity: 0; }
.detail-artwork[data-loading] ~ .detail-skeleton { transition: none; }
.detail-artwork[data-artwork="round"] ~ .detail-skeleton { border-radius: var(--radius-full); }
.icon-glass-detail .detail-artwork[data-artwork="mac"] { width: calc(74% * 1024 / 824); height: calc(74% * 1024 / 824); border-radius: var(--radius-zero); }
.icon-glass-detail .detail-artwork[data-artwork="round"] { border-radius: var(--radius-full); }
/* Hover lifts a tile by the theme's popup scale and twice its press distance; the artwork
 * grows by the same scale again inside the glass, so it reads as floating slightly above it.
 * Tiles answer the pointer faster than other small motion: 70% of the Small duration (140ms with
 * the theme's 200ms) on the Small curve, which covers most of the lift in the first few frames. */
.icon-open .icon-glass, .icon-open .app-icon { transition: scale calc(var(--motion-duration) * .7) var(--motion-easing), translate calc(var(--motion-duration) * .7) var(--motion-easing); }
.icon-name { transition: color calc(var(--motion-duration) * .7) var(--motion-easing); }
@media (hover: hover) {
  .icon-open:is(:hover, :focus-visible) .icon-name { color: var(--neutral-10); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  /* Tiles keep their own compositor layers at rest. Otherwise the browser repaints them into the page
   * when a transition ends, pixel-snapped, and the artwork jumps a device pixel just after it settles.
   * Only tiles near the viewport need one (app.js marks them), and while the WebGL glass draws the
   * film and rim, the tile's own glass box paints nothing, so only its artwork needs the layer. */
  .is-near .icon-open .app-icon, :root:not(.glass-active) .is-near .icon-open .icon-glass { will-change: transform; }
  .icon-open:is(:hover, :focus-visible) .icon-glass { scale: calc(2 - var(--motion-popup-scale)); translate: 0 calc(-2 * var(--motion-press-distance)); }
  .icon-open:is(:hover, :focus-visible) .app-icon { scale: calc(2 - var(--motion-popup-scale)); }
  .icon-open:active :is(.icon-glass, .app-icon) { scale: 1; translate: 0 0; }
}
@media (max-width: 650px) { .icon-glass { --glass-size: 72px; } .is-compact .icon-glass { --glass-size: 58px; } .icon-glass-detail { --glass-size: 176px; } .icon-card { contain-intrinsic-size: auto 137px; } }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more), (forced-colors: active) {
  .glass-canvas { display: none; }
  .glass-active .icon-grid .icon-glass::before, .glass-active .icon-grid .glass-rim { visibility: visible; }
  .icon-glass::before { background: var(--glass-solid); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (forced-colors: active) { .icon-glass::before { background: Canvas; } .glass-rim { box-shadow: inset 0 0 0 1px CanvasText; forced-color-adjust: none; } }
