.assessor-labels-title {
  margin-bottom: 0;
}

.assessor-labels-explanation {
  padding: .2rem 0;
  color: var(--metatext-color);
  margin-bottom: 1rem;
}

.assessor-label {
  background-color: var(--offwhite);
  border: 1px solid var(--darkgray);
  border-radius: .5rem;
  padding: .2rem .5rem;
}

.users-list ul,
.templates-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.admin-section-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 1rem;
  max-width: var(--default-app-width);

  h1 {
    font-size: 1.75rem;
    margin: 0;
  }
}

.template-import-page {
  margin: 0 auto;
  max-width: 58rem;
}

.template-import-header {
  margin-bottom: 1.5rem;

  h1 {
    color: var(--text-color);
    font-size: 2rem;
    line-height: 1.2;
    margin: 0 0 .5rem;
  }

  p:last-child {
    color: var(--metatext-color);
    font-size: 1rem;
    margin: 0;
    max-width: 46rem;
  }
}

.template-import-eyebrow {
  color: var(--lightblue);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin: 0 0 .35rem;
  text-transform: uppercase;
}

.template-import-card {
  background: white;
  border: 1px solid #dedede;
  border-radius: 14px;
  box-shadow: var(--default-app-shadow);
  padding: 1.75rem;
}

.template-import-dropzone {
  align-items: center;
  background: var(--offwhite);
  border: 2px dashed var(--darkgray);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 18rem;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;

  &:hover,
  &:focus-visible,
  &.template-import-dropzone--active {
    background: #f2f8fd;
    border-color: var(--lightblue);
    box-shadow: 0 0 0 3px rgba(92, 164, 229, .12);
  }

  &.template-import-dropzone--has-file {
    background: #f2fbf7;
    border-color: var(--darkgreen);
  }
}

.template-import-dropzone__icon {
  color: #999;
  display: flex;
  margin-bottom: 1rem;
}

.template-import-dropzone--active .template-import-dropzone__icon,
.template-import-dropzone:hover .template-import-dropzone__icon {
  color: var(--lightblue);
}

.template-import-dropzone--has-file .template-import-dropzone__icon {
  color: var(--darkgreen);
}

.template-import-dropzone__text {
  color: var(--text-color);
  font-size: 1rem;
  font-weight: 600;
}

.template-import-dropzone__hint {
  color: #999;
  font-size: .85rem;
  margin-top: .2rem;
}

.template-import-dropzone__filename {
  color: var(--darkgreen);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .85rem;
  font-weight: 600;
  margin-top: .75rem;

  &:empty {
    display: none;
  }
}

.template-import-dropzone__input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}

.template-import-error {
  background: #fff5f5;
  border: 1px solid #fecaca;
  border-left: 4px solid #dc2626;
  border-radius: 6px;
  color: #991b1b;
  font-weight: 600;
  margin: 1rem 0 0;
  padding: .75rem 1rem;
}

.template-import-help {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin: 1rem 0;
}

button.template-import-help__link {
  align-items: center;
  background: none;
  border: none;
  color: var(--metatext-color);
  display: inline-flex;
  font-size: .85rem;
  gap: .4rem;
  letter-spacing: 0;
  padding: .4rem .5rem;

  &:hover {
    background: #f2f8fd;
    color: var(--lightblue);
  }
}

.template-import-actions {
  border-top: 1px solid #e8e8e8;
  display: flex;
  gap: .75rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1.25rem;
}

.template-import-button {
  border-radius: 8px;
  display: inline-flex;
  font-size: .9rem;
  font-weight: 600;
  justify-content: center;
  line-height: 1.5;
  min-width: 7rem;
  padding: .65rem 1.15rem;
  text-decoration: none;
}

.template-import-button--secondary {
  background: white;
  border: 1px solid var(--darkgray);
  color: var(--text-color);

  &:hover {
    background: var(--light-gray);
    color: var(--text-color);
    text-decoration: none;
  }
}

input.template-import-button--primary {
  background: var(--lightblue);
  border: 1px solid var(--lightblue);
  color: white;
  cursor: pointer;

  &:hover {
    background: var(--purple);
    border-color: var(--purple);
  }

  &:disabled {
    background: #ccc;
    border-color: #ccc;
    color: #777;
    cursor: not-allowed;
  }
}

.template-import-dialog {
  background: #1e1e1e;
  border: none;
  border-radius: 9px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .45);
  color: #d4d4d4;
  max-height: 85vh;
  max-width: 58rem;
  overflow: hidden;
  padding: 0;
  width: 92%;

  &::backdrop {
    background: rgba(0, 0, 0, .62);
  }
}

.template-import-dialog__inner {
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

.template-import-dialog__header {
  align-items: center;
  background: #2d2d2d;
  border-bottom: 1px solid #3c3c3c;
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  padding: .75rem 1rem;

  > span {
    color: #999;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
  }
}

.template-import-dialog__header-actions {
  align-items: center;
  display: flex;
  gap: .5rem;
}

.template-import-dialog__content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;

  pre {
    color: #9cdcfe;
    font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
    font-size: .78rem;
    line-height: 1.65;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
  }
}

.template-import-dialog__intro {
  border-bottom: 1px solid #3c3c3c;
  color: #aaa;
  font-size: .85rem;
  margin: 0 0 1rem;
  padding-bottom: .9rem;
}

button.template-import-copy {
  align-items: center;
  background: #3c3c3c;
  border: none;
  color: #aaa;
  display: inline-flex;
  font-size: .7rem;
  gap: .35rem;
  letter-spacing: 0;
  padding: .35rem .6rem;

  &:hover {
    background: #4a4a4a;
    color: white;
  }

  &.template-import-copy--copied {
    background: #1a3a1a;
    color: #4ade80;
  }
}

button.template-import-dialog__close {
  background: none;
  border: none;
  color: #999;
  font-size: 1.35rem;
  height: 1.75rem;
  line-height: 1;
  padding: 0;
  width: 1.75rem;

  &:hover {
    background: #3c3c3c;
    color: white;
  }
}

@media (max-width: 600px) {
  .admin-section-header,
  .template-import-actions,
  .template-import-help {
    align-items: stretch;
    flex-direction: column;
  }

  .template-import-card {
    padding: 1rem;
  }

  .template-import-dropzone {
    min-height: 14rem;
    padding: 2rem 1rem;
  }
}
