@import url('/_static/repair-20261201-r169/styles/gender-control.css');
.booking-roster-launch { width:100%;margin-bottom:10px; }
.booking-registration-roster { width:min(720px,calc(100vw - 24px));max-height:min(86dvh,900px);margin:auto;padding:0;border:1px solid var(--sm-line);border-radius:22px;color:var(--sm-text);background:var(--sm-surface);overflow:hidden; }
.booking-registration-roster::backdrop { background:rgba(0,0,0,.36);backdrop-filter:blur(8px); }
.booking-roster-panel { padding:20px;max-height:min(86dvh,900px);overflow:auto;overscroll-behavior:contain; }
.booking-roster-header,.booking-roster-controls { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px; }
.booking-roster-header h2 { font-size:18px;margin:0; }
.booking-roster-controls .form-input { width:auto;min-width:0;max-width:50%;font-size:13px; }
.booking-roster-controls .btn { flex-shrink:0;min-height:42px; }
.booking-roster-fields { padding:12px 0;border-block:1px solid var(--sm-line);font-size:13px; }
.booking-roster-fields summary { cursor:pointer; }
.booking-roster-fields summary > span { color:var(--sm-text-muted);margin-left:6px; }
.booking-roster-field-options { display:flex;flex-wrap:wrap;gap:8px 16px;padding-top:12px; }
.booking-roster-field-options label { display:flex;gap:6px;align-items:center;padding:4px 0; }
.booking-roster-field-options input { accent-color:#DC143C; }
.booking-roster-preview { overflow:auto;margin:14px 0;border-radius:10px;border:1px solid var(--sm-line); }
.booking-roster-preview table { border-collapse:collapse;font-size:12px;white-space:nowrap;min-width:100%; }
.booking-roster-preview :is(th,td) { text-align:left;padding:10px 12px;border-bottom:1px solid var(--sm-line);max-width:260px;overflow:hidden;text-overflow:ellipsis; }
.booking-roster-preview th { color:var(--sm-text-muted);font-weight:500; }
.booking-roster-person { border-bottom:1px solid var(--sm-line); }
.booking-roster-person > summary { display:flex;align-items:center;gap:10px;list-style:none;padding:12px 0;font-size:14px;cursor:pointer; }
.booking-roster-person > summary::-webkit-details-marker { display:none; }
.booking-roster-person > summary > small { margin-left:auto;color:var(--sm-text-muted);font-size:11px; }
.booking-roster-avatar { display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:rgba(var(--sm-ink-rgb),.07);font-size:12px;flex-shrink:0; }
.booking-roster-person dl { display:grid;gap:8px;padding:0 0 14px 42px;font-size:12px; }
.booking-roster-person dl > div { display:grid;grid-template-columns:minmax(70px,1fr) 2fr;gap:12px; }
.booking-roster-person dt { color:var(--sm-text-muted); }
.booking-roster-person dd { margin:0;overflow-wrap:anywhere;white-space:pre-wrap; }
.booking-roster-status { color:var(--sm-text-muted);font-size:12px;margin:12px 0 0; }
.booking-roster-status:empty { display:none; }
/* ===== 约球详情组件样式 - 遵循高级设计指南 ===== */

/* ===== 通用小标题样式 - 与个人中心编辑资料模态框保持一致 ===== */
.section-title,
.detail-section-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before,
.detail-section-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: #DC143C;
    border-radius: 2px;
}

/* ===== 主容器 ===== */
.details-booking-wrapper {
    width: 100%;
    min-height: 100vh;
    background: transparent; /* 透明背景，遵循高级设计原则 */
    color: var(--sm-text, #FFFFFF);
    padding: 0 0 2rem 0; /* 移除顶部内边距，与筛选栏保持一致 */
    margin-top: -25px; /* 桌面端适中的负边距 */
}

/* ===== 页面头部 ===== */
.details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem; /* 桌面端保持更舒适的下边距 */
    margin-top: 1.25rem; /* 桌面端适中的顶部边距 */
    padding: 0 0 0 0; /* 桌面端移除左右padding，让返回按钮贴左边 */
    position: relative; /* 为标题居中提供定位上下文 */
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--sm-text, #FFFFFF);
    margin: 0;
    /* 桌面端标题居中 */
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* ===== 详情内容区域 ===== */
.details-booking-content {
    display: none; /* 默认隐藏，由JS控制显示 */
    width: 100%;
}

/* ===== 详情视图容器 ===== */
.booking-detail-container {
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
    transform: none;
}

/* Staging keeps descendants measurable without painting partial content or reserving a second layout. */
.booking-detail-container.is-preparing { height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }

/* 动画状态类 */
.booking-detail-container.fade-out {
    opacity: 0;
    transform: translateX(-20px);
}

.booking-detail-container.fade-in {
    opacity: 1;
    transform: none;
}

/* Photo mode and its first content row share one quiet surface, without overlap or a divider. */
.booking-page:has(.hero-photo-mode) .details-booking-content {
    padding-top: 0;
    background: var(--sm-surface, #1a1a1a);
}

.booking-page:has(.hero-photo-mode) .details-booking-wrapper {
    margin-top: 0;
}

.booking-page:has(.hero-photo-mode) .details-header {
    margin-top: 0;
    margin-bottom: 1rem;
    padding-block: 12px 8px;
    border: none;
    box-shadow: none;
    background: transparent;
}

/* ===== 约球信息卡片 - 极简透明化设计 ===== */
.booking-info-card {
    background: transparent;         /* 完全透明背景 */
    border: none;                   /* 移除所有边框 */
    border-radius: 0;               /* 移除圆角 */
    padding: 2rem 0;               /* 增加垂直呼吸感，移除水平内边距 */
    margin-bottom: 0;              /* 移除下边距，使用分隔线 */
    backdrop-filter: none;         /* 移除模糊效果 */
    box-shadow: none;              /* 移除阴影 */
    position: relative;            /* 为分隔线定位 */
}

/* 约球信息卡片分隔线 - 蓝色渐变主题 */
.booking-info-card:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

/* 悬浮时变为红色渐变，呼应约球主题 */
.booking-info-card:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

/* 精致的悬浮效果 */
.booking-info-card:hover {
    background: rgba(255, 255, 255, 0.02);  /* 极淡背景提示 */
    transform: none;                         /* 移除上浮动画 */
}

/* ===== 约球详情标题区域 ===== */
.booking-detail-header {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-detail-header:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

.booking-detail-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--sm-text, #FFFFFF);
    margin: 0;
    line-height: 1.3;
    opacity: 1;
    flex: 1;  /* 标题占据剩余空间 */
}

.booking-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;  /* 与标题保持间距 */
}

.booking-header-actions .btn {
    white-space: nowrap;  /* 防止按钮文字换行 */
}

/* ===== 约球元信息区域 ===== */
.booking-detail-meta {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}


.detail-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;  /* 减小元素间距，让内容更紧凑 */
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    padding: 0.5rem 0;
}

.detail-meta-item i {
    color: #DC143C;  /* 红色主题图标 */
    width: 18px;
    text-align: center;
    font-size: 1.1rem;
}

.detail-meta-item strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    min-width: 60px;
    margin-right: 0.25rem;  /* 减小标签与内容间距 */
}

.detail-meta-item span {
    color: var(--sm-text, #FFFFFF);
    font-weight: 600;
}

/* ===== 约球详情主体区域 ===== */
.booking-detail-body {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
}

.booking-detail-description {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin-bottom: 0;
    position: relative;
}

.booking-detail-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-detail-description:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

.booking-detail-description p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

/* ===== 时间选择器容器 - 极简化设计 ===== */
.booking-detail-times {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin: 0;
    position: relative;
}

.booking-detail-times::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-detail-times:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

/* booking-detail-times h4 样式已合并到通用 section-title 中 */

.time-selector-container {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 1rem 0;
}

/* ===== 组织者信息区域 - 极简化设计 ===== */
.booking-organizer-info {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin: 0;
    position: relative;
}

.booking-organizer-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-organizer-info:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

/* organizer-header h4 样式已合并到通用 section-title 中 */

.contact-info {
    margin-top: 0.5rem;
    margin-left: 0.75rem;
    padding: 1rem 0;
}

/* ===== 参与者信息区域 - 类似组织者信息的设计 ===== */
.booking-participants-info {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin: 0;
    position: relative;
}

.booking-participants-info::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-participants-info:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

.participants-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

/* participants-header h4 样式已合并到通用 section-title 中 */

.participants-count {
    background: rgba(220, 20, 60, 0.1);
    color: #DC143C;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(220, 20, 60, 0.3);
}

/* 参与者详情容器 - 网格布局 */
.participants-detail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

/* 参与者空状态样式 */
.empty-participants {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-participants i {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 1.5rem;
}

.empty-participants p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    margin: 0;
    font-weight: 500;
}

.contact-info strong {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.contact-info span {
    color: var(--sm-text, #FFFFFF);
    font-weight: 600;
    margin-left: 0.5rem;
}

/* ===== 时间操作按钮区域 ===== */
.booking-time-actions {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 1.5rem 0 0 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-time-actions .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* ===== 操作按钮区域 ===== */
.booking-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.2rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.booking-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* ===== 参与者信息 - 极简化设计 ===== */
.participants-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin: 0;
    position: relative;
}

.participants-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.participants-section:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

/* participants-title 样式已合并到通用 section-title 中 */

.participants-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.participant-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.participant-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(220, 20, 60, 0.3);
}

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

.participant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #DC143C, #B91C3C);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: none;
}

.participant-info {
    flex: 1;
}

.participant-name {
    color: var(--sm-text, #FFFFFF);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.participant-time {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

/* ===== 照片展示 - 极简化设计 ===== */
.booking-photos {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 2rem 0;
    margin: 0;
    position: relative;
}

.booking-photos::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.1) 10%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0.1) 90%,
        transparent 100%
    );
}

.booking-photos:hover::after {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(220, 20, 60, 0.2) 10%,
        rgba(220, 20, 60, 0.5) 50%,
        rgba(220, 20, 60, 0.2) 90%,
        transparent 100%
    );
}

/* booking-photos h4 样式已合并到通用 section-title 中 */

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.photo-item {
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: none;
    border-color: rgba(220, 20, 60, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.02);
}

/* ===== 加载和错误状态 ===== */
.booking-loading,
.booking-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

.booking-loading i,
.booking-error i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #DC143C;
}

.booking-loading.fa-spin {
    animation: spin 1s linear infinite;
}


/* ===== 表单元素样式 ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-input,
.form-select,
.form-textarea {
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 12px 16px;
    color: #ffffff;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

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

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
}

.required {
    color: #DC143C;
}

/* ===== 开关样式 ===== */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #DC143C;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.form-actions .form-group .switch { margin-left: 4px; }
.form-actions .form-group .form-label { line-height: 24px; }

.slider.round { border-radius: 24px; }



/* ===== 移动端优化 ===== */
@media (max-width: 768px) {
    .details-booking-wrapper {
        margin-top: -15px; /* 移动端减小负边距 */
        padding: 0 0 1.5rem 0;
    }

    .details-header {
        margin-bottom: 1.5rem;
        margin-top: 1rem;
        padding: 0 1rem; /* 移动端添加左右内边距 */
    }

    .page-title {
        font-size: 1.5rem;
        /* 移动端标题左对齐 */
        position: static;
        transform: none;
    }

    /* 移动端约球详情区域优化 */
    .booking-detail-header,
    .booking-detail-meta,
    .booking-detail-description,
    .booking-detail-times,
    .booking-organizer-info,
    .booking-participants-info,
    .booking-photos {
        padding: 1.5rem 0;
    }

    .booking-detail-header {
        flex-direction: row;  /* 移动端保持水平排列 */
        align-items: center;
        justify-content: space-between;
    }

    .booking-detail-title {
        font-size: 1.5rem;
        flex: 1;  /* 标题占据剩余空间 */
        margin-right: 1rem;  /* 与按钮保持间距 */
    }

    .booking-header-actions {
        margin-left: 0;
        flex-shrink: 0;  /* 按钮不压缩 */
    }

    .booking-detail-meta {
        grid-template-columns: 1fr 1fr;  /* 移动端改为两栏布局 */
        gap: 1rem 0.75rem;  /* 行间距1rem，列间距0.75rem */
    }

    .detail-meta-item {
        padding: 0.75rem 0;
        gap: 0.4rem;  /* 移动端进一步减小间距 */
    }

    .detail-meta-item strong {
        min-width: 50px;  /* 移动端减小标签最小宽度 */
        margin-right: 0.15rem;  /* 移动端减小标签右边距 */
    }

    /* 移动端小标题样式统一使用 section-title */

    .booking-time-actions {
        flex-direction: column;
        padding: 1rem 0 0 0;
    }

    .booking-time-actions .btn {
        min-width: auto;
        width: 100%;
    }

    .booking-actions {
        flex-direction: column;
        padding: 1.5rem 0;
    }

    .booking-actions .btn {
        flex: none;
        width: 100%;
    }

    .participants-list {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
    }

    .participants-detail {
        grid-template-columns: 1fr 1fr;
        gap: 1rem 0.75rem;
    }

    .participant-item {
        padding: 0.75rem 0;
    }

    .participant-avatar {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .photos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .photo-item {
        border-radius: 8px;
    }


    .summary-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .details-header {
        padding: 0 0.75rem;
    }

    .page-title {
        font-size: 1.3rem;
    }

    /* 超小屏幕约球详情区域优化 */
    .booking-detail-header,
    .booking-detail-meta,
    .booking-detail-description,
    .booking-detail-times,
    .booking-organizer-info,
    .booking-participants-info,
    .booking-photos {
        padding: 1.25rem 0;
    }

    .booking-detail-header {
        flex-direction: row;  /* 超小屏幕也保持水平排列 */
        align-items: center;
        justify-content: space-between;
    }

    .booking-detail-title {
        font-size: 1.3rem;
        flex: 1;
        margin-right: 0.75rem;  /* 超小屏幕减小间距 */
    }

    .booking-header-actions {
        margin-left: 0;
        flex-shrink: 0;
        gap: 0.5rem;  /* 超小屏幕减小按钮间距 */
    }

    .booking-header-actions .btn {
        font-size: 0.8rem;  /* 超小屏幕缩小按钮字体 */
        padding: 0.4rem 0.6rem;  /* 进一步缩小按钮内边距 */
        min-width: auto;  /* 移除最小宽度限制 */
    }

    /* 超小屏幕小标题样式统一使用 section-title */

    /* 超小屏幕保持两栏，但优化间距 */
    .booking-detail-meta {
        grid-template-columns: 1fr 1fr;  /* 超小屏幕也保持两栏 */
        gap: 0.75rem 0.5rem;  /* 减小间距以适应小屏幕 */
    }

    .detail-meta-item {
        font-size: 0.9rem;
        padding: 0.5rem 0;
        gap: 0.3rem;  /* 超小屏幕最小间距 */
    }

    .detail-meta-item strong {
        min-width: 45px;  /* 超小屏幕最小标签宽度 */
        margin-right: 0.1rem;  /* 超小屏幕最小标签右边距 */
    }

    .detail-meta-item i {
        font-size: 1rem;
    }

    .booking-detail-description p {
        font-size: 1rem;
    }

    .participant-item {
        gap: 0.75rem;
        padding: 0.5rem 0;
    }

    .participant-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .participant-name {
        font-size: 0.9rem;
    }

    .participant-time {
        font-size: 0.8rem;
    }

    .participants-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 0.5rem;
    }

    .participants-detail {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem 0.5rem;
    }

    .photos-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .photo-item {
        border-radius: 8px;
    }

}

/* ===== 通用悬浮效果增强 ===== */
.booking-detail-header:hover,
.booking-detail-meta:hover,
.booking-detail-description:hover,
.booking-detail-times:hover,
.booking-organizer-info:hover,
.booking-participants-info:hover,
.booking-photos:hover {
    background: rgba(255, 255, 255, 0.02);  /* 极淡背景提示 */
    transform: none;                         /* 移除上浮动画 */
}

/* ===== 文字层次优化 - 遵循黄金比例原则 ===== */
.booking-detail-title {
    opacity: 1;                             /* 主要标题 100% */
}

/* 次要标题透明度统一使用 section-title */

.detail-meta-item strong {
    opacity: 0.8;                           /* 标签文字 80% */
}

.detail-meta-item span,
.participant-name {
    opacity: 1;                             /* 重要信息 100% */
}

.booking-detail-description p,
.participant-time,
.contact-info span {
    opacity: 0.9;                           /* 描述文字 90% */
}

/* ===== 间距黄金比例系统 ===== */
/* 组件间距: 32px, 24px, 16px (1.33倍递减) */
/* 内边距: 32px, 24px, 16px, 12px */
/* 圆角半径: 16px, 12px, 8px */

/* The skeleton reuses the real detail sections, insets, six facts and two actions. */
.booking-detail-skeleton .booking-detail-title { width:100%; }
.booking-detail-skeleton .booking-skeleton-title { width:68%; height:1em; display:inline-block; vertical-align:middle; }
.booking-detail-skeleton .booking-skeleton-icon { height:18px; }
.booking-detail-skeleton .booking-skeleton-label { width:48px; height:12px; display:inline-block; }
.booking-detail-skeleton .booking-skeleton-value { width:80%; height:23.25px; }
.booking-detail-skeleton .booking-detail-description p { display:grid; gap:12px; padding-block:4px; }
.booking-skeleton-legend { display:grid; grid-template-columns:repeat(4,1fr); justify-items:center; gap:8px; margin-bottom:14px; }
.booking-skeleton-table .booking-skeleton-time { width:26px; height:12px; }
.booking-skeleton-table .booking-skeleton-slot { margin:1px; border-radius:3px; }
.booking-skeleton-table .sm-ts-tablehead { position:static; pointer-events:none; }
.booking-skeleton-table .sm-ts-right { pointer-events:none; scrollbar-width:none; }
.booking-detail-skeleton .booking-skeleton-button { width:100%; height:48px; border-radius:var(--sm-radius-pill,999px); }
.booking-detail-skeleton .booking-skeleton-subtitle { width:70px; height:18px; }
.booking-skeleton-organizer .sm-skeleton-row { min-height:90px; gap:12px; padding:12px; box-sizing:border-box; }
.booking-skeleton-organizer .sm-skeleton-avatar { width:50px; height:50px; }
.booking-skeleton-players .sm-skeleton-row { max-width:220px; }
/* Booking details follow the same quiet reading hierarchy as news. */
.booking-page .details-booking-wrapper { max-width: 960px; margin-inline: auto; padding-bottom: 32px; }
.booking-page .details-booking-wrapper .details-header { position: relative; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 12px 0; border: 0; }
.booking-page .details-booking-wrapper .page-title { position: static; transform: none; margin: 0; color: #959eac; font-size: 14px; font-weight: 450; }
.booking-page .details-booking-wrapper .booking-info-card { padding: 8px 0 24px; border: 0; background: transparent; box-shadow: none; }
.booking-page .booking-detail-title { font-size: clamp(24px,3vw,36px); font-weight: 600; letter-spacing: -.025em; line-height: 1.4; }
.booking-page .booking-detail-meta { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 28px; margin: 24px 0; padding: 22px; background: linear-gradient(130deg,rgba(255,255,255,.045),rgba(255,255,255,.015)); border: 0; border-radius: 14px; }
.booking-page .booking-detail-meta .detail-meta-item { min-width: 0; font-size: 14px; line-height: 1.65; color: #c1c8d3; align-items: baseline; }
.booking-page .booking-detail-meta strong { color: #939cab; font-weight: 400; }
.booking-page .booking-detail-meta i { color: #a9b4c3; }
.booking-page .booking-detail-description { margin: 0 0 28px; padding: 0; font-size: 16px; line-height: 1.85; color: #c4cbd6; border: 0; background: transparent; }
.booking-page .details-booking-wrapper .section-title { font-size: 14px; font-weight: 500; letter-spacing: .02em; color: #a6afbd; margin-bottom: 16px; }
.booking-page .booking-detail-times, .booking-page .booking-organizer-info, .booking-page .booking-participants-info { padding: 24px 0; margin: 0; background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.06); border-radius: 0; }
@media(max-width:768px) { .booking-page .details-booking-wrapper { padding-inline: 8px; } .booking-page .booking-detail-meta { gap: 14px; padding: 16px 12px; margin: 18px 0; border-radius: 10px; } .booking-page .booking-detail-meta .detail-meta-item { flex-wrap: wrap; gap: 5px; font-size: 13px; } .booking-page .booking-detail-meta .detail-meta-item span { overflow-wrap: anywhere; } .booking-page .details-booking-wrapper .page-title { display: none; } .booking-page .booking-detail-times { padding-top: 18px; } }

/* Content hierarchy is carried by type and space, with no nested cards. */
.booking-page .details-booking-wrapper .details-header[data-sm-sticky-return] { position: sticky; top: var(--sm-navbar-bottom,96px); z-index: 55; min-height: 60px; width: 100vw; box-sizing: border-box; margin: 0 calc(50% - 50vw) 10px; padding: 8px max(16px,calc((100vw - 960px)/2)); background: var(--sm-sticky-surface); border: 0; border-radius: 0 0 14px 14px; box-shadow: none; }
.booking-page .details-booking-wrapper .booking-detail-header { padding: 8px 0 14px; gap: 12px; align-items: flex-start; }
.booking-page .details-booking-wrapper :is(.booking-info-card,.booking-detail-header,.booking-detail-meta,.booking-detail-description,.booking-detail-times,.booking-organizer-info,.booking-participants-info,.booking-photos) { border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.booking-page .details-booking-wrapper :is(.booking-info-card,.booking-detail-header,.booking-detail-meta,.booking-detail-description,.booking-detail-times,.booking-organizer-info,.booking-participants-info,.booking-photos)::after,
.booking-page .details-booking-wrapper :is(.section-title,.detail-section-title)::before { display: none; }
.booking-page .details-booking-wrapper .booking-detail-meta { margin: 4px 0 22px; padding: 0; gap: 12px 24px; }
.booking-page .details-booking-wrapper .booking-detail-meta i { color: #aaa; }
.booking-page .details-booking-wrapper .detail-meta-item { padding: 0; color: #c5c5c5; }
.booking-page .details-booking-wrapper .detail-meta-item strong { color: #999; }
.booking-page .details-booking-wrapper .booking-detail-description { max-width: 720px; line-height: 1.85; color: #c5c5c5; }
.booking-page .details-booking-wrapper :is(.booking-detail-times,.booking-organizer-info,.booking-participants-info) { padding: 18px 0; }
.booking-page .details-booking-wrapper :is(.section-title,.detail-section-title) { color: #aaa; gap: 0; }
.booking-page .details-booking-wrapper .page-title { color: #999; letter-spacing: .06em; }
@media(max-width:768px) { .booking-page .details-booking-wrapper { padding-inline: 0; } .booking-page .details-booking-wrapper .booking-detail-title { font-size: 24px; line-height: 1.35; } .booking-page .details-booking-wrapper .booking-detail-meta { gap: 12px 16px; } }

.booking-page .details-booking-wrapper .player-card .player-points { color: var(--sm-text-muted, #aeb4bd); }

/* Detail copy uses opaque theme colors so photo-card styles and faded legacy
   labels cannot make the facts or contact disappear on the light surface. */
.booking-page .details-booking-wrapper :is(.detail-meta-item strong,.detail-meta-item i,.contact-info strong,.empty-participants p,.empty-participants i,.page-title,.time-main,.time-separator) {
    color: var(--sm-text-muted, #aeb4bd);
    opacity: 1;
}
.booking-page .details-booking-wrapper :is(.detail-meta-item span,.booking-detail-description p,.contact-info span,.participants-count) {
    color: var(--sm-text, #f4f5f7);
    opacity: 1;
}
.booking-page .details-booking-wrapper .sm-ts-legend { opacity: 1; }

/* Small captions lead into readable facts; expanded addresses belong to their own fact. */
.booking-page .details-booking-wrapper .booking-detail-meta { gap: 0 32px; margin-block: 6px 24px; align-items: start; }
.booking-page .details-booking-wrapper .detail-meta-item { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: start; gap: 5px 10px; padding: 15px 0; border-bottom: 1px solid var(--sm-border,rgba(255,255,255,.1)); }
.booking-page .details-booking-wrapper .detail-meta-item > i { grid-column: 1; grid-row: 1 / 3; width: 20px; padding-top: 2px; font-size: 15px; text-align: center; }
.booking-page .details-booking-wrapper .detail-meta-item strong { grid-column: 2; min-width: 0; margin: 0; font-size: 12px; font-weight: 450; line-height: 18px; white-space: nowrap; }
.booking-page .details-booking-wrapper .detail-meta-item > span,
.booking-page .details-booking-wrapper .detail-location-toggle { grid-column: 2; min-width: 0; font-size: 15px; font-weight: 500; line-height: 1.55; }
.booking-page .details-booking-wrapper .detail-meta-item > span { white-space: normal; overflow-wrap: anywhere; }
.booking-page .details-booking-wrapper .detail-location-summary { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.booking-page .details-booking-wrapper .detail-location-toggle { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) 16px; gap: 4px; align-items: center; padding: 0; border: 0; background: transparent; color: var(--sm-text); font-family: inherit; text-align: left; cursor: pointer; }
.booking-page .details-booking-wrapper .detail-location-toggle svg { width: 16px; height: 16px; color: var(--sm-text-muted); }
.booking-page .details-booking-wrapper .booking-disclosure { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 240ms cubic-bezier(.22,.68,0,1), opacity 180ms ease; }
.booking-page .details-booking-wrapper .booking-disclosure[hidden] { display: none; }
.booking-page .details-booking-wrapper .booking-disclosure.is-open { grid-template-rows: 1fr; opacity: 1; }
.booking-page .details-booking-wrapper .booking-disclosure-inner { min-height: 0; overflow: clip; }
.booking-page .details-booking-wrapper .booking-location-full { grid-column: 2; }
.booking-page .details-booking-wrapper .booking-location-full p { margin: 2px 0 0; color: var(--sm-text); font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.booking-page .details-booking-wrapper .participants-header { min-height: 44px; margin-bottom: 0; }
.booking-page .details-booking-wrapper .participants-header .section-title { margin: 0; }
.booking-page .details-booking-wrapper .participants-count { margin-left: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--sm-text-muted); font-size: 13px; font-weight: 400; }
.booking-page .booking-participants-preview { position: relative; display: flow-root; overflow: clip; height: var(--booking-participants-height, auto); transition: height 360ms cubic-bezier(.22,.61,.36,1), mask-size 360ms cubic-bezier(.22,.61,.36,1); }
.booking-page .booking-participants-preview .participants-detail { position: relative; }
.booking-page .booking-participants-preview.has-overflow { mask-image: linear-gradient(to bottom, #000 0, #000 calc(100% - var(--booking-participants-fade-height)), transparent 100%); mask-size: 100% var(--booking-participants-mask-height); mask-repeat: no-repeat; }
.booking-page .details-booking-wrapper .booking-participants-toggle { display: flex; width: 100%; min-height: 44px; align-items: center; justify-content: center; padding: 0; border: 0; background: transparent; color: var(--sm-text-muted); cursor: pointer; }
.booking-page .details-booking-wrapper .booking-participants-toggle[hidden] { display: none; }
.booking-page .details-booking-wrapper .booking-participants-toggle:hover { color: var(--sm-text); }
.booking-page .details-booking-wrapper .booking-participants-toggle svg { width: 20px; height: 20px; transition: transform 360ms cubic-bezier(.22,.61,.36,1); }
.booking-page .details-booking-wrapper .booking-participants-toggle[aria-expanded="true"] > svg { transform: rotate(180deg); }
.booking-page .details-booking-wrapper :is(.booking-participants-toggle,.detail-location-toggle):focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
@media(max-width:600px) {
    .booking-page .details-booking-wrapper .booking-detail-meta,
    .booking-detail-skeleton .booking-skeleton-meta { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
    .booking-page .details-booking-wrapper :is(.detail-meta-time,.detail-meta-location),
    .booking-detail-skeleton .booking-skeleton-meta .booking-skeleton-field:nth-child(-n+2) { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
    .booking-page .details-booking-wrapper :is(.booking-disclosure,.booking-participants-preview,.booking-participants-toggle svg) { transition: none; }
}

/* The expanded venue appears once, with a compact and explicit collapse action. */
.booking-page .details-booking-wrapper .detail-location-action { color: var(--sm-text-muted); }

/* Organizer approval history belongs to the currently opened activity. */
.booking-applications {
    padding-block: 20px;
}
.booking-applications[hidden], .booking-application-status[hidden] { display: none; }
.booking-applications-heading, .booking-application-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.booking-applications-heading { flex-wrap: wrap; }
.booking-applications-heading .section-title { margin: 0; }
.booking-applications-count, .booking-applications-empty {
    color: var(--sm-text-muted, #aeb4bd);
    font-size: 13px;
    line-height: 1.6;
}
.booking-applications-empty { margin: 16px 0 0; }
.booking-application-item { padding-block: 18px; border-bottom: 1px solid var(--sm-border, rgba(255,255,255,.1)); }
.booking-application-topline strong { min-width: 0; overflow-wrap: anywhere; }
.booking-application-badge { flex: 0 0 auto; color: var(--sm-text-muted, #aeb4bd); font-size: 12px; }
.booking-application-badge.is-pending { color: var(--sm-accent, #dc143c); }
.booking-application-slot { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--sm-text-muted, #aeb4bd); font-size: 13px; margin-top: 8px; }
.booking-application-fields { margin: 12px 0 0; font-size: 13px; line-height: 1.65; }
.booking-application-fields > div { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 10px; margin-top: 5px; }
.booking-application-fields dt { color: var(--sm-text-muted, #aeb4bd); }
.booking-application-fields dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.booking-application-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.booking-application-status { display: grid; gap: 6px; margin-top: 18px; font-size: 13px; line-height: 1.65; }
.booking-application-status > span { color: var(--sm-text-muted, #aeb4bd); }
.booking-application-status .booking-application-slot { margin-top: 0; }
.booking-page .booking-applications-hub { display: flex; align-items: center; }
/* Keep the menu's blur independent from its toolbar's backdrop root. */
.booking-page .details-booking-wrapper .details-header[data-sm-sticky-return] {
    background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
}
.booking-page .details-booking-wrapper .details-header[data-sm-sticky-return]:not([data-sm-joined])::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
    background: var(--sm-sticky-surface); backdrop-filter: var(--sm-sticky-blur); -webkit-backdrop-filter: var(--sm-sticky-blur);
}
.booking-page .booking-applications-hub[hidden],
.booking-page .booking-applications-hub [hidden],
.booking-page .booking-applications[hidden],
.booking-page .booking-applications [hidden] { display: none !important; }
.booking-page .booking-applications-trigger { min-height: 44px; padding: 10px 14px; gap: 7px; font-size: 13px; }
.booking-page .booking-applications-trigger > svg { width: 18px; height: 18px; }
.booking-page .booking-applications-badge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; box-sizing: border-box; border-radius: 20px; background: rgba(var(--sm-ink-rgb),.12); color: inherit; font: 600 10px/1 system-ui,sans-serif; }
.booking-page .details-booking-wrapper > .booking-applications {
    position: absolute; top: calc(100% + 8px); right: max(16px,calc((100vw - 960px)/2)); z-index: 1;
    width: min(440px,calc(100vw - 32px)); margin: 0; padding: 18px; box-sizing: border-box;
    border-radius: 18px; border: 1px solid var(--sm-line); background: var(--sm-sticky-surface);
    backdrop-filter: var(--sm-sticky-blur); -webkit-backdrop-filter: var(--sm-sticky-blur);
    box-shadow: 0 12px 36px rgba(0,0,0,.12); text-align: left; color: var(--sm-text);
    max-height: min(520px,calc(100dvh - var(--sm-navbar-bottom,96px) - 168px));
    overflow: auto; overscroll-behavior: contain; transform-origin: top right;
}
.booking-page .details-booking-wrapper > .booking-applications-heading { gap: 8px; flex-wrap: wrap; }
.booking-page .booking-applications-heading h4 { margin: 0; font-size: 13px; font-weight: 550; }
.booking-page .details-booking-wrapper > .booking-applications .booking-application-item { padding: 8px 0; }
.booking-page .details-booking-wrapper > .booking-applications .booking-application-item:last-child { border-bottom: 0; }
.booking-page .booking-application-person { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 0; border: 0; border-radius: 8px; background: transparent; color: var(--sm-text); font: inherit; text-align: left; cursor: pointer; }
.booking-page .booking-application-person-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; background: rgba(var(--sm-ink-rgb,255,255,255),.08); font-size: 14px; }
.booking-page .booking-application-person-copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.booking-page .booking-application-person-copy > strong { overflow-wrap: anywhere; font-size: 14px; font-weight: 550; }
.booking-page .booking-application-person .booking-application-slot { margin: 0; font-size: 11px; }
.booking-page .booking-application-person > svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--sm-text-muted); transition: transform 180ms ease; }
.booking-page .booking-application-person[aria-expanded="true"] > svg { transform: rotate(90deg); }
.booking-page .booking-application-review { margin: 2px 0 8px 46px; animation: booking-review-reveal 180ms ease; }
.booking-page :is(.booking-applications-hub,.booking-applications) :is(button,a):focus-visible { outline: 2px solid var(--sm-text); outline-offset: 3px; }
.booking-page .details-booking-wrapper > .booking-applications .booking-application-fields > div { grid-template-columns: 64px minmax(0,1fr); }
.booking-page .details-booking-wrapper .detail-meta-item .detail-location-full { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
/* The table owns the lowest local layer; navigation and open panels stay above it. */
.booking-page :is(.booking-detail-times,.booking-schedule-section) { position: relative; isolation: auto; z-index: auto; }
.booking-page :is(.booking-detail-times,.booking-schedule-section) .sm-ts-tablehead { z-index: 20; }
@keyframes booking-review-reveal { from { opacity: .3; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width:600px) { .booking-page .details-booking-wrapper > .booking-applications { padding: 14px; } .booking-page .booking-application-review { margin-left: 0; } }
@media (prefers-reduced-motion:reduce) { .booking-page .booking-application-review { animation: none; } .booking-page .booking-application-person > svg { transition: none; } }

/* Equal side columns keep the organizer action at the viewport midpoint. */
.booking-page .details-booking-wrapper .details-header[data-sm-sticky-return] { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
.booking-page .details-booking-wrapper .details-header > .sm-back-link { grid-column: 1; grid-row: 1; justify-self: start; }
.booking-page .details-booking-wrapper .details-header > .booking-applications-hub { grid-column: 2; grid-row: 1; justify-self: center; }
.booking-page .details-booking-wrapper .details-header > .header-actions { grid-column: 3; grid-row: 1; justify-self: end; }
.booking-page .details-booking-wrapper .details-header > .page-title { grid-column: 2; grid-row: 1; }
.booking-page .details-booking-wrapper .details-header:has(.booking-applications-hub:not([hidden])) > .page-title { display: none; }

/* The room action belongs to the selected time, before the people section. */
.booking-page .booking-chat-action { margin:10px 0 0; padding:0; display:flex; justify-content:center; }
.booking-page .booking-chat-action .btn { min-width:180px; }

/* Full-width sections keep comfortable space around their text. */
.booking-page .details-booking-wrapper :is(.booking-detail-header,.booking-detail-meta,.booking-detail-description,.booking-organizer-info,.booking-participants-info) { padding-inline:clamp(16px,2.5vw,24px); }
.booking-page .booking-detail-times > .booking-application-status { margin-inline:16px; }
.booking-page .booking-applications-trigger.is-approved { color:#319e74!important; }
.booking-page .booking-applications-trigger.is-rejected { color:#d54b5b!important; }
.booking-page .booking-applications-trigger:is(.is-approved,.is-rejected)>svg { display:none; }
.booking-page .booking-applications-trigger:is(.is-approved,.is-rejected)::before { content:"";width:7px;height:7px;border-radius:50%;background:currentColor; }
.booking-page .empty-participants { grid-column:1 / -1;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center; }
.booking-page .empty-participants i { margin-inline:auto; }
.booking-my-message { margin:14px 0 0;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere; }

/* The chosen side remains the confirmation control for this inline form. */
.booking-registration-inline { --booking-registration-origin:25%; position:relative; min-width:0; border-radius:18px; background:var(--sm-surface,var(--sm-card-bg,#242426)); color:var(--sm-text); overflow:auto; overscroll-behavior:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch; }
.booking-registration-inline[data-side="right"] { --booking-registration-origin:75%; }
.booking-registration-inline-form { display:grid; gap:16px; margin:0; padding:20px; }
.booking-registration-inline [data-registration-fields] { display:grid; gap:16px; }
.booking-registration-inline .booking-registration-field { margin:0; }
.booking-registration-inline label.booking-registration-field { display:grid; gap:10px; }
.booking-no-table-actions { position:relative; padding:0 16px; }
.booking-no-table-actions > .btn { width:100%; }
.booking-no-table-actions > .booking-registration-inline { position:absolute; z-index:8; top:calc(100% + 8px); inset-inline:16px; max-height:min(60dvh,540px); margin:0; border-radius:var(--sm-shape-card-radius,24px); box-shadow:var(--sm-glass-shadow,0 12px 36px #0003); }
.booking-skeleton-table[hidden] { display:none; }

.booking-community-origin { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; padding:14px 0 18px; color:var(--sm-text-muted,#aaa); text-decoration:none; font-size:13px; transition:opacity 220ms ease; }
.booking-community-origin strong { color:var(--sm-text,#fff); font-weight:500; }
.booking-community-origin > span:last-child { margin-left:auto; font-size:12px; }
.booking-community-origin:hover { opacity:.75; }

.detail-meta-location .detail-location-link { color:inherit; text-decoration:underline; text-underline-offset:4px; text-decoration-color:var(--sm-line); }
.detail-meta-location .detail-location-link:hover { text-decoration-color:currentColor; }

.booking-page .details-booking-wrapper .detail-meta-location > .detail-location-link { grid-column:2; min-width:0; font-size:15px; line-height:1.55; }
.detail-location-link:focus-visible { outline:2px solid currentColor; outline-offset:4px; border-radius:4px; }

/* One readable legend row above the table. */
.booking-page [data-booking-time-zone] { display:block; margin:0 4px 10px; }
.booking-page #bookingDetailTimeContainer .sm-ts-legend { display:block; margin:0 0 14px; padding:0 4px; }
.booking-page #bookingDetailTimeContainer .sm-ts-legend-left { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; gap:8px; }
.booking-page #bookingDetailTimeContainer .sm-ts-legend .lg { justify-content:center; gap:6px; min-width:0; font-size:12px; line-height:1.45; }
.booking-page #bookingDetailTimeContainer .sm-ts-legend .lg::before { flex:0 0 12px; width:12px; height:12px; border-radius:50%; }
.booking-page #bookingDetailTimeContainer .sm-ts-legend .lg-others::before { background:linear-gradient(135deg,var(--sm-seat-male,#69b7fa) 0%,var(--sm-seat-male,#69b7fa) 50%,var(--sm-seat-female,#f18bbc) 50%,var(--sm-seat-female,#f18bbc) 100%); }
.booking-page #bookingDetailTimeContainer .sm-ts-legend .lg-selected::before { background:var(--sm-seat-self,#ef4660); }
/* Confirmed cells remain readable; the action below the table enables editing. */
.booking-page .booking-selection-locked .slot { cursor:default; }
.booking-page .booking-time-actions[hidden], .booking-page .edit-time-actions[hidden] { display:none; }
.booking-page .booking-selection-saving .sm-ts-grid { pointer-events:none; }
.booking-page .booking-detail-times > :is(.booking-time-actions,.edit-time-actions,.booking-chat-action) { width:calc(100% - 16px); margin:10px 8px 0; padding:0; box-sizing:border-box; }
.booking-page .booking-detail-times > .booking-time-actions > .btn,
.booking-page .booking-detail-times > .edit-time-actions > #saveTimeEditBtn,
.booking-page .booking-detail-times > .booking-chat-action > .btn { display:flex; align-items:center; justify-content:center; width:100%; min-width:0; min-height:48px; margin:0; padding:12px 20px; box-sizing:border-box; font-size:15px; line-height:22px; }
.booking-page .booking-my-slots { display:grid; gap:12px; }
.booking-page .booking-my-slots .booking-application-slot { margin:0; gap:8px 18px; align-items:baseline; justify-content:space-between; }
.booking-page .booking-my-slots .booking-slot-time { color:var(--sm-text); font-size:18px; font-weight:550; font-variant-numeric:tabular-nums; }
.booking-page .booking-application-slot .booking-slot-table { white-space:nowrap; }

/* Organizer and participants use the same horizontal player-card dimensions. */
@media(max-width:360px) { .booking-page #bookingDetailTimeContainer .sm-ts-legend .lg { font-size:11px; gap:4px; } }

.booking-detail-date-time { display: inline-flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 4px; }

/* The shared round action is positioned outside transformed detail layers. */
body .btn.booking-chat-float {
    z-index: 980;
    touch-action: manipulation;
    user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    display:grid; place-items:center; gap:0; padding:0;
}
body .btn.booking-chat-float[hidden] { display: none; }
.booking-chat-float > .booking-chat-icon { display:block; flex:none; width:1em; height:1em; font-size:23px; margin:0; grid-area:1 / 1; transition:transform 280ms cubic-bezier(.2,.8,.2,1); }
.booking-chat-float.is-held { cursor: grabbing; }
.booking-chat-float.is-held > .booking-chat-icon { transform: scale(.9); }
.booking-chat-float.is-docked { opacity: .68; }
.booking-chat-unread { position: absolute; top: -3px; right: -3px; pointer-events: none; }
.booking-chat-unread[hidden] { display: none; }
.booking-chat-preview {
    position: fixed; z-index: 979; width: max-content; max-width: min(250px,calc(100vw - 100px));
    transform: translate(-100%,-50%); pointer-events: none; transition: opacity 200ms ease;
}
.booking-chat-preview.is-left { transform: translate(0,-50%); }
.booking-chat-preview[hidden] { display: none; }
.booking-chat-preview.is-docked { opacity: 0; }
.booking-chat-preview-line {
    display: flex; flex-direction: column; gap: 3px; padding: 11px 15px; border-radius: 19px;
    background: var(--sm-sticky-surface,rgba(32,34,38,.93)); color: var(--sm-text,#fff);
    backdrop-filter: var(--sm-sticky-blur,blur(18px)); -webkit-backdrop-filter: var(--sm-sticky-blur,blur(18px));
    box-shadow: 0 6px 22px rgba(0,0,0,.17); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere;
}
.booking-chat-preview-line > strong { font-size: 11px; font-weight: 600; color: var(--sm-text-muted,#aaa); }
.booking-chat-preview-line > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.booking-chat-preview-line.is-leaving { position: absolute; inset: 0; }
@media (prefers-reduced-motion: reduce) { .booking-chat-float, .booking-chat-float > .booking-chat-icon { transition: none !important; } }

/* The same two-column metadata rhythm continues below time and place. */
.booking-page .details-booking-wrapper :is(.booking-detail-facts,.booking-skeleton-facts) { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 32px; margin:0 0 24px; padding-inline:clamp(16px,2.5vw,24px); align-items:stretch; }
.booking-page .details-booking-wrapper .booking-detail-meta { margin-bottom:0; }
.booking-page .details-booking-wrapper .booking-fact { min-width:0; text-decoration:none; background:transparent; }
.booking-page .details-booking-wrapper .booking-fact .booking-fact-value { align-self:center; min-height:24px; font-size:15px; font-weight:500; line-height:1.55; font-variant-numeric:tabular-nums; }
.booking-page .details-booking-wrapper .detail-meta-gender > .sm-gender-icon { display:grid; place-items:center; width:20px; height:20px; padding:0; font-size:15px; border-radius:0; background:transparent; }
.booking-page .details-booking-wrapper a.booking-fact { transition:color 260ms ease; }
.booking-page .details-booking-wrapper a.booking-fact:focus-visible { outline:2px solid var(--sm-field-line); outline-offset:4px; border-radius:4px; }
@media(max-width:768px) { .booking-page .details-booking-wrapper :is(.booking-detail-facts,.booking-skeleton-facts) { column-gap:16px; } }
@media(prefers-reduced-motion:reduce) { .booking-page .details-booking-wrapper a.booking-fact { transition:none; } }

/* Both fades stay inside the cell viewport, including its fixed time column.
   Their height never exceeds the visible grey context, and they never take taps. */
@property --booking-timetable-fade-start { syntax:'<length>'; inherits:true; initial-value:0px; }
@property --booking-timetable-fade-end { syntax:'<length>'; inherits:true; initial-value:0px; }
.booking-page .booking-timetable-disclosure { position:relative; overflow-anchor:none; }
.booking-page .booking-timetable-disclosure.is-disclosing { transition:--booking-timetable-fade-start 300ms ease,--booking-timetable-fade-end 300ms ease; }
.booking-page .booking-timetable-disclosure::before,
.booking-page .booking-timetable-disclosure::after { content:none; }
.booking-page .booking-timetable-disclosure .sm-ts-right {
    -webkit-mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(to bottom,transparent,#000 var(--booking-timetable-fade-start,0px),#000 calc(100% - var(--booking-timetable-fade-end,0px)),transparent);
    mask-image:linear-gradient(to right,transparent,#000 16px,#000 calc(100% - 16px),transparent),linear-gradient(to bottom,transparent,#000 var(--booking-timetable-fade-start,0px),#000 calc(100% - var(--booking-timetable-fade-end,0px)),transparent);
    -webkit-mask-composite:source-in;
    mask-composite:intersect;
}
.booking-page .booking-timetable-disclosure.is-timetable-ready .sm-ts-right { transition:border-radius 440ms cubic-bezier(.22,.75,.2,1); }
.booking-page .booking-timetable-disclosure .sm-ts-timecol {
    --booking-time-fade-start:0px; --booking-time-fade-end:0px;
    -webkit-mask-image:linear-gradient(to bottom,transparent,#000 var(--booking-time-fade-start),#000 calc(100% - var(--booking-time-fade-end)),transparent);
    mask-image:linear-gradient(to bottom,transparent,#000 var(--booking-time-fade-start),#000 calc(100% - var(--booking-time-fade-end)),transparent);
}
/* Boundary labels straddle the first/last court lines. Preserve the shared
   half-label inset even when the complete timetable is expanded. */
.booking-page .booking-timetable-disclosure.has-hidden-start .sm-ts-timecol { --booking-time-fade-start:calc(var(--booking-timetable-fade-start) + var(--sm-time-edge-inset)); }
.booking-page .booking-timetable-disclosure.has-hidden-end .sm-ts-timecol { --booking-time-fade-end:calc(var(--booking-timetable-fade-end) + var(--sm-time-edge-inset)); }
.booking-page .booking-timetable-toggle { display:flex; align-items:center; justify-content:center; width:100%; min-height:40px; margin:0; padding:0; color:var(--sm-text,#fff); border:0; border-radius:0; background:transparent; cursor:pointer; -webkit-tap-highlight-color:transparent; overflow-anchor:none; }
.booking-page .booking-timetable-toggle[hidden] { display:none; }
.booking-page .booking-timetable-toggle > svg { width:18px; height:18px; transition:transform 440ms cubic-bezier(.22,.75,.2,1); }
.booking-page .booking-timetable-toggle[aria-expanded="true"] > svg { transform:rotate(180deg); }
.booking-page .booking-timetable-toggle:focus-visible { outline:2px solid var(--sm-text); outline-offset:2px; border-radius:10px; }
.booking-page .details-booking-wrapper .booking-detail-times:has(.booking-timetable-toggle:not([hidden])) { padding-bottom:0; }
.booking-page .details-booking-wrapper .booking-detail-times:has(.booking-timetable-toggle:not([hidden])) + .booking-organizer-info { padding-top:8px; }
@media(prefers-reduced-motion:reduce) { .booking-page .booking-timetable-toggle > svg,.booking-page .booking-timetable-disclosure.is-disclosing,.booking-page .booking-timetable-disclosure.is-timetable-ready .sm-ts-right { transition:none; } }

/* Concentric geometry shared with the corresponding loading frames. */
html body.booking-page .details-booking-wrapper :is(.booking-detail-header,.booking-detail-meta,.booking-detail-description,.booking-organizer-info,.booking-participants-info,.booking-detail-facts,.booking-skeleton-facts) { padding-inline:var(--sm-shape-inset)!important; }

/* The grip occupies its own upper space, leaving status at the row midpoint. */
html body.booking-page .details-booking-wrapper .details-header[data-sm-sticky-return] {
    grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
    column-gap:8px; pointer-events:none;
}
html body.booking-page .details-booking-wrapper .details-header > * { pointer-events:auto; }
html body.booking-page .details-booking-wrapper .details-header > .booking-applications-hub { grid-column:2; justify-self:center; min-width:0; max-width:100%; }
html body.booking-page .details-booking-wrapper .details-header > .header-actions { grid-column:3; }
html body.booking-page .details-booking-wrapper .details-header > .page-title { display:none; }
html body.booking-page .booking-applications-trigger { min-width:0; max-width:100%; padding-inline:8px; gap:4px; }
html body.booking-page .booking-applications-trigger > span:not(.booking-applications-badge) { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* A booking without published media starts directly below the navigation. */
html body.booking-page.booking-detail-no-media:not(.is-booking-composer) #hero-container { display:none!important; }
html body.booking-page.booking-detail-no-media:not(.is-booking-composer) #main-content-container { margin-top:calc(var(--sm-navbar-bottom,72px) + 1px)!important; min-height:calc(100dvh - var(--sm-navbar-bottom,72px) - 1px); }
html body.booking-page.booking-detail-no-media:not(.is-booking-composer) :is(.details-booking-content,.details-booking-wrapper,.details-header) { margin-top:0!important; }

/* The photo grip reserves only the outer inset's first third. Together with
   the existing row padding this keeps actions at the shared 12px inner edge.
   Loading and real content use this same sheet; fixed rows keep their 60px. */
html body.booking-page:not(.is-booking-composer) #main-content-container[data-sm-page-sheet][data-sm-photo-edge]:has(> .details-booking-content:not([style*="display: none"])) {
    padding-top:calc(var(--sm-shape-inset) / 3)!important;
}
html body.booking-page .details-booking-wrapper > .details-header[data-sm-sticky-return] {
    grid-template-columns:auto minmax(0,1fr) auto;
    column-gap:8px;
}
/* One native reading flow keeps the title actions beside the title. */
html body.booking-page .booking-detail-content .booking-detail-header { display:flex; flex-direction:row; align-items:flex-start; gap:12px; }
html body.booking-page .booking-detail-content .booking-detail-title { flex:1; min-width:0; margin:0; }
html body.booking-page .booking-detail-content .booking-header-actions { display:flex; flex:none; align-items:center; justify-content:flex-end; gap:8px; width:auto; margin:0; }
html body.booking-page .booking-detail-content .booking-header-actions .btn { min-height:40px; padding:9px 10px; gap:5px; font-size:12px; }
html body.booking-page .details-booking-wrapper > .booking-applications { z-index:75; width:min(440px,calc(100vw - 24px)); }
.booking-no-table-summary { padding:4px var(--sm-shape-inset) 16px; }
.booking-no-table-summary p { color:var(--sm-text-muted); font-size:14px; line-height:1.65; }
@media(max-width:360px) {
    html body.booking-page .details-booking-wrapper > .details-header :is(.sm-back-link,.sm-text-action) { gap:4px; font-size:12px; }
    html body.booking-page .booking-detail-content .booking-detail-header { gap:8px; }
    html body.booking-page .booking-detail-content .booking-header-actions { gap:5px; }
    html body.booking-page .booking-detail-content .booking-header-actions .btn { padding-inline:8px; }
}
