.account-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.account-card {
  width: min(100%, 430px);
  padding: 34px;
  border: 1px solid #e5e9f1;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(38, 52, 89, 0.08);
}

.account-brand {
  margin-bottom: 35px;
}

.account-card .eyebrow {
  margin-bottom: 10px;
}

.account-card h1 {
  margin-bottom: 25px;
  font-size: 27px;
  letter-spacing: -1px;
}

.form-stack {
  display: grid;
  gap: 15px;
}

.form-stack label {
  display: grid;
  gap: 7px;
  color: #4c5870;
  font-size: 12px;
  font-weight: 600;
}

.form-stack input,
.form-stack select,
.question-row input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #dfe4ed;
  border-radius: 7px;
  color: #24314a;
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.form-stack input:focus,
.form-stack select:focus,
.question-row input:focus {
  border-color: #7889e1;
  outline: 3px solid rgba(83, 105, 215, 0.13);
}

.form-stack small {
  color: #858fa2;
  font-size: 11px;
  font-weight: 400;
}

.form-stack .primary-button {
  width: fit-content;
  margin-top: 3px;
}

.account-footnote {
  margin: 22px 0 0;
  color: #8993a6;
  font-size: 12px;
  line-height: 1.6;
}

.app-download-link {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e2e7f0;
  border-radius: 9px;
  color: #24314a;
  background: #f8f9fc;
  text-decoration: none;
}

.app-download-link:hover {
  border-color: #aeb9eb;
  background: #f3f5fc;
}

.app-download-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  background: #5369d7;
  font-size: 21px;
  font-weight: 700;
}

.app-download-link strong,
.app-download-link small {
  display: block;
}

.app-download-link strong {
  font-size: 12px;
}

.app-download-link small {
  margin-top: 3px;
  color: #788398;
  font-size: 11px;
  line-height: 1.5;
}

.admin-shell {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 20px;
  color: #6c778d;
  font-size: 12px;
}

.admin-user form {
  margin: 0;
}

.text-button {
  padding: 5px 0;
  border: 0;
  color: #5369d7;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.text-button:hover {
  text-decoration: underline;
}

.admin-heading {
  padding: 42px 0 24px;
}

.admin-heading h1 {
  margin: 9px 0;
  font-size: 34px;
}

.admin-heading .intro {
  max-width: 700px;
  margin: 0 0 17px;
}

.notice {
  width: fit-content;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  color: #68748a;
  background: rgba(255, 255, 255, 0.75);
  font-size: 12px;
  line-height: 1.55;
}

.error-notice {
  width: 100%;
  margin-bottom: 18px;
  border-color: #f0d6d7;
  color: #a4424a;
  background: #fff8f8;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 0 48px;
}

.admin-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid #e5e9f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(38, 52, 89, 0.035);
}

.admin-card h2 {
  margin: 0 0 17px;
  color: #24314a;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.offer-letter-note {
  margin: -7px 0 16px;
  color: #7b8598;
  font-size: 12px;
  line-height: 1.6;
}

.engineer-list {
  display: grid;
  gap: 10px;
}

.engineer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 12px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
  background: #fff;
}

.engineer-identity {
  display: grid;
  flex: 1 1 180px;
  gap: 3px;
  min-width: 0;
}

.engineer-identity strong {
  color: #24314a;
  font-size: 12px;
}

.engineer-identity span {
  overflow-wrap: anywhere;
  color: #788398;
  font-size: 11px;
}

.admin-card-wide {
  grid-column: 1 / -1;
}

.admin-card fieldset {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e5e9f1;
  border-radius: 8px;
}

.admin-card legend {
  padding: 0 5px;
  color: #59667e;
  font-size: 11px;
  font-weight: 600;
}

.checkbox-list {
  display: grid;
  gap: 8px;
}

.checkbox-item {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 9px !important;
  color: #58647b !important;
  font-size: 12px !important;
  font-weight: 400 !important;
}

.checkbox-item input {
  width: 15px;
  min-height: 15px;
  margin: 1px 0 0;
  accent-color: #5369d7;
}

.question-create {
  grid-template-columns: 1.2fr 1fr auto;
  align-items: end;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid #edf0f5;
}

.question-list {
  display: grid;
  gap: 11px;
  padding-top: 15px;
}

.question-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
  align-items: center;
  gap: 10px;
}

.question-row.inactive {
  opacity: 0.55;
}

.question-row .delete-button {
  color: #b34d55;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title-row h2 {
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  color: #58647b;
  font-size: 12px;
  text-align: left;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf0f5;
  vertical-align: top;
}

th {
  color: #8993a6;
  font-size: 10px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.download-link {
  color: #5369d7;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.download-link:hover {
  text-decoration: underline;
}

.notifications-list {
  display: grid;
  gap: 8px;
}

.notification-item {
  padding: 11px 12px;
  border-radius: 7px;
  color: #67738a;
  background: #f5f7fb;
  font-size: 12px;
  line-height: 1.5;
}

.notification-item.unread {
  border-left: 3px solid #6477df;
  color: #3f4e69;
  background: #f0f2fc;
}

.notification-item time {
  display: block;
  margin-top: 4px;
  color: #929bad;
  font-size: 10px;
}

.empty-state {
  margin: 6px 0 0;
  color: #8b95a8;
  font-size: 12px;
}

.toast {
  position: fixed;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  max-width: min(420px, calc(100vw - 44px));
  padding: 13px 17px;
  border-radius: 9px;
  color: #fff;
  background: #34415b;
  box-shadow: 0 9px 28px rgba(25, 36, 58, 0.2);
  font-size: 12px;
}

@media (max-width: 700px) {
  .admin-shell {
    width: calc(100% - 32px);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-card-wide {
    grid-column: auto;
  }

  .question-create,
  .question-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .account-card {
    padding: 25px 21px;
  }

  .admin-heading {
    padding-top: 28px;
  }

  .admin-heading h1 {
    font-size: 29px;
  }

  .admin-user {
    gap: 10px;
    font-size: 11px;
  }
}
