/* ============================================================
   SALA DE APLICAÇÃO · a tela da Marina (23/out/2026)
   Sistema oficial Lumini: Lumini White de base, Warm Ivory de respiro,
   escuros como texto, Deep Linen de apoio, Pale Gold só como selo.
   Mirante só em título. Sem glow, sem azul, sem círculo dominante.
   ============================================================ */
.sx{
  --sx-noir:#1E1915; --sx-apoio:#2E2A26; --sx-linen:#8D7B6A; --sx-ivory:#E8E0CE; --sx-white:#F6F2EE; --sx-gold:#CAA967;
  --sx-card:#FCFAF7; --sx-ink:#241F1B; --sx-ink2:#5A5049; --sx-sub:#7E6E5F;
  --sx-line:rgba(30,25,21,.08); --sx-line2:rgba(30,25,21,.14);
  --sx-red:#9E4636; --sx-red-bg:#F6E7E2; --sx-ok:#5F6B4E;
  --sx-shadow:0 1px 2px rgba(30,25,21,.04), 0 12px 28px -18px rgba(30,25,21,.18);
  --sx-serif:'Mirante', Georgia, serif;
  --sx-sans:'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-family:var(--sx-sans); color:var(--sx-ink); display:flex; flex-direction:column; gap:22px; min-width:0;
}
.sx *{ box-sizing:border-box; }
.sx button{ font-family:inherit; cursor:pointer; }
.sx :focus-visible{ outline:2px solid var(--sx-gold); outline-offset:2px; border-radius:8px; }

/* ── botões ── */
.sx-primary{ border:0; background:var(--sx-apoio); color:var(--sx-white); padding:11px 18px; border-radius:11px; font-size:13px; font-weight:500; letter-spacing:.01em; white-space:nowrap; transition:background .15s; }
.sx-primary:hover{ background:var(--sx-noir); }
.sx-ghost{ border:1px solid var(--sx-line2); background:var(--sx-card); color:var(--sx-ink); padding:10px 16px; border-radius:11px; font-size:13px; white-space:nowrap; transition:border-color .15s, background .15s; }
.sx-ghost:hover{ border-color:rgba(30,25,21,.3); background:#fff; }
.sx-sm{ padding:8px 14px; font-size:12.5px; }
.sx-mini{ border:1px solid var(--sx-line2); background:transparent; color:var(--sx-ink); padding:6px 11px; border-radius:9px; font-size:12px; white-space:nowrap; }
.sx-mini:hover{ background:var(--sx-white); border-color:rgba(30,25,21,.28); }
.sx-link{ border:0; background:none; padding:0; color:var(--sx-ink2); font-size:12.5px; text-decoration:underline; text-decoration-color:rgba(141,123,106,.45); text-underline-offset:3px; white-space:nowrap; }
.sx-link:hover{ color:var(--sx-noir); text-decoration-color:var(--sx-gold); }

/* ── abertura ── */
.sx-open{ display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; padding:6px 2px 0; }
.sx-open-l{ min-width:0; max-width:720px; }
.sx-eyebrow{ font-size:12px; color:var(--sx-sub); margin-bottom:8px; }
.sx-eyebrow::first-letter{ text-transform:uppercase; }
.sx-h1{ font-family:var(--sx-serif); font-weight:500; font-size:clamp(30px, 3.4vw, 42px); line-height:1.05; letter-spacing:-.01em; color:var(--sx-noir); margin:0; }
.sx-lead{ margin:10px 0 0; font-size:15px; line-height:1.5; color:var(--sx-ink2); }
.sx-open-r{ display:flex; gap:10px; align-items:center; flex-wrap:wrap; }

/* ── semana ── */
.sx-week{ background:var(--sx-card); border:1px solid var(--sx-line); border-radius:18px; box-shadow:var(--sx-shadow); padding:16px 18px 18px; }
.sx-week-h{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.sx-week-t{ font-family:var(--sx-serif); font-weight:500; font-size:18px; color:var(--sx-noir); margin-right:10px; }
.sx-week-s{ font-size:12.5px; color:var(--sx-sub); }
.sx-week-nav{ display:flex; gap:6px; }
.sx-week-nav button{ border:1px solid var(--sx-line2); background:transparent; color:var(--sx-ink); min-width:36px; height:36px; border-radius:10px; font-size:16px; padding:0 10px; }
.sx-week-nav .sx-hoje{ font-size:12.5px; }
.sx-week-nav button:hover{ background:var(--sx-white); }
.sx-days{ display:grid; grid-template-columns:repeat(7, minmax(0,1fr)); gap:8px; }
.sx-day{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:12px 12px 12px; border-radius:14px; border:1px solid transparent; background:var(--sx-white); color:var(--sx-ink); text-align:left; min-height:96px; transition:background .15s, border-color .15s, transform .15s; position:relative; }
.sx-day:hover{ border-color:var(--sx-line2); }
.sx-day-w{ font-size:12px; color:var(--sx-sub); }
.sx-day-n{ font-family:var(--sx-serif); font-weight:500; font-size:26px; line-height:1; }
.sx-day-dots{ display:flex; gap:4px; align-items:center; flex-wrap:wrap; margin-top:auto; min-height:14px; }
.sx-day-dots i{ width:16px; height:5px; border-radius:3px; background:rgba(141,123,106,.38); }
.sx-day-dots i.on{ background:var(--sx-ok); }
.sx-day-dots em{ font-style:normal; font-size:11.5px; color:var(--sx-sub); }
.sx-day.is-empty .sx-day-dots em{ color:rgba(126,110,95,.75); }
.sx-day.is-past{ opacity:.62; }
.sx-day.is-today::after{ content:''; position:absolute; top:14px; right:12px; width:6px; height:6px; border-radius:2px; background:var(--sx-gold); }
.sx-day.is-sel{ background:var(--sx-apoio); color:var(--sx-white); opacity:1; }
.sx-day.is-sel .sx-day-w, .sx-day.is-sel .sx-day-dots em{ color:rgba(246,242,238,.7); }
.sx-day.is-sel .sx-day-dots i{ background:rgba(246,242,238,.35); }
.sx-day.is-sel .sx-day-dots i.on{ background:#B9C2A6; }

/* ── grade principal ── */
/* 06/nov · pacientes de um lado, estoque do outro: as duas colunas terminam juntas, sem vão */
.sx-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(380px, 100%), 1fr)); gap:22px; margin-bottom:22px; }
.sx-col{ display:flex; flex-direction:column; gap:22px; min-width:0; }
.sx-col > .sx-panel:last-child{ flex:1; }
.sx-panel{ background:var(--sx-card); border:1px solid var(--sx-line); border-radius:18px; box-shadow:var(--sx-shadow); padding:20px 22px; min-width:0; }
.sx-panel-h, .sx-block-h{ display:flex; justify-content:space-between; align-items:flex-end; gap:14px; margin-bottom:14px; flex-wrap:wrap; }
.sx-h2{ font-family:var(--sx-serif); font-weight:500; font-size:22px; line-height:1.15; color:var(--sx-noir); margin:0 10px 0 0; display:inline; }
.sx-panel-s{ font-size:12.5px; color:var(--sx-sub); }
.sx-sub-t{ font-size:12.5px; font-weight:500; color:var(--sx-ink2); margin:0 0 8px; }
.sx-sub-t.is-out{ color:var(--sx-red); }
.sx-foot{ font-size:12px; color:var(--sx-sub); margin-top:8px; line-height:1.5; }
.sx-prog{ width:160px; height:6px; border-radius:4px; background:var(--sx-ivory); overflow:hidden; }
.sx-prog i{ display:block; height:100%; background:var(--sx-ok); border-radius:4px; }

/* ── agenda do dia ── */
.sx-appts{ display:flex; flex-direction:column; gap:10px; }
.sx-appt{ display:grid; grid-template-columns:62px minmax(0,1fr); gap:14px; align-items:start; }
.sx-appt-time{ padding-top:15px; text-align:right; }
.sx-appt-time b{ font-family:var(--sx-serif); font-weight:500; font-size:19px; color:var(--sx-noir); }
.sx-appt-time span{ font-size:11.5px; color:var(--sx-sub); }
.sx-appt-card{ border:1px solid var(--sx-line); border-radius:14px; background:#fff; padding:13px 16px; border-left:3px solid var(--sx-gold); min-width:0; }
.sx-appt.is-done .sx-appt-card{ border-left-color:var(--sx-ok); background:var(--sx-white); }
.sx-appt.is-done .sx-appt-time b{ color:var(--sx-sub); }
.sx-appt-top{ display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; }
.sx-appt-who{ min-width:0; }
.sx-appt-name{ border:0; background:none; padding:0; font-size:15px; font-weight:500; color:var(--sx-noir); text-align:left; }
.sx-appt-name:hover{ text-decoration:underline; text-decoration-color:var(--sx-gold); text-underline-offset:3px; }
.sx-appt-proto{ font-size:12.5px; color:var(--sx-sub); margin-top:2px; }
.sx-appt-act{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
.sx-flag{ border:1px solid rgba(158,70,54,.35); background:var(--sx-red-bg); color:var(--sx-red); font-size:12px; font-weight:500; padding:7px 11px; border-radius:9px; }
.sx-done{ font-size:12.5px; color:var(--sx-ok); font-weight:500; padding:7px 4px; }
.sx-ckbtn{ border:1px solid var(--sx-line2); background:var(--sx-white); color:var(--sx-ink); font-size:12.5px; padding:8px 12px; border-radius:10px; }
.sx-ckbtn span{ color:var(--sx-sub); margin-left:4px; font-variant-numeric:tabular-nums; }
.sx-ckbtn.is-full{ border-color:rgba(95,107,78,.45); color:var(--sx-ok); }
.sx-ckbtn.is-full span{ color:var(--sx-ok); }
.sx-appt.is-open .sx-ckbtn{ background:var(--sx-ivory); }
.sx-comps{ display:flex; flex-wrap:wrap; gap:6px; margin-top:10px; }
.sx-comp{ display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--sx-ink2); background:var(--sx-white); border-radius:8px; padding:5px 10px 5px 6px; }
.sx-comp.is-muted{ color:var(--sx-sub); padding-left:10px; }
.sx-via{ font-style:normal; font-size:10.5px; font-weight:600; letter-spacing:.03em; color:var(--sx-white); background:var(--sx-linen); border-radius:5px; padding:2px 6px; }
.sx-via-EV{ background:var(--sx-apoio); }
.sx-via-SC{ background:#A08C78; }

/* checklist */
.sx-ck{ margin-top:14px; padding-top:14px; border-top:1px dashed var(--sx-line2); display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:6px 14px; }
.sx-ck-i{ display:flex; gap:10px; align-items:flex-start; padding:8px 8px; border-radius:10px; cursor:pointer; transition:background .12s; position:relative; }
.sx-ck-i:hover{ background:var(--sx-white); }
.sx-ck-i input{ position:absolute; opacity:0; width:1px; height:1px; }
.sx-ck-box{ flex:none; width:20px; height:20px; border-radius:6px; border:1.5px solid rgba(30,25,21,.3); background:#fff; margin-top:1px; display:flex; align-items:center; justify-content:center; transition:background .12s, border-color .12s; }
.sx-ck-i.is-on .sx-ck-box{ background:var(--sx-ok); border-color:var(--sx-ok); }
.sx-ck-i.is-on .sx-ck-box::after{ content:''; width:9px; height:5px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg) translate(1px,-1px); }
.sx-ck-i input:focus-visible + .sx-ck-box{ outline:2px solid var(--sx-gold); outline-offset:2px; }
.sx-ck-t{ display:flex; flex-direction:column; min-width:0; }
.sx-ck-t b{ font-size:13px; font-weight:500; color:var(--sx-ink); }
.sx-ck-t small{ font-size:12px; color:var(--sx-sub); line-height:1.4; overflow-wrap:anywhere; }
.sx-ck-i.is-on .sx-ck-t b{ color:var(--sx-sub); }
.sx-ck-i.is-alerta .sx-ck-t small{ color:var(--sx-red); font-weight:500; }
.sx-ck-pe{ grid-column:1 / -1; display:flex; gap:16px; flex-wrap:wrap; padding:8px 8px 0; }

.sx-empty{ display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap; padding:14px 16px; border-radius:12px; background:var(--sx-white); }
.sx-empty span{ font-size:13.5px; color:var(--sx-ink2); line-height:1.5; }

/* ── estoque ── */
.sx-stock > div + div{ margin-top:18px; }
.sx-need-r{ display:grid; grid-template-columns:minmax(0,1fr) 90px 44px; gap:12px; align-items:center; padding:7px 0; border-top:1px solid var(--sx-line); }
.sx-need-r:first-of-type{ border-top:0; }
.sx-need-n{ min-width:0; }
.sx-need-n b{ display:block; font-size:13px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sx-need-n small{ font-size:11.5px; color:var(--sx-sub); }
.sx-need-r.is-short .sx-need-n small{ color:var(--sx-red); font-weight:500; }
.sx-need-bar{ position:relative; height:6px; border-radius:4px; background:var(--sx-ivory); }
.sx-need-bar i{ position:absolute; left:0; top:0; bottom:0; border-radius:4px; background:var(--sx-ok); }
.sx-need-r.is-short .sx-need-bar i{ background:var(--sx-red); }
.sx-need-bar span{ position:absolute; top:-3px; width:2px; height:12px; background:var(--sx-apoio); border-radius:1px; transform:translateX(-1px); }
.sx-need-q{ text-align:right; font-family:var(--sx-serif); font-size:17px; font-variant-numeric:tabular-nums; }
.sx-need-q small{ font-family:var(--sx-sans); font-size:11.5px; color:var(--sx-sub); }
.sx-lot{ display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:10px; align-items:center; padding:7px 0; border-top:1px solid var(--sx-line); }
.sx-lot-n{ min-width:0; }
.sx-lot-n b{ display:block; font-size:12.5px; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sx-lot-n small{ font-size:11.5px; color:var(--sx-sub); }
.sx-lot-d{ font-size:12px; color:var(--sx-ink2); white-space:nowrap; font-variant-numeric:tabular-nums; }
.sx-lot.is-out .sx-lot-d{ color:var(--sx-red); }
.sx-out{ background:var(--sx-red-bg); border-radius:12px; padding:12px 14px 6px; margin-left:-6px; margin-right:-6px; }
.sx-out .sx-lot{ border-top-color:rgba(158,70,54,.14); }
.sx-out .sx-mini{ border-color:rgba(158,70,54,.4); color:var(--sx-red); background:#fff; }
.sx-out .sx-mini:hover{ background:var(--sx-red); color:#fff; }
.sx-out .sx-link{ margin:6px 0 6px; display:inline-block; color:var(--sx-red); }

/* ── esperando data ── */
.sx-wait-r{ display:flex; justify-content:space-between; align-items:center; gap:10px; padding:8px 0; border-top:1px solid var(--sx-line); }
.sx-wait-r:first-of-type{ border-top:0; }
.sx-wait-r b{ display:block; font-size:13px; font-weight:500; }
.sx-wait-r small{ font-size:11.5px; color:var(--sx-sub); }

/* ── guia ilustrado ── */
.sx-block{ min-width:0; }
.sx-guide{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:14px; }
.sx-gcard{ display:flex; flex-direction:column; text-align:left; border:1px solid var(--sx-line); background:var(--sx-card); border-radius:18px; overflow:hidden; padding:0; color:var(--sx-ink); box-shadow:var(--sx-shadow); transition:transform .18s ease, box-shadow .18s ease, border-color .18s; min-width:0; }
.sx-gcard:hover{ transform:translateY(-2px); border-color:var(--sx-line2); box-shadow:0 2px 4px rgba(30,25,21,.05), 0 22px 40px -24px rgba(30,25,21,.24); }
.sx-gcard.is-big{ grid-column:span 4; display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); }
.sx-gcard.is-big .sx-gart{ border-bottom:0; border-right:1px solid var(--sx-line); padding:18px 22px 10px; display:flex; align-items:center; }
.sx-gcard.is-big .sx-gtxt{ padding:24px 26px; display:flex; flex-direction:column; justify-content:center; }
.sx-gcard.is-big .sx-gtxt li{ font-size:13.5px; }
.sx-gart{ background:var(--sx-white); padding:14px 14px 8px; border-bottom:1px solid var(--sx-line); }
.sx-gart svg{ display:block; width:100%; height:auto; max-height:190px; }
.sx-gcard.is-big .sx-gart{ justify-content:center; }
.sx-gcard.is-big .sx-gart svg{ max-height:320px; }
.sx-gcard.is-alert .sx-gart{ background:var(--sx-red-bg); }
.sx-gtxt{ padding:14px 16px 16px; }
.sx-gt{ font-family:var(--sx-serif); font-weight:500; font-size:17px; color:var(--sx-noir); line-height:1.2; }
.sx-gcard.is-big .sx-gt{ font-size:22px; }
.sx-gs{ font-size:12px; color:var(--sx-sub); margin-top:2px; }
.sx-gtxt ul{ margin:10px 0 0; padding:0; list-style:none; display:flex; flex-direction:column; gap:5px; }
.sx-gtxt li{ font-size:12.5px; line-height:1.45; color:var(--sx-ink2); padding-left:12px; position:relative; }
.sx-gtxt li::before{ content:''; position:absolute; left:0; top:.62em; width:5px; height:1.5px; background:var(--sx-linen); }
.sx-gcard.is-alert .sx-gt{ color:var(--sx-red); }

/* desenho (compartilhado com o modal) */
.il-skin{ fill:#F6F2EE; stroke:#1E1915; stroke-width:1.3; stroke-linejoin:round; }
.il-line{ fill:none; stroke:#1E1915; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.il-fill{ fill:#FCFAF7; }
.il-crest{ fill:none; stroke:#B08A2E; stroke-width:1.6; stroke-dasharray:5 4; stroke-linecap:round; }
.il-finger{ stroke:rgba(141,123,106,.42); stroke-linecap:round; }
.il-palm{ fill:rgba(141,123,106,.26); }
.il-troc{ fill:none; stroke:#8D7B6A; stroke-width:1.3; }
.il-gold{ fill:#B08A2E; }
.il-alvo circle{ fill:#FCFAF7; stroke:#1E1915; stroke-width:1.5; }
.il-alvo line{ stroke:#1E1915; stroke-width:1.5; stroke-linecap:round; }
.il-zone-f{ fill:rgba(202,169,103,.3); }
.il-liq{ fill:rgba(202,169,103,.38); }
.il-arrow-g{ fill:none; stroke:#B08A2E; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.il-fold{ fill:none; stroke:#8D7B6A; stroke-width:1; stroke-linecap:round; }
.il-q{ fill:none; stroke:#8D7B6A; stroke-width:1; stroke-dasharray:3 3; }
.il-bone{ fill:none; stroke:#8D7B6A; stroke-width:2.6; stroke-linecap:round; }
.il-bone-f{ fill:rgba(141,123,106,.18); stroke:#8D7B6A; stroke-width:1.4; stroke-dasharray:3 2.5; }
.il-zone{ fill:rgba(202,169,103,.26); stroke:rgba(176,138,46,.55); stroke-width:1; stroke-dasharray:4 3; }
.il-ring{ fill:rgba(255,255,255,.7); stroke:#1E1915; stroke-width:1.1; }
.il-dot{ fill:#CAA967; stroke:#1E1915; stroke-width:1; }
.il-mark{ fill:#2E2A26; }
.il-x line{ stroke:#9E4636; stroke-width:1.8; stroke-linecap:round; }
.il-avoid{ fill:none; stroke:#9E4636; stroke-width:2; stroke-dasharray:5 4; stroke-linecap:round; }
.il-lead{ fill:none; stroke:#5A5049; stroke-width:.9; }
.il-t{ font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:11px; fill:#5A5049; paint-order:stroke; stroke:#F6F2EE; stroke-width:3.2px; stroke-linejoin:round; }
.il-musc-f{ fill:rgba(158,110,92,.16); }
.il-strong{ fill:#1E1915; font-weight:500; }
.il-sub{ fill:#8D7B6A; font-size:10px; }
.il-avoid-t{ fill:#9E4636; font-weight:500; }
.il-n{ font-family:'Mirante', Georgia, serif; font-weight:500; font-size:24px; fill:#1E1915; }
.il-n-s{ font-size:15px; }
.il-muscle{ fill:rgba(158,110,92,.22); }
.il-fat{ fill:#F6EDD9; }
.il-derm{ fill:none; stroke:#C9A88E; stroke-width:5; }
.il-epi{ fill:#D9BFA8; }
.il-derme{ fill:#EBD6C2; }
.il-vein{ fill:rgba(110,46,36,.35); stroke:#6E2E24; stroke-width:1; }
.il-needle{ stroke:#2E2A26; stroke-width:1.8; stroke-linecap:round; }
.il-syr, .il-cell{ fill:#fff; stroke:#2E2A26; stroke-width:1.1; }
.il-cell{ stroke:rgba(30,25,21,.18); }
.il-syr-l{ stroke:#2E2A26; stroke-width:7; stroke-linecap:round; opacity:.85; }
.il-arc{ fill:none; stroke:#B08A2E; stroke-width:1.2; }
.il-track{ fill:none; stroke:#9E4636; stroke-width:2; stroke-linejoin:round; }
.il-drop{ fill:rgba(202,169,103,.55); stroke:#B08A2E; stroke-width:1; }

/* modal do guia e do fluxograma */
.sx-gmodal-ov{ position:fixed; inset:0; z-index:10040; background:rgba(30,25,21,.42); display:flex; align-items:center; justify-content:center; padding:20px; animation:sxFade .16s ease; }
@keyframes sxFade{ from{ opacity:0; } to{ opacity:1; } }
.sx-gmodal{ position:relative; width:100%; max-width:980px; max-height:92vh; overflow:auto; background:#FCFAF7; border-radius:22px; box-shadow:0 30px 70px -20px rgba(30,25,21,.4); display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; color:#241F1B; }
.sx-gm-art{ background:#F6F2EE; padding:28px; display:flex; align-items:center; border-right:1px solid rgba(30,25,21,.08); }
.sx-gm-art svg{ width:100%; height:auto; }
.sx-gm-body{ padding:30px 30px 26px; min-width:0; }
.sx-gm-eyebrow{ font-size:12px; color:#7E6E5F; }
.sx-gm-body h3{ font-family:'Mirante', Georgia, serif; font-weight:500; font-size:28px; line-height:1.1; color:#1E1915; margin:4px 0 2px; }
.sx-gm-body .sx-gs{ font-size:13px; color:#7E6E5F; }
.sx-gm-body ol{ margin:18px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:9px; }
.sx-gm-body ol li{ font-size:14px; line-height:1.5; color:#3A332D; padding-left:4px; }
.sx-gm-body ol li::marker{ color:#8D7B6A; font-size:12.5px; }
.sx-gm-vias{ display:flex; gap:8px; flex-wrap:wrap; margin-top:16px; }
.sx-gm-vias span{ font-size:12.5px; background:#F6F2EE; border-radius:9px; padding:6px 10px; color:#5A5049; }
.sx-gm-vias b{ color:#1E1915; font-weight:500; }
.sx-gm-nav{ display:flex; justify-content:space-between; gap:10px; margin-top:24px; padding-top:16px; border-top:1px solid rgba(30,25,21,.08); flex-wrap:wrap; }
.sx-gm-nav button{ border:1px solid rgba(30,25,21,.14); background:transparent; border-radius:10px; padding:9px 13px; font:inherit; font-size:12.5px; color:#241F1B; cursor:pointer; }
.sx-gm-nav button:hover{ background:#F6F2EE; }
.sx-gclose{ position:absolute; top:12px; right:14px; width:38px; height:38px; border-radius:10px; border:0; background:rgba(255,255,255,.8); font-size:22px; color:#2E2A26; cursor:pointer; z-index:1; }
.sx-gclose:hover{ background:#fff; }
.sx-tab{ width:100%; border-collapse:collapse; margin-top:16px; font-size:13px; }
.sx-tab th{ text-align:left; font-weight:500; font-size:12px; color:#7E6E5F; padding:6px 8px 8px 0; border-bottom:1px solid rgba(30,25,21,.12); }
.sx-tab td{ padding:9px 8px 9px 0; border-bottom:1px solid rgba(30,25,21,.07); vertical-align:top; color:#5A5049; }
.sx-tab td b{ color:#1E1915; font-weight:500; white-space:nowrap; }

/* fluxograma */
.sx-flow-m{ display:block; max-width:620px; }
.sx-flow{ display:flex; flex-direction:column; align-items:stretch; margin-top:18px; }
.sx-fn{ display:flex; gap:12px; align-items:flex-start; border:1px solid rgba(30,25,21,.14); background:#fff; border-radius:12px; padding:11px 14px; font-size:13.5px; }
.sx-fn b{ font-weight:500; color:#1E1915; }
.sx-fn small{ display:block; font-size:12px; color:#7E6E5F; margin-top:2px; line-height:1.45; }
.sx-fn em{ display:inline-block; font-style:normal; font-size:11px; color:#5A5049; background:#F6F2EE; border-radius:5px; padding:1px 7px; margin:5px 6px 0 0; }
.sx-fn em.c{ color:#9E4636; background:#F6E7E2; }
.sx-fn.is-crit{ border-color:rgba(158,70,54,.4); }
.sx-fn.is-cap{ background:#2E2A26; color:#F6F2EE; border-color:#2E2A26; justify-content:center; text-align:center; border-radius:999px; font-size:13px; }
.sx-fn.is-seg{ flex-direction:column; gap:2px; background:#F6F2EE; }
.sx-fn-i{ flex:none; width:24px; height:24px; border-radius:7px; background:#E8E0CE; color:#1E1915; font-family:'Mirante', Georgia, serif; font-size:13px; display:flex; align-items:center; justify-content:center; }
.sx-fa{ width:1.5px; height:16px; background:#8D7B6A; margin:0 auto; position:relative; }
.sx-fa::after{ content:''; position:absolute; bottom:-1px; left:50%; width:7px; height:7px; border-right:1.5px solid #8D7B6A; border-bottom:1.5px solid #8D7B6A; transform:translate(-50%,0) rotate(45deg); }

/* ── POPs ── */
.sx-pops{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap:12px; }
.sx-pop{ background:var(--sx-card); border:1px solid var(--sx-line); border-radius:16px; padding:14px 16px 14px 18px; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:14px; row-gap:2px; align-items:center; position:relative; overflow:hidden; }
.sx-pop > :not(.sx-pop-a){ grid-column:1; }
.sx-pop::before{ content:''; position:absolute; left:0; top:16px; bottom:16px; width:2px; background:var(--sx-gold); border-radius:2px; }
.sx-pop-code{ font-size:11px; color:var(--sx-sub); font-variant-numeric:tabular-nums; }
.sx-pop-n{ font-family:var(--sx-serif); font-weight:500; font-size:16px; color:var(--sx-noir); line-height:1.25; }
.sx-pop-m{ font-size:12px; color:var(--sx-sub); }
.sx-pop-a{ grid-column:2; grid-row:1 / span 3; display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }

/* ── histórico recolhido ── */
.sx-hist{ background:var(--sx-card); border:1px solid var(--sx-line); border-radius:18px; padding:4px 22px; }
.sx-hist > summary{ list-style:none; cursor:pointer; padding:16px 0; display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; }
.sx-hist > summary::-webkit-details-marker{ display:none; }
.sx-hist > summary::after{ content:'›'; margin-left:auto; font-size:20px; color:var(--sx-sub); transition:transform .15s; }
.sx-hist[open] > summary::after{ transform:rotate(90deg); }
.sx-hist .sx-h2{ font-size:18px; }
.sx-hist-b{ padding-bottom:18px; }
.sx-an .an-sala-l{ display:grid; grid-template-columns:44px minmax(0,1fr) auto; gap:12px; align-items:center; padding:9px 0; border-top:1px solid var(--sx-line); }
.sx-an .an-sala-l:first-of-type{ border-top:0; }
.sx-an .an-sala-q{ display:flex; flex-direction:column; align-items:center; background:var(--sx-white); border-radius:10px; padding:5px 0; }
.sx-an .an-sala-q span{ font-size:10.5px; color:var(--sx-sub); }
.sx-an .an-sala-q b{ font-family:var(--sx-serif); font-weight:500; font-size:13px; color:var(--sx-noir); white-space:nowrap; }
.sx-an .an-sala-c{ display:flex; flex-direction:column; min-width:0; }
.sx-an .an-sala-nome{ font-size:13px; font-weight:500; }
.sx-an .an-sala-dose{ font-size:12px; color:var(--sx-ink2); }
.sx-an .an-sala-c .fi-sub{ font-size:11.5px; color:var(--sx-sub); }
.sx-an .an-sala-l.is-ok .an-sala-q{ background:rgba(95,107,78,.12); }
.sx-an .an-sala-b{ border:1px solid var(--sx-line2); background:transparent; color:var(--sx-ink); padding:6px 10px; border-radius:9px; font-size:11.5px; white-space:nowrap; }
.sx-an .marina-empty{ font-size:12.5px; color:var(--sx-sub); }

/* ── responsivo ── */
@media (max-width: 1280px){
  .sx-guide{ grid-template-columns:repeat(3, minmax(0,1fr)); }
  .sx-gcard.is-big{ grid-column:span 3; }
}
@media (max-width: 1100px){
  .sx-guide{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .sx-gcard.is-big{ grid-column:span 2; grid-template-columns:minmax(0,1fr); }
  .sx-gcard.is-big .sx-gart{ border-right:0; border-bottom:1px solid var(--sx-line); }
  .sx-gmodal{ grid-template-columns:minmax(0,1fr); }
  .sx-gm-art{ border-right:0; border-bottom:1px solid rgba(30,25,21,.08); }
}
@media (max-width: 720px){
  .sx-days{ grid-template-columns:repeat(7, minmax(64px,1fr)); overflow-x:auto; scrollbar-width:none; }
  .sx-days::-webkit-scrollbar{ display:none; }
  .sx-day{ min-height:84px; padding:10px; }
  .sx-guide{ grid-template-columns:minmax(0,1fr); }
  .sx-gcard.is-big{ grid-column:auto; }
  .sx-ck{ grid-template-columns:minmax(0,1fr); }
  .sx-appt{ grid-template-columns:minmax(0,1fr); gap:4px; }
  .sx-appt-time{ text-align:left; padding:0 0 0 2px; }
  .sx-panel{ padding:16px; }
  .sx-open-r{ width:100%; }
  .sx-open-r .sx-primary{ flex:1; }
  .sx-week-h{ align-items:flex-start; }
  .sx-week-s{ display:block; margin-top:4px; }
  .sx-appt-act .sx-done{ padding:7px 0; }
  .sx-pop{ grid-template-columns:minmax(0,1fr); }
  .sx-pop-a{ grid-column:1; grid-row:auto; justify-content:flex-start; margin-top:8px; }
}

.il-vol .il-t{ font-size:12.5px; }
.il-vol .il-sub{ font-size:11px; }
.il-vol .il-n{ font-size:26px; }
