/* Controle de treino — identidade Movimento. Carregado por último para manter os fluxos existentes. */
:root {
  color-scheme:light;
  --ink:#202624;
  --ink-soft:#3f4945;
  --muted:#66716b;
  --line:#e4e5df;
  --paper:#fff;
  --bg:#fbfaf7;
  --green:#d8e56f;
  --green-dark:#c5d756;
  --mint:#ebf0df;
  --purple:#e9dff5;
  --blue:#e9ede9;
  --amber:#f7e1d7;
  --shadow:0 8px 28px rgba(32,38,36,.045);
  --ct-charcoal:#262b29;
  --ct-lime:#d8e56f;
  --ct-lime-hover:#c5d756;
  --ct-lavender:#e9dff5;
  --ct-lavender-ink:#594771;
  --ct-peach:#f7e1d7;
  --ct-peach-ink:#874c39;
  --ct-focus:#536318;
  --ct-radius:16px;
}

body { background:var(--bg); color:var(--ink); font-size:14px }
button,input,select,textarea { font-family:Inter,Arial,sans-serif }
input,select,textarea { border-color:#d9ddd6; border-radius:11px; color:var(--ink) }
input:focus,select:focus,textarea:focus { border-color:#8c9d42; box-shadow:0 0 0 3px rgba(216,229,111,.38) }
:is(a,button,input,select,summary):focus-visible { outline:3px solid var(--ct-focus); outline-offset:3px }
label { color:var(--ink-soft) }
.muted,.helper-text,label small { color:var(--muted) }
.eyebrow { color:#657348; letter-spacing:.12em }
.button { min-height:44px; border-radius:12px; transition:background .16s,transform .16s,box-shadow .16s }
.button:hover:not(:disabled) { box-shadow:0 6px 16px rgba(32,38,36,.11) }
.button--primary { background:var(--ct-lime); color:#202624 }
.button--primary:hover:not(:disabled) { background:var(--ct-lime-hover) }
.button--secondary { background:#f0f0eb; color:var(--ink) }
.button--secondary:hover:not(:disabled) { background:#e6e9dc }
.button--dark { background:var(--ct-charcoal); color:#fff }
.button--dark:hover:not(:disabled) { background:#3c4440 }
.button--ghost { border-color:var(--line); color:var(--ink) }
.text-button { color:#3d5540 }
.flash--success { background:#edf4d9; border-color:#d8e6a9; color:#35491f }
.flash--success .flash__symbol { background:#526d26 }
.surface { border-color:var(--line); border-radius:var(--ct-radius); box-shadow:var(--shadow) }
.section-heading h2,.page-heading h1 { color:var(--ink); font-weight:750 }
.section-icon,.pill--open { background:#edf1dd; color:#45562e }
.pill--closed { background:#eeefea; color:#5f6963 }
.kind-dot--duo,.legend-dot--duo { background:#a686c1 }
.kind-dot--solo,.legend-dot--solo { background:#da8e72 }
.remember-choice input { accent-color:#647c2c }

/* Navegação e componentes compartilhados */
.sidebar { width:238px; min-width:238px; background:#f5f4ee; border-right-color:var(--line) }
.sidebar__top { padding-bottom:30px }
.brand { color:var(--ink); font-size:15px; letter-spacing:-.025em }
.brand__mark { width:38px; height:38px; border-radius:11px; background:var(--ct-charcoal); color:#fff; letter-spacing:-.08em }
.brand__dot { color:var(--ct-lime) }
.sidebar__label { color:#7b8479; letter-spacing:.12em }
.sidebar__link,.sidebar__add,.sidebar__settings { color:#4e5953; border-radius:11px; font-size:12px }
.sidebar__link:hover,.sidebar__settings:hover,.sidebar__add:hover { background:#ebece4 }
.sidebar__link.is-active,.sidebar__settings.is-active { background:#e8edcf; color:#263226; box-shadow:inset 3px 0 0 #829943 }
.sidebar__arrow { color:#4e6243 }
.profile-avatar { background:#e8e8de; color:#49564c }
.profile-avatar--1 { background:#e9dff5; color:#624b79 }
.profile-avatar--2 { background:#f7e1d7; color:#8c5541 }
.profile-avatar--3 { background:#dfe9db; color:#4c6846 }
.sidebar__add { color:#40583a }
.sidebar__logout { display:none; margin-top:5px }
.sidebar__logout button { width:100%; border:0; background:transparent; text-align:left }
.topbar { background:var(--bg); border-bottom-color:var(--line) }
.topbar__label { color:#747e73 }
.topbar__active-name,.topbar__logout { color:var(--ink) }
.topbar__brand { display:none }
.main-content { max-width:1450px }
.page-heading p:not(.eyebrow) { color:var(--muted) }
.auth-story { background:var(--ct-charcoal) }
.auth-story .brand { color:#fff }
.auth-story h1 em { color:var(--ct-lime) }
.auth-story .eyebrow { color:#d8e56f }
.auth-card,.settings-card,.admin-section { border-color:var(--line) }
.admin-metric strong,.admin-user__identity strong,.admin-pending h3,.admin-pending__row strong,
.access-card h3,.share-month__breakdown strong { color:var(--ink) }
.admin-user,.access-card__option,.share-month__breakdown>div { background:#f8f8f3; border-color:var(--line) }
.admin-user__avatar,.admin-count,.admin-badge--admin,.admin-badge--active,.admin-badge--accepted { background:#e8edcf; color:#3e522b }
.admin-badge--pending { background:#eee9f5; color:#655278 }
.admin-user.is-disabled { background:#f1f1ed }
.admin-fresh-link,.access-invite-link { background:#f4f7e9; border-color:#d6e3ae }
.choice-card:has(input:checked) { border-color:#91a642; background:#f1f5df; box-shadow:inset 0 0 0 1px #91a642 }
.choice-card:has(input:focus-visible) { outline-color:var(--ct-focus) }
.choice-card input { accent-color:#6d842f }

.ui-icon,.mobile-menu__icon { display:inline-block; width:19px; height:19px; flex:none; background:currentColor; -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat; -webkit-mask-position:center; mask-position:center; -webkit-mask-size:contain; mask-size:contain }
.ui-icon--arrow-left { -webkit-mask-image:url('../icons/arrow-left.svg'); mask-image:url('../icons/arrow-left.svg') }
.ui-icon--arrow-right { -webkit-mask-image:url('../icons/arrow-right.svg'); mask-image:url('../icons/arrow-right.svg') }
.ui-icon--share { -webkit-mask-image:url('../icons/share-2.svg'); mask-image:url('../icons/share-2.svg') }
.mobile-menu__icon { -webkit-mask-image:url('../icons/menu.svg'); mask-image:url('../icons/menu.svg') }
.button--share { gap:9px }

/* A tela mensal mantém o calendário como tarefa principal. */
body:has(.main-content--dashboard),body:has(.main-content--dashboard) .app-content,
.main-content--dashboard { background:var(--bg) }
.main-content--dashboard { max-width:1320px; padding-top:26px }
.main-content--dashboard .page-heading--dashboard { margin-bottom:19px }
.main-content--dashboard .page-heading--dashboard h1 { color:var(--ink); font-size:clamp(30px,3vw,42px); font-weight:800; letter-spacing:-.045em }
.main-content--dashboard .page-heading--dashboard p:not(.eyebrow) { color:var(--muted) }
.main-content--dashboard .month-control a { width:42px; height:42px; border-color:var(--line); border-radius:13px; color:var(--ink); background:transparent }
.main-content--dashboard .month-control a:hover { background:#eff1e5 }
.main-content--dashboard .month-control .ui-icon { width:19px; min-width:0; height:19px; padding:0; border:0; background:currentColor }

.main-content--dashboard .month-overview {
  display:grid; grid-template-columns:minmax(220px,1fr) auto auto; align-items:center; gap:16px 22px;
  min-height:105px; margin:0 0 22px; padding:18px 24px;
  border:0; border-left:6px solid var(--ct-lime); border-radius:18px;
  background:var(--ct-charcoal); color:#fff;
}
.main-content--dashboard .month-overview__total { display:flex; flex-direction:column; align-items:flex-start; gap:2px; min-width:0 }
.main-content--dashboard .month-overview__total span { align-self:flex-start; color:#cbd2cb; font-size:12px; font-weight:500 }
.main-content--dashboard .month-overview__total strong { align-self:flex-start; color:#fff; font-size:clamp(27px,2.7vw,35px); font-weight:800; letter-spacing:-.04em }
.main-content--dashboard .month-overview__total small { align-self:flex-start; color:#bbc4bc; font-size:11px }
.main-content--dashboard .month-overview__kinds { display:flex; flex-wrap:wrap; gap:5px 12px; color:#e7eae3; font-size:13px }
.main-content--dashboard .month-overview__kinds span,
.main-content--dashboard .month-overview__kinds span:first-child,
.main-content--dashboard .month-overview__kinds span:last-child:not(:first-child) { padding:0; background:none; color:inherit }
.main-content--dashboard .month-overview__kinds span+span::before { content:'·'; margin-right:12px; color:var(--ct-lime) }
.main-content--dashboard .month-overview__kinds b { color:#fff; font-size:15px }
.main-content--dashboard .month-overview__details { margin:0; padding:0; color:#d9e4ba }
.main-content--dashboard .month-overview__details summary { color:#d9e4ba; font-size:11px; white-space:nowrap }
.main-content--dashboard .month-overview__details[open] { grid-column:1/-1; margin:0; padding:9px 0 0; border-top:1px solid #555d56 }
.main-content--dashboard .month-overview__numbers span { color:#c5cfc6 }
.main-content--dashboard .month-overview__numbers strong { color:#fff }
.main-content--dashboard .month-overview__numbers>div { border-color:#555d56 }

.main-content--dashboard .calendar-card { background:transparent }
.main-content--dashboard .calendar-card>.section-heading { margin-bottom:8px }
.main-content--dashboard .calendar-card>.section-heading h2 { color:var(--ink); font-size:15px }
.main-content--dashboard .calendar-card>.section-heading .pill { background:#eff1e5; color:#536443 }
.main-content--dashboard .calendar-modes { gap:26px; margin-bottom:23px; border-bottom-color:var(--line) }
.main-content--dashboard .calendar-modes>a { min-height:45px; color:#6b746e; font-size:15px; font-weight:700 }
.main-content--dashboard .calendar-modes>a.is-active { border-bottom:3px solid var(--ct-lime); color:var(--ink) }
.main-content--dashboard .calendar-modes__more summary { color:#5f6c5b }
.main-content--dashboard .calendar-modes__more>a { border-color:var(--line); background:#fff; color:var(--ink) }
.main-content--dashboard .simple-choice legend,.main-content--dashboard .simple-person legend { margin-bottom:10px; color:var(--ink); font-size:14px; font-weight:750 }
.main-content--dashboard .planning-form .simple-choice__options { gap:9px; max-width:530px }
.main-content--dashboard .planning-form .simple-choice__card span,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="duo"]) span,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="solo"]) span {
  display:flex; flex-direction:row; align-items:center; justify-content:center; flex-wrap:wrap; gap:2px 7px;
  min-height:48px; padding:8px 13px; border:1px solid #d9dcd3; border-radius:13px;
  background:transparent; color:var(--ink); box-shadow:none;
}
.main-content--dashboard .planning-form .simple-choice__card strong,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="duo"]) strong,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="solo"]) strong { color:var(--ink); font-size:14px; font-weight:750 }
.main-content--dashboard .planning-form .simple-choice__card small { margin:0; color:#58635b; font-size:12px; font-weight:650 }
.main-content--dashboard .planning-form .simple-choice__card:has(input:checked) span,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="duo"]:checked) span,
.main-content--dashboard .planning-form .simple-choice__card:has(input[value="solo"]:checked) span {
  border-color:#a5ba4e; background:var(--ct-lime); box-shadow:none;
}
.main-content--dashboard .planning-form .simple-choice__card small::before { content:'· '; }
.main-content--dashboard .planning-form .simple-choice__card:has(input:checked) span::after {
  content:''; width:15px; height:15px; flex:none; background:currentColor;
  -webkit-mask:url('../icons/check.svg') center / contain no-repeat;
  mask:url('../icons/check.svg') center / contain no-repeat;
}
.main-content--dashboard .review-form .simple-choice__card span { min-height:65px; border-color:var(--line); background:#f8f8f3 }
.main-content--dashboard .review-form .simple-choice__card:has(input[value="duo"]) span { background:var(--ct-lavender) }
.main-content--dashboard .review-form .simple-choice__card:has(input[value="solo"]) span { background:var(--ct-peach) }
.main-content--dashboard .review-form .simple-choice__card:has(input:checked) span { border-color:#8ea33d; background:#edf3d7; box-shadow:none }
.main-content--dashboard .review-form .simple-choice__card strong { color:var(--ink) }
.main-content--dashboard .simple-person__options label { min-height:42px; border-color:var(--line); background:#fff; color:var(--ink) }
.main-content--dashboard .simple-person__options label:has(input:checked) { border-color:#9fb548; background:#f2f6dd }
.main-content--dashboard .simple-bulk-toolbar strong { color:var(--ink); font-size:14px }
.main-content--dashboard .simple-bulk-hint { color:var(--muted); font-size:12px }
.main-content--dashboard .bulk-shortcuts-disclosure summary { color:#4a5a36 }
.main-content--dashboard .bulk-shortcuts button { border-color:var(--line) }
.main-content--dashboard .calendar-grid { gap:6px }
.main-content--dashboard .calendar-weekday { padding:7px 0 10px; color:#69736c; font-size:11px }
.main-content--dashboard .calendar-day { min-height:79px; padding:7px; border:1px solid #f0f0eb; border-radius:13px; background:#f8f8f4 }
.main-content--dashboard .calendar-day--blank,.main-content--dashboard .calendar-day--unavailable { background:transparent }
.main-content--dashboard .review-form .calendar-day--unavailable { background:#f2f1ec; opacity:.58 }
.main-content--dashboard .calendar-day--planned-duo,
.main-content--dashboard .planning-form .calendar-day--planned-duo.is-already-attending { background:var(--ct-lavender); border-color:transparent }
.main-content--dashboard .calendar-day--planned-solo { background:var(--ct-peach) }
.main-content--dashboard .calendar-day__number { color:var(--ink); font-size:16px; font-weight:700 }
.main-content--dashboard .calendar-day--selectable:hover { border-color:#859745; background:#edf1db }
.main-content--dashboard .planning-form .calendar-day--selectable:has(.calendar-day__checkbox:checked),
.main-content--dashboard .calendar-day--selectable:has(input:checked) { border-color:#a889c3; border-width:1px; background:var(--ct-lavender); box-shadow:none }
.main-content--dashboard .planning-form .calendar-day--planned-solo:has(.calendar-day__checkbox:checked),
.main-content--dashboard .calendar-day--planned-solo:has(input:checked) { border-color:#dc9b80; background:var(--ct-peach) }
.main-content--dashboard .calendar-day--selectable:has(input:focus-visible) { outline:3px solid var(--ct-focus) }
.main-content--dashboard .calendar-grid--bulk .person-chip { border-radius:7px; font-weight:700 }
.main-content--dashboard .planning-finish { border-color:var(--line) }
.main-content--dashboard .planning-finish strong { color:var(--ink) }
.main-content--dashboard .planning-finish p { color:var(--muted) }
.main-content--dashboard .review-intro strong { color:var(--ink) }
.main-content--dashboard .review-confirmed { color:var(--muted) }
.main-content--dashboard .month-secondary { border-top-color:var(--line) }
.main-content--dashboard .month-secondary>details>summary { color:#415240 }
.main-content--dashboard .profile-rates,.main-content--dashboard .share-month,.main-content--dashboard .payment-details { border-color:var(--line); background:#fff }
.main-content--dashboard .share-month__breakdown>div { background:#f7f7f2 }
.main-content--dashboard .share-month__breakdown strong { color:var(--ink) }
.main-content--dashboard .utility-summary,.main-content--dashboard .closing-card h2 { color:var(--ink) }
.main-content--dashboard .utility-summary b { background:#e8edcf; color:#455a2c }

@media (max-width:700px) {
  .sidebar { width:min(285px,86vw); min-width:0; background:#f7f6f1 }
  .sidebar__logout { display:block }
  .topbar { height:60px; gap:7px; padding-inline:12px }
  .mobile-menu { display:grid; flex:none; place-items:center; width:40px; height:40px; margin:0; border-radius:10px; background:var(--ct-charcoal); color:#fff }
  .mobile-menu__icon { width:20px; height:20px }
  .topbar__brand { display:block; flex:0 1 auto; min-width:0; overflow:hidden; color:var(--ink); font-size:14px; font-weight:800; letter-spacing:-.025em; text-overflow:ellipsis; white-space:nowrap }
  .topbar__location { display:none }
  .topbar__switcher { flex:0 1 auto; margin-left:auto }
  .topbar__switcher summary { min-height:40px; padding:7px 11px; border:1px solid var(--line); border-radius:12px; background:transparent; color:var(--ink); font-size:12px }
  .topbar__switcher nav { border-color:var(--line); box-shadow:0 16px 28px rgba(32,38,36,.13) }
  .topbar__switcher nav a[aria-current="page"] { background:#ecf1d8; color:#344b2c }
  .topbar__right { display:none }
  .main-content { padding:20px 15px 55px }
  .main-content--dashboard { padding:21px 15px 118px }
  .main-content--dashboard .page-heading--dashboard { align-items:center; margin-bottom:17px }
  .main-content--dashboard .page-heading--dashboard h1 { font-size:clamp(25px,7vw,30px); line-height:1.08 }
  .main-content--dashboard .page-heading--dashboard p:not(.eyebrow) { display:none }
  .main-content--dashboard .month-control a { width:38px; height:40px; border-radius:11px }
  .main-content--dashboard .month-overview { grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; min-height:82px; margin-bottom:15px; padding:10px 15px; border-radius:15px }
  .main-content--dashboard .month-overview__total { grid-column:1; grid-row:1/3 }
  .main-content--dashboard .month-overview__total span { font-size:11px }
  .main-content--dashboard .month-overview__total strong { font-size:clamp(22px,6.4vw,27px); white-space:nowrap }
  .main-content--dashboard .month-overview__total small { display:none }
  .main-content--dashboard .month-overview__kinds { grid-column:2; align-items:flex-start; flex-direction:column; gap:2px; font-size:10px; white-space:nowrap }
  .main-content--dashboard .month-overview__kinds b { font-size:12px }
  .main-content--dashboard .month-overview__kinds span+span::before { display:none }
  .main-content--dashboard .month-overview__details { grid-column:2; grid-row:2; align-self:end }
  .main-content--dashboard .month-overview__details summary { padding:0; font-size:10px }
  .main-content--dashboard .month-overview__details[open] { grid-row:3; grid-column:1/-1 }
  .main-content--dashboard .calendar-modes { gap:23px; margin-bottom:13px }
  .main-content--dashboard .calendar-modes>a { min-height:40px; padding-top:8px; padding-bottom:7px; font-size:14px }
  .main-content--dashboard .planning-form .simple-choice__card span { min-height:46px; padding:6px 5px }
  .main-content--dashboard .planning-form .simple-choice__card strong { font-size:12px }
  .main-content--dashboard .planning-form .simple-choice__card small { font-size:11px }
  .main-content--dashboard .simple-choice legend { margin-bottom:8px; font-size:13px }
  .main-content--dashboard .simple-choice,.main-content--dashboard .simple-person { margin-bottom:12px }
  .main-content--dashboard .simple-bulk-toolbar { margin-top:14px }
  .main-content--dashboard .planning-form .simple-bulk-toolbar { display:none }
  .main-content--dashboard .simple-bulk-hint { margin-bottom:3px; font-size:11px }
  .main-content--dashboard .calendar-grid { gap:3px }
  .main-content--dashboard .calendar-weekday { font-size:10px }
  .main-content--dashboard .calendar-day { min-height:61px; padding:4px 2px; border-radius:9px }
  .main-content--dashboard .calendar-day__number { margin-left:4px; font-size:13px }
  .main-content--dashboard .calendar-grid--bulk .person-chip { padding:1px; border-radius:5px; font-size:9px; letter-spacing:-.02em }
  .main-content--dashboard .planning-finish { position:fixed; inset:auto 0 0; z-index:15; gap:4px; margin:0; padding:10px 15px max(10px,env(safe-area-inset-bottom)); border:0; border-top:1px solid var(--line); background:rgba(251,250,247,.97); box-shadow:0 -6px 22px rgba(32,38,36,.07) }
  .main-content--dashboard .planning-finish>div:first-child { display:none }
  .main-content--dashboard .planning-finish form,.main-content--dashboard .planning-finish__actions { flex:1; width:100% }
  .main-content--dashboard .planning-finish__actions .button--secondary { display:none }
  .main-content--dashboard .planning-finish .button { min-height:47px; width:100%; font-size:14px }
  .main-content--dashboard .planning-finish .share-month__feedback:empty { display:none }
  .main-content--dashboard .review-intro { align-items:flex-start; gap:9px }
  .main-content--dashboard .review-intro .button { white-space:nowrap }
}

@media (max-width:380px) {
  .topbar__brand { max-width:112px; font-size:12px }
  .topbar__switcher summary { max-width:136px; font-size:11px }
  .main-content--dashboard .month-overview { padding:12px }
  .main-content--dashboard .month-overview__total strong { font-size:21px }
  .main-content--dashboard .calendar-day { min-height:58px }
  .main-content--dashboard .calendar-grid--bulk .person-chip { padding-inline:1px; font-size:8px; letter-spacing:-.03em }
}

@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto !important; animation-duration:.01ms !important; transition-duration:.01ms !important }
}
