:root {
  color-scheme: light;
  --bg: #f5f0e8;
  --surface: #fffaf2;
  --text: #332c28;
  --muted: #655d55;
  --line: #e5dace;
  --accent: #795b45;
  --accent-soft: #eee2d4;
  --room-wall: #e9d5bf;
  --room-floor: #d8b89b;
  --shadow: 0 18px 50px rgba(74, 51, 34, .08);
}

/* Follow the system preference unless the user has chosen an override. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #211e1c;
    --surface: #2b2623;
    --text: #f1f3f5;
    --muted: #c0c7d1;
    --line: #403832;
    --accent: #e0b691;
    --accent-soft: #3c322b;
    --room-wall: #55463a;
    --room-floor: #392f29;
    --shadow: 0 18px 50px rgba(0, 0, 0, .2);
  }
}

/* Explicit choices override the system preference. */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f0e8;
  --surface: #fffaf2;
  --text: #332c28;
  --muted: #655d55;
  --line: #938170;
  --accent: #795b45;
  --accent-soft: #eee2d4;
  --room-wall: #e9d5bf;
  --room-floor: #d8b89b;
  --shadow: 0 18px 50px rgba(74, 51, 34, .08);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #211e1c;
  --surface: #2b2623;
  --text: #f1f3f5;
  --muted: #c0c7d1;
  --line: #756b63;
  --accent: #e0b691;
  --accent-soft: #3c322b;
  --room-wall: #55463a;
  --room-floor: #392f29;
  --shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  transition: background .25s, color .25s;
}
a { color: inherit; }
a:hover { color: var(--accent); }
.page { width: min(1060px, calc(100% - 40px)); margin: 0 auto; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  font-family: Arial, sans-serif;
  position: sticky;
  z-index: 1000;
  top: 0;
  background: var(--bg);
  color: var(--text);
  transition: background .25s, color .25s;
}
.logo {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-decoration: none;
  white-space: nowrap;
}
.logo span { color: var(--accent); }
.header-right, nav { display: flex; align-items: center; }
.header-right { gap: 18px; }
nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 13px;
}
nav a { text-decoration: none; }
.theme-toggle {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font: 17px Arial, sans-serif;
  cursor: pointer;
}
.theme-toggle:hover { border-color: var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1fr .82fr;
  align-items: center;
  gap: 58px;
  padding: 68px 0 72px;
}
.eyebrow, .section-label {
  color: var(--accent);
  font: 700 10px Arial, sans-serif;
  letter-spacing: .15em;
  text-transform: uppercase;
}
h1 {
  margin: 17px 0;
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .99;
}
h1 em { color: var(--accent); font-weight: 400; }
.intro {
  max-width: 490px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}
.signature { margin-top: 22px; color: var(--accent); font-size: 17px; font-style: italic; }
.text-link { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }

/* CSS-drawn living room */
.room {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 48% 48% 10px 10px;
  background: linear-gradient(160deg, var(--room-wall), var(--room-floor));
}
.window {
  position: absolute;
  top: 42px;
  left: 30px;
  width: 84px;
  height: 116px;
  border: 7px solid rgba(255, 250, 242, .72);
  border-radius: 44px 44px 3px 3px;
  background: linear-gradient(145deg, #c4d1c0, #e7d6ae);
}
.window::before, .window::after {
  position: absolute;
  content: "";
  background: rgba(255, 250, 242, .8);
}
.window::before { top: 0; bottom: 0; left: 50%; width: 3px; }
.window::after { top: 54%; right: 0; left: 0; height: 3px; }
[data-theme="dark"] .window { background: linear-gradient(145deg, #788271, #a48d69); }

.painting {
  position: absolute;
  top: 39px;
  right: 40px;
  z-index: 1;
  width: 102px;
  height: 74px;
  padding: 6px;
  border: 4px solid #76543d;
  background: #f2e5cd;
  box-shadow: 2px 4px 0 rgba(66, 45, 31, .15);
}
.painting-scene {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(#c6d1c0 0 56%, #e7d5aa 56%);
}
.painting-sun {
  position: absolute;
  top: 7px;
  right: 10px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d9a77d;
}
.hill {
  position: absolute;
  bottom: -18px;
  width: 78px;
  height: 42px;
  border-radius: 50% 50% 0 0;
  background: #78866a;
  transform: rotate(-12deg);
}
.hill-two { right: -25px; bottom: -23px; background: #9b8b68; transform: rotate(16deg); }

.plant {
  position: absolute;
  z-index: 2;
  bottom: 39px;
  left: 35px;
  width: 70px;
  height: 135px;
}

.stem {
  position: absolute;
  bottom: 36px;
  left: 33px;
  width: 3px;
  height: 80px;
  border-radius: 3px;
  background: #536b4b;
  transform-origin: bottom;
}

/* Keep one stem and hide the other four. */
.stem-one { transform: none; }
.stem-two,
.stem-three,
.stem-four,
.stem-five {
  display: none;
}

.leaf {
  position: absolute;
  z-index: 1;
  width: 22px;
  height: 12px;
  border-radius: 100% 0 100% 0;
  background: #718461;
}

.leaf-four  { top: 25px; left: 33px; transform: rotate(195deg); }
.leaf-eight { top: 38px; left: 15px; transform: rotate(20deg); }
.leaf-three { top: 51px; left: 33px; transform: rotate(195deg); }
.leaf-five  { top: 64px; left: 15px; transform: rotate(20deg); }
.leaf-seven { top: 77px; left: 33px; transform: rotate(195deg); }
.leaf-ten   { top: 89px; left: 15px; transform: rotate(20deg); }

.leaf-one,
.leaf-two,
.leaf-six,
.leaf-nine {
  display: none;
}

.pot {
  position: absolute;
  bottom: 0;
  left: 17px;
  width: 35px;
  height: 38px;
  background: #a96849;
  clip-path: polygon(8% 0, 92% 0, 78% 100%, 22% 100%);
}

.pot::before {
  position: absolute;
  top: 0;
  left: -3px;
  width: 41px;
  height: 7px;
  border-radius: 3px;
  background: #bd805c;
  content: "";
}


.sofa { position: absolute; z-index: 2; right: 16px; bottom: 29px; width: 224px; height: 145px; }
.sofa-back {
  position: absolute;
  top: 21px;
  left: 18px;
  width: 188px;
  height: 76px;
  border-radius: 24px 24px 13px 13px;
  background: #a97455;
  box-shadow: inset 0 8px rgba(255, 255, 255, .08);
}
.sofa-seat {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 18px;
  left: 12px;
  height: 48px;
  border-radius: 12px;
  background: #bd8967;
}
.sofa-arm {
  position: absolute;
  z-index: 2;
  top: 64px;
  width: 34px;
  height: 65px;
  border-radius: 14px 14px 8px 8px;
  background: #9d6d51;
}
.arm-left { left: 0; }
.arm-right { right: 0; }
.cushion {
  position: absolute;
  z-index: 3;
  top: 76px;
  width: 73px;
  height: 39px;
  border-radius: 10px;
  background: #d5ab81;
}
.cushion-one { left: 39px; transform: rotate(-3deg); }
.cushion-two { right: 39px; transform: rotate(3deg); }
.sofa-leg {
  position: absolute;
  bottom: 0;
  width: 6px;
  height: 17px;
  border-radius: 0 0 3px 3px;
  background: #624632;
}
.leg-left { left: 31px; }
.leg-right { right: 31px; }

.fox { position: absolute; z-index: 5; right: 76px; bottom: 48px; width: 82px; height: 120px; }
.fox-body {
  position: absolute;
  bottom: 4px;
  left: 15px;
  width: 57px;
  height: 62px;
  border: 2px solid #a34f2b;
  border-radius: 45% 45% 30% 30%;
  background: #ce7142;
}
.fox-tail {
  position: absolute;
  bottom: 5px;
  left: -17px;
  width: 48px;
  height: 28px;
  border: 2px solid #a34f2b;
  border-radius: 55% 45% 48% 55%;
  background: #ce7142;
  transform: rotate(10deg);
}
.fox-tail::after {
  position: absolute;
  top: 5px;
  left: -2px;
  width: 17px;
  height: 15px;
  border-radius: 60% 35% 45% 55%;
  background: #f5e8d7;
  content: "";
}
.fox-belly {
  position: absolute;
  bottom: 4px;
  left: 27px;
  width: 32px;
  height: 40px;
  border-radius: 60% 60% 30% 30%;
  background: #f5e8d7;
}
.fox-ear {
  position: absolute;
  z-index: 1;
  top: 3px;
  width: 22px;
  height: 30px;
  border: 2px solid #a34f2b;
  background: #ce7142;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.ear-left { left: 15px; transform: rotate(-10deg); }
.ear-right { right: 10px; transform: rotate(10deg); }
.fox-head {
  position: absolute;
  z-index: 2;
  top: 15px;
  left: 14px;
  width: 56px;
  height: 51px;
  border: 2px solid #a34f2b;
  border-radius: 46% 46% 43% 43%;
  background: #ce7142;
}
.fox-muzzle { position: absolute; bottom: 1px; left: 9px; width: 34px; height: 20px; border-radius: 50%; background: #f5e8d7; }
.fox-eye { position: absolute; z-index: 2; top: 22px; width: 5px; height: 6px; border-radius: 50%; background: #332c28; }
.eye-left { left: 12px; }
.eye-right { right: 12px; }
.fox-nose { position: absolute; z-index: 3; bottom: 13px; left: 24px; width: 7px; height: 6px; border-radius: 50%; background: #49342d; }
.fox-leg { position: absolute; z-index: 3; bottom: 2px; width: 16px; height: 22px; border-radius: 8px; background: #a34f2b; }
.fox-leg-left { left: 17px; }
.fox-leg-right { right: 8px; }

.section { padding: 44px 0 54px; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 10px 0 22px; }
h2 { margin: 0; font-size: clamp(29px, 4vw, 36px); font-weight: 400; letter-spacing: -.05em; }
h3 { margin: 0 0 8px; font-size: 21px; font-weight: 400; }
.section-intro { max-width: 670px; color: var(--muted); font-size: 15px; line-height: 1.8; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 22px; }
.card { padding: 21px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); }
.card p, .about-copy p, .policy-copy p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.card p:last-child, .about-copy p:last-child, .policy-copy p:last-child { margin-bottom: 0; }
.card-meta { display: block; margin-bottom: 11px; color: var(--accent); font: 700 10px Arial, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.service-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.filter-button {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 13px Arial, sans-serif;
  cursor: pointer;
}
.filter-button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.about-box { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; padding: 32px; border-radius: 5px; background: var(--accent-soft); }
.about-copy p { margin: 0 0 14px; }
.link-list { display: grid; gap: 0; max-width: 750px; margin-top: 20px; border-top: 1px solid var(--line); }
.link-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.link-row strong { font: 13px Arial, sans-serif; }
.link-row span, .link-row a { color: var(--muted); font-size: 14px; line-height: 1.6; }
.link-row a { text-decoration: underline; text-underline-offset: 3px; }
.notice { margin-top: 18px; padding: 15px 17px; border-left: 3px solid var(--accent); background: var(--surface); color: var(--muted); font-size: 13px; line-height: 1.7; }
.policy-copy { max-width: 760px; }
.policy-copy h3 { margin-top: 24px; font-size: 19px; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: 12px/1.8 Arial, sans-serif;
}
footer a { text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 7px 14px; }

@media (max-width: 760px) {
  .page { width: min(100% - 32px, 560px); }
  header { align-items: flex-start; flex-wrap: wrap; }
  .header-right { width: 100%; justify-content: space-between; }
  nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 55px; }
  .room { min-height: 310px; }
  .painting { right: 26px; transform: scale(.9); transform-origin: top right; }
  .sofa { right: 10px; transform: scale(.88); transform-origin: bottom right; }
  .plant { left: 23px; }
  .fox { right: 65px; }
  .cards { grid-template-columns: 1fr; }
  .about-box { grid-template-columns: 1fr; gap: 12px; padding: 24px; }
  .link-row { grid-template-columns: 115px 1fr; gap: 12px; }
  footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.service-card {
  cursor: pointer;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  outline: none;
  transform: translateY(-2px);
}

.service-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.service-dialog {
  width: min(520px, calc(100% - 32px));
  max-height: min(80vh, 700px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.service-dialog::backdrop {
  background: rgba(25, 20, 17, .58);
  backdrop-filter: blur(3px);
}

.service-dialog-content {
  position: relative;
  padding: 30px;
}

.service-dialog h2 {
  padding-right: 32px;
}

.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text);
  font: 24px/1 Arial, sans-serif;
  cursor: pointer;
}

.dialog-close:hover {
  border-color: var(--accent);
}

.dialog-description {
  margin: 16px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.8;
}

.dialog-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog-link-button {
  display: inline-block;
  padding: 10px 15px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  background: var(--accent);
  color: var(--surface);
  font: 14px Arial, sans-serif;
  text-decoration: none;
}

.dialog-link-button:hover {
  background: var(--accent-soft);
  color: var(--text);
}

@media (max-width: 600px) {
  .service-dialog-content {
    padding: 24px;
  }
}

.service-title-row,
.dialog-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-title-row {
  margin: 10px 0 8px;
}

.service-title-row h3,
.dialog-title-row h2 {
  margin: 0;
}

.service-icon {
  position: relative;
  display: inline-grid;
  flex: 0 0 32px;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  color: var(--accent);
}

/* Matrix [m] Icon */
.icon-matrix::before {
  content: "[m]";
  font: 700 20px/1 Arial, sans-serif;
}

/* XMPP Icon */
.icon-xmpp {
  position: relative;
}

.icon-xmpp::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 512px;
  height: 512px;
  content: "";
  background: currentColor;
  clip-path: path(
    "M32 88h16v16h16v8h24v8h24v8h24v8h24v16h16v56h8v16h8v32h8v16h8v24h8v16h16v16h16v8h16v-8h16v-16h16v-16h8v-24h8v-16h8v-32h8v-16h8v-56h16v-16h24v-8h24v-8h24v-8h24v-16h16v56h-8v24h-8v24h-8v24h-8v16h-8v16h-16v16h-8v16h-16v16h-16v16h-16v16h-16v16h-16v16h-16v16h16v8h32v8h24v8h24v16h16v24h-40v-8h-24v-8h-24v-8h-24v-8h-24v-8h-16v-8h-16v-8h-16v8h-16v8h-16v8h-24v8h-24v8h-24v8h-24v8h-40v-24h16v-16h24v-8h24v-8h32v-8h16v-16h-16v-16h-16v-16h-16v-16h-16v-16h-16v-16h-16v-16h-16v-16h-8v-16h-8v-16h-8v-24h-8v-24h-8v-24h-8z"
  );
  transform: scale(0.046875);
  transform-origin: top left;
}

/* GoToSocial Icon */
.icon-gotosocial {
  position: relative;
  display: inline-block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--accent);
}

.icon-gotosocial::before {
  position: absolute;
  inset: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 19 18H5L12 4Z' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4 19 18H5L12 4Z' fill='none' stroke='white' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.icon-gotosocial::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 16.67%, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 20.83% 75%, currentColor 0 3px, transparent 3.5px),
    radial-gradient(circle at 79.17% 75%, currentColor 0 3px, transparent 3.5px);
  content: "";
}

/* Gitea Icon */
.icon-gitea {
  background:
    /* steam */
    linear-gradient(currentColor, currentColor) 9px 4px / 2px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 15px 2px / 2px 7px no-repeat,
    linear-gradient(currentColor, currentColor) 21px 4px / 2px 5px no-repeat,
    /* saucer */
    linear-gradient(currentColor, currentColor) 7px 28px / 20px 2px no-repeat;
}

.icon-gitea::before {
  position: absolute;
  top: 12px;
  left: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 2px 2px 6px 6px;
  background: var(--accent-soft);
  content: "";
}

.icon-gitea::after {
  position: absolute;
  top: 14px;
  left: 22px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-left: 0;
  border-radius: 5px 6px 6px 0;
  content: "";
}

/* Pastebin Icon */
.icon-pastebin::before {
  width: 18px;
  height: 23px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background:
    linear-gradient(currentColor, currentColor) 4px 6px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 11px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 16px / 7px 2px no-repeat,
    var(--accent-soft);
  content: "";
}

.dialog-title-row .service-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
}

@media (max-width: 600px) {
  .dialog-title-row {
    gap: 10px;
  }
}

.service-card {
  position: relative;
}

.service-card .service-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.service-card .service-title-row {
  padding-right: 40px;
}

/* Crypto wallet buttons */
.wallet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.wallet-button,
.copy-button {
  appearance: none;
  border: 1px solid #9b7658;
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
  background: #6f4b35;
  color: #fffaf3;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.wallet-button:hover,
.copy-button:hover {
  background: #865c40;
  border-color: #865c40;
}

.wallet-button:active,
.copy-button:active {
  transform: translateY(1px);
}

.wallet-button:focus-visible,
.copy-button:focus-visible,
.dialog-close:focus-visible {
  outline: 3px solid #c98f59;
  outline-offset: 3px;
}

/* Wallet popup */
.wallet-dialog {
  box-sizing: border-box;
  width: min(90vw, 30rem);
  max-width: 30rem;
  max-height: 90vh;
  overflow: auto;
  padding: 0;
  border: 1px solid #d8c7b5;
  border-radius: 1rem;
  background: #f5f0e8;
  color: #34271f;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 30%);
}

.wallet-dialog::backdrop {
  background: rgb(0 0 0 / 65%);
}

.wallet-dialog-content {
  position: relative;
  padding: 2rem;
  text-align: center;
  color: inherit;
}

.wallet-dialog-content h2,
.wallet-dialog-content .card-meta,
.wallet-dialog-content code,
.wallet-dialog-content .copy-status {
  color: inherit;
}

.wallet-dialog-content h2 {
  margin: 0.5rem 0 1rem;
  color: #c98f59;
}

.dialog-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  padding: 0.2rem 0.5rem;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.wallet-qr {
  display: block;
  width: min(100%, 18rem);
  height: auto;
  margin: 1.25rem auto;
  border-radius: 0.5rem;
  background: #fff;
}

.wallet-address-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.wallet-address-row code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 0.65rem;
  border: 1px solid #d8c7b5;
  border-radius: 0.5rem;
  background: rgb(0 0 0 / 4%);
  font-size: 0.9rem;
}

.copy-status {
  min-height: 1.5em;
  margin-bottom: 0;
  font-size: 0.9rem;
}

/* Dark theme */
html[data-theme="dark"] .wallet-dialog {
  border-color: #51463d;
  background: #28231f;
  color: #f5f0e8;
}

html[data-theme="dark"] .wallet-address-row code {
  border-color: #51463d;
  background: rgb(255 255 255 / 7%);
  color: #f5f0e8;
}

html[data-theme="dark"] .dialog-close {
  color: #f5f0e8;
}

@media (max-width: 420px) {
  .wallet-dialog-content {
    padding: 1.5rem 1rem;
  }

  .wallet-address-row {
    align-items: stretch;
    flex-direction: column;
  }

  .copy-button {
    align-self: flex-start;
  }
}
