/* Nexor dark premium: grafite, painéis em ardósia, índigo para ação e ciano só para "agora/ao vivo". Menu lateral fixo com a marca; à direita o conteúdo da área ou ferramenta aberta, que entra com uma transição curta. No celular o menu vira uma barra de abas embaixo. */
:root {
  --bg: #10131c; --bg-2: #141826; --surface: #181c29; --surface-2: #202638; --line: #2b3247; --line-2: #3a4360;
  --fg: #e6e9f4; --muted: #98a1bc; --accent: #a5b4fc; --accent-ink: #10131c; --cyan: #67e8f9;
  /* nomes antigos que as ferramentas ainda usam: agora apontam para a paleta Nexor */
  --wine: #a5b4fc; --gold: #a5b4fc; --gold-2: #c7d2fe;
  --soft: #1f2542; --good: #6ee7b7; --late: #fca5a5;
  --r-card: 14px; --r-ctl: 10px;
  --f-display: "Sora", "Segoe UI", system-ui, sans-serif; --f-body: "Manrope", "Segoe UI", system-ui, sans-serif; --f-num: "Manrope", "Segoe UI", system-ui, sans-serif; --f-mono: var(--f-num);
  --side: 264px; color-scheme: dark;
}
html { background: var(--bg); }
body { background: var(--bg); color: var(--fg); font: 15px/1.55 var(--f-body); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 50; background: var(--bg); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.num, .kpi .v, .lt .h { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* menu lateral */
#sh-side { box-sizing: border-box; position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--bg-2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px)); gap: 14px; z-index: 20; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; text-decoration: none; color: var(--fg); }
.logo .marca { width: 30px; height: 30px; flex: none; }
.logo b { font: 700 1.15rem var(--f-display); letter-spacing: -0.02em; }
#sh-busca { background: var(--surface); border: 1px solid var(--line); color: var(--fg); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: .88rem; width: 100%; box-sizing: border-box; }
#sh-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-a { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .92rem; position: relative; }
.nav-a svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.nav-a:hover { color: var(--fg); background: var(--surface); }
.nav-a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }
.nav-a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav-a .n { margin-left: auto; font: 500 .72rem var(--f-num); color: var(--muted); }
.nav-sub { display: flex; flex-direction: column; margin: 2px 0 6px 28px; border-left: 1px solid var(--line); }
.nav-sub button { all: unset; cursor: pointer; padding: 5px 12px; font-size: .86rem; color: var(--muted); border-radius: 0 8px 8px 0; }
.nav-sub button:hover { color: var(--fg); }
.nav-sub button[aria-current="page"] { color: var(--gold-2); }
#sh-claude-btn { margin-top: auto; all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700;  }
#sh-claude-btn .star { color: var(--accent-ink); font-size: 1.1rem; }
#sh-claude-btn small { display: block; font-weight: 400; opacity: .75; font-size: .75rem; }

/* conteúdo */
#sh-main { margin-left: var(--side); min-height: 100vh; }
#sh-top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px max(24px, env(safe-area-inset-right, 0px)) 14px 28px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
#sh-crumb { font-size: .82rem; color: var(--muted); letter-spacing: .04em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#sh-crumb button { all: unset; cursor: pointer; } #sh-crumb button:hover { color: var(--fg); }
#sh-crumb b { color: var(--fg); font-weight: 600; }
#sh-top .acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
#sh-top a.lk { color: var(--gold); font-size: .85rem; font-weight: 600; text-decoration: none; }
#sh-view { padding: 8px max(8px, env(safe-area-inset-right, 0px)) 80px 8px; }
#sh-view.entra { animation: entra .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.pagina { max-width: 1180px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-left, 0px)) 0 max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 28px; }

/* início */
.ola { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.ola .data { color: var(--cyan); font: 600 .9rem var(--f-body); }
.ola .data::first-letter, .area-hero .data::first-letter { text-transform: uppercase; }
.ola h1 { font: 600 clamp(2rem, 5vw, 3.2rem)/1.05 var(--f-display); margin: 0; letter-spacing: -0.025em; }
.ola h1 em { font-style: normal; }
.ola p { margin: 0; color: var(--muted); max-width: 60ch; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { all: unset; cursor: pointer; box-sizing: border-box; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; transition: border-color .2s, transform .2s; min-width: 0; }
.kpi:hover { border-color: var(--line-2); background: var(--surface-2); }
.kpi .l { font-size: .82rem; font-weight: 600; color: var(--muted); }
.kpi .v { font: 600 1.8rem/1.15 var(--f-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .v.ouro { color: var(--accent); }
.kpi .s { font-size: .82rem; color: var(--muted); }
.duas { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.bloco { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bloco h2 { font: 600 1.15rem var(--f-display); letter-spacing: -0.01em; margin: 0; display: flex; gap: 10px; align-items: baseline; justify-content: space-between; }
.bloco h2 span { font: 500 .82rem var(--f-body); color: var(--muted); }
.linha-tempo { display: flex; flex-direction: column; }
.lt { all: unset; cursor: pointer; display: grid; grid-template-columns: 4.6rem minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.lt:last-child { border-bottom: 0; }
.lt:hover .t { color: var(--gold); }
.lt .h { font: 600 .82rem var(--f-num); color: var(--gold); }
.lt .t { overflow-wrap: anywhere; }
.lt .o { font-size: .8rem; color: var(--muted); }
.lt.late .h { color: var(--late); }
.vazio-l { color: var(--muted); padding: 8px 0; }

/* áreas */
.area-hero { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; }
.area-hero .data { color: var(--muted); font: 600 .9rem var(--f-body); }
.area-hero h1 { font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--f-display); margin: 0; letter-spacing: -0.025em; }
.area-hero p { margin: 0; color: var(--muted); max-width: 62ch; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.tile { all: unset; cursor: pointer; box-sizing: border-box; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 8px; min-height: 150px; transition: border-color .25s, transform .25s; }
.tile:hover { border-color: var(--line-2); background: var(--surface-2); }
.tile .mono { width: 38px; height: 38px; border-radius: var(--r-ctl); display: grid; place-items: center; background: var(--soft); color: var(--gold); font: 600 1rem var(--f-display); }
.tile b { font: 600 1.1rem/1.2 var(--f-display); letter-spacing: -0.01em; }
.tile span { color: var(--muted); font-size: .9rem; }
.tile .stat { margin-top: auto; font: 600 .82rem var(--f-num); color: var(--gold); }

/* módulo aberto */
.modulo { animation: entra .35s cubic-bezier(.2, .7, .2, 1); }
.modulo .wrap { padding-top: 12px !important; }
.carregando { padding: 60px; text-align: center; color: var(--muted); font-size: 1rem; }

/* chat do Claude */
#sh-chat { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg-2); border-left: 1px solid var(--line-2); z-index: 40; display: flex; flex-direction: column; transform: translateX(105%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
#sh-chat.aberto { transform: none; box-shadow: -20px 0 60px rgb(0 0 0 / .5); }
.chat-cab { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.chat-cab .av { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.chat-cab b { font: 600 1.3rem var(--f-display); }
.chat-cab small { display: block; color: var(--muted); font-size: .75rem; }
.chat-cab button { margin-left: auto; }
#sh-msgs { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.bal { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .94rem; line-height: 1.5; }
.bal.eu { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.bal.ia { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bal.acao { align-self: flex-start; background: transparent; border: 1px dashed var(--gold); color: var(--gold-2); font-size: .8rem; padding: 4px 10px; }
.bal.pensa { color: var(--muted); font-style: italic; }
.sugs { display: flex; gap: 6px; flex-wrap: wrap; }
.sugs button { all: unset; cursor: pointer; font-size: .8rem; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--muted); }
.sugs button:hover { color: var(--fg); border-color: var(--gold); }
#sh-chat form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
#sh-chat textarea { flex: 1; resize: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--fg); font: inherit; padding: 10px 12px; }
.bt { all: unset; cursor: pointer; padding: 9px 16px; border-radius: var(--r-ctl); background: var(--accent); color: var(--accent-ink); font-weight: 700; text-align: center; }
.bt.ghost { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 500; }
#sh-veu { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 35; opacity: 0; pointer-events: none; transition: opacity .3s; }
#sh-veu.on { opacity: 1; pointer-events: auto; }

/* menu: grupos recolhíveis, favoritos, recentes, busca */
.nav-rot { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); padding: 12px 10px 4px; }
.nav-grupo { display: flex; flex-direction: column; }
.nav-sub.solto { margin-left: 10px; }
.nav-sub .todas { font-weight: 600; }
.nav-a .seta { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: 4px; transition: transform .2s; flex: none; }
.nav-a.grupo[aria-expanded="true"] .seta { transform: rotate(45deg); }
.nav-obras { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: flex; flex-direction: column; opacity: .85; }
.res { display: flex; flex-direction: column; gap: 2px; }
.res .r { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 1px; padding: 7px 10px; border-radius: 8px; }
.res .r:hover, .res .r:focus-visible { background: var(--surface); }
.res .r b { font-weight: 600; font-size: .9rem; color: var(--fg); overflow-wrap: anywhere; }
.res .r small { font-size: .78rem; color: var(--muted); }
.res-vazio { color: var(--muted); font-size: .85rem; padding: 4px 10px; margin: 0; }
.nav-a:focus-visible, .nav-sub button:focus-visible, .kpi:focus-visible, .tile:focus-visible, .lt:focus-visible, .abrir:focus-visible, .atalhos button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* topo: favoritar e estado de sincronização */
#sh-top .fav { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); padding: 4px 10px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); }
#sh-top .fav svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; }
#sh-top .fav[aria-pressed="true"] { color: var(--gold-2); }
#sh-top .fav[aria-pressed="true"] svg { fill: currentColor; }
#sh-sync { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#sh-sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
#sh-sync[data-estado="pend"]::before { background: var(--gold); }
#sh-sync[data-estado="erro"] { color: var(--late); }
#sh-sync[data-estado="erro"]::before { background: var(--late); }
#sh-top .acoes:empty { display: none; }
#sh-top .acoes:empty + #sh-sync { margin-left: auto; }

/* janelas rápidas: criar e personalizar */
dialog.rapido { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; background: var(--bg-2); color: var(--fg); border: 1px solid var(--line-2); border-radius: var(--r-card); padding: 18px; }
dialog.rapido::backdrop { background: rgb(0 0 0 / .5); }
.rp-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.rp-cab b { font: 600 1.2rem var(--f-display); }
.rp-cab .x, .pers .x { all: unset; cursor: pointer; font-size: .85rem; color: var(--muted); padding: 4px 8px; border-radius: 6px; }
.rp-cab .x:hover, .pers .x:hover { color: var(--fg); background: var(--surface); }
.pers .x[disabled] { opacity: .3; cursor: default; }
.rp-lista { display: flex; flex-direction: column; }
.rp-lista button { all: unset; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.rp-lista button:hover, .rp-lista button:focus-visible { background: var(--surface); }
.rp-lista small { color: var(--muted); font-size: .8rem; }
.rp-form { display: flex; flex-direction: column; gap: 12px; }
.rp-form label { display: flex; flex-direction: column; gap: 5px; font-size: .86rem; color: var(--muted); }
dialog.rapido .field { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 9px 11px; }
dialog.rapido .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
dialog.rapido .sub { color: var(--muted); font-size: .86rem; margin: 0; }
.pers { list-style: none; padding: 0; margin: 10px 0; }
.pers li { display: flex; align-items: center; gap: 4px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.pers label { flex: 1; display: flex; gap: 10px; align-items: center; }

/* início em cartões */
.ola { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ola-l { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cartoes { display: flex; flex-direction: column; gap: 20px; }
.kpi .ir { margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--gold); }
.kpi.alerta { border-color: var(--late); }
.kpi.alerta .v { color: var(--late); }
.kpis.duplo { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.abrir { all: unset; cursor: pointer; align-self: flex-start; font-size: .86rem; font-weight: 600; color: var(--gold); padding: 2px 0; }
.abrir:hover { text-decoration: underline; }
.vazio-c { border: 1px dashed var(--line-2); border-radius: var(--r-card); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.vazio-c p { margin: 0; color: var(--muted); }
.vazio-c .row { display: flex; gap: 8px; flex-wrap: wrap; }
.atalhos { display: flex; gap: 8px; flex-wrap: wrap; }
.atalhos button { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; font-weight: 600; }
.atalhos button:hover { border-color: var(--gold); }
.atalhos svg { width: 15px; height: 15px; stroke: var(--gold); fill: none; stroke-width: 2; }
.agenda { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.ag h3 { margin: 0 0 4px; font: 600 .95rem var(--f-body); display: flex; gap: 8px; align-items: center; }
.ag h3 span { font: 600 .75rem var(--f-num); padding: 1px 8px; border-radius: 99px; background: var(--soft); color: var(--muted); }
.ag.late h3 { color: var(--late); }
.ag.hoje h3 { color: var(--gold-2); }
.lt.hoje .h { color: var(--gold-2); }
.lt.ok .h { color: var(--good); }
.aviso { margin: 0 0 6px; font-size: .84rem; color: var(--gold-2); }
.funil { display: flex; flex-direction: column; gap: 6px; }
.funil div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) 2.5rem; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.funil i { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--gold); }
.funil b { text-align: right; font: 600 .85rem var(--f-num); color: var(--fg); }
.tiles.mini { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.tiles.mini .tile { min-height: 0; padding: 12px 14px; }
.tiles.mini .tile > span:not(.mono) { display: none; }
.tile.curto { min-height: 0; }
.busca-m { font: inherit; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctl); padding: 11px 13px; width: 100%; box-sizing: border-box; }
.res-m:empty { display: none; }
.res-m { display: flex; flex-direction: column; gap: 4px; }
.chips-m { display: flex; gap: 8px; flex-wrap: wrap; }
.chips-m button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }

/* abas do celular */
#sh-tabs { display: none; }
#sh-fab { display: none; }
@media (max-width: 860px) {
  #sh-side { display: none; }
  #sh-main { margin-left: 0; }
  #sh-top { padding-left: max(16px, env(safe-area-inset-left, 0px)); }
  .duas { grid-template-columns: minmax(0, 1fr); }
  #sh-tabs { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: color-mix(in srgb, var(--bg-2) 92%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px)); }
  #sh-tabs button { all: unset; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--muted); padding: 4px 0; }
  #sh-tabs button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
  #sh-tabs button[aria-current="page"] { color: var(--gold-2); }
  #sh-tabs button.novo svg { width: 26px; height: 26px; padding: 4px; box-sizing: border-box; border-radius: 50%; background: var(--accent); stroke: var(--accent-ink); stroke-width: 2.2; margin-top: -6px; }
  #sh-fab { display: none !important; place-items: center; position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 1.4rem; z-index: 31; box-shadow: 0 6px 20px rgb(0 0 0 / .45); cursor: pointer; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* peças comuns usadas pelos módulos fora do próprio container */
#toast-slot .toast, .toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; z-index: 60; max-width: calc(100% - 32px); display: flex; gap: 12px; }
.toast button { all: unset; cursor: pointer; font-weight: 700; text-decoration: underline; }
dialog { color: var(--fg); }
dialog::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(2px); }
dialog.dlg { max-width: min(560px, calc(100% - 24px)); width: 100%; border: 1px solid var(--line-2); padding: 18px; background: var(--surface); color: var(--fg); border-radius: 16px; }
dialog:not([open]) { display: none !important; }
@media (max-width: 860px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }
@media (max-width: 520px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .kpi { padding: 12px; } .kpi .v { font-size: 1.5rem; } .kpi .s { font-size: .75rem; } }

/* ferramentas (kit): mesma tipografia e escala do Nexor; sem o ponto decorativo antigo nos títulos */
#sh-view .kit header.top h1 { font: 600 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--f-display); letter-spacing: -0.025em; }
#sh-view .kit header.top h1::after { content: none; }
#sh-view .kit h2 { font: 600 1.2rem var(--f-display); letter-spacing: -0.01em; }
#sh-view .kit .btn, #sh-view .kit .field { border-radius: var(--r-ctl); }
#sh-view .kit .card { border-radius: var(--r-card); }

/* Temas (Configurações): cada um só troca as variáveis acima; sem data-tema fica o Nexor original. */
.logo .marca path { stroke: var(--accent); } .logo .marca circle { fill: var(--accent); } .logo .marca circle:last-of-type { fill: var(--cyan); }
:root[data-tema="grafite"] {
  --bg: #161414; --bg-2: #1b1918; --surface: #1d1a19; --surface-2: #262221; --line: #2b2726; --line-2: #3a3433;
  --fg: #ece7e3; --muted: #958d88; --accent: #a33c4f; --accent-ink: #fff; --cyan: #e0a3ad;
  --wine: #a33c4f; --gold: #d27a8a; --gold-2: #e3a1ad; --soft: #2a1b1e; --good: #7fb58d; --late: #e07a7a;
  --r-card: 8px; --r-ctl: 6px;
  --f-display: "Geist", system-ui, sans-serif; --f-body: "Geist", system-ui, sans-serif; --f-num: "Geist Mono", ui-monospace, monospace;
}
:root[data-tema="papel"] {
  --bg: #f7f3ed; --bg-2: #f0eae1; --surface: #fbf8f3; --surface-2: #ebe3d8; --line: #e1d8cc; --line-2: #cfc3b4;
  --fg: #211b18; --muted: #6e655d; --accent: #6e1b28; --accent-ink: #fff; --cyan: #6e1b28;
  --wine: #6e1b28; --gold: #6e1b28; --gold-2: #8e2a3a; --soft: #f1e3e0; --good: #3f7a4c; --late: #a3302b;
  --r-card: 10px; --r-ctl: 6px; color-scheme: light;
  --f-display: "Fraunces", Georgia, serif; --f-body: "Geist", system-ui, sans-serif; --f-num: "Geist", system-ui, sans-serif;
}
:root[data-tema="latao"] {
  --bg: #121011; --bg-2: #34101a; --surface: #1a1617; --surface-2: #241e20; --line: #2b2427; --line-2: #3d3337;
  --fg: #efe8e4; --muted: #a1979a; --accent: #c4a062; --accent-ink: #23190b; --cyan: #d9b878;
  --wine: #c4a062; --gold: #d9b878; --gold-2: #e8cf9f; --soft: #2b2216; --good: #8fbf98; --late: #e48a84;
  --r-card: 8px; --r-ctl: 6px;
  --f-display: "Fraunces", Georgia, serif; --f-body: "Geist", system-ui, sans-serif; --f-num: "Geist", system-ui, sans-serif;
}
:root[data-tema="latao"] #sh-side { --muted: #d2b5bb; --surface: #4c1a25; --surface-2: #5a2030; --line: #4a1c26; --fg: #fff; }
:root[data-tema="marfim"] {
  --bg: #fbf8f3; --bg-2: #5c1522; --surface: #fffdf9; --surface-2: #f3ece2; --line: #e8e0d6; --line-2: #d6ccc0;
  --fg: #1b1716; --muted: #8a7f78; --accent: #5c1522; --accent-ink: #fff; --cyan: #7a2232;
  --wine: #5c1522; --gold: #7a2232; --gold-2: #9a3346; --soft: #f3e4e4; --good: #2f6b3f; --late: #7a2232;
  --r-card: 4px; --r-ctl: 4px; color-scheme: light;
  --f-display: "Geist", system-ui, sans-serif; --f-body: "Geist", system-ui, sans-serif; --f-num: "Geist Mono", ui-monospace, monospace;
}
:root[data-tema="marfim"] #sh-side, :root[data-tema="marfim"] #sh-chat { --fg: #f6ece8; --muted: #d9b3b9; --surface: #6e1d2b; --surface-2: #7a2232; --line: #6e1d2b; --line-2: #7a2232; --accent: #f3e6e0; --accent-ink: #5c1522; --gold: #f3e6e0; --gold-2: #fff; color-scheme: dark; }
:root[data-tema="ameixa"] {
  --bg: #18141a; --bg-2: #1e191f; --surface: #211b23; --surface-2: #2b2330; --line: #2e2730; --line-2: #3a3139;
  --fg: #ece6ea; --muted: #9a8e9e; --accent: #a8475b; --accent-ink: #fff; --cyan: #d79aa7;
  --wine: #a8475b; --gold: #d79aa7; --gold-2: #e6b8c2; --soft: #2b1f27; --good: #8fc3a0; --late: #e8919a;
  --r-card: 16px; --r-ctl: 12px;
  --f-display: "IBM Plex Sans", system-ui, sans-serif; --f-body: "IBM Plex Sans", system-ui, sans-serif; --f-num: "IBM Plex Sans", system-ui, sans-serif;
}
:root[data-tema="terroso"] {
  --bg: #1c1917; --bg-2: #191614; --surface: #221e1b; --surface-2: #2c2622; --line: #2d2823; --line-2: #3a332d;
  --fg: #ede6dc; --muted: #a39888; --accent: #8c2a35; --accent-ink: #fff; --cyan: #a9ab72;
  --wine: #8c2a35; --gold: #d79a8f; --gold-2: #e6b5aa; --soft: #3d1a1f; --good: #a9ab72; --late: #e08f86;
  --r-card: 8px; --r-ctl: 6px; font-synthesis-weight: none;
  --f-display: "Instrument Serif", Georgia, serif; --f-body: "Instrument Sans", system-ui, sans-serif; --f-num: "Instrument Sans", system-ui, sans-serif;
}
/* tema da aba Design: o menu segue as cores escolhidas, não as do tema de origem */
:root[data-meu] #sh-side, :root[data-meu] #sh-chat { --fg: inherit; --muted: inherit; --surface: inherit; --surface-2: inherit; --line: inherit; --line-2: inherit; --accent: inherit; --accent-ink: inherit; --gold: inherit; --gold-2: inherit; color-scheme: inherit; }

/* Temas novos: menos cartões, mais linhas finas (como nas prévias) */
:root[data-tema] .bloco { background: transparent; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 0 0; }
:root[data-tema] .kpis { gap: 0; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
:root[data-tema] .kpi { background: transparent; border: 0; border-radius: 0; box-shadow: inset 1px 0 0 var(--line); }
:root[data-tema] .kpi:hover { background: var(--surface); }
:root[data-tema] .tiles { gap: 0 28px; }
:root[data-tema] .tile { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; min-height: 0; gap: 4px; }
:root[data-tema] .tile:hover { background: transparent; }
:root[data-tema] .tile:hover b { color: var(--gold); }
:root[data-tema] .tile .mono { display: none; }
:root[data-tema] .tile b { font-size: 1rem; }
:root[data-tema] .nav-a, :root[data-tema] #sh-busca, :root[data-tema] #sh-claude-btn { border-radius: var(--r-ctl); }:root[data-tema] .kpis:empty { display: none; }
@media (max-width: 600px) { .atalhos { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px; } .atalhos button { flex: none; } .ola { align-items: flex-start; } }
@media (max-width: 600px) { #sh-top { gap: 8px; } #sh-crumb { flex: 1; min-width: 0; flex-wrap: nowrap; overflow: hidden; white-space: nowrap; } #sh-top .fav { font-size: 0; gap: 0; padding: 7px; } #sh-sync { font-size: 0; gap: 0; } #sh-sino { padding: 7px 10px; font-size: .8rem; white-space: nowrap; } }

/* grupos de ferramentas parecidas: no menu, nas áreas e no topo da ferramenta */
.nav-g { display: flex; flex-direction: column; margin-top: 4px; }
.nav-sub .nav-g-cab { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 5px 12px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.nav-sub .nav-g-cab span { font: 500 .72rem var(--f-num); margin-left: auto; }
.nav-sub .nav-g-cab::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.nav-sub .nav-g-cab[aria-expanded="true"]::after { transform: rotate(45deg); }
.nav-sub .nav-g-cab:hover, .nav-sub .nav-g-cab:focus-visible { color: var(--fg); }
.nav-g-itens { display: flex; flex-direction: column; padding-left: 8px; }
.grupo-area { display: flex; flex-direction: column; gap: 12px; }
.grupo-area h2 { margin: 0; font: 600 1.1rem var(--f-display); }
.irmaos { max-width: 1080px; margin: 6px auto 0; padding: 0 16px; display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.irmaos span { font-size: .78rem; color: var(--muted); white-space: nowrap; margin-right: 4px; }
.irmaos button { all: unset; cursor: pointer; white-space: nowrap; padding: 5px 12px; border-radius: 99px; font-size: .84rem; border: 1px solid var(--line); color: var(--muted); }
.irmaos button:hover { color: var(--fg); border-color: var(--line-2); }
.irmaos button[aria-current="page"] { background: var(--surface-2); color: var(--fg); border-color: var(--line-2); }
.ajuda-app { max-width: 1048px; margin: 10px auto 0; padding: 0 16px; font-size: .9rem; color: var(--muted); }
.ajuda-app summary { cursor: pointer; color: var(--fg); font-weight: 600; width: max-content; }
.ajuda-app p { margin: 6px 0 0; max-width: 70ch; }
