:root {
    /* Primitive tokens */
    --sw-color-ivory-50: #fbf8f2;
    --sw-color-ivory-100: #f4ede2;
    --sw-color-slate-950: #111a36;
    --sw-color-slate-900: #1a2541;
    --sw-color-slate-700: #586684;
    --sw-color-slate-500: #818da6;
    --sw-color-blue-700: #284bd0;
    --sw-color-blue-600: #315efb;
    --sw-color-cyan-400: #79d3df;
    --sw-color-gold-400: #c6a168;
    --sw-color-rose-300: #e7b8c5;
    --sw-color-lilac-300: #c4bdfb;
    --sw-font-body: "Avenir Next", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --sw-font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;

    /* Semantic tokens */
    --sw-bg: #f7f3ec;
    --sw-bg-muted: #efe7db;
    --sw-surface: rgba(255, 255, 255, 0.84);
    --sw-surface-strong: rgba(255, 255, 255, 0.94);
    --sw-surface-muted: rgba(250, 246, 240, 0.86);
    --sw-border: rgba(17, 26, 54, 0.1);
    --sw-border-strong: rgba(17, 26, 54, 0.16);
    --sw-text: var(--sw-color-slate-950);
    --sw-text-soft: var(--sw-color-slate-700);
    --sw-text-faint: var(--sw-color-slate-500);
    --sw-accent: var(--sw-color-blue-600);
    --sw-accent-strong: var(--sw-color-blue-700);
    --sw-accent-soft: var(--sw-color-cyan-400);
    --sw-accent-faint: rgba(49, 94, 251, 0.08);
    --sw-rose: var(--sw-color-rose-300);
    --sw-lilac: var(--sw-color-lilac-300);
    --sw-gold: var(--sw-color-gold-400);
    --sw-shadow: 0 28px 80px rgba(17, 26, 54, 0.12);
    --sw-shadow-soft: 0 18px 44px rgba(17, 26, 54, 0.08);
    --sw-focus: rgba(49, 94, 251, 0.16);
    --sw-card-top: linear-gradient(90deg, rgba(198, 161, 104, 0.28), rgba(121, 211, 223, 0.24), rgba(49, 94, 251, 0.18));

    /* Component tokens */
    --sw-radius-xl: 32px;
    --sw-radius-lg: 24px;
    --sw-radius-md: 18px;
    --sw-radius-sm: 14px;
    --sw-transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    color-scheme: light;
    background:
        radial-gradient(circle at 14% 18%, rgba(198, 161, 104, 0.14), transparent 22%),
        radial-gradient(circle at 82% 18%, rgba(121, 211, 223, 0.16), transparent 26%),
        radial-gradient(circle at 52% 78%, rgba(196, 189, 251, 0.16), transparent 28%),
        linear-gradient(180deg, #fffdfa 0%, #f7f3ec 100%);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    position: relative;
    isolation: isolate;
    color: var(--sw-text);
    font: 16px/1.68 var(--sw-font-body);
    background:
        radial-gradient(circle at 14% 8%, rgba(198, 161, 104, 0.12), transparent 20%),
        radial-gradient(circle at 78% 18%, rgba(121, 211, 223, 0.12), transparent 24%),
        radial-gradient(circle at 42% 76%, rgba(196, 189, 251, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.56), rgba(247, 243, 236, 0.86));
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
}

body::before {
    background:
        radial-gradient(circle at 8% 24%, rgba(255, 255, 255, 0.92), transparent 22%),
        radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.42), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 56%);
}

body::after {
    background-image:
        linear-gradient(rgba(17, 26, 54, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(17, 26, 54, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    mask-image: radial-gradient(circle at center, black 22%, transparent 78%);
    opacity: 0.24;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

button,
input,
select,
textarea {
    font: inherit;
    accent-color: var(--sw-accent);
}

button,
summary,
[role="button"] {
    touch-action: manipulation;
}

.skip-link {
    display: none;
}

body.is-tabbing .skip-link {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    top: 0;
    left: 0;
    z-index: 400;
    background: var(--sw-text);
    color: white;
    transition: box-shadow var(--sw-transition);
}

body.is-tabbing .skip-link:focus-visible {
    width: auto;
    height: auto;
    padding: 12px 16px;
    margin: 0;
    overflow: visible;
    clip: auto;
    top: 12px;
    left: 16px;
    border-radius: 999px;
}

.announcement-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(90deg, #3e0f1b 0%, #1b0d1a 48%, #3e0f1b 100%);
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-shell {
    width: min(1180px, calc(100vw - 40px));
    margin: 0 auto;
    padding: 16px 0 88px;
}

.topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 10px 0 4px;
    position: relative;
    z-index: 40;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sw-accent-strong), var(--sw-accent-soft));
    box-shadow:
        0 0 0 6px rgba(49, 94, 251, 0.08),
        0 10px 18px rgba(49, 94, 251, 0.18);
}

.main-nav,
.topbar-actions,
.hero-actions,
.tab-row,
.club-chip-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.main-nav {
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.main-nav a,
.main-nav summary,
.profile-menu summary,
.ghost-button,
.primary-button,
.text-button,
.pill,
.conversation-link {
    transition:
        transform var(--sw-transition),
        background var(--sw-transition),
        border-color var(--sw-transition),
        box-shadow var(--sw-transition),
        color var(--sw-transition);
}

.main-nav a,
.main-nav summary {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.06);
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-text-soft);
    font-size: 0.94rem;
    font-weight: 500;
    box-shadow:
        0 10px 24px rgba(17, 26, 54, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav a.is-active,
.main-nav summary:hover,
.main-nav summary:focus-visible,
.nav-dropdown.is-active summary {
    color: var(--sw-text);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(241, 244, 252, 0.9));
    border-color: rgba(49, 94, 251, 0.14);
    box-shadow: 0 14px 30px rgba(17, 26, 54, 0.08);
}

.main-nav a.is-active::after,
.nav-dropdown.is-active summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--sw-accent), var(--sw-accent-soft));
    box-shadow: 0 0 0 3px rgba(49, 94, 251, 0.08);
}

.ghost-button:hover,
.primary-button:hover,
.pill:hover,
.conversation-link:hover,
.main-nav a:hover {
    transform: translateY(-2px);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown summary {
    list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
    display: none;
}

.nav-dropdown-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 30;
    display: grid;
    width: min(310px, calc(100vw - 32px));
    padding: 12px;
    border-radius: 24px;
    border: 1px solid var(--sw-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--sw-shadow);
    backdrop-filter: blur(18px);
    transform: translateX(-50%);
}

.nav-dropdown-panel-right {
    right: 0;
    left: auto;
    transform: none;
}

.nav-dropdown:not([open]) .nav-dropdown-panel {
    display: none;
}

.nav-dropdown-panel a {
    justify-content: flex-start;
    min-height: 48px;
    border-radius: 14px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--sw-text);
    box-shadow: none;
}

.nav-dropdown-panel a + a {
    margin-top: 2px;
}

.nav-dropdown-panel a:hover,
.nav-dropdown-panel a:focus-visible {
    transform: none;
    border-color: rgba(49, 94, 251, 0.1);
    background: rgba(49, 94, 251, 0.05);
    color: var(--sw-accent-strong);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.page {
    padding-top: 12px;
}

.hero,
.two-column,
.profile-hero {
    display: grid;
    gap: 28px;
}

.hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.98fr);
    align-items: center;
    padding: 28px 0 18px;
}

.home-chat-hero {
    align-items: start;
    gap: 28px;
}

.public-chat-card {
    padding: 32px;
    background:
        radial-gradient(circle at 88% 12%, rgba(121, 211, 223, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.public-chat-card-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.public-chat-card-head h2 {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.7rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.public-chat-form {
    margin-bottom: 22px;
}

.public-chat-form p {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin: 0;
}

.public-chat-form input {
    min-height: 62px;
    border-radius: 18px;
    border-color: rgba(16, 42, 88, 0.1);
    background: rgba(248, 250, 255, 0.96);
    color: var(--sw-text);
}

.public-chat-form input::placeholder {
    color: #95a0b4;
}

.public-chat-form .rich-editor-toolbar {
    margin-bottom: 0;
}

.public-chat-form .rich-editor-surface {
    min-height: 62px;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.96);
}

.public-chat-form .primary-button {
    min-width: 138px;
}

.chat-login-card {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.78));
    color: var(--sw-text);
    border: 1px solid rgba(17, 26, 54, 0.06);
}

.chat-login-card .ghost-button {
    color: var(--sw-text);
}

.public-chat-stream {
    display: grid;
    gap: 18px;
    max-height: 470px;
    overflow: auto;
    padding-right: 4px;
}

.public-chat-stream::-webkit-scrollbar {
    width: 8px;
}

.public-chat-stream::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 42, 88, 0.16);
}

.chat-message {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.site-chat-stream .chat-message {
    padding: 16px 0;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.chat-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    border: 3px solid rgba(49, 94, 251, 0.1);
    box-shadow: 0 12px 26px rgba(17, 26, 54, 0.08);
}

.chat-message-body p {
    margin: 6px 0 0;
    color: var(--sw-text);
    font-size: 1rem;
    line-height: 1.7;
}

.chat-message-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.chat-message-head strong {
    color: var(--sw-accent);
    font-size: 1.08rem;
}

.chat-message-head .muted {
    color: var(--sw-text-faint);
}

.community-chat-header p {
    margin: -6px 0 0;
    font-size: 1.04rem;
}

.community-chat-page {
    display: grid;
    gap: 20px;
    min-height: calc(100vh - 210px);
    padding: 28px;
}

.community-chat-topline {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.community-chat-topline h2 {
    margin: 0;
    font-size: 1.45rem;
}

.community-chat-form {
    gap: 14px;
    padding-top: 20px;
    border-top: 1px solid rgba(16, 42, 88, 0.08);
}

.community-chat-form textarea {
    min-height: 96px;
}

.community-chat-stream {
    display: grid;
    align-content: start;
    gap: 14px;
    height: min(68vh, 780px);
    min-height: 420px;
    overflow: auto;
    padding: 2px 6px 2px 0;
}

.community-chat-stream::-webkit-scrollbar {
    width: 8px;
}

.community-chat-stream::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(16, 42, 88, 0.16);
}

.community-chat-message {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.community-chat-avatar {
    display: block;
    width: 54px;
    height: 54px;
}

.community-chat-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(49, 94, 251, 0.08);
}

.community-chat-bubble {
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.78);
}

.community-chat-message-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.community-chat-message-head a {
    color: #398a17;
    font-weight: 800;
}

.community-chat-body p {
    margin: 0;
}

.community-chat-loader {
    justify-self: center;
    padding: 10px 14px;
    font-weight: 700;
}

.hero-copy {
    max-width: 560px;
}

.hero-copy h1,
.section-header h1,
.profile-hero-copy h1,
.editorial-copy h2 {
    margin: 0 0 16px;
    font-family: var(--sw-font-display);
    font-size: clamp(2.9rem, 5vw, 5rem);
    line-height: 0.96;
    letter-spacing: -0.035em;
    font-weight: 400;
    text-wrap: balance;
}

.hero-copy p,
.muted,
.feature-card p,
.editorial-copy p {
    color: var(--sw-text-soft);
}

.muted a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--sw-accent);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.glass-card,
.profile-hero,
.post-card,
.flash,
.feature-card {
    position: relative;
    border: 1px solid var(--sw-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.78));
    box-shadow: var(--sw-shadow-soft);
    backdrop-filter: blur(16px);
}

.glass-card::before,
.profile-hero::before,
.post-card::before,
.feature-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: var(--sw-card-top);
    pointer-events: none;
}

.glass-card,
.post-card,
.feature-card {
    border-radius: var(--sw-radius-xl);
    padding: 30px;
}

.profile-hero {
    border-radius: 38px;
    padding: 32px;
    box-shadow: var(--sw-shadow);
}

.primary-button,
.ghost-button,
.text-button,
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid var(--sw-border);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.primary-button {
    color: white;
    background: linear-gradient(135deg, var(--sw-accent-strong) 0%, var(--sw-accent) 52%, var(--sw-accent-soft) 100%);
    border-color: rgba(49, 94, 251, 0.2);
    box-shadow:
        0 20px 38px rgba(49, 94, 251, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.ghost-button,
.pill {
    background: rgba(255, 255, 255, 0.76);
    color: var(--sw-text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.text-button {
    min-height: auto;
    padding: 0;
    background: transparent;
    border-color: transparent;
    color: var(--sw-text-soft);
}

.full-width {
    width: 100%;
}

.nav-badge {
    display: inline-flex;
    min-width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.12);
    color: var(--sw-accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.profile-summary-badge {
    margin-left: 2px;
    background: rgba(217, 74, 108, 0.14);
    color: #b72f58;
}

.profile-menu {
    position: relative;
    z-index: 120;
}

.profile-menu summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    cursor: pointer;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: var(--sw-text);
    box-shadow:
        0 14px 32px rgba(17, 26, 54, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 280px;
    padding: 12px;
    border-radius: 24px;
    border: 1px solid var(--sw-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--sw-shadow);
    z-index: 140;
}

.menu-panel a,
.menu-panel form {
    display: block;
    padding: 10px 12px;
    border-radius: 14px;
}

.menu-panel a:hover,
.menu-panel form:hover {
    background: rgba(49, 94, 251, 0.05);
}

.flash-stack {
    position: fixed;
    top: 56px;
    right: 24px;
    z-index: 220;
    display: grid;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.flash {
    border-radius: 22px;
    padding: 14px 18px;
    color: var(--sw-text);
    box-shadow: 0 18px 40px rgba(17, 30, 56, 0.14);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.flash-success {
    border-color: rgba(56, 149, 90, 0.18);
    background: rgba(244, 250, 243, 0.96);
}

.flash-error {
    border-color: rgba(217, 74, 108, 0.18);
    background: rgba(255, 245, 247, 0.96);
}

.flash-info {
    background: rgba(251, 249, 245, 0.96);
}

.flash-toast-link,
.flash-toast {
    display: grid;
    gap: 4px;
    text-decoration: none;
    border: 1px solid rgba(42, 103, 246, 0.06);
    transition: transform var(--sw-transition), box-shadow var(--sw-transition), border-color var(--sw-transition), background var(--sw-transition), filter var(--sw-transition);
    cursor: pointer;
    animation: toast-slide-in 280ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateX(20px);
    opacity: 0;
    will-change: transform, opacity;
}

.flash-toast-link:hover,
.flash-toast:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(17, 30, 56, 0.18);
    border-color: rgba(42, 103, 246, 0.22);
    background: rgba(240, 246, 255, 0.99);
    filter: saturate(1.03);
}

.flash-toast-link:active,
.flash-toast:active {
    transform: translateY(0) scale(0.985);
}

.flash-toast-link.is-closing,
.flash-toast.is-closing,
.flash.is-closing {
    animation: toast-slide-out 220ms cubic-bezier(0.4, 0, 1, 1) forwards;
    pointer-events: none;
}

.cookie-consent-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 260;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    width: min(920px, calc(100vw - 32px));
    padding: 16px 18px;
    border: 1px solid rgba(16, 42, 88, 0.1);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(17, 30, 56, 0.18);
    transform: translateX(-50%);
    backdrop-filter: blur(18px);
}

.cookie-consent-bar[hidden] {
    display: none;
}

.cookie-consent-bar p {
    margin: 0;
    color: var(--sw-text-soft);
    line-height: 1.55;
}

.cookie-consent-bar a {
    color: var(--sw-accent);
    font-weight: 700;
}

.cookie-consent-bar .primary-button {
    min-height: 42px;
    white-space: nowrap;
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(44px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toast-slide-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(52px);
    }
}

@media (max-width: 640px) {
    .flash-stack {
        top: 44px;
        right: 10px;
        width: min(100vw - 20px, 380px);
    }

    .cookie-consent-bar {
        grid-template-columns: 1fr;
        width: min(100vw - 20px, 920px);
        bottom: 10px;
        padding: 14px;
    }

    .cookie-consent-bar .primary-button {
        width: 100%;
    }
}

.hero-art {
    position: relative;
    min-height: 450px;
    border-radius: 40px;
    overflow: hidden;
    background:
        radial-gradient(circle at 66% 20%, rgba(111, 216, 255, 0.4), transparent 24%),
        radial-gradient(circle at 42% 55%, rgba(243, 176, 198, 0.28), transparent 26%),
        radial-gradient(circle at 62% 74%, rgba(168, 158, 249, 0.22), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.54), rgba(244, 248, 255, 0.88));
    border: 1px solid rgba(16, 42, 88, 0.08);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(18px);
}

.hero-orb-a {
    top: 34px;
    right: 52px;
    width: 180px;
    height: 180px;
    background: rgba(111, 216, 255, 0.52);
}

.hero-orb-b {
    bottom: 78px;
    left: 90px;
    width: 200px;
    height: 200px;
    background: rgba(243, 176, 198, 0.42);
}

.hero-orb-c {
    bottom: 42px;
    right: 102px;
    width: 180px;
    height: 180px;
    background: rgba(168, 158, 249, 0.28);
}

.hero-wire {
    position: absolute;
    border: 2px solid rgba(20, 57, 125, 0.84);
    border-radius: 24px;
    transform: rotate(-32deg);
    opacity: 0.95;
}

.hero-wire-a {
    top: 86px;
    left: 120px;
    width: 160px;
    height: 220px;
}

.hero-wire-b {
    top: 62px;
    right: 82px;
    width: 190px;
    height: 120px;
}

.hero-wire-c {
    bottom: 52px;
    left: 180px;
    width: 240px;
    height: 120px;
}

.hero-wire-d {
    top: 168px;
    left: 250px;
    width: 200px;
    height: 200px;
}

.hero-dot-grid {
    position: absolute;
    right: 88px;
    bottom: 64px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(rgba(16, 42, 88, 0.28) 1px, transparent 1px);
    background-size: 9px 9px;
    opacity: 0.5;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: center;
    justify-items: center;
    margin: 24px 0 42px;
    padding: 16px 18px;
    color: var(--sw-text-faint);
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    margin-bottom: 56px;
}

.feature-card-large {
    display: grid;
    grid-template-columns: minmax(220px, 0.95fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 20px;
    min-height: 220px;
}

.feature-visual {
    min-height: 170px;
    border-radius: 22px;
}

.feature-gradient {
    background:
        radial-gradient(circle at 20% 24%, rgba(255, 255, 255, 0.7), transparent 18%),
        radial-gradient(circle at 76% 80%, rgba(255, 255, 255, 0.55), transparent 20%),
        linear-gradient(135deg, #9ea2ff 0%, #d5adff 42%, #73d8ff 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.feature-card h2,
.feature-card h3,
.glass-card h2,
.glass-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.14;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.feature-mini-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: rgba(42, 103, 246, 0.08);
    color: var(--sw-accent);
    font-size: 0.8rem;
    font-weight: 700;
}

.editorial-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
}

.editorial-copy h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
}

.editorial-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
}

.section-header h1 {
    font-size: clamp(2.25rem, 4vw, 3.9rem);
}

.two-column {
    grid-template-columns: 300px minmax(0, 1fr);
}

.discover-layout,
.messages-layout {
    align-items: start;
}

.sidebar-card {
    position: sticky;
    top: 24px;
}

.profile-card,
.form-card,
.section-card {
    overflow: hidden;
}

.info-page-card {
    display: grid;
    gap: 22px;
}

.info-page-lead {
    max-width: 760px;
    margin: 0;
    color: var(--sw-text-soft);
    font-size: 1.12rem;
    line-height: 1.65;
}

.info-page-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.info-page-item {
    display: grid;
    gap: 12px;
    min-height: 150px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(16, 42, 88, 0.08);
    background: rgba(255, 255, 255, 0.66);
}

.info-page-item span {
    color: var(--sw-accent);
    font-weight: 800;
    letter-spacing: 0;
}

.info-page-item p {
    margin: 0;
    color: var(--sw-text-soft);
}

.info-page-text {
    display: grid;
    gap: 14px;
    max-width: 920px;
    margin: 18px 0 24px;
}

.info-page-text p {
    margin: 0;
    color: var(--sw-text-soft);
    font-size: 1.02rem;
    line-height: 1.72;
}

.info-page-related {
    display: grid;
    gap: 14px;
}

.info-page-related h2 {
    margin: 0;
    font-size: 1.1rem;
}

.info-page-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.info-page-related-card {
    display: grid;
    gap: 8px;
    min-height: 110px;
    padding: 16px;
    border: 1px solid rgba(16, 42, 88, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    color: inherit;
    text-decoration: none;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.info-page-related-card:hover,
.info-page-related-card:focus {
    border-color: rgba(111, 74, 255, 0.32);
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.info-page-related-card span {
    color: var(--sw-text-soft);
    line-height: 1.55;
}

.info-page-actions,
.photo-section-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-rules-card {
    max-width: 980px;
}

.photo-rules-content {
    display: grid;
    gap: 28px;
    color: var(--sw-text);
}

.photo-rules-section {
    display: grid;
    gap: 14px;
}

.photo-rules-section h2,
.photo-rules-section h3 {
    margin: 0;
    color: var(--sw-accent);
}

.photo-rules-section h2 {
    font-size: 1.45rem;
}

.photo-rules-section h3 {
    margin-top: 8px;
    font-size: 1.08rem;
}

.photo-rules-section p {
    margin: 0;
    line-height: 1.68;
    color: var(--sw-text-soft);
}

.global-photo-link {
    display: block;
    color: inherit;
}

.profile-card,
.album-card,
.post-card,
.conversation-link,
.notification-row,
.discover-box,
.split-panel,
.appearance-panel {
    transition:
        transform var(--sw-transition),
        box-shadow var(--sw-transition),
        border-color var(--sw-transition),
        background var(--sw-transition);
}

.profile-card:hover,
.album-card:hover,
.post-card:hover,
.conversation-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 44px rgba(17, 26, 54, 0.12);
}

.wall-section-card {
    overflow: visible;
    position: relative;
    z-index: 5;
}

.card-cover {
    width: 100%;
    aspect-ratio: 1.22;
    object-fit: cover;
    border-radius: 24px;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgba(228, 236, 255, 0.92), rgba(247, 242, 250, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.centered-section {
    display: grid;
    place-items: center;
    min-height: calc(100vh - 220px);
    padding-top: 18px;
}

.form-card {
    width: min(760px, 100%);
    max-width: 100%;
    background:
        radial-gradient(circle at 88% 12%, rgba(121, 211, 223, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.form-card.wide {
    width: min(900px, 100%);
}

.stack-form {
    display: grid;
    gap: 18px;
}

.stack-form p {
    margin: 0;
    display: grid;
    gap: 8px;
}

label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sw-text);
    letter-spacing: -0.01em;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 16px;
    color: var(--sw-text);
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.12);
    background: rgba(248, 246, 241, 0.86);
    outline: none;
    min-height: 44.4px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 1px 0 rgba(17, 26, 54, 0.02);
}

select {
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 48px 0 16px;
    line-height: 1.2;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--sw-text) 50%),
        linear-gradient(135deg, var(--sw-text) 50%, transparent 50%);
    background-position:
        calc(100% - 22px) 50%,
        calc(100% - 15px) 50%;
    background-size: 7px 7px, 7px 7px;
    background-repeat: no-repeat;
}

select[multiple] {
    height: auto;
    max-height: none;
    padding: 13px 16px;
    background-image: none;
}

input::placeholder,
textarea::placeholder {
    color: #97a0b3;
}

textarea {
    min-height: 132px;
    resize: vertical;
}

.city-autocomplete-panel {
    position: fixed;
    z-index: 1200;
    display: grid;
    gap: 4px;
    max-height: min(320px, 52vh);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(17, 26, 54, 0.14);
    border-radius: 18px;
    background: rgba(252, 250, 246, 0.98);
    box-shadow:
        0 22px 48px rgba(17, 26, 54, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.city-autocomplete-panel[hidden] {
    display: none;
}

.city-autocomplete-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 38px;
    width: 100%;
    padding: 9px 11px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sw-text);
    box-shadow: none;
    cursor: pointer;
    text-align: left;
}

.city-autocomplete-option:hover,
.city-autocomplete-option.is-active {
    background: rgba(49, 94, 251, 0.09);
}

.city-autocomplete-option small {
    flex: 0 1 auto;
    color: var(--sw-text-faint);
    font-size: 0.82rem;
    text-align: right;
}

:focus {
    outline: none;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.profile-menu summary:focus-visible,
.ghost-button:focus-visible,
.primary-button:focus-visible,
.text-button:focus-visible,
.main-nav a:focus-visible,
.album-photo-action:focus-visible,
.photo-open-trigger:focus-visible,
.conversation-link:focus-visible,
.tab-row a:focus-visible,
.tab-row button:focus-visible,
.advanced-search summary:focus-visible {
    border-color: rgba(49, 94, 251, 0.34);
    box-shadow: 0 0 0 4px var(--sw-focus);
}

:target,
:focus-visible {
    scroll-margin-top: 88px;
}

.compact-form {
    gap: 12px;
}

.club-filter-form input,
.club-filter-form select,
.discover-filter-card input,
.discover-filter-card select {
    min-height: 44.4px;
}

.profile-hero {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 32px;
    margin-bottom: 24px;
}

.profile-hero.has-profile-background {
    color: #f8fbff;
    border-color: rgba(255, 255, 255, 0.2);
    background:
        radial-gradient(circle at 46% 38%, rgba(129, 197, 205, 0.46), transparent 34%),
        linear-gradient(120deg, rgba(18, 41, 61, 0.86), rgba(66, 31, 90, 0.78), rgba(11, 31, 67, 0.86)),
        var(--profile-background-image) center / cover no-repeat;
}

.profile-hero.has-profile-background .eyebrow,
.profile-hero.has-profile-background .profile-status,
.profile-hero.has-profile-background .profile-status-trigger,
.profile-hero.has-profile-background .detail-grid dt {
    color: rgba(248, 251, 255, 0.72);
}

.profile-hero.has-profile-background .detail-grid dd,
.profile-hero.has-profile-background .profile-hero-copy h1 {
    color: #fbfdff;
}

.profile-hero.has-profile-background .detail-grid div {
    border-bottom-color: rgba(255, 255, 255, 0.16);
}

.profile-hero.has-profile-background .ghost-button,
.profile-hero.has-profile-background .profile-more-actions summary,
.profile-hero.has-profile-background .profile-action-icon {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.18);
    color: #fbfdff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile-hero-media img:first-child {
    width: 100%;
    aspect-ratio: 0.95;
    object-fit: cover;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(236, 241, 255, 0.96), rgba(247, 243, 250, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.avatar-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 0.95;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(236, 241, 255, 0.96), rgba(247, 243, 250, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.avatar-carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 320ms ease;
}

.avatar-carousel-slide.is-active {
    opacity: 1;
}

.avatar-strip,
.media-grid {
    display: grid;
    gap: 12px;
}

.avatar-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 14px;
}

.avatar-strip img,
.media-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #edf3ff, #f8f3ff);
}

.profile-status {
    font-size: 1.06rem;
    color: var(--sw-text-soft);
}

.profile-status-editor {
    display: grid;
    gap: 10px;
}

.profile-status-trigger {
    justify-content: flex-start;
    font-size: 1.08rem;
    color: var(--sw-text-soft);
}

.profile-status-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-status-form[hidden] {
    display: none !important;
}

.profile-status-form input {
    flex: 1;
    min-width: 240px;
}

.profile-warning-card {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    border-color: rgba(217, 119, 6, 0.24);
    background: linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 255, 255, 0.82));
}

.profile-warning-card strong {
    color: #9a3412;
}

.profile-warning-card p {
    margin: 0;
    color: var(--sw-text-soft);
}

.detail-grid,
.detail-table {
    display: grid;
    gap: 14px;
    margin: 30px 0;
}

.detail-grid div,
.detail-table div,
.metric-list li,
.notification-row,
.conversation-link {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.detail-grid div,
.detail-table div {
    align-items: baseline;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.detail-grid dt,
.detail-table dt {
    color: var(--sw-text-soft);
}

.detail-grid dd,
.detail-table dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.wrap {
    flex-wrap: wrap;
}

.content-stack {
    display: grid;
    gap: 18px;
}

.split-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.profile-about-stack {
    display: grid;
    gap: 18px;
}

.split-panel {
    display: grid;
    gap: 16px;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(16, 42, 88, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.profile-rich-text {
    color: var(--sw-text);
    font-size: 1.02rem;
    line-height: 1.7;
    word-break: break-word;
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
}

.profile-fact-list {
    display: grid;
    gap: 12px;
    margin: 4px 0 0;
}

.profile-fact-list div {
    display: grid;
    gap: 6px;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 42, 88, 0.08);
}

.profile-fact-list dt {
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8c8170;
}

.profile-fact-list dd {
    margin: 0;
    color: var(--sw-text);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.appearance-stack {
    display: grid;
    gap: 18px;
}

.appearance-panel {
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(16, 42, 88, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.appearance-panel h3 {
    margin: 0 0 16px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.albums-section-card {
    overflow: visible;
}

.albums-head {
    margin-bottom: 20px;
}

.albums-tab-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(49, 94, 251, 0.06);
    color: var(--sw-text-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.albums-tab-row a.tab-active {
    color: var(--sw-accent-strong);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(49, 94, 251, 0.14);
    box-shadow: 0 12px 26px rgba(17, 26, 54, 0.08);
}

.album-card {
    display: grid;
    gap: 12px;
    padding: 20px;
    border: 1px solid rgba(16, 42, 88, 0.08);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.album-link,
.album-link-text {
    display: block;
    cursor: pointer;
}

.album-link-text {
    color: inherit;
}

.album-card h2 {
    margin: 0;
    font-size: 1.25rem;
}

.profile-albums-section {
    overflow: visible;
}

.profile-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.profile-album-card {
    color: inherit;
}

.profile-album-title {
    color: var(--sw-text);
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.3;
}

.album-lock-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    display: grid;
    place-items: center;
    gap: 12px;
    text-align: center;
    padding: 18px;
    color: var(--sw-text);
    background:
        linear-gradient(135deg, rgba(17, 26, 54, 0.08), transparent 34%),
        linear-gradient(180deg, rgba(251, 248, 242, 0.98), rgba(238, 230, 219, 0.92));
    border: 1px solid rgba(17, 26, 54, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.album-lock-preview strong {
    font-size: 0.95rem;
}

.album-lock-mark {
    width: 70px;
    height: 70px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--sw-color-slate-950), var(--sw-color-blue-700));
    box-shadow: 0 18px 42px rgba(17, 26, 54, 0.2);
}

.album-settings-panel {
    margin-bottom: 24px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.album-settings-panel summary {
    cursor: pointer;
    padding: 16px 18px;
    font-weight: 700;
    color: var(--sw-text);
}

.album-settings-form {
    padding: 0 18px 18px;
}

.album-settings-main-fields,
.album-settings-fieldset,
.album-settings-field {
    display: grid;
    gap: 12px;
}

.album-settings-fieldset {
    padding: 22px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    border-radius: 22px;
    background: rgba(249, 246, 241, 0.68);
}

.album-settings-field {
    gap: 8px;
}

.album-settings-field label {
    font-size: 1.02rem;
}

.album-settings-field .muted {
    margin: 0;
}

.album-settings-field[hidden] {
    display: none;
}

.album-lock-shell {
    min-height: calc(100vh - 320px);
}

.album-lock-card {
    display: grid;
    gap: 22px;
    justify-items: stretch;
}

.album-lock-visual {
    width: 112px;
    height: 112px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    justify-self: center;
    color: #fff;
    background:
        radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(135deg, var(--sw-color-slate-950), var(--sw-color-blue-700));
    box-shadow: 0 24px 58px rgba(17, 26, 54, 0.22);
}

.album-lock-visual span {
    letter-spacing: 0.16em;
    transform: translateX(0.08em);
}

.album-lock-copy {
    display: grid;
    gap: 8px;
    text-align: center;
}

.album-lock-copy h2 {
    margin: 0;
}

.album-lock-copy p {
    margin: 0;
}

.album-lock-form {
    gap: 12px;
}

.album-cover-wrap {
    width: 100%;
}

.album-cover,
.album-add-card {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
}

.album-cover {
    object-fit: cover;
    background: linear-gradient(135deg, rgba(236, 241, 255, 0.96), rgba(247, 243, 250, 0.96));
}

.photo-open-trigger {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
}

.album-add-card,
.album-empty-card {
    display: grid;
    place-items: center;
    border: 2px dashed rgba(123, 150, 203, 0.28);
    background: rgba(248, 246, 241, 0.72);
}

.album-add-card span {
    color: #b5c3e5;
    font-size: 4rem;
    line-height: 1;
}

.album-empty-card span {
    color: var(--sw-text-faint);
    font-size: 1rem;
    font-weight: 600;
}

.album-card-foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
}

.album-create-card {
    align-content: start;
}

.album-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.album-photo-card {
    display: grid;
    gap: 10px;
}

.album-photo-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    border-radius: 24px;
    overflow: hidden;
}

.album-photo-frame .album-cover {
    width: 100%;
    height: 100%;
    border-radius: 22px;
}

.album-photo-overlay {
    position: absolute;
    top: 14px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 14px;
    opacity: 0;
    transition: opacity var(--sw-transition);
    pointer-events: none;
}

.album-photo-frame:hover .album-photo-overlay,
.album-photo-frame:focus-within .album-photo-overlay {
    opacity: 1;
    pointer-events: auto;
}

.album-photo-action {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: rgba(17, 26, 54, 0.68);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    transition: transform var(--sw-transition), background var(--sw-transition);
}

.album-photo-action:hover {
    transform: translateY(-1px);
    background: rgba(17, 26, 54, 0.82);
}

.album-photo-meta {
    display: grid;
    gap: 4px;
}

.album-photo-add-card {
    align-content: start;
}

.album-photo-add-trigger {
    min-height: auto;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 28px;
    border: 1px dashed rgba(42, 103, 246, 0.2);
    background:
        radial-gradient(circle at 20% 20%, rgba(94, 160, 255, 0.16), transparent 30%),
        linear-gradient(180deg, rgba(248, 250, 255, 0.98), rgba(241, 245, 255, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
        transform var(--sw-transition),
        border-color var(--sw-transition),
        box-shadow var(--sw-transition),
        background var(--sw-transition);
}

.album-photo-add-trigger:hover,
.album-photo-add-trigger:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(42, 103, 246, 0.32);
    box-shadow:
        0 16px 40px rgba(42, 103, 246, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    background:
        radial-gradient(circle at 20% 20%, rgba(94, 160, 255, 0.22), transparent 32%),
        linear-gradient(180deg, rgba(250, 252, 255, 1), rgba(241, 246, 255, 0.98));
}

.album-photo-add-plus {
    width: 68px;
    height: 68px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3f6df2, #63c6ec);
    color: #fff;
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1;
    box-shadow: 0 16px 34px rgba(63, 109, 242, 0.22);
}

.album-photo-add-card .album-photo-meta {
    justify-items: center;
    text-align: center;
}

.album-photo-add-card .album-photo-meta .muted {
    color: var(--sw-text-soft);
    font-size: 1rem;
    font-weight: 600;
}

.upload-dialog {
    width: min(760px, calc(100vw - 32px));
    border: 1px solid rgba(17, 26, 54, 0.08);
    border-radius: 32px;
    padding: 18px 22px 24px;
    box-shadow: 0 28px 80px rgba(17, 30, 56, 0.24);
    background: rgba(255, 255, 255, 0.96);
}

.upload-dialog::backdrop {
    background: rgba(7, 17, 31, 0.45);
}

.upload-dialog-close-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

.upload-dialog-form {
    display: grid;
    gap: 18px;
}

.upload-dropzone {
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 40px 20px;
    border: 2px dashed rgba(123, 150, 203, 0.24);
    border-radius: 30px;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--sw-transition), background var(--sw-transition), transform var(--sw-transition);
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 94, 251, 0.06), transparent 24%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.88), rgba(255, 255, 255, 0.82));
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: rgba(42, 103, 246, 0.32);
    background:
        radial-gradient(circle at 18% 18%, rgba(49, 94, 251, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.94), rgba(255, 255, 255, 0.9));
    transform: translateY(-2px);
}

.upload-dropzone h2 {
    margin: 0;
    font-size: 1.55rem;
}

.upload-dropzone-icon {
    font-size: 3rem;
    color: var(--sw-accent);
    line-height: 1;
}

.upload-input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.upload-file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.photo-viewer {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) 360px;
    gap: 0;
    padding: 0;
    overflow: hidden;
    height: min(86vh, 920px);
    align-items: stretch;
}

.photo-viewer-media {
    position: relative;
    background: #05080f;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    align-self: stretch;
}

.photo-viewer-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #05080f;
}

.photo-viewer-side {
    padding: 22px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    border-left: 1px solid rgba(16, 42, 88, 0.08);
    background:
        radial-gradient(circle at 88% 12%, rgba(121, 211, 223, 0.1), transparent 22%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.96), rgba(255, 255, 255, 0.92));
    height: 100%;
    align-self: stretch;
    min-height: 0;
}

.photo-viewer-side > * {
    min-height: 0;
}

.photo-side-head p,
.photo-side-meta p {
    margin: 0;
}

.photo-side-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-side-top {
    display: grid;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: rgba(250, 247, 242, 0.96);
    padding-bottom: 4px;
}

.photo-owner-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.photo-owner-avatar-link,
.photo-comment-avatar-link {
    display: inline-flex;
}

.photo-owner-avatar {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 52px;
    background: linear-gradient(135deg, #edf3ff, #f8f3ff);
}

.photo-owner-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-owner-link {
    display: inline-block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sw-text);
}

.photo-side-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    align-self: center;
}

.photo-menu {
    position: relative;
}

.photo-menu summary {
    list-style: none;
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    min-height: auto;
    padding: 0;
}

.photo-menu summary::-webkit-details-marker {
    display: none;
}

.photo-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 220px;
    padding: 10px;
    border-radius: 18px;
    border: 1px solid rgba(16, 42, 88, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--sw-shadow);
    display: grid;
    gap: 4px;
    z-index: 10;
}

.photo-menu-action {
    width: 100%;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 12px;
}

.photo-menu-danger {
    color: #c84b6a;
}

.photo-side-meta {
    display: grid;
    gap: 8px;
}

.photo-stats-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 10px;
    border-top: 1px solid rgba(16, 42, 88, 0.08);
}

.photo-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--sw-text-soft);
    font-weight: 600;
}

.photo-edit-dialog {
    width: min(520px, calc(100vw - 32px));
    border: 1px solid rgba(16, 42, 88, 0.1);
    padding: 0;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(17, 30, 56, 0.18);
}

.photo-edit-dialog::backdrop {
    background: rgba(7, 17, 31, 0.36);
}

.photo-edit-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    background: rgba(249, 246, 241, 0.92);
    color: var(--sw-text);
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.photo-edit-dialog-form {
    padding: 18px;
    background: rgba(255, 255, 255, 0.98);
}

.photo-edit-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.86);
    color: var(--sw-text);
    font-size: 2rem;
    z-index: 2;
}

.photo-nav-prev {
    left: 18px;
}

.photo-nav-next {
    right: 18px;
}

.photo-comment-list {
    display: grid;
    gap: 12px;
    align-content: start;
    height: 100%;
    overflow: auto;
    padding-right: 6px;
    min-height: 0;
}

.photo-comment-item {
    display: grid;
    gap: 4px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.photo-comment-item p {
    margin: 0;
}

.photo-comment-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.photo-comment-avatar {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 38px;
    background: linear-gradient(135deg, #edf3ff, #f8f3ff);
}

.photo-comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-comment-content {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.photo-comment-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-comment-delete-form {
    margin: 0 0 0 auto;
}

.photo-comment-delete-button {
    color: #c84b6a;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    min-height: auto;
}

.photo-comment-author {
    font-weight: 700;
    color: var(--sw-text);
}

.photo-comment-content p {
    word-break: break-word;
    overflow-wrap: anywhere;
}

.photo-comment-form {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(16, 42, 88, 0.08);
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
}

.photo-viewer-dialog {
    width: min(1200px, calc(100vw - 40px));
    border: 0;
    padding: 14px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 80px rgba(17, 30, 56, 0.24);
}

.photo-viewer-dialog::backdrop {
    background: rgba(7, 17, 31, 0.56);
}

.photo-viewer-frame {
    width: 100%;
    height: min(86vh, 920px);
    border: 0;
    border-radius: 22px;
    display: block;
}

.photo-modal-body {
    margin: 0;
    background: transparent;
}

.photo-viewer-embedded {
    min-height: min(86vh, 920px);
    height: 100vh;
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.metric-list,
.plain-list,
.notification-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.metric-list li,
.plain-list li {
    padding: 10px 0;
}

.post-list,
.conversation-list,
.message-thread {
    display: grid;
    gap: 16px;
}

.wall-post-list {
    margin-top: 18px;
}

.wall-post-form {
    gap: 14px;
}

.wall-post-composer textarea {
    min-height: 140px;
}

.wall-post-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: nowrap;
}

.attached-file-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    max-width: min(100%, 520px);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(42, 103, 246, 0.16);
    background: rgba(42, 103, 246, 0.06);
    color: var(--sw-text);
}

.attached-file-chip-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(42, 103, 246, 0.12);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
}

.attached-file-chip-label {
    display: inline-flex;
    align-items: center;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--sw-text);
    font-weight: 500;
    cursor: pointer;
}

.attached-file-chip-label:hover {
    transform: none;
}

.attached-file-chip[data-has-file="true"] .attached-file-chip-button {
    background: rgba(200, 75, 106, 0.12);
}

.attached-file-chip-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.attach-menu {
    position: relative;
}

.attach-menu summary {
    list-style: none;
}

.attach-menu summary::-webkit-details-marker {
    display: none;
}

.attach-menu-panel {
    position: absolute;
    left: 0;
    top: calc(100% + 10px);
    width: min(380px, 90vw);
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(16, 42, 88, 0.12);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--sw-shadow);
    z-index: 80;
    display: grid;
    gap: 14px;
}

.attach-option {
    display: grid;
    gap: 8px;
}

.attach-option label {
    font-size: 0.92rem;
    font-weight: 700;
}

.attach-option input[type="file"] {
    padding: 10px 12px;
    background: rgba(248, 250, 255, 0.92);
}

.post-card {
    padding: 24px;
}

.post-head,
.comment-row,
.notification-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.comment-row {
    flex-wrap: wrap;
}

.wall-comment-delete-form {
    margin: 0 0 0 auto;
}

.wall-comment-delete-button {
    color: #c84b6a;
    font-size: 0.88rem;
}

.post-head {
    justify-content: space-between;
}

.post-head-main {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.post-delete-form {
    margin: 0;
}

.post-delete-button {
    color: #c84b6a;
    font-weight: 600;
}

.post-image {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 24px;
    margin: 14px 0;
    background: linear-gradient(135deg, rgba(236, 241, 255, 0.96), rgba(247, 243, 250, 0.96));
}

.post-video {
    width: 100%;
    max-height: 520px;
    border-radius: 22px;
    margin: 14px 0;
    background: #0f1728;
}

.attachment-preview {
    margin-top: 10px;
}

.post-meta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 8px 0 6px;
}

.inline-action-form {
    margin: 0;
}

.small-action-button {
    min-height: 38px;
    padding: 0 14px;
}

.icon-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid var(--sw-border);
    background: rgba(255, 255, 255, 0.82);
    color: #c84b6a;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.comment-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.inline-form p {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input,
.inline-form textarea {
    flex: 1;
    min-width: min(100%, 240px);
}

.inline-form .rich-editor-toolbar {
    width: 100%;
}

.inline-form .rich-editor-surface {
    flex: 1;
    min-width: min(100%, 240px);
}

.tab-row {
    margin-bottom: 16px;
}

.tab-row a,
.tab-row button,
.tab-row span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(49, 94, 251, 0.06);
    color: var(--sw-text-soft);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
    cursor: pointer;
    font: inherit;
}

.tab-active {
    color: var(--sw-accent-strong);
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(49, 94, 251, 0.14);
    box-shadow: 0 12px 26px rgba(17, 26, 54, 0.08);
}

.community-tab-row {
    max-width: 720px;
    margin: -8px 0 20px;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.66);
    flex-wrap: wrap;
}

.community-tab-row a {
    min-width: 128px;
    flex: 1 1 128px;
}

.social-community-card {
    margin-top: 0;
}

.media-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.conversation-link {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid var(--sw-border);
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.conversation-link.is-active {
    border-color: rgba(49, 94, 251, 0.24);
    box-shadow:
        0 18px 34px rgba(49, 94, 251, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.message-bubble {
    max-width: 80%;
    padding: 16px 18px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.72));
    box-shadow:
        0 16px 34px rgba(17, 26, 54, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.message-own {
    margin-left: auto;
    background: linear-gradient(135deg, rgba(49, 94, 251, 0.14), rgba(121, 211, 223, 0.18));
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-row {
    padding: 18px 0;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.notification-main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-avatar-link {
    display: inline-flex;
}

.notification-avatar {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    overflow: hidden;
    flex: 0 0 46px;
    background: linear-gradient(135deg, #edf3ff, #f8f3ff);
}

.notification-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-content {
    display: grid;
    gap: 8px;
}

.notification-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-head .muted,
.post-meta-actions .muted,
.message-bubble .muted,
.notification-row .muted,
.photo-stat-item,
.detail-grid dd,
.detail-table dd {
    font-variant-numeric: tabular-nums;
}

.notification-actor-link,
.notification-target-link {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.social-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.social-main-card,
.social-side-card {
    display: grid;
    gap: 20px;
}

.gift-history-card {
    max-width: 900px;
}

.social-side-card {
    position: sticky;
    top: 24px;
}

.social-tab-row {
    justify-content: flex-start;
}

.social-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    border-radius: 999px;
    background: rgba(17, 26, 54, 0.08);
    color: var(--sw-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.gift-list,
.news-feed-list,
.social-profile-list {
    display: grid;
    gap: 14px;
}

.gift-card,
.news-feed-item,
.social-profile-row,
.social-empty-state {
    padding: 20px;
    border-radius: 26px;
    border: 1px solid rgba(16, 42, 88, 0.08);
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.gift-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.gift-card h2,
.news-feed-item h2,
.social-profile-row h2,
.social-empty-state h2,
.social-side-card h2 {
    margin: 0;
    font-size: 1.24rem;
}

.gift-card-copy,
.news-feed-content,
.social-empty-state {
    display: grid;
    gap: 8px;
}

.gift-card-copy p,
.news-feed-content p,
.social-empty-state p {
    margin: 0;
}

.gift-message {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-text-soft);
}

.swing-category-row {
    display: flex;
    gap: 10px;
    margin: -8px 0 20px;
    padding: 6px;
    border-radius: 24px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.66);
    flex-wrap: wrap;
}

.swing-category-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 999px;
    color: var(--sw-text-soft);
    font-size: 0.92rem;
    font-weight: 750;
}

.swing-category-row a:hover,
.swing-category-row a:focus-visible,
.swing-category-row a.is-active {
    background: rgba(49, 94, 251, 0.1);
    color: var(--sw-accent-strong);
}

.swing-article-list-card,
.swing-article-form-card {
    max-width: 980px;
}

.swing-article-tabs {
    margin-bottom: 18px;
}

.swing-article-add-panel {
    margin-bottom: 18px;
}

.swing-article-list {
    display: grid;
    gap: 16px;
}

.swing-article-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(246, 248, 255, 0.78);
}

.swing-article-thumb {
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(17, 26, 54, 0.06);
}

.swing-article-thumb img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.swing-article-card-copy {
    display: grid;
    gap: 10px;
}

.swing-article-card h2,
.swing-article-detail-header h1 {
    margin: 0;
}

.swing-article-card h2 a {
    color: var(--sw-accent-strong);
}

.swing-article-preview p,
.swing-article-body p,
.swing-comment-body p {
    margin-top: 0;
}

.swing-article-meta,
.swing-article-detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--sw-text-faint);
    font-size: 0.94rem;
    font-variant-numeric: tabular-nums;
}

.swing-article-meta a,
.swing-article-detail-meta a,
.swing-comment-head a {
    color: #398a17;
    font-weight: 800;
}

.swing-article-upload-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.swing-article-upload-row input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.swing-article-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
    gap: 22px;
    align-items: start;
}

.swing-article-detail-main,
.swing-article-detail-aside {
    display: grid;
    gap: 18px;
}

.swing-article-detail-aside {
    position: sticky;
    top: 24px;
}

.swing-article-detail-card {
    gap: 20px;
}

.swing-article-detail-image {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: 20px;
}

.swing-article-body {
    color: var(--sw-text);
    font-size: 1.06rem;
    line-height: 1.68;
}

.social-blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: 22px;
    align-items: start;
}

.social-blog-main,
.social-blog-sidebar,
.social-blog-list {
    display: grid;
    gap: 18px;
}

.social-blog-sidebar {
    position: sticky;
    top: 24px;
}

.social-blog-card {
    display: grid;
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-radius: 22px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(246, 248, 255, 0.78);
}

.social-blog-thumb {
    display: block;
    min-height: 142px;
    overflow: hidden;
    border-radius: 18px;
    background: rgba(17, 26, 54, 0.06);
}

.social-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-blog-card-copy {
    display: grid;
    gap: 10px;
}

.social-blog-card h2 {
    margin: 0;
}

.social-blog-card h2 a {
    color: var(--sw-accent-strong);
}

.social-blog-kind-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-blog-kind {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.1);
    color: var(--sw-accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.social-blog-kind.is-poll {
    background: rgba(121, 211, 223, 0.18);
    color: #176978;
}

.social-blog-category-list {
    display: grid;
    gap: 4px;
}

.social-blog-category-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 14px;
    color: var(--sw-text);
}

.social-blog-category-list a:hover,
.social-blog-category-list a:focus-visible,
.social-blog-category-list a.is-active {
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
}

.social-blog-form-card {
    max-width: 1100px;
}

.social-blog-form-tabs {
    margin-bottom: 8px;
}

.social-blog-tab-panel {
    display: grid;
    gap: 18px;
}

.social-blog-tab-panel[hidden] {
    display: none;
}

.social-blog-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 22px;
    align-items: start;
}

.social-blog-editor-main,
.social-blog-editor-side,
.social-blog-poll-options {
    display: grid;
    gap: 12px;
}

.social-blog-upload-tile {
    display: grid;
    place-items: center;
    min-height: 128px;
    border-radius: 18px;
    border: 1px dashed rgba(17, 26, 54, 0.18);
    background: rgba(246, 248, 255, 0.78);
    color: var(--sw-text-soft);
    cursor: pointer;
    font-weight: 700;
}

.social-blog-editor-side input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.social-blog-radio-list ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.social-blog-radio-list label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.blog-poll-card {
    padding: 22px;
}

.poll-page {
    display: grid;
    gap: 22px;
}

.poll-page-header .muted {
    margin: -6px 0 0;
    font-size: 1.1rem;
}

.poll-status-tabs {
    display: flex;
    align-items: end;
    gap: 36px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.poll-status-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 56px;
    padding: 0 0 12px;
    border-bottom: 3px solid transparent;
    color: var(--sw-text-faint);
    font-size: 1.18rem;
    font-weight: 800;
}

.poll-status-tabs a:hover,
.poll-status-tabs a:focus-visible,
.poll-status-tabs a.tab-active {
    color: var(--sw-accent);
    border-bottom-color: var(--sw-accent);
}

.poll-category-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.poll-category-pills a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--sw-text-soft);
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid rgba(17, 26, 54, 0.06);
    font-size: 0.9rem;
    font-weight: 750;
}

.poll-category-pills a:hover,
.poll-category-pills a:focus-visible,
.poll-category-pills a.is-active {
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
}

.poll-list {
    display: grid;
    gap: 20px;
}

.poll-list-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 18px 24px;
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(17, 26, 54, 0.06);
    background: rgba(246, 248, 255, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.poll-list-card-copy {
    display: grid;
    gap: 10px;
}

.poll-list-card h2 {
    margin: 0;
    font-size: 1.74rem;
    line-height: 1.15;
}

.poll-list-card h2 a {
    color: #08779a;
}

.poll-list-preview {
    color: var(--sw-text);
    font-size: 1.06rem;
    line-height: 1.72;
}

.poll-list-preview p {
    margin: 0;
}

.poll-list-thumb {
    display: block;
    align-self: start;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(17, 26, 54, 0.06);
}

.poll-list-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.poll-list-poll {
    grid-column: 1 / -1;
}

.poll-list-poll .blog-poll-card {
    padding: 22px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.poll-list-poll .blog-poll-card > .section-title-row {
    display: none;
}

.poll-list-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    color: var(--sw-text-faint);
    font-variant-numeric: tabular-nums;
}

.poll-list-author {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #398a17;
    font-weight: 800;
}

.poll-list-author img {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    object-fit: cover;
}

.poll-list-stat {
    color: var(--sw-text-faint);
    font-weight: 700;
}

.poll-empty-state {
    max-width: 760px;
}

.profile-section-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 16px 0 22px;
    padding: 12px;
    border-radius: 24px;
}

.profile-section-nav > a,
.profile-more-actions summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--sw-text-soft);
    font-weight: 700;
    cursor: pointer;
}

.profile-section-nav > a:hover,
.profile-section-nav > a:focus-visible,
.profile-section-nav > a.is-active,
.profile-more-actions[open] summary,
.profile-more-actions summary:hover,
.profile-more-actions summary:focus-visible {
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
}

.profile-section-nav span {
    color: var(--sw-accent);
    font-size: 0.82rem;
}

.profile-more-actions {
    position: relative;
    margin-left: auto;
}

.profile-more-actions summary {
    list-style: none;
    background: rgba(255, 255, 255, 0.72);
}

.profile-more-actions summary::-webkit-details-marker {
    display: none;
}

.profile-more-actions-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    z-index: 20;
    display: grid;
    min-width: 230px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--sw-shadow-soft);
}

.profile-more-actions-panel a,
.profile-more-actions-panel button {
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--sw-text);
    font: inherit;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.profile-more-actions-panel a:hover,
.profile-more-actions-panel a:focus-visible,
.profile-more-actions-panel button:hover,
.profile-more-actions-panel button:focus-visible {
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
}

.profile-menu-action-form {
    margin: 0;
}

.profile-menu-action-form button {
    width: 100%;
}

.profile-action-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.74);
    color: var(--sw-text-soft);
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(17, 26, 54, 0.07);
    cursor: pointer;
}

.profile-hero-tools {
    position: absolute;
    top: 26px;
    right: 28px;
    display: flex;
    gap: 10px;
}

.profile-action-icon:hover,
.profile-action-icon:focus-visible {
    color: var(--sw-accent-strong);
    border-color: rgba(49, 94, 251, 0.22);
    transform: translateY(-1px);
}

.profile-hero-more-actions {
    margin-left: 0;
    z-index: 90;
}

.profile-hero-more-actions .profile-more-actions-panel {
    top: auto;
    bottom: calc(100% + 10px);
    z-index: 120;
}

.profile-background-panel {
    display: grid;
    gap: 18px;
    margin: -6px 0 24px;
    padding: 22px 28px 26px;
    border-radius: 28px;
}

.profile-background-panel[hidden] {
    display: none !important;
}

.profile-background-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-background-panel-head h2 {
    margin: 0;
    font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.profile-background-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.profile-background-strip {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 4px 8px;
    scroll-snap-type: x proximity;
}

.profile-background-choice {
    flex: 0 0 170px;
    height: 128px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    box-shadow: 0 14px 28px rgba(17, 26, 54, 0.12);
}

.profile-background-choice img,
.profile-background-default-preview {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-background-default-preview {
    background:
        radial-gradient(circle at 28% 24%, rgba(49, 94, 251, 0.16), transparent 28%),
        linear-gradient(135deg, #eaf1ff, #f6f2f8);
}

.profile-background-choice:hover,
.profile-background-choice:focus-visible,
.profile-background-choice.is-selected {
    border-color: rgba(49, 94, 251, 0.72);
    transform: translateY(-2px);
}

.profile-section-list-card {
    padding: 0;
    overflow: hidden;
}

.profile-section-list {
    display: grid;
}

.profile-section-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.profile-section-row:last-child {
    border-bottom: 0;
}

.profile-section-row h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.25rem, 2vw, 1.8rem);
}

.profile-section-row p {
    margin: 0;
}

.profile-section-meta,
.profile-section-date {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
    color: var(--sw-text-soft);
    font-weight: 700;
    white-space: nowrap;
}

.swing-author-card {
    justify-items: center;
    text-align: center;
}

.swing-score-card {
    text-align: center;
}

.swing-score-controls {
    display: grid;
    grid-template-columns: 48px 1fr 48px;
    gap: 12px;
    align-items: center;
}

.swing-score-controls button {
    width: 48px;
    height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.1);
    background: rgba(255, 255, 255, 0.88);
    color: var(--sw-text);
    cursor: pointer;
    font: inherit;
    font-size: 1.45rem;
    font-weight: 900;
    transition:
        transform var(--sw-transition),
        background var(--sw-transition),
        color var(--sw-transition);
}

.swing-score-controls button:hover,
.swing-score-controls button:focus-visible,
.swing-score-controls button.is-active {
    transform: translateY(-1px);
    background: rgba(49, 94, 251, 0.12);
    color: var(--sw-accent-strong);
}

.swing-score-controls strong {
    font-size: 1.5rem;
    font-variant-numeric: tabular-nums;
}

.swing-author-article-list,
.swing-comment-list {
    display: grid;
    gap: 12px;
}

.swing-author-article-list a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
    color: var(--sw-accent-strong);
    font-weight: 750;
}

.swing-comment-form {
    margin-bottom: 18px;
}

.swing-comment-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.swing-comment-avatar img {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    object-fit: cover;
}

.swing-comment-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.swing-comment-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.swing-comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.swing-comment-like {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.06);
    color: var(--sw-text-faint);
    font-weight: 800;
}

.swing-comment-like:hover,
.swing-comment-like:focus-visible,
.swing-comment-like.is-active {
    background: rgba(49, 94, 251, 0.12);
    color: var(--sw-accent-strong);
}

@media (max-width: 900px) {
    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown summary {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-panel {
        position: static;
        width: 100%;
        margin-top: 8px;
        transform: none;
    }

    .swing-article-detail-layout {
        grid-template-columns: 1fr;
    }

    .social-blog-layout,
    .social-blog-editor-layout {
        grid-template-columns: 1fr;
    }

    .social-blog-sidebar {
        position: static;
    }

    .swing-article-detail-aside {
        position: static;
    }

    .forum-search-grid {
        grid-template-columns: 1fr;
    }

    .meeting-calendar-toolbar {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .meeting-calendar-controls {
        justify-content: flex-start;
    }

    .meeting-calendar-card {
        overflow-x: auto;
    }

    .meeting-calendar-grid {
        min-width: 880px;
    }

    .meeting-calendar-agenda-item {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .meeting-calendar-agenda-item small {
        text-align: left;
    }
}

@media (max-width: 620px) {
    .community-chat-page,
    .forum-search-panel,
    .club-forum-title-row {
        padding-left: 20px;
        padding-right: 20px;
    }

    .community-chat-message {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 10px;
    }

    .community-chat-avatar,
    .community-chat-avatar img {
        width: 44px;
        height: 44px;
    }

    .swing-comment-item {
        grid-template-columns: 1fr;
    }

    .swing-comment-avatar img {
        width: 52px;
        height: 52px;
    }

    .swing-score-controls {
        grid-template-columns: 44px 1fr 44px;
    }

    .swing-score-controls button {
        width: 44px;
        height: 44px;
    }
}

.gift-send-form {
    gap: 12px;
}

.profile-gift-dialog {
    width: min(680px, calc(100vw - 32px));
}

.profile-gift-form {
    gap: 16px;
}

.profile-gift-head {
    display: grid;
    gap: 6px;
}

.profile-gift-head h2 {
    margin: 0;
    font-size: 1.28rem;
}

.profile-gift-head p {
    margin: 0;
}

.profile-gift-choice-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

.profile-gift-choice-grid .gift-choice-card {
    min-height: 104px;
    padding: 16px;
}

.profile-club-invite-dialog {
    width: min(820px, calc(100vw - 32px));
    padding: 0;
}

.profile-club-invite-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(135deg, var(--sw-accent), var(--sw-accent-soft));
    color: #fff;
}

.profile-club-invite-head h2 {
    margin: 0;
    font-size: 1.42rem;
}

.profile-club-invite-close {
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
}

.profile-club-invite-body {
    display: grid;
    gap: 18px;
    padding: 24px 28px 28px;
}

.profile-club-invite-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.12);
    background: rgba(248, 250, 255, 0.86);
}

.profile-club-invite-search span {
    color: var(--sw-text-faint);
    font-size: 1.2rem;
}

.profile-club-invite-search input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.profile-club-invite-list {
    display: grid;
}

.profile-club-invite-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.profile-club-invite-row a {
    color: var(--sw-accent-strong);
    font-size: 1.02rem;
    font-weight: 700;
}

.profile-club-invite-row button {
    min-width: 132px;
}

.form-label {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--sw-text);
    letter-spacing: -0.01em;
}

.gift-sticker,
.gift-empty-sticker {
    object-fit: contain;
    filter: drop-shadow(0 18px 28px rgba(17, 26, 54, 0.14));
}

.gift-sticker {
    width: 82px;
    height: 82px;
}

.gift-empty-sticker {
    width: 132px;
    height: 132px;
}

.gift-empty-parcel {
    position: relative;
    display: inline-grid;
    width: 120px;
    height: 108px;
    margin-bottom: 8px;
    filter: drop-shadow(0 18px 26px rgba(17, 26, 54, 0.14));
}

.gift-empty-parcel::before {
    content: "";
    position: absolute;
    inset: 28px 12px 10px;
    border: 1px solid rgba(112, 78, 42, 0.18);
    border-radius: 18px 18px 20px 20px;
    background:
        linear-gradient(90deg, transparent 0 46%, rgba(120, 83, 45, 0.18) 46% 54%, transparent 54%),
        linear-gradient(180deg, rgba(255, 251, 241, 0.62) 0 18%, transparent 18%),
        linear-gradient(135deg, #d6a467, #f0d09d);
}

.gift-empty-parcel::after {
    content: "";
    position: absolute;
    left: 20px;
    right: 20px;
    top: 9px;
    height: 38px;
    border: 1px solid rgba(112, 78, 42, 0.16);
    border-radius: 16px 16px 8px 8px;
    background:
        linear-gradient(135deg, rgba(255, 247, 225, 0.86), rgba(221, 164, 95, 0.92));
    transform: perspective(140px) rotateX(18deg);
    transform-origin: bottom;
}

.gift-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gift-choice-card {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 118px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 246, 241, 0.78));
    color: var(--sw-text);
    cursor: pointer;
    transition:
        transform var(--sw-transition),
        border-color var(--sw-transition),
        box-shadow var(--sw-transition),
        background var(--sw-transition);
}

.gift-choice-card:hover {
    transform: translateY(-2px);
    border-color: rgba(49, 94, 251, 0.18);
    box-shadow: 0 16px 32px rgba(17, 26, 54, 0.1);
}

.gift-choice-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.gift-choice-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 14px 22px rgba(17, 26, 54, 0.16));
}

.gift-choice-card:has(input:checked) {
    border-color: rgba(49, 94, 251, 0.34);
    background:
        linear-gradient(180deg, rgba(239, 245, 255, 0.96), rgba(255, 255, 255, 0.86));
    box-shadow:
        0 18px 36px rgba(49, 94, 251, 0.12),
        inset 0 0 0 2px rgba(49, 94, 251, 0.08);
}

.gift-choice-card:has(input:checked)::after {
    content: "✓";
    position: absolute;
    right: 12px;
    top: 10px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--sw-accent);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 900;
}

.gift-box-shape {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 22px;
    background:
        linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.78) 38% 52%, transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 24%, transparent 24%),
        linear-gradient(135deg, #315efb, #79d3df);
    box-shadow:
        0 18px 34px rgba(49, 94, 251, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.gift-box-shape::before {
    content: "";
    position: absolute;
    left: 9px;
    right: 9px;
    top: 25px;
    height: 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.gift-box-shape::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -13px;
    width: 42px;
    height: 28px;
    transform: translateX(-50%);
    border-radius: 50% 50% 18px 18px;
    border: 9px solid rgba(255, 255, 255, 0.84);
    border-bottom: 0;
}

.gift-box-rose {
    background:
        linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.78) 38% 52%, transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 24%, transparent 24%),
        linear-gradient(135deg, #d94d6f, #e7b8c5);
}

.gift-box-cocktail {
    background:
        linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.78) 38% 52%, transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 24%, transparent 24%),
        linear-gradient(135deg, #0f9a9e, #79d3df);
}

.gift-box-star {
    background:
        linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.78) 38% 52%, transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 24%, transparent 24%),
        linear-gradient(135deg, #c08b35, #f1d997);
}

.gift-box-crown {
    background:
        linear-gradient(90deg, transparent 38%, rgba(255, 255, 255, 0.78) 38% 52%, transparent 52%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0 24%, transparent 24%),
        linear-gradient(135deg, #1a2541, #c6a168);
}

.news-feed-item {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
}

.news-feed-marker span {
    display: inline-flex;
    min-width: 78px;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.09);
    color: var(--sw-accent-strong);
    font-size: 0.82rem;
    font-weight: 800;
}

.news-feed-head,
.social-profile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.social-profile-row {
    align-items: center;
}

.social-profile-avatar {
    width: 66px;
    height: 66px;
    flex: 0 0 66px;
    border-radius: 999px;
    overflow: hidden;
    background: linear-gradient(135deg, #edf3ff, #f8f3ff);
}

.social-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-row-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.social-empty-state {
    min-height: 260px;
    place-items: center;
    text-align: center;
}

.social-empty-state .primary-button {
    margin-top: 6px;
}

.social-empty-state .gift-box-shape,
.social-empty-state .gift-empty-sticker {
    margin-bottom: 6px;
}

.club-album-description {
    margin-bottom: 22px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(16, 42, 88, 0.08);
    background: rgba(249, 246, 241, 0.72);
    color: var(--sw-text-soft);
}

.club-photo-viewer-dialog {
    width: min(920px, calc(100vw - 32px));
    max-height: min(860px, calc(100vh - 32px));
    padding: 0;
    border: 1px solid rgba(17, 26, 54, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--sw-shadow);
}

.club-photo-viewer-dialog::backdrop {
    background: rgba(17, 26, 54, 0.42);
    backdrop-filter: blur(10px);
}

.club-photo-viewer {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0 22px 22px;
}

.club-photo-viewer img {
    width: 100%;
    max-height: min(680px, calc(100vh - 190px));
    object-fit: contain;
    border-radius: 22px;
    background: rgba(17, 26, 54, 0.06);
}

.club-photo-viewer figcaption {
    min-height: 24px;
    color: var(--sw-text-soft);
    text-align: center;
}

.discover-page {
    display: grid;
    gap: 22px;
}

.discover-filter-card {
    padding: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.discover-filter-collapse {
    display: grid;
}

.discover-filter-summary {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 18px 30px;
    cursor: pointer;
    color: var(--sw-text);
    background:
        radial-gradient(circle at 88% 14%, rgba(121, 211, 223, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.9), rgba(255, 255, 255, 0.76));
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.discover-filter-summary::-webkit-details-marker {
    display: none;
}

.discover-filter-summary > span:first-child {
    display: grid;
    gap: 4px;
}

.discover-filter-summary strong {
    font-size: 1.12rem;
}

.discover-filter-summary small {
    color: var(--sw-text-faint);
    font-size: 0.9rem;
}

.discover-filter-summary-action {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(49, 94, 251, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-accent-strong);
    font-weight: 750;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.discover-filter-body {
    display: grid;
}

.discover-filter-top,
.discover-filter-grid,
.advanced-search,
.discover-actions {
    padding: 28px 30px;
}

.discover-filter-top,
.discover-filter-grid,
.advanced-search {
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.discover-filter-top {
    background:
        radial-gradient(circle at 88% 14%, rgba(121, 211, 223, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.86), rgba(255, 255, 255, 0.72));
}

.discover-filter-top {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 320px;
    gap: 20px;
    align-items: center;
}

.saved-filter-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.saved-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.save-filter-button {
    min-height: 44.4px;
}

.delete-filter-button {
    min-height: 44.4px;
    color: #c84b6a;
}

.hidden-save-form {
    display: none;
}

.save-filter-dialog {
    width: min(680px, calc(100vw - 32px));
    border: 1px solid rgba(16, 42, 88, 0.1);
    padding: 0;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(17, 30, 56, 0.18);
}

.save-filter-dialog::backdrop {
    background: rgba(7, 17, 31, 0.48);
}

.save-filter-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    background: rgba(249, 246, 241, 0.92);
    color: var(--sw-text);
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.save-filter-dialog-head .text-button {
    color: inherit;
    min-height: auto;
    padding: 0;
    font-size: 1.2rem;
}

.save-filter-dialog-body {
    display: grid;
    gap: 20px;
    padding: 24px 22px 22px;
}

.save-filter-note {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.74);
    border: 1px solid rgba(16, 42, 88, 0.08);
    line-height: 1.55;
}

.save-filter-note p {
    margin: 0;
}

.save-filter-fields {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(248, 250, 255, 0.58);
    border: 1px solid rgba(16, 42, 88, 0.08);
}

.save-filter-fields h3 {
    margin: 0;
}

.save-filter-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.discover-filter-top label,
.discover-box h3,
.range-row > span {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sw-text);
}

.discover-filter-card select,
.discover-filter-card input {
    min-height: 42px;
    padding: 8px 16px;
    border-radius: 18px;
}

.discover-filter-card select {
    padding-right: 50px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='11' viewBox='0 0 18 11' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.5 1.5L9 9L16.5 1.5' stroke='%2308142C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px 10px;
}

.discover-filter-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(420px, 1.3fr) 280px;
    gap: 20px;
    align-items: start;
}

.discover-filter-grid-ages {
    grid-template-columns: 1fr 1fr;
}

.discover-box {
    display: grid;
    gap: 16px;
    padding: 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.88), rgba(255, 255, 255, 0.72));
    border: 1px solid rgba(17, 26, 54, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.discover-box h3 {
    margin: 0;
}

.discover-box-main {
    gap: 22px;
}

.discover-box-params {
    padding: 22px 24px;
    border-radius: 28px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: linear-gradient(180deg, rgba(248, 244, 239, 0.9), rgba(255, 255, 255, 0.74));
}

.discover-box-params .check-row {
    min-height: 44px;
}

.discover-inline-grid {
    display: grid;
    gap: 16px;
}

.discover-inline-grid-split {
    grid-template-columns: 1fr 1fr;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 26, 54, 0.06);
    color: var(--sw-text);
    font-size: 1.02rem;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.check-row:hover {
    border-color: rgba(49, 94, 251, 0.16);
    background: rgba(255, 255, 255, 0.88);
}

.check-row input[type="checkbox"] {
    width: 22px;
    height: 22px;
    margin: 0;
    border-radius: 8px;
    cursor: pointer;
}

.unit-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 84px;
}

.unit-field input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.unit-field span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(16, 42, 88, 0.12);
    border-left: 0;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    background: rgba(248, 250, 255, 0.92);
    color: var(--sw-text-soft);
    font-weight: 700;
}

.range-row {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.range-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 230px));
    gap: 12px;
}

.advanced-search {
    padding-top: 0;
}

.advanced-search summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-top: 26px;
    cursor: pointer;
    color: var(--sw-accent-strong);
    font-size: 1rem;
    font-weight: 700;
}

.advanced-search summary::-webkit-details-marker {
    display: none;
}

.advanced-search summary::after {
    content: "⌄";
    font-size: 1.1rem;
}

.advanced-search[open] summary::after {
    content: "⌃";
}

.advanced-grid {
    padding: 24px 0 0;
    margin-top: 6px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.discover-hint {
    margin: -4px 0 0;
    color: var(--sw-text-faint);
}

.advanced-ordering-row {
    display: grid;
    grid-template-columns: 260px minmax(300px, 420px);
    gap: 16px;
    align-items: center;
    margin-top: 6px;
}

.advanced-ordering-row select {
    width: 100%;
}

.discover-actions {
    display: flex;
    justify-content: flex-end;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.76));
}

.discover-submit {
    min-width: 220px;
    min-height: 56px;
    font-size: 1.1rem;
}

.club-filter-card {
    padding: 30px;
    background:
        radial-gradient(circle at 82% 18%, rgba(121, 211, 223, 0.12), transparent 24%),
        linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.76));
}

.club-filter-card h2 {
    margin: 0 0 18px;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.04em;
}

.club-filter-submit {
    min-height: 44.4px;
}

.club-dashboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 28px;
    align-items: start;
    margin-top: 32px;
}

.club-main-column,
.club-sidebar {
    display: grid;
    gap: 22px;
}

.club-sidebar {
    position: sticky;
    top: 24px;
}

.club-home-card,
.club-sidebar-card {
    display: grid;
    gap: 20px;
}

.club-feed-tabs {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.club-feed-tabs > a,
.club-feed-tabs > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 42px;
    color: var(--sw-text-soft);
    font-weight: 700;
}

.club-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.1);
    color: var(--sw-accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1;
}

.club-feed-tabs .tab-active {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--sw-accent);
    box-shadow: inset 0 -3px 0 var(--sw-accent);
}

.club-feed-tabs > a:hover {
    color: var(--sw-accent-strong);
}

.club-content-block {
    display: grid;
    gap: 18px;
    padding-top: 6px;
}

.club-content-block + .club-content-block {
    padding-top: 24px;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
}

.club-editor-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 2px 0 0;
}

.club-editor-toolbar > span:not(.club-file-name),
.club-editor-toolbar > button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    border: 0;
    background: transparent;
    color: var(--sw-text-faint);
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--sw-transition), color var(--sw-transition), background var(--sw-transition);
}

.club-editor-toolbar > button:hover,
.club-editor-toolbar > button:focus-visible {
    color: var(--sw-accent-strong);
    background: rgba(49, 94, 251, 0.08);
    transform: translateY(-1px);
}

.rich-editor-toolbar {
    margin-bottom: 8px;
}

[data-rich-editor][data-rich-hidden="true"] {
    display: none !important;
}

.rich-editor-source {
    display: none !important;
}

.rich-editor-surface {
    width: 100%;
    min-height: 96px;
    padding: 13px 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: var(--sw-text);
    line-height: 1.5;
    outline: none;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    transition: border-color var(--sw-transition), box-shadow var(--sw-transition), background var(--sw-transition);
}

.rich-editor-surface:focus {
    border-color: rgba(49, 94, 251, 0.42);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(49, 94, 251, 0.09);
}

.rich-editor-surface:empty::before {
    content: attr(data-placeholder);
    color: var(--sw-text-faint);
    pointer-events: none;
}

.rich-editor-surface a {
    color: var(--sw-accent-strong);
    font-weight: 700;
}

.rich-editor-attachment {
    width: auto !important;
    min-width: 0;
    padding: 0 12px;
    border-radius: 999px !important;
    border: 1px solid rgba(49, 94, 251, 0.14) !important;
    background: rgba(49, 94, 251, 0.06) !important;
    color: var(--sw-accent-strong) !important;
}

.club-file-label {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(49, 94, 251, 0.14);
    background: rgba(49, 94, 251, 0.06);
    color: var(--sw-accent-strong);
    cursor: pointer;
    font-weight: 700;
}

.club-post-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.club-editor-toolbar input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.club-file-name {
    max-width: min(100%, 260px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-post-form textarea,
.club-post-form .rich-editor-surface {
    min-height: 150px;
}

.club-post-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.club-post-as-club {
    width: fit-content;
}

.club-empty-state {
    padding: 22px;
    border-radius: 22px;
    border: 1px dashed rgba(17, 26, 54, 0.12);
    background: rgba(249, 246, 241, 0.72);
}

.club-empty-state h3,
.club-sidebar-card h2 {
    margin: 0;
}

.club-event-list,
.club-subscriber-list {
    display: grid;
    gap: 16px;
}

.club-events-page-card {
    gap: 18px;
}

.club-event-status-tabs {
    display: flex;
    align-items: center;
    gap: 28px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.club-event-status-tabs a,
.club-event-status-tabs span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    color: var(--sw-text-soft);
    font-size: 1.05rem;
    font-weight: 800;
}

.club-event-status-tabs .is-active {
    color: var(--sw-accent-strong);
    box-shadow: inset 0 -3px 0 var(--sw-accent-strong);
}

.club-event-status-tabs small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: inherit;
    font-size: 0.82rem;
}

.club-event-add-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 88px;
    border-radius: 18px;
    border: 1px solid rgba(49, 94, 251, 0.08);
    background:
        radial-gradient(circle at 18% 20%, rgba(49, 94, 251, 0.08), transparent 32%),
        linear-gradient(180deg, rgba(246, 248, 255, 0.95), rgba(241, 244, 252, 0.9));
    color: var(--sw-accent-strong);
    font-size: 1.16rem;
    font-weight: 900;
    transition:
        transform var(--sw-transition),
        border-color var(--sw-transition),
        box-shadow var(--sw-transition),
        background var(--sw-transition);
}

.club-event-add-panel:hover,
.club-event-add-panel:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(49, 94, 251, 0.18);
    box-shadow: 0 18px 38px rgba(49, 94, 251, 0.12);
    background:
        radial-gradient(circle at 18% 20%, rgba(49, 94, 251, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(249, 251, 255, 1), rgba(241, 244, 252, 0.98));
}

.club-event-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--sw-accent-strong);
    color: #fbf8f1;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1;
}

.club-event-card {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 20px;
    padding: 18px;
    border-radius: 24px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: linear-gradient(180deg, rgba(249, 246, 241, 0.92), rgba(255, 255, 255, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.club-event-media img {
    width: 100%;
    aspect-ratio: 1.28;
    object-fit: cover;
    border-radius: 18px;
    background: rgba(49, 94, 251, 0.08);
}

.club-event-copy {
    display: grid;
    gap: 10px;
    align-content: start;
}

.club-event-copy h2 {
    margin: 0;
    font-size: 1.45rem;
}

.club-event-card-meta,
.club-event-footer,
.club-event-date-line,
.club-event-place-line {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.club-event-card-meta span:not(.eyebrow),
.club-event-footer span,
.club-event-place-line span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17, 26, 54, 0.06);
    color: var(--sw-text-soft);
    font-size: 0.86rem;
    font-weight: 800;
}

.club-event-date-line,
.club-event-place-line {
    margin: 0;
    color: var(--sw-text-soft);
}

.club-event-date-line strong,
.club-event-place-line strong {
    color: var(--sw-text);
}

.club-event-register-button.is-selected,
.club-event-footer .is-selected {
    border-color: rgba(49, 94, 251, 0.2);
    background: rgba(49, 94, 251, 0.1);
    color: var(--sw-accent-strong);
}

.meeting-calendar-header .primary-button {
    min-width: 180px;
}

.meeting-calendar-card {
    display: grid;
    gap: 22px;
    padding: 24px;
}

.meeting-calendar-legend {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(17, 26, 54, 0.04);
}

.meeting-calendar-legend strong {
    color: var(--sw-text);
}

.meeting-calendar-legend-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 7px;
    background: rgba(17, 26, 54, 0.32);
    color: #fffdfa;
    font-size: 0.9rem;
    font-weight: 850;
}

.meeting-calendar-legend-chip.is-local {
    background: rgba(209, 24, 120, 0.72);
}

.meeting-calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
    gap: 16px;
    align-items: center;
}

.meeting-calendar-toolbar h2 {
    margin: 0;
    padding: 8px 20px;
    border-radius: 10px;
    background: rgba(17, 26, 54, 0.1);
    color: var(--sw-text);
    font-size: 1.16rem;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.meeting-calendar-mode,
.meeting-calendar-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.meeting-calendar-controls {
    justify-content: flex-end;
}

.meeting-calendar-mode a,
.meeting-calendar-mode span {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid rgba(17, 26, 54, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-text-soft);
    font-weight: 800;
}

.meeting-calendar-mode .is-active {
    background: rgba(17, 26, 54, 0.12);
    color: var(--sw-text);
}

.meeting-calendar-arrow {
    min-width: 52px;
    padding: 0;
    font-size: 1.8rem;
    line-height: 1;
}

.meeting-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border: 1px solid rgba(17, 26, 54, 0.12);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
}

.meeting-calendar-weekday {
    min-height: 46px;
    padding: 12px;
    border-right: 1px solid rgba(17, 26, 54, 0.1);
    border-bottom: 1px solid rgba(17, 26, 54, 0.1);
    color: var(--sw-text);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.meeting-calendar-weekday:nth-child(7n) {
    border-right: 0;
}

.meeting-calendar-day {
    position: relative;
    display: grid;
    align-content: start;
    gap: 8px;
    min-height: 172px;
    padding: 36px 7px 8px;
    border-right: 1px solid rgba(17, 26, 54, 0.1);
    border-bottom: 1px solid rgba(17, 26, 54, 0.1);
    background: rgba(255, 255, 255, 0.5);
}

.meeting-calendar-day:nth-child(7n) {
    border-right: 0;
}

.meeting-calendar-day.is-muted {
    background: rgba(17, 26, 54, 0.025);
    color: var(--sw-text-faint);
}

.meeting-calendar-day.is-today {
    box-shadow: inset 0 0 0 2px rgba(49, 94, 251, 0.34);
}

.meeting-calendar-day-number {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    min-height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    background: rgba(17, 26, 54, 0.08);
    color: var(--sw-text);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.meeting-calendar-day-events {
    display: grid;
    gap: 6px;
}

.meeting-calendar-event {
    display: grid;
    gap: 2px;
    min-height: 42px;
    padding: 6px 7px;
    border-radius: 8px;
    background: rgba(17, 26, 54, 0.32);
    color: #fffdfa;
    font-size: 0.82rem;
    font-weight: 750;
    line-height: 1.22;
    overflow: hidden;
}

.meeting-calendar-event:hover,
.meeting-calendar-event:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 26, 54, 0.12);
}

.meeting-calendar-event.is-local {
    background: rgba(209, 24, 120, 0.72);
}

.meeting-calendar-event strong {
    color: #fffb85;
    font-weight: 950;
}

.meeting-calendar-event span,
.meeting-calendar-event small {
    overflow: hidden;
    text-overflow: ellipsis;
}

.meeting-calendar-event small {
    opacity: 0.86;
}

.meeting-calendar-agenda {
    display: grid;
    gap: 16px;
}

.meeting-calendar-agenda-list {
    display: grid;
    gap: 10px;
}

.meeting-calendar-agenda-item {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) minmax(120px, 180px);
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
    color: var(--sw-text);
}

.meeting-calendar-agenda-item:first-child {
    border-top: 0;
}

.meeting-calendar-agenda-item span {
    color: var(--sw-accent-strong);
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.meeting-calendar-agenda-item strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.meeting-calendar-agenda-item small {
    color: var(--sw-text-soft);
    font-weight: 700;
    text-align: right;
}

.club-event-empty-state {
    min-height: 150px;
    align-content: center;
}

.club-photo-widgets {
    display: grid;
    gap: 18px;
}

.club-photo-day-card,
.club-new-photo-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(49, 94, 251, 0.06);
}

.club-photo-day-card {
    aspect-ratio: 1.8;
    min-height: 260px;
}

.club-photo-day-card img,
.club-new-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-photo-day-card figcaption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: grid;
    gap: 2px;
    max-width: min(100% - 36px, 420px);
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 34px rgba(17, 26, 54, 0.16);
}

.club-photo-day-card figcaption strong {
    color: var(--sw-text);
}

.club-new-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.club-new-photo-card {
    aspect-ratio: 1;
}

.club-new-photo-card figcaption {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    overflow: hidden;
    padding: 7px 9px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--sw-text);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-event-detail-page {
    display: grid;
    gap: 22px;
}

.club-event-detail-hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(0, 1.08fr);
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.club-event-detail-carousel {
    position: relative;
    min-height: 430px;
    background:
        radial-gradient(circle at 22% 18%, rgba(49, 94, 251, 0.12), transparent 30%),
        linear-gradient(135deg, rgba(17, 26, 54, 0.96), rgba(26, 37, 65, 0.9));
}

.club-event-detail-slides,
.club-event-detail-slide {
    position: absolute;
    inset: 0;
}

.club-event-detail-slide {
    margin: 0;
    opacity: 0;
    transition: opacity 420ms ease;
}

.club-event-detail-slide.is-active {
    opacity: 1;
}

.club-event-detail-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-event-detail-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 46%, rgba(17, 26, 54, 0.62));
    pointer-events: none;
}

.club-event-detail-slide figcaption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 18px;
    z-index: 1;
    color: #fbf8f2;
    font-weight: 800;
    text-shadow: 0 1px 14px rgba(17, 26, 54, 0.46);
}

.club-event-carousel-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--sw-text);
    cursor: pointer;
    font-size: 2.1rem;
    line-height: 1;
    transform: translateY(-50%);
    transition:
        transform var(--sw-transition),
        background var(--sw-transition),
        box-shadow var(--sw-transition);
}

.club-event-carousel-arrow:hover,
.club-event-carousel-arrow:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 30px rgba(17, 26, 54, 0.18);
}

.club-event-carousel-arrow.is-prev {
    left: 16px;
}

.club-event-carousel-arrow.is-next {
    right: 16px;
}

.club-event-carousel-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.club-event-carousel-dots span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
}

.club-event-carousel-dots span.is-active {
    width: 24px;
    background: #fbf8f2;
}

.club-event-detail-summary {
    display: grid;
    align-content: center;
    gap: 22px;
    padding: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgba(121, 211, 223, 0.14), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 246, 241, 0.82));
}

.club-event-detail-status-row,
.club-event-detail-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.club-event-detail-type {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-text-soft);
    font-size: 0.9rem;
    font-weight: 800;
}

.club-event-detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}

.club-event-detail-meta div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.club-event-detail-meta dt {
    color: var(--sw-text-faint);
    font-size: 0.86rem;
    font-weight: 800;
}

.club-event-detail-meta dd {
    margin: 0;
    color: var(--sw-text);
    font-weight: 800;
    overflow-wrap: anywhere;
}

.club-event-detail-meta a {
    color: var(--sw-accent-strong);
}

.club-event-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 22px;
}

.club-event-detail-main,
.club-event-detail-aside {
    display: grid;
    gap: 18px;
}

.club-event-detail-description {
    color: var(--sw-text-soft);
}

.club-event-comment-composer {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.club-event-comment-composer .primary-button {
    justify-self: end;
}

.club-event-comment-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.club-event-comment-list {
    display: grid;
    gap: 12px;
}

.club-event-comment-item {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(249, 246, 241, 0.64);
}

.club-event-comment-item p {
    margin: 0;
}

.club-event-participant-list {
    display: grid;
    gap: 10px;
}

.club-event-participant-list span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(49, 94, 251, 0.06);
    color: var(--sw-text);
    font-weight: 800;
}

.club-event-stat-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.club-event-stat-list div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.club-event-stat-list dt {
    color: var(--sw-text-soft);
}

.club-event-stat-list dd {
    margin: 0;
    font-weight: 900;
}

.club-event-view-stats {
    display: grid;
    gap: 20px;
    margin: 18px 0 0;
}

.club-event-view-stats div {
    display: grid;
    grid-template-columns: max-content minmax(24px, 1fr) max-content;
    align-items: baseline;
    gap: 8px;
    color: var(--sw-text);
    font-size: 1.18rem;
}

.club-event-view-stats div::after {
    content: "";
    grid-column: 2;
    border-bottom: 2px dotted rgba(17, 26, 54, 0.28);
    transform: translateY(-0.2em);
}

.club-event-view-stats dt {
    grid-column: 1;
}

.club-event-view-stats dd {
    grid-column: 3;
    margin: 0;
    min-width: 1.4ch;
    text-align: right;
    font-weight: 900;
}

.club-poll-preview {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid rgba(49, 94, 251, 0.12);
    background: rgba(49, 94, 251, 0.06);
}

.club-poll-preview span {
    display: inline-flex;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--sw-text-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.club-poll-card {
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(249, 246, 241, 0.72));
}

.club-poll-status,
.club-section-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
    font-size: 0.85rem;
    font-weight: 800;
}

.club-poll-status.is-inactive {
    background: rgba(17, 26, 54, 0.07);
    color: var(--sw-text-faint);
}

.club-poll-question {
    color: var(--sw-text);
    font-size: 1.05rem;
    line-height: 1.6;
}

.club-poll-vote-form {
    display: grid;
    gap: 14px;
}

.club-poll-options {
    display: grid;
    gap: 10px;
}

.club-poll-option {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
}

.club-poll-option input {
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    flex: 0 0 24px;
}

.club-poll-results {
    display: grid;
    gap: 18px;
}

.club-poll-note,
.club-poll-voters {
    margin: 0;
    color: var(--sw-text-faint);
}

.club-poll-result-row {
    display: grid;
    gap: 10px;
}

.club-poll-result-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    color: var(--sw-text);
    font-size: 1rem;
}

.club-poll-result-head strong {
    white-space: nowrap;
    color: var(--sw-text);
}

.club-poll-bar {
    height: 16px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 26, 54, 0.11);
    box-shadow: inset 0 1px 2px rgba(17, 26, 54, 0.08);
}

.club-poll-bar span {
    display: block;
    width: 0;
    min-width: 8px;
    max-width: 100%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e9dd8, #d11878);
}

.club-poll-result-row.is-selected .club-poll-bar span {
    background: linear-gradient(90deg, #d11878, #cf1879);
}

.club-poll-result-row.is-empty .club-poll-bar span {
    min-width: 8px;
    background: #2e9dd8;
}

.club-poll-result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.club-poll-cancel-button,
.danger-text-button {
    border: 0;
    background: transparent;
    color: var(--sw-text-faint);
    font-weight: 800;
    cursor: pointer;
    transition: color var(--sw-transition), transform var(--sw-transition);
}

.club-poll-cancel-button {
    padding: 2px 0;
    font-size: 0.9rem;
}

.club-poll-cancel-button:hover,
.club-poll-cancel-button:focus-visible,
.danger-text-button:hover,
.danger-text-button:focus-visible {
    color: #b42342;
    transform: translateY(-1px);
}

.club-poll-revote {
    margin-top: 2px;
}

.club-poll-revote summary {
    width: fit-content;
    color: var(--sw-accent-strong);
    font-weight: 800;
    cursor: pointer;
}

.club-poll-revote .club-poll-vote-form {
    margin-top: 14px;
}

.club-poll-delete-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 26, 54, 0.1);
}

.danger-text-button {
    padding: 0;
}

.club-inline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.club-topic-list {
    display: grid;
    gap: 12px;
}

.club-topic-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: rgba(49, 94, 251, 0.06);
}

.club-topic-row strong,
.club-topic-title-link {
    display: block;
    color: var(--sw-accent-strong);
    font-size: 1.05rem;
    font-weight: 800;
}

.club-topic-title-link:hover,
.club-topic-title-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.club-topic-author {
    display: grid;
    justify-content: start;
    gap: 2px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 26, 54, 0.08);
}

.club-topic-author small {
    color: var(--sw-text-faint);
}

.club-event-editor-card,
.club-mailing-card {
    display: grid;
    gap: 20px;
}

.club-event-form {
    display: grid;
    gap: 20px;
}

.club-event-form-shell {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
}

.club-event-form-body,
.club-event-form-section,
.club-event-side-panel,
.club-event-image-card,
.club-event-participants {
    display: grid;
    gap: 18px;
}

.club-event-form-section {
    padding-top: 10px;
}

.club-event-media-section {
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(49, 94, 251, 0.1);
    background:
        radial-gradient(circle at 94% 8%, rgba(49, 94, 251, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(246, 248, 255, 0.82), rgba(255, 255, 255, 0.76));
}

.club-event-form-section h2,
.club-event-section-head h2 {
    margin: 0;
    color: var(--sw-text);
    font-size: 1.35rem;
    line-height: 1.2;
}

.club-event-section-head,
.club-event-image-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.club-event-side-panel {
    align-content: start;
    min-height: 100%;
    padding: 22px;
    border-radius: 20px;
    border: 1px solid rgba(49, 94, 251, 0.08);
    background: rgba(246, 248, 255, 0.78);
}

.club-event-image-card {
    align-content: start;
}

.club-event-media-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
    align-items: start;
    gap: 18px;
}

.club-event-image-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}

.club-event-image-slot {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.club-event-image-slot[hidden] {
    display: none;
}

.club-event-image-drop {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 168px;
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(49, 94, 251, 0.18);
    background: rgba(255, 255, 255, 0.72);
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    transition:
        transform var(--sw-transition),
        border-color var(--sw-transition),
        background var(--sw-transition);
}

.club-event-image-drop:hover,
.club-event-image-drop:focus-within {
    transform: translateY(-2px);
    border-color: rgba(49, 94, 251, 0.3);
    background: rgba(255, 255, 255, 0.9);
}

.club-event-image-drop img {
    width: 100%;
    max-height: 230px;
    object-fit: cover;
    border-radius: 14px;
}

.club-event-image-slot input[type="text"] {
    text-align: center;
}

.club-event-image-slot .club-event-remove-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

.club-event-comments-panel {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.74);
}

.club-event-comments-panel h3 {
    margin: 0;
    color: var(--sw-text);
    font-size: 1.02rem;
    line-height: 1.25;
}

.club-event-side-details {
    border-top: 1px solid rgba(17, 26, 54, 0.08);
    padding-top: 16px;
}

.club-event-side-details summary {
    color: var(--sw-accent-strong);
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 900;
}

.club-event-side-details .check-row {
    margin-top: 14px;
}

.club-event-comment-options ul,
.club-event-comment-options > div {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    border-radius: 16px;
    border: 0;
    background: transparent;
    list-style: none;
}

.club-event-comment-options ul li,
.club-event-comment-options > div > div {
    margin: 0;
}

.club-event-comment-options label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    font-weight: 700;
}

.club-event-comment-options input[type="radio"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
}

.club-event-tab-panel {
    display: grid;
    gap: 18px;
}

.club-event-tab-panel[hidden] {
    display: none;
}

.club-event-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.club-event-location-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.86fr) minmax(300px, 1.14fr);
    gap: 18px 24px;
    align-items: start;
}

.club-event-location-city,
.club-event-location-fields {
    min-width: 0;
}

.club-event-location-fields {
    display: grid;
    gap: 16px;
}

.club-event-upload {
    min-height: 190px;
}

.club-event-form input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.club-event-choice-list > div {
    display: grid;
    gap: 10px;
}

.club-event-choice-list label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    font-weight: 600;
}

.club-event-choice-list input[type="radio"] {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    min-height: 22px;
    margin: 0;
    padding: 0;
}

.club-event-quick-city {
    display: grid;
    gap: 10px;
    margin: -4px 0 0;
    color: var(--sw-text-faint);
    font-size: 0.92rem;
    line-height: 1.35;
}

.club-event-quick-city > div {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.club-event-quick-city button {
    border: 0;
    min-height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    transition:
        transform var(--sw-transition),
        background var(--sw-transition),
        color var(--sw-transition);
}

.club-event-quick-city button:hover,
.club-event-quick-city button:focus-visible {
    transform: translateY(-1px);
    background: rgba(49, 94, 251, 0.14);
}

.club-event-participant-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
}

.club-event-participant-row:first-child {
    grid-template-columns: 1fr;
}

.club-event-participant-row[hidden] {
    display: none;
}

.club-event-remove-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 10px;
    border: 1px solid rgba(17, 26, 54, 0.1);
    background: rgba(255, 255, 255, 0.74);
    color: var(--sw-text-faint);
    cursor: pointer;
    font-size: 1.3rem;
    line-height: 1;
    transition:
        transform var(--sw-transition),
        color var(--sw-transition),
        border-color var(--sw-transition),
        background var(--sw-transition);
}

.club-event-remove-button:hover,
.club-event-remove-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(180, 35, 66, 0.22);
    background: rgba(180, 35, 66, 0.07);
    color: #b42342;
}

.club-menu-list {
    display: grid;
}

.club-menu-list a,
.club-menu-list button {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 48px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
    background: transparent;
    color: var(--sw-text);
    cursor: pointer;
    font: inherit;
    font-weight: 600;
    text-align: left;
}

.club-menu-shell {
    display: grid;
    gap: 12px;
}

.club-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
    font-size: 0.76rem;
    font-weight: 800;
}

.club-menu-toggle {
    justify-self: center;
    color: var(--sw-text);
    font-weight: 800;
}

.club-menu-list a:hover,
.club-menu-list button:hover {
    color: var(--sw-accent-strong);
}

.club-menu-list a:active,
.club-menu-list button:active,
.club-forum-add-button:active {
    transform: translateY(1px);
}

.club-request-row {
    display: grid;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
}

.club-request-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.club-forums-header h1 {
    font-size: clamp(2.8rem, 4.6vw, 4.6rem);
}

.club-forums-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.club-forums-card .club-content-block {
    gap: 0;
    padding-top: 0;
}

.forum-search-panel {
    display: grid;
    gap: 16px;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.58);
}

.forum-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 16px;
}

.forum-search-grid label {
    display: grid;
    gap: 8px;
    color: var(--sw-text);
    font-weight: 750;
}

.forum-search-grid label span {
    font-size: 0.9rem;
}

.forum-search-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.club-forum-title-row {
    align-items: center;
    margin: 0;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(17, 26, 54, 0.08);
    background:
        linear-gradient(135deg, rgba(255, 253, 250, 0.94), rgba(250, 246, 240, 0.82));
}

.club-forum-title-row h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--sw-text);
    font-size: 1.32rem;
    line-height: 1.2;
}

.club-forum-list {
    display: grid;
    gap: 0;
}

.club-forums-card .club-empty-state {
    margin: 22px 28px;
}

.club-forum-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.15fr) minmax(138px, 0.5fr) minmax(230px, 0.85fr);
    gap: 20px;
    align-items: center;
    padding: 20px 28px;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
    transition:
        background var(--sw-transition),
        transform var(--sw-transition),
        box-shadow var(--sw-transition);
}

.club-forum-row:first-child {
    border-top: 0;
}

.club-forum-row:hover {
    background: rgba(49, 94, 251, 0.035);
}

.club-forum-row.is-read {
    opacity: 0.62;
}

.club-forum-info {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.club-forum-name-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.club-forum-title-link {
    color: var(--sw-accent-strong);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.club-forum-title-link:hover,
.club-forum-title-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.club-forum-edit-link {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 253, 250, 0.72);
    color: var(--sw-text-faint);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.club-forum-edit-link:hover,
.club-forum-edit-link:focus-visible {
    border-color: rgba(49, 94, 251, 0.2);
    color: var(--sw-accent-strong);
    background: rgba(49, 94, 251, 0.08);
}

.club-forum-info p {
    margin: 0;
    color: var(--sw-text-soft);
}

.club-forum-moderators {
    font-size: 0.95rem;
}

.club-forum-moderators a,
.club-forum-latest-copy a {
    color: #398a17;
    font-weight: 700;
}

.club-forum-stats {
    display: grid;
    align-items: center;
    min-height: 58px;
    color: var(--sw-text);
}

.club-forum-stats strong,
.club-forum-stats span {
    display: block;
    color: var(--sw-text);
    font-size: 0.98rem;
    font-weight: 650;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
}

.club-forum-stats span {
    color: var(--sw-text-soft);
    font-weight: 600;
}

.club-forum-latest {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 253, 250, 0.62);
    border: 1px solid rgba(17, 26, 54, 0.06);
}

.club-forum-latest-avatar {
    position: relative;
    display: block;
    width: 46px;
    height: 46px;
}

.club-forum-latest-avatar img {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    object-fit: cover;
}

.club-forum-latest-avatar span {
    position: absolute;
    top: 2px;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 2px solid rgba(255, 253, 250, 0.98);
    background: #74d31b;
}

.club-forum-latest-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.club-forum-latest-title {
    color: var(--sw-accent-strong);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-forum-latest-copy span,
.club-forum-latest-copy small {
    color: var(--sw-text-faint);
}

.club-forum-latest-placeholder {
    grid-column: 1 / -1;
    color: var(--sw-text-faint);
    font-size: 0.9rem;
    font-weight: 650;
}

.club-forum-read-all {
    justify-self: center;
    margin: 16px 28px 24px;
    color: var(--sw-text-faint);
    font-weight: 800;
}

.club-forum-detail-summary {
    margin: 22px 28px 0;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 253, 250, 0.66);
}

.club-forum-detail-summary p {
    margin: 0;
    color: var(--sw-text-soft);
}

.club-forum-topic-list {
    padding: 22px 28px 28px;
}

.club-forum-room {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.club-forum-room-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: end;
    padding: 28px 28px 20px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.22);
}

.club-forum-room-meta {
    display: grid;
    gap: 8px;
}

.club-forum-room-meta h2 {
    margin: 0;
    color: var(--sw-text);
    font-size: 1.35rem;
    line-height: 1.2;
}

.club-forum-room-meta p {
    margin: 0;
    color: var(--sw-text);
    font-size: 1rem;
}

.club-forum-room-meta a,
.club-forum-topic-main a,
.club-forum-topic-latest a,
.club-forum-online-list a {
    color: #398a17;
    font-weight: 700;
}

.club-forum-room-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.club-forum-room-toolbar .primary-button {
    min-height: 44px;
}

.club-forum-room-toolbar select {
    width: auto;
    min-width: 190px;
    background-color: rgba(255, 253, 250, 0.9);
}

.club-forum-topic-table {
    display: grid;
}

.club-forum-topic-line {
    display: grid;
    grid-template-columns: 64px minmax(220px, 1fr) minmax(130px, 170px) minmax(230px, 320px);
    gap: 16px;
    align-items: center;
    padding: 18px 28px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.22);
    transition:
        background var(--sw-transition),
        opacity var(--sw-transition);
}

.club-forum-topic-line:hover {
    background: rgba(49, 94, 251, 0.035);
}

.club-forum-topic-line.is-read {
    opacity: 0.68;
}

.club-forum-topic-avatar {
    position: relative;
    display: block;
    width: 54px;
    height: 54px;
}

.club-forum-topic-avatar img {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(49, 94, 251, 0.08);
}

.club-forum-topic-avatar.small,
.club-forum-topic-avatar.small img {
    width: 48px;
    height: 48px;
}

.club-forum-topic-avatar.small span {
    position: absolute;
    top: 2px;
    right: 0;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 2px solid rgba(255, 253, 250, 0.98);
    background: #74d31b;
}

.club-forum-topic-main {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.club-forum-topic-main strong,
.club-forum-topic-title-link {
    color: var(--sw-accent-strong);
    font-size: 1.04rem;
    font-weight: 800;
    line-height: 1.25;
}

.club-forum-topic-title-link:hover,
.club-forum-topic-title-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.club-forum-topic-stats {
    display: grid;
    gap: 2px;
    color: var(--sw-text);
    font-weight: 650;
    font-variant-numeric: tabular-nums;
}

.club-forum-topic-stats span + span {
    color: var(--sw-text-soft);
}

.club-forum-topic-latest {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    color: var(--sw-text-soft);
}

.club-forum-topic-latest div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.club-forum-topic-latest span,
.club-forum-topic-latest a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.club-forum-online {
    display: grid;
    gap: 10px;
    padding: 24px 28px 30px;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
    color: var(--sw-text-soft);
}

.club-forum-online strong {
    color: var(--sw-text-faint);
}

.club-forum-online p {
    margin: 0;
}

.club-forum-online-list {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.club-topic-page {
    display: grid;
    gap: 22px;
}

.club-topic-banner {
    height: 88px;
    overflow: hidden;
    border-radius: 26px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background:
        linear-gradient(90deg, rgba(49, 94, 251, 0.16), rgba(198, 161, 104, 0.18));
}

.club-topic-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.club-topic-header {
    margin-bottom: 0;
}

.club-topic-thread {
    display: grid;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.club-topic-post {
    display: grid;
    grid-template-columns: 256px minmax(0, 1fr);
    min-height: 340px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.22);
}

.club-topic-author-card {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    padding: 32px 24px;
    border-right: 1px solid rgba(135, 158, 73, 0.22);
    background: rgba(249, 246, 241, 0.58);
    color: var(--sw-text-soft);
    text-align: center;
}

.club-topic-author-avatar {
    position: relative;
    display: block;
    width: 132px;
    height: 132px;
    margin-bottom: 6px;
}

.club-topic-author-avatar img {
    width: 132px;
    height: 132px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(49, 94, 251, 0.08);
}

.club-topic-author-avatar span {
    position: absolute;
    top: 20px;
    right: 5px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid rgba(255, 253, 250, 0.98);
    background: #74d31b;
}

.club-topic-author-name {
    color: #398a17;
    font-weight: 800;
}

.club-topic-author-card strong {
    margin-top: 12px;
    color: var(--sw-text);
}

.club-topic-post-main {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
}

.club-topic-post-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    min-height: 62px;
    padding: 0 22px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.16);
    color: var(--sw-text-faint);
    font-variant-numeric: tabular-nums;
}

.club-topic-post-meta .text-button {
    color: var(--sw-accent-strong);
    font-weight: 800;
}

.club-topic-score {
    margin-left: auto;
    color: var(--sw-text-faint);
    font-weight: 800;
}

.club-topic-post-body {
    padding: 28px 24px;
    color: var(--sw-text);
    font-size: 1.05rem;
}

.club-topic-post-body p {
    margin-top: 0;
}

.club-topic-post-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
    min-height: 70px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.22);
}

.club-topic-post-actions .text-button {
    color: var(--sw-accent-strong);
    font-weight: 800;
}

.club-topic-reply-list {
    display: grid;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(135, 158, 73, 0.22);
}

.club-topic-reply {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(49, 94, 251, 0.05);
}

.club-topic-reply p {
    margin: 0;
}

.club-topic-reply-form {
    display: grid;
    gap: 14px;
    padding: 28px 24px 34px;
}

.club-topic-reply-form .rich-editor-surface {
    min-height: 160px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
}

.club-topic-reply-form .upload-file-input {
    display: none;
}

.club-topic-reply-actions {
    display: flex;
    justify-content: flex-end;
}

.club-topic-bottom-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.club-topic-bottom-actions .check-row {
    width: auto;
}

.club-topic-bottom-actions select {
    width: min(260px, 100%);
}

.club-forum-back-link {
    color: var(--sw-accent-strong);
    font-weight: 800;
}

.club-forum-back-link:hover,
.club-forum-back-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.club-forum-add-button {
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid rgba(49, 94, 251, 0.14);
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.08);
    color: var(--sw-accent-strong);
    font-size: 0.95rem;
    font-weight: 800;
}

.club-forum-add-button::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(49, 94, 251, 0.12);
    font-size: 1rem;
    line-height: 1;
}

.club-forum-add-button:hover,
.club-forum-add-button:focus-visible {
    color: var(--sw-accent-strong);
    border-color: rgba(49, 94, 251, 0.26);
    background: rgba(49, 94, 251, 0.12);
    box-shadow: 0 12px 28px rgba(49, 94, 251, 0.12);
    transform: translateY(-1px);
}

.club-forum-add-button:active {
    transform: translateY(0);
}

@media (max-width: 900px) {
    .club-forum-title-row {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .club-forum-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 20px;
    }

    .club-forum-latest {
        width: min(100%, 360px);
    }

    .club-forum-room-head,
    .club-forum-topic-line {
        grid-template-columns: 1fr;
    }

    .club-forum-room-head {
        align-items: stretch;
        padding: 22px 20px 18px;
    }

    .club-forum-room-toolbar {
        justify-content: stretch;
    }

    .club-forum-room-toolbar .primary-button,
    .club-forum-room-toolbar select {
        width: 100%;
    }

    .club-forum-topic-line {
        padding: 18px 20px;
    }

    .club-forum-topic-latest {
        width: min(100%, 360px);
    }

    .club-forum-online {
        padding: 22px 20px 26px;
    }

    .club-topic-banner {
        height: 70px;
        border-radius: 20px;
    }

    .club-topic-post {
        grid-template-columns: 1fr;
    }

    .club-topic-author-card {
        border-right: 0;
        border-bottom: 1px solid rgba(135, 158, 73, 0.22);
    }

    .club-topic-post-meta {
        align-items: flex-start;
        padding: 14px 20px;
    }

    .club-topic-score {
        margin-left: 0;
    }

    .club-topic-post-body,
    .club-topic-reply-list,
    .club-topic-reply-form {
        padding-left: 20px;
        padding-right: 20px;
    }

    .club-topic-post-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
        padding: 14px 20px;
    }
}

.club-forum-dialog,
.club-invite-dialog {
    width: min(560px, calc(100vw - 32px));
    max-height: min(88vh, 980px);
    border: 1px solid rgba(17, 26, 54, 0.08);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 30px 90px rgba(17, 30, 56, 0.28);
}

.club-forum-dialog::backdrop,
.club-invite-dialog::backdrop {
    background: rgba(7, 17, 31, 0.48);
}

.club-forum-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--sw-accent), var(--sw-accent-soft));
    color: #fff;
}

.club-forum-dialog-head h2 {
    margin: 0;
    font-size: 1.08rem;
}

.club-forum-dialog-head .text-button {
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.club-forum-dialog-body {
    display: grid;
    gap: 16px;
    max-height: calc(min(88vh, 980px) - 66px);
    padding: 20px 22px 22px;
    overflow: auto;
}

.club-forum-dialog-section {
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
}

.club-forum-dialog-section h3 {
    margin: 0;
    font-size: 0.98rem;
}

.club-forum-dialog-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.club-invite-body {
    display: grid;
    gap: 12px;
    max-height: calc(min(88vh, 980px) - 66px);
    padding: 20px 22px 22px;
    overflow: auto;
}

.club-invite-row,
.club-subscriber-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(17, 26, 54, 0.08);
}

.club-invite-row:first-child,
.club-subscriber-row:first-child {
    border-top: 0;
}

.club-mailing-count {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(49, 94, 251, 0.12);
    background: rgba(49, 94, 251, 0.06);
}

.club-mailing-count strong {
    font-size: 2.2rem;
    line-height: 1;
}

.club-request-actions form {
    margin: 0;
}

.club-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--sw-text);
}

.club-member-row img,
.club-member-grid img {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    object-fit: cover;
    background: rgba(49, 94, 251, 0.08);
}

.club-member-row span {
    display: grid;
    gap: 2px;
}

.club-member-row small,
.club-member-grid span {
    color: var(--sw-text-soft);
}

.club-member-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.club-member-grid a {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: var(--sw-text);
    text-align: center;
    font-size: 0.9rem;
}

.club-create-start {
    display: grid;
    gap: 28px;
    padding: 28px;
}

.club-create-start-head {
    display: grid;
    gap: 10px;
}

.club-create-start-head h1 {
    margin: 0;
    color: #d11878;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.02;
}

.club-create-start-head p {
    margin: 0;
    color: var(--sw-text);
    font-size: 1.12rem;
    font-weight: 700;
}

.club-type-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.club-type-card {
    display: grid;
    grid-template-rows: auto auto minmax(96px, 1fr) auto auto;
    justify-items: center;
    align-items: start;
    text-align: center;
    gap: 16px;
    min-height: 330px;
    padding: 34px 30px 30px;
    border: 1px solid rgba(49, 94, 251, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.club-type-card h2 {
    margin: 0;
    font-size: 1.55rem;
    line-height: 1.04;
}

.club-type-card p {
    margin: 0;
    color: var(--sw-text-faint);
    font-size: 1.08rem;
    line-height: 1.45;
}

.club-type-card .primary-button {
    align-self: end;
}

.feature-mini-badge.is-real {
    background: rgba(209, 24, 120, 0.12);
    color: #d11878;
}

.club-type-moderation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 28px;
    color: var(--sw-text);
    font-size: 0.94rem;
}

.club-type-moderation span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #de5855;
    color: #fffdfa;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.club-settings-card {
    padding: 26px 28px 30px;
}

.club-settings-tabs {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(16, 42, 88, 0.08);
}

.club-settings-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) 320px;
    gap: 26px;
}

.club-settings-main,
.club-settings-side {
    display: grid;
    gap: 18px;
}

.club-settings-group {
    display: grid;
    gap: 12px;
}

.club-settings-group h3 {
    margin: 0;
    font-size: 1.12rem;
}

.club-flag-list {
    display: grid;
    gap: 10px;
}

.club-settings-actions {
    margin-top: 24px;
}

.club-rules-content {
    display: grid;
    gap: 20px;
}

.club-rules-section {
    display: grid;
    gap: 10px;
}

.club-rules-section h2,
.club-rules-section h3 {
    margin: 0;
}

.club-privacy-form {
    display: grid;
    gap: 20px;
}

.club-privacy-grid {
    display: grid;
    gap: 18px;
}

.club-privacy-row {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 42, 88, 0.08);
}

.club-poll-form {
    display: grid;
    gap: 18px;
}

.club-filter-control {
    height: 44.4px;
    min-height: 44.4px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.club-filter-select {
    padding-right: 54px;
    background-position: right 18px center;
}

.registration-flow {
    display: grid;
    gap: 22px;
}

.registration-section {
    padding: 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82));
}

.registration-section-title {
    margin-bottom: 18px;
}

.registration-section-title h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.registration-section-accent-red {
    border-left: 4px solid #de6a62;
}

.registration-section-accent-blue {
    border-left: 4px solid #5c8df4;
}

.registration-section-accent-pink {
    border-left: 4px solid #d86fc3;
}

.registration-grid {
    display: grid;
    gap: 18px;
}

.registration-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 26, 54, 0.06);
}

.registration-grid .registration-row:first-child {
    padding-top: 0;
    border-top: 0;
}

.registration-row-terms {
    align-items: center;
}

.registration-label {
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--sw-text);
}

.registration-control {
    display: grid;
    gap: 8px;
}

.registration-control input:not([type="checkbox"]):not([type="radio"]),
.registration-control select,
.registration-control textarea {
    min-height: 44.4px;
}

.registration-help {
    margin: 0;
    color: var(--sw-text-faint);
}

.registration-inline-triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 150px));
    gap: 12px;
}

.registration-inline-errors {
    margin: -10px 0 0 322px;
}

.registration-choice-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.registration-choice-list > div,
.registration-choice-list li {
    display: block;
}

.registration-choice-list > div label,
.registration-choice-list li label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(17, 26, 54, 0.06);
    background: rgba(249, 246, 241, 0.84);
    font-weight: 500;
    color: var(--sw-text);
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
    white-space: normal;
    overflow-wrap: anywhere;
    max-width: 100%;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.registration-choice-list > div input[type="radio"],
.registration-choice-list > div input[type="checkbox"],
.registration-choice-list input[type="radio"],
.registration-choice-list input[type="checkbox"],
.registration-terms input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex: 0 0 20px;
    align-self: center;
    position: relative;
    top: -1px;
}

.registration-terms {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px 18px;
    border-radius: 22px;
    background: rgba(249, 246, 241, 0.84);
    border: 1px solid rgba(17, 26, 54, 0.06);
}

.registration-terms label {
    font-weight: 500;
}

.registration-choice-list-nowrap > div label,
.registration-choice-list-nowrap li label {
    white-space: nowrap;
}

.registration-terms a {
    color: var(--sw-accent);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    font-weight: 600;
}

.registration-terms a:hover,
.registration-terms a:focus {
    color: #174cc8;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
}

.registration-submit {
    min-width: 240px;
    min-height: 54px;
}

.registration-section[hidden] {
    display: none;
}

.errorlist {
    margin: 0;
    padding: 0;
    list-style: none;
    color: #c84b6a;
    font-size: 0.94rem;
    font-weight: 600;
}

.help-inline-input {
    height: 44.4px;
    min-height: 44.4px;
    padding: 0 16px;
    line-height: 1.2;
}

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

.pagination-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 6px 0 10px;
}

.pagination-status {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(255, 255, 255, 0.72);
    color: var(--sw-text-soft);
    font-weight: 700;
}

.club-pagination-row {
    grid-column: 2;
}

@media (max-width: 1240px) {
    .club-dashboard {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .discover-filter-grid {
        grid-template-columns: minmax(280px, 1fr) minmax(340px, 1fr);
    }

    .discover-box-params {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px 20px;
        align-items: center;
    }

    .discover-box-params h3 {
        grid-column: 1 / -1;
    }

    .discover-filter-grid-ages {
        grid-template-columns: 1fr;
    }

    .club-type-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .topbar,
    .hero,
    .two-column,
    .profile-hero,
    .split-details,
    .card-grid,
    .editorial-section,
    .feature-showcase,
    .feature-card-large {
        grid-template-columns: 1fr;
    }

    .club-pagination-row {
        grid-column: 1;
    }

    .social-blog-card {
        grid-template-columns: 1fr;
    }

    .poll-list-card {
        grid-template-columns: 1fr;
        padding: 22px;
    }

    .poll-list-thumb {
        max-width: 180px;
    }

    .topbar {
        grid-template-columns: 1fr auto;
        padding-top: 8px;
        gap: 12px;
    }

    .club-dashboard {
        grid-template-columns: 1fr;
    }

    .social-layout {
        grid-template-columns: 1fr;
    }

    .social-side-card {
        position: static;
    }

    .club-sidebar {
        position: static;
    }

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

    .club-event-card {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .club-event-form-shell {
        grid-template-columns: 1fr;
    }

    .club-event-media-content {
        grid-template-columns: 1fr;
    }

    .club-event-detail-hero,
    .club-event-detail-layout {
        grid-template-columns: 1fr;
    }

    .club-event-detail-carousel {
        min-height: 360px;
    }

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

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 8px;
    }

    .sidebar-card {
        position: static;
    }

    .media-grid,
    .logo-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .album-grid,
    .profile-album-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero-art {
        min-height: 360px;
    }

    .hero-wire-a {
        left: 46px;
    }

    .hero-wire-d {
        left: 170px;
    }
}

@media (max-width: 640px) {
    .site-shell {
        width: min(100vw - 20px, 1120px);
    }

    .hero-copy h1,
    .section-header h1,
    .profile-hero-copy h1,
    .editorial-copy h2 {
        font-size: 2.45rem;
    }

    .logo-strip,
    .avatar-strip,
    .media-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-art {
        min-height: 280px;
    }

    .hero-wire {
        transform: rotate(-26deg) scale(0.86);
    }

    .topbar {
        grid-template-columns: 1fr auto;
        align-items: start;
    }

    .brand {
        font-size: 0.9rem;
        min-width: 0;
    }

    .main-nav {
        width: 100%;
        gap: 8px;
    }

    .main-nav a {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .main-nav summary {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.9rem;
    }

    .info-page-grid {
        grid-template-columns: 1fr;
    }

    .info-page-related-grid {
        grid-template-columns: 1fr;
    }

    .topbar-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .profile-menu summary {
        min-height: 40px;
        padding: 0 16px;
    }

    .topbar-actions .ghost-button,
    .topbar-actions .primary-button {
        min-height: 40px;
        padding: 0 16px;
        font-size: 0.95rem;
    }

    .section-header {
        flex-wrap: wrap;
        align-items: start;
    }

    .section-header h1 {
        line-height: 0.98;
        word-break: break-word;
    }

    .public-chat-form p {
        grid-template-columns: 1fr;
    }

    .discover-filter-top,
    .discover-filter-grid,
    .discover-inline-grid-split,
    .discover-filter-grid-ages,
    .range-row,
    .advanced-ordering-row,
    .range-pair,
    .discover-results-grid {
        grid-template-columns: 1fr;
    }

    .discover-filter-top,
    .discover-filter-grid,
    .advanced-search,
    .discover-actions {
        padding: 22px 20px;
    }

    .discover-filter-top {
        align-items: stretch;
    }

    .discover-box-params {
        display: grid;
        grid-template-columns: 1fr;
    }

    .unit-field {
        grid-template-columns: minmax(0, 1fr) 74px;
    }

    .registration-row,
    .registration-inline-triple {
        grid-template-columns: 1fr;
    }

    .registration-section {
        padding: 20px;
    }

    .registration-section-title h2 {
        font-size: 1.9rem;
        line-height: 1;
        word-break: break-word;
    }

    .registration-label {
        font-size: 1rem;
    }

    .registration-help,
    .discover-hint,
    .muted {
        font-size: 0.95rem;
        line-height: 1.45;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .registration-row {
        gap: 12px;
    }

    .registration-inline-errors {
        margin: -8px 0 0;
    }

    .registration-control input:not([type="checkbox"]):not([type="radio"]),
    .registration-control select,
    .registration-control textarea {
        min-width: 0;
    }

    .registration-choice-list > div label,
    .registration-choice-list li label {
        align-items: flex-start;
    }

    .registration-choice-list > div input[type="radio"],
    .registration-choice-list > div input[type="checkbox"],
    .registration-choice-list input[type="radio"],
    .registration-choice-list input[type="checkbox"] {
        top: 2px;
    }

    .wall-post-toolbar {
        align-items: stretch;
    }

    .club-dashboard {
        gap: 18px;
        margin-top: 22px;
    }

    .club-home-card,
    .club-sidebar-card {
        gap: 16px;
    }

    .club-feed-tabs {
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 12px;
    }

    .club-feed-tabs a,
    .club-feed-tabs span {
        flex: 0 0 auto;
    }

    .club-member-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-event-card,
    .club-event-date-grid,
    .club-event-detail-meta,
    .club-event-location-grid,
    .club-event-media-content,
    .club-event-status-tabs,
    .club-type-grid,
    .club-topic-row {
        grid-template-columns: 1fr;
    }

    .club-event-status-tabs,
    .club-event-card-meta,
    .club-event-footer {
        align-items: stretch;
        gap: 10px;
    }

    .club-event-card {
        display: grid;
    }

    .club-event-add-panel {
        min-height: 72px;
        padding: 0 18px;
    }

    .club-event-detail-summary {
        padding: 24px 20px;
    }

    .club-event-detail-carousel {
        min-height: 280px;
    }

    .club-photo-day-card {
        aspect-ratio: 1.18;
        min-height: 220px;
    }

    .club-new-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .club-invite-row,
    .club-subscriber-row,
    .social-profile-row,
    .news-feed-head {
        align-items: stretch;
        flex-direction: column;
    }

    .gift-card,
    .news-feed-item {
        grid-template-columns: 1fr;
    }

    .gift-choice-grid {
        grid-template-columns: 1fr;
    }

    .profile-gift-choice-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .social-row-actions {
        justify-content: flex-start;
    }

    .club-post-replies {
        padding-left: 0;
    }

.club-post-actions {
        align-items: stretch;
    }

    .club-post-actions .primary-button,
    .club-post-as-club {
        width: 100%;
    }

    .wall-post-toolbar .primary-button,
    .wall-post-toolbar .ghost-button {
        width: 100%;
    }
}

.club-post-meta-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 8px;
}

.club-post-replies {
    display: grid;
    gap: 12px;
    margin-top: 12px;
    padding-left: 38px;
}

.club-post-reply {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(17, 26, 54, 0.08);
    background: rgba(249, 246, 241, 0.64);
}

.club-post-reply p {
    margin: 0;
}

.club-reply-arrow {
    color: var(--sw-text-faint);
    font-weight: 800;
}

.club-post-reply-form {
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(49, 94, 251, 0.05);
}

.club-post-reply-form[hidden] {
    display: none;
}

@media (max-width: 760px) {
    .registration-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .registration-inline-triple {
        grid-template-columns: 1fr;
    }

    .registration-inline-errors {
        margin: -8px 0 0;
    }

    .registration-label {
        font-size: 1rem;
    }

    .registration-choice-list > div label,
    .registration-choice-list li label {
        align-items: flex-start;
    }

    .registration-choice-list > div input[type="radio"],
    .registration-choice-list > div input[type="checkbox"],
    .registration-choice-list input[type="radio"],
    .registration-choice-list input[type="checkbox"] {
        top: 2px;
    }

    .registration-choice-list-nowrap > div label,
    .registration-choice-list-nowrap li label {
        white-space: normal;
    }

    .album-grid,
    .profile-album-grid {
        grid-template-columns: 1fr;
    }

    .album-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.tag-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tag-input-entry {
    width: 100%;
}

.tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-chips:empty {
    display: none;
}

@keyframes tag-chip-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.92); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 6px 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(29, 95, 240, 0.08), rgba(95, 205, 249, 0.16));
    border: 1px solid rgba(42, 103, 246, 0.22);
    color: var(--sw-accent);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 4px 10px rgba(42, 103, 246, 0.08);
    transition: transform var(--sw-transition), box-shadow var(--sw-transition), background var(--sw-transition);
    animation: tag-chip-in 180ms ease-out;
}

.tag-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(42, 103, 246, 0.16);
    background: linear-gradient(135deg, rgba(29, 95, 240, 0.14), rgba(95, 205, 249, 0.22));
}

.tag-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(42, 103, 246, 0.14);
    color: var(--sw-accent);
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: background var(--sw-transition), color var(--sw-transition), transform var(--sw-transition);
}

.tag-chip-remove:hover {
    background: linear-gradient(135deg, #1d5ff0 0%, #5fcdf9 100%);
    color: #fff;
    transform: rotate(90deg);
}
