/* Signal Planner: BroadTools Console (tokens em /_kit/bt-console.css).
   Lista de planners e editor com três colunas: biblioteca, diagrama (poço) e inspetor.
   Cores dos sinais são categoria de cabo, não estado; âmbar continua sendo atenção
   (sinal incompatível) e azul, seleção. Fonte local para funcionar sem internet. */
@font-face { font-family: Archivo; src: url(fontes/archivo.woff2) format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
	--app: #7C6CF6;
	--mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
	--s-sdi: #5e95f6; --s-hdmi: #a97eeb; --s-xlr: #ff7549; --s-dante: #2ec5b2; --s-net: #97a5b3; --s-fiber: #e2bb2a;
	--on-sig: #0b0c0e;
	--dot: #26292e;
	--no: #1f2226; --no-cab: #121417; --no-texto: #ecebe6; --no-mudo: #8d939b;
	--aten-bg: #2a1f0f; --aten-tx: #ffd9a3;
}
:root[data-tema="claro"] {
	--s-sdi: #1f5fcc; --s-hdmi: #7a3fc4; --s-xlr: #cf4519; --s-dante: #0a887a; --s-net: #5c6977; --s-fiber: #a07c00;
	--on-sig: #ffffff;
	--dot: #cdd2d9;
	--no: #ffffff; --no-cab: #24272d;
	--aten-bg: #fff4e0; --aten-tx: #6b4300;
}

body { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.topo .tecla.fantasma { height: 32px; color: #8d939b; }
.topo .tecla.fantasma:hover { color: #ecebe6; background: #ffffff14; }
.topo .lamp { color: #8d939b; }
.cartao-login .icone-app { width: 64px; height: 64px; margin: -4px 0 2px -4px; }
.tecla.pequena, .btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.tecla.arquivo { flex-direction: row; font-size: 14px; color: var(--texto); }
.espaco { flex: 1; }

/* ------------------------------------------------------------ teclas do editor */
.btn { font: inherit; font-weight: 600; font-size: 13px; color: var(--texto); text-decoration: none; height: 34px; padding: 0 12px; display: inline-flex; flex-direction: row; align-items: center; justify-content: center; gap: 6px; cursor: pointer; white-space: nowrap;
	background: linear-gradient(var(--tecla-topo), var(--tecla)); border-radius: 7px; box-shadow: inset 0 1px 0 #ffffff12, 0 1px 0 #00000080, 0 0 0 1px #0000004d; }
a.btn:hover, label.btn:hover { background: linear-gradient(#383c43, var(--tecla-2)); }
:root[data-tema="claro"] a.btn:hover, :root[data-tema="claro"] label.btn:hover { background: linear-gradient(#fff, var(--tecla-2)); }
.btn.ok, a.btn.ok:hover { background: linear-gradient(#27c072, #1f9e5d); box-shadow: inset 0 1px 0 #ffffff33, 0 1px 0 #0009; color: #fff; }
.btn.ambar, .tecla.ambar { box-shadow: inset 0 1px 0 #ffffff12, 0 0 0 1px var(--atencao), 0 0 12px #f0a43a44; color: var(--aten-tx); }
.btn.danger { color: #ff9b97; }
:root[data-tema="claro"] .btn.danger { color: #b3261e; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.lab { font-size: 12px; font-weight: 600; color: var(--mudo); }
.est { font-style: italic; color: var(--mudo); font-weight: 500; }

/* ------------------------------------------------------------ lista de planners */
.lista { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.lista-cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lista-cab h1 { margin: 0; font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.1; }
.plano { margin: 6px 0 0; color: var(--mudo); font-size: 13px; }
.acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.cartoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.cartao { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.cartao::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--app); opacity: .85; }
.cartao .abrir {
	all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 12px 18px; min-width: 0;
}
.cartao .abrir:hover { background: #ffffff06; }
:root[data-tema="claro"] .cartao .abrir:hover { background: #0000000a; }
.cartao .abrir:focus-visible { outline: 2px solid var(--edicao); outline-offset: -2px; }
.cartao .nome { font-size: 16px; font-weight: 700; font-stretch: 104%; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao .sub { color: var(--mudo); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cartao .nums { display: flex; gap: 14px; margin-top: 8px; color: var(--mudo); font-size: 12.5px; }
.cartao .nums b { color: var(--texto); font-size: 20px; font-weight: 750; font-stretch: 78%; margin-right: 3px; }
.cartao .pe { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px; padding: 8px 10px 8px 18px; border-top: 1px solid var(--linha); }
.cartao .info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cartao .pe .lamp { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: block; }
.cartao .pe .lamp::before { display: inline-block; margin-right: 7px; vertical-align: 1px; }
.cartao .quando { color: var(--apagado); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vazio-lista { grid-column: 1 / -1; padding: 36px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.vazio-lista h2 { margin: 6px 0 0; font-size: 18px; font-stretch: 108%; }
.vazio-lista p { margin: 0; color: var(--mudo); max-width: 460px; }
.substituidas { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.substituidas .rotulo { margin: 0; }
.nota { margin: 0; font-size: 12.5px; color: var(--mudo); line-height: 1.45; }
.subst { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--painel); border-radius: 8px; box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px #0000004d; flex-wrap: wrap; }
.subst span { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 2px; }
.subst small { color: var(--mudo); font-size: 12px; }
.credito { margin: auto 0 0; padding: 12px 4px 0; color: var(--apagado); font-size: 12px; text-align: center; }

/* ------------------------------------------------------------ editor: barra */
body.em-editor { height: 100vh; height: 100dvh; overflow: hidden; }
.editor { flex: 1; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.barra { display: flex; align-items: center; gap: 12px 16px; padding: 8px 16px; background: var(--chassi); border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.barra .voltar { padding: 0 10px 0 6px; gap: 4px; }
.evt { display: flex; flex-direction: column; min-width: 0; flex: 1 1 260px; }
#tela-editor .evt input { min-height: 30px; height: 30px; padding: 0 6px; font-size: 15px; font-weight: 700; background: transparent; box-shadow: none; border-radius: 6px; }
#tela-editor .evt input:hover { box-shadow: inset 0 0 0 1px var(--linha-2); }
#tela-editor .evt input:focus { background: var(--poco); box-shadow: inset 0 1px 2px #000a, 0 0 0 1px var(--edicao); }
.evt small { color: var(--mudo); font-size: 12px; padding-left: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.abas { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.abas [aria-selected="true"] { color: var(--texto); background: linear-gradient(#34383e, #2c2f34); box-shadow: inset 0 1px 0 #ffffff14, 0 1px 2px #0008; }
:root[data-tema="claro"] .abas [aria-selected="true"] { background: linear-gradient(#ffffff, #eef0f3); box-shadow: inset 0 1px 0 #fff, 0 1px 2px #0003, 0 0 0 1px var(--linha-2); }
:root[data-tema="claro"] .seg { box-shadow: inset 0 1px 2px #0002; }
.abas .n { font-size: 11.5px; color: var(--mudo); font-weight: 600; }
.abas .n.alerta { color: var(--atencao); }

.area { min-height: 0; position: relative; overflow: hidden; }
.view { height: 100%; }
#v-diagram { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; }
.scroll-view { overflow: auto; padding: 20px 16px 48px; }
.wrap { max-width: 1240px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

/* ------------------------------------------------------------ biblioteca */
.lib { background: var(--painel); border-right: 1px solid var(--linha); display: flex; flex-direction: column; min-height: 0; }
.lib-head { padding: 12px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--linha); }
.lib-list { overflow: auto; padding: 4px 8px 20px; flex: 1; }
.sec { font-size: 12px; font-weight: 600; color: var(--mudo); margin: 0; }
.cat { font-size: 11.5px; font-weight: 650; color: var(--apagado); padding: 12px 6px 4px; letter-spacing: .02em; }
.item { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 8px; width: 100%; padding: 6px 8px; border-radius: 6px; }
.item:hover { background: var(--tecla); }
.item:focus-visible { outline: 2px solid var(--edicao); outline-offset: -2px; }
.item b { font-weight: 600; font-size: 13px; }
.item span { font-size: 11.5px; color: var(--mudo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item em { font-style: normal; grid-row: 1 / 3; grid-column: 2; align-self: center; }
.item .io { font: 11px var(--mono); color: var(--mudo); }
.item .add { display: none; font-weight: 650; color: var(--preview); font-size: 12px; }
.item:hover .io { display: none; }
.item:hover .add { display: block; }

/* ------------------------------------------------------------ diagrama */
.canvas-wrap { position: relative; min-width: 0; min-height: 0; background: var(--poco); overflow: hidden; box-shadow: inset 0 1px 3px #000c; }
#cv { width: 100%; height: 100%; display: block; touch-action: none; user-select: none; -webkit-user-select: none; }
.zoombar { position: absolute; top: 12px; right: 12px; display: flex; gap: 2px; align-items: center; background: var(--painel); border-radius: 8px; padding: 3px; box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px #0000004d, 0 6px 18px #0006; }
.zoombar button { height: 28px; min-width: 30px; padding: 0 8px; background: none; box-shadow: none; color: var(--mudo); font-size: 13px; border-radius: 5px; }
.zoombar button:hover { color: var(--texto); background: var(--tecla); }
.zoombar button[aria-pressed="true"] { color: var(--texto); background: linear-gradient(#22324d, #1b2840); box-shadow: 0 0 0 1px var(--edicao); }
:root[data-tema="claro"] .zoombar button[aria-pressed="true"] { background: #e6eefc; color: #12306b; }
.zoombar .z { font: 600 11.5px var(--mono); color: var(--mudo); min-width: 44px; text-align: center; }
.hintbox { position: absolute; top: 12px; left: 12px; font-size: 12px; color: var(--mudo); background: color-mix(in srgb, var(--painel) 90%, transparent); padding: 6px 10px; border-radius: 6px; max-width: calc(100% - 300px); box-shadow: 0 0 0 1px #0000004d; pointer-events: none; }
.vazio-diagrama { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; color: var(--apagado); font-size: 14px; pointer-events: none; }
.legend { position: absolute; left: 12px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 24px); }
.chip { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px 4px 8px; border-radius: 99px; background: var(--painel); box-shadow: 0 0 0 1px var(--linha-2); cursor: pointer; white-space: nowrap; color: var(--texto); }
.chip:focus-visible { outline: 2px solid var(--edicao); outline-offset: 2px; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
.legend .chip[aria-pressed="false"] { opacity: .5; }
.legend .chip[aria-pressed="false"] i { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.filters .chip[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--edicao); }

.gridbg { fill: url(#dots); }
.nb { fill: var(--no); stroke: var(--linha-2); stroke-width: 1; }
.node { cursor: grab; }
.node.sel .nb { stroke: var(--edicao); stroke-width: 2; }
.node.dim { opacity: .5; }
.nh { fill: var(--no-cab); }
.nt { font: 700 13.5px var(--fonte); font-stretch: 96%; fill: var(--no-texto); }
.nm { font: 500 10px var(--fonte); fill: var(--no-mudo); }
.pl { font: 500 10.5px var(--mono); fill: var(--mudo); }
.pl.r { text-anchor: end; }
.port .dot { fill: var(--no); stroke: var(--c); stroke-width: 2; }
.port.used .dot { fill: var(--c); }
.port .hit { fill: transparent; }
.port.out, .port.io, .port.used { cursor: crosshair; }
.port.target .hit { fill: var(--c); opacity: .3; }
.wl { fill: none; stroke: var(--c); stroke-width: 2.4; stroke-linecap: round; }
.wh { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.wire.warn .wl { stroke-dasharray: 7 5; }
.wire.sel .wl { stroke-width: 4.5; }
.wire.dim { opacity: .14; }
.wire:hover .wl { stroke-width: 3.6; }
.tag rect { fill: var(--painel); stroke: var(--c); stroke-width: 1.2; }
.tag text { font: 600 10px var(--mono); fill: var(--texto); text-anchor: middle; }
.badge circle { fill: var(--atencao); }
.badge text { fill: #1a1206; font: 800 11px var(--fonte); text-anchor: middle; }
.ghost { fill: none; stroke: var(--texto); stroke-width: 2; stroke-dasharray: 4 4; pointer-events: none; }

/* ------------------------------------------------------------ inspetor */
.insp { background: var(--painel); border-left: 1px solid var(--linha); overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 18px; min-height: 0; }
.insp h2 { font-size: 20px; font-weight: 750; font-stretch: 104%; line-height: 1.15; margin: 4px 0 2px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.insp h2.mono { font-family: var(--mono); font-size: 19px; }
#tela-editor textarea { min-height: 60px; }
.plist { display: flex; flex-direction: column; margin-top: 6px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 3px 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linha); font-size: 12.5px; }
.prow .to { grid-column: 2 / 4; color: var(--mudo); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prow .to button { all: unset; cursor: pointer; color: var(--texto); text-decoration: underline; text-decoration-color: var(--linha-2); text-underline-offset: 2px; }
.dotc { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: inline-block; flex: none; }
.dotc.io { border-radius: 1px; transform: rotate(45deg); width: 8px; height: 8px; }
.sig { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.alert { background: var(--aten-bg); color: var(--aten-tx); border-radius: 7px; padding: 10px 12px; font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; box-shadow: inset 0 0 0 1px #f0a43a88; align-items: flex-start; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat { background: var(--poco); border-radius: 8px; padding: 10px 12px; box-shadow: inset 0 1px 3px #000c, 0 0 0 1px #ffffff08; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
:root[data-tema="claro"] .stat { box-shadow: inset 0 1px 2px #0001, 0 0 0 1px var(--linha); }
.stat b { display: block; font-size: 26px; font-weight: 750; font-stretch: 74%; line-height: 1; }
.stat span { font-size: 11.5px; color: var(--mudo); font-weight: 600; }
.stat.aviso { background: var(--aten-bg); box-shadow: inset 0 0 0 1px var(--atencao); }
.stat.aviso b, .stat.aviso span { color: var(--aten-tx); }
.tips { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--mudo); display: flex; flex-direction: column; gap: 4px; }
.endpoints { font-size: 13px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.endpoints .arrow { color: var(--mudo); font-size: 11px; font-weight: 600; }
.idbtn { all: unset; cursor: pointer; white-space: nowrap; font: 600 12.5px var(--mono); color: var(--texto); text-decoration: underline; text-decoration-color: var(--linha-2); text-underline-offset: 3px; }
.idbtn.ui { font-family: var(--fonte); font-weight: 600; }
.idbtn:focus-visible { outline: 2px solid var(--edicao); outline-offset: 2px; }

/* ------------------------------------------------------------ tabelas e cartões */
.card { background: var(--painel); border-radius: var(--raio-cartao); box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px #0000004d; min-width: 0; }
.card-h { padding: 12px 16px; border-bottom: 1px solid var(--linha); display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; justify-content: space-between; }
.card-h h2 { font-size: 16px; font-weight: 750; font-stretch: 104%; margin: 0; letter-spacing: -.01em; }
.card-b { padding: 14px 16px; }
.tbl { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; font-size: 11.5px; font-weight: 650; color: var(--mudo); padding: 8px 10px; border-bottom: 1px solid var(--linha); background: var(--poco); white-space: nowrap; }
td { padding: 6px 10px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
td.num, th.num { text-align: right; }
tr.warn td:first-child { box-shadow: inset 3px 0 0 var(--atencao); }
#tela-editor td input { min-height: 30px; height: 30px; padding: 0 8px; font-size: 13px; }
#tela-editor td input.len { width: 78px; text-align: right; }
#tela-editor td input.est { font-style: italic; color: var(--mudo); }
td .ep { display: flex; flex-direction: column; line-height: 1.25; }
td .ep small { font: 11.5px var(--mono); color: var(--mudo); white-space: nowrap; }
tfoot td { font-weight: 650; background: var(--poco); border-bottom: 0; }
.cables-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#tela-editor .filters input { width: 200px; min-height: 30px; height: 30px; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-outer-spin-button, input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.patch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pcard { background: var(--painel); border-radius: var(--raio-cartao); overflow: hidden; box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px #0000004d; }
.ph { background: var(--no-cab); color: var(--no-texto); padding: 9px 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ph b { font-size: 14.5px; font-weight: 700; }
.ph span { font-size: 11.5px; color: var(--no-mudo); text-align: right; }
.pcard td { font-size: 12.5px; }
.pcard tr.free td { color: var(--apagado); }
.loc-h { font-size: 13px; font-weight: 650; color: var(--mudo); margin: 8px 0 -4px; display: flex; align-items: center; gap: 8px; }
.loc-h::after { content: ''; flex: 1; height: 1px; background: var(--linha); }

.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 10px; }
.lbl { display: grid; grid-template-columns: auto minmax(0, 1fr); border-radius: 6px; overflow: hidden; background: var(--poco); box-shadow: 0 0 0 1px var(--linha-2); }
.lbl .id { background: var(--c); color: var(--on-sig); font: 700 14px var(--mono); padding: 8px 10px; display: flex; align-items: center; }
.lbl .ends { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; font: 11.5px var(--mono); min-width: 0; }
.lbl .ends div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prob { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.prob li { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 8px 10px; border-radius: 7px; background: var(--poco); font-size: 13px; }
.prob li.w { background: var(--aten-bg); color: var(--aten-tx); box-shadow: inset 3px 0 0 var(--atencao); }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.bigstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.exp { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; padding: 4px 0; border-top: 1px solid var(--linha); }
.exp span { font-weight: 600; font-size: 13px; }

/* ------------------------------------------------------------ aviso e janela */
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--painel); color: var(--texto); padding: 10px 14px; border-radius: 8px; font-size: 13px; z-index: 50; max-width: min(560px, calc(100% - 32px)); box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px var(--linha-2), 0 12px 32px #0009; }
.toast.warn { background: var(--aten-bg); color: var(--aten-tx); box-shadow: inset 0 0 0 1px var(--atencao), 0 12px 32px #0009; }
.modal-bg { position: fixed; inset: 0; background: #000a; display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 40; }
.modal { background: var(--painel); border-radius: 12px; width: min(620px, 100%); max-height: 90vh; overflow: auto; display: flex; flex-direction: column; box-shadow: inset 0 1px 0 #ffffff0d, 0 0 0 1px #0000004d, 0 24px 48px -12px #000c; }
.modal .card-b { display: flex; flex-direction: column; gap: 12px; }
.portrow { display: grid; grid-template-columns: 112px minmax(0, 1fr) 120px auto; gap: 6px; align-items: center; }
.xbtn { width: 34px; padding: 0; color: var(--mudo); font-size: 18px; }

/* ------------------------------------------------------------ telas menores */
@media (max-width: 1100px) {
	.cables-grid { grid-template-columns: 1fr; }
	#v-diagram { grid-template-columns: 220px minmax(0, 1fr) 270px; }
}
@media (max-width: 900px) {
	body.em-editor { height: auto; overflow: visible; }
	.editor { display: block; }
	.area { overflow: visible; }
	.view { height: auto; }
	#v-diagram { display: flex; flex-direction: column; }
	.canvas-wrap { height: 62vh; height: 62dvh; order: 1; }
	.lib { order: 2; border-right: 0; border-top: 1px solid var(--linha); max-height: 420px; }
	.insp { order: 3; border-left: 0; border-top: 1px solid var(--linha); }
	.hintbox { display: none; }
	.barra { position: sticky; top: 0; z-index: 5; padding: 8px 12px; gap: 8px; }
	.barra .voltar span { display: none; }
	.evt { flex-basis: 0; }
	.abas { width: 100%; }
	.abas button { flex: 1; padding: 0 8px; }
	.scroll-view { padding: 14px 12px 40px; }
	.portrow { grid-template-columns: 96px minmax(0, 1fr) 96px auto; }
}
@media (max-width: 560px) {
	.topo .quem { display: none; }
	.topo .lamp { font-size: 0; gap: 0; }
	.lista { padding: 16px 12px 24px; }
	.lista-cab h1 { font-size: 22px; }
	.acoes { width: 100%; }
	.acoes > * { flex: 1; }
	.cartoes { grid-template-columns: 1fr; }
	.two { grid-template-columns: 1fr; }
	.stats .stat b { font-size: 22px; }
	.exp { grid-template-columns: 1fr auto auto; }
	.patch-grid, .labels { grid-template-columns: 1fr; }
	.portrow { grid-template-columns: 1fr 1fr; }
	.portrow input { grid-column: 1 / -1; grid-row: 1; }
}
