/* ============================================================================
   SK Update Manager — dashboard styles
   Concept: a release "signal" console. Machine-readable identifiers (appId,
   version, key, endpoints) are rendered as monospace data-chips, visually
   separated from human UI text. One signal/broadcast mark carries the brand.
   ========================================================================== */

:root {
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --ink: #0f1419;
  --ink-2: #39424e;
  --muted: #6b7480;
  --faint: #9aa2ad;
  --line: #e5e8ed;
  --line-strong: #d3d8e0;

  --accent: #2f54eb;
  --accent-ink: #1e3fc4;
  --accent-soft: #ebf0ff;

  --ok: #15803d;
  --ok-soft: #e7f6ec;
  --warn: #b45309;
  --warn-soft: #fbefdc;
  --danger: #d92d20;
  --danger-soft: #fdecea;

  --mono-bg: #eef1f5;
  --mono-ink: #243049;

  --r-sm: 7px;
  --r: 10px;
  --r-lg: 14px;

  --shadow-sm: 0 1px 2px rgba(16, 23, 33, 0.06);
  --shadow: 0 4px 16px -6px rgba(16, 23, 33, 0.12), 0 1px 3px rgba(16, 23, 33, 0.06);
  --shadow-lg: 0 24px 60px -18px rgba(16, 23, 33, 0.28);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
button { font-family: inherit; }
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---- Brand / signal mark -------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); }
.brand-name { font-weight: 700; letter-spacing: -0.02em; font-size: 16px; }
.brand-name b { color: var(--accent-ink); font-weight: 700; }

.mark { width: 26px; height: 26px; color: var(--accent); flex: none; display: block; }
.brand-lg .mark { width: 40px; height: 40px; }
.brand-lg .brand-name { font-size: 21px; }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-ink: var(--ink);
  --btn-line: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--btn-line);
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 14px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease, transform 0.04s ease, box-shadow 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }

.btn-primary { --btn-bg: var(--accent); --btn-ink: #fff; --btn-line: var(--accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { --btn-bg: var(--accent-ink); --btn-line: var(--accent-ink); }

.btn-ghost { --btn-bg: transparent; --btn-line: transparent; --btn-ink: var(--ink-2); }
.btn-ghost:hover { --btn-bg: #eceff3; }

.btn:hover:not(.btn-primary):not(.btn-ghost):not(.btn-danger):not(.btn-solid-danger) { background: var(--surface-2); border-color: var(--line-strong); }

.btn-danger { --btn-ink: var(--danger); --btn-line: var(--line-strong); }
.btn-danger:hover { --btn-bg: var(--danger-soft); --btn-line: #f3b9b3; }

.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-solid-danger { --btn-bg: var(--danger); --btn-ink: #fff; --btn-line: var(--danger); }
.btn-solid-danger:hover { --btn-bg: #b42318; --btn-line: #b42318; }

.icon-btn {
  width: 32px; height: 32px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.icon-btn:hover { background: #eceff3; color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---- Data chip: the signature element ------------------------------------- */
/* Every machine-readable token (appId, version, key, endpoint) wears this. */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 8px;
  background: var(--mono-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--mono-ink);
  line-height: 1.4;
}
.chip .chip-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.copyable { cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease, color 0.12s ease; }
.chip.copyable:hover { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.chip .copy-i { width: 13px; height: 13px; opacity: 0.5; flex: none; }
.chip.copyable:hover .copy-i { opacity: 1; }
.chip.accent { background: var(--accent-soft); border-color: #cdddff; color: var(--accent-ink); }

/* ---- Tags (status pills, human-readable) ---------------------------------- */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px; border-radius: 100px;
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase;
}
.tag-latest { background: var(--accent-soft); color: var(--accent-ink); }
.tag-mandatory { background: var(--warn-soft); color: var(--warn); }
.tag-channel { background: #eef1f5; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 500; }

/* ============================================================================
   LOGIN
   ========================================================================== */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(47, 84, 235, 0.06), transparent 60%),
    var(--bg);
}
.login-card {
  width: 100%;
  max-width: 384px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 32px 30px;
}
.login-mark { position: relative; width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 18px; }
.login-mark .mark { width: 40px; height: 40px; position: relative; z-index: 1; }
.login-mark .ping {
  position: absolute; inset: 0; margin: auto;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0;
  animation: ping 3.2s ease-out infinite;
}
@keyframes ping {
  0% { transform: scale(0.45); opacity: 0.5; }
  70% { opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.login h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.login h1 b { color: var(--accent-ink); }
.login-sub { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.login-hint { margin: 14px 0 0; color: var(--faint); font-size: 12.5px; }

/* ---- Fields --------------------------------------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; font-size: 13px; font-weight: 550; color: var(--ink-2); margin-bottom: 6px; }
.field-hint { display: block; font-size: 12px; color: var(--faint); margin-top: 5px; }

.input, .textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.input.mono { font-family: var(--mono); font-size: 13px; }
.input:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.textarea { resize: vertical; min-height: 76px; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }

.form-error {
  margin: 10px 0 0; padding: 9px 12px;
  background: var(--danger-soft); border: 1px solid #f3b9b3; border-radius: var(--r-sm);
  color: #93251c; font-size: 13px;
}

/* ============================================================================
   DASHBOARD SHELL
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 24px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-actions { display: flex; align-items: center; gap: 6px; }
.link-ext { font-size: 13.5px; font-weight: 550; color: var(--ink-2); padding: 7px 10px; border-radius: var(--r-sm); }
.link-ext:hover { text-decoration: none; background: #eceff3; color: var(--ink); }

.container { max-width: 860px; margin: 0 auto; padding: 32px 24px 80px; }

.view { animation: rise 0.22s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.view-title { margin: 0; font-size: 25px; letter-spacing: -0.025em; font-weight: 700; }
.view-sub { margin: 3px 0 0; color: var(--muted); font-size: 13.5px; }

/* ---- Applications list ---------------------------------------------------- */
.apps-list { display: flex; flex-direction: column; gap: 10px; }

.app-row {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}
.app-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.app-row-main { min-width: 0; flex: 1; }
.app-row-name { font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; margin-bottom: 5px; }
.app-row-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.app-row-side { display: flex; align-items: center; gap: 14px; flex: none; }
.app-row-version { text-align: right; }
.app-row-version .v { font-family: var(--mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.app-row-version .v-none { font-size: 13px; color: var(--faint); font-style: italic; }
.app-row-version .lbl { display: block; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.05em; }
.app-row-count { font-size: 12.5px; color: var(--muted); }
.chev { color: var(--faint); width: 18px; height: 18px; flex: none; }

/* ---- Empty states --------------------------------------------------------- */
.empty {
  text-align: center; padding: 56px 24px;
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}
.empty .mark { width: 38px; height: 38px; color: var(--faint); margin: 0 auto 14px; opacity: 0.8; }
.empty h3 { margin: 0 0 6px; font-size: 17px; }
.empty p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

/* ============================================================================
   APP DETAIL
   ========================================================================== */
.back-link {
  display: inline-flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 13.5px; font-weight: 550;
  padding: 4px 0; margin-bottom: 16px;
}
.back-link:hover { color: var(--ink); }

.detail-head {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm); padding: 22px 22px 20px; margin-bottom: 26px;
}
.detail-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.detail-name { margin: 0 0 9px; font-size: 22px; letter-spacing: -0.025em; }
.detail-id-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.detail-actions { display: flex; gap: 8px; flex: none; }

.integration { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; }
.integ-row { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: start; }
.integ-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding-top: 5px; }
.integ-label .integ-sub { display: block; font-weight: 400; color: var(--faint); font-size: 11.5px; margin-top: 1px; }
.integ-val { min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.endpoint-chip { font-size: 12px; }
.endpoint-chip .m { color: var(--accent-ink); font-weight: 600; }

.section-label { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.section-label h2 { margin: 0; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.section-label .n { font-size: 13px; color: var(--faint); font-family: var(--mono); }

/* ---- Release timeline ----------------------------------------------------- */
.timeline { position: relative; display: flex; flex-direction: column; }

.release { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 18px; }
.release:not(:last-child) .rail::after {
  content: ""; position: absolute; left: 50%; top: 22px; bottom: -4px;
  width: 2px; transform: translateX(-50%); background: var(--line);
}
.rail { position: relative; display: flex; justify-content: center; padding-top: 4px; }
.node { width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 2.5px solid var(--line-strong); z-index: 1; }
.release.is-latest .node { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 4px var(--accent-soft); }

.release-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 15px 16px; }
.release.is-latest .release-card { border-color: #cdddff; }
.release-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.release-ver { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.release-ver .num { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.release-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.release-date { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

.release-notes { margin: 8px 0 0; color: var(--ink-2); font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }

.release-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.release-file { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; }
.release-file svg { width: 15px; height: 15px; flex: none; color: var(--faint); }
.release-file .fname { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.release-file .fsize { color: var(--faint); white-space: nowrap; }
.release-file .ext { color: var(--accent-ink); }
.release-foot-actions { display: flex; align-items: center; gap: 4px; flex: none; }

/* ============================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(15, 20, 25, 0.42); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px;
  animation: fade 0.15s ease both;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.modal {
  width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  animation: pop 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.98); } to { opacity: 1; transform: none; } }

.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head h2 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.modal-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.modal-body { padding: 18px 22px; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 16px 22px; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--surface);
}

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Toggle */
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 0; }
.toggle-field .tf-text { font-size: 13.5px; font-weight: 550; }
.toggle-field .tf-text small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; font-weight: 400; }
.switch { position: relative; width: 40px; height: 23px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: var(--line-strong); border-radius: 100px; transition: background 0.15s ease; }
.switch .track::before { content: ""; position: absolute; top: 2px; left: 2px; width: 19px; height: 19px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform 0.15s ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::before { transform: translateX(17px); }

/* Divider with label */
.or-split { display: flex; align-items: center; gap: 12px; margin: 8px 0; color: var(--faint); font-size: 12px; }
.or-split::before, .or-split::after { content: ""; height: 1px; flex: 1; background: var(--line); }

/* File picker */
.file-drop {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color 0.12s ease, background 0.12s ease;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.file-drop svg { width: 22px; height: 22px; color: var(--muted); flex: none; }
.file-drop .fd-text { font-size: 13px; min-width: 0; }
.file-drop .fd-text b { display: block; color: var(--ink); font-weight: 550; }
.file-drop .fd-text span { color: var(--faint); }
.file-drop.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.file-drop.has-file svg { color: var(--ok); }
.file-drop .fd-name { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================================================================
   TOASTS
   ========================================================================== */
.toast-root { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-radius: var(--r-sm);
  background: #11151c; color: #fff; font-size: 13.5px; font-weight: 500; box-shadow: var(--shadow-lg);
  animation: toast-in 0.2s ease both;
}
.toast svg { width: 16px; height: 16px; flex: none; }
.toast.ok svg { color: #4ade80; }
.toast.err { background: #7a1d16; }
.toast.err svg { color: #fca5a5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .container { padding: 22px 16px 64px; }
  .topbar { padding: 0 16px; }
  .view-title { font-size: 22px; }
  .app-row { padding: 14px; gap: 12px; }
  .app-row-side { gap: 10px; }
  .integ-row { grid-template-columns: 1fr; gap: 5px; }
  .integ-label { padding-top: 0; }
  .detail-actions { width: 100%; }
  .row-2 { grid-template-columns: 1fr; }
  .release-file .fname { max-width: 150px; }
}

/* ---- Reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ============================================================================
   SETUP WIZARD
   ========================================================================== */
.login-card.wide { max-width: 462px; }
.setup-card-pad { padding: 4px 0 0; }

.setup-head h1 { margin: 0 0 4px; font-size: 22px; letter-spacing: -0.02em; }
.setup-head h1 b { color: var(--accent-ink); }
.setup-head p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 1.55; }

.note {
  display: flex; gap: 10px; padding: 11px 13px; margin: 0 0 16px;
  background: var(--accent-soft); border: 1px solid #cdddff; border-radius: var(--r-sm);
  color: #294699; font-size: 12.5px; line-height: 1.55;
}
.note svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--accent); }
.note.muted { background: var(--surface-2); border-color: var(--line); color: var(--ink-2); }
.note.muted svg { color: var(--muted); }

.optional-tag { color: var(--faint); font-weight: 400; }

.token-row { display: flex; gap: 8px; align-items: stretch; }
.token-row .input { flex: 1; }
.linkish {
  background: none; border: none; cursor: pointer; padding: 6px 2px 0;
  color: var(--accent-ink); font-size: 12.5px; font-weight: 550;
}
.linkish:hover { text-decoration: underline; }

.setup-divider { height: 1px; background: var(--line); margin: 20px 0 18px; }

/* Success state */
.setup-success { text-align: center; padding: 8px 0 4px; }
.check-circle {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: var(--ok-soft); display: grid; place-items: center;
}
.check-circle svg { width: 28px; height: 28px; color: var(--ok); }
.setup-success h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.setup-success p { margin: 0 0 8px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.setup-success .url-chip { margin: 6px auto 20px; display: inline-flex; }
.setup-ssl-note { font-size: 12.5px; margin: 0 0 18px !important; }
.setup-ssl-note.warn { color: var(--warn); }

/* ---- Setup: real-time HTTPS provisioning ---------------------------------- */
.provision { text-align: center; padding: 8px 0 4px; }
.provision h1 { margin: 18px 0 6px; font-size: 21px; letter-spacing: -0.02em; }
.provision p { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.provision .url-chip { margin: 4px auto 14px; display: inline-flex; }

.spinner {
  width: 52px; height: 52px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--accent-soft); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: grid; place-items: center;
}
.spinner.done {
  border-color: var(--ok); border-top-color: var(--ok);
  background: var(--ok-soft); animation: none;
}
.spinner.done svg { width: 26px; height: 26px; color: var(--ok); }
@keyframes spin { to { transform: rotate(360deg); } }

.prov-status {
  margin: 4px 0 0 !important; font-size: 13px; color: var(--ink-2);
  min-height: 1.2em; font-family: var(--mono);
}
.prov-status.ready { color: var(--ok); font-weight: 600; }

.spinner.warn {
  border-color: var(--warn-soft); border-top-color: var(--warn);
  background: var(--warn-soft); animation: none;
}
.spinner.warn svg { width: 24px; height: 24px; color: var(--warn); }
