/* ============================================================
   GSales Trainer · Design System v1
   Linguagem aprovada: app reunioes.growdigital ao vivo
   (claro frio, accent roxo, cards 3 seções com hairlines,
   pills outlined com dot, botão primário pill).
   Coral GSales fica na marca e nos relatórios dark.
   ============================================================ */
:root {
  --bg: #fafafb;
  --surface: #ffffff;
  --muted: #f5f6f8;
  --border: #e9eaf0;
  --hairline: rgba(20, 22, 31, 0.07);

  --text: #191b23;
  --text-2: #5d6473;
  --text-3: #9aa1b1;

  /* Accent: vermelho GSales (decisão do Matheus em 09/06, M0: "quero que seja vermelho mesmo") */
  --accent: #e8291c;
  --accent-hover: #c92114;
  --accent-dim: rgba(232, 41, 28, 0.07);
  --accent-ring: rgba(232, 41, 28, 0.16);
  --accent-border: #f2aaa5;

  --brand-coral: #e8291c;

  --st-fila: #64748b;     --st-fila-soft: rgba(100, 116, 139, 0.12);
  --st-anal: #2563eb;     --st-anal-soft: rgba(37, 99, 235, 0.10);
  --st-pronta: #16a34a;   --st-pronta-soft: rgba(22, 163, 74, 0.10);
  --st-falhou: #e11d48;   --st-falhou-soft: rgba(225, 29, 72, 0.08);

  --hi: #15803d; --mid: #d97706; --lo: #dc2626;
  --hi-soft: rgba(21, 128, 61, 0.10); --mid-soft: rgba(217, 119, 6, 0.10); --lo-soft: rgba(220, 38, 38, 0.08);

  --r-sm: 4px; --r-md: 8px; --r-lg: 10px; --r-card: 14px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 4px 10px -2px rgba(50, 50, 93, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
  --shadow-lg: 6px 14px -6px rgba(50, 50, 93, 0.12), 3px 8px -3px rgba(0, 0, 0, 0.05);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; line-height: 1.5;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── Shell e sidebar ── */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 230px; flex-shrink: 0; background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 12px 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { font-weight: 800; font-size: 15px; letter-spacing: 1.4px; padding: 0 10px; text-decoration: none; }
.brand i { font-style: normal; color: var(--brand-coral); }
.brand small { color: var(--text-3); font-weight: 600; font-size: 10.5px; letter-spacing: .06em; }
.workspace {
  margin: 14px 10px 18px; padding: 7px 10px; border: 1px solid var(--border);
  border-radius: var(--r-lg); display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600;
}
.workspace .wlogo {
  width: 20px; height: 20px; border-radius: 6px; background: var(--accent-dim); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 9.5px; font-weight: 800;
}
.workspace small { margin-left: auto; color: var(--text-3); font-weight: 500; }
.nav-section {
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); padding: 0 10px; margin: 12px 0 6px;
}
.nav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-lg); color: var(--text-2);
  text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background .14s ease, color .14s ease; margin-bottom: 1px;
}
.nav-item svg { width: 16px; height: 16px; stroke-width: 1.75; }
.nav-item:hover { background: var(--muted); color: var(--text); }
.nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.nav-item.active::before {
  content: ''; position: absolute; left: 2px; top: 50%; margin-top: -8px;
  width: 3px; height: 16px; border-radius: 2px; background: var(--accent);
}
.sidebar-foot { margin-top: auto; padding: 10px 6px 0; display: flex; align-items: center; gap: 9px; border-top: 1px solid var(--border); }
.sidebar-foot .who { min-width: 0; flex: 1; }
.sidebar-foot .who b { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .who small { font-size: 11px; color: var(--text-3); }
.iconbtn {
  width: 30px; height: 30px; border: 1px solid transparent; background: transparent; cursor: pointer;
  border-radius: var(--r-md); color: var(--text-3); display: inline-flex; align-items: center; justify-content: center;
  transition: background .14s ease, color .14s ease;
}
.iconbtn:hover { background: var(--muted); color: var(--text); }
.iconbtn svg { width: 15px; height: 15px; }

.avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--muted);
  border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
  font-size: 10.5px; font-weight: 700; color: var(--text-2); flex-shrink: 0;
}
.avatar.lg { width: 52px; height: 52px; font-size: 17px; border-radius: 16px; background: linear-gradient(135deg, var(--accent), #7a68ff); color: #fff; border: none; }

/* ── Conteúdo ── */
.main { flex: 1; min-width: 0; padding: 26px 32px 60px; }
.crumb { font-size: 12.5px; color: var(--text-3); margin-bottom: 10px; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.page-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
h1 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.page-sub { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.page-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.quota {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11px; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  padding: 6px 11px; border-radius: 999px;
}
.quota i { width: 7px; height: 7px; border-radius: 50%; background: var(--st-pronta); }
.quota.cheia i { background: var(--lo); }

/* ── Botões (primário PILL, como o app vivo) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 15px; height: 15px; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 1px 3px rgba(83,58,253,.30); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { border-color: var(--accent-border); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--muted); color: var(--text); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 12.5px; }

/* ── Formulários ── */
.lbl {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin: 0 0 6px 1px;
}
.input, select.input, textarea.input {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); font: inherit; font-size: 13.5px; color: var(--text);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.input { height: auto; padding: 10px 12px; min-height: 90px; resize: vertical; }
.input::placeholder { color: var(--text-3); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
select.input {
  appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6.5 8 10.5 12 6.5' stroke='%239aa1b1' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center;
}
.fields { display: grid; gap: 14px; }
.fields.cols2 { grid-template-columns: 1fr 1fr; }
.field-file {
  border: 1.5px dashed var(--border); border-radius: var(--r-card); background: var(--surface);
  padding: 18px; text-align: center; color: var(--text-2); font-size: 13px;
  transition: border-color .15s ease, background .15s ease;
}
.field-file:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.field-file input { width: 100%; cursor: pointer; }

/* ── Toolbar / filtros ── */
.toolbar { display: flex; align-items: center; gap: 10px; margin: 16px 0 20px; flex-wrap: wrap; }
.search { position: relative; width: 250px; }
.search .input { padding-left: 32px; height: 36px; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--text-3); }
.seg { display: inline-flex; }
.seg a {
  height: 36px; padding: 0 13px; display: inline-flex; align-items: center;
  border: 1px solid var(--border); background: var(--surface); text-decoration: none;
  color: var(--text-2); font-size: 13px; position: relative;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.seg a:not(:first-child) { border-left: 0; }
.seg a:first-child { border-radius: 999px 0 0 999px; padding-left: 15px; }
.seg a:last-child { border-radius: 0 999px 999px 0; padding-right: 15px; }
.seg a:hover:not(.is-active) { background: var(--accent-dim); color: var(--accent); z-index: 1; }
.seg a.is-active { background: var(--accent-dim); color: var(--accent); border-color: var(--accent-border); font-weight: 600; z-index: 2; }

/* ── Board ── */
.board { display: grid; grid-template-columns: repeat(4, minmax(235px, 1fr)); gap: 14px; align-items: start; }
.kcol { min-width: 0; }
.kcol-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 10px; }
.kcol-head .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.kcol-head .nome { font-size: 13px; font-weight: 600; }
.kcol-count {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 600;
  color: var(--text-3); background: var(--muted); padding: 2px 8px; border-radius: 999px;
}
.kcol-body { display: flex; flex-direction: column; gap: 10px; min-height: 60px; }
.kcol-vazia { font-size: 12px; color: var(--text-3); padding: 14px 6px; }

/* ── Card de reunião (linguagem do crm-card vivo) ── */
.mcard {
  position: relative; background: var(--surface); display: block; text-decoration: none;
  border: 1px solid var(--hairline); border-radius: var(--r-card);
  cursor: pointer; overflow: hidden; isolation: isolate;
  --mx: 50%; --my: 0%;
  box-shadow: var(--shadow-xs);
  transition: transform 220ms cubic-bezier(.22,.61,.36,1), box-shadow 220ms cubic-bezier(.22,.61,.36,1), border-color 220ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
.mcard .spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity 220ms cubic-bezier(.22,.61,.36,1);
  background: radial-gradient(300px circle at var(--mx) var(--my),
    rgba(232,41,28,0.07), rgba(232,41,28,0.028) 40%, transparent 68%);
}
.mcard:hover .spot { opacity: 1; }
.mcard::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--r-card) 0 0 var(--r-card);
  background: var(--st-fila); opacity: 0; transition: opacity 200ms ease; z-index: 2;
}
.mcard:hover::before { opacity: .95; }
.mcard.s-fila::before { background: var(--st-fila); }
.mcard.s-analisando::before { background: var(--st-anal); }
.mcard.s-pronta::before { background: var(--st-pronta); }
.mcard.s-falhou::before { background: var(--st-falhou); }
.mcard:hover { transform: translateY(-3px); border-color: var(--accent-border); box-shadow: var(--shadow-lg); }

.mc-head { position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 9px; padding: 11px 12px; }
.mc-dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex-shrink: 0; }
.s-fila .mc-dot { background: var(--st-fila); }
.s-analisando .mc-dot { background: var(--st-anal); }
.s-pronta .mc-dot { background: var(--st-pronta); }
.s-falhou .mc-dot { background: var(--st-falhou); }
.mc-title { min-width: 0; flex: 1; }
.mc-title .org { display: block; font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-title .ctc { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mc-body { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--hairline); }
.nota { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.nota small { font-size: 10.5px; color: var(--text-3); font-weight: 400; margin-left: 2px; }
.nota.hi { color: var(--hi); } .nota.mid { color: var(--mid); } .nota.lo { color: var(--lo); }
.mc-status { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.mc-status.erro { color: var(--lo); }
.spin {
  width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--st-anal-soft); border-top-color: var(--st-anal);
  animation: rot .7s linear infinite;
}
@keyframes rot { to { transform: rotate(360deg); } }

.qpill {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 3px 9px;
  font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface); white-space: nowrap;
}
.qpill i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.qpill.diagnostico i { background: var(--accent); }
.qpill.direta i { background: var(--st-anal); }
.qpill.canal i { background: var(--mid); }
.qpill.alerta { color: var(--lo); border-color: rgba(220,38,38,.25); }
.qpill.alerta i { background: var(--lo); }

.mc-foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-top: 1px solid var(--hairline); }
.mc-foot .when { font-size: 11.5px; color: var(--text-3); }
.mc-foot .ir { margin-left: auto; color: var(--text-3); display: inline-flex; transition: color .14s ease, transform .14s ease; }
.mc-foot .ir svg { width: 14px; height: 14px; }
.mcard:hover .mc-foot .ir { color: var(--accent); transform: translateX(2px); }

/* ── Painéis, stats, listas ── */
.panel { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); box-shadow: var(--shadow-xs); padding: 18px 20px; margin-bottom: 20px; }
.panel-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { font-size: 14.5px; font-weight: 700; letter-spacing: -0.01em; }
.panel-head small { color: var(--text-3); font-size: 12px; }
.panel-head .right { margin-left: auto; display: flex; gap: 12px; font-size: 11px; color: var(--text-3); align-items: center; }
.panel-head .right i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 13px 15px; box-shadow: var(--shadow-xs); }
.stat .k { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.stat .v { font-family: var(--mono); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat .v small { font-size: 11px; color: var(--text-3); font-weight: 400; }
.stat .v.texto { font-size: 14px; font-family: var(--font); font-weight: 700; }
.stat .hint { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.v.up { color: var(--hi); } .v.down { color: var(--lo); }

.hist { display: flex; flex-direction: column; }
.hrow {
  display: flex; align-items: center; gap: 12px; padding: 11px 6px;
  border-bottom: 1px solid var(--hairline); text-decoration: none;
  transition: background .14s ease; border-radius: var(--r-md);
}
.hrow:hover { background: var(--muted); }
.hrow:last-child { border-bottom: none; }
.hnum { font-family: var(--mono); font-size: 10.5px; color: var(--text-3); width: 24px; text-align: right; flex-shrink: 0; }
.hwho { min-width: 0; flex: 1; }
.hwho b { display: block; font-size: 13px; font-weight: 600; color: var(--text); }
.hwho small { font-size: 11.5px; color: var(--text-3); }
.hdiag { flex: 1.3; font-size: 12px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hnota { font-family: var(--mono); font-size: 15px; font-weight: 700; flex-shrink: 0; }
.hnota.hi { color: var(--hi); } .hnota.mid { color: var(--mid); } .hnota.lo { color: var(--lo); }
.hgo { color: var(--text-3); flex-shrink: 0; display: inline-flex; }
.hgo svg { width: 14px; height: 14px; }
.hrow:hover .hgo { color: var(--accent); }

.rolepill {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--accent-dim); color: var(--accent);
}
.tierchip {
  font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--border); color: var(--text-2); background: var(--surface);
}
.tierchip.prata { border-color: #c9cbd4; }
.tierchip.ouro { border-color: #e3c36b; color: #946d12; background: #fdf8ec; }
.tierchip.bronze { border-color: #d8b294; color: #8a5a32; background: #faf3ed; }

/* ── Score cards (página da análise) ── */
.scores { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 16px 0; }
.score { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 13px 12px; text-align: center; box-shadow: var(--shadow-xs); }
.score .fase { font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; }
.score .num { font-family: var(--mono); font-size: 24px; font-weight: 700; line-height: 1; }
.score .num.hi { color: var(--hi); } .score .num.mid { color: var(--mid); } .score .num.lo { color: var(--lo); }
.score .cap { font-size: 10.5px; color: var(--text-3); margin-top: 6px; line-height: 1.35; }

.callout { border-radius: var(--r-card); padding: 15px 18px; margin: 12px 0; border: 1px solid var(--hairline); background: var(--surface); border-left: 3px solid var(--accent); }
.callout .ct { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; color: var(--accent); }
.callout p { font-size: 13.5px; color: var(--text-2); }
.callout.dor { border-left-color: var(--lo); }
.callout.dor .ct { color: var(--lo); }

.metachips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── O card do vendedor (estilo FIFA, tiers honestos) ── */
.fcard {
  position: relative; border-radius: 20px; padding: 4px; overflow: hidden; max-width: 320px;
  background: linear-gradient(160deg, #b9bdc9 0%, #f0f1f4 18%, #878c9b 46%, #dfe1e7 70%, #989dab 88%, #c6c9d2 100%);
  box-shadow: 0 18px 40px -18px rgba(25, 27, 35, .35), 0 4px 12px -4px rgba(0, 0, 0, .10);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s cubic-bezier(.22,.61,.36,1);
}
.fcard.f-ouro { background: linear-gradient(165deg, #ecd9a0, #f8efd4 30%, #d4ab4f 58%, #f3e3b3 84%, #caa14a); }
.fcard.f-bronze { background: linear-gradient(165deg, #dfc0a6, #f2e4d6 30%, #b98860 58%, #e8d2bd 84%, #a97a52); }
.fcard:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: 0 26px 52px -20px rgba(25, 27, 35, .38), 0 6px 16px -6px rgba(0, 0, 0, .10); }
.fcard-inner { position: relative; border-radius: 16px; background: linear-gradient(180deg, #f6f7f9 0%, #e3e5ea 100%); padding: 20px 20px 16px; overflow: hidden; }
.fcard-inner::after {
  content: ''; position: absolute; top: -60%; bottom: -60%; width: 46%; left: -70%;
  transform: rotate(18deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.65), transparent);
  transition: left .8s cubic-bezier(.22,.61,.36,1);
}
.fcard:hover .fcard-inner::after { left: 130%; }
.f-top { display: flex; align-items: flex-start; gap: 10px; }
.f-ovr { font-family: var(--mono); font-weight: 700; font-size: 48px; line-height: .9; letter-spacing: -0.04em; color: var(--text); }
.f-ovr small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; color: var(--text-3); margin-top: 5px; }
.f-pos { font-family: var(--mono); font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-top: 6px; }
.f-club { margin-left: auto; text-align: right; }
.f-club .wlogo { width: 32px; height: 32px; border-radius: 9px; background: var(--accent-dim); color: var(--accent); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.f-club small { display: block; font-size: 10px; color: var(--text-3); margin-top: 4px; font-weight: 600; }
.f-tier-row { display: flex; justify-content: center; }
.f-tier { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .16em; color: #555a66; }
.f-tier::before, .f-tier::after { content: ''; height: 1px; width: 26px; background: linear-gradient(90deg, transparent, #9aa0ad); }
.f-tier::after { background: linear-gradient(90deg, #9aa0ad, transparent); }
.f-face .circle { overflow: hidden; padding: 0; }
.f-face img, .avatar img, .bigavatar-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; border-radius: inherit; }
.avatar { overflow: hidden; }
.f-face { display: flex; justify-content: center; margin: 10px 0 6px; }
.f-face .circle {
  width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #e7e7ea);
  border: 2px solid #d4d5da; display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; color: #8a8d96; letter-spacing: -0.02em;
}
.f-name { text-align: center; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; color: var(--text); }
.f-sep { height: 1px; background: linear-gradient(90deg, transparent, #d8d9de, transparent); margin: 0 -2px 11px; }
.f-attrs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.f-attr { display: flex; align-items: baseline; gap: 7px; font-family: var(--mono); }
.f-attr b { font-size: 16px; font-weight: 700; min-width: 24px; color: var(--text); }
.f-attr span { font-size: 10.5px; font-weight: 600; letter-spacing: .08em; color: var(--text-2); }
.f-attr .tr { margin-left: auto; font-size: 11px; }
.tr.up { color: var(--hi); } .tr.flat { color: var(--text-3); } .tr.down { color: var(--lo); }
.f-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.f-foot .gs { font-weight: 800; font-size: 10px; letter-spacing: .14em; color: var(--text-2); }
.f-foot .gs i { color: var(--brand-coral); font-style: normal; }
.f-foot small { font-family: var(--mono); font-size: 9px; color: var(--text-3); letter-spacing: .04em; }
.f-vazio { padding: 26px 8px; text-align: center; color: var(--text-3); font-size: 12.5px; }
.f-note { margin-top: 10px; font-size: 11.5px; color: var(--text-3); text-align: center; max-width: 320px; }
.f-note b { color: var(--text-2); font-weight: 600; }

svg.chart text { font-family: var(--mono); font-size: 10px; fill: var(--text-3); }

/* ── Login / convite ── */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.auth-card { width: 100%; max-width: 392px; background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; box-shadow: var(--shadow-md); padding: 34px 34px 30px; }
.auth-card .brand { padding: 0; font-size: 16px; }
.auth-sub { color: var(--text-2); font-size: 13px; margin: 6px 0 24px; }
.auth-card .fields { margin-bottom: 18px; }
.auth-card .btn { width: 100%; }

/* ── Flash ── */
.flash {
  position: fixed; top: 16px; right: 16px; z-index: 200; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--st-pronta);
  border-radius: var(--r-lg); box-shadow: var(--shadow-md); padding: 11px 14px;
  font-size: 13px; animation: flash-in .2s cubic-bezier(.16,1,.3,1);
}
.flash.erro { border-left-color: var(--lo); }
@keyframes flash-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ── Erro ── */
.erro-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.erro-wrap .cod { font-family: var(--mono); font-size: 56px; font-weight: 700; color: var(--text-3); }

/* ── Botões de ícone minimalistas (M4/M10) ── */
.ibtn {
  width: 34px; height: 34px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--r-lg); color: var(--text-2); cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  box-shadow: var(--shadow-xs); flex-shrink: 0;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
}
.ibtn svg { width: 16px; height: 16px; pointer-events: none; }
.ibtn:hover { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.ibtn:active { transform: scale(.92); }
.ibtn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-ring); }
.ibtn.danger:hover { color: var(--lo); border-color: rgba(220,38,38,.35); background: var(--lo-soft); }
.ibtn.is-on { color: var(--accent); border-color: var(--accent-border); background: var(--accent-dim); }
.ibtn.on-vendido { color: var(--hi); border-color: rgba(21,128,61,.4); background: var(--hi-soft); }
.ibtn.on-perdido { color: var(--lo); border-color: rgba(220,38,38,.4); background: var(--lo-soft); }
.ibtn.on-proposta { color: var(--mid); border-color: rgba(217,119,6,.4); background: var(--mid-soft); }
.ibtn[data-tip]::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(2px); background: var(--text); color: #fff;
  font-size: 11px; font-weight: 500; padding: 4px 9px; border-radius: 6px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s ease, transform .15s ease; z-index: 80;
}
.ibtn[data-tip]:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.ibtn-grupo { display: inline-flex; gap: 7px; align-items: center; }

/* ── Modal (M9, envio, ticket) ── */
.modal-bg {
  position: fixed; inset: 0; background: rgba(15,17,24,.40); backdrop-filter: blur(2px);
  z-index: 300; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-bg.open { display: flex; animation: fade-in .15s ease; }
.modal {
  width: 100%; max-width: 440px; background: var(--surface); border-radius: 16px;
  border: 1px solid var(--hairline); box-shadow: 0 24px 60px -16px rgba(15,17,24,.30);
  padding: 22px 24px; animation: modal-in .2s cubic-bezier(.16,1,.3,1);
}
.modal h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.modal .sub { font-size: 12.5px; color: var(--text-2); margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.radio-row { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--border); border-radius: var(--r-lg); margin-bottom: 8px; cursor: pointer; font-size: 13px; transition: border-color .14s ease, background .14s ease; }
.radio-row:hover { border-color: var(--accent-border); background: var(--accent-dim); }
.radio-row input { accent-color: var(--accent); }

/* ── Comparação com a call anterior (M3) ── */
.compare-wrap { display: none; }
.compare-wrap.open { display: block; animation: fade-in .2s ease; }
.cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cmp-col { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 14px 16px; box-shadow: var(--shadow-xs); }
.cmp-col.atual { border-color: var(--accent-border); }
.cmp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.cmp-head b { font-size: 13px; }
.cmp-head small { color: var(--text-3); font-size: 11px; }
.cmp-head .hnota { margin-left: auto; }
.cmp-row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 2px; border-bottom: 1px solid var(--hairline); font-size: 12.5px; color: var(--text-2); }
.cmp-row:last-child { border-bottom: none; }
.cmp-row b { font-family: var(--mono); }
.cmp-row b.hi { color: var(--hi); } .cmp-row b.mid { color: var(--mid); } .cmp-row b.lo { color: var(--lo); }

/* ── Status da instância (M8) ── */
.conn { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border); }
.conn i { width: 8px; height: 8px; border-radius: 50%; }
.conn.open { color: var(--hi); border-color: rgba(21,128,61,.3); } .conn.open i { background: var(--hi); }
.conn.close { color: var(--lo); border-color: rgba(220,38,38,.3); } .conn.close i { background: var(--lo); }

@media (max-width: 1100px) {
  .board { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scores { grid-template-columns: repeat(2, 1fr); }
  .cmp-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
