/* Senso portal. Mobile primeiro, claro e escuro, tipografia própria, sem recursos externos. */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../assets/fonts/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #f4f6f7;
  --surface: #ffffff;
  --surface2: #f8fafb;
  --ink: #101c26;
  --mute: #5a6a75;
  --line: #e2e8ec;
  --line2: #cbd5db;
  --pri: #17624f;
  --pri-h: #0f4a3b;
  --pri-ink: #ffffff;
  --pri-soft: #e3f1ea;
  --pri-text: #17624f;
  --side: #0f4a3b;
  --logo-a: #17624f; --logo-b: #3fa37f; --logo-t: #17624f;
  --ok: #1d7a4c;
  --ok-soft: #e0f3e8;
  --warn: #8a5a05;
  --warn-soft: #fbf0d8;
  --bad: #b3342b;
  --bad-soft: #fbe4e1;
  --info: #2d5e9e;
  --info-soft: #e3ecf8;
  --m1: #e0675d; --m2: #e8a04a; --m3: #d9c95a; --m4: #78bf7d; --m5: #3a9b78;
  --pop: 0 8px 30px rgba(16, 28, 38, .18);
  --r-s: 10px; --r-m: 12px; --r-l: 18px;
}
:root[data-theme="dark"] {
  --bg: #0c1318; --surface: #131d24; --surface2: #172229; --ink: #e8eff2; --mute: #9bb0b9; --line: #23323b; --line2: #324650;
  --pri: #5fc79f; --pri-h: #77d4b0; --pri-ink: #06231a; --pri-soft: #163a2e; --pri-text: #7bd6b2; --side: #0c3328;
  --logo-a: #e9f7f0; --logo-b: #6fcfa6; --logo-t: #e9f7f0;
  --ok: #5cc88c; --ok-soft: #153325; --warn: #e3b36a; --warn-soft: #382c12; --bad: #f08278; --bad-soft: #3a1c19; --info: #7ea8e6; --info-soft: #172a45;
  --pop: 0 8px 30px rgba(0, 0, 0, .5);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1318; --surface: #131d24; --surface2: #172229; --ink: #e8eff2; --mute: #9bb0b9; --line: #23323b; --line2: #324650;
    --pri: #5fc79f; --pri-h: #77d4b0; --pri-ink: #06231a; --pri-soft: #163a2e; --pri-text: #7bd6b2; --side: #0c3328;
    --logo-a: #e9f7f0; --logo-b: #6fcfa6; --logo-t: #e9f7f0;
    --ok: #5cc88c; --ok-soft: #153325; --warn: #e3b36a; --warn-soft: #382c12; --bad: #f08278; --bad-soft: #3a1c19; --info: #7ea8e6; --info-soft: #172a45;
    --pop: 0 8px 30px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); min-height: 100vh; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.6rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 750; margin: 0 0 .25rem; }
h2 { font-size: 1.05rem; letter-spacing: -.01em; font-weight: 700; margin: 0 0 .5rem; }
h3 { font-size: .95rem; font-weight: 650; margin: 0 0 .15rem; }
p { margin: 0 0 .75rem; }
a { color: var(--pri-text); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; border-radius: 8px; }
h1[tabindex="-1"]:focus-visible, main[tabindex="-1"]:focus, main[tabindex="-1"]:focus-visible, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; }   /* 30/11: o contorno verde em volta da tela (foco do conteudo) saia nos jogos do Lab */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
.muted { color: var(--mute); }
.small { font-size: .85rem; }
.center { text-align: center; }
.ico { flex: none; }
.row { display: flex; gap: .75rem; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: .9rem; }

.demo { background: var(--warn-soft); color: var(--warn); text-align: center; font-size: .8rem; font-weight: 600; padding: .35rem 1rem; }
.noscript { padding: 1rem; }

/* ---------------------------------------------------------------- marca */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand .name { font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; }
.senso-logo { display: block; flex: none; }
.senso-logo .sl-a-s { stroke: var(--logo-a); }
.senso-logo .sl-a-f { fill: var(--logo-a); }
.senso-logo .sl-b-s { stroke: var(--logo-b); }
.senso-logo .sl-b-f { fill: var(--logo-b); }
.senso-logo .sl-t { fill: var(--logo-t); }

/* ---------------------------------------------------------------- campos */
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .35rem; }
.field .opt { font-weight: 500; color: var(--mute); }
.input-wrap { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .7rem .9rem; font-size: 1rem;
  border: 1.5px solid var(--line2); border-radius: var(--r-m); background: var(--surface); transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8a9aa4; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--mute); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--pri); outline: none; box-shadow: 0 0 0 4px var(--pri-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.field .hint { font-size: .8rem; color: var(--mute); margin-top: .3rem; }
.field .err { font-size: .82rem; color: var(--bad); margin-top: .3rem; font-weight: 600; }
.toggle-pw { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 36px; padding: 0 .75rem; border: 0; background: transparent; color: var(--pri-text); font-weight: 650; font-size: .85rem; border-radius: 8px; }
.has-toggle input { padding-right: 5.4rem; }

.strength { display: flex; gap: 4px; margin-top: .55rem; }
.strength i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); transition: background .2s; }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--bad); }
.strength[data-level="2"] i:nth-child(-n+2) { background: #d58a1c; }
.strength[data-level="3"] i:nth-child(-n+3) { background: #7aa33a; }
.strength[data-level="4"] i { background: var(--ok); }
.reqs { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .8rem; color: var(--mute); display: grid; gap: .15rem; }
.reqs li::before { content: "\25CB"; margin-right: .5rem; }
.reqs li.ok { color: var(--ok); }
.reqs li.ok::before { content: "\2713"; font-weight: 800; }

.check, .field label.check { display: flex; gap: .7rem; align-items: flex-start; margin: .7rem 0; cursor: pointer; font-weight: 450; font-size: .9rem; line-height: 1.45; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; min-height: 0; padding: 0; margin: 1px 0 0; flex: none; border: 1.5px solid var(--line2); border-radius: 7px; background: var(--surface); display: grid; place-content: center; cursor: pointer; transition: background .15s, border-color .15s; }
.check input::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--pri-ink); border-bottom: 2.5px solid var(--pri-ink); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .12s; }
.check input:checked { background: var(--pri); border-color: var(--pri); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }

/* ---------------------------------------------------------------- botoes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: .6rem 1.25rem; border-radius: var(--r-m); border: 1.5px solid transparent; background: var(--pri); color: var(--pri-ink); font-weight: 650; font-size: 1rem; text-decoration: none; width: 100%; transition: background .15s, transform .08s; }
.btn:hover { background: var(--pri-h); }
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line2); }
.btn.ghost:hover { background: var(--surface2); border-color: var(--mute); }
.btn.danger { background: var(--bad); color: var(--pri-ink); }
.btn.auto { width: auto; }
.btn.sm { min-height: 40px; padding: .4rem .9rem; font-size: .9rem; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: .35rem 0; color: var(--pri-text); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: .3rem; margin: 0 0 1rem -.2rem; padding: .35rem .5rem .35rem .2rem; font-size: .9rem; font-weight: 600; color: var(--mute); text-decoration: none; border-radius: 8px; }
.back:hover { color: var(--ink); }

.notice { display: flex; gap: .65rem; align-items: flex-start; border-radius: var(--r-m); padding: .75rem .9rem; margin: 0 0 1rem; font-size: .88rem; line-height: 1.45; }
.notice .ico { margin-top: 1px; }
.notice .nt { min-width: 0; }
.notice.info { background: var(--info-soft); color: var(--info); }
.notice.ok { background: var(--ok-soft); color: var(--ok); }
.notice.warn { background: var(--warn-soft); color: var(--warn); }
.notice.bad { background: var(--bad-soft); color: var(--bad); }
.notice b { font-weight: 700; }

.badge { white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface2); color: var(--mute); border: 1px solid var(--line); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* ---------------------------------------------------------------- entrada (login e cadastro) */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1fr; background: var(--surface); }
.auth-side { display: none; }
.auth-main { display: flex; flex-direction: column; padding: 1.25rem 1.25rem 2.5rem; min-width: 0; }
.auth-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; margin-bottom: 1.5rem; }
.auth-box { width: 100%; max-width: 410px; margin: 0 auto; }
.auth-box > h1 { margin-bottom: 1.4rem; }
.auth-foot { margin-top: 1.4rem; text-align: center; font-size: .9rem; color: var(--mute); }
.auth-sep { display: flex; align-items: center; gap: .8rem; color: var(--mute); font-size: .8rem; margin: 1.25rem 0; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }
/* entrar com Google ou Microsoft */
.oauth-block { margin-bottom: .2rem; }
.oauth-list { display: grid; gap: .6rem; }
.btn.oauth { gap: .7rem; font-weight: 600; }
.btn.oauth .oauth-mark { flex: none; }
.btn.oauth.soon { cursor: not-allowed; }
.btn.oauth.soon .oauth-mark { opacity: .55; }
.btn.oauth.soon > span:first-of-type { color: var(--mute); }
.btn.oauth .oauth-soon { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--mute); border: 1px solid var(--line2); border-radius: 999px; padding: .1rem .55rem; }
.oauth-block .notice { margin: .8rem 0 0; }
.field .lbl { display: block; font-size: .85rem; font-weight: 650; margin-bottom: .35rem; }
/* aviso de seguranca recomendada e painel da equipe */
.cta-card.tip { flex-wrap: wrap; }
.cta-card.tip .grow { flex: 1 1 14rem; min-width: 0; }
.tip-actions { display: flex; align-items: center; gap: 1rem; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
/* modo de teste da conta de equipe (so ela ve): Administrador, Psicologo(a) e Paciente */
.mode-switch .seg[aria-busy="true"] { opacity: .6; pointer-events: none; }
.mode-switch.compact .seg button { font-size: .74rem; padding: .42rem .2rem; }
.mode-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1rem 1.1rem 1.1rem; margin-bottom: 1.1rem; }
.mode-card .group-title { margin-top: 0; }
.mhead-mode { margin-left: auto; margin-right: .7rem; padding: .18rem .65rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); font-size: .74rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.side .mode-switch { margin-top: auto; padding: .7rem .4rem .8rem; }
.side .mode-switch + .me { margin-top: 0; }
.sw-row .t { font-weight: 600; font-size: .95rem; }
.person .stat { font-size: .95rem; }
.form-sec { font-size: .8rem; font-weight: 700; color: var(--mute); margin: 1.4rem 0 .7rem; letter-spacing: .01em; }

@media (min-width: 960px) {
  .auth-wrap { grid-template-columns: minmax(420px, 5fr) 6fr; }
  .auth-side { display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; background: var(--side); color: #fff; padding: 2.5rem 3rem; }
  .auth-side .brand { color: var(--pri-ink); }
  .auth-side { --logo-a: #fff; --logo-b: #8edbba; --logo-t: #fff; }
  .auth-main { padding: 2rem 3rem 3rem; }
  .auth-box { margin: auto; }
  .auth-top .brand { display: none; }
}
.side-art { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 640px; height: 640px; opacity: .55; pointer-events: none; }
.side-art circle { fill: none; stroke: #fff; stroke-opacity: .16; stroke-width: 1.5; }
.side-art .dot { fill: #fff; fill-opacity: .9; stroke: none; }
.side-copy { position: relative; max-width: 25rem; }
.side-copy h2 { font-size: 2.1rem; line-height: 1.12; letter-spacing: -.03em; font-weight: 750; margin: 0 0 1.5rem; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.side-list li { display: flex; align-items: center; gap: .7rem; font-size: .95rem; color: rgba(255, 255, 255, .86); }
.side-list .ico { color: #fff; opacity: .9; }

/* opcoes grandes (escolher perfil) */
.choice { display: flex; gap: 1rem; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-l); padding: 1rem 1.1rem; margin-bottom: .8rem; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--pri); background: var(--surface2); }
.choice .ico-box { width: 46px; height: 46px; border-radius: 13px; }
.choice b { display: block; font-size: 1rem; font-weight: 700; }
.choice .d { color: var(--mute); font-size: .85rem; }
.choice .go { margin-left: auto; color: var(--mute); }
.ico-box { width: 40px; height: 40px; border-radius: 12px; background: var(--pri-soft); color: var(--pri-text); display: grid; place-items: center; flex: none; }

.consent-box { border: 1.5px solid var(--line2); border-radius: var(--r-m); padding: .2rem .9rem; margin: 1rem 0; background: var(--surface2); }
.consent-box details summary { cursor: pointer; font-size: .85rem; font-weight: 650; color: var(--pri-text); padding: .2rem 0 .6rem; }
.consent-box details p { font-size: .85rem; color: var(--mute); }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 1.2rem; }
.steps li { counter-increment: s; display: flex; gap: .75rem; margin-bottom: .7rem; align-items: flex-start; font-size: .92rem; }
.steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--pri-soft); color: var(--pri-text); font-weight: 700; display: grid; place-items: center; font-size: .78rem; margin-top: 1px; }

.otp input { text-align: center; letter-spacing: .5em; font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.qr { display: grid; place-items: center; background: #fff; border-radius: var(--r-m); padding: .75rem; border: 1px solid var(--line); margin: .75rem auto 1rem; width: max-content; max-width: 100%; }
.qr svg, .qr img { width: 172px; height: 172px; display: block; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; background: var(--surface2); border: 1px dashed var(--line2); border-radius: 8px; padding: .5rem .75rem; word-break: break-all; font-size: .9rem; }
.status-ico { width: 64px; height: 64px; border-radius: 20px; background: var(--pri-soft); color: var(--pri-text); display: grid; place-items: center; margin-bottom: 1.25rem; }
.status-ico.warn { background: var(--warn-soft); color: var(--warn); }
.status-ico.bad { background: var(--bad-soft); color: var(--bad); }
.lead { color: var(--mute); margin-bottom: 1.25rem; }

/* ---------------------------------------------------------------- area logada */
.app { min-height: 100vh; min-height: 100dvh; }
.side { display: none; }
.mhead { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.1rem; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 8; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--pri-soft); color: var(--pri-text); display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none; text-decoration: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.3rem; }
.main { padding: 1.4rem 1.1rem 6.5rem; max-width: 760px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head p { margin: 0; color: var(--mute); }

.bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9; display: flex; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: .55rem .25rem .6rem; font-size: .7rem; font-weight: 650; color: var(--mute); text-decoration: none; position: relative; }
.bottom a[aria-current="page"] { color: var(--pri-text); }
.bottom a[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--pri); }

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 252px 1fr; }
  .mhead, .bottom { display: none; }
  .side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh; background: var(--surface); border-right: 1px solid var(--line); padding: 1.4rem .9rem; }
  .side .brand { padding: 0 .5rem; margin-bottom: 1.8rem; }
  .side nav { display: grid; gap: .2rem; }
  .side nav a { display: flex; align-items: center; gap: .75rem; padding: .65rem .75rem; border-radius: var(--r-m); color: var(--mute); text-decoration: none; font-weight: 600; transition: background .15s, color .15s; }
  .side nav a:hover { background: var(--surface2); color: var(--ink); }
  .side nav a[aria-current="page"] { background: var(--pri-soft); color: var(--pri-text); }
  .side .me { margin-top: auto; display: flex; align-items: center; gap: .7rem; padding: .7rem .6rem; border-top: 1px solid var(--line); }
  .side .me .who { min-width: 0; line-height: 1.25; }
  .side .me .who b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .me .who span { font-size: .78rem; color: var(--mute); }
  .main { padding: 2.6rem 3rem 4rem; max-width: 900px; }
}

/* grupos de linhas (configuracoes) */
.group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.group-title { font-size: .8rem; font-weight: 700; color: var(--mute); margin: 1.6rem 0 .5rem .4rem; }
.item { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; min-height: 56px; width: 100%; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; }
.item + .item, .item + .panel, .panel + .item { border-top: 1px solid var(--line); }
a.item:hover, button.item:hover { background: var(--surface2); }
.item .t { font-weight: 600; font-size: .95rem; }
.item .s { font-size: .82rem; color: var(--mute); }
.item .chev { color: var(--mute); margin-left: auto; }
.item.danger .t { color: var(--bad); }
.item.danger .ico-box { background: var(--bad-soft); color: var(--bad); }
.panel { padding: 1rem; }

.switch { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line2); flex: none; transition: background .2s; margin-left: auto; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); }
.switch[aria-checked="true"] { background: var(--pri); }
.switch[aria-checked="true"] .knob { transform: translateX(18px); }
.switch[disabled] { opacity: .6; }

.seg { display: flex; background: var(--bg); border-radius: var(--r-m); padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: .5rem .4rem; font-weight: 650; font-size: .85rem; color: var(--mute); transition: background .15s, color .15s; }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 28, 38, .12); }

/* inicio */
.hello { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.2rem; }
.hello h1 { margin: 0; }
.hello .sub { color: var(--mute); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; gap: .9rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: var(--ink); min-height: 118px; }
.tile .t { font-weight: 650; font-size: .95rem; }
.tile.off { background: transparent; border-style: dashed; color: var(--mute); }
.tile.off .ico-box { background: var(--surface); color: var(--mute); }
.tile .pill { margin-top: auto; font-size: .72rem; font-weight: 700; color: var(--mute); }
.setup { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 1rem; }
.setup .t { font-weight: 650; }
.setup .s { color: var(--mute); font-size: .85rem; }
.ring .ring-bg { stroke: var(--line); }
.ring .ring-fg { stroke: var(--pri); }

/* nivel e XP (paciente) */
.level { background: var(--side); color: #fff; border-radius: var(--r-l); padding: 1.15rem 1.25rem 1.25rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.level .top { display: flex; align-items: center; gap: 1rem; }
.lvl-badge { width: 58px; height: 58px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .85); display: grid; place-items: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; flex: none; font-variant-numeric: tabular-nums; }
.level .name { font-size: 1.15rem; font-weight: 750; letter-spacing: -.01em; }
.level .sub { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.xpbar { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .2); margin: 1rem 0 .55rem; overflow: hidden; }
.xpbar i { display: block; height: 100%; border-radius: 4px; background: #fff; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.level .meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .8rem; color: rgba(255, 255, 255, .8); }
.level .meta b { color: #fff; font-weight: 700; }

.checkin { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1rem 1.1rem 1.1rem; margin-bottom: 1rem; }
.checkin h2 { margin-bottom: .8rem; }
.faces { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; }
.face { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .7rem .2rem .55rem; border: 1.5px solid var(--line); border-radius: var(--r-m); background: var(--surface); font-size: .7rem; font-weight: 650; color: var(--mute); transition: border-color .15s, background .15s, transform .08s; }
.face:hover { border-color: var(--line2); background: var(--surface2); }
.face:active { transform: scale(.96); }
.face .ico { color: var(--mc, var(--mute)); }
.face[aria-pressed="true"] { border-color: var(--mc); background: var(--surface2); color: var(--ink); }
[data-m="1"] { --mc: var(--m1); } [data-m="2"] { --mc: var(--m2); } [data-m="3"] { --mc: #bfae2c; } [data-m="4"] { --mc: var(--m4); } [data-m="5"] { --mc: var(--m5); }

.cta-card { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); margin-bottom: 1rem; }
.cta-card .t { font-weight: 650; }
.cta-card .s { color: var(--mute); font-size: .85rem; }

/* diario */
.day { font-size: .8rem; font-weight: 700; color: var(--mute); margin: 1.4rem 0 .5rem .3rem; }
.entry { display: flex; gap: .9rem; align-items: flex-start; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-decoration: none; color: inherit; margin-bottom: .6rem; transition: border-color .15s; }
.entry:hover { border-color: var(--line2); }
.entry .mood { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface2); color: var(--mc, var(--mute)); border: 1.5px solid var(--mc, var(--line)); }
.entry .txt { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); }
.entry .txt.none { color: var(--mute); }
.entry .tags { display: flex; flex-wrap: wrap; gap: .3rem; margin-top: .4rem; }
.tag { font-size: .72rem; font-weight: 650; padding: .15rem .55rem; border-radius: 999px; background: var(--surface2); color: var(--mute); border: 1px solid var(--line); }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--mute); }
.empty .ico-box { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 1rem; }
.empty h2 { color: var(--ink); }
.fab { position: fixed; right: 1.1rem; bottom: calc(4.9rem + env(safe-area-inset-bottom)); z-index: 7; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--pri); color: var(--pri-ink); display: grid; place-items: center; box-shadow: var(--pop); text-decoration: none; }
@media (min-width: 960px) { .fab { display: none; } }
.only-desk { display: none; }
@media (min-width: 960px) { .only-desk { display: inline-flex; } }

/* editor do diario */
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.editor-head input[type="date"], .editor-head input[type="time"] { width: auto; min-height: 40px; padding: .4rem .7rem; font-size: .9rem; border: 1.5px solid var(--line2); border-radius: var(--r-m); background: var(--surface); }
.bar-block { margin-bottom: 1.4rem; }
.bar-block .q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .6rem; }
.bar-block .q b { font-size: .95rem; font-weight: 700; }
.bar-block .val { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 650; color: var(--mc, var(--mute)); }
.bar-block .ends { display: flex; justify-content: space-between; font-size: .75rem; color: var(--mute); margin-top: .35rem; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 14px; border-radius: 7px; margin: .45rem 0; background: var(--line); outline-offset: 6px; --p: 0%; }
.range.mood { background: linear-gradient(90deg, var(--m1), var(--m2), var(--m3), var(--m4), var(--m5)); opacity: .45; }
.range.mood[data-set="true"] { opacity: 1; }
.range.fill { background: linear-gradient(90deg, var(--pri) var(--p), var(--line) var(--p)); }
.range.fill[data-set="false"] { background: var(--line); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--pri); box-shadow: 0 2px 8px rgba(16, 28, 38, .3); cursor: grab; }
.range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 3px solid var(--pri); box-shadow: 0 2px 8px rgba(16, 28, 38, .3); cursor: grab; }
.range[data-set="false"]::-webkit-slider-thumb { border-color: var(--line2); }
.range[data-set="false"]::-moz-range-thumb { border-color: var(--line2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1.5px solid var(--line2); background: var(--surface); border-radius: 999px; padding: .4rem .9rem; font-size: .85rem; font-weight: 600; color: var(--mute); transition: background .15s, border-color .15s, color .15s; }
.chip[aria-pressed="true"] { background: var(--pri); border-color: var(--pri); color: var(--pri-ink); }
.more { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 0 1.4rem; }
.more summary { cursor: pointer; list-style: none; padding: .8rem 0; font-weight: 650; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.more summary::-webkit-details-marker { display: none; }
.more summary .ico { transition: transform .2s; }
.more[open] summary .ico { transform: rotate(180deg); }
.more .in { padding: .4rem 0 .3rem; }
.private { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--mute); margin: .3rem 0 1rem; }
.savebar { position: sticky; bottom: calc(4.4rem + env(safe-area-inset-bottom)); padding: .6rem 0; background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; gap: .6rem; }
@media (min-width: 960px) { .savebar { bottom: 0; } }

/* comemoracao de nivel */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(8, 18, 24, .62); display: grid; place-items: center; padding: 1.25rem; animation: fade .2s ease; }
.dialog { width: 100%; max-width: 340px; background: var(--surface); border-radius: 24px; padding: 2rem 1.5rem 1.5rem; text-align: center; box-shadow: var(--pop); animation: pop .35s cubic-bezier(.2, 1.2, .3, 1); }
.dialog .lvl-badge { width: 92px; height: 92px; font-size: 2.6rem; margin: 0 auto 1.2rem; background: var(--side); color: #fff; border-color: var(--pri); }
.dialog h2 { font-size: 1.4rem; margin-bottom: .3rem; }
.dialog p { color: var(--mute); margin-bottom: 1.4rem; }
.dialog.form { text-align: left; max-width: 400px; padding: 1.6rem 1.4rem 1.4rem; }
.dialog.form h2 { font-size: 1.25rem; margin-bottom: .35rem; }
.dialog.form p { margin-bottom: 1.1rem; }
.dialog-actions { display: grid; gap: .6rem; margin-top: .5rem; }
@media (min-width: 480px) { .dialog-actions { grid-template-columns: 1fr 1fr; } .dialog-actions .btn:first-child { order: 2; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.88); opacity: 0; } }

/* suporte */
.contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; margin-bottom: 1.2rem; }
.contact { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); text-decoration: none; color: var(--ink); }
.contact:hover { border-color: var(--line2); }
.contact .t { font-weight: 650; font-size: .92rem; }
.contact .s { font-size: .8rem; color: var(--mute); overflow: hidden; text-overflow: ellipsis; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:last-child { border-bottom: 0; }
details.faq summary { cursor: pointer; padding: .95rem .2rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.faq .body { padding: 0 .2rem 1rem; color: var(--mute); animation: fade .2s ease; }
details.faq .body p { font-size: .9rem; }
.shot { display: block; max-width: 100%; width: 260px; height: auto; border: 1px solid var(--line); border-radius: 16px; margin: .6rem 0 0; }
.preview { background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r-m); padding: .75rem 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .75rem; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 0; }
.legal-text { white-space: pre-wrap; font-size: .9rem; line-height: 1.65; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 1.1rem 1.15rem; }
.card + .card { margin-top: .9rem; }
.card > h2:first-child { margin-bottom: .8rem; }

.toast { position: fixed; left: 50%; bottom: calc(5.2rem + env(safe-area-inset-bottom)); transform: translateX(-50%); width: max-content; max-width: calc(100vw - 2rem); display: flex; align-items: center; gap: .55rem; background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 14px; box-shadow: var(--pop); font-weight: 650; font-size: .9rem; z-index: 40; animation: rise .25s ease; }
@media (min-width: 960px) { .toast { bottom: 1.5rem; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }

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

/* complementos */
.item .v { margin-left: auto; color: var(--mute); font-size: .9rem; text-align: right; overflow-wrap: anywhere; max-width: 60%; }
.item .seg { margin-left: auto; min-width: 200px; }
.item .ico-box.done { background: var(--ok-soft); color: var(--ok); }
.item .ico-box.todo { background: transparent; border: 1.5px dashed var(--line2); color: var(--mute); }
.item .tag { margin-left: auto; flex: none; white-space: nowrap; }
.group-hint { font-size: .8rem; color: var(--mute); margin: .5rem .4rem 0; }
.pub { max-width: 760px; margin: 0 auto; padding: 1.2rem 1.1rem 3rem; }
.pub-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.help { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; font-weight: 650; color: var(--mute); text-decoration: none; padding: .4rem .6rem; border-radius: 8px; }
.help:hover { color: var(--ink); background: var(--surface2); }
.auth-top .help { margin-left: auto; }
.lock-mini { color: var(--mute); margin-left: auto; flex: none; margin-top: 2px; }
.setup-head { display: flex; align-items: center; gap: 1rem; padding: 1rem 1rem .8rem; }
.setup-head .t { font-weight: 700; }
.setup-head .s { color: var(--mute); font-size: .85rem; }
.pending-line { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.row-actions { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.4rem; }
.pill-xp { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--pri-text); background: var(--pri-soft); padding: .3rem .7rem; border-radius: 999px; }
.entry .mood .ico { color: var(--mc, var(--mute)); }

.between { justify-content: space-between; }
.row .field { margin-bottom: 0; }
.row .check { margin: .5rem 0; }
.chip[disabled] { opacity: .4; cursor: not-allowed; }
.face { font-family: inherit; }
.lvl-badge.sm { width: 44px; height: 44px; font-size: 1.15rem; }

.name-big { font-size: 1.3rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.2; }
.hello .sub { font-size: .9rem; }
.level .xpnum { margin-left: auto; white-space: nowrap; font-weight: 700; font-variant-numeric: tabular-nums; align-self: flex-start; }
.face span { text-align: center; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; }
.savebar .btn { flex: 1; width: auto; }
.savebar .btn.auto { flex: none; }
.savebar .pill-xp { align-self: center; }
.linkbtn.small { font-size: .82rem; }
.bar-block .q .grp { display: flex; align-items: center; gap: .8rem; }

.item .t, .item .s { display: block; }
.group details.faq summary { padding: .95rem 1rem; }
.group details.faq .body { padding: 0 1rem 1rem; }
.group details.faq .preview { margin: 0; }
.contact .t { display: block; }

/* utilitarios (por ultimo, para valerem sobre os demais) */
.mt8 { margin-top: .5rem; } .mt16 { margin-top: 1rem; } .mt24 { margin-top: 1.5rem; }
.mb0 { margin-bottom: 0; } .mb16 { margin-bottom: 1rem; }
.grid2 { display: grid; gap: .9rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } }

/* equipe (conferencia de CRP e chamados) */
.hello + .seg { margin-bottom: 1rem; }
.person { display: grid; gap: .6rem; }
.person .head { display: flex; align-items: center; gap: .8rem; }
.person .head .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.person .head .who b { overflow-wrap: anywhere; }
.person .head .who span { font-size: .85rem; color: var(--mute); }
.person .meta { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; font-size: .85rem; color: var(--mute); overflow-wrap: anywhere; }
.person .note { margin: 0; font-size: .88rem; background: var(--surface2); border-radius: var(--r-m); padding: .55rem .75rem; }
.person .msg { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .92rem; }
.person .actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .2rem; }
.filters { display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.filter { flex: 1 1 11rem; max-width: 340px; }
.person .plan-row { max-width: 240px; }
.stat-row.plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* molduras de nivel: o anel muda de espessura e de desenho a cada marco (nao so de cor) */
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-frame { --ring: 2px; --gap: 2px; --gapc: var(--surface); display: inline-grid; place-items: center; flex: none; padding: var(--ring); border-radius: 50%; background: var(--ringbg, var(--line2)); position: relative; }
.avatar-frame > .avatar { margin: var(--gap); box-shadow: 0 0 0 var(--gap) var(--gapc); }
.f-semente { --ring: 2px; --ringbg: #b08a5a; }
.f-broto { --ring: 3px; --ringbg: var(--m4); }
.f-folha { --ring: 3px; --ringbg: conic-gradient(from 40deg, #3a9b78, #a5d99a, #3a9b78, #a5d99a, #3a9b78); }
.f-arvore { --ring: 4px; --ringbg: conic-gradient(from 200deg, #1d7a4c, #78bf7d, #d9c95a, #78bf7d, #1d7a4c); }
.f-floresta { --ring: 4px; --ringbg: conic-gradient(from 90deg, #17624f, #3a9b78, #78bf7d, #3a9b78, #17624f); box-shadow: 0 0 0 2px var(--gapc), 0 0 0 4px #17624f; margin: 4px; }
.f-constelacao { --ring: 4px; --ringbg: conic-gradient(#3b3f9e, #46b6be, #e8c96a, #46b6be, #3b3f9e); box-shadow: 0 0 0 2px var(--gapc), 0 0 0 4px #3b3f9e; margin: 4px; }
.f-constelacao::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle at 88% 14%, #e8c96a 0 2px, transparent 2.6px), radial-gradient(circle at 8% 70%, #46b6be 0 2px, transparent 2.6px), radial-gradient(circle at 46% -1%, #8c90e8 0 1.6px, transparent 2.2px), radial-gradient(circle at 60% 101%, #e8c96a 0 1.6px, transparent 2.2px); }
.hello .avatar-frame { margin-right: .1rem; }

/* vitrine de molduras (conta do paciente) */
.shelf { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin-bottom: 1rem; }
@media (min-width: 720px) { .shelf { grid-template-columns: repeat(6, 1fr); } }
.shelf .fr { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .85rem .3rem .7rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); text-align: center; }
.shelf .fr .n { font-weight: 700; font-size: .85rem; }
.shelf .fr .s { font-size: .74rem; color: var(--mute); }
.shelf .fr.now { border-color: var(--pri); box-shadow: 0 0 0 1px var(--pri); }
.shelf .fr.locked .avatar-frame { opacity: .38; filter: grayscale(.85); }
.shelf .fr.locked .n { color: var(--mute); }

/* acompanhamento dos pacientes (inicio do psicologo) */
.pt-head { display: flex; align-items: center; gap: .85rem; }
.pt-head .who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pt-head .who b { overflow-wrap: anywhere; }
.pt-head .who span { font-size: .85rem; color: var(--mute); }
.pt-vals { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.pt-vals .val { font-size: .8rem; background: var(--surface2); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .65rem; }
.pt-vals .val b { font-weight: 700; }
.mood-bars { display: flex; align-items: flex-end; gap: 3px; height: 38px; margin-top: .8rem; }
.mood-bars i { flex: 1; border-radius: 3px 3px 0 0; background: var(--line2); min-width: 0; }
.mood-bars i.b0 { height: 3px; }
.mood-bars i.b1 { height: 20%; background: var(--m1); }
.mood-bars i.b2 { height: 40%; background: var(--m2); }
.mood-bars i.b3 { height: 60%; background: var(--m3); }
.mood-bars i.b4 { height: 80%; background: var(--m4); }
.mood-bars i.b5 { height: 100%; background: var(--m5); }
.pt-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: .78rem; color: var(--mute); margin-top: .3rem; }
.pt-note { font-size: .85rem; color: var(--mute); margin: .2rem .2rem 0; }
.hint-line { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--mute); margin: .6rem .2rem 0; }
ul.plain-list { list-style: none; padding: 0; }
.mhead-me { display: inline-flex; text-decoration: none; }
.dialog .unlock { display: flex; justify-content: center; margin: 0 auto 1.2rem; }
.dialog .unlock .avatar.lg { font-size: 1.9rem; font-weight: 800; }

/* conquistas */
h1.mb16 + .seg { margin-bottom: 1.1rem; }
.ach-sum { display: flex; align-items: center; gap: .9rem; background: var(--side); color: #fff; border-radius: var(--r-l); padding: 1.1rem 1.2rem; margin-bottom: 1rem; }
.ach-sum .ico-box { background: rgba(255, 255, 255, .14); color: var(--pri-ink); }
.ach-sum .t { font-weight: 750; font-size: 1.05rem; }
.ach-sum .s { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.track { display: grid; gap: .8rem; }
.track .top { display: flex; align-items: center; gap: .85rem; }
.track .top h3 { margin: 0; }
.track .top .s { font-size: .82rem; color: var(--mute); }
.track .top .cnt { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .85rem; color: var(--mute); }
.track .top .pill { font-size: .72rem; font-weight: 700; color: var(--mute); border: 1px dashed var(--line2); border-radius: 999px; padding: .15rem .6rem; white-space: nowrap; }
.track .now { margin: 0; font-size: .9rem; color: var(--mute); }
.track .now b { color: var(--ink); font-weight: 700; }
.track .bar { height: 8px; border-radius: 4px; background: var(--line); margin-top: .55rem; overflow: hidden; }
.track .bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--pri); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.tiers { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.tier { display: inline-flex; align-items: center; gap: .25rem; font-size: .8rem; font-weight: 650; font-variant-numeric: tabular-nums; padding: .22rem .65rem; border-radius: 999px; border: 1px solid var(--line2); color: var(--mute); background: transparent; }
.tier.got { background: var(--pri-soft); border-color: transparent; color: var(--pri-text); }
.tier.next { border-color: var(--pri); color: var(--ink); }
.track.off { background: transparent; border-style: dashed; }
.track.off .tier { opacity: .7; }
.shelf .fr .av { display: flex; align-items: center; justify-content: center; height: 84px; }

/* barra de humor com o rosto ao lado */
.mood-slider { display: flex; align-items: center; gap: 1rem; }
.mood-slider > .grow { min-width: 0; flex: 1; }
.mood-slider .top { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 1.7rem; }
.mood-slider .mood-word { text-align: left; margin: 0; min-height: 0; color: var(--mc, var(--mute)); font-size: .95rem; }
.mood-slider .mood-word b { color: var(--mc, var(--ink)); font-weight: 750; }
.mood-slider .range { margin: .5rem 0 .2rem; }
.mood-slider .ends { display: flex; justify-content: space-between; gap: .5rem; font-size: .72rem; color: var(--mute); }
.mood-face { width: 66px; height: 66px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); border: 2px solid var(--line); color: var(--mute); transition: border-color .15s, color .15s, background .15s; }
.mood-slider[data-m] .mood-face { color: var(--mc); border-color: var(--mc); background: var(--surface); }
@media (prefers-reduced-motion: reduce) { .mood-face { transition: none; } }
.stack-btns { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.center { text-align: center; }
.center-link { display: inline-block; margin-top: .9rem; padding: .4rem .6rem; }
.mt0 { margin-top: 0; }

/* ---------------------------------------------------------------- revisão de fluxo (11/2026) */
/* cabeçalho com dois botões (Agenda): no celular, título em cima e botões lado a lado embaixo */
@media (max-width: 640px) {
  .page-head.stack { flex-direction: column; align-items: stretch; gap: .75rem; }
  .page-head.stack .row-gap { display: flex; gap: .5rem; }
  .page-head.stack .row-gap > .btn { flex: 1 1 0; justify-content: center; }
}
/* link de cadastro em uma linha (Início do psicólogo com pacientes) */
.invite-mini { padding: .85rem 1rem; }
.invite-mini .row { align-items: center; gap: .75rem; }
.invite-mini .t { font-weight: 600; }
.invite-mini .s { color: var(--mute); font-size: .9rem; }
/* consentimentos e explicações em itens curtos, fáceis de ler */
.consent-list { margin: .5rem 0 1rem; padding-left: 1.2rem; text-align: left; }
.consent-list li { margin: .35rem 0; line-height: 1.45; }

/* Plano do psicologo: etiqueta clicavel (abre a janela dos planos) */
.badge.plan-tag { cursor: pointer; font: inherit; font-size: .75rem; font-weight: 700; }
.badge.plan-tag:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.badge.plan-pro { background: var(--pri-soft); color: var(--pri-text); border-color: transparent; }
.badge.plan-pro_ai { background: var(--info-soft); color: var(--info); border-color: transparent; }
.side .me .who .plan-line { margin-top: .3rem; }
.plan-card { margin-bottom: .75rem; display: flex; flex-direction: column; gap: .6rem; }
.plan-card.current { border-color: var(--pri); }
.plan-card .plan-name { font-size: 1.05rem; }
.plan-card .plan-features { margin: 0; }

/* Saude do psicologo */
.health-score { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
.health-ring-wrap { position: relative; width: 96px; height: 96px; flex: none; }
.health-ring-wrap .health-num { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.35rem; }
.health-ring.ok .ring-fg { stroke: var(--ok); }
.health-ring.warn .ring-fg { stroke: var(--warn); }
.health-ring.bad .ring-fg { stroke: var(--bad); }
.health-pts { font-weight: 700; color: var(--mute); font-size: .85rem; white-space: nowrap; }
.item .ico-box.ok { color: var(--ok); }
.item .ico-box.warn { color: var(--warn); }
.item .ico-box.bad { color: var(--bad); }
.self-care { display: flex; gap: .9rem; align-items: flex-start; margin-top: 1rem; background: var(--info-soft); border-color: transparent; }
.self-care .ico-box { color: var(--info); flex: none; }

/* Inicio do psicologo (30/11): link de cadastro no topo, card do dia leva para a agenda */
.hello { align-items: flex-start; }
.invite-share { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .5rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--pri-text); font: inherit; font-weight: 650; font-size: .85rem; cursor: pointer; }
.invite-share:hover { border-color: var(--pri); }
.invite-share:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
@media (max-width: 599px) { .invite-share { width: 44px; padding: 0; justify-content: center; } .invite-share span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
a.card.home-empty { display: flex; align-items: center; gap: .9rem; color: inherit; text-decoration: none; }
a.card.home-empty .grow { flex: 1; min-width: 0; }
a.card.home-empty:hover { border-color: var(--pri); }
a.card.home-empty .chev { color: var(--mute); }
.group-title.row-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }

/* Lista de espera: prioridade (30/11) */
.prio { display: inline-block; margin-left: .5rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; vertical-align: middle; border: 1px solid currentColor; }
.prio-leve { color: var(--ok); }
.prio-medio { color: var(--warn); }
.prio-grave { color: var(--bad); }
.form-sec { border: 0; padding: 0; margin: 0 0 1rem; min-width: 0; }
.form-sec legend { font-weight: 700; font-size: .95rem; margin-bottom: .5rem; padding: 0; }
a.cta-card.lab-cta { color: inherit; text-decoration: none; }
.diag-list { margin: 0; display: grid; gap: .55rem; }
.diag-list > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: .75rem; }
.diag-list dt { color: var(--mute); font-size: .88rem; }
.diag-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 420px) { .diag-list > div { grid-template-columns: 1fr; gap: .1rem; } }

/* Agenda estilo Google Agenda (30/11) */
.gcal-bar { display: flex; align-items: center; gap: .4rem; margin-bottom: .75rem; flex-wrap: wrap; }
.gcal-title { position: relative; flex: 1; min-width: 0; display: inline-flex; align-items: center; justify-content: center; gap: .3rem; min-height: 44px; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 700; font-size: 1.05rem; cursor: pointer; border-radius: 10px; }
.gcal-title:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.gcal-picker { position: absolute; left: 50%; bottom: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
.gcal-seg { flex: 0 0 auto; }
@media (max-width: 520px) { .gcal-seg { order: 4; flex: 1 1 100%; } }
.gcal-scroll { max-height: calc(100vh - 17rem); min-height: 22rem; overflow-y: auto; overscroll-behavior: contain; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.gcal-grid { position: relative; display: flex; }
.gcal-gut { position: relative; flex: 0 0 3rem; }
.gcal-hour { position: absolute; right: .4rem; transform: translateY(-50%); font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.gcal-hour:first-child { transform: none; }
.gcal-cols { flex: 1; display: flex; min-width: 0; }
.gcal-col { position: relative; flex: 1; min-width: 0; border-left: 1px solid var(--line); cursor: pointer; }
.gcal-col.today { background: color-mix(in srgb, var(--pri) 4%, transparent); }
.gcal-work { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--pri) 7%, transparent); pointer-events: auto; }
.gcal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.gcal-closed { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mute) 16%, transparent) 0 6px, transparent 6px 12px); color: var(--mute); font-size: .75rem; padding: .25rem .4rem; overflow: hidden; pointer-events: none; }
.gcal-ev { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: .2rem .4rem; border-radius: 8px; border: 0; border-left: 4px solid var(--pri); background: color-mix(in srgb, var(--pri) 18%, var(--surface)); color: var(--ink); font: inherit; text-align: left; overflow: hidden; cursor: pointer; }
.gcal-ev .n { font-weight: 700; font-size: .82rem; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gcal-ev .m { font-size: .72rem; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.gcal-ev:focus-visible { outline: 3px solid var(--pri); outline-offset: 1px; }
.gcal-ev.ev-done { border-left-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.gcal-ev.ev-no_show { border-left-color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, var(--surface)); }
.gcal-ev.ev-requested, .gcal-ev.ev-reschedule_proposed { border: 1.5px dashed var(--warn); border-left-width: 4px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); }
.gcal-now { position: absolute; left: -4px; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.gcal-now::before { content: ""; position: absolute; left: 0; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.gcal-heads { display: flex; margin-bottom: .3rem; }
.gcal-heads .gcal-gut { flex: 0 0 3rem; }
.gcal-dayhead { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .3rem 0; border: 0; background: none; color: var(--mute); font: inherit; cursor: pointer; border-radius: 10px; min-height: 44px; }
.gcal-dayhead .wd { font-size: .7rem; text-transform: uppercase; }
.gcal-dayhead .dn { font-weight: 700; font-size: 1rem; color: var(--ink); width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; }
.gcal-dayhead.today .dn { background: var(--pri); color: var(--pri-ink); }
.gcal-semana .gcal-ev { padding: .15rem .25rem; border-left-width: 3px; }
.gcal-semana .gcal-ev .n { font-size: .7rem; }

/* Foto de perfil (30/11) */
.avatar.has-photo { padding: 0; overflow: hidden; background: var(--surface2); }
.avatar.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.avatar.xl { width: 7.5rem; height: 7.5rem; font-size: 2.4rem; }
.photo-edit { display: flex; justify-content: center; margin: .5rem 0 1rem; }
.avatar-edit { position: relative; flex: none; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.avatar-edit:focus-visible { outline: 3px solid var(--pri); outline-offset: 3px; }
.avatar-cam { position: absolute; right: -2px; bottom: -2px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: var(--pri-ink); border: 2px solid var(--surface); }

/* Opções de ligar/desligar como chave de celular (30/11) */
.check.as-switch { align-items: center; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.check.as-switch input { position: relative; width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line2); transition: background .2s; margin: 0; }
.check.as-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; margin: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transform: none; transition: transform .2s; }
.check.as-switch input:checked { background: var(--pri); }
.check.as-switch input:checked::after { transform: translateX(18px); }
.check.as-switch input:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.tr-head { display: flex; align-items: center; gap: .5rem; }
.tr-edit { margin-left: auto; min-width: 36px; min-height: 36px; border: 0; background: none; color: var(--mute); border-radius: 8px; display: grid; place-items: center; cursor: pointer; }
.tr-edit:hover, .tr-edit:focus-visible { color: var(--pri-text); background: var(--pri-soft); }
.tr-edit-box { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line2); border-radius: 10px; background: var(--surface); color: var(--ink); resize: vertical; }

/* Janela como tela cheia (exemplo de 30/11) */
.overlay.page-ov { background: var(--bg); align-items: stretch; justify-content: stretch; padding: 0; }
.sheet.as-page { width: 100%; max-width: none; height: 100%; max-height: none; border-radius: 0; margin: 0; box-shadow: none; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); animation: page-in .18s ease-out; background: var(--bg); }
.sheet.as-page .sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: .35rem; padding: .6rem max(12px, env(safe-area-inset-left, 0px)) .6rem .5rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.sheet.as-page .sheet-head h2 { font-size: 1.1rem; margin: 0; }
.sheet.as-page .sheet-body { flex: 1; overflow-y: auto; padding: 1rem max(16px, env(safe-area-inset-right, 0px)) calc(1.5rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); width: 100%; max-width: 640px; margin: 0 auto; }
.sheet-back { min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--ink); border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.sheet-back:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
@keyframes page-in { from { transform: translateX(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet.as-page { animation: none; } }
.sheet.as-page { padding: 0; overflow: hidden; }
.sheet.as-page .sheet-head { justify-content: flex-start; margin: 0; top: 0; }
.sheet.as-page .sheet-head h2 { flex: 1; min-width: 0; }

/* Agenda: mês (padrão, 30/11) */
.gmon-heads { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: .3rem; }
.gmon-heads span { text-align: center; font-size: .72rem; color: var(--mute); text-transform: uppercase; }
.gmon { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.gmon-day { min-width: 0; min-height: 5.2rem; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: .25rem .2rem; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.gmon-day:nth-child(7n) { border-right: 0; }
.gmon-day.out { background: var(--surface2); color: var(--mute); }
.gmon-day.closed { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--mute) 10%, transparent) 0 6px, transparent 6px 12px); }
.gmon-day:focus-visible { outline: 3px solid var(--pri); outline-offset: -3px; }
.gmon-day .dn { align-self: center; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; font-weight: 700; font-size: .85rem; }
.gmon-day.today .dn { background: var(--pri); color: var(--pri-ink); }
.gmon-ev { display: block; font-size: .66rem; line-height: 1.25; padding: 1px 3px; border-radius: 4px; background: color-mix(in srgb, var(--pri) 16%, var(--surface)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gmon-ev b { font-weight: 700; }
.gmon-ev.ev-requested, .gmon-ev.ev-reschedule_proposed { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); }
.gmon-ev.ev-done { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.gmon-more { font-size: .66rem; color: var(--mute); padding-left: 3px; }
@media (min-width: 700px) { .gmon-day { min-height: 6.5rem; } .gmon-ev { font-size: .74rem; } }
@media (max-width: 520px) { .gmon-ev b { display: none; } }

/* Lista de escolha na tela (30/11) */
.pick-list .pick-row { width: 100%; justify-content: space-between; min-height: 56px; }
.pick-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line2); position: relative; }
.pick-row[aria-checked="true"] .pick-dot { border-color: var(--pri); }
.pick-row[aria-checked="true"] .pick-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--pri); }
.pick-row[aria-checked="true"] .t { font-weight: 700; }

/* Balão do link de cadastro (30/11) */
.share-wrap { position: relative; flex: none; }
.share-tip { position: absolute; right: 0; top: calc(100% + 10px); z-index: 20; display: flex; align-items: flex-start; gap: .25rem; width: max-content; max-width: calc(100vw - 2rem); padding: .2rem; border-radius: 14px; background: var(--ink); color: var(--surface); box-shadow: var(--pop, 0 8px 24px rgba(0,0,0,.25)); animation: tip-in .2s ease-out; }
.share-tip::before { content: ""; position: absolute; right: 16px; top: -6px; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.share-tip-msg { flex: 1; border: 0; background: none; color: inherit; font: inherit; font-size: .85rem; line-height: 1.4; text-align: left; padding: .55rem .6rem; cursor: pointer; border-radius: 12px; }
.share-tip-x { flex: none; min-width: 32px; min-height: 32px; border: 0; background: none; color: inherit; opacity: .7; display: grid; place-items: center; cursor: pointer; border-radius: 10px; }
.share-tip-msg:focus-visible, .share-tip-x:focus-visible { outline: 2px solid var(--pri-soft); outline-offset: -2px; }
@keyframes tip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .share-tip { animation: none; } }

/* Cor do app (01/12) */
/* Preferências: cartões de tema e cor */
.pref-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 16px; display: grid; gap: 14px; margin-bottom: 14px; }
.pref-h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; color: var(--ink); }
.pref-h svg { color: var(--pri); }
.pick-grid { display: grid; gap: 10px; }
.pick-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pick-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.pick-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 6px 12px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; font: inherit; min-width: 0; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick-tile:active { transform: scale(.97); }
.pick-tile:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.pick-tile[aria-checked="true"] { border-color: var(--pri); box-shadow: 0 0 0 1.5px var(--pri), 0 6px 18px -8px var(--pri); background: var(--pri-soft); }
.pick-check { position: absolute; top: 6px; right: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--pri); color: #fff; opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.pick-tile[aria-checked="true"] .pick-check { opacity: 1; transform: scale(1); }
.pick-name { font-size: .82rem; font-weight: 700; text-align: center; line-height: 1.2; }
.acc-tile .pick-name { display: grid; font-size: .74rem; }
.acc-tile .pick-name b { font-weight: 800; }
.acc-tile .pick-name span { font-weight: 600; color: var(--mute); }
.acc-tile[aria-checked="true"] .pick-name span { color: var(--pri-text); }
.acc-art { width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 4px 10px -4px rgba(0,0,0,.35); }
.acc-tile .pick-check { top: 4px; right: 4px; width: 18px; height: 18px; }
.theme-art { position: relative; width: 100%; max-width: 92px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line2); }
.theme-art i { position: absolute; border-radius: 3px; }
.theme-art .bar { left: 0; right: 0; top: 0; height: 22%; border-radius: 0; background: var(--pri); }
.theme-art .l1 { left: 12%; top: 36%; width: 60%; height: 10%; }
.theme-art .l2 { left: 12%; top: 54%; width: 42%; height: 10%; }
.theme-art .dot { right: 10%; bottom: 10%; width: 22%; height: 0; padding-bottom: 22%; border-radius: 50%; background: var(--pri); }
.theme-art.t-light { background: #f6f7f5; } .t-light .l1, .t-light .l2 { background: #d7ddd9; }
.theme-art.t-dark { background: #161b1a; } .t-dark .l1, .t-dark .l2 { background: #3a4441; }
.theme-art.t-auto { background: linear-gradient(135deg, #f6f7f5 50%, #161b1a 50%); }
.t-auto .l1, .t-auto .l2 { background: #8f9995; }
@media (max-width: 380px) { .pick-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Pacientes: botão de filtros (01/12) */
.patient-filters { display: flex; align-items: center; gap: 8px; margin: 10px 0 14px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }
.filter-btn svg { color: var(--pri); }
.filter-btn.on { border-color: var(--pri); background: var(--pri-soft); color: var(--pri-text); }
.filter-btn:focus-visible, .filter-clear:focus-visible { outline: 3px solid var(--pri); outline-offset: 2px; }
.filter-clear { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.pick-n { color: var(--mute); font-weight: 700; font-size: .9rem; margin-right: 10px; }
