:root {
  --hdr: #3E4C5E; --hdr2: #2F3B4A; --hdr-txt: #E9EDF2; --hdr-mute: #AEB8C5;
  --bg: #F3F5F7; --card: #FFFFFF; --alt: #E3E8EE; --line: #D5DBE2; --line2: #C3CBD5;
  --txt: #2B3440; --txt2: #566579; --mute: #8A95A3;
  --acc: #4F8A86; --acc2: #7FB0AB; --acc-bg: #DCEBE9; --acc-txt: #2F5E5A;
  --ok: #7FA36B; --warn: #C9A25A; --bad: #C47A72; --none: #C3CBD5;
  --bad-bg: #F6ECEA; --bad-txt: #8A4A43; --warn-bg: #FAF1E1; --warn-txt: #7A5512; --ok-txt: #3B6D11;
  --link: #3E6A9A; --r: 6px;
  --sh: #5B87A0; --sh-bg: #DEE8EF; --sh-txt: #2F4F63;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--txt);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--txt); }
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -4px; }
.ic.s { width: 15px; height: 15px; vertical-align: -3px; }
.ic.l { width: 22px; height: 22px; }
.hidden { display: none !important; }
.mono { font-family: var(--mono); }

/* ---------- botoes e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: var(--r); border: 0.5px solid var(--line2); background: #fff; color: var(--txt2); font-size: 13px; white-space: nowrap; }
.btn:hover { border-color: var(--acc); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: 600; }
.btn.pri:hover { background: #457A76; }
.btn.danger { color: var(--bad-txt); border-color: #E2C3BE; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn.block { width: 100%; height: 40px; font-size: 14px; }
.btn:disabled { opacity: .6; cursor: default; }
.ibtn { width: 32px; height: 32px; flex-shrink: 0; border-radius: var(--r); border: 0.5px solid var(--line2); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--txt2); }
.ibtn:hover { border-color: var(--acc); color: var(--acc); }
.ibtn.pri { background: var(--acc); border-color: var(--acc); color: #fff; }
.lbl { display: block; font-size: 11px; font-weight: 600; color: var(--txt2); margin: 0 0 3px; }
.inp { width: 100%; height: 34px; padding: 0 10px; border-radius: var(--r); border: 0.5px solid var(--line2); background: #fff; font-size: 13px; }
.inp:focus, textarea.inp:focus, select.inp:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 2px rgba(79,138,134,.18); }
textarea.inp { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; line-height: 1.45; }
select.inp { padding-right: 6px; }
.row { display: flex; gap: 6px; align-items: center; }
.fgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 10px; }
.fgrid .full { grid-column: 1 / -1; }
input[type=checkbox], input[type=radio] { accent-color: var(--acc); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.field { margin-bottom: 10px; }
.err { color: var(--bad-txt); font-size: 12px; margin-top: 6px; min-height: 0; }
.hint { color: var(--mute); font-size: 11px; margin-top: 4px; line-height: 1.45; }
.sect { font-size: 12px; font-weight: 600; color: var(--acc-txt); background: var(--acc-bg); border-left: 4px solid var(--acc);
  padding: 6px 10px; margin: 14px 0 8px; display: flex; align-items: center; gap: 6px; }
.sect.off { background: var(--alt); color: var(--mute); border-left-color: var(--line2); }
.sect .right { margin-left: auto; font-weight: 400; font-size: 11px; color: var(--acc); }
.switch { margin-left: auto; width: 34px; height: 18px; border-radius: 9px; background: var(--line2); position: relative; border: none; padding: 0; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--acc); }
.switch.on::after { left: 19px; }
.seg { display: flex; gap: 4px; }
.seg button { flex: 1; height: 34px; border-radius: var(--r); background: #fff; border: 0.5px solid var(--line2); color: var(--txt2);
  display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; }
.seg button.on { background: var(--acc2); border: 2px solid var(--acc); color: #fff; font-weight: 600; }
.seg button.on.p { background: var(--acc); }
.strength { display: flex; gap: 3px; margin-top: 6px; }
.strength span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.chk { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--txt2); cursor: pointer; }
.chk input { width: 16px; height: 16px; accent-color: var(--acc); }

/* ---------- cabecalho ---------- */
.hdr { background: var(--hdr); color: var(--hdr-txt); display: flex; align-items: center; gap: 12px; padding: 6px 14px; }
.logo { display: flex; flex-direction: column; align-items: center; line-height: 1.1; flex-shrink: 0; cursor: default; }
.logo span { font-size: 9px; color: var(--hdr-mute); letter-spacing: .5px; }
.logo img { width: 36px; height: 36px; margin: 2px 0; display: block; }
.tabs { display: flex; gap: 6px; }
.tab { width: 130px; height: 40px; border-radius: var(--r); border: 2px solid transparent; color: #fff; font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; }
.tab.p { background: var(--acc); }
.tab.f { background: var(--acc2); }
.tab.s { background: var(--sh); }
.tab.on { border-color: #fff; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--hdr-mute); font-size: 12px; }
.hdr-right .ibtn { background: transparent; border-color: transparent; color: var(--hdr-mute); }
.hdr-right .ibtn:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.tabline { height: 3px; background: var(--acc); }
.tabline.f { background: var(--acc2); }
.tabline.s { background: var(--sh); }
.locktimer { white-space: nowrap; }

/* ---------- area principal ---------- */
.main { display: flex; justify-content: center; gap: 0; align-items: flex-start; min-height: calc(100vh - 55px); }
.left { width: 600px; flex-shrink: 0; padding: 12px 28px 40px; }
.panel { flex: 1; max-width: 560px; min-width: 380px; background: #fff; border-left: 0.5px solid var(--line);
  min-height: calc(100vh - 55px); position: sticky; top: 0; align-self: stretch; }
.panel-in { padding: 14px 18px 30px; }
.panel-empty { color: var(--mute); text-align: center; padding: 70px 30px; font-size: 13px; line-height: 1.6; }
.toolbar { display: flex; gap: 8px; align-items: center; }
.search { flex: 1; position: relative; }
.search .ic { position: absolute; left: 10px; top: 9px; color: var(--mute); }
.search input { padding-left: 34px; }
.cat-h { font-size: 12px; font-weight: 600; color: var(--acc-txt); background: var(--acc-bg); border-left: 4px solid var(--acc);
  padding: 6px 10px; margin: 16px 0 7px; display: flex; align-items: center; gap: 7px; }
.cat-h .n { margin-left: auto; font-weight: 400; color: var(--acc); font-size: 11px; }
.tiles { display: grid; grid-template-columns: repeat(5, 104px); gap: 6px; }
.tile { width: 104px; height: 64px; border: 0.5px solid var(--line); border-radius: var(--r); overflow: hidden; position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 4px 4px;
  font-size: 11px; font-weight: 600; color: var(--txt); background: #fff; }
.tile.alt { background: var(--alt); }
.tile .ic { color: var(--txt2); width: 19px; height: 19px; }
.tile .t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; }
.tile:hover { border-color: var(--acc); }
.tile.sel { border: 1.5px solid var(--hdr); }
.tile.add { border-style: dashed; border-color: var(--line2); color: var(--mute); font-weight: 400; background: transparent; }
.lvl-g { background: var(--ok); } .lvl-a { background: var(--warn); } .lvl-r { background: var(--bad); } .lvl-n { background: var(--none); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--mute); margin-top: 20px; }
.legend i { display: inline-block; width: 14px; height: 4px; vertical-align: middle; margin-right: 4px; border-radius: 2px; }
.empty-all { text-align: center; color: var(--mute); padding: 40px 10px; font-size: 13px; }

/* ---------- detalhe ---------- */
.d-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.d-head .ttl { font-size: 17px; font-weight: 600; }
.d-head .sub { font-size: 12px; color: var(--mute); }
.d-head .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--alt); display: flex; align-items: center; justify-content: center; color: var(--txt2); flex-shrink: 0; }
.banner { border-radius: var(--r); padding: 8px 10px; font-size: 12px; display: flex; gap: 7px; align-items: flex-start; margin-bottom: 8px; line-height: 1.4; }
.banner.r { background: var(--bad-bg); color: var(--bad-txt); }
.banner.a { background: var(--warn-bg); color: var(--warn-txt); }
.banner.i { background: var(--acc-bg); color: var(--acc-txt); }
.dv { padding: 7px 0; border-bottom: 0.5px solid #EDF0F3; }
.dv .k { font-size: 11px; color: var(--mute); margin-bottom: 2px; }
.dv .v { display: flex; align-items: center; gap: 6px; min-height: 26px; }
.dv .v .val { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.dv .v .val.pre { white-space: pre-wrap; }
.dv .v a { color: var(--link); text-decoration: none; }
.dv .ibtn { width: 28px; height: 28px; border-color: transparent; }
.dv .ibtn:hover { border-color: var(--line2); }
.meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; font-size: 12px; margin-top: 12px; }
.meta .k { color: var(--mute); font-size: 11px; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 16px; }
.hist { font-size: 12px; margin-top: 4px; }
.hist .h { display: flex; align-items: center; gap: 6px; padding: 4px 0; border-bottom: 0.5px solid #EDF0F3; }
.hist .h .d { color: var(--mute); width: 78px; flex-shrink: 0; }
.legacy { border: 0.5px dashed var(--warn); border-radius: var(--r); padding: 4px 10px; margin-top: 10px; }

/* ---------- formulario ---------- */
.f-head { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.f-head .x { margin-left: auto; }
.f-foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; padding-top: 12px; border-top: 0.5px solid var(--line); flex-wrap: wrap; }
.f-foot .sp { flex: 1; }
.iconpick { width: 52px; height: 34px; border-radius: var(--r); border: 0.5px solid var(--line2); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--txt2); }

/* ---------- ecras de entrada ---------- */
.gate { min-height: 100vh; background: var(--hdr); display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate-card { width: 100%; max-width: 360px; background: var(--bg); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.gate-card.wide { max-width: 440px; }
.gate-top { background: var(--hdr2); padding: 16px 0 12px; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.gate-top span { font-size: 10px; color: var(--hdr-mute); letter-spacing: .6px; }
.gate-top img { width: 62px; height: 62px; margin: 4px 0; }
.gate-body { padding: 18px 20px 20px; }
.gate-title { text-align: center; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.gate-sub { text-align: center; font-size: 12px; color: var(--txt2); margin-bottom: 14px; line-height: 1.45; }
.steps { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }
.steps span { width: 20px; height: 3px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--acc); }
.code-in { text-align: center; font-family: var(--mono); font-size: 24px; letter-spacing: 8px; height: 48px; }
.ttl-bar { height: 4px; border-radius: 2px; background: var(--alt); margin-top: 8px; overflow: hidden; }
.ttl-bar div { height: 4px; background: var(--acc); transition: width 1s linear; }
.qr { display: flex; justify-content: center; margin: 8px 0; }
.qr svg, .qr img { width: 180px; height: 180px; background: #fff; border-radius: 8px; padding: 6px; border: 0.5px solid var(--line); }
.secret-txt { text-align: center; font-family: var(--mono); font-size: 12px; color: var(--txt2); word-break: break-all; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: var(--mono); font-size: 14px; background: #fff;
  border: 0.5px solid var(--line); border-radius: 8px; padding: 12px; text-align: center; }
.link { color: var(--link); background: none; border: none; padding: 0; font-size: 12px; text-decoration: underline; }
.center { text-align: center; }
.foot-note { color: var(--hdr-mute); font-size: 11px; text-align: center; margin-top: 14px; }

/* ---------- configuracoes ---------- */
.set { display: flex; max-width: 1080px; margin: 0 auto; min-height: calc(100vh - 55px); }
.set-menu { width: 200px; flex-shrink: 0; padding: 14px 10px; border-right: 0.5px solid var(--line); }
.set-menu button { width: 100%; text-align: left; border: none; background: transparent; padding: 9px 10px; border-radius: var(--r);
  color: var(--txt2); display: flex; align-items: center; gap: 8px; font-size: 13px; }
.set-menu button.on { background: var(--acc); color: #fff; }
.set-menu button:not(.on):hover { background: var(--alt); }
.set-body { flex: 1; padding: 14px 24px 50px; min-width: 0; }
.set-body h2 { font-size: 17px; font-weight: 600; margin: 4px 0 10px; }
.card { background: #fff; border: 0.5px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.opt { display: flex; align-items: center; gap: 12px; background: #fff; border: 0.5px solid var(--line); border-radius: 8px; padding: 11px 14px; margin-bottom: 8px; }
.opt .ic.l { color: var(--acc); }
.opt .t { font-weight: 600; font-size: 13px; }
.opt .d { font-size: 12px; color: var(--mute); margin-top: 2px; }
.opt .btn { margin-left: auto; }
.list { background: #fff; border: 0.5px solid var(--line); border-radius: 8px; overflow: hidden; }
.li { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-bottom: 0.5px solid #EDF0F3; font-size: 13px; }
.li:nth-child(even) { background: #F8FAFB; }
.li:last-child { border-bottom: none; }
.li .m { color: var(--mute); font-size: 11px; }
.li .acts { margin-left: auto; display: flex; gap: 2px; }
.li .acts .ibtn { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.li .acts .ibtn:hover { border-color: var(--line2); }
.mdl { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 14px; }
.mdl-list button { width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 5px; border-radius: var(--r);
  border: 0.5px solid var(--line); background: #fff; font-size: 12px; text-align: left; }
.mdl-list button.on { border: 1.5px solid var(--acc); background: var(--acc-bg); font-weight: 600; }
.fld { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 44px 44px 92px; gap: 6px; align-items: center; padding: 5px 8px;
  border-bottom: 0.5px solid #EDF0F3; font-size: 12px; }
.fld.h { font-size: 10px; font-weight: 600; color: var(--mute); background: var(--bg); }
.fld .inp { height: 28px; font-size: 12px; padding: 0 7px; }
.fld .c { text-align: center; }
.fld .acts { display: flex; gap: 0; justify-content: flex-end; }
.fld .acts .ibtn { width: 26px; height: 26px; border-color: transparent; background: transparent; }
.log { font-size: 12px; }
.log .li { font-size: 12px; }
.log .li .t { color: var(--mute); width: 130px; flex-shrink: 0; }

/* ---------- janelas (modais) ---------- */
.ov { position: fixed; inset: 0; background: rgba(43, 52, 64, .55); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.dlg { background: var(--bg); border-radius: 10px; width: 100%; max-width: 440px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 16px 50px rgba(0,0,0,.3); }
.dlg.w { max-width: 560px; }
.dlg-h { background: var(--hdr); color: var(--hdr-txt); padding: 10px 14px; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.dlg-h .ibtn { margin-left: auto; background: transparent; border-color: transparent; color: var(--hdr-mute); width: 28px; height: 28px; }
.dlg-b { padding: 14px 16px; }
.dlg-f { display: flex; gap: 8px; justify-content: flex-end; padding: 10px 16px; border-top: 0.5px solid var(--line); background: #fff; }
.icons { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
.icons button { height: 40px; border-radius: var(--r); border: 0.5px solid var(--line); background: #fff; color: var(--txt2); display: flex; align-items: center; justify-content: center; }
.icons button.on { border: 2px solid var(--acc); color: var(--acc); }
.gen-out { font-family: var(--mono); font-size: 16px; background: #fff; border: 0.5px solid var(--line2); border-radius: var(--r); padding: 10px; word-break: break-all; text-align: center; min-height: 44px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--hdr); color: #fff; padding: 9px 16px; border-radius: 8px;
  font-size: 13px; z-index: 80; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 30px); }
.busy { position: fixed; inset: 0; background: rgba(43,52,64,.35); z-index: 90; display: flex; align-items: center; justify-content: center; }
.busy div { background: #fff; padding: 14px 20px; border-radius: 10px; font-size: 13px; display: flex; gap: 10px; align-items: center; }
.spin { width: 18px; height: 18px; border: 2px solid var(--acc-bg); border-top-color: var(--acc); border-radius: 50%; animation: sp 0.8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ---------- impressao (PDF de emergencia / codigos) ---------- */
#print { display: none; }
@media print {
  body > *:not(#print) { display: none !important; }
  #print { display: block; color: #000; font-size: 11px; }
  #print h1 { font-size: 16px; margin: 0 0 4px; }
  #print table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
  #print td, #print th { border: 0.5px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
  #print th { background: #eee; }
  #print .codes { border: 1px solid #000; font-size: 15px; }
}

/* ---------- telemovel ---------- */
@media (max-width: 960px) {
  .main { display: block; }
  .left { width: auto; max-width: 600px; margin: 0 auto; padding: 10px 12px 40px; }
  .panel { position: fixed; inset: 0; max-width: none; min-width: 0; z-index: 30; border: none; overflow: auto; display: none; }
  .panel.open { display: block; }
  .panel-back { display: flex !important; }
}
.panel-back { display: none; background: var(--hdr); color: var(--hdr-txt); padding: 10px 12px; align-items: center; gap: 8px; font-weight: 600; position: sticky; top: 0; z-index: 2; }
.panel-back .ibtn { background: transparent; border-color: transparent; color: var(--hdr-txt); }
@media (max-width: 640px) {
  .hdr { padding: 6px 10px; gap: 8px; }
  .tabs { flex: 1; }
  .tab { width: auto; flex: 1; height: 36px; font-size: 12px; }
  .locktimer.d { display: none; }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile { width: auto; height: 60px; }
  .grid2, .fgrid { grid-template-columns: 1fr; }
  .set { display: block; }
  .set-menu { width: auto; border-right: none; border-bottom: 0.5px solid var(--line); display: flex; overflow-x: auto; gap: 4px; padding: 8px; }
  .set-menu button { width: auto; white-space: nowrap; }
  .set-body { padding: 12px 12px 40px; }
  .mdl { grid-template-columns: 1fr; }
  .mdl-list { display: flex; gap: 5px; overflow-x: auto; }
  .mdl-list button { width: auto; white-space: nowrap; }
  .fld { grid-template-columns: minmax(0, 1fr) 90px 34px 34px; }
  .fld .acts { grid-column: 1 / -1; justify-content: flex-start; }
  .log .li .t { width: 92px; }
}
@media (min-width: 641px) { .locktimer.m { display: none; } }

@media (max-width: 960px) { .panel .f-head { display: none; } }

/* ---------- area Partilhado e utilizadores ---------- */
.cat-h.s, .sect.s { background: var(--sh-bg); border-left-color: var(--sh); color: var(--sh-txt); }
.cat-h.s .n { color: var(--sh); }
.seg button.on.s { background: var(--sh); border-color: var(--sh-txt); }
.btn.pri.s { background: var(--sh); border-color: var(--sh); }
.btn.pri.s:hover { background: #4E7790; }
.banner.s { background: var(--sh-bg); color: var(--sh-txt); line-height: 1.6; }
.who { display: flex; align-items: center; gap: 6px; background: #566579; border-radius: 16px; padding: 3px 10px 3px 3px; color: var(--hdr-txt); margin: 0 4px; }
.av { width: 26px; height: 26px; border-radius: 50%; background: #E9C46A; color: var(--hdr); display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0; }
.users .av { background: #B9CCE6; color: var(--sh-txt); width: 30px; height: 30px; }
.users .av.me { background: #E9C46A; color: var(--hdr); }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 10px; white-space: nowrap; background: var(--alt); color: var(--hdr); display: inline-flex; align-items: center; gap: 4px; }
.pill.ok { background: #EAF3DE; color: var(--ok-txt); } .pill.warn { background: var(--warn-bg); color: var(--warn-txt); }
.pill.bad { background: var(--bad-bg); color: var(--bad-txt); } .pill.acc { background: var(--acc-bg); color: var(--acc-txt); }
.pill.s { background: var(--sh-bg); color: var(--sh-txt); }
.users .li { flex-wrap: wrap; }
.gbtn { height: 32px; flex-shrink: 0; }
@media (max-width: 640px) {
  .who .wn { display: none; }
  .who { padding: 2px; }
  .tab { gap: 4px; padding: 0 4px; }
  .hdr-right { gap: 2px; }
  .hdr-right .ibtn { width: 30px; }
}
@media (max-width: 400px) { .tab .ic { display: none; } }
.row > .inp { flex: 1; min-width: 0; }
.panel { overflow-x: hidden; }
@media (max-width: 640px) { .gbtn { padding: 0 8px; } .panel-in { padding: 12px 12px 30px; } }

/* ---------- copias de seguranca ---------- */
.banner.ok { background: #EAF3DE; color: var(--ok-txt); }
.bkcfg { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.8fr) minmax(0, 0.9fr); gap: 8px; }
.bkl { font-size: 12px; }
.bkr { display: grid; grid-template-columns: 96px minmax(0, 1.4fr) 92px 70px 66px; gap: 6px; align-items: center; padding: 6px 10px; border-bottom: 0.5px solid #EDF0F3; }
.bkr.alt { background: #F8FAFB; }
.bkr.h { font-size: 10px; font-weight: 600; color: var(--mute); background: var(--bg); }
.bkr .acts { display: flex; gap: 2px; justify-content: flex-end; }
.bkr .acts .ibtn { width: 28px; height: 28px; border-color: transparent; background: transparent; }
.bkr .m { color: var(--mute); }
@media (max-width: 640px) { .bkcfg { grid-template-columns: 1fr 1fr; } .bkcfg > div:first-child { grid-column: 1 / -1; } .bkr { grid-template-columns: 78px minmax(0, 1fr) 76px 56px; } .bkr > span:nth-child(4) { display: none; } }
