:root {
  color-scheme: light;
  --bg-top: #f7efe1;
  --bg-bottom: #d5e7ea;
  --panel: rgba(255, 252, 246, 0.92);
  --text: #18222d;
  --muted: #5a6572;
  --ok: #166534;
  --ok-bg: #e7f8ec;
  --warn: #92400e;
  --warn-bg: #fff2db;
  --error: #991b1b;
  --error-bg: #fde9e8;
  --border: rgba(24, 34, 45, 0.1);
  --shadow: 0 24px 60px rgba(24, 34, 45, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 34%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 760px);
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.lead {
  margin: 20px 0 0;
  max-width: 56ch;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 600;
}

.status-checking {
  color: var(--warn);
  background: var(--warn-bg);
}

.status-ok {
  color: var(--ok);
  background: var(--ok-bg);
}

.status-error {
  color: var(--error);
  background: var(--error-bg);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  animation: pulse 1.2s infinite ease-in-out;
}

.links {
  margin-top: 32px;
}

.links h2 {
  margin: 0 0 18px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.links-list {
  display: grid;
  gap: 18px;
}

.vm-folder {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  overflow: hidden;
}

.vm-folder-title {
  margin: 0;
  padding: 18px;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  list-style: none;
}

.vm-folder-title::-webkit-details-marker {
  display: none;
}

.vm-folder-title::before {
  content: "▾";
  display: inline-block;
  margin-right: 10px;
  transition: transform 150ms ease;
}

.vm-folder:not([open]) .vm-folder-title::before {
  transform: rotate(-90deg);
}

.folder-links {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.vm-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: inherit;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.vm-link:hover,
.vm-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(24, 34, 45, 0.25);
  background: rgba(255, 255, 255, 0.96);
}

.vm-link strong {
  display: block;
  font-size: 1rem;
}

.vm-link span {
  color: var(--muted);
  font-size: 0.95rem;
}

.actions {
  margin-top: 28px;
}

button {
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
}

.secondary {
  color: var(--text);
  background: rgba(24, 34, 45, 0.08);
}

.hidden {
  display: none;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.35;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 640px) {
  .card {
    padding: 28px;
  }

  .vm-link {
    flex-direction: column;
    align-items: flex-start;
  }
}
