/* ------------------------------------------------------------------
   Paleta Strivo (src/index.css do app): brand = sky, accent = lima,
   degradê oficial da logo #00C46A → #00A88F → #2962FF.
   ------------------------------------------------------------------ */
:root {
  --brand-50: #f0f9ff; --brand-100: #e0f2fe; --brand-200: #bae6fd; --brand-300: #7dd3fc;
  --brand-400: #38bdf8; --brand-500: #0ea5e9; --brand-600: #0284c7; --brand-700: #0369a1;
  --accent-400: #a3e635; --accent-500: #84cc16; --accent-600: #65a30d;
  --g1: #00E676; --g2: #00C2A8; --g3: #23A6FF; /* manual de marca Diet Strivo */
  --navy: #0B1220; --offwhite: #F5F7FA;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 100%);

  --page: #eaeef4;
  --card: color-mix(in srgb, #ffffff 82%, transparent);
  --card-line: color-mix(in srgb, #ffffff 70%, transparent);
  --solid: #ffffff;
  --soft: #f1f5f9;          /* caixas de ícone, segmentos */
  --soft-2: #f8fafc;        /* vazios */
  --line: #e2e8f0;
  --line-2: #cbd5e1;
  --ink: #334155;           /* títulos */
  --ink-2: #475569;         /* texto */
  --muted: #64748b;
  --faint: #94a3b8;
  --link: var(--brand-600);
  --chip: var(--brand-50);
  --chip-ink: var(--brand-700);
  --ok-bg: #ecfccb; --ok-ink: #3f6212;
  --shadow: 0 10px 34px -14px rgba(2, 6, 23, .18), inset 0 1px 0 0 rgba(255, 255, 255, .5);
  --nav: #0b1220;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --page: #070b14;
  --card: color-mix(in srgb, #ffffff 6%, transparent);
  --card-line: color-mix(in srgb, #ffffff 11%, transparent);
  --solid: #0f172a;
  --soft: rgba(255, 255, 255, .07);
  --soft-2: rgba(255, 255, 255, .04);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #f1f5f9;
  --ink-2: #cbd5e1;
  --muted: #94a3b8;
  --faint: #64748b;
  --link: var(--brand-400);
  --chip: rgba(14, 165, 233, .14);
  --chip-ink: var(--brand-300);
  --ok-bg: rgba(132, 204, 22, .16); --ok-ink: #bef264;
  --shadow: 0 10px 34px -14px rgba(0, 0, 0, .5), inset 0 1px 0 0 rgba(255, 255, 255, .08);
  --nav: #050912;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink-2);
  font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--page);
  background-image:
    radial-gradient(60rem 32rem at 6% -8%, color-mix(in srgb, var(--brand-400) 34%, transparent), transparent 60%),
    radial-gradient(46rem 28rem at 110% 4%, color-mix(in srgb, var(--accent-400) 24%, transparent), transparent 60%),
    radial-gradient(54rem 32rem at 50% 120%, color-mix(in srgb, var(--brand-300) 26%, transparent), transparent 60%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: clip;
}
:root[data-theme="dark"] body {
  background-image:
    radial-gradient(60rem 32rem at 8% -8%, color-mix(in srgb, var(--brand-600) 28%, transparent), transparent 60%),
    radial-gradient(48rem 28rem at 108% 6%, color-mix(in srgb, var(--accent-600) 16%, transparent), transparent 60%),
    radial-gradient(52rem 30rem at 50% 118%, color-mix(in srgb, var(--brand-700) 22%, transparent), transparent 60%);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.ic.fill { fill: currentColor; stroke: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }

/* ---------------------------- topo ---------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px;
  background:
    radial-gradient(30rem 8rem at 0% 0%, rgba(0, 196, 106, .18), transparent 70%),
    radial-gradient(30rem 8rem at 100% 100%, rgba(41, 98, 255, .22), transparent 70%),
    var(--nav);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}
.nav::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad); }
.nav-in { max-width: 1280px; height: 100%; margin: 0 auto; padding: 0 8px; display: flex; align-items: center; gap: 12px; }
.nav-burger { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; border-radius: 10px; }
.nav-burger:hover { background: rgba(255, 255, 255, .08); }
.nav-burger .ic { width: 26px; height: 26px; }
.nav-logo { display: flex; align-items: center; gap: 8px; }
.nav-logo img { height: 34px; width: auto; display: block; margin: -4px 0; }
.nav-logo span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 3px 7px; border-radius: 6px; background: var(--grad); }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav-link { position: relative; height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border-radius: 10px; color: rgba(255, 255, 255, .92); font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-expanded="true"] { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-link .ic { width: 18px; height: 18px; }
.nav-badge { position: absolute; top: 2px; left: 22px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--nav); }
.nav-me { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 99px; color: #fff; margin-left: 6px; }
.nav-me:hover, .nav-me[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.nav-me .ic { width: 16px; height: 16px; }
.avatar { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); flex: none; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.nav-me .avatar { box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }

/* popovers do topo */
.pop { position: fixed; z-index: 60; top: 58px; background: var(--solid); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -18px rgba(2, 6, 23, .35); overflow: hidden; display: none; animation: fadeUp .16s ease-out; }
.pop.open { display: block; }
.pop-h { padding: 12px 16px; font-size: 14px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.pop-h button { font-size: 12px; font-weight: 600; color: var(--link); }
.pop-sec { padding: 10px 16px 4px; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pop-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 16px; text-align: left; font-size: 14px; color: var(--ink-2); }
.pop-row:hover { background: var(--soft); }
.pop-row .ic { width: 18px; height: 18px; color: var(--muted); }
.pop-row b { display: block; font-size: 13px; color: var(--ink); font-weight: 600; }
.pop-row small { display: block; font-size: 11px; color: var(--muted); }
.pop-row .avatar { width: 30px; height: 30px; font-size: 11px; position: relative; }
.pop-row .dot { position: absolute; top: -1px; right: -1px; width: 9px; height: 9px; border-radius: 99px; background: #ef4444; box-shadow: 0 0 0 2px var(--solid); }
.pop-row .chev { margin-left: auto; color: var(--faint); width: 16px; height: 16px; }
.pop-sep { height: 1px; background: var(--line); margin: 4px 0; }
.pop-new { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.pop-new:last-child { border: 0; }
.pop-new em { font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--chip-ink); background: var(--chip); padding: 2px 6px; border-radius: 6px; }
.pop-new b { display: block; margin-top: 6px; font-size: 14px; color: var(--ink); }
.pop-new p { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ---------------------------- drawer ---------------------------- */
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(2, 6, 23, .45); backdrop-filter: blur(2px); opacity: 0; pointer-events: none; transition: opacity .2s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; z-index: 80; inset: 0 auto 0 0; width: 320px; max-width: 88vw; background: var(--solid); display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .22s ease; box-shadow: 20px 0 50px -20px rgba(2, 6, 23, .4); }
.drawer.open { transform: none; }
.drawer-h { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.drawer-h b { display: block; font-size: 16px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drawer-h small { font-size: 13px; color: var(--muted); }
.drawer-h > div { min-width: 0; flex: 1; }
.drawer-x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.drawer-x:hover { background: var(--soft); }
.drawer nav { flex: 1; overflow-y: auto; padding: 12px 20px 24px; }
.d-sec { margin: 16px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.d-link { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; padding: 4px 8px; border-radius: 9px; font-size: 14px; color: var(--ink-2); text-align: left; }
.d-link .ic { width: 16px; height: 16px; color: var(--muted); }
.d-link:hover { background: var(--soft); }
.d-link.active { background: var(--grad); color: #fff; font-weight: 600; }
.d-link.active .ic { color: #fff; }
.d-link .tag { margin-left: auto; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chip-ink); background: var(--chip); border-radius: 99px; padding: 2px 7px; }
.d-tree .chev { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.d-tree[aria-expanded="true"] .chev { transform: rotate(90deg); }
.d-kids { display: none; margin: 2px 0 4px 18px; padding-left: 10px; border-left: 1px solid var(--line); }
.d-tree[aria-expanded="true"] + .d-kids { display: block; }
.d-kids .d-link { height: 32px; font-size: 13.5px; }

/* ---------------------------- página ---------------------------- */
main { max-width: 1280px; margin: 0 auto; padding: 80px 24px 40px; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.col-l { grid-column: span 3; }
.col-c { grid-column: span 6; }
.col-r { grid-column: span 3; }

.card {
  background: var(--card);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
}
.card-h { display: flex; align-items: center; gap: 12px; min-height: 36px; }
.card-h h2 { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.card-h h2 small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.card-h .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ibox { width: 36px; height: 36px; border-radius: 9px; background: var(--soft); color: var(--ink); display: grid; place-items: center; flex: none; }
.ibox .ic { width: 20px; height: 20px; }
.ibox.brand { background: var(--chip); color: var(--chip-ink); }
.more { font-size: 14px; color: var(--muted); font-weight: 500; padding: 4px 6px; border-radius: 6px; }
.more:hover { color: var(--link); }
.lnk { color: var(--link); font-weight: 500; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.mt { margin-top: 16px; }

.btn { height: 42px; padding: 0 14px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: filter .15s, background .15s, opacity .15s; }
.btn .ic { width: 18px; height: 18px; }
.btn-p { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -8px rgba(41, 98, 255, .55); }
.btn-p:hover { filter: brightness(1.08); }
.btn-s { background: var(--brand-600); color: #fff; }
.btn-s:hover { background: var(--brand-700); }
.btn-o { border: 1px solid color-mix(in srgb, var(--brand-500) 55%, transparent); color: var(--link); background: transparent; font-weight: 500; }
.btn-o:hover { background: var(--chip); }
.btn-g { border: 1px solid var(--line); color: var(--ink-2); background: var(--solid); font-weight: 500; font-size: 14px; height: 36px; }
.btn-g:hover { background: var(--soft); }
.btn[disabled] { opacity: .45; cursor: not-allowed; filter: none; }
.btn.block { width: 100%; }
.btn.sm { height: 36px; font-size: 14px; }

.empty { background: var(--soft-2); border-radius: 12px; padding: 32px 16px; text-align: center; }
.empty b { display: block; color: var(--ink); font-weight: 600; }
.empty p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.empty.dash { border: 1px dashed var(--line-2); padding: 18px 12px; font-size: 14px; color: var(--muted); }
.empty.pill { padding: 10px 12px; font-size: 14px; color: var(--muted); }

/* hero */
.hero { position: relative; z-index: 5; }
.hero h1 { text-align: center; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.hero h1 .wave { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.search { position: relative; margin-top: 20px; }
.search input { width: 100%; height: 42px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--solid); padding: 8px 12px 8px 40px; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 22%, transparent); }
.search > .ic { position: absolute; left: 12px; top: 11px; color: var(--faint); }
.search-res { position: absolute; z-index: 20; left: 0; right: 0; top: 48px; background: var(--solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 40px -16px rgba(2, 6, 23, .3); padding: 6px; display: none; max-height: 320px; overflow: auto; }
.search-res.open { display: block; }
.sr-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-align: left; font-size: 14px; color: var(--ink-2); }
.sr-row:hover, .sr-row.on { background: var(--soft); }
.sr-row .ic { width: 16px; height: 16px; color: var(--muted); }
.sr-row small { margin-left: auto; font-size: 11px; color: var(--faint); }
.sr-none { padding: 14px; text-align: center; font-size: 14px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-top: 24px; }
.tile { min-height: 82px; border: 1px solid var(--line); border-radius: 10px; background: var(--solid); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px 4px; text-align: center; font-size: 12.5px; line-height: 1.25; color: var(--muted); transition: border-color .15s, transform .15s, color .15s; }
.tile .ic { width: 24px; height: 24px; color: var(--brand-600); }
:root[data-theme="dark"] .tile .ic { color: var(--brand-400); }
.tile:hover { border-color: var(--brand-400); color: var(--ink); transform: translateY(-1px); }

/* agenda */
.agenda { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.ag-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); }
.ag-time { width: 58px; flex: none; text-align: center; border-radius: 9px; background: var(--chip); color: var(--chip-ink); padding: 6px 0; font-weight: 700; font-size: 14px; line-height: 1.1; }
.ag-time small { display: block; font-size: 10px; font-weight: 600; opacity: .75; }
.ag-row b { display: block; color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-row p { font-size: 13px; color: var(--muted); }
.ag-row > div:not(.ag-time) { min-width: 0; flex: 1; }
.badge { font-size: 11px; font-weight: 700; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok-ink); }
.badge.info { background: var(--chip); color: var(--chip-ink); }
.badge.warn { background: color-mix(in srgb, #f59e0b 16%, transparent); color: #b45309; }
:root[data-theme="dark"] .badge.warn { color: #fbbf24; }

/* aniversariantes */
.count { display: inline-flex; align-items: center; gap: 6px; border-radius: 9px; background: var(--chip); padding: 4px 10px; font-size: 12px; font-weight: 600; color: var(--ink); }
.count b { font-size: 18px; color: var(--brand-600); }
:root[data-theme="dark"] .count b { color: var(--brand-400); }
.people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.person { position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--solid); text-align: left; min-width: 0; transition: border-color .15s, box-shadow .15s; }
.person:hover { border-color: var(--line-2); }
.person.sel { border-color: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.person .ini { width: 40px; height: 40px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 700; }
.person.sel .ini { background: var(--grad); color: #fff; }
.person b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person small { font-size: 13px; color: var(--muted); }
.person > div { min-width: 0; }
.person .today { position: absolute; top: -8px; right: 10px; font-size: 10px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 99px; padding: 1px 7px; }
.bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.bar > span { font-size: 14px; color: var(--ink-2); }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--soft); }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--solid); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(2, 6, 23, .08); }
.seg.full { display: flex; }
.seg.full button { flex: 1; height: 34px; font-size: 15px; }
.bar .end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* promo */
.promo { display: grid; grid-template-columns: 182fr 180fr 180fr; gap: 12px; }
.banner { position: relative; min-height: 288px; border-radius: 12px; overflow: hidden; background: var(--grad); color: #fff; display: flex; align-items: flex-end; padding: 14px; }
.banner svg.hex { position: absolute; inset: 0; width: 100%; height: 100%; }
.banner img { position: absolute; top: 18px; right: 16px; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5); }
.banner b { position: relative; font-size: 18px; line-height: 1.2; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.feat { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; background: var(--solid); min-width: 0; }
.feat .card-h { align-items: flex-start; }
.feat p { font-size: 14px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }
.feat .lnk { margin-top: auto; padding-top: 16px; }

/* coluna esquerda */
.logo-slot { position: relative; width: 80px; height: 80px; margin: 16px auto 16px; border-radius: 14px; background: var(--solid); border: 1px solid var(--line); box-shadow: 0 4px 12px -4px rgba(2, 6, 23, .15); display: grid; place-items: center; }
.logo-slot .mono { width: 58px; height: 58px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.logo-slot .star { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 99px; background: #0b1220; color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--solid); }
.logo-slot .star .ic { width: 11px; height: 11px; }
.gear { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.gear:hover { background: var(--soft); color: var(--ink); }
.gear .ic { width: 18px; height: 18px; }
.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; margin-top: 16px; border-radius: 10px; overflow: hidden; background: radial-gradient(120% 90% at 100% 100%, rgba(41, 98, 255, .55), transparent 60%), radial-gradient(100% 80% at 0% 0%, rgba(0, 196, 106, .45), transparent 60%), #0b1220; color: #fff; text-align: left; }
.video .vt { position: absolute; left: 12px; right: 12px; top: 12px; display: flex; gap: 8px; align-items: center; }
.video .vt img { width: 28px; height: 28px; border-radius: 99px; }
.video .vt b { font-size: 13px; line-height: 1.2; display: block; }
.video .vt small { font-size: 10px; opacity: .7; }
.video .play { position: absolute; left: 50%; top: 54%; translate: -50% -50%; width: 54px; height: 38px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0, 0, 0, .6); transition: transform .15s; }
.video:hover .play { transform: scale(1.06); }
.video .play .ic { width: 18px; height: 18px; }
.video .cap { position: absolute; left: 12px; bottom: 10px; font-size: 11px; opacity: .75; }
.video .bars { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: flex-end; gap: 3px; opacity: .7; }
.video .bars i { width: 5px; border-radius: 2px; background: var(--accent-400); }
.help b { display: block; font-size: 14px; color: var(--ink); margin-top: 16px; }
.help p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.stack { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 16px; }
.thumb { aspect-ratio: 1; border-radius: 9px; overflow: hidden; position: relative; padding: 7px; font-size: 7.5px; line-height: 1.15; font-weight: 800; display: flex; flex-direction: column; justify-content: space-between; }
.thumb i { display: block; height: 3px; border-radius: 2px; background: currentColor; opacity: .3; margin-top: 3px; }
.thumb.blank { background: var(--soft-2); border: 1px dashed var(--line-2); display: grid; place-items: center; color: var(--faint); }
.thumb.blank .ic { width: 18px; height: 18px; }
.socials { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.socials a { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; color: var(--ink-2); }
.socials a:hover { background: var(--soft); color: var(--link); }
.socials .ic { width: 18px; height: 18px; }

/* coluna direita */
.card.hl { position: relative; border: 2px solid transparent; background: linear-gradient(var(--solid), var(--solid)) padding-box, var(--grad) border-box; }
.rows { margin-top: 12px; }
.rows > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px; font-size: 14px; font-weight: 600; color: var(--ink); }
.rows > div + div { border-top: 1px solid var(--line); }
.switch { position: relative; width: 40px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .15s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .18s; }
.switch[aria-checked="true"] { background: var(--grad); }
.switch[aria-checked="true"]::after { transform: translateX(16px); }
.sub { font-size: 13px; color: var(--muted); }
.find { display: flex; margin-top: 16px; }
.find input { flex: 1; min-width: 0; height: 42px; border: 1px solid var(--line-2); border-right: 0; border-radius: 8px 0 0 8px; padding: 0 12px; background: var(--solid); color: var(--ink); }
.find input:focus { outline: none; border-color: var(--brand-500); }
.find button { width: 42px; height: 42px; border-radius: 0 8px 8px 0; background: var(--brand-600); color: #fff; display: grid; place-items: center; }
.find button .ic { width: 18px; height: 18px; }
.list { margin-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--solid); font-size: 14px; color: var(--ink); }
.task.done span { text-decoration: line-through; color: var(--faint); }
.task span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.chk { width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--line-2); display: grid; place-items: center; flex: none; color: #fff; }
.task.done .chk { background: var(--grad); border-color: transparent; }
.chk .ic { width: 12px; height: 12px; stroke-width: 3; }
.del { color: var(--faint); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; flex: none; }
.del:hover { color: #ef4444; background: var(--soft); }
.del .ic { width: 14px; height: 14px; }
.add-in { display: none; gap: 6px; margin-top: 10px; }
.add-in.open { display: flex; }
.add-in input, .add-in textarea { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; background: var(--solid); color: var(--ink); font-size: 14px; resize: vertical; }
.add-in input:focus, .add-in textarea:focus { outline: none; border-color: var(--brand-500); }
.foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.foot .lnk { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; padding: 4px 8px 4px 10px; }
.foot .lnk .ic { width: 16px; height: 16px; }
.h-sub { font-size: 14px; font-weight: 600; color: var(--muted); margin: 14px 0 8px; }
.entry { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--solid); text-align: left; width: 100%; }
.entry + .entry { margin-top: 8px; }
.entry:hover { border-color: var(--line-2); }
.entry .ini { width: 36px; height: 36px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); font-size: 13px; font-weight: 700; }
.entry b { display: block; font-size: 15px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry small { font-size: 12px; color: var(--muted); }
.entry > div { min-width: 0; }
.store { height: 38px; font-size: 14px; color: var(--ink); background: var(--solid); border: 1px solid var(--line); font-weight: 600; }
.store:hover { background: var(--soft); }
.store .ic { width: 18px; height: 18px; }
.card p.txt { font-size: 14px; color: var(--ink-2); margin-top: 14px; line-height: 1.6; }

/* flutuantes */
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.fab button { width: 52px; height: 52px; border-radius: 99px; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(2, 6, 23, .5); transition: transform .15s; }
.fab button:hover { transform: translateY(-2px); }
.fab .bot { background: #0b1220; padding: 0; overflow: hidden; border: 2px solid rgba(255, 255, 255, .9); }
.fab .bot img { width: 100%; height: 100%; }
.fab .wa { background: #25d366; }
.fab .chat { background: var(--grad); }
.fab .ic { width: 26px; height: 26px; }
.feedback { position: fixed; right: 0; top: 50%; translate: 0 -50%; z-index: 39; writing-mode: vertical-rl; rotate: 180deg; padding: 14px 10px; border-radius: 0 10px 10px 0; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 8px 20px -8px rgba(2, 6, 23, .5); }

/* modal + toast */
.modal-bg { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 23, .5); backdrop-filter: blur(3px); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.modal-bg.open { display: flex; }
.modal { width: 100%; max-width: 480px; background: var(--solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 70px -20px rgba(2, 6, 23, .5); animation: fadeUp .18s ease-out; overflow: hidden; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-h h3 { font-size: 16px; color: var(--ink); }
.modal-h .drawer-x { margin-left: auto; }
.modal-b { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.modal-b label { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.modal-b input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]), .modal-b select, .modal-b textarea { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background-color: var(--solid); color: var(--ink); font-size: 14px; font-weight: 400; }
.modal-b select.sel { padding-right: 34px; }
.modal-b textarea { min-height: 96px; resize: vertical; }
.modal-b .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 0 18px 18px; }
.cmd { max-width: 560px; }
.cmd .search { margin: 0; }
.cmd .search input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; height: 54px; padding-left: 46px; }
.cmd .search input:focus { box-shadow: none; }
.cmd .search > .ic { left: 16px; top: 17px; }
.cmd-list { max-height: 50vh; overflow: auto; padding: 6px; }
.cmd-sec { padding: 8px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; translate: -50% 20px; opacity: 0; pointer-events: none; background: #0b1220; color: #fff; font-size: 14px; font-weight: 500; padding: 11px 16px; border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(2, 6, 23, .6); display: flex; align-items: center; gap: 8px; transition: opacity .2s, translate .2s; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast .ic { width: 18px; height: 18px; color: var(--accent-400); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------------------------- responsivo ---------------------------- */
@media (max-width: 1180px) {
  .nav-link .lbl { display: none; }
  .nav-link { padding: 0 9px; }
  .nav-badge { left: 20px; }
}
@media (max-width: 1023px) {
  .promo { grid-template-columns: 1fr 1fr; }
  .banner { grid-column: 1 / -1; min-height: 160px; }
  .people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .grid { grid-template-columns: minmax(0, 1fr); }
  .col-l, .col-c, .col-r { grid-column: auto; }
  .col-c { order: 1; } .col-r { order: 2; } .col-l { order: 3; }
  main { padding: 76px 16px 96px; }
}
@media (max-width: 560px) {
  .nav-in { padding: 0 6px; gap: 4px; }
  .nav-logo span, .nav-link.nav-opt { display: none; }
  .nav-logo img { height: 28px; }
  .nav-links { gap: 0; }
  .card { padding: 16px; }
  .people { grid-template-columns: minmax(0, 1fr); }
  .promo { grid-template-columns: minmax(0, 1fr); }
  .card-h .end .btn { height: 36px; font-size: 14px; padding: 0 12px; }
  .card-h.wrap { flex-wrap: wrap; }
  .card-h.wrap .end { flex-basis: 100%; justify-content: space-between; flex-direction: row-reverse; }
  .bar .end { margin-left: 0; width: 100%; }
  .bar .end .btn { flex: 1; }
  .feedback { display: none; }
  .fab { right: 12px; bottom: 12px; gap: 10px; }
  .fab button { width: 46px; height: 46px; }
  .pop { left: 8px !important; right: 8px !important; width: auto !important; }
  .modal-b .two { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* =====================================================================
   Componentes das telas internas
   ===================================================================== */
.page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.page-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-h h1 { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.page-h p { font-size: 14px; color: var(--muted); margin-top: 2px; }
.page-h .end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--link); }
.crumbs .ic { width: 14px; height: 14px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.back:hover { color: var(--link); }
.back .ic { width: 16px; height: 16px; }

/* abas sublinhadas (padrão das listas) */
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs > * { flex: 1 0 auto; min-width: max-content; padding: 12px 16px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: center; white-space: nowrap; }
.tabs > *:hover { color: var(--ink); }
.tabs > .on { color: var(--link); border-bottom-color: var(--brand-500); }
.tabs.left > * { flex: 0 0 auto; }

/* formulários */
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > span, .fld > label { font-size: 13px; font-weight: 600; color: var(--ink); }
.fld > span i, .req { color: #ef4444; font-style: normal; }
.fld small { font-size: 12px; color: var(--muted); }
.inp, .sel, .txa { width: 100%; min-width: 0; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 12px; background: var(--solid); color: var(--ink); font-size: 14px; }
.txa { height: auto; min-height: 88px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.sel { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.inp:focus, .sel:focus, .txa:focus { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 18%, transparent); }
.inp[readonly] { background: var(--soft-2); color: var(--muted); }
.inp-ic { position: relative; }
.inp-ic .ic { position: absolute; left: 11px; top: 11px; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.inp-ic .inp { padding-left: 38px; }
.inp-sfx { display: flex; }
.inp-sfx .inp { border-radius: 10px 0 0 10px; }
.inp-sfx > span { display: grid; place-items: center; padding: 0 10px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 10px 10px 0; background: var(--soft-2); font-size: 13px; color: var(--muted); white-space: nowrap; }
.g2, .g3, .g4 { display: grid; gap: 12px 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: span 2; } .spanall { grid-column: 1 / -1; }
.opts { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.opt { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.opt input { accent-color: var(--brand-600); width: 16px; height: 16px; }
.sec-t { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 6px 0 2px; display: flex; align-items: center; gap: 8px; }
.sec-t::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.filters { background: var(--soft-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.filters .actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-t { height: 36px; padding: 0 10px; font-size: 14px; color: var(--muted); border-radius: 8px; }
.btn-t:hover { color: var(--ink); background: var(--soft); }
.btn-d { background: transparent; color: #dc2626; border: 1px solid color-mix(in srgb, #dc2626 40%, transparent); font-weight: 500; }
.btn-d:hover { background: color-mix(in srgb, #dc2626 8%, transparent); }
.btn.xs { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.ibtn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); flex: none; }
.ibtn:hover { background: var(--soft); color: var(--ink); }
.ibtn.red:hover { color: #dc2626; }
.ibtn .ic { width: 18px; height: 18px; }
.count-t { font-size: 13px; color: var(--muted); }

/* tabelas */
.tbl-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: var(--solid); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); background: var(--soft-2); padding: 11px 14px; white-space: nowrap; }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
.tbl td b { color: var(--ink); font-weight: 600; }
.tbl td small { display: block; font-size: 12px; color: var(--muted); }
.tbl tr:hover td { background: color-mix(in srgb, var(--soft) 60%, transparent); }
.tbl .r { text-align: right; } .tbl .c { text-align: center; }
.tbl .acts { width: 1%; white-space: nowrap; text-align: right; }
.tbl .acts > * { display: inline-grid; }
.pager { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 16px; flex-wrap: wrap; }
.pager button { min-width: 34px; height: 34px; border-radius: 8px; font-size: 14px; color: var(--muted); }
.pager button:hover:not([disabled]) { background: var(--soft); }
.pager button.on { background: var(--chip); color: var(--chip-ink); font-weight: 700; }
.pager button[disabled] { opacity: .35; cursor: default; }
.pager .ic { width: 16px; height: 16px; }

/* linhas em cartão (lista de pacientes) */
.rowcard { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.rowcard + .rowcard { margin-top: 0; }
.rowcard .ini { width: 40px; height: 40px; border-radius: 99px; flex: none; display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); font-size: 14px; font-weight: 700; }
.rowcard .who { min-width: 0; flex: 1; }
.rowcard .who b { display: block; color: var(--ink); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rowcard .who small { font-size: 13px; color: var(--muted); }
.rowcard .meta { text-align: right; font-size: 13px; color: var(--muted); }
.rowcard .meta b { display: block; color: var(--ink); font-size: 13px; }
a.rowcard:hover { border-color: var(--brand-300); }
.st-on { color: #16a34a; } .st-off { color: #dc2626; }
:root[data-theme="dark"] .st-on { color: #4ade80; } :root[data-theme="dark"] .st-off { color: #f87171; }

/* menu de ações (⋮) */
.menu { position: fixed; z-index: 95; min-width: 180px; background: var(--solid); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -14px rgba(2, 6, 23, .35); padding: 6px; animation: fadeUp .14s ease-out; }
.menu button, .menu a { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); text-align: left; }
.menu button:hover, .menu a:hover { background: var(--soft); }
.menu .ic { width: 16px; height: 16px; color: var(--muted); }
.menu .danger, .menu .danger .ic { color: #dc2626; }

/* layout com coluna lateral */
.side-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 16px; align-items: start; }
.side-layout > aside { position: sticky; top: 80px; }
.subnav { display: flex; flex-direction: column; gap: 2px; }
.sn-sec { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 14px 0 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.sn-link { display: flex; align-items: center; gap: 9px; height: 36px; padding: 0 10px; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.sn-link .ic { width: 17px; height: 17px; color: var(--muted); }
.sn-link:hover { background: var(--soft); }
.sn-link.on { background: var(--chip); color: var(--chip-ink); font-weight: 600; }
.sn-link.on .ic { color: var(--chip-ink); }
.sn-link .tag { margin-left: auto; font-size: 10px; font-weight: 700; color: var(--chip-ink); background: var(--chip); border-radius: 99px; padding: 1px 7px; }

/* acordeão */
.acc { padding: 0; overflow: hidden; }
.acc > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.acc > summary::-webkit-details-marker { display: none; }
.acc > summary .end { margin-left: auto; display: flex; align-items: center; gap: 6px; font-weight: 500; }
.acc > summary .chev { width: 18px; height: 18px; color: var(--muted); transition: transform .15s; }
.acc[open] > summary .chev { transform: rotate(180deg); }
.acc > .acc-b { padding: 0 20px 20px; }

/* indicadores */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: var(--solid); text-align: center; }
.kpi b { display: block; font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kpi span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kpi span .ic { width: 14px; height: 14px; }
.kpi.l { text-align: left; }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--soft); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.chip.brand { background: var(--chip); color: var(--chip-ink); }
.chip.grad { background: var(--grad); color: #fff; }
.chip .ic { width: 14px; height: 14px; }
.prog { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.prog > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }
.macro-bar { display: flex; height: 22px; border-radius: 6px; overflow: hidden; font-size: 11px; font-weight: 700; color: #fff; }
.macro-bar > i { display: grid; place-items: center; font-style: normal; min-width: 30px; }
.mac-p { background: #ef4444; } .mac-c { background: #8b5cf6; } .mac-l { background: #f59e0b; }
.mac-pt { color: #ef4444; } .mac-ct { color: #8b5cf6; } .mac-lt { color: #d97706; }

/* estado vazio grande */
.void { text-align: center; padding: 40px 16px; }
.void .vic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; display: grid; place-items: center; background: var(--chip); color: var(--chip-ink); }
.void .vic .ic { width: 26px; height: 26px; }
.void b { display: block; font-size: 16px; color: var(--ink); }
.void p { font-size: 14px; color: var(--muted); margin: 6px auto 0; max-width: 420px; }
.void .btn { margin-top: 16px; }
.boxed { border: 1px solid var(--line); border-radius: 12px; background: var(--soft-2); }

/* passos */
.steps { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 12px; }
.step { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; text-align: left; color: var(--muted); }
.step .n { width: 30px; height: 30px; border-radius: 99px; display: grid; place-items: center; flex: none; background: var(--soft); font-weight: 700; font-size: 13px; }
.step b { display: block; font-size: 14px; color: var(--ink-2); }
.step small { font-size: 12.5px; }
.step.on .n { background: var(--grad); color: #fff; }
.step.on b { color: var(--link); }
.step.done .n { background: var(--ok-bg); color: var(--ok-ink); }

/* dica */
.tip { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--chip); color: var(--chip-ink); font-size: 14px; }
.tip .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.tip b { color: inherit; }

.modal.wide { max-width: 760px; }
.modal.xl { max-width: 980px; }
.modal-b { max-height: min(68vh, 720px); overflow: auto; }
.modal .tabs { margin: -6px -18px 4px; padding: 0 8px; }
.muted { color: var(--muted); } .ink { color: var(--ink); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }
.notfound { text-align: center; padding: 60px 16px; }

@media (max-width: 1023px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .side-layout { grid-template-columns: minmax(0, 1fr); }
  .side-layout > aside { position: static; }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .page-h .end { margin-left: 0; width: 100%; }
  .rowcard { padding: 12px 14px; }
  .rowcard .meta { display: none; }
  .tabs > * { padding: 11px 12px; }
}
.ini { width: 36px; height: 36px; border-radius: 99px; flex: none; display: inline-grid; place-items: center; background: var(--chip); color: var(--chip-ink); font-size: 13px; font-weight: 700; }
.ini.lg { width: 64px; height: 64px; font-size: 22px; background: var(--grad); color: #fff; }
.ini.sm { width: 28px; height: 28px; font-size: 11px; }
.badge.off { background: color-mix(in srgb, #ef4444 14%, transparent); color: #dc2626; }
:root[data-theme="dark"] .badge.off { color: #f87171; }
a.lnk, button.lnk { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 860px) {
  .side-layout > aside .subnav { flex-direction: row; overflow-x: auto; gap: 6px; scrollbar-width: none; margin-top: 12px !important; }
  .side-layout > aside .subnav::-webkit-scrollbar { display: none; }
  .side-layout > aside .sn-sec { display: none; }
  .side-layout > aside .sn-link { flex: none; border: 1px solid var(--line); }
}

/* opções (checkbox/radio) dentro de modais ficam em linha */
.modal-b label.opt { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
.modal-b .opt input { padding: 0; }
/* cards com botões no cabeçalho: no celular os botões descem para baixo do título */
@media (max-width: 560px) {
  .card.hw > .card-h { flex-wrap: wrap; }
  .card.hw > .card-h > .end { flex-basis: 100%; justify-content: flex-start; margin-left: 0; }
  .card.hw > .card-h > .end > .btn { flex: 1 1 auto; }
}
/* impressão */
.print-only { display: none; }
@media print {
  :root, :root[data-theme] { --ink: #111827; --ink-2: #374151; --muted: #4b5563; --faint: #6b7280; --card: #fff; --card-line: #d1d5db; --solid: #fff; --soft: #f3f4f6; --soft-2: #f9fafb; --line: #d1d5db; --line-2: #9ca3af; --chip: #eef6fb; --chip-ink: #075985; --link: #075985; --shadow: none; color-scheme: light; }
  body { background: #fff !important; }
  .nav, .drawer, .scrim, .fab, .feedback, .toast, .side-layout > aside, .pac-bar, .crumbs, .no-print, .menu, .modal-bg:not(.dyn) { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .side-layout { display: block !important; }
  .card { box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: #fff !important; border: 1px solid #d1d5db !important; break-inside: avoid; }
  .print-only { display: block !important; }
  a { color: inherit !important; text-decoration: none !important; }
}

.modal-f { flex-wrap: wrap; }
/* celular: só o botão do chat flutua (os outros cobriam ações dos cards) */
@media (max-width: 560px) {
  .fab .bot, .fab .wa { display: none; }
  .fab .chat { width: 46px !important; height: 46px !important; }
}
