body.nvx-update-open {
  overflow: hidden;
}

.nvx-update-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483001;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(1, 20, 39, 0.76);
  backdrop-filter: blur(10px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #102b44;
}

.nvx-update-shell {
  width: min(1500px, 100%);
  height: min(94vh, 1080px);
  overflow: hidden;
  border: 1px solid rgba(126, 175, 211, 0.4);
  border-radius: 28px;
  background:
    radial-gradient(circle at 92% 4%, rgba(12, 148, 183, 0.16), transparent 28%),
    #f5f9fc;
  box-shadow: 0 34px 90px rgba(0, 20, 40, 0.38);
}

.nvx-update-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  padding: 18px 24px;
  color: white;
  background:
    linear-gradient(115deg, rgba(3, 45, 82, 0.98), rgba(3, 91, 125, 0.96)),
    #063c71;
}

.nvx-update-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nvx-update-brand img {
  width: 150px;
  max-height: 60px;
  object-fit: contain;
  padding: 7px 10px;
  border-radius: 14px;
  background: white;
}

.nvx-update-brand p,
.nvx-update-section-title p {
  margin: 0 0 4px;
  color: #55d4e3;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.nvx-update-brand h1 {
  margin: 0;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.08;
}

.nvx-update-brand span {
  display: block;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
}

.nvx-update-close {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  color: white;
  background: rgba(255, 255, 255, 0.09);
  font-size: 1.65rem;
  cursor: pointer;
}

.nvx-update-content {
  height: calc(100% - 104px);
  overflow: auto;
  padding: 22px;
}

.nvx-update-form-panel,
.nvx-update-history {
  border: 1px solid #dce8f1;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 15px 42px rgba(14, 47, 73, 0.08);
}

.nvx-update-form-panel {
  padding: 22px;
}

.nvx-update-history {
  margin-top: 20px;
  padding: 22px;
}

.nvx-update-section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.nvx-update-section-title h2 {
  margin: 0;
  color: #0c3152;
  font-size: 1.2rem;
}

.nvx-update-section-title > span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #075c75;
  background: #e6f7fa;
  font-size: 0.75rem;
  font-weight: 800;
}

.nvx-update-section-title > button {
  padding: 8px 13px;
  border: 1px solid #b8d4e6;
  border-radius: 10px;
  color: #0a4e78;
  background: white;
  font-weight: 750;
  cursor: pointer;
}

.nvx-update-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.nvx-update-grid label {
  display: grid;
  gap: 7px;
  color: #244761;
  font-size: 0.78rem;
  font-weight: 780;
}

.nvx-update-grid input,
.nvx-update-grid select,
.nvx-update-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbdce8;
  border-radius: 12px;
  outline: none;
  color: #102b44;
  background: white;
  font: inherit;
  font-weight: 550;
}

.nvx-update-grid input,
.nvx-update-grid select {
  height: 46px;
  padding: 0 13px;
}

.nvx-update-grid textarea {
  min-height: 94px;
  padding: 12px 13px;
  resize: vertical;
  line-height: 1.5;
}

.nvx-update-grid input:focus,
.nvx-update-grid select:focus,
.nvx-update-grid textarea:focus {
  border-color: #0788a6;
  box-shadow: 0 0 0 3px rgba(7, 136, 166, 0.12);
}

.nvx-update-wide {
  grid-column: 1 / -1;
}

.nvx-update-project-empty {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px dashed #b9d2e2;
  border-radius: 14px;
  color: #516a7e;
  background: #f7fbfd;
}

.nvx-update-project-empty b {
  color: #0b456d;
}

.nvx-update-project-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid #d3e3ed;
  border-radius: 14px;
  background: #f7fbfd;
}

.nvx-update-project-card > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 13px 14px;
  border-right: 1px solid #dce8f0;
}

.nvx-update-project-card > div:last-child {
  border-right: 0;
}

.nvx-update-project-card span,
.nvx-update-updater span,
.nvx-update-duration span {
  color: #6c8496;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nvx-update-project-card b {
  overflow: hidden;
  color: #123a5a;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nvx-update-updater {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 3px 14px;
  padding: 14px 16px;
  border-left: 4px solid #10a7b8;
  border-radius: 12px;
  background: linear-gradient(90deg, #eaf9fb, #f6fcfd);
}

.nvx-update-updater span {
  grid-column: 1 / -1;
}

.nvx-update-updater b {
  color: #063c71;
}

.nvx-update-updater small {
  color: #567286;
}

.nvx-update-duration {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #eef7fb;
}

.nvx-update-duration b {
  color: #075f7b;
}

.nvx-update-duration small {
  color: #6b8292;
}

.nvx-update-duration.bad {
  color: #a72d3c;
  background: #fff0f1;
}

.nvx-update-file-field {
  position: relative;
  min-height: 132px;
  place-content: center;
  justify-items: center;
  padding: 18px;
  border: 1.5px dashed #8fb8cf;
  border-radius: 16px;
  background: #f5fafc;
  cursor: pointer;
}

.nvx-update-file-field input {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.nvx-update-file-field > span {
  color: #0b4f76;
  font-size: 0.78rem;
  font-weight: 850;
}

.nvx-update-file-field > b {
  color: #087e98;
  font-size: 1rem;
}

.nvx-update-file-field > small {
  color: #687f91;
  font-weight: 550;
}

.nvx-update-file-summary {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #5b7384;
  background: #f1f6f9;
  font-size: 0.77rem;
}

.nvx-update-file-summary b {
  color: #0b4d73;
}

.nvx-update-file-summary small {
  overflow-wrap: anywhere;
}

.nvx-update-file-summary.bad {
  color: #9f2739;
  background: #fff0f1;
}

.nvx-update-progress {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.nvx-update-progress[hidden] {
  display: none;
}

.nvx-update-progress > div {
  overflow: hidden;
  height: 9px;
  border-radius: 999px;
  background: #dce9f0;
}

.nvx-update-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #075c8c, #11b5bd);
  transition: width 0.2s ease;
}

.nvx-update-progress b {
  color: #476477;
  font-size: 0.75rem;
}

.nvx-update-error {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #f0c7cd;
  border-radius: 12px;
  color: #982a3b;
  background: #fff1f3;
  font-size: 0.79rem;
  font-weight: 700;
}

.nvx-update-error[hidden] {
  display: none;
}

.nvx-update-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.nvx-update-actions button {
  min-height: 43px;
  padding: 0 18px;
  border: 1px solid #c1d5e3;
  border-radius: 12px;
  color: #234b68;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.nvx-update-actions .primary {
  border-color: #075f89;
  color: white;
  background: linear-gradient(105deg, #063d70, #087e99);
}

.nvx-update-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.nvx-update-timeline {
  display: grid;
  gap: 12px;
}

.nvx-update-history-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce8ef;
  border-radius: 15px;
  background: white;
}

.nvx-update-history-date {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px;
  color: white;
  background: linear-gradient(145deg, #063f70, #087d96);
}

.nvx-update-history-date b {
  font-size: 0.88rem;
}

.nvx-update-history-date span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.7rem;
}

.nvx-update-history-copy {
  display: grid;
  gap: 8px;
  padding: 15px 17px;
}

.nvx-update-history-copy p,
.nvx-update-history-copy small {
  margin: 0;
  line-height: 1.5;
}

.nvx-update-history-copy p {
  color: #173c58;
  font-size: 0.84rem;
}

.nvx-update-history-copy small {
  color: #5e7484;
}

.nvx-update-history-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.nvx-update-history-meta b {
  color: #0b4e73;
  font-size: 0.78rem;
}

.nvx-update-history-meta span,
.nvx-update-history-meta em {
  padding: 4px 7px;
  border-radius: 999px;
  color: #537083;
  background: #eef5f8;
  font-size: 0.66rem;
  font-style: normal;
  font-weight: 700;
}

.nvx-update-files {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nvx-update-files a {
  max-width: 280px;
  overflow: hidden;
  padding: 6px 9px;
  border-radius: 9px;
  color: #075f86;
  background: #eaf7fa;
  font-size: 0.68rem;
  font-weight: 760;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nvx-update-history-empty {
  padding: 28px;
  border: 1px dashed #c7dae6;
  border-radius: 14px;
  color: #6a8192;
  text-align: center;
  background: #f8fbfd;
}

.nvx-update-loading,
.nvx-update-fatal {
  display: grid;
  height: 100%;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
}

.nvx-update-loading span {
  width: 42px;
  height: 42px;
  border: 4px solid #d9eaf2;
  border-top-color: #087f9b;
  border-radius: 50%;
  animation: nvx-update-spin 0.8s linear infinite;
}

.nvx-update-fatal b {
  color: #a72d3c;
  font-size: 1.05rem;
}

.nvx-update-fatal span {
  color: #667d8e;
}

.nvx-update-fatal button {
  padding: 10px 16px;
  border: 0;
  border-radius: 11px;
  color: white;
  background: #075c87;
  font-weight: 800;
  cursor: pointer;
}

.nvx-update-success {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 2147483002;
  max-width: 360px;
  padding: 14px 17px;
  border-radius: 13px;
  color: white;
  background: #087d73;
  box-shadow: 0 14px 34px rgba(5, 68, 64, 0.3);
  font-size: 0.8rem;
  font-weight: 800;
}

.nvx-project-update-button {
  color: #075d84 !important;
  border-color: #91cbd6 !important;
  background: #eaf9fb !important;
}

@keyframes nvx-update-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 780px) {
  .nvx-update-layer {
    padding: 0;
  }

  .nvx-update-shell {
    width: 100%;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }

  .nvx-update-header {
    min-height: 94px;
    padding: 14px 15px;
  }

  .nvx-update-brand {
    gap: 11px;
  }

  .nvx-update-brand img {
    width: 92px;
  }

  .nvx-update-brand span {
    display: none;
  }

  .nvx-update-content {
    height: calc(100% - 94px);
    padding: 12px;
  }

  .nvx-update-form-panel,
  .nvx-update-history {
    padding: 15px;
    border-radius: 16px;
  }

  .nvx-update-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .nvx-update-wide {
    grid-column: 1;
  }

  .nvx-update-project-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nvx-update-project-card > div:nth-child(2) {
    border-right: 0;
  }

  .nvx-update-project-card > div:nth-child(-n + 2) {
    border-bottom: 1px solid #dce8f0;
  }

  .nvx-update-updater {
    grid-template-columns: 1fr;
  }

  .nvx-update-history-card {
    grid-template-columns: 1fr;
  }

  .nvx-update-history-date {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .nvx-update-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
