/* ---------- Installer e pagina aggiornamenti ---------- */
.install-wrap { max-width: 920px; margin: 2rem auto 3rem; }
.install-tag {
  font-family: var(--font-heading); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px;
  border: 1.5px solid currentColor; border-radius: 999px; padding: .45rem 1rem;
}
.install-steps { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-bottom: 1.75rem; }
.install-steps li { display: flex; flex-direction: column; align-items: center; gap: .45rem; position: relative; }
.install-steps li::before { content: ''; position: absolute; top: 18px; left: -50%; right: 50%; height: 3px; background: var(--color-border); z-index: 0; }
.install-steps li:first-child::before { display: none; }
.install-steps li.done::before, .install-steps li.current::before { background: #000; }
.is-num {
  position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #fff; border: 3px solid var(--color-border); font-family: var(--font-heading); font-weight: 900; font-size: .9rem; color: var(--color-muted);
}
.install-steps .done .is-num { background: #000; border-color: #000; color: #fff; }
.install-steps .current .is-num { border-color: #000; color: #000; box-shadow: 0 0 0 5px rgba(0,0,0,.08); }
.is-label { font-family: var(--font-heading); font-weight: 800; font-size: .72rem; text-transform: uppercase; color: var(--color-muted); text-align: center; }
.install-steps .done .is-label, .install-steps .current .is-label { color: #000; }
@media (max-width: 640px) { .is-label { display: none; } }

.install-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem; }
.install-card + .install-card { margin-top: 1.25rem; }
.install-card h1 { font-family: var(--font-heading); font-weight: 900; font-size: 2.2rem; letter-spacing: -1px; margin-bottom: .5rem; }
.install-card h2 { font-size: 1.15rem; margin-bottom: 1rem; }
.install-card .lead { color: var(--color-muted); margin-bottom: 1.75rem; }
.install-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
@media (max-width: 640px) { .install-card { padding: 1.5rem 1.25rem; } .install-card h1 { font-size: 1.7rem; } }

.checks { list-style: none; display: flex; flex-direction: column; }
.checks li { display: grid; grid-template-columns: 30px 1fr; gap: .75rem; padding: .8rem 0; border-bottom: 1px solid var(--color-border); align-items: start; }
.checks li:last-child { border-bottom: none; }
.checks strong { display: block; font-size: .95rem; }
.checks small { color: var(--color-muted); font-size: .82rem; }
.ck { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; color: #fff; }
.ck.ok { background: #16a34a; }
.ck.warn { background: #d97706; }
.ck.fail { background: #dc2626; }
.ck.wait { background: var(--color-border-strong); }
.ck.run { background: #000; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.install-card .input, .install-card .select { background: #f8fafc; border-color: #f1f5f9; }
.install-card .input:focus, .install-card .select:focus { background: #fff; border-color: #000; }
.fieldset-title { font-family: var(--font-heading); font-weight: 900; font-size: .95rem; text-transform: uppercase; margin: 1.75rem 0 1rem; display: flex; align-items: center; gap: .75rem; }
.fieldset-title::after { content: ''; flex: 1; height: 1px; background: var(--color-border); }
details.advanced { margin-top: 1.25rem; border: 2px solid #f1f5f9; border-radius: 12px; padding: .9rem 1.1rem; }
details.advanced summary { cursor: pointer; font-family: var(--font-heading); font-weight: 800; font-size: .85rem; text-transform: uppercase; }
details.advanced[open] summary { margin-bottom: 1rem; }

.copy-box { display: flex; gap: .5rem; align-items: stretch; margin-top: .4rem; }
.copy-box code {
  flex: 1; display: block; background: #0a0a0a; color: #e4e4e7; border-radius: 10px; padding: .85rem 1rem; font-size: .82rem;
  overflow-x: auto; white-space: nowrap; font-family: ui-monospace, Consolas, monospace;
}
.cron-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; margin: .75rem 0; }
.cron-grid div { background: #f8fafc; border-radius: 10px; padding: .6rem; text-align: center; }
.cron-grid span { display: block; font-size: .7rem; color: var(--color-muted); text-transform: uppercase; font-family: var(--font-heading); font-weight: 800; }
.cron-grid b { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; }
@media (max-width: 640px) { .cron-grid { grid-template-columns: repeat(3, 1fr); } }

.version-pill { font-family: var(--font-heading); font-weight: 900; font-size: 1.6rem; }
.update-log { background: #0a0a0a; color: #e4e4e7; border-radius: 12px; padding: 1rem 1.25rem; font-family: ui-monospace, Consolas, monospace; font-size: .82rem; line-height: 1.7; white-space: pre-wrap; }
.update-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
