:root {
  --bg: #08090d;
  --surface: #14161d;
  --surface-strong: #1b1e27;
  --surface-soft: #242832;
  --text: #ffffff;
  --muted: #c7ced8;
  --dim: #8e98a8;
  --border: rgba(255, 255, 255, 0.12);
  --accent: #d71920;
  --accent-dark: #a80f16;
  --accent-soft: rgba(215, 25, 32, 0.14);
  --good: #43d17a;
  --radius: 8px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding-bottom: 112px;
  background:
    radial-gradient(circle at 8% 0%, rgba(215, 25, 32, 0.18), transparent 34%),
    linear-gradient(135deg, #08090d 0%, #10121a 48%, #08090d 100%);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("assets/dc-demon-horse-shield-logo.webp") center center / min(86vw, 980px) no-repeat;
  opacity: 0.05;
}

a {
  color: inherit;
}

.layout {
  position: relative;
  z-index: 1;
}

.nav-button {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.layout {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.request-layout {
  display: grid;
  grid-template-columns: minmax(340px, 560px) minmax(0, 700px);
  align-items: center;
  gap: 106px;
  width: min(100% - 32px, 1360px);
  padding: 34px 0 60px;
}

.layout-login {
  width: min(100% - 32px, 680px);
}

.charger-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 680px;
}

.charger-visual::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(215, 25, 32, 0.22), transparent 68%);
  filter: blur(18px);
}

.charger-visual img {
  position: relative;
  z-index: 1;
  width: min(100%, 560px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
}

.request-panel {
  min-width: 0;
}

.intro {
  max-width: 780px;
  margin-bottom: 28px;
}

.request-panel .intro {
  max-width: 620px;
  margin: 0 0 20px;
  text-align: left;
}

.intro-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  align-items: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.02;
}

.request-panel h1 {
  font-size: 42px;
}

.intro p:not(.eyebrow) {
  max-width: 720px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.request-panel .intro p:not(.eyebrow) {
  max-width: 600px;
  margin: 12px 0 0;
  font-size: 16px;
}

.request-form,
.request-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 28%),
    var(--surface);
  box-shadow: var(--shadow);
}

.request-form {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.login-form {
  max-width: 520px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0d0f15;
  color: var(--text);
  font: inherit;
}

input::placeholder,
textarea::placeholder {
  color: #9aa4b3;
}

textarea {
  resize: vertical;
}

textarea[name="description"] {
  min-height: 152px;
}

textarea[name="links"] {
  min-height: 78px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(232, 80, 10, 0.16);
  border-color: var(--accent);
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(215, 25, 32, 0.20);
}

.button-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #ffffff;
}

.button-primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #ffffff;
}

.bottom-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 10;
  display: flex;
  gap: 10px;
  width: min(100% - 28px, 460px);
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 14, 20, 0.86);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  transform: translate(-50%, calc(100% + 34px));
  opacity: 0;
  pointer-events: none;
  transition: transform 220ms ease, opacity 220ms ease;
}

.bottom-dock.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.bottom-dock .button {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
}

.status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.status.is-ok {
  color: var(--good);
}

.status.is-error {
  color: #ff6b72;
}

.requests {
  display: grid;
  gap: 16px;
}

.request-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  padding: 24px;
}

.request-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

time {
  color: var(--muted);
  font-size: 14px;
}

.request-item h2 {
  margin: 0 0 14px;
  font-size: 26px;
  line-height: 1.1;
}

dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

dt {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-weight: 700;
}

.description {
  margin: 0;
  color: var(--muted);
  white-space: pre-wrap;
}

.request-side {
  display: grid;
  align-content: start;
  gap: 10px;
}

.prompt {
  max-height: 180px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(215, 25, 32, 0.22);
  background: #090a0f;
  color: #f8fafc;
  font-size: 13px;
  white-space: pre-wrap;
}

@media (max-width: 800px) {
  body::before {
    background-size: min(110vw, 620px);
    opacity: 0.14;
  }

  .request-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 24px;
  }

  .charger-visual {
    min-height: 0;
  }

  .charger-visual::before {
    inset: 0 18%;
  }

  .charger-visual img {
    width: min(82vw, 340px);
  }

  .request-panel h1 {
    font-size: 32px;
  }

  .intro-row,
  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-actions {
    justify-content: stretch;
  }

  .admin-actions .button {
    flex: 1 1 160px;
  }

  .form-grid,
  .request-item,
  dl {
    grid-template-columns: 1fr;
  }

  .request-form,
  .request-item {
    padding: 20px;
  }

  .bottom-dock {
    bottom: 14px;
    width: min(100% - 20px, 420px);
    padding: 8px;
  }

  .bottom-dock .button {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 14px;
  }
}
