/* styles/home.css
   The document form: tabs, upload area, page thumbnails, the acknowledgement box and the 'What you'll get' list. */
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: var(--bg);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  color: var(--ink);
  font:
    600 15px "Public Sans",
    system-ui,
    sans-serif;
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: var(--ink);
  color: var(--bg);
}
.tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.drop {
  display: grid;
  place-items: center;
  text-align: center;
  gap: 6px;
  border: 2px dashed var(--line);
  border-radius: 12px;
  padding: 26px 14px;
  cursor: pointer;
  background: var(--bg);
  transition: border-color 0.15s;
}
.drop.over {
  border-color: var(--flame);
}
.drop svg {
  color: var(--ink);
  width: 46px;
  height: 46px;
}
.drop small {
  color: var(--mute);
  font-size: 14px;
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.thumb {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  font-size: 13px;
  color: var(--mute);
  text-align: center;
  padding: 4px;
}
.thumb.bad {
  border: 1.5px solid var(--red);
  color: var(--red);
}
.thumb.over {
  opacity: 0.45;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumb i {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font:
    700 11px "Public Sans",
    system-ui,
    sans-serif;
  font-style: normal;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 1px 6px;
  border-radius: 999px;
}
.thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
}
.warn {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--red);
  background: var(--paper);
  font-size: 14px;
}
.warn p {
  margin: 0;
}
.warn p + p {
  margin-top: 6px;
}
.empty {
  display: grid;
  gap: 18px;
}
.empty ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.empty li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.empty li b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--hi);
  color: var(--hiInk);
  font:
    800 17px Archivo,
    system-ui,
    sans-serif;
}
.ack {
  margin: 16px 0 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.ack-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.ack-head svg {
  flex: none;
  width: 26px;
  height: 26px;
  color: var(--flame);
  margin-top: 1px;
}
.ack-head h3 {
  margin: 0 0 4px;
  font:
    700 17px "Public Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
}
.ack-head p {
  margin: 0;
  color: var(--mute);
  font-size: 15px;
}
.ack-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-top: 14px;
  cursor: pointer;
  font-size: 15px;
  color: var(--ink);
}
.ack-row input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ack-box {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--mute);
  display: grid;
  place-items: center;
  margin-top: 1px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.ack-row input:checked + .ack-box {
  background: var(--flame);
  border-color: var(--flame);
}
.ack-row input:checked + .ack-box::after {
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--jet);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.ack-row input:focus-visible + .ack-box {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}
.ack-row input:disabled ~ span {
  opacity: 0.6;
}
.tlink.orange {
  color: var(--flame);
  margin-top: 6px;
  display: inline-block;
}
