:root {
  color-scheme: dark;
  --bg: var(--tone-10141c);
  --panel: var(--tone-181e29);
  --panel-soft: var(--tone-141a24);
  --gold: var(--tone-d6bf91);
  --ivory: var(--tone-f1ede4);
  --muted: var(--tone-b0b6c2);
  --line: var(--tone-353c49);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ivory);
  background: var(--bg);
  font-synthesis: none;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 32px;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
select,
input {
  font: inherit;
  color: inherit;
}
button,
select {
  cursor: pointer;
}
button,
select,
input {
  border: 1px solid var(--tone-606674);
  border-radius: 6px;
  background: var(--tone-1c2330);
  padding: 12px 16px;
  min-height: 44px;
  max-width: 100%;
}
button {
  transition:
    background 0.2s,
    border-color 0.2s;
  font-size: 13px;
}
button:hover {
  background: var(--tone-30323a);
  border-color: var(--gold);
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--tone-f3d79c);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 14px;
  background: var(--ivory);
  color: var(--bg);
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 236px;
  padding: 38px 24px 24px;
  border-right: 1px solid var(--line);
  background: var(--tone-10141c);
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 1.5px;
  white-space: nowrap;
}
.brand picture {
  width: 45px;
  flex: none;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: var(--gold);
  margin-top: 4px;
}
.nav-caption {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 64px 0 16px 14px;
}
nav {
  display: grid;
  gap: 6px;
}
nav a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  text-decoration: none;
  font-size: 12px;
  color: var(--tone-b9bec8);
  border: 1px solid transparent;
  border-radius: 5px;
}
nav a > span:first-child {
  color: var(--tone-bba67f);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
nav a:hover,
nav a[aria-current] {
  background: var(--tone-23252b);
  color: var(--ivory);
  border-color: var(--tone-4a4439);
}
.sidebar-note {
  margin-top: auto;
  padding: 32px 10px 0;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-note small {
  display: block;
  font-size: 9px;
  padding-top: 6px;
}
.status-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
  display: inline-block;
  flex: none;
  margin-right: 7px;
}
.workspace {
  margin-left: 236px;
  padding: 0 clamp(24px, 3.5vw, 64px);
  max-width: 1640px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100px;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: var(--gold);
}
.breadcrumb > span {
  margin-left: 12px;
  color: var(--muted);
  letter-spacing: 0.3px;
}
.topbar-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}
.identity {
  display: flex;
  align-items: center;
  gap: 4px;
}
.avatar {
  color: var(--gold);
  font-size: 20px;
  margin-right: 4px;
}
.identity select,
#language {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
}
#language {
  border-left-color: var(--line);
  border-radius: 0;
}
main {
  padding-bottom: 50px;
}
section[id] {
  scroll-margin-top: 30px;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  min-height: 352px;
  gap: 18px;
  padding: 36px 0 30px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 2.6px;
  color: var(--gold);
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(40px, 4.1vw, 64px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin: 24px 0 20px;
}
h2 {
  font-size: clamp(26px, 2.5vw, 34px);
  line-height: 1.2;
  margin: 12px 0 18px;
}
h3 {
  font-size: 25px;
  line-height: 1.25;
}
p {
  color: var(--muted);
  font-size: 13px;
}
.intro {
  max-width: 410px;
  line-height: 1.8;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 10px;
  margin-top: 30px;
}
.fine-line {
  width: 32px;
  height: 1px;
  background: var(--gold);
}
.hero-art {
  position: relative;
  height: 300px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-art::before {
  content: "";
  position: absolute;
  inset: 24px;
  background: radial-gradient(ellipse, var(--tone-c4a56512), transparent 65%);
}
.hero-art picture {
  width: min(75%, 265px);
  z-index: 1;
}
.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}
.arch {
  position: absolute;
  border: 1px solid var(--tone-d6bf912b);
  border-bottom: 0;
  width: 200px;
  height: 252px;
  border-radius: 110px 110px 0 0;
  transform: rotate(24deg);
}
.arch-two {
  width: 245px;
  height: 290px;
  border-color: var(--tone-d6bf9114);
  transform: rotate(-20deg);
}
.art-orbit {
  position: absolute;
  width: 285px;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--tone-d6bf9155),
    transparent
  );
  bottom: 20px;
}
.art-caption {
  position: absolute;
  bottom: 0;
  font-size: 7px;
  letter-spacing: 2px;
  color: var(--muted);
}
.balance-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.balance {
  position: relative;
  padding: 30px 34px;
  border: 1px solid var(--tone-69604d);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 100% 0%, var(--tone-7f6b3e22), transparent 65%),
    linear-gradient(125deg, var(--tone-202836), var(--tone-161d29));
  overflow: hidden;
}
.balance::after {
  content: "";
  position: absolute;
  right: -84px;
  top: -74px;
  width: 270px;
  height: 270px;
  border: 1px solid var(--tone-bfa46c18);
  transform: rotate(35deg);
  pointer-events: none;
}
.card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--tone-e0cfaa);
}
.pill {
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--tone-6c6556);
  padding: 5px 9px;
  border-radius: 4px;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--gold);
}
.amount {
  font-family: Georgia, serif;
  font-size: clamp(64px, 6vw, 84px);
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 24px 0 4px;
  overflow-wrap: anywhere;
}
.amount small {
  font-family: sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--gold);
  margin-left: 14px;
}
.balance p {
  font-size: 11px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--tone-444851);
}
.metrics div {
  display: grid;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.metrics strong {
  color: var(--ivory);
  font-size: 16px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.intent-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--tone-141b27);
  overflow: hidden;
}
.intent-card h2 {
  max-width: 230px;
  margin-top: 24px;
}
.intent-card p {
  max-width: 260px;
  font-size: 12px;
}
.text-link {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  font-size: 11px;
  color: var(--tone-e2cda5);
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--tone-68604e);
  min-height: 44px;
}
.text-link:hover {
  color: var(--tone-fff0ce);
}
.intent-lines {
  position: absolute;
  right: -24px;
  bottom: -28px;
  transform: rotate(-25deg);
  pointer-events: none;
  display: flex;
  gap: 15px;
  opacity: 0.3;
}
.intent-lines i {
  display: block;
  width: 14px;
  height: 115px;
  border: 1px solid var(--tone-c7a974);
}
.intent-lines i:nth-child(2) {
  height: 150px;
}
.intent-lines i:nth-child(3) {
  height: 185px;
}
.intent-lines i:nth-child(4) {
  height: 220px;
}
.disclosure {
  display: flex;
  gap: 3px;
  align-items: baseline;
  margin: 18px 0 0;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.feedback {
  position: sticky;
  top: 12px;
  z-index: 8;
  width: fit-content;
  max-width: 100%;
  background: var(--tone-29303d);
  border-radius: 6px;
}
#status:not(:empty) {
  padding: 14px 18px;
  border: 1px solid var(--tone-7c6a4e);
  border-radius: 6px;
  font-size: 12px;
  color: var(--tone-f3dfb9);
}
#retry {
  margin: 0 12px 12px;
}
.section-block {
  margin-top: 60px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin: 0 0 24px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > span {
  color: var(--muted);
  font-size: 10px;
  text-align: right;
  max-width: 200px;
}
.section-number {
  font-family: Georgia, serif;
  font-size: 23px !important;
  color: var(--gold) !important;
  white-space: nowrap;
}
.creation-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.55fr 1fr;
  gap: 24px;
  margin-top: 48px;
  padding: 34px;
  border: 1px solid var(--tone-5c5446);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 48% 30%, var(--tone-87714912), transparent 55%),
    var(--tone-181e28);
  position: relative;
  overflow: hidden;
}
.creation-copy h2 {
  font-size: 34px;
}
.creation-copy p,
.creation-note {
  font-size: 11px;
  color: var(--muted);
}
.creation-controls {
  display: grid;
  align-content: start;
  gap: 12px;
}
.creation-controls label,
.sandbox label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.creation-controls select {
  width: 100%;
  font-size: 12px;
}
.creation-controls button,
#reward {
  background: var(--tone-d6bf91);
  color: var(--tone-181a1e);
  border-color: var(--tone-d6bf91);
  font-weight: 600;
}
.creation-controls button:hover,
#reward:hover {
  background: var(--tone-eddbb7);
}
.creation-note {
  margin: 0;
  font-size: 10px;
}
.creation-sigil {
  width: 118px;
  height: 154px;
  display: grid;
  place-items: center;
  align-self: center;
  justify-self: center;
  position: relative;
}
.creation-ring {
  position: absolute;
  inset: 6px;
  border: 1px solid var(--tone-bca47566);
  border-radius: 70px 70px 0 0;
  transform: none;
}
.creation-ring.inner {
  inset: 24px 22px 0;
  border-color: var(--tone-c3a76c33);
}
.creation-star {
  font-family: Georgia, serif;
  font-size: 40px;
  color: var(--gold);
  text-shadow: 0 0 22px var(--tone-c7bd8c24);
}
#creation-announcement {
  font-size: 17px;
  color: var(--tone-eed3a1);
  font-family: Georgia, serif;
  min-height: 28px;
}
.creation-history {
  grid-column: 1/-1;
}
.creation-history:empty {
  display: none;
}
.creation-history .activity-row {
  flex-wrap: wrap;
}
.milestone-progress {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
  margin: 10px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  gap: 12px;
}
.milestone-progress li {
  display: grid;
  align-content: start;
  gap: 9px;
  font-size: 10px;
  color: var(--muted);
}
.milestone-progress .step-number {
  border-top: 2px solid var(--tone-606674);
  padding-top: 12px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 2px;
}
.milestone-progress .is-complete .step-number {
  color: var(--gold);
  border-color: var(--gold);
}
.milestone-progress .step-state {
  font-size: 9px;
  color: var(--muted);
}
#transactions > article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 24px 16px;
  background: var(--panel-soft);
}
#transactions > article .section-heading {
  margin: 18px 0 0;
  align-items: center;
}
#transactions > article h2 {
  font-family: inherit;
  font-size: 12px;
  margin: 0;
  color: var(--muted);
}
#filter {
  font-size: 11px;
}
.activity-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12px;
}
.activity-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.activity-row small {
  display: block;
  margin-top: 7px;
  font-size: 9px;
  color: var(--muted);
}
.activity-row > span {
  font-size: 11px;
  max-width: 55%;
  overflow-wrap: anywhere;
}
.activity-row strong {
  flex: none;
  font-size: 12px;
  font-weight: 500;
}
.positive {
  color: var(--tone-d7c193);
}
.empty {
  padding: 24px 0;
  margin: 0;
  font-size: 12px;
}
.recovery {
  margin-top: 18px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.recovery summary {
  cursor: pointer;
  padding: 10px 0;
  font-size: 12px;
  color: var(--gold);
}
.recovery .footnote {
  margin: 12px 0;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.content-card {
  position: relative;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.content-card .number {
  height: 95px;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold);
  position: relative;
  margin: -10px 0 10px;
}
.content-card .number::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 5px;
  width: 65px;
  height: 75px;
  border: 1px solid var(--tone-b69d6955);
  border-radius: 45px 45px 0 0;
  transform: rotate(20deg);
  box-shadow: 14px 5px 0 0 var(--tone-a9915a08);
}
.content-card:nth-child(2n) .number::after {
  border-radius: 0;
  transform: rotate(45deg);
  width: 55px;
  height: 55px;
}
.content-card:nth-child(3n) .number::after {
  border-radius: 50%;
  width: 65px;
  height: 65px;
}
.content-card h3 {
  font-size: 25px;
  margin: 8px 0 16px;
  min-height: 62px;
}
.content-card p {
  font-size: 10px;
  margin: 0 0 14px;
}
.content-card p:nth-of-type(2) {
  color: var(--tone-c9b88e);
}
.content-card button {
  width: 100%;
  margin-top: auto;
  text-align: left;
  font-size: 11px;
}
#library > section {
  margin-top: 30px;
}
#library > section h2 {
  font-size: 23px;
}
.entitlement {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.entitlement button {
  font-size: 11px;
}
.footnote {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 24px;
  max-width: 800px;
}
.redemption-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--tone-19202c);
}
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.policy-grid article {
  padding: 8px 0 8px 20px;
  border-left: 1px solid var(--tone-6e624c);
}
.policy-grid span,
.policy-grid small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.policy-grid strong {
  display: block;
  font:
    48px Georgia,
    serif;
  color: var(--gold);
  margin: 16px 0;
}
.gift-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.sandbox,
.referral-card {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}
.sandbox > .section-heading {
  margin: 0;
}
.sandbox h2 {
  font-size: 26px;
}
.sandbox p {
  font-size: 12px;
}
.sandbox form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.sandbox form button {
  grid-column: 1/-1;
}
.sandbox > button {
  width: 100%;
}
.referral-card {
  position: relative;
  overflow: hidden;
}
.referral-card h3 {
  font-size: 32px;
  max-width: 260px;
  margin-top: 32px;
}
.referral-card p {
  max-width: 300px;
  font-size: 12px;
}
.referral-art {
  display: block;
  text-align: right;
  color: var(--tone-d6bf9166);
  font:
    96px Georgia,
    serif;
  line-height: 1.2;
  padding-right: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.settings-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}
.settings-grid h3 {
  font-size: 25px;
  margin: 0 0 22px;
}
dl {
  margin: 0;
}
dl > div {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  font-size: 11px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 5px 0 0;
  color: var(--tone-ded6c7);
}
.settings-grid p {
  font-size: 10px;
  margin: 22px 0 0;
}
#connections {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
#connections h2 {
  font-size: 24px;
}
#connections p,
#connections li {
  font-size: 11px;
  color: var(--muted);
}
#connections ul {
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.testnet-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.token {
  background: var(--tone-151b26);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.token h2 {
  font-size: 30px;
  margin: 20px 0 14px;
}
.token p {
  font-size: 11px;
}
.network {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--gold);
}
footer {
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 9px;
}
footer > span:first-child {
  color: var(--gold);
  letter-spacing: 1.5px;
}
footer small {
  display: block;
  margin-top: 5px;
  font-size: 7px;
}
footer > span:nth-child(2) {
  max-width: 240px;
}
footer a {
  min-height: 44px;
  text-decoration: none;
}
.celebrating .creation-sigil {
  animation: creation-reveal 1400ms ease-out both;
}
.celebrating .creation-ring {
  animation: creation-ring 1400ms ease-out both;
}
.celebrating .creation-star {
  animation: creation-star 1400ms ease-out both;
}
@keyframes creation-reveal {
  0% {
    transform: translateY(8px);
  }
  45% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes creation-ring {
  0% {
    opacity: 0.2;
  }
  55% {
    opacity: 1;
    box-shadow: 0 0 24px var(--tone-d6c69733);
  }
  100% {
    opacity: 1;
  }
}
@keyframes creation-star {
  0% {
    opacity: 0.6;
  }
  45% {
    opacity: 1;
    text-shadow: 0 0 30px var(--tone-e4d7a4aa);
  }
  100% {
    opacity: 1;
  }
}
@media (min-width: 1800px) {
  .workspace {
    margin-right: auto;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 200px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 200px;
    padding: 0 28px;
  }
  .brand {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .brand picture {
    width: 36px;
  }
  nav a {
    padding: 12px 8px;
    gap: 10px;
  }
  .creation-panel {
    grid-template-columns: 1fr 1fr;
  }
  .creation-copy {
    grid-column: 1/-1;
  }
  .catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balance-layout {
    grid-template-columns: 1.4fr 1fr;
  }
  .intent-card,
  .balance {
    padding: 24px;
  }
  .card-top {
    letter-spacing: 1px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px 28px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand picture {
    width: 40px;
  }
  .brand {
    font-size: 11px;
  }
  .nav-caption,
  .sidebar-note {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    padding: 16px 0 12px;
    margin-top: 12px;
    gap: 6px;
  }
  nav a {
    flex: none;
    padding: 10px 12px;
    min-height: 44px;
  }
  nav a > span:first-child {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 76px;
  }
  .hero {
    min-height: 310px;
  }
  .hero-art {
    height: 270px;
  }
  .hero-art picture {
    width: 205px;
  }
  .arch {
    height: 220px;
    width: 170px;
  }
  .arch-two {
    height: 260px;
    width: 210px;
  }
  .art-orbit {
    width: 240px;
  }
}
@media (max-width: 600px) {
  html {
    scroll-padding-top: 20px;
  }
  .sidebar {
    padding: 18px 20px 0;
  }
  .workspace {
    padding: 0 20px;
  }
  nav {
    margin-left: -4px;
    margin-right: -4px;
  }
  nav a {
    font-size: 11px;
  }
  .topbar {
    height: 70px;
  }
  .breadcrumb {
    font-size: 9px;
  }
  .breadcrumb > span {
    display: none;
  }
  .topbar-controls {
    gap: 0;
  }
  .avatar {
    display: none;
  }
  .identity select {
    padding: 10px 8px;
  }
  #language {
    padding: 10px;
  }
  .hero {
    padding: 32px 0 20px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .hero-copy {
    position: relative;
    z-index: 1;
  }
  h1 {
    font-size: 46px;
    letter-spacing: -1px;
    margin-top: 22px;
  }
  .intro {
    font-size: 13px;
    max-width: 300px;
  }
  .hero-note {
    margin-top: 20px;
  }
  .hero-art {
    height: 225px;
    margin: 6px 0 14px;
  }
  .hero-art picture {
    width: 190px;
  }
  .arch {
    width: 148px;
    height: 180px;
  }
  .arch-two {
    width: 188px;
    height: 218px;
  }
  .art-orbit {
    bottom: 12px;
  }
  .art-caption {
    bottom: -5px;
  }
  .balance-layout,
  .gift-layout,
  .settings-grid,
  .testnet-section,
  .redemption-section {
    grid-template-columns: 1fr;
  }
  .balance {
    padding: 24px;
  }
  .amount {
    font-size: 70px;
  }
  .metrics {
    gap: 12px;
  }
  .card-top {
    font-size: 9px;
  }
  .pill {
    font-size: 8px;
  }
  .intent-card {
    padding: 26px;
  }
  .intent-card h2 {
    max-width: none;
    margin-top: 18px;
  }
  .intent-card p {
    max-width: 260px;
  }
  .intent-lines {
    right: -5px;
    bottom: -65px;
  }
  .disclosure {
    font-size: 9px;
  }
  .section-block {
    margin-top: 44px;
  }
  .section-heading {
    align-items: start;
    gap: 12px;
  }
  .section-heading > span {
    max-width: 100px;
    line-height: 1.7;
  }
  .section-heading .eyebrow {
    letter-spacing: 1.7px;
  }
  .creation-panel {
    margin-top: 36px;
    grid-template-columns: 1fr;
    padding: 26px 22px;
    gap: 22px;
  }
  .creation-copy h2 {
    font-size: 32px;
  }
  .creation-sigil {
    width: 110px;
    height: 130px;
  }
  .creation-controls {
    width: 100%;
  }
  .milestone-progress {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 12px;
  }
  .creation-history .activity-row {
    gap: 12px;
  }
  .activity-row > span {
    max-width: 100%;
  }
  #transactions > article {
    padding: 0 18px 14px;
  }
  #transactions > article .section-heading {
    align-items: start;
  }
  .activity-row {
    font-size: 11px;
  }
  .activity-row strong {
    font-size: 11px;
  }
  .recovery summary {
    font-size: 11px;
  }
  .catalog {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .content-card {
    padding: 24px;
  }
  .content-card .number {
    height: 90px;
  }
  .content-card h3 {
    min-height: auto;
    font-size: 28px;
  }
  .content-card p {
    font-size: 11px;
  }
  .content-card button {
    margin-top: 12px;
  }
  .entitlement {
    flex-wrap: wrap;
  }
  .redemption-section {
    padding: 26px;
    gap: 28px;
  }
  .policy-grid strong {
    font-size: 42px;
  }
  .policy-grid article {
    padding-left: 16px;
  }
  .sandbox,
  .referral-card {
    padding: 26px;
  }
  .sandbox form {
    grid-template-columns: 1fr;
  }
  .referral-art {
    font-size: 70px;
  }
  .testnet-section {
    gap: 22px;
  }
  .token {
    padding: 26px;
  }
  footer {
    flex-wrap: wrap;
    gap: 18px;
  }
  footer > span:nth-child(2) {
    max-width: 100%;
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .creation-sigil {
    transform: none !important;
  }
}
/* Architectural details are decorative UI forms, separate from the official logo. */
.link-arrow {
  position: relative;
  display: inline-block;
  width: 11px;
  height: 11px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  margin: 0 3px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: rotate(-45deg);
  transform-origin: right center;
  top: -1px;
  right: -1px;
}
.referral-art {
  position: relative;
  height: 90px;
  margin-top: 32px;
}
.referral-art::before,
.referral-art::after {
  content: "";
  position: absolute;
  right: 35px;
  bottom: -35px;
  width: 85px;
  height: 100px;
  border: 1px solid var(--tone-d6bf9166);
  transform: rotate(25deg);
}
.referral-art::after {
  right: 75px;
  bottom: -65px;
  border-color: var(--tone-d6bf912d);
}
@media (max-width: 600px) {
  .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 12px;
    min-height: auto;
    padding: 32px 0 26px;
  }
  .hero-copy {
    display: contents;
  }
  .hero-copy > .eyebrow,
  .hero-copy > h1 {
    grid-column: 1/-1;
  }
  .hero-copy > h1 {
    margin: 10px 0;
  }
  .hero-copy .intro {
    grid-column: 1;
    grid-row: 3;
    margin: 0;
    font-size: 12px;
  }
  .hero-note {
    grid-column: 1/-1;
    grid-row: 4;
    margin: 10px 0 0;
  }
  .hero-art {
    grid-column: 2;
    grid-row: 3;
    width: 108px;
    height: 116px;
    margin: 0;
  }
  .hero-art picture {
    width: 94px;
  }
  .hero-art .arch {
    width: 78px;
    height: 100px;
  }
  .hero-art .arch-two {
    width: 96px;
    height: 110px;
  }
  .hero-art .art-orbit {
    width: 108px;
    bottom: 0;
  }
  .hero-art .art-caption {
    display: none;
  }
}
/* UX refinement: the account overview takes precedence over brand decoration. */
.hero {
  min-height: 230px;
  padding: 26px 0 24px;
}
h1 {
  font-size: clamp(36px, 3.6vw, 52px);
  margin: 18px 0 14px;
}
.hero-art {
  height: 204px;
}
.hero-art picture {
  width: 162px;
}
.hero-art .arch {
  width: 140px;
  height: 176px;
}
.hero-art .arch-two {
  width: 180px;
  height: 198px;
}
.hero-note {
  margin-top: 20px;
}
.art-orbit {
  width: 204px;
}
.environment-badge {
  position: fixed;
  right: 18px;
  bottom: 16px;
  z-index: 15;
  color: var(--tone-ecd4a7);
  background: var(--tone-191e28);
  border: 1px solid var(--tone-84704e);
  border-radius: 5px;
  padding: 8px 13px;
  font-size: 10px;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 16px var(--tone-0004);
}
.section-disclosure {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 20px;
}
.content-type {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}
.quote-grid {
  margin: 4px 0 20px;
  display: grid;
  gap: 4px;
}
.quote-grid > div {
  padding: 5px 0;
  border: 0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: baseline;
  font-size: 10px;
}
.quote-grid dt {
  max-width: 65%;
}
.quote-grid dd {
  margin: 0;
  color: var(--tone-ddd0b5);
  white-space: nowrap;
}
.content-card .number {
  height: 64px;
}
.content-card .number::after {
  height: 52px;
  width: 46px;
  top: 0;
}
.content-card:nth-child(2n) .number::after {
  height: 42px;
  width: 42px;
}
.content-card:nth-child(3n) .number::after {
  height: 48px;
  width: 48px;
}
footer {
  padding-bottom: 80px;
}
@media (max-width: 600px) {
  .hero {
    min-height: auto;
    padding-top: 24px;
  }
  .hero h1 {
    font-size: 39px;
  }
  .hero-art {
    height: 110px;
    width: 108px;
  }
  .hero-art picture {
    width: 94px;
  }
  .hero-art .arch {
    width: 78px;
    height: 100px;
  }
  .hero-art .arch-two {
    width: 96px;
    height: 110px;
  }
  .environment-badge {
    right: 12px;
    bottom: 12px;
    font-size: 10px;
    padding: 7px 10px;
  }
}
/* Ordinary navigation contains only product sections; tools require an explicit opt-in. */
.workspace-tools {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.workspace-tools > summary,
.creation-controls > summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  min-height: 44px;
  padding: 12px 0;
}
.workspace-tools > .sandbox {
  margin-top: 20px;
  max-width: 640px;
}
.workspace-tools > p {
  font-size: 11px;
}
details.creation-controls {
  display: block;
}
details.creation-controls[open] > label {
  margin: 12px 0;
}
details.creation-controls[open] > button {
  width: 100%;
  margin: 8px 0 12px;
}
.gift-layout {
  grid-template-columns: 1fr;
}
.gift-layout .referral-card {
  padding: 28px 32px;
}
.gift-layout .referral-card h3 {
  max-width: none;
}
.gift-layout .referral-card p {
  max-width: 600px;
}
.gift-layout .referral-art {
  display: none;
}
.token-art {
  width: min(256px, 100%);
  aspect-ratio: 1;
  margin: 1rem auto;
  border: 1px solid var(--gold, var(--tone-c6ab78));
  border-radius: 50%;
  background: radial-gradient(circle, var(--tone-242935), var(--tone-0f141d));
  box-shadow: 0 0 0 8px var(--tone-c6ab7810);
}
.token-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.web3-facts dd,
#web3-payload {
  overflow-wrap: anywhere;
  margin-inline-start: 0;
}
#web3-payload {
  white-space: pre-wrap;
  max-width: 100%;
  font-size: 0.75rem;
}
#web3-form {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}
#web3-form label {
  display: grid;
  gap: 0.4rem;
}
#web3-form input {
  min-width: 0;
  width: 100%;
}
[data-t="heading"] {
  white-space: pre-line;
}

/* AGT 023 — architectural dashboard. Original artwork remains in the shell. */
[hidden] {
  display: none !important;
}
:root {
  --bg: var(--tone-0e1116);
  --panel: var(--tone-171c23);
  --panel-soft: var(--tone-13181f);
  --gold: var(--tone-d9c49b);
  --ivory: var(--tone-f4efe5);
  --muted: var(--tone-bac0c8);
  --line: var(--tone-343b45);
  line-height: 1.55;
}
body {
  background:
    radial-gradient(ellipse at 85% 0%, var(--tone-25262a) 0%, transparent 55%),
    var(--bg);
}
.shell {
  max-width: 1800px;
  margin: auto;
}
.sidebar {
  width: 230px;
  padding: 30px 22px;
  background: var(--tone-11151b);
  border-right: 1px solid var(--line);
}
.brand {
  gap: 12px;
  margin-bottom: 36px;
}
.brand picture,
.brand img {
  width: 48px;
  height: 44px;
  object-fit: contain;
}
.brand span {
  font-size: 12px;
  letter-spacing: 1.3px;
}
.brand small {
  font-size: 8px;
}
.workspace {
  margin-left: 230px;
  min-width: 0;
}
.topbar {
  padding: 22px 40px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.breadcrumb {
  font-size: 11px;
  letter-spacing: 1px;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 35px 40px 60px;
}
.hero {
  display: block;
  min-height: 0;
  padding: 0;
  margin: 0 0 26px;
}
.hero-copy {
  max-width: 100%;
}
.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -1px;
  margin: 10px 0;
}
.hero .intro {
  font-size: 15px;
  max-width: none;
  margin: 0;
}
.hero-note {
  display: none;
}
.balance-layout {
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}
.balance,
.intent-card {
  padding: 24px;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(120deg, var(--tone-20252d), var(--tone-161b22));
}
.amount {
  font-size: 48px;
  margin: 12px 0;
}
.metrics {
  gap: 20px;
}
.intent-card h2 {
  font-size: 25px;
  line-height: 1.25;
  margin: 16px 0;
}
.intent-lines {
  display: none;
}
.disclosure {
  font-size: 12px;
  margin: 16px 0 0;
}
.section-block,
.premium-section {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.section-heading {
  margin-bottom: 16px;
  gap: 14px;
}
.section-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 27px;
  margin: 3px 0;
}
.section-heading a {
  font-size: 12px;
  color: var(--gold);
}
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.asset-grid article,
.reward-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  min-width: 0;
}
.asset-grid strong {
  display: block;
  font-size: 27px;
  line-height: 1.3;
  color: var(--gold);
  margin: 12px 0;
}
.asset-grid h3 {
  font-family: Georgia, serif;
  font-size: 32px;
  margin: 12px 0;
}
.asset-grid p,
.reward-card p {
  font-size: 12px;
  color: var(--muted);
}
.reward-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(225px, 100%), 1fr));
  gap: 14px;
}
.reward-card h3 {
  font-size: 18px;
  margin: 12px 0;
}
.reward-card strong {
  display: block;
  color: var(--gold);
  font-size: 22px;
  margin: 16px 0;
}
.reward-card button {
  width: 100%;
  background: var(--tone-d9c49b);
  color: var(--tone-17191e);
  border-color: var(--tone-d9c49b);
  font-weight: 600;
  font-size: 12px;
}
.reward-card button:disabled {
  color: var(--muted);
  background: var(--tone-222832);
  border-color: var(--line);
  opacity: 1;
  cursor: default;
}
.fixture-note {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.creation-panel {
  padding: 24px;
  min-height: 0;
  border-radius: 12px;
  margin-top: 35px;
}
.creation-sigil {
  display: none;
}
.creation-copy {
  max-width: 100%;
}
.creation-copy h2 {
  font-size: 28px;
}
.milestone-progress {
  margin-top: 16px;
}
.milestone-progress li {
  padding: 12px;
}
.activity-row {
  gap: 12px;
  overflow-wrap: anywhere;
}
.activity-row strong {
  white-space: nowrap;
}
footer {
  padding: 24px 40px;
}
.environment-badge {
  font-size: 10px;
}
.topbar-controls {
  margin-left: auto;
}
nav a {
  min-height: 44px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 195px;
    padding: 24px 15px;
  }
  .workspace {
    margin-left: 195px;
  }
  main {
    padding: 28px 26px;
  }
  .topbar {
    padding: 18px 26px;
  }
  .breadcrumb {
    display: none;
  }
}
@media (max-width: 800px) {
  .sidebar {
    position: relative;
    width: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 16px;
  }
  .sidebar .nav-caption {
    display: none;
  }
  .sidebar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
  }
  .sidebar nav a {
    padding: 8px 12px;
    flex: 1 1 auto;
    font-size: 11px;
  }
  .sidebar nav a > span:first-child {
    display: none;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  main {
    padding: 24px 20px;
  }
  .balance-layout {
    grid-template-columns: 1fr;
  }
  .shell {
    display: block;
  }
  .intent-card {
    display: none;
  }
  .hero h1 {
    font-size: 36px;
  }
  .amount {
    font-size: 42px;
  }
  footer {
    padding: 22px 20px;
    flex-wrap: wrap;
  }
  .section-heading {
    align-items: start;
  }
  .milestone-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
.hero h1 {
  white-space: normal;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 8px 0 12px;
}
.hero {
  margin-bottom: 22px;
}
.sidebar .nav-caption {
  margin: 26px 0 14px;
}
.environment-badge {
  position: static;
  max-width: 100%;
  white-space: normal;
}
.balance-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balance-layout > .asset-grid {
  display: contents;
}
.balance-layout > .asset-grid > article {
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: start;
}
.balance-layout > .asset-grid strong {
  font-size: 27px;
}
.balance .amount {
  font-size: 38px;
}
.balance .metrics {
  gap: 10px;
  flex-wrap: wrap;
}
.balance .metrics strong {
  font-size: 14px;
}
.balance .card-top {
  flex-wrap: wrap;
  gap: 8px;
}
.balance-layout p {
  font-size: 12px;
}
.balance {
  padding: 22px;
}
.balance .metrics > div {
  min-width: 50px;
}
.balance-layout .asset-grid a {
  font-size: 12px;
  color: var(--gold);
  margin-top: auto;
}
.balance-layout .asset-grid strong {
  font-family: Georgia, serif;
}
.hero-copy .eyebrow {
  font-size: 10px;
}
@media (max-width: 1024px) {
  .balance-layout {
    grid-template-columns: 1fr;
  }
  .balance .metrics {
    display: flex;
    justify-content: space-between;
  }
  .balance-layout > .asset-grid > article {
    min-height: 155px;
  }
  .balance-layout > .asset-grid strong {
    margin: 8px 0;
  }
  .balance-layout > .asset-grid p {
    margin: 8px 0;
  }
  .hero h1 {
    font-size: 32px;
  }
}
/* Preserve confirmed Creation feedback on the compact panel, never on pending intake. */
@media (prefers-reduced-motion: no-preference) {
  .creation-panel.celebrating {
    animation: creation-reveal 1400ms ease-out both;
  }
}
.premium-recent {
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.premium-recent h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 8px;
}
.premium-recent .activity-row {
  padding: 8px 0;
  font-size: 12px;
}
.premium-recent .activity-row strong {
  white-space: normal;
  font-size: 11px;
  font-weight: 400;
  color: var(--gold);
}
/* UX-025: one focused application view. Old deep-linked controls remain intact. */
[data-view][hidden] {
  display: none !important;
}
[data-view] {
  min-width: 0;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sidebar nav a svg {
  flex: 0 0 19px;
}
.sidebar nav a > span {
  display: inline !important;
}
.sidebar nav a[aria-current="page"] {
  background: var(--tone-252a32);
  border-color: var(--gold);
  color: var(--ivory);
}
main {
  padding-top: 24px;
}
.view-title,
#overview-title {
  font-family: Georgia, serif;
  font-size: 28px !important;
  line-height: 1.25;
  margin: 0 0 22px !important;
  font-weight: 400;
  letter-spacing: -0.3px;
}
.hero {
  margin: 0 0 18px;
}
.topbar {
  padding-top: 16px;
  padding-bottom: 16px;
}
.sidebar .nav-caption {
  margin: 22px 0 12px;
}
.section-block,
.premium-section,
.creation-panel {
  margin-top: 16px;
  padding-top: 16px;
}
.section-heading h2,
.creation-copy h2,
#redemption-title {
  font-size: 21px;
}
.section-heading .eyebrow,
.creation-copy > .eyebrow,
.creation-copy > p,
.redemption-section > div > p,
.redemption-section > div > .eyebrow,
#testnet > div > .eyebrow,
#transactions .eyebrow {
  display: none;
}
.balance,
.balance-layout > .asset-grid > article {
  padding: 18px;
}
.balance .amount {
  font-size: 32px;
  margin: 8px 0;
}
.balance-layout p {
  font-size: 11px;
}
.disclosure {
  margin-top: 14px;
  font-size: 11px;
}
.dashboard-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.dashboard-grid article,
.analytics-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}
.dashboard-grid h2,
.analytics-grid h2 {
  font-family: inherit;
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 12px;
}
.dashboard-grid strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 28px;
}
.dashboard-grid a {
  font-size: 12px;
  color: var(--gold);
}
progress {
  width: 100%;
  accent-color: var(--gold);
  height: 12px;
}
.dashboard-grid small {
  font-size: 11px;
  color: var(--muted);
}
.chart-data {
  margin: 0;
}
.chart-data > div {
  position: relative;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
}
.chart-data dt {
  font-size: 12px;
}
.chart-data dd {
  font-size: 12px;
  color: var(--gold);
  margin: 0;
}
.data-bar {
  display: block;
  height: 5px;
  margin-top: 6px;
  background: var(--gold);
  border-radius: 2px;
  max-width: 100%;
}
.chart-data,
.chart-data * {
  overflow-wrap: anywhere;
}
.activity-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 16px;
}
.activity-scope select {
  max-width: 60%;
}
.premium-recent {
  padding: 16px 18px;
}
details {
  margin: 14px 0;
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
}
summary {
  cursor: pointer;
  min-height: 24px;
  font-size: 13px;
}
#view-assets .token {
  padding: 20px;
}
#view-assets .token-art img {
  width: 96px;
  height: 96px;
}
#view-settings #connections {
  padding: 0;
}
#view-settings #connections h2 {
  font-size: 18px;
}
#view-settings #connections ul {
  display: grid;
  gap: 12px;
  padding-left: 20px;
}
#view-settings #gifts {
  margin-top: 0;
}
footer {
  padding-top: 18px;
  padding-bottom: 18px;
}
.section-number {
  display: none;
}
@media (max-width: 800px) {
  .sidebar {
    padding: 14px 16px;
  }
  .brand {
    margin-bottom: 12px;
  }
  .sidebar nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }
  .sidebar nav a {
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 2px;
    font-size: 10px;
    text-align: center;
    min-height: 57px;
  }
  .sidebar nav a > span {
    display: inline !important;
  }
  .topbar {
    padding: 12px 16px;
  }
  main {
    padding: 20px 16px;
  }
  .view-title,
  #overview-title {
    font-size: 25px !important;
  }
  .balance-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-grid,
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .balance-layout > .asset-grid > article {
    min-height: 0;
  }
  .balance-layout > .asset-grid strong {
    font-size: 22px;
  }
  .balance .amount small {
    font-size: 12px;
  }
  .environment-badge {
    font-size: 9px;
  }
  .workspace {
    margin-left: 0;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .reward-grid {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-view],
  .data-bar {
    animation: none !important;
    transition: none !important;
  }
}
/* One global environment notice; local asset captions retain unit distinctions. */
.reward-card .fixture-note,
#premium-progress .fixture-note {
  display: none;
}
.reward-card {
  padding: 18px;
}
.reward-card h3 {
  font-size: 16px;
  margin: 8px 0;
}
.reward-card strong {
  font-size: 20px;
  margin: 12px 0;
}
.asset-grid strong {
  overflow-wrap: anywhere;
}
#view-rewards .premium-section {
  padding-top: 0;
  border-top: 0;
}
#view-potential .premium-section {
  padding-top: 0;
  border-top: 0;
}
.dashboard-grid .empty,
.premium-recent .empty {
  padding: 8px 0;
  margin: 0;
}
.premium-recent {
  margin-top: 14px;
}
.dashboard-grid article {
  min-height: 130px;
}
.balance-layout p {
  margin-bottom: 8px;
}
/* Compact evidence summaries and benefit catalog; keep data/control semantics intact. */
#premium-progress {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#premium-progress article {
  padding: 14px;
}
#premium-progress h3 {
  font-size: 24px;
  margin: 8px 0;
}
#premium-progress p {
  font-size: 11px;
  margin: 6px 0;
}
#premium-progress .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
}
.creation-panel {
  display: block;
  padding: 18px;
}
.content-card {
  padding: 18px;
}
.content-card .number {
  display: none;
}
.content-card h3 {
  min-height: 0;
  font-size: 18px;
  margin: 8px 0 12px;
}
.quote-grid {
  gap: 8px;
}
.content-card p,
.content-card dd {
  font-size: 12px;
}

/* Evidence summaries keep availability distinct from capability or financial value. */
#premium-progress.evidence-summary,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.evidence-summary article,
.benefit-panel {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}
#premium-progress.evidence-summary h3,
.benefit-panel h2 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
}
.evidence-summary strong {
  display: block;
  font-size: 1.8rem;
  line-height: 1.2;
}
.evidence-summary p,
.benefit-panel p {
  font-size: 0.86rem;
  line-height: 1.5;
}
.potential-charts {
  margin-top: 1rem;
}
.connection-state {
  color: var(--gold);
}
@media (min-width: 1100px) {
  #premium-progress.evidence-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  #premium-progress.evidence-summary,
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}

/* UX-027 complete theme palette; original dark values remain exact. */
:root {
  --tone-0004: #0004;
  --tone-0e1116: #0e1116;
  --tone-0f141d: #0f141d;
  --tone-10141c: #10141c;
  --tone-11151b: #11151b;
  --tone-13181f: #13181f;
  --tone-141a24: #141a24;
  --tone-141b27: #141b27;
  --tone-151b26: #151b26;
  --tone-161b22: #161b22;
  --tone-161d29: #161d29;
  --tone-17191e: #17191e;
  --tone-171c23: #171c23;
  --tone-181a1e: #181a1e;
  --tone-181e28: #181e28;
  --tone-181e29: #181e29;
  --tone-191e28: #191e28;
  --tone-19202c: #19202c;
  --tone-1c2330: #1c2330;
  --tone-20252d: #20252d;
  --tone-202836: #202836;
  --tone-222832: #222832;
  --tone-23252b: #23252b;
  --tone-242935: #242935;
  --tone-25262a: #25262a;
  --tone-252a32: #252a32;
  --tone-29303d: #29303d;
  --tone-30323a: #30323a;
  --tone-343b45: #343b45;
  --tone-353c49: #353c49;
  --tone-444851: #444851;
  --tone-4a4439: #4a4439;
  --tone-5c5446: #5c5446;
  --tone-606674: #606674;
  --tone-68604e: #68604e;
  --tone-69604d: #69604d;
  --tone-6c6556: #6c6556;
  --tone-6e624c: #6e624c;
  --tone-7c6a4e: #7c6a4e;
  --tone-7f6b3e22: #7f6b3e22;
  --tone-84704e: #84704e;
  --tone-87714912: #87714912;
  --tone-a9915a08: #a9915a08;
  --tone-b0b6c2: #b0b6c2;
  --tone-b69d6955: #b69d6955;
  --tone-b9bec8: #b9bec8;
  --tone-bac0c8: #bac0c8;
  --tone-bba67f: #bba67f;
  --tone-bca47566: #bca47566;
  --tone-bfa46c18: #bfa46c18;
  --tone-c3a76c33: #c3a76c33;
  --tone-c4a56512: #c4a56512;
  --tone-c6ab78: #c6ab78;
  --tone-c6ab7810: #c6ab7810;
  --tone-c7a974: #c7a974;
  --tone-c7bd8c24: #c7bd8c24;
  --tone-c9b88e: #c9b88e;
  --tone-d6bf91: #d6bf91;
  --tone-d6bf9114: #d6bf9114;
  --tone-d6bf912b: #d6bf912b;
  --tone-d6bf912d: #d6bf912d;
  --tone-d6bf9155: #d6bf9155;
  --tone-d6bf9166: #d6bf9166;
  --tone-d6c69733: #d6c69733;
  --tone-d7c193: #d7c193;
  --tone-d9c49b: #d9c49b;
  --tone-ddd0b5: #ddd0b5;
  --tone-ded6c7: #ded6c7;
  --tone-e0cfaa: #e0cfaa;
  --tone-e2cda5: #e2cda5;
  --tone-e4d7a4aa: #e4d7a4aa;
  --tone-ecd4a7: #ecd4a7;
  --tone-eddbb7: #eddbb7;
  --tone-eed3a1: #eed3a1;
  --tone-f1ede4: #f1ede4;
  --tone-f3d79c: #f3d79c;
  --tone-f3dfb9: #f3dfb9;
  --tone-f4efe5: #f4efe5;
  --tone-fff0ce: #fff0ce;
}
:root[data-theme="light"] {
  color-scheme: light;
  --tone-0004: #382c1d24;
  --tone-0e1116: #f5f0e7;
  --tone-0f141d: #faf6ed;
  --tone-10141c: #f5f0e7;
  --tone-11151b: #eee7db;
  --tone-13181f: #f4ede1;
  --tone-141a24: #f4ede1;
  --tone-141b27: #eee5d6;
  --tone-151b26: #f3ebde;
  --tone-161b22: #eee4d2;
  --tone-161d29: #eee4d2;
  --tone-17191e: #fffaf0;
  --tone-171c23: #fffcf6;
  --tone-181a1e: #fffaf0;
  --tone-181e28: #fbf7ee;
  --tone-181e29: #fffcf6;
  --tone-191e28: #f6eddf;
  --tone-19202c: #f2eadc;
  --tone-1c2330: #fffdf7;
  --tone-20252d: #fffaf0;
  --tone-202836: #fffaf0;
  --tone-222832: #f4eadb;
  --tone-23252b: #e9dfcf;
  --tone-242935: #eee3d1;
  --tone-25262a: #e9dfcc;
  --tone-252a32: #e7dcc9;
  --tone-29303d: #e5d9c6;
  --tone-30323a: #e8decd;
  --tone-343b45: #c5b8a3;
  --tone-353c49: #c5b8a3;
  --tone-444851: #c5b8a3;
  --tone-4a4439: #96866b;
  --tone-5c5446: #96866b;
  --tone-606674: #8d806e;
  --tone-68604e: #96866b;
  --tone-69604d: #96866b;
  --tone-6c6556: #96866b;
  --tone-6e624c: #96866b;
  --tone-7c6a4e: #96866b;
  --tone-7f6b3e22: #76572222;
  --tone-84704e: #96866b;
  --tone-87714912: #76572212;
  --tone-a9915a08: #76572208;
  --tone-b0b6c2: #61594e;
  --tone-b69d6955: #76572255;
  --tone-b9bec8: #61594e;
  --tone-bac0c8: #61594e;
  --tone-bba67f: #735a2c;
  --tone-bca47566: #76572266;
  --tone-bfa46c18: #76572218;
  --tone-c3a76c33: #76572233;
  --tone-c4a56512: #76572212;
  --tone-c6ab78: #96866b;
  --tone-c6ab7810: #76572210;
  --tone-c7a974: #96866b;
  --tone-c7bd8c24: #76572224;
  --tone-c9b88e: #71521f;
  --tone-d6bf91: #765722;
  --tone-d6bf9114: #76572214;
  --tone-d6bf912b: #7657222b;
  --tone-d6bf912d: #7657222d;
  --tone-d6bf9155: #76572255;
  --tone-d6bf9166: #76572266;
  --tone-d6c69733: #76572233;
  --tone-d7c193: #71521f;
  --tone-d9c49b: #765722;
  --tone-ddd0b5: #4f463a;
  --tone-ded6c7: #4f463a;
  --tone-e0cfaa: #71521f;
  --tone-e2cda5: #71521f;
  --tone-e4d7a4aa: #765722aa;
  --tone-ecd4a7: #71521f;
  --tone-eddbb7: #8c6b32;
  --tone-eed3a1: #71521f;
  --tone-f1ede4: #302b25;
  --tone-f3d79c: #725019;
  --tone-f3dfb9: #71521f;
  --tone-f4efe5: #302b25;
  --tone-fff0ce: #563e15;

  --bg: #f5f0e7;
  --panel: #fffcf6;
  --panel-soft: #f4ede1;
  --gold: #765722;
  --ivory: #302b25;
  --muted: #61594e;
  --line: #c5b8a3;
}
.settings-panel {
  margin-bottom: 1.4rem;
}
.settings-panel h2,
#connections-title,
#premium-progress-title {
  font-size: 1.25rem;
}
#theme-controls {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
#theme-controls legend {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.theme-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
}
.theme-options label:has(input:checked) {
  border-color: var(--gold);
  background: var(--panel-soft);
}
.theme-options input {
  accent-color: var(--gold);
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 0;
}
.theme-options label:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#view-settings #connections {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 1rem;
  background: var(--panel);
}
#connections ul {
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}
#advanced {
  margin: 1rem 0;
}
#blockchain {
  margin: 0.75rem 0 0;
}
#testnet {
  display: block;
  padding: 1rem 0;
  margin: 0;
  border: 0;
}
#testnet .token {
  margin-top: 1rem;
}
#testnet h2 {
  font-size: 1.25rem;
}
.token-art {
  width: 64px;
  height: 64px;
  margin: 0.75rem 0;
}
.token-art img {
  max-width: 64px;
  max-height: 64px;
}
#connections details {
  margin-top: 0.75rem;
}
[role="tooltip"],
dialog {
  background: var(--panel);
  color: var(--ivory);
  border: 1px solid var(--line);
}
dialog::backdrop {
  background: #0007;
}
option,
optgroup {
  background: var(--panel);
  color: var(--ivory);
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
input,
select,
textarea,
button {
  accent-color: var(--gold);
}
:root[data-theme="light"] .data-bar {
  background: var(--gold);
}
:root[data-theme="light"] progress {
  accent-color: var(--gold);
}
:root[data-theme="light"] .brand picture {
  border-radius: 6px;
}
@media (max-width: 768px) {
  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}

/* UX-028: compact, touch-friendly Activity and seven-width responsive layout. */
.activity-section {
  min-width: 0;
}
.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
}
.activity-filters label {
  display: grid;
  gap: 0.4rem;
  min-width: 160px;
  flex: 1;
  max-width: 320px;
}
.activity-filters label > span {
  color: var(--muted);
  font-size: 0.85rem;
}
.activity-filters select {
  width: 100%;
  min-height: 44px;
}
.activity-day {
  padding: 0.5rem 0;
}
.activity-day h2 {
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
  margin: 0.75rem 0;
}
.activity-day .activity-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}
.activity-row h3 {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  margin: 0;
}
.activity-row p {
  font-size: 0.8rem;
  margin: 0.25rem 0;
  color: var(--muted);
}
.activity-row strong {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.activity-row > details {
  grid-column: 1 / -1;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
}
.activity-row summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  padding: 0.4rem 0.1rem;
  color: var(--gold);
  font-size: 0.8rem;
}
.activity-row summary::before {
  content: "▸";
  margin-right: 0.4rem;
}
.activity-row details[open] summary::before {
  content: "▾";
}
.activity-row small,
.activity-row details p {
  overflow-wrap: anywhere;
  word-break: break-word;
}
#activity-empty {
  padding: 1.5rem 0;
}
#activity-analysis > summary,
#advanced > summary,
#blockchain > summary,
#connection-details > summary,
#technical-details > summary {
  min-height: 44px;
  align-content: center;
}
.sidebar nav a {
  min-height: 44px;
}
.dashboard-grid a,
.products-summary a,
.benefit-panel .text-link,
.skip-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#transactions select,
#testnet input,
#testnet button {
  max-width: 100%;
}
#testnet .web3-facts dd,
#web3-payload {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}
#testnet form {
  min-width: 0;
}
@media (max-width: 600px) {
  .activity-filters label {
    min-width: 0;
    max-width: none;
    flex-basis: 100%;
  }
  .activity-day .activity-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .activity-row > details {
    grid-column: 1;
  }
  .evidence-summary article,
  .benefit-panel {
    padding: 0.9rem;
  }
  #view-settings #connections {
    padding: 0.9rem;
  }
  #testnet .token {
    padding: 1rem;
  }
}
@media (min-width: 769px) and (max-width: 1399px) {
  .workspace {
    margin-left: 210px;
  }
  .sidebar {
    width: 210px;
    padding-inline: 16px;
  }
  main {
    padding-inline: 28px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    padding: 14px 16px;
  }
  .sidebar .brand {
    margin-bottom: 12px;
  }
  .sidebar nav {
    gap: 4px;
  }
  .sidebar nav a {
    padding: 6px;
    min-height: 48px;
    gap: 4px;
  }
}
/* Action links and disclosure summaries are full touch targets, including secondary routes. */
main a,
footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
summary {
  min-height: 44px;
  align-content: center;
}

.internal-reward-group {
  grid-column: 1 / -1;
  min-width: 0;
}
.internal-reward-group small,
.activity-row small {
  overflow-wrap: anywhere;
}

.internal-amount {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.internal-amount small {
  margin-left: 0;
}
.internal-long-amount #balance {
  font-size: clamp(16px, 2.5vw, 24px);
  letter-spacing: 0;
}
.internal-reward-group strong {
  overflow-wrap: anywhere;
}
