/* MNM Tranquil: shared application surfaces, matching the public homepage.
   Workout phase colors, data charts and status badges retain their meaning. */
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]), [data-tranquil-page="standard"] {
  --mnm-ink: #102b48; --mnm-muted: #395771; --mnm-accent: #1559a1;
  --mnm-accent-hover: #104781; --mnm-deep: #102b48;
  --mnm-canvas: #f5faff; --mnm-soft: #eaf5ff; --mnm-line: #c8dced;
  --mnm-radius: 20px; --mnm-shadow: 0 8px 28px #153e6b0c;
}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) body {
  color:var(--mnm-ink); background:radial-gradient(ellipse at 5% 0%,#dfedff,transparent 48%),var(--mnm-canvas);
  font-family:var(--mnm-font); line-height:1.7;
}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) main > :is(h1,.intro,.eyebrow) {color:var(--mnm-ink)}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) main > h1 {font-size:clamp(1.85rem,4.5vw,2.8rem);line-height:1.2;font-weight:800;margin-block:12px 18px}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.library-preview-note,.community-toolbar,.message-center,.fb-card,.profile-extra-links) {
  border-color:var(--mnm-line); border-radius:20px; box-shadow:var(--mnm-shadow);
}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.fb-card,.profile-extra-links) {background:#fff}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.library-page,.community-toolbar,.fb-page) :is(h2,h3) {color:var(--mnm-ink);line-height:1.4}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.library-page,.community-toolbar,.fb-page) :is(input:not([type=checkbox]):not([type=radio]),select,textarea) {
  border:1px solid var(--mnm-line);border-radius:12px;background:#f9fcff;color:var(--mnm-ink);
  font:inherit;line-height:1.5;padding:12px 14px;min-width:0;max-width:100%;
}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.library-page,.community-toolbar,.fb-page) :is(input:not([type=checkbox]):not([type=radio]),select) {min-height:48px}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .athlete-profile-page .card :is(button,.button):not(.back):not([data-remove]):not(.danger):not([data-delete]) {
  background:var(--mnm-accent);color:#fff;border:1px solid var(--mnm-accent);border-radius:12px;min-height:46px;font:inherit;font-weight:650;line-height:1.45;
}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .athlete-profile-page .card :is(button.secondary,a.secondary) {background:#eaf5ff;color:var(--mnm-accent);border:1px solid var(--mnm-line)}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .library-page :is(.strength-template,.strength-exercise) {background:white;border-color:var(--mnm-line);border-radius:20px}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.library-page-nav,.strength-library-actions,.strength-entry-links) a {border:1px solid var(--mnm-line);background:#fff;color:var(--mnm-accent);border-radius:12px;min-height:46px;padding:10px 16px;text-decoration:none;display:inline-flex;align-items:center}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .mnm-boomerang {background:#fffffff5;border-color:var(--mnm-line);backdrop-filter:blur(12px)}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .mnm-boomerang :is(a,button) {color:var(--mnm-ink)!important;font-family:inherit}
:is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .mnm-boomerang [aria-current="page"] {background:#eaf5ff;border-color:#1559a1;color:#1559a1!important}
.athlete-profile-page main {max-width:1140px;padding:30px 28px 120px}
.athlete-profile-page .profile-hero {position:relative;overflow:hidden;background:radial-gradient(ellipse at 8% 15%,#c9e7ff,transparent 65%),linear-gradient(145deg,#fbfdff,#e9f4ff);border:1px solid var(--mnm-line);border-radius:26px;padding:32px 36px;margin-bottom:20px}
.athlete-profile-page .profile-hero .eyebrow {color:#395771;letter-spacing:.07em;font-size:.76rem;font-weight:700}
.athlete-profile-page .profile-hero h1 {color:#102b48;font-size:clamp(2rem,5vw,3rem);line-height:1.2;margin:12px 0;font-weight:800}
.athlete-profile-page .profile-hero .intro {color:#395771;font-size:1.05rem;line-height:1.75;margin:0;max-width:55ch}
.athlete-profile-page .profile-account {padding:14px 18px;margin:0 0 20px;display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:white;border:1px solid var(--mnm-line);border-radius:16px;font-size:.9rem}
.athlete-profile-page .profile-account > span {margin-inline-end:auto;font-weight:700;color:#102b48}
.athlete-profile-page .profile-account :is(a,button) {display:inline-flex;align-items:center;justify-content:center;margin:0;padding:9px 12px;min-height:44px;font:inherit;font-weight:600;border:1px solid var(--mnm-line);border-radius:10px;background:#f5faff;color:#1559a1;text-decoration:none}
.athlete-profile-page #app > .profile-owner {font-size:1.12rem;margin:12px 0 8px;color:#395771}
.athlete-profile-page #app > .profile-shortcut {background:white;color:#1559a1;border:1px solid var(--mnm-line);font-size:.92rem;padding:10px 16px;min-height:44px;margin:0 0 20px}
.athlete-profile-page .workspace {grid-template-columns:230px minmax(0,1fr);gap:24px}
.athlete-profile-page .workspace > nav {background:white;border:1px solid var(--mnm-line);border-radius:20px;padding:12px;position:static;align-self:start}
.athlete-profile-page .workspace nav button {display:flex;align-items:center;gap:12px;min-height:52px;padding:12px;margin:0 0 6px;background:white;color:#395771;border:1px solid transparent;border-radius:12px;font-size:.91rem;line-height:1.45;text-align:start}
.athlete-profile-page .workspace nav small {display:grid;place-items:center;flex:0 0 28px;height:28px;margin:0;border-radius:8px;background:#eaf5ff;color:#1559a1;font-size:.72rem;opacity:1}
.athlete-profile-page .workspace nav button.active {background:#1559a1;color:#fff;border-color:#1559a1;box-shadow:0 5px 14px #1559a121}
.athlete-profile-page .workspace nav button.active small {background:#ffffff29;color:white}
.athlete-profile-page .workspace .privacy {padding:15px 10px 6px;font-size:.75rem;line-height:1.8;color:#395771;border-top:1px solid #e0edf7;margin-top:12px}
.athlete-profile-page .workspace .form {margin:0;padding:28px;border-radius:22px;border:1px solid var(--mnm-line);box-shadow:var(--mnm-shadow)}
.athlete-profile-page .form > .eyebrow {font-size:.75rem;letter-spacing:.04em;color:#1559a1}
.athlete-profile-page .form > h2 {font-size:1.5rem;margin:7px 0 22px;font-weight:750;color:#102b48}
.athlete-profile-page .identity {background:#eaf5ff;border:1px solid #d4e6f6;border-radius:16px;padding:18px;gap:14px;color:#102b48}
.athlete-profile-page .identity p {color:#395771;font-size:.82rem;margin:5px 0}
.athlete-profile-page .avatar {width:56px;height:56px;background:#1559a1;color:white;font-size:24px}
.athlete-profile-page .fields {gap:10px 20px}
.athlete-profile-page :is(label,legend) {font-size:.92rem;font-weight:600;color:#102b48}
.athlete-profile-page .mnm-date-parts {gap:8px}
.athlete-profile-page .mnm-date-parts input {padding-inline:6px}
.athlete-profile-page input[type=file] {font-size:.85rem;min-height:48px}
.athlete-profile-page input::file-selector-button {background:#eaf5ff;border:0;border-radius:8px;padding:8px 12px;color:#1559a1;font:inherit;margin-inline-end:10px}
.athlete-profile-page .consent {background:#f5faff;border:1px solid var(--mnm-line);border-radius:14px;padding:16px;align-items:flex-start;font-size:.85rem;font-weight:450;margin-top:24px}
.athlete-profile-page .consent input {width:22px;height:22px;flex:0 0 22px;accent-color:#1559a1;margin-top:3px}
.athlete-profile-page .form footer {border-color:var(--mnm-line);margin-top:22px;padding-top:20px;gap:10px;box-shadow:none;background:transparent}
.athlete-profile-page .form footer button {flex:1;min-height:48px;padding:12px 16px}
.athlete-profile-page #saveStatus {display:block;color:#395771;font-size:.8rem;margin-top:12px}
.athlete-profile-page .profile-extra-links {padding:16px 20px;border:1px solid var(--mnm-line);margin-top:16px;font-size:.92rem}
.athlete-profile-page .profile-extra-links summary {font-weight:650;color:#102b48;min-height:28px}
.athlete-profile-page .notice {background:#eaf5ff;color:#102b48;border-color:#1559a1;border-radius:12px;font-size:.88rem}
.athlete-profile-page .race {background:#f9fcff;border-color:var(--mnm-line);border-radius:16px}
.athlete-profile-page .athlete-auth {border-radius:24px!important;padding:28px!important}
@media(max-width:750px){
 .athlete-profile-page main {padding:20px 16px 130px}
 .athlete-profile-page .profile-hero {padding:26px 22px;border-radius:22px;margin-bottom:16px}
 .athlete-profile-page .profile-hero h1 {font-size:2rem}
 .athlete-profile-page .profile-account {padding:12px;gap:8px}
 .athlete-profile-page .profile-account > span {flex-basis:100%;margin-bottom:4px}
 .athlete-profile-page .profile-account :is(a,button) {flex:1;font-size:.8rem;padding:9px 7px}
 .athlete-profile-page .workspace {display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
 .athlete-profile-page .workspace > nav {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:8px;overflow:visible;border-radius:16px}
 .athlete-profile-page .workspace nav button {min-width:0;min-height:54px;margin:0;font-size:.8rem;gap:6px;padding:9px 7px}
 .athlete-profile-page .workspace nav small {flex-basis:23px;height:25px;font-size:.65rem}
 .athlete-profile-page .workspace .form {padding:22px 18px;border-radius:20px}
 .athlete-profile-page .fields {grid-template-columns:minmax(0,1fr);gap:4px}
 .athlete-profile-page .identity {flex-wrap:nowrap;padding:14px;gap:10px}
 .athlete-profile-page .identity > div:last-child {min-width:0}
 .athlete-profile-page .form footer {display:grid;grid-template-columns:minmax(0,1fr)}
 :is([data-mnm-theme="portal"],[data-mnm-theme="base"]) :is(.card,.library-page,.community-toolbar,.fb-page) :is(input,select,textarea) {font-size:16px}
 :is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .library-page-nav {display:flex;flex-wrap:wrap;gap:8px}
 :is([data-mnm-theme="portal"],[data-mnm-theme="base"]) .library-page-nav a {flex:1;justify-content:center;font-size:.9rem}
}
@media(prefers-reduced-motion:no-preference){
 .athlete-profile-page :is(button,a) {transition:background-color .15s,border-color .15s}
 .athlete-profile-page .workspace nav button:not(.active):hover {background:#eaf5ff;border-color:#c8dced}
}
/* Complementary athlete screens share the same neutral surface palette. */
[data-mnm-theme] :is(.fb-page,.mnm-inbox-dialog) {--ink:#102b48;--muted:#395771;--line:#c8dced;--paper:#fff;--lime:#eaf5ff}
[data-mnm-theme] :is(.care-card,.care-toolbar,.drill-card,.fb-panel,.mnm-inbox-dialog,.mnm-pain-dialog) {border-color:#c8dced;border-radius:20px;box-shadow:0 8px 28px #153e6b0c;background:white;color:#102b48;font-family:var(--mnm-font)}
[data-mnm-theme] :is(.care-hero,.drills-intro) {padding:26px;border-radius:22px;border:1px solid #c8dced;background:radial-gradient(ellipse at 8% 15%,#c9e7ff,transparent 65%),linear-gradient(145deg,#fbfdff,#e9f4ff);color:#102b48;margin-block:20px}
[data-mnm-theme] :is(.care-hero,.drills-intro) p {color:#395771}
[data-mnm-theme] :is(.care-button,.drill-play,.drills-groups button[aria-pressed=true],.drill-speed button[aria-pressed=true]) {background:#1559a1;color:#fff;border-color:#1559a1}
[data-mnm-theme] :is(.care-toolbar select,.drills-search input) {border-color:#c8dced;background:#f9fcff;color:#102b48;font-family:inherit}
[data-mnm-theme] #ask-moti-launch {background:#1559a1;border-color:#c8dced;font-family:var(--mnm-font);box-shadow:0 5px 20px #153e6b26}
[data-mnm-theme] #ask-moti-dialog {background:#f5faff;color:#102b48;font-family:var(--mnm-font)}
[data-mnm-theme] #ask-moti-dialog header,[data-mnm-theme] #ask-moti-dialog form button {background:#1559a1;color:#fff}
[data-mnm-theme] #ask-moti-dialog :is(button,textarea,.ask-bubble) {border-color:#c8dced;font-family:inherit}
[data-mnm-theme] #ask-moti-dialog .ask-bubble.user {background:#eaf5ff}
[data-mnm-theme] #ask-moti-dialog .ask-bubble a {color:#1559a1}
