/* ─────────────────────────────────────────────────────────
   Barriguinha
   Neutros frios, tipografia do sistema, um só acento.
   A cor de estado só aparece em pontos e etiquetas pequenas.
   ───────────────────────────────────────────────────────── */

@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page: #FAFAFA;
  --surface: #FFFFFF;
  --fill: #F2F2F4;
  --fill-2: #E9E9EC;
  --line: #E5E5EA;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: #A1A1A6;

  --accent: #D1416E;
  --accent-soft: #FBEAF0;

  --sim: #2E9E6A;
  --sim-soft: #E7F5EE;
  --mod: #C77D06;
  --mod-soft: #FBF1DE;
  --nao: #DC4338;
  --nao-soft: #FCEAE8;

  --c-green: #4FB286; --c-rose: #E7839F; --c-honey: #E9B44C; --c-red: #E26D63;
  --c-blue: #5B9BE0; --c-teal: #3FB0B0; --c-indigo: #7C7BD8; --c-orange: #EE964B;
  --c-brown: #B38B63; --c-cyan: #4DB8DB; --c-pink: #E58AB0;

  --glass: rgba(255, 255, 255, 0.86);
  --glass-line: rgba(0, 0, 0, 0.06);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 1px 1px rgba(0, 0, 0, 0.03), 0 8px 24px -8px rgba(0, 0, 0, 0.12);
  --shadow-3: 0 2px 4px rgba(0, 0, 0, 0.04), 0 30px 80px -20px rgba(0, 0, 0, 0.28);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --spring: linear(0, 0.12, 0.362, 0.608, 0.803, 0.934, 1.008, 1.04, 1.046, 1.039, 1.027, 1.016, 1.008, 1.002, 0.999, 0.998, 0.998, 0.998, 0.999, 0.999, 1, 1, 1);

  --sidebar: 260px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #000000;
    --surface: #1C1C1E;
    --fill: #1C1C1E;
    --fill-2: #2C2C2E;
    --line: #38383A;
    --ink: #F5F5F7;
    --ink-2: #A1A1A6;
    --ink-3: #6E6E73;
    --accent: #FF6A95;
    --accent-soft: #3A1823;
    --sim: #3CC487; --sim-soft: #12301F;
    --mod: #F2A93B; --mod-soft: #33260F;
    --nao: #FF6B5F; --nao-soft: #3A1714;
    --glass: rgba(28, 28, 30, 0.86);
    --glass-line: rgba(255, 255, 255, 0.08);
    --shadow-1: none;
    --shadow-2: 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-3: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  }
}

/* ───────── Base ───────── */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; overflow-x: clip; }
body {
  margin: 0; min-height: 100dvh;
  background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.47; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss03";
}
body.locked { overflow: hidden; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
input:focus-visible { outline: none; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
kbd {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 5px; border: 1px solid var(--line); background: var(--surface);
  font: 500 11px/1 var(--font); color: var(--ink-2); letter-spacing: 0;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.sim { background: var(--sim); } .dot.moderacao { background: var(--mod); } .dot.nao { background: var(--nao); }
.desk-only { display: none; }
@media (min-width: 1024px) and (hover: hover) { .desk-only { display: inline; } }

/* ───────── Estrutura ───────── */
.app { min-height: 100dvh; }
.content { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-top) + 8px) 20px calc(112px + var(--safe-bottom)); }

.sidebar { display: none; }
@media (min-width: 1024px) {
  .app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); }
  .sidebar {
    position: sticky; top: 0; height: 100dvh;
    display: flex; flex-direction: column; gap: 6px;
    padding: 22px 14px 16px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--page) 60%, var(--surface));
  }
  .content { max-width: 1080px; width: 100%; padding: 56px 56px 96px; }
  .mobile-bar, .tabbar { display: none !important; }
}

.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 17px/1 var(--font-display); letter-spacing: -0.02em; padding: 4px 8px; }
.brand img { border-radius: 8px; box-shadow: var(--shadow-1); }

.side-search {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 10px; padding: 9px 10px;
  border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-3); font-size: 14px;
  box-shadow: var(--shadow-1);
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.side-search:hover { border-color: var(--ink-3); color: var(--ink-2); }
.side-search span { flex: 1; text-align: left; }
.side-search .icon { font-size: 16px; }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 8px 10px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.side-nav a .icon { font-size: 18px; }
.side-nav a:hover { background: var(--fill); color: var(--ink); }
.side-nav a.on { background: var(--fill-2); color: var(--ink); }
.side-nav a.on .icon { color: var(--accent); }

.side-help { margin-top: auto; padding: 14px 12px; border-radius: 12px; background: var(--fill); font-size: 13px; }
.side-help p { margin: 0 0 6px; color: var(--ink-2); }
.side-help a { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.side-help a .icon { color: var(--accent); font-size: 15px; }
.side-help a small { font-weight: 400; color: var(--ink-2); margin-left: auto; }

.profile { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 8px; border-radius: 12px; text-align: left; transition: background-color .15s; }
.profile:hover { background: var(--fill); }
.profile-text { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; line-height: 1.25; }
.profile-text small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.avatar {
  display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font: 600 14px/1 var(--font-display);
}
.avatar .icon { font-size: 17px; }

.mobile-bar { display: flex; align-items: center; justify-content: space-between; height: 52px; margin: 0 -4px; }
.mobile-bar .brand { font-size: 16px; padding: 4px; }
.avatar-btn { padding: 4px; border-radius: 50%; }

/* ───────── Tipografia ───────── */
.h1 { font: 700 clamp(34px, 5vw, 48px)/1.05 var(--font-display); letter-spacing: -0.035em; }
.h2 { font: 600 20px/1.2 var(--font-display); letter-spacing: -0.022em; }
.lead { margin: 10px 0 0; max-width: 56ch; font-size: 17px; color: var(--ink-2); line-height: 1.45; }
.page-head { padding: 22px 0 22px; }
@media (min-width: 1024px) { .page-head { padding: 0 0 30px; } }

/* ───────── Início: o título é a pesquisa ───────── */
.hero { padding: 26px 0 34px; }
@media (min-width: 1024px) { .hero { padding: 28px 0 60px; } }
.greet { margin: 0 0 12px; font-size: 17px; color: var(--ink-2); min-height: 1.47em; }
.ask {
  display: block; text-align: left; border-radius: 16px;
  font: 700 clamp(46px, 12vw, 108px)/0.98 var(--font-display);
  letter-spacing: -0.045em; color: var(--ink);
}
.ask-line { display: block; white-space: nowrap; }
.ask-word { color: var(--ink-3); transition: color .3s var(--ease); }
.ask:hover .ask-word { color: var(--ink-2); }
.caret {
  display: inline-block; width: 0.055em; height: 0.8em; margin: 0 0.05em 0 0.02em;
  border-radius: 2px; background: var(--accent); vertical-align: -0.05em;
  animation: blink 1.1s steps(1) infinite;
}
.caret.typing { animation: none; }
@keyframes blink { 50% { opacity: 0; } }
.hero-hint { margin: 20px 0 0; font-size: 16px; color: var(--ink-2); }
.hero-hint kbd { margin-left: 4px; vertical-align: 1px; }

.home-grid { display: grid; gap: 36px; }
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px 48px; align-items: start; }
  .home-grid > .home-feel { grid-column: 2; grid-row: 1 / span 2; }
}
.block .h2 { margin-bottom: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 15px 0 13px;
  border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px; font-weight: 500;
  transition: border-color .2s var(--ease), transform .45s var(--spring);
}
button.chip:hover { border-color: var(--ink-3); }
button.chip:active { transform: scale(0.96); }
span.chip { background: var(--fill); border-color: transparent; color: var(--ink-2); padding: 0 13px; }

.feel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) and (max-width: 1023px) { .feel { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feel button {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  text-align: left; font-size: 15px; font-weight: 500; line-height: 1.25;
  transition: border-color .2s var(--ease), transform .45s var(--spring);
}
.feel button:hover { border-color: var(--ink-3); }
.feel button:active { transform: scale(0.97); }
.feel .more { justify-content: center; color: var(--ink-2); background: transparent; border-style: dashed; }

.sym-ic {
  --c: var(--c-rose);
  display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px;
  background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: color-mix(in srgb, var(--c) 82%, var(--ink));
  font-size: 18px;
}

.tip-block { padding: 22px; border-radius: 20px; background: var(--fill); }
@media (prefers-color-scheme: dark) {
  .tip-block { background: var(--surface); }
  .sym-ic, .p-ic.sym { background: color-mix(in srgb, var(--c) 24%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, #fff); }
}
.tip-block .h2 { font-size: 15px; color: var(--ink-2); font-weight: 600; margin-bottom: 8px; letter-spacing: -0.01em; }
.tip-text { margin: 0; font: 600 22px/1.3 var(--font-display); letter-spacing: -0.02em; }
.tip-src { margin: 12px 0 0; font-size: 13px; color: var(--ink-3); }

/* Sinais de alarme */
.alarm { border-radius: 20px; border: 1px solid color-mix(in srgb, var(--nao) 25%, var(--line)); background: var(--surface); overflow: hidden; }
.alarm-head { display: flex; gap: 12px; align-items: flex-start; padding: 18px 18px 4px; }
.alarm-head > .icon { font-size: 22px; color: var(--nao); margin-top: 1px; }
.alarm-head h2 { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.015em; }
.alarm-head p { margin: 3px 0 0; font-size: 14px; color: var(--ink-2); }
.alarm ul { margin: 0; padding: 4px 18px 8px 52px; font-size: 15px; line-height: 1.45; }
.alarm li { padding: 5px 0; }
.alarm li::marker { color: var(--nao); }
.alarm-toggle { display: block; padding: 4px 18px 14px 52px; text-align: left; font-size: 14px; font-weight: 600; color: var(--accent); }
.calls { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 8px; background: var(--line); border-top: 1px solid var(--line); }
.call { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface); transition: background-color .15s; }
.call:hover { background: var(--fill); }
.call .icon { font-size: 18px; color: var(--accent); }
.call b { display: block; font-size: 15px; font-weight: 600; }
.call small { display: block; font-size: 13px; color: var(--ink-2); }
#sym-alarm { margin-bottom: 30px; }

/* ───────── Alimentos ───────── */
.toolbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 -20px; padding: calc(var(--safe-top) + 10px) 20px 10px;
  background: color-mix(in srgb, var(--page) 86%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%);
}
@media (min-width: 720px) { .toolbar { flex-direction: row; align-items: center; } .toolbar .field { flex: 1; } }
@media (min-width: 1024px) { .toolbar { margin: 0 -56px; padding: 12px 56px; } }

.field { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 11px; background: var(--fill-2); color: var(--ink-2); }
.field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.field input::placeholder { color: var(--ink-3); }

.segmented { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); height: 36px; padding: 2px; border-radius: 10px; background: var(--fill-2); flex: none; }
@media (min-width: 720px) { .segmented { width: 420px; } }
.seg-thumb {
  position: absolute; top: 2px; bottom: 2px; left: 2px; width: calc((100% - 4px) / 4);
  border-radius: 8px; background: var(--surface);
  box-shadow: 0 3px 8px rgba(0,0,0,.10), 0 1px 1px rgba(0,0,0,.04);
  transition: transform .5s var(--spring);
}
@media (prefers-color-scheme: dark) { .seg-thumb { background: #636366; } }
.segmented button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: color .2s; }
.segmented button[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.segmented .dot { width: 7px; height: 7px; }
@media (max-width: 400px) { .segmented .dot { display: none; } }

.cats { display: flex; gap: 6px; overflow-x: auto; margin: 6px -20px 20px; padding: 4px 20px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
@media (min-width: 1024px) { .cats { flex-wrap: wrap; margin: 8px 0 26px; padding: 0; } }
.cat { flex: none; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); border: 1px solid var(--line); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.cat:hover { color: var(--ink); }
.cat.on { background: var(--ink); color: var(--page); border-color: var(--ink); }

.food-cols { columns: 1; column-gap: 28px; }
@media (min-width: 1024px) { .food-cols { columns: 2; } }
.group { break-inside: avoid; margin-bottom: 28px; }
.group-title { display: flex; justify-content: space-between; margin: 0 4px 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.group-title span { color: var(--ink-3); font-weight: 500; }

/* Lista agrupada */
.list { list-style: none; margin: 0; padding: 0; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.list > li + li > .row::before { content: ""; position: absolute; top: 0; left: 42px; right: 0; height: 1px; background: var(--line); }
.list.icons > li + li > .row::before { left: 58px; }
.row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 10px 14px 10px 16px; text-align: left; transition: background-color .15s var(--ease); }
button.row:hover, a.row:hover { background: color-mix(in srgb, var(--fill) 70%, transparent); }
button.row:active, a.row:active { background: var(--fill-2); }
.row > .dot { width: 10px; height: 10px; margin: 0 2px; }
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-size: 16px; font-weight: 500; line-height: 1.3; }
.row-sub { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.chev { font-size: 14px; color: var(--ink-3); stroke-width: 2.4; flex: none; }
.row mark { background: none; color: inherit; font-weight: 700; }
.list.static .row-sub { display: block; overflow: visible; }

.empty { padding: 40px 10px; text-align: center; color: var(--ink-2); }
.empty b { display: block; margin-bottom: 4px; font: 600 20px/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.02em; }
.empty button { margin-top: 12px; color: var(--accent); font-weight: 600; }

/* ───────── Sintomas ───────── */
.sym-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .sym-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .sym-grid { grid-template-columns: repeat(3, 1fr); } }
.sym-card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left;
  padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .45s var(--spring);
}
.sym-card:hover { border-color: var(--ink-3); }
.sym-card:active { transform: scale(0.98); }
.sym-card .sym-ic { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.sym-card b { display: block; font: 600 16px/1.3 var(--font-display); letter-spacing: -0.012em; }
.sym-card span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.flag { display: inline-flex; margin-top: 8px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--nao); background: var(--nao-soft); }

/* ───────── Faz bem ───────── */
.g-section { margin-bottom: 64px; }
.g-head { margin-bottom: 20px; }
.g-head p { margin: 6px 0 0; max-width: 60ch; color: var(--ink-2); font-size: 16px; }
.g-head .h2 { font-size: 26px; letter-spacing: -0.028em; }

.ten { list-style: none; margin: 0; padding: 0; counter-reset: ten; display: grid; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .ten { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.ten li { counter-increment: ten; display: grid; grid-template-columns: 42px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ten li::before { content: counter(ten); grid-row: span 2; font: 600 26px/1 var(--font-display); letter-spacing: -0.04em; color: var(--ink-3); font-variant-numeric: tabular-nums; padding-top: 1px; }
.ten b { font: 600 17px/1.3 var(--font-display); letter-spacing: -0.015em; }
.ten p { margin: 4px 0 0; font-size: 15px; color: var(--ink-2); line-height: 1.45; }

.plate-wrap { display: grid; gap: 28px; align-items: center; }
@media (min-width: 760px) { .plate-wrap { grid-template-columns: 280px 1fr; gap: 48px; } }
.plate {
  position: relative; width: min(280px, 72vw); aspect-ratio: 1; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--c-green) 0 50%, var(--c-rose) 50% 75%, var(--c-honey) 75% 100%);
  box-shadow: inset 0 0 0 9px var(--surface), inset 0 0 0 10px var(--line), var(--shadow-2);
}
.plate::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 2px 10px rgba(0,0,0,.05); }
.plate-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.plate-legend li { display: grid; grid-template-columns: 14px 1fr auto; align-items: baseline; gap: 12px; }
.plate-legend i { width: 12px; height: 12px; border-radius: 4px; transform: translateY(1px); }
.plate-legend b { font-weight: 600; }
.plate-legend small { display: block; color: var(--ink-2); font-size: 14px; }
.plate-legend em { font: 600 22px/1 var(--font-display); font-style: normal; letter-spacing: -0.03em; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.portions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 30px; border-radius: 16px; overflow: hidden; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 760px) { .portions { grid-template-columns: repeat(3, 1fr); } }
.portion { padding: 16px; background: var(--surface); }
.portion b { display: block; font: 600 26px/1 var(--font-display); letter-spacing: -0.03em; }
.portion span { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 500; }
.portion small { color: var(--ink-2); font-size: 13px; }

.day { display: flex; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: none; }
.day::-webkit-scrollbar { display: none; }
.meal { position: relative; flex: 1 0 108px; padding: 28px 10px 0 0; }
.meal::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 2px; background: var(--line); }
.meal::after { content: ""; position: absolute; top: 3px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--page); border: 2px solid var(--accent); }
.meal.opt::after { border-style: dashed; border-color: var(--ink-3); }
.meal b { display: block; font-size: 15px; font-weight: 600; }
.meal small { color: var(--ink-2); font-size: 13px; }

.fish { display: grid; gap: 12px; }
@media (min-width: 900px) { .fish { grid-template-columns: repeat(3, 1fr); } }
.fish-col { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.fish-col header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.fish-col header .dot { width: 10px; height: 10px; }
.fish-col header b { display: block; font: 600 16px/1.2 var(--font-display); }
.fish-col header small { display: block; font-size: 13px; color: var(--ink-2); }
.fish-col .chips { padding: 14px 16px 16px; gap: 6px; }
.fish-col .chip { height: 32px; font-size: 14px; padding: 0 12px; }
.fish-note { margin: 14px 4px 0; font-size: 14px; color: var(--ink-2); }

.nutri { display: grid; gap: 10px; }
@media (min-width: 760px) { .nutri { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .nutri { grid-template-columns: repeat(3, 1fr); } }
.nutri article { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.nhead { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.nhead b { font: 600 17px/1.2 var(--font-display); letter-spacing: -0.015em; }
.nutri p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.nutri .chips { gap: 6px; }
.nutri .chip { height: 30px; font-size: 13.5px; padding: 0 11px; }

.table-wrap { border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--fill); }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }
.table small { display: block; color: var(--ink-2); font-size: 13px; }

.note { display: flex; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); font-size: 14.5px; line-height: 1.45; }
.note .icon { font-size: 18px; color: var(--accent); margin-top: 2px; }

.two { display: grid; gap: 48px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.two .g-section { margin-bottom: 0; }

/* ───────── Fontes ───────── */
.src-ent { font-size: 13px; color: var(--accent); font-weight: 600; }
.sources-legend { margin-top: 40px; }

/* ───────── Tab bar (telemóvel) ───────── */
.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px calc(10px + var(--safe-bottom)); pointer-events: none; }
.tabs, .tab-search {
  pointer-events: auto;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: var(--shadow-2);
}
.tabs { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); height: 62px; padding: 4px; border-radius: 999px; }
.tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); transition: background-color .25s var(--ease), color .2s var(--ease); }
.tabs a .icon { font-size: 21px; stroke-width: 1.9; }
.tabs a span { font-size: 10px; letter-spacing: -0.01em; white-space: nowrap; }
.tabs a.on { color: var(--accent); background: color-mix(in srgb, var(--fill-2) 80%, transparent); }
.tab-search { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 50%; font-size: 22px; transition: transform .45s var(--spring); }
.tab-search .icon { stroke-width: 2.1; }
.tab-search:active { transform: scale(0.92); }

/* ───────── Camadas ───────── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.24); opacity: 0; transition: opacity .3s var(--ease); }
.scrim.on { opacity: 1; }
#palette-scrim { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); background: rgba(0,0,0,.16); }

.palette {
  position: fixed; z-index: 70; inset: 0;
  display: flex; flex-direction: column;
  background: var(--page); padding-top: var(--safe-top);
  opacity: 0; transform: translateY(14px);
  transition: opacity .22s var(--ease), transform .45s var(--spring);
}
.palette.on { opacity: 1; transform: none; }
@media (min-width: 720px) {
  .palette {
    inset: 12vh auto auto 50%; width: 640px; max-height: 70vh; translate: -50% 0;
    border-radius: 20px; padding-top: 0;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border: 1px solid var(--glass-line);
    -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
    box-shadow: var(--shadow-3);
    transform: scale(0.97);
  }
  .palette.on { transform: scale(1); }
}
.palette-field { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.palette-field > .icon { font-size: 20px; color: var(--ink-2); }
.palette-field input { flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; font-size: 19px; letter-spacing: -0.02em; -webkit-appearance: none; appearance: none; }
.palette-field input::placeholder { color: var(--ink-3); }
.palette-field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.palette-cancel { font-size: 16px; color: var(--accent); font-weight: 500; }
@media (min-width: 720px) { .palette-cancel { display: none; } .palette-field { padding: 12px 18px; } .palette-field input { font-size: 20px; } }
.palette-results { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 8px 14px; }
.p-group { padding: 12px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.p-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 11px; text-align: left; scroll-margin: 8px; }
.p-item[aria-selected="true"] { background: var(--fill-2); }
@media (min-width: 720px) { .p-item[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 11%, transparent); } }
.p-ic { --c: var(--ink-3); display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--fill); color: var(--ink-2); font-size: 16px; }
.p-ic .dot { width: 9px; height: 9px; }
.p-ic.sym { background: color-mix(in srgb, var(--c) 15%, var(--surface)); color: color-mix(in srgb, var(--c) 82%, var(--ink)); }
.p-text { flex: 1; min-width: 0; }
.p-text b { display: block; font-size: 15.5px; font-weight: 500; line-height: 1.3; }
.p-text b mark { background: none; color: inherit; font-weight: 700; }
.p-text small { display: block; font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-end { color: var(--ink-3); flex: none; font-size: 15px; opacity: 0; }
.p-item[aria-selected="true"] .p-end { opacity: 1; color: var(--accent); }
.p-empty { padding: 36px 16px; text-align: center; color: var(--ink-2); }
.p-empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.palette-foot { display: none; gap: 18px; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3); }
@media (min-width: 1024px) and (hover: hover) { .palette-foot { display: flex; } }
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }

.sheet {
  position: fixed; z-index: 80; left: 0; right: 0; bottom: 0;
  max-height: calc(100dvh - var(--safe-top) - 14px);
  display: flex; flex-direction: column;
  background: var(--page); border-radius: 26px 26px 0 0;
  box-shadow: var(--shadow-3);
  transform: translateY(102%);
  transition: transform .55s var(--spring);
}
.sheet.on { transform: none; }
.sheet.closing { transition: transform .32s var(--ease); }
.sheet.drag { transition: none; }
@media (min-width: 720px) {
  .sheet {
    left: 50%; right: auto; bottom: auto; top: 50%; width: 600px; max-height: 84vh;
    border-radius: 24px; translate: -50% -50%;
    transform: scale(0.96); opacity: 0;
    transition: transform .5s var(--spring), opacity .2s var(--ease);
  }
  .sheet.on { transform: scale(1); opacity: 1; }
  .sheet.closing { transition: transform .2s var(--ease), opacity .2s var(--ease); }
  .grabber { display: none; }
}
@media (prefers-color-scheme: dark) { .sheet { background: #111113; } }
.grabber { width: 38px; height: 5px; margin: 7px auto 0; border-radius: 3px; background: var(--fill-2); flex: none; }
.close { position: absolute; top: 14px; right: 14px; z-index: 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fill-2); color: var(--ink-2); font-size: 15px; }
.close .icon { stroke-width: 2.6; }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 18px 22px calc(28px + var(--safe-bottom)); }
@media (min-width: 720px) { .sheet-body { padding: 30px 32px 32px; } }

.d-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.d-status .icon { font-size: 14px; stroke-width: 2.8; }
.d-status.sim { color: var(--sim); background: var(--sim-soft); }
.d-status.moderacao { color: var(--mod); background: var(--mod-soft); }
.d-status.nao { color: var(--nao); background: var(--nao-soft); }
.d-title { margin: 14px 40px 0 0; font: 700 32px/1.08 var(--font-display); letter-spacing: -0.035em; }
.d-sum { margin: 10px 0 0; font: 500 19px/1.38 var(--font-display); letter-spacing: -0.018em; }
.d-sec { margin-top: 24px; }
.d-sec h3 { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.d-sec p { margin: 0; font-size: 16.5px; line-height: 1.55; }
.d-card { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.d-tip { background: var(--accent-soft); border-color: transparent; }
.d-list { list-style: none; margin: 0; padding: 4px 18px; }
.d-list li { position: relative; padding: 10px 0 10px 22px; font-size: 16px; line-height: 1.45; border-bottom: 1px solid var(--line); }
.d-list li:last-child { border-bottom: 0; }
.d-list li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 7px; height: 7px; border-radius: 50%; background: var(--sim); }
.d-list.warn li::before { background: var(--nao); }
.d-src { margin: 22px 0 0; font-size: 13px; color: var(--ink-3); }
.d-src a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.d-sym-head { display: flex; align-items: center; gap: 14px; }
.d-sym-head .sym-ic { width: 52px; height: 52px; border-radius: 15px; font-size: 26px; }
.d-sym-head .d-title { margin: 0 40px 0 0; font-size: 28px; }
.d-calls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.d-calls a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 12px; font-weight: 600; font-size: 15px; background: var(--ink); color: var(--page); }
.d-calls a + a { background: var(--nao); color: #fff; }

.name-card {
  position: fixed; z-index: 90; left: 50%; top: 50%; translate: -50% -50%;
  width: min(380px, calc(100vw - 32px));
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 24px 16px; border-radius: 26px; text-align: center;
  background: var(--surface); box-shadow: var(--shadow-3);
  opacity: 0; transform: scale(0.94);
  transition: opacity .2s var(--ease), transform .5s var(--spring);
}
.name-card.on { opacity: 1; transform: scale(1); }
.name-card img { border-radius: 14px; margin-bottom: 4px; box-shadow: var(--shadow-2); }
.name-card h2 { font: 700 22px/1.2 var(--font-display); letter-spacing: -0.025em; }
.name-card p { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2); }
.name-card .privacy { padding: 10px 12px; border-radius: 12px; background: var(--sim-soft); color: var(--ink); font-size: 13.5px; line-height: 1.45; }
.name-card input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); font-size: 17px; text-align: center; outline: 0; transition: border-color .2s, box-shadow .2s; }
.name-card input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.btn { width: 100%; height: 48px; border-radius: 12px; font-size: 16px; font-weight: 600; transition: transform .45s var(--spring), opacity .2s; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--ink); color: var(--page); margin-top: 6px; }
.btn.ghost { color: var(--ink-2); height: 40px; font-weight: 500; }

.toast {
  position: fixed; z-index: 95; left: 50%; bottom: calc(96px + var(--safe-bottom)); translate: -50% 0;
  padding: 11px 18px; border-radius: 999px; background: var(--ink); color: var(--page);
  font-size: 14.5px; font-weight: 500; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .25s var(--ease), transform .5s var(--spring);
}
.toast.on { opacity: 1; transform: none; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .24s; animation-timing-function: var(--ease); }

/* ───────── Semana e fase ───────── */
.greet { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.week-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 13.5px; font-weight: 600; }
.phase { margin: 0 0 40px; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.phase-head { display: grid; gap: 14px; margin-bottom: 6px; }
@media (min-width: 720px) { .phase-head { grid-template-columns: auto 1fr; align-items: center; gap: 32px; } }
.phase-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.phase-bar { position: relative; height: 8px; border-radius: 999px; background: var(--fill-2); overflow: hidden; }
.phase-bar span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 55%, var(--surface)), var(--accent)); }
.phase-bar i { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--surface); }
.phase-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 900px) { .phase-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.phase-list li { padding: 12px 0; border-top: 1px solid var(--line); }
@media (min-width: 900px) { .phase-list li { border-top: 0; padding: 8px 0 0; } }
.phase-list b { font: 600 16px/1.3 var(--font-display); letter-spacing: -0.012em; }
.phase-list p { margin: 3px 0 0; font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }

.toxo-card { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.toxo-card .h2 { margin-bottom: 4px; }
.sub { margin: 0 0 10px; font-size: 14.5px; color: var(--ink-2); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { position: relative; padding: 7px 0 7px 26px; font-size: 15px; line-height: 1.4; border-top: 1px solid var(--line); }
.mini-list li:first-child { border-top: 0; }
.mini-list li::before { position: absolute; left: 0; top: 7px; width: 18px; text-align: center; font-weight: 700; font-size: 13px; }
.mini-list li.ok::before { content: "✓"; color: var(--sim); }
.mini-list li.no::before { content: "✕"; color: var(--nao); }
.mini-list li.dotted::before { content: "•"; color: var(--ink-3); font-size: 16px; top: 5px; }

/* ───────── Detalhe: notas ───────── */
.d-note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: var(--sim-soft); font-size: 15px; line-height: 1.45; }
.d-note p { margin: 0; }
.d-note .icon { font-size: 17px; color: var(--sim); margin-top: 2px; stroke-width: 2.4; }
.d-note.warn { background: var(--mod-soft); }
.d-note.warn .icon { color: var(--mod); }
.d-ing .row { min-height: 52px; }
.d-ing .row-sub { display: block; overflow: visible; }
.d-ing div.row { cursor: default; }
.ask-list li::before { background: var(--accent) !important; }
.d-status.small { padding: 3px 9px 3px 7px; font-size: 12.5px; gap: 5px; }
.d-status.small .icon { font-size: 12px; }

/* ───────── Pratos ───────── */
.dish-sec { margin-bottom: 30px; }
.dish-grid { display: grid; gap: 10px; }
@media (min-width: 640px) { .dish-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .dish-grid { grid-template-columns: repeat(3, 1fr); } }
.dish {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  padding: 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s var(--ease), transform .45s var(--spring);
}
.dish:hover { border-color: var(--ink-3); }
.dish:active { transform: scale(0.98); }
.dish-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dish-name { font: 600 17px/1.25 var(--font-display); letter-spacing: -0.015em; }
.dish-name mark { background: none; color: inherit; font-weight: 700; }
.dish-top .d-status { flex: none; }
.dish-ing { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.dish-ing span:not(:last-child)::after { content: ","; margin-right: 5px; color: var(--ink-3); }
.dish-ing .hl.nao { color: var(--nao); font-weight: 600; }
.dish-ing .hl.moderacao { color: var(--mod); font-weight: 600; }
.dish-cond { display: flex; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--sim); font-weight: 500; }
.dish-cond .icon { font-size: 14px; margin-top: 2px; stroke-width: 2.4; }
.chips.center { justify-content: center; margin: 14px 0 4px; }

.p-ic { position: relative; }
.dot.mini { position: absolute; right: -2px; bottom: -2px; width: 9px; height: 9px; box-shadow: 0 0 0 2px var(--surface); }
.flag.phase-flag { color: var(--accent); background: var(--accent-soft); }

/* ───────── Dia a dia ───────── */
.daily { display: grid; gap: 12px; }
@media (min-width: 760px) { .daily { grid-template-columns: 1fr 1fr; } }
.daily-card { position: relative; padding: 18px 18px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.daily-card > p { margin: 0 0 8px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.daily-src { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }

/* ───────── Pesquisas sem resposta ───────── */
.misses:not(:empty) { margin-top: 40px; }
.times { margin-left: 6px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.miss-actions { display: flex; gap: 8px; margin-top: 14px; }
.btn-s { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; background: var(--ink); color: var(--page); font-size: 14.5px; font-weight: 600; transition: transform .45s var(--spring); }
.btn-s:active { transform: scale(0.96); }
.btn-s.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }

/* ───────── Perfil ───────── */
.name-card { text-align: center; max-height: calc(100dvh - 32px); overflow-y: auto; }
.pf { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; text-align: left; }
.pf > span { font-size: 14px; font-weight: 600; }
.pf small { font-size: 12.5px; color: var(--ink-3); }
.name-card .pf input { text-align: left; }
.name-card input[type="date"] { min-height: 48px; -webkit-appearance: none; appearance: none; }
.segmented.seg3 { grid-template-columns: repeat(3, 1fr); width: 100%; height: 40px; }
.seg3 .seg-thumb { width: calc((100% - 4px) / 3); }

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