:root {
  --ink: #0a0b0d;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --muted-2: #a1a1aa;
  --line: #e4e4e7;
  --line-2: #f1f1f3;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --surface: #ffffff;
  --accent: #4f46e5;
  --btn: #14161f;
  --btn-fg: #ffffff;
  --hour: 76px;
  /* altura da topbar; .calhead gruda logo abaixo dela */
  --topbar-h: 57px;
  /* realce do item de navegação ativo: precisa se distinguir da sidebar (--bg)
     E do painel "Mais" (--surface), por isso não reusa nenhum dos dois */
  --nav-on: #f4f4f5;
  /* ações destrutivas: botão de perigo e a zona de risco.
     --danger é o texto sobre fundo claro; --danger-solid é o fundo do hover,
     escuro o bastante para carregar texto branco (6,6:1 aqui). */
  --danger: #b4231c;
  --danger-solid: #b4231c;
  --danger-line: #f3d4d2;
  --danger-bg: #fef2f2;
}

[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f4f4f5;
  --ink-2: #dcdce2;
  --muted: #b4b4be;
  --muted-2: #9a9aa6;
  --line: #2e333d;
  --line-2: #22262e;
  --bg: #0e1014;
  --bg-2: #171a21;
  --surface: #171a21;
  --accent: #a5a0ff;
  --btn: #f4f4f5;
  --btn-fg: #0e1014;
  /* mais claro que --bg (#0e1014) e que --surface (#171a21) */
  --nav-on: #252b36;
  --danger: #ff8f88;
  /* mais escuro que --danger para o branco do hover ficar legível (4,9:1);
     o #ff8f88 daria 2:1 e o rótulo sumiria */
  --danger-solid: #d33a2f;
  --danger-line: #5a2a2a;
  --danger-bg: #2b1b1b;
}

[data-theme="dark"] .btn {
  color: var(--ink);
}

[data-theme="dark"] .btn:hover,
[data-theme="dark"] .btn:active,
[data-theme="dark"] .btn:focus,
[data-theme="dark"] .btn.active {
  color: var(--ink);
}

[data-theme="dark"] .btn-line:hover {
  background: #232830;
  border-color: #454c59;
}

[data-theme="dark"] .btn-dark2,
[data-theme="dark"] .btn-dark2:hover,
[data-theme="dark"] .btn-dark2:active,
[data-theme="dark"] .btn-dark2:focus {
  color: var(--btn-fg);
}

[data-theme="dark"] input[type="checkbox"] {
  accent-color: var(--accent);
}

[data-theme="dark"] .chip.on,
[data-theme="dark"] .seg button.on {
  color: var(--bg);
}

[data-theme="dark"] .sw {
  background: #3c424e;
}

/* ligado usa --ink, que no escuro é quase branco: a pílula ficava branca com o
   botão branco dentro, invisível. */
[data-theme="dark"] .sw.on {
  background: var(--accent);
}

[data-theme="dark"] .sw.on:after {
  background: var(--bg);
}


[data-theme="dark"] .legend span.dot {
  outline: 1px solid rgba(255, 255, 255, 0.14);
}

.btn.btn-danger2 {
  color: var(--danger);
  border-color: var(--danger-line);
}

.dangerzone .btn.btn-danger2 {
  background: var(--surface);
}

.btn.btn-danger2:hover,
.btn.btn-danger2:active,
.btn.btn-danger2:focus {
  background: var(--danger-solid);
  border-color: var(--danger-solid);
  color: #fff;
}

.btn.btn-line:active,
.btn.btn-line:focus {
  color: var(--ink);
  background: var(--bg-2);
}

* {
  box-sizing: border-box;
}

.nsm7Bb-HzV7m-LgbsSe.JGcpL-RbRzK {
  border-radius: 8px !important;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: #3e37c9;
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
  display: block;
}

.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.field::placeholder {
  color: var(--muted-2);
}

.field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(120, 120, 140, 0.14);
}

.btn-dark2 {
  background: var(--btn);
  color: var(--btn-fg);
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14.5px;
}

.btn-dark2:hover {
  background: var(--btn);
  color: var(--btn-fg);
  filter: brightness(1.12);
}

.btn-line {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
  border-radius: 8px;
  padding: 11px 16px;
  font-size: 14.5px;
}

.btn-line:hover {
  background: var(--bg-2);
  color: var(--ink);
}

.btn-xs {
  padding: 7px 11px;
  font-size: 13px;
  border-radius: 7px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 11px;
  border-radius: 7px;
  cursor: pointer;
  line-height: 1.2;
}

.chip:hover {
  border-color: var(--muted-2);
  background: var(--bg-2);
}

.chip.on {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

.seg {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.seg button {
  border: 0;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 13px;
  cursor: pointer;
}

.seg button+button {
  border-left: 1px solid var(--line);
}

.seg button.on {
  background: var(--ink);
  color: var(--bg);
}

#view {
  padding: 0 0 80px;
}

#view.is-cal {
  padding-bottom: 90px;
}

@media (min-width: 992px) {

  #view,
  #view.is-cal {
    padding-bottom: 0;
  }
}

.viewwrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 16px 40px;
}

@media (min-width: 1200px) {
  .viewwrap.wide {
    max-width: 1240px;
  }
}

/* shell */
.side {
  width: 300px;
  flex: 0 0 300px;
  border-right: 1px solid var(--line);
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 18px 14px;
  overflow-y: auto;
}

.navb {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
}

.navb:hover {
  background: var(--bg-2);
}

.navb.on {
  background: var(--nav-on);
  color: var(--ink);
  font-weight: 700;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  padding: 6px 4px 8px;
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--muted-2);
  padding: 7px 2px;
  cursor: pointer;
  min-height: 48px;
}

/* sem ícones: o rótulo é o único conteúdo, então cresce e centraliza */
.tab {
  justify-content: center;
}

.tab .tx {
  font-size: 12.5px;
  font-weight: 600;
}

.tab.on {
  color: var(--ink);
}

/* mini month */
.mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}

.mini .d,
.mini .h {
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 11.5px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--ink-2);
  border: 0;
  background: none;
  position: relative;
}

.mini .h {
  color: var(--muted-2);
  font-weight: 700;
  cursor: default;
  font-size: 10px;
}

.mini .d:hover {
  background: var(--bg-2);
}

.mini .d.today {
  color: var(--accent);
  font-weight: 800;
}

.mini .d.sel {
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
}

/* Bolinhas: uma por tipo de refeição do dia, na cor da legenda.

   O `.pts` é uma linha flex e não pontos posicionados um a um — com `position:absolute` em cada
   `i` a segunda bolinha ficaria em cima da primeira, e centralizar N pontos exigiria calcular o
   deslocamento no JS. Aqui o contêiner centraliza e o número deles é indiferente ao CSS.

   A cor vem do `TINT` por `style` inline (é dado, não classe). Por isso NÃO se define `background`
   aqui: uma regra de cor venceria em um dos temas e apagaria a legenda no outro. */
.mini .d .pts,
.cday .pts {
  position: absolute;
  bottom: 3px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 2px;
  pointer-events: none;
}

.mini .d .pts i,
.cday .pts i {
  background: var(--tint);
  width: 3.5px;
  height: 3.5px;
  border-radius: 50%;
  flex: 0 0 3.5px;
}

/* O quarto ponto quando há mais de quatro tipos: alongado, para dizer "e mais" sem um "+" que
   não caberia em 3,5px. */
.mini .d .pts i.mais,
.cday .pts i.mais {
  width: 7px;
  flex-basis: 7px;
  border-radius: 2px;
}

.cday .pts {
  bottom: 1px;
}

.cday .pts i,
.cday .pts i.mais {
  height: 4px;
}

/* No dia selecionado o fundo é escuro (`--ink`) e as cores claras do TINT somem nele.
   Um anel do tom do fundo devolve o contorno sem trocar a cor — a legenda continua legível. */
.mini .d.sel .pts i,
.cday.on .pts i {
  box-shadow: 0 0 0 1px var(--bg);
}

.legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}

.legend div {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ink-2);
  min-width: 0;
}

.legend span.dot {
  /* cor do TINT, por custom property: é dado, não classe */
  background: var(--c0);
  border: 1px solid var(--c1);
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex: 0 0 9px;
  margin-top: 2px;
}

.legend span.tx {
  white-space: normal;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

/* calendar grid */
/* topbar — base é celular: o seletor Dia/Semana/Mês desce para a segunda
   linha (flex-basis 100%) em vez de espremer o título. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
}

.topbar .tb-title {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .tb-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .tb-nav {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.topbar .tb-nav .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.topbar .tb-ident {
  align-items: center;
  gap: 9px;
  flex: 0 0 auto;
  min-width: 0;
}

.tb-avatar {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.tb-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tb-name {
  font-size: 13.5px;
  font-weight: 600;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar .seg {
  flex: 0 0 100%;
}

.topbar .seg button {
  flex: 1;
  padding: 7px 0;
}

@media (min-width: 768px) {

  /* altura fixa, não var(--topbar-h): essa variável é a MEDIDA da topbar,
     usá-la aqui criaria um laço (mede -> define -> mede o que definiu). */
  .topbar {
    flex-wrap: nowrap;
    height: 57px;
    padding: 0 16px;
    gap: 10px;
  }

  .topbar .seg {
    flex: 0 0 auto;
  }

  .topbar .seg button {
    flex: 0 0 auto;
    padding: 8px 13px;
  }
}

.calwrap {
  border-top: 1px solid var(--line-2);
}

.calhead {
  display: grid;
  grid-template-columns: var(--cols);
  position: sticky;
  top: var(--topbar-h);
  z-index: 15;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.calhead .dh {
  border: 0;
  background: none;
  padding: 9px 8px;
  text-align: center;
  border-left: 1px solid var(--line-2);
}

.calhead .dh .dw {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.calhead .dh .dn {
  font-size: 19px;
  font-weight: 700;
  margin-top: 2px;
}

.calhead .dh.today .dn {
  color: var(--bg);
  background: var(--ink);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 2px auto 0;
  font-size: 15px;
}

.calbody {
  display: grid;
  grid-template-columns: var(--cols);
  position: relative;
}

.gutter {
  border-right: 1px solid var(--line-2);
}

.gutter .hr {
  height: var(--hour);
  position: relative;
}

.gutter .hr span {
  position: absolute;
  top: -7px;
  right: 7px;
  font-size: 10.5px;
  color: var(--muted-2);
  font-weight: 600;
}

.col {
  height: var(--h);
  position: relative;
  border-left: 1px solid var(--line-2);
  background-image: repeating-linear-gradient(to bottom,
      var(--line-2) 0 1px,
      transparent 1px var(--hour));
}

.col.weekend {
  background-color: var(--bg-2);
}

.slot {
  position: absolute;
  top: var(--y);
  left: 0;
  right: 0;
  height: var(--hour);
  cursor: pointer;
}

.slot:hover {
  background: rgba(79, 70, 229, 0.05);
}

.ev {
  position: absolute;
  /* geometria e cor vêm do dado; a regra fica aqui */
  top: var(--y);
  height: var(--h);
  left: calc(var(--x) + 3px);
  width: calc(var(--w) - 6px);
  background: var(--c0);
  color: var(--c2);
  right: 3px;
  border-radius: 6px;
  border: 1px solid;
  /* depois do atalho: o shorthand reverteria a cor para currentColor */
  border-color: var(--c1);
  border-left-width: 3px;
  padding: 4px 7px;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.25;
  text-align: left;
  min-height: 42px;
}

.ev:hover {
  filter: brightness(0.985);
  box-shadow: 0 2px 6px rgba(10, 11, 13, 0.08);
}

.ev .t {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev .s {
  opacity: 0.8;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ev.draft {
  border-style: dashed;
  background-image: repeating-linear-gradient(45deg,
      rgba(0, 0, 0, 0.03) 0 6px,
      transparent 6px 12px);
}

.nowline {
  position: absolute;
  top: var(--y);
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
  z-index: 6;
}

.nowline:before {
  content: "";
  position: absolute;
  left: -4px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* month view */
/* minmax(0,1fr), não 1fr: com `auto` de mínimo a coluna cresce até caber o
   min-content do chip ("07:30 Café da manhã") e a grade estoura a tela. */
.mgrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--line-2);
}

.mcell {
  min-height: 104px;
  min-width: 0;
  border-right: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  padding: 6px;
  cursor: pointer;
  background: var(--surface);
}

.mcell:hover {
  background: var(--bg-2);
}

.mcell .n {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.mcell.out {
  background: var(--bg-2);
  color: var(--muted-2);
}

.mcell.today .n {
  background: var(--ink);
  color: var(--bg);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11.5px;
}

.mchip {
  font-size: 10.5px;
  font-weight: 600;
  border-radius: 4px;
  padding: 2px 4px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--c0);
  border-left: 2px solid var(--c1);
  color: var(--c2);
}

/* No celular a célula tem ~55px: não cabe "07:30 Café da manhã". O chip vira
   uma barra colorida — a cor já diz o tipo pela legenda, e o toque abre o dia. */
@media (max-width: 767.98px) {
  .mcell {
    min-height: 66px;
    padding: 4px 3px;
  }

  .mchip {
    font-size: 0;
    height: 4px;
    padding: 0;
    margin-top: 3px;
    border-left: 0;
    background: var(--c1);
    /* tom forte: 4px do tom claro somem na tela */
  }
}

/* agenda — a semana no celular */
.agday {
  display: flex;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
}

.agday.today {
  background: var(--bg-2);
}

.agdate {
  flex: 0 0 40px;
  width: 40px;
  align-self: flex-start;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  text-align: center;
  cursor: pointer;
}

.agdate .dw {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-2);
}

.agdate .dn {
  display: block;
  font-size: 18px;
  font-weight: 700;
  margin-top: 1px;
}

.agday.today .agdate .dn {
  background: var(--ink);
  color: var(--bg);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 1px auto 0;
  font-size: 14px;
}

.aglist {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.agrow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-left-width: 3px;
  /* depois do atalho: o shorthand reverteria a cor */
  border-left-color: var(--c1);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 9px 11px;
  cursor: pointer;
  text-align: left;
}

.agrow:hover {
  background: var(--bg-2);
}

.agtime {
  flex: 0 0 auto;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.agmain {
  flex: 1 1 auto;
  min-width: 0;
}

.agtype {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agsub {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.agempty {
  flex: 1 1 auto;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: none;
  color: var(--muted-2);
  font-size: 12.5px;
  padding: 11px;
  text-align: left;
  cursor: pointer;
}

/* drawer */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.32);
  z-index: 60;
  display: none;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 460px;
  max-width: 100%;
  background: var(--bg);
  border-left: 1px solid var(--line);
  z-index: 61;
  display: none;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(10, 11, 13, 0.1);
}

.drawer.open,
.scrim.open {
  display: flex;
}

.dhead {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.dbody {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dfoot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
}

@media (max-width: 767.98px) {
  .drawer {
    top: auto;
    left: 0;
    width: 100%;
    height: 92vh;
    border-left: 0;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    animation: up 0.22s ease;
  }

  @keyframes up {
    from {
      transform: translateY(20px);
      opacity: 0.6;
    }

    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* misc */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--line);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--ink);
  border: 3px solid #fff;
}

.ends {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--muted-2);
  margin-top: 5px;
}

.bar-track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: var(--line-2);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--ink);
  /* a REGRA mora aqui; do JS vem só o número, por custom property */
  width: var(--pct, 0%);
}

.bar-fill.alt {
  background: var(--accent);
}

/* barra na cor do tipo de refeição, que vem de TINT */
.bar-fill.tint {
  background: var(--tint);
}

.toast-mini {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  /* acima da tabbar (63px) enquanto ela existir — .tabbar é d-lg-none */
  bottom: 76px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 600;
  padding: 11px 16px;
  border-radius: 8px;
  z-index: 2000;
  display: none;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
}

.toast-mini svg {
  flex: 0 0 auto;
}

/* Cores fixas, não tokens: o toast flutua sobre qualquer fundo, então tem de
   garantir contraste sozinho. Todas passam 5:1 com texto branco. */
.toast-mini.success {
  background: #15803d;
  color: #fff;
}

.toast-mini.error {
  background: #b4231c;
  color: #fff;
}

.toast-mini.warn {
  background: #b45309;
  color: #fff;
}

/* ---------- carregamento ---------- */

/* anel inline: herda a cor do texto, então funciona dentro de um botão escuro
   ou de um painel claro sem precisar de variante */
.spin {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.spin.lg {
  width: 30px;
  height: 30px;
  border-width: 3px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Um anel girando sem parar incomoda quem tem sensibilidade vestibular; aqui
   ele desacelera em vez de sumir, para continuar sinalizando "ocupado". */
@media (prefers-reduced-motion: reduce) {
  .spin {
    animation-duration: 2.4s;
  }
}

#loading {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  gap: 14px;
  align-content: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(2px);
  color: var(--ink);
}

#loading .msg {
  font-size: 14px;
  font-weight: 600;
}

.sw {
  width: 42px;
  height: 24px;
  border-radius: 99px;
  background: var(--line);
  border: 0;
  position: relative;
  cursor: pointer;
  transition: background 0.15s;
  flex: 0 0 42px;
}

.sw:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: left 0.15s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.sw.on {
  background: var(--ink);
}

.sw.on:after {
  left: 21px;
}

/* rodapé do relatório: token na tela, valor claro no @media print */
.rfoot {
  margin-top: 26px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.srow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}

.srow:last-child {
  border-bottom: 0;
}

@media (min-width: 992px) {
  .toast-mini {
    bottom: 24px;
  }
}

/* zona de risco: ações que o usuário não desfaz sozinho */
.dangerzone {
  margin-top: 18px;
  border: 1px solid var(--danger-line);
  border-radius: 10px;
  background: var(--danger-bg);
  padding: 4px 14px 10px;
}

.dangerzone .sechead {
  color: var(--danger);
  margin-top: 10px;
}

.dangerzone .srow {
  border-bottom-color: var(--danger-line);
}


/* avatar: as ações de foto ficam sobre ele, não soltas ao lado */
.avatar {
  position: relative;
  width: 88px;
  height: 88px;
  flex: 0 0 88px;
}

.avatar .face {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 30px;
  font-weight: 700;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.avatar .face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.av-badge {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--surface);
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.av-cam {
  right: -2px;
  bottom: -2px;
  background: var(--btn);
  color: var(--btn-fg);
}

/* Lixeira esmaecida DENTRO do círculo: a 45° a borda do avatar fica a ~13px
   do canto, então 8px mantém o badge dentro. O véu escuro é o que garante a
   leitura sobre uma foto clara. */
.av-del {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 11, 13, 0.42);
  color: #fff;
  opacity: 0.72;
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 1;
  cursor: pointer;
}

.av-del:hover,
.av-del:focus-visible {
  opacity: 1;
  background: var(--danger);
  color: #fff;
}

.sechead {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.sechelp {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.5;
}

.stat {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.6px;
}

.tile {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--surface);
}

/* seletores de data/hora (js/pickers.js) */
.pick-btn {
  text-align: left;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

#pickPop {
  top: var(--top);
  left: var(--left);
  position: absolute;
  z-index: 1500;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 18px 40px rgba(10, 11, 13, 0.16);
  width: 268px;
}

.pk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 14px;
}

.pk-mv {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  line-height: 1;
  cursor: pointer;
}

.pk-mv:hover {
  background: var(--bg-2);
}

.pk-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.pk-dow span {
  text-align: center;
  font-size: 10px;
  color: var(--muted-2);
  padding-bottom: 4px;
}

.pk-day {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  height: 32px;
  font-size: 13px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.pk-day:hover {
  background: var(--bg-2);
}

.pk-day.out {
  color: var(--muted-2);
}

.pk-day.today {
  box-shadow: inset 0 0 0 1px var(--line);
}

.pk-day.on,
.pk-day.on:hover {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.pk-cols {
  display: flex;
  gap: 8px;
}

.pk-col {
  flex: 1;
  max-height: 208px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pk-t {
  border: 0;
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 7px 0;
  font-size: 13.5px;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.pk-t:hover {
  background: var(--bg-2);
}

.pk-t.on,
.pk-t.on:hover {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* no escuro o --accent é lavanda claro: texto branco em cima não tem contraste */
[data-theme="dark"] .pk-day.on,
[data-theme="dark"] .pk-day.on:hover,
[data-theme="dark"] .pk-t.on,
[data-theme="dark"] .pk-t.on:hover {
  color: var(--bg);
}

/* gráfico de linha (js/charts.js) */
.lchart {
  display: block;
  width: 100%;
  overflow: visible;
}

.lchart-x {
  position: relative;
  height: 13px;
  margin-top: 5px;
}

.lchart-x span {
  left: var(--x);
  position: absolute;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--muted-2);
  white-space: nowrap;
}

.rescard {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  background: var(--surface);
  text-align: left;
  width: 100%;
  color: var(--ink);
}

.rescard:hover {
  background: var(--bg-2);
}

/* relatório / impressão */
#report {
  display: none;
}

#reportPreview {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  margin-top: 14px;
}

.rdoc h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 4px;
}

.rdoc h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 22px 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.rdoc .rmeta {
  font-size: 12.5px;
  color: var(--muted);
}

.rdoc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.rdoc th,
.rdoc td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-2);
}

.rdoc th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.rdoc .day {
  font-size: 13px;
  font-weight: 700;
  margin-top: 16px;
}

.rdoc .rec {
  border-left: 2px solid var(--ink);
  padding: 6px 0 6px 10px;
  margin-top: 8px;
}

@media print {
  @page {
    margin: 16mm;
  }

  body {
    background: #fff;
  }

  #report {
    color: #0a0b0d;
  }

  #report h3 {
    border-color: #e4e4e7;
  }

  #report th,
  #report td {
    border-color: #f1f1f3;
  }

  #report .rmeta {
    color: #71717a;
  }

  #report .rfoot {
    border-top-color: #e4e4e7;
  }

  #report .rec {
    border-color: #0a0b0d;
  }

  body>* {
    display: none !important;
  }

  #report,
  #report * {
    display: revert !important;
  }

  #report {
    display: block !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  #report .rec {
    break-inside: avoid;
  }
}

/* faixa de datas do celular (js/nav-calendar.js: calStrip) */
.cstrip {
  position: sticky;
  top: var(--topbar-h);
  z-index: 15;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 6px 6px 0;
}

.cstrip-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.cstrip-dow span {
  text-align: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted-2);
  padding-bottom: 2px;
}

.cday {
  position: relative;
  border: 0;
  background: none;
  color: var(--ink);
  height: 40px;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
}

.cday .dn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14.5px;
  font-weight: 600;
}

.cday.out .dn {
  color: var(--muted-2);
}

.cday.today .dn {
  color: var(--accent);
  font-weight: 800;
}

.cday.on .dn {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

[data-theme="dark"] .cday.on .dn {
  color: var(--bg);
}


/* alça: alvo de toque de 28px de altura, traço de 4px. touch-action none para
   o navegador não rolar a página em vez de emitir pointermove. */
.striphandle {
  display: block;
  width: 100%;
  height: 28px;
  border: 0;
  background: none;
  padding: 0;
  cursor: grab;
  touch-action: none;
}

.striphandle i {
  display: block;
  width: 64px;
  height: 4px;
  border-radius: 99px;
  background: var(--line);
  margin: 0 auto;
}

.striphandle:hover i {
  background: var(--muted-2);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ============================================================
   UTILITÁRIOS
   ------------------------------------------------------------
   Substituem os atributos `style=` que existiam na marcação gerada
   em JS. Ficam no FIM do arquivo e levam `!important`, pelo mesmo
   motivo: estilo inline vence QUALQUER regra, inclusive as de duas
   classes como `[data-theme="dark"] .btn`. Uma classe utilitária
   sem peso perderia para elas e a cor mudaria sozinha no tema
   escuro. É a mesma convenção das utilitárias do Bootstrap.

   O Bootstrap 5.3 já está carregado e resolve peso (`fw-semibold`,
   `fw-bold`, `fw-medium`), display, flex e alinhamento — aqui está
   só o que ele não tem: a escala tipográfica do projeto, que usa
   meios pixels, e espaçamentos abaixo do passo de 4px dele.
   ============================================================ */

/* escala tipográfica */
.t105 {
  font-size: 10.5px !important;
}

.t11 {
  font-size: 11px !important;
}

.t115 {
  font-size: 11.5px !important;
}

.t12 {
  font-size: 12px !important;
}

.t125 {
  font-size: 12.5px !important;
}

.t13 {
  font-size: 13px !important;
}

.t135 {
  font-size: 13.5px !important;
}

.t14 {
  font-size: 14px !important;
}

.t145 {
  font-size: 14.5px !important;
}

.t15 {
  font-size: 15px !important;
}

.t16 {
  font-size: 16px !important;
}

.t17 {
  font-size: 17px !important;
}

.t19 {
  font-size: 19px !important;
}

.t23 {
  font-size: 23px !important;
}

/* títulos: o tracking negativo acompanha o corpo, senão o texto grande
   fica largo */
.tt15 {
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}

.tt17 {
  font-size: 17px !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
}

.tt19 {
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: -0.4px !important;
}

.tt23 {
  font-size: 23px !important;
  font-weight: 700 !important;
  letter-spacing: -0.5px !important;
}

/* cor de texto */
.c-ink {
  color: var(--ink) !important;
}

.c-ink2 {
  color: var(--ink-2) !important;
}

.c-muted {
  color: var(--muted) !important;
}

.c-muted2 {
  color: var(--muted-2) !important;
}

.c-accent {
  color: var(--accent) !important;
}

.c-danger {
  color: var(--danger) !important;
}

/* entrelinha */
.lh135 {
  line-height: 1.35 !important;
}

.lh14 {
  line-height: 1.4 !important;
}

.lh145 {
  line-height: 1.45 !important;
}

.lh15 {
  line-height: 1.5 !important;
}

.lh16 {
  line-height: 1.6 !important;
}

/* espaçamento fino: abaixo do passo de 4px do Bootstrap */
.mt2 {
  margin-top: 2px !important;
}

.mt3 {
  margin-top: 3px !important;
}

.mt4 {
  margin-top: 4px !important;
}

.mt6 {
  margin-top: 6px !important;
}

.mt10 {
  margin-top: 10px !important;
}

/* uma coluna de grade só encolhe se o mínimo deixar; `min-width:0` é o que
   permite o texto truncar em vez de estourar a tela */
.minw0 {
  min-width: 0 !important;
}

/* truncamento SEM nowrap: corta com reticências e o bloco segue podendo
   quebrar onde o layout precisar */
.ellipsis {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* alimento desativado some da busca e continua no histórico: aparece
   esmaecido, e não ausente */
.op35 {
  opacity: 0.35 !important;
}

.op45 {
  opacity: 0.45 !important;
}

.op50 {
  opacity: 0.5 !important;
}

/* larguras pontuais */
.w20 {
  width: 20px !important;
}

.w110 {
  min-width: 110px !important;
  flex: 0 0 110px !important;
}

.mw120 {
  min-width: 120px !important;
}

.mw200 {
  min-width: 200px !important;
}

/* ---------- componentes ----------

/* linha de lista dentro de painel */
.listrow {
  padding: 13px 0;
  border-bottom: 1px solid var(--line-2);
}

.catrow {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
}

.py16 {
  padding: 16px 0;
}

/* cabeçalho de coluna das tabelas do relatório */
.rth {
  text-align: left;
  padding: 6px 0;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* horário de lembrete: campo estreito ao lado do interruptor */
.pick-104 {
  width: 104px;
  flex: 0 0 104px;
}

.pick-btn-sm {
  padding: 7px 9px;
  font-size: 13.5px;
}

/* rótulo e valor de uma barra horizontal */
.barlabel {
  width: 120px;
  flex: 0 0 120px;
  font-size: 13px;
  color: var(--ink-2);
}

.barval {
  width: 24px;
  text-align: right;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}

/* tabela de frequência por período */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.w70 {
  width: 70px;
}

/* cabeçalho de dia da semana na grade do mês */
.mdow {
  padding: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
  border-left: 1px solid var(--line-2);
}

/* só a primeira grade do mês leva a borda de cima */
.mgrid.head {
  border-top: 1px solid var(--line-2);
}

/* drawer: formulário de alimento */
.w74 {
  width: 74px;
}

.w130 {
  width: 130px;
}

/* drawer: item já adicionado à refeição */
.fooditem {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.qtybtn {
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 6px;
}

/* drawer: painel de busca de alimento */
.foodpanel {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 8px;
}

.foodresults {
  max-height: 240px;
  overflow-y: auto;
}

.foodhit {
  border-radius: 7px;
  padding: 9px 10px;
}

.foodnew {
  border: 1px dashed var(--line);
  border-radius: 7px;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
}

/* a observação cresce só na vertical: na horizontal estouraria o drawer */
.resizev {
  resize: vertical;
}

/* caixa pontilhada de estado vazio ("Nada adicionado ainda") */
.dashed {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

/* caixa do painel de contexto, dentro do drawer */
.boxed {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px;
}

/* O toast nasce escondido (.toast-mini tem display:none) e o `fadeIn` do jQuery
   precisa saber para qual display voltar. */
.toast-mini.on {
  display: flex;
}

/* Casca do app: só aparece depois de entrar. `d-none` do Bootstrap é
   `display:none !important` e vence esta regra enquanto estiver lá. */
.appshell {
  display: flex;
  min-height: 100vh;
}

.authshell {
  display: flex;
  min-height: 100vh;
}

/* foto de perfil ampliada */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 13, 0.82);
  z-index: 3000;
  display: grid;
  place-items: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 10px;
}

/* ---------- tela de entrada ---------- */
.tt29 {
  font-size: 29px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 0;
}

/* painel ilustrado: some abaixo de 992px, onde o formulário ocupa tudo */
.auth-art {
  flex: 0 0 44%;
  background: #0a0b0d;
}

.auth-art-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 11, 13, .45) 0%, rgba(10, 11, 13, .15) 45%, rgba(10, 11, 13, .85) 100%);
  pointer-events: none;
}

.auth-art-brand {
  position: absolute;
  top: 28px;
  left: 32px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.auth-art-brand span {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

.auth-art-copy {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 40px;
  pointer-events: none;
}

.auth-art-title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.auth-art-sub {
  color: rgba(255, 255, 255, .72);
  font-size: 14.5px;
  margin-top: 12px;
  max-width: 340px;
  line-height: 1.55;
}

.auth-form {
  padding: 32px 24px;
}

.auth-card {
  width: 100%;
  max-width: 392px;
}

.auth-sub {
  font-size: 14.5px;
  margin: 8px 0 28px;
}

.auth-keep {
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
}

.auth-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.auth-submit {
  padding: 13px;
}

.auth-error {
  font-size: 13px;
  color: #b4231c;
  background: #fef2f2;
  border: 1px solid #fbd5d3;
  padding: 9px 11px;
  border-radius: 8px;
}

/* `.auth-linked` saiu junto com o `#linkNotice`: quem avisa o vínculo do Google agora é o toast,
   porque login bem-sucedido esconde `#auth` antes de qualquer coisa lá dentro ser lida. As cores
   eram fixas e não seguiam o tema — o toast já garante o próprio contraste sobre qualquer fundo. */

/* filete do separador "ou" */
.rule {
  height: 1px;
  background: var(--line);
}

/* ---------- casca do app ---------- */
.appmain {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.minh0 {
  min-height: 0;
}

.lh1 {
  line-height: 1;
}

.btn-sq26 {
  width: 26px;
  height: 26px;
  padding: 0;
}

.btn-sq30 {
  width: 30px;
  height: 30px;
  padding: 0;
}

/* menu "Mais" (celular) e aviso de lembrete */
.morepanel {
  position: fixed;
  right: 12px;
  bottom: 72px;
  z-index: 45;
  padding: 6px;
  min-width: 200px;
  box-shadow: 0 12px 30px rgba(10, 11, 13, 0.12);
}

.notifbanner {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 70;
  max-width: 330px;
  padding: 14px 16px;
  box-shadow: 0 14px 36px rgba(10, 11, 13, 0.16);
}

/* ---------- 404 ---------- */
.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  text-align: center;
}

.nf-code {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.nf h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.7px;
  margin: 12px 0 0;
}

.nf p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 10px auto 0;
  max-width: 380px;
}

.nf-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

/* prato vazio: o assunto do app, e não um 404 genérico */
.nf-plate {
  width: 92px;
  height: 92px;
  margin: 0 auto 4px;
  color: var(--muted-2);
}

/* mês e ano no cabeçalho do seletor de data */
.pk-my {
  display: flex;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.pk-sel {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 5px 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pk-sel:focus {
  outline: none;
  border-color: var(--ink);
}

.pk-ano {
  flex: 0 0 74px;
}

/* ---------- campo de senha e validação ---------- */
.pass-wrap {
  position: relative;
}

.pass-wrap .field {
  padding-right: 42px;
}

.pass-eye {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  padding: 8px;
  line-height: 0;
  border-radius: 7px;
  cursor: pointer;
}

.pass-eye:hover {
  color: var(--ink);
  background: var(--bg-2);
}

.pass-eye:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.fieldmsg {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--danger);
  margin-top: 6px;
}

.field.err {
  border-color: var(--danger);
}

.field.err:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(180, 35, 28, 0.14);
}

/* o olho alterna por classe: os dois SVG já estão no botão */
.pass-eye .eye-off {
  display: none;
}

.pass-eye.on .eye-on {
  display: none;
}

.pass-eye.on .eye-off {
  display: block;
}