@font-face {
  font-family: Plex;
  src: url(/assets/fonts/ibm-plex-sans-latin-var.woff2) format('woff2');
  font-weight: 100 700;
  font-display: swap;
}
@font-face {
  font-family: PlexMono;
  src: url(/assets/fonts/ibm-plex-mono-latin-400.woff2) format('woff2');
  font-display: swap;
}
:root {
  --canvas: #f4f4f1;
  --paper: #fff;
  --ink: #14171c;
  --muted: #505965;
  --blue: #1e3f66;
  --line: #c8ccce;
  --soft: #e6edf5;
  color: var(--ink);
  font:
    16px/1.55 Plex,
    system-ui,
    sans-serif;
  background: var(--canvas);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  width: min(calc(100% - 48px), 1100px);
  margin: 0 auto;
  min-height: 65vh;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.55rem);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.047em;
  max-width: 27ch;
}
h2 {
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  font-weight: 500;
  line-height: 1.22;
}
h3 {
  font-weight: 600;
  font-size: 1.06rem;
}
p {
  max-width: 68ch;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
.picker {
  cursor: pointer;
  min-height: 44px;
  padding: 0.58rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
button:hover,
.picker:hover {
  border-color: var(--blue);
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #152f4d;
}
:focus-visible,
.picker:focus-within {
  outline: 3px solid #256cae;
  outline-offset: 3px;
}
label {
  font-size: 0.92rem;
}
input:not([type='checkbox'], [type='file']),
select,
textarea {
  min-height: 44px;
  border: 1px solid #aab1ba;
  background: white;
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  max-width: 100%;
}
input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}
.check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
button[hidden],
[hidden] {
  display: none !important;
}
#intake {
  padding: clamp(26px, 5.2vw, 66px) 0 28px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  column-gap: 6%;
  align-content: center;
  align-items: center;
}
#intake h1 {
  align-self: end;
}
.lead {
  font-size: 1.09rem;
  line-height: 1.54;
  color: #434a54;
  margin-top: 16px;
  align-self: start;
  max-width: 49ch;
}
#drop {
  grid-column: 2;
  grid-row: 1/3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 28px 18px;
  min-height: 252px;
  border: 1px dashed #8d9aaa;
  border-radius: 12px;
  background: #fff;
}
#drop.over {
  background: var(--soft);
  outline: 2px solid var(--blue);
}
.formats,
.meta,
.counts,
.statusnum {
  font-family: PlexMono, monospace;
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.formats {
  margin: 7px 0 18px;
}
.actions,
.tools,
nav.guides {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.picker {
  position: relative;
  overflow: hidden;
}
.picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
}
.secondary {
  background: #fafaf8;
}
.fold {
  margin: 2px 0 18px;
  width: 43px;
  height: 32px;
  border: 1.5px solid #516783;
  background: #eaf0f5;
  transform: rotate(-5deg);
  box-shadow:
    4px 4px 0 white,
    5px 5px 0 #8695a4;
  overflow: hidden;
}
.fold i {
  position: absolute;
  left: 4px;
  top: -15px;
  width: 33px;
  height: 32px;
  transform: rotate(45deg);
  border: 1px solid #617996;
}
.band,
.reading section,
#desk,
#reattach,
#viewer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.band h2,
#recent h2 {
  margin-bottom: 14px;
}
.reading {
  padding: 40px 0;
  max-width: 760px;
}
.reading h1 {
  margin-bottom: 24px;
}
.reading p,
.feature p {
  margin: 10px 0 16px;
}
.reading section {
  padding: 18px 0;
}
.offer {
  color: var(--blue);
  max-width: 38ch;
}
.feature {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) 1fr;
  align-items: center;
  gap: 7%;
  padding: 32px 0;
}
.feature figure {
  background: #e5e8e9;
  border: 1px solid var(--line);
  padding: 20px 13%;
}
.feature img {
  width: 100%;
  height: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 500;
}
details > p {
  margin: 0 0 16px;
}
.guides a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-right: 18px;
}
.filters,
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 178px), 1fr));
  gap: 10px 14px;
  margin: 12px 0;
}
.filters label,
.controls label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.desk-head,
.pager,
.job,
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.counts {
  display: block;
  margin: 8px 0;
}
.scroll-table {
  overflow: auto;
  margin: 8px 0 12px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.88rem;
  text-align: left;
}
td,
th {
  padding: 5px 9px;
  border-bottom: 1px solid #dde0e2;
  max-width: 260px;
  overflow-wrap: anywhere;
}
th {
  font-weight: 500;
  background: #eaedef;
  color: #38424c;
}
td small {
  display: block;
  color: var(--muted);
}
td label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 44px;
}
.pager {
  justify-content: flex-start;
  margin-bottom: 16px;
}
.pager output {
  min-width: 4em;
  text-align: center;
}
.job {
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.tools {
  margin: 10px 0;
}
.workspace-status,
#progress:not(:empty),
#status:not(:empty),
#member:not([hidden]) {
  padding: 14px;
  background: var(--soft);
  border-left: 3px solid var(--blue);
  margin: 14px 0;
}
progress {
  accent-color: var(--blue);
  max-width: 100%;
  vertical-align: middle;
}
.viewer {
  background: #e1e4e6;
  padding: 16px;
  margin-top: 12px;
}
.sheet {
  max-width: 850px;
  background: white;
  position: relative;
  margin: auto;
}
.sheet canvas {
  width: 100%;
  height: auto;
  display: block;
}
.page-link {
  position: absolute;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}
.page-link:hover {
  background: rgba(40, 88, 128, 0.1);
}
.viewer details {
  padding: 6px;
  overflow-wrap: anywhere;
}
.viewer select {
  max-width: 24em;
}
.notices li {
  margin: 12px 0;
}
.notices small {
  display: block;
}
dialog {
  color: var(--ink);
  width: min(520px, 94vw);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
dialog::backdrop {
  background: rgba(20, 23, 28, 0.4);
}
dialog p {
  margin: 14px 0;
}
dialog form label {
  display: grid;
  margin: 12px 0;
}
#sources details {
  font-size: 0.9rem;
}
#jobs:empty,
#sources:empty,
#progress:empty {
  display: none;
}
.print-lock {
  display: none;
}
@media (max-width: 740px) {
  main {
    width: calc(100% - 32px);
  }
  #intake {
    display: block;
  }
  .lead {
    margin: 10px 0 16px;
  }
  #drop {
    min-height: 0;
    padding: 16px 10px;
  }
  .fold {
    display: none;
  }
  .formats {
    margin: 4px 0 12px;
  }
  .feature {
    grid-template-columns: 1fr;
  }
  .feature figure {
    max-width: 350px;
  }
  .feature > div {
    grid-row: 1;
  }
  .tools > * {
    max-width: 100%;
  }
  .viewer {
    padding: 5px;
  }
  #language {
    font-size: 16px;
  }
  .actions {
    justify-content: flex-start;
  }
  #intake .actions {
    justify-content: center;
  }
}
@media print {
  body > *,
  main > * {
    display: none !important;
  }
  body > main,
  main > .print-lock {
    display: block !important;
  }
  main {
    width: 100%;
    color: black;
    background: white;
  }
  .print-lock {
    font: 12pt sans-serif;
  }
}
body > header,
body > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(calc(100% - 48px), 1100px);
  margin: auto;
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}
body > footer {
  padding: 24px 0 34px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--muted);
  font-size: 0.94rem;
}
body > footer nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
body > footer a {
  color: inherit;
}
body > footer .studio {
  text-decoration: none;
}
body > footer .studio img {
  margin-right: 4px;
}
@media (max-width: 740px) {
  body > header,
  body > footer {
    width: calc(100% - 32px);
  }
  body > footer {
    align-items: flex-start;
    flex-direction: column;
  }
  body > footer nav {
    gap: 8px 14px;
  }
}
@media print {
  dialog,
  dialog::backdrop {
    display: none !important;
  }
}
