.page-shell.catalog-page {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    padding-top: 42px;
    padding-bottom: 96px;
}

.catalog-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.catalog-heading h1 {
    margin-top: 6px;
    font-size: clamp(25px, 3vw, 36px);
    letter-spacing: -.04em;
}

.catalog-heading p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
}

.catalog-updated {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 10px;
    font-variant-numeric: tabular-nums;
}

.catalog-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.catalog-tab {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--muted);
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.catalog-tab:hover {
    border-color: var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
}

.catalog-tab strong {
    color: var(--text);
    font-size: 14px;
}

.catalog-tab small {
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-tab.active {
    border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
    background: var(--blue-soft);
    color: var(--blue);
}

.catalog-tab.active strong {
    color: var(--blue);
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 10px;
    scroll-margin-top: 90px;
}

.catalog-filter-form {
    display: flex;
    min-width: 0;
    flex: 1;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.catalog-search {
    display: flex;
    width: 360px;
    min-width: 360px;
    flex: 0 0 360px;
    align-items: center;
    gap: 7px;
}

.catalog-search input {
    min-width: 0;
    width: 100%;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    font-size: 12px;
}

.catalog-select {
    position: relative;
    display: block;
    min-width: 0;
    flex: 0 1 154px;
}

.catalog-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.catalog-select-trigger {
    display: flex;
    width: 100%;
    min-height: 36px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    color: var(--text);
    font: 11px var(--body-font);
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.catalog-select-trigger:hover:not(:disabled),
.catalog-select.is-open .catalog-select-trigger {
    border-color: color-mix(in srgb, var(--blue) 52%, var(--line));
    background: var(--blue-soft);
}

.catalog-select-trigger:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.catalog-select-trigger:disabled {
    cursor: wait;
    opacity: .62;
}

.catalog-select-trigger > span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-select-chevron {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 15px;
    line-height: .8;
    transform: translateY(-1px);
    transition: transform .18s ease;
}

.catalog-select.is-open .catalog-select-chevron {
    transform: rotate(180deg) translateY(1px);
}

.catalog-select-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 260px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: var(--floating-shadow);
}

.catalog-select-option {
    display: flex;
    width: 100%;
    min-height: 30px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font: 11px var(--body-font);
    text-align: left;
    cursor: pointer;
}

.catalog-select-option:hover,
.catalog-select-option.active {
    background: var(--blue-soft);
    color: var(--blue);
}

.catalog-select-option.active::after {
    color: var(--blue);
    content: "✓";
    font-size: 12px;
}

.catalog-count {
    flex: 0 0 auto;
    color: var(--muted);
    font: 11px var(--mono);
}

.catalog-grid {
    display: grid;
    gap: 14px;
}

.catalog-agent-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weapon-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.catalog-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.catalog-card:hover {
    border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
    background: var(--surface-raised);
}

.catalog-card-body {
    display: block;
    min-width: 0;
    padding: 14px;
}

.catalog-card-title {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.catalog-card-title h2,
.catalog-card-title > strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-card-title > img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.catalog-card-body p {
    display: -webkit-box;
    margin-top: 7px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.agent-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 112px;
    padding: 18px 16px;
    text-align: left;
}

.agent-avatar {
    display: grid;
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--blue-soft);
    place-items: center;
}

.agent-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-card-info {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.agent-card-info strong {
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-role {
    color: var(--muted);
    font-size: 11px;
}

.agent-card-arrow {
    position: absolute;
    top: 9px;
    right: 10px;
    color: var(--muted);
    font-size: 12px;
}

.agent-card:hover .agent-card-arrow {
    color: var(--blue);
}

.catalog-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent);
    border-radius: 999px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 10px;
    font-weight: 650;
}

.weapon-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: 0;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.weapon-visual {
    display: grid;
    height: 104px;
    flex: 0 0 104px;
    place-items: center;
    padding: 12px 16px;
    background: linear-gradient(145deg, var(--subtle), var(--surface));
}

.weapon-visual img {
    width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .12));
}

.catalog-pill {
    flex: 0 0 auto;
    padding: 3px 7px;
    white-space: nowrap;
}

.weapon-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 12px;
}

.weapon-metrics span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 1px;
    padding: 7px 6px;
    border-radius: 8px;
    background: var(--subtle);
}

button.catalog-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.weapon-metrics small {
    color: var(--muted);
    font-size: 9px;
}

.weapon-metrics strong {
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.weapon-detail-image {
    display: grid;
    min-height: 112px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--subtle), var(--surface));
    place-items: center;
}

.weapon-detail-image img {
    width: 100%;
    max-height: 100px;
    object-fit: contain;
}

.weapon-detail-overview {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
}

.weapon-detail-overview .catalog-pill {
    margin-top: 0;
}

.detail-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
}

.detail-metric {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
    padding: 7px 8px;
    border-radius: 8px;
    background: var(--subtle);
    overflow-wrap: anywhere;
}

.detail-metric small {
    color: var(--muted);
    font-size: 9px;
}

.detail-metric strong {
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.weapon-detail-section {
    margin-top: 18px;
}

.weapon-detail-section h3 {
    margin-bottom: 7px;
    font-size: 13px;
}

.weapon-detail-section h4 {
    margin: 10px 0 4px;
    font-size: 11px;
}

.weapon-detail-section p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.65;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.weapon-damage-scroll {
    overflow-x: auto;
}

.weapon-damage-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.weapon-damage-table th,
.weapon-damage-table td {
    padding: 7px 9px;
    border-bottom: 1px solid var(--line);
}

.weapon-damage-table th {
    background: var(--subtle);
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
}

.weapon-damage-table th:first-child,
.weapon-damage-table td:first-child {
    text-align: left;
}

.detail-skin-link {
    margin-top: 20px;
}

.skin-visual {
    position: relative;
    display: grid;
    height: 150px;
    place-items: center;
    overflow: hidden;
    background-color: var(--subtle);
    background-position: center;
    background-size: cover;
}

.skin-visual::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 15, 24, .02), rgba(10, 15, 24, .32));
    content: "";
}

.skin-visual img {
    position: relative;
    z-index: 1;
    width: 94%;
    max-height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 8px 9px rgba(0, 0, 0, .2));
}

.skin-card .catalog-card-body {
    display: block;
    padding: 11px 12px 13px;
}

.skin-card .catalog-card-title > strong,
.catalog-card-title > strong {
    font-size: 12px;
}

.catalog-tier {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 9px;
}

.skin-card-subtitle,
.skin-card-hint {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skin-card-subtitle {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
}

.skin-card-hint {
    margin-top: 8px;
    color: var(--blue);
    font-size: 9px;
    opacity: .78;
}

.skin-card {
    display: block;
    width: 100%;
    padding: 0;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.skin-card:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.skin-detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.skin-detail-preview {
    position: relative;
    display: grid;
    min-height: 210px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: linear-gradient(145deg, var(--subtle), var(--surface));
    place-items: center;
}

.skin-detail-preview::before {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 64%);
    content: "";
}

.skin-detail-preview img {
    position: relative;
    z-index: 1;
    width: 92%;
    max-height: 190px;
    object-fit: contain;
    filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .2));
}

.skin-preview-note {
    position: absolute;
    right: 10px;
    bottom: 9px;
    left: 10px;
    z-index: 2;
    padding: 5px 7px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--surface) 86%, transparent);
    color: var(--muted);
    font-size: 9px;
    text-align: center;
}

.skin-detail-info {
    min-width: 0;
}

.skin-detail-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}

.skin-detail-description {
    margin-top: 8px;
    color: var(--muted);
    font-size: 10px;
}

.skin-detail-section {
    margin-top: 17px;
}

.skin-detail-section h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 12px;
}

.skin-level-options,
.skin-chroma-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 7px;
}

.skin-level-option,
.skin-chroma-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--subtle);
    color: var(--muted);
    font-size: 9px;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.skin-level-option:hover,
.skin-level-option.active,
.skin-chroma-option:hover,
.skin-chroma-option.active {
    border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
    background: var(--blue-soft);
    color: var(--blue);
}

.skin-level-option:focus-visible,
.skin-chroma-option:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.skin-level-thumb,
.skin-chroma-swatch {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 24px;
    overflow: hidden;
    border-radius: 5px;
    background: var(--surface);
    place-items: center;
}

.skin-level-thumb img,
.skin-chroma-swatch img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skin-level-placeholder {
    color: var(--muted);
    font: 12px var(--mono);
}

.skin-level-option > span:last-child,
.skin-chroma-option > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.skin-detail-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--muted);
    font-size: 10px;
}

.catalog-empty {
    padding: 55px 20px;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
}

.catalog-empty strong {
    display: block;
    font-size: 16px;
}

.catalog-empty .spinner {
    display: inline-block;
    margin-bottom: 14px;
}

.catalog-results {
    min-height: 240px;
}

.catalog-empty p {
    margin: 8px 0 16px;
    color: var(--muted);
    font-size: 11px;
}

.catalog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    color: var(--muted);
    font-size: 11px;
}

body.catalog-dialog-open {
    overflow: hidden;
}

.catalog-detail-dialog {
    width: min(720px, calc(100% - 40px));
    max-width: none;
    max-height: min(800px, calc(100vh - 64px));
    max-height: min(800px, calc(100dvh - 64px));
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--floating-shadow);
}

.catalog-detail-dialog[open] {
    display: flex;
    flex-direction: column;
}

.catalog-detail-dialog::backdrop {
    background: rgba(12, 18, 30, .62);
    backdrop-filter: blur(4px);
}

.catalog-dialog-heading {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid var(--line);
}

.catalog-dialog-caption {
    color: var(--muted);
    font-size: 10px;
}

.catalog-dialog-heading h2 {
    margin-top: 3px;
    font-size: 23px;
}

.catalog-dialog-content {
    min-height: 0;
    padding: 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
}

.agent-overview {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.agent-detail-avatar {
    overflow: hidden;
    width: 140px;
    height: 200px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--blue-soft);
}

.agent-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-overview p {
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.agent-overview-copy {
    min-width: 0;
}

.agent-overview-description {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.agent-meta-line {
    display: flex;
    min-width: 0;
    gap: 6px;
    margin-top: 10px;
    overflow: hidden;
}

.agent-meta-line > span {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    align-items: baseline;
    gap: 4px;
    overflow: hidden;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--subtle);
}

.agent-meta-line small {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 9px;
}

.agent-meta-line strong {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-skill-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.agent-skill-tab {
    display: flex;
    min-width: 0;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--subtle);
    color: var(--muted);
    cursor: pointer;
}

.agent-skill-tab > span {
    color: var(--text);
    font: 700 11px var(--mono);
}

.agent-skill-tab small {
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.agent-skill-tab.active {
    border-color: color-mix(in srgb, var(--blue) 60%, var(--line));
    background: var(--blue-soft);
    color: var(--blue);
}

.agent-skill-tab.active > span {
    color: var(--blue);
}

.agent-skill-tab:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

.agent-skill-panel {
    min-height: 0;
    padding: 12px 0 2px;
    border-top: 1px solid var(--line);
}

.agent-skill-panel[hidden] {
    display: none;
}

.agent-skill-panel .agent-ability-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.agent-skill-panel .agent-ability-heading > div {
    min-width: 0;
}

.agent-skill-panel .agent-ability-icon {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    padding: 6px;
}

.agent-skill-panel .agent-ability-heading h4 {
    font-size: 13px;
}

.agent-skill-panel > p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    white-space: pre-line;
}

.agent-skill-panel .agent-skill-guide {
    margin-top: 8px;
    border-left: 2px solid var(--line);
    padding-left: 9px;
}

.agent-skill-video {
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
}

.agent-skill-video video {
    display: block;
    width: 100%;
    max-height: 230px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
}

.agent-skill-extra {
    color: var(--muted);
}

.agent-skill-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 10px;
}

.agent-skill-meta > span {
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--subtle);
    color: var(--muted);
}

.detail-video-link {
    padding: 3px 0;
    color: var(--blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.agent-ability .agent-skill-guide {
    border-left: 2px solid var(--line);
    padding-left: 10px;
}

.agent-abilities {
    margin-top: 24px;
}

.agent-abilities > h3 {
    margin-bottom: 14px;
    font-size: 14px;
}

.agent-ability {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.agent-ability-icon {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 8px;
    border-radius: 10px;
    background: var(--subtle);
    place-items: center;
}

.agent-ability-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-ability-heading {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}

.agent-ability-heading h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.agent-ability-heading small {
    color: var(--blue);
    font-size: 10px;
}

.agent-ability p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.catalog-dialog-footer {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    padding: 12px 24px;
    border-top: 1px solid var(--line);
}

@media (max-width: 1050px) {
    .catalog-agent-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .skin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .page-shell.catalog-page {
        width: auto;
        margin: 0 16px;
        padding-top: 26px;
        padding-bottom: 110px;
    }

    .catalog-heading {
        display: block;
        margin-bottom: 18px;
    }

    .catalog-heading p {
        max-width: 34em;
    }

    .catalog-updated {
        display: block;
        margin-top: 10px;
    }

    .catalog-tabs {
        gap: 5px;
        margin-bottom: 10px;
    }

    .catalog-tab {
        padding: 10px 9px;
        border-radius: 11px;
    }

    .catalog-tab strong {
        font-size: 11px;
    }

    .catalog-tab small {
        display: none;
    }

    .catalog-toolbar {
        display: block;
        margin-bottom: 14px;
        padding: 10px;
    }

    .catalog-filter-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-search {
        width: 100%;
        min-width: 0;
        flex: 1 1 auto;
        grid-column: 1 / -1;
    }

    .catalog-search .button {
        min-height: 36px;
        padding: 7px 12px;
    }

    .catalog-select {
        width: 100%;
        flex-basis: auto;
    }

    .catalog-select-menu {
        max-height: 220px;
    }

    .catalog-count {
        display: block;
        margin-top: 9px;
    }

    .catalog-agent-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .weapon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .skin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .catalog-card-body {
        padding: 10px;
    }

    .agent-card {
        gap: 10px;
        min-height: 92px;
        padding: 14px 10px;
        border-radius: 12px;
    }

    .agent-avatar {
        flex-basis: 50px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .agent-card-info strong {
        font-size: 13px;
    }

    .agent-role {
        font-size: 10px;
    }

    .catalog-card-title h2,
    .catalog-card-title > strong {
        font-size: 12px;
    }

    .catalog-card-body p {
        font-size: 9px;
    }

    .weapon-card {
        min-height: 0;
    }

    .weapon-visual {
        height: 78px;
        flex-basis: 78px;
        padding: 8px;
    }

    .weapon-visual img {
        max-height: 60px;
    }

    .weapon-metrics {
        gap: 4px;
        margin-top: 8px;
    }

    .weapon-metrics span {
        padding: 5px 4px;
    }

    .weapon-metrics small {
        font-size: 8px;
    }

    .weapon-metrics strong {
        font-size: 10px;
    }

    .weapon-detail-overview {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .weapon-detail-image {
        min-height: 96px;
    }

    .skin-visual {
        height: 102px;
    }

    .skin-visual img {
        max-height: 85px;
    }

    .skin-card .catalog-card-title h2 {
        font-size: 10px;
    }

    .skin-card-hint {
        margin-top: 6px;
        font-size: 8px;
    }

    .skin-detail-layout {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .skin-detail-preview {
        min-height: 150px;
    }

    .skin-detail-preview img {
        max-height: 135px;
    }

    .skin-level-options,
    .skin-chroma-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-empty {
        padding: 42px 14px;
    }

    .catalog-detail-dialog {
        width: calc(100% - 24px);
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        border-radius: 12px;
    }

    .catalog-dialog-heading {
        padding: 14px 16px;
    }

    .catalog-dialog-heading h2 {
        font-size: 20px;
    }

    .catalog-dialog-content {
        padding: 16px;
    }

    .agent-overview {
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 12px;
    }

    .agent-detail-avatar {
        width: 72px;
        height: 120px;
        border-radius: 12px;
    }

    .agent-overview p {
        font-size: 12px;
    }

    .detail-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .agent-overview .detail-metrics {
        grid-template-columns: 1fr;
    }

    .agent-meta-line {
        gap: 4px;
    }

    .agent-meta-line > span {
        padding: 5px 6px;
    }

    .agent-meta-line small {
        font-size: 8px;
    }

    .agent-meta-line strong {
        font-size: 9px;
    }

    .agent-skill-tab {
        flex: 0 0 auto;
        padding: 6px 7px;
    }

    .agent-skill-tab small {
        max-width: 72px;
    }

    .detail-metric {
        padding: 8px;
    }

    .weapon-detail-image {
        min-height: 120px;
        padding: 16px;
    }

    .weapon-detail-image img {
        max-height: 100px;
    }

    .weapon-damage-table th,
    .weapon-damage-table td {
        padding: 8px 6px;
    }

    .agent-ability {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 10px;
    }

    .agent-ability-icon {
        width: 36px;
        height: 36px;
        padding: 6px;
    }

    .catalog-dialog-footer {
        padding: 10px 16px;
    }
}

@media (max-width: 360px) {
    .page-shell.catalog-page {
        margin-right: 12px;
        margin-left: 12px;
    }

    .catalog-tabs {
        gap: 4px;
    }

    .catalog-tab {
        padding-right: 6px;
        padding-left: 6px;
    }

    .catalog-tab strong {
        font-size: 10px;
    }

    .agent-card {
        gap: 7px;
        padding-right: 7px;
        padding-left: 7px;
    }

    .agent-avatar {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-card,
    .catalog-tab {
        transition: none;
    }
}
