.rankreceipt :where(:not(svg, svg *)) {
  all: revert;
  box-sizing: border-box;
}
.rankreceipt {
  width: 100%;
}
.rankreceipt {
  --bg: #dcdcd9;
  --rail: #d1d1ce;
  --paper: #fafaf7;
  --soft: #f1f1ef;
  --line: #c9c9c6;
  --line-2: #b5b5b1;
  --ink: #111111;
  --ink-2: #3a3a38;
  --muted: #595957;
  --focus: #1f4fd8;
  --sans: "Familjen Grotesk", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, monospace;
}
.rankreceipt * {
  box-sizing: border-box;
}
.rankreceipt {
  -webkit-text-size-adjust: 100%;
}
.rankreceipt {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.45 var(--sans);
}
.rankreceipt ::selection {
  background: var(--ink);
  color: var(--paper);
}
.rankreceipt a {
  color: var(--ink);
  text-underline-offset: 3px;
}
.rankreceipt a:hover {
  text-decoration-thickness: 2px;
}
.rankreceipt :focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.rankreceipt button,
.rankreceipt input,
.rankreceipt select,
.rankreceipt textarea {
  font: inherit;
  color: inherit;
}
.rankreceipt .sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.rankreceipt .skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--paper);
  padding: 10px 14px;
  z-index: 10;
}
.rankreceipt .skip:focus {
  top: 12px;
}
.rankreceipt .kicker {
  margin: 0;
  font: 500 12px/1.4 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.rankreceipt .hint {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}
.rankreceipt .small {
  font-size: 14px;
  color: var(--muted);
}
.rankreceipt .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  background: transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.15s,
    color 0.15s,
    transform 0.15s;
}
.rankreceipt .btn:active {
  transform: translateY(1px);
}
.rankreceipt .btn-solid {
  background: var(--ink);
  color: var(--paper);
}
.rankreceipt .btn-solid:hover {
  background: #2b2b2a;
}
.rankreceipt .btn-line:hover {
  background: var(--ink);
  color: var(--paper);
}
.rankreceipt .btn-line-inv {
  border-color: var(--paper);
  color: var(--paper);
}
.rankreceipt .btn-line-inv:hover {
  background: var(--paper);
  color: var(--ink);
}
.rankreceipt .btn-solid-inv {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}
.rankreceipt .btn-solid-inv:hover {
  background: var(--line);
}
.rankreceipt .btn.wide {
  width: 100%;
}
.rankreceipt .link {
  background: none;
  border: 0;
  padding: 10px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.rankreceipt .row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rankreceipt .file-btn {
  position: relative;
  overflow: hidden;
}
.rankreceipt .file-btn input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rankreceipt input:not([type]),
.rankreceipt input[type="search"],
.rankreceipt input[type="text"],
.rankreceipt select,
.rankreceipt textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
}
.rankreceipt select {
  padding-right: 28px;
}
.rankreceipt input::placeholder,
.rankreceipt textarea::placeholder {
  color: #7a7a77;
}
.rankreceipt .top {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  min-height: 72px;
  background: var(--ink);
  color: var(--paper);
}
.rankreceipt .brand {
  color: var(--paper);
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.rankreceipt .brand .tool-mark {
  flex: none;
}
.rankreceipt .chip {
  font: 400 13px var(--mono);
  color: var(--paper);
  background: transparent;
  border: 1px solid #4a4a48;
  border-radius: 4px;
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
  max-width: 460px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rankreceipt .chip:hover {
  border-color: var(--paper);
}
.rankreceipt .top-note {
  margin: 0 0 0 auto;
  font: 400 12px var(--mono);
  color: #b3b3af;
  white-space: nowrap;
}
.rankreceipt .top-actions {
  display: flex;
  gap: 10px;
}
.rankreceipt .tabs {
  display: none;
}
.rankreceipt .app {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  min-height: calc(100vh - 72px);
}
.rankreceipt .rail {
  background: var(--rail);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.rankreceipt .block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rankreceipt .center {
  padding: 26px 34px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.rankreceipt .tests {
  background: var(--paper);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rankreceipt .mapping {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rankreceipt .map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  align-items: center;
  gap: 10px;
}
.rankreceipt .map-row code {
  font: 400 13px var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rankreceipt .map-row select {
  min-height: 38px;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
}
.rankreceipt .weights {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rankreceipt .w {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.rankreceipt .w span {
  display: flex;
  justify-content: space-between;
}
.rankreceipt .w output {
  font: 500 13px var(--mono);
}
.rankreceipt .w input {
  width: 100%;
  accent-color: var(--ink);
  min-height: 28px;
}
.rankreceipt .toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.rankreceipt .toggle input {
  width: 20px;
  height: 20px;
  accent-color: var(--ink);
}
.rankreceipt .syns {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rankreceipt .syns li {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 13px/1.5 var(--mono);
}
.rankreceipt .syns li span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.rankreceipt .syns li.off span {
  text-decoration: line-through;
  color: var(--muted);
}
.rankreceipt .syns button {
  width: 32px;
  height: 32px;
  flex: none;
  border: 0;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}
.rankreceipt .syns button:hover {
  background: var(--line);
}
.rankreceipt .syn-form {
  display: grid;
  gap: 8px;
}
.rankreceipt .search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rankreceipt .search input {
  min-height: 64px;
  padding: 0 20px;
  border-width: 2px;
  font-size: 26px;
  font-weight: 500;
}
.rankreceipt .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  color: var(--muted);
}
.rankreceipt .meta p {
  margin: 0;
}
.rankreceipt .meta-btns {
  display: flex;
  gap: 18px;
}
.rankreceipt .results {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.rankreceipt .side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.rankreceipt .rcpt {
  background: var(--paper);
  padding: 22px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 18px 40px -26px #11111173;
  -webkit-mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% /
    16px 100% repeat-x;
  mask: radial-gradient(7px at 50% 100%, #0000 98%, #000) 50% 100% / 16px 100%
    repeat-x;
  animation: print 0.35s ease-out;
}
@keyframes print {
  0% {
    clip-path: inset(0 0 100% 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
.rankreceipt .rc-top {
  display: flex;
  justify-content: space-between;
  font: 400 13px var(--mono);
  color: var(--muted);
  gap: 12px;
}
.rankreceipt .rc-top span:last-child {
  overflow-wrap: anywhere;
  text-align: right;
}
.rankreceipt .rc-head {
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.rankreceipt .rc-rank {
  font-weight: 700;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.rankreceipt .rc-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rankreceipt .rc-sub {
  font-size: 14px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.rankreceipt .rc-rule {
  height: 1px;
  background-image: linear-gradient(90deg, var(--line-2) 50%, transparent 50%);
  background-size: 8px 1px;
}
.rankreceipt .rc-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 13px/1.45 var(--mono);
}
.rankreceipt .rc-lines li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.rankreceipt .rc-lines li span:first-child {
  overflow-wrap: anywhere;
}
.rankreceipt .rc-lines li span:last-child {
  white-space: nowrap;
}
.rankreceipt .rc-lines li small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.rankreceipt .rc-total-rule {
  height: 2px;
  background: var(--ink);
}
.rankreceipt .rc-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
}
.rankreceipt .rc-total b {
  font-size: 14px;
  font-weight: 600;
}
.rankreceipt .rc-total strong {
  font-size: 30px;
  font-weight: 600;
}
.rankreceipt .rc-delta {
  text-align: center;
  font: 400 12px var(--mono);
  color: var(--muted);
}
.rankreceipt .rc-actions {
  display: flex;
  justify-content: center;
}
.rankreceipt .empty {
  background: var(--paper);
  padding: 28px;
}
.rankreceipt .empty h3 {
  margin: 0 0 8px;
  font-size: 22px;
}
.rankreceipt .empty p {
  margin: 0;
  color: var(--ink-2);
}
.rankreceipt .list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rankreceipt .list button {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.15s,
    background-color 0.15s;
}
.rankreceipt .list button:hover {
  transform: translate(3px);
}
.rankreceipt .list button[aria-current="true"] {
  background: var(--ink);
  color: var(--paper);
}
.rankreceipt .list button[aria-current="true"] .li-why,
.rankreceipt .list button[aria-current="true"] .li-delta {
  color: #c9c9c6;
}
.rankreceipt .li-rank {
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.04em;
  line-height: 1;
}
.rankreceipt .li-t {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.rankreceipt .li-t b {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.rankreceipt .li-why {
  font-size: 13px;
  color: var(--muted);
}
.rankreceipt .li-s {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--mono);
}
.rankreceipt .li-s b {
  font-size: 20px;
  font-weight: 600;
}
.rankreceipt .li-delta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.rankreceipt .more {
  font-size: 14px;
  color: var(--muted);
  padding: 4px 2px;
}
.rankreceipt .whatif {
  background: var(--soft);
  border: 2px dashed var(--ink);
  border-radius: 4px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rankreceipt .wi-fields {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
}
.rankreceipt .wi-fields label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.rankreceipt .wi-out {
  margin: 0;
  font-family: var(--mono);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
}
.rankreceipt .wi-out s {
  font-size: 14px;
  color: var(--muted);
}
.rankreceipt .wi-out b {
  font-size: 22px;
  font-weight: 600;
}
.rankreceipt .wi-out em {
  font-style: normal;
  font-size: 13px;
}
.rankreceipt .topn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}
.rankreceipt .topn select {
  width: auto;
  min-height: 32px;
  padding: 2px 24px 2px 8px;
  font: 500 12px var(--mono);
}
.rankreceipt .score {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rankreceipt #pass-n {
  font-weight: 700;
  font-size: 72px;
  line-height: 0.9;
  letter-spacing: -0.04em;
}
.rankreceipt .of {
  font-weight: 700;
  font-size: 36px;
  color: var(--muted);
  letter-spacing: -0.03em;
}
.rankreceipt .score-note {
  font-size: 15px;
  color: var(--muted);
}
.rankreceipt .tlist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rankreceipt .tlist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px 52px 32px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--soft);
  font-size: 15px;
}
.rankreceipt .tlist li.fail {
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}
.rankreceipt .tlist li button.q {
  text-align: left;
  background: none;
  border: 0;
  padding: 4px 0;
  cursor: pointer;
  overflow-wrap: anywhere;
  min-height: 32px;
}
.rankreceipt .tlist li button.q:hover {
  text-decoration: underline;
}
.rankreceipt .tlist li span {
  font: 500 13px var(--mono);
}
.rankreceipt .tlist li button.rm {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.rankreceipt .tlist li button.rm:hover {
  background: var(--line);
}
.rankreceipt .tlist li.fail button.rm:hover {
  background: #333;
}
.rankreceipt .note {
  background: var(--soft);
  border-radius: 4px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.45;
}
.rankreceipt .note code {
  font: 500 13px var(--mono);
}
.rankreceipt .note .btn {
  margin-top: 10px;
  min-height: 40px;
  font-size: 14px;
}
.rankreceipt .test-form {
  display: grid;
  gap: 8px;
}
.rankreceipt .about {
  background: var(--paper);
  padding: 72px 28px;
}
.rankreceipt .about-inner {
  max-width: 1240px;
  margin: 0 auto;
}
.rankreceipt .about h2 {
  margin: 0 0 40px;
  font-weight: 700;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  max-width: 14ch;
}
.rankreceipt .about h3 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 700;
}
.rankreceipt .about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 44px;
}
.rankreceipt .about-grid p {
  margin: 0 0 22px;
}
.rankreceipt .steps {
  margin: 0;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rankreceipt .rules {
  width: 100%;
  border-collapse: collapse;
  font: 400 13px/1.5 var(--mono);
}
.rankreceipt .rules td {
  padding: 7px 8px;
  vertical-align: top;
}
.rankreceipt .rules tr:nth-child(odd) td {
  background: var(--soft);
}
.rankreceipt .rules td:last-child {
  text-align: right;
  white-space: nowrap;
  padding-left: 12px;
}
.rankreceipt .foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 22px 28px;
  background: var(--ink);
  color: #c9c9c6;
  font-size: 14px;
}
.rankreceipt .foot p {
  margin: 0;
}
.rankreceipt .foot a {
  color: var(--paper);
}
.rankreceipt dialog {
  border: 0;
  padding: 0;
  border-radius: 6px;
  background: var(--paper);
  width: min(640px, calc(100vw - 32px));
  box-shadow: 0 30px 80px #00000059;
}
.rankreceipt dialog::backdrop {
  background: #1111118c;
}
.rankreceipt .load {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.rankreceipt .load-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.rankreceipt .load-head h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: -0.02em;
}
.rankreceipt .x {
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 28px;
  cursor: pointer;
  border-radius: 4px;
}
.rankreceipt .x:hover {
  background: var(--soft);
}
.rankreceipt .drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 30px 16px;
  border: 2px dashed var(--ink);
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  background: var(--soft);
}
.rankreceipt .drop.over {
  background: var(--line);
}
.rankreceipt .drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.rankreceipt .drop-big {
  font-weight: 600;
  font-size: 18px;
}
.rankreceipt .paste {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}
.rankreceipt .paste textarea {
  font: 400 13px/1.5 var(--mono);
  resize: vertical;
}
.rankreceipt .err {
  margin: 0;
  color: #8a1a0e;
  font-weight: 600;
  min-height: 1em;
}
@media (max-width: 1100px) {
  .rankreceipt .top {
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 10px 14px;
  }
  .rankreceipt .top-note {
    display: none;
  }
  .rankreceipt .top-actions {
    margin-left: auto;
  }
  .rankreceipt .chip {
    order: 3;
    flex-basis: 100%;
    max-width: none;
    text-align: left;
  }
  .rankreceipt .tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 12px 16px 0;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 5;
  }
  .rankreceipt .tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 4px;
    background: var(--rail);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
  }
  .rankreceipt .tabs button[aria-pressed="true"] {
    background: var(--ink);
    color: var(--paper);
  }
  .rankreceipt .app {
    display: block;
    min-height: 0;
  }
  .rankreceipt .panel {
    display: none;
  }
  .rankreceipt .app[data-tab="rules"] .rail,
  .rankreceipt .app[data-tab="search"] .center,
  .rankreceipt .app[data-tab="tests"] .tests {
    display: flex;
  }
  .rankreceipt .rail,
  .rankreceipt .tests {
    padding: 20px 16px 40px;
  }
  .rankreceipt .center {
    padding: 16px 16px 40px;
  }
  .rankreceipt .about {
    padding: 48px 16px;
  }
  .rankreceipt .about-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rankreceipt .foot {
    padding: 20px 16px;
  }
}
@media (max-width: 760px) {
  .rankreceipt .brand {
    font-size: 20px;
    gap: 7px;
  }
  .rankreceipt .brand .tool-mark {
    width: 17px;
    height: 17px;
  }
  .rankreceipt .top-actions .btn {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }
  .rankreceipt .search input {
    min-height: 54px;
    font-size: 20px;
    padding: 0 14px;
  }
  .rankreceipt .results {
    grid-template-columns: 1fr;
  }
  .rankreceipt .rc-rank {
    font-size: 52px;
  }
  .rankreceipt .wi-fields {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rankreceipt *,
  .rankreceipt *:before,
  .rankreceipt *:after {
    animation: none !important;
    transition: none !important;
  }
}

.rankreceipt [hidden] {
  display: none !important;
}
.rankreceipt .no-script {
  padding: 24px;
}
