/* Shared workspace usability: clear type, comfortable controls and task hierarchy. */
html { scroll-padding-top: 24px; }
input, select, textarea { font-size: 16px; max-width: 100%; }
.modal-form input, .modal-form select, .modal-form textarea, .auth-form input { font-size: 16px; }
input, select { min-height: 44px; }
.modal-form label, .auth-form label { font-size: 14px; line-height: 1.5; }
.page-heading p, .card-head p, .form-hint, .checkin-help, .access-note,
.settings-action p, .cloud-bar, .setup-mini small, .help-task p { font-size: 14px; line-height: 1.6; }
.page-heading p { max-width: 64ch; }
.page-heading h1 { font-size: clamp(26px,2.4vw,32px); line-height: 1.2; margin: 9px 0 12px; }
.small-overline { font-size: 11px; letter-spacing: .1em; }
.data-table td { font-size: 14px; padding: 16px 20px; vertical-align: middle; }
.data-table td strong { font-size: 14px; }
.data-table th, .data-table small, .cell-detail, .table-bottom { font-size: 12px; line-height: 1.5; }
.data-table th { padding: 15px 20px; letter-spacing: .02em; }
.table-actions button { width: 44px; height: 44px; flex-shrink: 0; }
.table-actions .member-assign-button { width: auto; padding: 0 10px; gap: 5px; display: inline-flex; border: 1px solid var(--control-line); color: var(--gold); }
.member-assign-button span { font-size: 13px; }
.btn { white-space: normal; text-align: center; }
.icon-btn, .round-avatar { min-width: 44px; min-height: 44px; }
.text-button, .inline-link { min-height: 44px; }
.search-field { height: 48px; min-height: 48px; max-width: 420px; }
.search-field input { min-height: 44px; height: 44px; font-size: 16px; background: transparent; }
.modal-head p, .auth-lead, .auth-switch, .checkin-header p,
.empty-state p, .plan-card > p, .settings-rows > div,
.settings-rows strong, .settings-action strong { font-size: 14px; line-height: 1.6; }
.empty-state { padding: 48px 24px; gap: 14px; }
.empty-state strong { font-size: 18px; }
.empty-state p { max-width: 44ch; }
.modal-actions { flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; margin-top: 8px; }
.form-row > label, .modal-form label, .settings-action > div { min-width: 0; }
.dashboard-content { max-width: 1440px; padding: 32px; }
.overview-layout, .overview-layout.lower { gap: 24px; margin-top: 24px; align-items: start; }
.overview-priority { grid-template-columns: minmax(290px,1fr) minmax(0,1.65fr); }
.chart-card, .attention-card, .recent-card, .quick-card { padding: var(--space-card); }
.attention-clear { display: flex; align-items: flex-start; gap: 12px; margin-top: 22px; padding: 18px; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-control); }
.attention-clear > svg { color: var(--success); margin-top: 2px; }
.attention-clear strong { display: block; font-size: 15px; }
.attention-clear p { font-size: 14px; line-height: 1.6; margin-top: 5px; color: var(--muted); }
.dashboard-setup { margin-bottom: 24px; }
.overview-primary { gap: 12px; }
.overview-primary { display: flex; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.overview-layout > .surface-card, .overview-layout > div { min-width: 0; }
.topbar-help { display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.stat-card { padding: 20px; gap: 12px; }
.stat-top > span:first-child, .mini-stats span { font-size: 13px; line-height: 1.5; }
.stat-change { font-size: 12px; line-height: 1.5; }
.settings-rows > div { padding: 16px 0; }
.workspace-name strong, .profile-chip strong { font-size: 13px; }
.workspace-name small, .profile-chip small { font-size: 12px; }
.workspace-switch { margin-bottom: 24px; }
.sidebar-logo { padding-bottom: 22px; }
.trial-top, .sidebar-trial p { font-size: 12px; line-height: 1.5; }
.sidebar-trial button { min-height: 44px; margin-top: 6px; font-size: 12px; }
.sidebar-access { background: var(--surface); border-color: var(--line); }
.workspace-mode-label { display: grid; gap: 4px; margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.4; }
.workspace-mode-label strong { font-weight: 400; color: var(--muted); }
.topbar-help { min-height: 44px; color: var(--muted); }
.topbar-help:hover { color: var(--gold-hover); }
.table-toolbar { padding: 18px 20px; gap: 16px; flex-wrap: wrap; }
.member-filter-control { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.member-filter-control select { min-height: 44px; background: var(--bg); color: var(--ink); border: 1px solid var(--control-line); border-radius: var(--radius-control); padding: 9px 34px 9px 12px; font-size: 14px; }
.member-tools { min-width: 44px; color: var(--muted); }
.member-tools summary { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 10px 12px; min-height: 44px; border: 1px solid var(--control-line); border-radius: var(--radius-control); background: var(--bg); cursor: pointer; list-style: none; font-size: 13px; font-weight: 600; }
.member-tools summary::-webkit-details-marker { display: none; }
.member-tools summary:hover, .member-tools[open] summary { color: var(--gold-hover); border-color: var(--gold-line); background: var(--gold-surface); }
.member-tools > div { display: grid; gap: 4px; margin-top: 6px; padding: 5px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--bg); }
.table-actions .member-tools button { width: 100%; min-width: 132px; padding: 10px; display: flex; justify-content: flex-start; align-items: center; gap: 8px; border: 0; background: transparent; font-size: 13px; }
.table-actions:has(.member-tools[open]) { align-items: flex-start; }
.navigation-open { overflow: hidden; }
.nav-item { min-height: 44px; font-size: 14px; }
.topbar-quick { min-height: 44px; font-size: 13px; }
.nav-daily { margin-bottom: 8px; }
.nav-more { border-top: 1px solid var(--line); padding: 8px 0 2px; }
.nav-more summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 8px 14px; color: var(--muted); font-size: 13px; font-weight: 600; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary:hover { color: var(--gold-hover); background: var(--surface); border-radius: var(--radius-control); }
.nav-more > div { display: grid; gap: 4px; padding-top: 4px; }
.nav-more summary span { font-size: 20px; color: var(--gold); }
.nav-more[open] summary span { transform: rotate(45deg); }
.nav-support { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 8px; }
.nav-plan-label { margin-left: auto; border: 1px solid var(--gold-line); border-radius: 4px; padding: 2px 5px; color: var(--gold); font-size: 10px; line-height: 1.4; }
.cloud-save-state.cloud-error { color: #ffb4ae; font-size: 13px; flex-basis: 100%; }
.cloud-bar:has(.cloud-error) { border-color: #ad6661; }
.gym-image { position: relative; overflow: hidden; margin: 0 0 -18px; aspect-ratio: 2.55; border: 1px solid var(--line); border-radius: 8px 8px 0 0; background: var(--surface); }
.gym-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.gym-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg,transparent 15%,#0b0d0fea 100%); }
.gym-image figcaption { position: absolute; z-index: 1; inset: auto 18px 31px; font-size: 14px; font-weight: 600; color: var(--ink); }
.gym-image figcaption span { display: block; margin-top: 3px; font-size: 10px; font-weight: 400; color: var(--muted); }
#product-tour { position: relative; }
.hero-visual::before { inset: 12px -10px -14px 10px; }
.header-signin { color: var(--gold); font-size: 14px; min-height: 44px; padding: 6px 12px; white-space: nowrap; }
.header-signin:hover { color: var(--gold-hover); }
.auth-connection, .auth-existing, .auth-import { margin: 20px 0; padding: 20px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.auth-existing h2 { margin: 15px 0 8px; overflow-wrap: anywhere; }
.auth-existing p, .auth-connection p, .auth-import p, .auth-join p { margin: 8px 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.auth-join { margin-top: 30px; border-top: 1px solid var(--line); padding-top: 24px; }
.auth-join h2 { font-size: 22px; }
.auth-join .auth-form { margin-top: 16px; }
.auth-retry { margin: 0 0 20px; }
.auth-form-area { padding-top: 40px; padding-bottom: 40px; }
.auth-aside { position: relative; background: linear-gradient(155deg,#14171bf2,#0b0d0f); }
.member-optional { margin: 2px 0; border: 1px solid var(--line); border-radius: 6px; padding: 0 14px; }
.member-optional summary, .checkin-id-option summary { cursor: pointer; padding: 13px 0; font-size: 14px; color: var(--gold); }
.member-optional .acquisition-fields { padding: 12px 0; border: 0; background: transparent; margin-bottom: 0; }
.member-optional fieldset:disabled { opacity: .65; }
.member-next { padding: 12px; border: 1px solid #50432a; border-radius: 6px; background: var(--gold-surface); }
.member-next input { width: 18px; height: 18px; min-height: 18px; flex-shrink: 0; }
.checkin-id-option { padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; }
.checkin-id-option label { padding-bottom: 14px; }
.checkin-access { padding: 15px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 6px; background: var(--bg); }
.checkin-access.ready { background: var(--gold-surface); border-color: #73613d; }
.checkin-access p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 5px 0 0; }
.checkin-access strong { font-size: 15px; }
.checkin-access .inline-link { margin-top: 12px; min-height: 32px; }
.help-start { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 20px; border-color: #73613d; background: var(--gold-surface); }
.help-start h2 { font-size: 23px; margin: 9px 0; }
.help-start p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.help-start .btn { flex-shrink: 0; }
.help-task-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.help-task { padding: 22px; }
.help-step { color: var(--gold); display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.help-task h2 { margin: 20px 0 8px; font-size: 18px; }
.help-task p { min-height: 64px; color: var(--muted); }
.help-task .inline-link { margin-top: 16px; min-height: 36px; }
.help-layout { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(240px,1fr); gap: 24px; margin-bottom: 24px; }
.help-library { padding: 26px; }
.help-search-label { display: grid; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.help-search-label input { padding: 11px 13px; width: 100%; border: 1px solid var(--control-line); border-radius: 6px; background: var(--bg); color: var(--ink); }
.help-question { border-top: 1px solid var(--line); }
.help-question summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font-size: 14px; font-weight: 600; line-height: 1.6; }
.help-question summary::-webkit-details-marker { display: none; }
.help-question summary svg { flex-shrink: 0; margin-top: 4px; color: var(--gold); }
.help-question[open] summary svg { transform: rotate(45deg); }
.help-question p, .help-no-results { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.help-side { display: grid; gap: 16px; align-content: start; }
.help-panel { padding: 24px; }
.help-panel h2 { font-size: 18px; }
.help-panel p { margin: 10px 0 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.learning-panel { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.15fr); gap: 32px; align-items: center; padding: 28px; margin-bottom: 24px; }
.learning-panel h2 { font-size: 24px; margin: 12px 0; }
.learning-panel p { color: var(--muted); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.learning-video iframe, .video-placeholder { aspect-ratio: 16/9; width: 100%; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.video-placeholder { display: flex; flex-direction: column; gap: 10px; justify-content: center; align-items: center; padding: 24px; text-align: center; }
.video-placeholder svg { color: var(--gold); }
.video-placeholder strong { font-size: 18px; }
.video-placeholder span, .video-placeholder small { color: var(--muted); font-size: 12px; }
.video-placeholder small { line-height: 1.5; }
.video-fallback { display: inline-flex; min-height: 44px; font-size: 13px; }
.connection-summary { padding: 26px; }
.connection-summary h2 { font-size: 20px; margin-bottom: 14px; }
.connection-summary p { margin: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.connection-summary strong { color: var(--ink); }
.settings-action { gap: 20px; }
.settings-rows strong { overflow-wrap: anywhere; text-align: right; }
.cloud-bar select { max-width: min(340px,75vw); }
.cloud-bar .inline-link, .settings-action .btn { min-height: 44px; }
@media (max-width: 1100px) {
 .help-task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .help-task p { min-height: 44px; }
 .help-start h2 { font-size: 20px; }
}
@media (max-width: 760px) {
 .help-start, .settings-action { flex-direction: column; align-items: stretch; }
 .help-start .btn { align-self: flex-start; }
 .help-layout, .learning-panel { grid-template-columns: minmax(0,1fr); gap: 20px; }
 .help-task-grid { gap: 12px; }
 .help-task { padding: 18px; }
 .help-task p { min-height: 0; }
 .hero-visual { max-width: 620px; width: 100%; }
 .gym-image { aspect-ratio: 2.75; }
 .learning-panel, .help-library, .help-panel, .connection-summary { padding: 22px; }
 .auth-form-area { padding-top: 24px; padding-bottom: 24px; }
 .settings-action .btn { align-self: flex-start; }
}
@media (max-width: 420px) {
 .help-task-grid { grid-template-columns: minmax(0,1fr); }
 .help-task h2 { margin-top: 12px; }
 .help-start h2 { font-size: 18px; }
 .gym-image figcaption { font-size: 12px; inset-inline: 12px; }
 .video-placeholder { padding: 18px; aspect-ratio: auto; min-height: 240px; }
}
@media (max-width: 545px) {
 .dashboard-content { padding: 20px 18px; }
 .overview-primary { flex-direction: column; align-items: stretch; }
 .overview-primary .btn { width: 100%; }
 .topbar-help > span { display: none; }
 .topbar-help { min-width: 44px; }
 .table-toolbar .search-field { width: 100%; max-width: none; }
 .member-filter-control { width: 100%; justify-content: space-between; }
 .member-filter-control select { flex: 1; min-width: 0; }
 .marketing-nav-actions .header-workspace { display: none; }
 .marketing-header { gap: 12px; }
 .marketing-nav-actions { gap: 0; }
}
@media (min-width: 546px) and (max-width: 1000px) {
 .dashboard-content { padding: 24px; }
}
@media (max-width: 1000px) {
 .overview-layout.overview-priority { grid-template-columns: minmax(0,1fr); }
}
@media (prefers-reduced-motion: reduce) {
 html { scroll-behavior: auto; }
 .nav-more summary span, .help-question summary svg { transition: none; }
}
