:root {
  --bg: #090f19;
  --side: #0c1521;
  --card: #111f2b;
  --card2: #152834;
  --edge: #253746;
  --muted: #96a9b4;
  --text: #eff7f5;
  --accent: #cefb6e;
  --teal: #69dfc8;
  --blue: #93bcff;
  --orange: #f0bb83;
  --red: #ee9c99;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px 'DM Sans',
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.045em;
}
h1 {
  font-size: clamp(30px, 3vw, 43px);
  font-weight: 600;
}
h2 {
  font-size: 22px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
a {
  color: var(--accent);
}
.muted {
  color: var(--muted);
}
.mini {
  font-size: 11px;
  color: var(--muted);
}
.loading {
  display: grid;
  place-content: center;
  min-height: 100vh;
  text-align: center;
  font: 700 28px 'Space Grotesk';
}
.loading span,
.logo span {
  color: var(--accent);
}
.loading p {
  font: 400 13px 'DM Sans';
  color: var(--muted);
  margin-top: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  max-width: 1850px;
  margin: auto;
  min-height: 100vh;
}
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--edge);
  padding: 30px 19px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.logo {
  font: 700 24px 'Space Grotesk';
  letter-spacing: -0.07em;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
}
.logo-icon {
  height: 37px;
  width: 37px;
  border-radius: 11px;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #14201b;
  letter-spacing: -0.12em;
  font-size: 17px;
}
.navlabel {
  font-size: 10px;
  letter-spacing: 0.17em;
  color: #778b9b;
  font-weight: 800;
  margin: 6px 12px 9px;
}
.navlink {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #9eafbb;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 14px;
  font-weight: 700;
  margin: 3px 0;
}
.navlink:hover {
  background: #ffffff09;
  color: white;
}
.navlink.active {
  background: #d2fb6f17;
  color: var(--accent);
  box-shadow: inset 2px 0 var(--accent);
}
.navicon {
  font-size: 18px;
  width: 22px;
  text-align: center;
}
.sidestretch {
  margin-top: auto;
}
.sidecard {
  border: 1px solid #385042;
  background: linear-gradient(145deg, #213d31, #122c31);
  border-radius: 15px;
  padding: 17px;
}
.sidecard p {
  color: #aac4bd;
  font-size: 12px;
  margin-top: 7px;
}
.userbox {
  border-top: 1px solid var(--edge);
  padding: 20px 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.bubble-avatar {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #294b46;
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 800;
}
.main {
  min-width: 0;
  padding: 32px clamp(16px, 3.3vw, 60px) 80px;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}
.brandcrumb {
  font-size: 12px;
  color: #8298a7;
}
.brandcrumb b {
  color: #edf7f1;
}
.status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #355044;
  background: #1b342d;
  padding: 7px 12px;
  border-radius: 100px;
  font-size: 11px;
  color: #c3edae;
  font-weight: 800;
}
.status:before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--accent);
  margin-right: 8px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 23px;
}
.section-header p {
  color: var(--muted);
  margin-top: 7px;
}
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: 17px;
  padding: 22px;
  min-width: 0;
}
.soft {
  background: var(--card2);
}
.hero {
  border: 1px solid #335746;
  border-radius: 20px;
  background: radial-gradient(circle at 77% 6%, #39684685, transparent 33%), linear-gradient(120deg, #1a382f, #122a32 63%, #11222d);
  min-height: 225px;
  padding: 31px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  overflow: hidden;
  position: relative;
}
.hero:after {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border: 43px solid #d8ff7710;
  border-radius: 50%;
  right: -38px;
  top: -175px;
}
.hero-copy {
  z-index: 1;
  max-width: 520px;
}
.hero h2 {
  font-size: clamp(25px, 3vw, 37px);
  line-height: 1.2;
  margin-bottom: 9px;
}
.hero h2 em {
  font-style: normal;
  color: var(--accent);
}
.hero p {
  color: #bad1c8;
  font-size: 13px;
  max-width: 500px;
}
.hero .btn {
  margin-top: 21px;
}
.hero-mark {
  font: 600 56px 'Space Grotesk';
  color: #d1fa6b;
  opacity: 0.6;
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 18px 0 28px;
}
.metric {
  padding: 19px;
  min-height: 128px;
}
.metric-title {
  font-size: 11px;
  color: #a1b6bd;
  font-weight: 700;
}
.metric-val {
  font: 600 32px 'Space Grotesk';
  margin: 15px 0 2px;
  letter-spacing: -0.06em;
}
.metric-foot {
  font-size: 11px;
  color: var(--muted);
}
.metric-foot b {
  color: var(--accent);
}
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contentgrid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 1fr);
  gap: 17px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.sectiontitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
}
.sectiontitle small {
  color: var(--muted);
}
.tablewrap {
  overflow: auto;
}
.datatable {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.datatable th {
  text-align: left;
  color: #9eb1ba;
  padding: 12px 7px;
  border-bottom: 1px solid var(--edge);
  font-weight: 700;
  white-space: nowrap;
}
.datatable td {
  padding: 12px 7px;
  border-bottom: 1px solid #203441;
  color: #dce9e8;
}
.datatable tr:last-child td {
  border-bottom: 0;
}
.badge {
  border: 1px solid #3c5247;
  background: #1c362e;
  color: #c9f8ad;
  border-radius: 99px;
  padding: 4px 9px;
  font-size: 10px;
  display: inline-block;
  font-weight: 700;
}
.badge.alt {
  background: #203340;
  border-color: #32495a;
  color: #adcaef;
}
.badge.warn {
  background: #3d2e23;
  border-color: #624632;
  color: #f4cba8;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  padding: 11px 16px;
  border-radius: 10px;
  background: #28404c;
  color: white;
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
}
.btn:hover {
  filter: brightness(1.1);
}
.btn-primary {
  background: var(--accent);
  color: #172318;
}
.btn-border {
  background: transparent;
  border: 1px solid #415463;
  color: #c4d4dc;
}
.btn-danger {
  background: #472e32;
  color: #ffd2d2;
}
.btn-small {
  padding: 8px 11px;
  font-size: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
  min-width: 0;
}
.field label {
  font-size: 11px;
  font-weight: 800;
  color: #b5c5cd;
}
.field input,
.field select,
.field textarea {
  background: #0b1723;
  border: 1px solid #344c5a;
  border-radius: 9px;
  color: white;
  padding: 11px 12px;
  min-width: 0;
  width: 100%;
  outline: none;
}
.field textarea {
  min-height: 99px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
}
.field input::placeholder,
.field textarea::placeholder {
  color: #728999;
}
.formgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 15px;
}
.notice {
  border: 1px solid #3b5045;
  border-radius: 12px;
  background: #1d332d;
  padding: 15px;
  font-size: 12px;
  color: #c2dec7;
  line-height: 1.6;
}
.notice.warning {
  background: #332a22;
  border-color: #594738;
  color: #ebcba7;
}
.notice.neutral {
  background: #1a2e3b;
  border-color: #325063;
  color: #b3ceda;
}
.line {
  height: 1px;
  background: var(--edge);
  margin: 18px 0;
}
.coachline,
.workoutline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--edge);
}
.coachline:last-child,
.workoutline:last-child {
  border: 0;
}
.sportic {
  height: 40px;
  width: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #264038;
  font-size: 20px;
}
.sportic.bike {
  background: #21434a;
}
.sportic.swim {
  background: #273d60;
}
.sportic.strength {
  background: #43362c;
}
.grow {
  flex: 1;
  min-width: 0;
}
.grow b {
  font-size: 13px;
}
.grow p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.promostack {
  display: grid;
  gap: 9px;
}
.prompt {
  border: 1px solid #354f4a;
  background: #1b302c;
  padding: 12px 14px;
  border-radius: 9px;
  text-align: left;
  color: #c6efd1;
  font-size: 12px;
}
.chat {
  height: 350px;
  overflow: auto;
  background: #0d1b25;
  border: 1px solid var(--edge);
  border-radius: 12px;
  padding: 17px;
  margin-bottom: 17px;
}
.chatbubble {
  padding: 12px 15px;
  border-radius: 10px;
  margin: 8px 0;
  line-height: 1.6;
  white-space: pre-wrap;
  font-size: 13px;
  background: #1c3338;
}
.chatbubble.user {
  background: #334931;
  margin-left: 13%;
}
.chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 13px 0;
}
.chip {
  background: #233a35;
  border: 1px solid #395c51;
  color: #c7f0d9;
  border-radius: 100px;
  padding: 8px 11px;
  font-size: 11px;
}
.zonegrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.zone {
  background: #152b32;
  border: 1px solid #2d4751;
  border-radius: 12px;
  padding: 17px;
}
.zone strong {
  display: block;
  font: 600 24px 'Space Grotesk';
  color: var(--accent);
  margin: 9px 0;
}
.zone small {
  color: var(--muted);
}
.zone h3 {
  text-transform: capitalize;
}
.coachcard {
  background: linear-gradient(160deg, #16302b, #132430);
  border: 1px solid #35514c;
  border-radius: 14px;
  padding: 19px;
}
.coachcard h3 {
  font-size: 19px;
  margin: 9px 0;
}
.coachcard p {
  font-size: 12px;
  color: #a4c0bb;
}
.codebox {
  font: 600 20px 'Space Grotesk';
  letter-spacing: 0.04em;
  background: #081920;
  border: 1px dashed #527454;
  border-radius: 9px;
  padding: 14px;
  overflow-wrap: anywhere;
  color: var(--accent);
}
.authwrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.authaside {
  background: radial-gradient(circle at 55% 20%, #4a6d41a1, transparent 40%), linear-gradient(140deg, #1d4036, #0d1d2a);
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 12%;
  border-right: 1px solid #3a5546;
  overflow: hidden;
}
.authaside h1 {
  font-size: clamp(40px, 4.8vw, 75px);
  line-height: 1.05;
  margin: 30px 0;
}
.authaside h1 em {
  font-style: normal;
  color: var(--accent);
}
.authaside p {
  font-size: 16px;
  color: #bfdbd2;
  max-width: 470px;
}
.authaside .mark {
  font: 700 80px 'Space Grotesk';
  color: #d1fb6b35;
  margin-top: 55px;
}
.authmain {
  display: grid;
  place-items: center;
  padding: 25px;
}
.authcard {
  width: min(420px, 100%);
}
.authcard h2 {
  font-size: 30px;
  margin-bottom: 7px;
}
.authcard > p {
  margin-bottom: 27px;
  color: var(--muted);
}
.authcard .btn {
  width: 100%;
  padding: 14px;
}
.auth-switch {
  text-align: center;
  font-size: 12px;
  margin-top: 20px;
  color: var(--muted);
}
.auth-switch button {
  background: none;
  color: var(--accent);
  font-weight: 700;
}
.flex {
  display: flex;
}
.justify {
  justify-content: space-between;
}
.align {
  align-items: center;
}
.gap {
  gap: 12px;
}
.mt {
  margin-top: 18px;
}
.mb {
  margin-bottom: 18px;
}
.center {
  text-align: center;
}
.gray {
  color: var(--muted);
}
.pill {
  padding: 6px 9px;
  background: #203c32;
  border-radius: 30px;
  color: #c5fab3;
  font-size: 10px;
  font-weight: 700;
}
.smallhead {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #849eaa;
  font-size: 10px;
  font-weight: 800;
}
.notfound {
  padding: 35px;
  border: 1px dashed #385361;
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}
.error {
  color: #ffbcb4;
}
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 30;
  max-width: 400px;
}
#toast .msg {
  padding: 15px 19px;
  border: 1px solid #486e50;
  border-radius: 11px;
  background: #173b2b;
  box-shadow: 0 20px 50px #000a;
  color: #d9ffdd;
  font-size: 13px;
}
#toast .msg.bad {
  background: #48262d;
  border-color: #8a424c;
  color: #ffe2e2;
}
.mobilemenu {
  display: none;
}
code {
  color: #d6ffc0;
}
.pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.pricing strong {
  font: 600 40px 'Space Grotesk';
  color: var(--accent);
}
.pricing span {
  color: var(--muted);
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 206px 1fr;
  }
  .sidebar {
    padding: 26px 10px;
  }
  .main {
    padding: 24px 22px 85px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-mark {
    font-size: 42px;
  }
}
@media (max-width: 800px) {
  .shell {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .main {
    padding: 23px 17px 110px;
  }
  .contentgrid,
  .grid2 {
    grid-template-columns: 1fr;
  }
  .mobilemenu {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: #0b1722f5;
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--edge);
    justify-content: space-evenly;
    padding: 8px 0 max(12px, env(safe-area-inset-bottom));
  }
  .mobilemenu button {
    background: transparent;
    color: #9baebb;
    display: grid;
    gap: 4px;
    justify-items: center;
    font-size: 10px;
    min-width: 53px;
  }
  .mobilemenu button span {
    font-size: 19px;
  }
  .mobilemenu button.active {
    color: var(--accent);
  }
  .authwrap {
    grid-template-columns: 1fr;
  }
  .authaside {
    display: none;
  }
  .authmain {
    min-height: 100vh;
  }
  .hero-mark {
    display: none;
  }
}
@media (max-width: 520px) {
  .main {
    padding: 17px 13px 100px;
  }
  .section-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar {
    margin-bottom: 22px;
  }
  .hero {
    padding: 24px;
    min-height: 220px;
  }
  .hero h2 {
    font-size: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
    min-height: 110px;
  }
  .metric-val {
    font-size: 27px;
  }
  .card {
    padding: 17px;
  }
  .grid3,
  .formgrid,
  .zonegrid {
    grid-template-columns: 1fr;
  }
  .datatable {
    font-size: 11px;
  }
  .datatable th,
  .datatable td {
    padding: 8px 5px;
  }
  .authcard {
    padding: 18px 8px;
  }
}
/* IRONMIND PRO advanced coaching */
.racecard {
  padding: 19px;
  border-radius: 15px;
  background: #142a30;
  border: 1px solid #355349;
  margin-bottom: 14px;
}
.racecard h2 {
  font-size: 21px;
  margin: 5px 0;
}
.predictbox {
  padding: 15px;
  background: #0c2027;
  border: 1px solid #2b4347;
  border-radius: 12px;
  margin-top: 15px;
}
.forecasttime {
  font: 600 clamp(28px, 4vw, 44px) 'Space Grotesk';
  color: var(--accent);
  margin: 8px 0;
}
.predictionparts {
  display: grid;
  gap: 9px;
  margin-top: 14px;
}
.predictionparts > div {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  column-gap: 8px;
  border-top: 1px solid #29434a;
  padding-top: 10px;
}
.predictionparts b {
  font-weight: 700;
  color: #e3efe5;
}
.predictionparts small {
  grid-column: 2;
  color: var(--muted);
  margin-top: 3px;
}
.statline {
  margin: 15px 0;
}
.bar {
  height: 9px;
  border-radius: 10px;
  background: #213942;
  margin-top: 8px;
  overflow: hidden;
}
.bar span {
  height: 100%;
  background: linear-gradient(90deg, #72dba8, var(--accent));
  display: block;
  border-radius: 10px;
}
.plannedrow {
  align-items: start;
}
.schedule-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 95px;
}
.schedule-actions select {
  background: #1c3339;
  border: 1px solid #47615d;
  color: #e4f0e3;
  border-radius: 8px;
  padding: 7px;
  font-size: 11px;
  max-width: 110px;
}
.contactline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  background: #1b3438;
  border: 1px solid #365454;
  color: #e2f0e9;
  padding: 16px;
  width: 100%;
  border-radius: 12px;
  margin-bottom: 9px;
}
.contactline span {
  font-size: 12px;
  color: var(--accent);
}
.contactline.selected {
  border-color: var(--accent);
}
.coach-advanced-list {
  display: grid;
  gap: 12px;
}
.coach-advanced-item {
  border: 1px solid #2b4f48;
  border-radius: 12px;
  padding: 16px;
  background: #18302f;
}
.coach-advanced-item h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.racedetail-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.racedetail-list .badge {
  margin: 3px;
}
.dashpromo {
  margin-bottom: 18px;
}
.sidebar {
  overflow-y: auto;
  scrollbar-width: thin;
}
.statline .flex {
  align-items: center;
}
@media (max-width: 760px) {
  .racecard {
    padding: 14px;
  }
  .forecasttime {
    font-size: 32px;
  }
  .predictionparts > div {
    grid-template-columns: 90px 1fr;
  }
  .schedule-actions {
    min-width: 78px;
  }
  .plannedrow {
    flex-wrap: wrap;
  }
  .plannedrow .grow {
    min-width: 55%;
  }
  .schedule-actions {
    flex-direction: row;
    width: 100%;
    max-width: none;
  }
  .section-header {
    align-items: flex-start;
  }
}

.weekboard {
  display: grid;
  grid-template-columns: repeat(7, minmax(110px, 1fr));
  gap: 8px;
  overflow-x: auto;
}
.weekday {
  border: 1px dashed #37514d;
  min-height: 125px;
  border-radius: 12px;
  background: #0c1d25;
  padding: 8px;
  min-width: 105px;
}
.weekday.dropready {
  background: #2e4d35;
  border-color: var(--accent);
}
.dayhead {
  display: flex;
  justify-content: space-between;
  color: #bbcfcc;
  font-size: 11px;
  border-bottom: 1px solid #29413e;
  padding-bottom: 8px;
  margin-bottom: 9px;
}
.dayhead small {
  color: var(--muted);
}
.weekevent {
  background: #27483c;
  color: #efffe8;
  border-radius: 9px;
  border: 1px solid #477159;
  padding: 9px 7px;
  margin: 6px 0;
  cursor: grab;
}
.weekevent.fromcoach {
  cursor: not-allowed;
  background: #293a50;
  border-color: #536685;
}
.weekevent b {
  font-size: 10px;
  display: block;
}
.weekevent span {
  font-size: 10px;
  color: #b8d3c6;
  display: block;
  margin-top: 5px;
}
.mb {
  margin-bottom: 15px;
}
@media (max-width: 1100px) {
  .weekboard {
    grid-template-columns: repeat(7, minmax(135px, 1fr));
  }
}

/* ---------------------------------------------------------------- IRONMIND 1.0 additions */
.good { color: var(--accent); }
.bad { color: var(--red); }
.metric-val .good, .metric-val .bad { font: inherit; }
.iconbtn { background: transparent; color: var(--muted); border: 1px solid #33485a; border-radius: 8px; width: 30px; height: 30px; display: grid; place-items: center; flex: none; }
.iconbtn:hover { color: var(--text); border-color: var(--accent); }
.chipbtn { background: #17303a; border: 1px solid #335157; color: #c3dcd6; border-radius: 99px; padding: 7px 12px; font-size: 11px; font-weight: 700; text-transform: capitalize; }
.chipbtn.on { background: var(--accent); color: #172318; border-color: var(--accent); }
.badge { white-space: nowrap; }
.badge.src-strava { background: #3a2418; border-color: #6b3a22; color: #ffc3a3; }
.badge.src-garmin { background: #182a3d; border-color: #2c4b6c; color: #a9cdf5; }
.badge.src-intervals { background: #2b2440; border-color: #4a3f72; color: #cfc4ff; }
.badge.src-manual { background: #2a2f33; border-color: #444d55; color: #ced6db; }
.workoutline > .badge { flex: none; }

/* charts */
.spark { width: 100%; height: 110px; display: block; }
.spark polyline { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.spark .l-ctl { stroke: #3987e5; }
.spark .l-atl { stroke: #d95926; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 11px; color: var(--muted); margin: 0 0 10px; text-transform: capitalize; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .k-ctl:before, .legend .k-atl:before { content: ''; width: 14px; height: 3px; border-radius: 2px; display: inline-block; margin-right: 6px; vertical-align: middle; }
.legend .k-ctl:before { background: #3987e5; }
.legend .k-atl:before { background: #d95926; }
.chartwrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: pan-y; }
.chart .grid { stroke: #22394a; stroke-width: 1; }
.chart .zero { stroke: #5b7387; stroke-width: 1; }
.chart .tick { fill: #8aa0ad; font-size: 10px; font-family: 'DM Sans', sans-serif; }
.chart .cross { stroke: #9fb4c0; stroke-width: 1; stroke-dasharray: 3 3; }
.chart g.bar { cursor: default; outline: none; }
.chart g.bar.hover rect:not([fill="transparent"]) { filter: brightness(1.18); }
.tip { position: absolute; top: 8px; min-width: 140px; background: #0b1621f2; border: 1px solid #36505f; border-radius: 9px; padding: 9px 11px; font-size: 11px; pointer-events: none; box-shadow: 0 12px 30px #0008; z-index: 2; }
.tip .tiphead { color: var(--muted); margin-bottom: 5px; }
.tip div { display: flex; align-items: center; gap: 6px; margin: 3px 0; white-space: nowrap; }
.tip i { width: 12px; height: 3px; border-radius: 2px; display: inline-block; }
.tip b { color: var(--text); }
.tip span { color: var(--muted); }
.tableview { margin-top: 10px; font-size: 11px; color: var(--muted); }
.tableview summary { cursor: pointer; }
.tableview .tablewrap { max-height: 260px; margin-top: 8px; }

/* integrations */
.sectiontitle h3 { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.provider { width: 28px; height: 28px; border-radius: 8px; display: inline-grid; place-items: center; font: 700 14px 'Space Grotesk'; color: #fff; flex: none; }
.provider.strava { background: #fc4c02; }
.provider.garmin { background: #1b6fb5; }
.provider.intervals { background: #6250d6; }
.provider.telegram { background: #229ed9; }
.provider.cal, .provider.file { background: #2f4b55; }
.btn-strava { background: #fc4c02; color: #fff; display: inline-block; text-decoration: none; }
a.btn { display: inline-block; text-decoration: none; }
.toggle { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--edge); cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.toggle span { display: flex; flex-direction: column; gap: 3px; }
.toggle small { color: var(--muted); font-size: 11px; }
.codebox.small { font: 500 12px ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; padding: 10px; }
.copyable { cursor: copy; }
.steps { margin: 0 0 12px; padding-left: 18px; color: #c9d8dd; line-height: 1.7; font-size: 13px; }
.steps code, .notice code, p code { background: #0b1723; padding: 1px 5px; border-radius: 4px; }
.weatherbox { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; background: #102531; border: 1px solid #2c4a55; border-radius: 12px; padding: 12px 14px; margin-top: 12px; }
.weatherbox p { font-size: 12px; margin-top: 3px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* mobile "More" drawer */
.mobiledrawer { display: none; }
@media (max-width: 800px) {
  .mobilemenu button { min-width: 48px; }
  .mobiledrawer { display: block; position: fixed; inset: 0; z-index: 19; background: #0009; }
  .mobiledrawer nav { position: absolute; left: 0; right: 0; bottom: 64px; max-height: 70vh; overflow: auto; background: var(--side); border-top: 1px solid var(--edge); border-radius: 18px 18px 0 0; padding: 14px 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; }
  .weatherbox { flex-direction: column; }
}

@media (max-width: 520px) {
  [data-chart='pmc'] .chart .tick { font-size: 20px; }
  .chart .tick { font-size: 13px; }
}
