/* Compact personal training journal, matching the approved client account. */
.live-results-view .dashboard-heading { margin-bottom:10px; }
.live-results-view .dashboard-heading h1 { margin:0; font-size:21px; line-height:1.3; letter-spacing:-.5px; }
.live-results-view .dashboard-heading p,.live-results-view .dashboard-heading .dashboard-greeting { display:none; }
/* A client's bell shares the title row; staff role tools keep their full row. */
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) .workspace-tools { grid-area:1 / 2; align-self:center; margin:0; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) .dashboard-heading { grid-area:1 / 1; display:flex; flex-direction:row; min-height:44px; align-items:center; justify-content:flex-start; margin:0; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) #dashboard-content,
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) #setup-note,
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) #booking-status-announcement { grid-column:1 / -1; min-width:0; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) .admin-notifications-toggle { position:relative; box-sizing:border-box; width:44px; min-height:44px; padding:10px; gap:0; justify-content:center; border-radius:50%; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) .admin-notifications-toggle>span:first-of-type { display:none; }
.live-results-view .account-dashboard:has(.role-view-switcher[hidden]) .admin-notifications-count { position:absolute; top:-5px; right:-5px; box-sizing:border-box; min-width:20px; height:20px; padding:0 4px; font-size:11px; }
.client-results { --results-green:#08783f; --results-muted:#59645d; --results-line:#e0e7e1; max-width:760px; color:#1e1c21; background:#fff; }
.client-results button,.client-results-dialog button { touch-action:manipulation; }
.client-results button:focus-visible,.client-results summary:focus-visible,.client-results-dialog button:focus-visible { outline:3px solid #1863c6; outline-offset:3px; }
.client-results-tabs { display:flex; gap:24px; border-bottom:1px solid var(--results-line); }
.client-results-tabs button { min-height:44px; padding:8px 0; border:0; border-bottom:2px solid transparent; background:transparent; color:var(--results-muted); font:inherit; font-size:12px; line-height:1.4; font-weight:700; cursor:pointer; }
.client-results-tabs button[aria-pressed=true] { color:var(--results-green); border-bottom-color:var(--results-green); }
.client-results-row { border-bottom:1px solid var(--results-line); background:#fff; }
.client-results-row summary { list-style:none; min-height:66px; box-sizing:border-box; padding:11px 0; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,auto) 14px; gap:10px; align-items:center; cursor:pointer; }
.client-results-row summary::-webkit-details-marker { display:none; }
.client-results-copy { min-width:0; }
.client-results-title { display:block; font-size:13px; line-height:1.4; font-weight:800; overflow-wrap:anywhere; }
.client-results-meta { display:block; margin-top:3px; color:var(--results-muted); font-size:11px; line-height:1.6; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.client-results-value { min-width:0; max-width:190px; display:flex; flex-direction:column; align-items:flex-end; gap:3px; text-align:right; font-size:15px; line-height:1.4; font-weight:800; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.client-results-value>svg { width:19px; height:19px; color:var(--results-muted); }
.client-results-record .client-results-value { color:var(--results-green); }
.client-results-pr { display:flex; align-items:center; gap:4px; color:var(--results-green); font-size:11px; line-height:1.4; font-weight:800; }
.client-results-pr svg { width:12px; height:12px; }
.client-results-chevron { width:14px; height:14px; color:#8a958f; }
.client-results-row[open] .client-results-chevron { transform:rotate(90deg); }
.client-results-detail { padding:0 0 10px; color:var(--results-muted); font-size:12px; line-height:1.65; overflow-wrap:anywhere; }
.client-results-detail time { display:block; margin-bottom:5px; font-size:11px; }
.client-results-detail p { margin:0; white-space:pre-wrap; }
.client-results-row-actions { display:flex; gap:18px; margin-top:5px; }
.client-results-row-actions button,.client-results-status button,.client-results-more { min-height:44px; padding:8px 0; border:0; background:transparent; color:var(--results-green); font:inherit; font-size:12px; line-height:1.4; font-weight:700; cursor:pointer; }
.client-results-row-actions .client-results-delete { color:#9e3232; }
.client-results-status { color:var(--results-muted); font-size:13px; line-height:1.65; }
.client-results-status p { margin:20px 0 8px; }
.client-results-status[data-kind=error] { color:#9e3232; }
.client-results-more { display:block; margin:10px auto 0; }
.client-results-bottom { position:sticky; bottom:12px; z-index:15; padding:12px 0 0; margin-top:8px; background:linear-gradient(#ffffff00,#fff 12px); }
.live-staff-nav .client-results-bottom { bottom:calc(100px + env(safe-area-inset-bottom)); }
.client-results .client-results-add { width:100%; display:flex; justify-content:center; align-items:center; gap:8px; min-height:46px; padding:10px 16px; border-radius:11px; background:var(--results-green); color:#fff; font-size:14px; font-weight:800; }
.client-results-add svg { flex:none; width:20px; height:20px; }
.client-results button:disabled,.client-results-dialog button:disabled { cursor:wait; opacity:.65; }
.client-results-dialog { box-sizing:border-box; width:min(540px,calc(100% - 24px)); color-scheme:light; background:#fff; }
.client-results-dialog h2,.live-client-booking .client-results-dialog h2 { font-size:24px; line-height:1.3; letter-spacing:-.5px; margin-bottom:16px; }
.client-results-dialog .client-results-kind { display:flex; gap:6px; padding:4px; margin:0 0 18px; background:#f3f6f4; border-radius:11px; }
.client-results-kind button { flex:1; min-height:42px; padding:8px; border:0; border-radius:8px; background:transparent; color:#59645d; font:inherit; font-size:13px; line-height:1.4; font-weight:700; cursor:pointer; }
.client-results-kind button[aria-pressed=true] { background:#fff; color:#08783f; box-shadow:0 1px 5px #132d1910; }
.client-results-form .form-field { gap:7px; font-size:13px; font-weight:700; }
.client-results-form input,.client-results-form select,.client-results-form textarea { box-sizing:border-box; width:100%; min-width:0; min-height:46px; padding:11px 12px; border:1px solid #ccd8cf; border-radius:10px; color:#1e1c21; background:#fff; font:inherit; font-size:16px; line-height:1.4; font-weight:500; }
.client-results-form textarea { min-height:104px; resize:vertical; }
.client-results-form [aria-invalid=true] { border-color:#a62e2e; }
.client-results-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; }
.client-results-check { min-height:44px; margin:10px 0 0; font-size:13px; font-weight:600; }
.client-results-check input { min-height:0; width:20px; height:20px; accent-color:#08783f; }
.client-results-form-actions { display:flex; flex-wrap:wrap; gap:10px; }
.client-results-dialog .client-results-form-actions .button { margin:0; min-height:46px; }
.client-results-danger { background:#a32929; border-color:#a32929; color:#fff; }
.client-results-dialog .client-results-feedback { margin-bottom:0; }
@media(max-width:900px) {
  .client-results { padding-bottom:64px; }
  .client-results-bottom { position:fixed; bottom:var(--client-results-dock-offset,calc(100px + env(safe-area-inset-bottom))); left:20px; right:20px; max-width:520px; margin:0 auto; }
  .client-results-value { max-width:125px; }
}
@media(max-width:380px) {
  .client-results-tabs { gap:20px; }
  .client-results-row summary { gap:7px; }
  .client-results-value { max-width:105px; font-size:14px; }
}
