/* A paper workbench: the output stays beside the decisions that create it. */
.proof-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
  align-items: start;
}
.proof-pair figure {
  margin: 0;
  min-width: 0;
  text-align: center;
}
.proof-pair figcaption {
  font-size: 13px;
  color: var(--secondary);
  margin-bottom: 12px;
}
.proof-pair canvas {
  background: var(--paper);
  border: 1px solid var(--line);
  max-height: 500px;
  object-fit: contain;
}
.result-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  background: var(--input);
  flex-wrap: wrap;
}
.result-strip strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
}
.result-strip p {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--secondary);
}
.check-line {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 14px;
  line-height: 1.6;
  margin: 12px 0;
}
.check-line input {
  margin-top: 5px;
  accent-color: var(--blue);
}
.photo-work .stage-inner {
  min-height: 520px;
  flex-direction: column;
}
.photo-proof {
  position: relative;
  width: 280px;
  max-width: 100%;
  line-height: 0;
  background: var(--paper);
  border: 1px solid var(--line);
}
#photo-area {
  width: 100%;
  max-width: 280px;
  min-width: 0;
}
#photo-area .photo-proof {
  width: 100%;
}
#photo-preview {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: grab;
}
.photo-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.photo-guide:before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed var(--blue);
  opacity: 0.6;
}
.photo-guide span {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed var(--blue);
  font-size: 11px;
  line-height: 1.4;
  color: var(--blue);
  text-align: right;
}
.photo-guide span:first-child {
  top: 8%;
}
.photo-guide span:last-child {
  top: 84%;
}
.photo-spec {
  font-size: 13px;
  color: var(--secondary);
  margin-top: 16px;
  text-align: center;
}
.table-scroll {
  overflow: auto;
  max-height: 580px;
  border-top: 1px solid var(--line);
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  font-size: 14px;
}
.diff-table th,
.diff-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--soft-line);
  max-width: 350px;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.diff-table th {
  position: sticky;
  top: 0;
  background: var(--input);
  font-size: 12px;
  color: var(--secondary);
  z-index: 1;
}
.diff-table td:first-child {
  white-space: nowrap;
}
.diff-table del {
  background: #fbecea;
  text-decoration: none;
  color: #81322d;
}
.diff-table ins {
  background: #eaf3ed;
  text-decoration: none;
  color: #265d40;
}
.diff-table .cell-change {
  display: grid;
  gap: 4px;
}
.diff-summary {
  display: flex;
  gap: 24px;
  padding: 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.diff-summary strong {
  font-size: 24px;
  display: block;
  font-variant-numeric: tabular-nums;
}
.diff-summary span {
  color: var(--secondary);
  font-size: 13px;
}
.diff-tools {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  align-items: center;
  flex-wrap: wrap;
}
.diff-tools label {
  max-width: 220px;
  margin: 0;
}
.file-label {
  word-break: break-all;
  font-size: 13px;
  margin: 10px 0;
  color: var(--secondary);
}
.quiet-note {
  padding: 16px 24px;
  background: var(--input);
  color: var(--secondary);
  font-size: 13px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
}
.source-note {
  font-size: 13px;
  color: var(--secondary);
  line-height: 1.8;
}
.source-note a {
  color: var(--blue);
}
.compare-work .stage {
  min-width: 0;
}
.compare-work .settings {
  align-self: stretch;
}
.control-output {
  float: right;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
@media (max-width: 700px) {
  .proof-pair {
    gap: 10px;
  }
  .proof-pair figcaption {
    font-size: 12px;
  }
  .result-strip {
    padding: 16px;
  }
  .photo-work .stage-inner {
    min-height: 420px;
  }
  .diff-summary {
    gap: 18px;
    padding: 16px;
  }
  .diff-summary strong {
    font-size: 22px;
  }
  .diff-tools {
    padding: 16px;
  }
  .table-scroll {
    max-height: 420px;
  }
  .photo-proof {
    width: 250px;
  }
  .intro h1 {
    font-size: 28px;
  }
  .workspace .settings {
    padding: 20px;
  }
}
@media (max-width: 700px) {
  .photo-work .workspace {
    display: flex;
    flex-direction: column;
  }
  .photo-work .settings {
    display: contents;
  }
  .photo-work .settings > .group {
    order: 2;
    padding: 20px;
    margin: 0;
    border-bottom: 1px solid var(--line);
  }
  .photo-work .settings > .group:first-child {
    order: 0;
  }
  .photo-work .stage {
    order: 1;
    padding: 18px;
  }
  .photo-work .stage-inner {
    min-height: 340px;
  }
  .photo-work .settings > .stack {
    order: 3;
    padding: 20px;
  }
  .photo-work .stage-bar {
    font-size: 12px;
  }
  .photo-work .quiet-note {
    padding: 12px 0;
    background: transparent;
  }
  .diff-table {
    min-width: 0;
  }
  .diff-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .diff-table tbody {
    display: block;
  }
  .diff-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--line);
  }
  .diff-table td {
    max-width: none;
    border: 0;
    padding: 12px;
  }
  .diff-table td:nth-child(3) {
    grid-column: 1/-1;
    padding-top: 0;
  }
}
