/* NEXO FITNESS · portais /explore e /admin na identidade "A linha do nexo"
   Arquivo autônomo: não depende do site.css da landing. */
:root {
  --ground: #F4F3EE;
  --ground-2: #ECEBE4;
  --paper: #FFFFFF;
  --ink: #141816;
  --muted: #3F4743;
  --muted-2: #4A524D;
  --rule: #DEDDD5;
  --rule-strong: #C9CCC4;
  --accent-text: #0B7A52;
  --line: #10B37A;
  --mint: #45E3A2;
  --dark: #121714;
  --dark-text: #EEF2EE;
  --dark-muted: #B9C9C0;
  --dark-soft: #9FB5AA;
  --rule-dark: #2C3530;
  --warn-bg: #F6EDD3; --warn-ink: #6B4E07; --warn-rule: #E3CF94;
  --off-bg: #F3E2DF; --off-ink: #7A2E24; --off-rule: #E2BDB6;
  --ok-bg: #DDF3E8; --ok-ink: #0B5E40; --ok-rule: #A9DEC5;
  --font-display: "Segoe UI Variable Display", "SF Pro Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", "SF Pro Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font-text); -webkit-font-smoothing: antialiased; overflow-x: clip; }
svg { display: block; }
a { color: var(--accent-text); }
a:hover { color: #075C3D; }
:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; }
.portal-highlight :focus-visible, #portal-status :focus-visible { outline-color: var(--mint); }
h1:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 30; padding: 12px 16px; border-radius: 8px; background: var(--ink); color: var(--ground); }
.skip:focus { top: 12px; }

/* Brand (igual à landing) */
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: .04em; }
.brand-tag { font-size: 10px; font-weight: 600; letter-spacing: .32em; color: var(--accent-text); }

/* Tipografia */
.eyebrow { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); }
.eyebrow.accent { color: var(--accent-text); }

/* Estrutura */
.portal { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 32px 28px; border-right: 1px solid var(--rule); background: var(--ground-2); }
.sidebar .brand { margin-bottom: 56px; }
.sidebar > .eyebrow { font-size: 11px; margin-bottom: 18px; }

/* Navegação como pontos numa linha */
.sidebar nav { position: relative; display: flex; flex-direction: column; }
.sidebar nav::before { content: ""; position: absolute; left: 8px; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--rule-strong); }
.sidebar nav a { position: relative; display: block; padding: 12px 10px 12px 34px; border-radius: 10px; font-size: 15px; color: var(--muted); text-decoration: none; }
.sidebar nav a::before { content: ""; position: absolute; left: 3px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--ground-2); transition: border-color .2s, background .2s; }
.sidebar nav a:hover { color: var(--ink); }
.sidebar nav a:hover::before { border-color: var(--ink); }
.sidebar nav a.active { color: var(--ink); font-weight: 650; }
.sidebar nav a.active::before { border-color: var(--line); background: var(--line); animation: pulse 2.2s ease-out infinite; }
.sidebar-links { margin-top: auto; display: flex; flex-direction: column; gap: 6px; padding-top: 28px; }
.sidebar-links a { font-size: 14px; color: var(--muted); text-decoration: none; padding: 6px 0; }
.sidebar-links a:hover { color: var(--accent-text); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16,179,122,.5); } 70% { box-shadow: 0 0 0 10px rgba(16,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(16,179,122,0); } }

.portal-main { width: 100%; max-width: 1280px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 56px) 120px; }

.demo-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 12px 12px 20px; border: 1.5px dashed var(--rule-strong); border-radius: 999px; font-size: 14px; color: var(--muted); }
.demo-strip strong { color: var(--ink); }

.portal-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin: 56px 0 40px; }
.portal-header h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 4.6vw, 68px); line-height: .96; letter-spacing: -.035em; text-wrap: balance; max-width: 16ch; }
.portal-header p:not(.eyebrow) { margin: 18px 0 0; max-width: 36rem; font-size: 17px; line-height: 1.55; color: var(--muted); }
.user-chip { display: flex; align-items: center; gap: 12px; flex-shrink: 0; font-size: 14px; line-height: 1.35; }
.user-chip small { color: var(--muted-2); font-size: 12px; }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--mint); font-family: var(--font-display); font-weight: 700; }

/* Indicadores */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 40px; }
.kpis article { padding: 22px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--rule); }
.kpis span { display: block; font-size: 13px; color: var(--muted-2); }
.kpis strong { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 800; font-size: 44px; letter-spacing: -.03em; line-height: 1; }
.kpis article:first-child strong { color: var(--accent-text); }

/* Botões */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--ground); font: 600 14px var(--font-text); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.button:hover { background: #26302B; color: var(--ground); }
.button.outline { background: transparent; color: var(--ink); }
.button.outline:hover { background: rgba(20,24,22,.06); color: var(--ink); }
.button:active { transform: translateY(1px); }
.button:disabled { cursor: default; opacity: .55; transform: none; }
.button.outline:disabled:hover { background: transparent; }
.demo-strip .button { min-height: 38px; padding: 0 16px; font-size: 13px; }

/* Destaque escuro, como a seção "Conectar" da landing */
.portal-highlight { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; padding: clamp(28px, 4vw, 48px); padding-bottom: clamp(44px, 5vw, 64px); margin-bottom: 32px; border-radius: 28px; background: var(--dark); color: var(--dark-text); }
.portal-highlight .eyebrow { color: var(--mint); }
.portal-highlight h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1; letter-spacing: -.03em; max-width: 18ch; text-wrap: balance; }
.portal-highlight p:not(.eyebrow) { margin: 18px 0 0; max-width: 40rem; font-size: 16px; line-height: 1.6; color: var(--dark-muted); }
.portal-highlight .button { flex-shrink: 0; border-color: var(--mint); background: var(--mint); color: var(--ink); }
.portal-highlight .button:hover { background: #6EEBB8; }
.highlight-line { position: absolute; left: 0; right: 0; bottom: 22px; height: 24px; width: 100%; overflow: visible; pointer-events: none; }
.highlight-line path { fill: none; stroke: var(--mint); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.highlight-line circle { fill: var(--mint); }
.highlight-line { animation: draw 1.4s cubic-bezier(.6,0,.2,1) both; }
@keyframes draw { from { clip-path: inset(-50% 100% -50% 0); } to { clip-path: inset(-50% 0 -50% 0); } }

/* Cartões */
.portal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.portal-card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; border-radius: 22px; background: var(--paper); border: 1px solid var(--rule); transition: border-color .2s; }
.portal-card:hover { border-color: var(--rule-strong); }
.portal-card h3 { margin: 4px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; }
.portal-card p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.portal-card .button { margin-top: auto; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-actions .button { margin-top: 0; }
.card-art { position: relative; width: 100%; height: 112px; margin-bottom: 4px; padding: 16px 18px; border-radius: 16px; background: var(--ground); }
.card-art svg { position: absolute; left: 18px; right: 18px; top: 18px; bottom: 34px; width: calc(100% - 36px); height: calc(100% - 52px); overflow: visible; }
.card-art path { fill: none; stroke: var(--line); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.card-art path.soft { stroke: var(--rule-strong); stroke-width: 2; }
.card-art circle { fill: var(--line); }
.card-art small { position: absolute; left: 18px; bottom: 12px; font-size: 10px; font-weight: 600; letter-spacing: .2em; color: var(--muted-2); }
.card-art .initials { position: absolute; right: 18px; top: 16px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--mint); font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.portal-card:hover .card-art svg { animation: draw 1s cubic-bezier(.6,0,.2,1) both; }

.section-heading { margin: 48px 0 18px; font-family: var(--font-display); font-weight: 800; font-size: 28px; letter-spacing: -.02em; }

/* Selos */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border: 1px solid var(--ok-rule); border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.pending { border-color: var(--warn-rule); background: var(--warn-bg); color: var(--warn-ink); }
.badge.disabled { border-color: var(--off-rule); background: var(--off-bg); color: var(--off-ink); }
.badge.neutral { border-color: var(--rule-strong); background: var(--ground); color: var(--muted); }

/* Filtros e tabela */
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin: 0 0 18px; }
.toolbar label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
input, select { min-height: 46px; max-width: 100%; padding: 0 16px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: 15px var(--font-text); }
input[type="search"] { width: 300px; }
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: var(--accent-text); }
.result-count { margin: 0 0 0 auto; font-size: 13px; color: var(--muted-2); align-self: center; }
.table-wrap { overflow: auto; border-radius: 22px; background: var(--paper); border: 1px solid var(--rule); }
table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 15px; }
th { padding: 16px 20px; border-bottom: 1px solid var(--rule); text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
td { padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #FAFAF7; }
td small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted-2); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.row-actions .button { min-height: 36px; padding: 0 14px; font-size: 13px; }
.empty-state { margin: 0; padding: 32px; border: 1.5px dashed var(--rule-strong); border-radius: 22px; font-size: 15px; color: var(--muted); }

/* Atividade como pontos na linha */
.activity-list { position: relative; margin: 0; padding: 0 0 0 30px; list-style: none; }
.activity-list::before { content: ""; position: absolute; left: 6px; top: 10px; bottom: 10px; width: 2px; background: var(--rule-strong); }
.activity-list li { position: relative; padding: 10px 0; font-size: 15px; color: var(--muted); }
.activity-list li::before { content: ""; position: absolute; left: -29px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; border: 2px solid var(--rule-strong); background: var(--ground); }
.activity-list li:first-child::before { border-color: var(--line); background: var(--line); }
.activity-list li:first-child { color: var(--ink); }

/* Medalhas */
.medal { width: 64px; height: 64px; overflow: visible; }
.medal circle { fill: none; stroke: var(--rule-strong); stroke-width: 2.5; }
.medal path { fill: none; stroke: var(--rule-strong); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.medal.earned circle { stroke: var(--line); fill: var(--ok-bg); }
.medal.earned path { stroke: var(--accent-text); }

/* Roadmap como a própria linha */
.roadmap { position: relative; margin: 8px 0 0; padding: 0; list-style: none; }
.roadmap::before { content: ""; position: absolute; left: 21px; top: 22px; bottom: 22px; width: 3px; border-radius: 3px; background: var(--rule-strong); }
.roadmap-step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 22px; padding-bottom: 28px; }
.roadmap-step > span { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--rule-strong); background: var(--ground); font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--muted); }
.roadmap-step.is-now > span { border-color: var(--line); background: var(--line); color: var(--paper); animation: pulse 2.2s ease-out infinite; }
.roadmap-step > div { padding: 22px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--rule); }
.roadmap-step h3 { margin: 0 0 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.roadmap-step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.roadmap-step .badge { margin-bottom: 12px; }

/* Diálogo */
dialog { width: min(580px, calc(100% - 32px)); max-height: 85vh; padding: 36px; border: 0; border-radius: 28px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px rgba(20,24,22,.25); }
dialog::backdrop { background: rgba(20,24,22,.55); backdrop-filter: blur(4px); }
dialog h2 { margin: 0 0 18px; padding-right: 40px; font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.05; letter-spacing: -.03em; }
dialog p { margin: 0 0 12px; font-size: 15px; line-height: 1.6; color: var(--muted); }
#detail-body > .button { margin-top: 12px; }
.dialog-close { position: absolute; right: 18px; top: 18px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--ground); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; }
.dialog-close:hover { background: var(--ground-2); }

/* Aviso de estado, como o contador da landing */
#portal-status { position: fixed; left: 50%; bottom: 20px; z-index: 20; max-width: min(640px, calc(100% - 24px)); margin: 0; padding: 14px 22px; border-radius: 999px; background: rgba(20,24,22,.94); color: var(--dark-text); font-size: 14px; line-height: 1.4; box-shadow: 0 10px 30px rgba(0,0,0,.18); transform: translateX(-50%); }
#portal-status:empty { display: none; }
#portal-status::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--mint); vertical-align: 1px; }

.portal-foot { margin: 56px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.6; color: var(--muted-2); }

/* ---------- Gestão: /admin e /pro ---------- */
.kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis.four strong { font-size: 38px; }
.button.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.button.danger { border-color: var(--off-ink); background: var(--off-ink); color: #fff; }
.button.danger:hover { background: #5E2219; color: #fff; }
.button.outline.danger { background: transparent; color: var(--off-ink); }
.button.outline.danger:hover { background: var(--off-bg); color: var(--off-ink); }
.toolbar > .button { align-self: flex-end; }
.person { font-weight: 600; }
.person small { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--muted-2); }
.muted { font-size: 14px; color: var(--muted-2); }
.hint { margin: 10px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted-2); }
.privacy { margin: 18px 0 0; padding: 12px 16px; border-left: 3px solid var(--line); border-radius: 0 12px 12px 0; background: var(--ground); font-size: 14px; line-height: 1.5; color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--ink); font: 600 15px var(--font-text); text-align: left; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.link-button:hover { color: var(--accent-text); text-decoration-color: currentColor; }

/* Barras de progresso (carteira, documentos) */
.meter { display: block; width: 100%; max-width: 120px; height: 6px; border-radius: 6px; background: var(--ground-2); overflow: hidden; }
.meter > span { display: block; height: 100%; border-radius: 6px; background: var(--line); }
.meter.full > span { background: var(--warn-ink); }
.cell-meter { display: grid; gap: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.card-meter { display: grid; gap: 8px; width: 100%; font-size: 13px; color: var(--muted-2); }
.card-meter .meter { max-width: none; }

/* Listas de alerta */
.alert-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.alert-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border: 1px solid var(--rule); border-left: 4px solid var(--warn-rule); border-radius: 16px; background: var(--paper); }
.alert-list li > div { display: grid; gap: 4px; }
.alert-list strong { font-size: 15px; }
.alert-list span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.alert-list .button { flex-shrink: 0; }
.activity-list small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted-2); }

/* Ficha no diálogo */
dialog.wide { width: min(860px, calc(100% - 32px)); max-height: 90vh; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -6px 0 20px; }
.meta-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px 22px; margin: 0; }
.meta-list dt { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.meta-list dd { margin: 4px 0 0; font-size: 15px; line-height: 1.4; }
.panel-bio { margin: 18px 0 12px !important; color: var(--ink) !important; }
.panel-section { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); }
.panel-section h3 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
.panel-section .activity-list li { font-size: 14px; padding: 8px 0; }
.checklist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--ground); font-size: 14px; }
.checklist.compact li { grid-template-columns: minmax(0, 1fr) auto; background: var(--paper); border: 1px solid var(--rule); }

/* Formulários */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px 18px; margin-top: 14px; }
.form-grid .field:has(textarea), .form-grid .form-error, .form-grid .card-actions { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.field small { font-weight: 400; font-size: 12px; line-height: 1.4; }
.field input, .field select { width: 100%; }
textarea { width: 100%; padding: 12px 16px; border: 1.5px solid var(--rule-strong); border-radius: 12px; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font-text); resize: vertical; }
textarea:focus-visible { outline-offset: 1px; border-color: var(--accent-text); }
.form-error { margin: 0; font-size: 14px; font-weight: 600; color: var(--off-ink); }
.form-error:empty { display: none; }
.form-grid .card-actions { margin-top: 0; padding-top: 0; }

/* Sessões e agenda */
.session-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.session { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); }
.session.is-off { opacity: .6; }
.session-time strong { display: block; font-family: var(--font-display); font-size: 18px; font-variant-numeric: tabular-nums; }
.session-time small, .session-info small { display: block; font-size: 12px; color: var(--muted-2); }
.session-info { min-width: 0; }
.session .row-actions { justify-content: flex-end; }
.week-nav { align-items: center; }
.week-label { margin: 0; font-weight: 600; font-size: 15px; }
.push-right { margin-left: auto; }
.week { display: grid; gap: 12px; }
.day { padding: 16px 18px; border-radius: 18px; border: 1px solid var(--rule); background: var(--ground-2); }
.day.is-today { border-color: var(--line); background: var(--paper); box-shadow: inset 4px 0 0 var(--line); }
.day.is-past { opacity: .78; }
.day h3 { margin: 0 0 10px; font-size: 14px; font-weight: 700; letter-spacing: .04em; text-transform: capitalize; }
.day-free { margin: 0; font-size: 14px; color: var(--muted-2); }
.day .session { grid-template-columns: 56px minmax(0, 1fr) auto auto; }
.request-msg { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--ground); font-size: 14px; line-height: 1.5; color: var(--muted); font-style: italic; }

/* Conteúdos */
.content-meta { font-size: 13px !important; color: var(--muted-2) !important; }
.content-body { max-width: 62ch; }
.content-body p { margin: 0 0 14px; font-size: 16px; line-height: 1.7; color: var(--ink); }
.content-body .content-summary { font-size: 17px; font-weight: 600; color: var(--ink); }
.feedback { margin: 16px 0 0; padding: 12px 16px; border-left: 3px solid var(--warn-ink); border-radius: 0 12px 12px 0; background: var(--warn-bg); font-size: 14px; line-height: 1.5; color: var(--warn-ink); }
.check { display: flex; align-items: flex-start; gap: 12px; width: 100%; cursor: pointer; line-height: 1.45; }
input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; min-height: 0; margin: 1px 0 0; padding: 0; accent-color: var(--accent-text); cursor: pointer; }
.checklist.review li { grid-template-columns: minmax(0, 1fr); }
.checklist.review + .card-actions { margin-top: 14px; }

/* Troca de persona no portal do profissional e filtros da vitrine */
.persona { display: flex; flex-direction: column; gap: 6px; margin-top: 28px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); }
.persona select { width: 100%; min-height: 42px; padding: 0 8px; font-size: 13px; letter-spacing: 0; text-transform: none; }
.persona small { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

/* Cupons de parceiros */
.mono, .coupon-code { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; letter-spacing: .06em; }
.coupon-code { display: inline-block; margin: 0 0 12px !important; padding: 14px 22px; border: 2px dashed var(--line); border-radius: 16px; background: var(--ok-bg); color: var(--ink) !important; font-size: 28px !important; font-weight: 700; }
.validate { max-width: 560px; }
.check-result { max-width: 560px; margin-top: 16px; padding: 24px; border-radius: 22px; border: 1.5px solid var(--rule); background: var(--paper); }
.check-result.ok { border-color: var(--line); }
.check-result.no { border-color: var(--off-rule); }
.check-result.no .coupon-code { border-color: var(--off-rule); background: var(--off-bg); }
.check-result .badge { margin-left: 10px; vertical-align: middle; }
.check-result .meta-list { margin-top: 14px; }

/* Perfil profissional */
.profile-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.profile-layout .section-heading { margin-top: 0; font-size: 22px; }
.profile-form { padding: 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--rule); }
.profile-preview .portal-card { margin-bottom: 28px; }
.profile-preview .meta-list { width: 100%; grid-template-columns: 1fr 1fr; }
.profile-preview .checklist { margin-bottom: 4px; }

/* Responsivo */
@media (max-width: 1100px) {
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }
  .portal { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding: 28px 20px; }
  .portal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .portal { display: block; }
  .sidebar { position: static; height: auto; padding: 20px 16px 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .sidebar .brand { margin-bottom: 16px; }
  .sidebar > .eyebrow { display: none; }
  .sidebar nav { flex-direction: row; overflow-x: auto; margin: 0 -16px; padding: 0 16px 6px; scrollbar-width: none; }
  .sidebar nav::-webkit-scrollbar { display: none; }
  .sidebar nav::before { left: 16px; right: 16px; top: auto; bottom: 14px; width: auto; height: 2px; }
  .sidebar nav a { flex-shrink: 0; padding: 10px 14px 30px; font-size: 14px; white-space: nowrap; text-align: center; }
  .sidebar nav a::before { left: 50%; top: auto; bottom: 8px; margin: 0 0 0 -6px; }
  .sidebar-links { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; margin-top: 0; padding: 8px 0 14px; }
  .sidebar-links a { font-size: 13px; }
  .portal-main { padding: 20px 16px 110px; }
  .demo-strip { flex-direction: column; align-items: flex-start; border-radius: 18px; padding: 14px 16px; }
  .portal-header { margin: 36px 0 28px; }
  .user-chip { display: none; }
  .kpis { gap: 8px; margin-bottom: 28px; }
  .kpis article { padding: 14px; border-radius: 16px; }
  .kpis span { font-size: 11px; }
  .kpis strong { font-size: 30px; }
  .portal-highlight { flex-direction: column; align-items: flex-start; border-radius: 22px; }
  .portal-grid { grid-template-columns: minmax(0, 1fr); }
  input[type="search"] { width: 100%; }
  .toolbar label { flex: 1 1 160px; }
  .result-count { margin: 0; }
  dialog { padding: 28px 22px; border-radius: 22px; }
  dialog h2 { font-size: 26px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  table, tbody, tr, td { display: block; min-width: 0; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody tr { margin-bottom: 10px; padding: 6px 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--rule); }
  td { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 0; }
  td::before { content: attr(data-label); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
  tbody tr td:last-child { border-bottom: 0; }
  tbody tr:last-child td { border-bottom: 1px solid var(--rule); }
  tbody tr:last-child td:last-child { border-bottom: 0; }
  tbody tr:hover td { background: transparent; }
  td > .badge { justify-self: start; }
  td::before { font-size: 10px; letter-spacing: .08em; }
  .toolbar label:first-child { flex-basis: 100%; }
  #portal-status { border-radius: 18px; bottom: 12px; width: calc(100% - 24px); }
  .kpis.four strong { font-size: 26px; }
  .toolbar > .button { flex: 1 1 100%; }
  .alert-list li { flex-direction: column; align-items: flex-start; }
  .session, .day .session { grid-template-columns: 56px minmax(0, 1fr); }
  .session > .badge { grid-column: 2; justify-self: start; }
  .session .row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .checklist li { grid-template-columns: minmax(0, 1fr) auto; }
  .checklist li .button { grid-column: 1 / -1; justify-self: start; }
  .week-nav .push-right { margin-left: 0; }
  .profile-form { padding: 18px; }
  dialog.wide { width: calc(100% - 16px); max-height: 92vh; }
  .cell-meter .meter { max-width: 160px; }
  dialog .eyebrow { padding-right: 52px; line-height: 1.5; }
  .meta-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 16px; }
  .week-nav > .button.small { flex: 1 1 40%; }
  .week-nav .week-label { flex: 1 1 100%; order: -1; }
  .persona { margin: 10px 0 4px; }
  .persona small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar nav a.active::before, .roadmap-step.is-now > span { animation: none; }
  .highlight-line, .portal-card:hover .card-art svg { animation: none; }
  .button, .portal-card, .sidebar nav a::before { transition: none; }
}
.button[aria-disabled="true"] { cursor: default; opacity: .55; }
.button[aria-disabled="true"]:active { transform: none; }
.button.outline[aria-disabled="true"]:hover { background: transparent; }
.button[aria-disabled="true"]:not(.outline):hover { background: var(--ink); }
