:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: #1d1d1f;
  --muted: rgba(29, 29, 31, 0.62);
  --border: rgba(0, 0, 0, 0.08);
  --shadow: 0 20px 55px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --ring: rgba(0, 113, 227, 0.35);
  --btn-bg: #0071e3;
  --btn-fg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
    Helvetica, Arial;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245, 245, 247, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  display: block;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.08));
  height: 28px;
  width: auto;
  object-fit: contain;
}

main {
  padding: 56px 0 60px;
}

.card {
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-header {
  padding: 26px 26px 18px;
}

h1 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.list-toolbar {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.actions-row {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search {
  flex: 1 1 260px;
  max-width: 520px;
}

.search-input {
  width: 100%;
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  color: var(--text);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: box-shadow 140ms ease, border-color 140ms ease;
}

.search-input:focus {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}

.list-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.count {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.02);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.015);
}

.file-meta {
  min-width: 0;
}

.file-name {
  font-weight: 650;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-details {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted);
}

.btn {
  appearance: none;
  border: 0;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
  border-radius: 999px;
  color: var(--btn-fg);
  background: var(--btn-bg);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transition: transform 140ms ease, box-shadow 140ms ease,
    background-color 140ms ease, opacity 140ms ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
  background: #0077ed;
}

.btn:active {
  transform: translateY(0px);
  opacity: 0.92;
}

.btn:focus-visible,
.brand:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
  border-radius: 14px;
}

.card-footer {
  padding: 18px 26px 24px;
}

.hint {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.support-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.support-text {
  flex: 0 1 auto;
}

.copy-group {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.copy-box {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.02);
  color: inherit;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  max-width: 360px;
  flex: 0 1 auto;
  text-align: left;
}

.copy-handle {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-weight: 650;
  color: var(--text);
}

.copy-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  margin-left: 8px;
  opacity: 0.85;
}

.copy-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  transition: transform 140ms ease, box-shadow 140ms ease,
    background-color 140ms ease, opacity 140ms ease;
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.02);
}

.copy-btn:active {
  transform: translateY(0px);
  opacity: 0.92;
}

.copy-status {
  font-size: 13px;
  color: var(--muted);
  min-width: 90px;
}

.copy-box:focus-visible,
.copy-btn:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 3px;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  padding: 0.08em 0.34em;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer {
  padding: 26px 0 34px;
  color: rgba(29, 29, 31, 0.55);
}

@media (max-width: 560px) {
  .file-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .copy-box {
    max-width: 100%;
    flex: 1 1 auto;
  }

  .copy-status {
    min-width: 0;
  }
}
.download-list {
  border-top: 1px solid var(--border);
}

.download-empty {
  padding: 18px 26px;
  color: var(--muted);
  line-height: 1.6;
}

.downloads-grid-wrap {
  border-top: 1px solid var(--border);
  padding: 22px 26px 26px;
}

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

.downloads-grid .download-empty {
  padding: 0;
}

.download-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(0, 0, 0, 0.01));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.download-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(680px 240px at 10% 0%, rgba(0, 113, 227, 0.13), transparent 60%);
  pointer-events: none;
  opacity: 0.85;
}

.download-card > * {
  position: relative;
}

.download-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 113, 227, 0.22);
}

.download-card-title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: -0.01em;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.download-card-sub {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.download-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

.download-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.download-card-actions .btn {
  padding: 11px 14px;
}

@media (max-width: 560px) {
  .downloads-grid-wrap {
    padding: 18px;
  }

  .download-card-actions .btn {
    width: 100%;
  }
}
