* { box-sizing: border-box; }
body { margin: 0; background: var(--fundo); color: var(--texto); font: var(--t-17)/1.55 var(--fonte, system-ui), sans-serif; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, .move-primary { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--neutro); outline-offset: 4px; }
.move-shell { width: min(100%, 560px); margin: auto; padding: max(12px, env(safe-area-inset-top)) var(--margem) calc(100px + env(safe-area-inset-bottom)); }
.move-home-header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.move-header:not(.mv-cabecalho) { display: flex; align-items: center; justify-content: space-between; min-height: 64px; border-bottom: 1px solid var(--linha); gap: 16px; }
.move-gear { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: var(--texto-2); }
.move-gear .mv-icone { width: 26px; height: 26px; stroke-width: 1.6; }
.move-header h1 { font-size: var(--t-20); margin: 0; text-align: center; }
.move-brand { display: block; width: 56px; height: 56px; }
.move-brand img { display: block; width: 56px; height: 56px; object-fit: contain; }
.move-header .move-brand { width: 64px; height: 64px; }
.move-header .move-brand img { width: 64px; height: 64px; margin: 0; }
.move-back { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--superficie); border: 1px solid var(--linha); font-size: var(--t-24); }
.move-notice { min-height: 52px; margin: 12px 0 0; }
.move-home-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 36px 24px; padding: 24px 8px;
  min-height: calc(100dvh - 64px - 64px - max(12px, env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 40px); }
.move-module { display: grid; justify-items: center; gap: 12px; text-align: center; font-size: var(--t-15); font-weight: 600; min-width: 0; }
.move-module img { width: 100%; max-width: 150px; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 8px 14px rgb(31 27 22 / 12%)); }
.move-ring { display: grid; place-items: center; width: 100%; max-width: 168px; aspect-ratio: 1; padding: 6px; border: 3px solid transparent; border-radius: 50%; }
.move-ring img { display: block; width: 80%; height: auto; }
.move-module[data-module=fe] { --ring: var(--fe); }
.move-module[data-module=financas] { --ring: var(--financas); }
.move-module[data-module=movimento] { --ring: var(--movimento); }
.move-module[data-module=desenvolvimento] { --ring: var(--desenvolvimento); }
.move-ring[data-state=open] { border-color: color-mix(in srgb, var(--ring) 15%, transparent); }
.move-ring[data-state=complete] { border-color: var(--ring); }
.move-ring[data-state=rest] { border-color: color-mix(in srgb, var(--ring) 55%, var(--fundo)); }
/* Anéis da outra pessoa do vínculo: uma linha discreta abaixo da grade, só feito ou não feito. */
.move-home-grid[data-parceiro] { min-height: calc(100dvh - 64px - 64px - 72px - max(12px, env(safe-area-inset-top)) - env(safe-area-inset-bottom) - 40px); }
.mv-parceiro { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; margin: 8px 0 0; padding: 10px 14px;
  background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-cartao); }
.mv-parceiro p { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-15); font-weight: 600; color: var(--texto-2); }
.mv-parceiro ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.mv-parceiro li { width: 40px; }
.mv-parceiro .move-ring { padding: 2px; border-width: 2px; }
.mv-parceiro .move-ring img { width: 100%; }
.mv-parceiro .move-ring[data-state=open] img { opacity: .45; }
.mv-parceiro li[data-module=fe] { --ring: var(--fe); }
.mv-parceiro li[data-module=financas] { --ring: var(--financas); }
.mv-parceiro li[data-module=movimento] { --ring: var(--movimento); }
.mv-parceiro li[data-module=desenvolvimento] { --ring: var(--desenvolvimento); }
/* Sua semana: meta de Movimento e a escolha da próxima semana. */
.move-week .mv-meta { color: var(--texto-2); }
.mv-proxima { display: grid; gap: 12px; }
.mv-proxima .mv-escolha p { margin: 0 0 8px; }
.mv-proxima .mv-opcoes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mv-proxima a.mv-botao-borda { display: flex; }
.mv-proxima .mv-botao-borda[aria-pressed=true] { background: var(--neutro); color: var(--sobre-neutro); border-color: var(--neutro); }
.move-week { background: var(--superficie); border: 1px solid var(--linha); border-radius: var(--raio-cartao); padding: 16px; margin: 16px 0; }
.move-week a { display: inline-grid; place-items: center; min-height: var(--alvo-minimo); }
.move-week h2 { margin: 0; font-size: var(--t-20); }
.move-week p { margin: 0 0 8px; font-size: var(--t-15); }
.move-week ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.move-week li { display: grid; justify-items: center; font-size: var(--t-13); }
.move-week b { font-size: var(--t-17); }
.move-module:active, .move-primary:active, .move-back:active { transform: scale(.97); }
.move-entrance { display: grid; gap: 24px; justify-items: center; padding-top: 40px; text-align: center; }
.move-entrance .move-brand { width: 200px; height: 200px; }
.move-entrance .move-brand img { width: 200px; height: 200px; margin: 0; }
.move-entrance h1 { font-size: var(--t-24); margin: 0; }
.move-preview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: 100%; }
.move-preview img { width: 100%; height: auto; }
.move-primary { display: block; text-align: center; background: var(--neutro); color: var(--sobre-neutro); padding: 14px 20px; min-height: 52px; border: 0; border-radius: var(--raio-botao); width: 100%; font-weight: 600; }
.move-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 12px; min-height: 44px; border: 0; background: transparent; color: var(--texto); text-align: center; }
.move-task { margin-top: 32px; }
.move-task label:not(.move-choice) { display: block; font-weight: 600; margin: 16px 0 8px; }
.move-task input:not([type=checkbox]):not([type=radio]) { display: block; width: 100%; padding: 14px; background: var(--superficie); color: var(--texto); border: 1px solid var(--linha); border-radius: 12px; font-size: max(16px, var(--t-17)); }
.move-actions { position: sticky; bottom: 0; padding: 16px 0 max(16px, env(safe-area-inset-bottom)); margin-top: 24px; background: var(--fundo); }
.move-settings { display: grid; margin-top: 24px; }
.move-settings a { display: flex; justify-content: space-between; padding: 20px 4px; border-bottom: 1px solid var(--linha); min-height: 64px; }
fieldset { border: 0; padding: 0; margin: 0; }
fieldset + fieldset { margin-top: 24px; }
legend { font-weight: 600; margin-bottom: 16px; }
.move-choice { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.move-choice input { width: 22px; height: 22px; accent-color: var(--neutro); }
.move-day-plan fieldset { min-inline-size: 0; margin-block-end: 24px; }
.move-day-plan legend { margin-block-end: 8px; }
.move-day-plan fieldset p { margin: 0 0 8px; font-size: var(--t-15); }
.move-plan-areas, .move-plan-hours { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.move-plan-area { display: grid; justify-items: center; text-align: center; grid-template-rows: auto auto 1fr; gap: 4px; min-width: 0; padding: 8px; border: 1px solid var(--linha); border-radius: var(--raio-cartao); }
.move-plan-area img { width: min(100%, 72px); height: auto; }
.move-plan-area span { overflow-wrap: anywhere; font-size: var(--t-15); }
.move-plan-hours input { min-width: 0; }
[role=status] { font-size: var(--t-15); min-height: 24px; }
.move-skip { position: fixed; top: -80px; padding: 12px; background: var(--superficie); z-index: 10; }
.move-skip:focus { top: 0; }
@media (max-width: 380px) { .move-home-grid { gap: 24px 16px; padding: 8px 0; } }
@media (prefers-reduced-motion: no-preference) { a, button { transition: transform 100ms ease, background 150ms ease; } }
@media (prefers-reduced-motion: reduce) { .move-module:active, .move-primary:active, .move-back:active { transform: none; } }

/* Logo com nome: versão de cada tema. O símbolo sozinho serve aos dois. */
.move-brand .mv-logo-escuro { display: none; }
html[data-theme=dark] .move-brand .mv-logo-claro { display: none; }
html[data-theme=dark] .move-brand .mv-logo-escuro { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) .move-brand .mv-logo-claro { display: none; }
  :root:not([data-theme=light]) .move-brand .mv-logo-escuro { display: block; }
}
.mv-secao .move-settings { margin-top: 0; }
.mv-consentimento { color: var(--texto-2); font-size: var(--t-15); }
.mv-amostra { margin-top: 12px; }
