/* The doctor's area, E2 lab: the Evidocta design system in its light theme (docs/design/system/,
   components/bundle.css), plus the blocks the three variations share. Token names, not raw hex. */

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0; }
button, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: var(--radius-xs); }
h1, h2, h3 { font-weight: 400; letter-spacing: -.045em; line-height: 1.02; margin: 0; color: var(--ink); text-wrap: balance; }
h1 em, h2 em, h3 em { color: var(--emphasis-grey); font-style: normal; }
.wrap { width: min(var(--wrap-max), 100% - 32px); margin-inline: auto; }
.small, small { font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.ic { width: 22px; height: 22px; display: inline-block; background: currentColor; flex: none;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* Logo, header */
.logo { font-weight: 700; font-size: 22px; letter-spacing: -.04em; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo i { width: 22px; height: 22px; border-radius: var(--radius-xs); background: var(--ink); display: grid; place-items: center; }
.logo i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lavender); }
.logo small { font-weight: 400; letter-spacing: 0; font-size: 13px; margin-left: 4px; }
.top { position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--page) 85%, transparent); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); gap: 16px; }
.top .who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.top .who img { width: 34px; height: 34px; border-radius: var(--radius-xs); object-fit: cover; }

/* Buttons, eyebrow, chips */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--radius-pill); border: 0;
  background: var(--ink); color: var(--on-ink); font: 500 14px/1 var(--font-sans); text-decoration: none; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-btn-hover); }
.btn-ghost { background: var(--fill-secondary); color: var(--ink); }
.btn-ghost:hover { box-shadow: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
/* The eyebrow is text only: no rule before it (owner's decision of 2026-11-04, card W7 · G1). */
.lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border-radius: var(--radius-xs); background: var(--violet-tint); color: var(--violet-ink); font-weight: 600; white-space: nowrap; }
.lbl::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.lbl[data-tone="alta"], .lbl[data-tone="corrigir"], .lbl[data-tone="nao-cita"] { background: var(--coral-tint); color: var(--coral-ink); }
.lbl[data-tone="media"], .lbl[data-tone="pendente"] { background: var(--sand); color: var(--ink); }
.lbl[data-tone="baixa"], .lbl[data-tone="aprovo"] { background: var(--sage); color: var(--ink); }
.lbl[data-tone="none"] { background: var(--fill-muted); color: var(--muted); }
.vchip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: var(--radius-sm); padding: 7px 10px; font-size: 12px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-vchip); }
.vchip .ic { width: 15px; height: 15px; color: var(--violet-ink); }
.preview-note { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--coral-ink); background: var(--coral-tint); padding: 8px 12px; border-radius: var(--radius-sm); }
.preview-note .ic { width: 16px; height: 16px; }

/* Cards */
.card { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--hairline); padding: clamp(18px, 2.4vw, 26px); display: grid; gap: 14px; align-content: start; min-width: 0; }
.card > h2, .card > header h2 { font-size: clamp(22px, 2.2vw, 28px); }
.card > header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.card .sub { color: var(--muted); font-size: 14px; max-width: 60ch; }
.panel { border-radius: var(--radius-panel); }
.tint-lavender { background: var(--lavender); box-shadow: none; }
.tint-sage { background: var(--sage); box-shadow: none; }
.tint-blue { background: var(--pale-blue); box-shadow: none; }
.tint-sand { background: var(--sand); box-shadow: none; }

/* Heading block */
.hello { display: grid; gap: 14px; }
.hello h1 { font-size: clamp(34px, 4.4vw, 58px); }
.hello .lead { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); max-width: 52ch; }
.mini-ai { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.mini-ai .stack { display: flex; }
.mini-ai .stack span { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--card); display: grid; place-items: center; margin-right: -8px; box-shadow: var(--ring-stack); }
.mini-ai .stack img { width: 17px; height: 17px; }
.mini-ai p { margin-left: 12px; }

/* Engine tiles: one per engine, never summed */
.tiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: var(--gap-grid); }
.tile { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--hairline); padding: 20px; display: grid; gap: 10px; align-content: start; }
.tile .eng { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; }
.tile .eng img { width: 22px; height: 22px; }
.tile .num { font-size: clamp(40px, 4.4vw, 56px); letter-spacing: -.06em; line-height: .95; }
.tile .num small { font-size: 18px; letter-spacing: -.02em; color: var(--muted); margin-left: 6px; }
.tile .what { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.tile .also { font-size: 13px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--ink); }
.tile .also b { font-weight: 600; }
.bar { height: 8px; border-radius: var(--radius-xs); background: var(--fill-muted); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--violet); border-radius: inherit; }
.mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mini-tiles > div { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border-radius: var(--radius-md); background: var(--panel); font-size: 13px; }
.mini-tiles img { width: 18px; height: 18px; grid-row: span 2; }
.mini-tiles b { font-size: 20px; font-weight: 400; letter-spacing: -.04em; }
.mini-tiles span { color: var(--muted); }
.note { font-size: 13px; color: var(--muted); max-width: 70ch; }

/* Pergunta por pergunta: one square per round */
.mx { display: grid; gap: 4px; }
.mx-row { display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--cols), 46px) 116px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.mx-head { position: sticky; top: var(--header-height); background: var(--card); z-index: 2; border-bottom: 1px solid var(--line); padding: 8px 0; }
.mx-head img { width: 18px; height: 18px; margin: auto; }
.mx-head span { font-size: 11px; color: var(--muted); text-align: center; }
.mx-q { font-size: 14px; line-height: 1.3; min-width: 0; }
.mx-q small { display: block; font-size: 12px; }
.mx-layer { font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 0 4px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.mx-layer small { letter-spacing: 0; text-transform: none; }
.rounds { display: flex; gap: 3px; justify-content: center; }
.rounds i { width: 10px; height: 10px; border-radius: var(--radius-dot); background: var(--line); }
.rounds i.on { background: var(--violet); }
.rounds i.off { background: repeating-linear-gradient(45deg, var(--line) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--line); }
.rounds .eng-mini { display: none; }
.mx-ov { font-size: 11.5px; text-align: center; }
.mx-ov .eng-g { display: none; }
.mx-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); align-items: center; }
.mx-legend .rounds { display: inline-flex; }
@media (max-width: 760px) {
  .mx-head { display: none; }
  .mx-row { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); row-gap: 6px; }
  .mx-q, .mx-ov { grid-column: 1 / -1; text-align: left; }
  .rounds { flex-wrap: wrap; justify-content: flex-start; }
  .rounds .eng-mini { display: block; width: 100%; height: 14px; }
  .rounds .eng-mini img { width: 14px; height: 14px; }
  .mx-ov .eng-g { display: inline; color: var(--muted); margin-right: 6px; }
}

/* Stacked bars, rows of bars */
.stack-rows { display: grid; gap: 10px; }
.stack-row { display: grid; grid-template-columns: 110px 1fr 70px; gap: 10px; align-items: center; font-size: 13px; }
.stack-row .s { display: flex; height: 12px; border-radius: var(--radius-xs); overflow: hidden; background: var(--fill-muted); }
.stack-row .s i { display: block; height: 100%; }
.stack-row .v { text-align: right; color: var(--muted); }
.tone-good { background: var(--violet); } .tone-warn { background: var(--star-gold); } .tone-bad { background: var(--coral-ink); } .tone-none { background: var(--dash); }
.keys { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.keys span { display: inline-flex; align-items: center; gap: 6px; }
.keys i { width: 10px; height: 10px; border-radius: var(--radius-dot); display: inline-block; }

/* Folded text */
.fold { border-radius: var(--radius-md); background: var(--card); box-shadow: var(--hairline); }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "+"; color: var(--muted); font-size: 20px; grid-row: 1 / span 2; grid-column: 2; }
.fold[open] > summary::after { content: "–"; }
.fold > summary b { font-weight: 500; font-size: 15.5px; }
.fold > summary span { color: var(--muted); font-size: 13px; }
.fold > .in { padding: 0 16px 16px; display: grid; gap: 12px; font-size: 14.5px; }
.fold-list { display: grid; gap: 8px; }
.finding { border-left: 3px solid var(--line); }
.finding[data-level="alta"] { border-left-color: var(--coral-ink); }
.finding[data-level="media"] { border-left-color: var(--star-gold); }
.finding[data-level="baixa"] { border-left-color: var(--trend-green); }
.finding dl { margin: 0; display: grid; gap: 10px; }
.finding dt { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.finding dd { margin: 2px 0 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl .n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.plain { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.actions > div { padding: 14px; border-radius: var(--radius-md); background: var(--panel); display: grid; gap: 6px; font-size: 13.5px; align-content: start; }
.actions b { font-weight: 600; font-size: 14.5px; }
.actions small { font-size: 12px; }

/* Verified profile, as the homepage's */
.profile { background: var(--card); border-radius: var(--radius-card); box-shadow: var(--shadow-card), var(--hairline); overflow: hidden; }
.browser { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); min-width: 0; }
.browser i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); flex: none; }
.browser span { margin-left: 10px; background: var(--page); padding: 4px 12px; border-radius: var(--radius-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pbody { display: grid; grid-template-columns: .85fr 1fr; gap: 22px; padding: 22px; }
.profile.narrow .pbody { grid-template-columns: 1fr; }
.profile.narrow .pphoto { min-height: 180px; }
@media (max-width: 560px) { .pbody { grid-template-columns: 1fr; padding: 16px; } }
.pphoto { position: relative; border-radius: var(--radius-md); background: var(--lavender); min-height: 260px; overflow: hidden; display: grid; place-items: center; }
.pphoto .ph { display: grid; justify-items: center; gap: 8px; color: var(--violet-ink); font-size: 13px; text-align: center; padding: 20px 20px 56px; }
.pphoto .ph b { width: 76px; height: 76px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 28px; font-weight: 400; letter-spacing: -.04em; color: var(--ink); }
.pphoto .vchip { position: absolute; left: 12px; bottom: 12px; }
.pinfo { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pinfo h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.05; }
.pinfo .role { color: var(--muted); font-size: 14px; }
.ptags { display: flex; flex-wrap: wrap; gap: 8px; }
.ptags span { font-size: 13px; padding: 7px 12px; border-radius: var(--radius-sm); color: var(--ink); background: var(--page); }
.ptags span:nth-child(1) { background: var(--sage); } .ptags span:nth-child(2) { background: var(--pale-blue); } .ptags span:nth-child(3) { background: var(--sand); }
.pfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pfacts div { border-radius: var(--radius-md); box-shadow: var(--hairline); padding: 10px; font-size: 12.5px; display: grid; gap: 6px; color: var(--ink); line-height: 1.25; align-content: start; overflow-wrap: break-word; hyphens: auto; }
.pfacts div span { width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--page); display: grid; place-items: center; }
.pfacts .ic { width: 16px; height: 16px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--violet-tint); }
.contact .ic { width: 20px; height: 20px; color: var(--violet-ink); }
.contact b { display: block; font-weight: 600; font-size: 14px; }
.contact small { display: block; font-size: 12px; }
.pfaq { display: grid; border-top: 1px solid var(--line); }
.pfaq details { border-bottom: 1px solid var(--line); padding: 9px 0; }
.pfaq summary { cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 500; display: flex; justify-content: space-between; }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; color: var(--muted); }
.pfaq details[open] summary::after { content: "–"; }
.pfaq p { font-size: 13px; color: var(--muted); margin-top: 4px; }
.readby { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.readby .ais { display: flex; gap: 4px; flex-wrap: wrap; }
.readby .ais img { width: 22px; height: 22px; padding: 4px; border-radius: var(--radius-xs); background: var(--page); box-sizing: content-box; }

/* Approval, item by item */
.approve { display: grid; gap: 18px; }
.approve h3 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ap-group { display: grid; gap: 8px; }
.ap-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 14px 16px; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--hairline); align-items: start; }
.ap-item[data-decisao="aprovo"] { box-shadow: inset 0 0 0 1px var(--trend-green); background: color-mix(in srgb, var(--sage) 40%, var(--card)); }
.ap-item[data-decisao="corrigir"] { box-shadow: inset 0 0 0 1px var(--coral-ink); background: color-mix(in srgb, var(--coral-tint) 60%, var(--card)); }
.ap-item .lab { font-size: 12.5px; color: var(--muted); }
.ap-item .val { font-size: 15px; overflow-wrap: anywhere; }
.ap-item .val ul { margin: 0; padding-left: 18px; }
.ap-item .src { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.ap-item .src .ic { width: 13px; height: 13px; color: var(--violet-ink); }
.ap-btns { display: flex; gap: 6px; }
.ap-btns button { border: 0; cursor: pointer; padding: 8px 13px; border-radius: var(--radius-pill); background: var(--fill-secondary); font-size: 13px; font-weight: 500; white-space: nowrap; }
.ap-btns button[aria-pressed="true"][data-acao="aprovo"] { background: var(--ink); color: var(--on-ink); }
.ap-btns button[aria-pressed="true"][data-acao="corrigir"] { background: var(--coral-ink); color: var(--on-ink); }
.ap-fix { grid-column: 1 / -1; display: grid; gap: 6px; }
.ap-fix[hidden] { display: none; }
.ap-fix label, .ask label { font-size: 12.5px; color: var(--muted); }
textarea { width: 100%; min-height: 70px; resize: vertical; border: 0; border-radius: var(--radius-sm); padding: 10px 12px; background: var(--card); box-shadow: var(--hairline); font-size: 14px; }
@media (max-width: 560px) { .ap-item { grid-template-columns: 1fr; } }

/* Open items she answers */
.asks { display: grid; gap: 18px; }
.ask-group { display: grid; gap: 8px; }
.ask-group h3 { font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ask { padding: 14px 16px; border-radius: var(--radius-md); background: var(--card); box-shadow: var(--hairline); display: grid; gap: 8px; }
.ask[data-respondida="true"] { box-shadow: inset 0 0 0 1px var(--trend-green); }
.ask p { font-size: 14.5px; }

/* Progress */
.progress { display: grid; gap: 10px; }
.progress .row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.progress .row span { display: inline-flex; align-items: center; gap: 8px; }
.progress .row .ic { width: 18px; height: 18px; }
.progress .row b { font-weight: 600; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--fill-muted) 0); display: grid; place-items: center; flex: none; }
.ring span { width: 64px; height: 64px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 20px; letter-spacing: -.04em; }

.foot { padding: 40px 0 60px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
