:root {
  color-scheme: dark;
  --bg: #050805;
  --panel: rgba(10, 15, 10, 0.94);
  --panel-soft: rgba(164, 255, 0, 0.035);
  --border: rgba(201, 255, 184, 0.12);
  --text: #f5f8f2;
  --muted: #899486;
  --purple: #79e600;
  --purple-light: #a7ff16;
  --danger: #ff7e9d;
  --success: #8cff20;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
}

button,
textarea,
input {
  font: inherit;
}

.background,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.background {
  overflow: hidden;
  z-index: 0;
}

.grid {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(155, 108, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(155, 108, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

.orb {
  position: absolute;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.14;
  animation: drift 18s ease-in-out infinite alternate;
}

.orb-one {
  top: -18rem;
  left: -9rem;
  background: #9b6cff;
}

.orb-two {
  right: -15rem;
  bottom: -18rem;
  background: #5d35b0;
  animation-delay: -7s;
}

.orb-three {
  top: 40%;
  left: 55%;
  width: 20rem;
  height: 20rem;
  background: #a75cff;
  opacity: 0.08;
  animation-delay: -12s;
}

@keyframes drift {
  to {
    transform: translate3d(4rem, 2rem, 0) scale(1.12);
  }
}

.shell {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(194, 166, 255, 0.3);
  border-radius: 13px;
  color: var(--purple-light);
  background: linear-gradient(145deg, rgba(155, 108, 255, 0.2), rgba(155, 108, 255, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px;
  font-weight: 600;
}

.brand > div:nth-child(2) {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 16px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
  padding: 7px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #c4bdcf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
}

.status-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
}

.status-pill.closed i {
  background: var(--danger);
  box-shadow: 0 0 12px var(--danger);
}

.login-link,
.brand-home {
  color: inherit;
  text-decoration: none;
}

.login-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-left: auto;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #d6cfdf;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 700;
  transition: border-color 180ms ease, background 180ms ease;
}

.login-link:hover {
  border-color: rgba(155, 108, 255, 0.28);
  background: rgba(155, 108, 255, 0.055);
}

.login-link + .status-pill {
  margin-left: 0;
}

.application-card {
  min-height: 620px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
}

.progress-wrap {
  margin-bottom: 52px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.progress-track {
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress-track span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7c4dff, #b58aff);
  box-shadow: 0 0 16px rgba(155, 108, 255, 0.65);
  transition: width 450ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen {
  display: flex;
  min-height: 500px;
  flex-direction: column;
  animation: reveal 350ms ease both;
}

.screen.switching {
  animation: reveal 350ms ease both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

.kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--purple-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker::before {
  width: 20px;
  height: 1px;
  content: "";
  background: currentColor;
}

h1,
h2 {
  max-width: 700px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.04;
}

h2 {
  font-size: clamp(27px, 4.5vw, 42px);
  line-height: 1.15;
}

.accent {
  color: var(--purple-light);
}

.lead {
  max-width: 660px;
  margin: 18px 0 26px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.rules {
  display: grid;
  margin: 8px 0 30px;
  padding: 0;
  gap: 8px;
  list-style: none;
  counter-reset: rules;
}

.rules li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #c7c0d2;
  background: var(--panel-soft);
  font-size: 13px;
  counter-increment: rules;
  transition: border-color 180ms ease, background 180ms ease;
}

.rules li:hover {
  border-color: rgba(155, 108, 255, 0.18);
  background: rgba(155, 108, 255, 0.065);
}

.rules li::before {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(155, 108, 255, 0.22);
  border-radius: 7px;
  color: var(--purple-light);
  content: counter(rules);
  font-size: 10px;
  font-weight: 700;
}

.answer-wrap {
  margin-top: 28px;
}

textarea {
  display: block;
  width: 100%;
  min-height: 132px;
  max-height: 310px;
  resize: none;
  overflow-y: auto;
  padding: 18px;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 15px;
  color: var(--text);
  background: rgba(5, 4, 9, 0.52);
  line-height: 1.65;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea::placeholder {
  color: #6f687c;
}

textarea:focus {
  border-color: rgba(155, 108, 255, 0.48);
  background: rgba(9, 6, 15, 0.72);
  box-shadow: 0 0 0 4px rgba(155, 108, 255, 0.08);
}

.answer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.answer-meta .error {
  color: var(--danger);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button:active:not(:disabled) {
  transform: translateY(0);
}

.button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, #8152ed, #a16fff);
  box-shadow: 0 10px 28px rgba(116, 69, 220, 0.24);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 13px 34px rgba(116, 69, 220, 0.36);
}

.button-secondary {
  border-color: var(--border);
  color: #c4bdcf;
  background: rgba(255, 255, 255, 0.025);
}

.button-secondary:hover:not(:disabled) {
  border-color: rgba(155, 108, 255, 0.28);
  background: rgba(155, 108, 255, 0.055);
}

.button-success {
  color: #062817;
  background: var(--success);
}

.button-danger {
  color: #300710;
  background: var(--danger);
}

.compact-button {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 9px;
  font-size: 13px;
}

.arrow {
  font-size: 17px;
  font-weight: 400;
  transition: transform 180ms ease;
}

.button-primary:hover .arrow {
  transform: translateX(2px);
}

.total-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}

.success-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(100, 226, 168, 0.3);
  border-radius: 20px;
  color: var(--success);
  background: rgba(100, 226, 168, 0.08);
  box-shadow: 0 0 50px rgba(100, 226, 168, 0.12);
  font-size: 29px;
}

.closed-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  place-items: center;
  border: 1px solid rgba(255, 126, 157, 0.3);
  border-radius: 20px;
  color: var(--danger);
  background: rgba(255, 126, 157, 0.08);
  box-shadow: 0 0 50px rgba(255, 126, 157, 0.1);
  font-size: 34px;
}

.notice {
  max-width: 620px;
  margin-top: 26px;
  padding: 15px 16px;
  border: 1px solid rgba(155, 108, 255, 0.18);
  border-radius: 13px;
  color: #bdb5c9;
  background: rgba(155, 108, 255, 0.055);
  font-size: 13px;
  line-height: 1.6;
}

.submit-error {
  margin-top: 14px;
  color: var(--danger);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 18px 4px 0;
  color: #675f73;
  font-size: 11px;
}

.auth-shell {
  width: min(520px, calc(100% - 32px));
  padding-top: 12vh;
}

.auth-panel {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35), inset 0 1px rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(24px);
}

.login-form {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.login-note {
  margin: -3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.login-error {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255, 126, 157, 0.24);
  border-radius: 4px;
  background: rgba(255, 126, 157, 0.07);
  line-height: 1.55;
}

input {
  width: 100%;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--border);
  outline: none;
  border-radius: 12px;
  color: var(--text);
  background: rgba(5, 4, 9, 0.52);
}

input:focus {
  border-color: rgba(155, 108, 255, 0.48);
  box-shadow: 0 0 0 4px rgba(155, 108, 255, 0.08);
}

.admin-shell {
  width: min(1320px, calc(100% - 32px));
}

.admin-brand {
  margin-bottom: 18px;
}

.admin-user {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
}

.admin-sidebar,
.admin-content,
.application-detail,
.application-list {
  border: 1px solid var(--border);
  background: var(--panel);
  backdrop-filter: blur(24px);
}

.admin-sidebar {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
}

.tab-button,
.application-row {
  width: 100%;
  border: 0;
  cursor: pointer;
  color: #cec6da;
  background: transparent;
  text-align: left;
}

.tab-button {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
}

.tab-button:hover,
.tab-button.active {
  color: white;
  background: rgba(155, 108, 255, 0.1);
}

.admin-content {
  min-width: 0;
  padding: 18px;
  border-radius: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-toolbar h1 {
  font-size: 28px;
}

.admin-grid {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 14px;
}

.application-list {
  overflow: auto;
  border-radius: 14px;
}

.application-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-bottom: 1px solid var(--border);
}

.application-row strong,
.application-row small {
  display: block;
}

.application-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.application-row:hover,
.application-row.active {
  background: rgba(155, 108, 255, 0.08);
}

.application-detail {
  overflow: auto;
  padding: 20px;
  border-radius: 14px;
}

.detail-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.detail-head img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  background: var(--panel-soft);
}

.detail-head h2 {
  overflow-wrap: anywhere;
  font-size: 26px;
}

.detail-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #dcd6e7;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.status-chip.accepted {
  color: #062817;
  background: var(--success);
}

.status-chip.denied {
  color: #300710;
  background: var(--danger);
}

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

.meta-grid div,
.decision-reason,
.answer-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.meta-grid div {
  min-width: 0;
  padding: 12px;
}

.meta-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.meta-grid dd {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.decision-reason {
  margin-bottom: 16px;
  padding: 13px;
}

.decision-reason p {
  margin: 6px 0 0;
  color: #cec6da;
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer-block {
  padding: 14px;
}

.answer-block h3 {
  margin: 0 0 8px;
  color: var(--purple-light);
  font-size: 13px;
}

.answer-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #d4cde0;
  font-size: 14px;
  line-height: 1.65;
}

.empty-state {
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 920px);
    padding-top: 18px;
  }

  .status-pill {
    display: none;
  }

  .login-link {
    min-height: 34px;
    padding: 0 12px;
  }

  .application-card {
    min-height: calc(100vh - 115px);
    padding: 22px 18px;
    border-radius: 18px;
  }

  .screen {
    min-height: calc(100vh - 210px);
  }

  .progress-wrap {
    margin-bottom: 38px;
  }

  .rules {
    gap: 6px;
  }

  .rules li {
    align-items: flex-start;
    line-height: 1.45;
  }

  .actions {
    flex-wrap: wrap;
  }

  .total-count {
    width: 100%;
    margin-left: 0;
  }

  footer {
    gap: 12px;
    font-size: 10px;
  }

  footer span:last-child {
    margin-left: auto;
    text-align: right;
  }
}

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

  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .admin-user {
    display: none;
  }

  .admin-toolbar,
  .detail-head {
    align-items: flex-start;
  }

  .admin-toolbar {
    flex-direction: column;
  }

  .detail-head {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .detail-head .status-chip {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .meta-grid,
  .admin-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

/* TracSMP application redesign */
body {
  background:
    radial-gradient(circle at 10% 0%, rgba(112, 255, 0, 0.08), transparent 30rem),
    radial-gradient(circle at 92% 72%, rgba(56, 137, 0, 0.08), transparent 34rem),
    #050805;
}

.background::before,
.background::after {
  position: absolute;
  content: "";
}

.background::before {
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(150, 255, 66, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 255, 66, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 86%);
}

.background::after {
  top: 12%;
  right: 7%;
  width: 8px;
  height: 8px;
  background: #96ff16;
  box-shadow:
    -42px 98px rgba(150, 255, 22, 0.35),
    14px 224px rgba(150, 255, 22, 0.2),
    -70vw 40px rgba(150, 255, 22, 0.26),
    -64vw 420px rgba(150, 255, 22, 0.14);
}

.grid {
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(121, 230, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(121, 230, 0, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.orb-one {
  background: #63c600;
}

.orb-two,
.orb-three {
  background: #347900;
}

.applicant-shell {
  width: min(1180px, calc(100% - 40px));
  padding: 26px 0 22px;
}

.applicant-shell .brand {
  min-height: 52px;
  margin-bottom: 18px;
  padding: 0 4px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 3px;
  color: #071006;
  background: linear-gradient(145deg, #b0ff23, #64d600);
  box-shadow: 0 0 30px rgba(124, 239, 0, 0.17), inset 0 -4px rgba(19, 61, 0, 0.22);
  clip-path: polygon(0 0, 82% 0, 100% 18%, 100% 100%, 18% 100%, 0 82%);
  font-weight: 800;
}

.brand-mark span {
  font-size: 23px;
}

.brand-logo {
  display: block;
  width: 92px;
  height: 52px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.brand-copy {
  display: flex;
  flex-direction: column;
}

.brand-copy strong {
  color: #f6f8f3;
  font-family: "Space Grotesk", sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.brand-copy strong span {
  color: var(--purple-light);
}

.brand-copy .eyebrow {
  margin-top: 5px;
  color: #6f7b6c;
  font-size: 9px;
  letter-spacing: 0.18em;
}

.login-link {
  min-height: 38px;
  margin-left: auto;
  border-color: rgba(168, 255, 92, 0.12);
  border-radius: 4px;
  color: #bec8b9;
  background: rgba(141, 255, 49, 0.025);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.login-link:hover {
  border-color: rgba(151, 255, 51, 0.35);
  background: rgba(120, 230, 0, 0.08);
}

.status-pill {
  min-height: 38px;
  margin-left: 0;
  padding: 0 13px;
  border-color: rgba(168, 255, 92, 0.12);
  border-radius: 4px;
  color: #aab4a6;
  background: rgba(141, 255, 49, 0.025);
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.status-pill i {
  border-radius: 1px;
  background: var(--success);
  box-shadow: 0 0 12px rgba(140, 255, 32, 0.7);
}

.application-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.76fr) minmax(0, 1.52fr);
  gap: 14px;
}

.briefing-panel,
.application-card {
  position: relative;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(174, 255, 105, 0.13);
  border-radius: 6px;
  background: rgba(8, 12, 8, 0.9);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(20px);
}

.briefing-panel {
  display: flex;
  min-height: 720px;
  flex-direction: column;
  padding: 30px;
  background:
    linear-gradient(155deg, rgba(126, 244, 0, 0.08), transparent 34%),
    rgba(7, 11, 7, 0.92);
}

.briefing-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(137, 255, 33, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(137, 255, 33, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  pointer-events: none;
}

.briefing-panel::after {
  position: absolute;
  right: -52px;
  bottom: 120px;
  width: 210px;
  height: 210px;
  border: 42px solid rgba(117, 232, 0, 0.04);
  content: "";
  transform: rotate(45deg);
}

.section-tag,
.briefing-copy,
.application-facts,
.briefing-note {
  position: relative;
  z-index: 1;
}

.section-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: #a6b2a1;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.section-tag i {
  width: 7px;
  height: 7px;
  background: var(--purple-light);
  box-shadow: 0 0 14px rgba(167, 255, 22, 0.7);
}

.briefing-copy {
  margin: auto 0;
}

.briefing-number {
  margin: 0 0 18px;
  color: #657060;
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.briefing-copy h1 {
  max-width: 330px;
  font-size: clamp(38px, 4.4vw, 55px);
  line-height: 0.98;
}

.briefing-copy h1 span {
  display: block;
  margin-top: 7px;
  color: var(--purple-light);
}

.briefing-copy > p:last-child {
  max-width: 310px;
  margin: 23px 0 0;
  color: #929c8e;
  font-size: 13px;
  line-height: 1.7;
}

.application-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 22px;
  border-top: 1px solid rgba(182, 255, 116, 0.11);
  border-bottom: 1px solid rgba(182, 255, 116, 0.11);
}

.application-facts div {
  padding: 17px 8px 16px 0;
}

.application-facts div + div {
  padding-left: 12px;
  border-left: 1px solid rgba(182, 255, 116, 0.11);
}

.application-facts dt {
  color: #ebf3e6;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.application-facts dd {
  margin: 3px 0 0;
  color: #667062;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.briefing-note {
  padding-left: 13px;
  border-left: 2px solid var(--purple);
}

.briefing-note span {
  color: #a7ff16;
  text-transform: uppercase;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.briefing-note p {
  margin: 6px 0 0;
  color: #778174;
  font-size: 11px;
  line-height: 1.55;
}

.application-card {
  min-height: 720px;
  padding: 30px 34px 34px;
}

.application-card::before {
  position: absolute;
  top: 0;
  right: 34px;
  left: 34px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(158, 255, 69, 0.7), transparent);
}

.card-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 34px;
  color: #566052;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.progress-wrap {
  margin-bottom: 42px;
}

.progress-meta {
  color: #778273;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.progress-track {
  height: 4px;
  border-radius: 0;
  background: rgba(188, 255, 129, 0.07);
}

.progress-track span {
  border-radius: 0;
  background: linear-gradient(90deg, #58b900, #a8ff1c);
  box-shadow: 0 0 18px rgba(126, 240, 0, 0.45);
}

.screen {
  min-height: 600px;
}

.kicker {
  margin-bottom: 17px;
  color: var(--purple-light);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.kicker::before {
  width: 7px;
  height: 7px;
  background: currentColor;
}

.application-card h2 {
  max-width: 650px;
  overflow-wrap: anywhere;
  font-size: clamp(29px, 3.4vw, 45px);
  line-height: 1.08;
}

.accent {
  color: var(--purple-light);
}

.lead {
  margin: 17px 0 24px;
  color: #8d9789;
  line-height: 1.65;
}

.rules {
  gap: 6px;
  margin: 0 0 26px;
}

.rules li {
  min-height: 45px;
  padding: 10px 12px;
  border: 1px solid rgba(178, 255, 110, 0.08);
  border-radius: 3px;
  color: #afb8aa;
  background: rgba(157, 255, 70, 0.025);
}

.rules li:hover {
  border-color: rgba(155, 255, 65, 0.22);
  background: rgba(132, 245, 30, 0.05);
}

.rules li::before {
  border: 0;
  border-radius: 2px;
  color: #0a1108;
  background: #82e80d;
}

.answer-wrap {
  margin-top: 28px;
}

textarea,
input {
  border-color: rgba(180, 255, 113, 0.12);
  border-radius: 4px;
  background: #060906;
}

textarea {
  min-height: 148px;
  padding: 18px 19px;
}

textarea::placeholder {
  color: #525c4f;
}

textarea:focus,
input:focus {
  border-color: rgba(155, 255, 65, 0.48);
  background: #080d07;
  box-shadow: 0 0 0 3px rgba(119, 226, 0, 0.08);
}

.answer-meta {
  color: #657061;
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.actions {
  gap: 8px;
}

.button {
  min-height: 45px;
  border-radius: 3px;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.button-primary {
  color: #0b1406;
  background: linear-gradient(135deg, #a9ff20, #71dc00);
  box-shadow: 0 12px 28px rgba(89, 190, 0, 0.16);
}

.button-primary:hover:not(:disabled) {
  box-shadow: 0 14px 34px rgba(107, 218, 0, 0.28);
}

.button-secondary {
  border-color: rgba(179, 255, 110, 0.12);
  border-radius: 3px;
  color: #a9b3a5;
  background: rgba(150, 255, 54, 0.025);
}

.button-secondary:hover:not(:disabled) {
  border-color: rgba(159, 255, 72, 0.3);
  background: rgba(126, 232, 22, 0.07);
}

.time-hint,
.total-count {
  color: #626c5e;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.notice {
  border-color: rgba(152, 255, 59, 0.18);
  border-radius: 3px;
  color: #aeb9aa;
  background: rgba(120, 229, 0, 0.045);
}

.success-icon {
  border-color: rgba(145, 255, 45, 0.28);
  border-radius: 4px;
  color: var(--success);
  background: rgba(133, 255, 21, 0.06);
  box-shadow: 0 0 50px rgba(115, 220, 0, 0.12);
}

.closed-icon {
  border-radius: 4px;
}

.applicant-shell footer {
  padding: 16px 4px 0;
  color: #4d574a;
  text-transform: uppercase;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

@media (max-width: 900px) {
  .applicant-shell {
    width: min(760px, calc(100% - 28px));
  }

  .application-layout {
    grid-template-columns: 1fr;
  }

  .briefing-panel {
    min-height: auto;
    padding: 26px;
  }

  .briefing-copy {
    margin: 65px 0 38px;
  }

  .briefing-copy h1 {
    max-width: 520px;
  }

  .briefing-copy h1 span {
    display: inline;
  }

  .application-facts {
    max-width: 430px;
  }
}

@media (max-width: 640px) {
  .applicant-shell {
    width: min(100% - 18px, 760px);
    padding-top: 12px;
  }

  .applicant-shell .brand {
    margin-bottom: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-logo {
    width: 74px;
    height: 46px;
  }

  .login-link {
    min-height: 34px;
    padding: 0 10px;
    font-size: 8px;
  }

  .briefing-panel {
    padding: 22px;
  }

  .briefing-copy {
    margin: 48px 0 32px;
  }

  .briefing-copy h1 {
    font-size: 38px;
  }

  .briefing-copy h1 span {
    display: block;
  }

  .briefing-note {
    display: none;
  }

  .application-card {
    min-height: 650px;
    padding: 22px 18px 24px;
    border-radius: 5px;
  }

  .card-topline {
    margin-bottom: 27px;
  }

  .screen {
    min-height: 540px;
  }

  .application-card h2 {
    font-size: 30px;
  }

  .progress-wrap {
    margin-bottom: 32px;
  }

  .question-actions .total-count {
    width: 100%;
    order: 3;
  }

  .time-hint {
    width: 100%;
  }
}
