:root {
  color-scheme: light;
  --bg: #eff3f7;
  --panel: #ffffff;
  --panel-alt: #0f1a28;
  --text: #132033;
  --muted: #66758a;
  --line: #d8e0ea;
  --brand: #0a9b8a;
  --brand-deep: #0c6b78;
  --accent: #ffb84d;
  --danger: #ff7a59;
  --shadow: 0 24px 70px rgba(17, 29, 52, 0.12);
  --radius: 24px;
  --font: "Segoe UI", "Trebuchet MS", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(10, 155, 138, 0.2), transparent 32%),
    linear-gradient(180deg, #f7fafc 0%, var(--bg) 100%);
}

.shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}

.sidebar {
  padding: 32px 24px;
  background: linear-gradient(180deg, #0d1b2a 0%, #16283c 100%);
  color: #f2f7fb;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.content {
  padding: 28px;
  display: grid;
  gap: 22px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(18, 32, 51, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.hero h2,
.wizard-panel h3,
.install-panel h3,
.completion-summary h3 {
  margin: 0;
  font-size: clamp(1.5rem, 2vw, 2.3rem);
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.hero-badge {
  min-width: 140px;
  border-radius: 18px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(10, 155, 138, 0.12), rgba(255, 184, 77, 0.2));
}

.eyebrow,
.sidebar-label,
.section-label {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--brand);
}

.muted {
  color: var(--muted);
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.step-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}

.step-item span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.step-item.active {
  background: rgba(10, 155, 138, 0.22);
}

.step-item.done span {
  background: rgba(255, 184, 77, 0.24);
}

.sidebar-card {
  margin-top: auto;
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.07);
}

.wizard-panel,
.install-panel {
  padding: 28px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 20px;
}

.grid {
  display: grid;
  gap: 16px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.field span {
  font-size: 0.9rem;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.card-grid,
.service-grid {
  display: grid;
  gap: 16px;
}

.card-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid.compact {
  grid-template-columns: 1fr;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.option-card,
.checkbox-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.option-card:hover,
.checkbox-card:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 155, 138, 0.5);
}

.option-card.selected,
.checkbox-card.selected {
  border-color: var(--brand);
  box-shadow: 0 12px 30px rgba(10, 155, 138, 0.12);
}

.option-card p,
.checkbox-card p,
.review-card p,
.task p,
.completion-summary p {
  margin: 8px 0 0;
  color: var(--muted);
}

.meta {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand-deep);
  font-size: 0.85rem;
}

.checkbox-card input {
  margin-bottom: 12px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.review-card {
  padding: 18px;
  border-radius: 20px;
  background: #f7fafc;
}

.action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.action-row.end {
  justify-content: flex-end;
}

.support-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(10, 155, 138, 0.12), rgba(255, 184, 77, 0.24));
  border: 1px solid rgba(10, 107, 120, 0.14);
  box-shadow: 0 14px 32px rgba(17, 29, 52, 0.08);
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.support-link:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 107, 120, 0.28);
  box-shadow: 0 18px 36px rgba(17, 29, 52, 0.12);
}

.support-link__label {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.support-link__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand));
}

.support-link__icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
}

.secondary-btn {
  background: #e7eef6;
  color: var(--text);
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  background: #e6edf5;
  overflow: hidden;
  margin-bottom: 18px;
}

.progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 300ms ease;
}

.task-list {
  display: grid;
  gap: 12px;
}

.task {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f8fbfd;
}

.task.running {
  border-left: 5px solid var(--brand);
}

.task.completed {
  border-left: 5px solid var(--accent);
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 600;
}

.notice.info {
  background: rgba(10, 155, 138, 0.08);
  border-color: rgba(10, 155, 138, 0.18);
}

.notice.success {
  background: rgba(35, 161, 90, 0.1);
  border-color: rgba(35, 161, 90, 0.22);
}

.notice.error {
  background: rgba(255, 122, 89, 0.12);
  border-color: rgba(255, 122, 89, 0.24);
}

.logout-btn {
  min-width: 140px;
}

.view-switcher {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: #eef3f8;
}

.tab-btn {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
}

.login-card,
.management-card {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(18, 32, 51, 0.06);
  box-shadow: var(--shadow);
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-sidecard {
  background: linear-gradient(180deg, #0d1b2a 0%, #16283c 100%);
  color: #f2f7fb;
}

.login-sidecard .muted,
.login-sidecard .eyebrow {
  color: rgba(242, 247, 251, 0.82);
}

.login-list {
  margin: 16px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.stats-grid,
.dashboard-grid {
  display: grid;
  gap: 18px;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.dashboard-grid {
  grid-template-columns: 1.3fr 0.9fr;
}

.stat-card {
  display: grid;
  gap: 10px;
}

.stat-value {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-deep);
}

.compact-header {
  margin-bottom: 16px;
}

.service-admin-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fbfdff;
}

.service-admin-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
}

.status-pill.online {
  background: rgba(35, 161, 90, 0.12);
  color: #1f7f49;
}

.status-pill.degraded {
  background: rgba(255, 184, 77, 0.18);
  color: #9c6104;
}

.status-pill.offline {
  background: rgba(255, 122, 89, 0.15);
  color: #b1472b;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.status-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: white;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.status-btn.selected {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(10, 155, 138, 0.08);
}

.job-list {
  display: grid;
  gap: 12px;
}

.completion-summary {
  margin-top: 24px;
  padding: 22px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(10, 155, 138, 0.1), rgba(255, 184, 77, 0.14));
}

.hidden {
  display: none;
}

@media (max-width: 980px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .login-shell,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 18px;
  }

  .sidebar-card {
    margin-top: 0;
  }

  .two-col,
  .hero {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-side {
    justify-self: start;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .content,
  .sidebar,
  .wizard-panel,
  .install-panel,
  .hero {
    padding: 20px;
  }

  .action-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .support-link {
    width: 100%;
    justify-content: space-between;
  }
}
