:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --surface: #111821;
  --panel: #151e2a;
  --panel-hover: #1b2839;
  --border: #263244;
  --text: #f8fafc;
  --muted: #a1aec0;
  --accent: #70aaff;
  --primary: #3b82f6;
  --primary-ink: #061427;
  --green: #42d482;
  --danger: #ff9a9a;
  --shadow: 0 18px 70px #0005;
  --font: Inter, Geist, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --number: 'SF Mono', Menlo, Consolas, monospace;
  font: 100%/1.5 var(--font);
  background: var(--bg);
  color: var(--text);
}
:root[data-theme=light] {
  color-scheme: light;
  --bg: #f2f5f9;
  --surface: #fafcff;
  --panel: #fff;
  --panel-hover: #e8eff9;
  --border: #ccd8e7;
  --text: #141e2e;
  --muted: #46566c;
  --accent: #245dad;
  --green: #157a42;
  --danger: #ad151d;
  --shadow: 0 14px 55px #2a44651b;
}
@media (prefers-color-scheme: light) {
  :root[data-theme=system] {
    color-scheme: light;
    --bg: #f2f5f9;
    --surface: #fafcff;
    --panel: #fff;
    --panel-hover: #e8eff9;
    --border: #ccd8e7;
    --text: #141e2e;
    --muted: #46566c;
    --accent: #245dad;
    --green: #157a42;
    --danger: #ad151d;
    --shadow: 0 14px 55px #2a44651b;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 300px; margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea, summary, a { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .6; }
a { color: inherit; text-decoration: none; }
svg { flex-shrink: 0; vertical-align: middle; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3, strong { overflow-wrap: anywhere; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { color: #081326; background: #9ac5ff; }
.sr-only { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: .75rem; z-index: 30; transform: translateY(-200%); border-radius: .5rem; background: var(--panel); padding: .75rem; }
.skip:focus { transform: none; }
.loader { margin: 4rem auto; text-align: center; color: var(--muted); }
.muted, .hint { color: var(--muted); }
.hint { font-size: .875rem; }
.empty { padding: 1.4rem 1rem; border: 1px dashed var(--border); border-radius: .65rem; color: var(--muted); text-align: center; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 1rem; min-width: 0; }
.button { display: inline-flex; min-height: 2.65rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); color: var(--text); padding: .55rem .9rem; font-weight: 650; font-size: .875rem; line-height: 1.25; text-align: center; }
.button:hover { border-color: var(--accent); background: var(--panel-hover); }
.button.primary { color: var(--primary-ink); background: #6aa6ff; border-color: #79affc; }
.button.primary:hover { background: #95c2ff; }
.button.secondary { background: transparent; }
.button.quiet { background: transparent; border-color: transparent; color: var(--muted); }
.button.quiet:hover { color: var(--text); }
.button.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger), transparent 65%); }
.icon-button { width: 2.65rem; padding-inline: .3rem; }
.text-link, .text-button { color: var(--accent); font-size: .875rem; font-weight: 650; }
.text-link:hover, .text-button:hover { text-decoration: underline; }
.text-button { padding: .3rem 0; text-align: left; background: none; border: 0; }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .875rem; font-weight: 680; letter-spacing: .02em; }
.eyebrow > span:first-child { display: block; width: .45rem; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.brand { display: inline-flex; align-items: center; gap: .63rem; color: var(--text); font-size: 1.04rem; font-weight: 700; letter-spacing: -.026em; white-space: nowrap; }
.brand strong { font-weight: 650; color: var(--muted); }
.brand-mark { width: 2.13rem; height: 2.13rem; position: relative; flex: 0 0 2.13rem; border-radius: .64rem; border: 1px solid #4879b96b; background: #14243a; color: #79b5ff; }
.brand-mark i { position: absolute; width: .96rem; height: .17rem; background: currentColor; border-radius: .2rem; left: .36rem; top: .86rem; transform: rotate(-48deg); }
.brand-mark i:nth-child(2) { left: .64rem; top: .97rem; }
.brand-mark i:nth-child(3) { width: .53rem; left: .96rem; top: 1.16rem; }
.icon-tile { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; flex: 0 0 auto; color: var(--accent); border-radius: .65rem; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border)); }
.field { display: grid; gap: .35rem; min-width: 0; color: var(--muted); font-size: .875rem; font-weight: 620; }
input:not([type=checkbox]):not([type=radio]), select, textarea { min-width: 0; padding: .58rem .7rem; color: var(--text); font-size: 1rem; background: var(--bg); border: 1px solid var(--border); border-radius: .58rem; }
select { appearance: none; padding-right: 2.3rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .75; }
.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.row-actions { display: flex; align-items: center; gap: .5rem; }
.wrap { flex-wrap: wrap; }

/* Landing page */
.landing-width { width: min(100% - 6rem, 77rem); margin-inline: auto; }
.landing-header { border-bottom: 1px solid var(--border); }
.site-nav { display: flex; justify-content: space-between; align-items: center; min-height: 4.6rem; gap: 1.2rem; }
.site-nav nav { display: flex; gap: 2rem; color: var(--muted); font-size: .9rem; }
.site-nav nav a:hover { color: var(--text); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2.2rem, 5.7vw, 5.5rem); padding-block: clamp(3.6rem, 6.3vw, 6rem); }
.hero-copy { padding-block: .4rem; }
.hero-tag { margin-bottom: 1rem; }
.hero h1 { font-size: clamp(3.05rem, 5.7vw, 5.55rem); line-height: .985; letter-spacing: -.082em; font-weight: 770; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-lede { color: var(--muted); max-width: 31rem; font-size: clamp(1rem, 1.7vw, 1.2rem); margin-block: 1.45rem 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.hero-actions .button { min-height: 3.15rem; padding-inline: 1.02rem; }
.hero-meta { display: flex; align-items: center; gap: .43rem; color: var(--muted); font-size: .875rem; margin-top: 1.1rem; }
.hero-meta svg { color: var(--accent); }
.hero-visual { position: relative; display: grid; min-width: 0; height: clamp(18rem, 33vw, 30.5rem); isolation: isolate; border: 1px solid #3d5979; border-radius: 1.35rem; overflow: hidden; background: #152235; box-shadow: var(--shadow); }
.hero-image { background: #152235 url('../assets/strength-hero.jpg') center 50% / cover no-repeat; }
.hero-visual::after { content: ''; position: absolute; pointer-events: none; inset: 0; background: linear-gradient(0deg, #08121dc9, transparent 42%); }
.hero-caption { position: absolute; z-index: 1; left: 1.15rem; bottom: 1.1rem; display: flex; align-items: center; gap: .72rem; color: #f6f9ff; border: 1px solid #8eb4e146; padding: .65rem .86rem; background: #0b1722da; border-radius: .8rem; backdrop-filter: blur(9px); }
.hero-caption strong { display: block; }
.hero-caption strong { font-size: .92rem; }
.hero-image-icon { display: grid; place-items: center; width: 2.3rem; height: 2.3rem; border-radius: .55rem; background: #254771; color: #b8d7ff; }
.feature-section { border-block: 1px solid var(--border); background: var(--surface); padding-block: clamp(2.9rem, 5vw, 4.8rem); }
.feature-section h2, .faq h2 { font-size: clamp(2rem, 3.1vw, 3rem); font-weight: 735; line-height: 1.1; letter-spacing: -.055em; margin-top: .32rem; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.55rem; }
.feature { padding: 1.3rem; }
.feature h3 { font-size: 1.18rem; margin-top: .8rem; margin-bottom: .35rem; }
.feature p { color: var(--muted); }
.faq { display: grid; grid-template-columns: 1fr 1.65fr; gap: 2.4rem; padding-block: clamp(2.9rem, 5vw, 4.8rem); }
.questions details { border-bottom: 1px solid var(--border); }
.questions summary { cursor: pointer; padding-block: .8rem; font-weight: 650; }
.questions p { padding: 0 0 .95rem .9rem; color: var(--muted); }
.landing-footer { border-top: 1px solid var(--border); }
.landing-footer > div { display: flex; justify-content: space-between; align-items: center; gap: .7rem; padding-block: 1rem; }

/* Tracking workspace */
.app-shell { display: grid; grid-template-columns: 15.8rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; padding: 1.35rem 1rem 1.05rem; border-right: 1px solid var(--border); background: var(--surface); }
.sidebar > .brand { padding-inline: .46rem; }
.side-body { flex: 1; margin-top: 2.3rem; }
.sidebar nav { display: grid; gap: .3rem; }
.sidebar nav a { display: flex; align-items: center; gap: .72rem; padding: .76rem .8rem; border: 1px solid transparent; border-radius: .65rem; font-size: .9rem; font-weight: 625; color: var(--muted); }
.sidebar nav a:hover { background: var(--panel); color: var(--text); }
.sidebar nav a[aria-current=page] { border-color: #649ce541; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); }
.side-footer { border-top: 1px solid var(--border); padding-top: .9rem; }
.account-link { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; border-radius: .6rem; padding: .43rem .35rem; }
.account-link:hover { background: var(--panel); }
.account-link strong, .account-link small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-link strong { font-size: .875rem; }
.account-link small { color: var(--muted); font-size: .8rem; }
.account-link > svg { color: var(--muted); }
.avatar { display: grid; place-items: center; width: 2.15rem; height: 2.15rem; border-radius: 50%; background: #25446b; color: #e1efff; font-weight: 750; }
.mobile-top, .bottom-nav { display: none; }
.app-main { width: min(100%, 93rem); padding: clamp(1.2rem, 4vw, 3.6rem); margin-inline: auto; }
.app-main:focus { outline: none; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.page-heading h1, .flow-card h1 { font-size: clamp(2.2rem, 4vw, 3.5rem); line-height: 1.06; letter-spacing: -.065em; font-weight: 755; }
.page-heading .eyebrow { margin-bottom: .45rem; }
.page-heading p:not(.eyebrow) { color: var(--muted); margin-top: .45rem; }
.quick-actions { display: flex; gap: .55rem; flex-wrap: wrap; margin-bottom: 1rem; }
.quick-actions .button { min-height: 2.48rem; }
.goal-chip { color: var(--accent); }
.dashboard-grid, .settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.widget, .settings-card { display: flex; flex-direction: column; min-height: 12.5rem; }
.widget-heading { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: 1rem 1rem 0; }
.widget-heading h2 { display: flex; gap: .57rem; align-items: center; font-size: 1.13rem; letter-spacing: -.015em; }
.widget-heading .icon-tile { width: 2.2rem; height: 2.2rem; }
.widget-body { padding: 1rem; flex: 1; }
.widget-foot { color: var(--muted); border-top: 1px solid var(--border); padding: .65rem 1rem; font-size: .875rem; min-height: 3rem; }
.energy-body { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: clamp(.65rem, 2.1vw, 1.35rem); }
.energy-ring { width: clamp(5.6rem, 10vw, 8.4rem); aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: conic-gradient(var(--accent) var(--value), var(--border) 0); padding: .42rem; }
.energy-ring div { display: grid; align-content: center; justify-items: center; padding: .18rem; border-radius: 50%; width: 100%; height: 100%; background: var(--panel); }
.energy-ring strong { font-size: clamp(1.02rem, 2.5vw, 1.85rem); font-variant-numeric: tabular-nums; line-height: 1.1; }
.energy-ring small { font-size: .75rem; color: var(--muted); }
.macro-list { display: grid; gap: .52rem; }
.macro-row { color: var(--muted); font-size: .805rem; }
.macro-row > div:first-child { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .05rem .3rem; }
.macro-row b { color: var(--text); }
.meter { margin-top: .33rem; height: .37rem; border-radius: .4rem; background: var(--border); overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--value); border-radius: inherit; background: var(--accent); }
.meter.violet i { background: #aa91f7; }
.meter.orange i { background: #df9a5e; }
.metric { margin: .12rem 0 .4rem; font-variant-numeric: tabular-nums; }
.metric strong { letter-spacing: -.066em; font-size: clamp(2rem, 3.7vw, 3.15rem); font-weight: 745; line-height: 1.08; }
.metric span { color: var(--muted); font-size: .89rem; }
.session-line { color: var(--muted); margin-top: .75rem; font-size: .87rem; }
.chart { margin-top: .55rem; color: var(--accent); }
.chart svg { width: 100%; height: clamp(4.5rem, 12vw, 8rem); overflow: visible; }
.chart figcaption { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; }
.chart-empty { min-height: 6.2rem; display: grid; justify-items: center; align-content: center; gap: .37rem; background: repeating-linear-gradient(to bottom, transparent 0 25px, var(--border) 26px, transparent 27px); text-align: center; color: var(--muted); font-size: .87rem; }
.chart-empty svg { color: var(--accent); }
.segmented { display: inline-flex; padding: .23rem; gap: .22rem; margin-bottom: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: .65rem; }
.segmented button { padding: .42rem .7rem; background: transparent; border: 0; color: var(--muted); border-radius: .42rem; font-size: .875rem; }
.segmented button[aria-pressed=true] { background: var(--panel-hover); color: var(--text); }
.progress-card { margin-bottom: 1rem; padding: 1rem; }
.progress-card .widget-heading { padding: 0; }
.progress-card > h2 { margin-bottom: .8rem; font-size: 1.2rem; }
.weight-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-block: .9rem; }
.weight-metrics div { border-left: 1px solid var(--border); padding-left: .75rem; }
.weight-metrics span, .weight-metrics strong { display: block; }
.weight-metrics span { color: var(--muted); font-size: .86rem; }
.weight-metrics strong { font-size: clamp(1rem, 1.9vw, 1.42rem); }
.records { list-style: none; margin: 0; padding: 0; }
.records li { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .66rem 0; border-top: 1px solid var(--border); }
.records li > div:first-child { display: grid; }
.records li span { font-size: .85rem; }
.settings-card { padding: 1rem; gap: .95rem; align-items: start; }
.settings-card .widget-heading { padding: 0; }
.profile-details { align-self: stretch; margin: 0; }
.profile-details div { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .42rem 0; border-bottom: 1px solid var(--border); }
.profile-details dt { color: var(--muted); }
.profile-details dd { margin: 0; overflow-wrap: anywhere; }
.coach-card { padding: 1.3rem; display: grid; justify-items: start; gap: .7rem; max-width: 43rem; }
.coach-card p { color: var(--muted); }

/* Onboarding and dialogs */
.profile-flow { width: min(100% - 2rem, 45rem); margin-inline: auto; padding: 1.25rem 0 2rem; }
.flow-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.flow-card { padding: clamp(1rem, 5vw, 2.55rem); }
.flow-card h1 { margin-block: .4rem .25rem; }
.flow-card progress { width: 100%; height: .48rem; margin-block: .8rem 1.3rem; color: var(--accent); border: 0; border-radius: 2rem; background: var(--border); overflow: hidden; }
.flow-card progress::-webkit-progress-bar { background: var(--border); }
.flow-card progress::-webkit-progress-value { background: var(--accent); }
.flow-card progress::-moz-progress-bar { background: var(--accent); }
.profile-form, .dialog-form { display: grid; gap: .9rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem; }
.form-error { color: var(--danger); font-size: .875rem; }
.form-error:empty { display: none; }
.profile-preview { width: 100%; border: 1px solid var(--border); border-radius: .7rem; padding: .8rem; background: var(--surface); }
.profile-preview p { color: var(--muted); font-size: .875rem; }
.preview-macros { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .65rem; margin-top: .32rem; }
.preview-macros strong { color: var(--accent); font-size: 1.3rem; }
.preview-macros small, .preview-macros span { font-size: .85rem; }
.flow-footer { display: flex; align-items: center; gap: .45rem; color: var(--muted); margin: 1rem .1rem; font-size: .875rem; }
.sensei-dialog { width: min(100% - 1.6rem, 30rem); padding: 1.2rem; border: 1px solid var(--border); border-radius: 1rem; overflow: auto; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.sensei-dialog::backdrop { background: #060a11b3; backdrop-filter: blur(3px); }
.sensei-dialog > p, .dialog-form > p:not(.form-error), .install-guide p { color: var(--muted); }
.sensei-dialog > p + p, .sensei-dialog > .form-actions { margin-top: .6rem; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin-bottom: .85rem; }
.dialog-top h2 { font-size: 1.32rem; letter-spacing: -.025em; }
.auth-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .7rem; }
.auth-login { justify-self: start; }
.install-guide h3 { font-size: 1rem; }
.install-guide h3:not(:first-child) { margin-top: .8rem; }
.toast { position: fixed; z-index: 25; right: 1rem; bottom: max(1rem, env(safe-area-inset-bottom)); max-width: min(28rem, 100% - 2rem); padding: .75rem 1rem; background: var(--panel); color: var(--text); border: 1px solid var(--accent); border-radius: .72rem; box-shadow: var(--shadow); font-size: .9rem; }

@media (max-width: 1000px) {
  .landing-width { width: calc(100% - 3.4rem); }
  .hero { gap: 2rem; }
  .hero h1 { font-size: clamp(2.65rem, 6.2vw, 4rem); }
  .app-shell { grid-template-columns: 12rem minmax(0, 1fr); }
  .sidebar { padding-inline: .65rem; }
}
@media (max-width: 775px) {
  .landing-width { width: calc(100% - 2.2rem); }
  .hero { grid-template-columns: 1fr; gap: 1.3rem; padding-block: 2.5rem 2.3rem; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4.45rem); }
  .hero-lede { margin-block: 1rem 1.25rem; }
  .hero-visual { height: clamp(15.5rem, 57vw, 24rem); }
  .hero-image { background-position: center 51%; }
  .hero-caption { left: .8rem; bottom: .8rem; }
  .site-nav { min-height: 3.9rem; }
  .site-nav nav { display: none; }
  .features { grid-template-columns: 1fr; gap: .8rem; }
  .feature { padding: 1rem; }
  .faq { grid-template-columns: 1fr; gap: .75rem; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: max(.65rem, env(safe-area-inset-top)) max(1.1rem, env(safe-area-inset-right)) .6rem max(1.1rem, env(safe-area-inset-left)); border-bottom: 1px solid var(--border); background: var(--surface); }
  .app-main { padding: 1.25rem max(1.05rem, env(safe-area-inset-right)) calc(5.3rem + env(safe-area-inset-bottom)) max(1.05rem, env(safe-area-inset-left)); }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; z-index: 5; inset: auto 0 0; padding: .35rem max(.15rem, env(safe-area-inset-right)) max(.42rem, env(safe-area-inset-bottom)) max(.15rem, env(safe-area-inset-left)); background: var(--surface); border-top: 1px solid var(--border); }
  .bottom-nav a { display: grid; gap: .19rem; justify-items: center; align-content: center; min-height: 2.7rem; color: var(--muted); font-size: .73rem; font-weight: 640; }
  .bottom-nav a[aria-current=page] { color: var(--accent); }
  .toast { bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  .section-heading { flex-wrap: wrap; }
}
@media (max-width: 540px) {
  .dashboard-grid, .settings-grid { grid-template-columns: 1fr; gap: .8rem; }
  .page-heading { align-items: start; flex-direction: column; }
  .page-heading h1 { font-size: 2.35rem; }
  .quick-actions { gap: .42rem; }
  .widget-heading h2 { font-size: 1.06rem; }
  .form-grid { grid-template-columns: 1fr; }
  .weight-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dialog-top { margin-bottom: .65rem; }
  .sensei-dialog { width: 100%; max-width: 100%; max-height: calc(100dvh - 2.5rem); margin: auto 0 0; padding-bottom: max(1.2rem, env(safe-area-inset-bottom)); border-radius: 1rem 1rem 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.weekly-report { margin-bottom: 1rem; }
.weekly-report-scroll { overflow-x: auto; padding: .75rem 1rem 0; }
.weekly-report-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
.weekly-report-table :is(th, td) { padding: .68rem .7rem; vertical-align: top; border-bottom: 1px solid var(--border); }
.weekly-report-table tbody th { color: var(--muted); font-weight: 600; }
.weekly-report-table small { display: block; font-size: .76rem; color: var(--muted); font-weight: 450; }
.weekly-report-note { font-size: .83rem; padding: .75rem 1rem 1rem; }
.coach-chat { align-items: stretch; max-width: 48rem; }
.coach-thread { display: grid; gap: .65rem; }
.coach-message { padding: .75rem .9rem; border: 1px solid var(--border); border-radius: .65rem; background: var(--surface); }
.coach-message.coach-user { background: color-mix(in srgb, var(--accent) 13%, var(--surface)); }
.coach-message p { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.coach-form { display: grid; gap: .75rem; }
.coach-form .button { justify-self: start; }
.coach-permission { color: var(--text); font-size: .875rem; }
.coach-permission input { accent-color: var(--accent); }
