@font-face {
  font-family: Seed;
  src: url("/font.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Seed;
  src: url("/bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  font:
    15px/1.55 Seed,
    system-ui,
    sans-serif;
  color-scheme: dark;
  color: #f0f3e9;
  background: #111a17;
  --panel: #1a2521;
  --line: #3a4942;
  --muted: #b1beb4;
  --gold: #edc773;
  --danger: #ffa49e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
[hidden] {
  display: none !important;
}
button,
input {
  font: inherit;
}
button,
input:not([type="radio"], [type="checkbox"]) {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  color: inherit;
}
button {
  min-height: 39px;
  padding: 7px 14px;
  cursor: pointer;
}
button:hover:enabled {
  border-color: var(--gold);
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
button.primary,
.action-link.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #222116;
  font-weight: 700;
}
button.danger,
[data-error="true"] {
  color: var(--danger);
}
input:not([type="radio"], [type="checkbox"]) {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 5px;
  padding: 8px 10px;
}
input:is([type="radio"], [type="checkbox"]) {
  accent-color: var(--gold);
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px max(22px, calc((100vw - 880px) / 2));
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  flex-wrap: wrap;
}
.admin-account,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-account {
  margin-inline-start: auto;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.section-heading {
  margin: 24px 0 15px;
}
.section-heading h1 {
  margin: 0;
}
.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 39px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: inherit;
  text-decoration: none;
}
.action-link:hover {
  border-color: var(--gold);
  text-decoration: underline;
}
#session-status {
  padding: 10px 12px;
  margin-bottom: 12px;
  color: var(--danger);
  border-inline-start: 2px solid currentColor;
}
#session-status a {
  color: inherit;
}
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
}
.login main {
  width: min(100%, 400px);
  display: grid;
  justify-items: center;
  gap: 20px;
  padding-block: 24px;
  text-align: center;
}
.login img {
  object-fit: contain;
}
.login .action-link {
  min-height: 46px;
  padding-inline: 22px;
}
.login .login-message {
  color: var(--danger);
}
main {
  max-width: 928px;
  margin: auto;
  padding: 26px 24px 50px;
}
nav {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}
nav button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 0 11px;
  color: var(--muted);
}
nav button[aria-current] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  font-weight: 700;
}
h1 {
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  margin: 24px 0 15px;
}
h2 {
  font-size: 1.25rem;
  margin-bottom: 15px;
}
p {
  margin: 0;
}
.release-current {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 28px;
}
.release-current > div {
  padding: 12px 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.release-current > div > strong {
  display: block;
  margin-bottom: 4px;
}
.release-current > div + div {
  border-inline-start: 1px solid var(--line);
}
.release-current > div > div,
small,
.hint {
  color: var(--muted);
}
.release-current ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.release-toolbar,
.release-current li {
  flex-wrap: wrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.release-info,
.release-actions,
.release-editor {
  display: flex;
  align-items: center;
  gap: 8px;
}
.release-actions[hidden],
.release-editor[hidden] {
  display: none;
}
.release-info {
  min-width: 0;
}
.release-icon {
  width: 36px;
  height: 36px;
  flex: none;
  object-fit: contain;
  border-radius: 6px;
}
.release-editor {
  flex: 1 0 100%;
  flex-wrap: wrap;
}
.release-editor input {
  flex: 1 1 9rem;
  min-width: 0;
}
.release-toolbar {
  margin: 12px 0 8px;
}
.release-toolbar h2 {
  margin: 0;
}
.release-current li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.release-current li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.release-current li strong {
  color: #f0f3e9;
}
.release-current li small {
  display: block;
}
.release-current li button {
  flex-shrink: 0;
}
#release-status:not(:empty) {
  margin: -17px 0 18px;
}
#upload-form {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
#upload-heading {
  scroll-margin-top: 16px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 7px;
}
.scope {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.scope label {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}
.scope label:has(:checked) {
  border-color: var(--gold);
  background: var(--panel);
}
.scope small {
  display: block;
}
.file-fields {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
#icon-preview {
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 17px;
  flex-wrap: wrap;
}
#upload-progress {
  display: block;
  width: min(100%, 420px);
  margin-top: 12px;
  accent-color: var(--gold);
}
.inline-form,
.task-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
}
.inline-form label,
.task-form label:first-child {
  flex: 1 1 220px;
}
#tasks-status {
  min-height: 1.5em;
  margin: 8px 0;
}
#task-list {
  padding: 0;
  list-style: none;
}
#task-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
#tasks-empty {
  margin-top: 15px;
}
.roster-controls {
  display: flex;
  align-items: end;
  gap: 12px;
}
.roster-controls label {
  flex: 1;
}
.selection-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.selection-actions span {
  color: var(--muted);
  margin-right: auto;
}
#user-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  max-height: 255px;
  overflow: auto;
  gap: 1px;
  list-style: none;
  margin: 8px 0;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--line);
}
#user-list:empty {
  display: none;
}
#user-list li {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  background: var(--panel);
}
#user-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  cursor: pointer;
}
#user-list button {
  flex-shrink: 0;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 12px;
}
.manual-player {
  padding: 8px 0 14px;
  color: var(--muted);
}
.manual-player summary {
  cursor: pointer;
}
.manual-player form {
  margin-top: 9px;
}
#task-create {
  padding-top: 12px;
  align-items: flex-start;
}
#assign-heading {
  border-top: 1px solid var(--line);
  margin-bottom: 6px;
  padding-top: 16px;
}
#assignment-targets {
  overflow-wrap: anywhere;
}
#task-create > button {
  margin-top: 28px;
}
.deadline {
  flex: 0 1 250px;
}
.date-shortcuts {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}
.date-shortcuts button {
  font-size: 12px;
  min-height: 30px;
  padding: 3px 7px;
}
.date-shortcuts [aria-pressed="true"] {
  color: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 600px) {
  .release-current {
    grid-template-columns: 1fr;
  }
  .release-current > div + div {
    border-inline-start: 0;
    border-top: 1px solid var(--line);
  }
  .file-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}
