:root {
  color-scheme: light dark;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background: #111827;
  color: #f9fafb;
}

body {
  margin: 0;
}

.page {
  margin: 0 auto;
  max-width: 960px;
  padding: 48px 24px;
}

.hero {
  margin-bottom: 32px;
}

.eyebrow,
.script-id {
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 6vw, 4rem);
}

.hero p:last-child {
  color: #d1d5db;
  font-size: 1.1rem;
  max-width: 680px;
}

.auth-status {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.auth-button {
  background: #2563eb;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  text-decoration: none;
}

.muted {
  color: #d1d5db;
}

.panel {
  background: rgba(31, 41, 55, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 24px;
}

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

.status {
  color: #a7f3d0;
  font-size: 0.875rem;
}

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

.script-card {
  background: rgba(17, 24, 39, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 12px 16px;
}

.script-details > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  list-style: none;
}

.script-details > summary::-webkit-details-marker {
  display: none;
}

.script-summary-chevron {
  color: #9ca3af;
  flex: 0 0 auto;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s ease;
}

.script-details[open] .script-summary-chevron {
  transform: rotate(90deg);
}

.script-summary-text {
  flex: 1 1 auto;
  min-width: 0;
}

.script-summary-text h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.script-schedule {
  color: #d1d5db;
  font-size: 0.875rem;
  margin: 0;
}

.script-details-panel {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  margin-top: 12px;
  padding-top: 12px;
}

.script-details-panel .script-id {
  margin-bottom: 8px;
}

.script-description {
  color: #d1d5db;
  margin: 0;
}

code {
  background: rgba(55, 65, 81, 0.8);
  border-radius: 6px;
  padding: 2px 6px;
}

.error {
  color: #fca5a5;
}

.run-button {
  background: #2563eb;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 10px 18px;
  white-space: nowrap;
}

.run-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.run-result {
  color: #d1d5db;
  margin: 12px 0 0;
}

.run-result.success {
  color: #a7f3d0;
}

.run-result.warning {
  color: #fde68a;
}

.run-result pre {
  background: rgba(3, 7, 18, 0.72);
  border-radius: 10px;
  color: #f9fafb;
  margin: 12px 0 0;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
  white-space: pre-wrap;
}

.ftp-summary {
  margin-top: 12px;
}

.ftp-summary p {
  margin: 4px 0;
}

.ftp-listing {
  border-collapse: collapse;
  margin-top: 12px;
  width: 100%;
}

.ftp-listing th,
.ftp-listing td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding: 10px 8px;
  text-align: left;
}

.ftp-listing th {
  color: #9ca3af;
  font-size: 0.75rem;
  text-transform: uppercase;
}
