:root {
    --ui-accent: #74c2e7;
    --ui-action: #28769a;
    --ui-hover: #26364a;
    --ui-radius: 14px;
    --ui-focus: #a0a7b2;
}
[data-theme="light"] {
    --ui-accent: #17678b;
    --ui-action: #216e92;
    --ui-hover: #e6edf5;
    --ui-focus: #626b78;
}
html { scrollbar-gutter: auto; overflow-y: auto; width: 100vw; }
body { color: var(--text-readable); }
body :is(img[data-avatar-src], img[data-avatar-state], .owner-avatar, .ticker-avatar img, .friend-avatar img, .friend-avatar-wrapper img, .friend-item-inline > img) { image-rendering: pixelated; }
body :is(.header, .stats-header, .imager-header, .home-card, .stat-box, .stats-summary, .chart-card, .list-card, .contact-card, .faq-item, .discovery-card, .furni-card, .badge-card, .filters-bar, .hk-card, .hk-kpi) {
    background: var(--surface-readable) !important;
    border: 1px solid var(--border-readable);
    border-radius: var(--ui-radius);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body :is(.header, .stats-header, .imager-header) {
    padding: 22px 26px;
    text-align: left;
}
body :is(.header, .stats-header, .imager-header)::before { display: none; }
html body :is(.header, .stats-header, .imager-header) h1 {
    color: var(--text-readable) !important;
    background: none;
    -webkit-text-fill-color: currentColor;
    text-shadow: none;
    font-size: clamp(24px, 2.1vw, 32px);
    line-height: 1.3;
    animation: none;
}
html body :is(.header, .stats-header, .imager-header) p,
html body :is(.contact-card, .list-card, .chart-card) h2 {
    color: var(--text-supporting);
}
body :is(.activity-item, .leaderboard-row, .top-user-item, .source-panel, .preview-container) {
    background-color: var(--surface-inset);
    border-color: var(--border-readable);
}
html body :is(.custom-select-trigger, .hotel-select-trigger, .search-input, .form-group input, .form-group textarea) {
    color: var(--text-readable);
    background-color: var(--surface-inset);
    border-color: var(--border-readable);
}
body :is(.custom-select-trigger, .hotel-select-trigger, .lang-current, .newest-badges-current) {
    padding-right: 16px;
    user-select: none;
    -webkit-user-select: none;
}
html body :is(.custom-select-options, .hotel-select-dropdown, .lang-dropdown, .newest-badges-dropdown, .settings-panel) {
    color: var(--text-readable);
    background: var(--surface-readable);
    border-color: var(--border-readable);
}
body :is(.badge-modal, .chart-modal, .furni-modal, .modal-content) {
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    color: var(--text-readable);
    background-color: var(--surface-readable);
    border-color: var(--border-readable);
}
body :is(.custom-select-option, .hotel-select-option, .newest-option):hover {
    color: var(--text-readable);
    background: var(--ui-hover);
}
body :is(.new-badge-item, .badge-card, .furni-card, .discovery-card, .faq-item):hover {
    transform: none;
    box-shadow: none;
}
html:not([data-input-modality="pointer"]) body :is(button, a, input, textarea, select, summary, [tabindex], [role="button"]):focus-visible {
    outline: 1px solid var(--ui-focus) !important;
    outline-offset: 3px;
    box-shadow: none !important;
}
html[data-input-modality="pointer"] body :is(button, a, input, textarea, select, summary, [tabindex], [role="button"]):focus {
    outline: none !important;
    box-shadow: none !important;
}
html body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .hotel-select-trigger, .custom-select-trigger, .lang-current, .newest-badges-current, .visual-preset-trigger, .visual-preset-option, .settings-btn, .navbar-toggle):focus {
    border-color: var(--ui-focus) !important;
    box-shadow: none !important;
}
html:not([data-input-modality="pointer"]) body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .hotel-select-trigger, .custom-select-trigger, .lang-current, .newest-badges-current, .visual-preset-trigger, .visual-preset-option, .settings-btn, .navbar-toggle):focus-visible {
    outline: none !important;
}
html body :is(.friends-search-control, .badge-search-control, .collection-toolbar-search, .collection-toolbar-actions, .activity-achievement-toggle, .activity-card):focus-within {
    border-color: var(--ui-focus) !important;
    box-shadow: none !important;
}
html:not([data-input-modality="pointer"]) body .collection-toolbar-actions :is(input, select, button):focus-visible {
    outline: none !important;
}
html:not([data-input-modality="pointer"]) body .collection-toolbar-actions :is(select, button):focus-visible {
    background-color: var(--ui-hover) !important;
}
html:not([data-input-modality="pointer"]) body .switch input:focus-visible { outline: none !important; }
html body .switch input:focus + .slider {
    outline: none;
    box-shadow: none;
}
html:not([data-input-modality="pointer"]) body .switch input:focus-visible + .slider {
    outline: 1px solid var(--ui-focus);
    outline-offset: 3px;
}
html body :is(button, a, summary, label, [role="button"], [tabindex]) { -webkit-tap-highlight-color: transparent; }
body :is(.error, .error-message, .success-message, .warning, .notice, .response-note, .hk-notice) {
    border-left-width: 1px;
    border-left-color: var(--border-readable);
}
body :is(.stat-box .number, .stat-card .number, .top-stat-number, .hk-kpi strong) { font-variant-numeric: tabular-nums; }
body :is(.header, .stats-header, .imager-header, .home-card, .hk-card, .panel) { min-width: 0; }
body .newest-badges-grid { align-content: start; }
body .newest-badges-grid .new-badge-item { cursor: pointer; }
body.index-page .newest-badges-grid img { width: auto; height: auto; max-width: none; max-height: none; object-fit: none; }
body .newest-badges-pagination > span { font-variant-numeric: tabular-nums; }
body .hk-website-summary { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body .hk-website-basis { line-height: 1.6; color: var(--text-supporting); font-size: 13px; }
body .hk-website-basis summary { cursor: pointer; font-weight: 600; }
body .hk-card { padding: 20px; }
body .hk-website-summary > div { background: var(--surface-inset); border-radius: 10px; padding: 16px; }
body .hk-refresh-error { color: var(--hk-bad); }
body .hk-summary-section { margin: 20px 0 10px; font-size: 16px; }
@media (max-width: 600px) {
    html body:not(.index-page) > .container { width: 100%; padding: 16px !important; }
    body :is(.header, .stats-header, .imager-header) { padding: 18px; }
    body .search-input-wrapper { min-width: 0; }
    body .hk-card { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body .faq-item::before { display: none; }
body .faq-question { list-style: none; }
body .faq-question::-webkit-details-marker { display: none; }
body .faq-toggle::after { content: '+'; }
body .faq-item[open] .faq-toggle::after { content: '−'; }
body .faq-answer-content { color: var(--text-supporting); }

[data-settings-popup][popover]:not(:popover-open) { display: none !important; }
body .navbar-menu .dropdown-menu[data-floating-menu] { background: var(--surface-readable); border-color: var(--border-readable); }
@media (max-width: 768px) {
    body .navbar-menu.active { display: flex !important; position: fixed; top: 60px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 84px); overflow-y: auto; padding: 10px; background: var(--surface-readable); border: 1px solid var(--border-readable); border-radius: 12px; z-index: 9999; }
}

body :is(.badges-container, .furni-container, .marketplace-container) > .loading-container { min-height: 60vh; }

body .leaderboard-grid { min-height: calc(100vh - 260px); }

html body.housekeeping-page .hk-head { padding: 18px 20px; background: var(--surface-readable) !important; border: 1px solid var(--border-readable) !important; border-radius: 14px !important; }
html body.housekeeping-page .hk-panels > .panel { padding: 0; background: transparent !important; border: 0; box-shadow: none; }
html body.housekeeping-page .hk-head h1 { color: var(--text-readable); }
html body.housekeeping-page .hk-head #hkSubtitle { color: var(--text-supporting); }

body [data-floating-menu] [role="menuitem"] { display: block; padding: 10px 12px; color: var(--text-readable) !important; user-select: none; }
body [data-floating-menu] [role="menuitem"]:is(:hover, :focus-visible) { background: var(--surface-inset) !important; }

html body.public-blue-page .header h1, html[data-theme="light"] body.public-blue-page .header h1 { color: var(--text-readable) !important; }

html body :is(.activity-hero, .activity-toolbar, .user-list) { background: var(--surface-readable) !important; border: 1px solid var(--border-readable) !important; border-radius: var(--ui-radius); box-shadow: none; backdrop-filter: none; }
html body .activity-hero { padding: 22px 26px; }
html body .activity-hero h1 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.3; color: var(--text-readable); }
html body .activity-hero p { font-size: 16px; color: var(--text-supporting); }
html body .activity-stat { background: var(--surface-inset); border-color: var(--border-readable); }
html body .activity-stat-value { font-size: 26px; }
html body #statLastUpdate.activity-stat-value { font-size: 17px; }
html body :is(.filters input, .filters select, .activity-field select, .activity-search, .activity-achievement-toggle) { background-color: var(--surface-inset); color: var(--text-readable); border-color: var(--border-readable); }
html body .user-list thead { background: var(--surface-inset); }
html body .user-list :is(th, td) { border-color: var(--border-readable); }
html body .user-list th { color: var(--text-supporting); }
html body .stats-summary { background: transparent !important; border: 0; }
html body .stat-box .label { color: var(--text-supporting); }
html body select:not(.native-select) { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2397a9bc' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }

html body .badge-compare-heading { padding: 0 0 20px; text-align: left; background: transparent; border: 0; }
html body .badge-compare-heading h1 { font-size: clamp(24px, 2.1vw, 32px); color: var(--text-readable) !important; }
html body .badge-compare-heading p { color: var(--text-supporting); }
html body :is(.badge-compare-submit, .badge-compare-swap) { box-shadow: none; background: var(--ui-action); border-color: var(--ui-action); }

html body :is(.header, .stats-header, .imager-header) p { text-align: left !important; }

html body .imager-container, html[data-theme] body .imager-container { --im-panel: var(--surface-readable); --im-panel-soft: var(--surface-inset); --im-surface: var(--surface-inset); --im-surface-strong: var(--ui-hover); --im-border: var(--border-readable); --im-border-strong: var(--ui-accent); --im-text: var(--text-readable); --im-muted: var(--text-supporting); --im-faint: var(--text-supporting); --im-accent: var(--ui-accent); --im-accent-ink: var(--surface-readable); }
html body .imager-container :is(.preview-section, .controls-section) { border-radius: var(--ui-radius); backdrop-filter: none; -webkit-backdrop-filter: none; }
html body .imager-header-note { border: 1px solid var(--border-readable); border-radius: 10px; background: var(--surface-inset); }
html body .contact-card li { color: var(--text-supporting) !important; }

body .nav-item.dropdown > .nav-link { user-select: none; -webkit-user-select: none; }

html body .activity-state--loading { min-height: calc(100svh - 240px); }

body.index-page .newest-badges-pagination button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 34px; padding: 6px; color: var(--text-readable); border: 1px solid var(--border-readable); background: var(--surface-inset); border-radius: 8px; }
body.index-page .newest-badges-pagination button svg { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.index-page .newest-badges-pagination button:disabled { opacity: .4; cursor: default; }
body.index-page .newest-badges-pagination button:not(:disabled):hover { border-color: #6db9da; }

body [data-floating-menu] { box-sizing: border-box; overflow-x: hidden !important; overflow-y: auto !important; }
body [data-floating-menu] :is([role="menuitem"], [role="option"]) { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
body [data-floating-menu] [role="menuitem"] { display: flex; align-items: center; gap: 10px; min-height: 44px; border-radius: 6px; }
body .nav-menu-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; }
body .nav-menu-icon img { width: auto; height: auto; max-width: 24px; max-height: 24px; image-rendering: pixelated; }
body .nav-label { min-width: 0; }
body .nav-link .dropdown-arrow { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 6px; transform: none !important; transition: transform 120ms ease; }
body .nav-link .dropdown-arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body .nav-link[aria-expanded="true"] .dropdown-arrow { transform: rotate(180deg) !important; }
@media (prefers-reduced-motion: reduce) { body .nav-link .dropdown-arrow { transition: none; } }

body.index-page .newest-badges-grid { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)) !important; gap: 8px !important; }
body.index-page .newest-badges-grid .new-badge-item { height: auto !important; aspect-ratio: 1; border-radius: 11px; background-color: var(--surface-inset) !important; background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px) !important; background-size: 8px 8px !important; transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease; }
body.index-page .newest-badges-grid .new-badge-item::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #6db9da66; opacity: 0; transition: opacity 120ms ease; pointer-events: none; }
body.index-page .newest-badges-grid .new-badge-item:is(:hover, :focus-visible) { transform: translateY(-2px); border-color: #6db9da99; box-shadow: 0 8px 24px -12px #6db9da88; }
body.index-page .newest-badges-grid .new-badge-item:is(:hover, :focus-visible)::before { opacity: 1; }
[data-theme="light"] body.index-page .newest-badges-grid .new-badge-item { background-image: linear-gradient(#00000005 1px, transparent 1px), linear-gradient(90deg, #00000005 1px, transparent 1px) !important; }
@media (prefers-reduced-motion: reduce) { body.index-page .newest-badges-grid .new-badge-item, body.index-page .newest-badges-grid .new-badge-item::before { transition: none; } }

@media (min-width: 1101px) and (min-height: 760px) { body.index-page .main-layout:not(:has(.profile-result-reveal.is-visible)) .left-top-row > .home-card { min-height: 352px; } }
@media (min-width: 1101px) and (min-height: 951px) { body.index-page .main-layout:not(:has(.profile-result-reveal.is-visible)) .left-top-row > .home-card { min-height: 416px; } }

body.index-page .experimental-badges-reveal { grid-template-rows: minmax(0, 1fr); transform: none; transition: none; }
body.index-page .experimental-badges-reveal.is-visible { opacity: 1; }
body.index-page #result { transition: none; }
body .dropdown-menu[data-floating-menu] li a, body .dropdown-menu[data-floating-menu] li a:hover { padding-inline: 16px !important; transition: background-color 120ms ease, color 120ms ease; }

@media (min-width: 1101px) and (min-height: 760px) { body.index-page .newest-badges-grid { margin-block: auto; } body.index-page .newest-badges-pagination { margin-top: 0; } }

body .navbar-logo { width: 36px; height: 36px; flex: 0 0 36px; }
body .navbar-brand { color: var(--text-readable); transition: color 140ms ease; }
body .navbar-brand:hover { color: var(--ui-accent); transform: none; }

@media (min-width: 1101px) and (min-height: 760px) { body.index-page #newestBadgesSection { contain: size; } }

body.index-page .is-profile-loading { position: relative; min-height: var(--profile-loading-height) !important; overflow: hidden !important; }
body.index-page .profile-loading-overlay { position: absolute; inset: 0; z-index: 30; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 28px; border-radius: inherit; background: var(--surface-readable); color: var(--text-supporting); font-size: 14px; line-height: 1.5; text-align: center; }
body.index-page .profile-loading-spinner { width: 30px; height: 30px; border: 3px solid var(--border-readable); border-top-color: var(--ui-accent); border-radius: 50%; animation: profile-loading-spin 800ms linear infinite; }
body.index-page .is-profile-loading > .profile-buttons { z-index: 31; }
@keyframes profile-loading-spin { to { transform: rotate(360deg); } }
@media (min-width: 1101px) and (min-height: 760px) { body.index-page .is-profile-loading { min-height: 0 !important; } }
@media (prefers-reduced-motion: reduce) { body.index-page .profile-loading-spinner { animation: none; } }

body.index-page .badge-module-card { container-type: inline-size; padding: 18px !important; }
body.index-page .badge-module-header { flex: 0 0 auto; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-color: var(--border-readable); }
body.index-page .badge-module-close { flex: 0 0 32px; width: 32px; height: 32px; padding: 0; border: 1px solid var(--border-readable); border-radius: 8px; color: var(--text-readable); background: var(--surface-inset); font-size: 24px; }
body.index-page .badge-module-body { display: grid; grid-template-columns: minmax(180px, .85fr) minmax(0, 1.65fr); gap: 20px; min-height: 0; align-items: stretch; }
body.index-page .badge-module-info { width: auto; min-width: 0; max-width: none; justify-content: flex-start; gap: 12px; align-items: stretch; }
body.index-page .badge-found-header { margin: 0; text-align: left; }
body.index-page .badge-found-title { font-size: 16px; line-height: 1.4; }
body.index-page .badge-found-subtitle { color: var(--text-supporting); font-size: 12px; line-height: 1.5; }
body.index-page .badge-found-box { width: 100%; max-width: none; margin: 0; padding: 14px; border: 1px solid var(--border-readable); border-radius: 10px; }
body.index-page .badge-found-content { justify-content: flex-start; align-items: center; gap: 12px; }
body.index-page #moduleBadgeImage { flex: 0 0 auto; width: auto; height: auto; max-width: 46px; max-height: 46px; image-rendering: pixelated; }
body.index-page .badge-found-text { min-width: 0; overflow-wrap: anywhere; }
body.index-page .badge-found-name { color: var(--text-readable); font-size: 15px; line-height: 1.4; }
body.index-page .badge-found-desc, body.index-page .badge-found-rarity { color: var(--text-supporting); font-size: 12px; line-height: 1.5; }
body.index-page .badge-found-date { font-size: 12px; line-height: 1.5; }
body.index-page .badge-module-right, body.index-page .badge-module-owners { min-width: 0; min-height: 0; }
body.index-page .badge-module-owners .owners-flags-row { flex: 0 0 auto; justify-content: flex-start; margin-bottom: 12px; }
body.index-page .badge-module-owners .modal-flags { flex-wrap: wrap; justify-content: flex-start; gap: 5px; margin: 0; padding: 0; }
body.index-page .badge-module-owners .owners-header { flex: 0 0 auto; min-height: 28px; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border-readable); }
body.index-page .badge-module-owners .owners-title-group { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
body.index-page .badge-module-owners .owners-title { color: var(--text-readable); font-size: 13px; font-weight: 600; }
body.index-page .badge-module-owners .owners-count { color: var(--text-readable); background: var(--surface-inset); border: 1px solid var(--border-readable); font-size: 12px; }
body.index-page .badge-module-owners .owners-list { flex: 1 1 auto; min-height: 0; height: 240px; max-height: 320px; padding-right: 4px; scrollbar-width: thin; overscroll-behavior: contain; }
body.index-page .badge-module-owners .owner-item { min-height: 44px; padding: 6px 10px; border: 1px solid var(--border-readable); border-radius: 8px; background: var(--surface-inset); }
body.index-page .badge-module-owners .owner-item .name { font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
body.index-page .badge-module-owners .owner-item .date { color: var(--text-supporting) !important; font-size: 12px; white-space: nowrap; }
body.index-page .badge-module-reveal.is-transitioning { overflow: hidden; }
@container (max-width: 390px) {
    body.index-page .badge-module-body { display: flex; flex-direction: column; overflow-y: auto; }
    body.index-page .badge-module-info { flex: 0 0 auto; overflow: visible !important; }
    body.index-page .badge-module-right { flex: 0 0 220px; }
}
@media (min-width: 1101px) and (min-height: 760px) {
    body.index-page .main-layout.experimental-profile-layout { position: relative; }
    body.index-page .main-layout.experimental-profile-layout:has(.badge-module-reveal.is-closing) { grid-template-areas: "search collection profile" "newest collection profile"; }
    body.index-page .main-layout.experimental-profile-layout .badge-module-card { display: flex !important; flex-direction: column; overflow: visible !important; }
    body.index-page .main-layout.experimental-profile-layout .badge-module-body { flex: 1 1 auto; }
    body.index-page .main-layout.experimental-profile-layout .badge-module-info { min-height: 0; overflow-y: auto; scrollbar-width: thin; }
    body.index-page .main-layout.experimental-profile-layout .badge-module-owners .owners-list { height: 0; max-height: none; }
}

body .owners-help-tooltip { display: none !important; }

body .owners-help-floating { position: fixed; inset: auto; z-index: 10000; width: 280px; max-width: calc(100vw - 24px); margin: 0; padding: 11px 13px; box-sizing: border-box; border: 1px solid var(--border-readable); border-radius: 8px; background: var(--surface-inset); color: var(--text-readable); font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.5; text-align: left; white-space: normal; overflow-wrap: anywhere; overflow: auto; opacity: 0; pointer-events: none; transition: opacity 120ms ease; box-shadow: 0 6px 20px #0003; }
body .owners-help-floating.is-visible { opacity: 1; pointer-events: auto; }
body .owners-help-floating[hidden] { display: none !important; }
body .owners-help-floating::backdrop { background: transparent; }
@media (prefers-reduced-motion: reduce) { body .owners-help-floating { transition: none; } }

body.index-page #result.show { display: flex; flex-direction: column; padding-top: 16px !important; overflow-y: auto !important; scrollbar-width: thin; }
body.index-page #result > * { flex-shrink: 0; }
body.index-page #result .profile-buttons { position: absolute !important; top: 16px !important; right: 16px !important; display: flex; gap: 6px; margin: 0; padding: 0; }
body.index-page #result .profile-buttons button { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; min-width: 32px; padding: 6px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-supporting); box-shadow: none; transition: background-color 140ms ease, color 140ms ease; }
body.index-page #result .profile-buttons button:hover { background: var(--ui-hover); color: var(--text-readable); transform: none; }
body.index-page #result .profile-buttons button.pinned { color: var(--ui-accent); }
body.index-page #result .profile-buttons svg { width: 18px; height: 18px; flex: 0 0 auto; pointer-events: none; }
body.index-page #result .user-info { --profile-avatar-width: 128px; --profile-avatar-height: 220px; --profile-avatar-column-width: calc(var(--profile-avatar-width) - 56px); --profile-badge-offset: 15px; --profile-badges-width: 118px; --profile-visual-gap: 16px; display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto auto auto; column-gap: 24px !important; row-gap: 8px !important; align-items: start !important; padding: 0; margin: 0 0 16px; border: 0; }
body.index-page #result .user-details { display: contents !important; }
body.index-page #result .user-header-row { grid-column: 1 / -1; grid-row: 1; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: center; gap: 7px; min-height: 34px; min-width: 0; margin: 0; padding-right: 112px; }
body.index-page #result .username { grid-column: 2; min-width: 0; max-width: 100%; font-size: 28px; line-height: 1.2; white-space: normal; overflow-wrap: anywhere; }
body.index-page #result .username.scaled-small { font-size: 24px; }
body.index-page #result .username.scaled-smaller { font-size: 22px; }
body.index-page #result .username.scaled-tiny { font-size: 20px; }
body.index-page #result .motto { grid-column: 1 / -1; grid-row: 2; margin: 0; min-width: 0; white-space: normal; overflow-wrap: anywhere; font-size: 15px !important; line-height: 1.5; color: var(--text-supporting) !important; }
body.index-page #result .avatar-wrapper { grid-column: 1 / -1; grid-row: 3; justify-self: start; margin: 0 !important; align-self: start !important; display: flex; align-items: center; justify-content: center; position: relative; width: min(var(--profile-avatar-column-width), calc(100% - var(--profile-badges-width) - var(--profile-visual-gap))); min-width: 0; height: var(--profile-avatar-height); min-height: 0; border: 0; border-radius: 0; background: transparent !important; overflow: visible; }
body.index-page #result .avatar { --profile-avatar-render-width: min(var(--profile-avatar-width), calc((100% + var(--profile-visual-gap) - 8px) / var(--profile-avatar-content-width, 1))); position: absolute; left: calc(var(--profile-avatar-render-width) * var(--profile-avatar-content-start, 0) * -1); top: 0; width: var(--profile-avatar-render-width); height: var(--profile-avatar-height); max-width: none !important; max-height: 220px; object-fit: contain; image-rendering: pixelated; }
body.index-page #result #userOnlineStatus { display: none !important; }
body.index-page #result .selected-badges { grid-column: 1 / -1; grid-row: 3; justify-self: start; align-self: start !important; width: var(--profile-badges-width); min-width: 118px; margin: max(0px, calc((var(--profile-avatar-height) - 170px) / 2 + var(--profile-badge-offset))) 0 0 min(calc(var(--profile-avatar-column-width) + var(--profile-visual-gap)), calc(100% - var(--profile-badges-width))) !important; }
body.index-page #result .profile-level-summary { grid-column: 1 / -1; grid-row: 4; display: grid; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: 8px 6px; width: auto; min-width: 0; margin: 0; padding: 6px 0; border-top: 1px solid var(--border-readable); border-bottom: 1px solid var(--border-readable); color: var(--text-readable); }
body.index-page #result .profile-level-summary[hidden] { display: none !important; }
body.index-page #result .profile-level-label { font-size: 13px; color: var(--text-supporting); }
body.index-page #result #profileLevelValue { font-size: 18px; line-height: 1; font-weight: 700; }
body.index-page #result .profile-level-progress-text { grid-column: 3; text-align: right; font-size: 12px; line-height: 1.5; color: var(--text-supporting); }
body.index-page #result .profile-experience { grid-column: 4; grid-row: 1; padding-left: 8px; font-size: 12px; line-height: 1.5; color: var(--text-supporting); }
body.index-page #result #profileLevelProgress { display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 3px; overflow: hidden; background: var(--surface-inset); color: var(--accent-success); }
body.index-page #result #profileLevelProgress::-webkit-progress-bar { background: var(--surface-inset); border-radius: 3px; }
body.index-page #result #profileLevelProgress::-webkit-progress-value { background: var(--accent-success); border-radius: 3px; }
body.index-page #result #profileLevelProgress::-moz-progress-bar { background: var(--accent-success); border-radius: 3px; }
body.index-page #result #profileLevelProgress { grid-column: 1 / -1; }
body.index-page #result .creation-date { grid-column: 1; grid-row: 5; margin: 0; padding: 0; color: var(--text-supporting) !important; font-size: 12px !important; white-space: normal; line-height: 1.5; }
body.index-page #result .creation-date > span { display: inline; font-size: 12px; line-height: 1.5; }
body.index-page #result .creation-date > span:last-child { margin: 2px 0 0; color: var(--text-readable); font-weight: 500; }
body.index-page #result .profile-meta-row { grid-column: 2; grid-row: 5; justify-self: end; align-self: start; display: flex; margin: 0; }
body.index-page #result .profile-meta-item { display: flex; flex-direction: row; align-items: baseline; gap: 5px; padding: 0; border: 0; border-radius: 0; background: transparent !important; }
body.index-page #result .profile-meta-label { font-size: 12px !important; line-height: 1.5; color: var(--text-supporting); text-transform: none; letter-spacing: 0; }
body.index-page #result .profile-meta-value { margin: 0; font-size: 12px; line-height: 1.5; font-weight: 500; color: var(--text-readable); }
body.index-page #result .profile-meta-item[data-profile-meta="updated"] { display: none; }
body.index-page #result .profile-overview-section { padding: 12px; margin-bottom: 12px; border-radius: 10px; }
body.index-page #result .profile-section-kicker { display: none; }
body.index-page #result .profile-section-heading { margin-bottom: 10px; }
body.index-page #result .profile-section-heading h3 { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text-readable); }
body.index-page #result .stats-row { display: grid !important; gap: 0 !important; padding: 0 !important; overflow: hidden !important; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; border: 1px solid var(--border-readable); border-radius: 10px; background: var(--surface-inset); }
body.index-page #result .profile-stat { padding: 12px 6px; background: transparent; border: 0; }
body.index-page #result .profile-stat:not(:nth-child(3n)) { border-right: 1px solid var(--border-readable); }
body.index-page #result .profile-stat:nth-child(n + 4) { border-top: 1px solid var(--border-readable); }
body.index-page #result .profile-stat .stat-value { font-size: 17px; line-height: 1.3; color: var(--text-readable); }
body.index-page #result .profile-stat .stat-label { margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--text-supporting); }
body.index-page #result .profile-stat.clickable:hover { background: var(--ui-hover); transform: none; }
@media (min-width: 1101px) {
    body.index-page .experimental-profile-layout #result > .profile-overview-section { margin-top: auto; }
}
@media (min-width: 1101px) and (min-height: 760px) {
    body.index-page .main-layout.experimental-profile-layout:has(.profile-result-reveal.is-visible) { grid-template-columns: 330px minmax(0, 1fr) clamp(440px, 26vw, 520px); }
}
@media (min-width: 1101px) and (max-height: 950px) {
    body.index-page #result .user-info { --profile-avatar-width: 98.90909091px; --profile-avatar-height: 170px; row-gap: 6px !important; margin-bottom: 8px; }
    body.index-page #result .motto { font-size: 14px !important; }
    body.index-page #result .profile-level-summary { padding: 6px 0; gap: 4px 6px; }
    body.index-page #result .creation-date > span { display: inline; }
    body.index-page #result .profile-meta-item { flex-direction: row; gap: 4px; }
    body.index-page #result .profile-overview-section { padding: 8px; margin-bottom: 8px; }
    body.index-page #result .profile-section-heading { margin-bottom: 4px; }
    body.index-page #result .profile-stat { padding: 4px; }
    body.index-page #result .profile-stat .stat-value { font-size: 16px; }
    body.index-page #result .profile-stat .stat-label { margin-top: 0; font-size: 12px; }
}
@media (max-width: 600px) {
    body.index-page #result .profile-buttons { position: static !important; align-self: flex-end; margin-bottom: 10px; }
    body.index-page #result .user-header-row { padding-right: 0; }
    body.index-page #result .user-info { column-gap: 12px !important; }
    body.index-page #result .profile-level-summary { grid-template-columns: auto auto 1fr; }
    body.index-page #result .profile-level-progress-text { grid-column: 3; }
    body.index-page #result .profile-experience { grid-row: 3; grid-column: 1 / -1; padding: 0; }
}
body.index-page #result.badge-only-mode .user-info, body.index-page #result.badge-only-mode .stats-row { display: none !important; }

body .profile-tabs { position: relative; }
html body.index-page .profile-tabs[hidden],
html body.index-page #result.badge-only-mode .profile-tabs { display: none !important; }
body .profile-tabs .profile-tab.is-active { background: transparent !important; }
body .profile-tab-indicator { position: absolute; top: 0; left: 0; height: 3px; border-radius: 3px; background: var(--ui-accent); pointer-events: none; }
body .profile-tab-indicator.is-positioned { transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), width 220ms cubic-bezier(0.22, 1, 0.36, 1); }
body .profile-tab-indicator[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { body .profile-tab-indicator.is-positioned { transition: none !important; } }

body #newestBadgesSection, body #newestBadgesSection * { user-select: none; -webkit-user-select: none; }
body #newestBadgesSection img { -webkit-user-drag: none; }
body.index-page #result .profile-context-slot { display: block; flex: 1 0 auto; min-width: 0; margin-bottom: 12px; }
body.index-page #result .profile-context-slot[hidden], body.index-page #result .profile-context-slot.is-disabled { display: none !important; }
body.index-page #result .profile-context-content { display: grid; align-content: start; gap: 8px; }
body.index-page #result .profile-context-content > .profile-overview-section { margin: 0; min-width: 0; padding: 8px; }
body.index-page #result .profile-context-content .profile-section-heading { margin-bottom: 4px; }
body.index-page #result .profile-context-content button { min-width: 0; margin: 0; border: 0; color: var(--text-readable); box-shadow: none; transform: none; font: inherit; cursor: pointer; }
body.index-page #result .profile-context-content button:hover { background: var(--ui-hover); }
body.index-page #result .profile-context-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.index-page #result .profile-context-heading button { width: auto; flex: 0 0 auto; margin-left: auto; padding: 2px 4px; background: transparent; font-size: 12px; color: var(--ui-accent); }
body.index-page #result .profile-context-group-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
body.index-page #result .profile-context-group-grid button { display: flex; align-items: center; gap: 5px; padding: 0 3px; border-radius: 8px; background: var(--surface-inset); text-align: left; }
body.index-page #result .profile-context-group-grid img, body.index-page #result .profile-context-group-placeholder { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; font-size: 28px; line-height: 40px; }
body.index-page #result .profile-context-group-grid button > span:last-child { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; line-height: 16px; }
body.index-page #result:has(.profile-context-slot:not([hidden])) > .profile-overview-section { margin-top: 0; }
@media (min-width: 1101px) and (min-height: 760px) {
    body.index-page:has(#result.show:not(.badge-only-mode)) { height: auto; min-height: 100dvh; overflow-y: auto; }
    body.index-page:has(#result.show:not(.badge-only-mode)) > .container { flex: 1 0 auto; }
    body.index-page .main-layout:has(#result.show:not(.badge-only-mode)) { min-height: min-content; }
    body.index-page .main-layout:has(#result.show:not(.badge-only-mode)) .experimental-badges-reveal { contain: size; }
    body.index-page .profile-result-reveal:has(#result.show:not(.badge-only-mode)) { height: auto; min-height: min-content; overflow: visible; }
    body.index-page #result.show:not(.badge-only-mode) { height: auto !important; min-height: 100% !important; max-height: none !important; overflow: visible !important; }
}


@media (max-width: 600px) {
    body.index-page .home-overview .top-stats { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 8px; }
    body.index-page .home-overview .top-stat-item { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 10px 0; border: 0; }
    body.index-page .home-overview .top-stat-item + .top-stat-item { border-top: 1px solid var(--border-readable); }
    body.index-page .home-overview .top-stat-number { flex: 0 0 auto; font-size: 22px; line-height: 1.3; letter-spacing: 0; white-space: nowrap; }
    body.index-page .home-overview .top-stat-label { min-width: 0; min-height: 0; margin: 0; font-size: 12px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
}

@media (max-width: 600px) {
    body.index-page { --home-module-gap: 24px; }
    body.index-page > .container { padding-bottom: 0; }
    body.index-page :is(.main-layout, .left-column, .left-top-row) { gap: var(--home-module-gap); }
    body.index-page > .site-footer { margin-top: 0; padding-top: var(--home-module-gap); }
}

body.index-page #result.badge-only-mode .profile-buttons { position: absolute !important; top: 16px !important; right: 16px !important; margin: 0 !important; }
body.index-page #result.badge-only-mode #singleBadgeResult { margin: 0; padding: 0 !important; border: 0; background: transparent; text-align: left; }
body.index-page #result.badge-only-mode .badge-result-title { margin: 0; padding-right: 44px; min-height: 26px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--text-readable); }
body.index-page #result.badge-only-mode .badge-result-text { margin-top: 2px; padding-right: 44px; font-size: 12px; line-height: 1.5; color: var(--text-supporting); }
body.index-page #result.badge-only-mode .badge-details-container { margin-top: 16px; justify-content: flex-start; gap: 12px; background: var(--surface-inset); }
body.index-page #result.badge-only-mode .badge-text-details { min-width: 0; overflow-wrap: anywhere; }
body.index-page #result.badge-only-mode .badge-image-large { flex: 0 0 auto; max-width: 60px; max-height: 60px; }
body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list { max-height: clamp(150px, 36dvh, 400px); overscroll-behavior: contain; }
@media (max-width: 900px) {
    body.index-page #result.badge-only-mode { min-height: 0 !important; }
    body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list { max-height: clamp(150px, 32dvh, 320px); }
}

body #singleBadgeResult .badge-result-text:empty { display: none; }

body.index-page #singleBadgeFlags { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px !important; justify-content: stretch !important; width: 100%; max-width: 520px; margin: 0 auto 12px !important; padding: 0; }
body.index-page #singleBadgeFlags .badge-modal-flag { display: flex; align-items: center; justify-content: center; width: 100% !important; min-width: 0; height: 36px !important; min-height: 36px; margin: 0; padding: 0 !important; border: 1px solid var(--border-readable); border-radius: 6px; background: var(--surface-inset); color: var(--text-readable); opacity: 1; transform: none !important; box-shadow: none; transition: background-color 120ms ease, border-color 120ms ease; user-select: none; -webkit-user-select: none; }
body.index-page #singleBadgeFlags .badge-modal-flag:hover { background: var(--ui-hover); }
body.index-page #singleBadgeFlags .badge-modal-flag.active { border-color: var(--ui-accent); background: var(--ui-hover); }
body.index-page #singleBadgeFlags .badge-modal-flag img { display: block; flex: 0 0 24px; width: 24px !important; height: 16px !important; object-fit: contain !important; border-radius: 1px; }
body.index-page #singleBadgeFlags .badge-modal-flag > span { font-size: 18px; line-height: 1; }
@media (max-width: 600px) {
    body.index-page #singleBadgeFlags { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    body.index-page #singleBadgeFlags .badge-modal-flag { height: 40px !important; min-height: 40px; }
    body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list { height: clamp(150px, 32dvh, 320px); }
}

body.index-page #result.badge-only-mode .badge-details-container { height: 176px; min-height: 176px; }
body.index-page #result.badge-only-mode .badge-text-details { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }

body.index-page #singleBadgeOwnersContent .owners-header { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(32px, max-content); gap: 12px; min-height: 45px; }
body.index-page #singleBadgeOwnersContent .owners-title-label { font-size: 12px; line-height: 18px; }
body.index-page #singleBadgeOwnersContent .owners-date-header { display: inline-flex; align-items: center; gap: 4px; width: auto; white-space: nowrap; font-size: 12px; }
body.index-page #singleBadgeOwnersContent .owners-date-header .sort-arrow { margin-left: 0; }
body.index-page #singleBadgeOwnersContent .owners-count { min-width: 0; padding: 3px 7px; border: 1px solid var(--border-readable); border-radius: 6px; background: var(--surface-inset); font-size: 12px; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
body.index-page .owners-header .owners-title-group { display: block; min-width: 0; }
body.index-page .owners-title-group > .owners-title { display: inline; }
body.index-page .owners-title-group > .owners-help { display: inline-block; margin-left: 6px; vertical-align: middle; }
body.index-page .owners-title .sort-arrow:empty { display: none; }
@media (max-width: 600px) {
    body.index-page #singleBadgeOwnersContent .owners-header { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
    body.index-page #singleBadgeOwnersContent .owners-title-group { grid-column: 1 / -1; }
}

body.index-page #result.badge-only-mode { height: auto !important; min-height: 0 !important; max-height: var(--badge-card-max-height, calc(100dvh - 32px)) !important; align-self: start; }
body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list { height: var(--single-owner-list-height, 180px) !important; min-height: 0; max-height: none !important; overflow-y: auto; overflow-anchor: none; }

body.index-page .badge-initial-loader { position: absolute; inset: 60px 16px 16px; display: grid; place-items: center; }
body.index-page #result.badge-only-mode.badge-initial-loading { height: calc(100dvh - 32px) !important; }
@media (min-width: 1101px) and (min-height: 760px) {
    body.index-page #result.badge-only-mode.badge-initial-loading { height: 100% !important; }
}
body.index-page .badge-initial-loader[hidden] { display: none; }
body.index-page #result.badge-initial-loading :is(.profile-overview-section, .profile-tabs, .profile-panel, .profile-buttons button:not(.profile-close-btn)) { display: none !important; }
@media (min-width: 1101px) and (max-width: 1479px) and (min-height: 760px) {
    body.index-page .main-layout:has(#result.badge-only-mode.show) .left-top-row { height: 100%; grid-template-rows: auto minmax(0, 1fr); }
}

body.index-page #singleBadgeOwnersContent .owners-date-header { min-height: 28px; padding: 0; border: 0; border-radius: 4px; background: transparent; box-shadow: none; color: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; transform: none; }
body.index-page #singleBadgeOwnersContent .owners-date-header[hidden] { display: none; }
body.index-page #singleBadgeOwnersContent .owners-date-header:focus-visible { outline: 1px solid var(--ui-focus); outline-offset: 3px; }
body.index-page #singleBadgeOwnersContent .owners-count { grid-column: -2 / -1; }
body.index-page #singleBadgeOwnersContent .sort-arrow { display: inline-flex; width: 14px; height: 14px; flex: 0 0 14px; vertical-align: middle; }
body.index-page #singleBadgeOwnersContent .sort-arrow svg { display: block; width: 100%; height: 100%; }
body.index-page #singleBadgeOwnersContent .sortable[data-order="asc"] .sort-arrow svg { transform: rotate(180deg); }
body.index-page #singleBadgeOwnersContent .sortable:not(.active) .sort-arrow { visibility: hidden; }
body.index-page #singleBadgeOwnersContent .owners-title:not(.active) .sort-arrow { display: none; }

body.index-page #result.badge-layout-animated #singleBadgeOwners .owners-list { transition: height 240ms cubic-bezier(.22,1,.36,1); }
body.index-page :is(#singleBadgeFlags, #moduleFlags) .badge-modal-flag img { flex: 0 0 24px; width: 24px !important; height: 16.5px !important; max-width: 100%; object-fit: contain !important; image-rendering: pixelated; border-radius: 0; }
@media (max-width: 600px) {
    body.index-page #singleBadgeOwnersContent .owners-header { min-height: 62px; }
}
@media (prefers-reduced-motion: reduce) {
    body.index-page #result.badge-layout-animated #singleBadgeOwners .owners-list { transition: none; }
}

@media (max-width: 768px) {
    body.index-page #moduleFlags .badge-modal-flag img { flex-basis: 22px; width: 22px !important; height: 15.125px !important; }
}

body.index-page #result.badge-only-mode { container-type: inline-size; }
@container (min-width: 400px) {
    body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; align-items: start; gap: 5px 8px; }
    body.index-page #result.badge-only-mode #singleBadgeOwners .owners-list > :not(.owner-item) { grid-column: 1 / -1; }
    body.index-page #result.badge-only-mode .badge-details-container { height: 112px; min-height: 112px; }
    body.index-page #result.badge-only-mode .owner-item { min-width: 0; min-height: 34px; padding: 3px 6px; gap: 6px; }
    body.index-page #result.badge-only-mode .owner-item img { width: 28px; height: 28px; }
    body.index-page #result.badge-only-mode .owner-item .name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    body.index-page #singleBadgeOwnersContent .owners-header { min-height: 36px; }
}

body.index-page #result .profile-level-track { grid-column: 1 / -1; height: 6px; border-radius: 3px; overflow: hidden; background: var(--surface-inset); }
body.index-page #result .profile-level-track #profileLevelProgress { transform-origin: left center; background: transparent; }
body.index-page #result .profile-level-track #profileLevelProgress::-webkit-progress-bar { background: transparent; }
body.index-page .group-item-tags { min-width: 92px; gap: 4px; }
body.index-page .group-item-tags, body.index-page .group-item-tags * { user-select: none; -webkit-user-select: none; }
body.index-page .group-item-tags .group-tag { display: inline-flex; align-items: center; justify-content: flex-start; gap: 6px; min-height: 22px; padding: 3px 7px; border: 1px solid var(--border-readable); border-radius: 4px; background: var(--surface-inset); font-size: 12px; line-height: 14px; text-transform: none; font-weight: 600; }
body.index-page .group-tag img { width: 14px; height: 14px; object-fit: contain; image-rendering: pixelated; -webkit-user-drag: none; }
body.index-page .group-type-icon { width: 14px; text-align: center; font-size: 12px; line-height: 14px; }
body.index-page .group-tag.admin { color: #d4a94d; }
body.index-page .group-tag.exclusive { color: #b99bdf; }
body.index-page[data-theme="light"] .group-tag.admin, [data-theme="light"] body.index-page .group-tag.admin { color: #805c10; }
body.index-page[data-theme="light"] .group-tag.exclusive, [data-theme="light"] body.index-page .group-tag.exclusive { color: #705098; }
body.index-page .group-item-meta { line-height: 1.5; color: var(--text-supporting); font-size: 12px; }
body.index-page .group-item-inline { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; height: auto; min-height: 64px; flex-shrink: 0; }
body.index-page .group-item-inline .group-badge-wrapper { grid-column: 1; grid-row: 1 / span 2; }
body.index-page .group-item-inline .group-item-info { grid-column: 2; grid-row: 1; }
body.index-page .group-item-inline .group-item-tags { grid-column: 3; grid-row: 1; }
body.index-page .group-item-inline .group-item-meta { grid-column: 2 / -1; grid-row: 2; margin: 0; overflow-wrap: anywhere; }

body.index-page .friend-item-inline { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 4px 10px; min-height: 64px; height: auto; flex-shrink: 0; border: 1px solid var(--border-readable); background: var(--surface-inset); transition: background-color 140ms ease, border-color 140ms ease; }
body.index-page .friend-item-inline:hover { transform: none; background: var(--ui-hover); }
body.index-page .friend-avatar-wrapper { grid-column: 1; grid-row: 1 / span 2; }
body.index-page .friend-item-info { grid-column: 2; grid-row: 1; gap: 4px; }
body.index-page .friend-item-date { grid-column: 2; grid-row: 2; min-width: 0; font-size: 12px; font-weight: 400; color: var(--text-supporting); }
body.index-page :is(.friend-item-name, .friend-item-motto, .friend-item-date, .profile-room-name, .profile-room-description, .profile-room-meta-label, .profile-room-meta-value) { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.5; }
body.index-page .friend-item-name { color: var(--text-readable); font-size: 13px; }
body.index-page .friend-item-motto { color: var(--text-supporting); font-size: 12px; white-space: pre-line; }
body.index-page .profile-room-card { height: auto; flex-shrink: 0; align-items: start; background: var(--surface-inset); border-color: var(--border-readable); }
body.index-page .profile-room-description { display: block; -webkit-line-clamp: unset; white-space: pre-line; flex: none; font-size: 12px; color: var(--text-supporting); }
body.index-page .profile-room-name { font-size: 13px; color: var(--text-readable); }
body.index-page .profile-room-meta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 90px), 1fr)); gap: 8px 12px; margin-top: 4px; }
body.index-page .profile-room-meta-item { padding: 0; border: 0; }
body.index-page .profile-room-meta-label { font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--text-supporting); }
body.index-page .profile-room-meta-value { font-size: 12px; color: var(--text-readable); }
@media (max-width: 600px) {
    body.index-page .profile-room-body { display: contents; }
    body.index-page .profile-room-image { grid-column: 1; grid-row: 1; }
    body.index-page .profile-room-name { grid-column: 2; grid-row: 1; }
    body.index-page .profile-room-description { grid-column: 1 / -1; grid-row: 2; margin: 0; }
    body.index-page .profile-room-meta { grid-column: 1 / -1; grid-row: 3; }
}

body.index-page .profile-timeline { gap: 16px; }
body.index-page .profile-timeline-day { padding: 12px; border-radius: 10px; background: var(--surface-inset); border: 1px solid var(--border-readable); }
body.index-page .profile-timeline-date { display: block; margin: 0 0 10px; font-size: 14px; line-height: 1.5; color: var(--text-readable); }
body.index-page .profile-timeline-event { grid-template-columns: 60px minmax(0, 1fr); gap: 12px; min-height: 84px; padding: 12px 0; align-items: center; border-color: var(--border-readable); }
body.index-page .profile-timeline-icon { width: 60px; height: 60px; border: 1px solid var(--border-readable); border-radius: 8px; background: var(--surface-readable); overflow: hidden; color: var(--text-supporting); }
body.index-page .profile-timeline-icon img { width: auto; height: auto; max-width: 56px; max-height: 56px; object-fit: contain; image-rendering: pixelated; }
body.index-page .profile-timeline-icon > svg { width: 28px; height: 28px; }
body.index-page .profile-timeline-content { min-width: 0; }
body.index-page .profile-timeline-event-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; margin-bottom: 5px; }
body.index-page .profile-timeline-type { display: inline-flex; min-width: 0; max-width: 100%; overflow-wrap: anywhere; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; line-height: 1.5; color: var(--text-readable); }
body.index-page .profile-timeline-type svg { width: 16px; height: 16px; flex: 0 0 16px; }
body.index-page .profile-timeline-event[data-event-type="badge"] .profile-timeline-type svg { color: #d4a94d; }
body.index-page .profile-timeline-event[data-event-type="group"] .profile-timeline-type svg { color: #a78bfa; }
body.index-page .profile-timeline-event[data-event-type="friend"] .profile-timeline-type svg { color: var(--ui-accent); }
body.index-page .profile-timeline-event[data-event-type="room"] .profile-timeline-type svg { color: var(--accent-success); }
body.index-page .profile-timeline-event[data-event-type="removed"] .profile-timeline-type svg { color: var(--accent-error); }
body.index-page .profile-timeline-name { display: block; color: var(--text-readable); font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
body.index-page .profile-timeline-code { display: block; margin-top: 2px; color: var(--text-supporting); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
body.index-page .profile-timeline-time { color: var(--text-supporting); font-size: 12px; line-height: 1.5; white-space: nowrap; }

body.index-page .profile-timeline-badge { padding: 0; flex: none; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
body.index-page .profile-timeline-badge:hover { background: var(--ui-hover); border-color: var(--ui-accent); transform: none; }
body.index-page .profile-timeline-badge:focus-visible { outline: 1px solid var(--ui-focus); outline-offset: 3px; }

body :is(.profile-panel-description, .profile-panel-empty, .profile-recent-empty, .profile-timeline-note) { font-size: 14px; line-height: 1.6; color: var(--text-readable); }
body.index-page .profile-timeline-note { padding: 12px 14px; background: var(--surface-inset); border: 1px solid var(--border-readable); border-radius: 8px; overflow-wrap: anywhere; }
body.index-page :is(.friend-item-name, .friend-item-motto, .group-item-name, .profile-room-name, .profile-room-description, .profile-achievement-name, .profile-badge-hover-description, .badge-found-desc, .badge-found-rarity) { font-size: 14px; line-height: 1.5; }
body.index-page :is(.group-item-meta, .friend-item-date, .profile-room-meta-label, .profile-room-meta-value, .profile-timeline-code, .profile-timeline-time, .profile-achievement-level, .profile-badge-hover-foot, .profile-badge-hover-facts) { font-size: 12px; line-height: 1.5; }
body.index-page :is(.group-item-name, .profile-room-name, .friend-item-name, .profile-achievement-name) { min-width: 0; overflow-wrap: anywhere; }
body.index-page :is(.profile-panel-search, .profile-panel-select, .profile-achievement-controls input, .profile-achievement-controls select, .profile-achievement-controls button) { font-size: 14px; }
body.index-page .newest-badges-pagination > span, body.index-page .site-footer .footer-content { font-size: 12px !important; line-height: 1.5; }
body.index-page .badge-found-rarity { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; white-space: normal; overflow-wrap: anywhere; }
.badge-found-rarity .rarity-tier-group { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; white-space: nowrap; }
.badge-found-rarity .rarity-tier-group .rarity-tier { font-weight: 600; }
.badge-found-rarity .rarity-owner-count { min-width: 0; color: var(--text-supporting); }
body.index-page :is(.profile-achievement-controls label, .profile-achievement-summary-item span, .profile-achievement-group-header, .profile-badge-hover-facts span, .profile-badge-hover-code, .profile-panel-count) { color: var(--text-supporting); }

body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn), body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn):is(:hover, :focus-visible, :active) { width: 28px; height: 28px; min-width: 28px; min-height: 0; flex: 0 0 28px; padding: 0; border: 0; border-radius: 6px; background: transparent !important; color: #f08080; box-shadow: none !important; transform: none !important; align-items: center; justify-content: center; transition: opacity 160ms ease, visibility 160ms ease, background-color 160ms ease, color 160ms ease; user-select: none; }
body.index-page #badgeForm .input-with-clear > .clear-btn { top: 0; bottom: 0; right: 12px; margin: auto 0; }
body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn) svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; pointer-events: none; }
body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn):hover { color: #ff9999; background: #ef444418 !important; }
html:not([data-input-modality="pointer"]) body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn):focus-visible { outline: 1px solid var(--ui-focus) !important; outline-offset: 2px; }
[data-theme="light"] body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn) { color: #b42332; }
[data-theme="light"] body :is(.icon-close-btn, #result .profile-buttons button.icon-close-btn):hover { color: #991b1b; background: #b4233210 !important; }

body.index-page #result .profile-buttons { align-items: center; }
body.index-page #result .profile-buttons .profile-pin-btn { padding: 0; background: transparent !important; transform: none !important; }
body.index-page #result .profile-pin-icon { display: grid; place-items: center; width: 24px; height: 24px; font-size: 20px; line-height: 1; pointer-events: none; }
body.index-page #result .profile-buttons .profile-pin-btn:is(:hover, .pinned) { background: var(--ui-hover) !important; }

body.index-page .profile-initial-loader { position: absolute; inset: 0; z-index: 25; display: grid; place-items: center; border-radius: inherit; background: var(--surface-readable); }
body.index-page #result.profile-initial-loading { min-height: 440px !important; }
body.index-page #result.profile-initial-loading .profile-buttons { z-index: 26; }
body.index-page #result.profile-initial-loading .profile-buttons button:not(.profile-close-btn) { visibility: hidden; }
body.index-page .initial-collection-placeholder .experimental-badges-card-inner { position: relative; }
html[data-initial-profile-collection="false"] body.index-page .initial-collection-placeholder { display: none !important; }
@media (min-width: 1101px) and (min-height: 760px) {
    body.index-page #result.profile-initial-loading { min-height: 0 !important; }
}
body.index-page .history.initial-history-placeholder { display: flex; align-items: center; visibility: hidden; }
body.index-page .history.initial-history-placeholder.show { visibility: visible; }

body.index-page .experimental-badges-card-inner:has(> :is(.profile-initial-loader, .profile-loading-overlay)) { position: relative; }
body.index-page #result .profile-buttons { z-index: 31; }

@media (min-width: 1101px) { body.index-page #newestBadgesSection.is-search-feedback { height: var(--newest-search-height) !important; min-height: 0 !important; max-height: var(--newest-search-height) !important; align-self: start !important; } }
body.index-page :is(.suggestion-box, .error-message) { box-sizing: border-box; overflow: hidden; }
body.index-page #suggestionText { margin: 0 0 16px; }
body.index-page #suggestionText > span { display: block; margin: 0; }
body.index-page #suggestionText > span + span { margin-top: 18px; }
body.index-page .suggestion-actions { display: flex; flex-basis: 100%; justify-content: flex-end; margin-top: 4px; }
body.index-page .suggestion-actions .btn-no { color: #fff; background: #b93642; border: 1px solid #d25460; }
body.index-page .suggestion-actions .btn-no:hover { background: #a62c38; transform: none; }

body.index-page .badge-collection-empty { display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 220px; padding: 32px 20px; text-align: center; color: var(--text-supporting); }
body.index-page .badge-collection-empty[hidden] { display: none; }
body.index-page .badge-collection-empty img { display: block; width: 88px; height: auto; margin-bottom: 4px; filter: grayscale(1); image-rendering: pixelated; user-select: none; -webkit-user-drag: none; }
body.index-page .badge-collection-empty strong { font-size: 20px; line-height: 1.3; color: var(--text-readable); }
body.index-page .badge-collection-empty p { max-width: 360px; margin: 0; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
body.index-page #allBadgesWrapper.has-empty-collection { display: flex; flex-direction: column; }
body.index-page #allBadgesWrapper.has-empty-collection #allBadgesGrid { display: none; }
@media (max-width: 600px) { body.index-page .badge-collection-empty { min-height: 240px; padding: 28px 16px; } }

body.index-page .form-card > #loading.is-background-search { pointer-events: none; }

body :is(img, svg, .main-navbar, .main-navbar *, .live-ticker-container, .live-ticker-container *, .history, .history *, .left-decoration, .left-decoration *, .footer-decoration, .footer-decoration *, .site-footer, .site-footer *, button, button *, label, legend, [role="button"], [role="tab"], [role="tab"] *, [role="option"], [role="menuitem"]) { user-select: none; -webkit-user-select: none; }
body img:not([draggable="true"]) { -webkit-user-drag: none; }
html body :is(input, textarea, [contenteditable]:not([contenteditable="false"]), [contenteditable]:not([contenteditable="false"]) *, [data-copyable], [data-copyable] *, .footer-attribution, .footer-attribution *) { user-select: text; -webkit-user-select: text; }

html body :is(input, textarea)[placeholder]:placeholder-shown { user-select: none; -webkit-user-select: none; }
html body :is(input, textarea)::placeholder { user-select: none; -webkit-user-select: none; }
html body :is(input, textarea)[placeholder]:placeholder-shown::selection { background: transparent; }

@media (max-width: 540px) {
    body .history-under-ticker.show { align-items: stretch; }
    body .history-items { width: 100%; }
}

body .history-reorder-handle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; min-width: 18px; height: 24px; min-height: 24px; padding: 0; margin: 0; transition: background-color 140ms ease, outline-color 140ms ease; }
body .history-reorder-handle[hidden] { display: none !important; }

body .history-navigation { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; flex: 1 1 auto; min-width: 0; width: 100%; }
body .history-navigation .history-items { position: relative; width: 100%; min-width: 0; }
body .history-navigation .history-items::after { content: ""; flex: 0 0 var(--history-reserve, 0px); margin-left: -8px; pointer-events: none; }
body .history-navigation.has-overflow { grid-template-columns: 30px minmax(0, 1fr) 30px; gap: 6px; }
body .history-navigation.has-overflow .history-items { grid-column: 2; grid-row: 1; }
body .history-scroll-button { display: flex; align-items: center; justify-content: center; width: 30px; min-width: 30px; height: 32px; min-height: 32px; margin: 0; padding: 0; border: 1px solid var(--border-readable); border-radius: 8px; background: var(--surface-inset); color: var(--text-readable); box-shadow: none; transform: none !important; transition: background-color 140ms ease, opacity 140ms ease; }
body .history-scroll-button[hidden] { display: none !important; }
body .history-scroll-previous { grid-column: 1; grid-row: 1; }
body .history-scroll-next { grid-column: 3; grid-row: 1; }
body .history-scroll-button:disabled { opacity: .35; cursor: default; }
body .history-scroll-button:not(:disabled):hover { background: var(--ui-hover); }
body .history-scroll-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

body .history-navigation .history-item { max-width: 100%; box-sizing: border-box; }
body .history-navigation .history-item > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

body.index-page .badges-toolbar { --badge-toolbar-field: #101620; --badge-toolbar-border: #394356; --badge-toolbar-active: #303743; display: flex; flex: 0 0 auto; flex-direction: column; gap: 12px; width: 100%; min-width: 0; margin-bottom: 14px; padding: 12px 0 16px; border-bottom: 1px solid var(--border-readable); }
body.index-page .badges-toolbar .badges-header { display: block; margin: 0; min-width: 0; }
body.index-page .badges-toolbar .badge-search-control { box-sizing: border-box; position: relative; gap: 11px; height: 46px; min-height: 40px; padding: 0 34px 0 14px; border: 1px solid var(--badge-toolbar-border); border-radius: 8px; background: var(--badge-toolbar-field); }
body.index-page .badges-toolbar .badge-search-control:focus-within { border-color: #737c8c; box-shadow: none; }
body.index-page .badges-toolbar .badge-search-icon { flex: 0 0 16px; width: 16px; height: 16px; fill: var(--text-supporting); }
body.index-page .badges-toolbar #badgeSearchInput { height: 40px; font-size: 14px; padding: 0; }
body.index-page .badges-toolbar #allBadgesCount { flex: 0 0 auto; min-width: 0; margin: 0; color: var(--text-readable); font-size: 14px; font-weight: 400; line-height: 20px; white-space: nowrap; padding: 4px 9px; border: 0; border-radius: 5px; background: #2a303c; }
body.index-page .badges-toolbar .badge-search-clear { position: absolute; right: 4px; top: 6px; bottom: auto; width: 28px; min-width: 28px; height: 28px; margin: 0; padding: 4px; }
body.index-page .badges-toolbar .badge-filter-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
body.index-page .badges-toolbar .badge-filter-btn { display: flex; align-items: center; justify-content: flex-start; height: 39px; min-height: 0; gap: 8px; padding: 0 14px; border: 1px solid #303b4e; border-radius: 8px; background: transparent !important; color: var(--text-readable); font-family: inherit; font-size: 13px; font-weight: 500; line-height: normal; white-space: normal; overflow-wrap: anywhere; transform: none !important; box-shadow: none !important; }
body.index-page .badges-toolbar .badge-filter-btn:hover { background: var(--ui-hover) !important; }
body.index-page .badges-toolbar .badge-filter-btn.active { background: var(--badge-toolbar-active) !important; border-color: #7b8594; color: var(--text-readable); }
body.index-page #allBadgesContainer { container-type: inline-size; container-name: badge-collection; }
[data-theme="light"] body.index-page .badges-toolbar { --badge-toolbar-field: #f5f7fa; --badge-toolbar-border: #b9c0cc; --badge-toolbar-active: #d4dbe4; }
@container badge-collection (max-width: 540px) {
    body.index-page .badges-toolbar .badge-filter-toolbar { grid-template-columns: minmax(0, 1fr); }
    body.index-page .badges-toolbar .badge-filter-btn { justify-content: center; height: auto; min-height: 40px; padding: 0 8px; font-size: 12px; line-height: 1.3; }
}
[data-theme="light"] body.index-page .badges-toolbar #allBadgesCount { background: #e2e6ed; }
[data-theme="light"] body.index-page .badges-toolbar .badge-filter-btn { border-color: #c1c7d0; background: #edf0f5 !important; }
@media (pointer: coarse) { body.index-page .badges-toolbar #badgeSearchInput { font-size: 16px; } }

@container badge-collection (max-width: 650px) {
    body.index-page .badges-toolbar .badge-search-control { gap: 7px; }
    body.index-page .badges-toolbar #allBadgesCount { font-size: 12px; }
}

body.index-page .profile-tabs.profile-tabs-counted { --nav-bg: #202735; --nav-line: #3b4555; --nav-text: #d7dde6; --nav-muted: #9ca8b8; --nav-on: #f6f8fb; --nav-active: #384252; --nav-hover: #293343; display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)) !important; gap: 8px !important; margin: 0 0 12px !important; padding: 0 !important; width: 100%; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: visible; align-items: stretch; }
[data-theme="light"] body.index-page .profile-tabs-counted { --nav-bg: #eef1f5; --nav-line: #c0c8d3; --nav-text: #334155; --nav-muted: #64748b; --nav-on: #152236; --nav-active: #dce2ea; --nav-hover: #e3e8ef; }
body.index-page .profile-tabs-counted .profile-tab { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; width: 100%; min-height: 44px; height: auto; margin: 0; padding: 9px 10px; border: 1px solid var(--nav-line); border-radius: 8px; background: var(--nav-bg); color: var(--nav-text); font-family: inherit; font-size: 13px; line-height: 1.3; font-weight: 500; white-space: normal; text-align: center; box-shadow: none; transform: none; transition: background-color 150ms, color 150ms, border-color 150ms; }
body.index-page .profile-tabs-counted .profile-tab:is(:hover, :active) { flex: 0 0 auto; white-space: normal; transform: none; }
body.index-page .profile-tabs-counted .profile-tab:hover { background: var(--nav-hover); color: var(--nav-on); }
body.index-page .profile-tabs-counted .profile-tab.is-active { background: var(--nav-active) !important; color: var(--nav-on); border-color: var(--nav-muted); }
body.index-page .profile-tabs-counted .profile-tab:focus-visible { outline: 2px solid var(--nav-muted); outline-offset: 2px; }
body.index-page .profile-tabs-counted .profile-tab-label { display: block; min-width: 0; }
body.index-page .profile-tabs-counted .profile-tab-count { display: inline-flex; align-items: center; justify-content: center; flex: none; font-size: 12px; line-height: 18px; min-width: 23px; padding: 1px 5px; border-radius: 4px; background: var(--nav-hover); color: var(--nav-muted); font-variant-numeric: tabular-nums; }
body.index-page .profile-tabs-counted .profile-tab.is-active .profile-tab-count { background: var(--nav-on); color: var(--nav-bg); }
body.index-page .profile-tabs-counted .profile-tab-indicator { display: none; }
body.index-page :is(.result-card, .experimental-badges-card-inner):has(.profile-tabs-counted) .badges-toolbar { padding-top: 0; gap: 12px; }
@container (max-width: 760px) { body.index-page .profile-tabs.profile-tabs-counted { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@container (max-width: 360px) { body.index-page .profile-tabs.profile-tabs-counted { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@container (max-width: 280px) { body.index-page .profile-tabs.profile-tabs-counted { grid-template-columns: minmax(0, 1fr) !important; } }


.collection-toolbar-host{--ct-bg:#171e2a;--ct-soft:#202938;--ct-field:#101720;--ct-line:#374253;--ct-text:#e4e9f1;--ct-muted:#aab6c7;--ct-count:#2a3545;--ct-red:#f37777}
html[data-theme="light"] .collection-toolbar-host{--ct-bg:#fff;--ct-soft:#f1f4f8;--ct-field:#f8fafc;--ct-line:#c2cbd7;--ct-text:#243142;--ct-muted:#5b6b80;--ct-count:#e6ebf2;--ct-red:#c94545}
.collection-toolbar-host{container-type:inline-size;container-name:collection-toolbar}
body.index-page .collection-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"title actions";align-items:center!important;gap:12px!important;margin:0 0 10px!important;padding:0 0 12px!important;border:0!important;border-bottom:1px solid var(--ct-line)!important;min-width:0;box-sizing:border-box;font-family:'Segoe UI',Tahoma,sans-serif}
body.index-page .collection-toolbar-title{grid-area:title;display:flex;align-items:center;gap:9px;margin:0!important;color:var(--ct-text)!important;font-size:16px!important;line-height:1.25;font-weight:700;min-width:0;white-space:nowrap}
body.index-page .collection-toolbar-count{display:inline-flex;align-items:center;justify-content:center;min-width:27px;min-height:22px;padding:2px 7px;margin:0!important;border-radius:5px;background:var(--ct-count);color:var(--ct-text)!important;font-size:12px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
body.index-page .collection-toolbar-actions{grid-area:actions;display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:8px!important;min-width:0}
body.index-page .collection-toolbar-sort{grid-area:sort;appearance:auto!important;width:140px;max-width:100%;height:36px;min-width:0;margin:0!important;padding:0 28px 0 10px!important;border:1px solid var(--ct-line)!important;border-radius:6px!important;background:var(--ct-field)!important;color:var(--ct-text)!important;font:12px 'Segoe UI',Tahoma,sans-serif;box-shadow:none!important;transform:none!important}
body.index-page .collection-toolbar-search{grid-area:search;display:flex!important;align-items:center;gap:0;width:var(--ct-search-width,190px)!important;max-width:none!important;min-width:0;height:36px;padding:0 10px!important;border:1px solid var(--ct-line)!important;border-radius:6px!important;background:var(--ct-field)!important;box-sizing:border-box}
body.index-page .collection-toolbar-search:focus-within{border-color:var(--ui-focus)!important}
body.index-page .collection-toolbar-search svg{flex:0 0 14px;width:14px;height:14px;fill:var(--ct-muted)!important}
body.index-page .collection-toolbar-input{width:100%!important;min-width:0!important;max-width:100%;height:100%;padding:0 0 0 7px!important;background:transparent!important;color:var(--ct-text)!important;border:0!important;font:13px 'Segoe UI',Tahoma,sans-serif!important;box-shadow:none!important;outline:0!important}
body.index-page .collection-toolbar-input::placeholder{color:var(--ct-muted);opacity:1}
body.index-page .collection-toolbar-close{grid-area:close;position:relative;display:inline-flex;flex:0 0 34px!important;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important;border:0!important;border-radius:6px!important;background:color-mix(in srgb,var(--ct-red) 10%,transparent)!important;color:var(--ct-red)!important;font-size:0!important;transform:none!important;box-shadow:none!important;cursor:pointer}
body.index-page .collection-toolbar-close::before,body.index-page .collection-toolbar-close::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:1px;background:currentColor;transform:translate(-50%,-50%) rotate(45deg)}
body.index-page .collection-toolbar-close::after{transform:translate(-50%,-50%) rotate(-45deg)}
body.index-page .collection-toolbar-close:hover{background:color-mix(in srgb,var(--ct-red) 18%,transparent)!important}
body.index-page .collection-toolbar-sort:focus-visible,body.index-page .collection-toolbar-close:focus-visible{outline:1px solid var(--ui-focus)!important;outline-offset:2px}
body.index-page .collection-toolbar-actions{gap:0!important;background:var(--ct-field);border:1px solid var(--ct-line);border-radius:7px;overflow:hidden}
body.index-page .collection-toolbar-search,body.index-page .collection-toolbar-sort{border:0!important;background:transparent!important;border-radius:0!important}
body.index-page .collection-toolbar-search{order:0;width:210px!important}body.index-page .collection-toolbar-sort{order:1;border-left:1px solid var(--ct-line)!important}
body.index-page .collection-toolbar-close{order:2;width:38px;flex-basis:38px!important;height:36px;border-left:1px solid var(--ct-line)!important;border-radius:0!important;background:transparent!important}
@container collection-toolbar (max-width:680px){
body.index-page .collection-toolbar{grid-template-columns:1fr;grid-template-areas:"title" "actions"}
body.index-page .collection-toolbar-actions{width:100%;justify-content:flex-start!important}
body.index-page .collection-toolbar-search{flex:1;width:auto!important}
}
@container collection-toolbar (max-width:430px){
body.index-page .collection-toolbar{grid-template-columns:minmax(0,1fr) 34px;grid-template-areas:"title close" "search search" "sort sort";gap:9px!important}
body.index-page .collection-toolbar-actions{display:contents!important;border:0;background:none}
body.index-page .collection-toolbar-title{font-size:15px!important;justify-self:start;padding:0;border:0;margin:0!important}
body.index-page .collection-toolbar-label{white-space:normal}
body.index-page .collection-toolbar-search{width:100%!important;height:40px;order:initial;border:1px solid var(--ct-line)!important;border-radius:6px!important}
body.index-page .collection-toolbar-sort{width:100%;height:36px;order:initial;border:1px solid var(--ct-line)!important;border-radius:6px!important}
body.index-page .collection-toolbar-close{order:initial;width:34px;flex-basis:34px!important;border:0!important;border-radius:6px!important}
html:not([data-input-modality="pointer"]) body.index-page .collection-toolbar-actions .collection-toolbar-close:focus-visible{outline:1px solid var(--ui-focus)!important;outline-offset:2px}
body.index-page .collection-toolbar-input{font-size:16px!important}
body.index-page .groups-header{grid-template-columns:minmax(0,1fr) 34px;grid-template-areas:"title close" "search search"}
}
@media(prefers-reduced-motion:reduce){body.index-page .collection-toolbar *{transition:none!important}}

body .badge-viewport-slot { display: flex; flex-direction: column; flex: 0 0 auto; min-height: 0; height: 400px; max-height: 400px; overflow: hidden; }
body .badge-viewport-slot:has(> .has-pagination) { height: 310px; max-height: 310px; }
body .experimental-badges-card .badge-viewport-slot { flex: 1 1 auto; height: min(720px, 75vh); max-height: min(720px, 75vh); }
@media (min-width: 1101px) and (min-height: 760px) { body .experimental-badges-card .badge-viewport-slot { flex: 1 1 0; height: auto; max-height: none; } }
body #allBadgesWrapper[data-row-fit] { overflow-anchor: none; flex: 0 0 auto !important; height: var(--badge-viewport-height) !important; max-height: 100% !important; margin-top: 0; }
