:root {
    --ink: #070d1d;
    --muted: #566b89;
    --line: #dfe3ea;
    --soft: #f5f6f8;
    --danger: #f43f46;
    --blue: #17233f;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Arial, Helvetica, sans-serif; background: #fff; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
svg { width: 20px; height: 20px; vertical-align: middle; }

.topbar { position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center; gap: 28px; padding: 0 28px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.16); overflow: visible; }
.brand { display: flex; align-items: center; min-width: 175px; }
.brand img { width: 150px; height: 48px; max-width: 150px; max-height: 48px; object-fit: contain; display: block; }
.category-nav { display: flex; align-items: center; gap: 8px; flex: 1; height: 100%; }
.category-item { position: relative; height: 100%; display: flex; align-items: center; }
.category-item > a { padding: 14px 17px; border-radius: 6px; }
.category-item:hover > a { background: #f3f3f4; }
.discipline-menu { position: absolute; top: 62px; left: 0; min-width: 238px; max-height: calc(100vh - 85px); overflow: auto; padding: 16px; display: none; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.category-item:hover .discipline-menu { display: block; }
.discipline-menu a { display: flex; align-items: center; gap: 13px; padding: 11px 8px; color: var(--muted); white-space: nowrap; }
.discipline-menu img, .table-icon { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.language { display: flex; align-items: center; gap: 8px; min-width: 160px; justify-content: center; border: 1px solid var(--line); border-radius: 6px; background: #f7f7f7; height: 40px; }
.language span { font-size: 11px; font-weight: 700; }
.icon-link, .user-link { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.message-link { position: relative; width: 38px; height: 38px; justify-content: center; border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.message-link.has-unread { color: #ec314b; background: #fff1f3; }
.message-count { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #ec314b; color: white; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.message-pulse { animation: messagePulse .9s ease both; }
@keyframes messagePulse {
    0%, 100% { transform: translateY(0) scale(1); }
    20% { transform: translateY(-2px) rotate(-10deg) scale(1.08); }
    45% { transform: translateY(1px) rotate(8deg) scale(1.05); }
    70% { transform: translateY(-1px) rotate(-4deg) scale(1.03); }
}
.top-logout { margin: 0; }
.top-logout button { border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.maintenance-banner { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; background: #f6c021; color: var(--ink); font-weight: 700; }
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: #fff; color: #98a3b3; }
.site-footer-inner { max-width: 1390px; margin: 0 auto; padding: 40px 28px 34px; display: grid; grid-template-columns: minmax(220px, 1.1fr) minmax(150px, .7fr) minmax(180px, .8fr) minmax(180px, .9fr); gap: 70px; align-items: start; }
.footer-brand-block { display: grid; gap: 14px; }
.footer-logo { display: inline-flex; align-items: center; width: 150px; }
.footer-logo img { width: 150px; height: 48px; object-fit: contain; display: block; }
.footer-brand-block p { max-width: 290px; margin: 0; line-height: 1.45; }
.footer-links { display: grid; gap: 14px; align-content: start; }
.footer-links a { color: #c3cad4; display: inline-flex; align-items: center; gap: 8px; }
.footer-links a:hover { color: var(--ink); }
.footer-category-links img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; }
.footer-social { display: flex; justify-content: flex-end; gap: 14px; }
.footer-social a { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; background: #9aa3af; color: white; transition: transform .18s ease, background .18s ease; }
.footer-social a:hover { transform: translateY(-2px); background: var(--ink); }
.footer-social svg { width: 18px; height: 18px; }
.site-footer-bottom { max-width: 1390px; margin: 0 auto; padding: 26px 28px 34px; border-top: 1px solid var(--line); text-align: center; color: #8b96a7; }

.home-hero, .discipline-hero { height: 575px; position: relative; display: grid; place-items: center; color: white; background: url('https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1800&q=80') center/cover; text-align: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.58); backdrop-filter: blur(2px); }
.hero-content, .discipline-content { position: relative; z-index: 1; max-width: 900px; padding: 20px; }
h1 { font-size: 54px; line-height: 1.05; margin: 0 0 18px; letter-spacing: 0; }
h2 { font-size: 34px; margin: 0 0 14px; }
h3 { margin: 0 0 10px; }
.discipline-icon { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(7,13,29,.8); background: #596170; display: inline-grid; place-items: center; font-size: 24px; }
.mini-stats { display: flex; justify-content: center; gap: 22px; margin: 26px 0; color: #d9dee8; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 920px; margin: 42px auto 74px; text-align: center; }
.stats-row div { display: grid; gap: 4px; justify-items: center; }
.stats-row strong { font-size: 23px; }
.stats-row span, .muted, .section p, .category-card p, .feature-card p, .athlete-card p, .place-card p { color: var(--muted); }
.section { max-width: 1360px; margin: 0 auto; padding: 58px 28px; }
.center { text-align: center; }
.category-grid, .feature-grid, .athlete-grid, .place-grid, .admin-grid { display: grid; gap: 24px; }
.category-grid { grid-template-columns: repeat(4, 1fr); margin-top: 44px; }
.home-category-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: 44px; }
.home-category-grid > .home-category-card { flex: 0 1 calc((100% - 72px) / 4); min-width: 250px; }
.feature-grid { grid-template-columns: repeat(4, 1fr); margin-top: 50px; }
.category-card, .home-category-card, .feature-card, .athlete-card, .place-card, .panel, .toolbar, .admin-panel, .metric-card, .profile-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 5px 14px rgba(0,0,0,.06); }
.category-card, .feature-card { min-height: 150px; padding: 32px; display: grid; place-items: center; }
.home-category-card { min-height: 330px; padding: 0; display: grid; grid-template-rows: 134px minmax(0, 1fr); overflow: hidden; place-items: stretch; color: var(--ink); }
.feature-card { min-height: 150px; padding: 32px; display: grid; place-items: center; }
.category-thumb { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg,#e7f0ff,#f6a039); }
.category-thumb.image { object-fit: cover; background: #f4f4f5; }
.category-card-visual { position: relative; display: grid; place-items: center; overflow: hidden; background: #eef2f7; }
.category-card-visual img { position: absolute; inset: -6px; width: calc(100% + 12px); height: calc(100% + 12px); object-fit: cover; filter: blur(3px) saturate(1.08); transform: scale(1.01); opacity: .9; }
.category-card-visual::after { content: ""; position: absolute; inset: 0; background: rgba(7,13,29,.32); }
.category-card-visual h3 { position: relative; z-index: 1; margin: 0; color: white; font-size: 30px; text-shadow: 0 2px 14px rgba(0,0,0,.45); }
.category-discipline-list { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; text-align: left; }
.category-discipline-list a { min-height: 32px; border-radius: 6px; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 9px; color: var(--muted); line-height: 1.2; }
.category-discipline-list a:hover { color: var(--ink); background: #f5f7fa; }
.category-discipline-list img, .category-discipline-list b { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #f0f2f5; color: var(--ink); font-size: 10px; }
.feature-card svg { width: 34px; height: 34px; color: white; }
.feature-card .feature-icon { grid-area: 1 / 1; align-self: center; justify-self: center; z-index: 2; pointer-events: none; }
.feature-card::before { content: ""; width: 68px; height: 68px; border-radius: 50%; grid-area: 1/1; }
.feature-card > * { position: relative; z-index: 1; }
.feature-card h3, .feature-card p { grid-column: 1; }
.feature-card.orange::before { background: linear-gradient(135deg,#f6b000,#f06a00); }
.feature-card.red::before { background: linear-gradient(135deg,#ff7231,#ec314b); }
.feature-card.pink::before { background: linear-gradient(135deg,#ef588a,#e63564); }
.feature-card.teal::before { background: linear-gradient(135deg,#26c9bd,#10a6b7); }
.feature-card.blue::before { background: linear-gradient(135deg,#2f80ed,#12c2d7); }
.feature-card.purple::before { background: linear-gradient(135deg,#9b59ee,#d84dc4); }
.feature-card.violet::before { background: linear-gradient(135deg,#6d5df5,#9b4ded); }
.feature-card.green::before { background: linear-gradient(135deg,#20c777,#18b85d); }
.muted { opacity: .72; }

.page-head { text-align: center; padding: 38px 24px 24px; }
.breadcrumbs { display: flex; justify-content: center; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 16px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--ink); text-decoration: underline; }
.breadcrumbs span { color: var(--muted); }
.toolbar { display: flex; gap: 12px; align-items: center; margin: 16px auto 32px; max-width: 1390px; padding: 24px; }
.modal-open { overflow: hidden; }
.search { flex: 1; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; color: var(--muted); }
.search input, .toolbar select, .filters input, .filters select, .admin-table select, textarea { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; background: white; }
.search input { padding-left: 44px; }
.btn { min-height: 40px; border: 0; border-radius: 6px; padding: 0 18px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: white; cursor: pointer; }
.btn.light { background: white; color: var(--ink); }
.btn.outline, .toggle, .actions button, .actions a { background: white; color: var(--ink); border: 1px solid var(--line); }
.toggle { width: 42px; height: 42px; border-radius: 6px; display: grid; place-items: center; }
.toggle.active { background: #f0f0f1; }
.athlete-grid { grid-template-columns: repeat(4, 1fr); max-width: 1390px; margin: auto; padding-bottom: 40px; }
.athlete-card { min-height: 330px; text-align: center; padding: 36px 24px 28px; }
.avatar-wrap { position: relative; width: 120px; margin: 0 auto 12px; }
.avatar-profile-link { display: block; color: inherit; }
.avatar-profile-link .avatar { transition: transform .18s ease, box-shadow .18s ease; }
.avatar-profile-link:hover .avatar { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(7,13,29,.16); }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: inline-grid; place-items: center; border: 4px solid #d4d7dc; background: #f8f8f8; font-size: 18px; object-fit: cover; }
.avatar.small { width: 42px; height: 42px; border-width: 0; font-size: 16px; }
.badge { position: absolute; right: 0; bottom: 0; width: 56px; height: 56px; display: grid; place-items: center; background: #f6c021; color: white; font-size: 11px; font-weight: 800; clip-path: polygon(50% 0, 92% 18%, 92% 68%, 50% 100%, 8% 68%, 8% 18%); text-transform: uppercase; }
.badge.pro { background: #f0bd00; }
.user-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 16px; }
.role-badge { min-height: 34px; padding: 7px 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: white; font-weight: 900; font-size: 13px; line-height: 1; text-transform: uppercase; box-shadow: 0 7px 14px rgba(7,13,29,.15), inset 0 1px 0 rgba(255,255,255,.22); text-shadow: 0 1px 1px rgba(0,0,0,.22); }
.role-badge-amateur { background: linear-gradient(135deg, #8b96a4, #596273); }
.role-badge-pro { background: linear-gradient(135deg, #3d7cff, #1957df); }
.role-badge-manufacturer { background: linear-gradient(135deg, #ff9a1b, #f25b0b); }
.role-badge-media { background: linear-gradient(135deg, #9345f5, #6d2fe1); }
.role-badge-administrator { background: linear-gradient(135deg, #ff6666, #ef333b); }
.role-badge-moderator { background: linear-gradient(135deg, #28d96b, #16a74b); }
.role-badge-shop { background: linear-gradient(135deg, #f7c60f, #e4a100); }
.user-badge-picker { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.user-badge-picker legend { padding: 0 8px; font-weight: 800; }
.user-badge-picker label { width: auto; display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
.user-badge-picker label:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.user-badge-picker input:disabled + .role-badge { filter: grayscale(.35); }
.user-avatar-stack { display: grid; justify-items: center; gap: 6px; min-width: 108px; }
.user-avatar-stack .user-badges { justify-content: center; gap: 4px; margin: 0; }
.user-avatar-stack .role-badge { min-height: 22px; padding: 5px 7px; font-size: 10px; border-radius: 5px; }
.user-cell .user-badges { justify-content: flex-start; margin: 8px 0 0; }
.admin-table td > .user-badges { justify-content: flex-start; margin: 0; }
.admin-table .role-badge { min-height: 26px; padding: 6px 9px; font-size: 11px; border-radius: 6px; }
.card-metrics { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; color: var(--muted); font-size: 13px; }
.card-metrics span, .card-metrics a { display: grid; gap: 8px; justify-items: center; color: var(--muted); border-radius: 6px; padding: 4px; }
.card-metrics a:hover { color: var(--ink); background: #f5f7fa; }
.map-large { max-width: 1390px; height: 610px; margin: 0 auto 44px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.athlete-map-popup { min-width: 150px; text-align: center; }
.map-popup-avatar { display: inline-grid; place-items: center; margin-bottom: 6px; }
.map-popup-avatar img, .map-popup-avatar span { display: inline-grid; }
.map-popup-name { display: inline-block; color: var(--ink); }
.map-popup-name:hover { text-decoration: underline; }
.spot-type-marker-wrap { background: transparent; border: 0; }
.spot-type-marker { position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px 999px 999px 4px; transform: rotate(-45deg); background: var(--spot-marker, #111827); color: white; border: 3px solid white; box-shadow: 0 6px 16px rgba(0,0,0,.25); font-size: 11px; font-weight: 800; line-height: 1; }
.spot-type-marker b { position: relative; z-index: 1; transform: rotate(45deg); }
.spot-type-marker img { position: relative; z-index: 1; width: 22px; height: 22px; object-fit: contain; transform: rotate(45deg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
.spot-type-marker::before { content: ""; position: absolute; inset: 6px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); }
.team-map-marker { --spot-marker: #ec4899; }
.shop-map-marker { --spot-marker: #14b8a6; }
.modal-open .leaflet-container,
.modal-open .leaflet-pane,
.modal-open .leaflet-top,
.modal-open .leaflet-bottom { z-index: 1 !important; }
.place-grid { grid-template-columns: repeat(3, 1fr); max-width: 1390px; margin: auto; }
.place-card { overflow: hidden; }
.place-card, .athlete-card, .trick-card-wrap { position: relative; }
.place-card a { min-height: 400px; display: grid; grid-template-rows: 190px minmax(128px, 1fr) auto; color: var(--ink); }
.place-card-body { padding: 22px 24px 18px; display: grid; align-content: start; gap: 12px; background: white; }
.place-card h3, .place-card p { padding: 0; margin: 0; }
.place-card h3 { font-size: 24px; line-height: 1.15; }
.spot-type-pill { justify-self: start; margin: 0; }
.place-image { height: 190px; overflow: hidden; background: #f3f3f4; display: grid; place-items: center; color: #6b7890; }
.place-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-image svg { width: 64px; height: 64px; }
.place-meta { border-top: 1px solid var(--line); padding: 16px 24px 20px; display: flex; justify-content: space-between; color: var(--muted); }
.star { color: #f7b500; fill: #f7b500; }
.filter-modal[hidden] { display: none; }
.filter-modal { position: fixed; inset: 0; z-index: 5000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.72); }
.filter-panel { width: min(520px, 94vw); max-height: 88vh; overflow: auto; border-radius: 8px; background: white; padding: 24px; box-shadow: 0 22px 70px rgba(0,0,0,.34); }
.filter-panel .panel-head { margin-bottom: 22px; }
.filter-panel .panel-head h2 { font-size: 18px; margin: 0; }
.filter-grid { display: grid; gap: 16px; }
.filter-grid label { position: relative; display: grid; gap: 6px; color: var(--ink); font-size: 14px; text-align: left; }
.filter-grid select, .filter-grid input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: white; color: var(--ink); }
.filter-grid select:focus, .filter-grid input:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.range-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.filter-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }

.detail-page { max-width: 1250px; margin: 36px auto; padding: 0 20px; }
.detail-actions { display: grid; grid-template-columns: 1fr auto auto auto auto; gap: 12px; align-items: center; }
.detail-actions > a:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.detail-actions form { margin: 0; }
.favorite-btn.star { color: #f43f5e; border-color: #f43f5e; }
.favorite-btn.star svg { fill: #f43f5e; }
.discipline-tags { display: flex; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.discipline-tags a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: #fbfbfc; color: var(--ink); }
.discipline-usage { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.discipline-usage strong { display: block; margin-bottom: 8px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 32px; }
.team-detail-page { display: grid; gap: 28px; }
.team-detail-actions { grid-template-columns: 1fr auto auto auto; }
.team-hero-panel { border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 5px 14px rgba(0,0,0,.06); overflow: hidden; }
.team-cover { height: 300px; background: linear-gradient(135deg,#eef2f7,#dbeafe) center/cover no-repeat; }
.team-summary { display: grid; grid-template-columns: 132px minmax(0, 1fr) 230px; gap: 24px; align-items: start; padding: 28px 32px 32px; }
.team-avatar { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 4px solid white; box-shadow: 0 0 0 1px var(--line), 0 10px 24px rgba(0,0,0,.12); margin-top: -84px; background: white; }
.team-avatar-empty { display: grid; place-items: center; color: var(--ink); font-size: 28px; font-weight: 800; background: #f4f6f8; }
.team-summary-main { min-width: 0; display: grid; gap: 12px; }
.team-summary-main h1 { font-size: clamp(34px, 4vw, 54px); overflow-wrap: anywhere; margin: 0; }
.team-summary-main p { margin: 0; }
.team-location { display: flex; align-items: center; gap: 6px; }
.team-stats { display: grid; gap: 10px; align-self: stretch; border-left: 1px solid var(--line); padding-left: 22px; }
.team-stats span { display: grid; gap: 2px; color: var(--muted); }
.team-stats strong { color: var(--ink); font-size: 28px; }
.team-members-panel { margin: 0; }
.article-cover { border-radius: 8px; overflow: hidden; margin: 22px 0; max-height: 460px; background: #f4f4f5; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-body { line-height: 1.65; color: var(--ink); }
.rich-content { line-height: 1.65; color: var(--ink); overflow-wrap: anywhere; }
.rich-content p, .rich-content ul, .rich-content ol, .rich-content blockquote { margin: 0 0 14px; }
.rich-content h2, .rich-content h3 { margin: 20px 0 10px; line-height: 1.16; }
.rich-content blockquote { border-left: 3px solid var(--line); padding-left: 14px; color: var(--muted); }
.rich-content img { max-width: 100%; height: auto; display: block; margin: 14px 0; border-radius: 8px; }
.rich-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.event-calendar { max-width: 1390px; margin: 0 auto 34px; display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; box-shadow: 0 5px 14px rgba(0,0,0,.06); }
.event-calendar > strong { padding: 12px; background: #f5f6f8; border-right: 1px solid var(--line); text-align: center; }
.event-calendar article { min-height: 130px; padding: 10px; border-top: 1px solid var(--line); border-right: 1px solid var(--line); display: grid; align-content: start; gap: 6px; }
.event-calendar article b { color: var(--ink); }
.event-calendar article a { display: grid; gap: 2px; padding: 7px; border-radius: 6px; background: #eef7ff; color: var(--ink); font-size: 13px; }
.event-calendar article a span { color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.event-calendar .muted-month { background: #fafafa; opacity: .55; }
.map-detail { position: relative; z-index: 1; height: 380px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); margin: 24px 0; }
.place-map-address { margin: -10px 0 24px; display: flex; align-items: center; gap: 8px; color: var(--muted); }
.place-map-address a { color: var(--ink); }
.panel { padding: 26px; margin-bottom: 28px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.photo-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.photo-row img { width: 100%; height: 150px; object-fit: cover; border-radius: 6px; }
.media-item { position: relative; margin: 0; overflow: hidden; border-radius: 6px; background: #f4f4f5; }
.photo-sort-item[draggable="true"] { cursor: grab; }
.photo-sort-item.dragging { opacity: .5; cursor: grabbing; }
.photo-sort-item.primary-photo::before { content: "Main"; position: absolute; left: 8px; top: 8px; z-index: 2; min-height: 26px; border-radius: 999px; padding: 4px 10px; background: rgba(7,13,29,.82); color: white; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(-6px); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.media-item form { margin: 0; }
.media-open { width: 100%; border: 0; padding: 0; display: block; background: transparent; cursor: zoom-in; color: var(--ink); text-align: left; }
.video-open { position: relative; cursor: zoom-in; }
.video-open iframe { pointer-events: none; display: block; }
.video-open span { position: absolute; inset: auto 10px 10px; min-height: 34px; border-radius: 6px; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(7,13,29,.82); color: white; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.media-delete { position: absolute; right: 8px; bottom: 8px; min-height: 34px; border: 0; border-radius: 6px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; background: rgba(7,13,29,.82); color: white; cursor: pointer; opacity: 0; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease; pointer-events: none; }
.video-item .media-delete { bottom: 52px; }
.media-item:hover .media-delete, .media-item:focus-within .media-delete, .media-delete:focus-visible, .media-item:hover .video-open span, .media-item:focus-within .video-open span, .photo-sort-item.primary-photo:hover::before, .photo-sort-item.primary-photo:focus-within::before { opacity: 1; transform: translateY(0); pointer-events: auto; }
.media-delete svg { width: 16px; height: 16px; }
.inline-upload { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 14px 0 18px; }
.inline-upload input[type="url"], .inline-upload input[type="file"] { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 12px; background: white; }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.video-grid iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 6px; background: #111827; }
.video-item { min-height: 190px; display: grid; align-items: center; }
.video-item > a { padding: 18px; overflow-wrap: anywhere; }
.review-media-row, .review-video-grid { margin-top: 14px; }
.review-media-row { grid-template-columns: repeat(3, 1fr); }
.share-widget { position: relative; display: inline-flex; z-index: 6500; }
.share-trigger { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 12px rgba(7,13,29,.06); }
.share-trigger svg { width: 17px; height: 17px; }
.share-widget.card-share { position: absolute; top: 10px; right: 10px; }
.card-share .share-trigger { width: 38px; min-height: 38px; justify-content: center; padding: 0; border-radius: 999px; background: rgba(255,255,255,.94); }
.card-share .share-label { display: none; }
.share-popover { position: absolute; top: calc(100% + 8px); right: 0; z-index: 6501; width: 230px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: grid; gap: 8px; background: #fff; box-shadow: 0 18px 42px rgba(7,13,29,.18); color: var(--ink); }
.share-popover[hidden] { display: none; }
.share-popover-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.share-popover-head button { width: 30px; min-height: 30px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.share-actions a, .share-actions button, .share-qr-toggle { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: #f8fafc; color: var(--ink); font: inherit; cursor: pointer; }
.share-actions svg, .share-qr-toggle svg, .share-popover-head svg { width: 15px; height: 15px; }
.share-qr { display: grid; place-items: center; padding: 8px; border-radius: 6px; background: #f8fafc; }
.share-qr[hidden] { display: none; }
.share-qr img { width: 132px; height: 132px; }
.share-popover small { min-height: 16px; color: var(--muted); text-align: center; }
.map-popup-share { margin-top: 8px; display: flex; gap: 6px; }
.map-popup-share a, .map-popup-share button { min-height: 28px; border: 1px solid var(--line); border-radius: 5px; padding: 0 8px; display: inline-flex; align-items: center; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.trick-card-wrap .trick-card { height: 100%; }
.review-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rating-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 10px 0 24px; }
.rating-row .stars { color: #f7b500; font-size: 24px; letter-spacing: 1px; }
.star-rating { display: inline-flex; align-items: center; gap: 0; margin: 0; }
.star-rating button { width: 34px; height: 34px; border: 0; background: transparent; color: #c9ced6; font-size: 26px; line-height: 1; cursor: pointer; }
.star-rating button.active,
.star-rating button.preview { color: #f7b500; }
.comment-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment-item.reply { border-top: 0; padding: 12px 0; }
.comment-body { min-width: 0; flex: 1; }
.comment-item p { margin: 5px 0; color: var(--ink); }
.comment-item small { color: var(--muted); }
.comment-replies { margin-top: 12px; padding-left: 18px; border-left: 2px solid var(--line); }
.reply-form { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: end; }
.reply-form textarea { min-height: 42px; max-height: 170px; margin: 0; resize: none; overflow: hidden; }
.reply-form .btn { min-height: 42px; }
textarea { min-height: 110px; padding: 14px; display: block; margin-bottom: 12px; }
.forecast-source { margin: -6px 0 12px; color: var(--muted); font-size: 13px; }
.forecast details { border-bottom: 1px solid var(--line); }
.forecast summary { list-style: none; display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; padding: 14px 0; align-items: center; cursor: pointer; }
.forecast summary::-webkit-details-marker { display: none; }
.forecast summary svg { color: #f7b500; width: 22px; height: 22px; }
.forecast summary span { color: var(--muted); }
.forecast-detail { display: grid; gap: 8px; padding: 0 0 14px; color: var(--muted); font-size: 14px; }
.forecast-detail b { color: var(--ink); font-weight: 700; }
.side-stats div { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; text-align: center; }
.side-stats span { display: grid; gap: 6px; justify-items: center; }
.media-lightbox[hidden] { display: none; }
.media-lightbox { position: fixed; inset: 0; z-index: 5200; display: grid; place-items: center; padding: 28px; background: rgba(0,0,0,.82); }
.media-lightbox-panel { position: relative; width: min(1080px, 94vw); max-height: 90vh; display: grid; place-items: center; }
.media-lightbox-panel img, .media-lightbox-panel iframe { max-width: 100%; max-height: 84vh; border: 0; border-radius: 8px; background: #111827; box-shadow: 0 22px 70px rgba(0,0,0,.38); }
.media-lightbox-panel iframe { width: min(960px, 92vw); aspect-ratio: 16 / 9; }
.media-lightbox-close { position: absolute; top: -18px; right: -18px; z-index: 2; width: 42px; height: 42px; border: 0; border-radius: 999px; background: white; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.media-lightbox-nav { position: absolute; top: 50%; z-index: 2; width: 50px; height: 50px; border: 0; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; transform: translateY(-50%); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.media-lightbox-nav.prev { left: -68px; }
.media-lightbox-nav.next { right: -68px; }
.media-lightbox-nav svg { width: 30px; height: 30px; }
.media-lightbox-nav[hidden] { display: none; }

.profile-card { max-width: 1320px; margin: 30px auto; overflow: hidden; }
.profile-cover { height: 190px; background: center/cover; }
.profile-body { position: relative; padding: 34px 48px 28px 170px; min-height: 250px; }
.profile-avatar { position: absolute; left: 56px; top: -50px; background: white; }
.profile-badges { max-width: 420px; }
.profile-badges .user-badges { justify-content: flex-start; margin: 0 0 12px; }
.profile-actions { position: absolute; right: 32px; top: 30px; display: flex; gap: 12px; }
.tabs, .admin-tabs, .sub-tabs { display: flex; border-top: 1px solid var(--line); }
.tabs a, .admin-tabs a, .sub-tabs a { flex: 1; text-align: center; padding: 14px; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a.active, .admin-tabs a.active, .sub-tabs a.active { color: var(--ink); border-bottom-color: var(--ink); }
.profile-activity { max-width: 1320px; margin: 0 auto 42px; }
.activity-item { display: flex; gap: 16px; margin: 18px 0; }
.activity-item span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #f6f7f9; color: #f2b700; }
.pill { display: inline-block; margin: 2px 6px 2px 0; padding: 4px 12px; border-radius: 20px; background: #f4f4f5; font-weight: 700; font-size: 12px; }
.profile-actions form { margin: 0; }
.profile-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.profile-tile { min-height: 112px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; display: grid; align-content: start; gap: 8px; }
.profile-tile > svg { color: var(--muted); }
.profile-tile span, .relationship-user small, .message-item small { color: var(--muted); }
.relationship-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.relationship-user { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.relationship-user span:last-child { display: grid; gap: 2px; }
.team-member-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.message-form { margin-bottom: 22px; }
.message-form textarea { margin-bottom: 10px; }
.chat-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.conversation-list { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fbfbfc; }
.conversation-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; padding: 13px; border-bottom: 1px solid var(--line); align-items: center; }
.conversation-card.active, .conversation-card:hover { background: #f2f6ff; }
.conversation-card span { min-width: 0; display: grid; gap: 2px; }
.conversation-card small, .conversation-card em { color: var(--muted); font-size: 13px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-card b { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #ec314b; color: white; display: grid; place-items: center; font-size: 12px; }
.chat-window { min-height: 520px; border: 1px solid var(--line); border-radius: 8px; display: grid; grid-template-rows: minmax(0, 1fr) auto; overflow: hidden; background: linear-gradient(180deg,#f8fafc,#fff); }
.chat-thread { padding: 20px; overflow: auto; display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { display: flex; gap: 8px; align-items: flex-end; max-width: 74%; }
.chat-bubble.own { align-self: flex-end; flex-direction: row-reverse; }
.chat-bubble > div { padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: white; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(0,0,0,.05); }
.chat-bubble.own > div { border-radius: 14px 14px 4px 14px; background: #eaf2ff; border-color: #cbdcf8; }
.chat-bubble p { margin: 6px 0; color: var(--ink); white-space: normal; }
.chat-bubble small { color: var(--muted); }
.chat-bubble form { opacity: 0; margin: 0; transition: opacity .18s ease; }
.chat-bubble:hover form { opacity: 1; }
.chat-bubble button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.chat-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: white; }
.chat-reply textarea { min-height: 58px; max-height: 130px; margin: 0; resize: vertical; }
.chat-empty { min-height: 100%; display: grid; place-items: center; align-content: center; gap: 12px; color: var(--muted); text-align: center; }
.chat-empty svg { width: 42px; height: 42px; }
.auth-page { display: grid; place-items: center; min-height: calc(100vh - 130px); }
.auth-card { width: min(460px, 100%); border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 5px 14px rgba(0,0,0,.06); display: grid; gap: 14px; }
.auth-card label { display: grid; gap: 8px; color: var(--muted); }
.auth-card input { height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; }
.auth-card p { display: flex; justify-content: space-between; gap: 14px; }
.error-text { color: var(--danger); }
.success-text { color: #0c8f55; }

.admin-head { position: relative; isolation: isolate; text-align: center; padding: 66px 20px 72px; overflow: hidden; color: white; background: url('../admin/xtremeplanetdatacenterWP.png') center/cover no-repeat; }
.admin-head-bg { display: none; }
.admin-head::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(7,13,29,.7), rgba(7,13,29,.38)); pointer-events: none; }
.admin-head h1, .admin-head p { position: relative; z-index: 1; }
.admin-head p { color: rgba(255,255,255,.82); font-size: 22px; }
.admin-tabs { max-width: 1400px; margin: 0 auto 24px; border-top: 0; border-bottom: 1px solid var(--line); }
.admin-grid { grid-template-columns: repeat(3, 1fr); max-width: 1400px; margin: auto; padding: 0 8px; }
.metric-card { padding: 28px; display: flex; justify-content: space-between; align-items: center; }
.metric-card span { color: var(--muted); display: block; }
.metric-card strong { display: block; font-size: 26px; }
.metric-card > svg { width: 48px; height: 48px; padding: 12px; background: #e7e7ea; border-radius: 8px; }
.admin-panel { max-width: 1400px; margin: 0 auto 42px; padding: 28px 34px; }
.filters { border: 1px solid var(--line); border-radius: 7px; padding: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 24px 0; }
.filters h3 { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.link-button { border: 0; background: white; display: flex; gap: 8px; align-items: center; justify-content: center; }
.bulk-actions { margin: 0 0 18px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfc; display: grid; grid-template-columns: auto minmax(170px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) auto; gap: 10px; align-items: center; }
.bulk-actions strong { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); white-space: nowrap; }
.bulk-actions select { width: 100%; height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; background: white; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { color: var(--muted); font-weight: 400; text-align: left; }
.admin-table th, .admin-table td { padding: 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table thead { background: #f4f4f5; }
.user-cell { display: flex; align-items: center; gap: 14px; }
.user-cell small { color: var(--muted); font-size: 14px; }
.actions { display: flex; gap: 8px; }
.actions button, .actions a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 6px; }
.actions .danger { background: var(--danger); color: white; border-color: var(--danger); }
.pagination { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; }
.pagination span { margin-right: auto; color: var(--muted); }
.sub-tabs { border-top: 0; justify-content: flex-start; gap: 8px; margin: 18px 0; }
.sub-tabs a { flex: 0 0 auto; padding: 12px 16px; }
.small-btn { width: 290px; margin: 3px 0; justify-content: center; color: var(--ink); }
.spot-type { margin: 4px 0; }
.spot-type summary { cursor: pointer; color: var(--ink); }
.discipline-form { border: 1px solid var(--line); border-radius: 8px; padding: 22px; margin: 18px 0 28px; background: #fbfbfc; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid label { position: relative; display: grid; gap: 8px; color: var(--muted); }
.form-grid label:focus-within, .filter-grid label:focus-within { z-index: 7000; }
.form-grid input, .form-grid select { height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; background: white; color: var(--ink); }
.form-grid input[type="file"] { padding: 9px 12px; }
.form-grid textarea { min-height: 90px; margin: 0; }
.form-grid .wide, .category-checks { grid-column: 1 / -1; }
.place-location-picker { display: grid; gap: 8px; color: var(--muted); }
.place-location-picker strong { color: var(--ink); }
.place-location-picker p { margin: 0; }
.place-location-picker [data-place-location-map] { height: 360px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #eef2f7; }
.place-location-picker small { color: var(--muted); }
.upload-preview-row { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--muted); }
.upload-preview-row span { display: flex; align-items: center; gap: 10px; }
.logo-thumb { width: 150px; height: 48px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: white; }
.header-thumb { width: 150px; height: 56px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.admin-header-thumb { width: 180px; height: 58px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.profile-image-editor { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; align-items: center; }
.avatar-pick, .header-pick { position: relative; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f7f8fa; cursor: pointer; color: var(--muted); }
.avatar-pick { width: 96px; height: 96px; display: grid; place-items: center; justify-self: start; align-self: center; border-radius: 50%; }
.avatar-pick img, .header-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-pick span { width: 100%; height: 100%; display: grid; place-items: center; font-size: 32px; }
.header-pick { width: 100%; aspect-ratio: 7 / 1; min-height: 92px; max-height: 142px; display: grid; place-items: center; }
.avatar-pick small, .header-pick small { position: absolute; inset: auto 0 0; padding: 8px; background: rgba(7,13,29,.72); color: white; text-align: center; font-size: 12px; }
.visually-hidden-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rich-editor-source { position: absolute; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.rich-editor { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.rich-editor-toolbar { min-height: 44px; display: flex; align-items: center; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); background: #f7f8fa; flex-wrap: wrap; }
.rich-editor-toolbar button { width: 34px; height: 32px; border: 1px solid transparent; border-radius: 6px; display: inline-grid; place-items: center; background: transparent; color: var(--ink); font-weight: 800; cursor: pointer; }
.rich-editor-toolbar button:hover { border-color: var(--line); background: white; }
.rich-editor-toolbar button:disabled { opacity: .5; cursor: wait; }
.rich-editor-surface { min-height: 180px; padding: 14px; outline: none; line-height: 1.6; color: var(--ink); }
.rich-editor-surface.invalid { outline: 2px solid #ef4444; outline-offset: -2px; }
.rich-editor-surface:empty::before { content: attr(data-placeholder); color: #7b8494; }
.rich-editor-surface img { max-width: 100%; height: auto; display: block; margin: 12px 0; border-radius: 8px; }
.rich-editor-surface blockquote { margin: 0 0 12px; border-left: 3px solid var(--line); padding-left: 12px; color: var(--muted); }
.avatar-gallery-open { align-self: center; justify-self: start; grid-column: 1; margin-top: -8px; }
.avatar-gallery-modal[hidden] { display: none; }
.avatar-gallery-modal { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; padding: 24px; background: rgba(7,13,29,.55); }
.avatar-gallery-panel { width: min(720px, 94vw); max-height: 86vh; overflow: auto; border-radius: 8px; background: white; padding: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.avatar-gallery-choice { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.avatar-gallery-choice button { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 12px; display: grid; justify-items: center; gap: 8px; cursor: pointer; }
.avatar-gallery-choice img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.avatar-choice-empty { min-height: 116px; color: var(--muted); }
.phone-prefix-widget { position: relative; display: block; }
.phone-prefix-widget > button { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: white; display: flex; align-items: center; gap: 8px; padding: 0 12px; text-align: left; cursor: pointer; }
.phone-flag { position: relative; width: 28px; height: 20px; display: inline-grid; place-items: center; flex: 0 0 28px; font-size: 18px; line-height: 1; }
.phone-flag img { position: absolute; width: 24px; height: 18px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: white; }
.phone-prefix-widget > div { position: absolute; z-index: 30; top: 46px; left: 0; right: 0; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.phone-prefix-widget > div button { width: 100%; border: 0; background: white; padding: 9px 12px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; text-align: left; cursor: pointer; }
.phone-prefix-widget > div button:hover { background: #f4f4f5; }
.autocomplete-menu[hidden] { display: none; }
.autocomplete-menu { position: absolute; z-index: 7001; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 8px 18px rgba(0,0,0,.14); }
.autocomplete-menu button { width: 100%; border: 0; background: white; padding: 10px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.autocomplete-menu button:hover { background: #f4f4f5; }
.autocomplete-menu small { color: var(--muted); white-space: nowrap; }
.avatar-gallery-admin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.avatar-gallery-admin article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; justify-items: center; gap: 10px; }
.avatar-gallery-admin img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; }
.avatar-gallery-admin form { margin: 0; }
.avatar-gallery-admin button { width: 40px; height: 40px; border: 0; border-radius: 6px; background: var(--danger); color: white; display: grid; place-items: center; }
.crop-modal[hidden] { display: none; }
.crop-modal { position: fixed; inset: 0; z-index: 8000; display: grid; place-items: center; padding: 24px; background: rgba(7,13,29,.55); }
.crop-modal-panel { width: min(760px, 96vw); max-height: 92vh; overflow: auto; background: white; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.28); }
.cropper { border: 1px solid #00a4bd; border-radius: 4px; background: white; }
.cropper-title { width: 100%; min-height: 50px; border: 0; background: white; display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #0057d9; }
.cropper-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 20px; border-top: 1px solid var(--line); }
.cropper-presets { display: grid; align-content: start; }
.cropper-presets button { border: 0; border-bottom: 1px solid var(--line); background: white; text-align: left; color: #0057d9; font-weight: 700; padding: 4px 0; cursor: pointer; }
.cropper-presets button.active { color: var(--ink); }
.cropper-stage { justify-self: center; border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(0,0,0,.1); padding: 22px; background: white; }
.cropper-stage canvas { display: block; max-width: min(520px, 72vw); width: 100%; height: auto; touch-action: none; cursor: move; }
.cropper-zoom { display: grid; grid-template-columns: 24px minmax(180px, 1fr) 24px; align-items: center; gap: 10px; margin-top: 14px; color: var(--ink); }
.cropper-zoom > span { text-align: center; font-weight: 700; }
.cropper-zoom label { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; margin: 0; color: var(--muted); }
.cropper-zoom label span { font-size: 13px; font-weight: 700; color: var(--ink); }
.cropper-zoom input[type="range"] { width: 100%; accent-color: #2388ff; }
.cropper-actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }
.championship-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 22px; align-items: start; }
.championship-country-grid { max-height: 360px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; background: #fbfbfc; }
.championship-country-grid legend { padding: 0 8px; font-weight: 800; }
.championship-country-grid label { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; display: flex; align-items: center; gap: 8px; background: #fff; }
.championship-country-picker { display: grid; gap: 12px; }
.championship-country-picker .panel-head { margin: 0; }
.championship-country-picker .search { max-width: 360px; }
.championship-age-rule { border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; background: #f8fafc; }
.championship-calendar-editor { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 12px; background: #fff; }
.championship-calendar-editor h3 { margin: 0; font-size: 20px; }
.championship-calendar-editor > div { display: grid; grid-template-columns: 180px minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; }
.championship-calendar-editor label { display: grid; gap: 5px; color: var(--muted); }
.championship-calendar-editor input { height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; color: var(--ink); }
.championship-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.championship-actions .small-btn { min-width: 112px; justify-content: center; }
.championship-rules { border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 10px; background: #f8fafc; }
.championship-rules h3 { margin: 0; font-size: 20px; }
.championship-rules div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; }
.championship-phase-list { color: var(--muted); font-size: 13px; }
.championship-banner { max-width: 1390px; margin: 28px auto 0; border: 1px solid #bfdbfe; border-radius: 8px; padding: 24px; display: flex; align-items: center; justify-content: center; gap: 18px; background: linear-gradient(135deg, #eff6ff, #fff); box-shadow: 0 5px 14px rgba(0,0,0,.06); text-align: center; }
.championship-banner h2 { margin: 8px 0 6px; font-size: 28px; }
.championship-banner p { margin: 0; color: var(--muted); }
.championship-banner-main { min-width: 0; color: var(--ink); display: flex; align-items: center; justify-content: center; gap: 24px; }
.championship-banner-main:hover h2 { text-decoration: underline; }
.championship-banner-logo { width: 128px; height: 128px; border-radius: 10px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 10px; flex: 0 0 auto; }
.championship-logo-thumb { object-fit: contain; background: #fff; }
.championship-logo-preview { width: 120px; height: 120px; border: 1px solid var(--line); border-radius: 8px; object-fit: contain; background: #fff; padding: 10px; }
.championship-page-logo { width: 190px; height: 190px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--line); padding: 12px; box-shadow: 0 5px 14px rgba(0,0,0,.06); margin: 18px auto 0; }
.championship-public { display: grid; gap: 22px; }
.championship-public-hero { display: flex; justify-content: space-between; gap: 24px; align-items: center; background: #f8fbff; border-color: #bfdbfe; }
.championship-public-hero h2 { margin: 10px 0 8px; font-size: clamp(34px, 4vw, 54px); }
.championship-phase-timeline { --phase-count: 4; display: grid; grid-template-columns: repeat(var(--phase-count), minmax(0, 1fr)); gap: 0; position: relative; max-width: 1700px; margin: 0 auto; }
.championship-phase-timeline::before { content: ""; position: absolute; left: calc(50% / var(--phase-count)); right: calc(50% / var(--phase-count)); top: 27px; height: 3px; background: #dbeafe; }
.championship-phase-timeline article { position: relative; z-index: 1; padding: 0 8px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.championship-phase-timeline .phase-dot { width: 18px; height: 18px; border-radius: 999px; background: var(--ink); border: 4px solid #dbeafe; box-shadow: 0 0 0 5px #fff; }
.championship-phase-timeline strong { min-height: 40px; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.championship-phase-timeline div { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 9px; background: #fff; display: grid; gap: 4px; }
.championship-phase-timeline small { text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-size: 11px; }
.championship-phase-timeline span { color: var(--ink); font-weight: 700; }
.championship-phase-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.championship-phase-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 8px; background: #fff; }
.championship-phase-grid strong { color: var(--ink); }
.championship-phase-grid span { color: var(--muted); }
.championship-country-public { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.championship-country-public a { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; color: var(--ink); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: center; }
.championship-country-public a.is-active { border-color: #93c5fd; background: #eff6ff; }
.championship-country-public .country-flag { grid-row: span 2; width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: #f8fafc; font-size: 24px; }
.championship-country-public small { color: var(--muted); }
.championship-athlete-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.championship-athlete-groups section { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 10px; align-content: start; }
.championship-athlete-groups h3 { margin: 0; font-size: 18px; }
.championship-athlete-accordions { display: grid; gap: 12px; }
.championship-athlete-category { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.championship-athlete-category summary { list-style: none; cursor: pointer; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; background: #f8fafc; }
.championship-athlete-category summary::-webkit-details-marker { display: none; }
.championship-athlete-category summary::before { content: "+"; width: 24px; height: 24px; border-radius: 999px; background: #e5e7eb; display: inline-grid; place-items: center; margin-right: 10px; }
.championship-athlete-category[open] summary::before { content: "-"; }
.championship-athlete-category summary span { margin-right: auto; }
.championship-athlete-category summary b { border-radius: 999px; background: #eef2ff; color: var(--ink); padding: 4px 10px; }
.athlete-category-search { margin: 14px 18px; max-width: 360px; }
.championship-athlete-list { padding: 0 18px 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.championship-athlete-list .relationship-user { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.championship-avatar-wrap { position: relative; display: inline-flex; }
.relationship-user.is-eliminated .championship-avatar-wrap::after { content: "×"; position: absolute; inset: -3px; border-radius: 999px; background: rgba(239, 68, 68, .82); color: #fff; font-size: 34px; font-weight: 900; display: grid; place-items: center; line-height: 1; }
.relationship-user.is-eliminated { opacity: .68; }
.championship-country-empty { text-align: center; padding: 38px; }
.championship-drilldown { display: grid; gap: 24px; }
.championship-drilldown h3 { margin: 0 0 12px; font-size: 22px; }
.championship-chip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.championship-chip-grid a { border: 1px solid var(--line); border-radius: 8px; padding: 14px; color: var(--ink); display: grid; gap: 4px; background: #fff; }
.championship-chip-grid a.is-active { border-color: #93c5fd; background: #eff6ff; }
.championship-chip-grid small { color: var(--muted); }
.local-bracket-tabs { display: grid; gap: 14px; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tab-row button { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; min-height: 38px; padding: 0 14px; font-weight: 700; cursor: pointer; }
.tab-row button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.tab-row .active { background: var(--ink); color: #fff; border-color: var(--ink); }
.local-bracket-panel { display: none; }
.local-bracket-panel.active { display: block; }
.local-bracket-panel .championship-match { color: var(--ink); }
.championship-continental-panel { overflow: hidden; }
.continental-bracket { position: relative; display: grid; grid-template-columns: minmax(360px, 1fr) 300px minmax(360px, 1fr); gap: 28px; align-items: center; min-height: 420px; padding: 24px; border-radius: 8px; background: radial-gradient(circle at center, #f8fafc 0, #fff 58%); }
.continental-bracket::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50%; height: 2px; background: #cbd5e1; }
.continental-side { position: relative; z-index: 1; display: grid; gap: 18px; align-items: center; }
.continental-left { grid-template-columns: minmax(0, 1fr) 180px; }
.continental-right { grid-template-columns: 180px minmax(0, 1fr); }
.continental-left .continental-advance { grid-column: 2; grid-row: 1 / -1; align-self: center; }
.continental-right .continental-advance { grid-column: 1; grid-row: 1 / -1; align-self: center; }
.continental-seed, .continental-advance, .continental-final, .continental-third { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.continental-seed { min-height: 78px; padding: 13px 16px; display: grid; gap: 6px; align-content: center; position: relative; }
.continental-left .continental-seed::after, .continental-right .continental-seed::before { content: ""; position: absolute; top: 50%; width: 28px; height: 2px; background: #cbd5e1; }
.continental-left .continental-seed::after { right: -28px; }
.continental-right .continental-seed::before { left: -28px; }
.continental-seed strong { font-size: 18px; color: var(--ink); }
.continental-seed span, .continental-advance span, .continental-final span, .continental-third span { color: var(--muted); font-size: 13px; }
.continental-advance { min-height: 98px; padding: 16px; display: grid; place-items: center; text-align: center; }
.continental-center { position: relative; z-index: 2; display: grid; gap: 18px; justify-items: center; text-align: center; }
.trophy-icon { width: 74px; height: 74px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 28px rgba(15,23,42,.2); }
.trophy-icon svg { width: 38px; height: 38px; }
.continental-final { width: 100%; min-height: 120px; padding: 18px; display: grid; gap: 8px; align-content: center; border-color: #93c5fd; background: #eff6ff; }
.continental-final small, .continental-third small { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.continental-final strong { font-size: 22px; }
.continental-third { width: 76%; min-height: 76px; padding: 14px; display: grid; gap: 5px; align-content: center; }
.national-bracket { display: grid; grid-template-columns: minmax(360px, 1fr) 300px minmax(360px, 1fr); gap: 44px; align-items: center; min-height: 420px; padding: 24px; border-radius: 8px; background: radial-gradient(circle at center, #f8fafc 0, #fff 58%); }
.national-side { display: grid; gap: 34px; align-items: center; }
.national-left { grid-template-columns: minmax(0, 1fr) 190px; }
.national-right { grid-template-columns: 190px minmax(0, 1fr); }
.national-pair-column, .national-winner-column { display: grid; gap: 24px; }
.national-pair { position: relative; display: grid; gap: 10px; }
.national-seed, .national-advance, .national-final, .national-third { border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(15,23,42,.08); }
.national-seed { min-height: 68px; padding: 12px 14px; display: grid; gap: 5px; align-content: center; }
.national-seed strong { color: var(--ink); font-size: 16px; }
.national-seed span, .national-advance span, .national-final span, .national-third span { color: var(--muted); font-size: 13px; }
.national-advance { position: relative; min-height: 94px; padding: 14px; display: grid; place-items: center; text-align: center; align-self: center; }
.national-left .national-pair::after { content: ""; position: absolute; right: -22px; top: 25%; width: 22px; height: 50%; border-top: 2px solid #cbd5e1; border-right: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; }
.national-left .national-advance::before { content: ""; position: absolute; left: -34px; top: 50%; width: 34px; height: 2px; background: #cbd5e1; }
.national-left .national-advance::after { content: ""; position: absolute; right: -44px; top: 50%; width: 44px; height: 2px; background: #cbd5e1; }
.national-right .national-pair::before { content: ""; position: absolute; left: -22px; top: 25%; width: 22px; height: 50%; border-top: 2px solid #cbd5e1; border-left: 2px solid #cbd5e1; border-bottom: 2px solid #cbd5e1; }
.national-right .national-advance::before { content: ""; position: absolute; left: -44px; top: 50%; width: 44px; height: 2px; background: #cbd5e1; }
.national-right .national-advance::after { content: ""; position: absolute; right: -34px; top: 50%; width: 34px; height: 2px; background: #cbd5e1; }
.national-center { display: grid; gap: 18px; justify-items: center; text-align: center; position: relative; z-index: 1; }
.national-final { width: 100%; min-height: 120px; padding: 18px; display: grid; gap: 8px; align-content: center; border-color: #93c5fd; background: #eff6ff; }
.national-final small, .national-third small { text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 800; }
.national-final strong { font-size: 22px; color: var(--ink); }
.national-third { width: 76%; min-height: 76px; padding: 14px; display: grid; gap: 5px; align-content: center; }
.championship-management { display: grid; gap: 22px; }
.championship-management-toolbar { display: grid; grid-template-columns: 170px 170px minmax(220px, 1fr); gap: 12px; align-items: stretch; }
.championship-management-toolbar > div { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 4px; background: #f8fafc; }
.championship-management-toolbar strong { font-size: 28px; color: var(--ink); }
.championship-management-toolbar span { color: var(--muted); }
.championship-management-toolbar form { display: flex; justify-content: flex-end; align-items: center; }
.championship-management-explorer { display: grid; gap: 18px; }
.championship-management-explorer h3 { margin: 8px 0 0; }
.championship-management-breadcrumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); flex-wrap: wrap; }
.championship-management-breadcrumbs a,
.championship-management-breadcrumbs span { min-height: 34px; display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 0 12px; color: var(--ink); background: #fff; }
.championship-management-breadcrumbs svg { width: 16px; height: 16px; }
.championship-progress-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.championship-progress-card { min-height: 122px; border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; align-content: start; gap: 5px; color: var(--ink); background: #fff; }
.championship-progress-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(15, 23, 42, .08); }
.championship-progress-card.is-active { border-color: #93c5fd; background: #eff6ff; }
.championship-progress-card.is-complete { border-color: #86efac; background: #f0fdf4; }
.championship-progress-card span,
.championship-progress-card small { color: var(--muted); }
.championship-progress-card b { color: #166534; font-size: 12px; }
.championship-participant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; max-height: 360px; overflow: auto; padding: 4px; }
.championship-participant-grid a { border: 1px solid var(--line); border-radius: 8px; padding: 10px; display: flex; align-items: center; gap: 10px; color: var(--ink); background: #fff; }
.championship-participant-grid small { display: block; color: var(--muted); margin-top: 2px; }
.championship-bracket-phase { display: grid; gap: 14px; margin-top: 20px; }
.championship-bracket-phase h3, .championship-bracket-phase h4 { margin: 0; }
.championship-bracket-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(520px, 1fr)); gap: 16px; }
.championship-bracket-groups.single { grid-template-columns: minmax(0, 1fr); }
.championship-bracket-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.championship-bracket-card header { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.championship-bracket-card header span { color: var(--muted); }
.championship-bracket-scroll { overflow-x: auto; padding: 14px; }
.championship-bracket { display: flex; gap: 20px; align-items: stretch; min-width: max-content; }
.championship-bracket-round { width: 220px; display: grid; gap: 12px; align-content: space-around; }
.championship-bracket-round > strong { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.championship-match { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 3px 10px rgba(15,23,42,.05); position: relative; }
.championship-match::after { content: ""; position: absolute; right: -21px; top: 50%; width: 20px; height: 1px; background: #cbd5e1; }
.championship-bracket-round:last-child .championship-match::after { display: none; }
.championship-match-slot { min-height: 40px; padding: 7px 10px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 13px; display: flex; align-items: center; }
.championship-match-slot:nth-last-of-type(1) { border-bottom: 0; }
.championship-match-slot a, .championship-match-placeholder { min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.championship-match-slot a:hover span:last-child { text-decoration: underline; }
.championship-match-slot .avatar.tiny, .championship-match-placeholder .avatar.tiny { width: 24px; height: 24px; flex: 0 0 24px; font-size: 10px; }
.championship-match-slot span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.championship-match small { display: block; padding: 5px 10px; background: #f8fafc; color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); }
.championship-match .is-winner { background: #ecfdf5; font-weight: 800; }
.championship-match.is-completed { border-color: #bbf7d0; }
.championship-match-form { display: grid; grid-template-columns: minmax(0, 1fr) 34px; gap: 6px; padding: 8px; border-top: 1px solid var(--line); background: #fff; }
.championship-match-form select { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 6px; padding: 0 8px; font-size: 12px; }
.championship-match-form button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.championship-match-form svg { width: 15px; height: 15px; }
.championship-match-link { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 8px; color: var(--muted); background: #f8fafc; border-bottom: 1px solid var(--line); font-size: 12px; }
.championship-match-link svg { width: 13px; height: 13px; }
.championship-duel-page { display: grid; gap: 22px; }
.championship-duel-hero { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 18px; align-items: center; }
.duel-competitor { min-height: 240px; border: 1px solid var(--line); border-radius: 8px; padding: 20px; display: grid; gap: 12px; place-items: center; text-align: center; background: #fff; }
.duel-competitor h2 { margin: 0; font-size: 28px; }
.duel-center { display: grid; gap: 12px; justify-items: center; text-align: center; }
.duel-center strong { font-size: 48px; color: var(--ink); }
.duel-proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
.duel-proof-grid article { border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: grid; gap: 8px; }
.duel-proof-grid h3 { margin: 0; }
.duel-proof-grid a { display: flex; align-items: center; gap: 7px; color: var(--muted); word-break: break-word; }
.duel-vote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.duel-spots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.duel-spot-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; min-height: 142px; display: grid; align-content: start; gap: 10px; background: #fff; }
.duel-spot-card h3, .duel-spot-card p { margin: 0; }
.duel-spot-card h3 { font-size: 20px; line-height: 1.2; }
.duel-spot-card a { color: var(--ink); }
.spot-role { display: inline-flex; width: fit-content; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; background: #f1f5f9; color: var(--muted); font-weight: 700; font-size: 12px; }
.duel-spot-picker { margin-top: 16px; }
.category-checks { border: 1px solid var(--line); border-radius: 6px; padding: 14px; display: flex; flex-wrap: wrap; gap: 14px 22px; color: var(--muted); }
.category-checks legend { padding: 0 8px; color: var(--ink); font-weight: 700; }
.discipline-grouped-checks { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; gap: 18px; }
.discipline-grouped-checks legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.discipline-check-group { display: grid; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.discipline-check-group:last-child { border-bottom: 0; padding-bottom: 0; }
.discipline-check-group summary { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; color: var(--ink); cursor: pointer; list-style: none; }
.discipline-check-group summary::-webkit-details-marker { display: none; }
.discipline-check-group summary::before { content: "+"; width: 22px; height: 22px; border-radius: 50%; background: #eef2f7; display: inline-grid; place-items: center; font-weight: 800; font-size: 13px; }
.discipline-check-group[open] summary::before { content: "-"; }
.discipline-check-group summary img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.discipline-check-group summary span { margin-left: auto; min-width: 28px; height: 28px; border-radius: 999px; background: #f1f5f9; display: inline-grid; place-items: center; color: var(--muted); font-size: 12px; font-weight: 800; }
.discipline-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 220px)); gap: 8px 12px; }
.discipline-check-grid label { min-height: 44px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; display: grid; grid-template-columns: auto 30px minmax(0, 1fr); align-items: center; gap: 9px; color: var(--muted); background: #fff; }
.discipline-check-grid label:has(input:checked) { border-color: #8fb3e8; background: #f5f9ff; color: var(--ink); }
.discipline-check-grid input { width: 14px; height: 14px; }
.discipline-check-grid img, .discipline-check-grid span { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: #f1f3f6; color: var(--ink); font-size: 11px; font-weight: 800; }
.discipline-check-grid strong { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.championship-logo-active-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr); gap: 16px; align-items: stretch; }
.championship-logo-editor, .championship-active-check { border: 1px solid var(--line); border-radius: 8px; padding: 14px; background: #fff; }
.championship-logo-editor { display: grid; gap: 10px; color: var(--muted); }
.championship-logo-editor > div { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.championship-logo-empty { width: 86px; height: 86px; border: 1px dashed var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--muted); background: #f8fafc; }
.file-pick { position: relative; overflow: hidden; width: fit-content; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.championship-active-check { align-self: stretch; display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0; color: var(--ink); font-weight: 800; }
.championship-active-check input { width: 18px; height: 18px; }
.brand-checks { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 8px; padding: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.brand-checks legend { padding: 0 8px; color: var(--ink); font-weight: 800; }
.brand-checks label { min-height: 48px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; grid-template-columns: auto 34px minmax(0, 1fr); align-items: center; gap: 10px; color: var(--muted); background: #fff; }
.brand-checks label:has(input:checked) { border-color: #8fb3e8; background: #f5f9ff; color: var(--ink); }
.brand-checks input { width: 14px; height: 14px; }
.brand-checks img, .brand-checks span { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; display: grid; place-items: center; background: #f1f3f6; color: var(--ink); font-size: 11px; font-weight: 800; }
.brand-checks strong { min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.team-manager-picker { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.team-manager-picker strong { color: var(--ink); }
.team-manager-picker p { margin: 0; }
.team-manager-picker label { color: var(--muted); }
.team-manager-selected { display: flex; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.manager-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; background: #f7f8fa; color: var(--ink); }
.manager-chip button { width: 22px; height: 22px; border: 0; border-radius: 999px; background: #e5e7eb; color: var(--ink); cursor: pointer; line-height: 1; }
.status-approved { background: #e9f8ef; color: #166534; }
.status-pending { background: #fff7df; color: #8a5a00; }
.status-rejected { background: #ffe9ec; color: #a1162f; }
.review-category-strip { max-width: 1400px; margin: -12px auto 26px; padding: 0 8px; display: flex; flex-wrap: wrap; gap: 10px; }
.review-category-strip a { min-height: 38px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: white; display: inline-flex; align-items: center; }
.review-category-strip a.active, .review-category-strip a:hover { color: var(--ink); border-color: #8fb3e8; background: #f5f9ff; }
.tricktionary-shell { max-width: 1390px; margin: 0 auto 44px; padding: 0 8px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; align-items: start; }
.tricktionary-sidebar { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 5px 14px rgba(0,0,0,.06); overflow: hidden; }
.trick-sidebar-toggle { width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); padding: 0 14px; display: flex; align-items: center; gap: 10px; justify-content: flex-start; background: #f7f8fa; color: var(--ink); font-weight: 800; cursor: pointer; }
.trick-category-nav { display: grid; padding: 8px; gap: 4px; }
.trick-category-nav a { min-height: 40px; border-radius: 6px; padding: 0 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; color: var(--muted); }
.trick-category-nav a:hover, .trick-category-nav a.active { background: #f5f9ff; color: var(--ink); }
.trick-category-nav span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trick-category-nav b { min-width: 28px; min-height: 24px; border-radius: 999px; padding: 3px 8px; display: inline-grid; place-items: center; background: #eef2f7; color: var(--ink); font-size: 12px; }
.tricktionary-shell.sidebar-collapsed { grid-template-columns: 58px minmax(0, 1fr); }
.tricktionary-shell.sidebar-collapsed .tricktionary-sidebar { width: 58px; }
.tricktionary-shell.sidebar-collapsed .trick-sidebar-toggle { justify-content: center; padding: 0; }
.tricktionary-shell.sidebar-collapsed .trick-sidebar-toggle span, .tricktionary-shell.sidebar-collapsed .trick-category-nav span { display: none; }
.tricktionary-shell.sidebar-collapsed .trick-category-nav { padding: 6px; }
.tricktionary-shell.sidebar-collapsed .trick-category-nav a { grid-template-columns: 1fr; justify-items: center; padding: 0; }
.tricktionary-list { display: grid; gap: 20px; min-width: 0; }
.reviews-product-grid { max-width: none; width: 100%; margin: 0; grid-template-columns: repeat(auto-fill, minmax(240px, 300px)); align-items: start; }
.reviews-product-grid .product-card a { min-height: 0; grid-template-rows: auto minmax(116px, auto) auto; }
.reviews-product-grid .place-card-body { padding: 18px 20px 16px; gap: 10px; }
.reviews-product-grid .place-card h3 { font-size: 22px; }
.reviews-product-grid .place-meta { padding: 14px 18px 16px; gap: 14px; font-size: 14px; }
.product-card-image { height: auto; aspect-ratio: 1 / 1; padding: 12px; background: #f4f6f8; }
.product-card-image img { width: 100%; height: 100%; object-fit: contain; }
.trick-group { margin: 0; }
.trick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.trick-card { min-height: 118px; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; align-content: space-between; gap: 12px; background: #fbfbfc; color: var(--ink); }
.trick-card:hover { border-color: #9ab6dd; background: #f5f9ff; }
.trick-card strong { font-size: 20px; overflow-wrap: anywhere; }
.trick-card span, .trick-card small { color: var(--muted); }
.trick-card small { display: inline-flex; align-items: center; gap: 6px; }
.trick-detail-page h1 { margin: 6px 0 0; font-size: clamp(42px, 6vw, 76px); line-height: 1; }
.trick-detail-head { display: grid; gap: 22px; }
.trick-howto .rich-content { margin-top: 10px; }
.product-card .place-card-body { min-height: 132px; }
.product-detail-page { display: grid; gap: 24px; }
.product-detail-hero { position: relative; height: clamp(220px, 28vw, 360px); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #101827, #31415a); box-shadow: 0 5px 14px rgba(0,0,0,.06); }
.product-detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-detail-hero.is-empty { background: linear-gradient(135deg, #0b1020, #27384f); }
.product-detail-hero-overlay { position: absolute; inset: auto 0 0; min-height: 108px; padding: 26px 32px; display: flex; align-items: end; background: linear-gradient(180deg, rgba(7,13,29,0), rgba(7,13,29,.82)); color: white; }
.product-brand-lockup { display: inline-grid; grid-template-columns: 72px minmax(0, 1fr); gap: 16px; align-items: center; min-width: min(420px, 100%); }
.product-brand-lockup img, .product-brand-lockup span { width: 72px; height: 72px; border-radius: 8px; object-fit: contain; display: grid; place-items: center; background: white; color: var(--ink); font-size: 20px; font-weight: 900; box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.product-brand-lockup small { display: block; color: rgba(255,255,255,.76); font-size: 12px; text-transform: uppercase; font-weight: 800; letter-spacing: .04em; }
.product-brand-lockup strong { display: block; font-size: clamp(24px, 4vw, 44px); line-height: 1; overflow-wrap: anywhere; }
.product-detail-layout { display: grid; grid-template-columns: minmax(280px, 430px) minmax(0, 1fr); gap: 26px; align-items: stretch; }
.product-media-card, .product-info-card, .product-reviews-panel { border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 5px 14px rgba(0,0,0,.06); }
.product-media-card { min-height: 360px; display: grid; place-items: center; overflow: hidden; }
.product-media-card img { width: 100%; height: 100%; max-height: 540px; object-fit: contain; display: block; background: #f4f6f8; }
.product-media-placeholder { width: 100%; height: 100%; min-height: 360px; display: grid; place-items: center; background: #f4f6f8; color: var(--muted); }
.product-media-placeholder svg { width: 58px; height: 58px; }
.product-info-card { padding: 28px; display: grid; align-content: start; gap: 22px; }
.product-title-row { display: grid; grid-template-columns: minmax(0, 1fr) 138px; gap: 24px; align-items: start; }
.product-title-row h1 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 58px); line-height: 1.02; overflow-wrap: anywhere; }
.product-title-row p { margin: 0; color: var(--muted); line-height: 1.55; }
.product-score { border-left: 1px solid var(--line); padding-left: 24px; display: grid; gap: 3px; color: var(--muted); }
.product-score strong { color: var(--ink); font-size: 36px; line-height: 1; }
.product-score span { font-weight: 700; }
.product-meta-tags { margin-top: 0; }
.product-brand-link { justify-self: start; }
.product-reviews-panel { margin-bottom: 0; }
.message-form input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; padding: 0 12px; margin-bottom: 10px; }
.message-form label { display: grid; gap: 8px; margin-bottom: 10px; color: var(--muted); }
.approval-actions { min-width: 360px; }
.approval-actions form { display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; gap: 8px; margin-top: 8px; }
.approval-actions input { height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.category-checks label, .inline-check { display: flex; align-items: center; gap: 8px; }
.category-checks input, .inline-check input { width: auto; height: auto; }
.spot-marker-swatch { width: 20px; height: 20px; border-radius: 999px 999px 999px 4px; transform: rotate(-45deg); background: #111827; border: 2px solid white; box-shadow: 0 0 0 1px var(--line); display: inline-block; }
.actions form { margin: 0; }
.settings-panel h3 { margin-top: 28px; font-size: 20px; }
.switch { width: 42px; height: 24px; display: inline-block; border-radius: 20px; background: #e5e5e5; vertical-align: middle; position: relative; }
.switch::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: white; left: 2px; top: 2px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

@media (max-width: 1050px) {
    .topbar { height: auto; flex-wrap: wrap; padding: 12px; }
    .category-nav { overflow-x: auto; }
    .top-actions { overflow-x: auto; width: 100%; }
    .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 34px; }
    .footer-social { justify-content: flex-start; }
    .feature-grid, .athlete-grid, .place-grid, .admin-grid { grid-template-columns: repeat(2, 1fr); }
    .championship-logo-active-row { grid-template-columns: 1fr; }
    .championship-layout { grid-template-columns: 1fr; }
    .championship-banner { margin-left: 14px; margin-right: 14px; flex-direction: column; align-items: center; }
    .championship-banner-main { align-items: center; }
    .championship-phase-timeline { grid-template-columns: 1fr; gap: 12px; }
    .championship-phase-timeline::before { left: 17px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
    .championship-phase-timeline article { grid-template-columns: 34px minmax(0, 160px) minmax(0, 1fr) minmax(0, 1fr); justify-items: stretch; text-align: left; align-items: center; }
    .championship-phase-timeline strong { min-height: 0; justify-content: flex-start; }
    .championship-phase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .championship-athlete-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .championship-calendar-editor > div { grid-template-columns: 1fr 1fr; }
    .championship-calendar-editor > div strong { grid-column: 1 / -1; }
    .championship-management-toolbar { grid-template-columns: 1fr 1fr; }
    .championship-management-toolbar form { grid-column: 1 / -1; justify-content: flex-start; }
    .championship-bracket-groups { grid-template-columns: 1fr; }
    .championship-duel-hero { grid-template-columns: 1fr; }
    .continental-bracket { grid-template-columns: 1fr; gap: 18px; min-height: auto; }
    .continental-bracket::before { display: none; }
    .continental-left, .continental-right { grid-template-columns: 1fr; }
    .continental-left .continental-advance, .continental-right .continental-advance { grid-column: auto; grid-row: auto; }
    .continental-left .continental-seed::after, .continental-right .continental-seed::before { display: none; }
    .national-bracket { grid-template-columns: 1fr; gap: 18px; min-height: auto; }
    .national-left, .national-right { grid-template-columns: 1fr; }
    .national-left .national-pair::after, .national-left .national-advance::before, .national-left .national-advance::after,
    .national-right .national-pair::before, .national-right .national-advance::before, .national-right .national-advance::after { display: none; }
    .home-category-grid > .home-category-card { flex-basis: calc((100% - 24px) / 2); }
    .chat-layout { grid-template-columns: 1fr; }
    .conversation-list { max-height: 290px; overflow: auto; }
    .detail-grid { grid-template-columns: 1fr; }
    .team-detail-actions { grid-template-columns: 1fr 1fr; }
    .team-summary { grid-template-columns: 112px minmax(0, 1fr); }
    .team-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
    .product-detail-layout { grid-template-columns: 1fr; }
    .product-title-row { grid-template-columns: 1fr; }
    .product-score { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 18px; }
    .tricktionary-shell { grid-template-columns: 1fr; }
    .tricktionary-sidebar { position: static; }
    .tricktionary-shell.sidebar-collapsed { grid-template-columns: 1fr; }
    .tricktionary-shell.sidebar-collapsed .tricktionary-sidebar { width: auto; }
    .tricktionary-shell.sidebar-collapsed .trick-category-nav { display: none; }
    .tricktionary-shell.sidebar-collapsed .trick-sidebar-toggle span { display: inline; }
    .event-calendar { grid-template-columns: 1fr; }
    .event-calendar > strong { display: none; }
    .event-calendar article { min-height: auto; }
    .video-grid { grid-template-columns: 1fr; }
    .review-media-row, .review-video-grid { grid-template-columns: 1fr; }
    .filters { grid-template-columns: 1fr 1fr; }
    .bulk-actions { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    h1 { font-size: 38px; }
    .site-footer { margin-top: 46px; }
    .site-footer-inner { grid-template-columns: 1fr; padding: 32px 22px 28px; gap: 28px; }
    .site-footer-bottom { padding: 22px; text-align: left; }
    .feature-grid, .athlete-grid, .place-grid, .admin-grid, .stats-row { grid-template-columns: 1fr; }
    .home-category-grid > .home-category-card { flex-basis: 100%; min-width: 0; }
    .toolbar { flex-wrap: wrap; }
    .detail-actions, .team-detail-actions { grid-template-columns: 1fr; }
    .championship-public-hero { flex-direction: column; align-items: flex-start; }
    .championship-phase-timeline article { grid-template-columns: 30px minmax(0, 1fr); }
    .championship-phase-timeline article div { grid-column: 2; }
    .championship-phase-grid, .championship-athlete-groups { grid-template-columns: 1fr; }
    .championship-athlete-list { grid-template-columns: 1fr; }
    .championship-management-toolbar { grid-template-columns: 1fr; }
    .championship-management-toolbar form { grid-column: auto; }
    .championship-bracket-round { width: 190px; }
    .duel-proof-grid, .duel-vote-form, .duel-spots-grid { grid-template-columns: 1fr; }
    .team-cover { height: 210px; }
    .team-summary { grid-template-columns: 1fr; padding: 0 22px 24px; }
    .team-avatar { margin-top: -56px; }
    .team-summary-main h1 { font-size: 34px; }
    .team-stats { grid-template-columns: 1fr; }
    .product-detail-hero { height: 220px; }
    .product-detail-hero-overlay { padding: 18px; min-height: 92px; }
    .product-brand-lockup { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
    .product-brand-lockup img, .product-brand-lockup span { width: 58px; height: 58px; }
    .product-info-card { padding: 20px; }
    .product-media-card, .product-media-placeholder { min-height: 280px; }
    .inline-upload { grid-template-columns: 1fr; }
    .profile-body { padding: 86px 24px 24px; }
    .profile-avatar { left: 24px; }
    .profile-actions { position: static; margin-bottom: 12px; }
    .profile-grid, .relationship-columns { grid-template-columns: 1fr; }
    .profile-image-editor { grid-template-columns: 1fr; }
    .avatar-gallery-admin { grid-template-columns: repeat(2, 1fr); }
    .cropper-body { grid-template-columns: 1fr; }
    .cropper-stage { width: 100%; padding: 12px; }
    .filters { grid-template-columns: 1fr; }
    .bulk-actions { grid-template-columns: 1fr; }
    .reviews-product-grid { grid-template-columns: 1fr; }
    .media-lightbox-nav.prev { left: 10px; }
    .media-lightbox-nav.next { right: 10px; }
    .media-lightbox-close { right: 10px; top: 10px; }
}
