.topnav .settings-nav-first { margin-left:auto; }
.topnav a[href^="/setting/"] { white-space:nowrap; }
.topnav[data-top-menu]{min-height:52px;flex-wrap:nowrap;align-items:stretch}
.topnav[data-top-menu] a{flex:0 0 auto;text-align:center;white-space:nowrap}
.top-menu-retry{margin:8px;padding:8px 12px;border:1px solid var(--line);border-radius:5px;background:var(--heading);color:#e0e0e0;font:inherit;cursor:pointer}

/* Comment surfaces shared by names, effects, rewards and chart details. */
:root :is([role="tooltip"],.site-hover-comment,.list-trait-tooltip,.stage-analysis-tooltip){
  box-sizing:border-box;background:var(--header,#601000);color:var(--text-white,#e0e0e0);border:1px solid var(--line,#a85800);
  border-radius:5px;padding:7px 11px;box-shadow:0 3px 12px #0006;font-size:13px;line-height:1.5;
}
.site-hover-comment{position:fixed;z-index:10010;max-width:min(42em,calc(100vw - 12px));white-space:pre-line;overflow-wrap:anywhere;pointer-events:none}
.site-hover-comment[hidden]{display:none}


/* Shared title geometry: the character-name bar in Unit detail is 50px high.
   Keep widths responsive to each page/card; menus must not stretch the bar. */
:root { --page-title-height:50px; --page-title-inset:18px; --page-title-radius:8px; }
/* Align short favorite lists with directory pages that have a vertical scrollbar. */
:root:has(.favorites-main) { overflow-y:scroll; }
:root :is(.enemy-heading,.unit-page-bar,.enemy-page-bar,.unit-list-heading,.stage-page-bar,.stage-card > h2,.settings-page-title) {
  box-sizing:border-box;
  height:var(--page-title-height);
  min-height:var(--page-title-height);
  padding:0 var(--page-title-inset);
}
:root .stage-card > h2 { display:flex; align-items:center; }
/* Only grow when complete titles/controls need more than one line. */
:root :is(.unit-list-heading,.stage-page-bar,.stage-card > h2,.settings-page-title) { height:auto; }

/* Shared outer curve for independent disclosure panels and their frames. */
:root { --disclosure-panel-radius:8px; }
details.catalog-card,.unit-list-card:has(> .list-search-disclosure),
.schedule-more,.schedule-more > summary { border-radius:var(--disclosure-panel-radius); }

/* The first group follows Unit's title card; later groups follow its category cards.
   A group may be a static section or an expandable details element. */
.sidebar details:where(:not(.sidebar-primary-group)),
.sidebar > section:not(:first-child) {
  overflow: hidden;
  background: var(--heading-2);
  border: 1px solid var(--line);
  border-radius: var(--disclosure-panel-radius);
}
.sidebar > details { box-shadow: var(--shadow); }
.sidebar summary,
.sidebar > section:not(:first-child) > h2 {
  box-sizing: border-box;
  height: var(--page-title-height);
  align-content: center;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--light-text);
  background: var(--heading);
}
.sidebar h2 { height: var(--page-title-height); }
.sidebar summary { cursor: pointer; }
.sidebar > section:not(:first-child) > h2::after { content: none; }
.sidebar .sidebar-primary-group[open] > summary { box-shadow: inset 0 -1px var(--line); }
.sidebar .sidebar-primary-group:not(.site-disclosure) > summary { display: list-item; align-content: center; }
.sidebar .list-menu-links { max-height: none; overflow: visible; }
.sidebar .top-menu-retry { width: auto; margin: 10px; padding: 8px; }

/* Subcategories can be direct children or be wrapped in a menu link list. */
.sidebar details details { margin: 6px; }
.sidebar details details > summary { padding-inline: 10px; background: var(--heading-2); }
.sidebar details details a { padding: 7px 10px; }
.sidebar .unit-target-label { display: inline-flex; align-items: center; gap: 6px; }
.sidebar .unit-target-label > img { display: block; flex: none; }
.enemy-list-sidebar a.enemy-menu-attribute{gap:6px}
.gacha-index-section{grid-column:1/-1;min-width:0}
.gacha-index-section h3{margin:0;padding:8px 14px;font-size:inherit;font-weight:normal;background:var(--heading-2);border-radius:5px}

/* Trait tags and navigation share the attribute icon size and spacing. */
.trait-category-label{display:inline-flex;align-items:center;gap:6px;vertical-align:middle}
:root img.trait-category-icon{display:block;width:22px;height:22px;min-width:22px;max-width:none;flex:0 0 22px;zoom:1;object-fit:contain}

.enemy-tags-row>.detail-label{align-items:flex-start;line-height:1.8;padding-block:calc((var(--row-height) - 1.8em) / 2)}
.enemy-tags-row>.detail-content{align-items:flex-start}
.enemy-tags{display:flex;flex-direction:column;width:100%;min-width:0;box-sizing:border-box;gap:7px;padding-block:calc((var(--row-height) - 1.6em - 8px) / 2)}
.enemy-tag-group{display:flex;flex-wrap:wrap;gap:6px 8px}
/* Match the Unit description divider; the group's 7px gap supplies the remaining spacing. */
.enemy-tags-divider{height:0;align-self:stretch;margin:3px 0;border:0;border-top:1px solid var(--line)}
.enemy-tags a{display:inline-block;padding:3px 9px;border:1px solid var(--line);border-radius:5px;background:var(--heading-2);color:#e0e0e0;line-height:1.6;white-space:nowrap;text-decoration:none}
.enemy-tags a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.15em}

.enemy-card .enemy-classification-link{color:inherit;text-decoration:none}
.enemy-card .enemy-classification-link:is(:hover,:focus-visible){color:inherit;text-decoration:underline;text-underline-offset:.15em}

/* Attribute badges retain 22px at every site-wide icon scale. */
.enemy-attribute-icons{display:grid;grid-template-columns:repeat(var(--attribute-columns,1),max-content);grid-auto-rows:22px;column-gap:10px;row-gap:0;align-items:center;width:max-content}
.enemy-attribute{display:inline-flex;align-items:center;gap:5px;line-height:22px;white-space:nowrap;color:inherit}
:root img.enemy-attribute-icon{display:block;flex:none;width:22px;height:22px;min-width:22px;min-height:22px;max-width:22px;max-height:22px;zoom:1;object-fit:contain;vertical-align:middle}
.enemy-attribute-icon.is-missing{visibility:hidden}
.portrait-attributes .enemy-attribute-icons{grid-template-columns:max-content;row-gap:0}

.enemy-maximum-list{display:flex;flex-direction:column;gap:4px;padding-block:12px;width:100%}
.enemy-maximum-entry{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px 14px;line-height:1.8}
.enemy-maximum-magnification{appearance:none;border:0;padding:0;background:none;font:inherit;line-height:inherit;white-space:nowrap;color:#e0e0e0;font-variant-numeric:tabular-nums;cursor:pointer}
.enemy-maximum-magnification:is(:hover,:focus-visible){color:#e0e0e0;text-decoration:underline;text-underline-offset:.15em}
.enemy-maximum-magnification:focus-visible{outline:2px solid #80f0f0;outline-offset:2px}
.enemy-maximum-location{color:#e0e0e0}
.enemy-maximum-condition{display:inline-flex;align-items:center;align-self:center;gap:10px;color:#e0e0e0;font-size:11px}
.enemy-maximum-crowns{display:inline-flex;align-items:center;gap:2px;vertical-align:middle}
:root .enemy-maximum-crowns img{display:block;width:16.5px;height:15px;min-width:16.5px;max-width:16.5px;max-height:15px;zoom:1;object-fit:contain}
.enemy-maximum-stage-number{font-variant-numeric:tabular-nums}
.enemy-maximum-disclosure{display:block;background:linear-gradient(to right,var(--heading-2) var(--status-label-width),var(--cell) var(--status-label-width))}
.enemy-maximum-disclosure>summary{display:grid;grid-template-columns:var(--status-label-width) minmax(0,1fr);cursor:pointer;list-style:none}
.enemy-maximum-disclosure>summary::-webkit-details-marker{display:none}
.enemy-maximum-disclosure>summary:focus-visible{outline:2px solid var(--factor);outline-offset:-2px}
.enemy-maximum-disclosure>summary>.detail-label{flex-direction:column;gap:6px}
.enemy-maximum-disclosure .unit-disclosure-icon{align-self:flex-end;margin-right:3px}
.enemy-maximum-disclosure>summary>.detail-content{align-items:flex-start;cursor:default}
.enemy-maximum-disclosure>.detail-content{margin-left:var(--status-label-width)}
.enemy-maximum-disclosure[open]>summary .enemy-maximum-list{padding-bottom:0}
.enemy-maximum-disclosure>.detail-content>.enemy-maximum-list{padding-top:8px}
.enemy-maximum-disclosure>summary>.detail-label,.enemy-maximum-row>.detail-label{align-items:flex-start;padding-block:calc((var(--row-height) - 1.8em) / 2);line-height:1.8}

/* Public lists: one divider under the header, no horizontal dividers between data rows. */
/* Share the text line box across list cells; center multi-line content as a group. */
:root { --list-line-height:20px; }
:root :is(.stage-table,.catalog-table,.settings-table,.enemy-index,.unit-list-table,.unit-level-unlocks,.gamatoto-member-settings-table) > :is(thead,tbody) > tr > :is(th,td) { line-height:var(--list-line-height); vertical-align:middle; }
:root :is(.stage-enemy-text,.stage-enemy-name-line,.list-character-name) { line-height:var(--list-line-height); }
:root :is(.list-name-cell .list-character-name,.stage-enemy-name).long-character-name { font-size:12px; white-space:nowrap; }
:root .stage-enemy-text { gap:0; }
:root :is(.stage-boss,.enemy-status-boss) { line-height:14px; }
/* Inline flex links/buttons create an extra baseline strut inside table cells. */
:root .unit-list-table :is(.list-number,.list-name-cell) > a { display:inline; vertical-align:baseline; }
:root .unit-list-table th > .list-sort,:root .catalog-table th > button { display:flex; width:max-content; line-height:var(--list-line-height); }
:root .unit-list-table th.status-number > .list-sort { margin-left:auto; }
:root :is(.stage-table,.catalog-table,.settings-table,.enemy-index,.unit-list-table) > tbody > tr > :is(th,td) { border-top:0; border-bottom:0; }
:root :is(.stage-table,.catalog-table,.settings-table,.enemy-index,.unit-list-table) > thead > tr:last-child > :is(th,td) { border-bottom:1px solid var(--line); }
:root :is(.stage-table,.settings-table,.enemy-index) > tbody > tr:nth-child(odd of :not([hidden])) { background:var(--heading-2); }
:root :is(.stage-table,.settings-table,.enemy-index) > tbody > tr:nth-child(even of :not([hidden])) { background:var(--cell); }
:root :is(.stage-material-disclosure,.stage-point-rewards,.stage-ex,.stage-ex-sources):is([data-site-expanded="true"],[open]:not([data-site-expanded="false"])) > summary { border-bottom:1px solid var(--line); }

:root :is(.stage-table,.settings-table,.enemy-index) > thead > tr > :is(th,td),
:root :is(.stage-material-disclosure,.stage-point-rewards,.stage-ex,.stage-ex-sources) > summary { background:var(--heading); }

/* Full-size character and reward cards share the Unit list's 90 x 34.2px box.
   Explicit dimensions also reserve the box while images load or are missing.
   Mini portraits, traits, attributes, maps and number glyphs use their own sizes. */
:root { --card-icon-width:90px; --card-icon-height:34.2px; }
:root body :is(img[src*="/Icon/" i],svg[viewBox="0 0 300 114"]):is(
  [src*="/Icon/Unit/" i],[src*="/Icon/Enemy/" i],[src*="/Icon/Egg/" i],
  [src*="/Icon/Item/" i],[src*="/Icon/Equipment/" i],
  [src*="/Icon/Ability_capsule/" i],[src*="/Icon/Powerup/" i],[src*="/Icon/Otakara/" i],
  .site-xp-reward-icon,.site-catfood-reward-icon
) {
  box-sizing:content-box;
  width:var(--card-icon-width); height:var(--card-icon-height);
  min-width:var(--card-icon-width); min-height:var(--card-icon-height);
  max-width:none; max-height:none; object-fit:contain; flex-shrink:0; zoom:1;
}

:is(.reward-unit-icons,.stage-map-drops) { display:grid; width:max-content; align-items:center; }
:is(.reward-unit-icons,.stage-map-drops) > * { grid-area:1 / 1; }
:is(.reward-unit-icons,.stage-map-drops)[data-drop-cycle] > * { opacity:0; pointer-events:none; transition:opacity .8s ease-in-out; }
:is(.reward-unit-icons,.stage-map-drops)[data-drop-cycle] > .is-current { opacity:1; pointer-events:auto; z-index:1; }
@media (prefers-reduced-motion:reduce) { :is(.reward-unit-icons,.stage-map-drops)[data-drop-cycle] > * { transition-duration:.2s; } }
.reward-unit-icons img { display:block; }

/* Explicit, reusable list palettes. Existing lists use palette 1. */
.zebra-palette-1 { --list-header:var(--zebra-1-header); --list-odd:var(--zebra-1-odd); --list-even:var(--zebra-1-even); }
.zebra-palette-2 { --list-header:var(--zebra-2-header); --list-odd:var(--zebra-2-odd); --list-even:var(--zebra-2-even); }
:root :is(.zebra-palette-1,.zebra-palette-2)>thead>tr>:is(th,td) { background:var(--list-header); }
:root :is(.zebra-palette-1,.zebra-palette-2)>tbody>tr:nth-child(odd of :not([hidden])) { background:var(--list-odd); }
:root :is(.zebra-palette-1,.zebra-palette-2)>tbody>tr:nth-child(even of :not([hidden])) { background:var(--list-even); }
:root :is(.zebra-palette-1,.zebra-palette-2)>tbody>tr>:is(th,td) { background:transparent; }

/* Per-page menu controls. */
/* Page-only overrides: account defaults are never overwritten here. */
:root .enemy-menu-panel:has(.detail-local-settings) { max-height:min(76vh,760px); overflow:auto; overscroll-behavior:contain; }
:root .enemy-menu-panel:has(.detail-local-settings[open]) { width:min(520px,calc(100vw - 48px)); }
.local-settings-note { margin:8px 10px; font-size:11px; line-height:1.6; color:rgb(224 224 224 / 80%); white-space:normal; }
.detail-local-settings { border-top:1px solid var(--line); }
.detail-local-settings > summary { display:flex; align-items:center; justify-content:space-between; min-height:40px; padding:8px 10px; cursor:pointer; list-style:none; font-weight:400; }
.detail-local-settings > summary::-webkit-details-marker { display:none; }
.detail-local-settings > summary::after { content:""; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg); margin:0 4px 4px 12px; transition:transform .2s; }
.detail-local-settings[open] > summary::after { transform:rotate(225deg); margin-bottom:-3px; }
.detail-local-settings > summary:hover { background:var(--heading-2); }
.detail-local-settings > summary:focus-visible { outline:2px solid var(--factor); outline-offset:-2px; }
.local-settings-body { padding:0 10px 12px; white-space:normal; }
:root .local-settings-body .treasure-list { display:block; border:1px solid var(--line); border-radius:5px; margin-bottom:8px; overflow:hidden; }
:root .local-settings-body .treasure-item { display:grid; grid-template-columns:180px minmax(0,1fr) 100px; height:auto; min-height:72px; padding:10px; align-items:center; background:var(--cell); }
:root .local-settings-body .treasure-icon { grid-column:1; grid-row:1; padding:0; background:none; min-height:0; }
:root .local-settings-body .treasure-name { grid-column:2; grid-row:1; padding:0 8px; background:none; font-size:12px; white-space:normal; }
:root .local-settings-body .treasure-input-wrap { grid-column:3; grid-row:1; align-self:stretch; padding:8px; background:var(--heading-2); border-radius:4px; justify-content:center; }
:root .local-settings-body .stage-treasure-name { flex-direction:column; align-items:flex-start; }
:root .local-settings-body input { color:var(--factor); background:transparent; font:inherit; border:0; padding:3px; width:4ch; text-align:right; font-variant-numeric:tabular-nums; appearance:textfield; }
:root .local-settings-body input::-webkit-inner-spin-button { appearance:none; }
:root .local-settings-body input:focus-visible { outline:1px solid var(--factor); }
:root .local-settings-body input:disabled { opacity:.5; }
:root .local-settings-body .upgrade-level-editor input { width:2ch; padding:3px 0; }
.local-settings-body :is(.unit-calculation-note,.unit-treasure-summary,.enemy-upgrade-summary,.enemy-upgrade-note) { margin:8px 0; font-size:11px; line-height:1.7; }
:root .local-settings-body .treasure-item:has([data-treasure]):not(.is-active) { display:none; }
.stage-page-bar > .enemy-page-menu { margin-left:auto; flex:0 0 auto; }
.stage-card:has(> .stage-page-bar) { overflow:visible; position:relative; z-index:5; }
.stage-card > .stage-page-bar { border-radius:8px 8px 0 0; }
.stage-page .enemy-menu-toggle { padding:0; width:34px; height:34px; border:0; border-radius:4px; background:none; color:var(--text); }
.stage-page .enemy-menu-toggle[aria-expanded="true"] { background:var(--heading-2); }
.stage-page .enemy-menu-panel button { border:0; background:none; color:var(--text); }
@media(prefers-reduced-motion:reduce) { .detail-local-settings > summary::after { transition:none; } }
.local-settings-body [hidden] { display: none !important; }


/* Shared vector disclosure mark; arrows cross-fade without rotation. */
/* Links are undecorated at rest; hover and keyboard focus reveal the underline. */
:root a[href]{text-decoration-line:none}
:root a[href]:is(:hover,:focus-visible){text-decoration-line:underline!important;text-underline-offset:.15em}
.site-select{position:relative;display:inline-grid;vertical-align:middle;min-width:0;max-width:100%;align-items:center;font-size:inherit;color:inherit}
:root .site-select>select{appearance:none;-webkit-appearance:none;padding-right:calc(14px + 20px)!important;grid-area:1/1;min-width:0;max-width:100%}
:root .site-select-icon,:root .unit-disclosure-icon{box-sizing:border-box;display:inline-block;width:14px;height:14px;flex:0 0 14px;border:0;border-radius:0;transform:none!important;transition:none;pointer-events:none}
.site-select-icon{position:absolute;right:8px;top:50%;margin-top:calc(14px / -2);z-index:1;color:inherit}
:root .site-select-icon::after,:root .unit-disclosure-icon::after{content:none}
:root :is(.site-select-icon,.unit-disclosure-icon)>svg{display:block;width:100%;height:100%;max-width:none;fill:currentColor;overflow:visible}
.site-arrow-down,.site-arrow-up{transition:opacity 420ms ease-in-out}
.site-arrow-down{opacity:1}.site-arrow-up{opacity:0}
.site-select:has(select:open)>.site-select-icon .site-arrow-down,
details:is([data-site-expanded="true"],[open]:not([data-site-expanded="false"]))>summary :is(.site-select-icon,.unit-disclosure-icon) .site-arrow-down{opacity:0}
.site-select:has(select:open)>.site-select-icon .site-arrow-up,
details:is([data-site-expanded="true"],[open]:not([data-site-expanded="false"]))>summary :is(.site-select-icon,.unit-disclosure-icon) .site-arrow-up{opacity:1}
.site-select:has(select:disabled){opacity:.6}
.unit-equipment-inputs label>.site-select,.unit-cost-control>.site-select{width:100%}
.unit-equipment-inputs .site-select>select,.unit-cost-control .site-select>select{width:100%}
.unit-cost-control>.site-select{align-self:stretch;align-items:stretch;color:var(--factor)}
.unit-cost-control .site-select>select{height:100%;padding-left:8px}
.site-disclosure>summary{position:relative;list-style:none;padding-right:calc(14px + 24px)!important}
.site-disclosure>summary::-webkit-details-marker{display:none}
.site-disclosure>summary::marker{content:""}
:root .site-disclosure>summary::after{content:none}
.site-disclosure>summary>.site-select-icon{right:10px;margin-bottom:0}
:root .unit-combo-label>.unit-disclosure-icon,:root .unit-talent-toggle-label>.unit-disclosure-icon{align-self:flex-end}
.site-disclosure-transition{overflow:hidden;clip-path:inset(0 round var(--site-disclosure-radius,0px));isolation:isolate}
@media(prefers-reduced-motion:reduce){.site-arrow-down,.site-arrow-up{transition:none}}

/* Image options for Unit animation targets and Enemy attribute filtering only. */
:root .attribute-select>select{display:none!important}
:root .attribute-select-trigger{display:flex;align-items:center;gap:6px;box-sizing:border-box;min-width:155px;min-height:34px;padding:5px 30px 5px 8px;border:1px solid var(--line);border-radius:5px;background:var(--cell);color:#e0e0e0;font:inherit;line-height:22px;text-align:left;white-space:nowrap;cursor:pointer}
.attribute-select-trigger:focus-visible{outline:2px solid #80f0f0;outline-offset:1px}
.attribute-select-trigger:disabled{cursor:default}
:root img.attribute-select-image{display:block;flex:none;width:22px;height:22px;min-width:22px;max-width:22px;max-height:22px;zoom:1;object-fit:contain}
.attribute-select-popup{position:fixed;z-index:11000;box-sizing:border-box;width:max-content;max-width:calc(100vw - 16px);overflow:auto;padding:4px;background:var(--heading);border:1px solid var(--line);border-radius:6px;box-shadow:var(--shadow);color:#e0e0e0;font-size:13px}
.attribute-select-popup[hidden]{display:none!important}
.attribute-select-option{display:flex;align-items:center;gap:6px;min-height:28px;padding:3px 8px;white-space:nowrap;cursor:pointer;border-radius:3px}
.attribute-select-option:is(:hover,.is-active){background:var(--cell)}
.attribute-select-option[aria-selected="true"]{box-shadow:inset 2px 0 #f0c030}
.attribute-select-option[aria-disabled="true"]{opacity:.5;cursor:default}
.attribute-select.is-attribute-open>.site-select-icon .site-arrow-down{opacity:0}
.attribute-select.is-attribute-open>.site-select-icon .site-arrow-up{opacity:1}

/* Keep animation targets scrollable without a native scrollbar. */
.animation-target-popup{scrollbar-width:none}
.animation-target-popup::-webkit-scrollbar{display:none}

/* Shared catalog and schedule headings, controls and tabs. */
.catalog-page .header-inner,.catalog-page .topnav,.catalog-page .workspace{width:var(--page-width);max-width:none}
.catalog-page a{text-decoration:none;color:inherit}
.catalog-page a:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:3px;color:inherit}
/* Every page title uses the same two surfaces as the Unit index. */
.unit-list-card.unit-list-title-card,header.catalog-title{
  margin:0 0 var(--section-gap);border:1px solid var(--line);border-radius:var(--page-title-radius);
  background:var(--card);box-shadow:var(--shadow)
}
.unit-list-card.unit-list-title-card{overflow:hidden}
.unit-list-title-card>.unit-list-heading{
  box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;gap:16px;
  min-height:var(--page-title-height);margin:0;padding:0 var(--page-title-inset);
  border-radius:var(--page-title-radius);background:var(--heading)
}
.catalog-title>.unit-list-heading{justify-content:flex-start}
/* Older, cached catalog detail pages contain just the header. */
header.catalog-title{min-height:calc(var(--page-title-height) + 2px);display:flex;align-items:center;gap:16px;padding:0 var(--page-title-inset);position:relative;z-index:3}
header.catalog-title::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--heading);border-radius:var(--page-title-radius);clip-path:inset(0 round calc(var(--page-title-radius) - 1px))}
:is(.unit-list-heading,.catalog-title)>h1{margin:0;font-size:20px;font-weight:500}
.catalog-title h1{white-space:nowrap}
.unit-list-heading>span,.unit-list-heading>[data-favorite-count],.catalog-total{color:var(--factor);white-space:nowrap}
.catalog-total:last-child{margin-inline-start:auto}
.catalog-card{border:1px solid var(--line);border-radius:8px;background:var(--cell);box-shadow:var(--shadow);overflow:hidden;margin-bottom:var(--section-gap)}
.catalog-page button,.catalog-page input,.catalog-page select{font:inherit;color:var(--text);border:1px solid var(--line);border-radius:5px;background:var(--heading-2);padding:5px 10px}
.catalog-page button{cursor:pointer}.catalog-page button:disabled{cursor:default;opacity:.45}.catalog-page input[type=search]{width:230px;max-width:100%}.catalog-page input[type=number]{width:120px;text-align:right}.catalog-page select{max-width:290px}
.catalog-page :is(button,input,select,a):focus-visible{outline:2px solid var(--text-cyan);outline-offset:2px}
.catalog-subline{display:block;margin-top:3px;line-height:1.6}.catalog-note{font-size:13px;margin:0 0 var(--section-gap);line-height:1.8}
.catalog-tabs{--choice:0;position:relative;isolation:isolate;display:grid;grid-template-columns:repeat(4,1fr);flex:none;margin-inline-start:auto;box-sizing:border-box;height:32px;padding:3px;border:1px solid var(--line);border-radius:5px;background:var(--header);white-space:nowrap}
.catalog-tabs::before{content:"";position:absolute;z-index:-1;pointer-events:none;inset-block:3px;left:3px;width:calc((100% - 6px)/4);border-radius:2px;background:var(--heading-2);box-shadow:inset 0 0 0 1px var(--factor);transform:translateX(calc(var(--choice)*100%));transition:transform .22s ease-out}
.catalog-tabs:has(>button:nth-child(2)[aria-pressed=true]){--choice:1}
.catalog-tabs:has(>button:nth-child(3)[aria-pressed=true]){--choice:2}
.catalog-tabs:has(>button:nth-child(4)[aria-pressed=true]){--choice:3}
.catalog-tabs>button{min-width:0;padding:0 12px;border:0;border-radius:2px;background:none;color:var(--text);font:inherit;font-size:14px;font-weight:400;line-height:1.2;cursor:pointer}
.catalog-tabs>button[aria-pressed=true]{color:var(--text-orange-light)}
.catalog-tabs>button[aria-pressed=false]:hover{color:white}
.catalog-tabs>button:focus-visible{outline:2px solid var(--text-cyan-light);outline-offset:2px}
@media(prefers-reduced-motion:reduce){.catalog-tabs::before{transition:none}}
.catalog-page [hidden]{display:none!important}
