/* NodexaBot Update Center (5.42.0), in the Owner Panel.
   Same structure as Nodexa Hosting's Update Center: hero, staged progress,
   release timeline, system facts, activity log and help. Ember colours. */
.nxu {
  --u-card: #111114;
  --u-card2: #16161a;
  --u-line: #27272f;
  --u-text: #fafafa;
  --u-muted: #a1a1aa;
  --u-dim: #71717a;
  --u-accent: #f97316;
  --u-good: #4ade80;
  --u-warn: #facc15;
  --u-bad: #f87171;
  --u-tone: var(--u-accent);
  display: grid;
  gap: 16px;
  margin: 0 0 22px;
  color: var(--u-text);
  font-size: 13px;
  line-height: 1.55;
  grid-column: 1 / -1;
}
html[data-nodexa-appearance="clean-light"] .nxu {
  --u-card: #ffffff;
  --u-card2: #fafaf9;
  --u-line: #e7e5e4;
  --u-text: #1c1917;
  --u-muted: #57534e;
  --u-dim: #a8a29e;
  --u-accent: #ea580c;
  --u-good: #16a34a;
  --u-warn: #ca8a04;
  --u-bad: #dc2626;
}
.nxu--success { --u-tone: var(--u-good); }
.nxu--error { --u-tone: var(--u-bad); }
.nxu--unknown { --u-tone: var(--u-dim); }
.nxu *, .nxu *::before, .nxu *::after { box-sizing: border-box; }
.nxu a:not(.button) { color: var(--u-accent); text-decoration: none; }
.nxu a:not(.button):hover { text-decoration: underline; }
.nxu code { padding: 1px 6px; border-radius: 5px; background: color-mix(in srgb, var(--u-text) 7%, transparent); color: var(--u-text); font-size: 12px; }
.nxu [hidden] { display: none !important; }

.nxu-section-label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.nxu-section-label span { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--u-accent); }
.nxu-section-label small { color: var(--u-muted); font-size: 12px; }

/* State pill */
.nxu-state { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--u-tone); background: color-mix(in srgb, var(--u-tone) 14%, transparent); }
.nxu-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.nxu--running .nxu-state::before { animation: nxu-pulse 1.2s ease-in-out infinite; }
@keyframes nxu-pulse { 50% { opacity: .3; } }

/* Hero */
.nxu-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: 28px 30px; border-radius: 22px; border: 1px solid color-mix(in srgb, var(--u-tone) 30%, var(--u-line)); background: radial-gradient(70% 140% at 100% 0%, color-mix(in srgb, var(--u-tone) 16%, transparent), transparent 60%), var(--u-card); }
.nxu-hero-main { display: flex; gap: 20px; align-items: flex-start; min-width: 0; }
.nxu-hero-icon { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--u-tone); background: color-mix(in srgb, var(--u-tone) 15%, var(--u-card2)); border: 1px solid color-mix(in srgb, var(--u-tone) 35%, transparent); }
.nxu-hero-icon svg { width: 26px; height: 26px; }
.nxu--running .nxu-hero-icon svg { animation: nxu-spin 1.1s linear infinite; }
@keyframes nxu-spin { to { transform: rotate(360deg); } }
.nxu-hero-copy { min-width: 0; }
.nxu-hero-copy h2 { margin: 10px 0 6px; font-size: clamp(22px, 2.6vw, 30px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; color: var(--u-text); }
.nxu-hero-copy p { margin: 0; max-width: 620px; color: var(--u-muted); font-size: 14px; }
.nxu-hero-side { display: grid; gap: 14px; justify-items: end; }
.nxu-versions { display: flex; align-items: center; gap: 14px; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--u-line); background: color-mix(in srgb, #000 22%, transparent); }
html[data-nodexa-appearance="clean-light"] .nxu-versions { background: var(--u-card2); }
.nxu-versions small { display: block; font-size: 11px; color: var(--u-muted); }
.nxu-versions b { display: block; font-size: 20px; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.nxu-versions .is-new b { color: var(--u-accent); }
.nxu-versions-arrow { font-size: 18px; color: var(--u-dim); }
.nxu-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.nxu-start { margin: 0; max-width: 360px; font-size: 12px; color: var(--u-muted); text-align: right; }
.nxu-start:empty { display: none; }

/* Notices */
.nxu-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--u-line); background: var(--u-card); }
.nxu-notice-icon { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: 12px; }
.nxu-notice--warn { border-color: color-mix(in srgb, var(--u-warn) 35%, transparent); }
.nxu-notice--warn .nxu-notice-icon { color: #0b0b0d; background: var(--u-warn); }
.nxu-notice ul { margin: 6px 0 0; padding-left: 18px; color: var(--u-muted); line-height: 1.6; }

/* Cards */
.nxu-card { border-radius: 18px; border: 1px solid var(--u-line); background: var(--u-card); min-width: 0; }
.nxu-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--u-line); }
.nxu-card-head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--u-text); }
.nxu-card-head p { margin: 2px 0 0; font-size: 12px; color: var(--u-muted); }

/* Progress */
.nxu-progress { padding: 20px 22px; }
.nxu-progress-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nxu-progress-head small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--u-muted); }
.nxu-progress-head h3 { margin: 4px 0 0; font-size: 17px; font-weight: 700; color: var(--u-text); }
.nxu-progress-head strong { font-size: 26px; font-weight: 750; color: var(--u-accent); font-variant-numeric: tabular-nums; }
.nxu-track { height: 10px; border-radius: 6px; background: color-mix(in srgb, var(--u-text) 7%, transparent); overflow: hidden; }
.nxu-track-fill { position: relative; width: 0; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--u-accent), #fdba74); transition: width .5s ease; overflow: hidden; }
.nxu-track-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent); animation: nxu-shine 1.6s linear infinite; }
@keyframes nxu-shine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.nxu-progress.is-error .nxu-track-fill { background: var(--u-bad); }
.nxu-progress.is-error .nxu-track-fill::after, .nxu-progress.is-done .nxu-track-fill::after { display: none; }
.nxu-progress.is-error .nxu-progress-head strong { color: var(--u-bad); }
.nxu-progress.is-done .nxu-progress-head strong { color: var(--u-good); }
.nxu-stages { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.nxu-stages li { display: grid; justify-items: center; gap: 6px; font-size: 11px; color: var(--u-dim); text-align: center; }
.nxu-stages i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--u-line); background: var(--u-card); display: grid; place-items: center; font-style: normal; }
.nxu-stages li.is-done { color: var(--u-muted); }
.nxu-stages li.is-done i { border-color: var(--u-accent); background: var(--u-accent); }
.nxu-stages li.is-done i::after { content: "✓"; font-size: 11px; font-weight: 800; color: #0b0b0d; }
.nxu-stages li.is-current { color: var(--u-text); font-weight: 700; }
.nxu-stages li.is-current i { border-color: var(--u-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-accent) 20%, transparent); }
.nxu-progress.is-error .nxu-stages li.is-current i { border-color: var(--u-bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-bad) 20%, transparent); }
.nxu-progress-note { margin: 14px 0 0; font-size: 12px; color: var(--u-muted); }

/* Grid */
.nxu-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nxu-side { display: grid; gap: 16px; min-width: 0; }

/* Timeline */
.nxu-timeline { margin: 0; padding: 8px 18px; list-style: none; }
.nxu-timeline > li { position: relative; padding-left: 26px; }
.nxu-timeline > li::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--u-line); }
.nxu-timeline > li:first-child::before { top: 24px; }
.nxu-timeline > li:last-child::before { bottom: calc(100% - 24px); }
.nxu-timeline details { border-bottom: 1px solid color-mix(in srgb, var(--u-line) 60%, transparent); }
.nxu-timeline > li:last-child details { border-bottom: 0; }
.nxu-timeline summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; }
.nxu-timeline summary::-webkit-details-marker { display: none; }
.nxu-dot { position: absolute; left: 0; top: 18px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--u-line); background: var(--u-card); }
.nxu-timeline li.is-new .nxu-dot { border-color: var(--u-accent); background: var(--u-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--u-accent) 18%, transparent); }
.nxu-timeline li.is-installed .nxu-dot { border-color: var(--u-good); background: var(--u-good); }
.nxu-rel { flex: 1; min-width: 0; }
.nxu-rel-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nxu-rel-top strong { font-size: 15px; color: var(--u-text); font-variant-numeric: tabular-nums; }
.nxu-rel-top time { margin-left: auto; font-size: 12px; color: var(--u-dim); }
.nxu-rel-title { display: block; margin-top: 2px; color: var(--u-muted); }
.nxu-chevron { margin-top: 4px; color: var(--u-dim); transition: transform .15s; }
.nxu-timeline details[open] .nxu-chevron { transform: rotate(180deg); }
.nxu-timeline ul { margin: -4px 0 14px; padding-left: 18px; color: color-mix(in srgb, var(--u-text) 85%, transparent); }
.nxu-timeline ul li { margin: 4px 0; }
.nxu-timeline ul li::marker { color: var(--u-accent); }
.nxu-tag { display: inline-flex; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.nxu-tag--new { color: var(--u-accent); background: color-mix(in srgb, var(--u-accent) 14%, transparent); }
.nxu-tag--good { color: var(--u-good); background: color-mix(in srgb, var(--u-good) 14%, transparent); }
.nxu-tag--fix { color: var(--u-muted); background: color-mix(in srgb, var(--u-text) 7%, transparent); }
.nxu-empty { padding: 24px 0 !important; color: var(--u-muted); }
.nxu-empty::before { display: none; }

/* Side cards */
.nxu-facts { margin: 0; padding: 6px 18px; }
.nxu-facts div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--u-line) 60%, transparent); }
.nxu-facts div:last-child { border-bottom: 0; }
.nxu-facts dt { font-weight: 500; color: var(--u-muted); }
.nxu-facts dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxu-facts dd.is-new { color: var(--u-accent); }
.nxu-facts dd.is-good { color: var(--u-good); }
.nxu-facts dd.is-bad { color: var(--u-bad); }
.nxu-link { display: block; padding: 12px 18px 16px; font-weight: 600; }
.nxu-log { margin: 14px 18px; max-height: 300px; overflow: auto; padding: 14px; border-radius: 12px; border: 1px solid #1c1c22; background: #050506; color: #d4d4d8; font: 11.5px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; word-break: break-word; }
.nxu-help { padding: 0 18px; }
.nxu-help summary { list-style: none; cursor: pointer; padding: 16px 0; font-weight: 700; }
.nxu-help summary::-webkit-details-marker { display: none; }
.nxu-help summary::before { content: "?"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 50%; font-size: 12px; color: #0b0b0d; background: var(--u-accent); }
.nxu-help p { margin: 0 0 12px; color: var(--u-muted); }
.nxu-command { display: block; padding: 10px 12px !important; margin-bottom: 12px; border-radius: 10px !important; background: #050506 !important; color: #d4d4d8 !important; white-space: pre-wrap; }
.nxu-help[open] { padding-bottom: 6px; }

/* Owner update bar: fixed at the top of every page; the page moves down by
   --nx-topbar-h (set by update-center.js) so nothing is covered. */
.nxu-topbar { position: fixed; top: 0; left: 0; right: 0; z-index: 2147482000; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 7px max(14px, env(safe-area-inset-right)) 7px max(16px, env(safe-area-inset-left)); background: linear-gradient(90deg, #1a0f06, #111114 60%); border-bottom: 1px solid rgba(249,115,22,.4); color: #fafafa; font: 600 13px/1.35 Inter, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.nxu-topbar[hidden] { display: none !important; }
.nxu-topbar-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #f97316; box-shadow: 0 0 0 4px rgba(249,115,22,.2); animation: nxu-pulse 1.6s ease-in-out infinite; }
.nxu-topbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nxu-topbar-text b { color: #fb923c; font-weight: 750; }
.nxu-topbar-text span { color: #d4d4d8; font-weight: 500; }
.nxu-topbar-open { flex: none; appearance: none; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; min-height: 30px; padding: 0 12px; background: linear-gradient(180deg, #fb923c, #f97316 55%, #ea580c); color: #140a03; font: 700 12.5px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); touch-action: manipulation; }
.nxu-topbar-open:active { transform: scale(.97); }
.nxu-topbar-close { flex: none; appearance: none; border: 0; background: transparent; color: #a1a1aa; font-size: 20px; line-height: 1; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; touch-action: manipulation; }
.nxu-topbar-close:hover { color: #fafafa; background: rgba(255,255,255,.06); }
.nxu-topbar :focus-visible { outline: 2px solid #fb923c; outline-offset: 2px; }
html[data-nodexa-appearance="clean-light"] .nxu-topbar { background: linear-gradient(90deg, #ffedd5, #fff7ed 60%); color: #1c1917; border-bottom-color: rgba(234,88,12,.35); box-shadow: 0 4px 16px rgba(28,25,23,.08); }
html[data-nodexa-appearance="clean-light"] .nxu-topbar-text b { color: #c2410c; }
html[data-nodexa-appearance="clean-light"] .nxu-topbar-text span { color: #57534e; }
/* Move the page below the bar. */
html.nx-has-topbar body { padding-top: var(--nx-topbar-h, 0px); }
html.nx-has-topbar .site-header { top: var(--nx-topbar-h, 0px) !important; }
.nxu-short { display: none; }
@media (max-width: 560px) {
  .nxu-topbar { gap: 10px; font-size: 12.5px; }
  .nxu-topbar-text span { display: none; }
  .nxu-long { display: none; }
  .nxu-short { display: inline; }
}

@media (max-width: 1100px) { .nxu-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .nxu-hero { grid-template-columns: 1fr; padding: 22px; }
  .nxu-hero-side { justify-items: start; }
  .nxu-actions { justify-content: flex-start; }
  .nxu-start { text-align: left; }
  .nxu-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 12px; }
}
@media (max-width: 520px) {
  .nxu-hero-main { flex-direction: column; gap: 14px; }
  .nxu-actions, .nxu-actions .button { width: 100%; }
  .nxu-versions { width: 100%; justify-content: space-between; }
  .nxu-rel-top time { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nxu-track-fill, .nxu-track-fill::after, .nxu--running .nxu-hero-icon svg, .nxu--running .nxu-state::before { animation: none; transition: none; }
}
