/* ---------- Estrutura ---------- */
.app { position: fixed; inset: 0; display: grid; grid-template-columns: var(--sidebar-w) 1fr; opacity: 0; visibility: hidden; }
.app.in { opacity: 1; visibility: visible; transition: opacity .6s var(--ease); }

.sidebar {
  position: relative; z-index: 20; display: flex; flex-direction: column; min-height: 0;
  background: linear-gradient(180deg, rgba(20, 18, 21, .92), rgba(15, 13, 16, .96));
  border-right: 1px solid var(--line); backdrop-filter: blur(16px);
}
.sidebar__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; }
.sidebar__head .env { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--tx-3); border: 1px solid var(--line-2); padding: 2px 6px; border-radius: var(--r-xs); }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; }
.nav-group { margin-top: 14px; }
.nav-group__title { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-4); padding: 0 10px 6px; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--tx-2); font-size: var(--fs-sm); text-align: left; transition: background var(--t-fast), color var(--t-fast);
}
.nav-item svg { width: 17px; height: 17px; flex: none; color: var(--tx-3); transition: color var(--t-fast); }
.nav-item:hover { background: var(--s2); color: var(--tx); }
.nav-item:hover svg { color: var(--tx-2); }
.nav-item.active { background: linear-gradient(90deg, rgba(178, 44, 56, .2), rgba(178, 44, 56, .03)); color: var(--tx); }
.nav-item.active svg { color: var(--red-tx); }
.nav-item.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); box-shadow: 0 0 12px var(--red); }
.nav-item .badge { margin-left: auto; }
.nav-item .soon { margin-left: auto; font-size: 10px; color: var(--tx-4); font-family: var(--mono); }
.sidebar__foot { padding: 12px; border-top: 1px solid var(--line); }
.sidebar__demo { margin: 0 8px 10px; color: var(--warn); font-size: var(--fs-2xs); line-height: 1.45; }
.workspace-link {
  display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 8px; padding: 8px 10px;
  border: 1px solid var(--red-line); border-radius: var(--r-sm); background: var(--red-soft);
  color: var(--tx); font-size: var(--fs-xs); font-weight: 500; transition: background var(--t-fast), border-color var(--t-fast);
}
.workspace-link:hover { background: var(--s3); border-color: var(--red-tx); }
.workspace-link svg { width: 16px; height: 16px; flex: none; color: var(--red-tx); }
.workspace-link svg:last-child { margin-left: auto; }
.user-card { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-md); transition: background var(--t-fast); }
.user-card:hover { background: var(--s2); }
.user-card .who { min-width: 0; font-size: var(--fs-sm); line-height: 1.3; }
.user-card .who small { display: block; color: var(--tx-3); font-size: var(--fs-2xs); }
.user-card svg { margin-left: auto; width: 16px; height: 16px; color: var(--tx-3); }

.main { position: relative; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--topbar-h) 1fr; min-height: 0; }
.topbar {
  position: relative; z-index: 15; display: flex; align-items: center; gap: 12px; padding-inline: 24px;
  border-bottom: 1px solid var(--line); background: rgba(11, 10, 12, .6); backdrop-filter: blur(16px);
}
.topbar .burger { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--tx-3); min-width: 0; }
.crumbs { overflow: hidden; }
.crumbs b { color: var(--tx); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumbs svg { width: 14px; height: 14px; }
.search-trigger {
  margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(360px, 32vw); height: 38px; padding: 0 8px 0 12px;
  border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line-2); color: var(--tx-3); font-size: var(--fs-sm);
  transition: border-color var(--t-fast), background var(--t-fast);
}
.search-trigger:hover { border-color: var(--line-3); background: var(--s2); }
.search-trigger svg { width: 16px; height: 16px; }
.search-trigger kbd { margin-left: auto; }
kbd { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--s2); color: var(--tx-3); }
.icon-btn {
  position: relative; width: 38px; height: 38px; display: grid; place-items: center; border-radius: var(--r-sm); color: var(--tx-2);
  border: 1px solid transparent; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--s2); color: var(--tx); border-color: var(--line); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red-hot); border: 2px solid var(--bg); }
.icon-btn.bell-ring svg { animation: ring 1.2s var(--ease) 1; }
@keyframes ring { 0%, 100% { transform: rotate(0); } 15% { transform: rotate(14deg); } 30% { transform: rotate(-12deg); } 45% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } }
.clock { font-family: var(--mono); font-size: var(--fs-xs); color: var(--tx-3); padding: 0 6px; white-space: nowrap; }

.view { position: relative; overflow-y: auto; overflow-x: hidden; min-height: 0; scroll-behavior: smooth; }
.page { position: relative; z-index: 1; padding: 28px 28px 48px; max-width: 1640px; margin: 0 auto; }
.page.enter { animation: page-in .55s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head .eyebrow { font-size: var(--fs-xs); color: var(--tx-3); letter-spacing: .04em; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.page-head h1 { font-size: var(--fs-2xl); letter-spacing: -.02em; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Componentes ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px; border-radius: var(--r-sm); font-size: var(--fs-sm); font-weight: 500; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-med), color var(--t-fast);
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-red); color: #fff; box-shadow: 0 0 0 1px rgba(214, 92, 100, .5) inset, 0 8px 24px -10px rgba(178, 44, 56, .8); }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 90, 70, .8) inset, 0 12px 34px -8px rgba(178, 44, 56, .95); }
.btn-primary::after { /* brilho que passa */
  content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: var(--s2); border: 1px solid var(--line-2); color: var(--tx); }
.btn-ghost:hover { background: var(--s3); border-color: var(--line-3); }
.btn-quiet { color: var(--tx-2); }
.btn-quiet:hover { color: var(--tx); background: var(--s2); }
.btn-wa { background: var(--wa); color: #06240F; font-weight: 600; }
.btn-sm { height: 32px; padding: 0 12px; font-size: var(--fs-xs); }
.btn.loading { pointer-events: none; }
.btn .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, .35); animation: ripple .6s var(--ease) forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; background: var(--s4); color: var(--tx); font-variant-numeric: tabular-nums; }
.badge.red { background: var(--red); color: #fff; }
.badge.wa { background: var(--wa); color: #06240F; }

.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--r-pill); font-size: 11.5px; font-weight: 500; white-space: nowrap; background: var(--s3); color: var(--tx-2); }
.pill svg { width: 13px; height: 13px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.red { background: var(--red-soft); color: var(--red-tx); }
.pill.wa { background: var(--wa-soft); color: var(--wa); }
.pill .d { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.delta { display: inline-flex; align-items: center; gap: 3px; font-size: var(--fs-xs); font-weight: 600; font-variant-numeric: tabular-nums; }
.delta svg { width: 13px; height: 13px; }
.delta.up { color: var(--ok); } .delta.down { color: var(--crit); }

.avatar { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #fff; background: var(--s4); position: relative; }
.avatar.sm { width: 26px; height: 26px; font-size: 10px; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }
.avatar.xl { width: 72px; height: 72px; font-size: 22px; }
.avatar .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--s1); }
.avatars { display: flex; }
.avatars .avatar { border: 2px solid var(--s1); margin-left: -8px; }
.avatars .avatar:first-child { margin-left: 0; }

.card {
  position: relative; background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-1); min-width: 0;
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.card-head h3 { font-size: var(--fs-md); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card-head h3 svg { width: 16px; height: 16px; color: var(--tx-3); }
.card-head .sub { font-size: var(--fs-xs); color: var(--tx-3); }
.card-link { font-size: var(--fs-xs); color: var(--red-tx); display: inline-flex; align-items: center; gap: 4px; }
.card-link svg { width: 14px; height: 14px; transition: transform var(--t-fast) var(--ease); }
.card-link:hover svg { transform: translateX(3px); }

/* Luz que segue o cursor (em qualquer .spot) */
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 70, 50, .09), transparent 45%);
}
.spot::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity var(--t-med);
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 70, 50, .55), transparent 55%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.spot:hover::after, .spot:hover::before { opacity: 1; }

/* Entrada escalonada */
.rise { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }

.segmented { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--s1); border: 1px solid var(--line-2); position: relative; }
.segmented button { position: relative; z-index: 1; height: 30px; padding: 0 12px; border-radius: 7px; font-size: var(--fs-xs); color: var(--tx-3); transition: color var(--t-fast); }
.segmented button.on { color: var(--tx); }
.segmented .thumb { position: absolute; z-index: 0; top: 3px; bottom: 3px; border-radius: 7px; background: var(--s4); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; transition: left var(--t-med) var(--ease), width var(--t-med) var(--ease); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { position: relative; padding: 10px 14px; font-size: var(--fs-sm); color: var(--tx-3); white-space: nowrap; transition: color var(--t-fast); }
.tabs button:hover { color: var(--tx); }
.tabs button.on { color: var(--tx); }
.tabs button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--red); border-radius: 2px; box-shadow: 0 0 10px var(--red); }
.tabs .badge { margin-left: 6px; height: 18px; min-width: 18px; font-size: 10px; }

.input, .select {
  height: 38px; padding: 0 12px; border-radius: var(--r-sm); background: var(--bg-2); border: 1px solid var(--line-2); outline: none; font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus { border-color: var(--red-line); box-shadow: 0 0 0 3px rgba(178, 44, 56, .14); }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--tx-3); pointer-events: none; }
.input-icon .input { padding-left: 34px; width: 100%; }
.lbl { display: block; font-size: var(--fs-xs); color: var(--tx-3); margin-bottom: 6px; }

.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: left; font-weight: 500; font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-4); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--t-fast); }
.tbl tbody tr:hover { background: rgba(255, 255, 255, .025); }
.tbl .r { text-align: right; }
.tbl td.num, .tbl td .num { font-variant-numeric: tabular-nums; }

.progress { height: 6px; border-radius: 6px; background: var(--s4); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--grad-red); width: 0; transition: width 1.2s var(--ease); }
.progress.ok i { background: var(--ok); } .progress.warn i { background: var(--warn); } .progress.crit i { background: var(--crit); }

.empty { padding: 40px; text-align: center; color: var(--tx-3); }

/* ---------- Tooltip de gráfico ---------- */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid line { stroke: var(--line); }
.chart .axis text { fill: var(--tx-4); font-size: 10.5px; font-family: var(--font); }
.chart-tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 150px; padding: 10px 12px; border-radius: var(--r-sm);
  background: rgba(34, 31, 36, .95); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); font-size: var(--fs-xs);
  opacity: 0; transform: translateY(4px); transition: opacity var(--t-fast), transform var(--t-fast); backdrop-filter: blur(8px);
}
.chart-tip.on { opacity: 1; transform: none; }
.chart-tip .t { color: var(--tx-3); margin-bottom: 4px; }
.chart-tip .row { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip .row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-tip .sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.8s var(--ease) .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-up { animation: rise .9s var(--ease) both; }

/* ---------- Overlays: modal, drawer, paleta, toasts, notificações ---------- */
.scrim { position: fixed; inset: 0; z-index: 400; background: rgba(5, 4, 6, .6); backdrop-filter: blur(6px); opacity: 0; transition: opacity var(--t-med) var(--ease); }
.scrim.on { opacity: 1; }
.drawer {
  position: fixed; z-index: 410; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--s2), var(--s1)); border-left: 1px solid var(--line-2); box-shadow: -30px 0 80px -20px rgba(0,0,0,.8);
  transform: translateX(104%); transition: transform .5s var(--ease);
}
.drawer.on { transform: none; }
.drawer__head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer__head .x { margin-left: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px; }
.drawer__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }

.modal {
  position: fixed; z-index: 410; left: 50%; top: 50%; width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--s2), var(--s1)); border: 1px solid var(--line-2); border-radius: var(--r-xl); box-shadow: var(--shadow-2);
  transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.modal.on { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__body { flex: 1; overflow-y: auto; padding: 24px; }
.modal__foot { display: flex; align-items: center; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }
.modal__foot .spacer { flex: 1; }

.palette {
  position: fixed; z-index: 420; left: 50%; top: 14vh; width: min(640px, calc(100vw - 32px)); transform: translateX(-50%) scale(.97); opacity: 0;
  background: rgba(26, 23, 27, .96); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); backdrop-filter: blur(20px);
  transition: transform .35s var(--ease), opacity .25s var(--ease); overflow: hidden;
}
.palette.on { transform: translateX(-50%) scale(1); opacity: 1; }
.palette__in { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.palette__in svg { width: 18px; height: 18px; color: var(--tx-3); }
.palette__in input { flex: 1; background: none; border: 0; outline: none; font-size: var(--fs-lg); }
.palette__list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.palette__sec { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--tx-4); padding: 10px 10px 4px; }
.palette__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r-sm); font-size: var(--fs-sm); color: var(--tx-2); text-align: left; }
.palette__item svg { width: 16px; height: 16px; color: var(--tx-3); }
.palette__item small { margin-left: auto; color: var(--tx-4); font-size: var(--fs-2xs); }
.palette__item.on { background: var(--s4); color: var(--tx); }
.palette__item.on svg { color: var(--red-tx); }

.toasts { position: fixed; z-index: 900; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: rgba(34, 31, 36, .96); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-2); backdrop-filter: blur(14px); font-size: var(--fs-sm); animation: toast-in .5s var(--ease) both; overflow: hidden; position: relative;
}
.toast.out { animation: toast-out .35s var(--ease-in) forwards; }
.toast .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--red-soft); color: var(--red-tx); }
.toast .ic.ok { background: var(--ok-soft); color: var(--ok); } .toast .ic.wa { background: var(--wa-soft); color: var(--wa); }
.toast .ic svg { width: 16px; height: 16px; }
.toast b { display: block; font-weight: 500; }
.toast span { color: var(--tx-3); font-size: var(--fs-xs); }
.toast::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--red); animation: toast-timer 4.2s linear forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes toast-timer { from { width: 100%; } to { width: 0; } }

.notif {
  position: fixed; z-index: 390; top: calc(var(--topbar-h) - 4px); right: 16px; width: min(400px, calc(100vw - 32px)); max-height: 70vh; display: flex; flex-direction: column;
  background: rgba(26, 23, 27, .97); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: var(--shadow-2); backdrop-filter: blur(18px);
  opacity: 0; transform: translateY(-8px) scale(.98); transform-origin: top right; pointer-events: none; transition: opacity var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.notif.on { opacity: 1; transform: none; pointer-events: auto; }
.notif__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif__list { overflow-y: auto; }
.notif__item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.notif__item:hover { background: rgba(255,255,255,.02); }
.notif__item .ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--s3); }
.notif__item .ic svg { width: 16px; height: 16px; }
.notif__item small { display: block; color: var(--tx-3); font-size: var(--fs-2xs); margin-top: 2px; }
.notif__item.unread { background: linear-gradient(90deg, rgba(178, 44, 56,.07), transparent); }

/* ---------- Página "próxima etapa" ---------- */
.soon-page { min-height: 62vh; display: grid; place-items: center; text-align: center; }
.soon-card { max-width: 560px; padding: 44px 36px; }
.soon-card .ic { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-red); box-shadow: var(--glow-red); }
.soon-card .ic svg { width: 28px; height: 28px; color: #fff; }
.soon-card h2 { font-size: var(--fs-xl); margin-bottom: 8px; }
.soon-card p { color: var(--tx-2); }
.soon-card ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; width: min(290px, 86vw); transform: translateX(-104%); transition: transform .45s var(--ease); z-index: 450; }
  .sidebar.on { transform: none; box-shadow: 30px 0 80px -20px rgba(0,0,0,.8); }
  .topbar .burger { display: grid; }
  .search-trigger { width: auto; }
  .search-trigger span, .search-trigger kbd { display: none; }
}
@media (max-width: 640px) {
  .topbar { padding-inline: 16px; gap: 6px; }
  .page { padding: 20px 16px 40px; }
  .page-head h1 { font-size: var(--fs-xl); }
  .clock { display: none; }
  .crumbs .hide-sm { display: none; }
}

/* Colunas que nunca empurram a largura da tela */
.app { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.page > *, .grid-12 > *, .kpis > * { min-width: 0; }
@media (max-width: 1100px) { .app { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  #new-os span { display: none; }
  #new-os { width: 38px; padding: 0; }
  .page-head .eyebrow { flex-wrap: wrap; }
}

/* ---------- Entrar como (simulação do login por perfil) ---------- */
.user-card[role="button"] { cursor: pointer; }
.pf-list { display: grid; gap: 14px; padding: 18px 24px; }
.pf-grupo { display: grid; gap: 4px; min-width: 0; }
.pf-grupo > small { font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--tx-4); padding: 0 4px 2px; }
.pf-it { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 8px 10px; border-radius: var(--r-md); border: 1px solid transparent; text-align: left; transition: background var(--t-fast), border-color var(--t-fast); }
.pf-it:hover { background: var(--s2); }
.pf-it.on { background: var(--s2); border-color: var(--line-2); }
.pf-it .avatar { width: 32px; height: 32px; font-size: 11px; flex: none; }
.pf-it__t { display: grid; min-width: 0; flex: 1; }
.pf-it__t b { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-it__t small { font-size: var(--fs-2xs); color: var(--tx-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-it em { font-style: normal; font-size: var(--fs-2xs); color: var(--tx-4); flex: none; }
.pf-it > svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.pf-foot { font-size: var(--fs-2xs); color: var(--tx-3); }
.pf-foot svg { width: 16px; height: 16px; flex: none; color: var(--tx-3); }
