.settings-release {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px 4px;
  color: var(--text-muted);
  font-size: 11px;
}

.app-version {
  font-weight: 750;
  letter-spacing: 0.02em;
}

.update-button {
  position: relative;
  min-width: 116px;
  min-height: 34px;
  padding: 7px 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.update-button::before {
  content: '';
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 0;
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.update-button[data-holding='true']::before {
  width: 100%;
  transition: width 5s linear;
}

.update-button > span { position: relative; z-index: 1; }
.update-button:disabled { cursor: default; opacity: 0.65; }

.maintenance-root {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 18, 38, 0.72);
  backdrop-filter: blur(10px);
}

.maintenance-card {
  width: min(88vw, 320px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 28px 24px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.maintenance-ring {
  --maintenance-progress: 0deg;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--primary) var(--maintenance-progress), var(--surface-soft) 0);
  position: relative;
}

.maintenance-ring::after {
  content: '';
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--surface);
}

.maintenance-percent {
  position: relative;
  z-index: 1;
  color: var(--text);
  font-size: 24px;
  font-weight: 850;
}

.maintenance-message {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
}

.maintenance-detail {
  min-height: 18px;
  max-height: 28vh;
  overflow: auto;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.maintenance-close {
  min-width: 96px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.maintenance-close:active {
  transform: scale(0.98);
  opacity: 0.88;
}

body.maintenance-open { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .maintenance-close:active { transform: none; }
}
