.catalog-effect-name{color:var(--text-orange-light)}

/* Catalogs share the existing site's palette, 50px headings and disclosure motion. */
.catalog-filter>summary{min-height:50px;box-sizing:border-box;display:flex;align-items:center;gap:18px;padding:10px 18px;cursor:pointer;list-style:none;background:var(--heading-2);color:var(--text-white)}
.catalog-filter-label{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.catalog-filter>summary>[data-result-count]{color:var(--factor);font-size:12px;white-space:nowrap}
.catalog-filter>summary:focus-visible{outline:2px solid var(--text-cyan-light);outline-offset:-2px}
.catalog-filter>summary::-webkit-details-marker{display:none}.catalog-filter .site-select-icon{margin-left:auto}
.catalog-search-mark{display:block;width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.catalog-filter-body{display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;padding:14px 18px;background:var(--heading-2)}
.catalog-filter-field{display:flex;align-items:center;gap:8px;font-size:inherit;white-space:nowrap}
.catalog-filter-body :is(input,select){padding:8px 12px;background:var(--cell);color:var(--text-white)}
.catalog-filter-body input::placeholder{color:var(--text-white)}
.catalog-filter-body button{padding:8px 14px;background:var(--heading)}
.catalog-filter>summary>button{height:28px;padding:0 12px;background:var(--heading);white-space:nowrap}
.catalog-table-scroll{overflow-x:auto}.catalog-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;table-layout:auto}
.catalog-table th,.catalog-table td{box-sizing:border-box;height:var(--row-height,50px);padding:1px 12px;border:0;vertical-align:middle;text-align:left;color:var(--text);background:none}
.catalog-table th{background:var(--heading);font-weight:400;white-space:nowrap}.catalog-table tbody tr{background:var(--heading-2)}.catalog-table tbody tr.is-even{background:var(--cell)}
.catalog-table tbody tr:hover{box-shadow:inset 3px 0 var(--factor)}
.catalog-table th.catalog-number,.catalog-table td.catalog-number{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.catalog-page[data-catalog="mission"] .catalog-table td:nth-child(2){white-space:nowrap}
.catalog-page[data-catalog=userrank] .catalog-number{width:1%}
.catalog-page[data-catalog=userrank] td.catalog-number{text-align:left}
.catalog-page[data-catalog=userrank] th.catalog-number>button{margin-inline-start:auto}
.catalog-table strong{font-weight:500}.catalog-table th button{position:relative;border:0;border-radius:0;background:none;color:inherit;padding:0;white-space:nowrap;font-weight:inherit}
/* Match the Unit/Enemy list's first-character triangles and translucent sorted column. */
.catalog-table th button{isolation:isolate;display:inline-flex;align-items:center;font:inherit}
.catalog-table th button:not(:disabled):is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.15em}
.catalog-table th button:disabled{opacity:1;cursor:default;text-decoration:none;color:#e0e0e0}
.catalog-table th button::before,.catalog-table th button::after{content:'';position:absolute;left:0;top:50%;width:.85em;height:1.5em;transform:translateY(-50%);pointer-events:none}
.catalog-table th button::before{z-index:-2;background:#e0e0e0;opacity:.2;clip-path:polygon(0 0,100% 0,50% 50%,100% 100%,0 100%)}
.catalog-table th button::after{z-index:-1;opacity:.25;visibility:hidden}
.catalog-table:not([data-sort-default]) th[aria-sort=ascending]>button::after{visibility:visible;background:#30c0f0;clip-path:polygon(0 0,0 100%,100% 100%)}
.catalog-table:not([data-sort-default]) th[aria-sort=descending]>button::after{visibility:visible;background:#f0c030;clip-path:polygon(0 0,100% 0,0 100%)}
.catalog-table:not([data-sort-default]) th[aria-sort]>button::before{opacity:.1}
.catalog-table th[aria-sort=ascending]>button{color:#30c0f0}
.catalog-table th[aria-sort=descending]>button{color:#f0c030}
.catalog-table[data-sort-default] th[aria-sort]>button{color:#e0e0e0}
.catalog-table .is-sorted{background-image:linear-gradient(#00000014,#00000014)}
.catalog-table th>button:disabled::before,.catalog-table th>button:disabled::after{visibility:hidden}
.catalog-sort-mark{display:none}
.catalog-members{display:flex;gap:4px;align-items:center;min-width:max-content}.catalog-member{display:inline-flex;align-items:center}
:root .catalog-page .catalog-mini{display:block;width:auto;height:auto;max-width:none;max-height:none;object-fit:contain;zoom:.5}
.catalog-item{display:inline-flex;gap:9px;align-items:center}:root .catalog-page .catalog-item-image{width:90px;height:34.2px;min-width:90px;min-height:34.2px;flex-shrink:0;max-width:none;max-height:none;object-fit:contain;zoom:1}
.catalog-rewards{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}.catalog-unlock{line-height:1.8}.catalog-area-items{display:flex;flex-wrap:wrap;gap:4px;min-width:280px;max-width:480px}
.catalog-empty{padding:22px;margin:0}.catalog-pagination{display:flex;align-items:center;justify-content:flex-end;gap:16px;min-height:42px;margin-top:14px}.catalog-pagination button{padding:7px 12px}
.catalog-time-menu{margin-left:auto;position:relative}.catalog-time-menu>summary{list-style:none;font-size:22px;cursor:pointer}.catalog-time-menu>summary>.site-select-icon{display:none}.catalog-time-menu>div{position:absolute;right:0;top:34px;min-width:180px;display:flex;flex-direction:column;gap:8px;background:var(--heading);padding:12px;border-radius:6px;box-shadow:var(--shadow)}
.catalog-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.catalog-page:is([data-catalog=combo],[data-catalog=login]) .catalog-table :is(th,td):not(.catalog-fill){width:1%;white-space:nowrap}
.catalog-page:is([data-catalog=combo],[data-catalog=login]) .catalog-table .catalog-fill{width:auto;padding:0}
.gamatoto-settings{display:flex;flex-direction:column;justify-content:center;box-sizing:border-box;min-height:50px;padding:7px 18px;background:var(--heading-2)}
.gamatoto-settings-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px}
.gamatoto-settings label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.catalog-page .gamatoto-settings input[type=number]{width:5ch;box-sizing:content-box}
.gamatoto-settings-row>span{white-space:nowrap}
.gamatoto-member-settings{padding:0;border:0;background:transparent;box-shadow:none}
.gamatoto-member-settings-table{width:100%;border-collapse:separate;border-spacing:0;border-radius:6px;overflow:hidden;text-align:left}
.gamatoto-member-settings-table th,.gamatoto-member-settings-table td{box-sizing:border-box;height:50px;padding:0 12px;border:0;text-align:left;vertical-align:middle}
.gamatoto-member-settings-table th{background:var(--heading);border-bottom:1px solid var(--line);font-weight:400}
.gamatoto-member-settings-table :is(th,td):nth-child(-n+3){width:1%;white-space:nowrap}
.gamatoto-member-settings-table tbody tr:nth-child(odd){background:var(--heading-2)}
.gamatoto-member-settings-table tbody tr:nth-child(even){background:var(--cell)}
.catalog-page[data-catalog=gamatoto] .gamatoto-member-image{display:block;width:auto;height:34.2px;max-width:90px;object-fit:contain}
.gamatoto-area-condition{text-align:right}
.gamatoto-item-rates{display:grid;gap:0;min-width:330px}
.gamatoto-item-rate{display:grid;box-sizing:border-box;min-height:var(--row-height,50px);grid-template-columns:90px minmax(10em,1fr) 8em;gap:9px;align-items:center}
.gamatoto-rate{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

.catalog-table th.catalog-no{text-align:left}
.catalog-table tr:has(.catalog-unlock br:nth-of-type(2))>td{height:calc(var(--row-height,50px)*1.5)}

.catalog-login-message { display:inline-block; white-space:pre; min-width:220px; line-height:1.6; }
/* Item master and acquisition sources use the same 50px list rows as catalogs. */
.item-overview{display:flex;gap:20px;padding:18px;align-items:flex-start}
.item-overview-image{flex:0 0 var(--card-icon-width,90px);display:flex;justify-content:center;padding-top:8px}
.item-detail-image{width:64px;height:64px;object-fit:contain}
.item-menu-links > a{gap:6px}
.item-menu-links .item-detail-image{display:block;width:22px;height:22px;flex:0 0 22px}
.item-overview dl{display:grid;grid-template-columns:max-content minmax(0,1fr);column-gap:12px;margin:0;flex:1;min-width:0}
.item-overview dl>div{display:grid;grid-column:1/-1;grid-template-columns:subgrid;padding:8px 0}
.item-overview dt,.item-overview dd{margin:0;line-height:1.7}
.item-stage-number{margin:0 .5em;font-variant-numeric:tabular-nums}
.catalog-page[data-catalog=item] .sidebar{max-height:none;overflow:visible}
.catalog-page[data-catalog=item] .catalog-table td{line-height:1.5}
.catalog-page[data-catalog=item] .catalog-table td:nth-child(2){min-width:180px}

.catalog-page[data-catalog=item] .catalog-item{white-space:nowrap}

/* Item lists pack columns to the left, keeping a full-width zebra background. */
.catalog-page[data-catalog=item] .catalog-table :is(th,td){text-align:left;white-space:nowrap}
.catalog-page[data-catalog=item] .catalog-table :is(th,td):not(:last-child){width:1%}
.catalog-page[data-catalog=item] .catalog-table .catalog-fill{width:auto;padding:0}
.catalog-page[data-catalog=item] .catalog-note{box-shadow:var(--shadow)}
.item-source-switch{display:flex;align-items:center;gap:16px;padding:12px 18px;background:var(--heading-2);min-height:50px;box-sizing:border-box}
.item-source-switch>span{white-space:nowrap}
.item-source-buttons{display:flex;flex-wrap:wrap;gap:8px}
.item-source-buttons button{padding:7px 12px;background:var(--cell)}
.item-source-buttons button[aria-pressed=true]{background:var(--heading);color:var(--text-orange-light)}

/* Linked artwork retains the original grid row height (no inline baseline gap). */
.gamatoto-item-rate > a:first-child{display:flex;align-items:center}

.catalog-page[data-catalog=gamatoto] .catalog-table :is(th,td){text-align:left}
.catalog-page[data-catalog=gamatoto] .catalog-table:not(.gamatoto-area-table) :is(th,td):not(.catalog-fill){width:1%;white-space:nowrap}
.catalog-page[data-catalog=gamatoto] .catalog-table .catalog-fill{width:auto;padding:0}

/* Map-style exploration cards; shared filters operate on the outer rows. */
.gamatoto-area-results .catalog-table-scroll{overflow:visible}
.catalog-page[data-catalog=gamatoto] .gamatoto-area-table{display:block;min-width:0}
.gamatoto-area-table>tbody{display:grid;gap:var(--section-gap)}
.catalog-page[data-catalog=gamatoto] .gamatoto-area-table>tbody>tr{display:grid;grid-template-columns:316px minmax(0,1fr);align-items:start;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:var(--card);box-shadow:var(--shadow)}
.catalog-page[data-catalog=gamatoto] .gamatoto-area-table>tbody>tr>td{width:auto;height:auto;min-width:0;white-space:normal;padding:0;background:none}
.gamatoto-area-table>tbody>tr>td:first-child{grid-column:1/-1}
.gamatoto-card-heading{display:flex;align-items:center;gap:18px;box-sizing:border-box;min-height:50px;padding:0 18px;background:var(--heading);border-bottom:1px solid var(--line);font-size:16px;font-weight:500}
.gamatoto-area-number{flex:none;font-variant-numeric:tabular-nums}
.gamatoto-summary{display:flex;flex-direction:column;gap:10px;min-width:0;margin:18px}
.gamatoto-map-frame{padding:5px;border-radius:6px;background:var(--heading-2);overflow:hidden}
:root .catalog-page .gamatoto-map-image{display:block;width:100%;height:auto;max-width:100%;max-height:none;object-fit:contain;zoom:1;mask-image:linear-gradient(to right,transparent,#000 5px,#000 calc(100% - 5px),transparent),linear-gradient(to bottom,transparent,#000 5px,#000 calc(100% - 5px),transparent);mask-composite:intersect}
.gamatoto-area-stats{margin:0;overflow:hidden;border:1px solid var(--line);border-radius:6px;background:var(--cell)}
.gamatoto-area-stats>div{display:grid;grid-template-columns:110px minmax(0,1fr);min-height:50px;border-bottom:1px solid var(--line)}
.gamatoto-area-stats>div:last-child{border-bottom:0}
.gamatoto-area-stats dt,.gamatoto-area-stats dd{margin:0;padding:14px 12px;line-height:22px}
.gamatoto-area-stats dt{background:var(--heading-2)}
.gamatoto-area-stats dd{text-align:right;overflow-wrap:anywhere}
.gamatoto-area-condition>span{display:block}
.gamatoto-area-condition a{white-space:nowrap}
.gamatoto-rewards{margin:18px 18px 18px 0;overflow:auto;border:1px solid var(--line);border-radius:6px;background:var(--cell)}
.gamatoto-reward-heading,.gamatoto-area-table .gamatoto-item-rate{display:grid;grid-template-columns:90px 12em 12em minmax(31em,1fr);gap:9px;align-items:center;box-sizing:border-box;min-height:50px;padding:0 12px;text-align:left;min-width:850px}
.gamatoto-reward-heading{background:var(--heading);border-bottom:1px solid var(--line)}
.gamatoto-reward-heading>span:first-child{grid-column:1/3}
.gamatoto-area-table .gamatoto-item-rates{min-width:0;padding:0}
.gamatoto-area-table .gamatoto-item-rate:nth-child(odd){background:var(--heading-2)}
.gamatoto-area-table .gamatoto-item-rate:nth-child(even){background:var(--cell)}
.gamatoto-area-table .gamatoto-rate,.gamatoto-reward-heading .gamatoto-rate-heading{text-align:left}
.gamatoto-rate-heading{line-height:1.2}
.gamatoto-reward-note{font-size:13px;line-height:20px;white-space:nowrap}
.gamatoto-area-results .catalog-empty{background:var(--heading-2);border-radius:8px}

.gamatoto-member-total{display:inline-block;width:2ch;text-align:right;font-variant-numeric:tabular-nums}
.catalog-page .gamatoto-area-condition>span{display:block}
.gamatoto-extra-effects{padding:0;overflow:hidden}
.gamatoto-extra-effects>summary{display:flex;align-items:center;min-height:50px;padding:0 12px;cursor:pointer;background:var(--heading)}
.gamatoto-extra-effects-body{padding:0;line-height:1.8}
.gamatoto-extra-effects-body p{margin:0;padding:10px 12px}
.gamatoto-extra-effects-body table{width:100%;border-collapse:collapse;text-align:left}
.gamatoto-extra-effects-body th,.gamatoto-extra-effects-body td{height:50px;padding:8px 12px;text-align:left}
.gamatoto-extra-effects-body thead{background:var(--zebra-2-header)}
.gamatoto-extra-effects-body tbody tr:nth-child(odd){background:var(--zebra-2-odd)}
.gamatoto-extra-effects-body tbody tr:nth-child(even){background:var(--zebra-2-even)}

.gamatoto-companion-label{display:flex;align-items:center;gap:10px;white-space:nowrap}
.gamatoto-companion-slot{display:inline-flex;align-items:center;justify-content:center;width:var(--card-icon-width,90px);height:var(--card-icon-height,34.2px);flex-shrink:0}
.gamatoto-companion-image{display:block;width:100%;height:100%;object-fit:contain}
.gamatoto-extra-effects-body tbody td{padding-block:7px}

.gamatoto-extra-effects>summary{border-bottom:1px solid var(--line)}
.gamatoto-extra-table th{font-weight:normal;border-bottom:1px solid var(--line)}
.gamatoto-extra-table :is(th,td):not(.gamatoto-extra-fill){width:1px;white-space:nowrap}
.gamatoto-extra-table .gamatoto-extra-fill{width:auto;padding:0}
