/* The Inbox (operator spec 3.1 to 3.7) at the sizes the visual review asked for: item names 17 px,
   supporting text 15 to 16 px, nothing that informs under 13 px, every control 44 px or more (48 for the
   frequent ones: chips, the done circle, saved replies, the done switch), separate hit areas that never
   overlap a row's own tap target, and sentence case buttons. Loaded once, the first time the Inbox opens. */

/* ---------- Filters ---------- */
.inbox-filters {
  margin-bottom: 4px;
}
.inbox-filters .seg {
  height: 52px;
  padding: 3px;
}
.inbox-filters .seg-item {
  height: 100%;
  margin: 0;
}
.inbox-filters .seg-item-face {
  height: 100%;
  border-radius: 10px;
  font-size: 16px;
}
.inbox-filters .chips {
  margin: 8px calc(-1 * var(--pad)) 0 0;
  padding-right: var(--pad);
  gap: 8px;
  -webkit-mask-image: none;
  mask-image: none;
}
.inbox-filters .chips.wrap {
  margin-right: 0;
  padding-right: 0;
  gap: 0 8px;
}
.inbox-filters .chip {
  height: 48px;
}
.inbox-filters .chip-face {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  border-color: #cdbf9f;
  font-size: 16px;
}
.inbox-filters .chip small {
  font-size: 14px;
}
.results-line {
  margin: 4px 0 8px;
  font-size: 15px;
  color: var(--ink-soft);
}
.list-warn {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 4px 4px 4px 14px;
  border-radius: var(--radius-row);
  background: var(--clay-soft);
  color: var(--clay-ink);
  font-size: 15px;
  line-height: 1.35;
}
.list-warn .icon {
  width: 20px;
  height: 20px;
  flex: none;
}
.warn-text {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
}
.list-warn .link-btn {
  flex: none;
  color: var(--clay-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.list-note {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-row);
  background: var(--clay-soft);
  color: var(--clay-ink);
  font-size: 15px;
}

/* Type labels read at 13 px here (the review: nothing that informs under 13 px). */
.inbox-rows .label,
.dbar-label .label,
.dh-label .label {
  height: 24px;
  padding: 0 9px;
  font-size: 13px;
}

/* ---------- Rows ---------- */
.inbox-rows {
  margin: 4px 0 0;
}
.irow {
  position: relative;
  margin: 0 -8px;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
  --reveal: 160px;
}
.irow.is-tile {
  --reveal: 80px;
}
.irow-swipe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: max(var(--reveal), var(--pull, 0px));
  visibility: hidden;
}
.irow.is-open .irow-swipe,
.irow.is-dragging .irow-swipe {
  visibility: visible;
}
.swipe-btn {
  min-width: 80px;
  border: 0;
  color: #fff;
  font: 600 16px var(--sans);
}
.swipe-done {
  flex: 1;
  background: var(--fern);
}
.swipe-assign {
  flex: none;
  width: 80px;
  background: var(--ink);
}
.irow-face {
  position: relative;
  display: flex;
  align-items: stretch;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--canvas);
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.irow.is-dragging .irow-face {
  transition: none;
}
.irow.is-open .irow-face {
  transform: translateX(calc(-1 * var(--reveal)));
}
.irow.is-leaving .irow-face {
  transform: translateX(-110%);
  opacity: 0;
}
.irow-main {
  position: relative;
  flex: 1;
  min-width: 0;
  display: block;
  padding: 12px 8px 13px 0;
  color: var(--ink);
  text-decoration: none;
  -webkit-user-drag: none;
}
.irow.is-tile .irow-main {
  padding-right: 64px;
}
.irow-face:has(.irow-main.is-current),
.irow-main.is-current {
  background: var(--jade-soft);
}
.irow-main.is-current {
  background: none;
}
.irow-top {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
}
.dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--jade);
}
.irow-status {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink-soft);
}
.irow-age {
  margin-left: auto;
  flex: none;
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.irow-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 5px;
  font: 600 17px/1.3 var(--sans);
}
.hit {
  font-weight: 700;
  background: var(--gold-soft);
  border-radius: 3px;
}
.irow-who {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  min-height: 24px;
  font-size: 15px;
  color: var(--ink-soft);
}
.who-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.clip {
  flex: none;
  display: grid;
}
.clip .icon {
  width: 16px;
  height: 16px;
}
.avatar {
  margin-left: auto;
  flex: none;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--inset);
  border: 1px solid var(--line);
  color: var(--ink);
  font: 600 13px var(--sans);
}
.row-chev {
  position: absolute;
  right: 18px;
  top: 50%;
  margin-top: -10px;
  color: var(--ink-soft);
}
.row-chev .icon {
  width: 20px;
  height: 20px;
}
.done-btn,
.done-mark {
  flex: none;
  width: 56px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  padding: 0;
}
.done-btn {
  cursor: pointer;
}
.circle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink-faint);
  border-radius: 50%;
  background: var(--paper);
  color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.circle .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2.6;
}
.circle.on,
.irow.is-done .circle {
  background: var(--fern);
  border-color: var(--fern);
  color: #fff;
}
.done-mark .circle.on {
  opacity: 0.85;
}
@media (hover: hover) {
  .done-btn:hover .circle {
    border-color: var(--fern);
  }
}
.more-row {
  display: flex;
  justify-content: center;
  padding: 16px 0 4px;
}
.inbox-bar .btn,
.more-row .btn,
.composer.inbox-bar .btn,
.rep-editor .btn,
.viewer .btn,
.inbox-sheet .btn,
.inbox-item .btn,
.inbox-list .btn {
  min-height: 48px;
  letter-spacing: 0;
  text-transform: none;
  font-size: 16px;
  font-weight: 600;
}
.end-line {
  margin: 14px 0 4px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
}
@media (min-width: 720px) {
  .inbox-filters .chip {
    height: 44px;
  }
  .inbox-filters .chip-face {
    height: 40px;
    padding: 0 13px;
    font-size: 15px;
  }
  .irow-title {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

/* ---------- The item page ---------- */
.caption {
  font-size: 15px;
  color: var(--ink-soft);
}
.inbox-item .detail-title {
  font-size: 26px;
}
.inbox-item .name-title {
  font-size: 32px;
  word-break: break-word;
}
.status-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 44px;
  margin-top: 2px;
  font-size: 15px;
  color: var(--ink-soft);
}
.status-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px 0 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 15px var(--sans);
  text-decoration: underline dotted;
  text-underline-offset: 4px;
}
.status-solo {
  color: var(--ink);
  font-weight: 600;
}
.sub {
  font-size: 15px;
}
.sec-head,
.quote-head,
.note-head {
  font: 600 14px var(--sans);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sec-head {
  margin: 16px 0 8px;
}
.sec-head.inline {
  display: inline;
  margin: 0 6px 0 0;
}
.style-line {
  margin-top: 14px;
  font-size: 16px;
}
.pcard {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  margin-top: 8px;
  padding: 10px 12px 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}
.pcard .icon {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--ink-soft);
}
.pcard.none {
  justify-content: space-between;
}
.pc-av {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--mist);
  color: var(--hydrangea-deep);
  font: 600 15px var(--sans);
}
.pc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.pc-name {
  font: 600 17px/1.3 var(--sans);
  color: var(--ink);
}
.pc-line {
  font-size: 15px;
  line-height: 1.35;
  color: var(--ink-soft);
}
.two-apps {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-row);
  background: var(--inset);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.4;
}
.thread {
  display: flex;
  flex-direction: column;
  margin-top: 14px;
}
/* The Inbox's message box. Scoped: the Assistant has its own .msg, and both stylesheets stay loaded once visited. */
.inbox-item .msg {
  max-width: 100%;
  margin-top: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.inbox-item .msg.out {
  align-self: flex-end;
  margin-left: 32px;
  border-color: #ecc9ce;
  background: var(--jade-soft);
}
.msg-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.5;
}
.msg-full {
  color: var(--ink-soft);
}
.whole {
  margin-top: 4px;
  padding-left: 0;
  font-size: 15px;
}
.byline {
  margin: 6px 4px 0;
  font-size: 14px;
  color: var(--ink-soft);
}
.byline.out {
  text-align: right;
}
.note-card {
  margin-top: 14px;
  padding: 12px 16px 14px;
  border: 1px solid #dccaa2;
  border-radius: var(--radius-row);
  background: var(--inset);
}
.note-head {
  margin-bottom: 6px;
  color: var(--gilt-ink);
}
.quote {
  margin-top: 12px;
  padding: 12px 16px 14px;
  border-radius: var(--radius);
  background: var(--inset);
  border: 1px solid var(--line-soft);
}
.quote-head {
  margin-bottom: 6px;
}
.pics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.thumb {
  position: relative;
  flex: none;
  height: 120px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--inset);
}
.pics.strip .thumb {
  height: 96px;
}
.thumb img {
  display: block;
  height: 100%;
  width: auto;
  max-width: 220px;
  object-fit: cover;
}
.thumb-wait {
  display: block;
  width: 90px;
  height: 100%;
  background: var(--skeleton);
  animation: sk-pulse 1.4s ease-in-out infinite;
}
.thumb-wait.failed {
  animation: none;
  background: var(--clay-soft);
}
.stars {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 10px 0 2px;
  color: var(--gold);
}
.star {
  width: 24px;
  height: 24px;
}
.star.on {
  color: var(--gold);
}
.star:not(.on) {
  color: #b9a982;
}
.stars-text {
  margin-left: 10px;
  font: 600 15px var(--sans);
  color: var(--ink);
}
.review-text {
  margin-top: 8px;
}
.other-names {
  margin-top: 10px;
}
.alert-line {
  font: 600 16px var(--sans);
  color: var(--crak-ink);
}
.checks {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.check {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.cdot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--fern);
}
.check.down .cdot {
  background: var(--crak);
}
.ctime {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.what {
  margin-top: 16px;
}
.what h2 {
  font-size: 22px;
}
.what .sub {
  margin: 6px 0 4px;
}
.fold {
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.fold:last-of-type {
  border-bottom: 1px solid var(--line);
}
.fold summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  font: 600 16px var(--sans);
  list-style: none;
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary::after {
  content: "";
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}
.fold[open] summary::after {
  transform: rotate(-135deg);
}
.kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 0 0 12px;
  font-size: 16px;
}
.kv dt {
  color: var(--ink-soft);
}
.kv dd {
  margin: 0;
}
.fold .btn {
  margin-bottom: 14px;
}
.hist {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.hist li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.hist li:last-child {
  border-bottom: 0;
}
.hist-at {
  flex: none;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Forms in sheets ---------- */
.fl {
  display: block;
  margin-top: 12px;
}
.fl-name {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 2px 6px;
  font: 600 15px var(--sans);
}
.fl-name small {
  font: 400 14px var(--sans);
  color: var(--ink-soft);
}
.sheet-body textarea.field {
  min-height: 110px;
}
.sheet-error,
.name-check.bad {
  margin-top: 8px;
  color: var(--clay-ink);
  font-size: 15px;
}
.name-check {
  min-height: 22px;
  margin-top: 6px;
}
.choice-list {
  display: flex;
  flex-direction: column;
  margin: 0 calc(-1 * var(--pad));
  border-top: 1px solid var(--line-soft);
}
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 var(--pad);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: none;
  font: 500 17px var(--sans);
  text-align: left;
}
.choice[aria-pressed="true"] {
  font-weight: 700;
  color: var(--jade-ink);
  background: var(--jade-soft);
}
.choice .icon {
  width: 22px;
  height: 22px;
}
.found-list {
  margin: 8px calc(-1 * var(--pad)) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.found-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 6px var(--pad);
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
  text-decoration: none;
}
.found {
  margin-top: 6px;
}

/* ---------- Switch row (Done after sending) ---------- */
.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  margin-top: 10px;
  padding: 4px 12px;
  border: 1px solid var(--field-line);
  border-radius: var(--radius-row);
  background: var(--paper);
  cursor: pointer;
}
.switch-row .switch {
  min-height: 0;
}
.switch-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.switch-title {
  font: 600 16px var(--sans);
}
.switch-help {
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Bottom bars ---------- */
.inbox-bar {
  padding: 8px var(--pad);
}
.inbox-bar.rest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.inbox-bar .grow {
  flex: 1;
  min-width: 0;
}
.bar-note {
  flex-basis: 100%;
  margin: 2px 0 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.inbox-bar .btn.good {
  border-color: var(--fern);
  color: var(--fern);
  background: var(--sage-soft);
}
.col-foot .inbox-bar .btn {
  min-height: 48px;
}

/* ---------- The composer ---------- */
.composer.inbox-bar {
  display: flex;
  flex-direction: column;
  padding: 2px var(--pad) 8px;
}
.comp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  margin-right: -10px;
}
.comp-to {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--ink-soft);
}
.comp-chips {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  /* The row ends at the text margins, so a chip scrolled out of sight is gone, not a sliver in the margin.
     A chip always stops flush at the left edge, never cut in half; the fade says there is more to the right. */
  scroll-snap-type: x mandatory;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}
.comp-chips .rchip {
  scroll-snap-align: start;
}
/* Room after the last chip, so every chip can stop flush at the left edge, the last one too. */
.comp-chips:not(.wrap)::after {
  content: "";
  flex: none;
  width: calc(100% - 140px);
}
.comp-chips::-webkit-scrollbar {
  display: none;
}
.comp-chips.wrap {
  -webkit-mask-image: none;
  mask-image: none;
  scroll-snap-type: none;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
  overflow: visible;
}
.rchip {
  flex: none;
  height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
}
.rchip-face {
  height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1px solid #cdbf9f;
  border-radius: 22px;
  background: var(--paper);
  font: 500 16px var(--sans);
  white-space: nowrap;
}
.rchip.ask .rchip-face {
  border-color: var(--jade);
  color: var(--jade-deep);
  font-weight: 600;
}
.rchip.assist .rchip-face {
  border-color: var(--jade);
  background: var(--jade-soft);
  color: var(--jade-ink);
  font-weight: 600;
}
.rchip.edit .rchip-face {
  border-color: transparent;
  background: none;
  color: var(--jade-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.rchip[aria-pressed="true"] .rchip-face {
  border-color: var(--jade);
  background: var(--jade-soft);
  color: var(--jade-ink);
  font-weight: 600;
}
.comp-error {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 4px;
  margin: 2px 0 6px;
  padding: 2px 4px 2px 12px;
  border-radius: var(--radius-row);
  background: var(--clay-soft);
  color: var(--clay-ink);
  font-size: 15px;
}
.comp-error .link-btn {
  color: var(--clay-ink);
  font-weight: 600;
  text-decoration: underline;
}
.comp-after {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--ink-soft);
}
.comp-write {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.comp-text {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  max-height: 164px;
  overflow-y: auto;
  margin-top: 2px;
  resize: none;
}
.composer.typing .comp-chips,
.composer.typing .comp-after {
  display: none;
}
.comp-count {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  font-variant-numeric: lining-nums tabular-nums;
}
.comp-count.over {
  color: var(--crak-ink);
  font-weight: 600;
}
.comp-public {
  font-size: 14px;
  color: var(--clay-ink);
}
.comp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.comp-row .switch-row {
  flex: 1;
  min-width: 0;
  margin-top: 0;
}
.send {
  flex: none;
  width: 88px;
  height: 52px;
  padding: 0;
}
.send.busy {
  width: auto;
  min-width: 112px;
  padding: 0 16px;
}
.spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Saved replies editor ---------- */
.rep-list {
  margin: 14px calc(-1 * var(--pad)) 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.rep-item {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line-soft);
}
.rep-open {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 64px;
  padding: 8px var(--pad);
  border: 0;
  background: none;
  text-align: left;
}
.rep-title {
  font: 600 17px var(--sans);
}
.rep-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  color: var(--ink-soft);
}
.rep-move {
  display: flex;
  flex: none;
  align-items: center;
  padding-right: 4px;
}
.rep-move .icon-btn[disabled] {
  opacity: 0.3;
}
.rep-move .down .icon {
  transform: rotate(180deg);
}
.add-rep {
  margin-top: 16px;
}
.rep-back {
  display: inline-flex;
  align-items: center;
  margin-left: -12px;
}
.rep-back .icon {
  width: 18px;
  height: 18px;
  margin-right: 2px;
}
.rep-text {
  min-height: 150px;
}
.rep-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
}
.rep-delete {
  margin-top: 12px;
}
.rep-msg {
  margin: 0 0 8px;
  color: var(--clay-ink);
  font-size: 15px;
}
.rep-editor .sheet-foot .btn {
  margin: 0;
}

/* ---------- Full screen picture, toast ---------- */
.viewer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: #1a161e;
  color: #fff;
}
.viewer-top,
.viewer-nav {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px var(--pad);
}
.viewer-count {
  font-size: 15px;
}
.viewer .btn {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}
.viewer-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  overflow: auto;
  touch-action: pan-x pan-y pinch-zoom;
}
.viewer-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: zoom-in;
}
.viewer.zoomed .viewer-stage {
  place-items: start;
}
.viewer.zoomed .viewer-stage img {
  max-width: none;
  max-height: none;
  width: 220%;
  cursor: zoom-out;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-space) + 132px);
  z-index: 55;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-row);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
.toast.open {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast.is-error {
  background: var(--clay-ink);
}
@media (min-width: 720px) {
  .toast {
    left: auto;
    right: 24px;
    bottom: 96px;
    transform: translateY(8px);
  }
  .toast.open {
    transform: none;
  }
}

/* ---------- The line that says what the numbers count (finding 22) ---------- */
.counts-line {
  margin: 6px 0 2px;
  font-size: 15px;
  color: var(--ink-soft);
}
