/* Sentinela · painel do TI · leva TI-2 (diário 55): Políticas (A04) e Grupos (A06).
   Só seletores com prefixo t2- (não toca em nada do dono nem da TI-1). Cores só por token. */

/* ---------- comuns ---------- */
.t2-acoes, .titulo > .t2-acoes { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; }
.t2-acoes .btn { min-height: 36px; }
.btn.t2-mini { min-height: 32px; height: 32px; padding: 0 10px; font-size: 12.5px; flex-shrink: 0; }
.btn.t2-mini.amb { background: none; border-color: var(--sx-5c4521); color: var(--sx-f2c46e); }
.btn.t2-amb { background: none; border-color: var(--sx-5c4521); color: var(--sx-f2c46e); }
.btn.t2-perigo-cheio { background: var(--sx-crit); border: 0; color: #fff; font-weight: 600; }
.btn.t2-perigo-cheio[disabled] { background: var(--sx-262c33); color: var(--sx-4a535c); }
.t2-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.t2-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
@media (min-width: 1100px) { .t2-grade { grid-template-columns: minmax(0, 1fr) 300px; } .t2-grade.g { grid-template-columns: minmax(0, 1fr) 320px; } }
.t2-faixa { border-radius: 4px; padding: 12px 14px; display: flex; gap: 12px; align-items: flex-start; }
.t2-faixa > div { display: flex; flex-direction: column; gap: 3px; }
.t2-faixa span { font-size: 12.5px; }
.t2-faixa.crit { background: var(--sx-2a1719); border: 1px solid var(--sx-5a2a2d); }
.t2-faixa.crit b { color: var(--sx-f07b7f); } .t2-faixa.crit span { color: var(--sx-c4cad0); }
.t2-faixa.amb { background: var(--sx-1c1811); border: 1px solid var(--sx-5c4521); color: var(--sx-f2c46e); }
.t2-faixa.amb b { color: var(--sx-f2c46e); } .t2-faixa.amb span { color: var(--sx-d9c7a3); }
.t2-faixa.mini { font-size: 12.5px; color: var(--sx-f07b7f); padding: 10px 12px; }
.t2-zona { border: 1px solid var(--sx-5a2a2d); border-radius: 4px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.t2-zona b { color: var(--sx-f07b7f); font-weight: 600; }
.t2-zona span { font-size: 12.5px; }
.t2-zona .btn { justify-content: center; }
.t2-campo { display: flex; flex-direction: column; gap: 6px; }
.t2-campo > span { font-size: 12.5px; color: var(--sx-8a949e); }
.t2-campo > span b { color: var(--sx-e4e7eb); font-weight: 600; }
.t2-campo input { height: 40px; padding: 0 12px; background: var(--sx-111418); border: 1px solid var(--sx-2e353d); border-radius: 4px; color: var(--sx-e4e7eb); font: inherit; outline: none; }
.t2-campo input:focus { border-color: #E8A93B; }
.t2-campo input.bad { border-color: var(--sx-crit); }
.t2-erro { font-size: 12.5px; color: var(--sx-f07b7f); min-height: 0; }
.t2-erro:empty { display: none; }
.t2-confirma { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.t2-confirma.crit { border-color: var(--sx-5a2a2d); }
.t2-confirma > span { font-size: 13px; color: var(--sx-c4cad0); }
.t2-confirma .bts, .t2-caixa .bts { display: flex; flex-wrap: wrap; gap: 8px; }
.t2-caixa .bts { justify-content: flex-end; }
.t2-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; padding: 2px 6px; border-radius: 2px; white-space: nowrap; flex-shrink: 0; }
.t2-tag.h { color: var(--sx-8a949e); border: 1px solid var(--sx-2e353d); }
.t2-tag.n { color: var(--sx-f2c46e); border: 1px solid var(--sx-5c4521); background: var(--sx-2b2214); }
.t2-selo-ti { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; padding: 2px 6px; border-radius: 2px; color: var(--sx-f2c46e); border: 1px solid var(--sx-5c4521); background: var(--sx-1c1811); }
.t2-selo-crit { font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; padding: 1px 5px; border-radius: 2px; white-space: nowrap; color: var(--sx-f07b7f); border: 1px solid var(--sx-5a2a2d); }

/* ---------- A04 Editor de política ---------- */
.t2-topo { align-items: flex-end; }
.t2-cadeia { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sx-8a949e); margin-top: 2px; }
.t2-cadeia .c { padding: 2px 7px; border-radius: 2px; border: 1px solid var(--sx-2e353d); }
.t2-cadeia .c.tr { border-style: dashed; }
.t2-cadeia .c.on { color: var(--sx-f2c46e); border-color: var(--sx-5c4521); background: var(--sx-2b2214); }
.t2-cadeia .sep { color: var(--sx-4a535c); }
.t2-sujo { font-size: 12px; color: var(--sx-f2c46e); display: flex; align-items: center; gap: 6px; }
.t2-sujo .pt { width: 6px; height: 6px; border-radius: 50%; background: #E8A93B; }
.btn.t2-aud { background: none; border-style: dashed; border-color: var(--sx-5c6670); color: var(--sx-8a949e); }
.btn.t2-aud .mono { font-size: 10.5px; }
.btn.t2-pub { padding: 0 16px; }
.btn.prim.t2-pub[disabled], .btn.prim.t2-novo[disabled] { background: var(--sx-262c33); color: var(--sx-4a535c); }
.t2-escopo { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.t2-escopo .l1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.t2-seg { display: flex; background: var(--sx-1a1f25); border: 1px solid var(--sx-2e353d); border-radius: 4px; padding: 3px; gap: 2px; }
.t2-seg a { display: flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 2px; font-size: 13px; color: var(--sx-8a949e); }
.t2-seg a.on { background: var(--sx-2a3139); color: var(--sx-f2c46e); font-weight: 500; }
.t2-explica { font-size: 12.5px; }
.t2-apagado > .t2-col:first-child { opacity: 0.45; }
.t2-sec .hd { flex-wrap: wrap; }
.t2-sec .hd > svg { color: var(--sx-8a949e); }
.t2-sub { font-size: 12px; }
.t2-orig { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.t2-sec.herd .t2-lista, .t2-sec.herd .t2-chips, .t2-sec.herd .t2-usb, .t2-sec.herd .t2-hor { opacity: 0.72; }
.t2-nada { font-size: 13px; }
.t2-antigo { margin: 12px 16px 0; padding: 8px 10px; border: 1px dashed var(--sx-5c4521); border-radius: 3px; font-size: 12px; color: var(--sx-d9c7a3); background: var(--sx-1c1811); }
.t2-lista .t2-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--sx-1f252b); }
.t2-item .nm { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.t2-rm { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 1px solid transparent; border-radius: 3px; color: var(--sx-8a949e); cursor: pointer; flex-shrink: 0; }
.t2-rm:hover { border-color: var(--sx-5a2a2d); color: var(--sx-f07b7f); }
.t2-vz { font-size: 12.5px; }
.t2-addw { border-top: 0; }
.t2-add { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 3px 3px 3px 10px; background: var(--sx-111418); border: 1px solid var(--sx-2e353d); border-radius: 3px; color: var(--sx-8a949e); }
.t2-add:focus-within { border-color: #E8A93B; }
.t2-add input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--sx-e4e7eb); font: inherit; font-size: 13px; }
.t2-add input::placeholder { color: var(--sx-6b7580); }
.t2-duas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1px; background: var(--sx-262c33); }
.t2-duas > div { background: var(--sx-151a1f); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.t2-rot { font-size: 12px; display: flex; align-items: center; gap: 6px; }
.t2-rot .pt { width: 7px; height: 7px; }
.t2-rot.ok { color: var(--sx-6fd39f); } .t2-rot.ok .pt { border-radius: 50%; background: var(--sx-ok); }
.t2-rot.bad { color: var(--sx-f07b7f); } .t2-rot.bad .pt { border-radius: 1px; background: var(--sx-crit); }
.t2-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t2-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 3px 4px 3px 8px; min-height: 28px; box-sizing: border-box; background: var(--sx-111418); border: 1px solid var(--sx-2e353d); border-radius: 3px; overflow-wrap: anywhere; }
.t2-chip button { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: none; border: 0; color: var(--sx-8a949e); cursor: pointer; border-radius: 2px; }
.t2-chip button:hover { color: var(--sx-f07b7f); }
.t2-usb { display: flex; flex-direction: column; gap: 12px; padding-bottom: 4px; }
.t2-modos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.t2-modo { min-height: 40px; padding: 6px 10px; border-radius: 3px; font: inherit; font-size: 12.5px; text-align: left; background: var(--sx-111418); border: 1px solid var(--sx-2e353d); color: var(--sx-c4cad0); cursor: pointer; }
.t2-modo.on { background: var(--sx-2b2214); border-color: #E8A93B; color: var(--sx-f2c46e); }
.t2-modo[disabled] { cursor: default; }
.t2-hor { display: flex; flex-direction: column; gap: 10px; }
.t2-dia { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.t2-dnome { width: 56px; font-size: 11.5px; color: var(--sx-8a949e); }
.t2-barra { flex: 1 1 120px; height: 10px; background: var(--sx-111418); border: 1px solid var(--sx-262c33); border-radius: 2px; position: relative; }
.t2-barra span { position: absolute; top: 1px; bottom: 1px; background: var(--sx-4e5a66); border-radius: 1px; }
.t2-hval { font-size: 11.5px; color: var(--sx-c4cad0); min-width: 84px; text-align: right; }
.t2-hval.bad { color: var(--sx-f07b7f); }
.t2-hin { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.t2-hin input[type="time"] { height: 34px; padding: 0 6px; background: var(--sx-111418); border: 1px solid var(--sx-2e353d); border-radius: 3px; color: var(--sx-e4e7eb); font-family: var(--mono); font-size: 12px; }
.t2-hin input[type="time"]:disabled { opacity: 0.4; }
.t2-chk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sx-8a949e); min-height: 34px; cursor: pointer; }
.t2-chk input { accent-color: #E8A93B; }
.t2-heranca { display: flex; flex-direction: column; gap: 14px; }
.t2-linha { display: flex; flex-direction: column; }
.t2-linha .n { display: flex; gap: 12px; position: relative; padding-bottom: 12px; }
.t2-linha .n:not(:last-child)::before { content: ''; position: absolute; left: 4.5px; top: 12px; bottom: 0; width: 1px; background: var(--sx-2e353d); }
.t2-linha .pt { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sx-6b7580); box-sizing: border-box; flex-shrink: 0; margin-top: 4px; }
.t2-linha .n.q .pt { border-radius: 2px; border-style: dashed; }
.t2-linha .n.on .pt { background: #E8A93B; border-color: #E8A93B; }
.t2-linha .n > div { display: flex; flex-direction: column; gap: 1px; font-size: 13.5px; }
.t2-linha .n > div .faint { font-size: 12px; }
.t2-linha .n.on > div > span:first-child { color: var(--sx-f2c46e); }
.t2-alc, .t2-exc { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 16px; border-bottom: 1px solid var(--sx-1f252b); color: var(--sx-e4e7eb); font-size: 12.5px; }
.t2-alc:hover, .t2-exc:hover { color: var(--sx-e4e7eb); background: var(--sx-161b20); }
.t2-alc .faint { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t2-alc.ti { background: var(--sx-2a1719); }
.t2-exc { flex-direction: column; align-items: flex-start; gap: 3px; padding: 12px 16px; }
.t2-exc .muted { font-size: 12px; }
.t2-json { margin: 0; padding: 12px 16px; font-size: 11.5px; line-height: 1.5; color: var(--sx-c4cad0); white-space: pre-wrap; word-break: break-word; }

/* ---------- A06 Grupos ---------- */
.btn.t2-novo { min-height: 36px; }
.t2-intro { font-size: 13px; max-width: 760px; }
.t2-gcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.t2-gc { padding: 16px; display: flex; flex-direction: column; gap: 14px; color: var(--sx-e4e7eb); }
a.t2-gc:hover { color: var(--sx-e4e7eb); border-color: var(--sx-38414a); }
.t2-gc.sem { border-style: dashed; border-color: var(--sx-38414a); }
.t2-gc.sem b { color: var(--sx-8a949e); }
.t2-gc .l1 { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.t2-gc .l1 > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.t2-gc .l1 b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.t2-gc .l1 .faint { font-size: 12px; }
.t2-gc .chip-crit { white-space: nowrap; }
.t2-on { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.t2-on > div:first-child { display: flex; justify-content: space-between; }
.t2-on .bar { height: 4px; background: var(--sx-262c33); border-radius: 2px; overflow: hidden; }
.t2-on .bar span { display: block; height: 100%; background: var(--sx-ok); }
.t2-pol { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding-top: 10px; border-top: 1px solid var(--sx-1f252b); margin-top: auto; }
.t2-pol > span:last-child { text-align: right; }
.t2-m { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--sx-1f252b); }
.t2-m > div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.t2-m > div > .mono, .t2-m > div > a.mono { font-size: 13px; color: var(--sx-e4e7eb); }
.t2-m > div > span:last-child { font-size: 12px; }
.t2-m .amb { color: var(--sx-f2c46e); }
.t2-m.ti { background: var(--sx-1c1811); }
.t2-m .ti-st { gap: 0; }
.t2-so-dono { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sx-f2c46e); flex-shrink: 0; white-space: nowrap; }
.t2-hd-col { flex-direction: column; align-items: stretch !important; }
.t2-hd-col .ti-busca { flex: 0 0 auto; }
.t2-resumo { display: flex; flex-direction: column; gap: 10px; }
.t2-resumo .kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.t2-resumo .kv > span:last-child { text-align: right; }
.t2-nota { font-size: 12px; padding-top: 8px; border-top: 1px solid var(--sx-1f252b); }
.t2-modal { position: fixed; inset: 0; z-index: 20; background: rgba(8, 10, 12, 0.66); display: flex; align-items: flex-end; justify-content: center; }
.t2-caixa { width: 100%; max-width: 460px; max-height: 100%; overflow: auto; background: var(--sx-151a1f); border: 1px solid var(--sx-2e353d); border-radius: 6px 6px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.t2-caixa.crit { border-color: var(--sx-5a2a2d); }
.t2-mtit { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.t2-cons { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--sx-c4cad0); }
.t2-cons > div { display: flex; gap: 10px; }
.t2-cons .q { width: 6px; height: 6px; border-radius: 1px; margin-top: 7px; flex-shrink: 0; background: var(--sx-8a949e); }
.t2-cons .q.c { background: var(--sx-crit); } .t2-cons .q.a { background: #E8A93B; }
@media (min-width: 560px) {
  .t2-modal { align-items: center; padding: 24px; }
  .t2-caixa { border-radius: 6px; padding: 20px; }
}
