.kit-check{display:flex!important;flex-direction:row!important;gap:.65rem;align-items:center;min-height:44px;cursor:pointer}
.kit-check input[type=checkbox]{width:1.2rem;min-height:0;height:1.2rem;flex:0 0 auto;accent-color:var(--accent,#1674ae)}
.kit-part{display:grid;gap:.35rem;margin-block:.7rem;padding-block:.5rem;border-bottom:1px solid var(--border,#8995a0)}
.kit-qr{text-align:center}.kit-qr img{display:block;margin:auto;max-width:100%;height:auto}.kit-video{width:100%;max-height:45vh}.cap-form fieldset{min-width:0}.kit-part [hidden]{display:none}
.field-bar{display:none}
.shell[data-role="instalador"]{display:block}
.shell[data-role="instalador"] :is(.sidebar,.mobile-bar,.contextbar,.nav-shade){display:none}
.shell[data-role="instalador"] .field-bar{display:flex;align-items:center;gap:.45rem;padding:.25rem max(.6rem,env(safe-area-inset-right)) .25rem max(.8rem,env(safe-area-inset-left));background:var(--nav);color:#fff;min-height:3.25rem}
.field-brand{display:flex;align-items:center;gap:.5rem;margin-inline-end:auto;min-width:0}
.field-brand img{border-radius:.25rem;background:white;object-fit:contain}
.field-bar .network{color:#eef4fc;font-size:.82rem}
.field-icon{background:transparent;color:inherit;border:1px solid #a6bfda55;border-radius:8px;inline-size:44px;block-size:44px;flex:none;font-size:1.3rem;line-height:1}
.indicator{display:inline-flex;align-items:center;justify-content:center;gap:.35em;min-height:44px;min-width:44px;padding:.25rem .35rem;background:transparent;color:var(--accent);border:0;font:inherit}
.indicator.absent{color:var(--muted)}.indicator.pending{color:var(--warn)}.indicator.ready{color:var(--success)}
.catalog-actions{margin-block:.5rem}.catalog-actions button{min-height:44px}
@media(prefers-reduced-motion:no-preference){
  #panel-body>.form-stack,#panel-body>.facts,.field-bar{animation:rtp-content-in .16s ease-out both}
  @keyframes rtp-content-in{from{opacity:0;transform:translateY(.24rem)}to{opacity:1;transform:translateY(0)}}
}
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  --page: #f4f6f8;
  --surface: #fff;
  --surface-2: #f3f6fa;
  --text: #152d45;
  --muted: #536678;
  --line: #d9e2ea;
  --field-border: #8799a9;
  --accent: #174b8c;
  --on-accent: #fff;
  --nav: #153a66;
  --nav-active: #285a8b;
  --success: #11704e;
  --success-bg: #e3f4ed;
  --warn: #846014;
  --warn-bg: #fbf1d1;
  --blue: #285e9a;
  --blue-bg: #e6effa;
  --danger: #a32c38;
  --shadow: 0 5px 24px #203a5010;
  --radius: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #101a25;
  --surface: #1b2938;
  --surface-2: #223345;
  --text: #e1ebf5;
  --muted: #b0c0d0;
  --line: #384e63;
  --field-border: #71899f;
  --accent: #a2ccff;
  --on-accent: #112a45;
  --nav: #122232;
  --nav-active: #254463;
  --success: #95dfc1;
  --success-bg: #1e423a;
  --warn: #edd087;
  --warn-bg: #443b24;
  --blue: #afd1ff;
  --blue-bg: #263e57;
  --danger: #ffacb2;
  --shadow: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
button:disabled {
  opacity: 0.56;
  cursor: wait;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}
h1 {
  font-size: clamp(1.9rem, 3.3vw, 2.65rem);
  letter-spacing: -0.047em;
}
h2 {
  font-size: 1.3rem;
  letter-spacing: -0.028em;
}
h3 {
  font-size: 1.03rem;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.85rem;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #269abc;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sr,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  background: var(--surface);
  z-index: 30;
  padding: 0.5rem 1rem;
}
.boot {
  padding: 2rem;
  text-align: center;
}
.btn,
.text-action,
.nav-item,
.side-action,
.row-link {
  border: 0;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 0.57rem 0.9rem;
  min-height: 42px;
  font-weight: 620;
  text-decoration: none;
  text-align: center;
  line-height: 1.25;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
}
.btn:hover,
.btn:focus-visible {
  background: var(--surface-2);
}
.primary,
.primary:hover,
.primary:focus-visible {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}
.primary:hover {
  filter: brightness(0.92);
}
.danger {
  color: var(--danger);
}
.icon {
  font-size: 1.4rem;
  padding: 0.35rem;
  width: 42px;
}
.text-action,
.row-link {
  background: transparent;
  padding: 0.25rem 0.05rem;
  color: var(--accent);
  font-weight: 700;
  text-align: start;
  text-decoration: none;
}
.text-action:hover,
.row-link:hover {
  text-decoration: underline;
}
.actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.wordmark {
  display: block;
  letter-spacing: -0.085em;
  font-weight: 850;
  font-size: 2rem;
  color: #fff;
  line-height: 1;
}
.wordmark span {
  font-weight: 400;
}
.eyebrow {
  font-size: 0.79rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 720;
}
.access {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) minmax(20rem, 1.05fr);
}
.identity {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(140deg, #113255, #174b77 72%, #236575);
  color: #fff;
  padding: clamp(2rem, 5vw, 5rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.identity-copy {
  margin: auto 0;
  position: relative;
  z-index: 2;
}
.identity-copy .eyebrow {
  color: #a4e3da;
}
.identity h1 {
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  margin: 1.2rem 0;
}
.identity p {
  max-width: 29ch;
  color: #e0edf5;
  font-size: 1.12rem;
}
.track-art {
  position: absolute;
  bottom: -8rem;
  inset-inline-start: 8%;
  width: 140%;
  height: 34%;
  transform: rotate(-28deg);
  z-index: -1;
}
.track-art i {
  display: block;
  border-top: 2px solid #a5e6e95c;
  margin: 1.05rem 0;
}
.track-art i:nth-child(2)::after,
.track-art i:nth-child(4)::after {
  content: "";
  display: block;
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid #90d0d6;
  border-radius: 50%;
  background: #195676;
  margin: -0.58rem 0 0 49%;
}
.track-art i:nth-child(4)::after {
  margin-inline-start: 20%;
}
.login-pane {
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 2rem;
  background: var(--surface);
}
.login-form {
  width: min(100%, 24rem);
  display: grid;
  gap: 1rem;
}
.login-form h2 {
  font-size: 2.25rem;
  letter-spacing: -0.05em;
  margin-bottom: 0.6rem;
}
.login-form .eyebrow {
  color: var(--accent);
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
}
.sidebar {
  height: 100dvh;
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: #f1f6fb;
  padding: 1.9rem 1rem 1.1rem;
  overflow: auto;
}
.sidebar header {
  padding: 0.4rem 0.8rem 1.7rem;
}
.portal-name {
  display: block;
  font-size: 0.88rem;
  color: #c5d9ea;
  margin-top: 0.65rem;
}
.sidebar nav {
  border-top: 1px solid #bfd6ee35;
  padding-top: 1rem;
  display: grid;
  gap: 0.22rem;
}
.nav-group {
  padding: 0.9rem 0.75rem 0.4rem;
  color: #c0d4e6;
  font-size: 0.75rem;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}
.nav-item,
.side-action {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: transparent;
  color: #e0ebf5;
  border-radius: 7px;
  text-align: left;
  padding: 0.64rem 0.75rem;
  font-size: 0.92rem;
}
.nav-item:hover,
.side-action:hover {
  background: #ffffff15;
}
.nav-item[aria-current="page"] {
  background: var(--nav-active);
  color: white;
  font-weight: 700;
  box-shadow: inset 3px 0 #73d9c4;
}
.nav-icon {
  width: 1.3rem;
  text-align: center;
  font-size: 1.16rem;
}
.side-foot {
  margin-top: auto;
  padding-top: 1.6rem;
  display: grid;
}
.profile {
  border-block-start: 1px solid #bfd6ee35;
  padding: 0.9rem 0.5rem 0.3rem;
  margin-top: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.profile div {
  min-width: 0;
}
.profile strong,
.profile small {
  display: block;
  overflow-wrap: anywhere;
}
.profile strong {
  font-size: 0.88rem;
}
.profile small {
  color: #c3d7e9;
}
.avatar {
  flex: none;
  background: #ffffff19;
  border: 1px solid #ffffff40;
  border-radius: 50%;
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  font-weight: bold;
}
.mobile-bar,
.nav-shade {
  display: none;
}
.contextbar {
  height: 4.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(1rem, 3.5vw, 3.4rem);
  font-size: 0.88rem;
  font-weight: 630;
}
.network {
  color: var(--muted);
  font-weight: 480;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.network::before {
  content: "";
  width: 0.49rem;
  height: 0.49rem;
  border-radius: 50%;
  background: var(--success);
}
.network.offline::before {
  background: var(--warn);
}
#main,
#view {
  min-width: 0;
}
#view {
  max-width: 1500px;
  margin: auto;
  padding: clamp(1.25rem, 3.5vw, 3.4rem);
}
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.page-title > div,
.section-head > *,
.list-row > *,
.form-stack label,
.plan-line > *,
.serial-row > *,
.dialog-head h2 {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.page-title > .btn,
.dialog-head > .icon {
  flex: 0 0 auto;
}
.page-title p {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.6rem;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.5rem;
  box-shadow: var(--shadow);
}
.stat strong {
  font-variant-numeric: tabular-nums;
  font-size: 2.05rem;
  line-height: 1.15;
  letter-spacing: -0.07em;
}
.stat span {
  font-size: 0.9rem;
  color: var(--muted);
  grid-column: 1;
}
.stat i {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  width: 0.38rem;
  height: 2rem;
  background: var(--blue);
  border-radius: 1rem;
}
.stat.running i {
  background: var(--warn);
}
.stat.done i {
  background: var(--success);
}
.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface);
  min-width: 0;
  overflow: clip;
}
.section-head,
.filters,
.surface-pad {
  padding: 1.1rem 1.25rem;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  align-items: end;
  gap: 0.7rem 0.85rem;
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}
.filters .text-action {
  justify-self: start;
  padding-inline: 0.45rem;
}
label {
  display: grid;
  gap: 0.32rem;
  font-size: 0.89rem;
  font-weight: 630;
  color: var(--text);
  min-inline-size: 0;
}
input,
textarea,
select {
  min-width: 0;
  width: 100%;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--field-border);
  border-radius: 7px;
  padding: 0.59rem 0.66rem;
  font-size: 1rem;
  line-height: 1.3;
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
input,
select {
  min-height: 42px;
}
select {
  appearance: none;
  padding-inline-end: 2rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 17px) 53%,
    calc(100% - 12px) 53%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input[type="checkbox"] {
  width: 1.1rem;
  min-height: auto;
  height: 1.1rem;
  accent-color: var(--accent);
}
label.check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 38px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 0.8rem;
}
.form-stack,
.rows {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: minmax(0, 1fr);
}
.form-stack fieldset {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.8rem 0.9rem;
}
.form-stack legend {
  font-weight: 680;
  padding: 0 0.3rem;
}
.form-error {
  border-inline-start: 3px solid var(--danger);
  padding: 0.5rem 0.65rem;
  color: var(--danger);
  font-size: 0.9rem;
}
.form-note {
  font-size: 0.86rem;
  color: var(--muted);
}
.empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.table-wrap {
  overflow: auto;
  max-height: 65dvh;
  max-width: 100%;
  container-type: inline-size;
  overscroll-behavior-inline: contain;
}
.data {
  width: 100%;
  border-spacing: 0;
  font-size: 0.91rem;
}
.data th,
.data td {
  padding: 0.73rem 1rem;
  text-align: start;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.data thead {
  position: sticky;
  top: 0;
  z-index: 2;
}
.data thead th {
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 620;
  font-size: 0.82rem;
  white-space: nowrap;
}
.data tbody th {
  position: sticky;
  left: 0;
  background: var(--surface);
  font-weight: 680;
}
.data tbody tr:last-child > * {
  border-bottom: 0;
}
.bus-row {
  cursor: pointer;
}
.bus-row:hover > * {
  background: var(--surface-2) !important;
}
.data td small,
.data th small {
  display: block;
  font-weight: 400;
}
.tag {
  display: inline-flex;
  padding: 0.22rem 0.57rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 670;
  white-space: nowrap;
  color: var(--blue);
  background: var(--blue-bg);
}
.tag.running {
  color: var(--warn);
  background: var(--warn-bg);
}
.tag.done {
  color: var(--success);
  background: var(--success-bg);
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.list-row > div {
  flex: 1 1 15rem;
  max-inline-size: 100%;
}
.list-row > :is(.btn, .tag) {
  flex: 0 0 auto;
}
.list-row p {
  margin-block-start: 0.35rem;
  white-space: pre-wrap;
}
.list-row:last-child {
  border: 0;
}
.list-row small {
  display: block;
}
.stack-spaced {
  display: grid;
  gap: 1rem;
}
dialog {
  width: min(780px, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 25px 90px #101f3670;
  padding: 0;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #0d223a99;
}
body:has(dialog[open]) {
  overflow: hidden;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 3;
}
#panel-body {
  padding: 1.2rem;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
}
.detail-block + .detail-block {
  padding-block-start: 1rem;
  border-block-start: 1px solid var(--line);
}
.detail-block {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
}
.facts {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.7rem;
}
.facts div {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: var(--surface-2);
}
.facts dt {
  color: var(--muted);
  font-size: 0.8rem;
}
.facts dd {
  margin: 0.12rem 0 0;
  font-weight: 620;
  overflow-wrap: anywhere;
}
.photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 0.7rem;
}
.photo {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.4rem;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  overflow-wrap: anywhere;
}
.photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 5px;
}
.photo span {
  font-size: 0.85rem;
}
.map {
  width: 100%;
  height: 240px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.code-box {
  letter-spacing: 0.17em;
  font-family: ui-monospace, monospace;
  font-size: 1.4rem;
  font-weight: bold;
}
.toast {
  position: fixed;
  z-index: 20;
  bottom: 1.2rem;
  right: 1.2rem;
  max-width: min(32rem, calc(100vw - 2rem));
  padding: 0.85rem 1.1rem;
  background: var(--text);
  color: var(--surface);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.plan-line {
  border-top: 1px solid var(--line);
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(4.7rem, 6rem);
  align-items: center;
  gap: 0.65rem;
}
.serial-list {
  display: grid;
  gap: 0.45rem;
  grid-column: 1/-1;
}
.serial-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.code-info {
  padding: 1rem;
  background: var(--surface-2);
  border-radius: 8px;
}
.surface:has(.filters) {
  container-type: inline-size;
}
@container (min-width: 48rem) {
  .filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(
        0,
        0.9fr
      ) minmax(0, 1fr) auto;
  }
}
@container (width < 660px) {
  .bus-table thead {
    display: none;
  }
  .bus-table,
  .bus-table tbody,
  .bus-table tr,
  .bus-table th,
  .bus-table td {
    display: block;
  }
  .bus-table tr {
    padding: 0.8rem 1rem 0.9rem;
    border-bottom: 1px solid var(--line);
  }
  .bus-table th,
  .bus-table td {
    border: 0;
    padding: 0.16rem 0;
  }
  .bus-table tbody th {
    position: static;
  }
  .bus-table td {
    display: grid;
    grid-template-columns: minmax(4.4rem, 0.6fr) minmax(0, 1.4fr);
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    text-align: end;
    line-height: 1.38;
    padding-block: 0.27rem;
  }
  .bus-table td .tag {
    justify-self: end;
  }
  .bus-table td::before {
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 620;
    color: var(--muted);
    text-align: start;
  }
  .bus-table td small {
    display: inline;
  }
  .bus-table .row-link {
    font-size: 1.05rem;
  }
}
@media (max-width: 820px) {
  .shell {
    display: block;
  }
  .mobile-bar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 5;
    align-items: center;
    gap: 0.7rem;
    background: var(--nav);
    height: 3.6rem;
    padding: 0.45rem 0.75rem;
  }
  .mobile-bar .wordmark {
    font-size: 1.45rem;
  }
  .mobile-bar .btn {
    border-color: #ffffff55;
    background: transparent;
    color: white;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(250px, 86vw);
    visibility: hidden;
    translate: -100% 0;
  }
  .shell.menu-open .sidebar {
    translate: 0;
    visibility: visible;
  }
  .shell.menu-open .nav-shade {
    display: block;
    position: fixed;
    z-index: 5;
    inset: 0;
    border: 0;
    background: #101e3294;
  }
  .contextbar {
    height: auto;
    min-height: 2.6rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    padding: 0.45rem 1rem;
  }
  .page-title {
    align-items: flex-start;
  }
  .access {
    grid-template-columns: 1fr;
  }
  .identity {
    min-height: 240px;
    padding: 1.5rem;
    gap: 1.8rem;
  }
  .identity h1 {
    font-size: 2.6rem;
    margin: 0.55rem 0;
  }
  .identity .wordmark {
    font-size: 1.6rem;
  }
  .identity-copy p {
    font-size: 1rem;
    max-width: 35ch;
  }
  .login-pane {
    align-items: start;
    padding: 2rem 1.15rem;
  }
  .identity .track-art {
    bottom: -1.2rem;
  }
  .toast {
    bottom: 0.8rem;
    right: 0.8rem;
  }
}
@media (max-width: 550px) {
  #view {
    padding: 1rem 0.8rem;
  }
  .page-title {
    display: grid;
    gap: 0.8rem;
  }
  .page-title .btn {
    justify-self: start;
  }
  .stats {
    gap: 0.36rem;
    margin-bottom: 1rem;
  }
  .stat {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
    gap: 0.3rem;
    padding: 0.65rem 0.55rem;
    border-radius: 9px;
    border-top: 3px solid var(--blue);
  }
  .stat.running {
    border-top-color: var(--warn);
  }
  .stat.done {
    border-top-color: var(--success);
  }
  .stat span {
    grid-row: 2;
    font-size: 0.85rem;
    line-height: 1.2;
  }
  .stat i {
    display: none;
  }
  .stat strong {
    grid-row: 1;
    font-size: 1.6rem;
  }
  .section-head,
  .filters,
  .surface-pad {
    padding: 0.8rem;
  }
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .filters .text-action {
    justify-self: end;
    grid-column: 1/-1;
  }
  .section-head h2 {
    font-size: 1.12rem;
  }
  .dialog-head,
  #panel-body {
    padding: 1rem;
  }
  #panel {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    margin: auto 0 0;
    border-radius: 0.9rem 0.9rem 0 0;
    padding-block-end: env(safe-area-inset-bottom);
    scroll-padding-block-start: 4rem;
  }
  #panel-body > .actions .btn {
    flex: 1 1 8rem;
  }
  #panel-body > .actions .tag {
    flex: 0 0 auto;
    align-self: center;
  }
  .serial-row {
    grid-template-columns: 1fr;
  }
  .table-wrap {
    max-height: none;
  }
}
.brand-lock {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.brand-lock img {
  width: 2.7rem;
  height: 2.7rem;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
.sidebar .brand-lock .wordmark {
  font-size: 1.7rem;
}
@media (pointer: coarse) {
  .btn,
  .side-action,
  .nav-item,
  .row-link,
  .text-action,
  :is(input, select):not([type="checkbox"]),
  label.check,
  .location-map summary {
    min-height: 44px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sidebar {
    transition: translate 0.16s ease;
  }
}
@container (width < 660px) {
  .bus-table tr {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto;
    gap:.15rem .35rem;
    align-items:center;
    padding:.55rem .75rem;
  }
  .bus-table tr>th {grid-column:1 / 3;grid-row:1;text-align:start;min-width:0}
  .bus-table tr>th small {display:block;overflow-wrap:anywhere}
  .bus-table tr>td {display:block;text-align:start;min-width:0;overflow-wrap:anywhere}
  .bus-table tr>td::before {display:none}
  .bus-table tr>td[data-label="Estado"] {grid-column:3;grid-row:1;max-width:6.75rem;text-align:end}
  .bus-table tr>td[data-label="Estado"] .tag {white-space:normal;text-align:center}
  .bus-table tr>td[data-label="Instalador"] {grid-column:1 / -1;grid-row:2;color:var(--muted);font-size:.82rem}
  .bus-table tr>td[data-label="Fecha"] {grid-column:1;grid-row:3;color:var(--muted);font-size:.8rem}
  .bus-table tr>td[data-label="Fotos"] {grid-column:2;grid-row:3}
  .bus-table tr>td[data-label="Acta"] {grid-column:3;grid-row:3;text-align:end}
}
@media(max-width:550px){
  .shell[data-role="instalador"] #view{padding:.8rem .65rem}
  .shell[data-role="instalador"] .page-title{gap:.4rem;margin-bottom:.65rem;grid-template-columns:minmax(0,1fr) auto;align-items:center}
  .shell[data-role="instalador"] .page-title h1{font-size:1.5rem}
  .shell[data-role="instalador"] .page-title p{font-size:.8rem;margin:.2rem 0 0}
  .shell[data-role="instalador"] .page-title>.btn{padding-inline:.6rem}
  .shell[data-role="instalador"] .stats{margin-bottom:.65rem}
  .shell[data-role="instalador"] .stat{padding:.35rem .45rem;gap:.05rem}
  .shell[data-role="instalador"] .stat strong{font-size:1.25rem}
  .shell[data-role="instalador"] .stat span{font-size:.77rem}
  .shell[data-role="instalador"] .section-head,.shell[data-role="instalador"] .filters{padding:.65rem}
}
.catalog-actions{flex-wrap:wrap}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  align-items: start;
  gap: 1rem;
}
.bus-grid { padding: 1rem; }
.lot-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr)); }
.kit-filter {display:flex;align-items:end;gap:.8rem;flex-wrap:wrap;margin-bottom:1rem}
.lot-pdf-button {min-width:44px;min-height:44px;display:inline-grid;place-items:center}
.lot-pdf-list {list-style:none;padding:0;margin:0}
.lot-pdf-list .list-row > .actions {flex:0 1 auto}
#panel[data-kind="lot-pdfs"]:modal,#panel[data-kind="lot-pdfs"]::backdrop {overscroll-behavior:contain}
#panel[data-kind="lot-pdfs"]::backdrop {overflow:hidden}
.kit-filter label {width:min(100%,21rem)}
.kit-filter label {flex:1 1 12rem;min-width:0}
#kit-reset,.serial-scan {min-height:44px;min-width:44px}
#kit-reset {font-size:1.3rem}
#kit-feedback:empty {display:none}
.kit-photo img {display:block;max-width:100%;max-height:16rem;object-fit:contain;margin-block:.5rem}
.kit-photo[hidden],.kit-photo img[hidden],.kit-camera [hidden] {display:none}
.kit-photo h4 {margin:.5rem 0}
.kit-camera .cap-view :is(video,img) {width:100%;max-height:52dvh;object-fit:contain}
.kit-camera .cap-actions button {min-height:44px}
.kit-camera p {overflow-wrap:anywhere}
.kit-card {container-type:inline-size;align-self:stretch}
.kit-card.is-assigned {background:var(--blue-bg);border-color:color-mix(in srgb,var(--blue) 48%,var(--blue-bg))}
.kit-card.is-assigned :is(.kit-metrics > div,.kit-xpad) {background:color-mix(in srgb,var(--blue-bg) 60%,var(--surface))}
.kit-assignment {color:var(--blue);font-size:.9rem;font-weight:650}
.kit-card > div > small,.kit-card header small {color:var(--muted);display:block;margin-top:.35rem}
.kit-metrics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}
.kit-metrics > div {padding:.6rem;background:var(--surface-2);border-radius:.5rem}
.kit-metrics dt,.kit-xpad strong,.kit-card .kit-extra {display:flex;align-items:center;gap:.45rem}
.kit-card svg {flex:none;color:var(--blue)}
.kit-metrics dd {font-variant-numeric:tabular-nums}
.kit-xpad {display:flex;align-items:center;justify-content:space-between;gap:.3rem .7rem;flex-wrap:wrap;padding:.65rem .8rem;margin-block:.6rem;background:var(--blue-bg);border-radius:.5rem}
.kit-xpad small {flex-basis:100%}
.kit-xpad b {font-size:.88rem}
.kit-unit {padding:.8rem;margin-top:.8rem;border-radius:.65rem;border:1px solid var(--line);background:var(--surface-2)}
.kit-unit h4 {margin:0}
@container (max-width:15rem) { .kit-metrics {grid-template-columns:1fr} }
.ops-card {
  min-width: 0;
  display: grid;
  gap: .85rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow-wrap: anywhere;
}
.ops-card header, .ops-card footer, .ops-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .45rem .8rem;
}
.ops-card :is(h2,h3,p,dl) { margin: 0; }
.ops-card :is(h2,h3) { min-width: 0; font-size: 1.12rem; }
.unit-card h3 button { font-size: 1.2rem; font-weight: 730; text-align: start; }
.ops-card .tag { white-space: normal; }
.ops-card footer { border-top: 1px solid var(--line); padding-top: .55rem; }
.ops-card .card-location { color: var(--muted); font-size: .88rem; margin-top: -.45rem; }
.ops-pairs, .stage-pair, .lot-counts, .config-metrics {
  display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem;
}
.ops-card dt, .stage-meter span { font-size: .8rem; color: var(--muted); }
.ops-card dd { font-weight: 650; margin: .15rem 0 0; }
.stage-meter {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .2rem .4rem; padding: .52rem .65rem; border-radius: .55rem; background: var(--surface-2);
}
.stage-meter b { font-size: .82rem; font-variant-numeric: tabular-nums; }
.stage-meter progress {
  width: 100%; height: .32rem; border: 0; border-radius: 1rem; overflow: hidden;
  appearance: none; background: var(--line); accent-color: var(--blue);
}
.stage-meter progress::-webkit-progress-bar { background: var(--line); }
.stage-meter progress::-webkit-progress-value { background: var(--blue); }
.stage-meter progress::-moz-progress-bar { background: var(--blue); }
.card-indicators { display: flex; }
.ops-pager { justify-content: center; padding: 0 1rem 1rem; }
.ops-summary { display: grid; gap: .8rem; }
.ops-pending {
  display: flex; justify-content: space-between; align-items: center; gap: .6rem;
  padding: .55rem .75rem; min-height: 44px; border: 0; border-radius: .55rem;
  background: var(--warn-bg); color: var(--warn); font: inherit; font-weight: 630;
  text-align: start; overflow-wrap: anywhere;
}
.missing-takes { margin: .4rem 0 0; padding-inline-start: 1.2rem; color: var(--warn); font-size: .85rem; }
.ops-sections {
  display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: .25rem;
  padding: .25rem; border-radius: .7rem; background: var(--surface-2);
}
.ops-sections button {
  min-width: 0; min-height: 44px; padding: .25rem; border: 1px solid transparent;
  border-radius: .5rem; background: transparent; color: var(--muted);
  font: inherit; font-size: .88rem; font-weight: 620; overflow-wrap: anywhere;
}
.ops-sections button[aria-pressed="true"] { background: var(--surface); color: var(--accent); border-color: var(--field-border); }
.ops-dialog [data-section-content][hidden] { display: none; }
.ops-dialog .detail-block + .detail-block { border: 0; padding-top: 0; }
.kit-code { order: -1; }
.ops-setting > summary, .kit-code > summary, .lot-detail > summary, .audit-detail > summary {
  padding: .55rem 0; min-height: 44px; color: var(--accent); font-weight: 650; cursor: pointer;
}
.ops-setting > summary { padding: 1rem 1.2rem; }
.lot-counts, .config-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.lot-counts > div, .config-metrics > div { padding: .65rem; border-radius: .55rem; background: var(--surface-2); }
.lot-counts dd, .config-metrics dd { font-size: 1.35rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.lot-counts > div { display: flex; flex-direction: column; justify-content: space-between; }
.lot-detail .list-row > div { flex: 1 1 8rem; }
.config-card p, .directory-card span.muted { font-size: .9rem; }
.audit-detail p { overflow-wrap: anywhere; }
@media (min-width:620px) {
  .ops-dialog .kit-part { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: .15rem 1rem; }
  .ops-dialog .kit-part .kit-check { grid-column: 1; grid-row: 1; }
  .ops-dialog .kit-part small:first-of-type { grid-column: 1; grid-row: 2; }
  .ops-dialog .kit-part label:not(.kit-check) { grid-column: 2; grid-row: 1; }
  .ops-dialog .kit-part small + label + small { grid-column: 2; grid-row: 2; }
}
@media (max-width:600px) {
  .ops-sections { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .bus-grid, .ops-card { padding: .8rem; }
  .config-metrics { grid-template-columns: repeat(auto-fit,minmax(min(100%,8rem),1fr)); }
}
@media (prefers-reduced-motion:no-preference) {
  .shell:is([data-role="admin"],[data-role="supervisor"]) .page-title,
  .ops-dialog [data-section-content]:not([hidden]), .lot-detail[open] .list-row { animation: rtp-content-in .15s ease-out; }
  .ops-card, .ops-sections button { transition: background-color .18s ease, color .18s ease, border-color .18s ease; }
  #panel.ops-dialog {
    opacity: 0; transform: translateY(.4rem);
    transition: opacity .16s, transform .16s, display .16s allow-discrete, overlay .16s allow-discrete;
  }
  #panel.ops-dialog[open] { opacity: 1; transform: none; }
  #panel.ops-dialog::backdrop { background: transparent; transition: background-color .16s, display .16s allow-discrete, overlay .16s allow-discrete; }
  #panel.ops-dialog[open]::backdrop { background: #0d223a99; }
  @starting-style {
    #panel.ops-dialog[open] { opacity: 0; transform: translateY(.4rem); }
    #panel.ops-dialog[open]::backdrop { background: transparent; }
  }
}
