/* ===== Prime TI Backup — painel (tema roxo escuro premium, Fluent/Win11) ===== */
:root {
    --bg: #14101f;
    --surface: #1d1730;
    --surface-2: #251d3a;
    --surface-3: #2c2346;
    --border: #342b4d;
    --border-soft: #2a2340;
    --text: #ece9f5;
    --muted: #a79fc4;
    --faint: #7d7599;
    --accent: #7c5cff;
    --accent-2: #9d7bff;
    --accent-soft: rgba(124, 92, 255, .14);
    --good: #3fbf87;
    --good-soft: rgba(63, 191, 135, .14);
    --warn: #e0a63a;
    --warn-soft: rgba(224, 166, 58, .14);
    --crit: #e5484d;
    --crit-soft: rgba(229, 72, 77, .15);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 30px rgba(0, 0, 0, .35);
    --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }

.tnum { font-variant-numeric: tabular-nums; }

/* ===================== layout ===================== */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 224px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--surface) 0%, #191327 100%);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand { display: flex; align-items: center; gap: 11px; padding: 6px 8px 22px; }
.brand-mark {
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent), #5b3fd6);
    display: grid; place-items: center; font-size: 20px;
    box-shadow: 0 4px 14px rgba(124, 92, 255, .4);
}
.brand-mark-img { width: 40px; height: 40px; object-fit: contain; flex: 0 0 auto; }
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: -2px; }

.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: var(--muted); font-weight: 500; text-decoration: none;
    transition: background .12s, color .12s;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); }
.nav-ico { width: 18px; text-align: center; opacity: .9; }
.impersonate-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    background: var(--accent-soft); color: var(--accent-2);
    border-bottom: 1px solid var(--accent); padding: 9px 18px; font-size: 13px; font-weight: 500;
}
.nav-badge {
    margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--crit); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 9px; line-height: 1;
}

.sidebar-foot { margin-top: auto; color: var(--faint); font-size: 12px; padding: 12px 10px 0; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    height: 62px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px; border-bottom: 1px solid var(--border-soft);
    background: rgba(29, 23, 48, .6); backdrop-filter: blur(8px);
    position: sticky; top: 0; z-index: 5;
}
.topbar-title { font-weight: 600; font-size: 15px; }
.userbox { display: flex; align-items: center; gap: 14px; }
.user-email { color: var(--muted); font-size: 13px; }
.logout-form { margin: 0; }

.content { padding: 28px; max-width: 1200px; width: 100%; }

/* ===================== page header ===================== */
.page-head { margin-bottom: 22px; }
.page-title { font-size: 22px; }
.page-sub { color: var(--muted); margin-top: 4px; }

/* ===================== cards ===================== */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 20px 22px; }

.grid { display: grid; gap: 16px; }
.grid-clients { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }

.stat {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px 18px;
}
.stat-num { font-size: 26px; font-weight: 700; }
.stat-label { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* client cards */
.client-card {
    display: block; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 18px 20px; color: var(--text);
    transition: border-color .12s, transform .12s; text-decoration: none;
}
.client-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.client-name { font-weight: 600; font-size: 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.client-meta { display: flex; gap: 18px; color: var(--muted); font-size: 13px; }
.client-meta b { color: var(--text); font-weight: 600; }

/* ===================== tables ===================== */
.table-wrap { overflow-x: auto; }
table.pb { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.pb th {
    text-align: left; color: var(--faint); font-weight: 600; font-size: 12px;
    text-transform: uppercase; letter-spacing: .4px;
    padding: 10px 14px; border-bottom: 1px solid var(--border);
}
table.pb td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
table.pb tr:last-child td { border-bottom: none; }
table.pb tr:hover td { background: var(--surface-2); }

/* ===================== badges ===================== */
.badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--good); background: var(--good-soft); }
.badge.warn { color: var(--warn); background: var(--warn-soft); }
.badge.crit { color: var(--crit); background: var(--crit-soft); }
.badge.idle { color: var(--muted); background: var(--surface-3); }

/* ===================== buttons ===================== */
.btn {
    display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
    padding: 9px 16px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-family: var(--font); font-size: 13.5px; font-weight: 600;
    background: var(--accent); color: #fff; transition: filter .12s;
}
.btn:hover { filter: brightness(1.08); }
.btn-ghost {
    background: transparent; border: 1px solid var(--border); color: var(--muted);
    padding: 7px 14px; border-radius: var(--radius-sm); cursor: pointer;
    font-family: var(--font); font-size: 13px; font-weight: 500;
}
.btn-ghost:hover { color: var(--text); border-color: var(--accent); }
.btn-sm { padding: 5px 11px; font-size: 12.5px; }

/* ===================== forms ===================== */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.input {
    width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
    font-family: var(--font); font-size: 14px; outline: none; transition: border-color .12s;
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===================== login (2 colunas + card de vidro) ===================== */
.login-wrap {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    padding: 32px; position: relative; overflow-x: hidden; overflow-y: auto;
    background:
        radial-gradient(900px 520px at 12% 6%, rgba(124,92,255,.30), transparent 60%),
        radial-gradient(760px 520px at 88% 94%, rgba(91,63,214,.20), transparent 60%),
        #0e0a18;
}
.login-wrap::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='500' viewBox='0 0 1200 500'%3E%3Cg fill='none' stroke='%237c5cff' stroke-width='1.6' opacity='0.55'%3E%3Cpath d='M0,300 C200,220 400,380 600,300 S1000,220 1200,300'/%3E%3Cpath d='M0,345 C200,265 400,425 600,345 S1000,265 1200,345'/%3E%3Cpath d='M0,390 C200,310 400,470 600,390 S1000,310 1200,390'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: left 82%; background-size: 68% auto;
}
.login-split {
    position: relative; z-index: 1; width: 100%; max-width: 1160px;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center;
}
.login-hero { padding: 8px; }
.login-hero .hero-logo { width: 100%; max-width: 440px; height: auto; display: block;
    filter: drop-shadow(0 14px 44px rgba(124,92,255,.38)); }
.login-hero .hero-sub { margin-top: 12px; color: #b9aee0; letter-spacing: 6px; font-size: 13.5px;
    font-weight: 600; text-transform: uppercase; }
.login-hero .hero-bar { margin-top: 14px; width: 72px; height: 4px; border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), transparent); }

.lg-card {
    width: 100%; justify-self: end; max-width: 448px;
    background: linear-gradient(160deg, rgba(45,36,70,.72), rgba(22,17,37,.74));
    border: 1px solid rgba(150,120,255,.22); border-radius: 22px; padding: 34px 34px 26px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5); backdrop-filter: blur(18px) saturate(1.1);
    -webkit-backdrop-filter: blur(18px) saturate(1.1);
}
.lg-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.lg-head .lg-avatar { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(135deg, var(--accent), #5b3fd6); box-shadow: 0 6px 18px rgba(124,92,255,.4); }
.lg-head h1 { font-size: 23px; font-weight: 700; margin: 0; line-height: 1.1; }
.lg-head p { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }
.lg-head p b { color: var(--accent-2); font-weight: 600; }

.lg-field { margin-bottom: 15px; }
.lg-field > label { display: block; font-size: 13px; color: #c8bfe6; margin-bottom: 7px; font-weight: 500; }
.lg-input { display: flex; align-items: center; background: rgba(18,13,30,.7);
    border: 1px solid rgba(150,120,255,.2); border-radius: 12px; transition: border-color .12s, box-shadow .12s; }
.lg-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lg-input .lg-ico { display: grid; place-items: center; width: 46px; height: 46px; color: #9d93bf; flex: 0 0 auto; }
.lg-input input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
    color: var(--text); font-size: 15px; padding: 12px 8px 12px 0; }
.lg-input input::placeholder { color: #6f668c; }
/* Neutraliza o fundo branco do autofill (mascara com a cor do card).
   -webkit-autofill = Chrome/Edge/Brave/Opera/Safari; :autofill = padrão (Firefox 86+ e futuros). */
.lg-input input:-webkit-autofill,
.lg-input input:-webkit-autofill:hover,
.lg-input input:-webkit-autofill:focus,
.lg-input input:-webkit-autofill:active,
.lg-input input:autofill,
.lg-input input:autofill:hover,
.lg-input input:autofill:focus {
    -webkit-text-fill-color: var(--text);
    caret-color: var(--text);
    -webkit-box-shadow: 0 0 0 1000px rgba(18,13,30,.7) inset;
    box-shadow: 0 0 0 1000px rgba(18,13,30,.7) inset;
    background-color: rgba(18,13,30,.7) !important;
    transition: background-color 100000s ease-in-out 0s;
}
.lg-input .lg-eye { background: transparent; border: 0; cursor: pointer; color: #9d93bf; width: 46px; height: 46px; }
.lg-input .lg-eye:hover { color: var(--accent-2); }
.lg-input.mono input { font-family: Consolas, monospace; letter-spacing: 5px; }

.lg-2fa { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: stretch; }
.lg-askcode { display: flex; align-items: center; gap: 9px; padding: 0 16px;
    background: rgba(124,92,255,.12); border: 1px solid rgba(150,120,255,.32); border-radius: 12px;
    color: var(--accent-2); font-size: 12.5px; font-weight: 600; cursor: pointer; line-height: 1.15; text-align: left; }
.lg-askcode:hover { background: rgba(124,92,255,.2); }
.lg-askcode svg { flex: 0 0 auto; }
.lg-hint { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); background: rgba(124,92,255,.08);
    border: 1px solid rgba(150,120,255,.2); border-radius: 10px; padding: 10px 12px; }
.lg-hint b { color: var(--accent-2); }

.lg-check { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 4px; cursor: pointer; }
.lg-check input { width: 20px; height: 20px; flex: 0 0 auto; accent-color: var(--accent); margin-top: 1px; }
.lg-check .lg-check-t { font-size: 13.5px; color: var(--text); }
.lg-check .lg-check-s { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.lg-btn { width: 100%; margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px; border: 0; border-radius: 13px; cursor: pointer; font-size: 15.5px; font-weight: 600; color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 12px 30px var(--accent-soft);
    transition: filter .12s, transform .05s; }
.lg-btn:hover { filter: brightness(1.08); }
.lg-btn:active { transform: translateY(1px); }

.lg-links { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px;
    padding-top: 18px; border-top: 1px solid rgba(150,120,255,.14); font-size: 13px; }
.lg-links a { color: var(--accent-2); text-decoration: none; }
.lg-links a:hover { text-decoration: underline; }
.lg-links .sep { color: #4b4266; }

.lg-foot { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 1; text-align: center;
    color: #7a7098; font-size: 12px; display: flex; align-items: center; justify-content: center; gap: 7px; }

.lg-alert { background: rgba(224,80,110,.12); border: 1px solid rgba(224,80,110,.4); color: #f0a6b5;
    padding: 11px 14px; border-radius: 11px; font-size: 13px; margin-bottom: 16px; }

@media (max-width: 900px) {
    .login-split { grid-template-columns: 1fr; gap: 26px; max-width: 448px; }
    .login-hero { text-align: center; }
    .login-hero .hero-logo { margin: 0 auto; max-width: 300px; }
    .login-hero .hero-bar { margin-left: auto; margin-right: auto; }
    .lg-card { justify-self: center; }
    .lg-foot { position: static; margin-top: 24px; }
    .login-wrap { flex-direction: column; }
}

/* ===================== misc ===================== */
.alert-box {
    padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px;
    background: var(--crit-soft); color: #ffb3b5; border: 1px solid rgba(229, 72, 77, .3);
}
.key-box {
    padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 20px;
    background: var(--good-soft); border: 1px solid rgba(63, 191, 135, .3);
}
.key-box .key-code {
    font-family: "Cascadia Code", Consolas, monospace; font-size: 16px; font-weight: 700;
    color: var(--good); letter-spacing: .5px; word-break: break-all; margin-top: 6px;
}
.empty { color: var(--faint); text-align: center; padding: 40px; }
.muted { color: var(--muted); }
.right { text-align: right; }
.mono { font-family: "Cascadia Code", Consolas, monospace; }
.inline-form { display: inline; margin: 0; }

@media (max-width: 720px) {
    .sidebar { width: 64px; padding: 16px 8px; }
    .brand-text, .nav-item span:not(.nav-ico), .sidebar-foot { display: none; }
    .content { padding: 18px; }
}

/* ===================== Revendedores (Admin) ===================== */
.stat-row { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }
.stat-card { flex: 1 1 150px; min-width: 150px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; box-shadow: var(--shadow); }
.stat-ic { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center;
  font-size: 17px; flex-shrink: 0; background: var(--accent-soft); color: var(--accent-2); }
.stat-ic.good { background: var(--good-soft); color: var(--good); }
.stat-ic.crit { background: var(--crit-soft); color: var(--crit); }
.stat-ic.warn { background: var(--warn-soft); color: var(--warn); }
.stat-num { font-size: 20px; font-weight: 700; line-height: 1.05; }
.stat-lbl { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.stat-sub { font-size: 10.5px; color: var(--muted); opacity: .75; margin-top: 1px; }

/* na tela de revendedores, usa a largura toda para caber a 3ª coluna de infos */
.content:has(.rv-page) { max-width: 1560px; }
.rv-grid { display: grid; grid-template-columns: minmax(300px, 340px) minmax(0, 1fr) minmax(280px, 330px); gap: 18px; align-items: start; }
.rv-side { display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 1400px) {
  .rv-grid { grid-template-columns: minmax(300px, 340px) 1fr; }
  .rv-side { grid-column: 1 / -1; flex-direction: row; }
  .rv-side > * { flex: 1; }
}
@media (max-width: 900px) { .rv-grid { grid-template-columns: 1fr; } .rv-side { flex-direction: column; } }

/* Lista de revendedores + coluna de infos (a aba "Cadastrar" vira item do menu lateral) */
.rv-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 330px); gap: 18px; align-items: start; }
@media (max-width: 1400px) { .rv-grid2 { grid-template-columns: 1fr; } }

.seg-bar { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); margin: 6px 0 4px; }
.seg-bar > span { display: block; height: 100%; }
.mini-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mini-bar { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.mini-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

.fld { margin-bottom: 13px; }
.fld-lbl { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 6px; }
.inp-ic { position: relative; }
.inp-ic > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted);
  display: flex; pointer-events: none; }
.inp-ic > .input { padding-left: 38px; }

.rv-cols { display: grid; grid-template-columns: 2.4fr .7fr 1.8fr 1fr 1fr auto; gap: 12px; align-items: center; }
.rv-head-row { padding: 0 20px 12px; font-size: 10.5px; letter-spacing: .6px; color: var(--muted); text-transform: uppercase; }
@media (max-width: 900px) { .rv-head-row { display: none; } .rv-cols { grid-template-columns: 1fr auto; gap: 6px 10px; } }

/* linha expansível (acordeão): lista compacta; ações aparecem ao abrir */
.rv-item { border-top: 1px solid var(--border-soft); }
.rv-item > summary, .rv-item > .rv-sum { padding: 15px 20px; }
.rv-item > summary { list-style: none; cursor: pointer; }
.rv-item > summary::-webkit-details-marker { display: none; }
.rv-item > summary:hover { background: rgba(124, 92, 255, .05); }
.rv-item[open] > summary { background: rgba(124, 92, 255, .08); }
.chev-btn { justify-self: end; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); color: var(--muted);
  font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: border-color .14s, color .14s, background .14s; }
.chev-btn::after { content: "Gerenciar  ▾"; }
.rv-item > summary:hover .chev-btn { border-color: var(--accent); color: var(--text); background: var(--surface-3); }
.rv-item[open] .chev-btn { border-color: var(--accent); color: var(--accent-2); background: var(--accent-soft); }
.rv-item[open] .chev-btn::after { content: "Fechar  ▴"; }

.rv-panel { padding: 2px 20px 18px; background: rgba(124, 92, 255, .035); }
.act-grp { padding: 13px 0; border-top: 1px dashed var(--border); }
.act-grp:first-child { border-top: 0; padding-top: 8px; }
.act-grp.danger .grp-lbl { color: var(--crit); }
.grp-lbl { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.grp-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.act { display: inline-flex; align-items: center; gap: 6px; }
.act-lbl { font-size: 9.5px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.act-sep { width: 1px; height: 24px; background: var(--border); margin: 0 2px; }
.field2 { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text); font-size: 12.5px; }
.field2:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.chk2 { font-size: 12px; display: inline-flex; gap: 5px; align-items: center; color: var(--muted); cursor: pointer; }

.btn2 { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 12.5px;
  font-weight: 500; cursor: pointer; transition: border-color .14s, background .14s, filter .14s; white-space: nowrap; }
.btn2:hover { border-color: var(--accent); background: var(--surface-3); }
.btn2.primary { background: linear-gradient(135deg, var(--accent), #5b3fd6); border-color: transparent; color: #fff; box-shadow: 0 3px 12px rgba(124,92,255,.28); }
.btn2.primary:hover { filter: brightness(1.09); }
.btn2.danger { color: var(--crit); border-color: rgba(229,72,77,.32); background: var(--crit-soft); }
.btn2.danger:hover { background: rgba(229,72,77,.2); border-color: var(--crit); }

.rv-id { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rv-av { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: flex; align-items: center;
  justify-content: center; font-size: 17px; font-weight: 700; color: #fff; }
.rv-name { font-weight: 600; font-size: 14.5px; }
.rv-mail { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-chip { display: inline-block; font-size: 9.5px; font-weight: 700; letter-spacing: .4px; padding: 2px 7px;
  border-radius: 6px; background: var(--accent-soft); color: var(--accent-2); vertical-align: middle; margin-left: 7px; }

.rv-bar { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-bottom: 6px; }
.rv-bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rv-bar > i.over { background: linear-gradient(90deg, #e5484d, #f0787c); }
.rv-usetxt { font-size: 12.5px; }
.rv-usesub { font-size: 11px; color: var(--muted); margin-top: 2px; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--muted);
  background: var(--surface-2); font-size: 17px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu[open] > summary, .menu > summary:hover { color: var(--text); border-color: var(--accent); }
.menu-pop { position: absolute; right: 0; top: 40px; z-index: 30; width: 258px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 14px 38px rgba(0,0,0,.5); padding: 9px; }
.menu-sec { font-size: 10px; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); margin: 9px 5px 4px; }
.menu-pop form { margin: 0 0 3px; }
.menu-item { width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; background: transparent;
  border: 0; color: var(--text); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.menu-item:hover { background: var(--surface-3); }
.menu-item.danger { color: var(--crit); }
.menu-inline { display: flex; gap: 6px; align-items: center; padding: 4px 6px 8px; }
.menu-inp { flex: 1; min-width: 0; padding: 6px 9px; border-radius: 7px; border: 1px solid var(--border);
  background: var(--surface-3); color: var(--text); font-size: 12.5px; }
.menu-div { height: 1px; background: var(--border); margin: 6px 2px; }
