@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Outfit:wght@500;600;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #090b10;
  --bg-soft: #0d1118;
  --panel: rgba(16, 20, 29, 0.84);
  --border: rgba(255, 255, 255, 0.1);
  --text: #edf2ff;
  --muted: #9ea9c7;
  --accent: #78e5ff;
  --accent-2: #83f8c4;
  --danger: #ff7395;
  --danger-soft: rgba(255, 115, 149, 0.14);
  --success: #7ef5c8;
  --success-soft: rgba(126, 245, 200, 0.13);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(80rem 40rem at -10% -20%, rgba(120, 229, 255, 0.11), transparent),
    radial-gradient(70rem 30rem at 100% -10%, rgba(131, 248, 196, 0.08), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  line-height: 1.45;
  overflow-x: hidden;
  position: relative;
}

body.theme-download {
  background:
    radial-gradient(60rem 40rem at 100% -20%, rgba(255, 115, 149, 0.09), transparent),
    radial-gradient(50rem 28rem at 0% 0%, rgba(120, 229, 255, 0.08), transparent),
    linear-gradient(180deg, #0b0d14 0%, var(--bg) 100%);
}

.ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 30% 25%, #000 32%, transparent 72%);
  opacity: 0.3;
}

.shell {
  width: min(780px, calc(100% - 2rem));
  margin: 2.25rem auto;
  position: relative;
  z-index: 1;
}

.shell.wide {
  width: min(1120px, calc(100% - 2rem));
}

.panel {
  border-radius: 18px;
  padding: 1.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
  animation: fade-up 360ms ease both;
}

.panel + .panel,
.panel + .notice,
.notice + .panel {
  margin-top: 0.9rem;
}

.header-panel {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.headline {
  margin: 0.3rem 0 0.6rem;
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.subtext {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.section-title {
  margin: 0 0 0.85rem;
  font-family: "Outfit", sans-serif;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.stacked-form {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.95rem;
}

.stacked-form label,
.stacked-form .field {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.93rem;
}

input,
button,
.ghost-link {
  font: inherit;
  border-radius: 12px;
}

input {
  padding: 0.66rem 0.82rem;
  color: var(--text);
  background: rgba(5, 8, 14, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 120ms ease, background-color 120ms ease;
}

input::placeholder {
  color: #7f8cad;
}

input:focus {
  outline: none;
  border-color: rgba(120, 229, 255, 0.7);
  background: rgba(5, 8, 14, 0.78);
}

button {
  border: 1px solid transparent;
  padding: 0.68rem 0.94rem;
  font-weight: 600;
  color: #07131f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

button.danger {
  color: #ffdce6;
  background: var(--danger-soft);
  border-color: rgba(255, 115, 149, 0.56);
  padding: 0.42rem 0.62rem;
}

.ghost-link {
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.52rem 0.76rem;
}

.notice {
  border-radius: 12px;
  border: 1px solid;
  padding: 0.75rem 0.92rem;
  font-weight: 600;
}

.notice.error {
  border-color: rgba(255, 115, 149, 0.6);
  background: rgba(255, 115, 149, 0.14);
  color: #ffdce6;
}

.notice.success {
  border-color: rgba(126, 245, 200, 0.55);
  background: var(--success-soft);
  color: #d6ffef;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.66rem 0.5rem;
  vertical-align: top;
  font-size: 0.92rem;
}

th {
  color: #b9c5e4;
  font-family: "Outfit", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.action-row {
  display: flex;
  align-items: center;
  gap: 0.48rem;
}

.action-row a {
  color: #b6d7ff;
}

.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

.dual-actions {
  margin-top: 1.05rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 0.95rem;
}

.file-input-wrap {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

.file-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.file-dropzone {
  border: 1px dashed rgba(120, 229, 255, 0.35);
  border-radius: 12px;
  padding: 0.78rem;
  background: rgba(120, 229, 255, 0.04);
  transition: border-color 140ms ease, background-color 140ms ease;
}

.file-dropzone.drag-over {
  border-color: rgba(120, 229, 255, 0.85);
  background: rgba(120, 229, 255, 0.12);
}

.file-pick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.88rem;
  border-radius: 12px;
  border: 1px solid rgba(120, 229, 255, 0.5);
  background: rgba(120, 229, 255, 0.08);
  color: #d4f6ff;
  cursor: pointer;
  font-weight: 600;
}

.file-pick:hover {
  background: rgba(120, 229, 255, 0.14);
}

.file-name {
  color: #b8c4e0;
  font-size: 0.88rem;
}

.file-drop-hint {
  color: #9cb8d4;
  font-size: 0.86rem;
}

code {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 0.12rem 0.36rem;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .header-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  th,
  td {
    min-width: 130px;
  }
}
