:root {
  color-scheme: dark;
  --bg: #080b12;
  --sidebar: rgba(10, 14, 23, 0.94);
  --panel: #111827;
  --panel-soft: #151e2e;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --text: #eef4ff;
  --muted: #8a97ad;
  --blue: #7aa7ff;
  --blue-strong: #537ce7;
  --green: #4bdab2;
  --amber: #f2c76d;
  --red: #f28a9d;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% -10%, rgba(70, 100, 200, 0.14), transparent 38%),
    linear-gradient(145deg, #080b12, #0a0f19);
  color: var(--text);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(110px);
  opacity: 0.13;
}

.ambient-a {
  top: -180px;
  right: 4%;
  background: #5478e8;
}

.ambient-b {
  bottom: -180px;
  left: 30%;
  background: #1a5874;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  width: 248px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(145deg, #6c91f5, #4055b8);
  box-shadow: 0 10px 26px rgba(66, 94, 205, 0.26);
  font-size: 19px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
  letter-spacing: 0.06em;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.17em;
}

.side-label {
  margin: 0 8px 12px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(122, 167, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(122, 167, 255, 0.12), rgba(122, 167, 255, 0.035));
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.device-card:hover {
  border-color: rgba(122, 167, 255, 0.48);
  transform: translateY(-1px);
}

.device-card-copy {
  flex: 1;
  min-width: 0;
}

#device-select {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

#device-select option {
  background: #111827;
  color: var(--text);
}

.device-card-copy strong,
.device-card-copy small {
  display: block;
}

.device-card-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.mini-phone {
  width: 25px;
  height: 38px;
  padding: 3px;
  border: 1.5px solid #9db9ff;
  border-radius: 7px;
}

.mini-phone span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(160deg, #527ce0, #1a2c51);
}

.online-dot,
.local-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(75, 218, 178, 0.8);
}

.side-note {
  margin: 18px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.sidebar-bottom {
  margin-top: auto;
  color: var(--muted);
  font-size: 11px;
}

.local-dot {
  width: 6px;
  height: 6px;
  margin-right: 7px;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 1600px;
  margin-left: 248px;
  padding: 34px 40px 24px;
}

.topbar,
.device-title-row,
.section-heading,
.group-heading,
.wallet-head,
.wallet-meta,
.wallet-open,
.modal-wallet-head,
.modal-actions,
.file-card {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 5px;
  color: #75849c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.topbar h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.local-badge,
.record-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #aab7ca;
  font-size: 11px;
}

.local-badge span {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(130deg, rgba(21, 30, 46, 0.98), rgba(12, 18, 29, 0.98));
  box-shadow: var(--shadow);
}

.phone-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px;
  border: 0;
  border-right: 1px solid var(--line);
  background: radial-gradient(circle at 50% 44%, rgba(83, 124, 231, 0.22), transparent 62%);
  color: var(--text);
  cursor: pointer;
}

.phone {
  position: relative;
  display: block;
  width: 142px;
  height: 276px;
  padding: 6px;
  border: 2px solid #56647b;
  border-radius: 28px;
  background: #05070c;
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.46), inset 0 0 0 2px #171e2b;
  transition: transform 0.25s;
}

.phone-stage:hover .phone {
  transform: translateY(-5px);
}

.phone-rim {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
}

.notch {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 54px;
  height: 13px;
  border-radius: 10px;
  background: #05070c;
  transform: translateX(-50%);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding: 45px 16px 16px;
  border-radius: 21px;
  background: linear-gradient(155deg, #3156ad, #172844 55%, #111827);
}

.phone-screen small {
  color: #a5bdef;
  font-size: 7px;
  letter-spacing: 0.18em;
}

.phone-screen strong {
  margin-top: 17px;
  font-size: 29px;
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.phone-os {
  margin-top: 10px;
  color: #b7c7e7;
  font-size: 11px;
}

.phone-proof {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  color: var(--green);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.phone-proof i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}

.view-hint {
  position: absolute;
  bottom: 14px;
  color: var(--muted);
  font-size: 10px;
}

.view-hint b {
  margin-left: 5px;
  color: var(--blue);
}

.hero-content {
  padding: 30px 32px;
}

.device-title-row {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.device-title-row h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.record-pill {
  border-color: rgba(122, 167, 255, 0.2);
  background: rgba(122, 167, 255, 0.07);
  color: #b1cbff;
}

.hero-description {
  max-width: 720px;
  margin: 16px 0 24px;
  color: var(--muted);
  line-height: 1.8;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 10px;
}

.stat {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.stat small {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.stat strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}

.stat em {
  margin-left: 5px;
  color: var(--green);
  font-size: 11px;
  font-style: normal;
}

.tabs {
  display: flex;
  gap: 4px;
  margin: 24px 0 20px;
  border-bottom: 1px solid var(--line);
}

.tab {
  position: relative;
  padding: 12px 17px;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
}

.tab.active {
  color: var(--text);
}

.tab.active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: -1px;
  left: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.tab span {
  margin-left: 5px;
  color: var(--blue);
  font-size: 11px;
}

.panel-view {
  animation: enter 0.2s ease-out;
}

@keyframes enter {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.section-heading {
  align-items: flex-end;
  justify-content: space-between;
  margin: 22px 0 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: 19px;
}

.subtle {
  color: var(--muted);
  font-size: 11px;
}

.decryption-groups {
  display: flex;
  gap: 8px;
  margin: 0 0 18px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.decryption-group {
  flex: 1;
  min-width: 150px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.decryption-group:hover {
  color: var(--text);
  border-color: rgba(122, 167, 255, 0.28);
}

.decryption-group.active {
  border-color: rgba(122, 167, 255, 0.36);
  background: rgba(122, 167, 255, 0.1);
  color: #c9dcff;
}

.wallet-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wallet-group {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(17, 24, 39, 0.72);
}

.wallet-group .wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.wallet-group .group-heading {
  align-items: baseline;
  flex-direction: row;
  gap: 12px;
  min-height: 0;
}

.group-heading {
  align-items: baseline;
  gap: 12px;
  margin: 0 0 11px;
}

.group-heading h4 {
  margin: 0;
  font-size: 13px;
}

.group-heading span {
  color: var(--muted);
  font-size: 10px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.wallet-grid-flat {
  grid-template-columns: repeat(5, minmax(130px, 1fr));
  overflow-x: auto;
}

.wallet-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(21, 30, 46, 0.94), rgba(14, 21, 33, 0.94));
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.wallet-card:hover {
  border-color: rgba(122, 167, 255, 0.3);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  transform: translateY(-2px);
}

.wallet-card.compact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 102px;
  padding: 16px;
}

.wallet-head {
  gap: 11px;
}

.wallet-logo {
  width: 40px;
  height: 40px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
}

.wallet-card.compact .wallet-logo {
  width: 42px;
  height: 42px;
}

.wallet-name {
  flex: 1;
  font-weight: 700;
}

.status-pill,
.install-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill {
  padding: 4px 8px;
}

.status-pill.ciphertext {
  border: 1px solid rgba(242, 199, 109, 0.18);
  background: rgba(242, 199, 109, 0.08);
  color: var(--amber);
}

.status-pill.decrypted {
  border: 1px solid rgba(75, 218, 178, 0.2);
  background: rgba(75, 218, 178, 0.08);
  color: var(--green);
}

.status-pill.empty {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #7f8a9e;
}

.install-pill {
  padding: 3px 8px;
  font-weight: 650;
}

.install-pill.installed {
  border: 1px solid rgba(75, 218, 178, 0.17);
  background: rgba(75, 218, 178, 0.07);
  color: var(--green);
}

.install-pill.missing {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: #78859a;
}

.wallet-count {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 18px 0 10px;
}

.wallet-count strong {
  font-size: 28px;
  letter-spacing: -0.04em;
}

.wallet-count span {
  color: var(--muted);
  font-size: 11px;
}

.wallet-meta {
  gap: 6px;
  min-height: 21px;
}

.table-chip {
  padding: 2px 6px;
  border: 1px solid rgba(122, 167, 255, 0.14);
  border-radius: 6px;
  background: rgba(122, 167, 255, 0.05);
  color: #9db2d7;
  font-size: 9px;
}

.wallet-detail {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
}

.wallet-open {
  justify-content: space-between;
  margin-top: 14px;
  color: #9bbcff;
  font-size: 10px;
  font-weight: 650;
}

.wallet-open span {
  font-size: 15px;
  transition: transform 0.2s;
}

.wallet-card:hover .wallet-open span {
  transform: translateX(3px);
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.detail-card,
.notes-card {
  padding: 21px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.detail-card h4 {
  margin: 0 0 18px;
  font-size: 14px;
}

.kv {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.kv:last-child {
  border: 0;
}

.kv span {
  color: var(--muted);
}

.kv strong {
  text-align: right;
  font-weight: 600;
}

.success-text {
  color: var(--green) !important;
}

.warning-text {
  color: var(--amber) !important;
}

.timeline-item {
  position: relative;
  margin-left: 5px;
  padding: 0 0 18px 22px;
  border-left: 1px solid rgba(122, 167, 255, 0.2);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 10px rgba(122, 167, 255, 0.45);
}

.timeline-item strong {
  display: block;
  font-size: 12px;
}

.timeline-item span {
  color: var(--muted);
  font-size: 11px;
}

.notes-card {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.notes-card p {
  margin: 7px 0;
}

.file-list {
  display: grid;
  gap: 10px;
}

.file-card {
  gap: 14px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.file-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(122, 167, 255, 0.08);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
}

.file-copy {
  flex: 1;
}

.file-copy strong,
.file-copy small {
  display: block;
}

.file-copy small {
  margin-top: 3px;
  color: var(--muted);
}

.download {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(122, 167, 255, 0.18);
  border-radius: 9px;
  color: #a9c7ff;
  font-size: 11px;
  text-decoration: none;
}

.modal-open {
  overflow: hidden;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 6, 12, 0.76);
  backdrop-filter: blur(14px);
}

.wallet-modal {
  position: relative;
  width: min(580px, 100%);
  max-height: 90vh;
  padding: 28px;
  overflow: auto;
  border: 1px solid rgba(141, 170, 225, 0.22);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(23, 32, 50, 0.99), rgba(12, 18, 29, 0.99));
  box-shadow: 0 35px 110px rgba(0, 0, 0, 0.55);
  animation: modal-in 0.2s ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.modal-wallet-head {
  gap: 14px;
  padding-right: 38px;
}

.modal-wallet-logo {
  width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.06);
  object-fit: contain;
}

.modal-wallet-title {
  flex: 1;
}

.modal-wallet-title h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.03em;
}

.modal-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.modal-metrics > div {
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
}

.modal-metrics small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.modal-metrics strong {
  font-size: 14px;
}

.modal-section {
  padding: 19px;
  border: 1px solid rgba(122, 167, 255, 0.13);
  border-radius: 16px;
  background: rgba(122, 167, 255, 0.035);
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.modal-description {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.modal-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.decrypt-card {
  margin-top: 16px;
}

.decrypt-form {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.decrypt-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #0b111d;
  color: var(--text);
}

.decrypt-form input:focus {
  border-color: rgba(122, 167, 255, 0.5);
}

.decrypt-form button {
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--blue-strong);
  color: white;
  font-weight: 700;
  cursor: pointer;
}

.decrypt-form button:disabled {
  opacity: 0.5;
}

.decrypt-result {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.decrypt-result.success {
  color: var(--green);
}

.decrypt-result.error {
  color: var(--red);
}

.decrypt-result code {
  display: block;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0b111d;
  color: #dbe7ff;
  user-select: all;
}

.loading,
.error {
  padding: 40px;
  color: var(--muted);
  text-align: center;
}

.loader {
  display: inline-block;
  width: 15px;
  height: 15px;
  margin-right: 10px;
  border: 2px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: var(--red);
}

footer {
  margin-top: 30px;
  color: #58667b;
  font-size: 10px;
  text-align: center;
}

button.stat {
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

button.stat:hover {
  border-color: rgba(122, 167, 255, 0.38);
  background: rgba(122, 167, 255, 0.07);
}

.status-pill.installed {
  border: 1px solid rgba(75, 218, 178, 0.2);
  background: rgba(75, 218, 178, 0.08);
  color: var(--green);
}

.data-detail-body {
  max-height: 64vh;
  margin-top: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}

.password-group + .password-group {
  margin-top: 28px;
}

.password-group h4 {
  margin-bottom: 6px;
}

.detail-grid {
  display: grid;
  gap: 10px;
}

.detail-row,
.decrypted-record {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-row span,
.decrypted-record small {
  display: block;
  color: var(--muted);
}

.detail-row strong,
.decrypted-record strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.record-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.record-table th,
.record-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.record-table th {
  color: var(--muted);
  font-weight: 600;
}

.record-table td {
  max-width: 220px;
  overflow-wrap: anywhere;
}

.decrypted-records {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.decrypted-record small {
  margin-bottom: 5px;
}

.secret-value {
  display: block;
  margin-top: 8px;
  padding: 11px;
  border-radius: 9px;
  background: #080e18;
  color: #d8e8ff;
  font: 11px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-all;
  user-select: all;
}

.proof-banner {
  padding: 13px 14px;
  border: 1px solid rgba(75, 218, 178, 0.22);
  border-radius: 12px;
  background: rgba(75, 218, 178, 0.06);
  color: var(--green);
}

.side-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}

.side-nav-button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
}

.side-nav-button.active {
  border-color: rgba(122, 167, 255, 0.34);
  background: rgba(122, 167, 255, 0.12);
  color: var(--text);
}

.device-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.device-list-card {
  min-height: 92px;
  padding: 18px;
  border-radius: 18px;
  font: inherit;
}

.device-list-card .device-card-copy strong,
.device-list-card .device-card-copy small,
.device-list-card .device-card-copy em {
  display: block;
}

.device-list-card .device-card-copy strong {
  font-size: 17px;
}

.device-list-card .device-card-copy em {
  margin-top: 10px;
  color: #9db9ff;
  font-size: 12px;
  font-style: normal;
}

.support-list {
  display: grid;
  gap: 18px;
}

.support-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(21, 30, 46, 0.96), rgba(12, 18, 29, 0.96));
  box-shadow: var(--shadow);
}

.support-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.support-card-head h3 {
  margin: 0;
  font-size: 22px;
}

.support-card-head p {
  margin: 5px 0 0;
  color: var(--muted);
}

.support-wallet-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid rgba(75, 218, 178, 0.18);
  border-radius: 13px;
  background: rgba(75, 218, 178, 0.05);
}

.support-wallet-row img {
  width: 42px;
  height: 42px;
  padding: 4px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.07);
}

.support-wallet-row strong,
.support-wallet-row small {
  display: block;
}

.support-wallet-row small {
  margin-top: 3px;
  color: var(--green);
}

.support-wallet-row.partial small {
  color: var(--amber);
}

.support-wallet-row.pending small {
  color: var(--muted);
}

.support-config {
  margin-top: 18px;
}

.support-config h4 {
  margin: 0 0 10px;
  font-size: 13px;
}

.support-archive {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 20px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.profile-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 9px;
}

.profile-item {
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.profile-item small,
.profile-item strong {
  display: block;
}

.profile-item small {
  color: var(--muted);
}

.profile-item strong {
  margin-top: 4px;
  overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
  .hero {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .main {
    padding: 28px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 20px;
  }

  .brand {
    margin-bottom: 20px;
  }

  .side-label,
  .side-note,
  .sidebar-bottom {
    display: none;
  }

  .device-card {
    max-width: 320px;
  }

  .main {
    margin: 0;
    padding: 22px 16px;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .phone-stage {
    min-height: 310px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-content {
    padding: 24px 20px;
  }

  .device-title-row {
    flex-direction: column;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .topbar {
    margin-top: 10px;
  }

  .local-badge {
    display: none;
  }

  .group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .wallet-modal {
    max-height: 94vh;
    padding: 22px 18px;
    border-radius: 20px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal-wallet-head {
    gap: 10px;
  }

  .modal-wallet-logo {
    width: 44px;
    height: 44px;
  }

  .modal-wallet-title h3 {
    font-size: 20px;
  }

  .modal-metrics {
    grid-template-columns: 1fr;
  }

  .decrypt-form {
    flex-direction: column;
  }

  .decrypt-form button {
    min-height: 44px;
  }
}
