:root {
  color-scheme: light;
  --ink: #172026;
  --muted: #64717c;
  --line: #d9e1e7;
  --panel: #ffffff;
  --soft: #f4f7f8;
  --aqua: #16a6a3;
  --aqua-dark: #0b7775;
  --navy: #102331;
  --gold: #d79b35;
  --danger: #b42318;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(22, 166, 163, 0.11), transparent 34%),
    linear-gradient(315deg, rgba(215, 155, 53, 0.12), transparent 28%),
    var(--soft);
  color: var(--ink);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.brand-panel {
  min-height: 230px;
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 24px;
  align-items: center;
  padding: 36px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(16, 35, 49, 0.94), rgba(11, 119, 117, 0.88)),
    radial-gradient(circle at 80% 20%, rgba(215, 155, 53, 0.7), transparent 28%);
  border-radius: 8px;
  box-shadow: 0 20px 55px rgba(16, 35, 49, 0.18);
}

.brand-mark {
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: inherit;
  opacity: 0.78;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.55rem;
}

h3 {
  margin-bottom: 8px;
}

.lead {
  max-width: 620px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.08rem;
  line-height: 1.55;
}

.auth-card,
.workspace {
  margin-top: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(23, 32, 38, 0.08);
}

.auth-card {
  max-width: 480px;
  padding: 28px;
}

.form-stack,
.upload-grid {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.91rem;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--aqua);
  box-shadow: 0 0 0 3px rgba(22, 166, 163, 0.16);
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 16px;
  color: #fff;
  background: var(--aqua-dark);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--navy);
}

button.secondary {
  color: var(--navy);
  background: #e8eef1;
}

button.secondary:hover {
  background: #d5e0e6;
}

.workspace {
  overflow: hidden;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
}

.user-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
}

.upload-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.5fr);
  gap: 24px;
  padding: 26px 28px;
  background: #f9fbfb;
  border-bottom: 1px solid var(--line);
}

.upload-grid {
  grid-template-columns: 1fr 1fr;
}

.wide {
  grid-column: 1 / -1;
}

.release-panel {
  padding: 24px 28px 30px;
}

.release-list {
  display: grid;
  gap: 14px;
}

.release-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--aqua);
  border-radius: 8px;
  background: #fff;
}

.release-title {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}

.release-title strong {
  font-size: 1.1rem;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 9px;
  color: #603c00;
  background: #fff0ce;
  font-size: 0.75rem;
  font-weight: 800;
}

.meta,
.muted {
  color: var(--muted);
}

.meta {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.notes {
  margin: 8px 0 10px;
  line-height: 1.55;
}

.download-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 145px;
  border-radius: 6px;
  padding: 11px 14px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
  text-decoration: none;
}

.download-link:hover {
  background: var(--aqua-dark);
}

.message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--aqua-dark);
  font-weight: 700;
}

.message.error {
  color: var(--danger);
}

.empty {
  padding: 30px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.hidden {
  display: none !important;
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1120px);
    padding: 10px 0 24px;
  }

  .brand-panel,
  .upload-panel,
  .release-card {
    grid-template-columns: 1fr;
  }

  .brand-panel {
    padding: 24px;
  }

  .toolbar,
  .user-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .upload-grid {
    grid-template-columns: 1fr;
  }

  .download-link {
    width: 100%;
  }
}
