:root {
  --page-edge: 40px;
  --logo-text-inset: 30px;
  --text: #282626;
  --quiet: #777;
  --hairline: #d8d8d8;
  --field-height: 48px;
  --thumb-height: 104px;
}
.editor,
.settings-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 60px;
}
.editor {
  max-width: none;
}
.editor #editForm {
  max-width: 850px;
  min-width: 0;
}
.tabs,
.settings-nav {
  padding-left: var(--logo-text-inset);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 25px;
  font-size: 32px;
  line-height: 1.5;
}
.tabs button,
.settings-nav a {
  font: inherit;
  color: #aaa;
  border: 0;
  padding: 0;
  background: none;
  text-decoration: none;
}
.tabs button[aria-selected="true"],
.settings-nav a[aria-current] {
  color: var(--text);
  border: 0;
  text-decoration: none;
}
.settings-nav a:hover,
.tabs button:hover {
  color: var(--text);
}
.search,
.search.compact {
  font-size: 18px;
  line-height: 24px;
  height: var(--field-height);
  min-height: var(--field-height);
  padding: 11px 16px;
  margin: 12px 0 24px;
  border: 1px solid var(--text);
  border-radius: 0;
  width: 100%;
}
.toolbar {
  margin-bottom: 0;
}
.detail {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
}
.detail > section:first-child {
  position: sticky;
  top: 24px;
  align-self: start;
}
.detail #detailImage {
  height: min(680px, calc(100svh - 236px));
  min-height: 240px;
  aspect-ratio: auto;
}
.ticket-object {
  inset: 7%;
  width: 86%;
  height: 86%;
}
.detail h1 {
  font-size: 25px;
}
.detail .tags {
  margin-bottom: 28px;
}
.detail .meta {
  gap: 22px 28px;
}
.detail .meta dt {
  margin-bottom: 7px;
}
.detail .section-title {
  margin: 30px 0 18px;
}
.grid.thumbnail-grid,
.detail .related-grid,
.related-choices,
.settings-layout .grid.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 16px;
}
.thumbnail-card {
  min-width: 0;
  display: block;
}
.thumbnail-card .scan,
.select-card.thumbnail-card .scan {
  height: var(--thumb-height);
  aspect-ratio: auto;
  min-height: 0;
  display: block;
}
.thumbnail-card .scan img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}
.thumbnail-card .caption {
  font-size: 12px;
  line-height: 1.55;
  margin-top: 9px;
  display: block;
}
.thumbnail-card .caption strong {
  font-weight: 400;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thumbnail-card .caption time {
  font-size: 12px;
  display: block;
  color: #666;
  margin-top: 2px;
}
.thumbnail-card .caption small {
  display: none;
}
.thumbnail-grid .card-selector {
  padding: 4px;
  top: 5px;
  left: 5px;
}
.thumbnail-grid .card-selector input,
.thumbnail-card > input {
  width: 16px;
  height: 16px;
}
.thumbnail-grid .selectable-card > .muted {
  font-size: 11px;
  line-height: 1.5;
  margin: 6px 0 0;
  color: #777;
}
.editor-scans {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.scan-tile {
  position: relative;
  min-width: 0;
}
.scan-tile .scan-choice {
  width: 100%;
  border: 1px solid #ddd;
}
.scan-tile .scan-choice.selected {
  border-color: #282626;
}
.scan-tile .scan {
  position: relative;
  height: clamp(180px, 30vh, 290px);
  aspect-ratio: auto;
  display: grid;
  place-items: center;
}
.scan-tile .scan img {
  inset: 14px;
  width: calc(100% - 28px);
  height: calc(100% - 28px);
  padding: 0;
}
.scan-tile .caption {
  padding: 10px 12px;
  margin: 0;
  font-size: 13px;
}
.scan-rotate {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 7px;
  background: #fff;
  border: 1px solid #282626;
  z-index: 2;
}
.scan-rotate svg {
  width: 19px;
  height: 19px;
}
.scan-rotate:hover {
  background: #eee;
}
.issue-groups {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 10px;
  margin-bottom: 24px;
  scrollbar-width: thin;
}
.issue-groups > label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border: 1px solid #bbb;
  padding: 10px 12px;
  font-size: 13px;
}
.issue-groups input {
  accent-color: #282626;
  margin: 0;
}
.issue-groups small {
  color: #777;
  font-size: 12px;
}
.backup-section {
  padding: 0 0 32px;
  border-bottom: 1px solid #d8d8d8;
}
.restore-section {
  padding-top: 32px;
}
.restore-section > .review-card {
  margin-top: 20px;
}
.restore-section > .empty {
  margin-top: 22px;
}
.brand {
  isolation: isolate;
}
.brand > .brand-actions {
  display: flex !important;
  inset: 0;
  bottom: auto;
  width: 100%;
  height: 57px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.12s ease,
    visibility 0.12s;
}
.brand > .brand-actions #back {
  width: 100%;
  height: 57px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 14px;
  padding: 0 26px;
  font-size: 16px;
  border: 0;
  background: #d40909;
  color: #fff;
}
.brand > .brand-actions #back svg {
  width: 28px;
  height: 28px;
}
.brand > #brandToggle {
  opacity: 1 !important;
  visibility: visible;
  transition: opacity 0.12s ease;
}
.brand:hover > #brandToggle,
.brand:focus-within > #brandToggle {
  opacity: 1 !important;
}
.brand.open > #brandToggle {
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none !important;
}
.brand.open > .brand-actions {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.brand:not(.open) .brand-actions {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
body.home .brand > #brandToggle {
  opacity: 1 !important;
  visibility: visible;
  pointer-events: none !important;
}
body.home .brand-actions {
  display: none !important;
}
@media (max-width: 1100px) {
  .editor,
  .settings-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 36px;
  }
  .tabs,
  .settings-nav {
    font-size: 27px;
  }
  .detail {
    gap: 28px;
  }
  .grid.thumbnail-grid,
  .detail .related-grid,
  .related-choices,
  .settings-layout .grid.thumbnail-grid {
    gap: 20px 12px;
  }
  .detail .meta {
    gap: 20px;
  }
  .detail h1 {
    font-size: 23px;
  }
}
@media (max-width: 700px) {
  :root {
    --page-edge: 16px;
    --logo-text-inset: 20px;
    --thumb-height: 94px;
  }
  .editor,
  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }
  .tabs,
  .settings-nav {
    flex-direction: row;
    gap: 22px;
    font-size: 21px;
    padding-left: var(--logo-text-inset);
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 8px;
    max-width: 100%;
  }
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail > section:first-child {
    position: static;
  }
  .detail #detailImage {
    height: min(410px, calc(100svh - 210px));
    min-height: 220px;
  }
  .grid.thumbnail-grid,
  .detail .related-grid,
  .related-choices,
  .settings-layout .grid.thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
  }
  .editor-scans {
    grid-template-columns: minmax(0, 1fr);
  }
  .scan-tile .scan {
    height: 230px;
  }
  .brand > .brand-actions,
  .brand > .brand-actions #back {
    height: 37px;
  }
  .brand > .brand-actions #back {
    font-size: 14px;
    padding: 0 16px;
    gap: 10px;
  }
  .brand > .brand-actions #back svg {
    width: 22px;
    height: 22px;
  }
  .search,
  .search.compact {
    font-size: 16px;
  }
  nav,
  body.home nav {
    gap: 14px;
    font-size: 15px;
  }
  header,
  body.home header {
    gap: 12px;
    flex-wrap: wrap;
  }
  nav {
    margin-left: auto;
  }
  body.home nav {
    margin-left: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand > #brandToggle,
  .brand > .brand-actions {
    transition: none;
  }
}

/* Backup and deployment controls share the site's square monochrome controls. */
.safety-subnav {
  margin-bottom: 24px;
}
.safety-subnav button,
#deployExport .page-actions button {
  appearance: none;
  border: 1px solid #282626;
  border-radius: 0;
  background: white;
  color: #282626;
  padding: 11px 16px;
  min-height: 44px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.safety-subnav button[aria-pressed="true"] {
  background: #282626;
  color: white;
}
#deployExport .page-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.deployment-progress {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: min(100%, 480px);
  height: 4px;
  border: 0;
  border-radius: 0;
  background: #e5e4df;
  color: #282626;
  margin: 24px 0 16px;
}
.deployment-progress[hidden] {
  display: none;
}
.deployment-progress::-webkit-progress-bar {
  background: #e5e4df;
  border-radius: 0;
}
.deployment-progress::-webkit-progress-value {
  background: #282626;
  border-radius: 0;
}
.deployment-progress::-moz-progress-bar {
  background: #282626;
  border-radius: 0;
}
.deployment-progress:indeterminate {
  background: linear-gradient(
    90deg,
    #e5e4df 0 35%,
    #282626 35% 65%,
    #e5e4df 65%
  );
}
