[hidden] {
  display: none !important;
}

.gate {
  position: relative;
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 100dvh;
  padding: 2rem 1.25rem;
}

.gate__tools {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
}

.gate__panel {
  width: min(100%, 440px);
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.6rem, 5vw, 2.4rem);
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow), 0 0 80px -28px var(--glow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  animation: rise 0.6s var(--ease) both;
}

.gate__logo {
  width: 88px;
  height: 88px;
  margin-inline: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--border), 0 0 40px -6px var(--glow);
}

.gate__title {
  text-align: center;
  font: 700 1.5rem/1.15 var(--font-display);
  letter-spacing: -0.035em;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.banner {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  border: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.banner .ico {
  margin-top: 1px;
}

.banner--error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}

.banner--ok {
  background: var(--ok-soft);
  color: var(--ok);
  border-color: color-mix(in srgb, var(--ok) 45%, transparent);
  animation: rise 0.45s var(--ease) both;
}

.field {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--group {
  gap: 0.75rem;
}

.field__label {
  padding: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.field__hint {
  color: var(--muted);
  font-size: 0.88rem;
}

.field__hint.is-error,
.submit__lead.is-error,
.field__error {
  color: var(--danger);
  font-weight: 700;
}

.field__error {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.input {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1rem;
  border-radius: var(--r);
  background: var(--input);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.input:focus-within {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-hi) 18%, transparent), 0 0 24px -6px var(--glow);
}

.input .ico {
  color: var(--muted);
}

.input input {
  flex: 1;
  min-width: 0;
  padding: 0.9rem 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1rem;
}

.input input[aria-invalid="true"] {
  color: var(--danger);
}

.input--plain {
  padding-inline: 1.1rem 1rem;
}

.input__count {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.input__toggle {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: -0.5rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-soft);
  transition: background-color 0.2s;
}

.input__toggle:hover {
  background: var(--surface-2);
}

.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
}

.bar__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.bar__tag {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--grad);
  color: var(--on-brand);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.desk {
  display: grid;
  gap: 1.5rem;
  padding-block: 2.25rem 4rem;
}

.admin-list {
  display: grid;
  gap: 1.35rem;
}

.desk__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.desk__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.desk__toolbar .search {
  flex: 1 1 320px;
}

.desk__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.desk__title,
.composer__title {
  font: 700 clamp(1.7rem, 3.4vw, 2.4rem) / 1.1 var(--font-display);
  letter-spacing: -0.04em;
}

.desk__count {
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

.rows {
  display: grid;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1.1rem;
  padding: 0.85rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.row__select-slot {
  display: contents;
}

.row__select {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
  cursor: pointer;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.row:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--border-hi);
  box-shadow: 0 16px 40px -22px var(--glow);
}

.row--unpublished {
  opacity: 0.6;
}

.row--unpublished .row__thumb {
  filter: grayscale(1);
}

.row--unpublished:hover {
  opacity: 0.92;
}

.chip--draft {
  border-style: dashed;
  color: var(--muted);
}

.field--checks {
  display: grid;
  gap: 0.75rem;
}

.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}

.check:hover {
  border-color: var(--border-hi);
}

.check input[type="checkbox"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.check__box {
  display: grid;
  flex: none;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-top: 1px;
  border-radius: 8px;
  background: var(--input);
  border: 1.5px solid var(--border-hi);
  color: transparent;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.check input:checked + .check__box {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 8px 22px -8px var(--glow);
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
}

.check__text {
  display: grid;
  gap: 0.15rem;
}

.check__text strong {
  font-weight: 800;
}

.check__text span {
  color: var(--muted);
  font-size: 0.9rem;
}

.row__thumb {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--bg-soft);
}

.row__main {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}

.row__name {
  overflow: hidden;
  font: 700 1.05rem/1.25 var(--font-display);
  letter-spacing: -0.02em;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row__name:hover {
  color: var(--brand);
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.row__info {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.row__actions {
  display: flex;
  gap: 0.75rem;
}

.view-toggle {
  display: flex;
  flex: none;
  gap: 0.3rem;
}

.view-toggle__btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: var(--r);
  background: none;
  border: 1px solid transparent;
  color: var(--muted);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.view-toggle__btn:hover {
  color: var(--text);
  background: var(--surface-2);
}

.view-toggle__btn[aria-pressed="true"] {
  background: var(--surface);
  border-color: var(--border-hi);
  color: var(--brand);
}

/* --- Grid / mosaic view --- */

.rows--grid {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.rows--grid .row {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.rows--grid .row__thumb {
  width: 100%;
  height: 160px;
  border-radius: 0;
}

.rows--grid .row__main {
  padding: 0.9rem 1rem 0;
}

.rows--grid .row__name {
  white-space: normal;
}

.rows--grid .row__actions {
  flex-wrap: wrap;
  padding: 0.9rem 1rem 1rem;
}

.composer {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem 4rem;
}

.composer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  align-items: start;
  gap: 2.5rem;
}

.composer__form {
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--r-xl);
  background: var(--glass);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.composer__preview {
  position: sticky;
  top: 5.5rem;
  display: grid;
  gap: 0.75rem;
}

.composer__preview-title {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.composer__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 0.5rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.choice {
  position: relative;
  display: block;
}

.choice input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.choice__box {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.15rem;
  border-radius: var(--r);
  background: var(--input);
  border: 1px solid var(--border);
  font-weight: 800;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}

.choice:hover .choice__box {
  border-color: var(--border-hi);
  transform: translateY(-1px);
}

.choice input:checked + .choice__box {
  background: var(--grad);
  border-color: transparent;
  color: var(--on-brand);
  box-shadow: 0 10px 28px -10px var(--glow);
}

.choice input:focus-visible + .choice__box {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
}

.drop {
  position: relative;
}

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

.drop__area {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--input);
  border: 1.5px dashed var(--border-hi);
  cursor: pointer;
  transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.drop__area:hover,
.drop.is-over .drop__area {
  background: var(--surface-2);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-hi) 16%, transparent), 0 0 40px -12px var(--glow);
}

.drop__input:focus-visible + .drop__area {
  outline: 2px solid var(--brand-hi);
  outline-offset: 3px;
}

.drop__empty {
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  padding: 1.5rem;
  color: var(--text-soft);
  text-align: center;
}

.drop__empty .ico {
  color: var(--brand);
}

.drop__empty strong {
  color: var(--text);
  font-size: 1.05rem;
}

.drop__preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drop__swap {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(3, 14, 32, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 800;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.dls {
  display: grid;
  gap: 0.9rem;
}

.dl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.75rem;
  padding: 0.95rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.dl.is-new {
  animation: rise 0.35s var(--ease) both;
}

.dl__fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 0.75rem;
}

.sub {
  min-width: 0;
}

.sub__label {
  display: grid;
  gap: 0.35rem;
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.sub__label input {
  width: 100%;
  min-width: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--input);
  border: 1px solid var(--border);
  outline: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sub__label input:focus {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-hi) 18%, transparent);
}

.dl .btn--icon {
  padding: 0.7rem;
  border-radius: 12px;
}

.dialog {
  width: min(92vw, 460px);
  padding: 0;
  border-radius: var(--r-xl);
  background: var(--pop);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow), 0 0 70px -24px var(--danger);
}

.dialog[open] {
  animation: rise 0.28s var(--ease) both;
}

.dialog::backdrop {
  background: rgba(2, 8, 20, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dialog__panel {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
}

.dialog__title {
  font: 700 1.35rem/1.2 var(--font-display);
  letter-spacing: -0.03em;
}

.dialog__text {
  color: var(--text-soft);
  overflow-wrap: anywhere;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .composer__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .composer__preview {
    position: static;
    order: -1;
    max-width: 300px;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .row {
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .row__thumb {
    width: 60px;
    height: 60px;
  }

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

  .row__actions > * {
    flex: 1;
  }

  .row__actions .btn {
    width: 100%;
  }

  .dl,
  .dl__fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .dl .btn--icon {
    justify-self: end;
  }

  .composer__actions .btn {
    flex: 1;
  }

  .field--group > .btn {
    justify-self: start;
  }
}

.field--group > .btn {
  justify-self: start;
}

@media (prefers-reduced-motion: reduce) {
  .gate__panel,
  .banner--ok,
  .dl.is-new,
  .dialog[open] {
    animation: none !important;
  }
}

.hostlist {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hostlist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
}

.hostlist__item code {
  overflow-wrap: anywhere;
  font: 600 0.92rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hostlist__count {
  flex: none;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.banner--warn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border-radius: var(--r);
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  background: var(--danger-soft);
  color: var(--danger);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: transform 0.15s var(--ease);
}

.banner--warn:hover {
  transform: translateY(-1px);
}

.pill--toggle[aria-pressed="true"] {
  background: var(--danger);
  border-color: transparent;
  color: #fff;
}

.chip--broken {
  background: var(--danger-soft);
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  color: var(--danger);
}

.bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.bulk-bar__all {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

.bulk-bar__all input {
  accent-color: var(--brand);
  cursor: pointer;
}

.bulk-bar__count {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.chip--broken .ico {
  color: var(--danger);
}

.input--area {
  align-items: flex-start;
  padding-block: 0.85rem;
}

.input--area textarea {
  width: 100%;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  resize: vertical;
  min-height: 4.5em;
}

.input--area textarea:focus {
  outline: none;
}

.admin-results {
  transition: opacity 0.2s ease;
}

.admin-list[aria-busy="true"] .admin-results {
  opacity: 0.55;
  pointer-events: none;
}

.bar__badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

/* --- Submissions review (admin) --- */

.sub-list {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-card {
  display: grid;
  gap: 0.9rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}

.sub-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.sub-card__thumb {
  flex-shrink: 0;
}

.sub-card__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.sub-card__name {
  font: 700 1.15rem/1.3 var(--font-display);
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.sub-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.sub-card__details div {
  display: flex;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.sub-card__details dt {
  color: var(--muted);
  font-weight: 700;
}

.sub-card__details dd {
  color: var(--text);
}

.sub-card__text {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.55;
}

.sub-card__message {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r);
  background: var(--surface-2);
}

.sub-card__message .ico {
  flex: none;
  margin-top: 2px;
  color: var(--muted);
}

.sub-card__files {
  display: grid;
  gap: 0.5rem;
}

.sub-card__filelist {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sub-card__filelist li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r);
  background: var(--surface-2);
  font-size: 0.88rem;
}

.sub-card__filelist a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.sub-card__actions {
  display: flex;
  gap: 0.6rem;
}

/* --- Submission form (public) --- */

.submit__lead {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

.submit__form {
  display: grid;
  gap: 1.2rem;
  max-width: 640px;
  margin-top: 1.5rem;
}

.submit__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.submit__file-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 1rem;
  border-radius: var(--r-lg);
  border: 1.5px dashed var(--border-hi);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.submit__file-input:focus-visible + .submit__file-area {
  outline: 2px solid var(--brand-hi);
  outline-offset: 2px;
}

.submit__file-area:hover,
.submit__file-area.is-over {
  border-color: var(--brand);
  color: var(--text);
}

.submit__file {
  display: grid;
  gap: 0.7rem;
}

.submit__file-chosen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.submit__file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.65rem 0.6rem 0.65rem 1rem;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.submit__file-item-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  color: var(--brand);
  font-weight: 700;
}

.submit__file-item-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.submit__file-remove {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.submit__file-remove:hover,
.submit__file-remove:focus-visible {
  background: var(--surface-2);
  color: var(--danger);
  outline: none;
}

.submit__done-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--grad);
  color: #04131f;
}

.submit__progress {
  padding-top: 2rem;
}

.submit__bar {
  width: 100%;
  max-width: 480px;
  height: 14px;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.submit__bar-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: var(--grad);
  transition: width 0.2s ease;
}

.submit__bar-text {
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
}

.submit__bar-fill--busy {
  background-size: 200% 100%;
  animation: submit-bar-pulse 1.4s ease-in-out infinite;
}

.submit__bar-fill--done {
  animation: none;
}

.submit__uploads {
  display: grid;
  gap: 1.4rem;
  max-width: 480px;
  margin-top: 1rem;
}

.submit__upload-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  color: var(--text);
  word-break: break-all;
}

.submit__upload-name .ico {
  flex: none;
  color: var(--brand);
}

@keyframes submit-bar-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
