@import url('fonts.css');

/* =========================================================================
   Mod-Depot "Die Hasis"
   Gestaltung: Werkstatt-Handbuch. Dunkle Halle, Erntegold als Akzent,
   technische Daten in Mono, Mods als durchnummerierte Teileliste.
   ========================================================================= */

:root {
  --ink: #0c0e0a;
  --ink-2: #12150f;
  --panel: #181c14;
  --panel-2: #1e2319;
  --line: #2b3225;
  --line-bright: #3d4634;

  --text: #e9e7dc;
  --muted: #8e9480;
  --faint: #666b5b;

  --wheat: #e0b13a;
  --wheat-dim: #9a7a26;
  --field: #86ad52;
  --rust: #c85c33;

  --shadow: 0 18px 40px -24px rgb(0 0 0 / 0.9);
  --radius: 3px;

  --step: clamp(1rem, 0.6rem + 1.4vw, 1.6rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--ink);
  color: var(--text);
  font-family: 'IBM Plex Sans', ui-sans-serif, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  /* Leichtes Korn plus ein warmer Lichtkegel von oben -- damit die Flaeche
     nicht wie ein flacher schwarzer Kasten wirkt. */
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgb(224 177 58 / 0.09), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
}

::selection {
  background: var(--wheat);
  color: var(--ink);
}

a {
  color: var(--wheat);
}

/* --- Grundbausteine ----------------------------------------------------- */

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

.kicker {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--wheat-dim);
}

.mono {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.62rem 1.1rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.btn:hover {
  background: #262c1e;
  border-color: var(--wheat-dim);
}

.btn:active {
  transform: translateY(1px);
}

.btn:focus-visible {
  outline: 2px solid var(--wheat);
  outline-offset: 2px;
}

.btn--primary {
  background: var(--wheat);
  border-color: var(--wheat);
  color: #1a1505;
  font-weight: 600;
}

.btn--primary:hover {
  background: #edc052;
  border-color: #edc052;
}

.btn--danger {
  border-color: #5a2c1b;
  color: #e79c7c;
}

.btn--danger:hover {
  background: #331810;
  border-color: var(--rust);
}

.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.86rem;
}

/* --- Wappen ------------------------------------------------------------- */

/* Als CSS-Maske eingebunden statt als <img>: so liegt die Farbe im Stylesheet
   und folgt der Palette, ohne dass eine eingefaerbte Zweitdatei gepflegt werden
   muss. Das Seitenverhaeltnis stammt aus der viewBox der Datei. */
.crest {
  display: block;
  flex: none;
  aspect-ratio: 359.2 / 424.4;
  background-color: var(--wheat);
  -webkit-mask: url('hasis.svg') no-repeat center / contain;
  mask: url('hasis.svg') no-repeat center / contain;
}

.crest--hero {
  width: 96px;
  /* Schwacher Schein, damit das Wappen auf dem dunklen Grund nicht klebt. */
  filter: drop-shadow(0 6px 16px rgb(224 177 58 / 0.22));
  animation: stamp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.crest--mark {
  width: 44px;
}

.crest--depot {
  width: 88px;
  justify-self: center;
}

@keyframes stamp {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .crest--hero {
    animation: none;
  }
}

/* --- Kopfbereich -------------------------------------------------------- */

.topbar {
  border-top: 4px solid var(--wheat);
  background: linear-gradient(180deg, rgb(224 177 58 / 0.06), transparent);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 2.2rem 1.6rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.topbar__inner--depot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.topbar__inner--depot .topbar__meta {
  justify-self: end;
  padding-bottom: 0;
}

.brand__kicker {
  display: block;
  margin-bottom: 0.35rem;
}

.brand__name {
  margin: 0;
  font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 1.4rem + 4.4vw, 4.6rem);
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.brand__name em {
  font-style: normal;
  color: var(--wheat);
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding-bottom: 0.4rem;
}

.stat {
  text-align: right;
}

.stat__value {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
}

.stat__label {
  display: block;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Live-Status -------------------------------------------------------- */
.server-brief {
  margin: 0 0 1.6rem;
  padding-block: 0.9rem;
  border-block: 1px solid var(--line);
}

.server-brief__line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 1.1rem;
  font-size: 0.85rem;
}

.server-brief .server-brief__line { justify-content: center; }
.server-brief .server-stamp { text-align: center; }
.server-indicator { display: inline-flex; align-items: center; gap: 0.5rem; }
.server-indicator::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--muted);
}
.server-indicator[data-status='online'] { color: #afd47e; }
.server-indicator[data-status='online']::before { background: var(--field); }
.server-indicator[data-status='offline'] { color: #e79c7c; }
.server-indicator[data-status='offline']::before { background: var(--rust); }

.server-panel {
  margin-block: 1.6rem 2rem;
  padding: 1.4rem 1.5rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.server-panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.5rem;
}
.server-panel h2 {
  margin: 0;
  font: 700 1.45rem 'Bricolage Grotesque', sans-serif;
}
.server-info {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1rem 2rem;
  margin: 1.4rem 0;
}
.server-info > div { min-width: 0; }
.server-info dt, .server-metric h3, .server-players h3 {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
}
.server-info dd { margin: 0; font-size: 0.95rem; overflow-wrap: anywhere; }
.server-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}
.server-metric { padding: 1.15rem; min-width: 0; }
.server-metric:first-child { padding-left: 0; }
.server-metric:last-child { padding-right: 0; }
.server-metric + .server-metric { border-left: 1px solid var(--line); }
.server-metric__value {
  margin: 0.3rem 0 0.6rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: clamp(1.1rem, 1.6vw, 1.65rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--wheat);
}
.server-metric__note { margin: 0.5rem 0 0; font-size: 0.72rem; color: var(--muted); }
.server-metric meter { display: block; width: 100%; height: 0.4rem; appearance: none; background: var(--line); border: 0; }
.server-metric meter::-webkit-meter-bar { background: var(--line); border: 0; height: 0.4rem; border-radius: 0; }
.server-metric meter::-webkit-meter-optimum-value { background: var(--wheat); }
.server-metric meter::-moz-meter-bar { background: var(--wheat); }
.server-metric meter[hidden], .server-players__empty[hidden] { display: none; }
.server-players { padding-top: 1.15rem; }
.server-player-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.5rem 0 0; list-style: none; }
.server-player-list:empty { display: none; }
.server-player-list li { padding: 0.25rem 0.7rem; border: 1px solid var(--line-bright); border-radius: 2px; font-size: 0.85rem; overflow-wrap: anywhere; max-width: 100%; }
.server-players__empty { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.85rem; }
.server-stamp { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.69rem; }

@media (max-width: 680px) {
  .server-panel { padding: 1.1rem; }
  .server-info { grid-template-columns: 1fr; gap: 0.8rem; }
  .server-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .server-metric { padding: 1rem 0.8rem; }
  .server-metric:nth-child(odd) { padding-left: 0; border-left: 0; }
  .server-metric:nth-child(even) { padding-right: 0; }
  .server-metric:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* --- Meldungsband ------------------------------------------------------- */

.banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-block: 1.6rem;
  padding: 1.05rem 1.3rem;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel);
}

.banner--updates {
  border-left-color: var(--wheat);
  /* Warnbaken-Streifen, sehr zurueckhaltend dosiert. */
  background-image: repeating-linear-gradient(
    -45deg,
    rgb(224 177 58 / 0.07) 0 12px,
    transparent 12px 24px
  );
}

.banner--fresh {
  border-left-color: var(--field);
}

.banner__text {
  margin: 0;
  font-size: 1.02rem;
}

.banner__text strong {
  color: var(--wheat);
  font-weight: 600;
}

.banner__hint {
  margin: 0.2rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- Sammel-Download ---------------------------------------------------- */

.bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 2.4rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgb(224 177 58 / 0.08), transparent 55%),
    var(--panel);
  box-shadow: var(--shadow);
}

.bundle__title {
  margin: 0.25rem 0 0.3rem;
  font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}

.bundle__note {
  margin: 0;
  max-width: 46ch;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  color: var(--muted);
}

/* --- Kurzanleitung ------------------------------------------------------ */
.page-shortcuts { display: flex; justify-content: flex-end; margin-block: 0.5rem 0; }
.join-guide__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.5rem; cursor: pointer; list-style: none; }
.join-guide__summary::-webkit-details-marker { display: none; }
.join-guide__summary:focus-visible { outline: 2px solid var(--wheat); outline-offset: 4px; }
.join-guide__toggle { flex: none; color: var(--wheat); font-size: 1.4rem; }
.join-guide__toggle::before { content: '+'; }
.join-guide[open] .join-guide__toggle::before { content: '−'; }
.copy-control { margin-top: 0.9rem; }
.copy-status { display: block; font-size: 0.78rem; color: var(--field); margin-top: 0.3rem; }
.copy-status:empty { display: none; }
.copy-control small { display: block; margin-top: 0.4rem; color: var(--muted); font-size: 0.74rem; }
.copy-fallback { margin-top: 0.5rem; font-size: 0.85rem; }
.copy-fallback[hidden] { display: none; }
.removed-panel { margin-bottom: 1.5rem; padding: 1.2rem; border-left: 3px solid var(--rust); background: var(--panel); }
.removed-panel[hidden] { display: none; }
.removed-panel h3 { margin: 0 0 0.5rem; font-size: 1rem; }
.removed-panel p { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.87rem; max-width: 80ch; }
.removed-list { list-style: none; padding: 0; margin: 0; }
.removed-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-block: 0.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; }
.removed-list .mono { min-width: 0; overflow-wrap: anywhere; }
.badge--removed { background: #331810; color: #e79c7c; }
.join-guide {
  margin-block: 0 2.5rem;
  padding-block: 0.1rem 1.5rem;
  border-bottom: 1px solid var(--line);
}
.join-guide h2 {
  margin: 0;
  font: 700 1.45rem 'Bricolage Grotesque', sans-serif;
}
.join-guide__intro { margin: 0.45rem 0 1.4rem; color: var(--muted); font-size: 0.9rem; }
.join-guide__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem 2.5rem;
  margin: 0;
  padding-left: 1.3rem;
}
.join-guide__steps li { padding-left: 0.25rem; }
.join-guide__steps li::marker { color: var(--wheat); font-weight: 600; }
.join-guide__steps h3 { margin: 0 0 0.45rem; font-size: 1rem; }
.join-guide__steps p { margin: 0; color: var(--muted); font-size: 0.87rem; overflow-wrap: anywhere; }
.join-guide__steps strong { color: var(--text); font-weight: 500; }
.join-guide__pin { color: var(--wheat); font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.1em; }
.mod-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 1.5rem 2rem;
  align-items: center;
  margin-top: 1.6rem;
  padding: 1.25rem;
  border-left: 3px solid var(--rust);
  background: var(--panel);
}
.mod-help h3 { margin: 0 0 0.7rem; font-size: 1rem; line-height: 1.4; }
.mod-help p { margin: 0; color: var(--muted); font-size: 0.87rem; }
.mod-help p + p { margin-top: 0.65rem; }
.mod-help strong { color: var(--text); font-weight: 500; }
.mod-help__example { width: 100%; max-width: 320px; margin: 0; }
.mod-help__example img { display: block; width: 100%; height: auto; border: 1px solid var(--line-bright); border-radius: var(--radius); }
.mod-help__example figcaption { margin-top: 0.45rem; font-size: 0.72rem; line-height: 1.5; color: var(--muted); }
@media (max-width: 800px) {
  .join-guide__steps { grid-template-columns: minmax(0, 1fr); }
  .mod-help { grid-template-columns: minmax(0, 1fr); }
  .mod-help__example { justify-self: center; }
}

/* --- Teileliste --------------------------------------------------------- */
.mod-section { flex-wrap: wrap; scroll-margin-top: 1.5rem; }
.mod-section:focus-visible { outline: 2px solid var(--wheat); outline-offset: 4px; }
.mod-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mod-filters .btn[aria-pressed='true'] { border-color: var(--wheat); color: var(--wheat); background: var(--panel); }
.filter-result { margin: 0.7rem 0 0; font-size: 0.8rem; color: var(--muted); }
.filter-empty { margin: 0 0 1.5rem; color: var(--muted); font-size: 0.9rem; }
.adoption-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-block: 0 2rem; padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); }
.adoption-panel > div { flex: 1 1 24rem; min-width: 0; }
.adoption-check { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.9rem; cursor: pointer; }
.adoption-check input { flex: none; margin: 0.3rem 0 0; accent-color: var(--wheat); }
.adoption-panel p { margin: 0.45rem 0 0; font-size: 0.8rem; color: var(--muted); }
#adoption-message:not(:empty) { color: #e79c7c; }
.row[hidden], .mod-filters[hidden], .filter-empty[hidden], .adoption-panel[hidden] { display: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 2px solid var(--line-bright);
}

.section-head h2 {
  margin: 0;
  font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.list {
  margin: 0 0 3rem;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 1rem;
  padding: 0.95rem 0.4rem 0.95rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .row {
    animation: none;
  }
}

.row:hover {
  background: rgb(255 255 255 / 0.018);
}

.row__index {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--faint);
  text-align: right;
}

.row__name {
  margin: 0;
  font-weight: 500;
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  margin-top: 0.15rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  color: var(--faint);
}

.row__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.row--new {
  border-left: 3px solid var(--field);
  padding-left: 0.6rem;
  margin-left: -0.9rem;
}

.row--changed {
  border-left: 3px solid var(--wheat);
  padding-left: 0.6rem;
  margin-left: -0.9rem;
}

.badge {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 2px;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge--new {
  background: var(--field);
  color: #10190a;
}

.badge--changed {
  background: var(--wheat);
  color: #1a1505;
}

.badge--muted {
  border: 1px solid var(--line-bright);
  color: var(--muted);
}

.badge--warn {
  background: var(--rust);
  color: #1d0d06;
}

/* --- Fusszeile ---------------------------------------------------------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
  padding-block: 1.6rem 2.6rem;
  border-top: 1px solid var(--line);
  font-size: 0.83rem;
  color: var(--faint);
}

.foot form {
  margin: 0;
}

/* --- Anmeldung ---------------------------------------------------------- */

.login {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
}

.login__card {
  width: min(29rem, 100%);
  padding: 2.6rem 2.2rem 2.2rem;
  border: 1px solid var(--line);
  border-top: 4px solid var(--wheat);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Das Wappen bekommt ueber dem Titel eine eigene, zentrierte Zeile. */
.login__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.login__title {
  margin: 0.25rem 0 0;
  font-family: 'Bricolage Grotesque', ui-sans-serif, sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.login__title em {
  font-style: normal;
  color: var(--wheat);
}

.login__lead {
  margin: 0 0 1.9rem;
  text-align: center;
  font-size: 0.93rem;
  color: var(--muted);
}

.field {
  display: block;
  margin-bottom: 1.1rem;
}

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--text);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.input:focus {
  outline: 2px solid var(--wheat);
  outline-offset: 1px;
  border-color: transparent;
}

.notice {
  margin: 0 0 1.2rem;
  padding: 0.7rem 0.9rem;
  border-left: 3px solid var(--rust);
  border-radius: var(--radius);
  background: rgb(200 92 51 / 0.1);
  font-size: 0.9rem;
  color: #eda98b;
}

.login__foot {
  margin: 1.6rem 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}

/* --- Adminbereich ------------------------------------------------------- */

.btn--block {
  width: 100%;
}

.panel {
  margin-block: 2.4rem;
}

.panel__note {
  margin: 0.9rem 0 1.2rem;
  max-width: 62ch;
  font-size: 0.91rem;
  color: var(--muted);
}

.panel .list {
  margin-bottom: 0;
}

.input--file {
  padding: 0.7rem 0.8rem;
  font-family: 'IBM Plex Sans', ui-sans-serif, sans-serif;
  font-size: 0.92rem;
  letter-spacing: normal;
}

.input--file::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.progress {
  display: block;
  width: 100%;
  height: 0.55rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 99px;
  background: var(--ink-2);
  appearance: none;
}

.progress::-webkit-progress-bar {
  border-radius: 99px;
  background: var(--ink-2);
}

.progress::-webkit-progress-value {
  border-radius: 99px;
  background: var(--wheat);
}

.progress::-moz-progress-bar {
  border-radius: 99px;
  background: var(--wheat);
}

.banner--error {
  border-left-color: var(--rust);
  background-image: repeating-linear-gradient(
    -45deg,
    rgb(200 92 51 / 0.09) 0 12px,
    transparent 12px 24px
  );
}

.banner--error .banner__text {
  color: #eda98b;
  font-weight: 500;
}

/* Der Haken, der die Live-Sperre uebergeht. Bewusst unbequem gestaltet -- er
   soll nicht wie ein normaler Bedienknopf aussehen. */
.force {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.4rem 0.7rem;
  border: 1px dashed var(--rust);
  border-radius: var(--radius);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #eda98b;
  cursor: pointer;
}

.force input {
  accent-color: var(--rust);
}

.log {
  max-height: 22rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Zustaende ---------------------------------------------------------- */

.state {
  padding: 3rem 0;
  text-align: center;
  color: var(--muted);
}

.state--error {
  color: #eda98b;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 800px) {
  .topbar__inner--depot {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    gap: 1.25rem;
    text-align: center;
  }

  .topbar__inner--depot .crest--depot {
    grid-row: 1;
    width: 72px;
  }

  .topbar__inner--depot .topbar__meta {
    justify-self: center;
  }

  .topbar__inner--depot .stat {
    text-align: center;
  }
}

@media (max-width: 400px) {
  .login__card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 680px) {
  .row {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    row-gap: 0.7rem;
  }

  .row__actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .topbar__inner {
    align-items: flex-start;
  }

  .topbar__meta {
    gap: 1rem;
  }
}
