/* ============================================================================
   ÍNDICE GERAL — ADDVALORA  ·  Conceito A "Vibrante"
   Tema claro, cor por categoria, blocos de KPI/portais em cor cheia, marca forte.
   ============================================================================ */

@font-face { font-family:"Inter"; font-style:normal; font-weight:100 900; font-display:swap; src:url("fonts/Inter-Variable.woff2") format("woff2"); }

:root {
  --brand-navy: #0E3A5C;
  --brand-navy-700: #0B2E49;
  --accent: #EE7D00;
  --accent-hover: #D86F00;
  --accent-press: #C76600;

  --bg: #F4F2EE;
  --surface: #FFFFFF;
  --surface-alt: #F2EFE9;
  --border: #E7E3DB;
  --border-strong: #D8D2C7;

  --text-strong: #13283B;
  --text-body: #42566B;
  --text-muted: #6B7A8B;

  --nav-pill: #0E3A5C;

  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 20px; --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(19,40,59,.05);
  --shadow-sm: 0 1px 2px rgba(19,40,59,.05), 0 2px 8px rgba(19,40,59,.05);
  --shadow-md: 0 4px 12px rgba(19,40,59,.08), 0 2px 4px rgba(19,40,59,.05);
  --shadow-lg: 0 14px 34px rgba(19,40,59,.12), 0 4px 10px rgba(19,40,59,.06);
  --shadow-color: 0 10px 30px rgba(14,58,92,.14);
  --shadow-topbar: 0 1px 0 rgba(19,40,59,.06);

  --ring: 0 0 0 3px rgba(238,125,0,.30);

  --ease-out: cubic-bezier(0.2,0,0,1);
  --dur-micro: 120ms; --dur-move: 170ms; --dur-enter: 220ms;

  --container: 1180px;
  --topbar-h: 66px;
}

/* Paletas de categoria/bloco (campo "cor" em data.js) */
.pal-navy   { --c:#0E3A5C; } .pal-orange { --c:#EE7D00; } .pal-blue { --c:#1F6FB2; }
.pal-teal   { --c:#0F8466; } .pal-green  { --c:#4F8A1E; } .pal-amber { --c:#C57A12; }
.pal-purple { --c:#6A57C7; } .pal-coral  { --c:#D85A30; } .pal-gray  { --c:#5A6A7D; }

[data-theme="dark"] {
  --brand-navy: #5B9BC9;
  --accent: #F38B1A;
  --accent-hover: #FF9A2E;
  --accent-press: #E07C0C;

  --bg: #0C1620;
  --surface: #122031;
  --surface-alt: #0F1B28;
  --border: #22323F;
  --border-strong: #2E4254;

  --text-strong: #EAF0F6;
  --text-body: #B4C2D0;
  --text-muted: #8194A6;

  --nav-pill: #2B5B82;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.4);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,.4), 0 2px 4px rgba(0,0,0,.3);
  --shadow-lg: 0 14px 34px rgba(0,0,0,.5), 0 4px 10px rgba(0,0,0,.4);
  --shadow-topbar: 0 1px 0 rgba(0,0,0,.45);
  --ring: 0 0 0 3px rgba(243,139,26,.4);
}
/* Cores vivas o suficiente para o tema escuro */
[data-theme="dark"] .pal-blue{--c:#4E9BDD} [data-theme="dark"] .pal-teal{--c:#2BB894}
[data-theme="dark"] .pal-green{--c:#8CC152} [data-theme="dark"] .pal-amber{--c:#E0A73C}
[data-theme="dark"] .pal-purple{--c:#9686E0} [data-theme="dark"] .pal-coral{--c:#E88A5F}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv11" 1, "ss01" 1, "calt" 1;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  color: var(--text-body); background: var(--bg); min-height: 100vh; line-height: 1.5;
}
[hidden] { display: none !important; }
.nums { font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.ico { display: inline-flex; align-items: center; justify-content: center; }

/* ============================ TOPBAR ============================ */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(150%) blur(10px);
  box-shadow: var(--shadow-topbar);
  transition: box-shadow var(--dur-move) var(--ease-out);
}
.topbar.is-scrolled { box-shadow: var(--shadow-sm); }
.topbar__inner { max-width: var(--container); margin: 0 auto; height: var(--topbar-h); padding: 0 28px; display: flex; align-items: center; gap: 16px; }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; color: inherit; }
.brand__mark { width: 42px; height: 42px; flex-shrink: 0; display: block; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.12; }
.brand__name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--text-strong); }
.brand__subtitle { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 4px; flex-shrink: 0; margin-left: 6px; }
.nav__link {
  text-decoration: none; color: var(--text-muted); font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; border-radius: var(--r-sm); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out);
}
.nav__link .icon { width: 16px; height: 16px; }
.nav__link:hover { background: var(--surface-alt); color: var(--text-strong); }
.nav__link.is-active { background: var(--nav-pill); color: #fff; }

.search { flex: 1; max-width: 460px; margin: 0 auto; position: relative; display: flex; align-items: center; }
.search__icon { position: absolute; left: 15px; color: var(--text-muted); pointer-events: none; display: flex; }
.search__icon .icon { width: 16px; height: 16px; }
.search__input {
  width: 100%; height: 42px; padding: 0 16px 0 40px;
  border: 1px solid var(--border); border-radius: var(--r-pill);
  background: var(--surface); color: var(--text-body); font-size: 13.5px; font-family: inherit; outline: none;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out);
}
.search__input::placeholder { color: var(--text-muted); }
.search__input:focus { border-color: var(--accent); box-shadow: var(--ring); }
.search__hint { position: absolute; right: 13px; font-size: 11px; color: var(--text-muted); font-family: inherit; border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; background: var(--surface-alt); }

.icon-btn { flex-shrink: 0; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface); color: var(--text-body); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-xs); transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.icon-btn .icon { width: 18px; height: 18px; }
.icon-btn .icon-btn__moon { display: none; }
[data-theme="dark"] .icon-btn .icon-btn__sun { display: none; }
[data-theme="dark"] .icon-btn .icon-btn__moon { display: inline-block; }

/* ---- Chip de perfil ---- */
.profile-chip { flex-shrink: 0; display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-pill); padding: 4px 12px 4px 4px; cursor: pointer; box-shadow: var(--shadow-xs); font-family: inherit; transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.profile-chip:hover { background: var(--surface-alt); border-color: var(--border-strong); }
.profile-chip__avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--c, var(--brand-navy)); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.profile-chip__meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.profile-chip__name { font-size: 13px; font-weight: 700; color: var(--text-strong); }
.profile-chip__role { font-size: 11px; font-weight: 600; color: var(--text-muted); }

/* ---- Modal de seleção de perfil ---- */
.profile-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(19,40,59,.55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 20px; }
[data-theme="dark"] .profile-overlay { background: rgba(0,0,0,.6); }
.profile-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; max-width: 440px; padding: 28px; }
.profile-modal__brand { margin-bottom: 16px; }
.profile-modal__brand .brand__mark { width: 40px; height: 40px; }
.profile-modal__title { font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); }
.profile-modal__sub { font-size: 13.5px; color: var(--text-muted); margin-top: 6px; }
.profile-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.profile-opt { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--border); background: var(--surface); border-radius: var(--r-md); padding: 14px 16px; cursor: pointer; font-family: inherit; transition: border-color var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out), transform var(--dur-move) var(--ease-out); }
.profile-opt:hover { border-color: var(--border-strong); background: var(--surface-alt); transform: translateY(-1px); }
.profile-opt__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c, var(--brand-navy)); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 800; flex-shrink: 0; }
.profile-opt__body { display: flex; flex-direction: column; min-width: 0; }
.profile-opt__name { font-size: 15px; font-weight: 700; color: var(--text-strong); }
.profile-opt__role { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.profile-opt__go { margin-left: auto; color: var(--text-muted); display: grid; place-items: center; }
.profile-opt__go .icon { width: 18px; height: 18px; }
.profile-opt:hover .profile-opt__go { color: var(--accent); }
.profile-modal__close { margin-top: 18px; width: 100%; text-align: center; background: transparent; border: none; color: var(--text-muted); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; padding: 8px; border-radius: var(--r-sm); }
.profile-modal__close:hover { background: var(--surface-alt); color: var(--text-strong); }

/* ============================ LAYOUT ============================ */
.container { max-width: var(--container); margin: 0 auto; padding: 30px 28px 72px; }
.block { margin-bottom: 34px; }
.block__head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.block__head .icon { width: 18px; height: 18px; color: var(--accent); }
.block__title { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); }
.block__hint { font-size: 13px; color: var(--text-muted); margin-left: 2px; }
.btn-ghost { margin-left: auto; border: 1px solid var(--border); background: var(--surface); color: var(--text-body); font-family: inherit; font-size: 12.5px; font-weight: 600; padding: 7px 13px; border-radius: var(--r-sm); cursor: pointer; box-shadow: var(--shadow-xs); transition: background var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.btn-ghost:hover { background: var(--surface-alt); border-color: var(--border-strong); color: var(--text-strong); }
.btn-ghost[aria-pressed="true"] { background: var(--brand-navy); color: #fff; border-color: transparent; }
[data-theme="dark"] .btn-ghost[aria-pressed="true"] { color: #0C1620; }

/* ---- Meus Atalhos: estado vazio + sugestões ---- */
.atalhos-empty { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: 20px; background: var(--surface); }
.atalhos-empty__msg { font-size: 14px; color: var(--text-body); }
.atalhos-empty__msg .icon { width: 15px; height: 15px; vertical-align: -3px; color: var(--accent); }
.atalhos-empty__msg strong { color: var(--text-strong); font-weight: 700; }
.atalhos-empty__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 16px 0 12px; }

/* ---- Meus Atalhos: modo edição (arrastar/reordenar) ---- */
.grid.is-editing .card { cursor: grab; user-select: none; }
.grid.is-editing .card:active { cursor: grabbing; }
.card.is-dragging { opacity: .5; }
.card.is-dragover { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.atalho-tools { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 5px; background: color-mix(in srgb, var(--c, var(--brand-navy)) 10%, var(--surface)); border-top: 1px solid var(--border); }
.atalho-move { width: 26px; height: 24px; border: 1px solid var(--border); background: var(--surface); color: var(--text-body); border-radius: 7px; cursor: pointer; display: grid; place-items: center; }
.atalho-move:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.atalho-move[disabled] { opacity: .35; cursor: default; }
.atalho-move .icon { width: 15px; height: 15px; }
.atalho-move[data-dir="-1"] .icon { transform: rotate(180deg); }
.atalho-grip { color: var(--text-muted); display: grid; place-items: center; }
.atalho-grip .icon { width: 15px; height: 15px; }
.grid.is-editing .card { padding-bottom: 40px; }

/* ---- Hero ---- */
.hub-hero { padding: 8px 0 22px; }
.hub-hero__eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.hub-hero__title { font-size: 40px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em; color: var(--text-strong); }
.hub-hero__sub { font-size: 15px; color: var(--text-body); margin-top: 12px; max-width: 560px; }

/* ---- KPIs (blocos coloridos) ---- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 6px 0 30px; }
.stat-card { background: var(--c, var(--brand-navy)); color: #fff; border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); }
[data-theme="dark"] .stat-card { border: 1px solid rgba(255,255,255,.08); }
.stat-card__label { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9); display: flex; align-items: center; gap: 7px; }
.stat-card__value { font-size: 32px; font-weight: 800; letter-spacing: -.02em; color: #fff; margin-top: 8px; line-height: 1; }
.stat-card__meta { font-size: 12px; color: rgba(255,255,255,.82); margin-top: 6px; }

/* ============================ PORTAIS (hub) ============================ */
.portais-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; }
.portal-card {
  position: relative; overflow: hidden; text-decoration: none;
  background: var(--c, var(--brand-navy)); color: #fff;
  border-radius: var(--r-xl); padding: 28px; min-height: 158px;
  display: flex; flex-direction: column; box-shadow: var(--shadow-md);
  transition: transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.portal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.portal-card__icon { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; }
.portal-card__icon .icon { width: 27px; height: 27px; }
.portal-card__body { margin-top: 16px; }
.portal-card__name { font-size: 25px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.portal-card__desc { font-size: 13.5px; color: rgba(255,255,255,.9); margin-top: 5px; max-width: 340px; }
.portal-card__meta { margin-top: 16px; font-size: 13px; font-weight: 700; color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.portal-card__meta .icon { width: 16px; height: 16px; transition: transform var(--dur-move) var(--ease-out); }
.portal-card:hover .portal-card__meta .icon { transform: translateX(4px); }
.portal-card__wm { position: absolute; right: -34px; bottom: -46px; width: 196px; height: 196px; opacity: .12; pointer-events: none; }

/* ============================ CHIPS ============================ */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.chip { height: 34px; padding: 0 15px; border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface); color: var(--text-muted); font-size: 13px; font-weight: 600; font-family: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; box-shadow: var(--shadow-xs); transition: background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.chip .icon { width: 15px; height: 15px; }
.chip:hover { border-color: var(--border-strong); color: var(--text-strong); }
.chip.is-active { background: var(--brand-navy); color: #fff; border-color: transparent; }
[data-theme="dark"] .chip.is-active { color: #0C1620; }
.chip__count { font-size: 11px; font-weight: 700; background: var(--surface-alt); color: var(--text-muted); border-radius: var(--r-pill); padding: 0 7px; min-width: 18px; text-align: center; }
.chip.is-active .chip__count { background: rgba(255,255,255,.2); color: #fff; }
[data-theme="dark"] .chip.is-active .chip__count { background: rgba(12,22,32,.25); color: #0C1620; }

/* ============================ CATEGORIAS / CARDS ============================ */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.category { margin-bottom: 40px; scroll-margin-top: 88px; }
.category__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.category__icon { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand-navy)) 15%, var(--surface)); color: var(--c, var(--brand-navy)); }
.category__icon .icon { width: 20px; height: 20px; }
.category__titles { display: flex; flex-direction: column; min-width: 0; }
.category__name { font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); display: flex; align-items: baseline; gap: 8px; }
.category__count { font-size: 13px; font-weight: 700; color: var(--text-muted); }
.category__desc { font-size: 13px; color: var(--text-muted); }

.card {
  position: relative; overflow: hidden; display: flex; align-items: flex-start; gap: 13px;
  background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c, var(--brand-navy));
  border-radius: var(--r-md); padding: 16px; text-decoration: none; color: inherit; box-shadow: var(--shadow-xs);
  transition: transform var(--dur-move) var(--ease-out), box-shadow var(--dur-move) var(--ease-out);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card__icon { width: 46px; height: 46px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--brand-navy)) 14%, var(--surface)); color: var(--c, var(--brand-navy)); }
.card__icon .icon { width: 22px; height: 22px; }
.card__body { flex: 1; min-width: 0; }
.card__name { font-size: 15px; font-weight: 700; letter-spacing: -.01em; color: var(--text-strong); display: flex; align-items: center; gap: 6px; }
.card__name .ext { width: 12px; height: 12px; color: var(--text-muted); opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.card:hover .card__name .ext { opacity: 1; }
.card__desc { font-size: 12.5px; color: var(--text-body); margin-top: 3px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__cat { display: inline-block; margin-top: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--c, var(--brand-navy)); }

.card__fav { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border: none; background: transparent; cursor: pointer; border-radius: 8px; color: var(--text-muted); opacity: .38; display: grid; place-items: center; transition: opacity var(--dur-micro) var(--ease-out), background var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.card__fav .icon { width: 17px; height: 17px; }
.card:hover .card__fav { opacity: .75; }
.card__fav:hover { opacity: 1; background: var(--surface-alt); color: var(--text-strong); }
.card__fav.is-fav { opacity: 1; color: var(--accent); }
.card__fav.is-fav .icon { fill: var(--accent); }
.card:focus-within .card__fav, .card__fav:focus-visible { opacity: 1; }
@media (hover: none) { .card__fav { opacity: .7; } }

.card.is-soon { }
.card.is-soon .card__icon { background: var(--surface-alt); color: var(--text-muted); }
.card.is-soon { border-left-color: var(--border-strong); cursor: default; }
.card.is-soon:hover { transform: none; box-shadow: var(--shadow-xs); }
.card.is-soon .card__cat { color: var(--text-muted); }
.badge-soon { display: inline-block; margin-top: 10px; margin-left: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); background: var(--surface-alt); border: 1px solid var(--border); border-radius: 6px; padding: 1px 7px; vertical-align: middle; }

/* ============================ EMPTY / FOOTER ============================ */
.empty { text-align: center; padding: 64px 20px; max-width: 380px; margin: 0 auto; }
.empty__icon { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); display: grid; place-items: center; color: var(--accent); }
.empty__icon .icon { width: 30px; height: 30px; }
.empty__title { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.empty__text { font-size: 13px; color: var(--text-muted); margin-top: 5px; }

.footer { max-width: var(--container); margin: 0 auto; padding: 26px 28px 40px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.footer__brand { display: inline-flex; align-items: center; gap: 9px; }
.footer__logo { height: 18px; width: auto; display: block; }
[data-theme="dark"] .footer__logo { opacity: .92; }

mark { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text-strong); border-radius: 3px; padding: 0 2px; }

a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-press); outline-offset: 2px; box-shadow: var(--ring); }

/* ============================ RESPONSIVO ============================ */
@media (max-width: 760px) {
  .topbar__inner { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 10px; }
  .brand { order: 1; }
  .profile-chip { order: 2; margin-left: auto; padding: 4px; }
  .profile-chip__meta { display: none; }
  .icon-btn { order: 3; }
  .nav { order: 4; width: 100%; justify-content: space-between; gap: 4px; margin-left: 0; }
  .nav__link { flex: 1; justify-content: center; }
  .search { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
  .brand__subtitle { display: none; }
  .search__hint { display: none; }
  .container { padding: 20px 16px 56px; }
  .grid, .portais-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card__value { font-size: 27px; }
  .hub-hero__title { font-size: 30px; }
  .footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 430px) { .stats-grid { grid-template-columns: 1fr; } }
@media (min-width: 761px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .portais-grid { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 26px 20px 64px; }
  .topbar__inner { gap: 12px; }
  .nav { gap: 0; }
  .search { max-width: none; min-width: 150px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto; } }
