:root {
  color-scheme: dark;
  font: 100%/1.55 system-ui, sans-serif;
  color: #eef4ff;
  background: #101521;
  --muted: #bbc8dc;
  --edge: #374560;
  --accent: #bcecff;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 280px;
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse 48rem 32rem at 50% -12rem, #314c77, transparent);
}
.shell { max-width: 50rem; margin: 0 auto; padding: clamp(3rem, 9vw, 7rem) 1.25rem 2rem; }
.hero { margin: 0 0 2.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--accent); font-weight: 700; }
.crystal {
  width: .85rem;
  height: 1.05rem;
  background: linear-gradient(135deg, #e8fcff 30%, #8ad7fa 30% 62%, #5d9de3 62%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
h1, h2, h3, p { margin: 0; }
h1 { margin: .65rem 0; line-height: 1.08; font-size: clamp(2.35rem, 7.5vw, 4.2rem); letter-spacing: -.055em; }
h2 { font-size: 1.3rem; line-height: 1.25; }
h3 { font-size: 1.05rem; }
.hero p, .panel-header p, footer, .meta { color: var(--muted); }
.hero p { max-width: 34rem; font-size: 1.12rem; }
.panel { background: #191f30; border: 1px solid var(--edge); border-radius: 1rem; padding: clamp(1.05rem, 4vw, 1.8rem); box-shadow: 0 .75rem 2.5rem #090d1770; }
.panel-header, .results-header, .files li { display: flex; align-items: center; justify-content: space-between; gap: .85rem 1.2rem; }
.panel-header { flex-wrap: wrap; }
.panel-header p { margin-top: .35rem; }
button { border: 1px solid #556587; border-radius: .5rem; color: #e9f4ff; background: #26324a; padding: .62rem .85rem; font: inherit; font-size: .92rem; font-weight: 700; cursor: pointer; }
button:hover:enabled { background: #334361; }
.primary { color: #112034; background: var(--accent); border-color: var(--accent); }
.primary:hover:enabled { background: #e0f7ff; }
button:disabled { opacity: .54; cursor: default; }
:focus-visible { outline: 3px solid #89d9ff; outline-offset: 4px; }
.status { margin-top: 1rem; color: var(--muted); }
.status[data-error] { color: #ffcabf; }
.status:empty { display: none; }
#results { border-top: 1px solid var(--edge); margin-top: 1.4rem; padding-top: 1.15rem; }
.files { list-style: none; margin: .65rem 0 0; padding: 0; }
.files li { padding: .85rem 0; border-bottom: 1px solid var(--edge); }
.files li:last-child { border-bottom: none; padding-bottom: 0; }
.file-title { font-weight: 650; }
.meta { font-size: .875rem; overflow-wrap: anywhere; }
footer { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; margin: 1.4rem 0; font-size: .9rem; }
a { color: var(--accent); text-underline-offset: .2em; }
.policy p + p { margin-top: 1rem; }
@media (max-width: 29rem) {
  .panel-header > button { width: 100%; }
  .files li { gap: .5rem; }
  .files li button { padding-inline: .65rem; }
}
