:root {
  --bg: #0b0b0d;
  --panel: rgba(28, 28, 32, 0.78);
  --panel-solid: #1c1c20;
  --line: rgba(255, 255, 255, 0.09);
  --fg: #f2f2f7;
  --dim: #8e8e93;
  --accent: #0a84ff;
  --danger: #ff453a;
  --side: 300px;
  --st: env(safe-area-inset-top, 0px);
  --sb: env(safe-area-inset-bottom, 0px);
  --sl: env(safe-area-inset-left, 0px);
  --sr: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--fg);
  font: 15px/1.3 -apple-system, "SF Pro Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; overscroll-behavior: none; touch-action: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button:disabled { opacity: .3; cursor: default; }
input { font: inherit; color: inherit; -webkit-user-select: text; user-select: text; }
/* 16 px o más: con menos, iOS acerca la página al escribir */
input:not([type=range]):not([type=color]), textarea { font-size: 16px; }
.ic { width: 22px; height: 22px; display: block; flex: none; }
.glass { background: var(--panel); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: .5px solid var(--line); box-shadow: 0 8px 30px rgba(0,0,0,.35); }

.app { position: fixed; inset: 0; display: flex; }

/* ---------- panel lateral ---------- */
.side { width: calc(var(--side) + var(--sl)); padding-left: var(--sl); flex: none; display: flex; flex-direction: column;
  background: #121215; border-right: .5px solid var(--line); transition: margin-left .32s var(--ease), transform .32s var(--ease); z-index: 30; }
.side-h { display: flex; align-items: center; gap: 4px; padding: calc(var(--st) + 12px) 10px 8px 18px; }
.brand { flex: 1; font-weight: 800; letter-spacing: .18em; font-size: 13px; color: var(--dim); }
.tree { flex: 1; overflow-y: auto; padding: 4px 8px 12px; touch-action: pan-y; -webkit-overflow-scrolling: touch; }
.side-f { display: flex; padding: 8px 10px calc(var(--sb) + 10px); border-top: .5px solid var(--line); }
.row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 4px 0 calc(8px + var(--d, 0) * 18px);
  border-radius: 10px; color: var(--fg); }
.row:active { background: rgba(255,255,255,.06); }
.row.cur { background: rgba(10,132,255,.18); }
.row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .ic { width: 20px; height: 20px; color: var(--dim); }
.row.cur > .ic { color: var(--accent); }
.row .chev { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.row.open .chev { transform: rotate(90deg); }
.row .more { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--dim); }
.row input { flex: 1; min-width: 0; background: rgba(255,255,255,.08); border: 0; border-radius: 8px; padding: 6px 8px; outline: 2px solid var(--accent); }
.row.drop { outline: 2px dashed var(--accent); outline-offset: -2px; }

.scrim { display: none; }
.app.side-off .side { margin-left: calc(-1 * (var(--side) + var(--sl))); }

@media (max-width: 819px) {
  .side { position: fixed; top: 0; bottom: 0; left: 0; margin-left: 0 !important; transform: translateX(-100%);
    width: min(86vw, calc(var(--side) + var(--sl))); }
  .app.side-on .side { transform: none; box-shadow: 10px 0 40px rgba(0,0,0,.5); }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 25; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .app.side-on .scrim { opacity: 1; pointer-events: auto; }
}

/* ---------- escenario ---------- */
.stage { position: relative; flex: 1; min-width: 0; }
.board-wrap { position: absolute; inset: 0; overflow: hidden; }
.board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.textedit { position: absolute; z-index: 5; margin: 0; padding: 0; border: 0; outline: 1.5px dashed var(--accent); outline-offset: 4px;
  background: transparent; resize: none; overflow: hidden; text-align: center; white-space: pre; transform-origin: center;
  -webkit-user-select: text; user-select: text; caret-color: var(--accent); }

.pill { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 16px; }
.top { position: absolute; z-index: 10; top: calc(var(--st) + 10px); left: 10px; right: calc(var(--sr) + 10px);
  display: flex; gap: 8px; pointer-events: none; }
.app.side-off .top, .app:not(.side-on) .top { left: calc(var(--sl) + 10px); }
.top .pill { pointer-events: auto; }
.top .pill:first-child { min-width: 0; flex: 0 1 auto; margin-right: auto; }
.ib { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.ib:active:not(:disabled) { background: rgba(255,255,255,.1); }
.ib.on { color: #ffd60a; }
.title { min-width: 0; height: 40px; padding: 0 10px 0 4px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tools { position: absolute; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(var(--sb) + 12px);
  max-width: calc(100% - 20px); overflow-x: auto; touch-action: pan-x; scrollbar-width: none; overscroll-behavior: contain; }
.tools::-webkit-scrollbar { display: none; }
/* cuando hay más herramientas a un lado, el borde se desvanece */
.tools.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.tools.more-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
.tools.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.tools .ib { flex: none; }
.tools .ib { width: 44px; height: 44px; }
.tools .ib.act { background: var(--accent); color: #fff; }

/* ---------- propiedades ---------- */
.insp { position: absolute; z-index: 11; left: 10px; right: 10px; bottom: calc(var(--sb) + 72px); max-height: 46vh;
  overflow-y: auto; touch-action: pan-y; border-radius: 20px; padding: 10px 12px; display: flex; flex-direction: column; gap: 10px;
  animation: rise .22s var(--ease); }
@media (min-width: 820px) {
  .insp { left: auto; right: calc(var(--sr) + 12px); top: calc(var(--st) + 64px); bottom: auto; width: 300px; max-height: calc(100% - var(--st) - 150px); }
}
body.dragging .insp, body.dragging .tools { opacity: 0; pointer-events: none; }
.insp, .tools { transition: opacity .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.insp.glass { background: rgba(28, 28, 32, 0.94); }
.insp .grab { position: sticky; top: -10px; z-index: 2; flex: none; display: flex; justify-content: center; align-items: center;
  margin: -10px -12px -6px; padding: 7px 0 5px; background: rgb(28, 28, 32); border-radius: 20px 20px 0 0; touch-action: none; }
.insp .grab i { width: 38px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.insp.min { gap: 0; overflow: hidden; }
.insp.min > :not(.grab) { display: none !important; }
.insp.min .grab { margin-bottom: -10px; padding: 9px 0 11px; border-radius: 20px; }
.r { display: flex; align-items: center; gap: 8px; }
.r.wrap { flex-wrap: wrap; gap: 6px; }
.r.end { justify-content: space-between; border-top: .5px solid var(--line); padding-top: 8px; }
.r.scroll { overflow-x: auto; touch-action: pan-x; padding: 4px; margin: -4px; scrollbar-width: none; }
.r.scroll::-webkit-scrollbar { display: none; }
.sw.temp { width: 46px; border-radius: 15px; }
@media (max-width: 819px) {
  .insp { gap: 6px; padding: 8px 10px; }
  .insp .grab { top: -8px; margin: -8px -10px -2px; }
  .insp.min .grab { margin-bottom: -8px; }
  .insp .seg .ib { height: 34px; }
  .top { gap: 6px; }
  .top .pill { padding: 3px; gap: 0; }
  .top .ib { width: 36px; height: 38px; }
  .title { display: none; }   /* en iPhone el nombre se ve en el panel lateral */
  .tools { gap: 0; }
}
.seg { display: flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 2px; width: 100%; }
.seg .ib { flex: 1; width: auto; height: 38px; border-radius: 10px; color: var(--dim); }
.seg .ib.act { background: rgba(255,255,255,.14); color: var(--fg); }
.sw { width: 30px; height: 30px; border-radius: 50%; flex: none; position: relative; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); display: grid; place-items: center; }
.sw.act::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--fg); }
.sw .ic { width: 18px; height: 18px; color: var(--dim); }
.sw small { font-size: 9px; font-weight: 700; color: rgba(0,0,0,.65); }
.sw.pick { background: conic-gradient(#f33, #fd0, #3f6, #0ef, #36f, #c3f, #f33); overflow: hidden; }
.sw.pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer; }
.sl { flex: 1; display: flex; align-items: center; gap: 10px; }
.sl .ic { color: var(--dim); }
.sl output { min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); font-size: 14px; }
input[type=range] { flex: 1; -webkit-appearance: none; appearance: none; height: 30px; background: transparent; touch-action: pan-x; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), rgba(255,255,255,.14) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.4); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--accent); }
input[type=range]::-moz-range-thumb { width: 24px; height: 24px; border: 0; border-radius: 50%; background: #fff; }
.fld { flex: 1; min-width: 0; height: 38px; border: 0; border-radius: 10px; padding: 0 10px; background: rgba(255,255,255,.07); outline: none; }
.fld:focus { box-shadow: 0 0 0 2px var(--accent); }
.fld.sm { flex: 0 0 96px; }
.ib.tg.act { background: rgba(255,255,255,.14); color: var(--fg); }
.ib.red { color: var(--danger); }

/* ---------- menús flotantes ---------- */
.pop, .menu { position: fixed; z-index: 80; border-radius: 16px; padding: 6px; animation: pop .16s var(--ease); }
.pop { padding: 12px; width: min(300px, calc(100vw - 20px)); display: flex; flex-direction: column; gap: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(.96); } }
.menu { min-width: 190px; display: flex; flex-direction: column; }
.menu.row-menu { flex-direction: row; min-width: 0; }
.menu .mi { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px; border-radius: 10px; text-align: left; }
.menu .mi:active { background: rgba(255,255,255,.08); }
.menu .mi.red { color: var(--danger); }
.menu .mi .ic { width: 20px; height: 20px; }
.menu .mi.cur { color: var(--accent); }
.menu hr { border: 0; border-top: .5px solid var(--line); margin: 4px 6px; width: auto; }
.backdrop { position: fixed; inset: 0; z-index: 75; }
.cloud-st .ic { width: 22px; height: 22px; }
.st-off { color: var(--dim); } .st-idle { color: #30d158; } .st-busy { color: var(--accent); animation: blink 1s infinite alternate; }
.st-err, .st-auth { color: var(--danger); }
@keyframes blink { to { opacity: .35; } }

/* ---------- equipos, grupos y consumo ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; max-width: 100%; padding: 0 12px 0 9px;
  border-radius: 17px; background: rgba(255,255,255,.08); font-size: 14px; }
.chip span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .ic { width: 18px; height: 18px; color: var(--dim); }
.mdot { width: 12px; height: 12px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.3); }
.menu .mi .mdot { margin: 0 4px; }
.count { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.count .ic { color: var(--dim); }
.pw { margin-left: auto; color: var(--dim); font-variant-numeric: tabular-nums; }
.pop.sheet { width: min(380px, calc(100vw - 20px)); max-height: calc(100vh - var(--st) - var(--sb) - 90px); overflow-y: auto; touch-action: pan-y; gap: 10px; }
.pop hr { border: 0; border-top: .5px solid var(--line); margin: 0; }
.sheet-t { flex: 1; font-weight: 700; font-size: 17px; padding-left: 4px; }
.gl { display: flex; flex-direction: column; gap: 2px; }
.gi { display: grid; grid-template-columns: 24px 1fr auto; column-gap: 10px; align-items: center; text-align: left; padding: 8px 6px; border-radius: 10px; }
.gi:active { background: rgba(255,255,255,.06); }
.gi .ic { grid-column: 1; grid-row: 1 / 3; color: var(--dim); }
.gi .gn { grid-column: 2; grid-row: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gi small { grid-column: 2; grid-row: 2; color: var(--dim); font-size: 12px; }
.gi .gv { grid-column: 3; grid-row: 1 / 3; color: var(--dim); font-variant-numeric: tabular-nums; font-size: 14px; }
.unit { flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.unit span { color: var(--dim); }
.chips .ch { height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(255,255,255,.07); white-space: nowrap; font-size: 13px; flex: none; }
.chips .ch.act { background: var(--accent); color: #fff; }
.ib.sure { background: var(--danger); color: #fff; }
.pw-row { display: grid; grid-template-columns: 22px minmax(0,1fr) auto auto auto 30px; gap: 10px; align-items: center; min-height: 40px;
  padding: 0 4px 0 6px; border-radius: 10px; font-variant-numeric: tabular-nums; cursor: pointer; }
.pw-row:active { background: rgba(255,255,255,.06); }
.pw-row > .ic { width: 20px; height: 20px; color: var(--dim); }
.pw-row .mdot { margin-left: 4px; }
.pw-row .pn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pw-row .pc, .pw-row .pv { color: var(--dim); text-align: right; font-size: 14px; }
.pw-row .ib.sm { width: 30px; height: 30px; grid-column: 6; }

/* ---------- página completa (equipos) ---------- */
.page { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column;
  transform: translateY(100%); transition: transform .32s var(--ease); }
.page.on { transform: none; }
.pg-h { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: calc(var(--st) + 8px) calc(var(--sr) + 10px) 6px calc(var(--sl) + 10px); }
.pg-h h1 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-h > :last-child { justify-self: end; }
.pg-h .ib.sure { background: var(--danger); color: #fff; }
.pg-back { display: flex; align-items: center; gap: 2px; height: 40px; color: var(--accent); font-size: 16px; justify-self: start; }
.pg-back .ic { width: 20px; height: 20px; }
.pg-b { flex: 1; overflow-y: auto; touch-action: pan-y; -webkit-overflow-scrolling: touch; width: 100%; max-width: 640px; margin: 0 auto;
  padding: 4px calc(var(--sr) + 16px) calc(var(--sb) + 40px) calc(var(--sl) + 16px); }
.pg-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin: 4px 0 8px; border-radius: 10px; background: #1c1c20; color: var(--dim); }
.pg-search .ic { width: 18px; height: 18px; }
.pg-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--fg); -webkit-appearance: none; }
.pg-l { margin: 20px 6px 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.pg-card { background: #1c1c20; border-radius: 12px; overflow: hidden; }
.pg-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 14px; text-align: left; border-bottom: .5px solid #2c2c30; }
.pg-row:last-child, .pg-row2:last-child { border-bottom: 0; }
.pg-row:active, .pg-link:active { background: rgba(255,255,255,.05); }
.pg-row > .ic { color: var(--dim); }
.pg-row > .ic:last-child { width: 16px; height: 16px; }
.pg-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pg-row b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-row small { font-size: 13px; color: var(--dim); }
.pg-row2 { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 2px 14px; border-bottom: .5px solid #2c2c30; text-align: left; }
.pg-row2 > span:first-child { flex: 1; }
.pg-row2.dim > span, .pg-row2.dim em { color: var(--dim); }
.pg-row2 em { font-style: normal; color: var(--dim); }
.pg-row2 input[type=range] { flex: 1; }
.pg-link .ic { width: 16px; height: 16px; color: var(--dim); }
.pg-in { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; outline: none; background: none; color: var(--fg); }
.pg-row2 .pg-in { padding: 0; }
.pg-in.r { flex: 0 1 110px; text-align: right; }
.pg-in.sm { flex: 0 0 52px; }
.ib.sm { width: 32px; height: 32px; }
.ib.sm .ic { width: 16px; height: 16px; }
.pg-syms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 6px; }
.pg-sym { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 9px; background: #2a2a2f; font-size: 12px; color: #d1d1d6; }
.pg-sym.act { background: var(--accent); color: #fff; }
.pg-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.pg-chips .ch { height: 30px; padding: 0 11px; border-radius: 15px; background: rgba(255,255,255,.08); white-space: nowrap; font-size: 13px; flex: none; }
.pg-chips .ch.act { background: var(--accent); color: #fff; }
.pg-seg { display: flex; gap: 2px; margin: 8px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.06); }
.pg-seg button { flex: 1; height: 32px; border-radius: 7px; font-size: 13px; color: var(--dim); }
.pg-seg .act { background: rgba(255,255,255,.16); color: var(--fg); }
.pg-gels { display: flex; flex-wrap: wrap; gap: 9px; padding: 10px 14px 14px; }
.pg-add { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 14px; color: var(--accent); }
.pg-add .ic { width: 18px; height: 18px; }
.pg-empty { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 16vh; color: var(--dim); }
.pg-empty .ic { width: 48px; height: 48px; }
.pg-btn { height: 44px; padding: 0 22px; border-radius: 22px; background: var(--accent); color: #fff; font-weight: 600; }

.pg-hr { display: flex; gap: 2px; justify-self: end; }
.pg-hr .ib.busy { opacity: .4; pointer-events: none; }
.pg-in.pg-sep { border-bottom: .5px solid #2c2c30; }
.pg-num { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 15px; background: #2c2c30; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pg-note { margin: 10px 6px 0; font-size: 13px; color: var(--dim); }
.pg-funcs { margin: 8px 0 12px; padding: 0 2px; }
.pg-gap { margin-top: 16px; }
.pg-in.xs { flex: 0 0 44px; text-align: center; }
.pg-rg { gap: 6px; }
.pg-rg .dash { flex: 0 0 auto !important; color: var(--dim); }
.pg-switch { width: 50px; height: 30px; flex: none; border-radius: 15px; background: #3a3a3c; position: relative; transition: background .2s; }
.pg-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 26px; height: 26px; border-radius: 13px; background: #fff; transition: transform .2s var(--ease); }
.pg-switch.on { background: #30d158; }
.pg-switch.on::after { transform: translateX(20px); }

/* alinear y repartir */
.insp .il { margin: 2px 2px -4px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); }
.insp .r.al { gap: 4px; }
.insp .r.al > .ib { flex: 1; width: auto; height: 38px; border-radius: 10px; background: rgba(255,255,255,.07); }
.insp .al-ref { margin: 0; }
.insp .gap { flex: 2.4; display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border-radius: 10px; background: rgba(255,255,255,.07); }
.insp .gap span { color: var(--dim); font-size: 13px; flex: none; }
.insp .gap input { flex: 1; min-width: 0; width: 40px; background: none; border: 0; outline: none; text-align: right; color: var(--fg); }
.insp .gap em { font-style: normal; color: var(--dim); }

.chip.grow { flex: 1; min-width: 0; }
.insp .gap input[data-dw], .insp .gap input[data-dh] { text-align: center; }

/* ---------- cableado ---------- */
.insp .info { display: flex; flex-direction: column; gap: 3px; padding: 2px 4px; }
.insp .info p { margin: 0; font-size: 13px; line-height: 1.35; color: var(--dim); font-variant-numeric: tabular-nums; }
.insp .info p:first-child { font-size: 15px; font-weight: 600; }
.insp .info p.warn { color: #ff9f0a; }
.pg-chips.wrap { flex-wrap: wrap; padding: 10px 14px; }
.pg-row2.awg { align-items: flex-start; padding: 8px 14px; }
.pg-row2.awg > span:first-child { flex: none; width: 34px; font-size: 17px; }
.pg-row2.awg .t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.pg-row2.awg .t b { font-weight: 600; }
.pg-row2.awg .t small { color: var(--dim); font-size: 13px; }
.pg-row2.awg.act { background: rgba(10, 132, 255, .16); }
#viewBtn.mode { color: var(--accent); }

/* ---------- ajustes ---------- */
.set-row em { font-style: normal; color: var(--dim); font-variant-numeric: tabular-nums; white-space: nowrap; }
.set-row.cl-ok > .ic:first-child { color: #30d158; }
.set-row.cl-bad > .ic:first-child, .set-row.cl-bad .t { color: #ff9f0a; }
.set-row .t { font-size: 16px; }
.set-row .pg-in { flex: 1; min-width: 0; padding: 0; }

/* ---------- link web ---------- */
.lk-wait { display: grid; place-items: center; padding: 18px; color: var(--dim); }
.lk-wait .ic { animation: pulse 1s infinite alternate; }
@keyframes pulse { to { opacity: .3; } }
.lk-row { border: 0; border-radius: 12px; background: #2c2c30; }
.lk-url { display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 4px 0 14px; border-radius: 12px; background: #2c2c30; }
.lk-url span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #64d2ff; font-size: 14px; -webkit-user-select: text; user-select: text; }
.lk-send { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; background: var(--accent); color: #fff; font-weight: 600; font-size: 16px; }
.lk-pin { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 4px 0 6px; }
.lk-pin > .ic { color: var(--dim); }
.lk-pin .sp { flex: 1; }
.lk-pin input { flex: 1; min-width: 0; height: 36px; border-radius: 10px; border: 0; background: #2c2c30; text-align: center; letter-spacing: .25em; outline: none; }
.lk-pin input.bad { box-shadow: 0 0 0 1.5px #ff9f0a inset; }
.lk-off { min-height: 44px; }
.lk-off { display: flex; align-items: center; gap: 12px; padding: 0 8px; color: var(--danger); text-align: left; }
.lk-off .ic { width: 20px; height: 20px; }
