/* ===== Atemp — My plan ===== */
.ap { padding-top: 32px; }
.ap-page { --k-easy: var(--brand); --k-quality: var(--hard); --k-long: #8C76FF; --k-strength: var(--bright); --k-rest: #3A3A3F; --k-race: #E8823F; }
.is-good { color: #7FD8A8; } .is-warn { color: #F0C064; }

/* empty state */
.ap-empty { display: grid; justify-items: center; gap: 12px; max-width: 520px; margin: 40px auto; padding: 48px 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); text-align: center; }
.ap-empty[hidden] { display: none; }
.ap-empty img { border-radius: 14px; box-shadow: 0 10px 28px -10px rgb(64 147 247 / 55%); }
.ap-empty h1 { margin: 8px 0 0; color: var(--bright); font-size: 26px; letter-spacing: -.03em; }
.ap-empty p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.ap-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* header */
.ap-head { display: grid; gap: 22px; }
.ap-head .mp-eyebrow { margin: 0 0 8px; }
.ap-head h1 { margin: 0; color: var(--bright); font-size: clamp(28px, 4.6vw, 40px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; }
.ap-head h1 span { color: var(--brand-ink); font-weight: 600; }
.ap-head-sub { margin: 6px 0 0; font-size: 14.5px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.ap-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--text); font-size: 12.5px; }
.ap-chips li.is-brand { border-color: transparent; background: rgb(64 147 247 / 16%); color: var(--brand-ink); font-weight: 600; }
.ap-chips svg { width: 13px; height: 13px; }
.ap-saved { color: var(--muted) !important; }
.ap-stats { margin: 0; }
.ap-stats small { line-height: 1.4; }

/* tabs */
.ap-toolbar { scroll-margin-top: 68px; }
.ap-tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ap-tabs::-webkit-scrollbar { display: none; }
.ap-tabs button { flex: none; white-space: nowrap; }

/* shared bits */
.ap-chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: rgb(255 255 255 / 7%); color: var(--bright); font-size: 12px; font-weight: 600; }
.ap-chip.is-base { background: rgb(58 120 198 / 22%); color: #9DC3F2; }
.ap-chip.is-build { background: rgb(232 130 63 / 20%); color: #F5B88E; }
.ap-chip.is-peak { background: var(--hard-soft); color: #F2A3A7; }
.ap-chip.is-taper { background: rgb(47 166 181 / 20%); color: #8ED6DF; }
.ap-chip.is-brand { background: var(--brand-strong); color: #fff; }
.ap-chip.is-warn { background: rgb(201 133 0 / 18%); color: #F0C064; }
.ap-chip.is-risk { background: var(--hard-soft); color: #F2A3A7; }
.ap-chip.is-good { background: rgb(48 164 108 / 16%); color: #7FD8A8; font-size: 11px; vertical-align: 2px; margin-left: 6px; }
.ap-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0; }
.ap-mini dt { color: var(--muted); font-size: 12px; }
.ap-mini dd { margin: 2px 0 0; color: var(--bright); font-size: 18px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ap-mini small { color: var(--muted); font-size: 12px; font-weight: 500; }
.ap-prevdec { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
.ap-prevdec b { display: inline-grid; flex: none; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 7%); color: var(--bright); font-size: 12px; }
.ap-prevdec.is-good b { background: rgb(48 164 108 / 20%); color: #7FD8A8; }
.ap-prevdec.is-warn b { background: rgb(201 133 0 / 20%); color: #F0C064; }
.ap-prevdec.is-risk b { background: var(--hard-soft); color: #F2A3A7; }
.ap-dec { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.ap-dec.is-good { color: #7FD8A8; } .ap-dec.is-warn { color: #F0C064; } .ap-dec.is-risk { color: #F2A3A7; }
.ap-empty-note { margin: 16px 0 0; padding: 14px 16px; border: 1px dashed #333338; border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.mp-btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }

/* week */
.ap-weeknav { display: flex; flex-wrap: wrap; align-items: center; width: 100%; gap: 14px; margin-bottom: 16px; }
.ap-weeknav-t { flex: 1 1 0; min-width: 0; text-align: center; }
.ap-weeknav h2 { margin: 0; color: var(--bright); font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.ap-weeknav h2 small { color: var(--muted); font-size: 14px; font-weight: 500; }
.ap-weeknav p { margin: 2px 0 0; font-size: 13px; }
.ap-today { flex: 0 0 100%; margin: 0; text-align: center; }
.ap-weekwrap { margin-bottom: 14px; }
.ap-weekwrap .ap-weeknav { margin-bottom: 18px; }
.ap-weekcard { margin-bottom: 8px; padding: 18px 0 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ap-focus { margin: 12px 0 0; color: var(--bright); font-size: 14.5px; line-height: 1.6; }
.ap-meter { position: relative; height: 8px; margin-top: 18px; overflow: hidden; border-radius: 999px; background: #23262D; }
.ap-meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand-strong), var(--brand)); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.ap-days { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ap-day { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 16px; align-items: start; padding: 16px 0 16px 14px; border: 0; border-bottom: 1px solid var(--line); border-left: 3px solid var(--k, #3A3A3F); border-radius: 0; background: none; transition: border-color .2s ease, background .2s ease; }
.ap-day.k-easy { --k: var(--k-easy); } .ap-day.k-quality { --k: var(--k-quality); } .ap-day.k-long { --k: var(--k-long); }
.ap-day.k-strength { --k: var(--k-strength); } .ap-day.k-race { --k: var(--k-race); }
.ap-days > .ap-day:last-child { border-bottom: 0; padding-bottom: 4px; }
.ap-day.k-rest .ap-day-main h3 { color: var(--muted); }
.ap-day.is-today { border-left-color: var(--k, var(--brand)); background: linear-gradient(90deg, rgb(64 147 247 / 9%), transparent 70%); }
.ap-day.is-before { opacity: .5; }
.ap-day-date { display: grid; justify-items: center; gap: 0; padding-top: 2px; text-align: center; }
.ap-day-date b { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ap-day-date span { color: var(--bright); font-size: 24px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ap-day-date em { margin-top: 4px; padding: 1px 7px; border-radius: 999px; background: var(--brand-strong); color: #fff; font-size: 10.5px; font-style: normal; font-weight: 600; }
.ap-day-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ap-day-top h3 { margin: 0; color: var(--bright); font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.ap-km { margin-left: auto; color: var(--bright); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ap-pace { margin: 6px 0 0; color: var(--brand-ink); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; }
.ap-detail { margin: 6px 0 0; font-size: 13.5px; line-height: 1.6; }
.ap-note { margin: 8px 0 0; color: var(--muted); font-size: 13px; font-style: italic; }
.ap-day-log { display: flex; align-items: center; min-height: 36px; }
.ap-logbtn[data-future] { border-style: dashed; color: var(--muted); }
.ap-logged { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid transparent; border-radius: 10px; background: rgb(48 164 108 / 14%); color: #7FD8A8; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s ease; }
.ap-logged:hover { border-color: currentColor; }
.ap-logged svg { width: 14px; height: 14px; flex: none; }
.ap-logged.is-partial { background: rgb(201 133 0 / 16%); color: #F0C064; }
.ap-logged.is-no { background: var(--hard-soft); color: #F2A3A7; }
.ap-weekfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding: 14px 16px; border: 1px dashed #333338; border-radius: 14px; }
.ap-weekfoot p { margin: 0; font-size: 13.5px; }

/* log dialog */
.ap-log .mp-dialog-in { gap: 16px; }
.ap-log h2 { margin-top: -8px; }
.ap-log-plan { margin: -8px 0 0; color: var(--brand-ink); font-size: 13.5px; }
.ap-done { margin: 0; padding: 0; border: 0; }
.ap-done legend { margin-bottom: 8px; padding: 0; color: var(--bright); font-size: 13px; font-weight: 500; }
.ap-done .mp-seg-wide { margin: 0; max-width: none; }
.ap-log-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; transition: opacity .2s ease; }
.ap-log-grid.is-hidden { display: none; }
.ap-log-grid.is-off { opacity: .35; pointer-events: none; }
.mp-field small { color: var(--muted); font-weight: 400; }
.mp-field textarea { width: 100%; min-height: 64px; padding: 10px 12px; border: 1px solid #303035; border-radius: 10px; background: #111113; color: var(--bright); font: inherit; font-size: 14px; resize: vertical; }
.mp-field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px rgb(64 147 247 / 20%); }
.ap-log-actions { display: flex; justify-content: flex-end; gap: 10px; }
.ap-log-del { margin-right: auto; color: #F2A3A7; }

/* chart extras */
.ap-chart { margin-bottom: 4px; }
.ap-chart .mp-tip { top: -12px; right: auto; width: auto; max-width: 280px; padding: 8px 11px; color: var(--bright); opacity: 1; visibility: visible; transform: none; }
.ap-chart .mp-tip[hidden] { display: none; }
.ap-chart .mp-bar i { opacity: .55; }
.ap-chart .mp-bar.is-cut i { opacity: .3; }
.ap-chart .mp-bar.is-now i { opacity: 1; box-shadow: 0 0 0 2px var(--bright); }
.ap-chart .mp-bar.is-hover i { opacity: .9; }
.ap-actual { position: absolute; bottom: 24px; left: 50%; width: min(10px, calc(50% - 2px)); border-radius: 3px 3px 0 0; background: var(--bright); transform: translateX(-50%); pointer-events: none; }
.ap-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 10px 0 0 30px; padding: 0; list-style: none; color: var(--muted); font-size: 12px; }
.ap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.ap-legend i { width: 12px; height: 12px; border-radius: 3px; }
.ap-legend .is-target { background: linear-gradient(90deg, var(--ph-base), var(--ph-build), var(--ph-peak), var(--ph-taper)); opacity: .7; }
.ap-legend .is-actual { width: 6px; background: var(--bright); }
.ap-legend .is-now { box-shadow: inset 0 0 0 2px var(--bright); }
.mp-panel > .mp-card + .mp-card, .mp-panel > .mp-card + .mp-two, .mp-panel > .mp-two + .mp-notes, .mp-panel > .mp-notes + .mp-card { margin-top: 16px; }
.mp-two > .mp-card { margin: 0; }
.mp-panel > .mp-two:first-child { margin-top: 0; }

/* plan table */
.ap-tablecard { padding-bottom: 8px; }
.ap-table td.n, .ap-table th.n { text-align: right; }
.ap-table td:last-child { color: inherit; }
.ap-table tbody tr[data-week] { cursor: pointer; transition: background .15s ease; }
.ap-table tbody tr[data-week]:hover, .ap-table tbody tr[data-week]:focus-visible { background: rgb(255 255 255 / 4%); outline: none; }
.ap-table tr.is-current td { background: rgb(64 147 247 / 8%); }
.ap-table td small { color: var(--muted); }
.ap-dotph { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 2px; vertical-align: 0; }
.ap-dotph.is-base { background: var(--ph-base); } .ap-dotph.is-build { background: var(--ph-build); } .ap-dotph.is-peak { background: var(--ph-peak); } .ap-dotph.is-taper { background: var(--ph-taper); }
.ap-dlcard { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ap-dlcard h3, .ap-data h3 { margin: 0; color: var(--bright); font-size: 16px; font-weight: 600; }
.ap-dlcard p, .ap-data p { margin: 4px 0 0; font-size: 13.5px; }

/* review */
.ap-rv { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: 16px; align-items: start; }
.ap-rv-main .mp-card-head h3 { display: flex; align-items: center; }
.ap-rv-stats { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #111113; margin: 0; }
.ap-rv-form { display: grid; gap: 18px; margin-top: 20px; }
.ap-rv-form fieldset { margin: 0; padding: 0; border: 0; }
.ap-rv-form legend { margin-bottom: 8px; padding: 0; color: var(--bright); font-size: 13.5px; font-weight: 500; }
.ap-seg-4 { max-width: none; margin: 0; }
.ap-rv-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.ap-rv-preview { padding: 14px 16px; border: 1px solid rgb(64 147 247 / 30%); border-radius: 12px; background: rgb(64 147 247 / 6%); }
.ap-rv-preview .ap-prevdec { margin: 0; }
.ap-rv-next { margin: 10px 0 0; color: var(--bright); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ap-rv-next small { color: var(--muted); }
.ap-rv-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.ap-rv-side { position: sticky; top: 140px; max-height: calc(100vh - 160px); overflow: auto; }
.ap-rv-list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ap-rv-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid transparent; border-radius: 10px; background: none; text-align: left; cursor: pointer; transition: background .15s ease, border-color .15s ease; }
.ap-rv-item:hover { background: rgb(255 255 255 / 4%); }
.ap-rv-item.is-on { border-color: rgb(64 147 247 / 45%); background: rgb(64 147 247 / 8%); }
.ap-rv-item b { display: block; color: var(--bright); font-size: 13.5px; font-weight: 600; }
.ap-rv-item small { color: var(--muted); font-size: 12px; }

/* progress */
.ap-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-tile { padding: 16px 18px; }
.ap-tile-t { margin: 0; color: var(--muted); font-size: 12px; }
.ap-tile-v { margin: 4px 0 0; color: var(--bright); font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ap-tile-s { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.ap-ready { display: flex; align-items: center; gap: 18px; grid-column: span 2; grid-row: span 2; padding: 22px; background: linear-gradient(160deg, rgb(64 147 247 / 12%), transparent 60%), var(--card); }
.ap-ready .ap-tile-v { font-size: 40px; }
.ap-ready .ap-tile-s { color: var(--text); font-size: 13px; }
.ap-ready .ap-how { color: var(--muted); font-size: 11.5px; }
.ap-ring { width: 104px; height: 104px; flex: none; }
.ap-tiles + .mp-card { margin-top: 16px; }
.ap-tt-form { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr auto; gap: 12px; align-items: end; margin-bottom: 8px; }
.ap-tt-out { grid-column: 1 / -1; margin: 0; font-size: 13.5px; }
.ap-tt-out b { color: var(--bright); }
.ap-x { display: grid; width: 28px; height: 28px; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.ap-x:hover { background: rgb(255 255 255 / 8%); color: var(--bright); }

/* profile */
.ap-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ap-dl { display: grid; gap: 0; margin: 0; }
.ap-dl div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid #232327; font-size: 13.5px; }
.ap-dl div:last-child { border-bottom: 0; }
.ap-dl dt { color: var(--muted); }
.ap-dl dd { margin: 0; color: var(--bright); }
.ap-sub { margin: 18px 0 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ap-pattern { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 0; padding: 0; list-style: none; }
.ap-pattern li { display: grid; gap: 2px; padding: 8px 2px; border-top: 3px solid #3A3A3F; border-radius: 6px; background: #111113; text-align: center; font-size: 11px; }
.ap-pattern b { color: var(--muted); font-size: 11px; }
.ap-pattern span { color: var(--bright); font-weight: 600; }
.ap-pattern .r-LR { border-top-color: var(--k-long); } .ap-pattern .r-Q1, .ap-pattern .r-Q2 { border-top-color: var(--k-quality); }
.ap-pattern .r-E { border-top-color: var(--k-easy); } .ap-pattern .r-ST { border-top-color: var(--k-strength); }
.ap-pattern .r-R span { color: var(--muted); font-weight: 500; }
.ap-paces { margin-top: 14px; }
.ap-paces td:last-child { white-space: normal; }
.ap-paces th:first-child, .ap-paces td:first-child { padding-left: 0; }
.ap-paces th:last-child, .ap-paces td:last-child { padding-right: 0; }
.ap-paces th:nth-child(1), .ap-paces td:nth-child(1) { width: 162px; }       /* same left edge as the values in the list above */
.ap-paces th:nth-child(2), .ap-paces td:nth-child(2) { width: 96px; padding-left: 0; }
.ap-paces td.n, .ap-paces th.n { text-align: left; }
@media (max-width: 560px) { .ap-paces th:nth-child(1), .ap-paces td:nth-child(1) { width: auto; } .ap-paces th:nth-child(2), .ap-paces td:nth-child(2) { width: auto; padding-left: 10px; } }
.ap-paces b { color: var(--bright); }
.ap-data { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ap-data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ap-danger { color: #F2A3A7; }
.ap-guide { display: grid; gap: 4px; padding: 8px 22px; }
.ap-guide details { padding: 10px 0; border-bottom: 1px solid #232327; }
.ap-guide details:last-child { border-bottom: 0; }
.ap-guide summary { color: var(--bright); font-size: 14.5px; font-weight: 600; cursor: pointer; }
.ap-guide ul { display: grid; gap: 8px; margin: 12px 0 4px; padding-left: 18px; font-size: 13.5px; line-height: 1.6; }
.ap-guide ul b { color: var(--bright); font-weight: 600; }
.ap-gloss { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin: 12px 0 4px; }
.ap-gloss dt { color: var(--bright); font-size: 13.5px; font-weight: 600; }
.ap-gloss dd { margin: 2px 0 0; font-size: 13px; line-height: 1.55; }

@media (max-width: 900px) {
  .ap-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-rv { grid-template-columns: 1fr; }
  .ap-rv-side { position: static; max-height: none; }
  .ap-tt-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ap { padding-top: 20px; }
  .ap-tabs { display: flex; width: 100%; }
  .ap-tabs button { flex: 1 0 auto; padding: 0 12px; }
  .ap-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-day { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0 14px 12px; }
  .ap-day-date span { font-size: 20px; }
  .ap-day-log { grid-column: 2; }
  .ap-km { margin-left: 0; }
  .ap-day-top { gap: 4px 8px; }
  .ap-day-top h3 { flex-basis: 100%; order: 2; }
  .ap-day-top .mp-tag { order: 1; }
  .ap-day-top .ap-km { order: 1; margin-left: auto; }
  .ap-ready { grid-column: 1 / -1; grid-row: auto; }
  .ap-ring { width: 84px; height: 84px; }
  .ap-ready .ap-tile-v { font-size: 32px; }
  .ap-tile-v { font-size: 20px; }
  .ap-log-grid, .ap-rv-grid { grid-template-columns: 1fr; }
  .ap-tt-form { grid-template-columns: 1fr; }
  .ap-dl div { grid-template-columns: 1fr; gap: 2px; }
  .ap-gloss { grid-template-columns: 1fr; }
  .ap-pattern span { font-size: 10px; }
  .ap-weeknav { gap: 10px; }
  .ap-legend { margin-left: 0; }
}

.ap-log-hint { margin: -6px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.ap-log-hint:empty { display: none; }

/* phases under the chart: a vertical list with colour squares on narrow screens */
@media (max-width: 720px) {
  .ap-page .mp-phases { grid-template-columns: 1fr !important; gap: 8px; margin: 14px 0 0; }
  .ap-page .mp-phases li { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 10px; padding: 0; border-top: 0; border-radius: 0; opacity: 1 !important; }
  .ap-page .mp-phases li::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
  .ap-page .mp-phases small { white-space: nowrap; }
  .ap-page .mp-phases small::before { display: none; }
}

/* chart: swipe sideways when the bars would get too thin; the km labels stay fixed on the left */
.ap-chart-wrap { display: flex; align-items: flex-start; margin: -18px -22px 0 0; }
.ap-yaxis { position: relative; flex: none; width: 30px; height: 240px; margin-top: 30px; }
.ap-yaxis .mp-grid-y span { border-top: 0; }
.ap-yaxis .mp-grid-y em { right: 8px; text-align: right; }
.ap-chart-scroll { flex: 1; min-width: 0; padding: 30px 22px 0 0; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.ap-chart { margin-left: 0; }
@media (max-width: 640px) { .ap-yaxis { height: 200px; } }
@media (max-width: 720px) {
  .ap-chart-wrap { margin-right: -18px; }
  .ap-chart-scroll { padding-right: 18px; }
  .ap-chart { min-width: calc(var(--n) * 26px); }
  .ap-chart .mp-tip { max-width: 220px; }
}

/* account & sync card */
.ap-acct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.ap-acct h3 { margin: 0; color: var(--bright); font-size: 16px; font-weight: 600; }
.ap-acct p { margin: 4px 0 0; font-size: 13.5px; overflow-wrap: anywhere; }
.ap-acct .ap-acct-status { color: var(--muted); font-size: 12.5px; }
.ap-acct .ap-acct-status.is-offline, .ap-acct .ap-acct-status.is-conflict { color: #F0C064; }
.ap-acct .ap-acct-status.is-error { color: #F2A3A7; }
.ap-acct .mp-btn svg { width: 16px; height: 16px; }
.mp-card + .ap-acct, .ap-acct + .ap-data { margin-top: 16px; }

.ap-gcal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 0 0 20px; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 16px; background: rgb(255 255 255 / 2.5%); }
.ap-gcal-t { flex: 1 1 280px; min-width: 0; }
.ap-gcal-t b { color: var(--bright); font-size: 14.5px; font-weight: 600; }
.ap-gcal-t p { margin: 3px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ap-gcal-act { display: flex; flex-wrap: wrap; gap: 8px; }
