:root {
  --adi-black: #1d2229;
  --adi-grey: #505457;
  --adi-grey-soft: #8e9397;
  --adi-magenta: #ee2d58;
  --adi-white: #f3f2f1;
  --adi-panel: rgba(17, 19, 24, 0.76);
  --adi-panel-border: rgba(255, 255, 255, 0.12);
  --adi-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

html {
  background: var(--adi-black);
}

body {
  background: var(--adi-black);
  color: #fff;
  margin: 0;
}

html:has(body.display-output-page),
body.display-output-page,
body.display-output-page #root {
  background: transparent !important;
}

#root {
  min-height: 100vh;
}

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

.adi-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background-color: var(--adi-black);
  background-size: cover;
  background-position: center;
}

.adi-shell__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(29, 34, 41, 0.8) 0%, rgba(29, 34, 41, 0.35) 26%, rgba(29, 34, 41, 0.82) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 120px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 120px);
  pointer-events: none;
}

.adi-shell__lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 6rem), rgba(238, 45, 88, 0.26) calc(100% - 6rem), rgba(238, 45, 88, 0.26) calc(100% - 5.6rem), transparent calc(100% - 5.6rem)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 11rem);
  pointer-events: none;
}

.adi-shell__content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem 1.25rem;
}

.adi-shell__container {
  min-height: calc(100vh - 7rem);
  display: flex;
  flex-direction: column;
}

.adi-shell__main {
  flex: 1 1 auto;
}

.adi-shell,
.adi-shell h1,
.adi-shell h2,
.adi-shell h3,
.adi-shell h4,
.adi-shell p,
.adi-shell li,
.adi-shell label,
.adi-shell span,
.adi-shell div {
  color: inherit;
}

.adi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.adi-header--center {
  justify-content: center;
  width: 100%;
}

.adi-header__copy {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-width: 62rem;
}

.adi-header--center .adi-header__copy {
  width: fit-content;
  max-width: min(100%, 62rem);
  margin-left: auto;
  margin-right: auto;
}

.adi-header__eyebrow {
  margin: 0;
  color: #d4d7da;
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.78rem;
  line-height: 1.3;
}

.adi-header__crest {
  height: 4.25rem;
  width: auto;
  object-fit: contain;
}

.adi-header__title {
  margin: 0;
  font-family: var(--brand-font-family, 'Roboto Condensed', sans-serif);
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  line-height: 0.96;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.adi-header__accent {
  font-weight: 700;
  color: var(--adi-magenta);
}

.adi-header__subtitle {
  margin: 0;
  color: #dfe3e6;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.6;
}

.adi-header--center .adi-header__subtitle {
  margin-left: auto;
  margin-right: auto;
}

.adi-header__action {
  flex: 0 0 auto;
}

.adi-panel {
  position: relative;
  overflow: hidden;
  border-radius: 1.75rem;
  border: 1px solid var(--adi-panel-border);
  background: linear-gradient(180deg, rgba(31, 35, 43, 0.92) 0%, rgba(17, 19, 24, 0.86) 100%);
  box-shadow: var(--adi-shadow);
  backdrop-filter: blur(18px);
}

.adi-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  min-height: 2.875rem;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--brand-font-family, 'Roboto Condensed', sans-serif);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease, opacity 160ms ease;
  cursor: pointer;
  text-decoration: none;
}

.adi-button:hover {
  transform: translateY(-1px);
}

.adi-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.adi-button--primary {
  background: var(--adi-magenta);
  border: 1px solid transparent;
  color: #fff;
}

.adi-button--secondary,
.adi-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
}

.adi-button--secondary {
  background: rgba(255, 255, 255, 0.06);
}

.adi-button--ghost {
  background: transparent;
}

.adi-button--danger {
  background: rgba(185, 28, 28, 0.92);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fff;
}

.adi-input {
  width: 100%;
  display: block;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 10, 14, 0.72);
  color: #fff;
  padding: 0.9rem 1rem;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.adi-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.adi-input:focus {
  outline: none;
  border-color: rgba(238, 45, 88, 0.72);
  box-shadow: 0 0 0 3px rgba(238, 45, 88, 0.18);
  background: rgba(8, 10, 14, 0.9);
}

.adi-select {
  appearance: none;
}

.adi-topnav__logout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #fff;
  padding: 0.7rem 1.15rem;
  font-family: var(--brand-font-family, 'Roboto Condensed', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.adi-topnav__logout:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.adi-topnav__logout:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(238, 45, 88, 0.18);
}

.adi-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #d9dde0;
  font-family: var(--brand-font-family, 'Roboto Condensed', sans-serif);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.adi-hint {
  color: #a8afb5;
  font-size: 0.85rem;
}

.adi-powered-by {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1.5rem 0 0;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 9, 12, 0.64);
  backdrop-filter: blur(14px);
  align-self: center;
}

.adi-powered-by__label,
.adi-display-bug__label {
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--brand-font-family, 'Roboto Condensed', sans-serif);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.adi-powered-by__logo {
  height: 1rem;
  max-width: 5rem;
  width: auto;
  object-fit: contain;
}

.adi-display-bug {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(7, 9, 12, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
}

.adi-display-bug__logo {
  height: 0.95rem;
  width: auto;
}

.adi-upload-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 2rem;
}

.adi-upload-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.adi-upload-form {
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}

.adi-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.adi-toolbar__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 640px) {
  .adi-shell__content {
    padding: 1rem 1rem 1rem;
  }

  .adi-header {
    flex-direction: column;
  }

  .adi-header__action {
    width: 100%;
  }

  .adi-header__title {
    font-size: clamp(2.1rem, 11vw, 3rem);
  }

  .adi-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .adi-upload-form {
    max-width: 100%;
    justify-self: stretch;
  }

  .adi-display-bug {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .adi-shell__content {
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .adi-upload-layout {
    grid-template-columns: minmax(18rem, 0.95fr) minmax(22rem, 1.05fr);
  }
}
