/* === v58 stability + account/PWA polish =============================== */
.v58-connection{position:fixed;z-index:240;left:50%;top:74px;transform:translateX(-50%);width:min(620px,calc(100vw - 24px));min-height:42px;padding:9px 10px 9px 13px;border:1px solid var(--line);background:var(--surface);color:var(--text);display:flex;align-items:center;gap:10px;font-size:10px;box-shadow:0 12px 34px rgba(0,0,0,.3)}.v58-connection.warn{border-color:var(--line);color:var(--orange)}.v58-connection>span{flex:1}.v58-connection button{min-height:28px;border:1px solid var(--line);background:transparent;color:inherit;padding:4px 8px;font-size:9px}.v58-connection[hidden]{display:none!important}
#profileOverlay .sheet{max-width:720px;background:var(--bg);border-color:var(--surface2)}#profileOverlay .sheettitle{padding-bottom:14px;border-bottom:1px solid var(--surface2)}#profileOverlay .sheettitle .eyebrow{color:var(--green)}#profileOverlay .sheettitle h2{font-size:22px;margin:3px 0}#profileOverlay .settings-tabs{display:flex;gap:0;padding:0;background:transparent;border-bottom:1px solid var(--surface2);border-radius:0;overflow:auto}#profileOverlay .settings-tab{min-width:max-content;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--muted)!important;padding:11px 13px!important;font-size:10px!important}#profileOverlay .settings-tab.active{border-bottom-color:var(--green)!important;color:var(--text)!important}#profileOverlay .settings-section,#profileOverlay .account-card,#profileOverlay .sync-status-card{border:0!important;border-bottom:1px solid var(--surface2)!important;border-radius:0!important;background:transparent!important;padding:16px 0!important}#profileOverlay .settings-section h3{font-size:13px}#profileOverlay .settings-section p{font-size:9px;color:var(--muted)}#profileOverlay .account-avatar{background:var(--greenSoft)!important;color:var(--green)!important;border:1px solid var(--line)!important;border-radius:7px!important}.v58-account-meta{display:flex;align-items:center;gap:7px;margin:10px 0 12px;padding:8px 0;border-top:1px solid var(--surface2);border-bottom:1px solid var(--surface2);color:var(--muted);font-size:9px}.v58-account-meta>span{width:7px;height:7px;border-radius:50%;background:var(--muted)}.v58-account-meta>span.online{background:var(--green)}.v58-account-meta>span.warn{background:var(--orange)}.v58-account-meta>span.offline{background:var(--muted)}.v58-account-meta b{font-weight:600;flex:1}.v58-account-meta button{min-height:30px;border:1px solid var(--green);background:transparent;color:var(--green);padding:4px 8px;font-size:9px}.backend-auth-grid{display:grid!important;grid-template-columns:1fr!important;gap:7px!important}.backend-auth-input{min-height:44px!important;background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:6px!important;color:var(--text)!important}.backend-auth-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:7px!important}.backend-auth-actions button{min-height:43px!important;border-radius:6px!important}.backend-auth-actions .primary{background:var(--green)!important;border-color:var(--green)!important;color:var(--on-accent)!important}.v58-password-wrap{display:grid;grid-template-columns:minmax(0,1fr) auto;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.v58-password-wrap #backendPassword{border:0!important;background:transparent!important}.v58-password-wrap button{border:0;border-left:1px solid var(--line);background:transparent;color:var(--muted);padding:0 10px;font-size:9px}.production-account-actions{margin-top:8px}.production-account-actions .linkbtn{color:var(--green)}.setting-row{border-color:var(--surface2)!important}.setting-row b{font-size:10px!important}.setting-row small{font-size:8px!important}.setting-input,.setting-select{background:var(--surface)!important;border-color:var(--line)!important;color:var(--text)!important}.cloud-placeholder,.info-banner{border-radius:6px!important;background:var(--surface)!important;border-color:var(--surface2)!important;color:var(--muted)!important}
.v58-recovery-sheet{max-width:430px!important;background:var(--bg)!important;border-color:var(--line)!important;padding:0 18px 18px!important}.v58-recovery-sheet>header{display:flex;justify-content:space-between;gap:14px;padding:18px 0 14px;border-bottom:1px solid var(--surface2)}.v58-recovery-sheet>header span{font-size:8px;letter-spacing:.1em;color:var(--green)}.v58-recovery-sheet h2{margin:3px 0;font-size:21px}.v58-recovery-sheet p{margin:0;color:var(--muted);font-size:9px}.v58-recovery-sheet>header button{border:0;background:transparent;color:var(--muted);font-size:21px}.v58-recovery-sheet form{display:grid;gap:10px;padding-top:15px}.v58-recovery-sheet label{display:grid;gap:5px}.v58-recovery-sheet label span{font-size:9px;color:var(--muted)}.v58-recovery-sheet input{height:44px!important;background:var(--surface)!important;border:1px solid var(--line)!important;color:var(--text)!important;padding:0 10px!important}.v58-recovery-sheet form>button{height:44px;border:0;background:var(--green);color:var(--on-accent);font-weight:850}.v58-recovery-message{min-height:18px;color:var(--muted);font-size:9px}.v58-recovery-message button{border:0;background:transparent;color:var(--green);text-decoration:underline;font-size:9px}
/* Mobile coach navigation gets larger tap targets and snap scrolling. */
@media(max-width:900px){.v57-coach-nav nav{scroll-snap-type:x proximity;overscroll-behavior-x:contain}.v57-coach-nav nav button{min-height:45px!important;scroll-snap-align:start;font-size:10px!important}.v57-coach-nav nav button.active{box-shadow:inset 0 -2px var(--green)!important}.v57-comms-workspace>aside button{min-height:48px}}
@media(max-width:600px){.v58-connection{top:62px}.backend-auth-actions{grid-template-columns:1fr!important}#profileOverlay .sheet{border-radius:12px 12px 0 0!important}.v58-account-meta{flex-wrap:wrap}.v58-account-meta b{min-width:120px}.v57-dashboard-actions button{min-height:43px}.v57-kpis article{padding:12px}.v57-comms-workspace>aside button{min-width:165px}}
