@font-face { font-family: "W2 Inter"; src: url(fonts/Inter-Regular.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "W2 Inter"; src: url(fonts/Inter-Medium.woff) format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "W2 Inter"; src: url(fonts/Inter-SemiBold.woff) format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "W2 Inter"; src: url(fonts/Inter-Bold.woff) format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "W2 Bricolage"; src: url(fonts/Bricolage-Bold.woff) format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "W2 Mono"; src: url(fonts/GeistMono-Regular.woff) format("woff"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "W2 Mono"; src: url(fonts/GeistMono-Bold.woff) format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --ink: #0B1B3F; --ink2: #33405E; --muted: #4E5A75; --muted2: #8790A6; --line: #E1E5EF; --line2: #EEF0F6;
  --ground: #EEF0F6; --surface: #FFFFFF; --surface2: #F6F7FB;
  --brand: #2B5CE6; --brandHi: #4A76FF; --brandSoft: #EAF0FF; --brandLine: #CCDAFF; --brandText: #1D47C9;
  --signal: #C6F24B; --navy: #060A14; --navy2: #0C1324;
  --danger: #C8291D; --dangerSoft: #FFF1EF; --dangerLine: #F7C9C3; --warn: #B65A07; --warnSoft: #FFF4E6; --warnLine: #F6D3A8; --warnText: #8A4404;
  --ok: #11805A; --okSoft: #E7F6EF; --okText: #0C6446;
  --shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(11,27,63,.06), 0 14px 30px -16px rgba(11,27,63,.28);
  --shadowBtn: inset 0 1px 0 rgba(255,255,255,.28), 0 6px 14px -6px rgba(43,92,230,.55);
  --bub: 18px 18px 18px 6px; --bubS: 12px 12px 12px 4px;
  --fH: "W2 Bricolage", "W2 Inter", system-ui, sans-serif; --fB: "W2 Inter", "Segoe UI", system-ui, sans-serif; --fM: "W2 Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--fB); color: var(--ink); background: var(--ground); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--brandText); }
[hidden] { display: none !important; }
.mono { font-family: var(--fM); font-feature-settings: "tnum"; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; min-width: 0; }

/* layout */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #EAF0FF; padding: 22px 16px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--fH); font-weight: 800; font-size: 20px; letter-spacing: -.02em; padding: 0 8px 18px; color: inherit; text-decoration: none; }
.logo { width: 34px; height: 34px; border-radius: 11px 11px 11px 4px; background: var(--brand); box-shadow: var(--shadowBtn); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tagline { font-family: var(--fM); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6E7A99; padding: 0 10px; margin: 4px 0 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 11px; color: #A3AECB; text-decoration: none; font-weight: 600; }
.nav a:hover { background: rgba(255,255,255,.05); color: #EAF0FF; }
.nav a.on { background: #EAF0FF; color: var(--navy); }
.nav a.on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7BAF00; }
.side .foot { margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #1E2946; font-size: 13px; color: #A3AECB; }
.side .foot b { color: #EAF0FF; display: block; }
.main { padding: 32px clamp(16px, 4vw, 44px) 80px; max-width: 1240px; width: 100%; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
h1 { font-family: var(--fH); font-weight: 800; font-size: clamp(28px, 3.2vw, 38px); letter-spacing: -.035em; line-height: 1.05; margin: 0; }
h2 { font-family: var(--fH); font-weight: 800; font-size: 20px; letter-spacing: -.02em; margin: 0; }
.sub { color: var(--muted); margin: 6px 0 0; }
.label { display: inline-flex; align-items: center; font-family: var(--fM); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.label::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--brand); box-shadow: 7px 0 0 rgba(43,92,230,.6), 14px 0 0 rgba(43,92,230,.3); margin-right: 22px; }
.topm { display: none; }

/* componentes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--bub); padding: 20px; box-shadow: var(--shadow); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--bubS); padding: 16px 18px; box-shadow: var(--shadow); color: var(--muted); font-size: 14px; }
.tile b { display: block; font-family: var(--fM); font-size: 28px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; margin-top: 2px; }
.tile.bad b { color: var(--danger); } .tile.good b { color: var(--ok); }
.btn { height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; box-shadow: 0 1px 2px rgba(11,27,63,.06); }
.btn:hover { border-color: var(--brandLine); background: var(--surface2); }
.btn.primary { background: linear-gradient(180deg, var(--brandHi), var(--brand)); border: none; color: #fff; font-weight: 700; border-radius: var(--bubS); box-shadow: var(--shadowBtn); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.danger { color: var(--danger); border-color: var(--dangerLine); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn:focus-visible, .in:focus-visible, .nav a:focus-visible, .segb:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.in { height: 44px; border-radius: var(--bubS); border: 1px solid var(--line); padding: 0 13px; background: var(--surface); width: 100%; }
.in:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brandSoft); }
select.in { width: auto; }
.field { display: flex; flex-direction: column; gap: 6px; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 13px; background: var(--surface); border: 1px solid var(--line); }
.segb { height: 36px; padding: 0 14px; border: none; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.segb.on { background: var(--navy); color: #fff; }
.chip { height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; background: var(--brandSoft); color: var(--brandText); white-space: nowrap; }
.chip.bad { background: var(--dangerSoft); color: var(--danger); } .chip.warn { background: var(--warnSoft); color: var(--warnText); } .chip.good { background: var(--okSoft); color: var(--okText); } .chip.gray { background: var(--surface2); color: var(--muted); }
.avatar { width: 36px; height: 36px; border-radius: 12px 12px 12px 4px; background: #E4E8F2; color: var(--ink2); font-family: var(--fH); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--bub); background: var(--surface); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-family: var(--fM); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 11px 14px; background: var(--surface2); white-space: nowrap; }
td { padding: 12px 14px; border-top: 1px solid var(--line2); vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: var(--surface2); }
.warn { background: var(--warnSoft); color: var(--warnText); border: 1px solid var(--warnLine); border-radius: var(--bubS); padding: 12px 14px; }
.info { background: var(--brandSoft); color: var(--brandText); border: 1px solid var(--brandLine); border-radius: var(--bubS); padding: 12px 14px; }
.good { background: var(--okSoft); color: var(--okText); border-radius: var(--bubS); padding: 12px 14px; }
.mrow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.mrow:first-child { border-top: none; }
.mrow .who { flex: 1; min-width: 200px; }
.invite { border: 1px dashed var(--brandLine); background: var(--brandSoft); border-radius: var(--bubS); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.invite pre { margin: 0; white-space: pre-wrap; font-family: var(--fB); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px 20px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.checks input { width: 18px; height: 18px; accent-color: var(--brand); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--bub); padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.plan.hl { background: var(--navy); color: #EAF0FF; border-color: var(--navy); }
.plan .price { font-family: var(--fM); font-size: 30px; font-weight: 600; }
.plan ul { margin: 4px 0 0; padding-left: 18px; color: inherit; opacity: .85; }
.empty { padding: 30px 10px; text-align: center; color: var(--muted); }
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px 14px 14px 5px; font-weight: 600; z-index: 50; max-width: 90vw; box-shadow: 0 20px 40px -10px rgba(0,0,0,.4); }
.drawer-bg { position: fixed; inset: 0; background: rgba(11,27,63,.42); z-index: 30; display: flex; justify-content: flex-end; }
.drawer { width: min(560px, 100%); height: 100%; background: var(--ground); overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: -20px 0 60px -20px rgba(0,0,0,.4); }

/* entrada */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { background: var(--navy); color: #EAF0FF; padding: clamp(28px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 22px; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; width: 640px; height: 640px; left: -200px; bottom: -360px; background: radial-gradient(closest-side, rgba(43,92,230,.45), rgba(43,92,230,0)); pointer-events: none; }
.auth-side h1 em { font-style: normal; color: #D3F75A; }
.auth-side p { color: #A3AECB; max-width: 440px; margin: 0; font-size: 17px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-box { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; }
.auth-box form { display: flex; flex-direction: column; gap: 14px; }
.auth-box .btn.primary { height: 48px; font-size: 16px; }
.alts { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-size: 14px; }
.linkbtn { border: none; background: none; padding: 0; font-weight: 700; color: var(--brandText); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px 14px; font-size: 13px; }
  .tile b { font-size: 22px; }
  .head { margin-bottom: 18px; }
  .side { position: fixed; inset: auto 0 0 0; height: auto; flex-direction: row; padding: 8px; z-index: 20; justify-content: space-around; gap: 2px; border-top: 1px solid #1E2946; }
  .side .brand, .side .foot, .side .tagline { display: none; }
  .nav { display: contents; }
  .nav a { flex-direction: column; height: auto; padding: 8px 6px; gap: 2px; font-size: 12px; flex: 1; justify-content: center; }
  .nav a.on::before { display: none; }
  .topm { display: flex; align-items: center; gap: 10px; font-family: var(--fH); font-weight: 800; font-size: 19px; margin-bottom: 18px; }
  .main { padding: 20px 16px 110px; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 28px 22px; }
  .auth-side p, .auth-side .feat { display: none; }
}
