/* Portal WM · estilos compartilhados (demonstração, portal do cliente e admin) */
:root {
    --ink: #070B14; --navy: #0B1220; --navy-2: #111A2E; --navy-3: #18233B;
    --line: rgba(255,255,255,0.07); --line-2: rgba(255,255,255,0.13);
    --text: #E9EDF5; --muted: #97A3B6; --dim: #66728A;
    --gold: #C9A96E; --gold-2: #E6CFA0; --gold-grad: linear-gradient(135deg, #E6CFA0 0%, #C9A96E 55%, #A8874E 100%);
    --green: #34D399; --amber: #FBBF24; --red: #F87171; --blue: #7DD3FC;
    --radius: 16px; --side: 248px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { -webkit-text-size-adjust: 100%; }
  body { background: var(--ink); color: var(--text); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
  button, select { font: inherit; color: inherit; }
  a { color: inherit; }
  .num { font-variant-numeric: tabular-nums; }

  /* ---------- Layout ---------- */
  .app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
  .side { position: sticky; top: 0; height: 100vh; background: var(--navy); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 22px 16px; overflow-y: auto; }
  .logo { display: flex; flex-direction: column; text-decoration: none; padding: 0 8px 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
  .wm-word { font-weight: 900; font-size: 25px; letter-spacing: -0.05em; line-height: 1; color: #fff; }
  .wm-word i { font-style: normal; color: var(--gold); }
  .wm-word span { font-weight: 300; letter-spacing: -0.02em; color: #C8D0DD; }
  .wm-sub { font-size: 8.5px; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
  .client-box { padding: 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); margin-bottom: 18px; }
  .client-box small { display: block; color: var(--dim); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
  .client-box strong { display: block; font-size: 13.5px; margin-top: 2px; }
  .client-box .plan-tag { display: inline-block; margin-top: 8px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: rgba(201,169,110,0.14); color: var(--gold-2); border: 1px solid rgba(201,169,110,0.35); }
  .nav-title { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); padding: 0 10px 8px; }
  .nav { display: flex; flex-direction: column; gap: 3px; }
  .nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); font-weight: 500; font-size: 14px; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
  .nav button svg { width: 18px; height: 18px; flex-shrink: 0; }
  .nav button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
  .nav button.active { background: linear-gradient(90deg, rgba(201,169,110,0.16), rgba(201,169,110,0.04)); color: var(--gold-2); box-shadow: inset 2px 0 0 var(--gold); }
  .nav button .lock { margin-left: auto; width: 14px; height: 14px; color: var(--dim); }
.nav button .xtag { margin-left: auto; font-size: 9.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,169,110,0.4); border-radius: 999px; padding: 1px 7px; }
  .side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 11.5px; }
  .side-foot a { color: var(--gold-2); text-decoration: none; }

  .main { min-width: 0; display: flex; flex-direction: column; }
  .demo-bar { background: linear-gradient(90deg, rgba(201,169,110,0.18), rgba(201,169,110,0.06)); border-bottom: 1px solid rgba(201,169,110,0.25); color: var(--gold-2); font-size: 12.5px; padding: 8px 28px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
  .demo-bar a { color: #fff; font-weight: 600; }
  .top { position: sticky; top: 0; z-index: 20; background: rgba(7,11,20,0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding: 14px 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
  .top h1 { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
  .top .sub { color: var(--muted); font-size: 12.5px; }
  .controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
  .ctl { display: flex; align-items: center; gap: 8px; background: var(--navy-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 4px 0 10px; height: 38px; }
  .ctl label { font-size: 11.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
  .ctl select { background: transparent; border: 0; outline: none; height: 36px; padding: 0 6px; font-weight: 600; cursor: pointer; }
  .ctl select option { background: var(--navy-2); }
  .ctl .ib { width: 30px; height: 30px; border: 0; background: transparent; border-radius: 7px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
  .ctl .ib:hover:not(:disabled) { background: rgba(255,255,255,0.06); color: var(--text); }
  .ctl .ib:disabled { opacity: .3; cursor: default; }
  .ctl .ib svg { width: 15px; height: 15px; }
  .btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--navy-2); font-weight: 600; font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; white-space: nowrap; text-decoration: none; }
  .btn:hover { border-color: var(--gold); }
  .btn svg { width: 15px; height: 15px; }
  .btn.gold { background: var(--gold-grad); color: #1A1407; border-color: transparent; }
  .plan-switch { display: inline-flex; background: var(--navy-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; }
  .plan-switch button { border: 0; background: transparent; padding: 6px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
  .plan-switch button.on { background: rgba(201,169,110,0.18); color: var(--gold-2); }

  .content { padding: 24px 28px 48px; }
  .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
  .s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
  .s2 { grid-column: span 2; }
  .card { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; position: relative; animation: rise .45s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .card-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
  .card-h h3 { font-size: 14px; font-weight: 700; }
  .card-h p { color: var(--muted); font-size: 12px; }
  .hint { color: var(--dim); font-size: 11.5px; }

  /* KPI */
  .kpi { display: flex; flex-direction: column; gap: 6px; min-height: 118px; }
  .kpi .lbl { color: var(--muted); font-size: 12px; font-weight: 500; }
  .kpi .val { font-size: clamp(20px, 1.9vw, 27px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .kpi .val.gold { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
  .kpi .foot { margin-top: auto; font-size: 11.5px; color: var(--dim); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
  .d { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .d.up { color: var(--green); background: rgba(52,211,153,0.1); }
  .d.down { color: var(--red); background: rgba(248,113,113,0.1); }
  .d.flat { color: var(--muted); background: rgba(255,255,255,0.05); }

  .chart { position: relative; height: 290px; }
  .chart.sm { height: 220px; }
  .no-chart { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; }

  /* Leitura do mês */
  .reading { background: linear-gradient(135deg, rgba(201,169,110,0.10), rgba(201,169,110,0.02)); border: 1px solid rgba(201,169,110,0.28); }
  .reading .who { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
  .reading .av { width: 38px; height: 38px; border-radius: 11px; background: var(--gold-grad); color: #1A1407; display: grid; place-items: center; font-weight: 900; font-size: 14px; letter-spacing: -0.04em; }
  .reading .who strong { display: block; font-size: 14px; }
  .reading .who span { color: var(--muted); font-size: 12px; }
  .reading p { color: #C8D0DD; font-size: 13.5px; margin-top: 8px; }
  .reading p b { color: var(--text); }
  .reading .more { background: none; border: 0; color: var(--gold-2); font-weight: 600; cursor: pointer; margin-top: 8px; font-size: 13px; }
  .reading.collapsed .extra { display: none; }

  /* Tabelas */
  .tbl { width: 100%; border-collapse: collapse; }
  .tbl th { text-align: left; color: var(--dim); font-weight: 600; font-size: 11.5px; padding: 0 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .tbl td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; font-variant-numeric: tabular-nums; }
  .tbl tr:last-child td { border-bottom: 0; }
  .tbl .r { text-align: right; }
  .tbl tbody tr.click { cursor: pointer; transition: background .15s; }
  .tbl tbody tr.click:hover { background: rgba(201,169,110,0.06); }
  .tbl .strong td { font-weight: 700; color: var(--text); background: rgba(255,255,255,0.02); }
  .tbl .sub td:first-child { padding-left: 26px; color: var(--muted); }
  .tscroll { overflow-x: auto; }
  .bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; min-width: 70px; }
  .bar > i { display: block; height: 100%; border-radius: 999px; background: var(--gold-grad); }
  .bar > i.ok { background: linear-gradient(90deg, #059669, #34D399); }
  .bar > i.warn { background: linear-gradient(90deg, #D97706, #FBBF24); }
  .bar > i.bad { background: linear-gradient(90deg, #B91C1C, #F87171); }
  .pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
  .pill.ok { color: var(--green); background: rgba(52,211,153,0.1); }
  .pill.warn { color: var(--amber); background: rgba(251,191,36,0.1); }
  .pill.bad { color: var(--red); background: rgba(248,113,113,0.1); }
  .pill.info { color: var(--blue); background: rgba(125,211,252,0.1); }
  .rank { width: 24px; height: 24px; border-radius: 7px; display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 700; background: rgba(255,255,255,0.05); color: var(--muted); }
  .rank.g1 { background: var(--gold-grad); color: #1A1407; }

  /* Listas */
  .alerts { list-style: none; display: flex; flex-direction: column; gap: 9px; }
  .alerts li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
  .alerts .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
  .alerts .ic svg { width: 15px; height: 15px; }
  .alerts .bad .ic { background: rgba(248,113,113,0.12); color: var(--red); }
  .alerts .warn .ic { background: rgba(251,191,36,0.12); color: var(--amber); }
  .alerts .ok .ic { background: rgba(52,211,153,0.12); color: var(--green); }
  .alerts strong { display: block; font-size: 13px; }
  .alerts p { color: var(--muted); font-size: 12px; }
  .goals { display: flex; flex-direction: column; gap: 14px; }
  .goal .t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; align-items: center; }
  .goal .t b { font-weight: 600; }
  .goal .s { display: flex; justify-content: space-between; color: var(--dim); font-size: 11.5px; margin-top: 6px; font-variant-numeric: tabular-nums; }
  .goal .bar { height: 8px; margin-top: 8px; }

  .ring { position: relative; width: 104px; height: 104px; flex-shrink: 0; }
  .ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .ring .c { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
  .ring .arc { transition: stroke-dashoffset 1.2s cubic-bezier(.2,.8,.2,1); }
  .kpi-ring { display: flex; align-items: center; gap: 14px; min-height: 118px; }

  .legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 11.5px; }
  .legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
  .src-list { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 12px; }
  .src-list li { display: grid; grid-template-columns: 10px 1fr auto auto; gap: 10px; align-items: center; font-size: 12.5px; }
  .src-list i { width: 10px; height: 10px; border-radius: 3px; }
  .src-list .p { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
  .src-list .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
  .timeline { list-style: none; display: flex; flex-direction: column; gap: 0; }
  .timeline li { display: grid; grid-template-columns: 64px 14px 1fr; gap: 12px; padding-bottom: 14px; position: relative; }
  .timeline .y { font-weight: 800; color: var(--gold-2); font-variant-numeric: tabular-nums; }
  .timeline .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gold); background: var(--navy-2); margin-top: 4px; position: relative; }
  .timeline li.now .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
  .timeline li::after { content: ''; position: absolute; left: 82px; top: 18px; bottom: 0; width: 2px; background: var(--line-2); }
  .timeline li:last-child::after { display: none; }
  .timeline p { color: var(--muted); font-size: 12.5px; }
  .timeline b { color: var(--text); font-size: 13px; }
  .checks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
  .checks li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); font-size: 13px; }
  .checks small { display: block; color: var(--dim); font-size: 11.5px; }

  /* Bloqueado */
  .locked { display: grid; place-items: center; min-height: 60vh; text-align: center; }
  .locked .box { max-width: 460px; padding: 36px; border-radius: 20px; border: 1px dashed rgba(201,169,110,0.45); background: rgba(201,169,110,0.04); }
  .locked .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--gold-grad); color: #1A1407; display: grid; place-items: center; margin: 0 auto 18px; }
  .locked .ic svg { width: 26px; height: 26px; }
  .locked h2 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 8px; }
  .locked p { color: var(--muted); margin-bottom: 20px; }
  .locked ul { list-style: none; text-align: left; margin: 0 auto 22px; display: inline-flex; flex-direction: column; gap: 6px; color: #C8D0DD; font-size: 13.5px; }
  .locked li::before { content: '✓  '; color: var(--gold); font-weight: 700; }

  /* Drawer */
  .veil { position: fixed; inset: 0; background: rgba(3,5,10,0.6); backdrop-filter: blur(3px); z-index: 60; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .veil.on { opacity: 1; pointer-events: auto; }
  .drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--navy); border-left: 1px solid var(--line-2); z-index: 61; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
  .drawer.on { transform: none; }
  .drawer-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
  .drawer-h small { color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  .drawer-h h2 { font-size: 19px; letter-spacing: -0.01em; margin-top: 2px; }
  .drawer-b { padding: 20px 22px; overflow-y: auto; flex: 1; }
  .xbtn { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex-shrink: 0; }
  .xbtn:hover { color: var(--text); border-color: var(--gold); }
  .mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }
  .mini-kpis div { background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
  .mini-kpis small { display: block; color: var(--dim); font-size: 11px; }
  .mini-kpis strong { font-size: 16px; font-variant-numeric: tabular-nums; }

  .toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--navy-3); border: 1px solid var(--line-2); border-left: 3px solid var(--gold); padding: 11px 16px; border-radius: 12px; font-size: 13px; z-index: 80; opacity: 0; transition: all .25s; pointer-events: none; max-width: calc(100vw - 32px); }
  .toast.on { opacity: 1; transform: translateX(-50%); }

  /* ---------- Responsivo ---------- */
  @media (max-width: 1280px) {
    .s3 { grid-column: span 6; } .s2 { grid-column: span 4; }
    .s4, .s5, .s7, .s8 { grid-column: span 12; }
  }
  @media (max-width: 960px) {
    .app { grid-template-columns: 1fr; }
    .side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .logo { border: 0; padding: 0; margin: 0; flex-shrink: 0; }
    .wm-sub, .client-box, .nav-title, .side-foot { display: none; }
    .nav { flex-direction: row; gap: 4px; }
    .nav button { white-space: nowrap; padding: 8px 12px; }
    .nav button.active { box-shadow: inset 0 -2px 0 var(--gold); }
    .top { position: static; padding: 14px 16px; }
    .content { padding: 16px 16px 40px; }
    .demo-bar { padding: 8px 16px; }
    .s6 { grid-column: span 12; }
  }
  @media (max-width: 620px) {
    .grid { gap: 12px; }
    .s2, .s3 { grid-column: span 6; }
    .kpi { min-height: 104px; }
    .kpi .val { font-size: 19px; }
    .chart { height: 240px; }
    .controls { width: 100%; }
    .ctl { flex: 1; min-width: 0; }
    .ctl select { flex: 1; min-width: 0; }
    .plan-switch { width: 100%; }
    .plan-switch button { flex: 1; padding: 6px 4px; font-size: 11px; }
    .mini-kpis { grid-template-columns: 1fr 1fr; }
    .kpi-ring .ring { width: 80px; height: 80px; }
  }
  @media print {
    .side, .demo-bar, .controls, .reading .more, .veil, .drawer, .toast { display: none !important; }
    .app { display: block; }
    body { background: #fff; color: #111; }
    .top { position: static; background: #fff; border: 0; }
    .card { break-inside: avoid; background: #fff; border-color: #ddd; color: #111; animation: none; }
    .reading.collapsed .extra { display: block; }
    .kpi .val.gold { color: #8A6A35; -webkit-text-fill-color: #8A6A35; background: none; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Login e telas de acesso ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(800px 500px at 80% 0%, rgba(201,169,110,0.12), transparent 60%), var(--ink); }
.auth-card { width: 100%; max-width: 420px; background: var(--navy-2); border: 1px solid var(--line-2); border-radius: 20px; padding: 32px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); }
.auth-card .logo { border: 0; padding: 0; margin: 0 0 24px; }
.auth-card h1 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card p { color: var(--muted); font-size: 14px; }
.auth-card form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea, .inp { background: var(--navy); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; color: var(--text); outline: none; width: 100%; font: inherit; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .inp:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,169,110,0.18); }
.field select option { background: var(--navy-2); }
.btn.block { width: 100%; justify-content: center; height: 46px; font-size: 14px; }
.btn.danger { color: var(--red); border-color: rgba(248,113,113,0.3); background: transparent; }
.btn.danger:hover { border-color: var(--red); background: rgba(248,113,113,0.08); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.msg { font-size: 13px; padding: 10px 12px; border-radius: 10px; margin-top: 4px; }
.msg.ok { color: #A7F3D0; background: rgba(52,211,153,0.1); }
.msg.err { color: #FECACA; background: rgba(248,113,113,0.1); }
.msg.warn { color: #FDE68A; background: rgba(251,191,36,0.1); }
.msg.info { color: #BAE6FD; background: rgba(125,211,252,0.08); }
.auth-foot { margin-top: 20px; color: var(--dim); font-size: 12px; text-align: center; }
.auth-foot a { color: var(--gold-2); }
.loading { display: grid; place-items: center; min-height: 60vh; color: var(--muted); gap: 12px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(201,169,110,0.2); border-top-color: var(--gold); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.company-sel { width: 100%; margin-top: 4px; background: var(--navy); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 4px; font-weight: 600; font-size: 12px; outline: none; text-overflow: ellipsis; }
.company-sel option { background: var(--navy-2); }

/* ---------- Área admin ---------- */
.adm { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.adm-side { background: var(--navy); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.adm-side .logo { border-bottom: 1px solid var(--line); padding-bottom: 18px; margin-bottom: 4px; }
.co-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.co-list button { width: 100%; text-align: left; border: 0; background: transparent; color: var(--muted); padding: 10px 12px; border-radius: 10px; cursor: pointer; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.co-list button:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.co-list button.active { background: rgba(201,169,110,0.14); color: var(--gold-2); }
.co-list small { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.adm-main { padding: 26px 30px 60px; min-width: 0; }
.adm-main h1 { font-size: 22px; letter-spacing: -0.02em; }
.adm-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.row4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--navy); border: 1px solid var(--line-2); font-size: 13px; }
.chip button { border: 0; background: transparent; color: var(--muted); cursor: pointer; width: 20px; height: 20px; border-radius: 50%; }
.chip button:hover { background: rgba(248,113,113,0.15); color: var(--red); }
.drop { border: 2px dashed rgba(201,169,110,0.4); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: background .2s, border-color .2s; }
.drop:hover, .drop.over { background: rgba(201,169,110,0.06); border-color: var(--gold); }
.drop b { color: var(--gold-2); }
.sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sumgrid div { background: var(--navy); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.sumgrid small { display: block; color: var(--dim); font-size: 11px; }
.sumgrid strong { font-size: 16px; font-variant-numeric: tabular-nums; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.preview { position: fixed; inset: 0; z-index: 90; background: var(--ink); overflow-y: auto; }
.preview[hidden] { display: none; }
.preview .demo-bar button { background: #fff; color: #111; border: 0; border-radius: 8px; padding: 5px 12px; font-weight: 700; cursor: pointer; }
ul.issues { list-style: none; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 960px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; }
  .adm-main { padding: 18px 16px 40px; }
  .row3, .row4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) { .row2, .row3, .row4 { grid-template-columns: 1fr; } .auth-card { padding: 24px; } }
