.gc-update-status__button {
  position: relative;
  display: inline-grid !important;
  place-items: center;
  flex: 0 0 34px;
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  margin: 0;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, .26) !important;
  border-radius: 10px !important;
  background: rgba(30, 41, 59, .72) !important;
  color: #94a3b8 !important;
  cursor: pointer;
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, transform .16s ease;
}

.gc-update-status__button > span {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  font: 700 11px/1 ui-sans-serif, system-ui, sans-serif;
}

.gc-update-status__button > i {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  border: 1px solid #0f172a;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, .12);
}

.gc-update-status__button[data-state="ok"] > i {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, .14);
}

.gc-update-status__button[data-state="loading"] > i {
  background: #60a5fa;
  animation: gc-update-pulse 1.1s ease-in-out infinite;
}

.gc-update-status__button:hover,
.gc-update-status__button[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, .55) !important;
  background: rgba(251, 191, 36, .1) !important;
  color: #fbbf24 !important;
}

.gc-update-status__popover {
  position: fixed;
  z-index: 1100;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: rgba(15, 23, 42, .98);
  color: #e2e8f0;
  box-shadow: 0 22px 60px rgba(2, 6, 23, .34);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  backdrop-filter: blur(18px);
}

.gc-update-status__popover[hidden] { display: none !important; }

.gc-update-status__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gc-update-status__head > div { display: grid; gap: 3px; }
.gc-update-status__head span { color: #94a3b8; font-size: 11px; font-weight: 650; }
.gc-update-status__head strong { color: #f8fafc; font-size: 14px; line-height: 1.35; }

.gc-update-status__close {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.gc-update-status__close:hover { background: rgba(148, 163, 184, .1) !important; color: #fff !important; }

.gc-update-status__time {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(251, 191, 36, .18);
  border-radius: 11px;
  background: rgba(251, 191, 36, .07);
  color: #fcd34d;
  font-size: 12px;
  font-weight: 700;
}

.gc-update-status__details { display: grid; gap: 9px; margin-top: 13px; }

.gc-update-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: #94a3b8;
  font-size: 11px;
}

.gc-update-status__row-label { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.gc-update-status__row strong { overflow: hidden; color: #cbd5e1; font-size: 11px; font-weight: 650; text-align: right; text-overflow: ellipsis; white-space: nowrap; }

.gc-update-status__row-dot { flex: 0 0 7px; width: 7px; height: 7px; border-radius: 999px; background: #f59e0b; }
.gc-update-status__row-dot.is-ok { background: #22c55e; }
.gc-update-status__row-dot.is-loading { background: #60a5fa; animation: gc-update-pulse 1.1s ease-in-out infinite; }

.gc-update-status__foot {
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(148, 163, 184, .14);
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.gc-update-status__loading { padding: 8px; color: #94a3b8; font-size: 12px; text-align: center; }

html.light-ui .gc-update-status__button {
  border-color: #dbe3ee !important;
  background: #fff !important;
  color: #64748b !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

html.light-ui .gc-update-status__button > i { border-color: #fff; }
html.light-ui .gc-update-status__button:hover,
html.light-ui .gc-update-status__button[aria-expanded="true"] { border-color: #f3c75d !important; background: #fff9eb !important; color: #b7790b !important; }

html.light-ui .gc-update-status__popover {
  border-color: #dbe3ee;
  background: rgba(255, 255, 255, .99);
  color: #334155;
  box-shadow: 0 22px 55px rgba(15, 23, 42, .16);
}

html.light-ui .gc-update-status__head span { color: #64748b; }
html.light-ui .gc-update-status__head strong { color: #0f172a; }
html.light-ui .gc-update-status__close { color: #64748b !important; }
html.light-ui .gc-update-status__close:hover { background: #f1f5f9 !important; color: #0f172a !important; }
html.light-ui .gc-update-status__time { border-color: #f5d994; background: #fff9eb; color: #9a6700; }
html.light-ui .gc-update-status__row { color: #64748b; }
html.light-ui .gc-update-status__row strong { color: #334155; }
html.light-ui .gc-update-status__foot { border-color: #e2e8f0; color: #94a3b8; }

@keyframes gc-update-pulse {
  0%, 100% { opacity: .45; transform: scale(.86); }
  50% { opacity: 1; transform: scale(1.1); }
}

@media (max-width: 720px) {
  .gc-update-status__row { align-items: flex-start; flex-direction: column; gap: 3px; }
  .gc-update-status__row strong { padding-left: 14px; text-align: left; }
}
