.telemetry-dialog{width:min(850px,calc(100vw - 24px));max-width:850px;padding:28px}.telemetry-heading h2{font-size:24px;line-height:1.25;margin:8px 0}.telemetry-heading>p:last-child{font-size:13px;color:#526d78}.telemetry-section{border-top:1px solid #e1e9eb;padding:22px 0 10px}.telemetry-section h3{font-size:17px;margin:0 0 16px}.telemetry-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.telemetry-section-title button{font-size:12px}.telemetry-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:18px 0}.telemetry-stats div{min-width:0}.telemetry-stats dt{font-size:12px;color:#536b75;line-height:1.4}.telemetry-stats dd{font-size:22px;color:#103548;font-weight:650;margin:5px 0;overflow-wrap:anywhere}.telemetry-chart{background:#f6f9fa;border:1px solid #e1e9eb;border-radius:5px;padding:8px 4px}.telemetry-chart svg{display:block;width:100%;height:auto}.telemetry-chart text{font:12px system-ui;fill:#617883}.telemetry-grid line{stroke:#dce5e9;stroke-width:1}.telemetry-lines polyline{fill:none;stroke-width:2.2;stroke-linejoin:round;stroke-linecap:round}.telemetry-cursor{stroke:#8da4ad;stroke-dasharray:4 4}.telemetry-chart output{display:block;min-height:24px;margin:0 12px 6px;font-size:12px;color:#3c5b68}.telemetry-source,.telemetry-missing-zones{font-size:12px;color:#627982;line-height:1.6}.telemetry-zone-list{display:grid;gap:15px}.telemetry-zone{display:grid;grid-template-columns:26px 92px minmax(30px,1fr) 100px;align-items:center;gap:8px;font-size:12px}.telemetry-zone>span:last-child{text-align:right}.telemetry-zone-bar{background:#edf2f4;height:16px;overflow:hidden;border-radius:3px}.telemetry-zone-bar span{display:block;height:100%;border-radius:3px}.telemetry-time-control{position:sticky;bottom:0;background:#fff;border-top:1px solid #e2e9eb;padding:14px 0 8px}.telemetry-time-control label{display:flex;justify-content:space-between;font-size:13px}.telemetry-time-control input{width:100%;min-height:36px;touch-action:pan-y}.telemetry-footer{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.telemetry-unavailable{background:#f4f7f8;padding:14px;font-size:14px;line-height:1.6}.telemetry-card-link{font-size:12px;margin-top:14px;background:transparent;border:0;padding:4px 0;color:#255970}.telemetry-card-summary{font-size:12px;color:#526d78;line-height:1.6;margin:5px 0 0}.telemetry-own-button{margin:0 0 14px;font-size:13px}.telemetry-zone-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.telemetry-zone-inputs input{width:100%;margin-top:5px}.telemetry-consent p{line-height:1.65}.telemetry-consent .sharing-consent{align-items:flex-start}.telemetry-consent input{flex:0 0 auto}.registration-health{margin-top:14px;padding-top:12px;border-top:1px solid #e0e8eb}.registration-health p{font-size:12px;line-height:1.6;color:#526d78}
@media(max-width:520px){.telemetry-dialog{padding:22px 16px}.telemetry-heading h2{font-size:22px}.telemetry-stats{gap:16px}.telemetry-stats dd{font-size:20px}.telemetry-zone{grid-template-columns:24px 78px minmax(20px,1fr);gap:6px}.telemetry-zone>span:last-child{grid-column:2/4;text-align:left;font-size:11px}.telemetry-footer button{width:100%}.telemetry-zone-inputs input{font-size:16px}.telemetry-section-title button{padding-left:0}.telemetry-time-control{padding-bottom:10px}}

.telemetry-dialog .telemetry-heading{display:block;align-items:initial;justify-content:initial}.telemetry-dialog .telemetry-heading .eyebrow{margin:0;max-width:none}.telemetry-dialog .telemetry-heading h2{margin:10px 0;font-size:24px}.telemetry-consent-notice{margin-bottom:18px}.telemetry-consent-notice p{font-size:13px;line-height:1.6}.telemetry-device-summary{font-size:13px;padding:10px 0}.telemetry-device-summary summary{cursor:pointer}
@media(max-width:520px){.telemetry-chart text{font-size:20px}}
.telemetry-welcome p{line-height:1.65}.telemetry-welcome-permission{padding:14px;background:#f3f7f8;border-radius:5px;font-size:14px}.telemetry-welcome-actions{display:flex;flex-direction:column;gap:10px;margin-top:20px}.telemetry-welcome-actions button{white-space:normal;min-height:44px;line-height:1.45}

/* Activity charts: quiet axes, true zone colours, readable touch interaction. */
.telemetry-dialog{padding:30px 32px;color:#183c49}
.telemetry-dialog .telemetry-heading{padding:4px 0 12px}
.telemetry-dialog .telemetry-heading h2{font-size:27px;letter-spacing:-.65px;font-weight:650;line-height:1.2}
.telemetry-section{padding:28px 0 20px;border-color:#e9eeee}
.telemetry-section h3{font-size:19px;letter-spacing:-.3px;margin-bottom:20px}
.telemetry-section-title{margin-bottom:8px}
.telemetry-section-title h3{margin-bottom:12px}
.telemetry-stats{gap:24px 28px;margin:24px 0}
.telemetry-stats dt{color:#73848b;font-size:12px}
.telemetry-stats dd{font-size:29px;font-weight:500;letter-spacing:-.7px;font-variant-numeric:tabular-nums;margin-top:7px;line-height:1.15}
.telemetry-chart{background:#fff;border:0;border-radius:0;padding:5px 0 0;margin:8px 0 12px}
.telemetry-chart-readout{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;padding:0 0 20px}
.telemetry-chart-caption{display:block;color:#7a8b90;font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-bottom:6px}
.telemetry-chart output{display:flex;align-items:baseline;gap:7px;margin:0;min-height:0;color:#274c57;font-variant-numeric:tabular-nums}
.telemetry-chart output strong{font-size:34px;line-height:1;font-weight:500;letter-spacing:-1px}
.telemetry-chart output>span{font-size:14px;color:#819096}
.telemetry-chart-instant{font-size:12px;line-height:1.4;color:#526e77;background:#f2f6f6;border-radius:20px;padding:6px 11px;font-variant-numeric:tabular-nums}
.telemetry-plot{position:relative;height:245px;margin:0}
.telemetry-plot-drawing{position:relative;width:calc(100% - 43px);height:100%;cursor:crosshair}
.telemetry-chart svg{display:block;width:100%;height:100%;overflow:visible}
.telemetry-grid line{stroke:#e4ebed;stroke-width:1}
.telemetry-lines polyline{fill:none;stroke-width:2.7;stroke-linejoin:round;stroke-linecap:round}
.telemetry-chart[data-coloring=navigation] .telemetry-lines polyline{stroke-width:3.2}
.telemetry-cursor{stroke:#9cbbc0;stroke-width:1;stroke-dasharray:3 5;opacity:.85}
.telemetry-value-axis{position:absolute;right:0;top:0;bottom:0;width:33px;font-size:11px;font-variant-numeric:tabular-nums;color:#8b999e}
.telemetry-value-axis span{position:absolute;left:0;transform:translateY(-50%)}
.telemetry-chart-point{position:absolute;width:9px;height:9px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #b4cccf;transform:translate(-50%,-50%);pointer-events:none}
.telemetry-chart-point[hidden]{display:none}
.telemetry-time-axis{display:flex;justify-content:space-between;margin:0 43px 0 0;color:#8b999e;font-size:11px;line-height:1.5;font-variant-numeric:tabular-nums}
.telemetry-chart-legend{display:flex;align-items:center;flex-wrap:wrap;gap:11px;padding:18px 0 10px;color:#74858b;font-size:10px}
.telemetry-chart-legend>span{display:inline-flex;align-items:center;gap:5px}
.telemetry-chart-legend i{display:inline-block;width:7px;height:7px;border-radius:50%}
.telemetry-chart-legend small{margin-left:auto;font-size:10px;color:#8b999e}
.telemetry-zone-list{gap:18px;padding:2px 0 8px}
.telemetry-zone{grid-template-columns:28px 94px minmax(30px,1fr) 108px;color:#667c85;font-variant-numeric:tabular-nums}
.telemetry-zone strong{color:#294c57;font-weight:600}
.telemetry-zone-bar{height:12px;border-radius:8px;background:#f0f4f4}
.telemetry-zone-bar span{border-radius:8px}
.telemetry-source,.telemetry-missing-zones{color:#809097;font-size:11px;line-height:1.7}
.telemetry-time-control{position:static;padding:15px 0 9px;box-shadow:none;border-color:#e8eeee}
.telemetry-time-control label{color:#5a7680;font-size:12px}
.telemetry-time-control input{accent-color:#337d7d;cursor:pointer;margin-inline:0}
.telemetry-footer button{border-radius:6px}
.telemetry-footer button:active,.telemetry-card-link:active{transform:scale(.98)}
@media(min-width:1000px){.telemetry-plot{height:275px}}
@media(max-width:520px){
 .telemetry-dialog{padding:22px 20px}
 .telemetry-dialog .telemetry-heading h2{font-size:24px}
 .telemetry-section{padding:24px 0 15px}
 .telemetry-section h3{font-size:18px}
 .telemetry-stats{gap:22px 16px}
 .telemetry-stats dd{font-size:26px}
 .telemetry-chart-readout{padding-bottom:15px}
 .telemetry-chart output strong{font-size:32px}
 .telemetry-plot{height:220px}
 .telemetry-quarter-tick{display:none}
 .telemetry-zone{grid-template-columns:25px 82px minmax(20px,1fr);gap:6px}
 .telemetry-zone>span:last-child{grid-column:2/4;text-align:left;font-size:11px;margin-top:-2px}
 .telemetry-chart-legend{gap:9px}
 .telemetry-chart-legend small{flex-basis:100%;margin-left:0}
}

.telemetry-profile-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 20px}.telemetry-profile-actions button{font-size:13px;white-space:normal;min-height:44px}

.telemetry-zone-inputs input{padding:10px 12px;border:1px solid #cbd9dd;border-radius:6px;background:#fff;color:#183c49;min-height:44px}.telemetry-zone-form .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.telemetry-zone-form .actions button{white-space:normal;line-height:1.4;min-height:44px}

/* Sailing colours complement the GPS speed chart. */
.telemetry-sailing-current{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:22px;margin:-7px 0 12px;color:#526e77;font-size:12px}
.telemetry-sailing-current>i{width:8px;height:8px;flex:none;border-radius:50%;background:#e5ebee}
.telemetry-sailing-current>strong{font-weight:600;color:#274c57}
.telemetry-sailing-current>span{font-size:11px;font-variant-numeric:tabular-nums}
.telemetry-sailing{margin-top:17px}
.telemetry-sailing-label{margin:0 0 8px;font-size:11px;color:#667f88}
.telemetry-sailing-band{position:relative;height:12px;margin-right:43px;border-radius:4px;overflow:hidden;cursor:crosshair;background:#e5ebee;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.telemetry-sailing-band svg{height:12px;overflow:hidden}
.telemetry-sailing-cursor{position:absolute;top:0;bottom:0;left:0;width:2px;background:#fff;box-shadow:0 0 0 1px #47636f;pointer-events:none;transform:translateX(-50%)}
.telemetry-sailing-legend{display:flex;flex-wrap:wrap;gap:8px 16px;margin-top:11px;color:#617984;font-size:11px}
.telemetry-sailing-legend>span{display:inline-flex;align-items:center;gap:6px}
.telemetry-sailing-legend i{display:inline-block;width:10px;height:8px;flex:none;border-radius:2px}
.telemetry-sailing-legend .telemetry-sailing-unknown{background-image:repeating-linear-gradient(135deg,transparent,transparent 2px,#bdcbd1 2px,#bdcbd1 3px)}
.telemetry-sailing-notice{margin:10px 0 0;max-width:65ch}
@media(max-width:520px){.telemetry-sailing-legend{gap:8px 13px}.telemetry-sailing-current{gap:6px}.telemetry-sailing-current>span{font-size:10px}}

.telemetry-dialog{color:var(--lu-text,#183c49)}
.telemetry-section,.telemetry-time-control{border-color:var(--lu-line,#e9eeee)}
.telemetry-stats dd,.telemetry-zone strong{color:var(--lu-text,#103548)}
.telemetry-stats dt,.telemetry-source,.telemetry-missing-zones,.telemetry-zone{color:var(--lu-muted,#526874)}
.telemetry-zone-bar{background:var(--lu-raised,#f0f4f4)}
.telemetry-chart-moment{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px}
.telemetry-chart-heart{
  background:var(--lu-raised,#f5f8fa);
  border-radius:14px;
  padding:16px 16px 10px;
}
.telemetry-chart-heart .telemetry-chart-caption{
  color:var(--lu-muted,#526874);
  letter-spacing:normal;
  text-transform:none;
  font-size:12px;
}
.telemetry-chart-heart output,.telemetry-chart-heart .telemetry-chart-instant,
.telemetry-current-zone{color:var(--lu-text,#142f3b)}
.telemetry-chart-heart output>span,.telemetry-chart-heart .telemetry-value-axis,
.telemetry-chart-heart .telemetry-time-axis,.telemetry-chart-heart .telemetry-chart-legend,
.telemetry-chart-heart .telemetry-chart-legend small{color:var(--lu-muted,#526874)}
.telemetry-chart-heart .telemetry-chart-instant,.telemetry-current-zone{
  background:var(--lu-surface,#fff);
}
.telemetry-current-zone{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
  padding:6px 10px;
  border-radius:20px;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
}
.telemetry-current-zone[hidden]{display:none}
.telemetry-current-zone::before{
  content:'';
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--zone-color);
}
.telemetry-chart-heart .telemetry-plot-drawing{touch-action:pan-y;user-select:none}
.telemetry-chart-heart .telemetry-grid line{stroke:var(--lu-line,#dce5e9)}
.telemetry-chart-heart .telemetry-lines polyline{stroke-width:3}
.telemetry-chart-heart .telemetry-cursor{stroke:var(--lu-muted,#617883);opacity:.55}
.telemetry-chart-heart .telemetry-chart-point{
  width:10px;
  height:10px;
  border-color:var(--lu-surface,#fff);
  box-shadow:0 0 0 1px var(--lu-line,#b4cccf);
}
.telemetry-chart-heart .telemetry-chart-legend{gap:8px 12px;padding:14px 0 4px}
@media(max-width:520px){
  .telemetry-chart-heart{padding:12px 10px 8px}
  .telemetry-chart-heart .telemetry-chart-readout{align-items:flex-start}
  .telemetry-chart-heart .telemetry-plot{height:200px}
}

html[data-theme] .social-detail-dialog .friend-activity-summary > button.telemetry-card-link{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
  width:100%;
  min-height:46px;
  margin:10px 0 0;
  padding:8px 12px;
  border:0;
  border-radius:2px;
  background:linear-gradient(110deg,#00233d,#0b3046);
  color:#fff;
  text-align:left;
  white-space:normal;
  font-size:14px;
  font-weight:650;
  line-height:1.3;
  touch-action:manipulation;
  transition:opacity .12s ease;
}
.telemetry-card-icon{
  display:grid;
  place-items:center;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#ffffff19;
}
.telemetry-card-icon svg,.telemetry-card-arrow{
  display:block;
  width:17px;
  height:17px;
  color:#fff500;
  stroke:currentColor;
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
}
html[data-theme] .social-detail-dialog .friend-activity-summary > .telemetry-card-summary{
  margin:6px 0 0;
  color:var(--lu-muted,#526874);
}
html[data-theme] .social-detail-dialog .friend-activity-summary > button.telemetry-card-link:active{
  opacity:.84;
  transform:none;
}
@media(hover:hover) and (pointer:fine){
  html[data-theme] .social-detail-dialog .friend-activity-summary > button.telemetry-card-link:hover{
    background:linear-gradient(110deg,#0a3047,#123b50);
  }
}
@media(max-width:520px){
  html[data-theme] .social-detail-dialog .friend-activity-summary > button.telemetry-card-link{
    gap:8px;
    padding-inline:10px;
    font-size:13px;
  }
}
@media(prefers-reduced-motion:reduce){
  html[data-theme] .social-detail-dialog .friend-activity-summary > button.telemetry-card-link{transition:none}
}
