:root {
  color-scheme: dark;
  --bg: #101112;
  --panel: #161719;
  --well: #111214;
  --line: #333538;
  --soft: #25272a;
  --text: #f1f2f0;
  --sub: #a8abae;
  --muted: #909499;
  --logo: #fff;
  --button: #ebedeb;
  --buttontext: #151618;
  --green: #79c59d;
  --grid: rgba(210, 215, 215, 0.07);
  --halo: #252729;
  --mono: Consolas, "Courier New", monospace;
  --display: Impact, Haettenschweiler, "Arial Narrow", sans-serif;
}
.account .sectionhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account .sectionhead h1 {
  margin: 0;
}
.account section {
  margin-top: 28px;
}
.account-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.account-row span {
  min-width: 0;
  flex: 1;
}
.account-row small {
  display: block;
  color: var(--sub);
  overflow-wrap: anywhere;
}
.account-row time {
  color: var(--sub);
  font-size: 12px;
}
.account-save {
  padding: 10px 0;
}
@media (max-width: 600px) {
  .account-row {
    flex-wrap: wrap;
  }
  .account-row time {
    width: 100%;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f7f5;
  --panel: #fff;
  --well: #f6f6f3;
  --line: #d0d1ce;
  --soft: #e4e5e2;
  --text: #171819;
  --sub: #54595a;
  --muted: #606668;
  --logo: #000;
  --button: #202222;
  --buttontext: #fff;
  --green: #247242;
  --grid: rgba(40, 45, 40, 0.09);
  --halo: #e2e3de;
}
* {
  box-sizing: border-box;
}
html {
  scrollbar-gutter: stable;
}
.account-control {
  position: relative;
  display: flex;
  align-items: center;
}
.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 50;
  width: min(250px, calc(100vw - 28px));
  padding: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}
.account-menu b {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
}
.account-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 5px;
}
.account-menu button:hover,
.account-menu button:focus-visible {
  background: var(--soft);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
}
button:active {
  transform: translateY(1px);
}
a,
button {
  transition:
    background-color 0.15s,
    color 0.15s;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.skull {
  display: inline-block;
  width: 52px;
  height: 52px;
  flex: none;
  color: var(--logo);
  background-color: currentColor;
  mask: url(../assets/skull-theme.svg) center / contain no-repeat;
}
.bar,
#main,
#guide.invite,
.footerbase,
.notice {
  width: min(calc(100% - 80px), 1240px);
  margin-inline: auto;
}
#header {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.bar,
.tools,
.brand,
nav,
.assist-trigger,
.tool,
.breadcrumb,
.breadcrumb > span,
.eyebrow,
.sectionhead,
.sectionhead a,
.formmeta,
.formmeta span,
.historyrow,
.actions,
.tourhead,
.dialoghead,
.empty,
.footerbase,
.notice,
.notice span,
.mono,
.addressline,
.reporthead,
.token-heading,
.reportsection h3,
.paste {
  display: flex;
  align-items: center;
}
.bar {
  min-height: 74px;
  gap: clamp(22px, 4.5vw, 72px);
}
.brand {
  gap: 4px;
  white-space: nowrap;
  text-decoration: none;
  font-size: 20px;
  letter-spacing: -0.85px;
}
.brand .skull {
  width: 42px;
  height: 42px;
  margin-left: -8px;
}
nav {
  align-self: stretch;
  gap: clamp(16px, 2.4vw, 38px);
}
nav a {
  display: grid;
  place-items: center;
  text-decoration: none;
  font-weight: 550;
  font-size: 14px;
  color: var(--sub);
  position: relative;
}
nav a[aria-current] {
  color: var(--text);
}
nav a[aria-current]:after {
  content: "";
  height: 2px;
  background: var(--text);
  position: absolute;
  bottom: -1px;
  inset-inline: 0;
}
.tools {
  margin-left: auto;
  gap: 6px;
}
.tool,
.iconbutton {
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  text-decoration: none;
}
.lang {
  width: auto;
  font: 12px var(--mono);
  gap: 6px;
  padding: 0 8px;
}
.assist-trigger,
.secondary,
.support-actions button,
[data-copy-support] {
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 13px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 550;
}
.assist-trigger {
  gap: 8px;
  margin-left: 6px;
}
.tool:hover,
.secondary:hover,
.paste:hover,
.assist-trigger:hover,
.questions button:hover,
.historyrow:hover,
nav a:hover {
  background: var(--soft);
  color: var(--text);
}
.mobile-menu {
  display: none;
}
#main {
  min-height: 55vh;
  outline: 0;
}
.breadcrumb {
  justify-content: space-between;
  padding: 27px 0 20px;
}
.breadcrumb > span,
.mono {
  gap: 10px;
  font: 12px var(--mono);
  color: var(--muted);
}
.breadcrumb strong {
  color: var(--text);
  font-weight: 400;
}
.breadcrumb i {
  font-style: normal;
}
.breadcrumb .icon {
  width: 15px;
}
.breadcrumb .network {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 9px;
  font-size: 11px;
  color: var(--sub);
}
.network i {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}
.console {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 32%);
  position: relative;
  min-height: 255px;
}
.herocopy {
  padding: 34px clamp(20px, 3.3vw, 48px) 30px;
  align-self: center;
}
.eyebrow,
.mono,
.formmeta,
.module small,
.reporthead small,
.sectionhead > a,
.network,
.primary,
.breadcrumb {
  font-family: var(--mono);
}
.eyebrow {
  text-transform: uppercase;
  color: var(--sub);
  font-size: 11px;
  letter-spacing: 1.8px;
  gap: 9px;
  font-weight: bold;
}
.scanmini {
  width: 21px;
  height: 12px;
  display: inline-block;
  background: repeating-linear-gradient(
    120deg,
    var(--text) 0 2px,
    transparent 2px 5px
  );
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1 {
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero h1 {
  font: clamp(66px, 7.5vw, 112px)/1.02 var(--display);
  font-weight: 400;
  letter-spacing: -0.012em;
  word-spacing: 0.04em;
  margin: 10px 0 11px;
}
.herocopy p {
  color: var(--sub);
  font-size: 15px;
  line-height: 1.65;
  max-width: 510px;
}
.visual {
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background-size: 26px 26px;
  background-position: center;
}
.visual .skull {
  width: clamp(165px, 16vw, 232px);
  height: auto;
  aspect-ratio: 1;
}
#scanform {
  padding: 24px clamp(20px, 3.3vw, 48px) 21px;
  border-top: 1px solid var(--line);
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}
.entry {
  display: flex;
  gap: 10px;
}
.inputwrap,
.amount {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inputwrap {
  padding: 0 10px 0 16px;
  min-width: 0;
  flex: 1;
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
}
.inputwrap:focus-within {
  border-color: var(--sub);
}
input:not([type="checkbox"], [type="range"]),
textarea {
  background: var(--well);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px;
  min-width: 0;
}
.inputwrap #mint {
  border: 0;
  background: transparent;
  height: 50px;
  outline: 0;
  flex: 1;
  width: 100%;
  padding: 0;
  font: 14px var(--mono);
  color: var(--text);
}
input::placeholder {
  color: var(--muted);
}
.paste {
  padding: 5px 8px;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: 12px var(--mono);
  color: var(--sub);
}
.paste .icon,
.formmeta .icon {
  width: 14px;
  height: 14px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border-radius: 4px;
  background: var(--button);
  color: var(--buttontext);
  padding: 12px 23px;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.primary:hover {
  opacity: 0.86;
}
.formmeta {
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  gap: 10px;
}
.formmeta span {
  gap: 6px;
}
.formmeta i {
  font-style: normal;
}
.error {
  color: #e8867a;
}
html[data-theme="light"] .error {
  color: #a83129;
}
#status:not(:empty) {
  padding-top: 12px;
}
.modules,
.history {
  margin-top: 28px;
}
.sectionhead {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.7px;
}
.sectionhead > a,
.sectionhead .mono {
  font-size: 11px;
  text-decoration: none;
  gap: 6px;
  color: var(--sub);
}
.sectionhead > a:hover {
  text-decoration: underline;
}
.sectionhead .icon {
  width: 14px;
  height: 14px;
}
.modulelist {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 7px;
  overflow: hidden;
}
.module {
  padding: 20px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  background: var(--panel);
  border-right: 1px solid var(--line);
}
.module:last-child {
  border-right: 0;
}
.module:hover {
  background: var(--soft);
}
.module > .icon {
  width: 24px;
  height: 24px;
  margin-bottom: 16px;
}
.module b {
  font-size: 15px;
  letter-spacing: -0.3px;
}
.module small {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  gap: 10px;
  padding: 19px 0;
  color: var(--muted);
  font-size: 13px;
  border-block: 1px solid var(--soft);
}
.historyrow {
  width: 100%;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 12px 4px;
  text-align: left;
}
.historyrow time {
  margin-left: auto;
}
.historyrow code,
.historyrow time {
  color: var(--muted);
  font-size: 12px;
}
.invite {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-block: 24px;
  padding: 15px 20px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.invite-icon {
  display: grid;
  place-items: center;
  background: var(--soft);
  width: 37px;
  height: 37px;
  border-radius: 5px;
}
.invite small {
  display: block;
  color: var(--sub);
  font-size: 13px;
}
.invite .actions {
  margin-left: auto;
}
.actions {
  gap: 8px;
  flex-wrap: wrap;
}
.quiet {
  color: var(--sub);
  font-size: 13px;
}
.footerbase {
  border-top: 1px solid var(--line);
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  padding: 20px 0;
  gap: 16px;
}
.footerbase div {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footerbase a,
.notice a {
  text-decoration: none;
}
.footerbase a:hover,
.notice a:hover {
  text-decoration: underline;
}
footer {
  margin-top: 32px;
}
.notice {
  border-top: 1px solid var(--line);
  gap: 12px;
  padding: 12px 0 20px;
  font-size: 12px;
  color: var(--sub);
}
.notice span {
  gap: 8px;
  margin-right: auto;
}
.notice a {
  text-decoration: underline;
}
.notice button {
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 4px;
}
.article {
  max-width: 880px;
  margin: 40px auto;
  overflow-wrap: anywhere;
}
.article .article {
  margin: 0;
}
.article h1 {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 720;
}
.article .lead {
  font-size: 18px;
  max-width: 680px;
}
.article p,
.report p,
.tourbox p {
  color: var(--sub);
  margin: 10px 0 16px;
  line-height: 1.65;
}
.article section,
.reportsection {
  padding: 22px 0;
  border-top: 1px solid var(--line);
  margin-top: 20px;
}
.article section h2 {
  margin-bottom: 12px;
}
.article details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.article summary {
  font-weight: 600;
  cursor: pointer;
}
.article textarea {
  display: block;
  width: 100%;
  margin: 10px 0 14px;
}
.support-actions {
  margin-bottom: 16px;
}
.token-heading {
  gap: 14px;
}
.token-icon {
  border-radius: 8px;
  background: #fff;
  display: grid;
  place-items: center;
}
.token-fixed {
  color: #000;
  width: 100px;
  height: 100px;
}
.about-logo {
  width: 76px;
  height: 76px;
  margin-left: -13px;
}
.facts {
  margin: 12px 0;
}
.facts > div,
.setting {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 1px solid var(--soft);
  gap: 18px;
  padding: 8px 0;
}
.facts dt {
  color: var(--sub);
}
.facts dd {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 14px;
}
.setting {
  padding-block: 14px;
}
.setting input {
  accent-color: var(--text);
  width: 16px;
  height: 16px;
}
.report {
  margin: 30px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(16px, 3vw, 36px);
  background: var(--panel);
  animation: show 0.2s;
}
.reporthead {
  justify-content: space-between;
  gap: 12px;
}
.reporthead img {
  border-radius: 5px;
  object-fit: contain;
}
.reporthead small,
.addressline {
  font-size: 12px;
  color: var(--sub);
}
.reporthead h2 {
  margin-top: 5px;
}
.addressline {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.addressline code {
  overflow-wrap: anywhere;
}
.reportsection {
  padding-bottom: 0;
}
.reportsection h3 {
  gap: 10px;
}
.tablewrap {
  overflow-x: auto;
}
table {
  min-width: 100%;
  border-collapse: collapse;
  font: 13px var(--mono);
  white-space: nowrap;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 9px;
}
th {
  color: var(--sub);
}
meter {
  accent-color: var(--sub);
}
.level {
  font: 13px var(--mono);
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 3px;
}
.l-critical,
.l-high {
  color: #df8d80;
}
.l-elevated,
.l-moderate {
  color: #caaf73;
}
.l-low {
  color: var(--green);
}
html[data-theme="light"] .l-high,
html[data-theme="light"] .l-critical {
  color: #a04030;
}
html[data-theme="light"] .l-elevated,
html[data-theme="light"] .l-moderate {
  color: #7a5b16;
}
.amount input {
  max-width: 48%;
}
.report label {
  margin-top: 12px;
}
dialog,
.tourbox {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  max-width: calc(100% - 24px);
  width: 420px;
}
dialog {
  margin: auto 16px 16px auto;
  max-height: 85dvh;
}
dialog::backdrop {
  background: #0006;
}
.dialoghead,
.tourhead {
  gap: 8px;
  margin-bottom: 12px;
}
.dialoghead .skull,
.tourhead .skull {
  width: 36px;
  height: 36px;
}
.dialoghead button,
.tourhead button {
  margin-left: auto;
}
.questions {
  display: grid;
}
.questions button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 13px;
  padding: 10px 4px;
  border-top: 1px solid var(--line);
}
#askform {
  display: flex;
  gap: 8px;
}
#askform input {
  flex: 1;
  width: 0;
}
#reply:not(:empty) {
  margin: 12px 0;
}
.tourbox {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 5;
}
.target {
  outline: 2px dashed var(--sub);
  outline-offset: -3px;
}
.tourhead small {
  font-family: var(--mono);
}
@keyframes show {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 960px) {
  .bar,
  #main,
  #guide.invite,
  .footerbase,
  .notice {
    width: calc(100% - 40px);
  }
  .bar {
    gap: 22px;
  }
  .tools {
    gap: 2px;
  }
  nav {
    gap: 16px;
  }
  .assist-trigger span {
    display: none;
  }
  .module {
    padding: 16px 12px;
  }
  .hero {
    min-height: 235px;
  }
  .bar {
    min-height: 66px;
  }
}
@media (max-width: 760px) {
  .bar {
    min-height: 60px;
    flex-wrap: wrap;
    position: relative;
    gap: 0;
  }
  .bar nav {
    display: none;
  }
  .bar nav.opened {
    display: flex;
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  nav a {
    padding: 12px;
  }
  .mobile-menu {
    display: flex;
  }
  .brand {
    font-size: 18px;
  }
  .assist-trigger {
    background: none;
    border: 0;
    padding: 8px;
    margin: 0;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr) 24%;
    min-height: 200px;
  }
  .herocopy {
    padding: 24px 20px;
  }
  .hero h1 {
    font-size: clamp(48px, 8.9vw, 72px);
  }
  .herocopy p {
    font-size: 14px;
  }
  .visual .skull {
    width: 100%;
  }
  .modulelist {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .module {
    border-bottom: 1px solid var(--line);
  }
  .module:nth-child(3) {
    border-right: 0;
  }
  .module:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
  .invite {
    flex-wrap: wrap;
  }
  .footerbase {
    align-items: flex-start;
  }
  .footerbase div {
    gap: 8px 14px;
  }
  .notice {
    flex-wrap: wrap;
  }
  .entry {
    flex-wrap: wrap;
  }
  .entry > .primary {
    padding: 10px 14px;
  }
  .modulelist {
    background: var(--panel);
  }
}
@media (max-width: 520px) {
  .bar,
  #main,
  #guide.invite,
  .footerbase,
  .notice {
    width: calc(100% - 28px);
  }
  .brand {
    font-size: 16px;
  }
  .brand .skull {
    width: 32px;
    height: 32px;
    margin-left: -4px;
  }
  .tool {
    width: 32px;
  }
  .tools .lang {
    font-size: 11px;
  }
  .lang .icon {
    display: none;
  }
  .bar {
    min-height: 54px;
  }
  .breadcrumb {
    padding: 16px 0;
  }
  .hero {
    display: block;
    min-height: 0;
  }
  .herocopy {
    padding: 22px 17px 20px;
  }
  .hero h1 {
    font-size: clamp(43px, 11vw, 66px);
    margin: 9px 0 12px;
    width: 78%;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .visual {
    position: absolute;
    right: 13px;
    top: 16px;
    width: 18%;
    aspect-ratio: 1;
    background-size: 13px 13px;
  }
  .herocopy p {
    line-height: 1.5;
  }
  .entry {
    display: grid;
    grid-template-columns: 1fr;
  }
  .entry .primary {
    min-height: 43px;
  }
  .inputwrap {
    padding-left: 10px;
    gap: 7px;
  }
  .inputwrap #mint {
    font-size: 12px;
    height: 46px;
  }
  .paste {
    padding: 6px;
  }
  .paste span {
    display: none;
  }
  #scanform {
    padding: 17px;
  }
  .formmeta {
    font-size: 10px;
    gap: 6px;
  }
  .sectionhead h2 {
    font-size: 19px;
  }
  .modulelist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .module:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .module:nth-child(even) {
    border-right: 0;
  }
  .module:nth-child(4) {
    border-bottom: 1px solid var(--line);
  }
  .module:last-child {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 26px 1fr;
    gap: 0 10px;
    align-items: center;
  }
  .module:last-child .icon {
    grid-row: span 2;
    margin: 0;
  }
  .module > .icon {
    margin-bottom: 9px;
  }
  .module {
    padding: 14px;
  }
  .module small {
    font-size: 10px;
  }
  .invite {
    padding: 13px;
  }
  .invite .actions {
    margin: 0;
  }
  .footerbase {
    display: block;
  }
  .footerbase div {
    margin-top: 9px;
  }
  .historyrow {
    flex-wrap: wrap;
    gap: 8px;
  }
  .historyrow time {
    font-size: 10px;
  }
  .reporthead,
  .amount {
    flex-wrap: wrap;
  }
  dialog,
  .tourbox {
    right: 0;
    bottom: 0;
    margin: 0 12px 12px auto;
  }
  .tourbox {
    right: 12px;
  }
  .facts dd {
    max-width: 65%;
    overflow-wrap: anywhere;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* The language wheel is positioned beside its actual trigger. */
#language-picker {
  position: fixed;
  inset: auto;
  margin: 0;
  width: 220px;
  height: 220px;
  padding: 20px;
  overflow: hidden;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: 0 10px 32px #0003;
}
#language-picker::backdrop {
  background: transparent;
}
#language-picker::before,
#language-picker::after {
  content: "";
  position: absolute;
  pointer-events: none;
  background: var(--line);
}
#language-picker::before {
  width: 1px;
  inset: 14px auto 14px 50%;
}
#language-picker::after {
  height: 1px;
  inset: 50% 14px auto 14px;
}
.language-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}
.language-options button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  position: relative;
}
.language-options button:hover {
  background: var(--soft);
}
.language-options [aria-pressed="true"] .flag {
  box-shadow:
    0 0 0 3px var(--panel),
    0 0 0 4px var(--text);
}
.language-options b {
  font: 11px var(--mono);
}
.flag {
  width: 34px;
  height: 34px;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px #8884;
  transition: transform 180ms ease;
}
.flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.language-options button:hover .flag,
.language-options button:focus-visible .flag {
  transform: scale(1.12);
}
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition:
    background-color 380ms ease,
    color 380ms ease,
    border-color 380ms ease,
    box-shadow 380ms ease !important;
}
.article-section {
  scroll-margin-top: 28px;
  border-radius: 6px;
}
.article-section:focus {
  outline: none;
}
.section-highlight {
  animation: section-arrival 3.2s ease-out;
}
@keyframes section-arrival {
  0%,
  65% {
    background: var(--soft);
    box-shadow:
      0 0 0 12px var(--soft),
      -15px 0 0 0 var(--text);
  }
  100% {
    background: transparent;
    box-shadow:
      0 0 0 12px transparent,
      -15px 0 0 0 transparent;
  }
}
.module-learn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--sub);
}
.module-learn .icon {
  width: 13px;
  height: 13px;
}
.module:hover .module-learn {
  color: var(--text);
}
.input-help {
  margin-top: 10px;
  font-size: 12px;
  color: var(--sub);
}
.notice {
  position: fixed;
  z-index: 8;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  width: 360px;
  max-width: calc(100% - 36px);
  margin: 0;
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: 0 8px 32px #0003;
}
.notice span {
  flex-basis: 100%;
  align-items: flex-start;
  line-height: 1.5;
}
.notice .icon {
  margin-top: 2px;
  width: 15px;
}
.notice > button {
  margin-left: auto;
  background: var(--button);
  color: var(--buttontext);
  border-color: var(--button);
}
body:has(.tourbox) .notice {
  visibility: hidden;
}
@media (max-width: 520px) {
  .module:last-child .module-learn {
    grid-column: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  .theme-switching,
  .theme-switching *,
  .theme-switching *::before,
  .theme-switching *::after {
    transition-duration: 0.001ms !important;
  }
  .flag {
    transition: none;
  }
  .section-highlight {
    animation: none !important;
    background: var(--soft);
    box-shadow: -3px 0 var(--text);
  }
}

.reason {
  display: block;
  margin-top: 4px;
  color: var(--sub);
  font:
    12px/1.5 "Segoe UI",
    Arial,
    sans-serif;
  max-width: 340px;
}
.market-context {
  font-size: 12px;
}

.chain-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.chain-choice label {
  margin: 0;
}
.chain-choice select {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 36px 10px 12px;
  font: inherit;
  max-width: 100%;
}
#quote-amount {
  max-width: 100%;
  min-width: 0;
}

#market-choice {
  display: block;
  max-width: 100%;
  padding: 10px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  margin: 8px 0 20px;
  font: inherit;
}
/* Compact analysis workspace. Keep readable text and touch targets. */
.hero {
  min-height: 0;
  padding: 22px 24px;
  gap: 18px;
}
.herocopy {
  padding: 0;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  margin: 8px 0;
}
.herocopy p {
  font-size: 13px;
  margin: 10px 0 0;
  max-width: 650px;
}
.visual {
  padding: 0;
  min-height: 0;
  width: 100px;
  flex: 0 0 100px;
}
.visual .skull {
  width: 76px;
  height: 82px;
}
#scanform {
  padding: 18px 24px;
}
.chain-choice {
  margin-bottom: 10px;
}
.modules,
.history {
  margin-top: 20px;
}
.module {
  padding: 12px;
  gap: 5px;
  min-height: 0;
}
.module-learn {
  display: none;
}
.module > .icon {
  width: 18px;
  height: 18px;
}
.report {
  padding: 18px;
  margin: 20px 0;
}
.reportsection {
  margin-top: 14px;
  padding-top: 14px;
}
.report p {
  font-size: 13px;
  margin: 10px 0;
}
.reporthead h2 {
  font-size: 20px;
}
.addressline {
  margin-top: 9px;
}
.facts {
  margin: 8px 0;
}
.facts > div {
  padding: 6px 0;
  gap: 12px;
}
.facts dd {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.facts dd small {
  display: block;
  color: var(--sub);
  font: 11px var(--mono);
}
.compact-section {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  margin-top: 10px;
  min-width: 0;
}
.compact-section > summary {
  padding: 13px 14px;
  cursor: pointer;
  font-weight: 650;
  min-height: 44px;
}
.compact-section > summary .icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}
.compact-section[open] {
  padding: 0 14px 12px;
}
.compact-section[open] > summary {
  margin: 0 -14px 10px;
  border-bottom: 1px solid var(--line);
}
.risk-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.risk-tile {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px;
  text-decoration: none;
  min-width: 0;
}
.risk-tile strong {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.risk-tile span {
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  color: var(--sub);
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 8px;
}
.metric-grid > div {
  background: var(--well);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 5px;
}
.metric-grid b,
.metric-grid small {
  display: block;
}
.metric-grid b {
  font: 600 20px var(--mono);
  margin: 6px 0;
}
.metric-grid small,
.micro {
  color: var(--sub);
  font-size: 11px !important;
}
.coverage {
  font-size: 12px;
  color: var(--sub);
}
.coverage summary {
  cursor: pointer;
  padding: 8px 0;
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
  align-items: start;
}
.advanced-grid details:first-child {
  grid-column: 1 / -1;
}
.scenario-tools {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 10px;
}
.scenario-tools label {
  font-size: 12px;
}
.scenario-tools input,
#compare-usd {
  max-width: 140px;
  padding: 8px;
  min-width: 0;
}
.impact-chart {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 180px;
  margin: 12px 0;
  color: var(--text);
}
#watch-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  margin-top: 18px;
}
.watch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.watch-row small {
  color: var(--sub);
}
#report-comparePools td span {
  display: block;
  max-width: 230px;
  white-space: normal;
  font-size: 11px;
  padding-top: 5px;
}
@media (max-width: 850px) {
  .risk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .advanced-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 18px;
  }
  .visual {
    width: 76px;
    flex-basis: 76px;
  }
  .visual .skull {
    width: 60px;
    height: 65px;
  }
}
@media (max-width: 520px) {
  .hero {
    padding: 16px;
    display: flex;
  }
  .herocopy {
    width: auto;
    flex: 1;
    min-width: 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .visual {
    display: flex;
    position: static;
    transform: none;
    width: 50px;
    flex-basis: 50px;
  }
  .visual .skull {
    width: 45px;
    height: 49px;
  }
  .risk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .metric-grid {
    grid-template-columns: 1fr;
  }
  .metric-grid > div {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px;
  }
  .metric-grid b {
    font-size: 18px;
  }
  .report {
    padding: 12px;
  }
  .modulelist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #scanform {
    padding: 14px;
  }
  .report-summary .sectionhead {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .compact-section > summary {
    font-size: 13px;
  }
  .impact-chart {
    height: 150px;
  }
}
