/* =====================================================
   TOKENS DE TEMA (cores, raios, sombras)
===================================================== */
:root{
  /* raios e sombras base */
  --radius-lg: 20px;
  --radius-md: 16px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 18px rgba(15,23,42,0.06);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.08);

  /* CLARO (default) */
  --app-bg: #f1f5ff;
  --surface: #ffffff;
  --surface-soft: #F7FAFF;

  --ink-900:#0f172a;
  --ink-600:#475569;
  --ink-700:#334155;  
  --ink-500:#64748b;
  --ink-400:#94a3b8;

  --primary-500:#0ea5e9;
  --primary-600:#2E6EDB;

  --border-soft: rgba(2, 6, 23, .08);
  --card-border-soft: rgba(37, 99, 235, .18);

  /* alias para componentes de ação */
  --act-card-bg: var(--surface-soft);
  --act-card-border: var(--card-border-soft);
  --act-card-shadow: 0 6px 16px rgba(15, 23, 42, .05);
  --act-card-shadow-hover: 0 10px 22px rgba(15, 23, 42, .07);
  --act-card-radius: var(--radius-md);
  --act-icon-color: var(--primary-600);
  --act-text-color: var(--ink-900);

  /* Timeline */
  --tl-bubble-bg: var(--surface);
  --tl-bubble-border: var(--border-soft);

  --tl-shadow: 
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 20px rgba(15, 23, 42, 0.05);

  --tl-rail: color-mix(in srgb, var(--ink-400) 35%, transparent);
  --tl-dot: color-mix(in srgb, var(--ink-400) 70%, transparent);
  --tl-dot-ring: color-mix(in srgb, var(--surface) 70%, transparent);

  --tl-dot-active: var(--primary-600);
  --tl-dot-active-ring: color-mix(in srgb, var(--primary-600) 18%, transparent);

}

/* ESCURO */
:root[data-theme="dark"] {
  color-scheme: dark;

  --app-bg: #0b1220;
  --surface: #0f172a;
  --surface-soft: #0c1526;

  --ink-900:#e5e7eb;
  --ink-600:#cbd5e1;
  --ink-700:#d1d5db;
  --ink-500:#a9b1bd;
  --ink-400:#93a0af;

  --primary-500:#38bdf8;
  --primary-600:#60a5fa;

  --border-soft: rgba(255,255,255,.08);
  --card-border-soft: rgba(96, 165, 250, .22);

  --shadow-sm: 0 4px 12px rgba(255,255,255,0.03);
  --shadow-md: 0 6px 18px rgba(255,255,255,0.04);
  --shadow-lg: 0 10px 30px rgba(255,255,255,0.05);

  --act-card-bg: var(--surface-soft);
  --act-card-border: var(--card-border-soft);
  --act-card-shadow: 0 6px 16px rgba(255,255,255,.04);
  --act-card-shadow-hover: 0 10px 22px rgba(255,255,255,.06);


    /* Timeline */
  --tl-bubble-bg: var(--surface-soft);
  --tl-bubble-border: rgba(255,255,255,.08);

  /* no dark: sombra vira “depth glow” */
  --tl-shadow:
    0 6px 18px rgba(0,0,0,.55),
    0 1px 0 rgba(255,255,255,.04);

  --tl-rail: rgba(255,255,255,.14);
  --tl-dot: rgba(255,255,255,.28);
  --tl-dot-ring: rgba(0,0,0,.45);

  --tl-dot-active: var(--primary-500);
  --tl-dot-active-ring: rgba(96,165,250,.35);  
}



/* =====================================================
   BASE / RESET
===================================================== */

/* Reset de sizing para evitar overflows nos cartões */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }


html, body {
  height: 100%;
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, sans-serif;
  min-height: 100%;
  background-color: var(--app-bg);  
}


body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--app-bg);
  z-index: -1; /* Fica atrás de tudo */
}

/* Fade-in controlado pelo JS */
body.invisible {
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s ease-out, visibility 0s linear 1s;
}
body:not(.invisible) {
  visibility: visible;
  opacity: 1;
  transition: opacity 1s ease-out;
}

/* Container principal */
.wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;            /* espaçamento entre blocos */
  padding: 8px;        /* margens internas */
  max-width: 480px;    /* largura tipo mobile */
  margin: 0 auto;      /* centra no ecrã */
}


/* Aplicação dos tokens principais */
body { background-color: var(--app-bg); color: var(--ink-900); }

/* =====================================================
   TIPOGRAFIA GLOBAL E LINKS (escala unificada)
===================================================== */
html { font-size: 16px; }            /* 1rem = 16px */
body { line-height: 1.5; font-size: 1rem; }

/* Título principal */
h1, .title-lg {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0;
}

/* Título de secção */
h2, .title-md, .section__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 8px;
}

/* Texto base e variações */
p, .text-base      { font-size: 1rem;  color: var(--ink-600); margin: 0; }
.text-sm           { font-size: 0.9rem; color: var(--ink-500); }
.text-xs           { font-size: 0.8rem; font-weight: 600; color: var(--ink-400); letter-spacing: 0.2px; }

/* Links — sem underline e herdando a cor */
a { text-decoration: none; color: inherit; }
a:hover, a:active { opacity: 0.85; }

/* Espaçamento vertical suave após títulos */
h1 + p, h2 + p { margin-top: 4px; }

/* =====================================================
   TOAST (atualização da PWA)
===================================================== */
.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(76px + env(safe-area-inset-bottom));
  z-index: 2001; /* acima do footer */
  background: var(--primary-500);
  color: white;
  padding: 12px 18px;
  border-radius: 14px; /* menos arredondado */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  line-height: 1.4;
  max-width: 90%;
  width: 340px;
  text-align: left;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 1;
}

.toast.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}

.toast, .toast * {
  -webkit-tap-highlight-color: transparent;
}

.toast button {
  background: white;
  color: var(--primary-500);
  border: none;
  border-radius: 10px;
  padding: 6px 14px;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  white-space: nowrap; /* impede quebra do texto do botão */
}

.toast button:hover {
  background: #f1f5f9;
}





/* =====================================================
   CARDS (base + variações)
===================================================== */
.card {
  padding: 40px 56px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid var(--border-soft);
}
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12); }

.card--primary   { background: linear-gradient(135deg, var(--primary-500), #38bdf8); color: white; }
.card--dark      { background: #1e293b; color: #f1f5f9; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.card--bordered  { border: 2px solid var(--primary-500); }
.card--minimal   { background: transparent; box-shadow: none; border: 1px solid var(--border-soft); }
.card--warning   { background: #fff7ed; border-left: 6px solid #f97316; text-align: left; }
.card--success   { background: #ecfdf5; border-left: 6px solid #10b981; text-align: left; }



/* =====================================================
   BLOQUEIOS (desktop e landscape)
===================================================== */
/* Só-mobile: em ecrãs grandes mostra aviso e oculta .app */
@media (min-width: 769px) {
  body::before {
    content: "Esta aplicação está disponível apenas em dispositivos móveis 📱";
    display: flex; justify-content: center; align-items: center;
    text-align: center; height: 100vh; padding: 20px; font-size: 1.2rem;
    background: #f9fafb; color: var(--ink-900);
  }
  .app, .toast { display: none !important; }
}
/* Bloqueio em landscape */
@media (orientation: landscape) {
  html, body { height: 100%; overflow: hidden; }
  .app, .toast { display: none !important; }
  body::before {
    content: "Roda o telemóvel para modo retrato 📱";
    position: fixed; inset: 0; display: flex; align-items: center; justify-content: center;
    padding: 24px; text-align: center; background: #0b1220; color: var(--ink-900); font-size: 1.1rem; z-index: 9999;
  }
}


/* =====================================================
   HEADER — "Good morning, John!"
===================================================== */
.header-welcome {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); padding: 18px 18px 14px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); margin: 12px; border: 1px solid var(--border-soft);
}
.header-welcome__icon img { width: 28px; height: 28px; }
.header-welcome__text {
  font-size: 1.6rem; font-weight: 800; color: var(--ink-900); line-height: 1.15;
  margin: 0 auto 0 10px;
}
.header-welcome__user {
  width: 44px; height: 44px; border-radius: 50%; background: var(--primary-500);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.header-welcome__user .user-icon { width: 24px; height: 24px; }


/* Botão de tema (opcional) */
.theme-toggle{
  display:inline-flex; align-items:center; justify-content:center;
  width:40px; height:40px; border-radius:12px; border:1px solid var(--border-soft);
  background: var(--surface-soft); color: var(--ink-900);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover{ opacity:.9; }



/* =====================================================
   BLOCO GENÉRICO: SECTION
===================================================== */
.section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin: 0 12px 12px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-soft);
}
.section__title { /* já herda tipografia global */ }



/* =====================================================
   BLOCO GENÉRICO: LIST / LIST-ITEM
===================================================== */
.list { display: flex; flex-direction: column; gap: 10px; }

/* item reutilizável de listagem */
.list-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 14px 14px 14px 16px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: 1px solid var(--border-soft);
}
.list-item__text { min-width: 0; }
.list-item__title   { font-size: 1.1rem; font-weight: 700; color: var(--ink-900); }
.list-item__subtitle{ margin-top: 4px; font-size: 0.9rem; color: var(--ink-500); }
.list-item__icon    { width: 20px; height: 20px; color: var(--primary-600); }
.list-item:hover, .list-item:active { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(15,23,42,0.08); }
.list-item--highlight { border-left: 4px solid var(--primary-500); }
.list-item--disabled  { opacity: 0.6; pointer-events: none; }

/* Esconder itens filtrados na search-list */
.search-list__body .list-item[hidden] {
  display: none;
}



/* =====================================================
   COMPONENTE GENÉRICO: KPIs (escala uniformizada)
===================================================== */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.kpi {
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  padding: 12px 10px;
  text-align: center;
  border: 1px solid var(--border-soft);
}
.kpi__icon  { width: 28px; height: 28px; margin: 2px auto 8px; color: var(--primary-600); }
.kpi__value { font-size: 1.25rem; font-weight: 700; color: var(--ink-900); line-height: 1; }
.kpi__label { margin-top: 6px; font-size: 0.9rem; color: var(--ink-500); }

.kpi--ok { position: relative; }
.kpi--ok::after {
  content: ""; position: absolute; top: 10px; left: calc(50% + 8px);
  width: 8px; height: 8px; background: #10b981; border: 2px solid var(--surface); border-radius: 50%;
}

/* Responsivo: 2 colunas em ecrãs estreitos */
@media (max-width: 360px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
}



/* =====================================================
   LIST-ITEM — Swipe
===================================================== */
.swipe-item{
  position: relative;
  display: grid;                 /* actions + surface na mesma célula */
  overflow: hidden;
  border-radius: 16px;
  isolation: isolate;
  background: var(--surface, #fff);
}

/* ---------- AÇÕES (atrás) ---------- */
.swipe-item__actions{
  grid-area: 1 / 1;              /* mesma área da surface */
  z-index: 1;                    /* por baixo */
  display: flex;
  justify-content: space-between;
  align-items: stretch;          /* altura total */
  padding: 0;
  gap: 0;
  opacity: 0;                    /* escondidas até abrir */
  pointer-events: none;
  transition: opacity .15s ease;
  border-radius: inherit;        /* recorte igual ao cartão */
}

/* Cada filho direto torna-se um “painel” de ação (altura total) */
.swipe-item__actions > *{
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 14px;
  background: transparent;       /* limpa pills/badges etc. */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;           /* evita quebra do texto */
}

/* Cores dos lados (aplica nas próprias ações-filhas) */
.swipe-item__actions > .swipe-action--ok        { background:#10b981; }
.swipe-item__actions > .swipe-action--danger    { background:#ef4444; }
.swipe-item__actions > .swipe-action--secondary { background:var(--primary-500); }
.swipe-item__actions > .swipe-action--warn      { background:#f59e0b; }

/* Arredonda apenas as extremidades visíveis */
.swipe-item__actions > :first-child {
  border-top-left-radius:16px;
  border-bottom-left-radius:16px;
}
.swipe-item__actions > :last-child  {
  border-top-right-radius:16px;
  border-bottom-right-radius:16px;
}

/* ✅ Alinhamento do texto das ações */
.swipe-item__actions > .swipe-action--ok {
  justify-content: flex-end;
  padding-right: 20px;
  text-align: right;
}
.swipe-item__actions > .swipe-action--danger {
  justify-content: flex-start;
  padding-left: 20px;
  text-align: left;
}

.swipe-item__actions > .swipe-action--secondary {
  justify-content: flex-end;
  padding-right: 20px;
  text-align: right;
}

.swipe-item__actions > .swipe-action--warn {
  justify-content: flex-start;
  padding-left: 20px;
  text-align: left;
}


/* Cada filho direto torna-se um “painel” de ação (altura total) */
.swipe-item__actions > * {
  flex: 1 1 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.25;
  margin: 0;
  padding: 0 10px;              /* mais respiro lateral */
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;            /* ligeiramente menor para caber bem */
  white-space: normal;          /* permite quebrar linha */
  word-break: break-word;       /* quebra palavras longas */
}



/* ---------- SUPERFÍCIE (à frente) ---------- */
.swipe-item__surface{
  grid-area: 1 / 1;              /* mesma área */
  z-index: 2;                    /* acima das ações */
  background: var(--surface, #fff);
  border-radius: inherit;
  transform: translateX(0);
  transition: transform .25s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}

/* Mostrar ações quando aberto (JS adiciona estas classes) */
/* Alinhar ações consoante o lado aberto (cobre casos com 1 só action) */
.swipe-item.is-open-left  .swipe-item__actions  { justify-content: flex-start; }
.swipe-item.is-open-right .swipe-item__actions  { justify-content: flex-end; }

/* Se houver apenas um botão, deixa-o ocupar a faixa desse lado */
.swipe-item__actions > :only-child { flex: 1 1 auto; }

.swipe-item.is-open-left  .swipe-item__actions,
.swipe-item.is-open-right .swipe-item__actions{
  opacity: 1;
  pointer-events: auto;
}

/* Não elevar no hover (o gesto já dá feedback) */
.list-item.list-item--swipeable:hover,
.list-item.list-item--swipeable:active {
  transform: none;
  box-shadow: 0 10px 22px rgba(15,23,42,.06);
}




/* =====================================================
   ACTION-CARDS (ícone à esquerda, texto à direita)
   2 colunas fixas + texto com clamp em 2 linhas
===================================================== */

/* GRID CONTAINER — sempre 2 colunas */
.action-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
/* Neutraliza media-queries antigas que empilhavam */
@media (max-width: 9999px) {
  .action-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* CARD BASE */
.action-card {
  display: grid;
  grid-template-columns: auto 1fr;      /* ícone + texto */
  align-items: center;
  gap: 10px;

  padding: 12px 14px;
  min-height: 62px;
  border-radius: var(--act-card-radius);

  background: var(--act-card-bg);
  border: 1px solid var(--act-card-border);
  box-shadow: var(--act-card-shadow);

  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.action-card:hover { transform: translateY(-1px); box-shadow: var(--act-card-shadow-hover); }
.action-card:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--act-icon-color) 55%, transparent);
  outline-offset: 2px;
}

/* ÍCONE (mais subtil) */
.action-card__icon {
  color: var(--act-icon-color);
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px;
}
.action-card__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* TEXTO (até 2 linhas) */
.action-card__label {
  color: var(--act-text-color);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;             /* máximo 2 linhas */
  -webkit-box-orient: vertical;
  min-width: 0;
}

/* Ajuste: 1 coluna apenas em ecrãs muito estreitos */
@media (max-width: 320px) {
  .action-cards { grid-template-columns: 1fr; }
}


/* ============================*/
/* base neutra do botão        */
/* ============================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem .875rem;     /* 10px 14px */
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  border: 1px solid transparent; /* neutro */
  background: transparent;        /* neutro */
  color: inherit;                  /* neutro */
}

.btn--sm { padding: .4rem .6rem; border-radius: 10px; font-size: .9rem; }
.btn--lg { padding: .8rem 1rem;   border-radius: 14px; font-size: 1.05rem; }

/* estados genéricos */
.btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}



/* ============================*/
/* ===== Footer Nav fixo ===== */
/* ============================*/
.footer-nav{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -6px 16px rgba(15,23,42,.06);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
}

.footer-nav{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  max-width: 520px;
  margin: 0 auto;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.footer-nav__item{
  -webkit-tap-highlight-color: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  min-height: 52px;
  border-radius: 12px;
  color: var(--ink-500);
  text-decoration: none;
  background: transparent;
  border: none;
}

.footer-nav__item:is(:hover,:focus-visible){ background: color-mix(in srgb, var(--surface-soft) 60%, transparent); }

.footer-nav__icon{ width: 22px; height: 22px; color: currentColor; }
.footer-nav__label{ font-size: .8rem; font-weight: 600; line-height: 1; }

.footer-nav__item.is-active{
  color: var(--primary-600);
}

/* ===== Sheet "Mais" (versão suave) ===== */
.more-menu[hidden]{ display: none; }
.more-menu{
  position: fixed; inset: 0; z-index: 1100;
  pointer-events: none;                 /* só ativa quando abrir */
}

.more-menu__backdrop{
  position: absolute; inset: 0;
  background: rgba(2,6,23,.0);          /* começa transparente */
  transition: background .32s ease;     /* fade do backdrop */
}
:root[data-theme="dark"] .more-menu__backdrop{ background: rgba(255,255,255,.0); }

.more-menu__sheet{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface);
  border-top-left-radius: 18px; border-top-right-radius: 18px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 -10px 30px rgba(15,23,42,.25);
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(16px);          /* parte ligeiramente abaixo */
  opacity: 0;                           /* começa invisível */
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    opacity   .24s ease;
  will-change: transform, opacity;
  max-width: 520px; margin: 0 auto;
}

/* estado aberto */
.more-menu.is-open { pointer-events: auto; }
.more-menu.is-open .more-menu__sheet{
  transform: translateY(0);
  opacity: 1;
}
.more-menu.is-open .more-menu__backdrop{
  background: rgba(2,6,23,.40);
}
:root[data-theme="dark"] .more-menu.is-open .more-menu__backdrop{
  background: rgba(255,255,255,.08);
}

/* puxador + título */
.more-menu__handle{
  width: 44px; height: 5px; border-radius: 999px; background: var(--ink-400);
  margin: 6px auto 10px;
}
.more-menu__title{ font-size: 1rem; font-weight: 700; margin: 0 6px 10px; color: var(--ink-900); }
.more-menu__list{ display: grid; gap: 6px; }
.more-menu__item{
  display: block; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--border-soft); background: var(--surface-soft);
  color: var(--ink-900); font-weight: 600;
}
.more-menu__item:hover{ opacity:.9; }

/* Botão "Fechar" no topo do sheet */
.more-menu__close {
  position: absolute;
  top: 10px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--ink-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: opacity .15s ease, transform .15s ease;
}
.more-menu__close:hover { opacity: .9; transform: scale(1.05); }

:root[data-theme="dark"] .more-menu__close {
  background: color-mix(in srgb, var(--surface-soft) 70%, transparent);
  color: var(--ink-600);
}


/* evita enjoos para quem prefere menos animação */
@media (prefers-reduced-motion: reduce) {
  .more-menu__sheet,
  .more-menu__backdrop { transition: none !important; }
}

/* Bloqueia o scroll da página quando o menu “Mais” está aberto */
.body--lock {
  overflow: hidden;       /* impede scroll no body */
  touch-action: none;     /* bloqueia gestos de toque */
}



