/* ============================================================
   YCI · Camada de PROTÓTIPO (modo cliente / apresentação)
   Sobre os wireframes existentes. Esconde notas/pins do designer,
   apresenta cada tela num device frame navegável, com hotspots
   dos fluxos-chave. Chrome neutro de propósito — segue wireframe.
   Prefixo .yci- para não colidir com .wf-* nem .dc-*.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Archivo+Black&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  /* Marca Bertolani.cc — neo-grotesque editorial · canvas claro · acento azul-elétrico · cantos retos */
  --yci-navy:   #2347FF;   /* acento (electric blue)          */
  --yci-navy-2: #1A38D6;   /* acento hover/press              */
  --yci-paper:  #F4F4F3;   /* superfície recuada (surface-2)  */
  --yci-stage:  #FBFBFA;   /* fundo do palco (paper)          */
  --yci-bar:    #FFFFFF;   /* barra de ferramentas (surface)  */
  --yci-ink:    #0A0A0B;   /* texto primário (ink-900)        */
  --yci-muted:  #6E6E76;   /* texto secundário (ink-500)      */
  --yci-line:   #E3E3E7;   /* bordas (ink-200)                */
  --yci-line-2: #C3C3CB;   /* bordas fortes (ink-300)         */
  --yci-ui: 'Archivo', ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --yci-mono: 'Space Mono', ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --yci-display: 'Archivo Black', 'Archivo', sans-serif;
  --yci-bar-h: 56px;
}

/* ---------- Shell de tela cheia do protótipo ---------- */
.yci-proto {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column;
  background: var(--yci-stage);
  font-family: var(--yci-ui); color: var(--yci-ink);
  overscroll-behavior: none;
}

/* ---------- Barra de ferramentas (topo) ---------- */
.yci-bar {
  flex: 0 0 auto; height: var(--yci-bar-h);
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; background: var(--yci-bar);
  border-bottom: 1px solid var(--yci-line);
  box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 6px 18px rgba(40,40,40,.05);
  position: relative; z-index: 3;
}
.yci-brand { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.yci-brand .mono { width: 22px; height: 22px; border-radius: 4px; flex: 0 0 auto; display: block; }
.yci-brand .nm { font-family: var(--yci-display); font-size: 13px; letter-spacing: -.01em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.yci-brand .wf { font-family: var(--yci-mono); font-size: 9.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yci-navy); border: 1px solid var(--yci-line-2);
  border-radius: 3px; padding: 2px 6px; white-space: nowrap; }
.yci-bar .sp { flex: 1 1 auto; }

.yci-now { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.yci-now .t { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; max-width: 42vw; }
.yci-now .s { font-family: var(--yci-mono); font-size: 10px; color: var(--yci-muted);
  letter-spacing: .04em; white-space: nowrap; }

/* segmented device toggle */
.yci-seg { display: inline-flex; background: var(--yci-paper); border: 1px solid var(--yci-line-2);
  border-radius: 5px; padding: 2px; gap: 2px; }
.yci-seg button { border: none; background: transparent; cursor: pointer; font-family: inherit;
  font-size: 11.5px; font-weight: 600; color: var(--yci-muted); padding: 5px 12px; border-radius: 3px;
  display: inline-flex; align-items: center; gap: 6px; transition: background .12s, color .12s; }
.yci-seg button.on { background: #fff; color: var(--yci-navy);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px rgba(35,71,255,.18); }
.yci-seg button svg { width: 14px; height: 14px; }

/* plain pill buttons */
.yci-btn { border: 1px solid var(--yci-line-2); background: #fff; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 600; color: var(--yci-ink);
  height: 32px; padding: 0 12px; border-radius: 4px; display: inline-flex; align-items: center;
  gap: 7px; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.yci-btn:hover { background: var(--yci-paper); }
.yci-btn.on { border-color: var(--yci-navy); color: var(--yci-navy); background: rgba(35,71,255,.06); }
.yci-btn svg { width: 14px; height: 14px; }
.yci-btn.ghost { background: transparent; border-color: transparent; color: var(--yci-muted); }
.yci-btn.ghost:hover { background: var(--yci-paper); color: var(--yci-ink); }

/* ---------- Palco + device frame ---------- */
.yci-stage { flex: 1 1 auto; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 26px 76px; box-sizing: border-box; }

.yci-device { display: flex; flex-direction: column; background: #fff;
  box-shadow: 0 10px 50px rgba(30,28,24,.16), 0 2px 8px rgba(30,28,24,.08);
  max-width: 100%; box-sizing: border-box; }
.yci-device.is-mobile { border-radius: 30px; padding: 8px; background: #0A0A0B; }
.yci-device.is-desktop { border-radius: 6px; padding: 0; border: 1px solid var(--yci-line-2); }

/* Modo TELA CHEIA: sem moldura, a tela preenche o viewport do navegador */
.yci-stage.full { padding: 0; }
.yci-device.frameless { background: transparent; padding: 0; border: none; box-shadow: none;
  border-radius: 0; width: 100%; max-width: 100%; align-items: center; }
.yci-device.frameless .yci-viewport { border-radius: 0; }
.yci-device.frameless .yci-content .wf-screen { border-radius: 0 !important; }

/* scrim transparente para fechar composer/popover ao clicar fora */
.yci-popscrim { position: fixed; inset: 0; z-index: 79; background: transparent; }

/* browser chrome (desktop) */
.yci-chrome { flex: 0 0 auto; height: 34px; display: flex; align-items: center; gap: 14px;
  padding: 0 14px; background: var(--yci-paper); border-bottom: 1px solid var(--yci-line);
  border-radius: 8px 8px 0 0; }
.yci-chrome .dots { display: flex; gap: 6px; }
.yci-chrome .dots i { width: 10px; height: 10px; border-radius: 50%; background: #d4d0c7; display: block; }
.yci-chrome .url { flex: 1; height: 18px; background: #fff; border: 1px solid var(--yci-line);
  border-radius: 9px; display: flex; align-items: center; padding: 0 10px;
  font-family: var(--yci-mono); font-size: 10px; color: var(--yci-muted); }

/* notch (mobile) */
.yci-notch { flex: 0 0 auto; height: 18px; display: flex; align-items: center; justify-content: center; }
.yci-notch i { width: 92px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); display: block; }

/* scroll viewport — the page scrolls here like a real device */
.yci-viewport { overflow: auto; background: #fff; position: relative;
  -webkit-overflow-scrolling: touch; }
.yci-device.is-mobile .yci-viewport { border-radius: 23px; }
.yci-device.is-desktop .yci-viewport { border-radius: 0 0 8px 8px; }
.yci-viewport::-webkit-scrollbar { width: 8px; height: 8px; }
.yci-viewport::-webkit-scrollbar-thumb { background: rgba(0,0,0,.16); border-radius: 8px; }

/* content wrapper — hugs the screen; zoom applied imperatively for fit */
.yci-content { position: relative; width: fit-content; transform-origin: top left; }

/* ----- modo cliente: colapsa a prancheta, esconde notas do designer ----- */
.yci-content .wf-sheet { padding: 0 !important; gap: 0 !important;
  background: transparent !important; width: auto !important; }
.yci-content .wf-notes,
.yci-content .wf-vp { display: none !important; }
/* pins numerados são anotações do designer (apontam para as notas ocultas) */
.yci-content .wf-pin { display: none !important; }
/* a tela já traz seu próprio raio/borda (is-mobile/is-desktop); deixamos limpa */
.yci-content .wf-screen { box-shadow: none !important; }
.yci-device.is-mobile .yci-content .wf-screen.is-mobile { border-radius: 0 !important; border: none !important; }
.yci-device.is-desktop .yci-content .wf-screen.is-desktop { border-radius: 0 !important; border: none !important; }

/* ---------- Hotspots ---------- */
.yci-hotlayer { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
/* Navegação intuitiva: hotspots INVISÍVEIS em repouso (como um site real).
   Só o cursor de mãozinha + um realce bem sutil no hover indicam que dá pra clicar. */
.yci-hot { position: absolute; pointer-events: auto; cursor: pointer; border-radius: 4px;
  -webkit-tap-highlight-color: transparent;
  /* zera o estilo padrão de <button> (fundo cinza + borda) que cobria o conteúdo */
  background: transparent; border: 0; padding: 0; margin: 0;
  -webkit-appearance: none; appearance: none; color: inherit; font: inherit; }
.yci-hot::after { content: ""; position: absolute; inset: -2px; border-radius: 5px;
  background: transparent; transition: background .12s; }
.yci-hot:hover::after { background: rgba(35,71,255,.10); }

/* ---------- Setas prev/next ---------- */
.yci-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--yci-line-2);
  background: #fff; color: var(--yci-ink); cursor: pointer; display: flex; align-items: center;
  justify-content: center; box-shadow: 0 4px 14px rgba(30,28,24,.12); transition: background .12s, transform .12s; }
.yci-arrow:hover { background: var(--yci-paper); }
.yci-arrow:active { transform: translateY(-50%) scale(.94); }
.yci-arrow.prev { left: 18px; } .yci-arrow.next { right: 18px; }
.yci-arrow svg { width: 18px; height: 18px; }
.yci-arrow[disabled] { opacity: .35; cursor: default; }

/* counter chip bottom */
.yci-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(43,42,40,.86); color: #fff; font-family: var(--yci-mono); font-size: 11px;
  letter-spacing: .04em; padding: 5px 12px; border-radius: 20px; white-space: nowrap; }

/* ---------- Índice (drawer) ---------- */
.yci-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(24,20,16,.34); }
.yci-index { position: fixed; top: 0; bottom: 0; left: 0; z-index: 61; width: 340px; max-width: 86vw;
  background: #fff; box-shadow: 4px 0 40px rgba(0,0,0,.22); display: flex; flex-direction: column; }
.yci-index .hd { flex: 0 0 auto; padding: 16px 18px 12px; border-bottom: 1px solid var(--yci-line); }
.yci-index .hd .t { font-size: 15px; font-weight: 700; }
.yci-index .hd .s { font-family: var(--yci-mono); font-size: 10px; color: var(--yci-muted);
  letter-spacing: .08em; text-transform: uppercase; margin-top: 3px; }
.yci-index .bd { flex: 1 1 auto; overflow: auto; padding: 8px 8px 24px; }
.yci-index .sec { font-family: var(--yci-mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--yci-muted); padding: 14px 10px 6px; }
.yci-index .it { display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px;
  color: var(--yci-ink); padding: 8px 10px; border-radius: 7px; transition: background .1s; }
.yci-index .it:hover { background: var(--yci-paper); }
.yci-index .it.on { background: rgba(35,71,255,.08); color: var(--yci-navy); font-weight: 600; }
.yci-index .it .dv { font-family: var(--yci-mono); font-size: 8.5px; color: var(--yci-muted);
  border: 1px solid var(--yci-line-2); border-radius: 3px; padding: 1px 4px; margin-left: auto; }

/* ---------- Guia rápido (card) ---------- */
.yci-guide { position: absolute; top: calc(var(--yci-bar-h) + 12px); right: 16px; z-index: 6;
  width: 320px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--yci-line);
  border-radius: 12px; box-shadow: 0 14px 50px rgba(30,28,24,.22); padding: 16px 18px; }
.yci-guide h4 { margin: 0 0 4px; font-size: 14px; }
.yci-guide .wfn { font-family: var(--yci-mono); font-size: 10px; color: var(--yci-navy);
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.yci-guide ol { margin: 0; padding-left: 18px; }
.yci-guide li { font-size: 12.5px; line-height: 1.5; color: var(--yci-ink); margin-bottom: 7px; }
.yci-guide li b { color: var(--yci-navy); font-weight: 600; }
.yci-guide .cl { position: absolute; top: 10px; right: 10px; border: none; background: transparent;
  cursor: pointer; color: var(--yci-muted); font-size: 18px; line-height: 1; }
.yci-guide .note { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--yci-line);
  font-size: 11px; color: var(--yci-muted); line-height: 1.45; }

/* botão flutuante "voltar ao protótipo" (quando em modo designer) */
.yci-fab { position: fixed; top: 14px; left: 14px; z-index: 120;
  border: 1px solid var(--yci-line-2); background: #fff; cursor: pointer;
  font-family: var(--yci-ui); font-size: 12.5px; font-weight: 600; color: var(--yci-navy);
  height: 36px; padding: 0 16px; border-radius: 20px;
  box-shadow: 0 6px 22px rgba(30,28,24,.18); transition: background .12s; }
.yci-fab:hover { background: var(--yci-paper); }

/* fallback badge "mobile-first" quando não há desktop desenhado */
.yci-fallback { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 5;
  background: rgba(35,71,255,.92); color: #fff; font-family: var(--yci-mono); font-size: 10px;
  letter-spacing: .06em; padding: 4px 11px; border-radius: 14px; white-space: nowrap; }

/* ---------- Comentários ---------- */
.yci-badge { background: var(--yci-navy); color: #fff; font-size: 10px; font-weight: 700;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px; display: inline-flex;
  align-items: center; justify-content: center; margin-left: 2px; }
.yci-content.yci-commenting { cursor: crosshair; }
.yci-content.yci-commenting .yci-hot { pointer-events: none; }
.yci-content.yci-commenting .yci-hot::after { border-color: transparent; background: transparent; }

.yci-commentlayer { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.yci-cpin { position: absolute; pointer-events: auto; transform: translate(-50%, -100%);
  width: 26px; height: 26px; border-radius: 50% 50% 50% 3px; background: var(--yci-navy); color: #fff;
  border: 2px solid #fff; font: 700 12px var(--yci-ui); display: flex; align-items: center;
  justify-content: center; cursor: pointer; box-shadow: 0 3px 10px rgba(30,28,24,.35); }
.yci-cpin.done { background: #2f6b66; opacity: .7; }
.yci-cpin.open { box-shadow: 0 0 0 3px rgba(35,71,255,.3), 0 3px 10px rgba(30,28,24,.35); }

/* composer + popover (position:fixed, fora do zoom — sempre legível) */
.yci-composer, .yci-cpop { position: fixed; z-index: 80; width: 256px; background: #fff;
  border: 1px solid var(--yci-line); border-radius: 12px; box-shadow: 0 16px 50px rgba(30,28,24,.28);
  padding: 12px; font-family: var(--yci-ui); }
.yci-composer .hd, .yci-cpop .hd { font-size: 11px; font-weight: 700; color: var(--yci-muted);
  margin-bottom: 8px; display: flex; align-items: baseline; gap: 6px; }
.yci-cpop .hd b { color: var(--yci-ink); font-size: 13px; }
.yci-cpop .hd span { font-family: var(--yci-mono); font-size: 10px; color: var(--yci-muted); margin-left: auto; }
.yci-composer .ci { width: 100%; box-sizing: border-box; border: 1px solid var(--yci-line); border-radius: 7px;
  padding: 7px 9px; font: 13px var(--yci-ui); margin-bottom: 7px; }
.yci-composer .cb { width: 100%; box-sizing: border-box; border: 1px solid var(--yci-line); border-radius: 7px;
  padding: 8px 9px; font: 13px var(--yci-ui); min-height: 70px; resize: vertical; }
.yci-composer .ci:focus, .yci-composer .cb:focus { outline: none; border-color: var(--yci-navy); box-shadow: 0 0 0 3px rgba(35,71,255,.14); }
.yci-cpop .bd { font-size: 13px; line-height: 1.45; color: var(--yci-ink); margin-bottom: 10px; white-space: pre-wrap; word-break: break-word; }
.yci-composer .row, .yci-cpop .row { display: flex; gap: 6px; justify-content: flex-end; margin-top: 8px; flex-wrap: wrap; }
.yci-composer .row button, .yci-cpop .row button { border: 1px solid var(--yci-line-2); background: #fff;
  cursor: pointer; font: 600 12px var(--yci-ui); color: var(--yci-ink); padding: 6px 11px; border-radius: 7px; }
.yci-composer .row button:hover, .yci-cpop .row button:hover { background: var(--yci-paper); }
.yci-composer .row .primary, .yci-cpop .row .primary { background: var(--yci-navy); color: #fff; border-color: var(--yci-navy); }
.yci-cpop .row .del { color: #b23b2e; border-color: rgba(178,59,46,.3); }
.yci-cpop .row .del:hover { background: rgba(178,59,46,.08); }

/* painel de comentários (reusa .yci-index, lado direito) */
.yci-cpanel { left: auto; right: 0; box-shadow: -4px 0 40px rgba(0,0,0,.22); }
.yci-cempty { padding: 24px 12px; color: var(--yci-muted); font-size: 13px; line-height: 1.5; text-align: center; }
.yci-cpanel .cit { display: block; width: 100%; text-align: left; border: none; background: transparent;
  cursor: pointer; padding: 9px 10px; border-radius: 8px; }
.yci-cpanel .cit:hover { background: var(--yci-paper); }
.yci-cpanel .cit.done { opacity: .6; }
.yci-cpanel .cit .ca { font-size: 11px; color: var(--yci-navy); font-weight: 600; margin-bottom: 3px; }
.yci-cpanel .cit .ca span { color: var(--yci-muted); font-weight: 400; font-family: var(--yci-mono); font-size: 10px; }
.yci-cpanel .cit .ca em { color: #2f6b66; font-style: normal; }
.yci-cpanel .cit .cb { font-size: 13px; color: var(--yci-ink); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.yci-sberr { position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 90;
  background: #b23b2e; color: #fff; font: 12px var(--yci-ui); padding: 8px 14px; border-radius: 20px;
  cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ---------- Portão de senha (marca Bertolani) ---------- */
.yci-gate { position: fixed; inset: 0; z-index: 200; background: var(--yci-stage);
  display: flex; align-items: center; justify-content: center; font-family: var(--yci-ui); }
.yci-gate .card { width: 360px; max-width: calc(100vw - 40px); background: var(--yci-bar); border: 1px solid var(--yci-line);
  border-radius: 6px; box-shadow: 0 24px 60px -18px rgba(10,10,11,.22); padding: 30px 26px; text-align: center; }
.yci-gate .mk { width: 48px; height: 48px; border-radius: 6px; margin: 0 auto 12px; display: block; }
.yci-gate .wm { font-family: var(--yci-display); font-size: 20px; letter-spacing: -.02em; color: var(--yci-ink); margin-bottom: 18px; }
.yci-gate .wm span { color: var(--yci-navy); }
.yci-gate h2 { font-family: var(--yci-display); font-size: 16px; letter-spacing: -.01em; margin: 0 0 5px; color: var(--yci-ink); }
.yci-gate p { font-size: 12.5px; color: var(--yci-muted); margin: 0 0 18px; line-height: 1.5; }
.yci-gate input { width: 100%; box-sizing: border-box; border: 1px solid var(--yci-line); border-radius: 4px;
  padding: 11px 13px; font: 14px var(--yci-ui); text-align: center; letter-spacing: .04em; color: var(--yci-ink); }
.yci-gate input::placeholder { color: var(--yci-muted); }
.yci-gate input:focus { outline: none; border-color: var(--yci-navy); box-shadow: 0 0 0 3px rgba(35,71,255,.16); }
.yci-gate button { width: 100%; margin-top: 12px; border: none; background: var(--yci-navy); color: #fff;
  font: 700 13px var(--yci-ui); padding: 12px; border-radius: 4px; cursor: pointer; letter-spacing: .02em; transition: background .14s; }
.yci-gate button:hover { background: var(--yci-navy-2); }
.yci-gate .err { color: #D02B3A; font-size: 12px; margin-top: 10px; min-height: 14px; }

/* ---------- Índice em árvore (por sitemap) ---------- */
.yci-tree .area { border-bottom: 1px solid var(--yci-line); }
.yci-tree .ahd { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent;
  cursor: pointer; font: 600 13px var(--yci-ui); color: var(--yci-ink); padding: 11px 12px; text-align: left; }
.yci-tree .ahd:hover { background: var(--yci-paper); }
.yci-tree .ahd.static { cursor: default; }
.yci-tree .ahd .chev { width: 12px; color: var(--yci-muted); font-size: 10px; flex: 0 0 auto; }
.yci-tree .ahd .an { flex: 1; }
.yci-tree .ahd .ar { font: 10px var(--yci-mono); color: var(--yci-muted); }
.yci-tree .area.internal .ahd .an { color: var(--yci-muted); }
.yci-tree .abd { padding-bottom: 6px; }
.yci-tree .subhd { font: 600 10.5px var(--yci-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--yci-muted); padding: 8px 12px 3px; display: flex; gap: 8px; align-items: baseline; }
.yci-tree .subhd .rt { font-size: 9px; text-transform: none; letter-spacing: 0; }
.yci-tree .it { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: transparent;
  cursor: pointer; padding: 6px 12px; text-align: left; }
.yci-tree .it:hover { background: var(--yci-paper); }
.yci-tree .it.on { background: rgba(35,71,255,.08); }
.yci-tree .it .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.yci-tree .it .lb { font: 500 13px var(--yci-ui); color: var(--yci-ink); }
.yci-tree .it.on .lb { color: var(--yci-navy); font-weight: 600; }
.yci-tree .it .rt { font: 9.5px var(--yci-mono); color: var(--yci-muted); margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.yci-tree .it .dv { font: 8.5px var(--yci-mono); color: var(--yci-muted); border: 1px solid var(--yci-line-2);
  border-radius: 3px; padding: 1px 4px; flex: 0 0 auto; }

/* ---------- Mapa do site (visual) ---------- */
.yci-mapwrap { position: fixed; inset: 0; z-index: 70; background: var(--yci-stage); display: flex; flex-direction: column;
  font-family: var(--yci-ui); }
.yci-maphd { flex: 0 0 auto; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: #fff; border-bottom: 1px solid var(--yci-line); }
.yci-maphd .t { font: 700 14px var(--yci-ui); color: var(--yci-ink); }
.yci-maphd .s { font: 11px var(--yci-mono); color: var(--yci-muted); }
.yci-maphd .cl { margin-left: auto; border: none; background: transparent; font-size: 22px; line-height: 1;
  color: var(--yci-muted); cursor: pointer; }
.yci-mapcols { flex: 1; overflow: auto; display: flex; gap: 16px; padding: 18px; align-items: flex-start; }
.mcol { flex: 0 0 246px; background: #fff; border: 1px solid var(--yci-line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 10px rgba(30,28,24,.05); }
.mcol.internal { opacity: .9; }
.mcolhd { padding: 10px 12px; border-bottom: 1px solid var(--yci-line); background: var(--yci-paper); }
.mcolhd .mn { font: 700 13px var(--yci-ui); color: var(--yci-navy); display: block; }
.mcol.internal .mcolhd .mn { color: var(--yci-muted); }
.mcolhd .mr { font: 9.5px var(--yci-mono); color: var(--yci-muted); }
.mcolbd { padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.mc { display: flex; align-items: center; gap: 8px; border: 1px solid var(--yci-line-2); background: var(--yci-paper);
  border-radius: 7px; padding: 8px 10px; cursor: pointer; font: inherit; text-align: left;
  transition: background .1s, border-color .1s; }
.mc:hover { background: #fff; border-color: var(--yci-navy); }
.mc.on { border-color: var(--yci-navy); background: rgba(35,71,255,.08); }
.mc .mlb { flex: 1; font: 500 12.5px var(--yci-ui); color: var(--yci-ink); }
.mc.on .mlb { color: var(--yci-navy); font-weight: 600; }
.mc .mdv { font: 8.5px var(--yci-mono); color: var(--yci-muted); flex: 0 0 auto; }
.mc.grp { background: transparent; border: none; border-left: 2px solid var(--yci-line); border-radius: 0;
  cursor: default; padding: 7px 10px; }
.mc.grp .mlb { font: 600 10px var(--yci-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--yci-muted); }

/* ---------- Submenu de área (drill-down do menu) ---------- */
.yci-submenu { position: fixed; inset: 0; z-index: 72; background: rgba(20,20,22,.34);
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: calc(var(--yci-bar-h) + 10px); animation: yciSubFade .12s ease; }
.yci-submenu .card { width: 344px; max-width: calc(100vw - 28px); background: var(--yci-bar);
  border: 1px solid var(--yci-line); border-radius: 8px; overflow: hidden;
  box-shadow: 0 18px 44px rgba(30,30,40,.20); }
.yci-submenu .hd { display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--yci-line); }
.yci-submenu .hd .t { font-family: var(--yci-display); font-size: 14px; letter-spacing: -.01em; color: var(--yci-ink); }
.yci-submenu .hd .cl { border: 0; background: transparent; font-size: 18px; line-height: 1;
  color: var(--yci-muted); cursor: pointer; padding: 2px 4px; }
.yci-submenu .bd { padding: 6px; max-height: 70vh; overflow: auto; }
.yci-submenu .it { display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: transparent; border: 0; border-radius: 5px; padding: 11px 12px; cursor: pointer;
  font: inherit; color: var(--yci-ink); text-align: left; }
.yci-submenu .it:hover { background: var(--yci-paper); }
.yci-submenu .it .lb { font-size: 13px; }
.yci-submenu .it .ar { color: var(--yci-line-2); font-size: 14px; }
@keyframes yciSubFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsivo (cliente no próprio celular) ---------- */
/* zona intermediária: o título da tela já aparece no contador inferior,
   então liberamos o espaço da barra escondendo o bloco "now" e o chip wf */
@media (max-width: 1300px) {
  .yci-now { display: none; }   /* o título da tela também aparece na pílula inferior */
}
@media (max-width: 980px) {
  .yci-brand .wf { display: none; }
  .yci-bar { gap: 10px; }
}
@media (max-width: 720px) {
  .yci-stage { padding: 12px 8px; }
  .yci-arrow.prev { left: 4px; } .yci-arrow.next { right: 4px; }
  .yci-bar { gap: 7px; padding: 0 10px; }
  .yci-label-collapse { display: none; }   /* esconde textos de botão, mantém ícone */
}
@media (max-width: 460px) {
  .yci-brand .nm { max-width: 96px; }
}
