/* Mamly — uma coisa de cada vez, em grande.
   Tema com as cores do logo: ameixa, coral, amarelo e creme.
   Substitui o style.css sem mudar o index.html: os mesmos seletores e IDs, só tokens, raios, sombras e detalhes. */
/* Letras incluídas na app (funciona sem internet e sem pedidos a terceiros). */
@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage-grotesque.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
:root {
    --bg: #FCFBF6; --bg-2: #F5EEE9; --card: #FFFFFF; --ink: #330A2A; --ink-2: #5E3A55; --muted: #7D6476;
    --line: #EDE3E3; --accent: #330A2A; --accent-2: #FD726B; --accent-ink: #FCFBF6; --accent-soft: #FFE6E2;
    --sun: #FBD270; --amber: #8F560A; --amber-soft: #FDF0D2; --ok: #2A7553; --ok-soft: #DDF0E6; --danger: #B0302D;
    /* cartão 'A seguir' e aviso em ecrã inteiro: as cores do logo (ameixa, coral) — texto creme */
    --hero-1: #5C1E4E; --hero-2: #330A2A; --hero-3: #22061C; --alert-1: #E0505A; --alert-2: #A62F55; --alert-3: #330A2A;
    --check-line: #E3D2D8; --done-check: #2A7553; --accent-rgb: 51, 10, 42;
    --shadow-sm: 0 1px 2px rgba(51, 10, 42, .06); --shadow: 0 1px 2px rgba(51, 10, 42, .04), 0 14px 34px -14px rgba(51, 10, 42, .22); --shadow-accent: 0 14px 32px -10px rgba(253, 114, 107, .55); --dock-bg: rgba(252, 251, 246, .86);
  --radius: 24px;
  --radius-lg: 30px;
  --display: "Bricolage Grotesque", ui-rounded, system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A0D17; --bg-2: #24131F; --card: #2D1828; --ink: #FCF3F0; --ink-2: #E2CDD8; --muted: #A9909F;
    --line: #42283A; --accent: #FD726B; --accent-2: #FBD270; --accent-ink: #330A2A; --accent-soft: #46222D;
    --sun: #FBD270; --amber: #F0B45A; --amber-soft: #362913; --ok: #62CC95; --ok-soft: #173326; --danger: #FF8273;
    --hero-1: #6A2459; --hero-2: #47143D; --hero-3: #2A0A23; --alert-1: #D84D58; --alert-2: #9C2C52; --alert-3: #330A2A;
    --check-line: #5C4256; --done-check: #2A7553; --accent-rgb: 253, 114, 107;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -14px rgba(0, 0, 0, .7); --shadow-accent: 0 14px 32px -10px rgba(253, 114, 107, .4); --dock-bg: rgba(26, 13, 23, .86);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
    --bg: #1A0D17; --bg-2: #24131F; --card: #2D1828; --ink: #FCF3F0; --ink-2: #E2CDD8; --muted: #A9909F;
    --line: #42283A; --accent: #FD726B; --accent-2: #FBD270; --accent-ink: #330A2A; --accent-soft: #46222D;
    --sun: #FBD270; --amber: #F0B45A; --amber-soft: #362913; --ok: #62CC95; --ok-soft: #173326; --danger: #FF8273;
    --hero-1: #6A2459; --hero-2: #47143D; --hero-3: #2A0A23; --alert-1: #D84D58; --alert-2: #9C2C52; --alert-3: #330A2A;
    --check-line: #5C4256; --done-check: #2A7553; --accent-rgb: 253, 114, 107;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -14px rgba(0, 0, 0, .7); --shadow-accent: 0 14px 32px -10px rgba(253, 114, 107, .4); --dock-bg: rgba(26, 13, 23, .86);
  color-scheme: dark;
}

/* marca: ícone + nome no topo */
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); min-width: 0; }
.brand img { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.brand svg { height: 22px; width: auto; flex: none; }
.top .today { margin: 14px 0 0; }
.empty-art img { width: 120px; height: 120px; border-radius: 30px; box-shadow: var(--shadow); }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink);
  font: 16px/1.45 var(--body); -webkit-font-smoothing: antialiased;
  padding-bottom: calc(150px + env(safe-area-inset-bottom));
  -webkit-tap-highlight-color: transparent;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.top, main { max-width: 560px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- topo ---------- */
.top { padding-top: calc(18px + env(safe-area-inset-top)); padding-bottom: 4px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; }
.today { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  background: var(--card); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.icon-btn:hover { color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.greeting {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 9vw, 42px); line-height: 1.02;
  letter-spacing: -.035em; margin: 10px 0 6px;
}
.summary { margin: 0 0 18px; color: var(--ink-2); font-size: 16px; }
.summary b { color: var(--accent); }

.unlock {
  position: sticky; top: 0; z-index: 40; width: 100%; border: 0; display: flex; gap: 12px;
  align-items: center; justify-content: center; text-align: left;
  background: var(--ink); color: var(--bg); padding: 12px 20px calc(12px) ;
  padding-top: calc(12px + env(safe-area-inset-top));
}
.unlock small { display: block; opacity: .7; font-size: 13px; }
.unlock-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .28); animation: pulse 1.4s infinite; flex: none; }

/* ---------- cartão "a seguir" ---------- */
.next {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 20px 20px 22px; margin-bottom: 26px;
  background: radial-gradient(120% 140% at 100% 0%, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  color: #fff; box-shadow: var(--shadow-accent);
  animation: rise .35s ease-out;
}
.next::after {
  content: ""; position: absolute; width: 230px; height: 230px; right: -80px; bottom: -120px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-2), transparent); opacity: .45; pointer-events: none;
}
.next-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }
.next-kind {
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(255,255,255,.18); padding: 6px 12px; border-radius: 999px;
}
.next-in { font-size: 14px; font-weight: 700; opacity: .95; font-variant-numeric: tabular-nums; }
.next-body { display: flex; gap: 16px; align-items: center; position: relative; z-index: 1; }
.next-ring { position: relative; width: 96px; height: 96px; flex: none; }
.next-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,.2); stroke-width: 10; }
.ring-fg { fill: none; stroke: #fff; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 0; transition: stroke-dashoffset .6s ease; }
.next-time {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -.03em; font-variant-numeric: tabular-nums;
}
.next-text { min-width: 0; }
.next-task {
  margin: 0; font-family: var(--display); font-weight: 700; font-size: 26px; line-height: 1.08; letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.next-meta { margin: 6px 0 0; font-size: 14px; opacity: .9; }
.next-bar { position: relative; z-index: 1; height: 8px; border-radius: 99px; background: rgba(255,255,255,.22); margin-top: 16px; overflow: hidden; }
.next-bar i { display: block; height: 100%; width: 0; background: #fff; border-radius: inherit; transition: width .6s ease; }

/* ---------- lista ---------- */
.list-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.list-head h2 { font-family: var(--display); font-size: 20px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.count {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 99px;
  background: var(--bg-2); color: var(--ink-2); font-size: 13px; font-weight: 700;
}
.count:empty { display: none; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.item {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 15px 15px 15px 13px; box-shadow: var(--shadow);
  border: 1px solid transparent; transition: transform .25s ease, opacity .25s ease;
  animation: rise .3s ease-out both;
}
.item.waiting { border-color: var(--amber); background: linear-gradient(0deg, var(--amber-soft), var(--amber-soft)) padding-box, var(--card); }
.item.finished { opacity: .7; }
.item.completing { transform: scale(.97); opacity: 0; }

.check {
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--check-line); background: transparent;
  display: grid; place-items: center; color: transparent; padding: 0; transition: all .2s ease; flex: none;
}
.check svg { width: 18px; height: 18px; }
.check:hover { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.item.completing .check { background: var(--ok); border-color: var(--ok); color: #fff; }

.item-body { min-width: 0; background: none; border: 0; padding: 0; text-align: left; }
.item-task { margin: 0 0 6px; font-weight: 700; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 99px;
  background: var(--bg-2); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.tag svg { width: 13px; height: 13px; }
.tag.deadline { background: var(--accent-soft); color: var(--accent); }
.item.waiting .tag.deadline { background: var(--amber); color: var(--card); }
.item-bar { height: 6px; border-radius: 99px; background: var(--bg-2); margin-top: 10px; overflow: hidden; }
.item-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

.item-when { text-align: right; display: grid; justify-items: end; gap: 2px; }
.item-when b {
  font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.item-when small { font-size: 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.item.waiting .item-when small { color: var(--amber); }
.say {
  margin-top: 4px; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--ink-2);
  display: grid; place-items: center;
}
.say:hover { color: var(--accent); }

/* vazio */
.empty { text-align: center; padding: 10px 8px 6px; }
.empty-art { width: 120px; height: 120px; margin: 0 auto 6px; animation: float 4s ease-in-out infinite; }
.empty h3 { font-family: var(--display); font-size: 24px; letter-spacing: -.02em; margin: 0 0 6px; }
.empty p { margin: 0 auto 16px; color: var(--ink-2); max-width: 320px; }
.examples { display: grid; gap: 8px; max-width: 360px; margin: 0 auto; }
.example {
  border: 1.5px dashed var(--check-line); background: var(--card); color: var(--ink-2); border-radius: 18px;
  padding: 11px 14px; font-size: 14px; font-weight: 600; text-align: left;
}
.example:hover { border-color: var(--accent); color: var(--accent); }

.done-wrap { margin-top: 22px; }
.done-wrap summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
  font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--ink-2); padding: 6px 0 10px;
}
.done-wrap summary::-webkit-details-marker { display: none; }
.done-wrap summary::before { content: "›"; font-size: 22px; line-height: 1; transition: transform .2s; color: var(--muted); }
.done-wrap[open] summary::before { transform: rotate(90deg); }
.list-done .item { box-shadow: none; background: transparent; border: 1px solid var(--line); animation: none; }
.list-done .item-task { text-decoration: line-through; text-decoration-color: var(--muted); color: var(--muted); font-weight: 600; margin: 0; }
.list-done .check { background: var(--ok); border-color: var(--ok); color: #fff; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; padding: 10px 0; font-size: 14px; }

/* aviso sobre o funcionamento */
.notice {
  margin: 28px 0 10px; padding: 16px 18px; border-radius: var(--radius); background: var(--bg-2);
  font-size: 14px; color: var(--ink-2);
}
.notice p { margin: 0; }
.notice b { color: var(--ink); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notice-actions:has(button:not([hidden])) { margin-top: 10px; }

/* ---------- botões ---------- */
.btn {
  border: 1px solid var(--line); background: var(--card); padding: 12px 18px; border-radius: 999px;
  font-weight: 700; font-size: 15px;
}
.btn:hover { border-color: var(--muted); }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: var(--shadow-accent); }
.btn-primary:hover { filter: brightness(1.05); border-color: transparent; }
.btn-soft { background: var(--card); }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--danger); border-color: transparent; padding-left: 4px; }

/* ---------- barra de baixo ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--dock-bg); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-top: 0; box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .28);
  border-radius: 28px 28px 0 0;
}
.dock > * { max-width: 520px; margin-left: auto; margin-right: auto; }
.dock-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; }
.dock-btn {
  justify-self: center; display: grid; justify-items: center; gap: 4px; border: 0; background: none;
  color: var(--ink-2); font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 14px;
}
.dock-btn svg { padding: 11px; width: 48px; height: 48px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.dock-btn[aria-expanded="true"] svg { background: var(--ink); color: var(--bg); border-color: transparent; }
.dock-btn:hover { color: var(--ink); }

.mic-wrap { display: grid; justify-items: center; gap: 6px; margin-top: -34px; }
.mic {
  position: relative; width: 80px; height: 80px; border-radius: 50%; border: 5px solid var(--bg);
  background: linear-gradient(160deg, var(--accent-2), var(--accent) 62%);
  color: var(--accent-ink); box-shadow: 0 0 0 7px var(--accent-soft), var(--shadow-accent); display: grid; place-items: center;
  transition: transform .15s ease, background .2s;
}
.mic:active { transform: scale(.94); }
.mic:disabled { opacity: .45; cursor: not-allowed; }
.mic-ring { position: absolute; inset: -4px; border-radius: 50%; border: 3px solid var(--accent); opacity: 0; pointer-events: none; }
.mic-wave { display: none; gap: 4px; align-items: center; height: 30px; }
.mic-wave i { width: 4px; height: 8px; border-radius: 4px; background: currentColor; animation: wave .9s ease-in-out infinite; }
.mic-wave i:nth-child(2) { animation-delay: .12s; } .mic-wave i:nth-child(3) { animation-delay: .24s; }
.mic-wave i:nth-child(4) { animation-delay: .36s; } .mic-wave i:nth-child(5) { animation-delay: .48s; }
.mic.listening { background: var(--ink); color: var(--bg); }
.mic.listening .mic-icon { display: none; }
.mic.listening .mic-wave { display: flex; }
.mic.listening .mic-ring { animation: ring 1.6s ease-out infinite; border-color: var(--ink); }
.mic.listening .mic-ring.r2 { animation-delay: .8s; }
.mic-label { margin: 0; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }

.transcript {
  margin: 0 auto 10px; padding: 10px 14px; border-radius: 20px 20px 20px 6px; background: var(--card);
  box-shadow: var(--shadow); font-size: 15px; color: var(--ink-2); width: fit-content; max-width: min(520px, 100%);
  animation: rise .2s ease-out;
}
.transcript:empty { display: none; }

.type-form { display: flex; gap: 8px; margin-bottom: 46px; animation: rise .2s ease-out; }
.type-form input {
  flex: 1; min-width: 0; height: 52px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 16px; box-shadow: var(--shadow-sm);
}
.type-form input:focus { outline: 2.5px solid var(--accent); outline-offset: 0; border-color: transparent; }
.send {
  width: 52px; height: 52px; border-radius: 999px; border: 0; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--shadow-accent); flex: none;
}

.toast {
  position: fixed; left: 50%; bottom: calc(132px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  z-index: 30; background: var(--ink); color: var(--bg); padding: 8px 8px 8px 18px; border-radius: 999px;
  display: flex; gap: 6px; align-items: center; box-shadow: var(--shadow); max-width: calc(100% - 32px);
  font-size: 14px; font-weight: 600; animation: rise .2s ease-out;
}
.toast span { padding: 4px 0; }
.toast button { background: transparent; border: 0; color: var(--accent-2); font-weight: 800; padding: 8px 10px; border-radius: 10px; }

/* ---------- aviso em ecrã inteiro ---------- */
.alert {
  /* flex + margin:auto centra sem cortar: com letra grande, o aviso faz scroll em vez de ficar fora do ecrã */
  position: fixed; inset: 0; z-index: 50; display: flex; overflow-y: auto; overscroll-behavior: contain;
  padding: calc(24px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(130% 90% at 50% 0%, var(--alert-1) 0%, var(--alert-2) 45%, var(--alert-3) 100%);
  color: #fff; animation: fade .25s ease-out;
}
.alert-close {
  position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px;
  display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 14px 0 10px; border-radius: 99px;
  border: 0; background: rgba(0,0,0,.16); color: #fff; font-weight: 800; font-size: 15px;
}
.alert-close:hover { background: rgba(0,0,0,.26); }
.alert-inner { width: 100%; max-width: 440px; margin: auto; padding-top: 44px; text-align: center; display: grid; justify-items: center; }
.alert button { touch-action: manipulation; -webkit-user-select: none; user-select: none; }
.alert-btn:active, .alert-close:active { transform: scale(.96); background: rgba(255,255,255,.3); }
.alert-bell {
  position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: #FFF8F2; color: var(--alert-2); margin-bottom: 22px; animation: shake 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 14px rgba(255,255,255,.08), 0 0 0 30px rgba(255,255,255,.05), 0 0 80px 10px rgba(var(--accent-rgb), .35);
}
.alert-bell span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,248,242,.7); animation: ring 2s ease-out infinite; }
.alert-bell span + span { animation-delay: 1s; }
.alert-kicker {
  margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(0,0,0,.14); padding: 6px 12px; border-radius: 99px;
}
.alert-task {
  margin: 16px 0 8px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 10vw, 48px);
  line-height: 1.02; letter-spacing: -.035em; overflow-wrap: anywhere;
}
.alert-meta { margin: 0 0 28px; font-size: 17px; opacity: .92; min-height: 1em; }
.alert-done {
  width: 100%; height: 74px; border: 0; border-radius: 999px; background: #FFF8F2; color: #2B1D18;
  font-family: var(--display); font-size: 24px; font-weight: 800; letter-spacing: -.01em;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.4); transition: transform .12s;
}
.alert-done svg { color: var(--done-check); }
.alert-done:active { transform: scale(.97); }
.alert-list { list-style: none; margin: -12px 0 22px; padding: 0; width: 100%; display: grid; gap: 10px; text-align: left; }
.alert-list li { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px; background: rgba(255,255,255,.14); }
.alert-list li > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.alert-list b { font-size: 18px; line-height: 1.25; }
.alert-list small { font-size: 13px; opacity: .85; }
.alert-item-done { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: #FCFBF6; color: #330A2A; font: inherit; font-weight: 800; font-size: 15px; cursor: pointer; }
.alert-item-done svg { width: 18px; height: 18px; }
.alert-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; width: 100%; margin-top: 12px; }
.alert-btn {
  height: 54px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.45); background: rgba(255,255,255,.12);
  color: #fff; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.alert-btn:hover { background: rgba(255,255,255,.22); }
.alert-hint { margin: 16px 0 0; font-size: 14px; opacity: .9; min-height: 1.4em; }

/* ---------- diálogos (folha de baixo no telemóvel) ---------- */
.dlg {
  border: 0; padding: 0; width: min(520px, 100%); max-height: 92vh; margin: auto auto 0;
  border-radius: 32px 32px 0 0; background: var(--card); color: var(--ink);
  box-shadow: 0 -10px 60px rgba(0,0,0,.25);
}
@media (min-width: 640px) { .dlg { margin: auto; border-radius: 32px; } }
.dlg[open] { animation: sheet .28s cubic-bezier(.2,.8,.2,1); }
.dlg::backdrop { background: rgba(30, 14, 20, .5); backdrop-filter: blur(2px); }
.dlg form { padding: 10px 22px calc(22px + env(safe-area-inset-bottom)); display: grid; gap: 16px; }
.dlg-grip { width: 40px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 2px; }
.dlg-head {
  position: sticky; top: 0; z-index: 2; margin: -10px -22px 0; padding: 10px 16px 8px 22px; background: var(--card);
  display: grid; grid-template-columns: 1fr auto; align-items: center; row-gap: 6px;
}
.dlg-head .dlg-grip { grid-column: 1 / -1; }
.dlg-x {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  background: var(--bg-2, var(--bg)); border: 1px solid var(--line); color: var(--ink-2);
}
.dlg-x:hover { color: var(--ink); }
.dlg h2:focus { outline: none; }
.dlg h2 { margin: 0; font-family: var(--display); font-size: 24px; letter-spacing: -.02em; }
.dlg label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--muted); }
.dlg input[type="text"], .dlg input[type="time"], .dlg select {
  height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg);
  color: var(--ink); font-weight: 600; font-size: 16px; width: 100%;
}
.dlg input:focus, .dlg select:focus { outline: 2.5px solid var(--accent); outline-offset: 0; border-color: transparent; }
.dlg input[type="range"] { width: 100%; accent-color: var(--accent); }
.dlg output { color: var(--ink); }
.dlg label.toggle {
  display: flex; gap: 12px; align-items: flex-start; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--bg); padding: 13px 16px; border-radius: 18px;
}
.dlg label.toggle input { margin: 2px 0 0; accent-color: var(--accent); width: 20px; height: 20px; flex: none; }
.dlg label.toggle.mom { background: var(--accent-soft); }
.dlg label.toggle.mom b { color: var(--accent); margin-right: 4px; }
.share-card { background: var(--bg); border-radius: 18px; padding: 16px; border: 1px solid var(--line); }
.share-task { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.2; color: var(--ink); overflow-wrap: anywhere; }
.share-when { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.share-note { margin: 0; color: var(--muted); font-size: 14px; }
.welcome form { gap: 14px; padding-top: 26px; }
.w-step { display: grid; gap: 14px; }
.w-step h2 { font-size: 26px; }
.w-step p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.5; }
.w-logo { border-radius: 22px; box-shadow: var(--shadow-sm); }
.w-examples { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.w-examples li { padding: 12px 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.w-small { font-size: 14px !important; }
.w-perms { display: grid; gap: 8px; }
.w-perm { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); color: var(--ink); font: inherit; font-weight: 700; font-size: 16px; text-align: left; cursor: pointer; }
.w-ok { flex: none; width: 24px; height: 24px; border-radius: 99px; border: 2px solid var(--line); display: grid; place-items: center; font-size: 14px; }
.w-perm.ok .w-ok { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.w-perm.ok .w-ok::before { content: "✓"; font-weight: 800; }
.w-dots { display: flex; justify-content: center; gap: 6px; padding-top: 4px; }
.w-dots i { width: 7px; height: 7px; border-radius: 9px; background: var(--line); }
.w-dots i.on { background: var(--accent-2); width: 20px; }
.quiet { display: grid; gap: 10px; }
.quiet-hint { margin: 0; font-size: 13px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* apoiantes */
.sp-strip { margin: 26px auto 6px; text-align: center; color: var(--muted); }
.sp-strip small, .sp-empty small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; opacity: .85; }
.sp-strip a { display: inline-flex; opacity: .8; }
.sp-empty { margin: 22px auto 0; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; max-width: 300px; }
.sp-empty a { display: inline-flex; margin-top: 4px; opacity: .85; }
.sp-logo { display: block; height: 28px; max-width: 170px; width: auto; object-fit: contain; }
.sp-wall { display: grid; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line); }
.sp-wall h4 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); text-align: center; }
.sp-main { display: grid; place-items: center; gap: 6px; padding: 16px 14px; border-radius: 14px; background: var(--card); text-decoration: none; }
.sp-main .sp-logo { height: 36px; max-width: 220px; }
.sp-main span { font-size: 12px; color: var(--muted); }
.sp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sp-grid a { display: grid; place-items: center; padding: 10px 6px; border-radius: 12px; background: var(--card); }
.sp-grid .sp-logo { height: 22px; max-width: 100%; }
.sp-cta { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
.sp-cta a { color: var(--accent-2); font-weight: 700; text-decoration: none; }
@media (prefers-color-scheme: dark) {
  /* logo sem versão para fundo escuro: mostra-o num fundo claro */
  .sp-logo.sp-nodark { background: #fff; padding: 5px 10px; border-radius: 10px; box-sizing: content-box; }
  .sp-grid a:has(.sp-nodark), .sp-main:has(.sp-nodark) { background: #fff; }
  .sp-grid .sp-logo.sp-nodark, .sp-main .sp-logo.sp-nodark { padding: 0; background: none; }
  .sp-main:has(.sp-nodark) span { color: #7D6476; }
}
.support-row {
  display: grid; gap: 3px; padding: 16px 18px; border-radius: 18px; text-decoration: none; text-align: center; color: var(--ink);
  border: 2px dashed color-mix(in srgb, var(--accent-2) 55%, transparent); background: var(--accent-soft);
}
.support-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.support-row b { font-family: var(--display); font-size: 19px; letter-spacing: -.02em; }
.support-txt { font-size: 14px; color: var(--muted); }
.social-row {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink);
}
.social-ic {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; color: #fff;
  background: linear-gradient(45deg, #F9A23B 0%, #E1306C 50%, #833AB4 100%);
}
.social-txt { display: grid; gap: 1px; font-size: 15px; line-height: 1.3; }
.social-txt span { color: var(--muted); font-size: 14px; }
.social-go { margin-left: auto; font-size: 26px; color: var(--muted); line-height: 1; }
.dlg-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-top: 4px; }
.spacer { flex: 1; }

.about { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: var(--ink-2); }
.about summary { cursor: pointer; font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--ink); }
.about p { margin: 8px 0 0; line-height: 1.5; }
.about b { color: var(--ink); }
.diag { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.diag h3 { margin: 0; font-family: var(--display); font-size: 17px; }
.diag-info { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.diag-info b { color: var(--ink); }
.diag-log {
  margin: 0; max-height: 200px; overflow: auto; font-size: 12px; line-height: 1.55; white-space: pre-wrap;
  background: var(--bg); border-radius: 12px; padding: 10px 12px; color: var(--ink-2);
}

/* ---------- movimento ---------- */
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
@keyframes pulse { 50% { opacity: .35; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes wave { 0%, 100% { height: 6px; } 50% { height: 26px; } }
@keyframes shake { 0%, 60%, 100% { transform: rotate(0); } 10%, 30%, 50% { transform: rotate(-10deg); } 20%, 40% { transform: rotate(10deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
