* { box-sizing: border-box; }
:root { --artwork-canvas: #ffffff; } /* Source artwork canvas, independent of interface mode. */
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 { display: flex; width: fit-content; gap: var(--space-xs); align-items: center; font-size: var(--size-m); line-height: var(--line-m); letter-spacing: var(--letter-spacing-m); font-weight: var(--weight-brand-heavy); font-family: var(--font-brand); }
.brand svg { width: 28px; height: 28px; }
.brand-period { color: var(--neutral-6); }
.header-nav { display: flex; gap: var(--space-xxs); align-items: center; }
main.page-width { padding-top: var(--space-s); }
/* Decorative sample 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); }
.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 img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; background: var(--artwork-canvas); }
.collection-update p { margin: var(--space-zero); color: var(--neutral-7); 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); }
.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 field; the native placeholder stays for assistive tech and as the static fallback. */
.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.has-typing-placeholder::placeholder { color: var(--color-none); }
.search-input:has(input:not(:placeholder-shown)) .search-placeholder { visibility: hidden; }
.search-field input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { flex: none; padding: var(--space-xs); }
.search-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); }
/* 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); }
.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); }
.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-height: calc(100dvh - 2 * var(--space-s)); color: var(--neutral-10); }
/* Dialog backdrop colors come from the shared mode-aware adapter; no blur is authored. */
dialog::backdrop { backdrop-filter: none; }
/* 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[open] { display: flex; flex-direction: column; }
.detail-dialog .dialog-close { z-index: 1; }
.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); }
.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); }
.detail-facts { display: flex; flex-direction: column; gap: var(--space-xs); margin: var(--space-s) var(--space-zero) var(--space-zero); }
.detail-facts div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-m); }
.detail-facts dt { color: var(--neutral-7); }
.detail-facts dd { margin: var(--space-zero); text-align: right; }
.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 { color: var(--neutral-7); margin-bottom: var(--space-m); }
.about-symbol svg { width: 32px; height: 32px; }
.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); }
.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)); } .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%; } }
@media (max-width: 650px) { .page-width { width: calc(100% - 2 * var(--space-s)); } .site-header { padding-block: var(--space-s); } .brand { gap: var(--space-xxs); } .brand svg { width: 24px; height: 24px; } .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 { font-size: var(--size-xxs); line-height: var(--line-xxs); letter-spacing: var(--letter-spacing-xxs); } .filter-controls { gap: var(--space-xxs); } .filter-controls :is(select, .select-trigger) { padding-inline: var(--space-xs) var(--space-l); font-size: var(--size-xs); line-height: var(--line-xs); letter-spacing: var(--letter-spacing-xs); } .select-wrap > span { right: var(--space-xs); } .library-footer { gap: var(--space-s); } #back-top { margin-left: auto; } }
@media (max-width: 650px) {
  .filter-controls .select-trigger--with-icon { gap: var(--space-xxs); }
  .select-trigger .select-leading-icon { width: 16px; height: 16px; }
  .detail-dialog { top: auto; bottom: 0; width: 100vw; max-width: 100vw; max-height: calc(100dvh - var(--space-xl)); margin: var(--space-zero); transform: none; border-radius: var(--radius-zero); }
  .detail-footer { padding-bottom: max(var(--space-l), env(safe-area-inset-bottom)); }
  .detail-actions { flex-direction: column; }
  .detail-dialog { scale: 1; translate: 0 var(--space-s); }
  .detail-dialog[data-dialog-state="open"] { translate: 0 0; }
}
@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: 651px) 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); }
}
/* Shorter phones, like the iPhone SE, get smaller artwork so the facts stay above the actions. */
@media (max-width: 650px) 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-image { position: relative; z-index: 1; width: 74%; height: 74%; }
.icon-glass-detail #detail-image[data-artwork="mac"] { width: calc(74% * 1024 / 824); height: calc(74% * 1024 / 824); border-radius: var(--radius-zero); }
.icon-glass-detail #detail-image[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. */
.icon-open .icon-glass, .icon-open .app-icon { transition: scale var(--motion-duration) var(--motion-easing), translate var(--motion-duration) var(--motion-easing); }
.icon-name { transition: color var(--motion-duration) 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) {
  .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; } }
