.site-header a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.account-panel {
  position: fixed;
  z-index: 2;
  top: clamp(88px, 14vh, 150px);
  left: 50%;
  width: min(680px, calc(100% - 48px));
  max-height: 50vh;
  overflow-y: auto;
  transform: translateX(-50%);
}

.account-panel form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 150px;
  align-items: center;
  gap: 12px;
}

.account-panel label,
.account-panel button {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-panel input[type="email"],
.account-panel input[type="text"] {
  min-width: 0;
  min-height: 62px;
  padding: 12px 18px;
  border: 1px dashed #111;
  border-radius: 0;
  color: #111;
  background: #fff;
  font: inherit;
}

.account-panel button {
  min-height: 62px;
  border: 1px solid #111;
  border-radius: 0;
  color: #fff;
  background: #111;
  cursor: pointer;
}

.account-panel button:hover,
.account-panel button:focus-visible {
  color: #111;
  background: #fff;
}

.account-email {
  min-width: 0;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  overflow-wrap: anywhere;
}

.account-panel .account-profile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.account-name {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.account-panel .account-profile-action {
  display: grid;
  width: 32px;
  min-height: 32px;
  flex: 0 0 32px;
  place-items: center;
  padding: 6px;
  border: 0;
  color: #111;
  background: transparent;
}

.account-panel .account-profile-action:hover,
.account-panel .account-profile-action:focus-visible {
  color: #fff;
  background: #111;
}

.account-profile-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.75;
}

.account-profile-action svg[hidden] {
  display: none;
}

.account-panel .account-profile input[type="text"] {
  width: min(320px, calc(100% - 40px));
  min-height: 38px;
  padding: 6px 10px;
}

.account-notice {
  margin: 12px 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: opacity 400ms ease;
}

.account-notice-hidden {
  opacity: 0;
}

.account-notice[hidden] {
  display: none;
}

.account-panel .sign-out {
  grid-template-columns: max-content;
}

.account-panel .sign-out button {
  min-height: 38px;
  padding: 0 12px;
}

.account-panel h2 {
  margin: 28px 0 12px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.history-panel h2 {
  margin-top: 0;
}

.history-panel {
  max-height: 66vh;
}

.account-support {
  margin: 12px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.account-panel .sign-in .account-support-sign-in {
  grid-column: 2;
  grid-row: 2;
  margin-top: 0;
}

.account-panel .sign-in button {
  grid-column: 3;
  grid-row: 1;
}

.job-history {
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-history li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #111;
}

.job-history a {
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.job-history a:hover span,
.job-history a:focus-visible span {
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.job-history a span,
.job-history a small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-history a span {
  font-size: 0.82rem;
  font-weight: 700;
}

.job-history a small {
  margin-top: 4px;
  font-size: 0.7rem;
}

.account-panel .reprint,
.account-panel .cancel {
  display: block;
}

.account-panel .reprint button,
.account-panel .cancel button,
.account-panel .job-actions > button {
  min-height: 38px;
  padding: 0 12px;
}

.account-panel .reprint button:disabled,
.account-panel .cancel button:disabled,
.account-panel .job-actions > button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.job-actions:empty {
  display: none;
}

.job-action-error {
  grid-column: 1 / -1;
  margin: -4px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.job-action-error[hidden] {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .account-notice {
    transition: none;
  }
}

@media (max-width: 760px) {
  .history-panel {
    max-height: 72vh;
  }
}

@media (min-width: 641px) and (max-width: 760px) {
  .history-panel {
    max-height: 66vh;
  }
}

@media (max-width: 640px) {
  .account-panel {
    top: 84px;
    width: calc(100% - 40px);
    max-height: 55vh;
    max-height: var(--mobile-panel-max-height);
  }

  .history-panel {
    max-height: 55vh;
    max-height: var(--mobile-panel-max-height);
  }

  .account-panel form {
    grid-template-columns: 1fr;
  }

  .account-panel input[type="email"],
  .account-panel input[type="text"],
  .account-panel button {
    min-height: 52px;
  }

  .account-panel .sign-in .account-support-sign-in,
  .account-panel .sign-in button {
    grid-column: 1;
    grid-row: auto;
  }

}
