:root {
  color-scheme: dark;
  --bg: #0b0f14;
  --panel: #131922;
  --panel-hover: #18212c;
  --border: #273241;
  --text: #eef3f8;
  --muted: #8e9bab;
  --accent: #f58220;
  --accent-soft: rgba(245, 130, 32, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  min-height: 72px;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(19, 25, 34, 0.96);
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.refresh {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #1b232e;
  color: var(--text);
  cursor: pointer;
}

.refresh:hover { border-color: var(--accent); }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  padding: 30px;
  margin-bottom: 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-soft), transparent 50%), var(--panel);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); }
.lead { margin: 10px 0 0; color: var(--muted); }

.section-heading {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.section-heading h2 { margin: 0; font-size: 20px; }
.section-heading span { color: var(--muted); font-size: 13px; }

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

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--panel);
  transition: 150ms ease;
  cursor: pointer;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--panel-hover);
}

.folder-icon {
  height: 155px;
  display: grid;
  place-items: center;
  background: #0f141b;
  font-size: 52px;
}

.card-body { padding: 15px; }
.file-name { font-weight: 700; overflow-wrap: anywhere; }
.details { margin-top: 6px; color: var(--muted); font-size: 12px; }

footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

button:focus-visible, .card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .topbar { padding: 14px 18px; }
  .container { width: min(100% - 28px, 1180px); padding-top: 20px; }
  .hero { padding: 22px; }
  .grid { grid-template-columns: 1fr; }
  .folder-icon { height: 125px; }
}
