:root {
  --bg-primary: #000000;
  --bg-card: #121212;
  --bg-input: #0b0e14;
  --border: rgba(255, 49, 49, 0.22);
  --text-secondary: #a0a0b0;
  --text-muted: #6c6c80;
  --accent: #ff3131;
  --accent-glow: rgba(255, 49, 49, 0.35);
  --panel-glow: 0 0 10px rgba(255, 49, 49, 0.35);
  --danger: #ff5252;
  --danger-bg: rgba(255, 82, 82, 0.1);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.55);
  --transition: 0.15s ease;
  --font: "Segoe UI", system-ui, sans-serif;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: #e8e8f0;
  padding: 10px 12px;
}

.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }

.btn-krasny-primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 10px var(--accent-glow);
}

.btn-krasny-primary:hover { filter: brightness(1.08); color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.stat-value { font-size: 24px; font-weight: 700; color: #e8e8f0; }
.stat-label { font-size: 12px; color: var(--text-muted); }

.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.badge-success { background: rgba(0, 230, 118, 0.15); color: #00e676; }
.badge-danger { background: rgba(255, 82, 82, 0.15); color: #ff5252; }
.badge-muted { background: rgba(92, 92, 122, 0.2); color: #8888a8; }
.badge-info { background: rgba(255, 49, 49, 0.15); color: #ff6b6b; }

.table-container { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; }
.table-container table { width: 100%; border-collapse: collapse; }
.table-container th, .table-container td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 13px; }
.table-container th { color: #8888a8; font-weight: 600; text-transform: uppercase; font-size: 11px; letter-spacing: 0.05em; }

.search-bar { position: relative; }
.search-bar input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: #e8e8f0;
  padding: 10px 12px 10px 36px;
}
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); opacity: 0.5; }

.toast-container { position: fixed; top: 16px; right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: #e8e8f0;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.app-modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center; z-index: 13000;
}
.app-modal {
  width: min(480px, 92vw);
  background: var(--bg-card);
  border: 1px solid rgba(255, 49, 49, 0.35);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-lg), var(--panel-glow);
}
.app-modal h3 {
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 49, 49, 0.2);
  color: #e8e8f0;
  font-size: 17px;
}
.app-modal-footer { margin-top: 16px; display: flex; justify-content: flex-end; gap: 8px; }

.panel-devices-wrap { padding: 0; color: #e8e8f0; max-width: 100%; min-width: 0; }
.panel-devices-wrap .stats { display: flex; gap: 16px; align-items: center; margin-bottom: 8px; color: #8888a8; flex-wrap: wrap; }
.devices-table-hint {
  display: none;
  margin: 0 0 8px;
  font-size: 12px;
}
@media (max-width: 1280px) {
  .devices-table-hint { display: block; }
}
.devices-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  scrollbar-gutter: stable;
}
.panel-devices-wrap table.devices-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #e8e8f0;
  background: transparent;
  border: none;
  border-radius: 0;
  table-layout: auto;
}
.panel-devices-wrap col.col-build { width: 130px; }
.panel-devices-wrap col.col-nick { width: 210px; }
.panel-devices-wrap col.col-owner { width: 110px; }
.panel-devices-wrap col.col-ip { width: 120px; }
.panel-devices-wrap col.col-country { width: 100px; }
.panel-devices-wrap col.col-android { width: 108px; }
.panel-devices-wrap col.col-apk { width: 64px; }
.panel-devices-wrap col.col-app { width: 140px; }
.panel-devices-wrap col.col-status { width: 82px; }
.panel-devices-wrap col.col-a11y { width: 72px; }
.panel-devices-wrap col.col-first { width: 148px; }
.panel-devices-wrap col.col-actions { width: 168px; }
.panel-devices-wrap th,
.panel-devices-wrap td {
  padding: 9px 11px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: #e8e8f0;
  vertical-align: middle;
  white-space: nowrap;
}
.panel-devices-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-card);
  box-shadow: 0 1px 0 var(--border);
}
.panel-devices-wrap th {
  color: #8888a8;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.panel-devices-wrap .mono { font-family: ui-monospace, monospace; font-size: 12px; }
.panel-devices-wrap .cell-ellipsis {
  max-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.panel-devices-wrap .col-nick,
.panel-devices-wrap td.col-nick {
  white-space: normal;
  max-width: none;
}
.panel-devices-wrap .col-actions,
.panel-devices-wrap td.col-actions {
  position: sticky;
  right: 0;
  z-index: 3;
  background: var(--bg-card);
  box-shadow: -6px 0 10px rgba(0, 0, 0, 0.35);
  max-width: none;
}
.panel-devices-wrap thead th.col-actions {
  z-index: 4;
}
.panel-devices-wrap .actions { white-space: nowrap; }
.panel-devices-wrap .device-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.panel-devices-wrap .device-row-icon-btn {
  padding: 5px 8px;
  min-width: 34px;
  line-height: 1;
}
.panel-devices-wrap .foreground-app-cell {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  color: #b8b8d0;
  cursor: default;
}
.panel-devices-wrap .col-first { font-size: 12px; }
.panel-devices-wrap .country-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
}
.panel-devices-wrap .country-flag img { flex-shrink: 0; }
.panel-devices-wrap .country-name {
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1200px) {
  .panel-devices-wrap .country-name { display: none; }
  .panel-devices-wrap col.col-country { width: 52px; }
}
@media (max-width: 992px) {
  .panel-devices-wrap .col-optional-md { display: none; }
}
@media (max-width: 860px) {
  .panel-devices-wrap .col-optional-lg { display: none; }
  .panel-devices-wrap col.col-nick { width: 180px; }
}
@media (max-width: 720px) {
  .panel-devices-wrap .col-optional-xl { display: none; }
}
.device-nick-cell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.devices-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.devices-filter-bar { display: flex; flex-wrap: wrap; gap: 6px; }
.devices-filter-bar .btn.is-active { background: rgba(255, 49, 49, 0.2); border-color: #ff3131; color: #fff; box-shadow: var(--panel-glow); }
.devices-clear-history { margin-left: 4px; border-color: #5a3040; color: #f0a0a8; }
.devices-clear-history:hover { background: #3a1820; border-color: #c05060; color: #fff; }
.device-nick-input {
  width: 100%;
  min-width: 0;
  padding: 5px 8px;
  font-size: 12px;
  height: 32px;
}
.device-nick-save-btn {
  padding: 5px 9px;
  min-width: 34px;
}

.status { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.status.online, .status.streaming { color: #00e676; }
.status.offline { color: #f0a500; }

.view { display: none; }
.view.active { display: block; }

.admin-header { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-header-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; align-items: center; }
.admin-conn-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 148px;
  padding: 6px 10px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
  line-height: 1.2;
}
.admin-conn-card.is-offline { opacity: 0.72; }
.admin-conn-row,
.admin-conn-panel-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.admin-conn-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8888a8;
}
.admin-conn-ping {
  font-size: 13px;
  font-weight: 600;
  color: #e8e8f0;
  font-variant-numeric: tabular-nums;
}
.admin-conn-panel-ping {
  font-size: 11px;
  color: #b0b0c8;
  font-variant-numeric: tabular-nums;
}
.admin-conn-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-conn-meter-track {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-card);
  overflow: hidden;
}
.admin-conn-meter-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #5a5a78;
  transition: width 0.35s ease, background-color 0.35s ease;
}
.admin-conn-quality {
  min-width: 58px;
  text-align: right;
  font-size: 10px;
  color: #a0a0b8;
}
.admin-conn-card.q-excellent .admin-conn-meter-fill { background: #00e676; }
.admin-conn-card.q-excellent .admin-conn-quality,
.admin-conn-card.q-excellent .admin-conn-ping { color: #00e676; }
.admin-conn-card.q-good .admin-conn-meter-fill { background: #7cffb2; }
.admin-conn-card.q-good .admin-conn-quality,
.admin-conn-card.q-good .admin-conn-ping { color: #7cffb2; }
.admin-conn-card.q-fair .admin-conn-meter-fill { background: #f0c040; }
.admin-conn-card.q-fair .admin-conn-quality,
.admin-conn-card.q-fair .admin-conn-ping { color: #f0c040; }
.admin-conn-card.q-poor .admin-conn-meter-fill { background: #f0a500; }
.admin-conn-card.q-poor .admin-conn-quality,
.admin-conn-card.q-poor .admin-conn-ping { color: #f0a500; }
.admin-conn-card.q-bad .admin-conn-meter-fill { background: #ff5252; }
.admin-conn-card.q-bad .admin-conn-quality,
.admin-conn-card.q-bad .admin-conn-ping { color: #ff5252; }
.lock-credential-card { margin-bottom: 0; }
.lock-credential-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.lock-cred-field { min-width: 0; }
.lock-cred-field-value { flex: 2 1 0; }
.lock-cred-value {
  margin-top: 4px;
  color: #e8e8f0;
  font-size: 15px;
  word-break: break-all;
}
.lock-cred-value.mono {
  overflow-x: auto;
  white-space: nowrap;
  word-break: normal;
  scrollbar-width: thin;
}
.lock-cred-hint { margin: 10px 0 0; font-size: 12px; }

.admin-side-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
  align-items: stretch;
}

#deviceAdminView .admin-side-cards {
  display: none;
}
.admin-side-cards > .admin-card {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.admin-side-cards-slot {
  min-height: 1px;
  border: 1px dashed transparent;
  border-radius: 10px;
}
.admin-side-cards .overlay-select-label,
.admin-side-cards .overlay-select-label select {
  min-width: 0;
  width: 100%;
}
.admin-side-cards .overlay-model-row,
.admin-side-cards .screen-mode-row {
  flex-direction: column;
  align-items: stretch;
}
.admin-side-cards .overlay-model-row .btn {
  width: 100%;
}
.admin-side-cards .lock-credential-card {
  grid-column: 1 / -1;
  width: 100%;
}
.admin-side-cards .lock-credential-grid {
  display: grid;
  grid-template-columns: minmax(88px, 0.75fr) minmax(0, 2fr) minmax(120px, 1fr);
  gap: 16px;
  align-items: start;
}
.admin-side-cards .lock-cred-hint {
  margin-top: 10px;
}
/* Pattern SVG visualization */
.pattern-svg {
  display: block;
  margin: 6px auto 2px;
  max-width: 120px;
  max-height: 120px;
}
.pattern-line {
  fill: none;
  stroke: #2196f3;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}
.pattern-dot--idle {
  fill: rgba(0, 0, 0, 0.15);
  stroke: rgba(0, 0, 0, 0.1);
  stroke-width: 1;
}
.pattern-dot--active {
  fill: #2196f3;
  stroke: rgba(33, 150, 243, 0.3);
  stroke-width: 3;
}
.pattern-order {
  fill: #fff;
  font-size: 9px;
  font-weight: 700;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}
.admin-side-cards .overlay-lock-hint,
.admin-side-cards .lock-cred-hint,
.admin-side-cards .screen-controls-hint,
.admin-side-cards .keylog-side-hint,
.admin-side-cards .perm-hint,
.admin-side-cards .adb-stealth-hint {
  margin-top: auto;
  padding-top: 8px;
}
.adb-stealth-card .adb-stealth-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adb-stealth-card .adb-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
}
.adb-stealth-card .adb-label .form-input {
  width: 100%;
}
.adb-stealth-hint {
  margin: 10px 0 0;
  font-size: 12px;
}
.permissions-card .perm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #22223a;
}
.permissions-card .perm-row:last-of-type {
  border-bottom: none;
}
.permissions-card .perm-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.permissions-card .perm-name {
  font-size: 13px;
  color: #e8e8f0;
}
.permissions-card .perm-status {
  font-size: 11px;
  width: fit-content;
}
.permissions-card .perm-hint {
  margin: 8px 0 0;
  font-size: 12px;
}
.permissions-card .perm-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.media-float-modal {
  position: fixed;
  z-index: 13000;
  width: min(360px, 92vw);
  background: var(--bg-card);
  border: 1px solid rgba(255, 49, 49, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--panel-glow);
  overflow: hidden;
}
#cameraWatchModal {
  right: 24px;
  bottom: 120px;
}
#micWatchModal {
  right: 24px;
  bottom: 120px;
}
.admin-card-float-panel {
  width: min(400px, 92vw);
  max-height: min(88vh, 900px);
}
.admin-card-float-panel.admin-card-float--wide {
  width: min(720px, 96vw);
}
.admin-card-float-body {
  overflow: auto;
  max-height: calc(88vh - 52px);
  padding: 10px 12px 14px;
}
.admin-card-float-body .admin-card--floating,
.admin-card-float-body .krasny-panel.admin-card--floating {
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
}
.admin-card-float-body .admin-card-head-row,
.admin-card-float-body .krasny-panel-head {
  display: none;
}
.admin-card-float-body .admin-comms-head > .admin-card-head-row {
  display: none;
}
.admin-card-float-body .keylog-side-feed {
  max-height: min(50vh, 420px);
}
.admin-overlay-float-bundle {

  display: flex;

  flex-direction: column;

  gap: 12px;

  max-height: min(78vh, 820px);

  overflow-y: auto;

  min-width: 0;

}



.admin-card-float-body .admin-overlay-float-bundle .admin-card,

.admin-card-float-body .admin-overlay-float-bundle .krasny-card {

  margin: 0;

}



.admin-card-float-body .overlay-op-feed {
  max-height: min(40vh, 320px);
}
.admin-card-float--wide .admin-card-float-body .device-frame-screen {
  height: min(70vh, 680px) !important;
}
.media-float-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-input);
  border-bottom: 1px solid var(--border);
  cursor: move;
  user-select: none;
}
.media-float-title {
  font-size: 14px;
  font-weight: 600;
  color: #e8e8f0;
}
.media-float-close {
  cursor: pointer;
  min-width: 32px;
  padding: 4px 8px;
}
.media-float-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.media-float-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8888a8;
}
.media-float-preview {
  background: #0d0d18;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.media-float-preview-camera {
  aspect-ratio: 3 / 4;
  max-height: 320px;
}
.camera-watch-frame-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.media-float-preview-camera img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform-origin: center center;
  transition: transform 0.15s ease;
}
.media-float-preview-camera img.is-rotated-side {
  width: auto;
  height: 100%;
  max-width: 100%;
}
.camera-rotate-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.camera-rotate-label {
  font-size: 12px;
  color: #8888a8;
  margin-right: 2px;
}
.camera-rotate-value {
  font-size: 12px;
  color: #c8c8e0;
  min-width: 2.5em;
}
.media-float-preview-mic {
  padding: 16px;
  flex-direction: column;
  gap: 12px;
}
.media-float-placeholder {
  color: #8888a8;
  font-size: 12px;
  text-align: center;
  padding: 12px;
  margin: 0;
}
.mic-level-bar {
  width: 100%;
  height: 10px;
  background: #22223a;
  border-radius: 999px;
  overflow: hidden;
}
.mic-level-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #00e676, #69f0ae);
  transition: width 0.08s linear;
}
.screen-mode-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8888a8;
  width: 100%;
}
.screen-mode-label select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #e8e8f0;
  padding: 8px;
  border-radius: 6px;
  width: 100%;
}
.screen-controls-hint {
  margin: 10px 0 0;
  font-size: 12px;
}
@media (max-width: 1400px) {
  .admin-side-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-side-cards-slot { display: none; }
}
@media (max-width: 720px) {
  .admin-side-cards { grid-template-columns: 1fr; }
  .admin-side-cards .lock-credential-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .lock-cred-value.mono {
    white-space: normal;
    word-break: break-all;
  }
}

.app-modal-wide {
  width: min(1080px, 96vw);
  max-height: 92vh;
  overflow: auto;
}
.overlay-builder-modal .app-modal-body {
  max-height: calc(92vh - 120px);
  overflow: auto;
}

.overlay-builder { margin-top: 14px; }
.ob-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  margin-bottom: 12px;
}
.ob-hint { margin: 0; font-size: 12px; flex: 1 1 200px; }
.ob-layout {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 220px;
  gap: 14px;
  min-height: 420px;
}
.ob-palette,
.ob-props {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  min-width: 0;
}
.ob-palette h4,
.ob-props h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8888a8;
}
.ob-palette-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ob-palette-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  color: #e8e8f0;
  font-size: 12px;
  cursor: grab;
  text-align: left;
}
.ob-palette-item:hover { border-color: #3d8bff; }
.ob-palette-item.is-dragging { opacity: 0.5; }
.ob-palette-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #252538;
  color: #8ab4f8;
  font-size: 12px;
  font-weight: 700;
}
.ob-canvas-wrap {
  display: flex;
  justify-content: center;
  align-items: stretch;
  min-width: 0;
}
.ob-phone {
  width: min(280px, 100%);
  background: #101018;
  border: 3px solid #3a3a52;
  border-radius: 22px;
  padding: 10px;
  box-shadow: inset 0 0 0 1px #22223a;
}
.ob-phone-screen {
  position: relative;
  min-height: 420px;
  border-radius: 14px;
  border: 1px solid #333;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px 48px;
  transition: box-shadow 0.15s ease;
}
.ob-phone-screen.is-dragover {
  box-shadow: inset 0 0 0 2px rgba(61, 139, 255, 0.7);
}
.ob-canvas {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ob-canvas-empty {
  margin: 0;
  color: #5c5c7a;
  font-size: 12px;
  text-align: center;
}
.ob-block {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 6px 4px;
  border: 1px dashed transparent;
  border-radius: 8px;
  cursor: grab;
}
.ob-block:hover { border-color: #3a3a52; }
.ob-block.is-selected {
  border-color: #3d8bff;
  background: rgba(61, 139, 255, 0.08);
}
.ob-block.is-dragging { opacity: 0.45; }
.ob-block-remove {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border: none;
  border-radius: 50%;
  background: #3a2030;
  color: #ff8a80;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  padding: 0;
}
.ob-block:hover .ob-block-remove,
.ob-block.is-selected .ob-block-remove { opacity: 1; }
.ob-prev-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #252538;
  color: #8888a8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.ob-prev-spinner {
  border: 3px solid #8ab4f8;
  border-top-color: transparent;
  border-radius: 50%;
  animation: ob-spin 1s linear infinite;
  margin: 4px auto;
}
@keyframes ob-spin { to { transform: rotate(360deg); } }
.ob-prev-title {
  font-weight: 500;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}
.ob-prev-text {
  text-align: center;
  line-height: 1.4;
  max-width: 240px;
  margin: 0 auto;
  word-break: break-word;
}
.ob-prev-bar {
  width: min(200px, 80%);
  height: 4px;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px auto;
}
.ob-prev-bar > i {
  display: block;
  height: 100%;
  width: 35%;
  border-radius: 999px;
  animation: ob-load 2.4s ease-in-out infinite;
}
@keyframes ob-load {
  0% { width: 8%; margin-left: 0; }
  50% { width: 55%; margin-left: 20%; }
  100% { width: 12%; margin-left: 78%; }
}
.ob-prev-pct {
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.ob-prev-footer {
  text-align: center;
  opacity: 0.95;
}
.ob-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  font-size: 12px;
  color: #8888a8;
}
.ob-field input[type="color"] {
  width: 100%;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-input);
  cursor: pointer;
}
.ob-field .form-input { width: 100%; }
.ob-field input[type="range"] { width: 100%; }
.ob-size-val { color: #e8e8f0; font-size: 11px; }
.ob-props-title {
  font-size: 14px;
  color: #e8e8f0;
  margin-bottom: 12px;
  font-weight: 600;
}
.ob-props-body { font-size: 13px; }
.ob-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 12px;
  color: #e8e8f0;
  cursor: pointer;
}
.ob-props-remove { width: 100%; margin-top: 8px; }

@media (max-width: 900px) {
  .ob-layout {
    grid-template-columns: 1fr;
  }
  .ob-palette-list {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .ob-palette-item { width: auto; flex: 1 1 120px; }
}
.admin-status-card { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: 8px; }
.admin-stream-limit-notice {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #6a4a18;
  background: #2a2010;
  color: #f0c040;
  font-size: 12px;
  line-height: 1.35;
}
.admin-stream-limit-notice.is-expired {
  border-color: #6a3038;
  background: #2a1418;
  color: #f0a0a8;
}
.screen-controls.admin-card .control-row { margin-bottom: 10px; }
.screen-controls.admin-card .control-row:last-of-type { margin-bottom: 0; }
.screen-viewer { position: relative; background: #0d0d18; border: 1px solid var(--border); border-radius: 10px; min-height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.stream-dual-view { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 16px; }
@media (max-width: 992px) { .stream-dual-view { grid-template-columns: 1fr; } }
.overlay-simple-controls.hidden,
.overlay-op-basic-controls.hidden,
.overlay-operacional-panel.hidden { display: none !important; }
.overlay-op-basic-controls { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.overlay-op-mode-row { gap: 14px; flex-wrap: wrap; }
.overlay-op-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #c8c8d8; cursor: pointer; }
.overlay-op-actions { flex-wrap: wrap; align-items: center; gap: 8px; }
.overlay-op-apps { display: flex; flex-direction: column; gap: 8px; }
.overlay-op-apps.hidden { display: none !important; }
.overlay-op-apps-list {
  max-height: 140px;
  overflow: auto;
  border: 1px solid #2a2a45;
  border-radius: 8px;
  padding: 6px;
  background: #0d0d18;
}
.overlay-op-app-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 2px;
  font-size: 12px;
  color: #c8c8d8;
}
.overlay-op-app-item .mono { font-size: 10px; color: #8888a8; }
.overlay-operacional-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: overlayOpPanelIn 0.2s ease-out;
}
@keyframes overlayOpPanelIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.overlay-op-section .info-label { display: block; margin-bottom: 6px; }
.overlay-op-screens, .overlay-op-facial { display: flex; flex-wrap: wrap; gap: 6px; }
.overlay-op-screens .btn.is-active,
.overlay-op-facial .btn.is-active {
  border-color: #3d8bff;
  color: #fff;
  background: #1a2740;
}
.overlay-op-feed {
  max-height: 220px;
  overflow: auto;
  border: 1px solid #2a2a45;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, #0f0f18 0%, #0a0a12 100%);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overlay-op-feed article {
  border-bottom: 1px solid #22223a;
  padding: 6px 0;
}
.overlay-op-feed article:last-child { border-bottom: 0; }
.overlay-op-feed header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.overlay-op-feed pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 11px;
  color: #a8a8c8;
}
.overlay-op-chat-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.overlay-op-chat-row .form-input { flex: 1 1 120px; min-width: 0; }
.overlay-op-hint { margin: 0; font-size: 12px; }
.overlay-kind-picker {
  border: 1px solid #2a2a45;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.overlay-kind-picker legend { margin-bottom: 4px; padding: 0; }
.overlay-kind-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #c8c8d8; cursor: pointer; }
.ob-pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}
.ob-pick-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
  color: #e8e8f0;
  cursor: pointer;
}
.ob-pick-card strong { font-size: 14px; }
.ob-pick-card span { font-size: 12px; color: #9aa0b8; }
.ob-pick-card:hover { border-color: #ff3131; }
.ob-pick-card.is-active {
  border-color: #ff3131;
  box-shadow: 0 0 0 1px rgba(255, 49, 49, 0.35);
  background: rgba(255, 49, 49, 0.08);
}
.ob-pick-card.is-locked,
.ob-pick-card:disabled {
  cursor: default;
  opacity: 0.85;
}
.overlay-mixed-warn {
  margin: 0 0 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  color: #ffcc80;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
}
.admin-card-float-panel.admin-card-float--xl {
  width: min(960px, 96vw);
}
.admin-card-float-body .device-apps-card {
  width: auto;
  max-height: none;
  overflow: visible;
}
.app-inject-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 14px;
  margin: 0 0 12px;
}
.app-inject-compact .app-lock-pkg,
.app-inject-compact .app-lock-status { margin: 0; }
.app-inject-results details {
  margin-top: 14px;
}
.app-inject-results summary {
  cursor: pointer;
  color: #c8c8e0;
  font-size: 13px;
}
.keylog-side-apps {
  margin-top: 10px;
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.keylog-side-apps .keylog-apps-body {
  max-height: min(28vh, 240px);
  overflow: auto;
}
.op-chat-msg {
  max-width: 92%;
  padding: 8px 12px;
  border-radius: 14px;
  line-height: 1.4;
}
.op-chat-msg.them {
  align-self: flex-start;
  background: #1a2740;
  border-bottom-left-radius: 4px;
}
.op-chat-msg.me {
  align-self: flex-end;
  background: rgba(138,180,248,0.18);
  border: 1px solid rgba(138,180,248,0.35);
  border-bottom-right-radius: 4px;
}
.op-chat-meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: 10px; }
.op-chat-label { font-weight: 600; color: #c8c8e0; }
.op-chat-text { color: #e8e8f0; word-break: break-word; white-space: pre-wrap; }
.ob-op-tabs { flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.ob-op-tab-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 auto; }
.ob-op-type-badge {
  font-size: 10px;
  color: #8ab4f8;
  text-transform: lowercase;
  margin-left: 4px;
}
.ob-op-type, .ob-op-name { margin: 0; }
.ob-fixed-preview { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px; width: 100%; }
.ob-prev-chat { align-items: stretch; text-align: left; padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid #2a2a38; background: #0e0e12; }
.ob-prev-chat-head { display: flex; align-items: center; gap: 10px; padding: 12px; border-bottom: 1px solid #2a2a38; }
.ob-prev-chat-meta { flex: 1; min-width: 0; }
.ob-prev-chat-sub { font-size: 11px; color: #81c995; margin-top: 2px; }
.ob-prev-chat-msgs { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 120px; background: #0a0a0f; }
.ob-chat-avatar, .ob-chat-avatar-preview { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: #1e1e28; border: 2px solid #8ab4f8; }
.ob-chat-avatar-empty { display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #9aa0a6; }
.ob-chat-config { display: flex; flex-direction: column; gap: 8px; padding: 4px 0; }
.ob-chat-config .ob-field { margin: 0; }
.ob-chat-avatar-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-chat-bubble {
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 12px;
  max-width: 90%;
}
.ob-chat-bubble.them { align-self: flex-start; background: #1e1e1e; }
.ob-chat-bubble.me { align-self: flex-end; background: #8ab4f8; color: #0b0b0f; }
.ob-facial-visual {
  width: 100%;
  max-width: 220px;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  padding: 16px;
  background: linear-gradient(180deg, #16161e 0%, #0e0e12 100%);
  border: 1px solid #2a2a38;
  border-radius: 16px;
}
.ob-facial-visual .kr-facial-img {
  width: 100%;
  max-width: 140px;
  height: auto;
  display: block;
  object-fit: contain;
}
.ob-facial-visual .kr-facial-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #303134;
  border-top-color: #8ab4f8;
  border-radius: 50%;
  animation: spin 0.85s linear infinite;
}
.ob-palette-fixed { padding: 8px; font-size: 12px; }
.device-frame-wrap { min-width: 0; }
.device-frame-label { font-size: 12px; color: #8888a8; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.device-frame-badge { font-size: 10px; color: #3d8bff; text-transform: lowercase; }
.remote-active-badge { color: #00e676; background: rgba(0,230,118,0.12); border: 1px solid rgba(0,230,118,0.35); border-radius: 999px; padding: 2px 8px; letter-spacing: 0.04em; }
.device-frame-stage { position: relative; }
.device-frame { background: #101018; border: 3px solid #3a3a52; border-radius: 18px; padding: 10px; box-shadow: inset 0 0 0 1px #22223a, 0 8px 24px rgba(0,0,0,0.35); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.device-frame.remote-control-on { border-color: #00c853; box-shadow: inset 0 0 0 1px #1b5e20, 0 8px 24px rgba(0,200,83,0.2); }
.device-frame-skeleton { border-color: #2f5f9e; }
.device-frame-bezel { background: #080810; border: 2px solid #252538; border-radius: 12px; padding: 6px; }
.device-frame-screen { position: relative; width: 100%; max-height: 70vh; background: #000; border: 1px solid #333; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 9 / 16; }
.device-frame-screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.device-frame-skeleton .device-frame-screen img { object-fit: cover; }
.screen-off-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #000;
  color: #c8c8d8;
  text-align: center;
  pointer-events: none;
}
.screen-off-overlay.hidden { display: none !important; }
.screen-off-icon {
  font-size: 28px;
  opacity: 0.7;
  line-height: 1;
}
.screen-off-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8aa8;
}
.device-frame-screen.is-screen-off img {
  visibility: hidden;
}
.device-frame-placeholder { color: #5c5c7a; padding: 16px; text-align: center; font-size: 13px; margin: 0; }
.device-frame-size { margin-top: 6px; font-size: 11px; color: #666688; text-align: center; }
.screen-viewer img { max-width: 100%; max-height: 70vh; display: block; }
.screen-input-layer { position: absolute; inset: 0; cursor: crosshair; z-index: 2; touch-action: none; }
.screen-input-layer.hidden { display: none; }
.screen-input-layer.active { display: block; background: rgba(0,200,83,0.04); box-shadow: inset 0 0 0 2px rgba(0,200,83,0.35); }
.screen-input-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  pointer-events: none;
  font-size: 11px;
  color: #dff7e8;
  background: rgba(8, 20, 12, 0.78);
  border: 1px solid rgba(0,200,83,0.4);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  opacity: 0.95;
}
.stream-fab-dock {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 42px;
  z-index: 20;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  pointer-events: none;
}
.stream-fab-dock > * { pointer-events: auto; }
.stream-fab-dock .stream-fab,
.stream-fab-dock .stream-fab-menu {
  pointer-events: auto;
  position: relative;
  z-index: 21;
}
.stream-fab-side {
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  max-width: 46%;
}
.stream-fab-left { align-items: flex-start; }
.stream-fab-right { align-items: flex-end; }
.stream-fab-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.stream-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #3a3a52;
  background: rgba(18, 18, 30, 0.92);
  color: #e8e8f0;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  backdrop-filter: blur(8px);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.stream-fab:hover:not(:disabled) { background: #1c1c32; border-color: #5a5a78; transform: translateY(-1px); }
.stream-fab:disabled { opacity: 0.45; cursor: not-allowed; }
.stream-fab-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #a8a8c8;
}
.stream-fab-remote.is-active {
  background: rgba(0, 200, 83, 0.18);
  border-color: #00c853;
  color: #b9f6ca;
}
.stream-fab-remote.is-active .stream-fab-icon { color: #00e676; }
.stream-fab-wake .stream-fab-icon { color: #ffd54f; }
.stream-fab-lock .stream-fab-icon { color: #ef9a9a; }
.stream-fab-vol .stream-fab-icon { color: #90caf9; }
.stream-fab-silent .stream-fab-icon { color: #ce93d8; }
.stream-fab-vibrate .stream-fab-icon { color: #ffab91; }
.stream-fab-nav { padding: 8px 11px; }
.stream-fab-status {
  font-size: 11px;
  color: #8888a8;
  background: rgba(12,12,20,0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.stream-fab-status:empty { display: none; }
.stream-fab-status.error {
  color: #ff8a80;
  border-color: rgba(255,82,82,0.55);
  background: rgba(60, 12, 12, 0.9);
  max-width: 220px;
  white-space: normal;
}
#screenPlaceholder { color: #5c5c7a; padding: 24px; text-align: center; }
.hidden { display: none !important; }
.input-status.ok { color: #00e676; }
.input-status.error { color: #ff5252; }
.input-feedback { position: absolute; width: 14px; height: 14px; border-radius: 50%; background: rgba(0,200,83,0.75); border: 2px solid #fff; transform: translate(-50%,-50%); pointer-events: none; z-index: 3; }

.device-info-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.device-info-modal.hidden,
.device-info-modal.hidden .device-info-backdrop {
  display: none !important;
}
.device-info-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 0;
}
.device-info-card {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid rgba(255, 49, 49, 0.35);
  border-radius: var(--radius-lg);
  width: min(720px, 94vw);
  max-height: 88vh;
  overflow: auto;
  box-shadow: var(--shadow-lg), var(--panel-glow);
}
.device-info-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.device-info-header h2 {
  margin: 0;
  font-size: 18px;
  color: #e8e8f0;
}
.info-wallpaper {
  margin: 0 0 14px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0d18;
  aspect-ratio: 9 / 16;
  max-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-wallpaper-empty {
  color: #8888a8;
  font-size: 13px;
  padding: 24px;
  text-align: center;
}
.info-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}
.info-photo-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #121222;
  padding: 10px;
  min-width: 0;
}
.info-photo-title {
  font-size: 12px;
  color: #8888a8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.info-photo-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0d0d18;
  aspect-ratio: 9 / 16;
  max-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.info-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.info-photo-empty {
  color: #8888a8;
  font-size: 12px;
  padding: 16px;
  text-align: center;
}
.info-photo-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.info-photo-hint,
.info-photo-status {
  font-size: 11px;
  margin: 8px 0 0;
}
@media (max-width: 640px) {
  .info-photos {
    grid-template-columns: 1fr;
  }
}
.info-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.info-tab {
  background: #12121f;
  border: 1px solid #2a2a45;
  color: #c8c8e0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}
.info-tab.active {
  border-color: #3d8bff;
  color: #e8e8f0;
  background: rgba(61, 139, 255, 0.12);
}
.info-tab-panel.hidden {
  display: none !important;
}
.info-field-edit .info-edit-row {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.info-field-edit .form-input {
  flex: 1;
  min-width: 0;
}
.info-notes-compose {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.info-notes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-note {
  border: 1px solid #2a2a45;
  border-radius: 8px;
  padding: 10px 12px;
  background: #12121f;
}
.info-note-body {
  white-space: pre-wrap;
  color: #e8e8f0;
  font-size: 13px;
}
.info-note-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #8888a8;
}
.info-note-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}
.overlay-select-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #8888a8;
  min-width: 220px;
}
.overlay-select-label select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: #e8e8f0;
  padding: 8px;
  border-radius: 6px;
  min-width: 220px;
}
.overlay-model-row {
  align-items: flex-end;
}
.overlay-lock-hint {
  font-size: 12px;
}
.overlay-progress-row {
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}
.overlay-message-block {
  margin-top: 4px;
}
.overlay-message-row {
  align-items: center;
  gap: 8px;
}
.overlay-message-actions {
  margin-top: 6px;
  justify-content: flex-end;
}
.overlay-message-label {
  font-size: 12px;
  color: #8888a8;
  min-width: 64px;
}
.overlay-msg-input {
  flex: 1;
  min-width: 0;
}
.overlay-progress-label {
  font-size: 12px;
  color: #8888a8;
  min-width: 64px;
}
.overlay-progress-ctrl {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.overlay-pct-input {
  width: 64px !important;
  text-align: center;
  padding: 6px 8px !important;
  -moz-appearance: textfield;
}
.overlay-pct-input::-webkit-outer-spin-button,
.overlay-pct-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.overlay-pct-suffix {
  font-size: 13px;
  color: #8888a8;
}
.overlay-progress-ctrl .btn {
  min-width: 34px;
  padding-left: 0;
  padding-right: 0;
}
#deviceInputLockBtn.is-active,
#deviceSettingsLockBtn.is-active,
#deviceAntiUninstallBtn.is-active {
  border-color: #f0a500;
  color: #ffcc80;
  background: rgba(240, 165, 0, 0.15);
}
.device-info-body { padding: 16px 20px; }
.device-apps-card {
  width: min(860px, 96vw);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.device-apps-card .device-info-header,
.device-apps-card .device-apps-toolbar {
  flex-shrink: 0;
  background: var(--bg-card);
  z-index: 2;
}
.device-apps-card .device-apps-toolbar {
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}
.device-keylog-card {
  width: min(1100px, 96vw);
  height: min(860px, 92vh);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.device-keylog-card .device-info-header,
.device-keylog-card .keylog-modal-controls {
  flex-shrink: 0;
}
.keylog-modal-controls {
  padding: 12px 20px 0;
  flex-wrap: wrap;
}
.keylog-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #e8e8f0;
  cursor: pointer;
}
.keylog-apps-hint {
  padding: 8px 12px 0;
  margin: 0;
  font-size: 12px;
}
.keylog-split {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.35fr);
  gap: 0;
  flex: 1 1 auto;
  min-height: 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.keylog-apps-pane,
.keylog-feed-pane {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.keylog-apps-pane {
  border-right: 1px solid var(--border);
  background: #141422;
}
.keylog-apps-toolbar {
  padding: 10px 12px 0;
}
.keylog-filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
}
.keylog-filter-bar .btn.is-active {
  border-color: #3d8bff;
  color: #8ab4f8;
  background: rgba(61, 139, 255, 0.12);
}
.keylog-apps-body {
  flex: 1 1 auto;
  max-height: none !important;
  overflow: auto;
  padding: 0 8px 12px;
}
.keylog-app-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.keylog-app-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.keylog-app-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.keylog-app-row.is-active {
  border-color: rgba(61, 139, 255, 0.45);
  background: rgba(61, 139, 255, 0.1);
}
.keylog-app-check {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}
.keylog-app-icon .app-list-icon {
  width: 32px;
  height: 32px;
}
.keylog-app-meta { min-width: 0; flex: 1; }
.keylog-app-name {
  font-size: 13px;
  color: #e8e8f0;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.keylog-app-pkg {
  font-size: 11px;
  color: #8888a8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.keylog-feed-pane {
  padding: 0;
  background: #12121f;
}
.keylog-feed-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}
.keylog-feed-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.keylog-feed-header h4 {
  margin: 0;
  font-size: 13px;
  color: #e8e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.device-keylog-history-card {
  max-width: min(920px, 96vw);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
}
.device-keylog-history-card .keylog-history-feed-pane {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.device-keylog-history-card .keylog-history-feed {
  flex: 1 1 auto;
  min-height: 280px;
  max-height: none;
}
.device-keylog-card .keylog-feed {
  margin: 0;
  max-height: none;
  flex: 1 1 auto;
  min-height: 220px;
  overflow: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 12px 14px 16px;
  font-size: 12px;
  line-height: 1.45;
}
.device-keylog-card .keylog-line {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.device-keylog-card .keylog-line-meta {
  font-size: 11px;
  line-height: 1.35;
  color: #8a8aa8;
  margin-bottom: 4px;
}
.device-keylog-card .keylog-line-text {
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: #f4f4ff;
  white-space: pre-wrap;
  word-break: break-word;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.35);
  border-left: 3px solid rgba(0, 200, 83, 0.55);
  border-radius: 4px;
}
.device-keylog-card .keylog-line--meta .keylog-line-text {
  font-size: 13px;
  color: #c8c8e0;
  border-left-color: rgba(255, 255, 255, 0.12);
}
.device-keylog-card .keylog-line--lock-secret .keylog-line-text {
  font-size: 16px;
  color: #fff8e1;
  border-left-color: rgba(255, 193, 7, 0.75);
  background: rgba(255, 193, 7, 0.08);
}
.keylog-live-card .keylog-line--lock-secret .keylog-line-text {
  color: #ffe082;
  background: rgba(255, 193, 7, 0.1);
}
.device-keylog-card .keylog-line-text--empty {
  color: #666;
  font-style: italic;
}
.keylog-feed-loading {
  padding: 12px 4px;
}
.keylog-live-card .keylog-side-feed {
  margin-top: 10px;
  flex: 1 1 auto;
  min-height: 140px;
  max-height: 320px;
  overflow: auto;
  background: #0d0d18;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.4;
}
.keylog-live-card .keylog-line {
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.keylog-live-card .keylog-line-meta {
  font-size: 10px;
  color: #8a8aa8;
  margin-bottom: 3px;
  font-family: Consolas, monospace;
}
.keylog-live-card .keylog-line-text {
  font-family: Consolas, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: #f0f0ff;
  white-space: pre-wrap;
  word-break: break-word;
}
.keylog-live-card .keylog-line--typing .keylog-line-text {
  padding: 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}
#keylogOnBtn.is-active {
  border-color: #00c853;
  color: #b9f6ca;
  background: rgba(0, 200, 83, 0.15);
}
.keylog-side-hint {
  margin: 10px 0 0;
  font-size: 12px;
}
@media (max-width: 900px) {
  .keylog-split { grid-template-columns: 1fr; }
  .keylog-apps-pane { border-right: none; border-bottom: 1px solid var(--border); max-height: 40vh; }
}
.device-apps-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 20px 0;
}
.device-apps-toolbar .form-input { flex: 1; min-width: 0; }
.device-apps-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding-top: 0;
}
.device-apps-table { width: 100%; border-collapse: collapse; }
.device-apps-table th,
.device-apps-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  vertical-align: middle;
}
.device-apps-table th {
  color: #8888a8;
  font-size: 11px;
  text-transform: uppercase;
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg-input);
  box-shadow: 0 1px 0 var(--border);
}
.device-apps-table .mono { font-family: Consolas, monospace; font-size: 12px; word-break: break-all; }
.apps-col-icon { width: 44px; }
.apps-col-name { font-weight: 500; color: #e8e8f0; min-width: 120px; }
.apps-col-pkg { color: #a0a0c0; }
.apps-col-last {
  white-space: nowrap;
  color: #a8a8c8;
  font-size: 12px;
  min-width: 120px;
}
.apps-col-actions {
  white-space: nowrap;
  width: 260px;
}
.apps-col-actions .btn { margin: 2px 0; }
.app-lock-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #8ab4f8;
  border: 1px solid #3d5a80;
  border-radius: 4px;
  padding: 1px 6px;
}
.app-inject-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #81c995;
  border: 1px solid #3d6b4a;
  border-radius: 4px;
  padding: 1px 6px;
}
.app-spy-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #f0c674;
  border: 1px solid #6b5a2e;
  border-radius: 4px;
  padding: 1px 6px;
}
.apps-col-actions .btn.is-active {
  border-color: #c9a227;
  color: #f0c674;
}
.spy-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.spy-page-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
  color: #a8a8c8;
  font-size: 12px;
}
.spy-page-field .form-input {
  min-width: 240px;
}
.spy-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.spy-page-filters .spy-filter-btn.is-active {
  border-color: #c9a227;
  color: #f0c674;
}
.spy-page-hint {
  margin: 0 0 16px;
  font-size: 13px;
}
.spy-page-body {
  min-height: 200px;
}
.spy-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #8888a8;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.spy-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.spy-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 14px;
  padding: 12px;
  border: 1px solid #2a2a3d;
  border-radius: 8px;
  background: #161622;
}
.spy-card-media {
  min-height: 160px;
}
.spy-shot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 320px;
  overflow: auto;
}
.spy-shot-thumb {
  display: block;
  width: 96px;
  height: 140px;
  border-radius: 6px;
  overflow: hidden;
  background: #0c0c12;
  border: 1px solid #2a2a3d;
}
.spy-shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.spy-card-gif {
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  background: #0c0c12;
  border-radius: 6px;
  display: block;
}
.spy-card-gif-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: #6a6a88;
  font-size: 12px;
}
.spy-card-expire {
  font-size: 11px;
  margin-bottom: 8px;
  color: #c9a227 !important;
}
.spy-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.spy-card-pkg {
  font-size: 11px;
  margin-bottom: 4px;
  word-break: break-all;
}
.spy-card-meta {
  font-size: 12px;
  margin-bottom: 8px;
}
.spy-card-keylog {
  max-height: 160px;
  overflow: auto;
  background: #0c0c12;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
  font-size: 12px;
}
.spy-key-line {
  margin-bottom: 4px;
  line-height: 1.35;
}
.spy-key-type {
  color: #8ab4f8;
  margin-right: 6px;
}
.spy-key-text {
  color: #e0e0ec;
  word-break: break-word;
}
.spy-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .spy-card {
    grid-template-columns: 1fr;
  }
}

/* Alertas (evolução do Spy) */
.alertas-page {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.alertas-section {
  margin-bottom: 8px;
}
.alertas-page-hint {
  margin: 0 0 12px;
  font-size: 13px;
}
.alertas-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.alertas-page-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.alertas-page-filters .alertas-filter-btn.is-active {
  border-color: #c9a227;
  color: #f0c674;
}
.alertas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.alertas-table th,
.alertas-table td {
  border-bottom: 1px solid #2a2a3d;
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
.alertas-table th {
  color: #a8a8c8;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.alertas-row-actions {
  white-space: nowrap;
}
.alertas-pkg-sub {
  font-size: 10px;
  margin-top: 2px;
  word-break: break-all;
}
.alertas-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #8888a8;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: 10px;
}
.alertas-add-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a3d;
}
.alertas-add-title {
  font-size: 14px;
  margin: 0 0 10px;
}
.alertas-add-row,
.alertas-manual-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.alertas-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  font-size: 12px;
  color: #a8a8c8;
}
.alertas-catalog-list {
  max-height: 220px;
  overflow: auto;
  margin-bottom: 12px;
  border: 1px solid #2a2a3d;
  border-radius: 8px;
  padding: 8px;
  background: #12121c;
}
.alertas-catalog-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 4px;
  border-bottom: 1px solid #222233;
}
.alertas-catalog-item:last-child {
  border-bottom: none;
}
.alertas-detail-card {
  max-width: 920px;
  width: min(96vw, 920px);
}
.alertas-detail-body h4 {
  font-size: 13px;
  margin: 16px 0 8px;
  color: #c9c9e8;
}
.alertas-detail-meta {
  font-size: 12px;
  margin-bottom: 8px;
}
.alertas-detail-actions {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #2a2a3d;
}
.alertas-detail-actions-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.admin-blocked-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.admin-blocked-hint {
  margin: 0;
  flex: 1 1 240px;
}
.admin-blocked-stat {
  max-width: 200px;
  margin-bottom: 16px;
}
.stat-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.stat-card-link:hover {
  border-color: var(--accent, #c41e3a);
  transform: translateY(-1px);
}
.alertas-shot-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}
.alertas-shot-thumb {
  display: block;
  width: 100px;
  height: 150px;
  border-radius: 6px;
  overflow: hidden;
  background: #0c0c12;
  border: 1px solid #2a2a3d;
}
.alertas-shot-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.alertas-card-gif-empty {
  padding: 24px;
  text-align: center;
  color: #6a6a88;
  background: #0c0c12;
  border-radius: 6px;
}
.alertas-card-keylog {
  max-height: 280px;
  overflow: auto;
  background: #0c0c12;
  border-radius: 6px;
  padding: 10px;
  font-size: 12px;
}
.alertas-key-line {
  margin-bottom: 4px;
  line-height: 1.35;
}
.alertas-key-type {
  color: #8ab4f8;
  margin-right: 6px;
}
.alertas-key-text {
  color: #e0e0ec;
  word-break: break-word;
}
@media (max-width: 900px) {
  .alertas-sessions-table thead {
    display: none;
  }
  .alertas-sessions-table tr {
    display: block;
    margin-bottom: 12px;
    border: 1px solid #2a2a3d;
    border-radius: 8px;
    padding: 8px;
  }
  .alertas-sessions-table td {
    display: block;
    border: none;
    padding: 4px 0;
  }
}
.app-lock-modal .app-modal-footer,
.app-inject-modal .app-modal-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-inject-html {
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  min-height: 220px;
  resize: vertical;
  line-height: 1.4;
}
.ob-screen-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
.ob-screen-tabs .btn.is-active {
  border-color: #3d8bff;
  color: #e8e8f0;
  background: #1e2a44;
}
.ob-prev-input {
  width: min(240px, 100%);
  text-align: left;
}
.ob-prev-input-label {
  font-size: 11px;
  color: #9aa0a6;
  margin-bottom: 4px;
}
.ob-prev-input-box {
  border: 1px solid #3a3a5a;
  background: var(--bg-card);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #8888a8;
}
.ob-prev-button {
  width: min(240px, 100%);
  margin: 4px auto 0;
  padding: 10px 12px;
  border-radius: 8px;
  color: #0b0b0f;
  font-size: 13px;
  font-weight: 600;
}
.ob-prev-btn-action {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 500;
  opacity: 0.75;
}
.ob-field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.ob-field-check input { width: auto; }
.app-inject-tpl-bar {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-input);
}
.app-inject-tpl-bar .form-label { margin-bottom: 8px; }
.app-inject-tpl-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.app-inject-tpl-row .form-input { flex: 1 1 180px; min-width: 140px; }
.app-inject-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
}
.app-inject-results-head h4 {
  margin: 0;
  font-size: 13px;
  color: #c8c8e0;
}
.app-inject-feed {
  max-height: 240px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-input);
  padding: 10px;
}
.app-inject-result {
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.app-inject-result:last-child { border-bottom: 0; }
.app-inject-result header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.app-inject-result-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  color: #d0d0e8;
  font-family: Consolas, monospace;
}
.app-lock-hint { margin: 0 0 8px; font-size: 13px; }
.app-lock-pkg { margin: 0 0 10px; font-size: 12px; color: #a0a0c0; }
.app-lock-status { margin: 0 0 14px; font-size: 13px; }
.app-lock-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.app-lock-tabs .btn.is-active {
  border-color: #3d8bff;
  color: #e8e8f0;
  background: #1e2a44;
}
.app-lock-pane.hidden { display: none; }
.app-lock-image-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.app-lock-crop-stage {
  display: flex;
  justify-content: center;
  padding: 8px 0 4px;
}
.app-lock-crop-frame {
  position: relative;
  width: min(270px, 70vw);
  height: min(480px, 62vh);
  overflow: hidden;
  border: 1px solid #3d8bff;
  border-radius: 18px;
  background: #0a0a12;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.app-lock-crop-frame:active { cursor: grabbing; }
.app-lock-crop-frame img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  display: none;
  pointer-events: none;
}
.app-lock-crop-frame img.is-ready { display: block; }
.app-lock-crop-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  text-align: center;
}
.app-list-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  background: var(--bg-input);
  border: 1px solid var(--border);
}
.app-list-icon-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #8ab4f8;
  background: #252538;
}
.apps-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8ad0ff;
  border: 1px solid rgba(61,139,255,0.35);
  background: rgba(61,139,255,0.12);
  border-radius: 999px;
  padding: 2px 8px;
}
.apps-tag-system {
  color: #c7c7d8;
  border-color: rgba(136,136,168,0.4);
  background: rgba(136,136,168,0.12);
}
.info-section { margin-bottom: 16px; }
.info-section h3 { font-size: 13px; color: #8888a8; margin: 0 0 8px; text-transform: uppercase; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.info-label { display: block; font-size: 11px; color: #5c5c7a; }
.info-value { font-size: 13px; color: #e8e8f0; word-break: break-all; }

.session-timer--warn .navbar-text { color: #f0a500 !important; }
.session-timer--critical .navbar-text { color: #ff5252 !important; }
