/* ===== 全局CSS重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Preserve native dialog centering; component placement rules still win. */
:where(dialog) { margin: auto; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    font-family: var(--spinmatch-font-family);
    line-height: 1.6;
    color: #333;
}

/* 全局容器样式 */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0; /* 移除所有内边距，让内容完全贴合边缘 */
}

/* ===== UI组件通用样式 ===== */

/* 按钮组件 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    min-height: 48px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

/* 主要按钮 - 统一红色渐变样式 */
.btn-primary {
    background: linear-gradient(135deg, #DC143C 0%, #B91C3C 50%, #A01729 100%);
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: none;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #F01E47 0%, #DC143C 50%, #B91C3C 100%);
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

/* White actions share one glass surface; aliases keep existing call sites stable. */
:root {
    --sm-glass-background: linear-gradient(160deg, rgba(255,255,255,.04), rgba(255,255,255,.004) 62%, rgba(255,255,255,.012));
    --sm-glass-border: transparent;
    --sm-glass-shadow: 0 3px 5px rgba(0,0,0,.06), 0 9px 18px -14px rgba(0,0,0,.28);
    --sm-glass-active-background: linear-gradient(135deg, rgba(255,255,255,.24), rgba(255,255,255,.1));
    --sm-glass-active-border: transparent;
}
.btn:is(.btn-secondary, .btn-outline),
.location-modal .location-btn.location-btn-secondary,
.messages-page .mobile-back-btn,
.auth-modal :is(.auth-social-btn, .auth-verify-btn) {
    background: var(--sm-glass-background);
    color: var(--sm-glass-text, #FFFFFF);
    border: 2px solid var(--sm-glass-border);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    backdrop-filter: blur(16px) saturate(140%);
    box-shadow: var(--sm-glass-shadow);
}

.btn:is(.btn-secondary, .btn-outline):hover:not(:disabled),
.location-modal .location-btn.location-btn-secondary:hover:not(:disabled),
.messages-page .mobile-back-btn:hover:not(:disabled),
.auth-modal :is(.auth-social-btn, .auth-verify-btn):hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    transform: none;
}

.btn:is(.btn-secondary, .btn-outline):active:not(:disabled),
.location-modal .location-btn.location-btn-secondary:active:not(:disabled),
.messages-page .mobile-back-btn:active:not(:disabled),
.auth-modal :is(.auth-social-btn, .auth-verify-btn):active:not(:disabled) {
    transform: translateY(0);
    background-color: rgba(255, 255, 255, 0.04);
}

/* 文本按钮 */
.btn-text {
    background: none;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.btn-text:hover:not(:disabled) {
    background: rgba(220, 20, 60, 0.1);
    transform: none;
}

/* 危险按钮 */
.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-danger:hover:not(:disabled) {
    background: linear-gradient(135deg, #f87171, #ef4444);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 成功按钮 */
.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.btn-success:hover:not(:disabled) {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* 按钮图标样式优化 */
.btn i {
    font-size: 1rem;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover:not(:disabled) i {
    transform: scale(1.1);
}

/* 按钮焦点状态 */
.btn:focus:not(:focus-visible) {
    outline: none;
}

/* 导航栏按钮样式已统一使用全局定义 */

/* 按钮尺寸 */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 2.5rem;
    font-size: 1.25rem;
}

/* 位置选择按钮特殊样式 */
.btn-location {
    white-space: nowrap;
    flex-shrink: 0;
    min-width: auto;
    font-size: 0.9rem;
    padding: 0.8rem 1.2rem;
}

/* 圆形按钮 */
.btn-circle {
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
}

.btn-circle.btn-sm {
    width: 2rem;
    height: 2rem;
}

.btn-circle.btn-lg {
    width: 3rem;
    height: 3rem;
}

/* Page actions share the chat launcher's round surface and keep their accessible names. */
.sm-page-action { position:fixed; z-index:900; right:max(20px,calc((100vw - 1300px)/2)); bottom:32px; display:grid; place-items:center; }
.sm-page-action[hidden] { display:none!important; }
.sm-page-action-label { display:none; }
@media(max-width:768px) { .sm-page-action { right:18px; bottom:calc(104px + env(safe-area-inset-bottom,0px)); } }

/* 搜索栏内的圆形按钮特殊样式 */
.search-bar .btn-circle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-height: 40px;
    font-size: 1rem;
}

.search-bar .btn-circle:hover:not(:disabled) {
    transform: translateY(-50%) translateY(-2px);
}

/* 加载状态按钮 */
.btn-loading {
    pointer-events: none;
}



/* 输入框组件 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-label.required::after {
    content: '*';
    color: white;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-input.error {
    border-color: #ef4444;
}

.form-input.success {
    border-color: #10b981;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    appearance: none;
}

/* 复选框和单选框 */
.form-checkbox,
.form-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.form-checkbox input,
.form-radio input {
    width: 18px;
    height: 18px;
    accent-color: white;
}

/* 错误消息 */
.form-error {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.form-success {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* 模态框组件 */
/* 已移除全局.modal定义，避免覆盖页面特定模态框样式 */

/* Toast样式已移除 - 统一在notification.css中定义 */

/* 标签组件 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 1rem;
    white-space: nowrap;
}

.badge-primary {
    background: #DC143C;
    color: white;
}

.badge-secondary {
    background: #6b7280;
    color: white;
}

.badge-success {
    background: #10b981;
    color: white;
}

.badge-warning {
    background: #f59e0b;
    color: white;
}

.badge-danger {
    background: #ef4444;
    color: white;
}

.badge-info {
    background: #3b82f6;
    color: white;
}

.badge-light {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e9ecef;
}

/* 进度条组件 */
.progress {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #DC143C, #B91C3C);
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        transparent 75%);
    background-size: 20px 20px;
    animation: progressStripes 1s linear infinite;
}

@keyframes progressStripes {
    0% { background-position: 0 0; }
    100% { background-position: 20px 0; }
}

/* 分页组件 */
.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-item:hover {
    border-color: white;
    color: white;
}

.pagination-item.active {
    background: #DC143C;
    border-color: white;
    color: white;
}

.pagination-item:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    border-bottom: 2px solid #e5e7eb;
    margin-bottom: 2rem;
}

.nav-tab {
    padding: 1rem 1.5rem;
    border: none;
    background: none;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-tab:hover {
    color: white;
}

.nav-tab.active {
    color: white;
    border-bottom-color: white;
}

/* 手风琴组件 */
.accordion {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid #e5e7eb;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 500;
    transition: background 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item.active .accordion-content {
    padding: 1.5rem;
    max-height: 1000px;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.tooltip:hover .tooltip-text {
    opacity: 1;
    visibility: visible;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.dropdown-item:hover {
    background: #f8f9fa;
    color: white;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 0.5rem 0;
}

/* 响应式工具类 */
@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.95rem;
        min-height: 44px;
    }


    /* Toast响应式样式已移除 - 统一在notification.css中定义 */

    .pagination {
        flex-wrap: wrap;
    }

    .nav-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .dropdown-menu {
        left: auto;
        right: 0;
        min-width: 150px;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
        min-height: 42px;
    }

}

/* 辅助类 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline-block { display: inline-block; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }

.w-full { width: 100%; }
.h-full { height: 100%; }

.m-0 { margin: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }

/* ===== 英雄区域背景样式（通用） ===== */
/* 预加载动画和实际英雄区域共享相同的背景样式 */
.hero-loading,
.hero-section {
    background: var(--sm-surface);
    padding: 112px 0 0;
    text-align: center;
    position: relative;
    margin-bottom: 0;
    border-radius: 0;
    min-height: 320px;
    box-shadow: none;
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: visible;
}

/* 预加载动画特有样式 */
.hero-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero photographs own their page-matching fade; placeholders have no light layer. */
.hero-loading::before, .hero-loading::after { content: none; }






.hero-loading-content {
    width: min(800px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

/* 标题加载元素 */
.loading-title {
    width: 280px;
    height: 56px;
    border-radius: 12px;

}

/* 描述加载元素 */
.loading-description {
    width: 520px;
    height: 24px;
    border-radius: 8px;

}

/* 预加载动画关键帧 */


/* 响应式设计 */
@media (max-width: 768px) {
    /* 移动端英雄区域背景样式（通用） */
    .hero-loading,
    .hero-section {
        padding: 92px 0 0px;
        min-height: 280px;
        margin-bottom: 0;
    }

    .hero-loading-content {
        gap: 1rem;
        padding: 0 1rem;
    }

    .loading-title {
        width: 220px;
        height: 48px;

}

    .loading-description {
        width: 320px;
        height: 20px;

}



}

@media (max-width: 480px) {
    /* 小屏幕英雄区域背景样式（通用） */
    .hero-loading,
    .hero-section {
        padding: 82px 0 0;
        margin-bottom: 0;
        min-height: 250px;
    }


}

/* 禁用动画的样式 */
.no-animations * {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    transform: none;
}

/* Honest status for sections whose actions are not yet backed by a live service. */
.feature-preview-notice {
    max-width: 1200px;
    margin: 1rem auto;
    padding: 0.9rem 1.25rem;
    color: var(--sm-text-muted, #aeb4bf);
    background: rgba(228, 232, 240, 0.035);
    border: 1px solid var(--sm-line, rgba(228,232,240,.12));
    border-radius: 8px;
    line-height: 1.6;
}

/* Soft gradient placeholders retain content geometry without extra outlines. */
:root {
    --sm-skeleton-fill: linear-gradient(105deg, rgba(255,255,255,.035), rgba(255,255,255,.095) 48%, rgba(255,255,255,.035));
    --sm-skeleton-border: transparent;
}
.sm-skeleton { width:100%; min-width:0; animation:sm-skeleton-breathe 2.2s ease-in-out infinite; }
.sm-skeleton-layout, .sm-skeleton-copy { display:flex; flex-direction:column; gap:14px; min-width:0; }
.sm-skeleton-shape { display:block; flex-shrink:0; background:var(--sm-skeleton-fill); border:0; border-radius:6px; }
.sm-skeleton-line { width:100%; height:12px; }
.sm-skeleton-short { width:58%; }
.sm-skeleton-heading { height:22px; width:78%; margin-bottom:6px; }
.sm-skeleton-avatar { width:32px; height:32px; border-radius:50%; }
.sm-skeleton-copy { flex:1; }
.sm-skeleton-card { display:flex; flex-direction:column; gap:18px; padding:24px; min-width:0; border:0; background:linear-gradient(145deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); }
.sm-skeleton-row { display:flex; align-items:center; gap:12px; min-width:0; }
.sm-skeleton-row .sm-skeleton-copy { gap:9px; }
.sm-skeleton-card > .sm-skeleton-row { margin-top:12px; }
.sm-skeleton-media { width:100%; height:180px; border-radius:10px; }
.sm-skeleton--booking > .sm-skeleton-layout { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; }
.sm-skeleton--news .sm-skeleton-news-row { display:grid; grid-template-columns:300px minmax(0,1fr); gap:24px; padding:24px 0; border:0; border-bottom:0; border-radius:0; background:none; }
.sm-skeleton--article .sm-skeleton-layout { gap:32px; padding:20px 0; }
.sm-skeleton-paragraph { gap:14px; }
.sm-skeleton--rows .sm-skeleton-row { padding:12px 0; }
.sm-skeleton--chat .sm-skeleton-row { max-width:82%; align-items:flex-start; }
.sm-skeleton--chat .sm-skeleton-row:nth-child(even) { align-self:flex-end; flex-direction:row-reverse; }
.sm-skeleton-bubble { padding:14px; width:190px; border:0; border-radius:12px; background:rgba(255,255,255,.025); }
.sm-loading-status { display:flex; align-items:center; justify-content:center; gap:10px; padding:20px; color:rgba(255,255,255,.65); font-size:.875rem; }
.sm-spinner, .btn-loading::after, i.fa-spinner.fa-spin { display:inline-block; width:18px; height:18px; border:2px solid rgba(255,255,255,.16); border-top-color:rgba(255,255,255,.8); border-radius:50%; animation:sm-loading-spin .85s linear infinite; flex-shrink:0; }
.btn-loading::after { content:''; }
.btn-loading > .fa-spinner { display:none; }
.sm-loading-status .sm-spinner { width:22px; height:22px; }
.sm-spinner::before, i.fa-spinner.fa-spin::before { content:none; }
.loading-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(26,26,26,.65); border-radius:inherit; z-index:10; }
@keyframes sm-skeleton-breathe { 0%,100% { opacity:.55; } 50% { opacity:1; } }
@keyframes sm-loading-spin { to { transform:rotate(360deg); } }
@media (max-width:768px) {
    .sm-skeleton-card { padding:16px; gap:14px; }
    .sm-skeleton--news .sm-skeleton-news-row { grid-template-columns:104px minmax(0,1fr); gap:12px; padding:16px 0; }
    .sm-skeleton--news .sm-skeleton-media { height:104px; }
    .sm-skeleton--news .sm-skeleton-copy { gap:10px; }
}
@media (prefers-reduced-motion:reduce) {
    .sm-skeleton, .sm-spinner, .btn-loading::after, i.fa-spinner.fa-spin { animation:none; }
}

/* Existing hero outlines use the same material and rhythm as content skeletons. */
.hero-loading-content { animation:sm-skeleton-breathe 2.2s ease-in-out infinite; }
.hero-loading :is(.loading-title,.loading-description) { max-width:100%; background:var(--sm-skeleton-fill); border:0; }
@media (prefers-reduced-motion:reduce) { .hero-loading-content { animation:none; } }

.btn:is(.btn-secondary,.btn-outline):focus-visible { outline:2px solid rgba(255,255,255,.65); outline-offset:3px; box-shadow:var(--sm-glass-shadow); }

/* Booking placeholders use the same inset, two-column facts and identity row as cards. */
.sm-skeleton--booking .sm-skeleton-layout { align-items:start; }
.sm-skeleton--booking .sm-skeleton-booking-card { padding:0; gap:0; overflow:hidden; }
.sm-skeleton-booking-title { padding:24px var(--booking-card-inset) 18px; }
.sm-skeleton-booking-title .sm-skeleton-heading { margin:0; height:25px; }
.sm-skeleton-booking-details { display:flex; flex-direction:column; gap:12px; padding:0 var(--booking-card-inset); }
.sm-skeleton-booking-field { display:flex; align-items:center; height:22px; min-width:0; }
.sm-skeleton-booking-field .sm-skeleton-line { width:76%; height:11px; }
.sm-skeleton-booking-details > .sm-skeleton-booking-field:nth-child(2) .sm-skeleton-line { width:56%; }
.sm-skeleton-booking-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; margin-top:2px; }
.sm-skeleton-booking-facts .sm-skeleton-line { width:74%; }
.sm-skeleton-booking-description { display:flex; flex-direction:column; gap:9px; padding:18px var(--booking-card-inset) 0; margin:0; background:transparent; }
.sm-skeleton-booking-organizer { display:flex; align-items:center; gap:10px; padding:16px var(--booking-card-inset) 20px; background:transparent; }
.sm-skeleton-booking-organizer .sm-skeleton-avatar { width:34px; height:34px; flex-shrink:0; }
.sm-skeleton-booking-organizer .sm-skeleton-line { width:32%; }
@media (max-width:768px) {
    .sm-skeleton-booking-title { padding:16px var(--booking-card-inset) 12px; }
    .sm-skeleton-booking-title .sm-skeleton-heading { height:21px; }
    .sm-skeleton-booking-details { gap:9px; }
    .sm-skeleton-booking-field { height:20px; }
    .sm-skeleton-booking-field .sm-skeleton-line { height:9px; }
    .sm-skeleton-booking-facts { gap:8px 10px; }
    .sm-skeleton-booking-description { padding-top:12px; gap:7px; }
    .sm-skeleton-booking-description .sm-skeleton-line { height:9px; }
    .sm-skeleton-booking-organizer { padding-block:12px 14px; gap:7px; }
    .sm-skeleton-booking-organizer .sm-skeleton-line { width:45%; height:9px; }
}
@media (max-width:480px) {
    .sm-skeleton--booking .sm-skeleton-booking-card { --booking-card-inset:var(--sm-shape-card-inset); }
    .sm-skeleton-booking-title .sm-skeleton-heading { height:21px; }
    .sm-skeleton-booking-field { height:19px; }
    .sm-skeleton-booking-facts { gap:7px; }
}

/* Clear neutral glass and a restrained red tint share the same quiet surface. */
:root { --sm-control-red: 196,38,56; }
body :is(.btn.btn-primary,.btn.btn-secondary,.btn.btn-outline,.btn.btn-danger,.profile-page .tab-btn,.auth-modal .auth-submit,.auth-modal .auth-social-btn,.auth-modal .auth-verify-btn,.location-modal .location-btn,.messages-page .mobile-back-btn) {
    --sm-button-face: rgba(255,255,255,.018);
    --sm-button-hover-face: rgba(255,255,255,.045);
    --sm-button-reflection: .04;
    color:var(--sm-glass-text,#e9ecf2);
    --sm-button-background:
        linear-gradient(160deg,rgba(255,255,255,var(--sm-button-reflection)),rgba(255,255,255,.004) 62%,rgba(255,255,255,.012)),var(--sm-button-face);
    background:var(--sm-button-background);
    border:0;
    box-shadow:0 3px 5px rgba(0,0,0,.06),0 9px 18px -14px rgba(0,0,0,.28);
    text-shadow:var(--sm-glass-text-shadow,0 1px 2px rgba(0,0,0,.35));
    -webkit-backdrop-filter:blur(12px) saturate(105%);
    backdrop-filter:blur(12px) saturate(105%);
    transition:background-color .2s ease,box-shadow .2s ease,color .2s ease,opacity .2s ease;
}
body :is(.btn.btn-primary,.btn.btn-danger,.auth-modal .auth-submit,.location-modal .location-btn-primary) {
    --sm-button-face: rgba(var(--sm-control-red),.90);
    --sm-button-hover-face: rgba(var(--sm-control-red),.96);
    --sm-button-reflection: .025;
    --sm-glass-text:#fff;
    color:#fff;
}
body :is(.btn.btn-primary,.btn.btn-secondary,.btn.btn-outline,.btn.btn-danger,.profile-page .tab-btn,.auth-modal .auth-submit,.auth-modal .auth-social-btn,.auth-modal .auth-verify-btn,.location-modal .location-btn,.messages-page .mobile-back-btn):hover:not(:disabled) {
    background:var(--sm-button-background);
    --sm-button-face: var(--sm-button-hover-face);
    box-shadow:0 3px 5px rgba(0,0,0,.06),0 9px 18px -14px rgba(0,0,0,.28);
    color:var(--sm-glass-text,#fff);
    transform:none;
}
body :is(.btn.btn-primary,.btn.btn-secondary,.btn.btn-outline,.btn.btn-danger,.profile-page .tab-btn,.auth-modal .auth-submit,.auth-modal .auth-social-btn,.auth-modal .auth-verify-btn,.location-modal .location-btn,.messages-page .mobile-back-btn):is(.selected,.active,[aria-pressed="true"],[aria-selected="true"],:active):not(:disabled) {
    background:var(--sm-button-background);
    --sm-button-face: rgba(var(--sm-control-red),.96);
    --sm-button-reflection: .025;
    --sm-glass-text:#fff;
    color:#fff;
    border:0;
    box-shadow:0 3px 5px rgba(0,0,0,.06),0 9px 18px -14px rgba(0,0,0,.28);
}
body :is(.btn,.auth-submit,.auth-social-btn,.auth-verify-btn,.location-btn,.mobile-back-btn):focus-visible {
    outline:2px solid var(--sm-glass-focus,rgba(236,239,244,.8));
    outline-offset:3px;
}
body :is(.btn.btn-primary,.btn.btn-secondary,.btn.btn-outline,.btn.btn-danger,.profile-page .tab-btn,.auth-modal .auth-submit,.auth-modal .auth-social-btn,.auth-modal .auth-verify-btn,.location-modal .location-btn,.messages-page .mobile-back-btn):disabled {
    background:var(--sm-button-background);
    --sm-button-face: rgba(34,37,42,.15);
    --sm-button-reflection: .025;
    color:var(--sm-text-muted);
    border:0;
    box-shadow:none;
    opacity:.65;
}
body .btn:hover:not(:disabled) i { transform:none; }
body .chat-send-btn::before { display:none; }

/* One round action material, including the draggable booking chat launcher. */
body .btn.btn-circle {
    --sm-circle-size:56px;
    --sm-button-face:rgba(64,67,72,.86);
    --sm-button-hover-face:rgba(79,82,88,.94);
    --sm-button-reflection:.10;
    --sm-glass-text:#fff;
    display:grid; place-items:center; flex:none; gap:0;
    width:var(--sm-circle-size); height:var(--sm-circle-size);
    min-width:var(--sm-circle-size); min-height:var(--sm-circle-size);
    padding:0; border-radius:50%; border:1px solid rgba(255,255,255,.11);
    color:#fff; text-shadow:none; overflow:visible;
    box-shadow:inset 0 2px 2px rgba(255,255,255,.09),inset 0 -4px 7px rgba(0,0,0,.26),0 8px 20px rgba(0,0,0,.24);
    -webkit-tap-highlight-color:transparent;
    transition:background-color 280ms ease,box-shadow 320ms ease,opacity 260ms ease,scale 360ms cubic-bezier(.22,.75,.2,1);
}
body .btn.btn-circle.btn-sm { --sm-circle-size:40px; }
body .btn.btn-circle > :is(i,svg) { font-size:23px; width:1em; height:1em; line-height:1; }
/* Font glyphs such as the bracket/tree icon are wider than one em. Centre
   their real advance width rather than letting them overflow a square box. */
body .btn.btn-circle > i { display:grid; place-items:center; width:auto; min-width:1em; }
body .btn.btn-circle.btn-sm > :is(i,svg) { font-size:18px; }
body .btn.btn-circle:hover:not(:disabled) {
    --sm-button-face:var(--sm-button-hover-face);
    border-color:rgba(255,255,255,.16);
    box-shadow:inset 0 2px 2px rgba(255,255,255,.12),inset 0 -4px 7px rgba(0,0,0,.24),0 9px 22px rgba(0,0,0,.26);
}
body .btn.btn-circle:is(:active,.is-held):not(:disabled) {
    --sm-button-face:rgba(55,58,63,.94);
    --sm-button-reflection:.08;
    border:1px solid rgba(255,255,255,.10);
    box-shadow:inset 0 2px 5px rgba(0,0,0,.18),inset 0 -1px 2px rgba(255,255,255,.06),0 4px 12px rgba(0,0,0,.20);
}
body .btn.btn-circle:not(.booking-chat-float):active:not(:disabled) { scale:.94; }
body .btn.btn-circle:focus-visible { outline:2px solid var(--sm-glass-focus,rgba(236,239,244,.8)); outline-offset:4px; }
@media(prefers-reduced-motion:reduce) {
    body .btn.btn-circle { transition:none; }
    body :is(.btn,.auth-submit,.auth-social-btn,.auth-verify-btn,.location-btn,.mobile-back-btn),
    body :is(.btn.btn-primary,.btn.btn-secondary,.btn.btn-outline,.btn.btn-danger,.profile-page .tab-btn,.auth-modal .auth-submit,.auth-modal .auth-social-btn,.auth-modal .auth-verify-btn,.location-modal .location-btn,.messages-page .mobile-back-btn) { transition:none; }
}

/* Shared segmented controls also style chat beside body, where its keyboard
   viewport is mounted. :where keeps the original selector specificity. */
/* One neutral material for navigation, independent of the red action buttons. */
:is(body, html > :where(#chatModal)) :is(.sm-segmented,.cw-nav,.cw-detail-nav,.profile-page .tabs-nav,.message-action-buttons,.friends-tabs,.auth-tabs,.table-count-segment) {
    gap: 4px;
    padding: 4px;
    border: 0;
    border-radius: 11px;
    background: var(--sm-segment-track);
    box-shadow: none;
}
:is(body, html > :where(#chatModal)) :is(.sm-segmented .sm-segment,.cw-nav .btn,.cw-detail-nav .btn,.profile-page .tabs-nav .tab-btn,.message-action-buttons .message-action-btn,.friends-tabs .tab-btn,.auth-tabs .auth-tab,.table-count-segment .btn) {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--sm-text-muted,#aeb4bf);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    font-weight: 500;
    transition: background-color 180ms ease,color 180ms ease,box-shadow 180ms ease;
}
:is(body, html > :where(#chatModal)) :is(.sm-segmented .sm-segment,.cw-nav .btn,.cw-detail-nav .btn,.profile-page .tabs-nav .tab-btn,.message-action-buttons .message-action-btn,.friends-tabs .tab-btn,.auth-tabs .auth-tab,.table-count-segment .btn):hover:not(:disabled) {
    background: var(--sm-segment-hover);
    color: var(--sm-text,#f4f5f7);
    box-shadow: none;
    transform: none;
}
:is(body, html > :where(#chatModal)) :is(.sm-segmented .sm-segment,.cw-nav .btn,.cw-detail-nav .btn,.profile-page .tabs-nav .tab-btn,.message-action-buttons .message-action-btn,.friends-tabs .tab-btn,.auth-tabs .auth-tab,.table-count-segment .btn):is(.active,[aria-pressed="true"],[aria-selected="true"],:active):not(:disabled) {
    background: var(--sm-segment-fill);
    color: var(--sm-text,#f4f5f7);
    box-shadow: var(--sm-segment-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    transform: none;
}
:is(body, html > :where(#chatModal)) :is(.sm-segment,.cw-nav .btn,.cw-detail-nav .btn,.tabs-nav .tab-btn,.message-action-btn,.friends-tabs .tab-btn,.auth-tab,.table-count-segment .btn):focus-visible {
    outline: 2px solid var(--sm-field-line);
    outline-offset: 2px;
}
body.profile-page .tabs-nav { margin-bottom: 16px; }

/* One physical glass layer moves between the tabs, like the booking sort bar.
   Button surfaces stay clear so selection never cross-fades in two places. */
:is(body, html > :where(#chatModal)) [data-sm-sliding] {
    position: relative;
    isolation: isolate;
}
:is(body, html > :where(#chatModal)) [data-sm-sliding] > [data-sm-segment-item] {
    position: relative;
    z-index: 1;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
:is(body, html > :where(#chatModal)) [data-sm-sliding] > .sm-segment-indicator {
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    z-index: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: var(--sm-segment-fill);
    box-shadow: var(--sm-segment-shadow);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
    opacity: 0;
    transition: transform var(--sm-segment-motion), width var(--sm-segment-motion), height var(--sm-segment-motion), opacity 140ms ease;
}
:is(body, html > :where(#chatModal)) [data-sm-sliding] > .sm-segment-indicator[data-visible="true"] { opacity: 1; }
:is(body, html > :where(#chatModal)) [data-sm-sliding] > .sm-segment-indicator[data-instant] { transition: none; }
@media (prefers-reduced-motion: reduce) {
    :is(body, html > :where(#chatModal)) [data-sm-sliding] > .sm-segment-indicator { transition: none; }
}

.profile-page .profile-content { background: transparent; padding: 0; backdrop-filter: none; }
/* Forms inherit one theme palette, including authentication and security. */
.auth-modal-content {
    --sm-glass-text: var(--sm-text);
    --sm-glass-text-shadow: none;
    --sm-glass-focus: var(--sm-field-line);
    --sm-glass-disabled-text: var(--sm-text-muted);
    color: var(--sm-text);
}
html[data-theme] .auth-modal-content :is(.auth-subtitle,.auth-input-hint,.auth-inline-status:not(.error)) {
    color: var(--sm-text-muted);
}
html[data-theme="dark"] .auth-modal-content :is(.auth-inline-status.error,.auth-message.error) { color: #f2a8a3; }
html[data-theme="dark"] .auth-modal-content .auth-message.success { color: #80d7ad; }
html[data-theme="dark"] .auth-modal-content .auth-message.warning { color: #eac488; }
html[data-theme="dark"] .auth-modal-content .auth-forgot-link { color: #ff7b91; }

/* Field skin only: preserve component sizing, icons and validation behavior.
   These properties deliberately override legacy component-specific borders. */
body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,select) {
    border: 0 !important;
    border-radius: 8px !important;
    background-color: var(--sm-field-fill) !important;
    color: var(--sm-field-text) !important;
    box-shadow: none !important;
    outline: none;
    caret-color: var(--sm-field-text);
    -webkit-text-fill-color: var(--sm-field-text);
    font-family: inherit;
    transition: background-color 180ms ease,box-shadow 180ms ease;
}
body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea) {
    background-image: none !important;
}
body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,select):hover:not(:disabled) {
    background-color: var(--sm-field-hover) !important;
}
body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,select):focus {
    background-color: var(--sm-field-focus) !important;
    box-shadow: inset 0 -1px 0 var(--sm-field-line) !important;
    outline: none;
    transform: none;
}
html body :is(input,textarea)::placeholder { color: var(--sm-field-placeholder) !important; -webkit-text-fill-color: var(--sm-field-placeholder) !important; opacity: 1; font-style: normal; }
/* Browser autofill must use the same ink even when its surface is imposed. */
html body input:autofill, html body input:autofill:focus, html body input:autofill:hover {
    -webkit-text-fill-color: var(--sm-field-text);
    caret-color: var(--sm-field-text);
    box-shadow: inset 0 0 0 1000px var(--sm-surface-raised) !important;
}
body :is(input:not([type]),input[type="text"],input[type="search"],input[type="email"],input[type="password"],input[type="tel"],input[type="url"],input[type="number"],input[type="date"],input[type="time"],input[type="datetime-local"],textarea,select):is(.error,[aria-invalid="true"],:user-invalid) {
    box-shadow: inset 0 -1px 0 #df7d87 !important;
}
body :is(input,textarea,select):disabled { opacity: .5; cursor: not-allowed; }
body :is(input,textarea)[readonly] { opacity: .7; }
body :is(.spinmatch-search,.cw-search,.chat-search,.friends-search,.location-search-input-group) {
    --sm-field-fill: transparent;
    --sm-field-hover: transparent;
    --sm-field-focus: transparent;
}
body :is(.spinmatch-search,.cw-search,.location-search-input-group) :is(input,textarea):focus {
    box-shadow: none !important;
}
body :is(.cw-search,.location-search-input-group) {
    border: 0;
    background: transparent;
    box-shadow: none;
}
body :is(.cw-search,.location-search-input-group):focus-within {
    border: 0;
    outline: none;
    box-shadow: inset 0 -1px 0 var(--sm-field-line);
}
body select option { background: var(--sm-surface,#1a1a1a); color: var(--sm-field-text); }
.auth-modal-content select option { background: var(--sm-modal-surface); }
@media (prefers-reduced-motion:reduce) {
    :is(body, html > :where(#chatModal)) :is(input,textarea,select,.sm-segment,.cw-nav .btn,.cw-detail-nav .btn,.tabs-nav .tab-btn,.message-action-btn,.auth-tab) { transition: none; }
}

/* Page surfaces reach the same mobile edges as booking; cards keep their own padding. */
@media(max-width:768px) {
 body.news-page .news-main > .container { padding-inline: 0; }
 body.community-page .community-main { padding-inline: 0; }
 body.events-page .main-content { padding-inline: 0; }
 body.messages-page .main-content > .container { padding-inline: 0; }
 body.profile-page .main-content > .container { padding-inline: 0; }
}
/* Moving indicators remain inside their own control during a viewport change. */
:is(body, html > :where(#chatModal)) [data-sm-sliding] { overflow: clip; }
.sm-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }
[data-sm-sticky-return] {
    position: sticky; top: var(--sm-navbar-bottom, var(--nav-bar-height, 96px)); z-index: 55;
    min-height: 60px; box-sizing: border-box; background: var(--sm-sticky-surface);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 0; box-shadow: none;
}
[data-sm-sticky-return]::after { content: none; }
html body :is(a,button).sm-back-link, html body :is(a,button).sm-text-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 8px 0; border: 0; border-radius: 0; background: transparent;
    color: var(--sm-text-muted); font: inherit; font-size: 13px; line-height: 1.4; box-shadow: none; cursor: pointer; text-decoration: none;
}
html body .sm-back-link:hover, html body .sm-text-action:hover { color: var(--sm-text); background: transparent; box-shadow: none; transform: none; }
html body .sm-back-link:focus-visible, html body .sm-text-action:focus-visible { outline: 2px solid #bdbdbd; outline-offset: 3px; }
/* Standalone icons keep a generous tap area without a button surface. */
html body .sm-text-action:is(.sm-close-action, .sm-icon-action) {
    width: 48px; height: 48px; min-height: 48px; padding: 0; flex: none;
    font-size: 18px; line-height: 1;
}
html body .sm-detail-navigation { display:flex; align-items:center; justify-content:space-between; gap:16px; width:100vw; min-height:60px; margin:0 calc((100% - 100vw)/2) 8px; padding:8px max(16px,calc((100vw - 960px)/2)); border:0; box-shadow:none; }
html body .sm-detail-navigation :is(.sm-back-link,.sm-text-action) { flex-shrink:0; }

/* Every pinned surface uses the same material, including both navigation rails. */
body :is(.navbar .nav-surface, .mobile-bottom-nav .bottom-nav-surface,
    .navbar .mobile-tools-overlay, .filters-surface.is-fixed, .sm-ts-tablehead.is-stuck,
    .cw-filters, .rankings-toolbar, .ranking-player-toolbar, [data-sm-sticky-return], #news-container .article-navigation) {
    background: var(--sm-sticky-surface);
    backdrop-filter: var(--sm-sticky-blur);
    -webkit-backdrop-filter: var(--sm-sticky-blur);
    border: 0;
    box-shadow: none;
}
body :is(.navbar .nav-surface, .bottom-nav-surface, .mobile-tools-overlay) {
    color: var(--sm-text);
}

/* One uninterrupted blur samples the complete top area, above page content. */
.sm-pinned-backdrop {
    position: fixed; inset: 0 0 auto; z-index: 995; pointer-events: none;
    background: var(--sm-sticky-surface);
    backdrop-filter: var(--sm-sticky-blur); -webkit-backdrop-filter: var(--sm-sticky-blur);
    border: 0; border-radius: 0 0 18px 18px; box-shadow: none; view-transition-name: spinmatch-navbar-glass;
}
.sm-pinned-backdrop[hidden] { display: none; }
html body [data-sm-joined] {
    z-index: 996 !important;
    background: transparent !important;
    backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
    border: 0 !important; box-shadow: none !important; border-radius: 0;
}
html body [data-sm-sticky-return][data-sm-joined] { z-index: 997 !important; }
html body [data-sm-joined][data-sm-menu-covered] { clip-path: inset(0 var(--sm-menu-occlusion, 0px) 0 0); }
::view-transition-group(spinmatch-navbar-glass) { animation: none; z-index: 99; }
::view-transition-old(spinmatch-navbar-glass) { animation: none; opacity: 0; }
::view-transition-new(spinmatch-navbar-glass) { animation: none; opacity: 1; mix-blend-mode: normal; }

/* These event rails are pinned only on desktop; mobile keeps its page layout. */
@media (min-width: 769px) {
    body.events-page :is(.timeline-container, .timeline-container:hover,
        .timeline-container.expanded, .rank-sidebar, .details-sidebar) {
        background: var(--sm-sticky-surface);
        backdrop-filter: var(--sm-sticky-blur);
        -webkit-backdrop-filter: var(--sm-sticky-blur);
        border: 0;
        box-shadow: none;
    }
}

:root[data-theme="light"] {
    --sm-nav-selection: rgba(0,0,0,.065);
    --sm-glass-focus: #626973;
    --sm-glass-text-shadow: none;
}
html[data-theme="light"] body :is(.nav-panel, .navbar .brand-logo a,
    .nav-tool-link, .add-menu-item, .nav-language-picker > span, .nav-panel-close,
    .nav-tool-link > i, .add-menu-item > i) { color: var(--sm-text); }
html[data-theme="light"] body :is(.nav-panel-heading h2, .nav-tools-settings h3, .nav-tools-logout) { color: var(--sm-text-muted); }
html[data-theme="light"] .navbar .menu-toggle { color: var(--sm-text); }
html[data-theme="light"] .nav-home-icon { stroke: var(--sm-text-muted); }
html[data-theme="light"] body .nav-language-options .nav-tool-link[aria-pressed="true"] { color: var(--sm-text); }

/* Photo overlays keep their contrast while the surrounding page follows the theme. */
html[data-theme="light"] body:not(.index-page) .hero-section:not(.hero-photo-mode)::after {
    background: var(--sm-surface);
}
html[data-theme="light"] body .hero-booking-photo-viewer .photo-container::after {
    background: var(--sm-hero-edge-gradient);
}
html[data-theme="light"] body :is(.hero-section.hero-photo-mode, .hero-booking-photo-viewer .photo-main) { background: var(--sm-surface); }
html[data-theme="light"] body :is(.hero-content, .hero-photo-viewer, .news-featured, .news-featured-card, .event-card-image) { --sm-glass-text: #fff; }
html[data-theme="light"] body :is(.community-workspace,.cw-dialog) { --cw-text: var(--sm-text); --cw-muted: var(--sm-text-muted); --cw-line: var(--sm-line); }
html[data-theme="light"] body :is(.cw-dialog, .cw-card, .cw-composer, .cw-channel-panel,
    .profile-content, .profile-page .no-content, .messages-layout, .conversations-panel,
    .chat-panel, .message-item, .details-section, .booking-detail-info, .booking-section,
    .sm-skeleton-card, .sm-skeleton-detail-panel) { background-color: var(--sm-surface-raised); }
html[data-theme="light"] body :is(.section-title, .section-header h2, .section-header h3,
    .profile-post-content, .profile-header .player-name, .player-card .player-name,
    .stat-value, .no-content :is(h2,h3), .empty-state h3, .message-name, .conversation-name,
    .chat-title, .chat-name, .details-title, .booking-detail-title, .detail-title,
    .details-section h3, .booking-section h3, .details-header h2,
    .sm-ts-tablebar, .tablebar-item, .time-main, .time-separator,
    .cw-post-content, .cw-card h3, .cw-card-title, .cw-dialog h2, .cw-dialog h3,
    .cw-sidebar h3, .cw-comment-content, .cw-author-name, .cw-community-name) { color: var(--sm-text); }
html[data-theme="light"] body :is(.stat-label, .no-content, .empty-state, .sm-skeleton-label,
    .message-preview, .conversation-preview, .message-time, .chat-subtitle, .detail-label,
    .booking-info-label, .info-label, .detail-item, .details-description, .booking-description,
    .filter-label, .filter-title, .filter-summary, .filter-toggle-btn, .spinmatch-search,
    .sidebar-card, .profile-stats-inline .stat-label, .profile-post-footer,
    .sm-ts-timecol, .time-label, .sm-ts-header, .sm-ts-legend,
    .cw-meta, .cw-description, .cw-empty, .cw-muted) { color: var(--sm-text-muted); }
html[data-theme="light"] body :is(.main-content, .profile-content, .community-main, .news-main) { color: var(--sm-text); }
html[data-theme="light"] body :is(.sm-skeleton-shape, .sm-skeleton-line) { background: rgba(var(--sm-ink-rgb),.07); }
html[data-theme="light"] body .loading-overlay { background: rgba(var(--sm-surface-rgb),.65); }
html[data-theme="light"] body .sm-ts-grid { --sm-ts-fade-color: var(--sm-surface); }
html[data-theme="light"] body .sm-ts-gradient-mask-left { background: linear-gradient(to right, rgba(var(--sm-surface-rgb),.9), rgba(var(--sm-surface-rgb),.6) 25%, rgba(var(--sm-surface-rgb),.2) 70%, transparent); }
html[data-theme="light"] body .sm-ts-gradient-mask-right { background: linear-gradient(to left, rgba(var(--sm-surface-rgb),.9), rgba(var(--sm-surface-rgb),.6) 25%, rgba(var(--sm-surface-rgb),.2) 70%, transparent); }
html[data-theme="light"] body :is(.footer, .site-footer) { background: var(--sm-surface); color: var(--sm-text-muted); }
html[data-theme="light"] body :is(.footer, .site-footer) :is(h2,h3,h4,a,p,span,dt,dd) { color: inherit; }
html[data-theme="light"] body :is(.navbar .user-welcome, .profile-page .profile-stats-inline .stat-number) { color: var(--sm-text); }
html[data-theme="light"] body :is(.footer-bottom, .spinmatch-search .search-icon,
    .spinmatch-search .search-clear, .profile-page .player-points, .profile-bio,
    .no-messages, .no-selection, .no-messages :is(h2,h4), .no-selection :is(h2,h4),
    .no-messages p, .no-selection p, .no-messages-icon i, .no-selection-icon i,
    .cw-sidebar .btn-text) { color: var(--sm-text-muted); }
html[data-theme="light"] .navbar .brand-emblem,
html[data-theme="light"] .footer .footer-emblem { filter: brightness(.45); }
.navbar .mobile-tools-panel .nav-language-options .nav-tool-link { white-space: nowrap; font-size: 11px; }

/* Content panels retain readable contrast as appearance changes. Photo labels
   and solid action buttons intentionally keep their own foreground colors. */
html[data-theme="light"] body.events-page :is(.event-card .event-title, .event-prize-amount,
    .event-participants strong, .events-cards-header h3, .events-stats h3, .stat-number,
    .rank-sidebar h3, .complete-rank-title, .complete-rank-prize, .rank-section-title,
    .winner-name, .rank-number, .trend-label) { color: var(--sm-text); text-shadow: none; }
html[data-theme="light"] body.events-page :is(.event-subtitle, .event-meta-item,
    .event-prize-label, .event-participants, .complete-rank-meta, .complete-rank-date,
    .events-cards-header p, .stat-label, .stat-trend) { color: var(--sm-text-muted); }
html[data-theme="light"] body.events-page .event-status.ongoing,
html[data-theme="light"] body.events-page .platform.first-place .platform-number { color: #fff; }
html[data-theme="light"] body.events-page .stat-card { background: var(--sm-surface-raised); border-color: var(--sm-line); }
html[data-theme="light"] body :is(.news-list h2, .news-page .news-loading-message,
    .profile-content h3, .activity-content h4, .record-header h4, .post-item h4,
    .cw-post-body, .cw-comment-meta strong, .cw-comment p, .cw-report > p,
    .cw-form label, .cw-media-field legend) { color: var(--sm-text); }
html[data-theme="light"] body :is(.no-content-icon, .end-message, .news-date, .news-author,
    .news-footer, .news-read-more, .article-loading, .activity-content p, .activity-time,
    .record-details p, .post-item p, .post-stats, .profile-post-footer a,
    .cw-post-meta a, .cw-shared-link, .cw-booking-card p, .cw-booking-cta,
    .cw-space-description, .cw-share-options summary, .cw-upload-item p,
    .cw-category, .cw-eyebrow) { color: var(--sm-text-muted); }
html[data-theme="light"] body .community-workspace .cw-post-button { color: var(--sm-text); }
html[data-theme="light"] body :is(.cw-nav, .cw-detail-nav, .cw-filter-options) .btn[aria-pressed="true"] { color: var(--sm-text); }
html[data-theme="light"] body :is(.cw-space-card,.cw-post,.cw-channel,.cw-member,.cw-panel:not(.cw-welcome)) { background-color: var(--sm-surface-raised); }
html[data-theme="light"] body .cw-form-error { color: #ad263e; }
html[data-theme="light"] body .cw-form select option { background: var(--sm-surface-raised); color: var(--sm-text); }
html[data-theme="light"] body #news-container :is(.article-title, #article-kind, .article-content,
    .article-original, .related-articles h2, .related-article-title, .article-error h2) { color: var(--sm-text); }
html[data-theme="light"] body #news-container :is(.article-back, .article-section-label,
    .article-kicker, .article-meta, .article-translation, .article-attribution,
    .related-article-meta, .article-error, .article-source-link) { color: var(--sm-text-muted); }
html[data-theme="light"] body #news-container .article-original { background: rgba(var(--sm-ink-rgb),.04); border-color: var(--sm-line); }
html[data-theme="light"] body :is(.friends-container,.friends-section) :is(h2,h3,h4,.friend-name,.friend-username) { color: var(--sm-text); }
html[data-theme="light"] body :is(.friends-container,.friends-section) :is(p,small,.friend-status,.friend-info) { color: var(--sm-text-muted); }

html[data-theme="light"] body .details-event-wrapper .details-main-content .event-header .event-basic-info .event-title,
html[data-theme="light"] body .details-event-wrapper .prize-amount { text-shadow: none; }
html[data-theme="light"] body :is(.details-event-wrapper, .profile-page) :is(.detail-value,.detail-label,.detail-card h3,.event-description,.rules-content,.no-content :is(h2,h3),.no-content p) { color: var(--sm-text); }
html[data-theme="light"] body :is(.friends-header h3,.friend-card-name,.friend-name,.request-name,
    .sender-name,.remove-friend-name,.warning-message h4,.no-friends h4,.no-requests h4) { color: var(--sm-text); }
html[data-theme="light"] body :is(.friend-card-info,.friend-skill,.friend-location,.request-message,
    .request-time,.friend-date,.request-date,.no-friends,.no-requests,.no-friends p,.no-requests p,
    .no-friends .no-content-icon,.no-requests .no-content-icon,.sender-bio,.request-message p,
    .request-time small,.warning-message p) { color: var(--sm-text-muted); }
html[data-theme="light"] body :is(#friendsListModal,#handleRequestModal,#removeFriendModal).modal :is(.modal-content,.modal-body) { background: var(--sm-surface-raised) !important; color: var(--sm-text) !important; }
html[data-theme="light"] body :is(#friendsListModal,#handleRequestModal,#removeFriendModal).modal :is(.modal-title,.modal-close,.user-name,.form-label) { color: var(--sm-text) !important; }
html[data-theme="light"] body.profile-page .profile-content .no-content :is(h2,h3,h4) { color: var(--sm-text); }
html[data-theme="light"] body.profile-page .profile-content .no-content p { color: var(--sm-text-muted); }
html[data-theme="light"] body :is(.message-title,.navbar .user-welcome,.navbar .username) { color: var(--sm-text); }
html[data-theme="light"] body.news-page #news-container :is(.news-summary,.news-meta,.news-meta span,.news-author) { color: var(--sm-text-muted); }
html[data-theme="light"] body.profile-page .profile-header .player-card.horizontal .player-points { color: var(--sm-text-muted); }
html[data-theme="light"] body .hero-booking-photo-viewer .photo-expand-btn { color: var(--sm-text); }
html[data-theme="light"] body .hero-booking-photo-viewer .photo-expand-btn:focus-visible { outline-color: var(--sm-text-muted); }

/* Secondary dialogs inherit the same calm surface and readable form palette. */
html[data-theme="light"] body :is(.modal-content, .location-modal .location-modal-content) {
    background: var(--sm-modal-surface) !important; color: var(--sm-text); border-color: var(--sm-line);
}
html[data-theme="light"] body :is(.modal-content, .location-modal) :is(.modal-header,.modal-body,.modal-footer,.location-modal-header,.location-results,.location-search-container,.location-search-section) {
    background: transparent; border-color: var(--sm-line);
}
html[data-theme="light"] body :is(.modal-content, .location-modal) :is(h2,h3,h4,label,.form-label,.modal-close,.location-title,.location-result-name,.location-search-icon) {
    color: var(--sm-text); -webkit-text-fill-color: currentColor;
}
html[data-theme="light"] body :is(.modal-content, .location-modal) :is(.form-hint,.location-subtitle,.location-result-address,.location-help,.input-hint) { color: var(--sm-text-muted); }

html[data-theme="light"] body .gender-card { background: var(--sm-field-fill); border-color: transparent; box-shadow: none; }
html[data-theme="light"] body .gender-card :is(.gender-text,.gender-icon i) { color: var(--sm-text); }
html[data-theme="light"] body .gender-card .gender-icon { background: transparent; }
html[data-theme="light"] body .gender-card .selection-indicator { border-color: var(--sm-field-line); }
html[data-theme="light"] body .gender-card .selection-indicator::after { background: var(--sm-text); }
html[data-theme="light"] body input:checked + .gender-card { background: var(--sm-segment-fill); border-color: var(--sm-field-line); }
html[data-theme="light"] body .modal-content .form-section { border-color: var(--sm-line); }
html[data-theme="light"] body .location-modal :is(.location-map-container,.location-map,.location-map-loading) { background-color: var(--sm-field-fill); }
html[data-theme="light"] body .location-modal :is(.location-map-loading p,.location-map:empty::before,.location-close,.location-search-btn,.location-gps-btn) { color: var(--sm-text-muted); }
html[data-theme="light"] body .location-modal .location-map-control-btn { color: var(--sm-text); background: var(--sm-sticky-surface); }

.sm-profile-avatar-link { color: inherit; text-decoration: none; }
.sm-profile-avatar-link:focus-visible img, img[data-profile-user]:focus-visible { outline: 2px solid var(--sm-text); outline-offset: 3px; }

/* Shared segmented rails, including legacy sort strips and compact controls. */
:root { --sm-segment-track: rgba(var(--sm-ink-rgb,255,255,255),.045); --sm-segment-motion: 320ms cubic-bezier(.22,.72,.18,1); }
html :is(body, div:where(#chatModal)) :is([data-sm-sliding],.filters-bar .sort-tabs) {
    background: var(--sm-segment-track); border: 0; border-radius: 11px;
    padding: 4px; gap: 4px; box-shadow: none;
}
html body .filters-bar .sort-tab { border-radius: 8px; }
html body .filters-bar .sort-slider {
    background: var(--sm-segment-fill); box-shadow: var(--sm-segment-shadow); border-radius: 8px;
    transition: transform var(--sm-segment-motion), width var(--sm-segment-motion);
}
html body .filters-bar .filter-toggle .filter-arrow { display: inline-block; font-size: 9px; transition: transform var(--sm-segment-motion); }
html body .filter-toggle[aria-expanded="true"] .filter-arrow { transform: rotate(180deg); }
.sm-pinned-backdrop { transition: none; contain: layout style; }
html body :is([data-sm-sticky-return],.sm-ts-tablehead,.filters-surface,.training-controls) { overflow-anchor: none; }
@media (prefers-reduced-motion: reduce) {
    html body :is(.filters-bar .sort-slider,.filters-bar .filter-arrow) { transition: none; }
}

html :is(body, div:where(#chatModal)) .filters-bar [data-sm-sliding] > .sm-segment-indicator { top:0;left:0;margin:0; }
html :is(body, div:where(#chatModal)) :is(.dev-tabs,.chat-emote-tabs)[data-sm-sliding] > [data-sm-segment-item] { border:0;border-radius:8px; }
html :is(body, div:where(#chatModal)) .dev-tabs[data-sm-sliding] > [data-sm-segment-item]::after { content:none; }

/* The filter row and its menu use the same physical glass in either position. */
html body .sm-filter-surface { background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;isolation:isolate; }
html body .sm-filter-surface::before { content:""; position:absolute; inset:0 0 auto; height:calc(100% + var(--sm-filter-menu-height,0px)); z-index:-1; pointer-events:none; background:var(--sm-sticky-surface); backdrop-filter:var(--sm-sticky-blur); -webkit-backdrop-filter:var(--sm-sticky-blur); opacity:0; }
html body .sm-filter-surface:is(.sm-filter-open,.is-fixed)::before { opacity:1; }
html body .sm-filter-surface[data-sm-joined]::before { display:none; }
html body .sm-filter-surface :is(.filters-panel-reveal,.training-filter-panel-reveal) { background:transparent;border:0;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none; }
html body .filters-panel[data-sm-joined] { transition:grid-template-rows 280ms cubic-bezier(.2,.7,.2,1); }
@media(prefers-reduced-motion:reduce) { html body .filters-panel[data-sm-joined] { transition:none; } }

.sm-wheel-panel { position:fixed;z-index:12000;height:220px;border:1px solid var(--sm-line);border-radius:18px;overflow:hidden;background:var(--sm-modal-surface,var(--sm-surface));box-shadow:0 16px 56px rgba(0,0,0,.2);outline:none;animation:sm-wheel-reveal .18s ease; }
.sm-wheel-panel::after { content:"";position:absolute;inset:88px 8px;border-radius:9px;background:rgba(var(--sm-ink-rgb),.055);border-block:1px solid var(--sm-line);pointer-events:none; }
.sm-wheel-track { height:220px;box-sizing:border-box;padding-block:88px;overflow-y:auto;overscroll-behavior:contain;scroll-snap-type:y mandatory;scrollbar-width:none;mask-image:linear-gradient(transparent,black 36%,black 64%,transparent);-webkit-mask-image:linear-gradient(transparent,black 36%,black 64%,transparent); }
.sm-wheel-track::-webkit-scrollbar { display:none; }
.sm-wheel-option { display:grid;place-items:center;height:44px;scroll-snap-align:center;color:var(--sm-text-muted);font-size:15px;white-space:nowrap;cursor:pointer; }
.sm-wheel-option[aria-selected="true"] { color:var(--sm-text);font-weight:600; }
@keyframes sm-wheel-reveal { from { opacity:0;transform:translateY(5px); } to { opacity:1;transform:none; } }
@media(prefers-reduced-motion:reduce) { .sm-wheel-panel { animation:none; } }

/* Labeled segmented controls use typography alone, including dynamic tabs. */
html :is(body, div:where(#chatModal)) [data-sm-text-segment] :is(i,svg,img) { display:none!important; }
html :is(body, div:where(#chatModal)) [data-sm-text-segment] .btn-icon { display:contents; }
html :is(body, div:where(#chatModal)) [data-sm-text-segment] .count:not(.hidden) { position:static;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;font-size:10px;transform:none; }
html body .sm-destructive { color:#fff;background:#d74759;border:0;box-shadow:none; }
html body .sm-destructive:hover { background:#e25567; }
/* Keep text fields physically steady, including Safari's focus zoom on phones. */
html body :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=time],input[type=datetime-local],textarea) { scale:1!important; transform:none!important; }
@media(max-width:768px) {
 html body :is(input:not([type]),input[type=text],input[type=search],input[type=email],input[type=password],input[type=tel],input[type=url],input[type=number],input[type=date],input[type=time],input[type=datetime-local],textarea,select) { font-size:16px!important; }
}

/* Full-width tracks retain the same visible edge inset as the search strips.
   The search strips already receive their outer 4px from the filter surface. */
html :is(body, div:where(#chatModal)) :is([data-sm-sliding],.sm-record-switch[data-sm-sliding]) { box-sizing:border-box; min-width:0; max-width:100%; padding-inline:8px; }
html :is(body, div:where(#chatModal)) .filters-bar [data-sm-sliding] { padding-inline:4px; }
html :is(body, div:where(#chatModal)) [data-sm-sliding] > .sm-segment-indicator { inset:0 auto auto 0; margin:0; }
html :is(body, div:where(#chatModal)) .sm-record-switch[data-sm-sliding] > button { border-radius:8px; }

.sm-booking-row-time-gap { display:inline-block; width:12px; }

/* Community rows are shared by discovery and the personal profile. */
.profile-community-card { display:flex; gap:14px; align-items:center; min-width:0; padding:16px clamp(16px,2.4vw,24px); background:var(--sm-surface,rgba(255,255,255,.035)); color:var(--sm-text); text-decoration:none; transition:background-color 180ms ease; }
.profile-community-card:hover { background:var(--sm-surface-hover,rgba(255,255,255,.07)); }
.profile-community-card:focus-visible { outline:2px solid var(--sm-text); outline-offset:-3px; }
.profile-community-card>div { min-width:0; flex:1; }
.profile-community-card h3 { margin:0 0 4px; font-size:.95rem; font-weight:550; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.profile-community-card p { margin:0; font-size:.78rem; color:var(--sm-text-muted); line-height:1.6; overflow-wrap:anywhere; }
.profile-community-symbol { flex:none; width:44px; height:44px; display:grid; place-items:center; border-radius:14px; background:rgba(69,191,162,.1); }
.profile-community-description { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.profile-community-card .profile-community-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px 12px; margin-top:6px; font-size:.7rem; }
.profile-community-pending { color:var(--sm-text); padding:1px 7px; background:var(--sm-field-fill); border-radius:6px; }
.profile-community-arrow { flex:none; font-size:10px; color:var(--sm-text-muted); opacity:.6; }
.profile-community-card :is(img,span).profile-community-cover { flex:none; width:116px; height:88px; border-radius:12px; object-fit:cover; }
@media(max-width:600px) { .profile-community-card { gap:12px; } .profile-community-card :is(img,span).profile-community-cover { width:96px; } }
.profile-community-activity { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:5px 0 7px; color:var(--sm-text-muted); font-size:13px; line-height:1.6; }
.profile-community-copy { min-width:0; }

/* Concentric surfaces use one outer radius, inset and nested control height.
   Hero height changes do not stretch the joining edge. */
:root {
    --sm-sheet-radius: 36px;
    --sm-shape-card-radius: 24px;
    --sm-shape-menu-radius: 32px;
    --sm-shape-inset: 12px;
    --sm-shape-card-inset: var(--sm-shape-inset);
    --sm-return-row-height: 60px;
    --sm-shape-control-height: calc(2 * (var(--sm-sheet-radius) - var(--sm-shape-inset)));
    --sm-hero-edge-height: var(--sm-sheet-radius);
    --sm-hero-edge-gradient: linear-gradient(to bottom, rgba(var(--sm-surface-rgb,26,26,26),0), rgba(var(--sm-surface-rgb,26,26,26),.18) 22%, rgba(var(--sm-surface-rgb,26,26,26),.68) 55%, var(--sm-surface,#1a1a1a));
}

/* Shared photo loading: reserve the existing photo box and ease into decoded pixels. */
img.sm-photo { background-image:var(--sm-photo-preview);background-size:cover;background-position:center;filter:blur(14px);opacity:1;transition:none;clip-path:inset(0);clip-path:border-box; }
img.sm-photo.sm-photo-ready { background-image:none;filter:blur(0);opacity:1;transition:filter 620ms cubic-bezier(.22,.61,.36,1),opacity 620ms cubic-bezier(.22,.61,.36,1); }
img.sm-photo.sm-photo-failed { filter:blur(14px);opacity:1; }
@media(prefers-reduced-motion:reduce) { img.sm-photo, img.sm-photo.sm-photo-ready { transition:none; } }

/* Shared registration answer controls for preview, application and join dialog. */
.booking-registration-field { border:0;padding:0;margin:0 0 18px;min-width:0; }
.booking-registration-field > legend { margin-bottom:10px;font-size:14px;font-weight:600; }
.booking-registration-options { display:flex;flex-wrap:wrap;gap:8px; }
.booking-registration-option { display:flex;align-items:center;gap:8px;border:1px solid var(--sm-line);border-radius:12px;padding:10px 14px;font-size:14px;cursor:pointer; }
.booking-registration-option:has(input:checked) { border-color:var(--sm-text-muted);background:rgba(var(--sm-ink-rgb),.06); }
.booking-registration-option input { accent-color:#DC143C; }

/* Social reactions keep their hit area while feedback stays on the icon. */
html body :is([data-profile-like],[data-profile-comments-toggle],[data-cw-action="like"],[data-cw-action="like-comment"],[data-cw-action="comments"],[data-cw-action="reply-comment"]) {
    background:transparent!important; background-image:none!important; border-color:transparent!important;
    box-shadow:none!important; backdrop-filter:none; -webkit-backdrop-filter:none;
    -webkit-tap-highlight-color:transparent;
}
html body :is([data-profile-like],[data-cw-action="like"],[data-cw-action="like-comment"])[aria-pressed="true"] { color:var(--sm-danger,#c42638); }
html body :is([data-profile-like],[data-profile-comments-toggle],[data-cw-action="like"],[data-cw-action="like-comment"],[data-cw-action="comments"],[data-cw-action="reply-comment"])::before,
html body :is([data-profile-like],[data-profile-comments-toggle],[data-cw-action="like"],[data-cw-action="like-comment"],[data-cw-action="comments"],[data-cw-action="reply-comment"])::after { content:none; }

/* Concentric geometry shared with the corresponding loading frames. */
html :is(body,div:where(#chatModal)) :is([data-sm-sliding],.filters-bar .sort-tabs,.sm-segmented,.cw-detail-nav,.profile-page .tabs-nav,.auth-tabs,.friends-tabs),
html :is(body,div:where(#chatModal)) :is(.sm-segment-indicator,.sort-slider,.sm-segment,.sort-tab,.auth-tab,.cw-detail-nav .btn,.profile-page .tab-btn) { border-radius:999px!important; }
html body [data-sm-sticky-return],
html body .sm-detail-navigation,
html body .sm-filter-surface::before { border-radius:0!important; }
html body .sm-skeleton-card,
html body .profile-community-card { border-radius:var(--sm-shape-card-radius)!important; }
html :is(body,div:where(#chatModal)) :is(.btn:not(.btn-circle),.auth-submit,.auth-social-btn,.auth-verify-btn,.location-btn,.mobile-back-btn,.sm-back-link,.sm-text-action) { border-radius:999px!important; }
html body .btn.btn-secondary:not(.btn-circle):not(:disabled),
html body .btn.btn-outline:not(.btn-circle):not(:disabled),
html body .auth-modal .auth-social-btn:not(.btn-circle):not(:disabled),
html body .auth-modal .auth-verify-btn:not(.btn-circle):not(:disabled),
html body .location-modal .location-btn:not(.btn-circle):not(:disabled),
html body.messages-page .mobile-back-btn:not(.btn-circle):not(:disabled) { --sm-button-face:rgba(255,255,255,.16); --sm-button-hover-face:rgba(255,255,255,.23); --sm-button-reflection:.055; box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 8px rgba(0,0,0,.06); -webkit-backdrop-filter:blur(18px) saturate(110%); backdrop-filter:blur(18px) saturate(110%); }
html[data-theme=light] body .btn.btn-secondary:not(.btn-circle):not(:disabled),
html[data-theme=light] body .btn.btn-outline:not(.btn-circle):not(:disabled),
html[data-theme=light] body .auth-modal .auth-social-btn:not(.btn-circle):not(:disabled),
html[data-theme=light] body .auth-modal .auth-verify-btn:not(.btn-circle):not(:disabled),
html[data-theme=light] body .location-modal .location-btn-secondary:not(.btn-circle):not(:disabled),
html[data-theme=light] body.messages-page .mobile-back-btn:not(.btn-circle):not(:disabled) { --sm-button-face:rgba(100,106,118,.12); --sm-button-hover-face:rgba(100,106,118,.18); }
html body .btn.btn-primary:not(.btn-circle):not(:disabled),
html body .btn.btn-danger:not(.btn-circle):not(:disabled),
html body .auth-modal .auth-submit:not(.btn-circle):not(:disabled) { --sm-button-face:rgba(var(--sm-control-red),.90); --sm-button-hover-face:rgba(var(--sm-control-red),.96); --sm-button-reflection:.045; box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 2px 8px rgba(0,0,0,.06); -webkit-backdrop-filter:blur(18px) saturate(110%); backdrop-filter:blur(18px) saturate(110%); }
html body .location-modal .location-btn-primary:not(.btn-circle):not(:disabled) { --sm-button-face:rgba(var(--sm-control-red),.90); --sm-button-hover-face:rgba(var(--sm-control-red),.96); --sm-button-reflection:.045; }
html body .btn.btn-primary:not(.btn-circle):hover:not(:disabled),
html body .btn.btn-secondary:not(.btn-circle):hover:not(:disabled),
html body .btn.btn-outline:not(.btn-circle):hover:not(:disabled),
html body .btn.btn-danger:not(.btn-circle):hover:not(:disabled),
html body .auth-modal .auth-submit:not(.btn-circle):hover:not(:disabled),
html body .auth-modal .auth-social-btn:not(.btn-circle):hover:not(:disabled),
html body .auth-modal .auth-verify-btn:not(.btn-circle):hover:not(:disabled),
html body .location-modal .location-btn:not(.btn-circle):hover:not(:disabled),
html body.messages-page .mobile-back-btn:not(.btn-circle):hover:not(:disabled) { --sm-button-face:var(--sm-button-hover-face); }
html body .sm-skeleton--booking .sm-skeleton-booking-card { --booking-card-inset:var(--sm-shape-card-inset); }
html body .sm-skeleton-booking-title { padding-top:var(--booking-card-inset); }
html body .sm-skeleton-booking-organizer { padding-bottom:var(--booking-card-inset); }
html body .profile-community-card { padding:var(--sm-shape-card-inset); }
@media(max-width:768px) {
    html body .sm-skeleton--booking .sm-skeleton-booking-card { --booking-card-inset:var(--sm-shape-card-inset); }
}

/* A return row belongs to the page sheet until it meets the fixed navigation. */
html body [data-sm-sticky-return]:not([data-sm-joined]):not([data-sm-docked]) {
    background:transparent!important;
    backdrop-filter:none!important; -webkit-backdrop-filter:none!important;
}
html body [data-sm-sticky-return]:not([data-sm-joined]):not([data-sm-docked])::before { background:none!important; backdrop-filter:none!important; -webkit-backdrop-filter:none!important; }
html body .sm-skeleton-card:not(.sm-skeleton-booking-card) { padding-inline:var(--sm-shape-card-inset); }
/* Apply one edge height to the real hero and its return controls. */
body.booking-page:has(.details-booking-content:not([style*="display: none"])),
body.booking-page:has(.details-parts-postbooking-content:not([style*="display: none"])),
body.events-page.event-detail-view:not(.event-ranking-view):not(.event-bracket-view),
body.community-page:has(.is-post-detail), body.community-page.is-community-space,
html[data-profile-return] body.profile-page:not(.profile-record-open) { --sm-hero-edge-height:var(--sm-return-row-height); }
html body.booking-page :is(.details-booking-content,.details-parts-postbooking-content):not([style*="display: none"]) {
    position:relative; margin-top:calc(-1 * var(--sm-hero-edge-height)); background:transparent;
}
html body.booking-page .details-booking-wrapper { margin-top:0; }
html body.booking-page .booking-publish-toolbar,
html body.booking-page .details-header[data-sm-sticky-return],
html body .event-header-actions { min-height:var(--sm-return-row-height); height:var(--sm-return-row-height); padding-block:8px; }
html body.booking-page:has(.details-parts-postbooking-content:not([style*="display: none"])) .booking-map-open-handle { visibility:hidden; }
html body.events-page.event-detail-view:not(.event-ranking-view):not(.event-bracket-view) .details-content { position:relative; margin-top:calc(-1 * var(--sm-hero-edge-height)); }
html body.community-page:not(.is-community-space):has(.is-post-detail) .community-main { position:relative; margin-top:calc(-1 * var(--sm-hero-edge-height))!important; }
html body.community-page :not([data-sm-embedded-sheet]) > .cw-space-navigation.sm-detail-navigation:not([data-sm-docked]) { margin-top:calc(-1 * var(--sm-hero-edge-height))!important; }
/* A fresh page starts a pixel below the docking line; only scrolling joins it. */
html body.profile-page.profile-record-open #main-content-container,
html body:is(.event-ranking-view,.event-bracket-view) #main-content-container { margin-top:0!important; }
html body.profile-page .profile-record-page { padding-top:calc(var(--sm-navbar-bottom,var(--nav-bar-height,60px)) + 1px); }
html body:is(.event-ranking-view,.event-bracket-view) #main-content-container { padding-top:calc(var(--sm-navbar-bottom,var(--nav-bar-height,60px)) + 1px); }

/* Docked rows use the same viewport coordinate system as the main navigation. */
html body [data-sm-docked] {
    position:fixed!important; top:var(--sm-return-top)!important; left:var(--sm-return-left)!important;
    width:var(--sm-return-width)!important; margin:0!important; transform:translateZ(0);
}
/* A pinned row retains its own glass until the shared navbar plane joins it. */
html body [data-sm-docked]:not([data-sm-joined]) {
    background:var(--sm-sticky-surface)!important;
    backdrop-filter:var(--sm-sticky-blur)!important; -webkit-backdrop-filter:var(--sm-sticky-blur)!important;
}
.sm-return-anchor { flex:none; overflow-anchor:none; }

/* A compact horizontal grip sits between the curved edge and row actions. */
html body button.sm-return-photo-control {
    position:absolute; inset:0 auto auto 50%; transform:translateX(-50%); z-index:56;
    display:block; width:88px; height:18px; min-height:0; margin:0; padding:0;
    background:transparent; border:0; cursor:grab; touch-action:none;
}
html body .sm-return-photo-control[hidden],html body .sm-return-photo-control > * { display:none!important; }
html body .sm-return-photo-control:focus-visible { outline:2px solid currentColor; outline-offset:-3px; border-radius:999px; }

body.community-page.is-composing-post,
body.profile-page.is-profile-editing,
body.news-page:has(#rankings-view:not([hidden]) .ranking-player-detail) { --sm-hero-edge-height:var(--sm-return-row-height); }
html body.community-page.community-page.is-composing-post .community-main,
html body.profile-page.profile-page.is-profile-editing #main-content-container {
    position:relative; margin-top:calc(-1 * var(--sm-hero-edge-height))!important;
}
html body.news-page:has(.article-detail) .news-main { margin-top:0!important; padding-top:calc(var(--sm-navbar-bottom,0px) + 1px); }
/* Native snapshots keep joined controls above their separately captured glass. */
[data-sm-pinned-snapshot="0"] { view-transition-name:spinmatch-pinned-row-0; }
[data-sm-pinned-snapshot="1"] { view-transition-name:spinmatch-pinned-row-1; }
[data-sm-pinned-snapshot="2"] { view-transition-name:spinmatch-pinned-row-2; }
[data-sm-pinned-snapshot="3"] { view-transition-name:spinmatch-pinned-row-3; }
[data-sm-pinned-snapshot="4"] { view-transition-name:spinmatch-pinned-row-4; }
[data-sm-pinned-snapshot="5"] { view-transition-name:spinmatch-pinned-row-5; }
[data-sm-pinned-snapshot="6"] { view-transition-name:spinmatch-pinned-row-6; }
[data-sm-pinned-snapshot="7"] { view-transition-name:spinmatch-pinned-row-7; }
::view-transition-group(spinmatch-pinned-row-0),::view-transition-group(spinmatch-pinned-row-1),
::view-transition-group(spinmatch-pinned-row-2),::view-transition-group(spinmatch-pinned-row-3),
::view-transition-group(spinmatch-pinned-row-4),::view-transition-group(spinmatch-pinned-row-5),
::view-transition-group(spinmatch-pinned-row-6),::view-transition-group(spinmatch-pinned-row-7) {
    z-index:100; animation-duration:340ms; animation-timing-function:cubic-bezier(.22,.8,.2,1);
}


/* Publishing fields and optional controls are shared by booking and events. */
html body .sm-publish-form .form-input {
    width:100%; min-width:0; min-height:44px; padding:12px 0; font-size:16px;
    color:var(--sm-text); background:transparent!important; border:0!important;
    border-bottom:1px solid var(--sm-line)!important; border-radius:0!important;
    box-shadow:none!important; transition:border-color 240ms ease,color 240ms ease;
}
html body .sm-publish-form .form-input:is(:hover,:focus) { background:transparent!important; box-shadow:none!important; }
html body .sm-publish-form :is(input.form-input,select.form-input) { height:44px;line-height:1.2; }
html body .sm-publish-form .form-input:focus { border-bottom-color:var(--sm-text-muted)!important; outline:none; }
html body .sm-publish-form .form-input::placeholder { color:var(--sm-text-muted); }
html body .sm-publish-form .booking-inline-field { display:flex;align-items:center;gap:8px;min-width:0;min-height:48px;border:0;border-bottom:1px solid var(--sm-line);background:transparent; }
html body .sm-publish-form .booking-inline-field:focus-within { border-bottom-color:var(--sm-text-muted); }
html body .sm-publish-form .booking-inline-field .form-input { flex:1 1 0;width:0;border:0!important;min-width:0; }
html body .sm-publish-form .booking-field-name { flex:none;font-size:13px;color:var(--sm-text-muted);white-space:nowrap; }
html body .sm-publish-form .booking-field-name::after { content:'\00b7';margin-inline-start:8px; }
html body .sm-publish-form .booking-currency { position:static;inset:auto;transform:none;flex:0 0 74px;width:74px;max-width:74px;min-height:36px;height:36px;padding:0 12px 0 6px;border:0;border-radius:10px;color:var(--sm-text);background:rgba(var(--sm-ink-rgb,255,255,255),.06);font:500 12px var(--spinmatch-font-family,sans-serif);cursor:pointer; }
html body .sm-publish-form .booking-inline-field.booking-wheel-field { display:block;border:0;background:none;padding:0; }
html body .sm-publish-form .booking-wheel-field .booking-field-name { display:block;text-align:center;padding:0 0 6px; }
html body .sm-publish-form .booking-wheel-field .booking-field-name::after { content:none; }
html body .sm-publish-form .booking-location-button { display:flex;width:100%;min-height:48px;align-items:center;gap:12px;padding:10px 0;border:0;border-radius:0;background:transparent;color:var(--sm-text-muted);font:inherit;text-align:left;cursor:pointer; }
html body .sm-publish-form .booking-location-button > span { flex:1;min-width:0;overflow-wrap:anywhere; }
html body .sm-publish-form .booking-location-icon { flex:0 0 22px;width:22px;height:22px; }
html body .sm-publish-form .booking-location-arrow { flex:0 0 18px;width:18px;height:18px; }
html body .sm-publish-form .booking-location-button:focus-visible { outline:2px solid var(--sm-text);outline-offset:3px; }
.sm-publish-form .switch { position:relative;display:block;flex:0 0 48px;width:48px;height:44px;margin:0; }
.sm-publish-form .switch input { position:absolute;display:block;inset:0;width:100%;height:100%;margin:0;opacity:0;z-index:1;cursor:pointer; }
.sm-publish-form .slider { position:absolute;inset:8px 0;background:rgba(var(--sm-accent-rgb,216,222,232),.12);border:1px solid rgba(var(--sm-accent-rgb,216,222,232),.2);border-radius:28px;box-sizing:border-box;transition:background 240ms ease,border-color 240ms ease; }
.sm-publish-form .slider::before { position:absolute;content:'';height:20px;width:20px;left:3px;top:3px;background:var(--sm-text-muted);border-radius:50%;transition:transform 360ms cubic-bezier(.2,1.45,.45,1),background 240ms ease; }
.sm-publish-form input:checked + .slider { background:color-mix(in srgb,#b9e65f 48%,var(--sm-sticky-surface));border-color:color-mix(in srgb,#b9e65f 60%,transparent); }
.sm-publish-form input:checked + .slider::before { background:var(--sm-surface);transform:translateX(20px); }
.sm-publish-form input:focus-visible + .slider { outline:2px solid var(--sm-accent);outline-offset:3px; }
.sm-publish-form .booking-form-disclosure-toggle { display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:18px 0;border:0;background:transparent;color:var(--sm-text);font:600 14px var(--spinmatch-font-family,sans-serif);text-align:left;cursor:pointer; }
.sm-publish-form .booking-form-disclosure-toggle > i { font-size:10px;color:var(--sm-text-muted);transition:transform var(--sm-segment-motion); }
.sm-publish-form .booking-form-disclosure-toggle[aria-expanded=true] > i { transform:rotate(180deg); }
.sm-publish-form .booking-registration-editor { padding:12px;border-radius:14px;background:var(--sm-segment-track); }
.sm-publish-form .booking-registration-questionbar { display:flex;align-items:center;gap:6px; }
.sm-publish-form .booking-registration-title-row { display:flex;align-items:center;gap:10px;padding-top:12px; }
.sm-publish-form .booking-registration-title-row > .form-input { flex:1;min-width:0;width:0; }
.sm-publish-form .booking-registration-required { display:flex;align-items:center;justify-content:flex-end;gap:6px;font-size:12px;flex:none; }
.sm-publish-form .booking-registration-required .switch { transform:scale(.85);transform-origin:right center;margin-left:-5px; }
/* Inline add controls do not need to resample a backdrop while their row grows. */
html body .sm-publish-form :is(.booking-registration-add,.ew-add) { -webkit-backdrop-filter:none!important;backdrop-filter:none!important; }
.sm-publish-form .booking-form-guide { position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;margin:0;padding:0;border:0;background:transparent;overflow-x:clip;overflow-y:visible;pointer-events:none;color:#33462d; }
.sm-publish-form .booking-form-guide[hidden] { display:none; }
.sm-publish-form .booking-form-guide::backdrop { background:transparent;pointer-events:none; }
.sm-publish-form .booking-form-guide .xp-peek-layer { z-index:1; }
.sm-publish-form .booking-form-guide[data-guide-phase=present] .booking-guide-speech { opacity:1;transform:none; }
@media(max-width:640px) {
    html body .sm-publish-form .booking-inline-field { gap:3px;flex-wrap:nowrap; }
    html body .sm-publish-form .booking-field-name { font-size:11px; }
    html body .sm-publish-form .booking-field-name::after { margin-inline-start:3px; }
    html body .sm-publish-form .booking-currency { flex-basis:82px;width:82px;max-width:82px;padding-inline:10px; }
}
@media(prefers-reduced-motion:reduce) { .sm-publish-form :is(.form-input,.slider,.slider::before,.booking-form-disclosure-toggle > i) { transition:none!important; } }
