.upgrade-flag {
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}

.upgrade-flag.flag-upgrade {
  color: #ffb400;
  background: #ffb40026;
}

.upgrade-flag.flag-ok {
  color: #00c070;
  background: #00b45a26;
}

.upgrade-flag.flag-dev {
  color: #b68bff;
  background: #8c5aff26;
}

.upgrade-flag.flag-pending {
  color: #bbb;
  background: #ffffff14;
}

.upgrade-meta {
  --upgrade-gap: 8px;
  gap: var(--upgrade-gap) !important;
}

.upgrade-meta .upgrade-flag {
  margin-top: 4px;
}

#updateActionsBoot, #updateActionsBoot .upgrade-meta + input#btnDoUpgrade {
  margin-top: 20px;
}

:root {
  --bg: #0b0f14;
  --panel: #121821;
  --elev: #182130;
  --text: #e6ecf2;
  --muted: #a9b4c0;
  --primary: #4f8cff;
  --primary-600: #3c79ea;
  --warn: #ffb347;
  --danger: #ff6b6b;
  --ok: #2fd180;
  --border: #233043;
  --accent: #22d3ee;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
}

.container {
  flex-direction: column;
  min-height: 100vh;
  display: flex;
}

main {
  flex: 1 0 auto;
}

body {
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-image: radial-gradient(120% 120% at 0 0, #12223a 0%, #0000 60%), radial-gradient(120% 120% at 100% 10%, #101b2c 0%, #0000 60%);
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, Apple Color Emoji, Segoe UI Emoji;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: linear-gradient(180deg, var(--panel), #0f1520);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px #00000040;
}

.tabs + .card, .tabs + section.card {
  border-top-left-radius: 0;
  border-top-right-radius: var(--radius);
}

.tabs ~ .card {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}

section.card#update {
  border-top-left-radius: 0;
}

.card-header {
  border-bottom: 1px solid var(--border);
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  display: flex;
}

.card-title {
  margin: 0;
  font-size: 16px;
}

.card-body {
  padding: 16px;
}

.status-dot {
  vertical-align: middle;
  border-radius: 50%;
  width: 10px;
  height: 10px;
  margin-left: 8px;
  display: inline-block;
  box-shadow: inset 0 0 0 2px #00000026;
}

.status-red {
  background: #d34b4b;
  box-shadow: 0 0 6px #d34b4b88;
}

.status-green {
  background: #2fd180;
  box-shadow: 0 0 6px #2fd18088;
}

.row {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  display: flex;
}

.field {
  align-items: center;
  gap: 8px;
  display: flex;
}

select, input[type="text"], input[type="number"], input[type="password"] {
  color: var(--text);
  border: 1px solid var(--border);
  background: #0e1523;
  border-radius: 10px;
  min-width: 120px;
  padding: 8px 10px;
}

.btn {
  border: 1px solid var(--border);
  height: 36px;
  color: var(--text);
  cursor: pointer;
  background: #152033;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  transition: transform 40ms, filter .2s;
  display: inline-flex;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  border-color: #2a5cc0;
}

.btn-secondary {
  background: #1b2536;
}

.btn-danger {
  background: linear-gradient(#ff7a7a, #e05555);
  border-color: #932b2b;
}

.btn-warning {
  color: #1a1205;
  background: linear-gradient(#ffc76a, #f0a93e);
  border-color: #946b1d;
}

.btn-accent {
  background: linear-gradient(180deg, var(--accent), #179ab0);
  color: #041a1f;
  border-color: #147c8f;
  font-weight: 600;
}

.btn-upgrade {
  color: #ffcf7a;
  background: linear-gradient(#2a3544, #243240);
  border-color: #324656;
  font-weight: 600;
}

.btn-upgrade:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 8px -3px #ffc65040;
}

.btn-upgrade:active {
  transform: translateY(1px);
}

.btn-switch-boot {
  background: linear-gradient(#1c2835, #203040);
  border-color: #2b4155;
  font-weight: 500;
}

.btn-switch-boot.upgrade-ready {
  background: #1b3240;
  border-color: #1d6a7c;
  box-shadow: 0 0 0 1px #22d3ee40, 0 2px 8px -3px #22d3ee59;
}

.btn-switch-boot.upgrade-ready:hover {
  box-shadow: 0 0 0 1px #22d3ee59, 0 3px 10px -3px #22d3ee73;
}

.alert {
  color: var(--muted);
  background: #ffffff0a;
  border: 1px solid #ffffff14;
  border-left: 3px solid #ff6b6b99;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
}

.alert.success {
  color: #cfeedd;
  border-left-color: #2fd180b3;
}

.alert .close {
  float: right;
  cursor: pointer;
  opacity: .7;
  margin-left: 8px;
  font-size: 14px;
  line-height: 1;
}

details.advanced > summary {
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  font-size: 13px;
}

details.advanced {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}

details.advanced .advanced-body {
  background: #ffffff08;
  border-radius: 10px;
  padding: 12px;
}

details.advanced .advanced-body .row {
  gap: 16px;
}

details.advanced.flash-adv {
  margin-top: 12px;
}

details.advanced.flash-adv .advanced-body {
  border-top: 1px dashed #ffffff14;
  padding-top: 12px;
}

.adv-group {
  padding: 12px 0 2px;
}

.adv-group + .adv-group {
  border-top: 1px dashed #ffffff0f;
  margin-top: 20px;
  padding-top: 18px;
}

#fileTable thead {
  background: #0e1624;
}

#fileTable th, #fileTable td {
  padding: 8px 10px;
}

.btn-sm {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
}

.section-caption {
  color: var(--muted);
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 12px;
}

.small {
  color: var(--muted);
  font-size: 12px;
}

.muted-strong {
  color: var(--muted);
  font-weight: 600;
}

.empty-hint {
  color: var(--muted);
  margin-top: 12px;
  font-size: 13px;
  display: block;
}

#fileTable.has-rows {
  display: table !important;
}

table {
  border-collapse: collapse;
  border-radius: 10px;
  width: 100%;
  overflow: hidden;
}

thead {
  background: #111a29;
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}

.wifi-table th.col-select {
  text-align: center;
  width: 80px;
}

.wifi-table td.col-select {
  text-align: center;
}

.wifi-table .wifi-ssid {
  cursor: pointer;
}

.wifi-table tr.active {
  outline-offset: -2px;
  outline: 2px solid #22d3ee59;
}

.wifi-table input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.terminal-wrapper {
  border: 1px solid var(--border);
  background: #0a0f18;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

#terminal {
  user-select: text;
  height: auto;
}

.terminal-wrapper.fullscreen {
  z-index: 9999;
  background: #05080e;
  border-radius: 12px;
  flex-direction: column;
  display: flex;
  position: fixed;
  inset: clamp(8px, 2vw, 24px);
  box-shadow: 0 20px 60px #00000080;
}

.terminal-wrapper.fullscreen #terminal {
  flex: auto;
  height: auto;
  min-height: 0;
}

.terminal-bar {
  display: none;
}

.terminal-wrapper.fullscreen .terminal-bar {
  border-bottom: 1px solid var(--border);
  background: #0b1322;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  display: flex;
}

.terminal-controls {
  align-items: center;
}

.mt-20 {
  margin-top: 20px;
}

#terminalExpandBtn {
  display: none;
}

.mt-4 {
  margin-top: 4px;
}

.mt-8 {
  margin-top: 8px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-28 {
  margin-top: 28px;
}

.mt-32 {
  margin-top: 32px;
}

.mt-72 {
  margin-top: 72px;
}

.mb-4 {
  margin-bottom: 4px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-24 {
  margin-bottom: 24px;
}

.mb-32 {
  margin-bottom: 32px;
}

.tabs {
  border-bottom: none;
  gap: 10px;
  margin: 0 0 -1px;
  padding: 0;
  list-style: none;
  display: flex;
}

.connect-actions {
  margin-bottom: 8px;
}

.tabs {
  margin-top: 32px;
}

.tab {
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: 1px solid #0000;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 10px 14px;
}

.tab.active {
  border-color: var(--border);
  background: linear-gradient(180deg, var(--panel), #0f1520);
  color: var(--text);
  z-index: 2;
  border-bottom-color: #0000;
  position: relative;
}

.tab.disabled {
  opacity: .5;
  pointer-events: none;
}

#program .card-header, #console .card-header, #tools .card-header, #update .card-header {
  display: none;
}

.tabs + .card, .tabs + section.card {
  z-index: 1;
  position: relative;
}

.subtabs {
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 6px;
  padding: 0;
  list-style: none;
  display: flex;
}

.subtab {
  border: 1px solid var(--border);
  color: var(--muted);
  cursor: pointer;
  background: #0f1520;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
}

.subtab.disabled {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}

.subtab.active {
  background: var(--primary);
  color: #0b0f14;
  border-color: #2a5cc0;
  font-weight: 600;
}

.tool-panels {
  margin-top: 0;
  padding-top: 4px;
}

#debugPanel {
  margin-top: 32px;
}

.debug-log {
  border: 1px solid var(--border);
  color: #cfe1ff;
  white-space: pre-wrap;
  background: #0a0f18;
  border-radius: 10px;
  max-height: 220px;
  padding: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 12px;
  overflow: auto;
}

.app-footer {
  color: var(--muted);
  opacity: .8;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
  font-size: 13px;
  display: flex;
}

.app-footer a {
  color: var(--muted);
  text-decoration: none;
}

.app-footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.app-footer .dot {
  opacity: .6;
}

#globalBusy {
  letter-spacing: .01em;
  font-weight: 700;
  box-shadow: 0 8px 24px #00000059, 0 0 0 2px #2a5cc059;
  background: var(--primary) !important;
  color: #060910 !important;
  border-color: #2a5cc0 !important;
}

#globalBusy svg path {
  stroke: #060910 !important;
}

#globalBusy svg circle {
  stroke: #00000040 !important;
}

#globalBusy {
  animation: 1.2s ease-in-out infinite pulseBusy;
}

@keyframes pulseBusy {
  0% {
    opacity: .85;
    transform: translateZ(0)scale(1);
  }

  50% {
    opacity: 1;
    transform: translateZ(0)scale(1.05);
  }

  100% {
    opacity: .85;
    transform: translateZ(0)scale(1);
  }
}

.tool-panels {
  background: none;
}

.tool-panel {
  padding: 8px 0;
}

.tool-panel .row {
  margin-top: 8px;
}

.tool-panel .row:first-child {
  margin-top: 0;
}

.tool-panel .row.mt-16 {
  margin-top: 16px !important;
}

.tool-panel .row.mt-24 {
  margin-top: 24px !important;
}

.tool-panel .row.mt-28 {
  margin-top: 28px !important;
}

.tool-panel .row.mt-32 {
  margin-top: 32px !important;
}

.tool-panel .row.mt-72 {
  margin-top: 72px !important;
}

.current-line {
  align-items: baseline;
  gap: 8px;
}

.current-line .v {
  color: var(--text);
  opacity: .95;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
}

#wifiHint .muted, #wifiStatusMsg {
  color: var(--muted);
  opacity: .9;
  font-size: 12px;
}

#wifiSelectionBox {
  margin-top: 20px;
  gap: 24px !important;
}

#wifiPwdField {
  margin-left: 36px;
}

#wifiTable {
  margin-top: 20px;
}

.panel-busy-indicator {
  font-size: 11px;
}

.overlay .btn-danger {
  background: linear-gradient(#ff7a7a, #e05555);
  border-color: #932b2b;
}

.overlay {
  backdrop-filter: blur(4px);
  z-index: 10000;
  background: #0a0f18c7;
  justify-content: center;
  align-items: center;
  padding: 20px;
  display: flex;
  position: fixed;
  inset: 0;
}

.overlay-content {
  border: 1px solid var(--border);
  background: #121a25;
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  padding: 28px 32px 32px;
  box-shadow: 0 10px 40px #0000008c;
}

.overlay-content h3 {
  letter-spacing: .5px;
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
}

.overlay-content p {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.45;
}

.segmented {
  border: 1px solid var(--border);
  background: #0f1520;
  border-radius: 999px;
  display: inline-flex;
  overflow: hidden;
}

.segmented .seg {
  appearance: none;
  color: var(--muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px 14px;
}

.segmented .seg.active {
  background: var(--primary);
  color: #0b0f14;
  font-weight: 600;
}

.segmented .seg + .seg {
  border-left: 1px solid var(--border);
}

.slider {
  accent-color: var(--accent);
  width: 200px;
}

.kv-list {
  grid-template-columns: 1fr;
  gap: 8px;
  max-width: 520px;
  display: grid;
}

.kv-list.compact {
  gap: 6px;
}

.kv {
  border: 1px solid var(--border);
  background: #0f1520;
  border-radius: 10px;
  grid-template-columns: 140px 1fr;
  align-items: center;
  padding: 8px 10px;
  display: grid;
}

.kv-list.compact .kv {
  border-radius: 8px;
  padding: 6px 8px;
}

.kv .k {
  color: var(--muted);
  font-size: 12px;
}

.kv .v {
  color: var(--text);
  font-weight: 500;
}
/*# sourceMappingURL=app.b222a734.css.map */
