/* SGQ Voxlink: mesma identidade do SAC (laranja #F15A22, grafite #3A3635), claro e escuro */
:root {
  --brand: #F15A22; --brand-dk: #b8431f; --brand-soft: #fff1ea; --ink: #3A3635;
  --bg: #f4f4f6; --panel: #ffffff; --panel-2: #f8f8f9; --line: #e4e3e1; --line-2: #d9d9dd;
  --text: #2d2a29; --muted: #6b6663; --faint: #9a9593;
  --side: #3A3635; --side-2: #4a4645; --side-text: #d8d7d4;
  --ok: #1E8449; --ok-bg: #e7f4ec; --warn: #B9770E; --warn-bg: #fdf3df; --crit: #C0392B; --crit-bg: #fbeae8; --info: #2563eb; --info-bg: #e8effd;
  --shadow: 0 1px 2px rgba(40,30,25,.06), 0 6px 20px rgba(40,30,25,.06); --r: 12px;
  --font: 'Segoe UI', -apple-system, 'Helvetica Neue', Arial, sans-serif;
}
:root[data-theme="dark"] {
  --brand-soft: #3a2a22; --bg: #171514; --panel: #231f1e; --panel-2: #2a2625; --line: #3a3534; --line-2: #4a4543;
  --text: #f1efee; --muted: #b9b4b2; --faint: #8a8583; --side: #1d1a19; --side-2: #2d2928;
  --ok-bg: #16301f; --warn-bg: #3a2c12; --crit-bg: #3e1d1a; --info-bg: #1c2740;
  --ok: #4cc27c; --warn: #e5a93c; --crit: #ff7a6b; --info: #7ea6ff; --brand-dk: #ff9a70;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-soft: #3a2a22; --bg: #171514; --panel: #231f1e; --panel-2: #2a2625; --line: #3a3534; --line-2: #4a4543;
    --text: #f1efee; --muted: #b9b4b2; --faint: #8a8583; --side: #1d1a19; --side-2: #2d2928;
    --ok-bg: #16301f; --warn-bg: #3a2c12; --crit-bg: #3e1d1a; --info-bg: #1c2740;
    --ok: #4cc27c; --warn: #e5a93c; --crit: #ff7a6b; --info: #7ea6ff; --brand-dk: #ff9a70;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-dk); text-decoration: none; } a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; cursor: pointer; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 12.5px; }

/* estrutura */
.app { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side .logo { padding: 18px 20px; border-bottom: 1px solid rgba(255,255,255,.08); } .side .logo img { height: 28px; display: block; }
.side nav { padding: 12px 10px; overflow-y: auto; flex: 1; }
.side h6 { margin: 14px 10px 6px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #8d8886; font-weight: 600; }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--side-text); font-weight: 500; }
.nav:hover { background: var(--side-2); text-decoration: none; } .nav.on { background: var(--brand); color: #fff; }
.nav.soon { opacity: .5; cursor: default; } .nav.soon:hover { background: none; }
.nav { line-height: 1.25; } .nav svg { align-self: flex-start; margin-top: 1px; }
.nav .tag { margin-left: auto; font-size: 9.5px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 0 7px; white-space: nowrap; flex: none; }
.top { height: 58px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--brand) 35%, transparent); }
.top .title { font-weight: 700; font-size: 15px; }
.main { padding: 26px 28px 60px; max-width: 1180px; width: 100%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.iconbtn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); display: grid; place-items: center; }
.iconbtn:hover { background: var(--panel-2); }
.menu { position: relative; } .menu .pop { display: none; position: absolute; right: 0; top: 44px; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.menu.open .pop { display: block; } .pop a, .pop button { display: flex; width: 100%; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; text-align: left; gap: 10px; align-items: center; }
.pop a:hover, .pop button:hover { background: var(--panel-2); text-decoration: none; }
#navtoggle { display: none; }

/* componentes */
h1 { font-size: 24px; margin: 0 0 4px; } h2 { font-size: 16px; margin: 0; } .sub { color: var(--muted); margin: 0 0 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-bottom: 16px; }
.card > .hd { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; } .card > .bd { padding: 18px; }
.grid { display: grid; gap: 16px; } .g3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } .g2 { grid-template-columns: 1fr 1fr; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; text-decoration: none !important; color: var(--text); }
.btn:hover { background: var(--panel-2); } .btn.pri { background: var(--brand); border-color: var(--brand); color: #fff; } .btn.pri:hover { filter: brightness(1.07); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; } .btn.danger { color: var(--crit); } .btn:disabled { opacity: .6; cursor: wait; }
.field { margin-bottom: 14px; } .field label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.inp, .sel { width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--panel); color: var(--text); font: inherit; }
.inp:focus, .sel:focus { outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent); border-color: var(--brand); }
.hint { font-size: 12px; color: var(--faint); margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.chip.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .chip.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.chip.crit { background: var(--crit-bg); color: var(--crit); border-color: transparent; } .chip.brand { background: var(--brand-soft); color: var(--brand-dk); border-color: transparent; }
.alert { padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); margin-bottom: 16px; }
.alert.ok { background: var(--ok-bg); border-color: transparent; color: var(--ok); } .alert.warn { background: var(--warn-bg); border-color: transparent; color: var(--warn); } .alert.err { background: var(--crit-bg); border-color: transparent; color: var(--crit); }
.tbl { width: 100%; border-collapse: collapse; } .tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; } .tbl tr:last-child td { border-bottom: 0; } .tbl tr:hover td { background: var(--panel-2); }
.tblwrap { overflow-x: auto; }
.modcard { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); color: var(--text); }
.modcard:hover { text-decoration: none; border-color: var(--brand); } .modcard .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.modcard.soon { opacity: .6; } .modcard.soon:hover { border-color: var(--line); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; } .checks label { font-weight: 500; display: flex; gap: 8px; align-items: center; margin: 0; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 420px; box-shadow: var(--shadow); }


/* telas de entrada */
.gate { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: var(--bg); }
.gate .brandside { background: var(--ink); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  background-image: radial-gradient(circle at 15% 8%, rgba(241,90,34,.30), transparent 52%), linear-gradient(160deg, rgba(255,255,255,.04), transparent 40%); }
.gate .gate-logo { height: 32px; width: auto; max-width: 100%; object-fit: contain; display: block; }
.gate .pitch { max-width: 470px; } .gate .pitch h2 { font-size: 32px; line-height: 1.18; margin: 0 0 16px; letter-spacing: -.01em; }
.gate .pitch p { color: #d3cecc; font-size: 15px; line-height: 1.6; margin: 0 0 22px; }
.gate .norms { display: flex; flex-wrap: wrap; gap: 8px; } .gate .norms span { border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 4px 13px; font-size: 12.5px; font-weight: 600; color: #f1efee; background: rgba(255,255,255,.06); }
.gate .legal { color: #a39e9c; font-size: 12px; margin: 0; max-width: 470px; }
.gate .formside { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; gap: 18px; }
.gate .box { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 34px 34px 24px; box-shadow: var(--shadow); }
.gate .box h1 { font-size: 24px; margin: 0 0 6px; } .gate .box .sub { margin: 0 0 22px; }
.gate .mobilebrand { display: none; background: var(--ink); border-radius: 12px; padding: 14px 20px; } .gate .mobilebrand img { height: 28px; width: auto; display: block; }
.code-inp { text-align: center; font-size: 28px; letter-spacing: 10px; height: 54px; font-weight: 700; }
.lock { color: var(--faint); font-size: 12px; text-align: center; margin: 22px 0 0; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; } .side { position: fixed; left: -260px; width: 250px; z-index: 40; transition: left .2s; } .app.navopen .side { left: 0; }
  #navtoggle { display: grid; } .main { padding: 18px 16px 50px; } .top { padding: 0 14px; } .g2 { grid-template-columns: 1fr; }
  .gate { grid-template-columns: 1fr; } .gate .brandside { display: none; } .gate .mobilebrand { display: block; } .gate .box { padding: 26px 22px 20px; }
}
