/* A CASCA DE NAVEGAÇÃO (reorganização de 01/10/2026 — docs/reorg/CLAUDE-CODE-PROMPT.md).
   Menu lateral (264 px), barra superior (64 px), busca Ctrl K e barra inferior no celular.
   Uma cor de destaque só; a cor de cada área é só o ponto de 8 px. */
:root {
  --jr-fundo: #0B111C; --jr-sup: #121A28; --jr-sup2: #182235; --jr-borda: #24304A;
  --jr-txt: #E7ECF4; --jr-txt2: #9AA8BD; --jr-txt3: #8A98AE;
  --jr-dest: #E23B4A; --jr-dest-fundo: #C8102E;
}
body.jr-shell { background: var(--jr-fundo); color: var(--jr-txt); margin: 0; padding: 0 !important; }
body.jr-shell .jr-app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100dvh; }
.jr-side { position: sticky; top: 0; height: 100dvh; background: var(--jr-sup); border-right: 1px solid var(--jr-borda); display: flex; flex-direction: column; overflow-y: auto; }
.jr-logo { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; font-family: 'Geist', system-ui, sans-serif; font-weight: 800; font-size: 18px; color: var(--jr-txt); text-decoration: none; letter-spacing: -0.02em; }
.jr-logo b { color: var(--jr-dest); }
.jr-navlist { padding: 6px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: 1; background: none; border: 0; }
.jr-navi { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--jr-txt2); text-decoration: none; font-size: 14px; position: relative; min-height: 40px; }
.jr-navi:hover { background: var(--jr-sup2); color: var(--jr-txt); }
.jr-navi:focus-visible, .jr-card:focus-visible, .jr-row .t:focus-visible::after, .jr-busca-btn:focus-visible, .jr-ico-btn:focus-visible { outline: 2px solid var(--jr-dest); outline-offset: 2px; }
.jr-navi.ativo { background: var(--jr-sup2); color: #fff; font-weight: 600; }
.jr-navi.ativo::before { content: ''; position: absolute; left: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--jr-dest); }
.jr-ponto { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.jr-navi .jr-n { margin-left: auto; font-size: 11.5px; color: var(--jr-txt3); font-variant-numeric: tabular-nums; }
.jr-sep { height: 1px; background: var(--jr-borda); margin: 8px 12px; }
.jr-rodape { padding: 10px; border-top: 1px solid var(--jr-borda); }
.jr-user { display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12.5px; color: var(--jr-txt2); }
.jr-user button { margin-left: auto; background: none; border: 1px solid var(--jr-borda); color: var(--jr-txt2); border-radius: 7px; padding: 5px 10px; font-size: 12px; cursor: pointer; font-family: inherit; }
.jr-user button:hover { color: var(--jr-txt); }

.jr-col { min-width: 0; display: flex; flex-direction: column; }
.jr-top { position: sticky; top: 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 22px; background: rgba(11,17,28,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--jr-borda); }
.jr-migalha { font-size: 13px; color: var(--jr-txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.jr-migalha a { color: var(--jr-txt2); text-decoration: none; }
.jr-migalha a:hover { color: var(--jr-txt); }
.jr-migalha .atual { color: var(--jr-txt); font-weight: 600; }
.jr-busca-btn { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(380px, 40vw); background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 10px; padding: 9px 12px; color: var(--jr-txt3); font-size: 13.5px; cursor: pointer; font-family: inherit; }
.jr-busca-btn kbd { margin-left: auto; font-family: inherit; font-size: 11px; border: 1px solid var(--jr-borda); border-radius: 5px; padding: 1px 6px; color: var(--jr-txt3); }
.jr-ico-btn { position: relative; background: var(--jr-sup); border: 1px solid var(--jr-borda); color: var(--jr-txt2); border-radius: 10px; width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 18px; }
.jr-ico-btn .jr-cont { position: absolute; top: -5px; right: -5px; background: var(--jr-dest-fundo); color: #fff; border-radius: 10px; min-width: 18px; height: 18px; font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center; padding: 0 5px; }
.jr-main { padding: 22px 26px 60px; min-width: 0; }

/* o © vai para o rodapé do menu (o shared.js o põe no primeiro <nav>, que aqui é o menu) */
body.jr-shell .jr-copyright { display: none !important; }
.jr-copy { padding: 4px 12px 0; font-size: 10px; color: #475569; }

/* o sino antigo vira o painel da barra superior */
body.jr-shell .notif-fab { display: none !important; }
body.jr-shell .notif-panel { top: 70px; bottom: auto; right: 16px; }

/* ── BUSCA Ctrl K ── */
.jr-busca-fundo { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.55); display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.jr-busca-fundo.on { display: flex; }
.jr-busca { width: min(640px, 100%); background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.6); overflow: hidden; }
.jr-busca input { width: 100%; box-sizing: border-box; background: transparent; border: 0; border-bottom: 1px solid var(--jr-borda); padding: 16px 18px; color: var(--jr-txt); font-size: 16px; font-family: inherit; outline: none; }
.jr-busca ul { list-style: none; margin: 0; padding: 6px; max-height: 60vh; overflow-y: auto; }
.jr-busca li a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; color: var(--jr-txt); text-decoration: none; }
.jr-busca li a .s { font-size: 12px; color: var(--jr-txt3); margin-left: auto; white-space: nowrap; }
.jr-busca li a small { display: block; font-size: 11.5px; color: var(--jr-txt3); }
.jr-busca li.sel a { background: var(--jr-sup2); }
.jr-busca .vazio { padding: 18px; color: var(--jr-txt3); font-size: 13px; text-align: center; }

/* ── PÁGINA DE ÁREA ── */
.jr-area-tit { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 800; margin: 2px 0 4px; letter-spacing: -0.02em; }
.jr-area-desc { color: var(--jr-txt2); font-size: 14px; margin-bottom: 14px; }
.jr-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.jr-chip { background: var(--jr-sup); border: 1px solid var(--jr-borda); color: var(--jr-txt2); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; text-decoration: none; }
.jr-chip:hover { color: var(--jr-txt); border-color: var(--jr-txt3); }
.jr-sec { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--jr-txt3); font-weight: 700; margin: 22px 0 10px; scroll-margin-top: 80px; }
.jr-grade { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jr-row { display: flex; align-items: flex-start; gap: 12px; background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 12px; padding: 12px 6px 12px 14px; color: var(--jr-txt); text-decoration: none; min-height: 64px; position: relative; }
.jr-row:hover { border-color: #33415f; background: var(--jr-sup2); }
.jr-row .ic { flex: 0 0 34px; height: 34px; border-radius: 9px; background: var(--jr-sup2); display: flex; align-items: center; justify-content: center; color: var(--jr-dest); }
.jr-row .ic svg { width: 18px; height: 18px; }
.jr-row .tx { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.jr-row .t { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--jr-txt); text-decoration: none; }
.jr-row .t::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }
.jr-row .atalhos, .jr-row .jr-estrela { position: relative; z-index: 1; }
.jr-row .d { display: block; font-size: 12px; color: var(--jr-txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.jr-row .atalhos { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.jr-row .atalhos a { font-size: 11px; color: var(--jr-txt2); border: 1px solid var(--jr-borda); border-radius: 6px; padding: 2px 7px; text-decoration: none; background: var(--jr-fundo); }
.jr-row .atalhos a:hover { color: var(--jr-txt); }
.jr-row .atalhos-tx { font-size: 11.5px; color: var(--jr-txt2); margin-top: 5px; }
.jr-estrela { flex: 0 0 44px; height: 44px; margin: -6px 0; background: none; border: 0; color: var(--jr-txt3); font-size: 18px; cursor: pointer; border-radius: 8px; }
.jr-estrela:hover { color: #facc15; }
.jr-estrela.on { color: #facc15; }

/* ── CELULAR: barra inferior no lugar do menu lateral ── */
.jr-baixo { display: none; }
@media (max-width: 767px) {
  body.jr-shell .jr-app { grid-template-columns: minmax(0, 1fr); }
  .jr-ico-btn.bell { margin-left: auto; }
  .jr-side { display: none; }
  .jr-top { padding: 0 14px; height: 56px; }
  .jr-busca-btn { display: none; }
  .jr-main { padding: 16px 16px 96px; }
  .jr-grade { grid-template-columns: minmax(0, 1fr); }
  .jr-baixo { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 64px; background: var(--jr-sup); border-top: 1px solid var(--jr-borda); align-items: center; justify-content: space-around; padding-bottom: env(safe-area-inset-bottom); }
  .jr-baixo a, .jr-baixo button { background: none; border: 0; color: var(--jr-txt2); text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; min-width: 50px; min-height: 44px; justify-content: center; font-family: inherit; cursor: pointer; }
  .jr-baixo .jr-bipar { width: 58px; height: 58px; border-radius: 50%; background: var(--jr-dest-fundo); color: #fff; margin-top: -26px; box-shadow: 0 8px 20px rgba(200,16,46,.45); font-size: 22px; }
  body.jr-shell .notif-panel { top: 62px; right: 8px; left: 8px; width: auto; }
}
.jr-folha { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.55); display: none; align-items: flex-end; }
.jr-folha.on { display: flex; }
.jr-folha > div { width: 100%; background: var(--jr-sup); border-radius: 16px 16px 0 0; padding: 14px 10px 24px; max-height: 80vh; overflow-y: auto; }

/* ── O CAMINHO NO TOPO DAS TELAS DE MÓDULO (injetado pelo shared.js) ── */
.jr-trilha { display: flex; align-items: center; gap: 6px; padding: 7px 16px; font: 12.5px 'Geist', system-ui, sans-serif; background: #0B111C; border-bottom: 1px solid #24304A; color: #8A98AE; position: relative; z-index: 1000; }
.jr-trilha a { color: #9AA8BD; text-decoration: none; }
.jr-trilha a:hover { color: #E7ECF4; }
.jr-trilha .atual { color: #E7ECF4; }
.jr-trilha { white-space: nowrap; overflow: hidden; }
.jr-trilha .atual { overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ── INÍCIO POR PERFIL (Fase 2 — public/_shared/inicio.js) ── */
.jr-inicio .jr-sec:first-of-type { margin-top: 18px; }
.jr-ini-topo { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.jr-ini-ola { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.jr-ini-perfil { color: var(--jr-txt2); font-size: 13.5px; margin-top: 2px; }
.jr-ini-ver { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--jr-txt3); }
.jr-ini-ver select { background: var(--jr-sup); border: 1px solid var(--jr-borda); color: var(--jr-txt); border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 13px; }
.jr-ini-aviso { margin-top: 12px; background: rgba(250,204,21,.08); border: 1px solid rgba(250,204,21,.35); color: #fde68a; border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.jr-ini-aviso a { color: #fff; margin-left: 6px; }
.jr-ini-dica { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 8px; color: var(--jr-txt3); }
.jr-ini-favs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jr-ini-fav { display: flex; flex-direction: column; gap: 8px; background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 12px; padding: 14px; color: var(--jr-txt); text-decoration: none; min-height: 104px; }
.jr-ini-fav:hover { border-color: #33415f; background: var(--jr-sup2); }
.jr-ini-fav .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--jr-sup2); display: flex; align-items: center; justify-content: center; color: var(--jr-dest); }
.jr-ini-fav .ic svg { width: 18px; height: 18px; }
.jr-ini-fav .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.jr-ini-fav .s { margin-top: auto; display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--jr-txt3); }
.jr-ini-bloco { background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 12px; padding: 6px; }
.jr-ini-prog { display: flex; align-items: center; gap: 12px; padding: 8px 10px 10px; font-size: 12.5px; color: var(--jr-txt2); }
.jr-ini-prog .barra { flex: 1; height: 6px; border-radius: 3px; background: var(--jr-sup2); overflow: hidden; }
.jr-ini-prog .barra > div { height: 100%; width: 0; background: #22c55e; border-radius: 3px; transition: width .3s; }
.jr-ini-linha { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; color: var(--jr-txt); text-decoration: none; min-height: 44px; }
.jr-ini-linha:hover { background: var(--jr-sup2); }
.jr-ini-linha .hora { font-variant-numeric: tabular-nums; font-size: 12.5px; color: var(--jr-txt3); width: 42px; }
.jr-ini-linha .t { color: var(--jr-txt); text-decoration: none; font-size: 14px; font-weight: 600; }
.jr-ini-linha .tx { min-width: 0; display: flex; flex-direction: column; }
.jr-ini-linha .d { font-size: 12px; color: var(--jr-txt3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jr-ini-linha.feito .t { color: var(--jr-txt3); text-decoration: line-through; }
.jr-ini-check { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 7px; border: 2px solid var(--jr-borda); background: var(--jr-fundo); color: #fff; font-weight: 800; cursor: pointer; font-size: 14px; line-height: 1; }
.jr-ini-linha.feito .jr-ini-check { background: #16a34a; border-color: #16a34a; }
.jr-ini-check:disabled { cursor: default; opacity: .6; }
.jr-ini-atraso { display: none; width: 8px; height: 8px; border-radius: 50%; background: var(--jr-dest); margin-left: auto; }
.jr-ini-linha.atrasado .jr-ini-atraso { display: block; }
.jr-ini-ponto { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--jr-dest); }
.jr-ini-vazio { padding: 14px; color: var(--jr-txt3); font-size: 13px; }
.jr-ini-areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jr-ini-area { display: flex; flex-direction: column; gap: 4px; background: var(--jr-sup); border: 1px solid var(--jr-borda); border-radius: 12px; padding: 14px; color: var(--jr-txt); text-decoration: none; }
.jr-ini-area:hover { border-color: #33415f; background: var(--jr-sup2); }
.jr-ini-area .t { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.jr-ini-area .n { margin-left: auto; font-size: 12px; color: var(--jr-txt3); font-weight: 400; }
.jr-ini-area .d { font-size: 12.5px; color: var(--jr-txt3); }
@media (max-width: 767px) {
  .jr-ini-favs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .jr-ini-areas { grid-template-columns: minmax(0, 1fr); }
  .jr-ini-ver { margin-left: 0; }
}

/* ── FASE 3: abas / seletor / filtro do item unificado (injetado pelo shared.js) ── */
.jr-abas { display: flex; align-items: center; gap: 4px; padding: 6px 12px; overflow-x: auto; background: #0B111C; border-bottom: 1px solid #24304A; font: 13px 'Geist', system-ui, sans-serif; position: relative; z-index: 1000; scrollbar-width: none; }
.jr-abas::-webkit-scrollbar { display: none; }
.jr-abas a { flex: 0 0 auto; color: #9AA8BD; text-decoration: none; padding: 6px 12px; border-radius: 8px; border: 1px solid transparent; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.jr-abas a:hover { color: #E7ECF4; background: #121A28; }
.jr-abas a.on { color: #fff; background: #182235; border-color: #24304A; font-weight: 600; box-shadow: inset 0 -2px 0 #E23B4A; }
.jr-abas-rot { flex: 0 0 auto; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #8A98AE; margin-right: 6px; }

/* ── FASE 4: encaixe do motion.css (public/_shared/motion.css, só Início e áreas) ── */
.jr-busca-btn svg { width: 16px; height: 16px; flex: 0 0 16px; }
.jr-top .jr-ico-btn svg { width: 20px !important; height: 20px !important; flex: 0 0 20px; }
.jr-baixo svg { width: 21px; height: 21px; }
.jr-baixo .jr-bipar { position: relative; overflow: hidden; }
.jr-baixo .jr-bipar svg { width: 26px; height: 26px; }
.jr-baixo .jr-bipar.press:hover { background-color: var(--jr-dest-fundo) !important; }
.jr-scan { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; border-radius: 1px; background: rgba(255,255,255,.85); box-shadow: 0 0 6px rgba(255,255,255,.7); pointer-events: none; }
.jr-ini-check { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.jr-ini-linha { padding-left: 4px; }
.jr-ini-area .chev { margin-left: 8px; color: var(--jr-txt3); font-weight: 400; }
.jr-navi.nav-i:hover .jr-n { color: var(--jr-txt2); }
/* telas de módulo (sem motion.css): as abas e o caminho ganham o mesmo toque e o anel de foco */
.jr-abas a { transition: background-color .15s, color .15s, transform .12s cubic-bezier(.2,.8,.2,1); }
.jr-abas a:active { transform: scale(.95); }
.jr-trilha a:focus-visible, .jr-abas a:focus-visible { outline: 2px solid #E23B4A; outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .jr-abas a { transition: none; } }
