:root {
  color-scheme: dark;
  --ink: #111310;
  --panel: rgb(20 20 17 / 94%);
  --line: rgb(211 165 61 / 24%);
  --gold: #e7b64c;
  --gold-light: #f4e3ba;
  --muted: #a29e90;
  --text: #e8e3d6;
  --dock-height: 326px;
  --serif: Georgia, "Noto Serif CJK TC", "Songti TC", "PMingLiU", "SimSun", serif;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--ink);
  color: var(--text);
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; border: 0; background: none; touch-action: manipulation; }
button, input, select { -webkit-tap-highlight-color: transparent; }
button { transition: background .16s, color .16s, border-color .16s; }
button:hover { background: rgb(231 182 76 / 9%); color: var(--gold-light); }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }
svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.glass { background: var(--panel); border: 1px solid var(--line); box-shadow: 0 12px 36px #0004; backdrop-filter: blur(18px); }
.scene-backdrop { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage { position: fixed; inset: 0; min-height: 100px; }
.stage canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.stage canvas:focus-visible { box-shadow: inset 0 0 0 1px #e7b64c60; }
.app-header { position: fixed; inset: max(12px, env(safe-area-inset-top)) 16px auto; z-index: 40; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; pointer-events: none; }
.brand-panel, .action-panel { pointer-events: auto; display: flex; align-items: center; border-radius: 16px; min-height: 48px; }
.brand-panel { gap: 12px; padding: 6px 12px 6px 7px; min-width: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #ffe0a0; background: linear-gradient(140deg, #83271c, #441813); border: 1px solid #c3934180; flex-shrink: 0; }
.brand-mark svg { width: 24px; height: 24px; }
.brand { white-space: nowrap; min-width: 0; overflow: hidden; }
.brand strong { display: block; font: 600 18px/1.2 var(--serif); letter-spacing: 4px; color: var(--gold-light); overflow: hidden; text-overflow: ellipsis; }
.gender-switch { display: flex; flex-shrink: 0; gap: 2px; padding: 3px; border: 1px solid #8b75453b; border-radius: 12px; background: #0c0c0b80; }
.gender-switch button { min-height: 28px; padding: 4px 11px; border-radius: 8px; font: 13px var(--serif); white-space: nowrap; }
.gender-switch .active { background: var(--gold); color: #291b08; box-shadow: 0 2px 7px #0003; }
.gender-switch .pending { box-shadow: inset 0 0 0 1px var(--gold); }
.header-note { display: flex; align-items: center; gap: 7px; padding-left: 10px; border-left: 1px solid #ffffff14; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: #94c7a8; box-shadow: 0 0 8px #94c7a850; }
body.loading-appearance .status-dot { background: var(--gold); }
.action-panel { gap: 3px; padding: 5px; flex-shrink: 0; }
.action-panel button { display: flex; justify-content: center; align-items: center; gap: 7px; min-height: 36px; padding: 7px 11px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.action-panel svg { color: var(--gold); width: 16px; height: 16px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; min-height: 34px; border-radius: 10px; padding: 7px; }
.action-panel .icon-button { width: 36px; padding: 7px; }
.language-button { font-size: 10px !important; }
.tool-menu { position: absolute; top: 56px; right: 0; width: min(240px, calc(100vw - 32px)); border-radius: 16px; padding: 7px; pointer-events: auto; }
.tool-menu button { display: flex; width: 100%; gap: 13px; padding: 11px 12px; border-radius: 9px; text-align: left; font-size: 12px; align-items: center; min-height: 40px; }
.tool-menu svg { color: var(--gold); width: 16px; height: 16px; }
.tool-menu small { margin-left: auto; color: var(--muted); }
.eyebrow { font-size: 9px; letter-spacing: 1.5px; color: #b99855; }
.view-toolbar { position: fixed; left: 20px; bottom: 22px; z-index: 25; display: flex; align-items: center; gap: 2px; padding: 4px 7px; border-radius: 13px; }
.view-toolbar button { min-width: 27px; height: 32px; font-size: 12px; padding: 5px; border-radius: 7px; }
.view-toolbar svg { width: 14px; height: 14px; }
#headFocus { min-width: 40px; font-size: 11px; }
#zoomLabel { min-width: 39px; text-align: center; font-size: 10px; font-variant-numeric: tabular-nums; color: var(--gold); }
.tool-divider { height: 12px; width: 1px; background: #ffffff18; margin: 0 3px; }
.wardrobe-dock { position: fixed; width: min(936px, calc(100vw - 28px)); left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; }
.catalog-panel { padding: 10px 14px 0; border-radius: 20px; margin-bottom: 8px; overflow: hidden; background: rgb(16 18 16 / 58%); backdrop-filter: blur(2px); }
.catalog-heading { display: flex; align-items: center; gap: 10px; min-height: 32px; padding-bottom: 7px; }
.category-name { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.category-seal { display: grid; place-items: center; width: 25px; height: 25px; background: #6c430030; border: 1px solid #b7892c70; border-radius: 7px; color: var(--gold); flex-shrink: 0; }
.category-seal svg { width: 17px; height: 17px; }
.category-name h2 { font: 600 15px var(--serif); margin: 0; color: var(--gold-light); }
.count { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.collection-count { margin-left: auto; font-size: 10px; color: #a29375; border: 1px solid #aa84322f; padding: 5px 9px; border-radius: 12px; }
#drawerToggle { color: #b4ac96; min-height: 28px; height: 28px; width: 28px; min-width: 28px; }
.catalog-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 9px; }
.catalog-query { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 260px; }
.search-wrap { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 0; padding: 0 10px; border: 1px solid #ffffff12; border-radius: 10px; background: #ffffff04; color: #aca592; }
.search-wrap svg { width: 14px; height: 14px; }
.search-wrap input { width: 100%; min-width: 0; height: 34px; font-size: 11px; color: var(--text); border: 0; background: none; outline: none; }
.search-wrap:focus-within { border-color: #cba557; box-shadow: 0 0 0 1px #cba55740; }
input::placeholder { color: #7f7c71; }
.quick-tools { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #b5ae9e; min-height: 32px; }
.quick-tools button { padding: 5px 8px; border: 1px solid #ffffff16; border-radius: 7px; font-size: 11px; min-height: 29px; }
.segmented { display: flex; padding: 2px; border-radius: 9px; background: #0d0e0c; border: 1px solid #ffffff12; gap: 2px; }
.segmented button { min-width: 31px; min-height: 25px; padding: 3px 7px; border: 0; }
.segmented button.active { background: var(--gold); color: #291b08; }
#hairColor { width: 34px; height: 28px; padding: 2px; background: #1a1b17; border: 1px solid #ffffff24; border-radius: 6px; cursor: pointer; }
select { max-width: 175px; min-height: 31px; background: #1a1b17; color: var(--gold-light); border: 1px solid #ffffff20; border-radius: 7px; padding: 4px 6px; font-size: 11px; }
#sortOrder { display: flex; align-items: center; justify-content: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff20; border-radius: 10px; background: #1a1b17; color: var(--gold-light); }
#sortOrder svg { width: 20px; height: 20px; pointer-events: none; }
#sortOrder:hover { background: #e7b64c17; border-color: #cba55780; }
.ornament-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; padding-bottom: 9px; }
.ornament-slots button { display: flex; align-items: center; gap: 8px; min-width: 0; border: 1px solid #ffffff12; border-radius: 9px; padding: 7px 10px; text-align: left; min-height: 34px; }
.ornament-slots span { font-size: 11px; flex-shrink: 0; }
.ornament-slots small { display: block; min-width: 0; color: var(--muted); font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.ornament-slots .active { border-color: #c29b4d70; background: #ba8e1920; }
.ornament-slots .equipped span::after { content: " ·"; color: var(--gold); }
.catalog-scroll { max-height: clamp(120px, 19vh, 186px); overflow-y: auto; overscroll-behavior: contain; padding: 1px 5px 5px 1px; scrollbar-width: thin; scrollbar-color: #77603480 transparent; }
.entries { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.entry { position: relative; min-width: 0; min-height: 84px; display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 11px 9px 9px; border: 1px solid #ffffff12; background: #ffffff03; border-radius: 11px; text-align: left; }
.entry:hover { background: #d5a7470d; border-color: #c39e4860; }
.entry.selected { background: linear-gradient(135deg, #9b670023, #5740192e); border-color: #deb146; box-shadow: inset 0 0 0 1px #deb14620; }
.entry.selected::after { content: "✓"; position: absolute; right: 5px; top: 3px; color: var(--gold); font-size: 10px; }
.entry.is-pending { border-style: dashed; border-color: #c4a365; }
.thumb { display: block; flex-shrink: 0; border-radius: 7px; background-color: #151611; background-repeat: no-repeat; }
.thumb.placeholder { display: grid; place-items: center; color: #d3ae67; background: radial-gradient(circle at 30% 30%, #9c773326, #11140e); border: 1px solid #88703527; }
.thumb.placeholder svg { width: 64%; height: 64%; }
.entry .thumb { grid-row: 1 / 3; }
.entry-name { font-size: 11px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; align-self: end; color: #ddd7c8; }
.entry-meta { font-size: 9px; color: #92866e; align-self: start; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry.unavailable { opacity: .5; }
.entry.unavailable .thumb { filter: saturate(.35); }
.load-more { display: block; width: 100%; border: 1px solid #b296503b; border-radius: 9px; padding: 9px; color: #d9bd78; font-size: 11px; margin-top: 9px; }
.empty { padding: 20px 8px; margin: 0; color: var(--muted); font-size: 12px; text-align: center; line-height: 1.6; }
.selection-detail { display: flex; align-items: center; min-height: 42px; margin-top: 6px; gap: 9px; border-top: 1px solid #ffffff0b; }
.selection-detail .eyebrow { white-space: nowrap; font-size: 9px; letter-spacing: .6px; }
.selection-detail strong { min-width: 0; font-size: 11px; font-weight: 500; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.details-button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; flex-shrink: 0; margin-left: auto; padding: 5px 9px; min-height: 32px; border: 1px solid #cba55770; border-radius: 8px; color: var(--gold-light); background: #7d5c1526; font-size: 11px; white-space: nowrap; }
.details-button svg { width: 14px; height: 14px; }
.categories { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); padding: 5px; gap: 3px; border-radius: 17px; }
.categories button { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 5px; min-width: 0; min-height: 48px; padding: 6px 2px; border-radius: 12px; color: #b8b3a5; border: 1px solid transparent; font-size: 11px; }
.categories svg { width: 18px; height: 18px; }
.categories button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.categories .active { background: #a7781b20; color: var(--gold-light); border-color: #c8983566; }
.categories .active svg { color: var(--gold); }
.drawer-closed .categories .active { background: #b9912210; border-color: #b9912240; }
.loading { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); border-radius: 17px; padding: 22px 30px; display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: calc(100vw - 32px); min-width: 230px; z-index: 30; text-align: center; }
.loading strong { font-size: 13px; font-weight: 500; color: var(--gold-light); }
.loading > span:not(.spinner) { font-size: 11px; color: var(--muted); }
.spinner { width: 23px; height: 23px; border: 1px solid #cfae6140; border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
progress { width: 172px; height: 2px; border: 0; appearance: none; }
progress::-webkit-progress-bar { background: #5f502d; }
progress::-webkit-progress-value { background: var(--gold); }
.error { position: fixed; left: 50%; top: 36%; transform: translate(-50%, -50%); border-radius: 17px; padding: 22px; width: min(360px, calc(100vw - 32px)); z-index: 35; border-color: #98684b; }
.error strong { font-size: 14px; color: #f1ceb1; }
.error p { font-size: 11px; line-height: 1.7; overflow-wrap: anywhere; color: #c5ad98; max-height: 150px; overflow: auto; }
.notifications { position: fixed; right: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 62px); z-index: 35; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: min(360px, calc(100vw - 32px)); pointer-events: none; }
.toast { font-size: 12px; color: var(--gold-light); margin: 0; padding: 10px 16px; border-radius: 12px; max-width: 100%; text-align: start; }
.update-notice { display: flex; align-items: center; gap: 10px; max-width: 100%; padding: 10px 12px; border-radius: 12px; color: var(--gold-light); pointer-events: auto; }
.update-notice span { min-width: 0; font-size: 12px; line-height: 1.5; }
.update-notice button { flex: none; min-height: 36px; padding: 7px 10px; font-size: 12px; }
.social-rail { position: fixed; z-index: 45; right: max(12px, env(safe-area-inset-right)); top: 50%; transform: translateY(-50%); }
.social-links { display: flex; flex-direction: column; gap: 8px; }
.social-link, .social-toggle { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; text-decoration: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.social-link { color: var(--social-color, var(--gold-light)); transition: background .16s, border-color .16s; }
.social-link img { display: block; width: 28px; height: 28px; object-fit: contain; }
.social-link[data-platform="facebook"] { --social-color: #9abfff; }
.social-link[data-platform="youtube"] { --social-color: #ff8888; }
.social-link[data-platform="tiktok"] { --social-color: #c9f6f2; }
.social-link[data-platform="telegram"] { --social-color: #8ad4ff; }
.social-link[data-platform="discord"] { --social-color: #b4b0ff; }
.social-link:hover, .social-link:focus-visible { background: #292d2a; border-color: currentColor; }
.social-toggle { color: var(--gold-light); }
.social-toggle svg { width: 23px; height: 23px; }
.social-label { position: absolute; right: calc(100% + 10px); padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: #161915; box-shadow: 0 4px 16px #0004; color: var(--text); white-space: nowrap; font-size: 12px; opacity: 0; visibility: hidden; pointer-events: none; }
.social-link:hover .social-label, .social-link:focus-visible .social-label { opacity: 1; visibility: visible; }
.social-compact .social-links { position: absolute; top: 50%; transform: translateY(-50%); right: calc(100% + 10px); display: grid; grid-template-columns: repeat(2, 46px); gap: 6px; padding: 8px; max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 36px #0006; }
.social-compact .social-label { display: none; }
.reveal-ui { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; z-index: 40; display: flex; gap: 8px; align-items: center; padding: 11px 14px; color: var(--gold-light); font-size: 12px; border-radius: 12px; }
.immersive .app-header, .immersive .wardrobe-dock, .immersive .view-toolbar, .immersive .social-rail { display: none; }
.immersive .stage { inset: 0; }
dialog { color: var(--text); width: min(540px, calc(100vw - 24px)); max-height: calc(100dvh - 40px); padding: 0; background: #151611f7; border: 1px solid #bd964d66; border-radius: 22px; box-shadow: 0 25px 90px #000a; overflow: hidden; }
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #0009; backdrop-filter: blur(5px); }
.dialog-heading { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 15px; border-bottom: 1px solid #b99b4529; flex-shrink: 0; }
.dialog-heading h2 { font: 600 21px var(--serif); color: var(--gold-light); margin: 6px 0 0; }
.dialog-body { padding: 17px 22px 23px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #77603480 transparent; }
.dialog-intro { margin: 0 0 18px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.scene-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.scene-choice { border: 1px solid #ffffff16; border-radius: 12px; padding: 6px; text-align: left; overflow: hidden; }
.scene-choice[aria-pressed="true"] { border-color: var(--gold); background: #c2942920; }
.scene-choice img, .scene-swatch { display: block; width: 100%; height: 82px; object-fit: cover; border-radius: 7px; background: #131b1f; }
.scene-choice strong { display: block; font: 13px var(--serif); padding: 8px 4px 4px; }
.scene-choice:last-child { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; }
.scene-choice:last-child .scene-swatch { width: 35px; height: 27px; border: 1px solid #ffffff18; }
.range-setting { display: grid; grid-template-columns: 1fr auto; gap: 11px; margin-top: 20px; font-size: 12px; color: #bcb4a0; }
.range-setting output { color: var(--gold); font-variant-numeric: tabular-nums; }
.range-setting input { grid-column: 1/-1; accent-color: var(--gold); width: 100%; cursor: pointer; }
.subtle-button { margin-top: 18px; padding: 9px 13px; border: 1px solid #ffffff16; border-radius: 9px; font-size: 11px; }
.primary-button { padding: 10px 14px; border-radius: 9px; background: var(--gold); color: #271b08; font-size: 12px; font-weight: 600; white-space: nowrap; }
.primary-button:hover { background: #f1ca73; color: #271b08; }
.save-look { display: flex; gap: 8px; margin-bottom: 18px; }
.save-look input { min-width: 0; width: 100%; border: 1px solid #ffffff20; border-radius: 9px; padding: 9px 11px; background: #0e100e; color: var(--text); font-size: 12px; }
.saved-looks { display: flex; flex-direction: column; gap: 9px; }
.saved-look { display: flex; gap: 10px; align-items: center; padding: 12px; border: 1px solid #ffffff14; background: #ffffff03; border-radius: 12px; }
.saved-look > div { flex: 1; min-width: 0; }
.saved-look strong { display: block; font: 13px var(--serif); color: var(--gold-light); overflow-wrap: anywhere; }
.saved-look small { display: block; color: var(--muted); font-size: 10px; margin-top: 6px; }
.saved-look button { padding: 8px; font-size: 11px; border-radius: 7px; color: var(--gold); }
.saved-look .delete-look { color: #a3917a; }
.no-script { position: fixed; top: 30%; width: 100%; text-align: center; }
.fashion-tooltip { position: fixed; z-index: 1000; width: 320px; padding: 5px 6px 7px; border: 10px solid transparent; border-image: url("tooltip-frame.png") 10 fill stretch; color: #edddbd; font: 12px/1.65 "Microsoft YaHei", sans-serif; text-shadow: 0 1px 1px #000; pointer-events: none; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; box-shadow: 0 6px 25px #0009; }
.fashion-tooltip.pinned { pointer-events: auto; }
.tooltip-title { display: block; text-align: center; color: #ffe9b1; font-weight: 500; font-size: 14px; line-height: 1.5; padding: 0 12px 8px; overflow-wrap: anywhere; }
.tooltip-header, .tooltip-description { background: url("tooltip-line.png") center top/100% 2px no-repeat; padding-top: 10px; }
.tooltip-header { display: flex; gap: 12px; padding: 10px 2px; }
.tooltip-header .thumb { border-radius: 2px; box-shadow: 0 0 0 1px #b5a9827a; }
.tooltip-properties { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.tooltip-properties span:last-child { color: #80d895; }
.tooltip-properties .tooltip-unavailable { color: #f3b39d !important; }
.tooltip-description { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 280px; overflow: auto; scrollbar-width: thin; padding: 9px 1px 5px; }
.tooltip-footer { margin-top: 6px; color: #b6ac92; font-size: 10px; text-align: center; }
.tooltip-close { position: absolute; right: 0; top: 0; min-width: 30px; min-height: 30px; font-size: 20px; line-height: 1; color: #ddc9a6; }
@media (max-width: 1380px) {
  .view-toolbar { left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-height) + 21px); }
}
@media (max-width: 1040px) {
  .header-note { display: none; }
  .action-panel > button > span:not(.language-label) { display: none; }
  .entries { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  :root { --dock-height: 61px; }
  .app-header { left: 9px; right: 9px; gap: 7px; top: max(9px, env(safe-area-inset-top)); }
  .brand-panel { gap: 7px; min-height: 43px; padding: 5px 7px 5px 5px; border-radius: 13px; }
  .brand-mark { width: 29px; height: 30px; border-radius: 8px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .brand strong { font-size: 15px; letter-spacing: 1px; }
  .gender-switch { padding: 2px; border-radius: 10px; }
  .gender-switch button { min-height: 27px; padding: 4px 8px; font-size: 12px; }
  .action-panel { padding: 4px; min-height: 43px; gap: 0; border-radius: 13px; }
  .action-panel button { min-height: 33px; min-width: 31px; padding: 7px; }
  .action-panel .desktop-action { display: none; }
  .action-panel .icon-button { width: 31px; }
  .tool-menu { top: 50px; }
  .eyebrow { font-size: 8px; }
  .wardrobe-dock { width: calc(100vw - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .catalog-panel { padding: 9px 9px 0; border-radius: 16px; margin-bottom: 7px; }
  .category-name { gap: 6px; }
  .category-name h2 { font-size: 13px; }
  .category-seal { width: 22px; height: 22px; }
  .category-seal svg { width: 15px; height: 15px; }
  .collection-count { font-size: 9px; padding: 4px 6px; max-width: 135px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .catalog-heading { gap: 5px; padding-bottom: 5px; }
  .catalog-tools { gap: 7px; }
  .catalog-query { min-width: 0; flex-basis: 100%; gap: 7px; }
  #sortOrder { flex-basis: 44px; width: 44px; height: 44px; }
  .search-wrap input { height: 42px; }
  .quick-tools { min-height: 27px; gap: 6px; font-size: 10px; }
  .quick-tools button { min-height: 28px; }
  .catalog-scroll { max-height: clamp(95px, 17dvh, 155px); }
  .entries { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .entry { display: flex; flex-direction: column; gap: 5px; padding: 9px 5px 7px; min-height: 112px; text-align: center; }
  .entry-name { font-size: 10px; line-height: 1.5; width: 100%; align-self: center; min-height: 30px; }
  .entry-meta { margin-top: auto; align-self: center; font-size: 8px; max-width: 100%; }
  .ornament-slots { gap: 5px; padding-bottom: 8px; }
  .ornament-slots button { flex-direction: column; gap: 4px; align-items: flex-start; padding: 6px 7px; }
  .ornament-slots small { max-width: 100%; font-size: 9px; }
  .selection-detail { min-height: 40px; gap: 7px; }
  .selection-detail strong { flex: 1; max-width: none; font-size: 10px; }
  .details-button { min-height: 34px; font-size: 10px; padding: 5px 8px; }
  .categories { gap: 1px; padding: 4px; border-radius: 15px; }
  .categories button { min-height: 45px; gap: 4px; padding: 5px 1px; font-size: 9px; border-radius: 10px; }
  .categories svg { width: 16px; height: 16px; }
  .view-toolbar { bottom: calc(var(--dock-height) + 18px); padding: 3px 6px; }
  .view-toolbar button { height: 29px; }
  .notifications { top: calc(max(9px, env(safe-area-inset-top)) + 53px); right: 9px; max-width: calc(100vw - 18px); }
  .toast, .update-notice span { font-size: 11px; }
  .update-notice button { min-height: 44px; }
  .social-rail { right: max(9px, env(safe-area-inset-right)); }
  .dialog-heading { padding: 17px 17px 13px; }
  .dialog-body { padding: 15px 17px 19px; }
  .dialog-heading h2 { font-size: 19px; }
  .save-look { flex-direction: column; }
  .saved-look { flex-wrap: wrap; }
  .saved-look > div { flex-basis: 100%; }
}
@media (max-height: 610px) and (min-width: 701px) {
  .catalog-scroll { max-height: 95px; }
}
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
