:root {
  --bg: #0d1117;
  --panel: #161823;
  --raised: #131c27;
  --orange: #ff8a30;
  --mint: #2ed6a1;
  --blue: #4c8bff;
  --red: #ff4d5d;
  --muted: #77899b;
  --stroke: #2b3a48;
  --line: var(--stroke);
  --text: #f6f8fb;
  --panel-2: var(--raised);
  --green: var(--mint);
  color-scheme: dark;
}
.auth-divider{display:flex;align-items:center;gap:12px;margin:15px 0;color:#83909a;font-size:11px}.auth-divider::before,.auth-divider::after{content:"";height:1px;flex:1;background:#d7e0e51f}.passkey-login{width:100%;border:1px solid #9cb7ad55;border-radius:11px;background:#173028;color:#c9f5e7;padding:13px;font:700 13px inherit;cursor:pointer}.passkey-login:hover{border-color:#6ad7b3}.passkey-login:disabled{opacity:.55;cursor:wait}.business-passkey-settings{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:18px;padding:15px;border:1px solid #ffffff16;border-radius:13px;background:#0f171d}.business-passkey-settings>div{display:grid;gap:5px}.business-passkey-settings small{color:#87939d}@media(max-width:600px){.business-passkey-settings{align-items:stretch;flex-direction:column}.business-passkey-settings button{width:100%}}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: #f6f8fb;
  font-family:
    "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.business-app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  padding: 28px 22px 24px;
  border-right: 1px solid #ffffff12;
  display: flex;
  flex-direction: column;
  background: #0c1117;
}
.logo {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 4px 8px 36px;
  color: inherit;
  text-decoration: none;
}
.logo img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}
.logo span {
  display: flex;
  flex-direction: column;
}
.logo strong {
  font-size: 21px;
}
.logo small {
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--orange);
  font-weight: 800;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.sidebar button {
  font: inherit;
  cursor: pointer;
}
.sidebar nav button {
  border: 0;
  background: none;
  color: #c6d0d9;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  border-radius: 12px;
  text-align: left;
}
.sidebar nav button.selected {
  background: #33271f;
  color: var(--orange);
  box-shadow: inset 3px 0 var(--orange);
  font-weight: 700;
}
.sidebar .nav-icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .88;
}
.sidebar .settings-icon {
  transform: translateX(-1px);
}
.sidebar nav button:hover .nav-icon { opacity: 1; }
.audits {
  margin-top: 30px;
}
.audits > p {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: #708193;
  padding: 0 10px;
}
.audits > button,
.audits #auditList > button {
  width: 100%;
  min-height: 66px;
  margin: 8px 0;
  padding: 11px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: white;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 9px 1fr 20px;
  gap: 10px;
  align-items: center;
  text-align: left;
}
.audits > button.current,
.audits #auditList > button.current {
  border-color: var(--orange);
  background: #251e1a;
}
.audits button span {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.audits strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.audits small {
  font-size: 11px;
  color: var(--muted);
}
.audits em {
  overflow: hidden;
  color: #aebdca;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.audits #auditList > button.filter-summary {
  min-height: 80px;
}
.audits b {
  color: #8191a0;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot.orange {
  background: var(--orange);
}
.dot.mint {
  background: var(--mint);
}
.dot.blue {
  background: var(--blue);
}
.send {
  margin-top: auto;
  border: 0;
  border-radius: 14px;
  background: var(--orange);
  color: #160b03;
  padding: 14px;
  font-size: 12px;
  font-weight: 800;
}

.send:disabled {
  color: #97a3af;
  background: #3a414c;
  cursor: default;
  opacity: 0.64;
}
.content {
  min-width: 0;
  padding: 36px clamp(28px, 4vw, 62px) 70px;
}
.content > header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 30px;
}
.content > header p {
  font:
    700 10px ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  color: var(--orange);
  margin: 0 0 8px;
}
.content > header h1 {
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 42px;
  letter-spacing: 0;
  line-height: 1;
  margin: 0 0 9px;
}
.content > header > div > span {
  color: var(--muted);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.header-tool {
  border: 1px solid var(--stroke);
  border-radius: 11px;
  background: var(--panel-2);
  color: var(--muted);
  padding: 11px 13px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.header-tool:hover,
.header-tool:focus-visible {
  border-color: var(--orange);
  color: var(--orange);
}
.linked {
  color: var(--orange) !important;
  font-size: 13px;
}
.primary {
  border: 0;
  background: var(--orange);
  color: #190d04;
  padding: 13px 18px;
  border-radius: 12px;
  font-weight: 800;
}
.progress-card,
.devices {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
}
.progress-card {
  padding: 19px 22px;
  margin-bottom: 24px;
}
.progress-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.progress-card b {
  color: var(--blue);
}
.progress {
  display: flex;
  height: 9px;
  background: #263341;
  border-radius: 20px;
  overflow: hidden;
  margin: 15px 0 12px;
}
.progress i:nth-child(1) {
  width: 54%;
  background: var(--mint);
}
.progress i:nth-child(2) {
  width: 12%;
  background: var(--orange);
}
.progress i:nth-child(3) {
  width: 1%;
  background: var(--blue);
}
.progress i:nth-child(4) {
  width: 0.7%;
  background: var(--red);
}
.progress-card ul {
  display: flex;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style-position: inside;
  color: var(--muted);
  font-size: 11px;
}
.progress-card .mint {
  color: var(--mint);
}
.progress-card .orange {
  color: var(--orange);
}
.progress-card .blue {
  color: var(--blue);
}
.progress-card .red {
  color: var(--red);
}
.devices {
  padding: 24px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 19px;
}
.panel-title h2 {
  font-size: 22px;
  margin: 0;
}
.panel-title h2 span {
  font-weight: 500;
}
.panel-title h2 i {
  font-style: normal;
  font-size: 11px;
  background: #182430;
  color: var(--muted);
  border-radius: 20px;
  padding: 5px 8px;
  margin-left: 7px;
}
.panel-title button {
  background: none;
  border: 0;
  color: var(--muted);
}
.device-list {
  display: grid;
  gap: 12px;
}
.device {
  min-height: 94px;
  border: 1px solid var(--stroke);
  background: var(--raised);
  border-radius: 16px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 200px minmax(220px, 1fr) 150px 170px 62px;
  gap: 12px;
  align-items: center;
}
.device.done {
  border-color: #245749;
}
.identity {
  display: flex;
  align-items: center;
  gap: 13px;
}
.identity > span:last-child {
  display: grid;
  gap: 4px;
}
.identity strong {
  font-size: 16px;
}
.identity small {
  font-size: 12px;
  color: var(--muted);
}
.state-linked {
  color: var(--orange) !important;
}
.state-progress {
  color: var(--blue) !important;
}
.state-completed {
  color: var(--mint) !important;
}
.state-unassigned {
  color: var(--muted) !important;
}
.rovi-device-mark {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  filter: grayscale(1);
  opacity: 0.48;
  transition: 160ms ease;
}
.rovi-device-mark.linked {
  filter: none;
  opacity: 1;
}
.robot {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #1b2631;
  display: grid;
  place-items: center;
  position: relative;
  color: #6e8090;
  border: 3px solid currentColor;
  letter-spacing: 4px;
  padding-left: 4px;
  font-weight: 800;
}
.robot:before {
  content: "";
  position: absolute;
  width: 3px;
  height: 9px;
  background: currentColor;
  top: -9px;
  border-radius: 4px;
}
.robot:after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: currentColor;
  top: -13px;
  border-radius: 50%;
}
.robot.active {
  color: var(--mint);
  background: #12372f;
}
.action {
  height: 62px;
  border: 1px dashed var(--orange);
  background: #1b1c22;
  border-radius: 13px;
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.action > span {
  display: grid;
  text-align: left;
  gap: 3px;
}
.action small {
  font-size: 10px;
  color: var(--muted);
}
.action.ready {
  border-style: solid;
  border-color: #226a58;
  background: #12332e;
  color: var(--mint);
}
.action.code.linked {
  border-style: solid;
  border-color: rgba(255, 138, 48, 0.62);
  background: rgba(255, 138, 48, 0.12);
  color: var(--orange);
}
.action.code.code-ready {
  border-style: solid;
  border-color: var(--orange);
  background: rgba(255, 138, 48, 0.14);
  color: var(--orange);
  flex-direction: column;
  gap: 2px;
}
.action.code.code-ready small {
  color: var(--muted);
  font-size: 9px;
}
.percentage {
  display: grid;
  gap: 6px;
  text-align: right;
  font-size: 12px;
  color: var(--mint);
  font-weight: 700;
}
.percentage i {
  width: 100%;
  height: 4px;
  border-radius: 5px;
  background: #2b3946;
  overflow: hidden;
}
.percentage b {
  display: block;
  height: 100%;
  background: var(--mint);
}
.ring {
  width: 22px;
  height: 22px;
  border: 3px dashed #5c6d7c;
  border-radius: 50%;
  justify-self: end;
}
.free-notice {
  width: min(500px, calc(100% - 32px));
  border: 1px solid #3c4c5b;
  border-radius: 25px;
  padding: 34px;
  text-align: center;
  background: linear-gradient(145deg, #18212c, #121820);
  color: white;
  box-shadow: 0 32px 100px #000c;
}
.free-notice::backdrop {
  background: #03070bd9;
  backdrop-filter: blur(12px);
}
.free-notice .close {
  position: absolute;
  top: 16px;
  right: 17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #ffffff16;
  background: #ffffff09;
  color: #aeb9c3;
  font-size: 22px;
}
.free-notice img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}
.free-notice > p {
  font:
    800 11px ui-monospace,
    monospace;
  letter-spacing: 0.16em;
  color: var(--orange);
}
.free-notice h2 {
  font-size: 30px;
  line-height: 1.1;
  margin: 0 auto 15px;
  max-width: 390px;
}
.free-notice > span {
  display: block;
  color: #9eacb9;
  font-size: 14px;
  line-height: 1.55;
}
.free-notice ul {
  list-style: none;
  padding: 0;
  margin: 22px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 11px;
}
.notice-primary {
  width: 100%;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--orange), #ffb339);
  color: #160b03;
  padding: 15px;
  font-weight: 800;
}
.free-notice > small {
  display: block;
  color: #657789;
  margin-top: 12px;
  font-size: 10px;
}
.free-notice.trial-dialog{width:min(760px,calc(100% - 32px));max-height:calc(100vh - 32px);overflow:auto}.trial-dialog>span{max-width:580px;margin:auto}.trial-dialog form{margin-top:22px}.trial-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;text-align:left}.trial-grid label{display:grid;gap:6px;color:#bbc6cf;font-size:11px;font-weight:700}.trial-grid label small{color:#718292;font-weight:500}.trial-grid input{width:100%;border:1px solid #344453;background:#0d131a;color:white;border-radius:10px;padding:12px;font:500 14px inherit;outline:none}.trial-grid input:focus{border-color:var(--orange);box-shadow:0 0 0 3px #ff8a301b}.trial-dialog output{display:block;min-height:18px;margin-top:12px;color:#ffab77;font-size:12px}.trial-dialog button:disabled{opacity:.55;cursor:wait}.commercial-card{margin-top:20px}.commercial-card>div>p{color:var(--orange);font:800 10px ui-monospace,monospace;letter-spacing:.13em;margin:0}.commercial-card h2{margin:7px 0}.commercial-card>div>span{color:var(--muted)}.commercial-card dl{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0}.commercial-card dl div{padding:13px;background:#0e151d;border-radius:11px}.commercial-card dt{color:var(--muted);font-size:10px;text-transform:uppercase}.commercial-card dd{margin:6px 0 0;font-size:13px}.commercial-card output{min-height:18px;color:#ffab77;font-size:12px}
@media (max-width: 1180px) {
  .business-app {
    grid-template-columns: 210px 1fr;
  }
  .sidebar {
    padding-inline: 14px;
  }
  .device {
    grid-template-columns: 170px minmax(180px, 1fr) 120px 140px 45px;
  }
  .action {
    font-size: 12px;
  }
  .content {
    padding-inline: 25px;
  }
}
@media(max-width:650px){.trial-grid{grid-template-columns:1fr}.free-notice.trial-dialog{padding:28px 20px}.commercial-card dl{grid-template-columns:1fr}}
@media (max-width: 850px) {
  .header-actions {
    flex-wrap: wrap;
  }
  .business-app {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 18px;
    display: grid;
    grid-template-columns: 1fr auto;
  }
  .logo {
    padding: 0;
  }
  .sidebar nav {
    display: flex;
  }
  .sidebar nav button {
    font-size: 0;
    padding: 11px;
  }
  .sidebar nav button span {
    font-size: 20px;
  }
  .audits,
  .send {
    display: none;
  }
  .content {
    padding: 25px 18px 60px;
  }
  .content > header {
    align-items: flex-start;
  }
  .linked {
    display: none;
  }
  .device {
    grid-template-columns: 150px 1fr 45px;
  }
  .action.schedule,
  .action.code {
    display: none;
  }
  .progress-card ul {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  .content > header {
    display: grid;
  }
  .primary {
    width: 100%;
  }
  .progress-card > div:first-child {
    display: grid;
  }
  .progress-card ul {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .devices {
    padding: 14px;
  }
  .panel-title button {
    font-size: 0;
  }
  .device {
    grid-template-columns: 1fr 46px;
    min-height: 110px;
  }
  .action {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .percentage,
  .ring {
    grid-column: 2;
    grid-row: 1;
  }
  .free-notice {
    padding: 28px 22px;
  }
  .free-notice h2 {
    font-size: 26px;
  }
}

/* Sesión y pantallas funcionales */
[hidden] {
  display: none !important;
}

.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 75% 10%, rgba(255, 132, 39, 0.12), transparent 34%),
    var(--bg);
}

.auth-logo {
  position: absolute;
  top: 34px;
  left: 42px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
}

.auth-logo img {
  width: 58px;
  height: 58px;
}

.auth-logo span {
  display: grid;
  line-height: 1;
}

.auth-logo strong {
  font-size: 25px;
}

.auth-logo small {
  margin-top: 7px;
  color: var(--orange);
  font-weight: 800;
  letter-spacing: 0.2em;
}

.auth-card {
  width: min(560px, 100%);
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.auth-card > p,
.page > header p {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.auth-card h1 {
  margin: 0 0 14px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.04;
}

.auth-card > span,
.page > header span {
  color: var(--muted);
  line-height: 1.55;
}

.auth-card form {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.auth-card label,
.form-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.auth-card input,
.form-card input,
.form-card select {
  box-sizing: border-box;
  height: 50px;
  min-height: 50px;
  padding: 0 16px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  background: var(--panel-2);
  font: inherit;
}

.auth-card input:focus,
.form-card input:focus,
.form-card select:focus {
  border-color: var(--orange);
}

.auth-card button,
.primary,
.secondary,
.account-pending button,
.danger {
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.danger:disabled {
  cursor: wait;
  opacity: 0.55;
}

.auth-card button,
.primary,
.account-pending button {
  color: white;
  background: var(--orange);
}

.auth-card button:disabled,
.primary:disabled {
  cursor: default;
  opacity: 0.45;
}

.auth-card output,
#importMessage {
  min-height: 22px;
  color: var(--green);
  line-height: 1.4;
}

.page > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.page > header h1 {
  margin: 0 0 7px;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  letter-spacing: 0;
}

.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: var(--panel);
}

.account-pending {
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  padding: 20px 24px;
  border: 1px solid rgba(255, 132, 39, 0.45);
  border-radius: 20px;
  background: rgba(255, 132, 39, 0.08);
}

.account-pending:not([hidden]) {
  display: grid;
}

.account-pending h2,
.account-pending p {
  margin: 0;
}

.account-pending p {
  margin-top: 5px;
  color: var(--muted);
}

.form-card {
  display: grid;
  gap: 20px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.form-card .primary {
  justify-self: start;
}

.settings-card > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-card strong,
.settings-card small {
  display: block;
}

.settings-card small,
.muted,
.empty-copy {
  color: var(--muted);
}

.status-check {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--green);
  border-radius: 13px;
  background: rgba(45, 222, 161, 0.12);
}

.danger {
  justify-self: start;
  color: #ff6565;
  border: 1px solid rgba(255, 77, 79, 0.35);
  background: rgba(255, 77, 79, 0.1);
}

.loading {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: rgba(7, 12, 18, 0.72);
  backdrop-filter: blur(8px);
}

.loading .robot,
.account-pending .robot {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  color: var(--green);
  border: 2px solid currentColor;
  border-radius: 18px;
}

.loading .robot {
  animation: rovi-pulse 1s ease-in-out infinite alternate;
}

@keyframes rovi-pulse {
  to {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 0 28px rgba(45, 222, 161, 0.4);
  }
}

@media (max-width: 760px) {
  .auth-gate {
    align-items: start;
    padding: 120px 18px 30px;
  }
  .auth-logo {
    top: 26px;
    left: 24px;
  }
  .auth-card {
    padding: 30px 24px;
  }
  .page > header,
  .account-pending:not([hidden]) {
    display: grid;
  }
  .page > header h1 {
    font-size: 36px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* Paridad funcional con ROVi Business para iPad */
.panel-title > div,
.section-title,
.section-title > div:last-child,
.form-actions,
.device-tools,
.app-dialog footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.full-device {
  grid-template-columns: 190px minmax(220px, 1fr) minmax(130px, 170px) minmax(150px, 190px) auto 62px;
}

.identity em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.device-tools button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  cursor: pointer;
}

.device-tools .result-button {
  color: var(--green);
}

.device-tools .cancel-button {
  color: #ff6565;
}
.device-tools .send-audit-button {
  color: var(--orange);
  border-color: rgba(255, 138, 48, 0.45);
}
.schedule-list {
  display: grid;
  gap: 9px;
  max-height: min(430px, 55vh);
  overflow: auto;
}
.schedule-form {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}
.schedule-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.schedule-form input,
.schedule-form select {
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--raised);
  font: inherit;
}
.schedule-form output {
  color: var(--orange);
  font-size: 12px;
}
.schedule-form + .schedule-list {
  border-top: 1px solid var(--stroke);
  padding-top: 15px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--raised);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.schedule-row > span {
  grid-row: 1 / span 2;
  color: var(--orange);
  font-size: 19px;
}
.schedule-row strong {
  font-size: 13px;
}
.schedule-row small {
  color: var(--muted);
  font-size: 11px;
}

.drop-zone {
  position: relative;
  display: grid;
  min-height: 130px;
  place-content: center;
  justify-items: center;
  gap: 7px;
  color: var(--orange);
  border: 2px dashed rgba(255, 132, 39, 0.55);
  border-radius: 20px;
  background: rgba(255, 132, 39, 0.05);
  transition: 160ms ease;
}

.drop-zone.dragging {
  transform: scale(1.01);
  border-color: var(--green);
  background: rgba(45, 222, 161, 0.08);
}

.drop-zone span {
  color: var(--muted);
  font-size: 12px;
}

.drop-zone input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  opacity: 0;
}

.import-card > section {
  display: grid;
  gap: 20px;
}

.form-grid.compact {
  grid-template-columns: 1fr 1fr 160px;
}

.table-preview {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.table-preview table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.table-preview th,
.table-preview td {
  max-width: 260px;
  padding: 10px 13px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  text-align: left;
  text-overflow: ellipsis;
}

.table-preview th {
  color: var(--orange);
  background: var(--panel-2);
}

.form-card select[multiple] {
  min-height: 112px;
  padding: 8px;
}

.form-card select[multiple] option {
  padding: 7px 9px;
  border-radius: 7px;
}

.column-checks-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.column-checks-field legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.column-checks-field small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.column-checks {
  display: grid;
  max-height: 156px;
  min-height: 112px;
  gap: 7px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-2);
}

.column-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 7px 8px;
  color: var(--text);
  border-radius: 9px;
  font-weight: 700;
  cursor: pointer;
}

.column-checks label:has(input:checked) {
  color: var(--green);
  background: rgba(45, 214, 161, 0.1);
}

.column-checks input {
  min-height: auto;
  accent-color: var(--green);
}

.column-checks span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-card {
  display: grid;
  gap: 17px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(10, 18, 28, 0.48);
}

.sub-card h3,
.sub-card p {
  margin: 0;
}

.sub-card p {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  justify-content: space-between;
}

.section-title select {
  min-width: 180px;
}

.filter-card footer {
  display: flex;
  justify-content: space-between;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.filter-card footer strong {
  color: var(--orange);
  font-size: 22px;
}

.filter-overlap { display: block; margin-top: 12px; color: #f0ae66; font-size: 12px; font-weight: 650; }

#activeFilters {
  display: grid;
  gap: 12px;
}

.excel-filter {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.excel-filter > header,
.excel-filter .filter-commands {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.excel-filter > header span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.excel-filter .filter-name {
  min-width: 0;
  width: min(300px, 62%);
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 750;
  padding: 4px 0;
}

.excel-filter .filter-name:focus { outline: 0; border-bottom: 1px solid var(--orange); }
.excel-filter .filter-column { margin: 0 14px 10px; color: var(--muted); font-size: 12px; }

.excel-filter button {
  color: var(--orange);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.excel-filter > input {
  width: calc(100% - 28px);
  margin: 0 14px;
}

.filter-values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  max-height: 250px;
  padding: 0 14px 14px;
  overflow: auto;
}

.filter-values label {
  display: flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  padding: 6px;
  color: var(--text);
  font-weight: 400;
}

.filter-values input {
  min-height: auto;
}

.form-actions {
  justify-content: flex-end;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 20px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}

.result-card strong,
.result-card small,
.result-card em {
  display: block;
}

.result-card small,
.result-card em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.empty-state {
  padding: 40px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 18px;
  text-align: center;
}

.app-dialog {
  width: min(620px, calc(100% - 32px));
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.app-dialog::backdrop {
  background: rgba(3, 8, 13, 0.78);
  backdrop-filter: blur(7px);
}

.app-dialog form {
  display: grid;
  gap: 18px;
  padding: 8px;
}

.app-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-dialog header p,
.app-dialog header h2 {
  margin: 0;
}

.app-dialog header p {
  color: var(--orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.app-dialog header h2 {
  margin-top: 6px;
  font-size: 26px;
}

.app-dialog header > button {
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}

.app-dialog label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.app-dialog select,
.app-dialog input {
  min-height: 48px;
  padding: 0 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
}

.app-dialog footer {
  justify-content: flex-end;
}

.big-code {
  padding: 25px;
  color: var(--orange);
  border: 1px dashed var(--orange);
  border-radius: 16px;
  font: 800 34px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  letter-spacing: 0.06em;
}

.result-dialog {
  width: min(820px, calc(100% - 32px));
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.summary-cards article {
  padding: 15px;
  border: 1px solid currentColor;
  border-radius: 14px;
}

.summary-cards span,
.summary-cards strong {
  display: block;
}

.summary-cards span {
  font-size: 11px;
}

.summary-cards strong {
  margin-top: 8px;
  color: var(--text);
  font-size: 27px;
}

.result-details {
  padding: 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.original-availability {
  display: grid;
  gap: 5px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
}

.original-availability strong,
.original-availability small {
  display: block;
}

.original-availability small {
  color: var(--muted);
}

.original-availability.available strong {
  color: var(--mint);
}

.original-availability.missing strong {
  color: var(--orange);
}

@media (max-width: 1200px) {
  .devices {
    overflow-x: auto;
  }
  .full-device {
    min-width: 1040px;
  }
}

@media (max-width: 760px) {
  .form-grid.compact,
  .summary-cards {
    grid-template-columns: 1fr;
  }
  .section-title,
  .section-title > div:last-child {
    align-items: stretch;
    flex-direction: column;
  }
  .results-grid {
    grid-template-columns: 1fr;
  }
}


.preparation-note {
  margin: 0 0 14px;
  color: #9aaabe;
  font-size: 13px;
  line-height: 1.45;
}
.start-audit-dialog { max-width: 520px; }
.start-audit-dialog > form > p { color: #c6d0d9; line-height: 1.55; }
.start-audit-summary {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
  margin: 20px 0;
}
.start-audit-summary div { background: #101923; border: 1px solid var(--stroke); border-radius: 12px; padding: 12px; }
.start-audit-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 5px; }
.start-audit-summary dd { margin: 0; color: var(--text); font-weight: 700; font-size: 13px; overflow-wrap: anywhere; }
.schedule-row { cursor: default; }
.schedule-row:hover { border-color: var(--stroke); background: var(--panel); }
@media (max-width: 620px) { .start-audit-summary { grid-template-columns: 1fr; } }


.device-setup {
  margin: 0 0 20px; padding: 22px; border: 1px solid #8b4d1e; border-radius: 18px;
  background: linear-gradient(120deg, #261b15, var(--panel)); display: grid;
  grid-template-columns: 1fr minmax(150px, 210px) auto; gap: 18px; align-items: end;
}
.device-setup p { margin: 0 0 7px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.device-setup h2 { margin: 0 0 7px; font-size: 22px; }
.device-setup span { color: var(--muted); font-size: 13px; line-height: 1.45; }
.device-setup label { display: grid; gap: 7px; color: #c6d0d9; font-size: 12px; font-weight: 700; }
.device-setup select { min-height: 44px; }
.device-setup output { grid-column: 1 / -1; color: var(--muted); min-height: 0; }
@media (max-width: 760px) { .device-setup { grid-template-columns: 1fr; align-items: stretch; } .device-setup button { width: 100%; } }


.sidebar-actions { margin-top: auto; display: grid; gap: 10px; }
.sidebar nav button:disabled { cursor: not-allowed; opacity: .42; }
.sidebar-actions .send { margin-top: 0; }
.side-signout { border: 1px solid var(--stroke); border-radius: 12px; background: transparent; color: var(--muted); padding: 12px; font: inherit; font-size: 12px; cursor: pointer; }
.side-signout:hover { color: var(--text); border-color: #526474; }
