:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #252d2b;
  background: #f5f5f0;
  font-size: 14px;
  --green: #244d40;
  --line: #dde1d9;
  --muted: #67716a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 10px 14px;
  color: inherit;
  transition: background 0.15s;
}
button:hover {
  background: #edf1eb;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: var(--green);
}
header {
  height: 82px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 650;
  text-decoration: none;
}
.brand span {
  font-size: 19px;
  line-height: 1.2;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.pill {
  border: 1px solid #bacbbe;
  background: #eef4ed;
  color: #3b5b47;
  padding: 6px 9px;
  border-radius: 5px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 650;
}
#account {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
.quiet {
  background: transparent;
}
.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.primary:hover {
  background: #153d30;
}
.danger {
  color: #8e3630;
  border-color: #dab8b3;
}
#notice:not(:empty) {
  position: fixed;
  z-index: 10;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90vw;
  padding: 14px 20px;
  background: #202e29;
  color: white;
  border-radius: 10px;
  box-shadow: 0 5px 30px #0002;
  white-space: pre-line;
}
#login {
  min-height: calc(100vh - 82px);
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 42px;
  border-radius: 16px;
  max-width: 460px;
  width: 100%;
}
.eyebrow {
  color: #64806b;
  font-weight: 650;
  letter-spacing: 0.15em;
  font-size: 10px;
}
h1 {
  font-size: 31px;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 14px 0;
}
h2 {
  font-size: 21px;
  letter-spacing: -0.025em;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.6;
  color: var(--muted);
}
label {
  display: grid;
  gap: 7px;
  color: #49564d;
  font-size: 12px;
  font-weight: 600;
  margin: 14px 0;
}
input,
select,
textarea {
  border: 1px solid #cbd2c8;
  border-radius: 7px;
  padding: 10px 11px;
  min-width: 0;
  background: white;
  color: #29342c;
  width: 100%;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.login-card button {
  width: 100%;
  margin: 8px 0 20px;
}
.login-card small {
  color: var(--muted);
}
#workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  max-width: 1700px;
  margin: auto;
}
aside {
  border-right: 1px solid var(--line);
  padding: 27px 18px;
  min-height: calc(100vh - 82px);
  background: #fafbf7;
}
.queue-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 10px;
}
.queue-heading h1 {
  font-size: 19px;
}
.queue-heading span {
  color: var(--muted);
}
#filter {
  margin: 10px 0 18px;
}
.queue-item {
  width: 100%;
  display: block;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  margin: 5px 0;
  padding: 14px;
}
.queue-item strong {
  display: block;
  line-height: 1.4;
}
.queue-item small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.queue-item.active {
  background: #e7eee3;
  border-color: #bccdb6;
}
.aside-note {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 24px 10px 16px;
}
aside > a {
  font-size: 12px;
  margin: 10px;
}
article {
  padding: 32px 42px 110px;
  min-width: 0;
}
.detail-head {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
}
.detail-head h1 {
  font-size: 29px;
  margin-top: 9px;
}
.status {
  display: inline-block;
  font-size: 11px;
  background: #ebece4;
  color: #657150;
  border-radius: 5px;
  padding: 6px 9px;
  white-space: nowrap;
}
.photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.photo {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.photo img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  background: #eceee7;
  display: block;
}
.photo figcaption {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}
.photo details {
  margin: 0 16px 14px;
}
.photo label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 22px 24px;
  margin: 18px 0;
}
.section h2 {
  margin: 0 0 8px;
}
.section > p {
  font-size: 13px;
  margin: 0 0 18px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.fields label {
  margin: 9px 0;
}
.section summary,
.photo summary {
  cursor: pointer;
  font-weight: 600;
  line-height: 1.7;
}
.source-card {
  padding: 17px;
  background: #f8f9f5;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 12px 0;
}
.source-card a {
  overflow-wrap: anywhere;
}
.source-card .check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.source-card textarea {
  font-size: 12px;
  min-height: 140px;
  font-family: ui-monospace, monospace;
}
.issues {
  border-left: 3px solid #bb9152;
  background: #fcf7eb;
  padding: 15px 19px;
  margin: 18px 0;
  color: #68522e;
  font-size: 13px;
}
.issues ul {
  padding-left: 18px;
  line-height: 1.7;
  margin: 8px 0;
}
.ready {
  border-color: #507c52;
  background: #edf5e9;
  color: #335c3c;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  background: #f5f6f2;
  border-radius: 6px;
  padding: 12px;
  max-height: 500px;
  overflow: auto;
}
details.section > summary {
  font-size: 15px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.action-note {
  font-size: 12px;
  margin-top: 0;
}
.empty {
  padding: 100px 25px;
  text-align: center;
}
.audit-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.audit-item small {
  color: var(--muted);
  display: block;
  margin: 4px 0;
}
.duplicate {
  border-top: 1px solid var(--line);
  padding: 12px 0;
}
.duplicate strong {
  font-size: 13px;
}
.duplicate code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (max-width: 900px) {
  header {
    padding: 0 18px;
    gap: 15px;
  }
  #email {
    display: none;
  }
  #workspace {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  article {
    padding: 24px;
  }
  .photo img {
    height: 220px;
  }
  .fields {
    grid-template-columns: 1fr;
  }
  .photos {
    gap: 10px;
  }
}
@media (max-width: 680px) {
  header {
    height: 72px;
  }
  .brand span {
    font-size: 16px;
  }
  .pill {
    font-size: 8px;
    padding: 5px;
  }
  #workspace {
    display: block;
  }
  aside {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 14px;
  }
  #queue {
    display: flex;
    overflow-x: auto;
  }
  .queue-item {
    min-width: 195px;
    max-width: 240px;
  }
  .aside-note,
  aside > a {
    display: none;
  }
  .queue-heading h1 {
    margin: 0;
  }
  #filter {
    margin: 8px 0;
    width: 100%;
  }
  article {
    padding: 24px 16px 70px;
  }
  .section {
    padding: 18px 16px;
  }
  .photo img {
    height: 190px;
  }
  .photos {
    grid-template-columns: 1fr 1fr;
  }
  .photo figcaption {
    padding: 10px;
  }
  .photo details {
    margin: 0 10px 10px;
  }
  .photo label {
    font-size: 11px;
  }
  .detail-head h1 {
    font-size: 25px;
  }
  .login-card {
    padding: 28px;
  }
  #login {
    padding: 20px;
  }
  .actions button {
    flex: 1;
  }
  .detail-head {
    display: block;
  }
  .status {
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.decision-dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px;
  max-width: 460px;
  width: calc(100% - 32px);
  color: inherit;
  box-shadow: 0 20px 90px #0003;
}
.decision-dialog::backdrop {
  background: #17251c88;
}
.decision-dialog h2 {
  margin-top: 0;
}
.decision-dialog .actions {
  margin: 20px 0 0;
  padding-bottom: 0;
}
