:root {
    --bg: #06090f;
    --bg-grid: #0a0f18;
    --panel: #0c1220;
    --panel-2: #0e1524;
    --rail: #070b12;
    --line: #17222f;
    --line-soft: #111b26;

    --cyan: #35d0e4;
    --cyan-dim: #1a94a6;
    --cyan-glow: rgba(53, 208, 228, .16);

    --text: #c7d4e2;
    --text-hi: #eaf3f9;
    --muted: #61728a;
    --muted-2: #46566b;

    --green: #34d17b;
    --amber: #f6a92b;
    --red: #ff4b63;

    --mono: ui-monospace, 'Cascadia Mono', 'JetBrains Mono', 'Consolas', 'SFMono-Regular', monospace;
    --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
    font-family: var(--sans);
    color: var(--text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(53,208,228,.05), transparent 60%),
        linear-gradient(180deg, #070b12, var(--bg));
    background-attachment: fixed;
}
a { text-decoration: none; color: var(--cyan); }

.label, .stat .rotulo, table.tbl th, .brand-sub, .topbar-status, .sidebar-rodape, .nav-item span:last-child {
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: .14em;
}

h1 { font-size: 1.4rem; margin: 0 0 .3rem; color: var(--text-hi); font-weight: 600; letter-spacing: .01em; }
h1 .ac { color: var(--cyan); }
h2 { font-size: .8rem; margin: 0 0 .9rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }

/* ---------- app shell ---------- */
.cs-app { display: flex; flex-direction: column; min-height: 100vh; }
.cs-body { display: flex; flex: 1; min-height: 0; }
.cs-main { flex: 1; min-width: 0; padding: 1.5rem 1.75rem; }
.page-sub { font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-size: .72rem; margin: 0 0 1.4rem; }

/* ---------- command topbar ---------- */
.cmd-topbar {
    height: 60px; display: flex; align-items: center; gap: 1.5rem;
    padding: 0 1.25rem; background: linear-gradient(180deg, #0a1019, #070b12);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
    width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    background: radial-gradient(circle at 30% 30%, var(--cyan), var(--cyan-dim));
    color: #04222a; font-family: var(--mono); font-weight: 700; font-size: .9rem;
    box-shadow: 0 0 14px var(--cyan-glow);
}
.brand-name { font-family: var(--mono); font-weight: 700; letter-spacing: .12em; color: var(--text-hi); font-size: 1.05rem; }
.brand-name .plus { color: var(--cyan); }
.brand-sub { color: var(--muted); font-size: .66rem; border-left: 1px solid var(--line); padding-left: .6rem; margin-left: .1rem; }

.topbar-status { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .68rem; }
.topbar-status .clock { color: var(--text-hi); font-family: var(--mono); font-size: 1.05rem; letter-spacing: .08em; }
.topbar-status .date { color: var(--muted); font-family: var(--mono); }
.topbar-status .sep { width: 1px; height: 20px; background: var(--line); }
.stat-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.stat-dot.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.stat-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }

.topbar-spacer { flex: 1; }
.topbar-user { display: flex; align-items: center; gap: .6rem; }
.avatar {
    width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    background: #0f1a28; border: 1px solid var(--line); color: var(--cyan);
    font-family: var(--mono); font-weight: 700; font-size: .8rem;
}
.u-info { display: flex; flex-direction: column; line-height: 1.15; }
.u-info b { color: var(--text-hi); font-size: .82rem; font-weight: 600; }
.u-info small { color: var(--muted); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.btn-logout {
    background: transparent; border: 1px solid var(--line); color: var(--muted);
    width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 1rem;
}
.btn-logout:hover { color: var(--red); border-color: var(--red); }

/* ---------- rail (sidebar) ---------- */
.rail {
    width: 84px; background: var(--rail); border-right: 1px solid var(--line);
    display: flex; flex-direction: column; padding: .8rem .4rem; gap: .2rem;
    position: sticky; top: 0; align-self: flex-start; height: calc(100vh - 60px);
}
.nav-item {
    position: relative; display: flex; flex-direction: column; align-items: center; gap: .3rem;
    padding: .7rem .2rem; border-radius: 10px; color: var(--muted); cursor: pointer;
}
.nav-item .ico { font-size: 1.15rem; line-height: 1; }
.nav-item span:last-child { font-size: .56rem; letter-spacing: .1em; }
.nav-item:hover { color: var(--text-hi); background: rgba(53,208,228,.05); }
.nav-item.active { color: var(--cyan); background: rgba(53,208,228,.09); }
.nav-item.active::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px;
    background: var(--cyan); border-radius: 0 3px 3px 0; box-shadow: 0 0 10px var(--cyan);
}
.nav-badge {
    position: absolute; top: .35rem; right: .9rem; background: var(--red); color: #fff;
    font-family: var(--mono); font-size: .58rem; min-width: 15px; height: 15px; border-radius: 8px;
    display: grid; place-items: center; padding: 0 3px;
}
.rail-foot { margin-top: auto; text-align: center; color: var(--muted-2); font-size: .52rem; }

/* ---------- grid / cards ---------- */
.grid { display: grid; gap: 1rem; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1200px) { .grid.cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 760px) { .grid.cols-4,.grid.cols-3,.grid.cols-2 { grid-template-columns: 1fr;} .rail{ width: 62px;} .nav-item span:last-child{ display:none;} }

.card {
    position: relative; background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem 1.15rem;
}
.card::after {
    content: ""; position: absolute; top: 0; left: 14px; width: 34px; height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent); border-radius: 2px; opacity: .5;
}
.card h2 { margin-top: 0; }
a.card { text-decoration: none; color: inherit; transition: border-color .12s, box-shadow .12s; }
a.card:hover { border-color: var(--cyan-dim); box-shadow: 0 0 0 1px rgba(53,208,228,.12); }

.stat { display: flex; flex-direction: column; gap: .35rem; }
.stat .rotulo { color: var(--muted); font-size: .66rem; }
.stat .valor { font-family: var(--mono); font-size: 2.1rem; font-weight: 700; color: var(--text-hi); line-height: 1; letter-spacing: .02em; }
.stat .valor.cyan { color: var(--cyan); }
.stat .valor.amber { color: var(--amber); }
.stat .valor.red { color: var(--red); }
.stat .sub { color: var(--muted); font-size: .74rem; }
.stat .ico { font-size: 1.1rem; color: var(--cyan); }

/* ---------- tables ---------- */
table.tbl { width: 100%; border-collapse: collapse; }
table.tbl th, table.tbl td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line-soft); font-size: .86rem; }
table.tbl th { color: var(--muted); font-weight: 600; font-size: .64rem; }
table.tbl tbody tr:hover td { background: rgba(53,208,228,.04); }
table.tbl td { color: var(--text); }

/* ---------- buttons ---------- */
.btn { font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 600;
    border: 1px solid transparent; border-radius: 8px; padding: .58rem .95rem; cursor: pointer; background: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem; line-height: 1;
    transition: border-color .12s, box-shadow .12s, background .12s, color .12s; }
.btn:disabled { opacity: .4; cursor: not-allowed; box-shadow: none !important; }
.btn-primary { background: linear-gradient(180deg, rgba(53,208,228,.2), rgba(53,208,228,.09)); border-color: rgba(53,208,228,.5); color: #c3f4fb; }
.btn-primary:hover:not(:disabled) { border-color: var(--cyan); color: #eafcff; box-shadow: inset 0 0 0 1px rgba(53,208,228,.25), 0 0 18px var(--cyan-glow); }
.btn-ghost { border-color: var(--line); color: var(--text); background: rgba(255,255,255,.012); }
.btn-ghost:hover:not(:disabled) { border-color: var(--cyan-dim); color: var(--cyan); background: rgba(53,208,228,.06); }
.btn-danger { background: linear-gradient(180deg, rgba(255,75,99,.18), rgba(255,75,99,.08)); border-color: rgba(255,75,99,.5); color: #ff9aa8; }
.btn-danger:hover:not(:disabled) { border-color: var(--red); color: #ffd2d8; box-shadow: 0 0 16px rgba(255,75,99,.22); }
.btn-sm { padding: .36rem .62rem; font-size: .63rem; letter-spacing: .08em; }
.acoes { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }

/* ---------- forms ---------- */
label.campo { display: block; margin-bottom: .9rem; }
label.campo span { display: block; font-family: var(--mono); font-size: .63rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: .35rem; }
.input, input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%; height: 38px; padding: 0 .72rem; border: 1px solid var(--line); border-radius: 8px;
    font-size: .88rem; background: #0a1119; color: var(--text-hi); font-family: var(--sans);
    transition: border-color .12s, box-shadow .12s, background .12s;
}
textarea { height: auto; min-height: 76px; padding: .55rem .72rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--muted-2); }
.input:hover, input:hover:not([type=checkbox]):not([type=radio]), select:hover, textarea:hover { border-color: #24313f; }
.input:focus, input:focus, select:focus, textarea:focus { outline: none; border-color: var(--cyan-dim); box-shadow: 0 0 0 3px var(--cyan-glow); background: #0c141d; }

/* select com seta própria */
select {
    appearance: none; -webkit-appearance: none; padding-right: 1.9rem; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2361728a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .72rem center;
}
select option { background: #0c141d; color: var(--text-hi); }

/* checkbox customizado */
input[type=checkbox]:not(.sw) {
    appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid #2c3c4e;
    border-radius: 5px; background: #0a1119; cursor: pointer; position: relative; vertical-align: middle; flex: none;
    transition: border-color .12s, background .12s, box-shadow .12s;
}
input[type=checkbox]:not(.sw):hover { border-color: var(--cyan-dim); }
input[type=checkbox]:not(.sw):checked { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px var(--cyan-glow); }
input[type=checkbox]:not(.sw):checked::after {
    content: ""; position: absolute; left: 5.5px; top: 1.5px; width: 5px; height: 9px;
    border: solid #05232b; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* radio customizado */
input[type=radio] {
    appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 1px solid #2c3c4e;
    border-radius: 50%; background: #0a1119; cursor: pointer; position: relative; vertical-align: middle; flex: none;
    transition: border-color .12s;
}
input[type=radio]:hover { border-color: var(--cyan-dim); }
input[type=radio]:checked { border-color: var(--cyan); }
input[type=radio]:checked::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }

/* toggle em pílula (.sw) — on/off */
input[type=checkbox].sw {
    appearance: none; -webkit-appearance: none; width: 44px; height: 23px; border-radius: 23px;
    background: #141f2b; border: 1px solid #26333f; position: relative; cursor: pointer; flex: none; vertical-align: middle;
    transition: background .15s, border-color .15s;
}
input[type=checkbox].sw::after {
    content: ""; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%;
    background: #6b7d92; transition: left .15s, background .15s, box-shadow .15s;
}
input[type=checkbox].sw:checked { background: rgba(52,209,123,.22); border-color: rgba(52,209,123,.6); }
input[type=checkbox].sw:checked::after { left: 23px; background: var(--green); box-shadow: 0 0 10px rgba(52,209,123,.55); }

/* linha de toggle (label + switch) */
.switch-row { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; border: 1px solid var(--line-soft);
    border-radius: 9px; background: rgba(255,255,255,.012); }
.switch-row .nome { color: var(--text-hi); font-size: .86rem; }
.switch-row .meta { color: var(--muted); font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.switch-row .estado { margin-left: auto; font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .1em; }
.switch-row .estado.on { color: var(--green); }
.switch-row .estado.off { color: var(--muted); }

/* ícone-tile (para itens/dispositivos) */
.tile { width: 38px; height: 38px; border-radius: 9px; background: #0f1a27; border: 1px solid var(--line);
    display: grid; place-items: center; color: var(--cyan); font-size: 1rem; flex: none; }
.list-lin { display: flex; align-items: center; gap: .7rem; }

/* avatar (foto ou iniciais) */
.av { width: 46px; height: 46px; border-radius: 10px; overflow: hidden; flex: none;
    background: #0f1a27; border: 1px solid var(--line); display: grid; place-items: center;
    color: var(--cyan); font-family: var(--mono); font-weight: 700; font-size: .82rem; }
.av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.av.sm { width: 38px; height: 38px; border-radius: 8px; font-size: .72rem; }

/* card horizontal / linha */
.row-card { display: flex; align-items: center; gap: .95rem; padding: .7rem .95rem;
    border: 1px solid var(--line); border-radius: 11px;
    background: linear-gradient(180deg, var(--panel-2), var(--panel)); margin-bottom: .55rem;
    transition: border-color .12s, box-shadow .12s; }
.row-card:hover { border-color: #20303f; box-shadow: 0 0 0 1px rgba(53,208,228,.06); }
.row-card.sel { border-color: rgba(53,208,228,.5); box-shadow: inset 0 0 0 1px rgba(53,208,228,.15); }
.row-main { min-width: 0; flex: 1; }
.row-name { color: var(--text-hi); font-weight: 600; font-size: .92rem; line-height: 1.2; }
.row-badges { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.row-actions { display: flex; gap: .4rem; align-items: center; margin-left: .3rem; }
.scroll-list { max-height: 62vh; overflow: auto; padding-right: .2rem; }

/* variações de card */
.card.st-ok { border-left: 2px solid var(--green); }
.card.st-warn { border-left: 2px solid var(--amber); }
.card.st-crit { border-left: 2px solid var(--red); }

/* ---------- badges / pills ---------- */
.badge { display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
    padding: .18rem .5rem; border-radius: 6px; font-size: .62rem; font-weight: 600; border: 1px solid transparent; }
.badge.ok { color: var(--green); border-color: rgba(52,209,123,.4); background: rgba(52,209,123,.08); }
.badge.off { color: var(--red); border-color: rgba(255,75,99,.4); background: rgba(255,75,99,.08); }
.badge.n { color: var(--muted); border-color: var(--line); }

/* ---------- alerts ---------- */
.alerta { border-radius: 8px; padding: .7rem .9rem; margin-bottom: 1rem; font-size: .84rem; border: 1px solid; }
.alerta.ok { color: var(--green); border-color: rgba(52,209,123,.35); background: rgba(52,209,123,.06); }
.alerta.erro { color: var(--red); border-color: rgba(255,75,99,.35); background: rgba(255,75,99,.06); }
.alerta.info { color: var(--cyan); border-color: rgba(53,208,228,.35); background: rgba(53,208,228,.06); }

.page-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; }
.meta { color: var(--muted); font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center;
    background: radial-gradient(900px 500px at 50% 0%, rgba(53,208,228,.08), transparent 60%), var(--bg); }
.login-card { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
    border-radius: 14px; padding: 2.2rem; width: 380px; box-shadow: 0 20px 60px rgba(0,0,0,.5); position: relative; }
.login-card::after { content: ""; position: absolute; top: 0; left: 24px; right: 24px; height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: .6; }
.login-card .brand-mark { width: 54px; height: 54px; font-size: 1.2rem; margin: 0 auto 1.2rem; }
.login-card h1 { text-align: center; font-family: var(--mono); letter-spacing: .12em; font-size: 1.15rem; }
.login-card .sub { text-align: center; color: var(--muted); font-family: var(--mono); text-transform: uppercase;
    letter-spacing: .14em; font-size: .66rem; margin-bottom: 1.4rem; }

/* ---------- blazor error ui ---------- */
#blazor-error-ui { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #2a1015; color: var(--red); padding: .75rem 1.25rem; border-top: 1px solid var(--red); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .6rem; }
#blazor-error-ui .reload { color: var(--red); text-decoration: underline; }

/* seções empilhadas na página de configurações */
.card.sec{margin-bottom:1rem;}
.card.sec h2{margin-top:0;}

/* ---- Cadastro: moldura de face + dropzone ---- */
.face-frame{position:relative;width:210px;height:270px;border-radius:12px;overflow:hidden;
  background:var(--panel-2);border:1px solid var(--line);display:grid;place-items:center;}
.face-frame img{width:100%;height:100%;object-fit:cover;}
.face-frame .ph{display:flex;flex-direction:column;align-items:center;gap:.45rem;color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;}
.face-frame .ph .g{font-size:2.6rem;line-height:1;color:var(--cyan-dim);}
.face-frame::before,.face-frame::after{content:"";position:absolute;width:24px;height:24px;pointer-events:none;}
.face-frame::before{top:9px;left:9px;border-top:2px solid var(--cyan);border-left:2px solid var(--cyan);border-top-left-radius:5px;}
.face-frame::after{bottom:9px;right:9px;border-bottom:2px solid var(--cyan);border-right:2px solid var(--cyan);border-bottom-right-radius:5px;}
.dropzone{display:flex;flex-direction:column;align-items:center;gap:.35rem;padding:.9rem 1rem;
  border:1px dashed var(--cyan-dim);border-radius:10px;background:var(--panel-2);cursor:pointer;
  color:var(--muted);font-size:.82rem;text-align:center;transition:border-color .15s,color .15s;}
.dropzone:hover{border-color:var(--cyan);color:var(--text-hi);}
.dropzone .dz-ico{font-size:1.4rem;color:var(--cyan);}
.dropzone input[type=file]{display:none;}

/* ---- Modal (escolha salvar/enviar) ---- */
.modal-bg{position:fixed;inset:0;background:rgba(3,6,12,.72);backdrop-filter:blur(2px);
  display:grid;place-items:center;z-index:50;padding:1rem;}
.modal{background:var(--panel);border:1px solid var(--line);border-radius:14px;
  padding:1.4rem 1.5rem;max-width:520px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.5);}
.modal h2{margin:0 0 .3rem;}
.modal-acoes{display:flex;flex-direction:column;gap:.6rem;margin:1rem 0 .4rem;}
.modal-acoes .btn{width:100%;justify-content:flex-start;text-align:left;padding:.7rem .9rem;height:auto;}
.modal-acoes .btn small{display:block;font-weight:400;opacity:.7;font-size:.72rem;margin-top:.15rem;text-transform:none;letter-spacing:0;}

/* ---- Painel de conferência da foto ---- */
.foto-check{margin-top:.6rem;display:flex;flex-direction:column;gap:.25rem;}
.foto-check .chk{font-size:.78rem;line-height:1.4;padding:.15rem 0;}
.foto-check .chk.ok{color:var(--green);}
.foto-check .chk.aviso{color:var(--amber);}
.foto-check .chk.erro{color:var(--red);}
.foto-guia{margin-top:.5rem;font-size:.75rem;color:var(--muted);line-height:1.55;}
.foto-guia li{margin:.1rem 0;}

/* ---- Grid de cards que preenche o frame (envio em lote) ---- */
.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:.5rem;}
.stat-inline{display:flex;gap:1.4rem;flex-wrap:wrap;align-items:baseline;}
.stat-inline .n{font-family:var(--mono);font-size:1.6rem;color:var(--cyan);line-height:1;}
.stat-inline .n.ok{color:var(--green);}
.stat-inline .n.warn{color:var(--amber);}
.stat-inline .n.crit{color:var(--red);}
.stat-inline .lbl{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted);margin-left:.35rem;}

/* ---- Configurações: layout compacto + títulos com mais contraste ---- */
.cfg .campo{margin-bottom:0;}
.cfg .campo span{color:var(--text-hi);font-size:.68rem;font-weight:600;letter-spacing:.1em;}
.cfg h2{color:var(--text-hi);}
.cfg-fields{display:flex;flex-wrap:wrap;gap:1rem 1.5rem;align-items:flex-end;}
.cfg-fields .campo.num .input{width:130px;}
.cfg-fields .campo.sel .input{width:240px;}
.cfg-fields .campo.txt .input{width:min(400px,86vw);}
.cfg-toggles{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;margin-top:.6rem;}
.cfg-toggles .switch-row{margin:0;min-width:250px;flex:0 1 auto;}
.conf-item{display:flex;justify-content:space-between;gap:1rem;padding:.35rem 0;border-bottom:1px solid var(--line-soft);font-size:.85rem;}
.conf-item .lbl{color:var(--text-hi);}

/* ---- Dica/explicação curta por campo de configuração ---- */
.campo .dica{display:block;font-size:.72rem;color:var(--muted);text-transform:none;
  letter-spacing:0;line-height:1.4;margin:.1rem 0 .35rem;font-weight:400;}
.switch-row .dica{font-size:.72rem;color:var(--muted);}

/* ---- Marca CS Equipamentos (BrandLogo) ---- */
.brandlogo{display:inline-flex;align-items:center;gap:.55rem;line-height:1;}
.bl-mark{width:1.9em;height:1.9em;display:block;flex:none;}
.bl-wrench{fill:var(--cyan);}
.bl-driver{fill:var(--text-hi,#fff);}
.bl-word{font-family:var(--sans);font-weight:800;letter-spacing:.01em;font-size:1.02rem;
  color:var(--text-hi,#fff);white-space:nowrap;}
.bl-word b{color:var(--cyan);font-weight:800;}
/* variante grande p/ login */
.brandlogo.big .bl-mark{width:64px;height:64px;}

/* ---- Seletor de tenant (local/cliente ativo) no topo ---- */
.tenant-switch{display:inline-flex;align-items:center;gap:.4rem;padding:.25rem .5rem;
  border:1px solid var(--line);border-radius:9px;background:var(--panel-2);}
.tenant-switch .ts-ico{color:var(--cyan);font-size:.95rem;}
.tenant-switch .ts-select{background:transparent;border:none;color:var(--text-hi);
  font-family:var(--sans);font-weight:600;font-size:.85rem;outline:none;cursor:pointer;
  max-width:180px;}
.tenant-switch .ts-select option{background:var(--panel);color:var(--text);}
