:root {
  color-scheme: dark;
  --mx-blue: #1467f2;
  --mx-blue-dark: #0a4fc8;
  --mx-blue-soft: #eaf2ff;
  --mx-cyan: #35a9f5;
  --mx-purple: #8b52d8;
  --bg: #061321;
  --panel: #0c1f32;
  --panel-2: #102940;
  --border: #294d6a;
  --border-strong: #3a7298;
  --text: #e8f3ff;
  --muted: #91a9bf;
  --accent: #1467f2;
  --accent-2: #1769f5;
  --good: #13bc66;
  --warn: #f2a53d;
  --bad: #e94f59;
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .22);
  --shadow-md: 0 12px 34px rgba(0, 0, 0, .36);
  --gradient: linear-gradient(135deg, var(--mx-purple), var(--mx-blue) 58%, var(--mx-cyan));
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 13px "Segoe UI Variable", "Segoe UI", system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.hidden { display: none !important; }

#login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 32px; width: 320px; box-shadow: var(--shadow-md); }
.login-box h1 { font-size: 18px; margin: 0 0 4px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-box p { color: var(--muted); margin: 0 0 20px; font-size: 13px; }
.login-box input { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); margin-bottom: 12px; }
.login-box button { width: 100%; padding: 10px; border-radius: 10px; border: none; background: var(--gradient); color: #fff; font-weight: 700; box-shadow: var(--shadow-sm); }
.login-error { color: var(--bad); font-size: 13px; min-height: 18px; margin-bottom: 8px; }

.app-shell { display: flex; min-height: 100vh; }

.app-sidebar { width: 250px; flex: none; background: #091a2b; border-right: 1px solid var(--border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.app-sidebar-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px; border-bottom: 1px solid var(--border); flex: none; }
.app-sidebar-brand .brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--gradient); display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; font-size: 13px; }
.app-sidebar-brand b { display: block; font-size: 14px; }
.app-sidebar-brand small { color: var(--muted); font-size: 11px; }
.app-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 18px; overflow-y: auto; }
.app-nav-group { display: flex; flex-direction: column; gap: 3px; }
.app-nav-label { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 10px; margin-bottom: 4px; font-weight: 700; }
.app-nav-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; }
button.app-nav-item:hover { background: var(--panel-2); }
.app-nav-item.active { background: var(--mx-blue-soft); color: var(--accent); cursor: default; }
.app-nav-item .nav-ico { width: 18px; text-align: center; flex: none; }
.app-sidebar-foot { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex: none; }
.ws-pill { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 6px; }

.app-main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
header { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--panel); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 5; }
header h1 { font-size: 17px; margin: 0; }
header .sub { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
header .sub::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 6px var(--good); flex: none; }
.header-actions { display: flex; gap: 8px; }
.btn { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); transition: all .15s ease; }
.btn:hover { border-color: var(--accent); color: var(--accent); background: var(--mx-blue-soft); }
.btn.primary { background: var(--gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-sm); }
.btn.primary:hover { filter: brightness(1.05); color: #fff; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: #401d27; color: #ff8790; }
.btn.small { padding: 4px 10px; font-size: 12px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

main { min-width: 0; padding: 20px 24px; }

.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi-card { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.kpi-card .kpi-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--panel-2); display: flex; align-items: center; justify-content: center; font-size: 17px; flex: none; }
.kpi-card > div { min-width: 0; }
.kpi-card b { display: block; font-size: 20px; line-height: 1.2; }
.kpi-card small { color: var(--muted); font-size: 11.5px; }
.kpi-card.good .kpi-icon { background: #10392c; }
.kpi-card.warn .kpi-icon { background: #3c2d17; }
.kpi-card.wide { grid-column: span 2; }
.kpi-card.wide b { font-size: 13px; font-weight: 700; white-space: normal; }

.market-ticker { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.market-ticker:empty { display: none; }
.market-ticker-label { font-size: 10px; font-weight: 800; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; white-space: nowrap; }
.market-ticker-label small { text-transform: none; font-weight: 600; letter-spacing: 0; opacity: .8; }
.market-ticker-item { display: flex; align-items: baseline; gap: 6px; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--border); }
.market-ticker-item b { color: var(--text); font-weight: 700; }

.view-hidden { display: none !important; }

.accounts-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.view-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.view-tabs button { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); font-weight: 600; cursor: pointer; }
.view-tabs button:hover { border-color: var(--border-strong); color: var(--text); }
.view-tabs button small { margin-left: 6px; color: var(--text); background: var(--panel-2); border-radius: 6px; padding: 0 6px; }
.view-tabs button.active { border-color: var(--accent); color: var(--accent); background: var(--mx-blue-soft); }
#account-search { flex: 1; min-width: 200px; padding: 8px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }
.view-toggle { display: flex; gap: 4px; margin-left: auto; }
.view-toggle button { padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel); color: var(--muted); cursor: pointer; }
.view-toggle button:hover { border-color: var(--border-strong); color: var(--text); }
.view-toggle button.active { border-color: var(--accent); color: var(--accent); background: var(--mx-blue-soft); }

.table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: auto; background: var(--panel); box-shadow: var(--shadow-sm); margin-bottom: 16px; max-height: calc(100vh - 230px); scrollbar-gutter: stable; }
.account-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.account-table thead th { position: sticky; top: 0; text-align: left; padding: 10px 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; font-size: 10.5px; letter-spacing: .04em; border-bottom: 1px solid var(--border); background: #091a2b; z-index: 1; }
.account-table tbody tr { border-bottom: 1px solid var(--border); }
.account-table tbody tr:last-child { border-bottom: none; }
.account-table tbody tr:hover { background: var(--panel-2); }
.account-table td { padding: 8px 12px; vertical-align: middle; white-space: nowrap; }
.acct-name { display: flex; align-items: center; gap: 8px; }
.acct-name-text { display: flex; flex-direction: column; }
.acct-name b { display: block; color: var(--text); }
.acct-name small { color: var(--muted); }
.status-age { display: block; color: var(--muted); font-size: 10px; margin-top: 2px; }
.mini-sprite { flex: none; border-radius: 50%; background: var(--panel-2); border: 1px solid var(--border); object-fit: contain; image-rendering: pixelated; }
.mini-sprite-fallback { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; }
.poke-cell { display: flex; align-items: center; gap: 6px; }
.acct-actions { display: flex; gap: 6px; }
.btn.tiny { padding: 4px 9px; font-size: 11.5px; border-radius: 7px; }
.auto-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2); font-weight: 800; font-size: 11px; color: var(--muted); }
.auto-badge.full { border-color: var(--good); color: #fff; background: #12703f; }
.auto-badge.empty { border-color: var(--border); color: var(--muted); }
.table-empty { text-align: center; padding: 30px; color: var(--muted); white-space: normal; }

.res-cell { display: flex; flex-direction: column; gap: 4px; }
.res-gold { font-weight: 700; }
.res-chips { display: flex; gap: 6px; }
.res-chip { font-size: 10.5px; color: var(--muted); background: var(--panel-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.best-poke-cell { display: flex; flex-direction: column; gap: 2px; cursor: default; }
.best-poke-row { display: flex; align-items: baseline; gap: 5px; font-size: 11.5px; }
.best-poke-row b { font-weight: 700; }
.best-poke-row small { color: var(--muted); font-size: 10.5px; }
.best-poke-more { color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: 15px; padding: 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient); }
.card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; }
.card-head .name { font-weight: 700; }
.status { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
.status.running { color: #fff; background: #159957; }
.status.error { color: #fff; background: #d43f4f; }
.status.waiting { color: #1c1408; background: #f4b13d; }
.flag-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; margin-left: 6px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.02em; }
.flag-badge.slow { background: #7a4a00; color: #ffd580; }
.flag-badge.stuck { background: #5c1f1f; color: #ffb3b3; }
.flag-badge.resyncing { background: #1f3a5c; color: #b3d4ff; }
.flag-badge.hot { background: #4a1f5c; color: #e0b3ff; }
.flag-badge.stalled { background: #3a3a3a; color: #ddd; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 6px; font-size: 12px; }
.stat-row .stat b { display: block; font-size: 14px; color: var(--text); }
.stat-row .stat span { color: var(--muted); font-size: 10px; }

.hcard-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hcard-title strong { font-size: 13px; }
.hcard-title .status { margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #c6ccd6; flex: none; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(19,188,102,.15); }

.hcard-alert { font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 8px; padding: 5px 8px; }
.hcard-alert.error { color: #ff8790; background: #401d27; }

.hcard-battle { display: grid; grid-template-columns: 1fr auto 1fr; gap: 6px; align-items: center; background: var(--panel-2); border-radius: 10px; padding: 8px; }
.battle-side { display: flex; gap: 6px; align-items: center; }
.battle-side.target { flex-direction: row-reverse; text-align: right; }
.battle-side .battle-info { min-width: 0; flex: 1; }
.battle-info small { color: var(--muted); font-size: 9px; letter-spacing: .03em; }
.battle-info b { display: block; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.battle-swords { font-size: 14px; color: var(--mx-purple); }
.battle-side .team-row { min-height: 0; }

.hcard-balance { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; background: var(--panel-2); border-radius: 8px; padding: 6px 8px; }
.hcard-balance small { color: var(--muted); font-size: 9px; }
.hcard-balance b { font-size: 15px; }
.hcard-balance span { color: var(--muted); }

.hcard-analyzer { border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.hcard-analyzer-head { font-size: 11px; font-weight: 700; margin-bottom: 6px; }
.hcard-analyzer-head small { color: var(--muted); font-weight: 400; }
.analyzer-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; font-size: 11px; }
.analyzer-grid b { display: block; font-size: 12px; }
.analyzer-grid small { color: var(--muted); font-size: 9px; }
.analyzer-grid .positive { color: var(--good); }
.analyzer-grid .negative { color: var(--bad); }
.hcard-rates { display: flex; gap: 10px; margin-top: 8px; padding-top: 6px; border-top: 1px dashed var(--border); font-size: 11px; font-weight: 700; flex-wrap: wrap; }

.hcard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hcard-bottom h5 { margin: 0 0 4px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.mini-list { display: flex; flex-direction: column; gap: 2px; max-height: 70px; overflow: auto; font-size: 11px; }
.mini-list span { display: flex; justify-content: space-between; gap: 6px; }
.mini-list.empty { color: var(--muted); font-size: 11px; }

.hcard-stopped { font-size: 12px; color: var(--muted); text-align: center; padding: 10px 0; }

.hcard-footer { display: flex; flex-wrap: wrap; gap: 8px; font-size: 10px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 6px; }

.badge.vip { display: inline-block; font-size: 10px; font-weight: 700; color: #6b4a00; background: var(--warn); border-radius: 4px; padding: 1px 5px; vertical-align: middle; margin-left: 4px; }

.hp-bar { position: relative; height: 14px; border-radius: 7px; background: var(--panel-2); overflow: hidden; border: 1px solid var(--border); }
.hp-fill { height: 100%; transition: width .3s ease; }
.hp-fill.good { background: var(--good); }
.hp-fill.warn { background: var(--warn); }
.hp-fill.bad { background: var(--bad); }
.hp-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.35); }

.team-row { display: flex; gap: 4px; flex-wrap: wrap; min-height: 34px; }
.team-row.empty { align-items: center; color: var(--muted); font-size: 11px; }
.poke-chip { position: relative; width: 32px; height: 32px; background: var(--panel-2); border-radius: 8px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); }
.poke-chip.leader { border-color: var(--accent); box-shadow: 0 0 0 2px var(--mx-blue-soft); }
.poke-chip.shiny { box-shadow: 0 0 0 1px var(--warn); }
.poke-chip img { width: 26px; height: 26px; image-rendering: pixelated; }
.poke-chip .poke-fallback { color: var(--muted); font-size: 14px; }
.poke-chip .poke-lv { position: absolute; bottom: -4px; right: -4px; font-size: 9px; background: var(--panel); border: 1px solid var(--border); border-radius: 4px; padding: 0 2px; color: var(--muted); }

.history-feed { display: flex; flex-direction: column; gap: 2px; font-size: 11px; color: var(--muted); border-top: 1px dashed var(--border); padding-top: 6px; max-height: 90px; overflow: auto; }
.history-row { display: flex; gap: 5px; align-items: flex-start; }
.history-row .history-text { flex: 1; }

.last-action { font-size: 11px; color: var(--muted); min-height: 14px; }
.needs-login { background: #3c2d17; border: 1px solid var(--warn); border-radius: 10px; padding: 8px; font-size: 12px; color: #ffd894; display: flex; flex-direction: column; gap: 6px; }
.needs-login input { width: 100%; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text); margin-bottom: 4px; }

.card-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.account-automations { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; border: 1px solid var(--border); border-radius: 10px; padding: 7px; background: #091a2b; }
.automation-chip { min-width: 0; min-height: 42px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); padding: 6px 8px; }
.automation-chip span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; font-weight: 750; }
.automation-chip small { color: var(--muted); font-size: 8px; }
.automation-chip.active { background: #087fb4; border-color: #3bc4ff; color: #fff; }
.automation-chip.active small { color: #d9f6ff; }

/* --- Tela de detalhes (Ver / maximizado): cartões arredondados + chaves seletoras --- */
.card.maximized { border-radius: 20px; box-shadow: var(--shadow-md); }

.card.maximized .hcard-battle {
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--panel-2), var(--panel));
}
.card.maximized .battle-side {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  gap: 10px;
}
.card.maximized .battle-info small { font-size: 10px; letter-spacing: .06em; color: var(--accent-2); font-weight: 800; }
.card.maximized .battle-info b { font-size: 14px; white-space: normal; }
.card.maximized .hp-bar { height: 18px; border-radius: 9px; margin-top: 4px; }
.card.maximized .poke-chip { width: 44px; height: 44px; }
.card.maximized .poke-chip img { width: 36px; height: 36px; }
.card.maximized .battle-swords {
  font-size: 18px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.automations-heading { margin: 4px 0 6px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.card.maximized .account-automations { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 10px; }
.card.maximized .automation-chip {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 46px;
  padding: 8px 54px 8px 12px;
  border-radius: 12px;
}
.card.maximized .automation-chip span { font-size: 11px; white-space: normal; }
.card.maximized .automation-chip small { display: none; }
.card.maximized .automation-chip::before,
.card.maximized .automation-chip::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: right .18s ease, background .18s ease;
}
.card.maximized .automation-chip::before { right: 10px; width: 34px; height: 18px; border-radius: 999px; background: var(--border-strong); }
.card.maximized .automation-chip.active::before { background: var(--accent); }
.card.maximized .automation-chip::after { right: 28px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.card.maximized .automation-chip.active::after { right: 12px; }

.modal-backdrop { position: fixed; inset: 0; background: rgba(11, 21, 48, .45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 50; }
.modal { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; width: 100%; max-width: 560px; max-height: 85vh; overflow: auto; padding: 20px; box-shadow: var(--shadow-md); }
.modal h2 { margin: 0 0 4px; font-size: 16px; }
.modal .hint { color: var(--muted); font-size: 12px; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field input, .field textarea, .field select { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel-2); color: var(--text); }
.field textarea { min-height: 100px; font-family: ui-monospace, monospace; font-size: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.check-row input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
.check-row label { font-size: 13px; }
fieldset { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 14px; padding: 12px; }
fieldset legend { padding: 0 6px; font-size: 12px; color: var(--mx-purple); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.form-error { color: var(--bad); font-size: 12px; min-height: 16px; }

/* Config/Central: layout com navegação por categorias em vez de rolagem única */
.settings-shell { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.settings-nav button { text-align: left; padding: 9px 12px; border-radius: 9px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.settings-nav button:hover { background: var(--panel-2); color: var(--text); }
.settings-nav button.active { background: var(--mx-blue-soft); color: var(--accent); }
.settings-panes fieldset.pane { display: none; }
.settings-panes fieldset.pane.active { display: block; }

/* Central de Contas — porte fiel do "Poké Command Center" do app local
   (mesmas cores/layout do tema escuro de fixes.css), adaptado aos dados
   que a nuvem tem disponíveis (sem CPU/RAM por conta, com banda e itens). */
.global-dashboard-modal { background: #071421 !important; border-color: #284b69 !important; color: #e8f2fb !important; box-shadow: 0 24px 70px rgba(0,0,0,.55) !important; width: min(1500px,97vw); max-height: 92vh; padding: 0; overflow: auto; }
.global-dashboard-head.poke-command-head { position: relative; display: grid; grid-template-columns: 58px minmax(0,1fr) auto 38px; align-items: center; gap: 14px; overflow: hidden; background: linear-gradient(110deg,#071c34 0%,#0d3155 62%,#153d67 100%); color: #fff; padding: 18px 20px; border-bottom: 3px solid #f3c845; }
.global-dashboard-head.poke-command-head::after { content: ''; position: absolute; right: 15%; top: -55px; width: 170px; height: 170px; border: 24px solid rgba(255,255,255,.045); border-radius: 50%; }
.global-dashboard-head.poke-command-head h2 { color: #fff; margin: 2px 0 4px; font-size: 22px; }
.global-dashboard-head.poke-command-head p { color: #a9c6e2; margin: 0; font-size: 11px; max-width: 760px; }
.global-kicker { color: #71b9ff; font-size: 9px; font-weight: 900; letter-spacing: 1.45px; }
.poke-command-logo { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 50%,#fff 0 11%,#152a40 12% 19%,#e94a4a 20% 48%,#f4f7fb 49% 100%); border: 3px solid #f5cf4b; box-shadow: 0 0 0 5px rgba(48,137,231,.18),0 10px 28px rgba(0,0,0,.25); color: #12273d; font-weight: 1000; font-size: 18px; }
.poke-command-badges { display: flex; gap: 7px; flex-wrap: nowrap; justify-content: flex-end; }
.poke-command-badges span { padding: 6px 9px; border: 1px solid rgba(123,190,255,.35); border-radius: 999px; background: rgba(9,28,49,.55); color: #d7ecff; font-size: 9px; font-weight: 900; letter-spacing: .5px; white-space: nowrap; }
.global-dashboard-head .modal-close { background: rgba(255,255,255,.1); color: #fff; border: none; width: 32px; height: 32px; border-radius: 8px; }
.global-filters { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid #294762; background: #0a1928; }
.global-filters input { flex: 1; height: 38px; padding: 0 12px; border: 1px solid #31516f; border-radius: 10px; color: #e5eff8; background: #081522; outline: 0; }
.global-filters input:focus { border-color: #2777f6; box-shadow: 0 0 0 3px rgba(39,119,246,.12); }
.global-account-total { white-space: nowrap; padding: 0 8px; color: #8eabc4; font-size: 10px; font-weight: 800; }
#globalDashboardContent { background: linear-gradient(180deg,#081624 0%,#0a1928 100%); color: #dce9f6; padding: 13px; }
.global-summary-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 8px; margin-bottom: 10px; }
.global-summary-card { min-width: 0; min-height: 74px; padding: 10px 11px; border: 1px solid #294c6a; border-radius: 12px; background: #0d2134; color: #e3eef8; }
.global-summary-card.primary { color: #fff; border-color: #3faed8; background: linear-gradient(145deg,#0d5790,#137da9); }
.global-summary-card.bandwidth { border-color: #296f9e; background: linear-gradient(145deg,#0b2439,#123f5d); }
.global-summary-card small { display: block; color: #7087a4; font-size: 8px; font-weight: 900; letter-spacing: .85px; }
.global-summary-card.primary small, .global-summary-card.primary span, .global-summary-card.bandwidth small, .global-summary-card.bandwidth span { color: #dcebff !important; }
.global-summary-card b { display: block; margin: 4px 0 1px; color: #f2f7fc; font-size: 17px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; }
.global-summary-card b em { color: inherit; opacity: .7; font-size: 10px; font-style: normal; font-weight: 700; }
.global-summary-card span { color: #87a4bd; font-size: 9px; }
.global-summary-card.negative b { color: #ff6677 !important; }
.global-summary-card.positive b { color: #2de08e !important; }
.global-drops-panel { margin: 0 0 10px; padding: 10px; border: 1px solid #cbdced; border-radius: 12px; background: #071a31; color: #e8f3ff; }
.global-drops-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 8px; border-bottom: 2px solid #9d7e25; padding-bottom: 7px; }
.global-drops-panel-head h3 { margin: 2px 0 1px; color: #fff; font-size: 13px; }
.global-drops-panel-head p { margin: 0; color: #87a8cb; font-size: 9px; }
.global-drops-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.global-drops-grid span { display: block; padding: 6px 8px; border: 1px solid #1f3d5c; border-radius: 8px; background: #0c2338; font-size: 9px; color: #cfe4f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-drops-grid span b { color: #fff; }
.global-catch-panel { background: #0f1a30; }
.global-catch-controls { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-bottom: 1px solid #1f3d5c; }
.global-catch-controls input { flex: 1; height: 34px; padding: 0 11px; border: 1px solid #31516f; border-radius: 9px; color: #e5eff8; background: #081522; outline: 0; font-size: 11px; }
.global-catch-controls select { height: 34px; padding: 0 9px; border: 1px solid #31516f; border-radius: 9px; color: #e5eff8; background: #081522; outline: 0; font-size: 11px; }
.global-catch-grid { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 7px; max-height: 520px; overflow-y: auto; padding-right: 4px; }
.global-catch-row { display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; padding: 8px 6px; border: 1px solid #1f3d5c; border-radius: 10px; background: #0c2338; text-align: center; }
.global-catch-row.shiny { border-color: #ffd76b; background: #2a2308; }
.global-catch-row .shiny-star { position: absolute; top: 4px; left: 6px; font-size: 11px; }
.global-catch-avatar { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.global-catch-avatar img { width: 28px; height: 28px; image-rendering: pixelated; }
.global-catch-row b { color: #fff; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.global-catch-row small { color: #9fc2e0; font-size: 9px; }
.global-catch-owner { color: #6f92b5 !important; }
@media (max-width: 1180px) { .global-catch-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.global-bulk-panel { margin: 0 0 10px; padding: 11px; border: 1px solid #365a77; border-radius: 15px; background: #0d2134; }
.global-bulk-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.global-bulk-title strong { font-size: 14px; color: #f2f7fc; display: block; }
.global-bulk-title small { font-size: 10px; color: #87a4bd; }
.global-bulk-actions { display: flex; gap: 7px; overflow-x: auto; padding: 2px 1px 5px; }
.global-bulk-btn { min-width: 108px; height: 46px; padding: 5px 9px; border: 1px solid #365a77; border-radius: 11px; background: #10263a; color: #dce9f5; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: 1fr 1fr; align-items: center; text-align: left; transition: transform .12s ease,border-color .12s ease,background .12s ease; }
.global-bulk-btn:hover { transform: translateY(-1px); border-color: #5daed5; background: #173650; }
.global-bulk-btn > span { grid-row: 1/3; font-size: 17px; }
.global-bulk-btn > b { font-size: 10px; white-space: nowrap; }
.global-bulk-btn > small { font-size: 8px; color: #829db5; max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.global-bulk-btn.active { background: linear-gradient(135deg,#176fd0,#18a5cf); border-color: #69d6fb; color: #fff; box-shadow: 0 0 0 1px rgba(105,214,251,.18),0 6px 16px rgba(15,121,184,.24); }
.global-bulk-btn.active > small { color: #e9f8ff; }
.global-bulk-btn.mixed { background: #3b3016; border-color: #a98a32; color: #f7df8b; }
.global-bulk-status { min-height: 0; margin-top: 4px; font-size: 10px; font-weight: 800; color: #829db5; }
.global-bulk-status:not(:empty) { padding: 6px 8px; border-radius: 8px; background: #081522; border: 1px solid #31516f; }
.global-table-wrap { border: 1px solid #294c6a; border-radius: 13px; overflow: hidden; background: #0d2134; }
.global-table-head, .global-account-row { display: grid; grid-template-columns: 1.08fr .94fr 1.35fr .68fr .62fr .75fr 1.22fr 1fr; gap: 8px; align-items: center; }
.global-table-head { min-height: 32px; padding: 0 12px; color: #cfe4f5; background: #0b2a45; font-size: 8px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; }
.global-account-row { width: 100%; min-height: 58px; padding: 7px 12px; border: 0; border-top: 1px solid #25425c; background: #0c1d2e; color: #dce9f6; cursor: default; margin: 0; }
.global-account-row:nth-child(even) { background: #10243a; }
.global-account-row:hover { background: #15334e; }
.global-account-row strong { display: block; color: #f5f9fd; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-account-row small { display: block; margin-top: 2px; color: #87a4bd; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-account { display: flex; align-items: center; gap: 7px; min-width: 0; }
.global-account input[type="checkbox"] { flex: 0 0 auto; accent-color: var(--accent); }
.global-account .dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #a9b6c7; }
.global-account .dot.on { background: #18c778; box-shadow: 0 0 0 3px rgba(24,199,120,.12); }
.global-pokemon { display: flex; align-items: center; gap: 8px; min-width: 0; }
.global-poke-avatar { width: 26px; height: 26px; border-radius: 8px; overflow: hidden; flex: 0 0 auto; background: #0c2338; display: flex; align-items: center; justify-content: center; }
.global-poke-avatar img { width: 100%; height: 100%; object-fit: contain; }
.global-poke-avatar.fallback { color: #5c7a94; }
.global-rate b { display: block; font-size: 12px; }
.global-rate small { display: block; color: #87a4bd; font-size: 8px; }
.global-rate.positive b { color: #2de08e; text-shadow: 0 0 12px rgba(45,224,142,.12); }
.global-rate.negative b { color: #ff6677; text-shadow: 0 0 12px rgba(255,102,119,.12); }
.global-row-drops { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.global-row-drops > span { display: block; color: #cfe4f5; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.global-row-drops > span b { color: #f5f9fd; }
.global-row-drops > i { width: max-content; max-width: 100%; margin-top: 2px; color: #55c7ff; font-size: 8px; font-style: normal; font-weight: 900; text-decoration: underline; cursor: pointer; }
.global-status { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 3px 7px; border-radius: 999px; color: #87a4bd; background: #0c2338; font-size: 8px; font-weight: 800; }
.global-status i { width: 6px; height: 6px; border-radius: 50%; background: #99abc0; flex: 0 0 auto; }
.global-status.online { color: #6ff0b0; background: #0d3b35; } .global-status.online i { background: #18c778; }
.global-status.market { color: #ffd280; background: #3c2d17; } .global-status.market i { background: #e7a51c; }
.global-status.danger { color: #ff9aa8; background: #381923; } .global-status.danger i { background: #ef5264; }
.global-empty { padding: 32px; color: #87a4bd; text-align: center; }
@media (max-width: 1180px) { .global-summary-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .global-drops-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .global-table-wrap { overflow-x: auto; } .global-table-head, .global-account-row { min-width: 900px; } }

/* 3.6.0 web: visão ampliada e gerenciadores globais. */
.grid:has(.card.maximized) { grid-template-columns: 1fr; }
.grid:has(.card.maximized) .card:not(.maximized) { display: none; }
.card.maximized { min-height: calc(100vh - 170px); }
.manager-modal { max-width: 900px; }
.manager-toolbar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; }
.vip-controls { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 10px; align-items: end; }
.vip-controls small { color: var(--muted); }
.manager-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 8px; max-height: 55vh; overflow: auto; padding: 4px; }
.manager-list label, .family-account, .invite-row, .family-summary { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel-2); padding: 10px; color: var(--text); }
.manager-list label span, .family-account span, .family-summary b { flex: 1; font-weight: 700; }
.manager-list label small, .family-account small, .family-summary span { color: var(--muted); }
.family-account { width: 100%; text-align: left; cursor: pointer; }
.manager-list.compact { max-height: 210px; margin: 8px 0; }
.family-manager-modal { max-width: 1040px; }
.family-groups { display: grid; grid-template-columns: repeat(auto-fit,minmax(390px,1fr)); gap: 12px; max-height: 67vh; overflow: auto; padding: 3px; }
.family-group-block { border: 1px solid var(--border); background: var(--panel-2); border-radius: 12px; padding: 12px; }
.family-group-head, .family-group-actions { display: flex; align-items: center; gap: 8px; }
.family-group-head { margin-bottom: 9px; }
.family-group-head > div { display: flex; flex-direction: column; min-width: 95px; }
.family-group-head small, .family-account small { display: block; color: var(--muted); }
.family-group-head .input { flex: 1; min-width: 0; }
.family-group-members { display: grid; gap: 6px; }
.family-group-members .family-account { justify-content: space-between; }
.family-group-members .family-account span { min-width: 0; }
.family-group-members .family-account em { color: var(--muted); font-size: 11px; font-style: normal; text-align: right; }
.family-group-actions { margin-top: 10px; flex-wrap: wrap; }
.family-group-actions span { font-size: 11px; color: var(--muted); flex: 1; min-width: 160px; }
.family-group-actions span.ok { color: var(--green); }
.family-group-actions span.warn { color: var(--yellow); }
.family-group-actions span.error { color: var(--red); }
@media (max-width: 680px) { .family-groups { grid-template-columns: 1fr; } }
.auto-hunt-ranking { display: grid; gap: 5px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 10px; margin: 8px 0; }
.auto-hunt-ranking > div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--border); padding-top: 5px; font-size: 11px; }
.auto-hunt-ranking > div span, .auto-hunt-ranking small { color: var(--muted); text-align: right; }
.monitor-transfer { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--border); background: var(--panel-2); border-radius: 10px; padding: 10px; margin: 10px 0; }
.monitor-transfer > div { display: flex; flex-direction: column; gap: 3px; }
.monitor-transfer span, .monitor-transfer small { color: var(--muted); font-size: 11px; }
.monitor-transfer.problem { border-color: var(--red); }
@media (max-width: 760px) { .monitor-transfer { grid-template-columns: 1fr; } }
.automation-detail-modal { max-width: 720px; }
.automation-modal-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); margin: -4px -4px 14px; padding: 4px 4px 12px; }
.automation-modal-head small { color: var(--accent); font-weight: 800; letter-spacing: .08em; }
.automation-modal-head h2 { margin: 5px 0; }
.automation-modal-head p { color: var(--muted); margin: 0; }
.automation-objectives { display: flex; gap: 7px; flex-wrap: wrap; margin: 10px 0; }
.automation-objectives label input { position: absolute; opacity: 0; pointer-events: none; }
.automation-objectives label span { display: block; border: 1px solid var(--border); border-radius: 8px; padding: 8px 13px; cursor: pointer; font-weight: 700; }
.automation-objectives label input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.auto-hunt-ranking.detailed { max-height: 340px; overflow: auto; margin-top: 12px; }
.family-summary { margin: 10px 0; }
.invite-row { margin: 6px 0; }
.invite-row span { flex: 1; }
.family-depot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.family-depot-grid section { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.family-depot-grid select,.family-depot-grid input { width: 100%; padding: 8px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); }
.family-depot-grid section div { display: flex; gap: 7px; }
.form-error.progress { color: #facc15; }
.form-error.success { color: #34d399; }
.monitor-modal { width: min(1450px,96vw); max-width: 1450px; }
.monitor-head { display: flex; justify-content: space-between; align-items: flex-start; }
.monitor-head small { color: var(--accent); font-weight: 800; letter-spacing: .12em; }
.monitor-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 12px 0; }
.monitor-summary span { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 10px; color: var(--muted); }
.monitor-summary b { display: block; color: var(--text); font-size: 18px; }
.monitor-table { max-height: 65vh; overflow: auto; border: 1px solid var(--border); border-radius: 10px; }
.monitor-row { width: 100%; display: grid; grid-template-columns: 1.1fr 1.25fr 1fr .8fr .55fr 2fr; gap: 8px; align-items: center; border: 0; border-bottom: 1px solid var(--border); background: var(--panel); color: var(--text); padding: 9px; text-align: left; }
.monitor-row:not(.monitor-label):hover { background: var(--panel-2); }
.monitor-row.problem { border-left: 3px solid var(--bad); background: #201923; }
.monitor-row span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.monitor-row small { display: block; color: var(--muted); }
.monitor-label { position: sticky; top: 0; z-index: 1; background: #0b2941; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.btn.active,#btn-autocollect.active { background: #087fb4; border-color: #3bc4ff; color: #fff; }
#btn-autocollect small { color: #9effc9; font-size: 9px; }
.autocollect-modal { width: min(1050px,96vw); max-width: 1050px; }
.autocollect-master { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-2); padding: 12px; margin: 12px 0; font-weight: 750; }
.autocollect-items { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; max-height: 290px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.autocollect-items label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-2); padding: 8px; }
.autocollect-items label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.autocollect-items label small { color: var(--muted); }
.autocollect-note { color: var(--muted); border-left: 3px solid var(--warn); padding: 8px 10px; margin: 10px 0; background: #302613; }
.bulk-login-modal { width: min(1500px, 96vw); max-width: 1500px; height: 94vh; display: flex; flex-direction: column; }
.bulk-login-head { display: flex; align-items: flex-start; gap: 18px; }
.bulk-login-head > div { flex: 1; }
.bulk-login-head small { color: var(--accent); font-weight: 800; letter-spacing: .12em; }
.bulk-login-head h2 { margin: 4px 0; }
#bulk-login-summary { border: 1px solid var(--border); background: var(--panel-2); border-radius: 10px; padding: 9px 12px; margin: 10px 0; color: var(--muted); }
.bulk-login-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; gap: 10px; overflow: auto; min-height: 0; padding: 2px; align-content: start; }
.bulk-login-card { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #071523; }
.bulk-login-card header, .bulk-login-card footer { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.bulk-login-card header b { flex: 1; }
.bulk-login-card header span { color: #72c8ff; font-size: 11px; max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-login-card canvas { display: block; width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #02070d; cursor: pointer; }
.bulk-login-card.expanded { grid-column: 1 / -1; position: sticky; top: 0; z-index: 4; box-shadow: 0 12px 40px #000b; }
.bulk-login-card.expanded canvas { width: auto; max-width: 100%; height: min(68vh,720px); margin: 0 auto; aspect-ratio: auto; }
.bulk-login-card.completed { border-color: #22c55e; opacity: .7; }
.bulk-login-card.failed { border-color: #ef4444; }
@media (max-width: 1050px) { .bulk-login-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .bulk-login-grid { grid-template-columns: 1fr; } }
.visual-login-modal { width: min(1280px, 97vw); max-width: 1280px; height: 95vh; display: flex; flex-direction: column; }
.weblogin-stage { flex: 1; min-height: 0; display: flex; justify-content: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: #000; line-height: 0; }
.weblogin-stage canvas { display: block; width: auto !important; height: 100% !important; max-width: 100%; object-fit: contain; cursor: pointer; }
@media (max-width: 900px) { .app-sidebar { display: none; } .header-actions { overflow-x: auto; } .kpi-card.wide { grid-column: span 1; } }
@media (max-width: 700px) { .family-depot-grid,.vip-controls { grid-template-columns: 1fr; } .monitor-summary { grid-template-columns: 1fr 1fr; } .monitor-row { grid-template-columns: 1fr 1fr; } .monitor-row span:nth-child(n+3) { display: none; } .autocollect-items { grid-template-columns: 1fr; } }
.bridge-status{display:flex;flex-direction:column;gap:4px;padding:14px;border:1px solid #334e68;border-radius:12px;background:#0b1d2d;margin:14px 0}.bridge-status.online{border-color:#17c98b}.bridge-status.online b{color:#42e8ad}.bridge-status.offline b{color:#ffbd4a}.bridge-counters{padding:10px 0}.bridge-jobs{display:grid;gap:7px;max-height:310px;overflow:auto}.bridge-job{display:flex;justify-content:space-between;gap:16px;padding:9px 12px;border-radius:8px;background:#102b40}.bridge-job.visual{border-left:3px solid #62a8ff}.bridge-job.failed{border-left:3px solid #ff5d67}.bridge-job span{color:#91b4d2;text-align:right}
.market-var { font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.market-var.down { color: #22c55e; }
.market-var.up { color: #ef4444; }

/* fix: atributo [hidden] tem que continuar escondendo mesmo quando o elemento
   tem display:grid/flex declarado no CSS de autor (author sempre vence o
   [hidden] padrao do user-agent) - corrige a busca em Central e em Auto Coleta */
.global-account-row[hidden], .autocollect-items label[hidden] { display: none !important; }

/* Família automática */
.family-auto-box { border: 1px solid var(--border); background: var(--panel-2); border-radius: 12px; padding: 12px; margin: 10px 0 14px; }
.family-auto-box h3 { margin: 0 0 8px; font-size: 14px; } .family-auto-box h3 small { color: var(--muted); font-weight: 400; margin-left: 6px; }
.fa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.fa-toggle { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; }
.fa-toggle span { display: grid; } .fa-toggle small, .fa-family small { color: var(--muted); font-size: 11px; }
.fa-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; }
.fa-row label { display: grid; gap: 4px; font-size: 11px; color: var(--muted); } .fa-row .fa-wide { flex: 1; min-width: 220px; }
.fa-families { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.fa-family { display: grid; gap: 2px; border: 1px solid var(--border); border-radius: 10px; padding: 8px; } .fa-family .warn { color: #f5b041; }

/* Família automática v2 */
.fa-items { display: grid; gap: 6px; margin: 10px 0; } .fa-items > small { color: var(--muted); font-size: 11px; }
.fa-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--border); border-radius: 8px; padding: 4px 8px; }
.fa-item b { width: 18px; color: var(--muted); } .fa-item span { flex: 1; }
.fa-bar { height: 6px; border-radius: 4px; background: var(--panel); overflow: hidden; } .fa-bar i { display: block; height: 100%; background: #3b82f6; }
.fa-chips { display: flex; flex-wrap: wrap; gap: 4px; } .fa-chip { font-size: 11px; border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.fa-chip.bad { border-color: #e5484d; color: #ff8b8e; } .fa-chip.away { opacity: .55; }
.fa-family .fa-preview { color: #8ec5ff; } .fa-family .fa-row { margin: 4px 0 0; }

.dex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 340px; overflow: auto; margin-top: 6px; }
