/* One live deck, with the phone controls and the desktop worktable from ТАМЪН. */
.rating-mode .workspace {
  padding: 0;
}
.rating-mode .workflow.test {
  --rating-paper: #f5efff;
  --rating-ink: #241432;
  --rating-muted: #655673;
  --rating-rule: #cec2db;
  --rating-iris: #5030dc;
  --vote-yes: #225843;
  --vote-no: #913c35;
  --deck-radius: 27px;
  width: min(100%, 520px);
  margin: 0 auto;
  padding: 5px 22px 20px;
  color: var(--rating-ink);
  font-family: var(--sans, "Sofia Sans", sans-serif);
}
.rating-copy .rating-index,
.rating-copy .rating-instinct,
.test .vote-key {
  display: none;
}
.test .rating-copy .progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 3px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 2px;
  background: var(--rating-rule);
  color: var(--rating-iris);
  accent-color: var(--rating-iris);
}
.test .rating-copy .progress::-webkit-progress-bar { background: var(--rating-rule); }
.test .rating-copy .progress::-webkit-progress-value { background: var(--rating-iris); }
.test .rating-copy .progress::-moz-progress-bar { background: var(--rating-iris); }
.test .rating-check {
  grid-column: 1 / -1;
  margin: 0 0 12px;
  max-width: 63ch;
  color: var(--rating-muted);
  font: 500 15px/1.35 var(--sans);
}
@media (min-width:720px) {
  .test .rating-check { margin: 6px 0 0; }
}
.test .rating-copy .page-title {
  padding: 0;
  margin: 16px 0 15px -1px;
  font: 900 31px/32px var(--display, "Fira Sans Extra Condensed", sans-serif);
  letter-spacing: 0;
  color: var(--rating-ink);
}
.rating-board { min-width: 0; }
.rating-mast-index {font-variant-numeric:tabular-nums}
.test .deck-stage::before {
  inset: 23px 4.91% -13px;
  border: 1px solid #dedfd8;
  border-radius: 24px;
  background: #e9e7df;
  transform: none;
}
.test .deck-stage::after,
.test .deck-stage:has(.dragging)::after {
  inset: 11px 2.31% -6px;
  border: 1px solid #dedfd8;
  border-radius: 26px;
  background: #fff;
  transform: none;
}
.test .deck-stage .card {
  display: grid;
  grid-template-rows: 1fr;
  place-items: center;
  height: auto;
  max-height: max(155px, calc(100svh - 294px));
  aspect-ratio: 346 / 426;
  border: 1px solid #dedfd8;
  border-radius: var(--deck-radius);
  background: #fffefa;
  box-shadow: 0 7px 18px rgb(26 31 23 / 12%);
}
.test .deck-stage .card[data-background="dark"] { background: #282c26; }
.test .deck-stage .card::before { content: none; }
.test .rating-art {
  position: relative;
  width: calc(92.4855% + 1.85px);
  aspect-ratio: 16 / 9;
  max-height: 86%;
  pointer-events: none;
}
.test .deck-stage .card .rating-original {
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}
.test .card[data-frame=protected] .rating-art {position:absolute;inset:0;width:100%;height:100%;max-height:none;aspect-ratio:auto}
.test .card[data-frame=protected] .rating-art .rating-original {inset:0;margin:auto;width:76%;height:70%}
.test .swipe-stamp {
  top: 28px;
  gap: 5px;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid currentColor;
  border-radius: 13px;
  font: 700 18px/22px var(--sans, "Sofia Sans", sans-serif);
  letter-spacing: 0;
  text-transform: none;
}
.test .swipe-stamp.like { left: 19px; background: #e1f0e7; transform: rotate(-6deg); }
.test .swipe-stamp.dislike { right: 19px; background: #fae6e1; transform: rotate(6deg); }
.test .deck-stage .card .swipe-stamp img {
  width: auto;
  height: auto;
  padding: 0;
  max-width: none;
}
.test .deck-guide {
  margin: 34px 0 0;
  min-height: 20px;
  color: var(--rating-muted);
  font-size: 15px;
  line-height: 20px;
}
.test .deck-guide :is(.guide-like,.guide-dislike),
.test .rating-board:has(#rating-card:is([data-intent="like"],[data-intent="dislike"])) .deck-guide > :first-child { display: none; }
.test .rating-board:has(#rating-card[data-intent="like"]) .guide-like,
.test .rating-board:has(#rating-card[data-intent="dislike"]) .guide-dislike { display: inline; }
.test .rating-board .decisions {
  display: grid;
  grid-template-columns: 67fr 7fr 94fr 14fr 94fr 6fr 67fr;
  align-items: start;
  gap: 0;
  width: calc(100% + 4px);
  margin: 26px -2px 0;
}
.test .decisions .vote {
  display: grid;
  grid-template-rows: 66px auto;
  justify-content: stretch;
  justify-items: center;
  align-items: center;
  gap: 6px;
  min-height: 94px;
  padding: 0;
  border: 0;
  color: #22261f;
  font: 700 13px/17px var(--sans, "Sofia Sans", sans-serif);
}
.test .decisions .vote-disc {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin: 0;
  border: 1px solid #dedfd8;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgb(26 31 23 / 8%);
}
.test .decisions :is(.vote-undo,.vote-skip) .vote-disc {
  width: 48px;
  height: 48px;
}
.test .decisions picture,
.test .decisions picture img { display: block; }
.test .decisions .vote-undo { grid-column: 1; }
.test .decisions .vote-dislike { grid-column: 3; }
.test .decisions .vote-like { grid-column: 5; }
.test .decisions .vote-skip { grid-column: 7; }
.test .decisions .vote-label { align-self: start; line-height: 1.3; overflow-wrap:anywhere; min-width:0; }
.test .rating-board:has(#rating-card[data-intent="like"]) .vote-like .vote-disc { background: #e1f0e7; }
.test .rating-board:has(#rating-card[data-intent="dislike"]) .vote-dislike .vote-disc { background: #fae6e1; }
.test .rating-notes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  column-gap: 20px;
  margin-top: 12px;
}
.test .rating-credit,
.test .test-tools { margin: 0; color: var(--rating-muted); font: 14px/1.4 var(--sans); }
.test .rating-credit summary,
.test .test-tools .link-btn { min-height: 38px; padding: 8px 0; font: inherit; cursor: pointer; }
.test .rating-credit[open] { width: 100%; }
.test .rating-credit-text { overflow-wrap: anywhere; }
.test .rating-credit-text a { color: var(--rating-iris); }
.test #image-error { margin: 20px 0 0; color: var(--rating-muted); }
.test #test-status:not(:empty) {padding:10px 14px;margin:11px 0 0;border-left:3px solid var(--rating-iris);color:var(--rating-ink);background:#fffdfa;font:500 1rem/1.35 var(--sans)}
.test #test-status button {color:var(--rating-iris);min-height:44px}
.test .deck-stage.pending .deck-wait {border:1px solid #dedfd8;border-radius:var(--deck-radius);background:#fffefa;font-weight:650;color:var(--rating-ink)}
@media (max-width:719.98px) {
  .test .rating-board .decisions {grid-template-columns:minmax(0,67fr) minmax(0,7fr) minmax(0,94fr) minmax(0,14fr) minmax(0,94fr) minmax(0,6fr) minmax(0,67fr)}
  .test .decisions .vote {width:100%;min-width:0;max-width:100%}
  .test .vote-disc {max-width:100%}
  .test .deck-stage .card {aspect-ratio:1 / 1.055;border-radius:22px}
  .test .rating-copy .page-title {line-height:1.07}
}
@media (max-width: 350px) {
  .rating-mode .workflow.test { padding-inline: 16px; }
  .test .decisions .vote-disc { width: 59px; height: 59px; }
}
@media (max-width: 519.98px) {
  body.rating-mode .taman-mast.sitehead { min-height: calc(50 * var(--m)); height:auto; }
  body.rating-mode .taman-mast.sitehead::after { content: none; }
}
@media (max-height: 670px) and (max-width: 719.98px) {
  .test .deck-guide { margin-top: 20px; }
  .test .rating-board .decisions { margin-top: 12px; }
}
@media (min-width: 520px) and (max-width: 719.98px) {
  .test .rating-index {display:block;margin:8px 0 5px;color:var(--rating-iris);font:500 12px/1.35 var(--mono)}
  .test .deck-stage .card {max-height:max(160px,calc(100svh - 335px))}
}
@media (min-width: 720px) {
  /* Keep the question, current impression and responses on one sightline.
     The phone's portrait deck becomes a neutral viewing surface for the mouse. */
  .rating-mode .workflow.test {
    --rating-field: clamp(220px, 45svh, 440px);
    display: grid;
    width: min(100%, 900px);
    max-width: 900px;
    margin-inline: auto;
    padding: clamp(16px, 3vh, 36px) 0 24px;
    gap: 0;
  }
  .test .rating-copy {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(140px,220px);
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: 32px;
    padding-bottom: 17px;
  }
  .test .rating-copy .page-title {
    grid-area: 1 / 1;
    margin: 0;
    color: var(--rating-ink);
    font: 700 clamp(36px,3.1vw,50px)/1.04 var(--display);
    letter-spacing: -.018em;
  }
  .test .rating-instinct {
    display: block;
    grid-area: 2 / 1;
    margin: 5px 0 0;
    color: var(--rating-muted);
    font: 400 16px/1.3 var(--sans);
  }
  .test .rating-index {
    display: block;
    grid-area: 1 / 2;
    justify-self: end;
    margin: 0;
    color: var(--rating-iris);
    font: 500 13px/1.3 var(--mono);
    font-variant-numeric: tabular-nums;
    letter-spacing: .045em;
    white-space: pre;
  }
  .test .rating-copy .progress {
    grid-area: 2 / 2;
    align-self: center;
    height: 4px;
    width: 100%;
    border-radius: 2px;
  }
  .test .rating-board { min-width: 0; }
  .test .deck-stage { width: 100%; margin: 0; }
  .test .deck-stage::before, .test .deck-stage::after { content: none; }
  .test .deck-stage .card {
    height: var(--rating-field);
    max-height: none;
    aspect-ratio: auto;
    border: 1px solid #d7cfe0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgb(36 20 50 / 5%);
  }
  .test .rating-art {
    width: min(82%, 660px, calc(var(--rating-field) * 1.63));
    max-height: 92%;
  }
  .test .deck-guide { display: none; }
  .test .rating-board .decisions {
    display: grid;
    grid-template-columns: minmax(90px,1fr) repeat(2,minmax(0,235px)) minmax(104px,1fr);
    align-items: center;
    width: 100%;
    gap: 12px;
    margin: 17px 0 0;
  }
  .test .decisions .vote {
    grid-column: auto;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 8px 12px;
    color: var(--rating-ink);
    font: 700 19px/1.2 var(--sans);
  }
  .test .decisions :is(.vote-like,.vote-dislike) {
    border: 1px solid #bcafcc;
    border-radius: 8px;
    background: #fffdfa;
  }
  .test .decisions .vote .vote-disc {
    flex: none; width: auto; height: auto;
    border: 0; border-radius: 0; background: transparent;
    box-shadow: none; transform: none;
  }
  .test .decisions picture img { max-width: 24px; max-height: 24px; width: auto; height: auto; }
  .test .decisions .vote .vote-label { align-self: auto; line-height: inherit; }
  .test .decisions .vote-key {
    display: grid; place-items: center;
    min-width: 25px; height: 23px; padding: 0 4px;
    border: 1px solid var(--rating-rule); border-radius: 4px;
    color: var(--rating-muted); background: transparent;
    font: 500 14px/1 var(--mono);
  }
  .test .decisions :is(.vote-undo,.vote-skip) {
    width: fit-content; min-height: 44px; padding-inline: 4px;
    color: var(--rating-muted); font: 700 16px/1.25 var(--sans);
  }
  .test .decisions .vote-undo { justify-self: start; }
  .test .decisions .vote-skip { justify-self: end; }
  .test .decisions .vote-skip .vote-disc { display: none; }
  .test .decisions .vote-undo .vote-disc img { width: 17px; }
  .test .decisions :is(.vote-undo,.vote-skip):hover:not([aria-disabled="true"]) { color: var(--rating-iris); }
  .test .decisions .vote-dislike:hover:not([aria-disabled="true"]),
  .test .rating-board:has(#rating-card[data-intent="dislike"]) .vote-dislike {
    border-color: var(--vote-no); background: #faeeeb;
  }
  .test .decisions .vote-like:hover:not([aria-disabled="true"]),
  .test .rating-board:has(#rating-card[data-intent="like"]) .vote-like {
    border-color: var(--vote-yes); background: #eaf3ee;
  }
  .test .rating-notes {
    display: flex; align-items: flex-start; justify-content: space-between;
    column-gap: 24px; margin-top: 16px;
    border-top: 1px solid var(--rating-rule);
  }
  .test .rating-credit { flex: 1; min-width: 0; }
  .test .rating-credit summary, .test .test-tools .link-btn {
    min-height: 44px; padding: 11px 0; color: var(--rating-muted);
    font: 400 15px/1.4 var(--sans);
  }
  .test .rating-credit[open] { width: auto; }
  .test .rating-credit-text { margin: 0; padding: 0 0 8px; }
  .test .test-tools { flex: none; text-align: end; }
  .test #image-error { margin-top: 12px; }
}
@media (min-width: 720px) and (max-height: 660px) {
  .rating-mode .workflow.test { --rating-field: clamp(180px, 39svh, 252px); padding-top: 12px; }
  .test .rating-copy { padding-bottom: 12px; }
  .test .rating-copy .page-title { font-size: 35px; }
  .test .rating-board .decisions { margin-top: 12px; }
  .test .rating-notes { margin-top: 10px; }
}
