/* Components added for the live panel: sign-in, navigation links, panels, stats, forms,
   switches, status pills and data tables. Built on the tokens in tokens.css. */

/* ---- Boot & shell -------------------------------------------------------------------------- */
body.booting > :not(.bootsplash):not(svg) {
  visibility: hidden;
}
.bootsplash {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: var(--space-3);
  color: var(--color-text-muted);
  font-size: var(--text-label);
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
a {
  color: var(--color-action);
}
a.navitem,
a.sidefoot,
a.avatar,
a.networkcard,
a.button {
  text-decoration: none;
}
a.navitem:focus-visible,
a.sidefoot:focus-visible,
a.networkcard:focus-visible,
a.button:focus-visible,
a.avatar:focus-visible {
  outline: 2px solid #8fb0ff;
  outline-offset: -2px;
}
.sidelabelgap {
  margin-top: var(--space-6);
}
.sidebar .sidenav + .sidelabel {
  margin-top: 26px;
}
.sidefoot {
  color: #b8c9e9;
  border-radius: 8px;
}
.sidefoot:hover {
  color: #fff;
}
.sidefoot div {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidefoot small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidepreview {
  white-space: nowrap;
}
.sidepreview.warn {
  color: #ff9aa6;
}
.networkcard {
  display: grid;
  gap: 6px;
  margin: 0 0 27px;
  padding: 12px;
  border: 1px solid #34446a;
  border-radius: 9px;
  background: #1a2849;
  color: #f0f5ff;
}
.networkcard:hover {
  background: #213257;
  border-color: #4a6195;
}
.networkcardlabel {
  font-size: 11px;
  font-weight: 600;
  color: #8ea3cb;
}
.networkcardname {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 650;
}
.netbadge {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.netbadge.testnet {
  color: #ffd699;
  background: #ffb02e1f;
  border: 1px solid #ffb02e45;
}
.netbadge.mainnet {
  color: #9ff0c7;
  background: #1fc77a1f;
  border: 1px solid #1fc77a45;
}
.networkcardsync {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #b9c9e7;
  font-variant-numeric: tabular-nums;
}
.syncdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8b9abd;
}
[data-state="Synced"] .syncdot {
  background: #33d17a;
  box-shadow: 0 0 0 3px #33d17a2b;
}
[data-state="CatchingUp"] .syncdot {
  background: #6f9bff;
  animation: pulse 1.4s ease-in-out infinite;
}
[data-state="Stalled"] .syncdot {
  background: #ff6b7d;
}
.networkcard .capacitytrack i {
  transition: width 0.4s;
}
@keyframes pulse {
  50% {
    opacity: 0.35;
  }
}
.apibadge {
  font-size: 11px;
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}
.appsignout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.appsignout .icon {
  width: 15px;
  height: 15px;
}
.compacthead .networkglyph img {
  display: block;
}
.compacthead .networkglyph .icon {
  width: 22px;
  height: 22px;
}
.compacthead .actions a.button {
  padding: 9px 12px;
  font-size: 12px;
}
.headtitleline h1 {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .apibadge,
  .appsignout span {
    display: none;
  }
}

/* ---- Buttons ------------------------------------------------------------------------------- */
a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--color-text);
  font-weight: 600;
}
a.button:hover {
  background: var(--color-surface-hover);
}
a.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
a.button.primary:hover {
  background: var(--deep);
}
button.danger,
.danger {
  background: #d33b4f;
  border-color: #d33b4f;
  color: #fff;
}
button.danger:hover {
  background: #b82a3d;
}
.dangerlink {
  color: #c2334a;
}
.dangerlink:hover {
  background: #fff1f3;
}
button.busy {
  position: relative;
  color: transparent !important;
}
button.busy::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-color: #9fb3dd #9fb3dd transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
.primary.busy::after,
.danger.busy::after {
  border-color: #fff #fff transparent;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Status pills -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.pill-neutral {
  color: #4f6386;
  background: #f1f4fa;
  border-color: #e3e9f3;
}
.pill-info {
  color: #2c56c9;
  background: #eef2ff;
  border-color: #dbe4ff;
}
.pill-success {
  color: #17804f;
  background: #ecf9f2;
  border-color: #cdeedc;
}
.pill-warn {
  color: #a45f06;
  background: #fff6e8;
  border-color: #f7e1bb;
}
.pill-danger {
  color: #bf2d43;
  background: #fff1f3;
  border-color: #f8d6dc;
}
.pill-muted {
  color: #7a88a1;
  background: #f5f7fb;
  border-color: #e7ebf3;
}
.pillrow {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.warntext {
  color: #b86b07;
}

/* ---- Coins --------------------------------------------------------------------------------- */
.coin-ton {
  --coin: #0a78c2;
  --coin-bg: #eef8ff;
  --coin-border: #cfe8fa;
}
.coin-jetton {
  --coin: #5a5fb8;
  --coin-bg: #f4f4fd;
  --coin-border: #e2e3f7;
}
.coinglyph {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: hsl(var(--glyph-hue) 60% 46%);
  color: #fff;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: -0.2px;
}
.coinstack {
  display: grid;
  gap: 2px;
  margin-left: auto;
  text-align: right;
}
.detailcoins .coinstack strong {
  margin: 0;
}
.coinstack small {
  font-size: 11px;
  font-weight: 550;
  opacity: 0.8;
}

/* ---- Wallet directory ---------------------------------------------------------------------- */
.directory.loading tbody {
  opacity: 0.55;
  transition: opacity 0.15s;
}
.rowdisabled {
  background: #fbfbfd;
}
.rowdisabled .addr,
.rowdisabled .labeltext {
  opacity: 0.65;
}
.favbtn {
  color: #b3bdd0;
}
.favbtn .icon {
  width: 16px;
  height: 16px;
}
.favbtn.on {
  color: #f1a511;
}
.favbtn.on .icon {
  fill: currentColor;
}
.addressmeta .pill {
  min-height: 20px;
  font-size: 10.5px;
}
.pagesizeselect {
  margin-left: 12px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #7285a3;
  font-size: 11px;
}
.search input[type="search"]::-webkit-search-cancel-button {
  cursor: pointer;
}
.skeletonrow td i,
.skeletoncard {
  display: block;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #eff3fa 25%, #f8faff 50%, #eff3fa 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
.skeletonrow td {
  padding-block: 26px !important;
}
.skeletoncard {
  height: 120px;
  border-radius: 10px;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.empty.compact {
  padding: 10px 20px 20px;
}
.emptyaction {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
}

/* ---- Drawer additions ---------------------------------------------------------------------- */
.headmeta {
  margin-left: auto;
  margin-right: 15px;
  font-size: 11px;
  color: #92a3bf;
}
.labelhint {
  float: right;
  letter-spacing: 0;
  font-weight: 500;
  color: #a2aec2;
}
.labelhint.ok {
  color: #17804f;
}
.rawaddress {
  margin-top: 10px;
  font-size: 12px;
  color: #7285a3;
}
.rawaddress summary {
  cursor: pointer;
  font-weight: 600;
  padding: 4px 0;
}
.rawaddress .fulladdress {
  font-size: 11px;
  margin: 4px 0;
}
.togglelist {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 9px;
}
.togglerow {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
}
.togglelist .togglerow + .togglerow {
  border-top: 1px solid var(--line);
}
.togglerow.boxed {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.togglerow strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.togglerow small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: #7c8da8;
}
.togglerow > div {
  flex: 1;
  min-width: 0;
}
.switch {
  position: relative;
  flex: none;
  width: 40px;
  height: 23px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfd8e8;
  transition: background 0.15s;
}
.switch:hover {
  background: #bfcae0;
}
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0e143030;
  transition: transform 0.15s;
}
.switch[aria-checked="true"] {
  background: var(--blue);
}
.switch[aria-checked="true"] i {
  transform: translateX(17px);
}
.switch.busy::after {
  display: none;
}
.factlist {
  display: grid;
  margin: 18px 0 0;
}
.factlist > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1f7;
  font-size: 13px;
}
.factlist > div:last-child {
  border-bottom: 0;
}
.factlist dt {
  color: #7c8da8;
  font-weight: 550;
}
.factlist dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #2f4263;
  min-width: 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.factlist dd small {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 11px;
  color: #8a9ab4;
}
.factlist.two {
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
}
.mono,
.mono input,
input.mono,
textarea.mono {
  font-family: var(--font-mono);
}
dd.mono {
  font-size: 12px;
}
.inspectoractions {
  flex-wrap: wrap;
}
.inspectoractions a.button {
  flex: 1;
  font-size: 13px;
  padding: 12px 9px;
}

/* ---- Pages --------------------------------------------------------------------------------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
}
.panelhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.panelhead h2,
.sectiontitle h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.panelbody {
  padding: 18px 20px 20px;
}
.panelbody > .factlist:first-child {
  margin-top: 0;
}
.paneltext {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.65;
  color: #6f819e;
}
.panelbody .factlist + .paneltext {
  margin-top: 14px;
}
.paneltoolbar {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.pageerror {
  padding: 20px;
}
.pageerror button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-top: 12px;
}
.sectiontitle {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 20px 2px 10px;
}
.sectiontitle span {
  font-size: 12px;
  color: #8a9ab4;
}
.statgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.statcard {
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--coin, var(--blue));
  border-radius: 12px;
}
.statcard.skeletoncard {
  border-top-width: 1px;
}
.stathead {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stathead strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--coin, var(--ink));
}
.stathead small {
  display: block;
  font-size: 11px;
  color: #8a9ab4;
  margin-top: 2px;
}
.statvalue {
  margin: 14px 0 12px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.statfacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid #eef1f7;
}
.statfacts dt {
  font-size: 11px;
  color: #8a9ab4;
  font-weight: 550;
}
.statfacts dd {
  margin: 3px 0 0;
  font-size: 13px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.overviewgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.overviewgrid .panel {
  margin-bottom: 14px;
}
.progressline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-variant-numeric: tabular-nums;
}
.progress {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: #edf1f8;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  min-width: 4px;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #6d8dff);
  transition: width 0.5s;
}
.narrowpanel {
  max-width: 760px;
}
@media (max-width: 1000px) {
  .overviewgrid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1400px) {
  .overviewgrid .factlist.two {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1000px) {
  .factlist.two {
    grid-template-columns: 1fr;
  }
}

/* ---- Data tables --------------------------------------------------------------------------- */
.datatable {
  min-width: 860px;
  table-layout: auto;
}
.datatable th {
  font-size: 10px;
  padding: 10px 13px;
  white-space: nowrap;
}
.datatable td {
  padding: 13px;
  font-size: 13px;
}
.datatable tbody tr {
  cursor: default;
}
.tokencell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tokencell strong,
.cellstrong {
  display: block;
  font-weight: 650;
}
.tokencell small,
.cellsub {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #8a9ab4;
}
.monocell {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 340px;
}
.monocell .fulladdress {
  font-size: 11.5px;
  line-height: 1.5;
}
.rowactions {
  text-align: right;
  white-space: nowrap;
}
.rowactions button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 4px;
}
.rowactions .icon {
  width: 14px;
  height: 14px;
}
.keyprefix,
.iplist code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: #3b5584;
  background: #f3f6fc;
  border: 1px solid #e5ebf5;
  border-radius: 4px;
  padding: 2px 6px;
}
.iplist {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

/* ---- Forms & dialogs ----------------------------------------------------------------------- */
.modal.wide {
  width: 640px;
}
.modal textarea,
.panel textarea,
.panel input:not([type="checkbox"]),
.panel select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  font-size: 14px;
  background: #fff;
  color: #34496b;
  font-family: inherit;
}
.modal textarea,
.panel textarea {
  resize: vertical;
  line-height: 1.5;
}
.modal input[readonly],
.readonlybox {
  background: #f7f9fc;
  color: #6f819e;
}
.readonlybox {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}
.panel label,
.checklist legend {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #7184a4;
  margin: 16px 0 8px;
}
.panel form > label:first-of-type {
  margin-top: 0;
}
.panel .primary,
.panel .danger {
  margin-top: 20px;
}
.fieldrow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 620px) {
  .fieldrow {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
.secretinput {
  font-family: var(--font-mono);
  -webkit-text-security: disc;
}
.secretinput:focus {
  -webkit-text-security: none;
}
.codeinput {
  font-family: var(--font-mono);
  font-size: 20px !important;
  letter-spacing: 6px;
  text-align: center;
}
.checklist {
  border: 0;
  padding: 0;
  margin: 0;
}
.checkrow {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--ink) !important;
}
.checklist .checkrow + .checkrow {
  margin-top: 6px !important;
}
.checkrow input {
  width: auto !important;
  margin-top: 2px;
  accent-color: var(--blue);
}
.checkrow strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}
.checkrow small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: #7c8da8;
}
.checkrow.ack {
  margin-top: 18px !important;
  background: #f8faff;
}
.modalactions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 22px;
}
.modalactions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.modal .modalactions .primary {
  width: auto;
  margin-top: 0;
}
.modal .danger {
  margin-top: 0;
}
.notice.warn {
  border-color: #f7e1bb;
  background: #fffaf1;
  color: #946019;
}
.authnotice {
  margin: 0 0 6px;
}
.formerror {
  margin: 14px 0 4px;
  padding: 11px 13px;
  border: 1px solid #f5ccd3;
  background: #fff4f6;
  border-radius: 8px;
  color: #a3263b;
  font-size: 13px;
  line-height: 1.5;
}
.formerror strong {
  font-weight: 600;
}
.errormeta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 5px;
  font-size: 11px;
  color: #bb6273;
}
.errormeta code {
  font-family: var(--font-mono);
  overflow-wrap: anywhere;
}
.secretbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #e4eaf5;
  border-radius: 8px;
  background: #f8faff;
}
.secretbox code {
  flex: 1;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.6;
  color: #243a60;
  overflow-wrap: anywhere;
}
.copyfallback {
  font-family: var(--font-mono);
}
.recoverycodes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 20px;
  margin: 16px 0 0;
  padding: 14px 14px 14px 36px;
  background: #f8faff;
  border: 1px solid #e4eaf5;
  border-radius: 8px;
}
.recoverycodes code {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #243a60;
}
.qrlarge.small {
  width: 220px;
  margin-block: 16px;
}
.preview {
  margin-top: 6px;
  font-size: 12px;
  color: #7c8da8;
  overflow-wrap: anywhere;
}
.preview .icon {
  width: 12px;
  height: 12px;
}
.formfooter {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 0;
  background: linear-gradient(transparent, var(--bg) 35%);
}
.formfooter .primary,
.formfooter .danger,
.formfooter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0; /* .panel .primary / .panel .danger add a top margin meant for stacked forms */
  min-height: 40px;
  line-height: 1.2;
}
.savedstate {
  margin-right: auto;
  font-size: 12px;
  color: #8a9ab4;
}
.settingsform .formerrorslot:not(:empty) {
  margin-bottom: 12px;
}
.toast[data-kind="error"] {
  background: #7d1c2c;
}

/* ---- Sign in ------------------------------------------------------------------------------- */
.authscreen {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  min-height: 100vh;
}
.authbrand {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 44px;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.authbrand::after {
  content: "";
  position: absolute;
  right: -120px;
  bottom: -120px;
  width: 520px;
  height: 520px;
  background: repeating-radial-gradient(ellipse at center, transparent 0 29px, #5682ff17 30px 31px, transparent 32px 48px);
  transform: rotate(-28deg);
  z-index: -1;
}
.authbrand .brand {
  font-size: 22px;
}
.authpitch {
  margin-top: auto;
  max-width: 400px;
}
.authpitch h2 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.8px;
  margin: 0 0 14px;
}
.authpitch p {
  color: #9fb1d6;
  line-height: 1.7;
  font-size: 14px;
  margin: 0;
}
.authfoot {
  margin-top: 40px;
  font-size: 12px;
  color: #6d82ad;
}
.authpanel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.authcard {
  width: 100%;
  max-width: 400px;
}
.authcard h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 10px 0 6px;
}
.authlead {
  margin: 0 0 18px;
  color: #6f819e;
  font-size: 14px;
  line-height: 1.6;
}
.authcard label {
  display: block;
  margin: 16px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #5d7092;
}
.authcard input {
  width: 100%;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #dbe2ee;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
  color: var(--ink);
}
.authcard .primary {
  width: 100%;
  height: 46px;
  margin-top: 22px;
  font-weight: 650;
}
.authlinks {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
}
@media (max-width: 860px) {
  .authscreen {
    grid-template-columns: 1fr;
  }
  .authbrand {
    padding: 22px 20px;
  }
  .authpitch,
  .authfoot {
    display: none;
  }
}

/* ---- Refresh control ----------------------------------------------------------------------- */
.refreshctl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.refreshctl .exportbutton {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-secondary);
}
.refreshctl .icon {
  width: 14px;
  height: 14px;
}
.refreshctl .spinning .icon {
  animation: spin 0.8s linear infinite;
}
.refreshctl select {
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #5d7092;
  font-size: 12px;
  font-weight: 600;
}
.refreshstamp {
  font-size: 11px;
  color: #98a6bc;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.refreshstamp.stale {
  color: #c2334a;
}
.subtoolbar .right + .linkbutton,
.subtoolbar .right ~ .refreshctl {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .refreshstamp {
    display: none;
  }
}

/* ---- Transactions -------------------------------------------------------------------------- */
.txtoolbar {
  flex-wrap: wrap;
}
.txtoolbar .search {
  min-width: 240px;
}
.datefield {
  gap: 6px;
}
.datefield input {
  width: auto !important;
  height: auto !important;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  color: #5d7092;
  accent-color: var(--blue);
}
.txtable {
  min-width: 1080px;
}
.txtable tbody tr {
  cursor: pointer;
}
.txtable .num {
  text-align: right;
}
.txamount {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.txamount strong {
  font-size: 14px;
  font-weight: 700;
}
.txamount.in strong {
  color: #17804f;
}
.txamount.out strong {
  color: #2f4263;
}
.txamount span {
  font-size: 11px;
  font-weight: 600;
  color: var(--coin, #7c8da8);
}
.txaddr {
  font-size: 12px;
  color: #50688f;
}
.monocell a.iconbtn {
  display: inline-flex;
}
.freshrow {
  animation: freshrow 2.4s ease-out;
}
@keyframes freshrow {
  from {
    background: #e6f7ee;
  }
  to {
    background: transparent;
  }
}
.txhero {
  display: flex;
  align-items: center;
  gap: 12px;
}
.txhero > div {
  flex: 1;
  min-width: 0;
}
.txhero strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.txhero strong span {
  font-size: 14px;
  color: var(--coin);
}
.txhero small {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #8a9ab4;
}
.txfacts {
  margin-top: 0;
}
.txfacts dd {
  max-width: 62%;
}
.txfacts dd .mono,
.txfacts dd small.mono {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
}
.txfacts .copycompact {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 0;
}


/* ---- Withdrawals ------------------------------------------------------------------------- */
.balancecell { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.balancecell .coinbadges { flex: 1; min-width: 0; }
.withdrawbtn { flex: none; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.button.small { padding: 4px 10px; font-size: 12px; }
.withdrawlayout { display: grid; gap: 18px; max-width: 880px; }
.withdrawbalance { margin: 4px 0 14px; display: grid; gap: 8px; }
.withdrawbalance .coinbadge.on { outline: 2px solid var(--accent, #2f7cf6); outline-offset: 1px; }
.bigamount { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.tokenchoices { display: grid; gap: 8px; margin: 14px 0 6px; }
.tokenchoice { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line, #2a2f3a); border-radius: 10px; background: transparent; cursor: pointer; color: inherit; }
.tokenchoice:hover, .tokenchoice:focus-visible { border-color: var(--accent, #2f7cf6); }
.tokenchoice span { display: grid; }
.tokenchoice small { opacity: 0.7; }
.txamount.out { color: var(--danger-text, #e5484d); font-variant-numeric: tabular-nums; }
.rowopen td:first-child { box-shadow: inset 3px 0 0 var(--accent, #2f7cf6); }


/* ---- Live notifications -------------------------------------------------------------------- */
#notifystack { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: grid; gap: 10px; width: min(380px, calc(100vw - 36px)); }
.notify { position: relative; display: grid; gap: 3px; padding: 12px 36px 12px 14px; border-radius: 12px; background: #111827; color: #f8fafc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.28); border-left: 4px solid #3b82f6; text-decoration: none; animation: notifyin 0.18s ease-out; }
.notify strong { font-size: 13.5px; }
.notify span { font-size: 12.5px; opacity: 0.8; overflow-wrap: anywhere; }
.notify-success { border-left-color: #22c55e; }
.notify-warn { border-left-color: #f59e0b; }
.notify-error { border-left-color: #ef4444; }
.notify.leaving { opacity: 0; transform: translateX(12px); transition: all 0.2s; }
.notifyclose { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; color: inherit; opacity: 0.6; cursor: pointer; font-size: 12px; }
.notifyclose:hover { opacity: 1; }
@keyframes notifyin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.livestate { margin-left: 8px; font-size: 11px; opacity: 0.85; }
.livestate.live-live { color: #4ade80; }
.livestate.live-reconnecting, .livestate.live-connecting { color: #fbbf24; }
.livestate.live-off { opacity: 0.55; }

#amount.maxmode::placeholder { color: var(--accent, #2f7cf6); opacity: 1; font-weight: 600; }

.receivebox { display: grid; gap: 2px; padding: 14px 16px; margin-bottom: 12px; border-radius: 12px; background: rgba(34, 197, 94, 0.08); border: 1px solid rgba(34, 197, 94, 0.35); }
.receivelabel { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.receivenote { font-size: 12px; opacity: 0.75; }
.receivehint { margin-top: 6px; font-size: 12.5px; min-height: 1.2em; opacity: 0.85; }
.previewline { font-size: 12.5px; margin: -4px 0 14px; padding: 8px 12px; border-radius: 8px; background: rgba(47, 124, 246, 0.07); }

/* Withdraw: fee paid on top vs deducted from the amount */
.feemode { border: 0; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.feemode[hidden] { display: none; }
.feemode legend { font-size: 12px; font-weight: 600; opacity: 0.75; margin-bottom: 4px; padding: 0; }
.feemode label { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line, #e3e6ec); border-radius: 8px; cursor: pointer; font-weight: 400; margin: 0; }
.feemode label:has(input:checked) { border-color: var(--accent, #2f7cf6); background: color-mix(in srgb, var(--accent, #2f7cf6) 6%, transparent); }
.panel .feemode input[type="radio"] { margin: 3px 0 0; width: auto; height: auto; padding: 0; flex: none; min-height: 0; accent-color: var(--accent, #2f7cf6); }
.feemode span { display: grid; gap: 2px; }
.feemode small { font-size: 12px; opacity: 0.7; }

/* Withdraw: review panel skeleton while the quote is estimated */
.skel { display: block; height: 12px; border-radius: 4px; background: linear-gradient(90deg, #eff3fa 25%, #f8faff 50%, #eff3fa 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.factlist dd .skel { display: inline-block; vertical-align: middle; min-width: 90px; }
.factlist.quoteskeleton dd { flex: 1; }
.receivebox.quoteskeleton { gap: 8px; background: #f7f9fc; border-color: #e6ebf3; }
.skel.skelbig { height: 26px; width: 42%; border-radius: 6px; }
.skel.skelfield { height: 42px; width: 100%; margin-top: 8px; border-radius: 7px; }
.skel.skelnotice { height: 54px; width: 100%; margin: 14px 0; border-radius: 8px; }
.skel.skelbutton { height: 38px; width: 190px; margin-left: auto; border-radius: 8px; }
.fieldrow.quoteskeleton { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Tokens: display decimals field with a live example */
.displaydigits { display: flex; gap: 12px; align-items: center; }
.displaydigits input { max-width: 110px; }
.displaydigits .paneltext { font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* Withdraw: what arrives and the network fee, big and side by side */
.feesummary { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 16px 0 4px; }
.feesummary[hidden] { display: none; }
.feesummary.big { margin: 0 0 14px; }
.sumtile { display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; border: 1px solid; min-width: 0; }
.sumtile.receive { background: rgba(34, 197, 94, 0.08); border-color: rgba(34, 197, 94, 0.4); }
.sumtile.fee { background: rgba(245, 158, 11, 0.08); border-color: rgba(245, 158, 11, 0.45); }
.sumlabel { font-size: 11.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: #5b6b86; }
.sumvalue { font-size: 24px; font-weight: 750; line-height: 1.2; color: #1f2f4d; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.feesummary.big .sumvalue { font-size: 28px; }
.sumvalue small { font-size: 0.55em; font-weight: 650; color: #5b6b86; }
.sumtile.receive .sumvalue { color: #137a3a; }
.sumtile.fee .sumvalue { color: #9a5b06; }
.sumnote { font-size: 12.5px; color: #5b6b86; }
.feesummary.quoteskeleton .sumtile { background: #f7f9fc; border-color: #e6ebf3; }
.feesummary.stale { opacity: 0.45; transition: opacity 0.15s; }

/* Withdraw: the footers sit inside white panels — no sticky gradient band, a clean divider instead */
.withdrawlayout .formfooter { position: static; background: none; }
#confirmform .formfooter { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; padding-bottom: 0; }
#confirmform .formfooter button { min-width: 110px; }

/* A broken config.js stops the panel with this message instead of silently dropping a chain. */
.configerror { max-width: 560px; margin: 12vh auto; padding: 0 16px; font: 15px/1.5 system-ui, sans-serif; color: var(--ink, #111); }
.configerror h1 { font-size: 20px; margin: 0 0 8px; }
#chainswitch { margin: 0 12px 10px; }
