:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: rgba(255, 255, 255, 0.92);
  --text: #101828;
  --muted: #667085;
  --line: rgba(15, 23, 42, 0.12);
  --accent: #0f766e;
  --accent-strong: #115e59;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 0%, rgba(20, 184, 166, 0.22), transparent 32%),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.18), transparent 28%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: end;
  padding: 36px 0 24px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.summary {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.status-card,
.panel {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: var(--shadow);
}

.status-card {
  border-radius: 24px;
  padding: 22px;
}

.status-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.panel {
  margin-top: 18px;
  border-radius: 26px;
  padding: 22px;
}

.page-hidden {
  display: none !important;
}

.login-panel {
  max-width: 760px;
}

summary {
  cursor: pointer;
  color: var(--accent-strong);
  font-weight: 800;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  color: white;
  background: var(--accent);
}

details[open] summary::before {
  content: "-";
}

.advanced-panel .panel-head {
  margin-top: 18px;
}

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

.panel-head p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.panel-head.compact {
  margin-bottom: 10px;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

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

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

.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}

.form-note {
  align-self: end;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 14px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 13px;
  line-height: 1.5;
}

input,
select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

input:focus,
select:focus {
  border-color: rgba(15, 118, 110, 0.72);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.toggle {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 10px;
  padding-top: 23px;
}

.toggle input {
  width: 18px;
  height: 18px;
}

.toggle span {
  margin: 0;
}

button {
  min-height: 42px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

button:active {
  transform: translateY(1px) scale(0.99);
}

.primary {
  min-height: 52px;
  padding: 0 28px;
  color: white;
  background: var(--accent);
  box-shadow: 0 18px 38px rgba(15, 118, 110, 0.24);
  font-weight: 800;
}

.primary:hover {
  background: var(--accent-strong);
}

.secondary {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
  font-weight: 750;
}

.small {
  min-height: 34px;
  padding: 0 14px;
}

.action-row {
  display: flex;
  gap: 18px;
  align-items: center;
  margin: 20px 0 0;
}

.quick-action {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  margin-top: 20px;
}

.result {
  flex: 1;
  min-height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--panel-strong);
}

.result.success {
  color: var(--accent-strong);
  background: rgba(15, 118, 110, 0.1);
}

.result.error {
  color: var(--danger);
  background: rgba(180, 35, 24, 0.08);
}

.logs-panel {
  padding-bottom: 12px;
}

pre {
  min-height: 220px;
  max-height: 420px;
  overflow: auto;
  margin: 0;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 18px;
  padding: 16px;
  color: #d1fadf;
  background: #101828;
  font: 13px/1.55 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  white-space: pre-wrap;
}

@media (max-width: 860px) {
  .hero,
  .two,
  .three {
    grid-template-columns: 1fr;
  }

  .span-two {
    grid-column: auto;
  }

  .panel-head,
  .action-row,
  .quick-action {
    align-items: stretch;
    display: flex;
    flex-direction: column;
  }

  .button-group {
    justify-content: stretch;
  }

  .primary,
  .secondary,
  .button-group button {
    width: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .status-card,
  .panel {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
