:root {
  color-scheme: dark;
  --accent: #64FF5A;
  --accent-soft: rgba(100, 255, 90, 0.15);
  --accent-glow: rgba(100, 255, 90, 0.25);
  --background: #010a17;
  --surface: #0c1927;
  --border: #344754;
  --muted: #bdcbd4;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
}
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  margin-inline: 2%;
  background: radial-gradient(ellipse 65% 30% at 50% 100%,
    rgba(100, 255, 90, 0.32) 0%,
    rgba(100, 255, 90, 0.24) 15%,
    rgba(100, 255, 90, 0.17) 35%,
    rgba(100, 255, 90, 0.12) 50%,
    rgba(100, 255, 90, 0.06) 65%,
    rgba(100, 255, 90, 0.03) 80%,
    transparent 100%) fixed, var(--background);
  color: #ffffff;
  line-height: 1.5;
}
header, main { width: min(100%, 1000px); padding-inline: 20px; }
header, .heading, .actions, .brand { display: flex; align-items: center; gap: 12px; }
header, .heading, .actions { justify-content: space-between; }
header { padding-block: 17px; border-bottom: 1px solid var(--border); }
.brand span { color: var(--accent); font-size: 21px; }
main { margin-block: auto; padding-block: 44px; }
h1 { font-size: clamp(38px, 6vw, 58px); letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: 18px; letter-spacing: -.025em; }
p, small, #status { color: var(--muted); }
p { margin: 12px 0 28px; }
small, #status { font-size: 13px; }
nav { display: inline-flex; gap: 3px; padding: 4px; margin-bottom: 20px; background: var(--surface); border-radius: 9px; }
button, a {
  font-size: 14px; font-weight: 700; cursor: pointer;
  border: 1px solid var(--border); border-radius: 6px;
  background: var(--surface); color: #fff; padding: 8px 14px;
}
a { color: var(--accent); text-decoration: none; }
nav button { border-color: transparent; background: transparent; }
button:hover:enabled, a:hover { background: var(--accent-soft); border-color: var(--accent); }
nav button[aria-pressed="true"], .primary, .primary:hover:enabled {
  background: var(--accent); color: var(--background); border-color: var(--accent);
}
.primary:hover:enabled { box-shadow: 0 0 14px var(--accent-glow); }
section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 16px; }
.actions { margin-top: 12px; }
#fileName { overflow-wrap: anywhere; }
textarea, pre { background: var(--background); color: #fff; font-size: 14px; line-height: 1.55; padding: 14px; }
textarea { width: 100%; min-height: 180px; resize: vertical; border: 1px solid var(--border); border-radius: 6px; margin-top: 14px; }
textarea::placeholder { color: #9baebc; }
pre { margin-top: 10px; overflow: auto; max-height: 380px; white-space: pre-wrap; overflow-wrap: anywhere; }
#status { margin-top: 10px; }
#status.error { color: #ffaaa0; }
button:disabled { opacity: .6; cursor: wait; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--background); }
