* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: 18px;
  font-weight: normal;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  color: rgb(255, 255, 255);
  border-radius: 0;
  box-shadow: none;
  animation: none;
  transition: none;
}

html, body {
  height: 100%;
  background: rgb(0, 0, 255);
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

a {
  color: rgb(255, 255, 255);
  text-decoration: underline;
}

input,
textarea,
select {
  background: none;
  border: none;
  outline: none;
  padding: 4px 0;
}

button {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-bottom: 1px solid rgb(255, 255, 255);
}

/* --- gate (unauthenticated) --- */
.gate-image {
  max-width: 80vw;
  max-height: 80vh;
  display: block;
}

/* --- login --- */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
}

.login-form input {
  width: 100%;
}

.login-form button {
  width: fit-content;
}

.login-error {
  color: rgb(255, 255, 255);
}

/* --- app shell --- */
#app {
  width: 100%;
  max-width: 720px;
  padding: 24px;
  display: none;
}

#app.visible {
  display: block;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgb(255, 255, 255);
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 24px;
}

.tab-button.active {
  text-decoration: none;
}

.tab-panel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.tab-panel.active {
  display: flex;
}

.list-item {
  border-bottom: 1px solid rgb(255, 255, 255);
  padding-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.subsection {
  border-top: 1px solid rgb(255, 255, 255);
  padding-top: 8px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
}

.form-row button {
  width: fit-content;
}

.ticket-status {
  text-transform: uppercase;
}

.admin-subnav {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
}

.admin-subtab-button.active {
  text-decoration: none;
}

.admin-subpanel {
  display: none;
  flex-direction: column;
  gap: 16px;
}

.admin-subpanel.active {
  display: flex;
}

.inline-actions {
  display: flex;
  gap: 16px;
}

.credential-overlay {
  position: fixed;
  inset: 0;
  background: rgb(0, 0, 255);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

.credential-overlay .credential-password {
  user-select: all;
}

.hidden {
  display: none !important;
}
