:root {
    color-scheme: dark;
    --bg: #080a0e;
    --surface: #10141b;
    --surface-2: #151b24;
    --surface-3: #1b222d;
    --line: #273140;
    --text: #eef3f8;
    --muted: #94a3b8;
    --accent: #ffc400;
    --accent-2: #7ee787;
    --danger: #ff5f7a;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --type-team: #6ea8ff;
    --type-competition: #ffc400;
    --type-market: #7ee787;
    --type-result: #9f8cff;
    --type-verification: #56d9d2;
    --type-contract: #f59e0b;
    --type-loan: #38bdf8;
    --type-penalty: #ff5f7a;
    --type-venue: #a3e635;
    --type-admin: #ffc400;
}

/* MVP visual polish overrides - final cascade layer */
.profile-chip .avatar {
    display: none;
}

.quick-link-with-image {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 76px;
}

.quick-entity-logo,
.mini-entity-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.mini-entity-logo {
    width: 64px;
    height: 64px;
}

.entity-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.save-primary {
    border-color: rgba(126, 231, 135, 0.58) !important;
    background: linear-gradient(135deg, rgba(126, 231, 135, 0.26), rgba(126, 231, 135, 0.12)) !important;
    color: #effff1 !important;
}

.profile-avatar-status {
    border-width: 5px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.34);
}

.profile-avatar-verified {
    border-color: var(--accent-2);
}

.profile-avatar-registered,
.profile-avatar-verification_pending {
    border-color: var(--type-team);
}

.flag-tile {
    width: 46px;
    height: 34px;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.35rem;
}

.role-pill {
    border-color: rgba(255, 255, 255, 0.12);
}

.role-judge {
    background: rgba(86, 217, 210, 0.18);
    color: var(--type-verification);
}

.role-caster {
    background: rgba(159, 140, 255, 0.18);
    color: var(--type-result);
}

.role-coach {
    background: rgba(126, 231, 135, 0.16);
    color: var(--type-market);
}

.role-manager {
    background: rgba(255, 196, 0, 0.18);
    color: var(--accent);
}

.role-event-organizer {
    background: rgba(110, 168, 255, 0.18);
    color: var(--type-team);
}

.game-id-pill {
    min-height: 52px;
}

.game-icon,
.game-badge {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.game-icon {
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.055);
}

.feed-card {
    padding-left: 44px;
    overflow: visible;
    margin-left: 20px;
}

.feed-post-header {
    grid-template-columns: 1px minmax(0, 1fr);
}

.feed-actor {
    width: 64px;
    height: 64px;
    margin-left: -66px;
    margin-top: -24px;
    border: 4px solid var(--bg);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.feed-type-label {
    left: -18px;
    width: 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.feed-type-mini {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 0 0 0 7px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    color: #071014;
    background: var(--feed-accent, var(--accent));
}

.feed-type-mini .mini-icon {
    position: absolute;
    left: 12px;
    bottom: 11px;
    width: 34px;
    height: 34px;
}

/* Feed visual hard override - must stay last */
.feed-actor {
    width: 96px !important;
    height: 96px !important;
    margin-left: -98px !important;
    margin-top: -36px !important;
    background: #000 !important;
    border: 5px solid #000 !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 4px var(--bg), 0 16px 34px rgba(0, 0, 0, 0.42) !important;
}

.feed-actor img,
.feed-actor span {
    background: #000 !important;
}

.feed-actor img {
    background: #000 !important;
}

.feed-card {
    padding-left: 58px !important;
    margin-left: 34px !important;
    overflow: visible !important;
}

.feed-post-header {
    grid-template-columns: 1px minmax(0, 1fr) !important;
}

.feed-card::before {
    width: 30px !important;
    opacity: 0.30 !important;
}

.feed-card::after {
    left: 29px !important;
    width: 3px !important;
    opacity: 0.9 !important;
}

.feed-type-mini {
    left: 0 !important;
    bottom: 0 !important;
    width: 72px !important;
    height: 72px !important;
    background: var(--feed-accent, var(--accent)) !important;
    color: #05070b !important;
    border: 0 !important;
    clip-path: polygon(0 0, 0 100%, 100% 100%) !important;
}

.feed-type-mini .mini-icon {
    left: 10px !important;
    bottom: 10px !important;
    width: 28px !important;
    height: 28px !important;
    transform: scale(0.78) !important;
    transform-origin: center !important;
}

.contractual-member-picker {
    display: grid;
    gap: 12px;
}

.contractual-member-results {
    display: grid;
    gap: 6px;
}

.contractual-member-results button {
    display: grid;
    gap: 3px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
    text-align: left;
}

.contractual-member-results button:hover {
    border-color: rgba(255, 196, 0, 0.55);
    background: rgba(255, 196, 0, 0.08);
}

.contractual-member-results small,
.selected-user-chip small,
.member-mini-card small {
    color: var(--muted);
}

.contractual-selected-members {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 42px;
}

.selected-user-chip {
    display: inline-grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 8px;
    align-items: center;
    max-width: 100%;
    padding: 8px 10px;
    border: 1px solid rgba(126, 231, 135, 0.35);
    border-radius: 8px;
    background: rgba(126, 231, 135, 0.10);
}

.selected-user-chip strong,
.selected-user-chip small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-user-chip button {
    grid-row: 1 / span 2;
    width: 26px;
    height: 26px;
    padding: 0;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
}

.contractual-member-list {
    display: grid;
    gap: 10px;
}

.member-mini-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.member-mini-profile {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 0;
    color: var(--text);
    text-decoration: none;
}

.member-mini-card:hover {
    border-color: rgba(255, 196, 0, 0.45);
}

.member-mini-avatar {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 2px solid var(--accent-2);
    border-radius: 999px;
    background: #000;
    color: var(--accent);
    font-weight: 900;
    overflow: hidden;
}

.member-mini-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-mini-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invite-status {
    justify-self: end;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 999px;
    padding: 5px 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.invite-status-accepted {
    border-color: rgba(126, 231, 135, 0.45);
    color: #7ee787;
}

.invite-status-rejected,
.invite-status-cancelled {
    border-color: rgba(255, 95, 122, 0.45);
    color: #ff9aae;
}

.invite-status-pending {
    border-color: rgba(255, 196, 0, 0.42);
    color: var(--accent);
}

/* Feed visual correction layer */
.feed-actor {
    width: 96px;
    height: 96px;
    margin-left: -98px;
    margin-top: -36px;
    background: #000;
    border: 5px solid var(--bg);
}

.feed-actor img {
    background: #000;
}

.feed-card {
    padding-left: 58px;
    margin-left: 34px;
}

.feed-post-header {
    grid-template-columns: 1px minmax(0, 1fr);
}

.feed-card::before {
    width: 30px;
    opacity: 0.30;
}

.feed-card::after {
    left: 29px;
    width: 3px;
    opacity: 0.9;
}

.feed-type-mini {
    left: 0;
    bottom: 0;
    width: 86px;
    height: 86px;
    background: var(--feed-accent, var(--accent));
    color: #05070b;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.10) inset;
}

.feed-type-mini .mini-icon {
    left: 14px;
    bottom: 13px;
    width: 40px;
    height: 40px;
    color: currentColor;
}

.feed-type-mini .mini-icon,
.feed-type-mini .mini-icon::before,
.feed-type-mini .mini-icon::after {
    box-sizing: border-box;
}

.feed-type-mini .team-icon::before,
.feed-type-mini .team-icon::after,
.feed-type-mini .competition-icon::before,
.feed-type-mini .competition-icon::after,
.feed-type-mini .market-mini-icon::before,
.feed-type-mini .result-icon::before,
.feed-type-mini .result-icon::after,
.feed-type-mini .verification-icon::before,
.feed-type-mini .contract-icon::before,
.feed-type-mini .contract-icon::after,
.feed-type-mini .loan-icon::before,
.feed-type-mini .loan-icon::after,
.feed-type-mini .penalty-icon::before,
.feed-type-mini .venue-icon::before,
.feed-type-mini .venue-icon::after {
    content: "";
    position: absolute;
}

.feed-type-mini .team-icon::before {
    left: 15px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: -13px 9px 0 -1px currentColor, 13px 9px 0 -1px currentColor;
}

.feed-type-mini .team-icon::after {
    left: 5px;
    bottom: 4px;
    width: 30px;
    height: 16px;
    border: 4px solid currentColor;
    border-top: 0;
    border-radius: 0 0 16px 16px;
}

.feed-type-mini .competition-icon {
    border: 4px solid currentColor;
    border-top-width: 7px;
    border-radius: 5px 5px 12px 12px;
    width: 24px;
    height: 25px;
    left: 8px;
    top: 4px;
}

.feed-type-mini .competition-icon::before {
    left: -11px;
    top: 5px;
    width: 9px;
    height: 10px;
    border: 4px solid currentColor;
    border-right: 0;
    border-radius: 8px 0 0 8px;
}

.feed-type-mini .competition-icon::after {
    right: -11px;
    top: 5px;
    width: 9px;
    height: 10px;
    border: 4px solid currentColor;
    border-left: 0;
    border-radius: 0 8px 8px 0;
}

.feed-type-mini .market-mini-icon {
    width: 34px;
    height: 23px;
    left: 3px;
    top: 11px;
    border: 4px solid currentColor;
    border-radius: 6px;
}

.feed-type-mini .market-mini-icon::before {
    left: 8px;
    top: -12px;
    width: 15px;
    height: 12px;
    border: 4px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.feed-type-mini .result-icon::before {
    left: 5px;
    bottom: 5px;
    width: 6px;
    height: 16px;
    background: currentColor;
    box-shadow: 12px -8px 0 currentColor, 24px -16px 0 currentColor;
    border-radius: 3px 3px 0 0;
}

.feed-type-mini .result-icon::after {
    left: 3px;
    bottom: 3px;
    width: 34px;
    height: 4px;
    background: currentColor;
    border-radius: 4px;
}

.feed-type-mini .verification-icon {
    border: 4px solid currentColor;
    border-radius: 50%;
}

.feed-type-mini .verification-icon::before {
    left: 9px;
    top: 10px;
    width: 17px;
    height: 9px;
    border-left: 5px solid currentColor;
    border-bottom: 5px solid currentColor;
    transform: rotate(-45deg);
}

.feed-type-mini .contract-icon {
    width: 28px;
    height: 34px;
    left: 6px;
    top: 3px;
    border: 4px solid currentColor;
    border-radius: 5px;
}

.feed-type-mini .contract-icon::before {
    left: 5px;
    top: 9px;
    width: 14px;
    height: 4px;
    background: currentColor;
    box-shadow: 0 9px 0 currentColor;
}

.feed-type-mini .contract-icon::after {
    right: -6px;
    bottom: 3px;
    width: 17px;
    height: 5px;
    background: currentColor;
    transform: rotate(-35deg);
    border-radius: 5px;
}

.feed-type-mini .loan-icon::before {
    left: 2px;
    top: 8px;
    width: 30px;
    height: 10px;
    border-top: 5px solid currentColor;
    border-right: 5px solid currentColor;
    transform: skewX(-25deg);
}

.feed-type-mini .loan-icon::after {
    left: 8px;
    bottom: 8px;
    width: 30px;
    height: 10px;
    border-bottom: 5px solid currentColor;
    border-left: 5px solid currentColor;
    transform: skewX(-25deg);
}

.feed-type-mini .penalty-icon {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 36px solid currentColor;
    border-radius: 4px;
}

.feed-type-mini .penalty-icon::before {
    left: -2px;
    top: 13px;
    width: 4px;
    height: 12px;
    background: #05070b;
    box-shadow: 0 16px 0 #05070b;
}

.feed-type-mini .venue-icon::before {
    left: 8px;
    top: 2px;
    width: 25px;
    height: 34px;
    border: 5px solid currentColor;
    border-radius: 18px 18px 18px 4px;
    transform: rotate(45deg);
}

.feed-type-mini .venue-icon::after {
    left: 15px;
    top: 9px;
    width: 10px;
    height: 10px;
    border: 4px solid currentColor;
    border-radius: 50%;
}

.flag-tile img {
    display: block;
    width: 34px;
    height: 24px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28);
}

/* MVP visual polish overrides */
.profile-chip .avatar {
    display: none;
}

.quick-link-with-image {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 76px;
}

.quick-entity-logo,
.mini-entity-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.mini-entity-logo {
    width: 64px;
    height: 64px;
}

.entity-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.save-primary {
    border-color: rgba(126, 231, 135, 0.58) !important;
    background: linear-gradient(135deg, rgba(126, 231, 135, 0.26), rgba(126, 231, 135, 0.12)) !important;
    color: #effff1 !important;
}

.profile-avatar-status {
    border-width: 5px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.34);
}

.profile-avatar-verified {
    border-color: var(--accent-2);
}

.profile-avatar-registered,
.profile-avatar-verification_pending {
    border-color: var(--type-team);
}

.flag-tile {
    width: 46px;
    height: 34px;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.35rem;
}

.role-pill {
    border-color: rgba(255, 255, 255, 0.12);
}

.role-judge {
    background: rgba(86, 217, 210, 0.18);
    color: var(--type-verification);
}

.role-caster {
    background: rgba(159, 140, 255, 0.18);
    color: var(--type-result);
}

.role-coach {
    background: rgba(126, 231, 135, 0.16);
    color: var(--type-market);
}

.role-manager {
    background: rgba(255, 196, 0, 0.18);
    color: var(--accent);
}

.role-event-organizer {
    background: rgba(110, 168, 255, 0.18);
    color: var(--type-team);
}

.game-id-pill {
    min-height: 52px;
}

.game-icon,
.game-badge {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 10px;
}

.game-icon {
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.055);
}

.feed-card {
    padding-left: 44px;
    overflow: visible;
    margin-left: 20px;
}

.feed-post-header {
    grid-template-columns: 1px minmax(0, 1fr);
}

.feed-actor {
    width: 64px;
    height: 64px;
    margin-left: -66px;
    margin-top: -24px;
    border: 4px solid var(--bg);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.35);
}

.feed-type-label {
    left: -18px;
    width: 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.feed-type-mini {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 0 0 0 7px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    color: #071014;
    background: var(--feed-accent, var(--accent));
}

.feed-type-mini .mini-icon {
    position: absolute;
    left: 12px;
    bottom: 11px;
    width: 34px;
    height: 34px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 170px minmax(260px, 480px) 1fr auto auto auto;
    align-items: center;
    gap: 14px;
    min-height: 68px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 10, 14, 0.92);
    backdrop-filter: blur(14px);
}

.brand,
.topnav,
.account-menu {
    display: flex;
    align-items: center;
}

.account-menu {
    gap: 8px;
}

.account-menu form {
    margin: 0;
}

.profile-dropdown {
    position: relative;
}

.profile-dropdown summary {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    list-style: none;
    background: #0b0f15;
}

.profile-dropdown summary::-webkit-details-marker {
    display: none;
}

.profile-dropdown summary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-dropdown-initials {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #071014;
    background: linear-gradient(135deg, var(--accent), #ffe083);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0;
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    display: grid;
    min-width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.profile-dropdown-menu a,
.profile-dropdown-menu button {
    display: flex;
    align-items: center;
    gap: 9px;
    justify-content: flex-start;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.dropdown-menu-icon {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

.profile-dropdown-menu a:hover,
.profile-dropdown-menu button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.profile-dropdown-menu a.is-disabled {
    cursor: not-allowed;
    opacity: 0.76;
}

.profile-dropdown-menu a.danger-link {
    color: #ffb8b8;
    background: rgba(255, 95, 122, 0.08);
}

.profile-dropdown-menu a.danger-link:hover {
    background: rgba(255, 95, 122, 0.12);
}

.profile-dropdown-menu .logout-form {
    margin: 22px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-dropdown-menu .logout-form button {
    border-color: rgba(255, 95, 122, 0.35);
    background: rgba(255, 95, 122, 0.08);
    color: #ffd5dd;
}

.profile-dropdown-menu .logout-form button:hover {
    border-color: rgba(255, 95, 122, 0.7);
    background: rgba(255, 95, 122, 0.16);
}

.profile-dropdown-menu .verification-menu-link {
    margin-top: 12px;
    padding-top: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
    gap: 10px;
    font-weight: 800;
}

.brand img {
    display: block;
    width: 148px;
    height: auto;
    object-fit: contain;
}

.brand-mark,
.avatar {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), #ffdd5c);
    color: #061016;
    font-weight: 900;
}

.topnav {
    justify-content: center;
    gap: 10px;
}

.quick-links a {
    padding: 9px 12px;
    border-radius: 7px;
    color: var(--muted);
}

.quick-links a:hover {
    background: var(--surface-3);
    color: var(--text);
}

.nav-icon-link {
    display: grid;
    grid-template-rows: 27px auto;
    gap: 4px;
    place-items: center;
    min-width: 76px;
    min-height: 54px;
    padding: 7px 9px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--muted);
    text-align: center;
}

.nav-icon-link:hover {
    border-color: var(--line);
    background: var(--surface-3);
    color: var(--accent);
}

.nav-icon {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
}

.nav-icon-label {
    display: block;
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    color: inherit;
}

.home-icon {
    width: 20px;
    height: 20px;
}

.home-icon::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 7px;
    width: 16px;
    height: 11px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
}

.home-icon::after {
    content: "";
    position: absolute;
    left: 3px;
    top: 2px;
    width: 14px;
    height: 14px;
    border-left: 2px solid currentColor;
    border-top: 2px solid currentColor;
    transform: rotate(45deg);
    border-radius: 2px 0 0 0;
}

.calendar-icon {
    border: 2px solid currentColor;
    border-radius: 4px;
}

.calendar-icon::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: 5px;
    border-top: 2px solid currentColor;
}

.calendar-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: -4px;
    width: 8px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
}

.market-icon {
    border: 2px solid currentColor;
    border-radius: 6px;
}

.market-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    top: -7px;
    height: 8px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.market-icon::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 8px;
    width: 8px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.global-search {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 42px;
    border: 1px solid #2d3645;
    border-radius: 8px;
    background: #0d1118;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.global-search > span {
    display: grid;
    place-items: center;
    color: var(--accent);
    font-weight: 900;
}

.global-search input {
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 12px 10px 0;
}

.global-search input::placeholder {
    color: #64748b;
}

.search-popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0d1118;
    box-shadow: var(--shadow);
}

.global-search:focus-within .search-popover {
    display: grid;
    gap: 6px;
}

.search-popover a {
    display: grid;
    gap: 2px;
    padding: 10px;
    border-radius: 7px;
}

.search-popover a:hover {
    background: var(--surface-2);
}

.search-popover small {
    color: var(--muted);
}

.search-empty {
    display: block;
    padding: 12px 14px;
    color: var(--muted);
    font-size: 0.85rem;
}

.account-menu button,
.account-menu a,
.icon-button,
.feed-card button,
.profile-main button,
.search-form button,
.button-row button,
.form-section button,
.stack-form button {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
}

.icon-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
}

.report-quick-button {
    color: var(--accent);
}

.bug-icon {
    width: 21px;
    height: 21px;
}

.icon-button.has-alert::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 8px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--surface-2);
    border-radius: 999px;
    background: var(--danger);
}

.locale-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0d1118;
}

.locale-switcher a {
    min-width: 34px;
    padding: 6px 8px;
    border-radius: 5px;
    color: var(--muted);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 800;
}

.locale-switcher a:hover,
.locale-switcher a.is-active {
    background: var(--accent);
    color: #061016;
}

.mail-icon {
    position: relative;
    width: 18px;
    height: 14px;
    border: 2px solid var(--muted);
    border-radius: 3px;
}

.mail-icon::before,
.mail-icon::after {
    content: "";
    position: absolute;
    top: 2px;
    width: 10px;
    height: 2px;
    background: var(--muted);
}

.mail-icon::before {
    left: 0;
    transform: rotate(36deg);
    transform-origin: left center;
}

.mail-icon::after {
    right: 0;
    transform: rotate(-36deg);
    transform-origin: right center;
}

.account-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
}

.button-like {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface-2);
    color: var(--text);
}

.button-like.is-disabled {
    opacity: 0.55;
    pointer-events: none;
}

.button-like.provider-connected {
    opacity: 1;
    cursor: default;
    color: #8ff0b2;
    border-color: rgba(74, 222, 128, 0.48);
    background: rgba(22, 101, 52, 0.2);
}

.account-email-field,
.account-email-field:disabled {
    color: var(--muted);
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.28);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.form-actions-right {
    justify-content: flex-end;
}

.notification-center {
    position: relative;
}

.notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 900;
    line-height: 1;
}

.notification-count.is-hidden {
    display: none;
}

.notification-popover {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 40;
    width: min(330px, 82vw);
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
}

.notification-popover strong {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 0.9rem;
}

.notification-popover p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.notification-popover a {
    color: var(--text);
    font-weight: 800;
}

.competition-submit-actions {
    grid-column: 1 / -1;
}

.competition-submit-actions button {
    min-width: 180px;
    padding: 14px 22px;
    font-size: 1rem;
}

.competition-submit-actions button[value="draft"] {
    border-color: rgba(255, 204, 0, 0.72);
    color: var(--accent);
}

.competition-submit-actions button[value="publish"] {
    color: #bbf7d0;
    border-color: rgba(34, 197, 94, 0.78);
    background: rgba(34, 197, 94, 0.16);
}

.datetime-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 10px;
}

@media (max-width: 640px) {
    .datetime-pair {
        grid-template-columns: 1fr;
    }
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.stat-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.38);
    color: var(--text);
    text-decoration: none;
}

.stat-card strong {
    color: var(--accent);
    font-size: 1.3rem;
}

.stat-card:hover {
    border-color: var(--accent);
}

.admin-review-card {
    grid-template-columns: auto 1fr auto;
}

.admin-review-card-copy {
    display: grid;
    gap: 2px;
}

.admin-review-card-button {
    pointer-events: none;
    white-space: nowrap;
}

.external-account-review {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    width: 100%;
}

.admin-review-queue-compact {
    width: min(100%, 760px);
    margin-inline: auto;
}

.external-account-review-card {
    grid-template-columns: 1fr;
    padding: 18px;
}

.external-account-review-summary,
.external-account-review-decision {
    display: grid;
    gap: 14px;
}

.external-account-review-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.external-account-review-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 20px;
    margin: 0;
}

.external-account-review-meta > div {
    min-width: 0;
    padding-bottom: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.external-account-review-reason {
    padding: 10px 0 10px 14px;
    border-left: 2px solid var(--accent);
}

.external-account-review-meta dt,
.external-account-review-reason > span {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.external-account-review-meta dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
}

.external-account-review-reason p {
    margin: 7px 0 0;
    color: var(--text);
}

.external-account-review-decision label {
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.external-account-review-decision textarea {
    width: 100%;
    min-width: 0;
    min-height: 54px;
    padding: 8px 2px;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    resize: vertical;
}

.external-account-review-decision textarea:focus {
    outline: 0;
    border-bottom-color: var(--accent);
}

.external-account-review-decision .button-row {
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .external-account-review-meta {
        grid-template-columns: 1fr;
    }

    .admin-review-queue-compact {
        width: 100%;
    }
}

.profile-secondary-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.admin-role-tools {
    display: grid;
    gap: 10px;
    min-width: 240px;
}

.admin-role-tools form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.alert {
    margin: 12px 0;
    padding: 10px 12px;
    border-radius: 7px;
    border: 1px solid var(--line);
}

.alert-error {
    border-color: rgba(255, 95, 122, 0.36);
    background: rgba(255, 95, 122, 0.08);
    color: #ffd5dd;
}

.alert-success {
    border-color: rgba(126, 231, 135, 0.35);
    background: rgba(126, 231, 135, 0.08);
    color: #d9ffe1;
}

.danger-zone {
    border-color: rgba(255, 95, 122, 0.32);
    background:
        linear-gradient(135deg, rgba(255, 95, 122, 0.08), rgba(255, 255, 255, 0.015) 45%),
        var(--surface);
}

.danger-zone form {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.danger-zone label {
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.danger-zone input {
    width: 100%;
    border: 1px solid rgba(255, 95, 122, 0.34);
    border-radius: 7px;
    padding: 10px 12px;
    background: #0b0f15;
    color: var(--text);
}

.danger-button {
    justify-self: start;
    border-color: rgba(255, 95, 122, 0.62) !important;
    background: rgba(255, 95, 122, 0.14) !important;
    color: #ffd5dd !important;
}

.danger-button:hover {
    background: rgba(255, 95, 122, 0.22) !important;
}

.panel-danger-soft {
    border-color: rgba(255, 95, 122, 0.36);
    background: linear-gradient(180deg, rgba(255, 95, 122, 0.08), rgba(18, 24, 32, 0.9));
}

.success-button {
    justify-self: start;
    border-color: rgba(126, 231, 135, 0.62) !important;
    background: rgba(126, 231, 135, 0.14) !important;
    color: #d7ffdc !important;
}

.success-button:hover {
    background: rgba(126, 231, 135, 0.22) !important;
}

.micro-button {
    min-height: 0;
    padding: 6px 9px;
    font-size: 12px;
}

.inline-form {
    display: inline-flex;
    margin: 0;
}

.form-note {
    margin: 0;
    color: var(--muted);
}

.form-note a {
    color: var(--accent);
}

.shell {
    width: min(1460px, calc(100% - 32px));
    margin: 30px auto 56px;
}

.app-grid {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.side-panel,
.panel,
.feed-card,
.event-card,
.profile-hero {
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0)),
        var(--surface);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.18);
}

.side-panel,
.panel {
    padding: 20px;
}

.profile-chip {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sidebar-user-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
    padding: 10px;
    border: 1px solid rgba(151, 164, 190, 0.18);
    border-radius: 8px;
    background: rgba(6, 10, 16, 0.40);
    color: var(--text);
    text-decoration: none;
}

.sidebar-user-card:hover {
    border-color: rgba(255, 196, 0, 0.34);
    background: rgba(255, 196, 0, 0.06);
}

.sidebar-user-avatar {
    width: 52px;
    height: 52px;
    min-width: 52px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
    color: var(--accent);
    font-weight: 900;
    border: 2px solid var(--avatar-frame-registered, #6ea8ff);
}

.sidebar-user-avatar.avatar-frame-admin {
    border-color: var(--avatar-frame-admin, #ffc400);
}

.sidebar-user-avatar.avatar-frame-verified {
    border-color: var(--avatar-frame-verified, #7ee787);
}

.sidebar-user-avatar.avatar-frame-registered {
    border-color: var(--avatar-frame-registered, #6ea8ff);
}

.sidebar-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border-radius: 50%;
}

.sidebar-user-copy {
    min-width: 0;
}

.sidebar-user-copy strong,
.sidebar-user-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy small {
    margin-top: 3px;
    color: var(--muted);
}

.sidebar-user-copy .sidebar-user-private {
    opacity: 0.72;
}

.profile-social-grid {
    margin-top: 20px;
}

.profile-connection-grid,
.follow-entity-list {
    display: grid;
    gap: 10px;
}

.connection-card,
.follow-entity-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(151, 164, 190, 0.16);
    border-radius: 8px;
    background: rgba(6, 10, 16, 0.34);
    color: var(--text);
    text-decoration: none;
}

.connection-card:hover,
.follow-entity-card:hover {
    border-color: rgba(255, 196, 0, 0.34);
    background: rgba(255, 196, 0, 0.06);
}

.connection-avatar,
.follow-entity-card img {
    width: 52px;
    height: 52px;
    min-width: 52px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
}

.connection-avatar {
    display: grid;
    place-items: center;
    border: 2px solid var(--avatar-frame-registered, #6ea8ff);
}

.connection-avatar.avatar-frame-admin {
    border-color: var(--avatar-frame-admin, #ffc400);
}

.connection-avatar.avatar-frame-verified {
    border-color: var(--avatar-frame-verified, #7ee787);
}

.connection-avatar img,
.follow-entity-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
    border-radius: 50%;
}

.connection-card strong,
.connection-card small,
.follow-entity-card strong,
.follow-entity-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.connection-card small,
.follow-entity-card small {
    margin-top: 3px;
    color: var(--muted);
}

.follow-group {
    display: grid;
    gap: 9px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(151, 164, 190, 0.14);
}

.follow-group:first-of-type {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.notification-list {
    gap: 10px;
}

.notification-card {
    padding: 12px 14px;
}

.notification-card h2 {
    margin: 6px 0 4px;
    font-size: 18px;
}

.notification-card p {
    margin: 4px 0 0;
}

.audit-list {
    display: grid;
    gap: 10px;
}

.audit-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.025);
}

.audit-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.audit-ok {
    border-color: rgba(85, 255, 154, 0.45);
    background: rgba(85, 255, 154, 0.06);
}

.audit-info {
    border-color: rgba(118, 176, 255, 0.35);
}

.audit-warning {
    border-color: rgba(255, 196, 0, 0.48);
    background: rgba(255, 196, 0, 0.055);
}

.audit-error {
    border-color: rgba(255, 95, 122, 0.52);
    background: rgba(255, 95, 122, 0.06);
}

.compact-list {
    margin: 12px 0;
}

.inline-danger-form {
    margin-top: 14px;
    border-top: 1px solid var(--border);
    padding-top: 14px;
}

.bracket-board {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 16px;
    align-items: start;
}

.bracket-tree {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    padding: 10px 4px 18px;
    scrollbar-color: rgba(255, 196, 0, 0.45) rgba(255, 255, 255, 0.06);
}

.bracket-round {
    min-width: 320px;
    display: flex;
    flex-direction: column;
}

.bracket-round h3 {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 13px;
    text-transform: uppercase;
}

.bracket-round-matches {
    display: flex;
    flex-direction: column;
    gap: 26px;
    justify-content: space-around;
    height: 100%;
}

.bracket-round:not(:last-child) .bracket-match-card::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -29px;
    width: 29px;
    border-top: 2px solid rgba(148, 163, 184, 0.38);
}

.bracket-match-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(53, 140, 255, 0.08), transparent 34%, transparent 66%, rgba(255, 78, 92, 0.08)),
        rgba(15, 20, 27, 0.92);
    padding: 14px;
    box-shadow: 0 18px 32px rgba(0, 0, 0, 0.22);
}

.bracket-match-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 13px;
}

.bracket-match-head span {
    color: var(--accent);
    font-weight: 900;
    text-transform: uppercase;
}

.bracket-match-head em {
    font-style: normal;
}

.bracket-versus {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.bracket-side {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    min-height: 62px;
    padding: 9px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.035);
    cursor: pointer;
}

.bracket-side img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.bracket-side strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bracket-side span {
    min-width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.26);
}

.bracket-blue {
    border-color: rgba(53, 140, 255, 0.38);
}

.bracket-red {
    border-color: rgba(255, 78, 92, 0.38);
}

.bracket-blue.is-winner {
    box-shadow: inset 4px 0 0 #358cff;
    background: rgba(53, 140, 255, 0.13);
}

.bracket-red.is-winner {
    box-shadow: inset -4px 0 0 #ff4e5c;
    background: rgba(255, 78, 92, 0.13);
}

.bracket-side.is-selected {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.bracket-vs {
    align-self: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0;
}

.bracket-score-inputs label {
    font-size: 12px;
    color: var(--muted);
}

@media (max-width: 760px) {
    .bracket-board {
        grid-template-columns: 1fr;
    }

    .bracket-versus {
        grid-template-columns: 1fr;
    }

    .bracket-vs {
        text-align: center;
    }

    .bracket-round:not(:last-child) .bracket-match-card::after {
        display: none;
    }
}

.compact-agreement-preview {
    max-height: 360px;
    overflow: auto;
}

.contractual-agreement-document {
    white-space: pre-wrap;
    line-height: 1.55;
    max-height: none;
    overflow: visible;
    border-color: rgba(255, 196, 0, 0.32);
    background: rgba(3, 7, 13, 0.72);
}

@media print {
    body {
        background: #fff;
        color: #111;
    }

    body > *:not(main),
    .site-shell > aside,
    .topbar,
    .button-row,
    .content-grid {
        display: none !important;
    }

    .panel {
        border: 0;
        box-shadow: none;
    }

    .contractual-agreement-document {
        color: #111;
        background: #fff;
        border: 0;
        font-size: 12pt;
    }
}

.profile-chip span,
.feed-card__meta,
.feed-card__actions,
.page-heading p,
.event-card p,
.profile-main p {
    color: var(--muted);
}

.feed-load-sentinel {
    display: grid;
    place-items: center;
    min-height: 72px;
    color: var(--muted);
    font-size: 0.92rem;
}

.feed-load-sentinel.is-loading span::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-top-color: var(--accent);
    border-radius: 50%;
    vertical-align: -0.12em;
    animation: spin 0.8s linear infinite;
}

.feed-load-sentinel.is-done {
    display: none;
}

.feed-load-sentinel.is-error span {
    color: #ff8fa3;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.quick-links {
    display: grid;
    gap: 4px;
    margin-top: 22px;
}

.quick-links-grouped {
    gap: 14px;
}

.quick-link-section {
    display: grid;
    gap: 7px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

.quick-link-section-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.quick-link-section-compact p {
    grid-column: 1 / -1;
}

.quick-links a.quick-link-icon-only {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 204, 0, 0.28);
    background: rgba(255, 204, 0, 0.035);
    color: var(--muted);
}

.quick-links a.quick-link-icon-only:hover {
    border-color: rgba(255, 204, 0, 0.75);
    color: var(--accent);
}

.quick-link-menu-icon {
    width: 23px;
    height: 23px;
}

.quick-link-icon-only span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.quick-link-section:first-child {
    padding-top: 0;
    border-top: 0;
}

.quick-link-section p {
    margin: 0 0 2px;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.feed-filter-panel {
    display: grid;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.side-heading {
    display: grid;
    gap: 2px;
}

.side-heading span {
    color: var(--text);
    font-weight: 800;
}

.side-heading small {
    color: var(--muted);
}

.feed-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feed-filter {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0;
    background: #0d1118;
    color: var(--feed-accent, var(--accent));
    cursor: pointer;
}

.feed-filter:hover {
    border-color: #3a4556;
    background: var(--surface-2);
}

.feed-filter:not(.is-active) {
    opacity: 1;
}

.feed-filter:not(.is-active) .feed-filter-icon {
    background: #151a22;
    color: #667085;
}

.feed-filter:not(.is-active) {
    border-color: #202734;
    background: #0a0d13;
}

.feed-filter-icon {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 7px;
}

.feed-column,
.timeline-list {
    display: grid;
    gap: 16px;
}

.feed-list {
    display: grid;
    gap: 16px;
}

.page-heading h1,
.profile-main h1 {
    margin: 4px 0 8px;
    line-height: 1.1;
}

.beta-hero {
    display: grid;
    grid-template-columns: 58px 1fr;
    align-items: center;
    gap: 16px;
}

.beta-hero img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.beta-note {
    max-width: 760px;
    margin: 4px 0 0;
    font-size: 0.95rem;
}

.eyebrow {
    margin: 0;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.feed-card {
    display: block;
    padding: 16px 18px 14px 30px;
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.feed-actor {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #1c2633;
    color: var(--accent);
    font-weight: 900;
}

.feed-actor {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.feed-actor:hover {
    border-color: rgba(255, 196, 0, 0.55);
    transform: translateY(-1px);
}

.feed-post-header {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.feed-post-meta {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.feed-post-meta strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-post-meta strong a:hover {
    color: var(--accent);
}

.feed-post-meta span {
    color: var(--muted);
    font-size: 0.82rem;
}

.feed-post-body {
    display: grid;
    grid-template-rows: 1fr auto;
    min-height: 142px;
    padding-left: 0;
}

.feed-actor img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 22px;
    background: var(--feed-accent, var(--accent));
    opacity: 0.18;
}

.feed-card::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 21px;
    width: 2px;
    background: var(--feed-accent, var(--accent));
    opacity: 0.75;
}

.feed-type-label {
    position: absolute;
    left: 2px;
    top: 50%;
    z-index: 1;
    width: 18px;
    color: var(--feed-accent, var(--accent));
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.08;
    text-align: center;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: translateY(-50%) rotate(180deg);
}

.feed-card.is-hidden {
    display: none;
}

.is-hidden {
    display: none !important;
}

.feed-type-team_update {
    --feed-accent: var(--type-team);
}

.feed-type-team_update.feed-card {
    border-color: rgba(110, 168, 255, 0.28);
    background:
        linear-gradient(115deg, rgba(110, 168, 255, 0.11), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-competition {
    --feed-accent: var(--type-competition);
}

.feed-type-competition.feed-card {
    border-color: rgba(255, 196, 0, 0.30);
    background:
        linear-gradient(115deg, rgba(255, 196, 0, 0.12), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-market {
    --feed-accent: var(--type-market);
}

.feed-type-market.feed-card {
    border-color: rgba(126, 231, 135, 0.27);
    background:
        linear-gradient(115deg, rgba(126, 231, 135, 0.10), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-result {
    --feed-accent: var(--type-result);
}

.feed-type-result.feed-card {
    border-color: rgba(159, 140, 255, 0.28);
    background:
        linear-gradient(115deg, rgba(159, 140, 255, 0.10), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-verification {
    --feed-accent: var(--type-verification);
}

.feed-type-verification.feed-card {
    border-color: rgba(86, 217, 210, 0.28);
    background:
        linear-gradient(115deg, rgba(86, 217, 210, 0.10), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-contract {
    --feed-accent: var(--type-contract);
}

.feed-type-contract.feed-card {
    border-color: rgba(245, 158, 11, 0.26);
    background:
        linear-gradient(115deg, rgba(245, 158, 11, 0.09), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-loan {
    --feed-accent: var(--type-loan);
}

.feed-type-loan.feed-card {
    border-color: rgba(56, 189, 248, 0.26);
    background:
        linear-gradient(115deg, rgba(56, 189, 248, 0.09), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-penalty {
    --feed-accent: var(--type-penalty);
}

.feed-type-penalty.feed-card {
    border-color: rgba(255, 95, 122, 0.27);
    background:
        linear-gradient(115deg, rgba(255, 95, 122, 0.09), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-venue {
    --feed-accent: var(--type-venue);
}

.feed-type-venue.feed-card {
    border-color: rgba(163, 230, 53, 0.24);
    background:
        linear-gradient(115deg, rgba(163, 230, 53, 0.08), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-type-admin {
    --feed-accent: var(--type-admin);
}

.feed-type-admin.feed-card {
    border-color: rgba(255, 196, 0, 0.34);
    background:
        linear-gradient(115deg, rgba(255, 196, 0, 0.13), rgba(255, 255, 255, 0.015) 44%),
        var(--surface);
}

.feed-card .feed-icon,
.feed-filter-icon {
    background: rgba(255, 255, 255, 0.045);
    color: var(--feed-accent, var(--accent));
}

.mini-icon {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}

.team-icon::before,
.team-icon::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: currentColor;
}

.team-icon::before {
    left: 2px;
    top: 2px;
    width: 7px;
    height: 7px;
    box-shadow: 9px 0 0 currentColor;
}

.team-icon::after {
    left: 1px;
    bottom: 3px;
    width: 18px;
    height: 8px;
    border-radius: 8px 8px 4px 4px;
    clip-path: polygon(0 100%, 12% 20%, 42% 0, 58% 0, 88% 20%, 100% 100%);
}

.competition-icon {
    border: 2px solid currentColor;
    border-top-width: 5px;
    border-radius: 4px 4px 8px 8px;
}

.competition-icon::before,
.competition-icon::after {
    content: "";
    position: absolute;
    border: 2px solid currentColor;
}

.competition-icon::before {
    left: -7px;
    top: 3px;
    width: 6px;
    height: 6px;
    border-right: 0;
    border-radius: 5px 0 0 5px;
}

.competition-icon::after {
    left: 5px;
    bottom: -5px;
    width: 6px;
    height: 5px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
}

.market-mini-icon {
    border: 2px solid currentColor;
    border-radius: 5px;
    height: 16px;
    margin-top: 4px;
}

.market-mini-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    right: 5px;
    top: -5px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
}

.result-icon::before,
.result-icon::after {
    content: "";
    position: absolute;
    left: 2px;
    right: 2px;
    height: 3px;
    border-radius: 999px;
    background: currentColor;
}

.result-icon::before {
    top: 5px;
    box-shadow: 0 6px 0 currentColor;
}

.result-icon::after {
    top: 2px;
    left: 5px;
    width: 4px;
    height: 16px;
    box-shadow: 8px 0 0 currentColor;
}

.verification-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
}

.verification-icon::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 4px;
    width: 8px;
    height: 5px;
    border-left: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

.contract-icon {
    border: 2px solid currentColor;
    border-radius: 3px;
}

.contract-icon::before,
.contract-icon::after {
    content: "";
    position: absolute;
    left: 4px;
    right: 4px;
    height: 2px;
    background: currentColor;
}

.contract-icon::before {
    top: 6px;
    box-shadow: 0 5px 0 currentColor;
}

.contract-icon::after {
    right: 3px;
    bottom: 2px;
    left: auto;
    width: 6px;
    transform: rotate(-35deg);
}

.loan-icon::before,
.loan-icon::after {
    content: "";
    position: absolute;
    top: 5px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.loan-icon::before {
    left: 0;
}

.loan-icon::after {
    right: 0;
}

.penalty-icon {
    border: 2px solid currentColor;
    border-radius: 999px;
}

.penalty-icon::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 2px;
    height: 9px;
    background: currentColor;
    box-shadow: 0 12px 0 currentColor;
}

.venue-icon::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 12px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 9px 9px 9px 2px;
    transform: rotate(45deg);
}

.venue-icon::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 5px;
    width: 4px;
    height: 4px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.feed-card p {
    margin: 14px 0 12px;
    color: var(--text);
}

.feed-card p a {
    color: var(--text);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 196, 0, 0.42);
    text-underline-offset: 3px;
}

.feed-card p a:hover {
    color: var(--accent);
}

.feed-card .feed-entity {
    font-weight: 800;
    text-decoration-color: currentColor;
}

.feed-card .feed-entity-player {
    color: #9fc5ff;
}

.feed-card .feed-entity-team {
    color: #8ee5b0;
}

.feed-card .feed-entity-organization {
    color: #d3b5ff;
}

.feed-card .feed-entity-competition {
    color: #ffd76a;
}

.feed-card .feed-entity-venue {
    color: #b6e66d;
}

.feed-result-podium {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 8px;
    width: min(100%, 620px);
    margin: 10px auto 16px;
}

.feed-podium-place {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 9px 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 7px 7px 3px 3px;
    background: rgba(8, 13, 20, 0.72);
    text-decoration: none;
}

.feed-podium-place.is-first {
    min-height: 72px;
    border-color: rgba(255, 196, 0, 0.48);
    background: linear-gradient(180deg, rgba(255, 196, 0, 0.14), rgba(8, 13, 20, 0.78));
}

.feed-podium-place.is-second {
    border-color: rgba(203, 213, 225, 0.36);
}

.feed-podium-place.is-third {
    border-color: rgba(205, 127, 50, 0.42);
}

.feed-podium-rank {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.14);
    color: #dbe5f3;
    font-size: 0.76rem;
    font-weight: 900;
}

.feed-podium-place.is-first .feed-podium-rank {
    background: #ffc400;
    color: #151000;
}

.feed-podium-place.is-third .feed-podium-rank {
    background: rgba(205, 127, 50, 0.25);
    color: #efbd87;
}

.feed-podium-place strong {
    min-width: 0;
    overflow: hidden;
    font-size: 0.82rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-podium-place:hover {
    filter: brightness(1.12);
}

.feed-media {
    position: relative;
    display: block;
    width: fit-content;
    max-width: min(100%, 560px);
    overflow: hidden;
    margin: 10px auto 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #070a0f;
}

.feed-media[href*="youtube.com"]::after,
.feed-media[href*="youtu.be"]::after {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 58px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #ff0033;
    color: #fff;
    content: "▶";
    font-size: 1.3rem;
    transform: translate(-50%, -50%);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.feed-media img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

@media (max-width: 680px) {
    .feed-result-podium {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .feed-podium-place,
    .feed-podium-place.is-first {
        min-height: 48px;
    }

    .feed-podium-place.is-first {
        order: -1;
    }
}

.feed-card__meta,
.feed-card__actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    font-size: 0.9rem;
}

.feed-card__actions {
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.feed-action-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.reaction-form {
    margin: 0;
}

.feed-type-mini {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 7px;
    color: var(--feed-accent, var(--accent));
    background: rgba(255, 255, 255, 0.04);
}

.feed-card button,
.profile-main button,
.search-form button,
.button-row button,
.form-section button,
.stack-form button {
    padding: 8px 12px;
}

.reaction-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 48px;
    justify-content: center;
    padding: 5px 9px;
    background: transparent;
}

.reaction-button:hover {
    border-color: rgba(255, 196, 0, 0.45);
    color: var(--accent);
}

.reaction-button.is-active {
    border-color: rgba(255, 196, 0, 0.55);
    color: var(--accent);
    background: rgba(255, 196, 0, 0.1);
}

button.is-active {
    border-color: rgba(255, 196, 0, 0.55);
    color: var(--accent);
}

.thumb-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.event-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 18px;
    padding: 18px;
}

.event-date {
    color: var(--accent-2);
    font-weight: 800;
}

.calendar-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.calendar-month h2 {
    margin: 0 0 14px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.calendar-weekdays {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 132px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
    overflow: hidden;
}

.calendar-day.is-empty {
    opacity: 0.35;
}

.calendar-day.is-today {
    border-color: rgba(255, 196, 0, 0.45);
}

.calendar-day strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
}

.calendar-event {
    display: block;
    padding: 5px 6px;
    margin-top: 4px;
    border-left: 2px solid var(--accent);
    border-radius: 5px;
    background: rgba(255, 196, 0, 0.08);
    color: var(--text);
    font-size: 0.84rem;
    line-height: 1.25;
}

.calendar-event small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.calendar-event.is-game-highlight {
    border-left-width: 4px;
    border-color: rgba(255, 196, 0, 0.95);
    background: linear-gradient(90deg, rgba(255, 196, 0, 0.22), rgba(255, 196, 0, 0.08));
    box-shadow: 0 0 0 1px rgba(255, 196, 0, 0.35), 0 10px 24px rgba(255, 196, 0, 0.12);
}

.calendar-event.is-gamein-official {
    border-left-color: #2fbf71;
    background: rgba(47, 191, 113, 0.12);
}

.calendar-event.is-series-school_cup {
    border-left-color: #4f8cff;
    background: rgba(79, 140, 255, 0.12);
}

.calendar-event.is-series-gamein_open {
    border-left-color: #ffc400;
    background: rgba(255, 196, 0, 0.13);
}

.calendar-event-badge {
    display: inline-flex;
    margin-top: 4px;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 9px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--accent);
    font-size: 0.84rem;
}

.profile-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
}

.profile-banner {
    position: relative;
    height: 280px;
    background:
        linear-gradient(90deg, rgba(255, 196, 0, 0.25), rgba(126, 231, 135, 0.12)),
        linear-gradient(135deg, #18202d, #0b0f15);
    background-position: center;
    background-size: cover;
}

.profile-main {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 18px;
    align-items: center;
    padding: 20px;
    margin-top: 0;
    background: rgba(8, 11, 16, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-country {
    display: grid;
    justify-items: center;
    gap: 3px;
    min-width: 68px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.profile-country.flag-only {
    min-width: 44px;
    width: 44px;
    height: 38px;
    padding: 0;
    place-items: center;
}

.profile-country span {
    font-size: 1.55rem;
    line-height: 1;
}

.profile-inline-flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 22px;
    margin-right: 10px;
    vertical-align: 2px;
    font-size: 1.15rem;
    line-height: 1;
}

.profile-country small {
    max-width: 84px;
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1.15;
    text-align: center;
}

.avatar-large {
    width: 84px;
    height: 84px;
    border: 4px solid var(--surface);
    border-radius: 12px;
}

.avatar-photo {
    display: block;
    object-fit: cover;
    background: transparent;
}

.team-logo {
    background: #05070b;
    padding: 10px;
}

.profile-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.role-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: #263142;
    color: var(--accent);
    font-size: 0.62rem;
    font-weight: 900;
}

.role-icon::before {
    content: "R";
}

.role-judge::before {
    content: "J";
}

.role-caster::before {
    content: "C";
}

.role-coach::before {
    content: "CO";
}

.role-manager::before {
    content: "M";
}

.role-event-organizer::before {
    content: "EO";
}

.pill-icon,
.flag-icon,
.game-badge {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
}

.game-badge {
    padding: 0 6px;
    border-radius: 5px;
    background: rgba(255, 196, 0, 0.13);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 900;
}

.form-help {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.profile-linked-provider .button-like {
    margin-top: 12px;
}

.poster-image {
    width: 100%;
    object-fit: cover;
}

.venue-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.venue-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
}

.venue-google-results {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.venue-google-result {
    display: grid;
    gap: 4px;
    width: 100%;
    padding: 12px 14px;
    text-align: left;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
}

.venue-google-result:hover {
    border-color: rgba(255, 193, 7, 0.55);
    background: rgba(255, 193, 7, 0.06);
}

.venue-google-result small {
    color: var(--muted);
}

.venue-edit-thumb {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
}

.venue-edit-banner {
    width: 100%;
    max-height: 180px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
}

.venue-edit-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.venue-edit-photo {
    display: grid;
    gap: 8px;
}

.venue-edit-photo img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.venue-info-list {
    display: grid;
    gap: 14px;
}

.venue-info-item {
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.venue-info-item h3 {
    margin: 0 0 6px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.venue-info-item p {
    margin: 0;
}

.history-list {
    display: grid;
    gap: 10px;
    margin: 16px 0 0;
    padding-left: 20px;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 18px;
}

.search-form input {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    background: #0b0f15;
    color: var(--text);
}

.catalog-search-form {
    max-width: 760px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.catalog-card {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 78px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel-bg);
    color: var(--text);
    text-decoration: none;
}

.catalog-card:hover {
    border-color: rgba(255, 196, 0, 0.55);
}

.entity-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.entity-card-link:hover {
    border-color: rgba(255, 196, 0, 0.55);
}

.entity-card-link h2 {
    color: var(--text);
}

.entity-card-link:hover h2 {
    color: var(--accent);
}

.catalog-card-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.catalog-card-copy small {
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-catalog-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.school-catalog-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 104px;
    padding: 14px;
}

.school-catalog-card .catalog-card-copy {
    min-width: 0;
}

.school-catalog-card strong,
.school-catalog-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.school-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
}

.load-more-row {
    display: flex;
    justify-content: center;
    margin: 22px 0 0;
}

.catalog-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.catalog-filter-row a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0b0f15;
    color: var(--muted);
    text-decoration: none;
}

.catalog-filter-row a:hover,
.catalog-filter-row a.is-active {
    border-color: rgba(255, 196, 0, 0.7);
    color: var(--text);
}

.catalog-filter-row img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.calendar-filter-row {
    margin-top: 18px;
}

.profile-bio {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--text);
    line-height: 1.55;
}

.content-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.content-grid > *,
.competition-entry-list,
.competition-entry-list > li {
    min-width: 0;
}

.competition-detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: start;
}

.form-grid-narrow {
    align-items: start;
}

.competition-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 22px;
}

.competition-hero h1 {
    margin: 5px 0 8px;
}

.competition-hero-polished {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 12%, rgba(255, 196, 0, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 196, 0, 0.08), rgba(126, 231, 135, 0.05)),
        var(--panel-bg, #121820);
}

.competition-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.competition-game-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.42);
    object-fit: contain;
}

.competition-meta-line {
    color: var(--muted, #a9bad2);
}

.competition-facts {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.competition-facts div {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.16);
}

.competition-facts dt {
    color: var(--accent, #ffc400);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.competition-facts dd {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.competition-broadcast-fact {
    border-color: rgba(255, 196, 0, 0.35) !important;
}

.competition-broadcast-fact a {
    color: var(--accent);
    font-weight: 700;
}

.competition-poster-placeholder {
    min-height: 220px;
}

.competition-action-card h2 {
    margin-top: 4px;
}

.competition-entry-list li {
    display: block;
    padding: 11px;
    border: 1px solid rgba(151, 164, 190, 0.2);
    border-radius: 7px;
    background: rgba(6, 10, 16, 0.34);
}

.competition-entry-list {
    display: grid;
    gap: 9px;
}

.competition-entry-list li:last-child {
    border-bottom: 1px solid rgba(151, 164, 190, 0.2);
}

.roster-card-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(151, 164, 190, 0.14);
}

.roster-card-head img {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 1px solid rgba(151, 164, 190, 0.24);
    border-radius: 5px;
    background: #050505;
    object-fit: contain;
}

.roster-card-head div {
    min-width: 0;
}

.roster-card-head strong,
.roster-card-head small {
    display: block;
}

.roster-card-head strong {
    overflow: hidden;
    font-size: 0.88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-card-head small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.66rem;
}

.competition-roster-panel {
    display: grid;
    gap: 14px;
    margin-top: 18px;
    padding: 14px;
    border: 1px solid rgba(151, 164, 190, 0.18);
    border-radius: 8px;
    background: rgba(6, 10, 16, 0.38);
}

.roster-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}

.roster-panel-head strong,
.roster-panel-head span,
.roster-panel-head em {
    display: block;
}

.roster-panel-head span,
.roster-panel-head em {
    color: var(--muted, #a9bad2);
    font-size: 13px;
}

.roster-list {
    display: grid;
    gap: 8px;
}

.roster-player-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 9px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(151, 164, 190, 0.12);
}

.roster-player-row:last-child {
    border-bottom: 0;
}

.roster-player-row a {
    color: var(--text, #f5f7fb);
    font-weight: 700;
    text-decoration: none;
}

.roster-player-row a:hover {
    color: var(--accent, #ffc400);
}

.roster-status,
.roster-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid rgba(151, 164, 190, 0.22);
    background: rgba(151, 164, 190, 0.10);
    color: var(--muted, #a9bad2);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.roster-status-accepted,
.roster-status-checked_in {
    border-color: rgba(126, 231, 135, 0.45);
    background: rgba(126, 231, 135, 0.12);
    color: #bfffc6;
}

.roster-status-invited {
    border-color: rgba(255, 196, 0, 0.44);
    background: rgba(255, 196, 0, 0.12);
    color: #ffe28a;
}

.roster-status-declined {
    border-color: rgba(255, 95, 122, 0.40);
    background: rgba(255, 95, 122, 0.12);
    color: #ffbdc8;
}

.roster-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.roster-invite-form {
    padding-top: 12px;
    border-top: 1px solid rgba(151, 164, 190, 0.14);
}

.roster-search-results {
    display: grid;
    gap: 7px;
}

.roster-search-results button {
    display: grid;
    gap: 3px;
    justify-items: start;
    width: 100%;
    min-height: 0;
    padding: 9px 10px;
    border: 1px solid rgba(151, 164, 190, 0.18);
    border-radius: 8px;
    background: rgba(6, 10, 16, 0.45);
    color: var(--text);
    text-align: left;
}

.roster-search-results button:hover {
    border-color: rgba(255, 196, 0, 0.40);
    background: rgba(255, 196, 0, 0.07);
}

.roster-search-results small {
    color: var(--muted);
}

.competition-admin-matches .match-card {
    align-content: start;
}

.competition-list {
    display: grid;
    gap: 14px;
}

.competition-list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
}

.competition-list-card.is-draft {
    border-color: rgba(255, 196, 0, 0.42);
}

.competition-list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.danger-zone {
    margin-top: 16px;
    border-color: rgba(255, 95, 122, 0.42);
    background:
        linear-gradient(135deg, rgba(255, 95, 122, 0.10), rgba(255, 95, 122, 0.03)),
        var(--panel-bg, #121820);
}

.inline-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.poster-block {
    display: grid;
    place-items: center;
    min-height: 170px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 196, 0, 0.24), rgba(126, 231, 135, 0.10)),
        #111923;
    color: var(--muted);
    font-weight: 800;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.checkbox-row,
.checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.checkbox-row input[type="checkbox"],
.checkbox-line input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--accent);
}

.clean-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.clean-list li,
.match-card {
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #0b0f15;
    padding: 10px 12px;
}

.clean-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.clean-list li span {
    color: var(--muted);
    text-align: right;
}

.clean-list a {
    color: var(--accent);
}

.profile-game-accounts {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.profile-game-accounts h3 {
    margin: 0 0 12px;
    color: var(--accent);
    font-size: 0.86rem;
    text-transform: uppercase;
}

.game-id-pill {
    background: rgba(255, 196, 0, 0.08);
    border-color: rgba(255, 196, 0, 0.28);
}

.game-account-list {
    display: grid;
    gap: 10px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}

.game-account-item {
    display: grid;
    grid-template-columns: auto minmax(0, 0.8fr) minmax(0, 1.2fr) auto auto;
    gap: 10px;
    align-items: center;
    border: 1px solid rgba(255, 196, 0, 0.22);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(255, 196, 0, 0.09), rgba(255, 196, 0, 0.02)),
        #0b0f15;
    padding: 10px 12px;
}

@media (max-width: 760px) {
    .game-account-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .game-account-item > span:not(.game-badge),
    .game-account-item > small,
    .game-account-item > form {
        grid-column: 2;
        margin-left: 0;
    }
}

.provider-game-suggestions {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.linked-provider-summary,
.linked-provider-account {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-top: 8px;
    color: var(--muted);
}

.linked-provider-summary small {
    flex-basis: 100%;
}

.provider-game-suggestion {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-deep, #0a1018);
}

.provider-game-suggestion small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
}

.game-account-item form {
    margin-left: auto;
}

.game-account-item form + form {
    margin-left: 0;
}

.fair-play-profile {
    margin-top: 16px;
}

.fair-play-profile-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
}

.fair-play-profile-heading h2 {
    margin-bottom: 0;
}

.fair-play-profile-heading > strong {
    color: #7ee2a8;
}

.fair-play-meter {
    height: 10px;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #080d13;
}

.fair-play-meter span {
    display: block;
    height: 100%;
    background: #39c978;
}

.fair-play-tone-excellent .fair-play-meter span { background: #18d978; }
.fair-play-tone-standard .fair-play-meter span { background: #e3bd42; }
.fair-play-tone-attention .fair-play-meter span { background: #e58a39; }
.fair-play-tone-low .fair-play-meter span { background: #d9576d; }
.fair-play-tone-attention .fair-play-profile-heading > strong { color: #f0a85e; }
.fair-play-tone-low .fair-play-profile-heading > strong { color: #ed7186; }

.entry-fair-play-tools {
    display: grid;
    gap: 0.5rem;
    min-width: min(100%, 16rem);
}

.entry-fair-play-tools details,
.fair-play-entry-card details {
    border-top: 1px solid var(--border-color, #2a3442);
    padding-top: 0.5rem;
}

.fair-play-review-panel,
.fair-play-entry-card,
.fair-play-adjustment-form {
    display: grid;
    gap: 0.75rem;
}

.fair-play-entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
    gap: 0.75rem;
}

.fair-play-entry-card {
    padding: 1rem;
    border: 1px solid var(--border-color, #2a3442);
    border-radius: 8px;
    background: rgba(7, 12, 19, 0.72);
}

.fair-play-entry-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.game-account-item strong,
.game-account-item span:last-child {
    min-width: 0;
    overflow-wrap: anywhere;
}

.game-account-item span:last-child {
    color: var(--muted);
    text-align: right;
}

.profile-feed-panel {
    margin-top: 16px;
}

.profile-feed-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.profile-feed-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 12, 18, 0.62);
    padding: 14px;
}

.profile-feed-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.82rem;
}

.profile-feed-body {
    line-height: 1.55;
}

.profile-feed-body a {
    color: var(--accent);
    font-weight: 700;
}

.profile-feed-image {
    display: block;
    max-width: min(100%, 720px);
    max-height: 420px;
    object-fit: contain;
    margin: 14px auto 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #000;
}

.profile-feed-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.match-card {
    display: grid;
    gap: 5px;
}

.match-card span,
.match-card em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.9rem;
}

.admin-list {
    display: grid;
    gap: 12px;
    margin-top: 14px;
}

.admin-list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
    padding: 12px;
}

.admin-list-item p {
    margin: 4px 0 0;
    color: var(--muted);
}

.admin-list-item form {
    margin: 0;
}

.form-section,
.stack-form {
    display: grid;
    gap: 14px;
}

.form-section label,
.stack-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
}

.form-section input,
.form-section select,
.form-section textarea,
.stack-form input,
.stack-form textarea {
    width: 100%;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px 12px;
    background: #0b0f15;
    color: var(--text);
}

.agreement-preview-block {
    border: 1px solid rgba(255, 196, 0, 0.22);
    border-radius: 8px;
    background: rgba(255, 196, 0, 0.045);
    padding: 12px;
}

.agreement-preview {
    max-height: 560px;
    overflow: auto;
    white-space: pre-wrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #080b10;
    color: var(--text);
    padding: 14px;
    font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
    font-size: 0.9rem;
    line-height: 1.55;
}

.agreement-preview mark {
    display: inline;
    border: 1px solid rgba(255, 196, 0, 0.48);
    border-radius: 4px;
    background: rgba(255, 196, 0, 0.18);
    color: #ffe187;
    padding: 0 3px;
}

.agreement-party-summary {
    display: grid;
    gap: 10px;
}

.agreement-party-summary div {
    display: grid;
    gap: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0b0f15;
    padding: 12px;
}

.agreement-party-summary span {
    color: var(--muted);
    font-size: 0.88rem;
}

.agreement-diff {
    display: grid;
    gap: 8px;
    border: 1px solid rgba(255, 196, 0, 0.22);
    border-radius: 8px;
    background: rgba(255, 196, 0, 0.045);
    padding: 12px;
    margin: 12px 0 16px;
}

.agreement-diff-line {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    border-radius: 6px;
    padding: 7px 9px;
}

.agreement-diff-line span {
    font-weight: 900;
    text-align: center;
}

.agreement-diff-line code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    color: inherit;
}

.agreement-diff-line.is-added {
    border: 1px solid rgba(126, 231, 135, 0.28);
    background: rgba(126, 231, 135, 0.10);
    color: #b8f7bf;
}

.agreement-diff-line.is-removed {
    border: 1px solid rgba(255, 95, 122, 0.25);
    background: rgba(255, 95, 122, 0.09);
    color: #ffb7c2;
}

.agreement-note {
    border: 1px solid rgba(134, 184, 255, 0.24);
    border-radius: 8px;
    background: rgba(134, 184, 255, 0.07);
    padding: 12px;
    margin: 12px 0 16px;
}

.agreement-note p:last-child {
    margin-bottom: 0;
}

.agreement-message-list {
    display: grid;
    gap: 8px;
    margin: 12px 0 16px;
}

.agreement-message {
    display: grid;
    gap: 4px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    padding: 10px 12px;
}

.agreement-message span {
    color: var(--muted);
    font-size: 0.82rem;
}

.agreement-message p {
    margin: 0;
}

.inline-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 10px;
}

.inline-check input {
    width: auto;
}

.auth-shell {
    display: grid;
    min-height: calc(100vh - 170px);
    place-items: center;
}

.auth-card {
    width: min(440px, 100%);
}

.stack-form label.checkbox-row.login-remember {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 10px;
}

.stack-form .login-remember input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    min-width: 18px;
    height: 18px;
    padding: 0;
}

.google-login-button {
    min-height: 54px;
    gap: 12px;
    border-color: rgba(255, 255, 255, 0.18);
    background: #fff;
    color: #202124;
    font-weight: 700;
}

.google-login-button:hover {
    border-color: #9aa0a6;
    background: #f7f8f8;
}

.google-login-button img {
    width: 22px;
    height: 22px;
}

.secondary {
    color: var(--accent);
}

.org-banner {
    background:
        linear-gradient(90deg, rgba(255, 196, 0, 0.20), rgba(255, 95, 122, 0.13)),
        linear-gradient(135deg, #18202d, #0b0f15);
}

.team-banner {
    background:
        linear-gradient(90deg, rgba(126, 231, 135, 0.16), rgba(255, 196, 0, 0.18)),
        linear-gradient(135deg, #18202d, #0b0f15);
}

@media (max-width: 780px) {
    .topbar {
        grid-template-columns: 1fr auto auto auto;
        gap: 12px;
        padding: 12px 16px;
    }

    .brand img {
        width: 128px;
    }

    .global-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .topnav {
        grid-column: 1 / -1;
        order: 4;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .app-grid,
    .event-card,
    .calendar-grid,
    .profile-main,
    .content-grid,
    .form-grid,
    .competition-hero,
    .match-grid {
        grid-template-columns: 1fr;
    }

    .profile-main {
        align-items: start;
    }

    .side-panel {
        display: none;
    }
}

@media (max-width: 640px) {
    body {
        overflow-x: hidden;
    }

    .topbar {
        position: sticky;
        top: 0;
        z-index: 30;
        grid-template-columns: minmax(0, 1fr) auto auto;
        padding: 10px 12px;
    }

    .brand img {
        width: 108px;
    }

    .global-search input,
    .global-search {
        width: 100%;
        min-width: 0;
    }

    .topnav {
        gap: 8px;
        padding-bottom: 2px;
    }

    .nav-icon-link {
        min-width: 64px;
        min-height: 52px;
        padding-inline: 7px;
    }

    .nav-icon-label {
        max-width: 70px;
        font-size: 0.58rem;
    }

    main,
    .page-shell,
    .app-grid,
    .main-content {
        width: 100%;
        min-width: 0;
    }

    .app-grid {
        display: block;
        padding: 12px;
    }

    .left-menu,
    .sidebar,
    .menu-panel {
        width: 100%;
        max-width: none;
        margin-bottom: 12px;
    }

    .panel,
    .feed-card,
    .market-card,
    .page-heading {
        border-radius: 8px;
    }

    .page-heading {
        padding: 16px;
    }

    .page-heading h1 {
        font-size: 28px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    .feed-card {
        margin-left: 18px;
        padding: 54px 14px 16px 44px;
    }

    .feed-card__avatar,
    .feed-author-avatar {
        width: 64px;
        height: 64px;
        left: -18px;
    }

    .feed-card img,
    .feed-image,
    .post-image {
        max-width: 100%;
        height: auto;
    }

    .feed-card__meta,
    .feed-card__actions,
    .button-row,
    .action-row,
    .market-card-footer,
    .market-status-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .form-grid,
    .market-grid,
    .market-app-layout,
    .competition-list-card,
    .agreement-party-summary {
        display: grid;
        grid-template-columns: 1fr;
    }

    .competition-list-actions {
        justify-content: flex-start;
    }

    input,
    select,
    textarea,
    button,
    .button-like {
        max-width: 100%;
    }

    .agreement-preview,
    textarea[name="body"] {
        font-size: 13px;
    }
}

/* MVP visual polish overrides - final cascade layer */
.profile-chip .avatar {
    display: none;
}

.quick-link-with-image {
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 76px;
}

.quick-entity-logo,
.mini-entity-logo {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
}

.mini-entity-logo {
    width: 42px;
    height: 42px;
}

.entity-title-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.save-primary {
    border-color: rgba(126, 231, 135, 0.58) !important;
    background: linear-gradient(135deg, rgba(126, 231, 135, 0.26), rgba(126, 231, 135, 0.12)) !important;
    color: #effff1 !important;
}

.profile-avatar-status {
    border-width: 5px;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08), 0 14px 30px rgba(0, 0, 0, 0.34);
}

.profile-avatar-verified {
    border-color: var(--accent-2);
}

.profile-avatar-registered,
.profile-avatar-verification_pending {
    border-color: var(--type-team);
}

.flag-tile {
    width: 46px;
    height: 34px;
    margin-right: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 1.35rem;
}

.role-pill {
    border-color: rgba(255, 255, 255, 0.12);
}

.role-judge {
    background: rgba(86, 217, 210, 0.18);
    color: var(--type-verification);
}

.role-caster {
    background: rgba(159, 140, 255, 0.18);
    color: var(--type-result);
}

.role-coach {
    background: rgba(126, 231, 135, 0.16);
    color: var(--type-market);
}

.role-manager {
    background: rgba(255, 196, 0, 0.18);
    color: var(--accent);
}

.role-event-organizer {
    background: rgba(110, 168, 255, 0.18);
    color: var(--type-team);
}

.game-id-pill {
    min-height: 52px;
}

.game-icon,
.game-badge {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
}

.game-icon {
    object-fit: contain;
    padding: 6px;
    background: rgba(255, 255, 255, 0.055);
}

.feed-card {
    padding-left: 44px;
    overflow: visible;
    margin-left: 20px;
}

.feed-post-header {
    grid-template-columns: 1px minmax(0, 1fr);
}

.feed-actor {
    width: 96px !important;
    height: 96px !important;
    margin-left: -98px !important;
    margin-top: -36px !important;
    background: #000 !important;
    border: 5px solid #000 !important;
    box-shadow: 0 0 0 4px var(--bg), 0 16px 34px rgba(0, 0, 0, 0.42) !important;
}

.feed-type-label {
    left: -18px;
    width: 22px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.feed-type-mini {
    position: absolute;
    left: 0 !important;
    bottom: 0 !important;
    width: 72px;
    height: 72px;
    border: 0;
    border-radius: 0 0 0 7px;
    clip-path: polygon(0 0, 0 100%, 100% 100%);
    overflow: hidden !important;
    color: #071014;
    background: var(--feed-accent, var(--accent));
}

.feed-type-mini .mini-icon {
    position: absolute;
    left: 10px !important;
    bottom: 10px !important;
    width: 28px !important;
    height: 28px !important;
    transform: scale(0.78) !important;
    transform-origin: center !important;
}

/* Feed avatar/marker final hotfix */
.feed-actor {
    width: 96px !important;
    height: 96px !important;
    margin-left: -98px !important;
    margin-top: -36px !important;
    background: #000 !important;
    border: 5px solid #000 !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 4px var(--bg), 0 16px 34px rgba(0, 0, 0, 0.42) !important;
}

.feed-actor img,
.feed-actor span {
    background: #000 !important;
}

.feed-type-mini {
    overflow: hidden !important;
}

.feed-type-mini .mini-icon {
    left: 10px !important;
    bottom: 10px !important;
    width: 28px !important;
    height: 28px !important;
    transform: scale(0.72) !important;
    transform-origin: center !important;
}

/* Feed visual normalization: solid avatars, soft markers, opaque icons */
.feed-card::before {
    width: 30px !important;
    opacity: 1 !important;
    background: color-mix(in srgb, var(--feed-accent, var(--accent)) 24%, transparent) !important;
}

.feed-card::after {
    display: none !important;
}

.feed-actor {
    position: relative !important;
    isolation: isolate !important;
    background: #000 !important;
    border: 0 !important;
    box-shadow: 0 0 0 5px #000, 0 0 0 9px var(--bg), 0 18px 34px rgba(0, 0, 0, 0.50) !important;
}

.feed-actor::before {
    content: "" !important;
    position: absolute !important;
    inset: 0 !important;
    z-index: 0 !important;
    border-radius: inherit !important;
    background: #000 !important;
}

.feed-actor img,
.feed-actor span {
    position: relative !important;
    z-index: 1 !important;
    display: block !important;
    background: #000 !important;
    background-color: #000 !important;
}

.feed-type-mini {
    border: 0 !important;
    box-shadow: none !important;
    background: color-mix(in srgb, var(--feed-accent, var(--accent)) 24%, transparent) !important;
    color: var(--feed-accent, var(--accent)) !important;
}

.feed-type-mini .mini-icon,
.feed-type-mini .mini-icon::before,
.feed-type-mini .mini-icon::after {
    opacity: 1 !important;
}

.feed-type-mini .penalty-icon::before {
    background: var(--bg) !important;
    box-shadow: 0 16px 0 var(--bg) !important;
}

/* Unified SVG icon pass */
.lucide-icon {
    display: block;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
}

.topnav .nav-icon {
    width: 27px !important;
    height: 27px !important;
    color: #9fb0c8;
}

.topnav .nav-icon-link:hover .nav-icon {
    color: var(--accent);
}

.topnav-separator {
    width: 1px;
    height: 28px;
    margin: 0 5px;
    background: var(--line);
}

.nav-about-link img {
    display: block;
    width: 29px;
    height: 29px;
    padding: 3px;
    border-radius: 50%;
    background: #050505;
    object-fit: contain;
}

.nav-about-link:hover img {
    box-shadow: 0 0 0 1px var(--accent);
}

.about-heading {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
}

.about-heading > img {
    width: 88px;
    height: 88px;
    padding: 8px;
    border-radius: 8px;
    background: #050505;
    object-fit: contain;
}

.about-heading h1,
.patch-heading h1 {
    margin: 4px 0 8px;
}

.about-heading p:last-child,
.patch-heading p:last-child {
    max-width: 820px;
    margin-bottom: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.about-section {
    min-height: 210px;
}

.about-section h2 {
    margin: 8px 0 10px;
    font-size: 1.2rem;
}

.about-section p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.7;
}

.about-section .button-like {
    margin-top: 8px;
}

.about-contact {
    margin-top: 14px;
}

.about-contact dl {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin: 18px 0 0;
}

.about-contact dl div {
    display: grid;
    gap: 4px;
}

.about-contact dt {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.about-contact dd {
    margin: 0;
    font-weight: 700;
}

.patch-timeline {
    position: relative;
    display: grid;
    gap: 12px;
    margin-top: 14px;
    padding-left: 32px;
}

.patch-timeline::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 11px;
    width: 2px;
    background: linear-gradient(var(--accent), rgba(110, 168, 255, 0.18));
    content: "";
}

.patch-release {
    position: relative;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
}

.patch-release::before {
    position: absolute;
    top: 25px;
    left: -27px;
    width: 12px;
    height: 12px;
    border: 3px solid var(--surface);
    border-radius: 50%;
    background: #6ea8ff;
    content: "";
}

.patch-release.is-current {
    border-color: rgba(255, 196, 0, 0.36);
}

.patch-release.is-current::before {
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(255, 196, 0, 0.12);
}

.patch-version {
    display: grid;
    align-content: start;
    gap: 5px;
}

.patch-version strong {
    color: var(--accent);
    font-size: 1.05rem;
}

.patch-version span {
    color: var(--muted);
    font-size: 0.78rem;
}

.patch-copy h2 {
    margin: 5px 0 8px;
    font-size: 1.15rem;
}

.patch-copy p {
    max-width: 820px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.patch-current {
    display: inline-block;
    color: #f9d86c;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.patch-links {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.patch-links a {
    padding: 5px 9px;
    border: 1px solid rgba(110, 168, 255, 0.26);
    border-radius: 5px;
    background: rgba(110, 168, 255, 0.08);
    color: #a9ccff;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.patch-links a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.wiki-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: end;
    gap: 28px;
}

.wiki-heading h1 {
    margin: 4px 0 8px;
}

.wiki-heading p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.wiki-search {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.wiki-search input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 9px 12px;
    background: #090d13;
    color: var(--text);
}

.wiki-search input:focus {
    border-color: var(--accent);
    outline: 0;
}

.wiki-layout {
    display: grid;
    grid-template-columns: minmax(210px, 0.28fr) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-top: 14px;
}

.wiki-index {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 3px;
    max-height: calc(100vh - 104px);
    overflow-y: auto;
}

.wiki-index > strong {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.wiki-index a {
    padding: 7px 8px;
    border-left: 2px solid transparent;
    color: var(--muted);
    font-size: 0.79rem;
    line-height: 1.3;
}

.wiki-index a:hover {
    border-left-color: var(--accent);
    background: rgba(255, 255, 255, 0.035);
    color: var(--text);
}

.wiki-articles {
    display: grid;
    gap: 12px;
    min-width: 0;
}

.wiki-article {
    scroll-margin-top: 84px;
}

.wiki-article > header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.wiki-article > header > span {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border: 1px solid rgba(255, 196, 0, 0.26);
    border-radius: 6px;
    background: rgba(255, 196, 0, 0.07);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 900;
}

.wiki-article h2 {
    margin: 3px 0 0;
    font-size: 1.13rem;
}

.wiki-article > p {
    margin: 14px 0 10px;
    color: var(--muted);
    line-height: 1.65;
}

.wiki-article ul {
    display: grid;
    gap: 7px;
    margin: 0;
    padding-left: 20px;
}

.wiki-article li {
    padding-left: 3px;
    color: #c8d3e2;
    line-height: 1.55;
}

.wiki-article li::marker {
    color: var(--accent);
}

.wiki-action {
    display: inline-flex;
    margin-top: 16px;
    padding: 6px 9px;
    border: 1px solid rgba(110, 168, 255, 0.28);
    border-radius: 5px;
    background: rgba(110, 168, 255, 0.08);
    color: #a9ccff;
    font-size: 0.78rem;
    font-weight: 800;
}

.wiki-action:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.wiki-empty {
    color: var(--muted);
}

@media (max-width: 760px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-heading {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
    }

    .about-heading > img {
        width: 58px;
        height: 58px;
    }

    .patch-release {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .topnav-separator {
        margin: 0 1px;
    }

    .wiki-heading,
    .wiki-layout {
        grid-template-columns: 1fr;
    }

    .wiki-index {
        position: static;
        max-height: none;
    }
}

.feed-actor {
    width: 64px !important;
    height: 64px !important;
    margin-left: -66px !important;
    margin-top: -22px !important;
    background: #000 !important;
    border: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 0 0 4px #000, 0 0 0 7px var(--bg), 0 14px 28px rgba(0, 0, 0, 0.46) !important;
}

.feed-type-mini .mini-icon {
    width: 25px !important;
    height: 25px !important;
    left: 10px !important;
    bottom: 10px !important;
    transform: none !important;
    color: var(--feed-accent, var(--accent)) !important;
}

.feed-filter .mini-icon {
    width: 23px !important;
    height: 23px !important;
    position: static !important;
    transform: none !important;
    color: var(--feed-accent, var(--accent)) !important;
}

/* Avatar monetization/status frame layer */
:root {
    --avatar-frame-admin: #ffc400;
    --avatar-frame-verified: #7ee787;
    --avatar-frame-registered: #6ea8ff;
}

.profile-avatar-status {
    border: 2px solid var(--avatar-frame-registered) !important;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.70), 0 14px 28px rgba(0, 0, 0, 0.32) !important;
}

.profile-avatar-status.avatar-frame-admin {
    border-color: var(--avatar-frame-admin) !important;
}

.profile-avatar-status.avatar-frame-verified {
    border-color: var(--avatar-frame-verified) !important;
}

.profile-avatar-status.avatar-frame-registered {
    border-color: var(--avatar-frame-registered) !important;
}

.feed-actor.avatar-frame-admin {
    box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--avatar-frame-admin), 0 14px 28px rgba(0, 0, 0, 0.46) !important;
}

.feed-actor.avatar-frame-verified {
    box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--avatar-frame-verified), 0 14px 28px rgba(0, 0, 0, 0.46) !important;
}

.feed-actor.avatar-frame-registered {
    box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--avatar-frame-registered), 0 14px 28px rgba(0, 0, 0, 0.46) !important;
}

.feed-card.is-system-post .feed-actor img {
    box-sizing: border-box;
    padding: 8px;
    object-fit: contain !important;
}

/* Recruiting market */
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.market-filter-panel {
    margin-bottom: 16px;
}

.market-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.market-filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
    gap: 16px;
    align-items: start;
}

.market-card {
    position: relative;
    overflow: visible;
    min-height: 0;
}

.market-card-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
}

.market-owner {
    display: inline-grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--text);
    text-decoration: none;
}

.market-owner:hover strong {
    color: var(--accent);
}

.market-owner-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #000;
    border: 1px solid rgba(255, 196, 0, 0.28);
    overflow: hidden;
    display: grid;
    place-items: center;
}

.market-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

/* Avatar shape lock: external/demo images must never stretch cards into ovals. */
.sidebar-user-avatar,
.connection-avatar,
.follow-entity-card img,
.feed-actor,
.market-owner-avatar,
.profile-avatar-status {
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    background: #000 !important;
    overflow: hidden !important;
}

.sidebar-user-avatar,
.connection-avatar,
.follow-entity-card img,
.market-owner-avatar {
    flex: 0 0 52px !important;
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    max-width: 52px !important;
}

.sidebar-user-avatar img,
.connection-avatar img,
.follow-entity-card img,
.feed-actor img,
.market-owner-avatar img,
.profile-avatar-status {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    background: #000 !important;
}

.profile-main > .avatar-large,
.profile-main > .profile-avatar-status {
    flex: 0 0 92px !important;
    width: 92px !important;
    height: 92px !important;
    min-width: 92px !important;
    max-width: 92px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    background: #000 !important;
}

.profile-main > .team-logo {
    padding: 8px !important;
    object-fit: contain !important;
}

.global-page-grid .main-content {
    min-width: 0;
}

.entity-list-card {
    position: relative;
    overflow: hidden;
    min-height: 138px;
}

.entity-list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(13, 17, 24, 0.97) 0%, rgba(13, 17, 24, 0.84) 46%, rgba(13, 17, 24, 0.48) 100%),
        var(--entity-banner, linear-gradient(135deg, rgba(255, 196, 0, 0.13), rgba(110, 168, 255, 0.10)));
    background-size: cover;
    background-position: center;
    opacity: 0.86;
}

.entity-list-card > * {
    position: relative;
    z-index: 1;
}

.entity-list-card .avatar-small {
    flex: 0 0 76px !important;
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #000 !important;
}

.verification-info-card {
    background:
        linear-gradient(135deg, rgba(86, 217, 210, 0.10), rgba(255, 196, 0, 0.05)),
        var(--surface) !important;
}

.verification-info-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 0;
    list-style: none;
}

.verification-info-list li {
    padding-left: 18px;
    color: var(--muted);
    position: relative;
}

.verification-info-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.market-owner small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.market-game-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 8px;
    background: #080b10;
    padding: 8px;
    border: 1px solid rgba(255, 196, 0, 0.20);
}

.market-card-body {
    margin-top: 18px;
}

.market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.market-card-footer {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(151, 164, 190, 0.18);
}

.market-apply-form {
    display: grid;
    gap: 10px;
}

.market-apply-form textarea {
    min-height: 58px;
}

.market-app-layout {
    display: grid;
    grid-template-columns: minmax(250px, 360px) minmax(0, 1fr);
    gap: 16px;
}

.market-app-list,
.market-app-thread {
    min-width: 0;
}

.market-app-item {
    display: block;
    padding: 12px;
    border: 1px solid rgba(151, 164, 190, 0.18);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
    margin-top: 10px;
    background: rgba(6, 10, 16, 0.35);
}

.market-app-item.is-active,
.market-app-item:hover {
    border-color: rgba(255, 196, 0, 0.55);
}

.market-app-item span,
.market-app-item small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

.market-message-list {
    display: grid;
    gap: 10px;
    margin: 16px 0;
}

.market-status-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.market-status-actions .danger-button {
    border-color: rgba(255, 96, 96, 0.45);
    color: #ffb8b8;
}

.market-message {
    max-width: 760px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(151, 164, 190, 0.18);
    background: rgba(6, 10, 16, 0.45);
}

.market-message.is-own {
    margin-left: auto;
    border-color: rgba(255, 196, 0, 0.35);
}

.market-message p {
    margin: 8px 0;
}

.market-message small {
    color: var(--muted);
}

.market-message-form {
    display: grid;
    gap: 12px;
}

@media (max-width: 860px) {
    .market-filter-form,
    .market-app-layout {
        grid-template-columns: 1fr;
    }
}

.identity-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 16px;
}

.identity-audit {
    grid-column: 1 / -1;
}

.identity-pairing-card {
    text-align: center;
}

.identity-pairing-card p {
    text-align: left;
}

.identity-pairing-qr {
    display: block;
    width: min(260px, 100%);
    aspect-ratio: 1;
    margin: 18px auto;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
}

.identity-device {
    display: flex;
    gap: 14px;
    align-items: center;
    margin: 14px 0;
    padding: 16px;
    border: 1px solid rgba(151, 164, 190, 0.22);
    border-radius: 8px;
    background: rgba(6, 10, 16, 0.38);
}

.identity-device.is-eligible {
    border-color: rgba(80, 216, 132, 0.55);
}

.identity-device.is-limited {
    border-color: rgba(255, 196, 0, 0.48);
}

.identity-device-mark {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #080b10;
    color: var(--accent);
    font-size: 24px;
    border: 2px solid currentColor;
}

.identity-device.is-eligible .identity-device-mark {
    color: #50d884;
}

.identity-device h2,
.identity-device p {
    margin: 0 0 5px;
}

.identity-device small {
    color: var(--muted);
}

.identity-explanation ol {
    display: grid;
    gap: 12px;
    padding-left: 22px;
    color: var(--muted);
}

.competition-checkin-qr {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    margin: 0 0 16px;
    padding: 14px;
    border: 1px solid rgba(255, 196, 0, 0.36);
    border-radius: 8px;
    background: rgba(255, 196, 0, 0.06);
}

.competition-checkin-qr-image {
    display: grid;
    place-items: center;
    width: 132px;
    height: 132px;
    padding: 8px;
    border-radius: 6px;
    background: #fff;
}

.competition-checkin-qr-image svg {
    display: block;
    width: 100%;
    height: 100%;
}

.competition-checkin-qr p {
    margin: 6px 0;
    color: var(--muted);
}

.mobile-checkin-page {
    min-height: calc(100vh - 96px);
    display: grid;
    place-items: center;
    padding: 24px;
}

.mobile-checkin-card {
    width: min(560px, 100%);
}

.mobile-checkin-form,
.mobile-checkin-success {
    margin-top: 22px;
}

.mobile-checkin-button {
    width: 100%;
    min-height: 56px;
    font-size: 1.05rem;
}

.mobile-checkin-success {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(80, 216, 132, 0.56);
    border-radius: 8px;
    background: rgba(80, 216, 132, 0.14);
}

.mobile-checkin-success strong {
    color: #50d884;
    font-size: 1.2rem;
}

.team-member-list {
    display: grid;
    gap: 10px;
}

.team-member-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: rgba(5, 9, 14, 0.28);
}

.team-member-row small,
.selected-user-chip small {
    display: block;
    color: var(--muted);
    margin-top: 2px;
}

.role-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 74px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 204, 0, 0.45);
    color: var(--accent);
    background: rgba(255, 204, 0, 0.08);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.role-badge-manager {
    border-color: rgba(107, 164, 255, 0.55);
    color: #9ec4ff;
    background: rgba(107, 164, 255, 0.11);
}

.role-badge-coach {
    border-color: rgba(127, 231, 164, 0.5);
    color: #9df0bc;
    background: rgba(127, 231, 164, 0.09);
}

.role-badge-captain {
    border-color: rgba(255, 126, 126, 0.5);
    color: #ffabab;
    background: rgba(255, 126, 126, 0.09);
}

.compact-button {
    padding: 7px 10px;
    min-height: 0;
    white-space: nowrap;
}

.compact-search-results button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    width: 100%;
    text-align: left;
    margin-top: 6px;
}

.team-member-add-form {
    max-width: 760px;
    gap: 12px;
}

.team-member-add-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 12px;
    align-items: end;
}

.team-member-search-block {
    position: relative;
    display: grid;
    gap: 8px;
    min-width: 0;
}

.team-member-add-form label {
    display: grid;
    gap: 6px;
    margin: 0;
}

.team-member-add-form input[type="search"],
.team-member-add-form select {
    width: 100%;
    min-height: 42px;
}

.team-member-add-form .compact-search-results {
    display: grid;
    gap: 6px;
}

.team-member-add-form .compact-search-results:empty {
    display: none;
}

.team-member-add-form .selected-user-chip {
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 204, 0, 0.25);
    border-radius: 8px;
    background: rgba(5, 9, 14, 0.34);
}

.team-member-add-submit {
    justify-self: start;
}

.avatar-mini {
    width: 28px;
    height: 28px;
}

.selected-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
}

.selected-user-chip.is-empty {
    color: var(--muted);
    border-style: dashed;
}

@media (max-width: 640px) {
    .competition-checkin-qr {
        grid-template-columns: 1fr;
    }

    .team-member-row {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .team-member-row .role-badge,
    .team-member-row .inline-form {
        grid-column: 2;
        justify-self: start;
    }

    .team-member-add-grid {
        grid-template-columns: 1fr;
    }
}

.team-member-add-form {
    display: grid;
    max-width: 780px;
}

.team-member-add-form .team-member-add-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) minmax(150px, 190px);
    gap: 14px;
    align-items: end;
}

.team-member-add-form .team-member-search-block,
.team-member-add-form .team-member-role-field {
    min-width: 0;
}

.team-member-add-form .team-member-search-block label,
.team-member-add-form .team-member-role-field {
    display: grid;
    gap: 7px;
}

.team-member-add-form .selected-user-chip,
.team-member-add-form .compact-search-results button {
    width: 100%;
}

@media (max-width: 700px) {
    .team-member-add-form .team-member-add-grid {
        grid-template-columns: 1fr;
    }
}

.identity-feedback {
    min-height: 24px;
    margin-top: 12px;
}

.identity-feedback.is-error {
    color: #ff9ba7;
}

.identity-feedback.is-success {
    color: #6fe29a;
}

.identity-event-list {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.identity-event-list li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 12px;
    border-left: 3px solid rgba(151, 164, 190, 0.35);
    background: rgba(6, 10, 16, 0.30);
}

.identity-event-list .risk-warning {
    border-left-color: var(--accent);
}

.identity-event-list .risk-critical {
    border-left-color: #ff6476;
}

.identity-event-list time {
    color: var(--muted);
}

@media (max-width: 860px) {
    .identity-grid {
        grid-template-columns: 1fr;
    }

    .identity-audit {
        grid-column: auto;
    }

    .identity-pairing-card {
        display: none;
    }
}

.cookie-notice {
    position: fixed;
    z-index: 1000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 14px 16px;
    border: 1px solid rgba(255, 196, 0, 0.45);
    border-radius: 6px;
    background: #111720;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.48);
}

.cookie-notice p {
    margin: 4px 0 0;
    color: var(--muted);
}

.cookie-notice button {
    flex: 0 0 auto;
}

.cookie-policy dl {
    display: grid;
    gap: 12px;
}

.cookie-policy dl > div {
    padding: 14px;
    border-left: 3px solid var(--accent);
    background: rgba(6, 10, 16, 0.38);
}

.cookie-policy dt {
    margin-bottom: 6px;
    font-weight: 700;
}

.cookie-policy dd {
    margin: 0;
    color: var(--muted);
}

@media (max-width: 700px) {
    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
        left: 10px;
        right: 10px;
        bottom: 10px;
    }
}
.identity-device-details {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
}

.identity-device-details div,
.identity-profile-summary li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.identity-device-details dt {
    color: var(--muted);
}

.identity-device-details dd {
    margin: 0;
    text-align: right;
}

.identity-replacement {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.identity-replacement summary {
    cursor: pointer;
    font-weight: 700;
}

.profile-administration-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.profile-role-management,
.identity-profile-summary {
    display: grid;
    gap: 10px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}

.profile-role-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.role-surrender {
    min-width: min(100%, 330px);
}

.role-surrender > summary {
    display: inline-flex;
    cursor: pointer;
    list-style: none;
}

.role-surrender > summary::-webkit-details-marker {
    display: none;
}

.role-surrender-confirmation {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(127, 29, 29, 0.12);
}

.bracket-manager-heading,
.section-heading-row,
.bracket-manager-summary,
.bracket-admin-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.bracket-manager-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 16px 0;
}

.bracket-stat {
    display: grid;
    gap: 5px;
    min-height: 88px;
}

.bracket-stat span {
    color: var(--muted);
    font-size: 0.82rem;
}

.bracket-stat strong {
    font-size: 1.05rem;
}

.bracket-stat.is-locked {
    border-color: rgba(239, 68, 68, 0.45);
}

.bracket-stat.is-open {
    border-color: rgba(34, 197, 94, 0.4);
}

.bracket-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
    align-items: stretch;
}

.seed-list {
    display: grid;
    gap: 6px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.seed-list > li {
    position: relative;
    display: grid;
    grid-template-columns: 42px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: rgba(5, 10, 18, 0.48);
}

.seed-list > li.is-excluded {
    opacity: 0.48;
}

.seed-list img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    background: #050505;
    border-radius: 4px;
}

.seed-list small,
.seed-list strong {
    display: block;
}

.seed-number {
    color: var(--accent);
    font-weight: 800;
    text-align: center;
}

.entry-exclusion {
    position: relative;
}

.entry-exclusion > summary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: max-content;
    min-height: 32px;
    padding: 7px 12px;
    color: #ff8b8b;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 999px;
    cursor: pointer;
    list-style: none;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 800;
}

.entry-exclusion > summary::-webkit-details-marker {
    display: none;
}

.entry-action-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.entry-exclusion form {
    position: absolute;
    z-index: 8;
    top: 38px;
    right: 0;
    width: min(320px, 78vw);
    padding: 14px;
    border: 1px solid rgba(239, 68, 68, 0.5);
    background: #0c1119;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
}

.bracket-launch-panel {
    align-content: start;
}

.checkin-summary {
    display: grid;
    gap: 4px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.admin-checkin-list {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.admin-checkin-list form {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.bracket-workspace {
    margin-top: 16px;
    max-width: 100%;
    overflow: visible;
}

.bracket-render-root {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 12px;
    scrollbar-color: rgba(250, 204, 21, 0.55) rgba(15, 23, 42, 0.92);
}

.bracket-workspace-full {
    width: 100%;
}

.bracket-pan-hint {
    color: var(--muted);
    font-size: 0.8rem;
}

.bracket-save-feedback {
    min-height: 22px;
    margin: 2px 0 6px;
    color: var(--muted);
    font-size: 0.82rem;
}

.bracket-save-feedback.is-success {
    color: #86efac;
}

.bracket-save-feedback.is-error {
    color: #fda4af;
}

.bracket-group + .bracket-group {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.compact-bracket {
    display: grid;
    grid-template-columns: repeat(var(--round-count), minmax(180px, 1fr));
    gap: 34px;
    width: max-content;
    min-width: max(100%, calc(var(--round-count) * 214px));
    padding: 12px 18px 22px;
    overflow: visible;
}

.legacy-bracket {
    display: none;
}

.compact-bracket-round {
    display: grid;
    grid-template-rows: 28px 1fr;
    min-width: 180px;
}

.compact-bracket-round h4 {
    margin: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.compact-round-matches {
    display: grid;
    grid-template-rows: repeat(var(--match-count), minmax(66px, 1fr));
    gap: 12px;
}

.compact-match {
    position: relative;
    align-self: center;
    min-width: 180px;
    border: 1px solid #334155;
    background: #0a0f17;
}

.compact-match-id {
    display: block;
    padding: 3px 6px 2px;
    border-bottom: 1px solid #1f2937;
    color: var(--accent);
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

.compact-match.is-disputed {
    border-color: rgba(239, 68, 68, 0.75);
}

.compact-match-status {
    display: block;
    padding: 3px 6px;
    background: rgba(239, 68, 68, 0.16);
    color: #fda4af;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.compact-match::after {
    position: absolute;
    top: 50%;
    left: 100%;
    width: 35px;
    height: 1px;
    background: #475569;
    content: "";
}

.compact-bracket-round:last-child .compact-match::after {
    display: none;
}

.compact-entrant {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) 34px;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 3px 6px;
    cursor: pointer;
}

.compact-entrant + .compact-entrant {
    border-top: 1px solid #263244;
}

.compact-entrant:hover {
    background: rgba(250, 204, 21, 0.06);
}

.compact-entrant:has(input:checked),
.compact-entrant.is-winner {
    background: rgba(34, 197, 94, 0.12);
    box-shadow: inset 3px 0 #22c55e;
}

.compact-entrant.is-empty {
    opacity: 0.48;
    cursor: default;
}

.compact-entrant > input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.compact-entrant img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    background: #050505;
    border-radius: 3px;
}

.compact-entrant span {
    overflow: hidden;
    font-size: 0.76rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-score {
    width: 32px;
    min-height: 24px;
    padding: 2px;
    text-align: center;
}

.compact-result-button {
    width: 100%;
    min-height: 26px;
    padding: 3px 6px;
    border-width: 1px 0 0;
    border-radius: 0;
    font-size: 0.7rem;
}

.compact-no-show {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 4px 7px;
    border-top: 1px solid #263244;
    color: var(--muted);
    font-size: 0.68rem;
}

.compact-no-show input {
    width: 15px;
    height: 15px;
}

.compact-dispute {
    border-top: 1px solid #263244;
    padding: 5px 7px;
    font-size: 0.72rem;
}

.compact-dispute summary {
    color: #fda4af;
    cursor: pointer;
}

.compact-dispute textarea {
    width: 100%;
    margin-top: 7px;
}

.roster-team-readiness {
    display: inline-flex;
    justify-self: end;
    margin: 0;
    padding: 2px 6px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.64rem;
    line-height: 1.2;
    text-align: center;
}

.roster-team-readiness.is-ready {
    border-color: rgba(34, 197, 94, 0.55);
    color: #86efac;
}

.roster-team-readiness.is-pending {
    border-color: rgba(245, 158, 11, 0.45);
    color: #fcd34d;
}

.competition-public-roster-card details {
    display: block;
}

.competition-roster-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    list-style: none;
}

.competition-roster-summary::-webkit-details-marker {
    display: none;
}

.competition-roster-summary > span {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.competition-roster-summary strong {
    color: var(--text);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    line-height: 1.1;
}

.competition-roster-summary small {
    margin-left: auto;
    color: var(--muted);
    font-size: 0.78rem;
    white-space: nowrap;
}

.competition-roster-summary::after {
    content: '';
    flex: 0 0 10px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
}

.competition-public-roster-card details[open] .competition-roster-summary::after {
    transform: rotate(225deg);
}

.competition-roster-collapse-body {
    margin-top: 18px;
}

.competition-public-roster-card.is-collapsed {
    align-self: start;
}

.clean-list.competition-entry-list > li {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.clean-list.competition-entry-list > li > .roster-card-head,
.clean-list.competition-entry-list > li > .roster-pill-row,
.clean-list.competition-entry-list > li > .roster-card-foot {
    width: 100%;
    min-width: 0;
}

.roster-pill {
    display: grid;
    grid-template-columns: minmax(70px, 0.8fr) minmax(90px, 1fr) auto;
    gap: 5px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 0.68rem;
    line-height: 1.15;
    text-transform: none;
}

.competition-entry-list .roster-pill-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 12px;
    margin-top: 6px;
}

.roster-pill strong,
.roster-pill span,
.roster-pill em {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.roster-pill strong {
    color: var(--accent);
    font-size: 0.67rem;
}

.roster-pill span {
    color: var(--muted);
    font-size: 0.66rem;
}

.competition-entry-list .roster-pill {
    grid-template-columns: minmax(64px, 0.85fr) minmax(84px, 1fr) 18px;
    min-height: 27px;
    padding: 3px 1px;
    border: 0;
    border-bottom: 1px solid rgba(151, 164, 190, 0.1);
    border-radius: 0;
    background: transparent;
    color: inherit;
}

.roster-check-icon {
    display: grid;
    width: 17px;
    height: 17px;
    place-items: center;
    border-radius: 50%;
    color: #64748b;
    font-size: 0.68rem;
    font-style: normal;
}

.roster-status-checked_in .roster-check-icon {
    background: #22c55e;
    color: #07110a;
}

.roster-status-invited .roster-check-icon {
    color: #facc15;
}

.roster-card-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    color: var(--muted);
    font-size: 0.65rem;
}

.roster-card-foot span {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 0.58rem;
}

.roster-card-foot.is-ready {
    color: #86efac;
}

.roster-card-foot.is-pending {
    color: #fcd34d;
}

.competition-disputes {
    margin-top: 16px;
}

.dispute-list {
    display: grid;
    gap: 12px;
}

.dispute-card {
    padding: 14px;
    border: 1px solid var(--border);
    background: #0b1119;
}

.dispute-card.is-open {
    border-color: rgba(239, 68, 68, 0.55);
}

.dispute-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.dispute-resolution-form {
    display: grid;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.score-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.ranking-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 8px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.competition-podium ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.competition-podium li {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 12px;
    border: 1px solid var(--border);
    background: #0b1119;
}

.competition-podium li:first-child {
    border-color: rgba(250, 204, 21, 0.55);
}

.competition-podium li strong {
    color: var(--accent);
    font-size: 1.15rem;
}

@media (max-width: 900px) {
    .bracket-manager-heading,
    .section-heading-row {
        align-items: stretch;
        flex-direction: column;
    }

    .bracket-manager-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bracket-admin-grid {
        grid-template-columns: 1fr;
    }

    .competition-podium ol {
        grid-template-columns: 1fr;
    }

    .competition-detail-grid {
        grid-template-columns: 1fr;
    }

    .competition-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .competition-entry-list .roster-pill-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .profile-administration-grid {
        grid-template-columns: 1fr;
    }
}
.support-grid,
.support-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .8fr);
    gap: 16px;
    align-items: start;
}

.market-location-fields {
    display: grid;
    gap: 14px;
    margin: 8px 0;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.market-location-fields legend {
    padding: 0 8px;
    color: var(--accent);
    font-weight: 700;
}

.market-country-control {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.market-flag-preview {
    display: grid;
    width: 42px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #080b10;
}

.market-flag-preview img {
    width: 30px;
    height: 20px;
    object-fit: cover;
}

.market-city-picker,
.market-filter-location {
    position: relative;
    display: grid;
    gap: 10px;
}

.market-location-results {
    position: absolute;
    z-index: 30;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #0c1118;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
}

.market-location-results:empty {
    display: none;
}

.market-location-results button {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    text-align: left;
}

.market-location-results button:last-child {
    border-bottom: 0;
}

.market-location-results span {
    color: var(--muted);
    font-size: .78rem;
}

.market-language-pill,
.market-location-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.market-language-pill img,
.market-location-pill img {
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}

.support-admin-grid {
    grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr);
}

.icon-heading,
.icon-button-link,
.ticket-response-form button {
    display: flex;
    align-items: center;
    gap: 9px;
}

.heading-icon {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.button-icon {
    width: 18px;
    height: 18px;
}

.admin-quick-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 16px;
}

.admin-quick-actions .inline-action-form {
    margin: 0;
}

.admin-quick-actions .button-like {
    width: max-content;
}

.admin-action-feedback {
    position: fixed;
    z-index: 120;
    top: 82px;
    right: 24px;
    max-width: min(420px, calc(100vw - 48px));
    padding: 12px 16px;
    border: 1px solid transparent;
    border-radius: 6px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity .18s ease, transform .18s ease;
}

.admin-action-feedback.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.admin-action-feedback.is-success {
    color: #b8f4cf;
    border-color: #2d744a;
    background: #10271a;
}

.admin-action-feedback.is-error {
    color: #ffc2cc;
    border-color: #8b3345;
    background: #2b141a;
}

.admin-list-item {
    transition: opacity .2s ease, transform .2s ease, max-height .24s ease;
}

.admin-list-item.is-resolved {
    opacity: 0;
    transform: translateX(12px);
}

.support-grid form[data-ticket-form] {
    display: grid;
    gap: 18px;
    margin-top: 20px;
}

.support-grid form[data-ticket-form] > label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    color: var(--text);
}

.support-grid form[data-ticket-form] input[type="text"],
.support-grid form[data-ticket-form] input:not([type]),
.support-grid form[data-ticket-form] textarea,
.support-grid form[data-ticket-form] input[type="file"] {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
}

.support-grid form[data-ticket-form] input:not([type]) {
    min-height: 46px;
}

.support-grid form[data-ticket-form] textarea {
    min-height: 220px;
    resize: vertical;
}

.support-grid form[data-ticket-form] button[type="submit"] {
    width: max-content;
}

.ticket-list {
    display: grid;
    gap: 8px;
}

.ticket-list > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    text-decoration: none;
}

.ticket-list > a:hover {
    border-color: var(--accent);
}

.ticket-list > a > span:first-child {
    display: grid;
    gap: 3px;
}

.ticket-list small {
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    width: max-content;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: .78rem;
}

.status-open {
    color: #72dda0;
    border-color: #2c7149;
}

.status-closed {
    color: var(--muted);
}

.ticket-previews,
.ticket-attachments {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 12px 0;
}

.ticket-preview,
.ticket-attachments a {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #05080c;
}

.ticket-preview img,
.ticket-attachments img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.ticket-preview span {
    display: block;
    padding: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticket-resolution {
    margin-top: 20px;
    padding: 16px;
    border-left: 3px solid #43c77b;
    background: rgba(67, 199, 123, .07);
}

.ticket-response-form {
    display: grid;
    gap: 14px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.ticket-response-form label {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
}

.ticket-response-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 180px;
    resize: vertical;
}

.ticket-response-form button {
    width: max-content;
}

@media (max-width: 850px) {
    .support-grid,
    .support-admin-grid {
        grid-template-columns: 1fr;
    }

    .ticket-attachments,
    .ticket-previews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
.feed-type-ad {
    --feed-accent: #f5b942;
}

.feed-type-ad.feed-card {
    border-color: rgba(245, 185, 66, 0.55);
    background: linear-gradient(100deg, rgba(245, 185, 66, 0.08), var(--surface) 28%);
}

.feed-type-ad .feed-type-mini {
    color: #11151c;
    background: #f5b942;
    font-size: 0.72rem;
    letter-spacing: 0;
}

.venue-claim-link,
.venue-verified-note {
    align-self: center;
    color: var(--muted);
    font-size: 0.78rem;
}

.venue-claim-link:hover {
    color: var(--accent);
}

.venue-verified-note {
    color: #58d68d;
}

.profile-main > img.avatar-frame-verified {
    border: 2px solid var(--avatar-frame-verified, #7ee787);
}

img.avatar.avatar-frame-verified {
    outline: 2px solid var(--avatar-frame-verified, #7ee787);
    outline-offset: 2px;
}

.management-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.claim-form {
    max-width: 900px;
}

.privacy-danger-zone {
    border-color: rgba(244, 63, 94, .42);
    background:
        linear-gradient(135deg, rgba(127, 29, 29, .18), rgba(15, 23, 42, .04) 42%),
        var(--surface);
}

.privacy-danger-zone .eyebrow {
    color: #fb7185;
}

.privacy-erasure-list li + li {
    margin-top: .65rem;
}

.form-actions-right {
    justify-content: flex-end;
}

.danger-link {
    color: #fecdd3;
    border-color: rgba(244, 63, 94, .58);
    background: rgba(127, 29, 29, .18);
}

.danger-link:hover {
    color: #fff;
    border-color: rgba(244, 63, 94, .9);
    background: rgba(127, 29, 29, .34);
}

.confirmation-word {
    color: #fecdd3;
    font-weight: 800;
}

@media (max-width: 720px) {
    .management-row {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Keep the global header in one row after adding labels under the icons. */
.topbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: clamp(8px, 1vw, 14px);
    overflow: visible;
    z-index: 1000;
}

.brand,
.report-quick-button,
.locale-switcher,
.notification-center,
.account-menu {
    flex: 0 0 auto;
}

.global-search {
    flex: 1 1 280px;
    min-width: 180px;
    max-width: 480px;
}

.topnav {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.topnav .nav-icon-link {
    flex: 0 0 auto;
}

.account-menu,
.account-menu > a {
    white-space: nowrap;
}

@media (max-width: 780px) {
    .topbar {
        display: flex;
        min-height: 64px;
        padding: 8px 10px;
    }

    .brand img {
        width: 96px;
    }

    .global-search {
        flex-basis: 190px;
        min-width: 150px;
        order: 0;
    }

    .topnav {
        order: 0;
        grid-column: auto;
        max-width: 42vw;
        padding-bottom: 0;
    }

    .nav-icon-link {
        min-width: 62px;
        min-height: 48px;
        padding: 5px 7px;
    }

    .nav-icon-label {
        max-width: 58px;
        font-size: 0.56rem;
    }
}

@media (max-width: 640px) {
    .topbar {
        grid-template-columns: none;
        gap: 7px;
        overflow: visible;
    }

    .brand img {
        width: 82px;
    }

    .global-search {
        flex: 0 1 150px;
        min-width: 118px;
    }

    .global-search input {
        min-height: 38px;
        padding: 9px 10px 9px 34px;
        font-size: 0.9rem;
    }

    .topnav {
        flex: 0 1 220px;
        max-width: 36vw;
        gap: 6px;
    }

    .topnav .nav-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .nav-icon-link {
        grid-template-rows: 22px auto;
        min-width: 54px;
        min-height: 44px;
        padding: 4px 5px;
    }

    .nav-icon-label {
        max-width: 48px;
        font-size: 0.52rem;
    }

    .topnav-separator {
        flex: 0 0 1px;
        height: 24px;
        margin: 0 1px;
    }

    .locale-switcher {
        gap: 2px;
    }

    .locale-switcher a {
        min-width: 28px;
        padding: 7px 6px;
        font-size: 0.74rem;
    }

    .icon-button,
    .profile-dropdown summary {
        width: 38px;
        height: 38px;
    }

    .account-menu > a {
        padding: 9px 10px;
        font-size: 0.88rem;
    }
}

.profile-dropdown-menu,
.notification-popover {
    z-index: 10050;
}

.search-popover,
.profile-dropdown-menu,
.notification-popover {
    background: #070b11 !important;
    backdrop-filter: none !important;
    box-shadow: 0 20px 58px rgba(0, 0, 0, 0.72) !important;
}

.search-popover {
    z-index: 10040;
}

.telemetry-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0;
}

.telemetry-summary {
    display: grid;
    gap: 8px;
    min-height: 112px;
}

.telemetry-summary span,
.operations-metrics small {
    color: var(--muted);
}

.telemetry-summary strong {
    font-size: 2rem;
}

.analytics-user-section {
    margin: 16px 0;
}

.user-analytics-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 18px 0 28px;
    border: 1px solid var(--border);
    background: var(--border);
}

.user-analytics-summary > div {
    display: grid;
    gap: 7px;
    padding: 16px;
    background: #090e15;
}

.user-analytics-summary span,
.retention-window-grid span {
    color: var(--muted);
    font-size: 0.82rem;
}

.user-analytics-summary strong {
    font-size: 1.65rem;
}

.analytics-user-chart-heading,
.analytics-chart-legend {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.analytics-chart-legend {
    justify-content: flex-end;
    font-size: 0.78rem;
}

.analytics-chart-legend span::before {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 6px;
    content: '';
}

.analytics-chart-legend .is-new::before,
.user-trend-pair .is-new {
    background: #f2c300;
}

.analytics-chart-legend .is-active::before,
.user-trend-pair .is-active {
    background: #36c979;
}

.user-trend-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 218px;
    overflow-x: auto;
    padding: 20px 4px 4px;
}

.user-trend-item {
    display: grid;
    grid-template-rows: 170px auto;
    align-items: end;
    gap: 8px;
    flex: 1 0 48px;
    min-width: 48px;
    text-align: center;
}

.user-trend-pair {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 3px;
    height: 170px;
}

.user-trend-pair span {
    width: min(16px, 42%);
    min-height: 2px;
}

.user-trend-item small {
    color: var(--muted);
    font-size: 0.68rem;
}

.retention-window-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--border);
}

.retention-window-grid > div {
    display: grid;
    gap: 5px;
    padding: 14px 10px;
    background: #090e15;
    text-align: center;
}

.analytics-table-wrap {
    overflow-x: auto;
}

.analytics-table {
    width: 100%;
    border-collapse: collapse;
}

.analytics-table th,
.analytics-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.analytics-table th {
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
}

.analytics-tracking-note {
    margin-top: 14px;
}

.telemetry-bars {
    display: flex;
    align-items: end;
    gap: 8px;
    min-height: 220px;
    overflow-x: auto;
    padding: 20px 4px 4px;
}

.telemetry-bar-item {
    display: grid;
    grid-template-rows: 170px auto;
    align-items: end;
    gap: 8px;
    flex: 1 0 42px;
    min-width: 42px;
    text-align: center;
}

.telemetry-bar-item span {
    display: block;
    width: 100%;
    min-height: 3px;
    border: 1px solid #f2c300;
    background: rgba(242, 195, 0, 0.34);
}

.telemetry-bar-item small {
    color: var(--muted);
    font-size: 0.68rem;
}

.telemetry-ranking {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.telemetry-ranking li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 11px 0;
    border-bottom: 1px solid var(--border);
}

.telemetry-ranking li span {
    display: grid;
    min-width: 0;
}

.telemetry-ranking small {
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.telemetry-privacy-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.operations-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.operations-metrics span {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--border);
    background: rgba(4, 9, 15, 0.58);
}

.operations-metrics strong {
    font-size: 1.35rem;
}

.error-log-list {
    display: grid;
    gap: 14px;
    margin-top: 16px;
}

.error-log-card {
    border-left: 3px solid #5f6c7b;
}

.error-log-card.is-open {
    border-left-color: #e85d75;
}

.error-log-card header,
.error-log-card header > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.error-log-card header > div {
    justify-content: flex-start;
}

.error-log-message {
    padding: 12px;
    background: #080d14;
    overflow-wrap: anywhere;
}

.error-log-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.error-log-meta div {
    min-width: 0;
}

.error-log-meta dt {
    color: var(--muted);
    font-size: 0.78rem;
}

.error-log-meta dd {
    margin: 3px 0 0;
    overflow-wrap: anywhere;
}

.error-log-card pre {
    max-height: 320px;
    overflow: auto;
    padding: 12px;
    background: #070b11;
    font-size: 0.78rem;
    white-space: pre-wrap;
}

.error-resolve-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 12px;
    margin-top: 14px;
}

.request-reference code {
    color: #f2c300;
}

@media (max-width: 760px) {
    .telemetry-summary-grid,
    .user-analytics-summary,
    .operations-metrics,
    .error-log-meta {
        grid-template-columns: 1fr;
    }

    .analytics-user-chart-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .retention-window-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .error-log-card header,
    .error-resolve-form {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

.competition-city-check-card {
    display: grid;
    gap: 10px;
    margin: 20px 0;
    padding: 18px;
    border: 1px solid rgba(255, 193, 7, .45);
    background: rgba(8, 12, 18, .82);
}

.competition-city-check-card h2,
.competition-city-check-card p {
    margin: 0;
}

.competition-city-check-card button {
    justify-self: start;
}

.city-check-status {
    padding: 10px 12px;
    border-left: 3px solid var(--muted);
    background: var(--surface);
}

.city-check-status.has-result {
    border-left-color: var(--accent);
}

.city-check-configuration {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 24px;
    margin-bottom: 16px;
}

.city-check-configuration-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.city-check-configuration-form label {
    display: grid;
    gap: 6px;
}

.city-check-configuration-form .city-check-boundary-field,
.city-check-configuration-form .city-check-enabled {
    grid-column: 1 / -1;
}

.city-check-configuration-form button {
    justify-self: start;
}

.city-check-admin-form {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) auto;
    align-items: end;
    gap: 8px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--line);
}

.city-check-admin-form label {
    display: grid;
    gap: 4px;
}

.city-check-admin-form small {
    grid-column: 1 / -1;
}

@media (max-width: 800px) {
    .city-check-configuration,
    .city-check-configuration-form {
        grid-template-columns: 1fr;
    }

    .city-check-configuration-form .city-check-boundary-field,
    .city-check-configuration-form .city-check-enabled {
        grid-column: auto;
    }

    .city-check-admin-form {
        grid-template-columns: 1fr;
    }
}
.profile-city-picker {
    position: relative;
}

.profile-city-picker .market-location-results {
    margin-top: 6px;
}

.profile-city-status {
    margin: 0;
    padding: 10px 12px;
    color: var(--muted);
    background: #090e15;
}

.profile-city-status.is-error {
    color: #ff9bae;
}

.profile-city-status.is-selected {
    color: #62e59a;
}

.profile-media-current {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}

.profile-media-current img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 6px;
}

.profile-media-current-banner img {
    width: min(280px, 60vw);
    height: 72px;
}

.profile-hp-card {
    grid-column: 1 / -1;
}

.profile-hp-heading,
.profile-hp-breakdown,
.profile-hp-next-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-hp-value {
    font-size: 1.4rem;
    white-space: nowrap;
}

.profile-hp-meter {
    position: relative;
    height: 18px;
    margin: 18px 0 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: #080d14;
}

.profile-hp-meter > span {
    position: absolute;
    inset-block: 0;
    transition: width 180ms ease;
}

.profile-hp-core {
    left: 0;
    background: #2fbf71;
}

.profile-hp-bonus {
    background: var(--accent, #f3c400);
}

.profile-hp-threshold {
    position: absolute;
    z-index: 2;
    top: -3px;
    bottom: -3px;
    left: 70%;
    width: 2px;
    background: #fff;
}

.profile-hp-breakdown {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.profile-hp-bonus-label {
    color: var(--accent, #f3c400);
}

.profile-hp-state {
    margin-left: auto;
    font-weight: 700;
}

.profile-hp-status-grace .profile-hp-state { color: #f3c400; }
.profile-hp-status-inactive .profile-hp-state { color: #e05a72; }
.profile-hp-status-active .profile-hp-state { color: #42d784; }

.profile-hp-next-action {
    align-items: flex-start;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.profile-hp-next-action span {
    flex: 1;
}

.profile-hp-next-action b {
    color: var(--accent, #f3c400);
}

@media (max-width: 700px) {
    .profile-hp-heading,
    .profile-hp-next-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-hp-state {
        width: 100%;
        margin-left: 0;
    }
}

.referral-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
    gap: 16px;
}

.referral-share-card label {
    display: grid;
    gap: 7px;
    margin-top: 14px;
}

.referral-share-card button {
    margin-top: 8px;
}

.referral-share-card button.is-copied {
    border-color: #42d784;
    color: #42d784;
}

.referral-qr-card {
    text-align: center;
}

.referral-qr {
    display: inline-grid;
    place-items: center;
    width: min(100%, 260px);
    margin-top: 12px;
    padding: 10px;
    background: #fff;
}

.referral-qr svg {
    display: block;
    width: 100%;
    height: auto;
}

.profile-referral-entry {
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .referral-grid {
        grid-template-columns: 1fr;
    }
}

.achievement-section-heading,
.achievement-progress-row,
.achievement-slot,
.achievement-earned-card,
.profile-badge-showcase,
.achievement-slot-actions {
    display: flex;
    align-items: center;
}

.achievement-section-heading { justify-content: space-between; gap: 16px; }
.achievement-showcase-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.achievement-slot { position: relative; min-height: 150px; flex-direction: column; justify-content: center; gap: 9px; padding: 18px; border: 1px solid var(--line); background: var(--surface); text-align: center; }
.achievement-slot.is-empty { opacity: .65; border-style: dashed; }
.achievement-slot-number { position: absolute; top: 10px; left: 12px; color: var(--muted); font-size: .75rem; }
.achievement-badge-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--accent); }
.achievement-badge-icon svg { width: 30px; height: 30px; }
.achievement-dashboard-grid { align-items: start; }
.achievement-earned-grid { display: grid; gap: 10px; }
.achievement-earned-card { gap: 14px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.achievement-earned-card > div:nth-child(2) { flex: 1; min-width: 0; }
.achievement-earned-card p { margin: 4px 0; color: var(--muted); }
.achievement-slot-actions { gap: 5px; }
.achievement-slot-actions form { margin: 0; }
.achievement-slot-actions .icon-button { width: 34px; height: 34px; }
.achievement-slot-actions .is-active { border-color: #43d17b; color: #43d17b; }
.achievement-progress-row { align-items: stretch; flex-direction: column; gap: 7px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.achievement-progress-meter { height: 8px; overflow: hidden; background: var(--surface); }
.achievement-progress-meter i { display: block; height: 100%; background: #43d17b; }
.profile-badge-showcase--hero { position: absolute; top: 18px; right: 18px; z-index: 2; display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.profile-badge-showcase--hero .profile-badge { display: grid; place-items: center; width: 86px; height: 86px; padding: 0; border: 0; background: transparent; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .46)); transition: transform .18s ease, filter .18s ease; }
.profile-badge-showcase--hero .profile-badge:hover { transform: translateY(-2px) scale(1.035); filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .58)); }
.profile-badge-showcase--hero .profile-badge img { display: block; width: 100%; height: 100%; object-fit: contain; }
.profile-badge-showcase--hero .profile-badge svg { width: 24px; height: 24px; }
.profile-badge-showcase--hero .profile-badge.is-empty { border: 1px dashed rgba(255, 255, 255, .34); border-radius: 50%; background: rgba(8, 11, 16, .34); color: rgba(255, 255, 255, .58); filter: none; }
.achievement-badge-art { display: block; flex: 0 0 72px; width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .34)); }
.achievement-slot .achievement-badge-art { width: 84px; height: 84px; }
.achievement-tone-legacy-zero { border-color: #d9b84c; color: #ffe18a; }
.achievement-tone-legacy-alpha { border-color: #9bb8d8; color: #cbe1ff; }
.achievement-tone-community { border-color: #3b9c72; }
.achievement-tone-tester-gold { border-color: #f4c430; color: #ffe79b; box-shadow: inset 0 0 0 1px rgba(244, 196, 48, .12); }
.profile-history-more { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.profile-history-more summary { cursor: pointer; color: var(--accent); font-weight: 700; }
.profile-history-more .history-list { margin-top: 12px; }
.achievement-admin-search { display: flex; align-items: end; gap: 10px; margin-top: 16px; }
.achievement-admin-search label { flex: 1; }
.achievement-admin-user-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.achievement-admin-user-results a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border: 1px solid var(--line); background: var(--surface); color: inherit; text-decoration: none; }
.achievement-admin-user-results a:hover { border-color: var(--accent); }
.achievement-admin-user-results span { color: var(--muted); font-size: .86rem; }
.achievement-admin-badge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.achievement-admin-badge { display: grid; grid-template-columns: minmax(72px, 1fr) minmax(0, 3fr) minmax(110px, 1fr); align-items: center; gap: 12px; min-height: 120px; padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.achievement-admin-badge > .achievement-badge-art { justify-self: center; }
.achievement-admin-badge-copy { min-width: 0; }
.achievement-admin-badge p { margin: 4px 0; color: var(--muted); }
.achievement-admin-badge small { color: var(--muted); }
.achievement-admin-badge.is-earned small { color: #57d887; }
.achievement-admin-badge form { margin: 0; }
.achievement-admin-badge-action { min-width: 0; overflow-wrap: anywhere; }
.achievement-admin-badge-action form,
.achievement-admin-badge-action button { width: 100%; }

@media (max-width: 760px) {
    .achievement-showcase-slots { grid-template-columns: 1fr; }
    .achievement-admin-user-results,
    .achievement-admin-badge-grid { grid-template-columns: 1fr; }
    .profile-banner { height: 210px; }
    .profile-badge-showcase--hero { top: 10px; right: 10px; gap: 4px; }
    .profile-badge-showcase--hero .profile-badge { width: 58px; height: 58px; }
    .profile-badge-showcase--hero .profile-badge svg { width: 18px; height: 18px; }
    .achievement-admin-search { align-items: stretch; flex-direction: column; }
    .achievement-admin-badge { grid-template-columns: 72px minmax(0, 1fr); }
    .achievement-admin-badge-action { grid-column: 1 / -1; }
    .achievement-earned-card { align-items: flex-start; flex-wrap: wrap; }
    .achievement-slot-actions { width: 100%; }
}
