* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { height: 100%; height: -webkit-fill-available; background: #000; color-scheme: dark; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
    color: #fff;
    color-scheme: dark;
    height: 100dvh;
    display: flex;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

/* ── Centred 430-px mobile shell ── */
#login-gate {
    width: 100%;
    max-width: 430px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000;
}
.gate-card { background: #111; border-radius: 20px; padding: 40px; text-align: center; width: 100%; max-width: 360px; }
.gate-avatar { width: 80px; height: 80px; border-radius: 50%; border: 3px solid #2563EB; object-fit: cover; margin-bottom: 20px; }
.gate-card h2 { font-size: 22px; margin-bottom: 8px; }
.gate-card p { font-size: 14px; color: rgba(255,255,255,0.5); margin-bottom: 24px; }
.gate-pin-row input { width: 100%; padding: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 18px; text-align: center; letter-spacing: 8px; outline: none; -webkit-text-security: disc; }
.gate-pin-row input:focus { border-color: #2563EB; }
.gate-pin-row input::placeholder { -webkit-text-security: none; letter-spacing: normal; font-size: 14px; }
#gate-submit { width: 100%; padding: 14px; margin-top: 16px; background: linear-gradient(135deg, #2563EB, #1E3A8A); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.gate-hint { font-size: 12px; color: rgba(255,255,255,0.3); margin-top: 16px; }

#dashboard {
    width: 100%;
    max-width: 430px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: #000;
}

.dash-sidebar { width: 240px; background: #0a0a0a; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; position: absolute; top: 0; left: 0; bottom: 0; z-index: 100; transition: transform 0.3s; transform: translateX(-100%); }
.dash-brand { display: flex; align-items: center; gap: 12px; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.dash-brand-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid #2563EB; }
.dash-brand-name { display: block; font-size: 14px; font-weight: 600; color: #fff; }
.dash-brand-role { display: block; font-size: 11px; color: #2563EB; }
.dash-nav-items { flex: 1; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.dash-nav-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: transparent; border: none; color: rgba(255,255,255,0.5); font-size: 14px; border-radius: 10px; cursor: pointer; transition: all 0.2s; text-align: left; width: 100%; position: relative; }
.dash-nav-btn:hover { background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.8); }
.dash-nav-btn.active { background: rgba(37,99,235,0.12); color: #2563EB; }
.dash-badge { position: absolute; right: 12px; background: #2563EB; color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 10px; }

.dash-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-height: 0; }
.dash-header { flex-shrink: 0; display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(0,0,0,0.9); backdrop-filter: blur(10px); z-index: 50; }
.dash-header h1 { font-size: 18px; font-weight: 700; }
.dash-menu-toggle { display: block; background: none; border: none; color: #fff; cursor: pointer; }
.dash-content { flex: 1; padding: 12px; padding-bottom: calc(72px + env(safe-area-inset-bottom, 8px)); overflow-y: auto; -webkit-overflow-scrolling: touch; }

.dash-tab { display: none; }
.dash-tab.active { display: block; }

.dash-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 20px; }
.dash-stat-card { background: #111; border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.dash-stat-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-stat-icon.purple { background: rgba(37,99,235,0.15); color: #2563EB; }
.dash-stat-icon.blue { background: rgba(59,130,246,0.15); color: #3B82F6; }
.dash-stat-icon.green { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-stat-icon.orange { background: rgba(249,115,22,0.15); color: #F97316; }

.dash-quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dash-quick-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; background: #111; border: 1px solid rgba(255,255,255,0.06); border-radius: 16px; cursor: pointer; transition: all 0.2s ease; text-align: center; }
.dash-quick-card:hover { background: #1a1a1a; border-color: rgba(37,99,235,0.2); transform: translateY(-2px); }
.dash-quick-card:active { transform: translateY(0); }
.dash-quick-icon { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.dash-quick-icon.purple { background: rgba(37,99,235,0.15); color: #2563EB; }
.dash-quick-icon.blue { background: rgba(59,130,246,0.15); color: #3B82F6; }
.dash-quick-icon.green { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-quick-icon.orange { background: rgba(249,115,22,0.15); color: #F97316; }
.dash-quick-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); }
.dash-quick-badge { position: absolute; top: 10px; right: 10px; background: #2563EB; color: #fff; font-size: 10px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.dash-stat-info { display: flex; flex-direction: column; }
.dash-stat-value { font-size: 20px; font-weight: 700; }
.dash-stat-label { font-size: 13px; color: rgba(255,255,255,0.5); }

.dash-section { margin-bottom: 28px; }
.dash-section h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; color: rgba(255,255,255,0.8); }
.dash-list { display: flex; flex-direction: column; gap: 10px; }

.dash-card { background: #111; border-radius: 14px; padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.dash-card-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(37,99,235,0.2); display: flex; align-items: center; justify-content: center; color: #2563EB; font-weight: 600; font-size: 14px; flex-shrink: 0; overflow: hidden; }
.dash-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-card-body { flex: 1; min-width: 0; }
.dash-card-title { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 2px; }
.dash-card-sub { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-card-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dash-card-time { font-size: 11px; color: rgba(255,255,255,0.3); }
.dash-card-status { padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.dash-card-status.confirmed { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-card-status.pending { background: rgba(249,115,22,0.15); color: #F97316; }
.dash-card-status.cancelled { background: rgba(239,68,68,0.15); color: #EF4444; }
.dash-card-status.completed { background: rgba(59,130,246,0.15); color: #3B82F6; }

.dash-card-actions { display: flex; gap: 8px; flex-shrink: 0; }
.dash-action-btn { padding: 6px 14px; border-radius: 8px; font-size: 12px; font-weight: 600; border: none; cursor: pointer; }
.dash-action-btn.approve { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-action-btn.approve:hover { background: rgba(34,197,94,0.25); }
.dash-action-btn.decline { background: rgba(239,68,68,0.15); color: #EF4444; }
.dash-action-btn.decline:hover { background: rgba(239,68,68,0.25); }

.dash-card.selected { border: 1px solid #2563EB; }

.dash-client-action-badge { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.dash-client-action-badge.ca-cancelled { background: rgba(239,68,68,0.15); color: #F87171; }
.dash-client-action-badge.ca-rescheduled { background: rgba(96,165,250,0.15); color: #60A5FA; }

.dash-messages-layout, .dash-support-layout { display: flex; flex-direction: column; gap: 16px; }
.dash-msg-reply { display: flex; gap: 12px; align-items: flex-end; }
.dash-msg-reply textarea { flex: 1; padding: 14px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 14px; font-family: inherit; resize: vertical; min-height: 48px; outline: none; }
.dash-msg-reply textarea:focus { border-color: #2563EB; }
.dash-msg-reply button { display: flex; align-items: center; gap: 8px; padding: 14px 20px; background: linear-gradient(135deg, #2563EB, #1E3A8A); color: #fff; border: none; border-radius: 12px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }

.dash-filter-bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-filter-btn { padding: 8px 18px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; cursor: pointer; }
.dash-filter-btn.active { background: rgba(37,99,235,0.15); border-color: #2563EB; color: #2563EB; }

.dash-profile-form { max-width: 600px; }
.dash-profile-photo-section { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 28px; }
.dash-profile-img { width: 100px; height: 100px; border-radius: 50%; border: 3px solid #2563EB; object-fit: cover; }
.dash-photo-upload-btn { padding: 8px 20px; background: rgba(37,99,235,0.15); color: #2563EB; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; }
.dash-form-group { margin-bottom: 20px; }
.dash-form-group label { display: block; font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 8px; font-weight: 500; }
.dash-form-group input, .dash-form-group textarea, .dash-form-group select { width: 100%; padding: 14px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 14px; font-family: inherit; outline: none; box-sizing: border-box; }
.dash-form-group input:focus, .dash-form-group textarea:focus, .dash-form-group select:focus { border-color: #2563EB; }
.dash-trainer-user-status { display: none; margin: 7px 0 0; font-size: 12px; font-weight: 600; }
.dash-trainer-user-status.success { display: block; color: #4ADE80; }
.dash-trainer-user-status.warning { display: block; color: #FBBF24; }
.dash-form-section-title { font-size: 16px; font-weight: 600; margin: 28px 0 16px; color: rgba(255,255,255,0.8); }
.dash-avail-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.dash-avail-row { display: flex; align-items: center; gap: 16px; }
.dash-avail-row span { width: 100px; font-size: 14px; color: rgba(255,255,255,0.6); flex-shrink: 0; }
.dash-avail-input { flex: 1; padding: 12px; background: #111; border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 14px; outline: none; }
.dash-avail-input:focus { border-color: #2563EB; }
.dash-save-btn { width: 100%; padding: 14px; background: linear-gradient(135deg, #2563EB, #1E3A8A); color: #fff; border: none; border-radius: 12px; font-size: 16px; font-weight: 600; cursor: pointer; }
.dash-save-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.dash-announcement-card { max-width: 600px; padding: 24px; background: #0f0f0f; border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; }
.dash-announcement-card h2 { margin: 0 0 8px; font-size: 20px; }
.dash-announcement-card > p { margin: 0 0 24px; color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.5; }
.announcement-result { display: none; margin-top: 16px; padding: 12px 14px; border-radius: 10px; font-size: 13px; line-height: 1.4; }
.announcement-result.success { display: block; color: #86EFAC; background: rgba(34,197,94,0.12); border: 1px solid rgba(34,197,94,0.25); }
.announcement-result.error { display: block; color: #FCA5A5; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); }

.dash-empty { text-align: center; padding: 40px 20px; color: rgba(255,255,255,0.3); font-size: 14px; }
.dash-toast { position: fixed; bottom: calc(72px + 16px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 14px 24px; background: #22C55E; color: #fff; border-radius: 12px; font-size: 14px; font-weight: 500; z-index: 9999; animation: fadeInUp 0.3s; }
@keyframes fadeInUp { from { opacity: 0; transform: translateX(-50%) translateY(10px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }

.dash-chat-layout { display: flex; flex: 1; min-height: 0; background: #0a0a0a; }
.dash-chat-sidebar { width: 280px; border-right: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; flex-shrink: 0; }
.dash-chat-sidebar-header { padding: 16px 20px; font-size: 15px; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.06); color: rgba(255,255,255,0.8); }
.dash-chat-contacts { flex: 1; overflow-y: auto; }
.dash-chat-contact { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; transition: background 0.2s; border-bottom: 1px solid rgba(255,255,255,0.03); }
.dash-chat-contact:hover { background: rgba(255,255,255,0.04); }
.dash-chat-contact.active { background: rgba(37,99,235,0.1); border-left: 3px solid #2563EB; }
.dash-chat-contact-avatar { width: 40px; height: 40px; border-radius: 50%; background: rgba(37,99,235,0.2); display: flex; align-items: center; justify-content: center; color: #2563EB; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.dash-chat-contact-info { flex: 1; min-width: 0; }
.dash-chat-contact-name { font-size: 14px; font-weight: 600; color: #fff; display: block; }
.dash-chat-contact-preview { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.dash-chat-contact-time { font-size: 11px; color: rgba(255,255,255,0.3); flex-shrink: 0; }
.dash-chat-contact-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }
.dash-chat-contact-unread { width: 8px; height: 8px; border-radius: 50%; background: #2563EB; flex-shrink: 0; align-self: flex-end; }
.dash-chat-contact.has-unread .dash-chat-contact-name { color: #fff; font-weight: 700; }
.dash-chat-contact.has-unread .dash-chat-contact-preview { color: rgba(255,255,255,0.6); }
.dash-chat-contact.has-unread .dash-chat-contact-time { color: #2563EB; }

.dash-chat-main { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.dash-chat-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,0.06); background: #111; }
.dash-chat-back { display: none; background: none; border: none; color: #fff; cursor: pointer; padding: 4px; }
.dash-chat-header-info { display: flex; flex-direction: column; }
.dash-chat-header-name { font-size: 15px; font-weight: 600; color: #fff; }
.dash-chat-header-status { font-size: 12px; color: rgba(255,255,255,0.4); }

.dash-chat-messages { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior-y: contain; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dash-chat-date-divider { text-align: center; padding: 8px 0; font-size: 11px; color: rgba(255,255,255,0.3); }
.dash-msg-row { display: flex; flex-direction: column; margin-bottom: 8px; }
.dash-msg-row.trainer { align-items: flex-end; }
.dash-msg-row.client { align-items: flex-start; }
.dash-msg-seen { font-size: 10px; color: #2563EB; font-weight: 600; margin-top: 3px; padding-right: 4px; }
.dash-chat-bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; overflow-wrap: break-word; word-break: break-word; }
.dash-chat-bubble.trainer { align-self: flex-end; background: linear-gradient(135deg, #2563EB, #1E3A8A); color: #fff; border-bottom-right-radius: 4px; }
.dash-chat-bubble.client { align-self: flex-start; background: #1a1a1a; color: #fff; border-bottom-left-radius: 4px; }
.dash-msg-text { color: #fff; font-size: 14px; line-height: 1.5; }
.dash-chat-bubble-meta { font-size: 10px; opacity: 0.6; margin-top: 4px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dash-chat-bubble-name { font-size: 11px; font-weight: 600; margin-bottom: 2px; opacity: 0.7; }
.dash-chat-bubble img { max-width: 100%; width: 100%; display: block; border-radius: 10px; margin: 4px 0; cursor: pointer; }
.dash-chat-bubble video { max-width: 100%; width: 100%; display: block; border-radius: 10px; margin: 4px 0; }
.dash-msg-delete-btn { background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.4); padding: 0; display: flex; align-items: center; flex-shrink: 0; }
.dash-msg-delete-btn:hover { color: #ef4444; }

.dash-chat-input-bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)); border-top: 1px solid rgba(255,255,255,0.06); background: #111; flex-shrink: 0; box-sizing: border-box; width: 100%; }
.dash-chat-attach { cursor: pointer; color: rgba(255,255,255,0.5); display: flex; align-items: center; padding: 4px; flex-shrink: 0; }
.dash-chat-attach:hover { color: #2563EB; }
#dash-chat-text { flex: 1; min-width: 0; padding: 10px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; color: #fff; font-size: 14px; font-family: inherit; outline: none; resize: none; overflow-y: hidden; min-height: 40px; max-height: 120px; line-height: 1.4; display: block; box-sizing: border-box; }
#dash-chat-text:focus { border-color: #2563EB; }
#dash-chat-text::placeholder { color: rgba(255,255,255,0.3); }
#dash-chat-send { background: linear-gradient(135deg, #2563EB, #1E3A8A); border: none; color: #fff; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

.dash-checkin-list { display: flex; flex-direction: column; gap: 16px; }
.dash-checkin-card { background: #111; border-radius: 16px; padding: 18px; border: 1px solid rgba(255,255,255,0.06); }
.dash-checkin-card.new { border-left: 3px solid #2563EB; }
.dash-checkin-card.replied { opacity: 0.8; }
.dash-checkin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-checkin-client { display: flex; align-items: center; gap: 10px; }
.dash-checkin-name { display: block; font-weight: 600; font-size: 14px; color: #fff; }
.dash-checkin-date { display: block; font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.dash-checkin-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.dash-checkin-status.pending { background: rgba(37,99,235,0.15); color: #2563EB; }
.dash-checkin-status.replied { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-checkin-body { margin-bottom: 12px; }
.dash-checkin-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.dash-checkin-stat { background: rgba(255,255,255,0.04); border-radius: 10px; padding: 8px 14px; text-align: center; min-width: 70px; }
.dash-checkin-stat-label { display: block; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; }
.dash-checkin-stat-value { display: block; font-size: 14px; font-weight: 600; color: #fff; margin-top: 2px; }
.dash-checkin-notes { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; margin-top: 8px; }
.dash-checkin-notes-label { font-weight: 600; color: rgba(255,255,255,0.5); }
.dash-checkin-photo { margin-top: 10px; }
.dash-checkin-photo img { max-width: 200px; max-height: 200px; border-radius: 12px; cursor: pointer; object-fit: cover; border: 1px solid rgba(255,255,255,0.08); }
.dash-checkin-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.04); }
.dash-checkin-reply-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2); color: #2563EB; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.dash-checkin-reply-btn:hover { background: rgba(37,99,235,0.25); }
.dash-checkin-reply-panel { background: #111; border-radius: 16px; padding: 18px; border: 1px solid rgba(37,99,235,0.2); margin-top: 16px; }
.dash-checkin-reply-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-checkin-reply-header span { font-weight: 600; font-size: 14px; color: #2563EB; }
.dash-checkin-reply-header button { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; }
#dash-checkin-reply-text { width: 100%; min-height: 80px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; color: #fff; font-size: 14px; resize: vertical; margin-bottom: 10px; }
#dash-checkin-reply-text:focus { outline: none; border-color: rgba(37,99,235,0.4); }
#dash-checkin-reply-send { display: flex; align-items: center; gap: 8px; }

.dash-reports-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.dash-reports-gen-btn { display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: linear-gradient(135deg, #2563EB, #1E3A8A); border: none; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; }
.dash-reports-gen-btn:hover { opacity: 0.9; }
.dash-reports-gen-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dash-reports-list { display: flex; flex-direction: column; gap: 16px; }
.dash-report-card { background: #111; border-radius: 16px; padding: 20px; border: 1px solid rgba(255,255,255,0.06); }
.dash-report-card.has-feedback { border-left: 3px solid #22C55E; }
.dash-report-card.no-feedback { border-left: 3px solid #2563EB; }
.dash-report-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.dash-report-client { display: flex; align-items: center; gap: 10px; }
.dash-report-name { display: block; font-weight: 600; font-size: 15px; color: #fff; }
.dash-report-week { display: block; font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.dash-report-status { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 20px; }
.dash-report-status.sent { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-report-status.pending { background: rgba(37,99,235,0.15); color: #2563EB; }
.dash-report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-bottom: 14px; }
.dash-report-stat { background: rgba(255,255,255,0.03); border-radius: 12px; padding: 12px; text-align: center; border: 1px solid rgba(255,255,255,0.04); }
.dash-report-stat-value { display: block; font-size: 20px; font-weight: 700; color: #fff; }
.dash-report-stat-value.purple { color: #2563EB; }
.dash-report-stat-value.blue { color: #3B82F6; }
.dash-report-stat-value.green { color: #22C55E; }
.dash-report-stat-value.orange { color: #F59E0B; }
.dash-report-stat-value.red { color: #EF4444; }
.dash-report-stat-label { display: block; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.dash-report-weight-change { font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.dash-report-weight-change .positive { color: #EF4444; }
.dash-report-weight-change .negative { color: #22C55E; }
.dash-report-weight-change .neutral { color: rgba(255,255,255,0.4); }
.dash-report-feedback-sent { background: rgba(34,197,94,0.06); border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; border: 1px solid rgba(34,197,94,0.1); }
.dash-report-feedback-label { font-size: 11px; color: #22C55E; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: block; margin-bottom: 4px; }
.dash-report-feedback-text { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.dash-report-actions { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.04); }
.dash-report-feedback-btn { display: flex; align-items: center; gap: 6px; padding: 8px 16px; background: rgba(37,99,235,0.12); border: 1px solid rgba(37,99,235,0.2); color: #2563EB; border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.2s; }
.dash-report-feedback-btn:hover { background: rgba(37,99,235,0.25); }
.dash-report-feedback-panel { background: #111; border-radius: 16px; padding: 18px; border: 1px solid rgba(37,99,235,0.2); margin-top: 16px; }
.dash-report-feedback-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.dash-report-feedback-header span { font-weight: 600; font-size: 14px; color: #2563EB; }
.dash-report-feedback-header button { background: none; border: none; color: rgba(255,255,255,0.4); cursor: pointer; }
#dash-report-feedback-text { width: 100%; min-height: 80px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 12px; color: #fff; font-size: 14px; resize: vertical; margin-bottom: 10px; }
#dash-report-feedback-text:focus { outline: none; border-color: rgba(37,99,235,0.4); }
#dash-report-feedback-send { display: flex; align-items: center; gap: 8px; }
.dash-report-week-group { margin-bottom: 8px; }
.dash-report-week-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.5); padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 12px; }

.dash-sidebar.open { transform: translateX(0); }
.dash-overlay { display: none; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 99; }
.dash-overlay.active { display: block; }

.dash-chat-sidebar { width: 100%; position: absolute; z-index: 10; background: #0a0a0a; height: 100%; }
.dash-chat-sidebar.hidden { display: none; }
.dash-chat-back { display: block; }
.dash-chat-layout { position: relative; }

.dash-back-btn { display: flex; align-items: center; gap: 6px; background: none; border: none; color: #2563EB; font-size: 14px; font-weight: 500; cursor: pointer; padding: 0; margin-bottom: 16px; }
.dash-client-card { background: #111; border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background 0.2s; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); }
.dash-client-card:hover { background: #1a1a1a; border-color: rgba(37,99,235,0.15); }
.dash-client-card:active { background: #151515; }
.dash-client-avatar { width: 44px; height: 44px; border-radius: 50%; background: rgba(37,99,235,0.15); color: #2563EB; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden; }
.dash-client-avatar img { width: 100%; height: 100%; object-fit: cover; }
.dash-client-info { flex: 1; min-width: 0; }
.dash-client-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-client-meta { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.dash-client-badge { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 8px; flex-shrink: 0; }
.dash-client-badge.active { background: rgba(34,197,94,0.15); color: #22C55E; }
.dash-client-badge.free { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.4); }
.dash-client-badge.premium { background: rgba(37,99,235,0.15); color: #2563EB; }

.client-profile-header { background: #111; border-radius: 16px; padding: 20px; text-align: center; margin-bottom: 16px; border: 1px solid rgba(255,255,255,0.04); }
.client-profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: rgba(37,99,235,0.15); color: #2563EB; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 24px; margin: 0 auto 12px; overflow: hidden; border: 3px solid #2563EB; }
.client-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.client-profile-name { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.client-profile-email { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 12px; }
.client-profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.client-profile-stat { background: rgba(255,255,255,0.03); border-radius: 10px; padding: 10px 6px; text-align: center; }
.client-profile-stat-val { display: block; font-size: 16px; font-weight: 700; color: #2563EB; }
.client-profile-stat-label { display: block; font-size: 10px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 2px; }

.client-profile-tabs { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.client-profile-tabs::-webkit-scrollbar { display: none; }
.client-tab-btn { background: rgba(255,255,255,0.04); border: none; color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; padding: 8px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: all 0.2s; }
.client-tab-btn.active { background: rgba(37,99,235,0.15); color: #2563EB; }
.client-tab-content { display: none; }
.client-tab-content.active { display: block; }

.client-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.client-detail-item { background: #111; border-radius: 12px; padding: 12px; border: 1px solid rgba(255,255,255,0.04); }
.client-detail-label { display: block; font-size: 10px; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.client-detail-value { display: block; font-size: 14px; font-weight: 600; color: #fff; }

.client-photos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 16px; }
.client-photos-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid rgba(255,255,255,0.06); }

.client-checkin-card { background: #111; border-radius: 12px; padding: 14px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); }
.client-checkin-date { font-size: 11px; color: #2563EB; font-weight: 600; margin-bottom: 8px; }
.client-checkin-row { display: flex; gap: 12px; flex-wrap: wrap; }
.client-checkin-item { font-size: 12px; color: rgba(255,255,255,0.6); }
.client-checkin-item span { font-weight: 600; color: #fff; }

.client-workout-card { background: #111; border-radius: 12px; padding: 14px; margin-bottom: 8px; border: 1px solid rgba(255,255,255,0.04); display: flex; justify-content: space-between; align-items: center; }
.client-workout-name { font-size: 14px; font-weight: 600; color: #fff; }
.client-workout-date { font-size: 11px; color: rgba(255,255,255,0.4); margin-top: 2px; }
.client-workout-stats { text-align: right; }
.client-workout-stats span { display: block; font-size: 12px; color: rgba(255,255,255,0.5); }
.client-workout-stats span:first-child { color: #2563EB; font-weight: 600; }

.client-plan-section { background: #111; border-radius: 14px; padding: 16px; margin-bottom: 12px; border: 1px solid rgba(255,255,255,0.04); }
.client-plan-title { font-size: 14px; font-weight: 600; color: #2563EB; margin-bottom: 10px; }
.client-plan-day { font-size: 13px; color: rgba(255,255,255,0.7); padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.client-plan-day:last-child { border-bottom: none; }
.client-plan-day strong { color: #fff; }

.client-msg-bubble { padding: 10px 14px; border-radius: 14px; margin-bottom: 6px; max-width: 85%; font-size: 13px; line-height: 1.4; }
.client-msg-bubble.client { background: #111; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.06); align-self: flex-start; }
.client-msg-bubble.trainer { background: rgba(37,99,235,0.15); color: #fff; align-self: flex-end; margin-left: auto; }
.client-msg-time { font-size: 10px; color: rgba(255,255,255,0.3); margin-top: 2px; }
.client-msg-list { display: flex; flex-direction: column; gap: 4px; }

/* Return to App button */
.dash-nav-divider { height: 1px; background: rgba(255,255,255,0.06); margin: 12px 16px; }
.dash-return-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 8px 16px; background: rgba(37,99,235,0.1); border: 1px solid rgba(37,99,235,0.25); color: #2563EB; font-size: 14px; font-weight: 600; border-radius: 10px; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.dash-return-btn:hover { background: rgba(37,99,235,0.18); border-color: rgba(37,99,235,0.5); }

/* Clickable cards */
.dash-card-clickable { cursor: pointer; transition: background 0.15s, transform 0.12s; }
.dash-card-clickable:hover { background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.dash-card-clickable:active { transform: scale(0.98); }

/* Appointment detail panel */
.appt-detail-card { display: flex; flex-direction: column; align-items: center; padding: 24px 16px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; margin-bottom: 20px; text-align: center; }
.appt-detail-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#1E3A8A); display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; color: #fff; overflow: hidden; margin-bottom: 12px; }
.appt-detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.appt-detail-name { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.appt-detail-email { font-size: 13px; color: rgba(255,255,255,0.45); }
.appt-detail-rows { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.appt-detail-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.appt-detail-row:last-child { border-bottom: none; }
.appt-detail-label { font-size: 13px; color: rgba(255,255,255,0.45); }
.appt-detail-value { font-size: 14px; font-weight: 500; color: #fff; text-align: right; }
.appt-detail-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.appt-msg-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px; background: linear-gradient(135deg,#2563EB,#1E3A8A); border: none; border-radius: 12px; color: #fff; font-size: 15px; font-weight: 600; cursor: pointer; transition: opacity 0.2s; margin-top: 4px; }
.appt-msg-btn:hover { opacity: 0.88; }

/* ── Users tab ─────────────────────────────────────────────── */
.dash-users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.dash-users-count { font-size: 13px; color: rgba(255,255,255,0.45); font-weight: 500; white-space: nowrap; }
.dash-users-search { flex: 1; min-width: 180px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 9px 14px; color: #fff; font-size: 14px; outline: none; transition: border-color 0.2s; }
.dash-users-search::placeholder { color: rgba(255,255,255,0.3); }
.dash-users-search:focus { border-color: rgba(37,99,235,0.5); }

.dash-user-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; margin-bottom: 8px; transition: background 0.15s; }
.dash-user-card:hover { background: rgba(255,255,255,0.055); }
.dash-user-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg,#2563EB,#1E3A8A); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: #fff; flex-shrink: 0; }
.dash-user-info { flex: 1; min-width: 0; }
.dash-user-name { font-size: 15px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-email { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-user-meta { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 3px; }
.dash-user-joined { text-align: right; flex-shrink: 0; }
.dash-user-joined-label { display: block; font-size: 11px; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.05em; }
.dash-user-joined-date { display: block; font-size: 12px; color: rgba(255,255,255,0.55); margin-top: 2px; font-weight: 500; }

/* Stat cards are now tappable — visual feedback on hover/press */
.dash-stat-clickable {
    transition: transform 0.15s ease, background 0.15s ease;
}
.dash-stat-clickable:hover {
    background: #1a1a1a;
    transform: scale(1.02);
}
.dash-stat-clickable:active {
    transform: scale(0.97);
    background: #1e1e1e;
}

/* ── Mobile sizing tweaks ─────────────────────────────────── */
.dash-header h1 { font-size: 16px; }
.dash-stats-grid { gap: 8px; margin-bottom: 16px; }
.dash-stat-card { padding: 12px; border-radius: 14px; }
.dash-stat-value { font-size: 18px; }
.dash-stat-label { font-size: 11px; }
.dash-stat-icon { width: 36px; height: 36px; border-radius: 10px; }
.dash-quick-grid { grid-template-columns: repeat(3,1fr); gap: 8px; }
.dash-quick-card { padding: 14px 8px; gap: 8px; border-radius: 14px; }
.dash-quick-icon { width: 36px; height: 36px; border-radius: 10px; }
.dash-quick-label { font-size: 11px; }
.dash-card { padding: 12px 14px; border-radius: 12px; gap: 10px; }
.dash-card-title { font-size: 13px; }
.dash-card-sub { font-size: 11px; }
.dash-card-avatar { width: 36px; height: 36px; font-size: 13px; }
.dash-section { margin-bottom: 20px; }
.dash-section h3 { font-size: 14px; margin-bottom: 10px; }

/* Back button in header */
#dash-back-btn { display: none; background: none; border: none; color: #2563EB; cursor: pointer; padding: 4px 6px 4px 0; flex-shrink: 0; }
#dash-back-btn.visible { display: flex; align-items: center; }

/* ── Bottom Navigation Bar ────────────────────────────────── */
.dash-bottom-nav {
    flex-shrink: 0;
    display: flex;
    align-items: stretch;
    background: rgba(10,10,10,0.97);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    z-index: 90;
}
.dash-bn-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 10px 4px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.38);
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: color 0.18s;
}
.dash-bn-btn.active { color: #2563EB; }
.dash-bn-btn svg { width: 22px; height: 22px; }
.dash-bn-badge {
    position: absolute;
    top: 7px;
    right: calc(50% - 16px);
    min-width: 16px;
    height: 16px;
    background: #EF4444;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Messages tab: make dash-content flex so chat fills the space.
   overflow: hidden is critical — without it, overflow-y: auto from the base
   rule prevents the flex chain from sizing children correctly on mobile. */
.dash-content.is-messages {
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.dash-content.is-messages #tab-messages.active {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.dash-content.is-messages .dash-chat-layout {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ── Assign Workout Full Screen ───────────────────────────── */
.aw-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #000;
    z-index: 200;
    display: flex;
    flex-direction: column;
}
.aw-panel {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    background: #000;
}
/* Remove the old drag handle */
.aw-handle { display: none; }
/* Full-screen top header bar — matches .dash-header style */
.aw-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(0,0,0,0.95);
    flex-shrink: 0;
}
.aw-back-btn {
    background: none;
    border: none;
    color: #2563EB;
    cursor: pointer;
    padding: 4px 6px 4px 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.aw-header-info { flex: 1; min-width: 0; }
.aw-title { font-size: 17px; font-weight: 700; color: #fff; }
.aw-subtitle { font-size: 12px; color: rgba(255,255,255,0.4); margin-top: 2px; }
/* Hide the old X close button */
.aw-close { display: none; }
/* Tabs */
.aw-tabs { display: flex; gap: 0; padding: 12px 18px 0; flex-shrink: 0; border-bottom: 1px solid rgba(255,255,255,0.07); }
.aw-tab { flex: 1; padding: 10px 0; background: none; border: none; border-bottom: 2px solid transparent; color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600; cursor: pointer; transition: color .2s; }
.aw-tab.active { color: #3B82F6; border-bottom-color: #3B82F6; }
/* Tab content — scrollable middle section */
.aw-tab-content { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 18px; display: flex; flex-direction: column; gap: 0; min-height: 0; }
/* Saved tab */
.aw-saved-list { display: flex; flex-direction: column; gap: 8px; }
.aw-saved-item { display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 11px 13px; gap: 10px; }
.aw-saved-info { flex: 1; min-width: 0; }
.aw-saved-name { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-saved-meta { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }
.aw-saved-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.aw-saved-icon-btn { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); color: rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.aw-saved-icon-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.aw-saved-icon-btn.aw-delete-btn:hover { background: rgba(239,68,68,0.15); border-color: rgba(239,68,68,0.3); color: #f87171; }
.aw-saved-btn { padding: 7px 13px; background: linear-gradient(135deg,#1E3A8A,#2563EB); border: none; border-radius: 8px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
/* New tab */
.aw-build-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; flex-shrink: 0; }
.aw-input { width: 100%; box-sizing: border-box; padding: 11px 13px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; color: #fff; font-size: 14px; outline: none; }
.aw-input:focus { border-color: rgba(37,99,235,0.6); }
.aw-type-toggle { display: flex; background: rgba(255,255,255,0.06); border-radius: 10px; padding: 3px; gap: 3px; }
.aw-type-btn { flex: 1; padding: 7px 0; background: none; border: none; color: rgba(255,255,255,0.4); font-size: 13px; font-weight: 600; border-radius: 8px; cursor: pointer; }
.aw-type-btn.active { background: rgba(37,99,235,0.7); color: #fff; }
/* Plan section */
.aw-plan-section { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; flex-shrink: 0; }
.aw-plan-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.aw-plan-label { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.7px; }
.aw-plan-count { font-size: 11px; color: #3B82F6; font-weight: 600; }
.aw-plan-list { display: flex; flex-direction: column; gap: 8px; }
.aw-plan-empty { font-size: 12px; color: rgba(255,255,255,0.25); text-align: center; padding: 8px 0; }
.aw-plan-item { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 9px 10px 10px; }
.aw-plan-item-row { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.aw-plan-item-num { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg,#1E3A8A,#2563EB); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; flex-shrink: 0; }
.aw-plan-item-name { font-size: 13px; font-weight: 600; color: #fff; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aw-plan-item-rm { background: none; border: none; color: rgba(255,255,255,0.25); font-size: 18px; cursor: pointer; line-height: 1; padding: 0; flex-shrink: 0; }
.aw-plan-item-inputs { display: flex; align-items: center; gap: 6px; }
.aw-sr-field { display: flex; flex-direction: column; align-items: center; gap: 3px; flex: 1; }
.aw-sr-dur-field { flex: 1.2; }
.aw-sr-label { font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.5px; }
.aw-sr-input { width: 100%; padding: 6px 4px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; color: #fff; font-size: 14px; font-weight: 600; text-align: center; outline: none; }
.aw-sr-input:focus { border-color: rgba(37,99,235,0.6); background: rgba(37,99,235,0.1); }
.aw-sr-sep { font-size: 13px; color: rgba(255,255,255,0.25); font-weight: 600; flex-shrink: 0; }
/* Picker section */
.aw-picker-section { display: flex; flex-direction: column; gap: 8px; }
.aw-search-input { width: 100%; box-sizing: border-box; padding: 10px 13px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; color: #fff; font-size: 13px; outline: none; }
.aw-search-input:focus { border-color: rgba(37,99,235,0.5); }
.aw-muscle-pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.aw-muscle-pills::-webkit-scrollbar { display: none; }
.aw-mpill { padding: 5px 13px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.09); border-radius: 20px; color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; }
.aw-mpill.active { background: rgba(37,99,235,0.25); border-color: rgba(37,99,235,0.5); color: #60A5FA; }
.aw-exercise-picker { display: flex; flex-direction: column; gap: 6px; padding-bottom: 6px; }
.aw-picker-card { display: flex; align-items: center; gap: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.aw-picker-card.in-plan { background: rgba(37,99,235,0.12); border-color: rgba(37,99,235,0.35); }
.aw-picker-card:active { background: rgba(255,255,255,0.08); }
.aw-picker-card-info { flex: 1; min-width: 0; }
.aw-picker-card-name { font-size: 13px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aw-picker-card-muscle { font-size: 11px; color: rgba(255,255,255,0.38); margin-top: 2px; }
.aw-picker-card-add { width: 28px; height: 28px; border-radius: 50%; background: rgba(37,99,235,0.2); border: 1.5px solid rgba(37,99,235,0.4); color: #3B82F6; font-size: 18px; font-weight: 300; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .15s; }
.aw-picker-card.in-plan .aw-picker-card-add { background: rgba(37,99,235,0.5); color: #fff; content: '✓'; }
/* Footer — fixed at bottom of panel, outside scroll area */
.aw-footer { flex-shrink: 0; padding: 12px 18px; padding-bottom: max(12px, env(safe-area-inset-bottom, 12px)); background: #111; border-top: 1px solid rgba(255,255,255,0.08); }
.aw-assign-btn { width: 100%; padding: 15px; background: linear-gradient(135deg,#1E3A8A,#2563EB,#3B82F6); border: none; border-radius: 14px; color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 16px rgba(37,99,235,0.35); }
.aw-assign-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Assign Workout button on client profile ─────────────── */
.assign-workout-btn { display: flex; align-items: center; gap: 8px; margin: 14px auto 0; padding: 10px 20px; background: linear-gradient(135deg, #1E3A8A, #2563EB); border: none; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: 0 4px 12px rgba(37,99,235,0.25); }

/* ── Workout card in admin chat ──────────────────────────── */
.dash-workout-card { background: linear-gradient(160deg, #0F1D3D 0%, #112054 100%); border: 1px solid rgba(59,130,246,0.4); border-radius: 16px; padding: 14px; max-width: 88%; width: 88%; align-self: flex-end; box-shadow: 0 4px 16px rgba(37,99,235,0.25); overflow: hidden; box-sizing: border-box; word-break: break-word; overflow-wrap: break-word; }
.dash-workout-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dash-workout-card-icon { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg,#1E3A8A,#2563EB); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dash-workout-card-title { font-size: 14px; font-weight: 700; color: #fff; }
.dash-workout-card-meta { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.dash-workout-card-label { font-size: 10px; font-weight: 700; color: #60A5FA; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.dash-workout-card-start { width: 100%; padding: 9px; background: linear-gradient(135deg,#1E3A8A,#2563EB,#3B82F6); border: none; border-radius: 10px; color: #fff; font-size: 12px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; box-shadow: 0 3px 8px rgba(37,99,235,0.3); }
.dash-workout-card-exercises { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
.dash-workout-card-ex { display: flex; align-items: center; gap: 7px; font-size: 12px; color: rgba(255,255,255,0.85); }
.dash-workout-card-dot { width: 5px; height: 5px; border-radius: 50%; background: #3B82F6; flex-shrink: 0; }
.dash-workout-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 10px; color: rgba(255,255,255,0.4); }


/* ── Mobile-responsive chat tweaks ─────────────────────────────── */
.dash-workout-card-title,
.dash-workout-card-meta { overflow-wrap: break-word; }
.dash-workout-card-ex { flex-wrap: wrap; }
.dash-workout-card-footer { flex-wrap: wrap; gap: 4px; }
.dash-msg-row { max-width: 100%; }

/* ≤ 375 px — iPhone SE / small Android */
@media (max-width: 375px) {
    .dash-chat-messages { padding: 10px 8px; gap: 6px; }
    .dash-chat-bubble { max-width: 88%; font-size: 13px; padding: 9px 11px; border-radius: 14px; }
    .dash-chat-bubble-meta { font-size: 10px; }
    .dash-chat-header { padding: 11px 12px; gap: 8px; }
    .dash-chat-header-name { font-size: 14px; }
    .dash-chat-input-bar { padding: 8px 10px; gap: 6px; }
    #dash-chat-text { padding: 9px 11px; font-size: 13px; }
    #dash-chat-send { width: 34px; height: 34px; }
    .dash-chat-contact { padding: 12px 14px; gap: 10px; }
    .dash-workout-card { max-width: 92%; width: 92%; padding: 12px; }
    .dash-workout-card-title { font-size: 13px; }
    .dash-workout-card-ex { font-size: 11px; }
}

/* ── Client search bar ─────────────────────────────────────────── */
.clients-search-wrap {
    position: relative;
    margin-bottom: 14px;
}
.clients-search-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.35);
    pointer-events: none;
}
.clients-search-input {
    width: 100%;
    box-sizing: border-box;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 11px 14px 11px 38px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}
.clients-search-input::placeholder { color: rgba(255,255,255,0.35); }
.clients-search-input:focus { border-color: rgba(37,99,235,0.5); box-shadow: 0 0 0 3px rgba(168,85,247,0.1); }
.clients-search-input::-webkit-search-cancel-button { -webkit-appearance: none; cursor: pointer; }
.clients-no-results {
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
    padding: 32px 0;
}

/* ── Appointment detail: new inline form elements ── */
.appt-detail-section-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.35); margin: 18px 0 8px; }
.appt-detail-inline-form { display: flex; gap: 8px; align-items: flex-start; }
.appt-detail-notes-form { flex-direction: column; }
.appt-inline-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 13px; outline: none; min-width: 0; }
.appt-inline-input:focus { border-color: rgba(37,99,235,0.5); }
.appt-inline-textarea { width: 100%; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; padding: 10px 12px; color: #fff; font-size: 13px; outline: none; resize: vertical; min-height: 80px; box-sizing: border-box; font-family: inherit; margin-bottom: 8px; }
.appt-inline-textarea:focus { border-color: rgba(37,99,235,0.5); }
.appt-inline-save-btn { background: rgba(37,99,235,0.2); border: 1px solid rgba(37,99,235,0.4); color: #93C5FD; border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
.appt-inline-save-btn:hover { background: rgba(37,99,235,0.35); }
.appt-meeting-link-view { display: inline-block; margin-top: 8px; font-size: 13px; color: #60A5FA; text-decoration: none; }
.appt-meeting-link-view:hover { text-decoration: underline; }
.appt-detail-notes-view { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; padding: 12px; font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.55; margin-bottom: 12px; }

/* ═══════════════════════════════════════════════════════════════
   AVAILABILITY MANAGER  (av- prefix)
   ═══════════════════════════════════════════════════════════════ */
#tab-availability { overflow-y: auto; }
.av-container { padding: 20px 20px 40px; max-width: 760px; display: flex; flex-direction: column; gap: 24px; }

/* View toggle */
.av-view-toggle { display: flex; gap: 6px; background: rgba(255,255,255,0.05); border-radius: 12px; padding: 4px; }
.av-view-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; border: none; background: transparent; color: rgba(255,255,255,0.5); font-size: 13px; font-weight: 500; border-radius: 9px; cursor: pointer; transition: all 0.15s; }
.av-view-btn.active { background: rgba(37,99,235,0.2); color: #93C5FD; }
.av-view-btn svg { flex-shrink: 0; }

/* Calendar nav */
.av-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.av-cal-month-label { font-size: 15px; font-weight: 600; color: #fff; }
.av-nav-btn { background: rgba(255,255,255,0.06); border: none; color: rgba(255,255,255,0.7); width: 32px; height: 32px; border-radius: 8px; font-size: 20px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.15s; line-height: 1; }
.av-nav-btn:hover { background: rgba(255,255,255,0.12); }

/* Monthly calendar */
.av-cal-weekdays { display: grid; grid-template-columns: repeat(7,1fr); margin-bottom: 4px; }
.av-cal-weekdays span { text-align: center; font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.35); padding: 4px 0; }
.av-cal-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: 3px; }
.av-cal-day { background: transparent; border: 1px solid transparent; border-radius: 9px; padding: 6px 2px 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-height: 52px; transition: background 0.12s, border-color 0.12s; }
.av-cal-day:hover:not(.empty) { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.1); }
.av-cal-day.empty { pointer-events: none; }
.av-cal-day.av-day-past { opacity: 0.35; }
.av-cal-day.av-day-today .av-day-num { background: #2563EB; color: #fff; border-radius: 50%; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.av-day-num { font-size: 12px; color: rgba(255,255,255,0.8); line-height: 1; }
.av-day-time { font-size: 9px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; max-width: 100%; text-overflow: ellipsis; }
.av-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.av-dot-avail { background: #22c55e; }
.av-dot-override { background: #60a5fa; }
.av-dot-blocked { background: #ef4444; }
.av-legend { display: flex; gap: 14px; padding-top: 10px; font-size: 11px; color: rgba(255,255,255,0.45); flex-wrap: wrap; }
.av-legend span { display: flex; align-items: center; gap: 5px; }
.av-legend .av-dot { width: 8px; height: 8px; }

/* Weekly view */
.av-week-grid { display: flex; flex-direction: column; gap: 6px; }
.av-week-row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: background 0.12s; }
.av-week-row:hover { background: rgba(255,255,255,0.07); }
.av-week-row.av-week-today { border-color: rgba(37,99,235,0.4); background: rgba(37,99,235,0.06); }
.av-week-row.av-week-past { opacity: 0.4; }
.av-week-day-col { display: flex; flex-direction: column; align-items: center; min-width: 36px; }
.av-week-day-name { font-size: 11px; font-weight: 600; color: rgba(255,255,255,0.4); text-transform: uppercase; }
.av-week-day-date { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.2; }
.av-week-info-col { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.av-week-badge { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 20px; width: fit-content; }
.av-week-badge.avail { background: rgba(34,197,94,0.15); color: #86efac; }
.av-week-badge.custom { background: rgba(96,165,250,0.15); color: #93c5fd; }
.av-week-badge.blocked { background: rgba(239,68,68,0.15); color: #fca5a5; }
.av-week-badge.none { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.3); }
.av-week-time { font-size: 12px; color: rgba(255,255,255,0.5); }
.av-week-edit-btn { background: rgba(255,255,255,0.07); border: none; color: rgba(255,255,255,0.5); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.12s; }
.av-week-edit-btn:hover { background: rgba(255,255,255,0.14); color: #fff; }

/* List view */
.av-list { display: flex; flex-direction: column; gap: 0; }
.av-list-month { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: 0.08em; padding: 12px 4px 6px; }
.av-list-item { display: flex; align-items: center; gap: 12px; background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 11px 4px; cursor: pointer; width: 100%; text-align: left; transition: background 0.1s; border-radius: 8px; }
.av-list-item:hover { background: rgba(255,255,255,0.04); }
.av-list-date { display: flex; flex-direction: column; align-items: center; min-width: 34px; }
.av-list-weekday { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.35); text-transform: uppercase; }
.av-list-daynum { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.1; }
.av-list-daynum.today { color: #2563EB; }
.av-list-info { flex: 1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.av-list-label { font-size: 13px; color: rgba(255,255,255,0.75); }
.av-list-blocked .av-list-label { color: rgba(239,68,68,0.8); }
.av-list-override-badge { font-size: 10px; font-weight: 600; background: rgba(96,165,250,0.15); color: #93c5fd; padding: 2px 7px; border-radius: 20px; }
.av-list-arrow { color: rgba(255,255,255,0.2); flex-shrink: 0; }
.av-list-empty { padding: 40px 0; text-align: center; color: rgba(255,255,255,0.3); font-size: 13px; line-height: 1.6; }

/* Recurring rules */
.av-rules-section, .av-repeat-panel { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.av-section-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: #fff; margin: 0; }
.av-section-sub { font-size: 12px; color: rgba(255,255,255,0.4); margin: 0; line-height: 1.5; }
.av-rules-grid { display: flex; flex-direction: column; gap: 8px; }
.av-rule-row { display: flex; align-items: center; gap: 12px; }
.av-rule-label { display: flex; align-items: center; gap: 8px; min-width: 120px; cursor: pointer; }
.av-rule-check { width: 16px; height: 16px; accent-color: #2563EB; flex-shrink: 0; cursor: pointer; }
.av-rule-day { font-size: 13px; color: rgba(255,255,255,0.8); }
.av-rule-times { display: flex; align-items: center; gap: 6px; }
.av-rule-times.av-rule-disabled { opacity: 0.3; pointer-events: none; }
.av-rule-time { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; padding: 6px 8px; width: 100px; }
.av-rule-time:focus { outline: none; border-color: rgba(37,99,235,0.5); }
.av-rule-sep { color: rgba(255,255,255,0.3); font-size: 14px; }
.av-save-rules-btn { background: #2563EB; color: #fff; border: none; border-radius: 12px; padding: 11px 20px; font-size: 14px; font-weight: 600; cursor: pointer; align-self: flex-start; transition: opacity 0.15s; }
.av-save-rules-btn:hover { opacity: 0.85; }
.av-save-rules-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Repeat panel */
.av-repeat-form { display: flex; flex-direction: column; gap: 12px; }
.av-repeat-row { display: flex; align-items: center; gap: 10px; }
.av-repeat-row label { font-size: 13px; color: rgba(255,255,255,0.6); min-width: 100px; }
.av-repeat-input { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; padding: 7px 10px; }
.av-repeat-input:focus { outline: none; border-color: rgba(37,99,235,0.5); }
.av-repeat-num { width: 70px; text-align: center; }
.av-repeat-weeks-row { display: flex; align-items: center; gap: 8px; }
.av-repeat-weeks-row span { font-size: 13px; color: rgba(255,255,255,0.5); }
.av-repeat-btn { background: rgba(37,99,235,0.15); border: 1px solid rgba(37,99,235,0.35); color: #93C5FD; border-radius: 12px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; align-self: flex-start; transition: background 0.15s; }
.av-repeat-btn:hover { background: rgba(168,85,247,0.25); }
.av-repeat-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Date modal */
.av-date-modal { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; justify-content: center; }
.av-modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.av-modal-card { position: relative; z-index: 1; background: #1a1a1a; border: 1px solid rgba(255,255,255,0.1); border-radius: 20px 20px 0 0; padding: 24px; width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 18px; }
.av-modal-header { display: flex; align-items: flex-start; justify-content: space-between; }
.av-modal-title { font-size: 16px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.av-modal-source { font-size: 12px; padding: 0; }
.av-src-override { color: #93c5fd; }
.av-src-rule { color: rgba(255,255,255,0.4); }
.av-src-none { color: rgba(255,255,255,0.3); }
.av-modal-close { background: rgba(255,255,255,0.08); border: none; color: rgba(255,255,255,0.6); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.av-modal-close:hover { background: rgba(255,255,255,0.14); }
.av-modal-body { display: flex; flex-direction: column; gap: 14px; }
.av-modal-type-toggle { display: flex; gap: 6px; }
.av-modal-type-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border: 1px solid rgba(255,255,255,0.1); background: rgba(255,255,255,0.04); color: rgba(255,255,255,0.5); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; }
.av-modal-type-btn.active[data-type="available"] { background: rgba(34,197,94,0.15); border-color: rgba(34,197,94,0.4); color: #86efac; }
.av-modal-type-btn.active[data-type="blocked"] { background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); color: #fca5a5; }
.av-time-fields { display: flex; flex-direction: column; gap: 10px; }
.av-time-row { display: flex; align-items: center; gap: 10px; }
.av-time-row label { font-size: 13px; color: rgba(255,255,255,0.5); min-width: 36px; }
.av-time-input { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 14px; padding: 8px 10px; flex: 1; }
.av-time-input:focus { outline: none; border-color: rgba(37,99,235,0.5); }
.av-note-field { display: flex; flex-direction: column; gap: 6px; }
.av-note-field label { font-size: 12px; color: rgba(255,255,255,0.45); }
.av-optional { opacity: 0.6; }
.av-note-input { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; color: #fff; font-size: 13px; padding: 9px 12px; width: 100%; box-sizing: border-box; }
.av-note-input:focus { outline: none; border-color: rgba(37,99,235,0.5); }
.av-note-input::placeholder { color: rgba(255,255,255,0.25); }
.av-modal-actions { display: flex; flex-direction: column; gap: 8px; padding-bottom: env(safe-area-inset-bottom, 8px); }
.av-modal-save-btn { background: #2563EB; color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s; }
.av-modal-save-btn:hover { opacity: 0.88; }
.av-modal-save-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.av-modal-delete-btn { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.25); color: #fca5a5; border-radius: 12px; padding: 11px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.15s; }
.av-modal-delete-btn:hover { background: rgba(239,68,68,0.2); }

@media (min-width: 768px) {
  .av-modal-card { border-radius: 20px; margin-bottom: 40px; }
  .av-rule-row { gap: 16px; }
}

/* Check-in videos may appear in either the inbox card or client check-in view. */
.dash-checkin-video {
    display: block;
    width: 100%;
    max-width: min(100%, 560px);
    max-height: 420px;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #080d17;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-top: 10px;
}
.dash-checkin-photo,
.client-checkin-card {
    min-width: 0;
    max-width: 100%;
}
.dash-checkin-video:focus-visible {
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}
