.connections-page{max-width:680px;width:100%;margin:0 auto}.connection-invite{display:flex;align-items:center;gap:8px;padding:4px 8px}
.connection-invite>span{flex:none;color:var(--muted);font-size:var(--text-12)}
.connection-copy-code{display:inline-flex;align-items:center;gap:10px;min-width:0;min-height:44px;padding:0 4px;border:0;background:none;color:var(--ink);cursor:pointer;white-space:nowrap}
.connection-copy-code strong{font:600 15px/1.3 ui-monospace,monospace;letter-spacing:.06em;user-select:all}
.connection-copy-code svg{width:18px;height:18px;flex:none;color:var(--muted)}
.connection-invite>.icon-button{flex:none;width:44px;height:44px;margin-left:auto;padding:10px;border:0;background:none;color:var(--muted)}
.connection-copy-code:disabled,.connection-invite>.icon-button:disabled{opacity:.45;cursor:default}
.connection-copy-code:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:var(--radius-m)}
.connection-actions{display:flex;gap:10px;flex-wrap:wrap}.connection-search-row{display:flex;gap:10px}.connection-search-row input{min-width:0;flex:1}.connection-section{border-top:1px solid var(--line)}.connection-section h3{font-size:var(--text-16);margin:0 0 14px}.connection-person{display:flex;align-items:center;gap:12px;justify-content:space-between}.connection-person>div{min-width:0;overflow-wrap:anywhere}.connection-person strong,.connection-person small{display:block}.connection-person small{margin-top:4px;color:var(--muted)}.connection-person>.text-button{flex-shrink:0;font-size:var(--text-13)}.connection-request{padding:0 0 16px;border-bottom:1px solid var(--line)}.connection-request>p{font-size:var(--text-14);color:var(--muted);margin:0 0 12px}.connection-privacy{font-size:var(--text-13);line-height:1.6;color:var(--muted);margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}.connections-page>[data-connections="refresh"]{margin-top:14px}.connection-badge{border-radius:var(--radius-xl);background:var(--blue,var(--accent));color:var(--paper);font-size:var(--text-12);padding:2px 6px}.connection-eva{display:flex;gap:14px;align-items:center}.connection-eva img{width:64px;height:64px;object-fit:contain;flex-shrink:0}.connection-eva p{font-size:var(--text-14);line-height:1.45;flex:1}.connection-eva button{flex-shrink:0}#connection-notification-trigger{flex-shrink:0}.coach-food-history{border-top:1px solid var(--line);margin-top:28px;padding-top:22px}.coach-food-history h3{margin-bottom:14px}.coach-food-history input[type="date"]{margin-bottom:16px;max-width:100%;min-width:0}.coach-food-totals{font-size:var(--text-14);line-height:1.7;margin:12px 0}.coach-food-entry{border-top:1px solid var(--line);padding:14px 0}.coach-food-entry li{margin:6px 0;font-size:var(--text-14)}.coach-food-entry p{color:var(--muted);font-size:var(--text-13)}.coach-food-entry ul{padding-left:18px}@media(max-width:420px){.connection-actions>.button{flex:1;padding-inline:12px}.connection-eva{gap:8px;flex-wrap:wrap}.connection-eva p{min-width:160px}.connection-eva button{margin-left:72px}.connection-search-row{gap:8px}}
.connection-coach{display:block;padding:18px 0 8px;border-bottom:1px solid var(--line)}
.connection-coach-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}
.connection-coach-name{min-width:0;overflow-wrap:anywhere}.connection-coach-name strong{line-height:1.4}.connection-coach-name small{font-size:var(--text-13);line-height:1.4}
.connection-coach-profile{flex:none;min-height:40px;gap:6px;padding:8px 12px;font-size:var(--text-13)}.connection-coach-profile>svg{width:16px;height:16px;flex:none}
.connection-coach-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:6px}.connection-coach-actions .text-button{min-height:44px;padding:8px 0;font-size:var(--text-13)}.connection-coach-actions [data-connections="disconnect"]{color:var(--muted)}
.sharing-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.sharing-intro strong{font-size:var(--text-18)}.sharing-intro p{font-size:var(--text-14);color:var(--muted);margin:6px 0}.sharing-intro img{object-fit:contain;flex:none}
.sharing-option{display:flex;align-items:center;gap:16px;padding:17px 0;border-bottom:1px solid var(--line);cursor:pointer;position:relative}
.sharing-option>span:first-child{flex:1;min-width:0}.sharing-option strong,.sharing-option small{display:block}.sharing-option strong{font-size:var(--text-15);font-weight:600}.sharing-option small{margin-top:5px;font-size:var(--text-13);line-height:1.45;color:var(--muted)}
.sharing-option input{position:absolute;right:0;width:46px;height:44px;margin:0;opacity:0;cursor:pointer}.sharing-switch{width:44px;height:26px;flex:none;border-radius:var(--radius-xl);background:var(--line);transition:background .16s}
.sharing-switch:after{content:'';display:block;width:20px;height:20px;border-radius:50%;background:var(--paper);margin:3px;box-shadow:0 1px 3px #0002;transition:transform .16s}
.sharing-option input:checked+.sharing-switch{background:var(--accent)}.sharing-option input:checked+.sharing-switch:after{transform:translateX(18px)}.sharing-option input:focus-visible+.sharing-switch{outline:2px solid var(--accent);outline-offset:4px}.sharing-option input:disabled+.sharing-switch{opacity:.5}
.coach-sharing-summary{font-size:var(--text-12);line-height:1.5;color:var(--muted);margin:12px 0}
@media(prefers-reduced-motion:reduce){.sharing-switch,.sharing-switch:after{transition:none}}
