.records-page {
  background:
    radial-gradient(circle at 88% 0%, rgba(84, 184, 255, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f4f9ff 100%);
}

.records-header {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  min-height: 48px;
}

.records-header h1 {
  margin: 0;
  text-align: center;
  font-size: 22px;
}

.records-page .record-list,
.records-page .address-book-form {
  margin-top: 18px;
}

.records-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 14px;
  color: #777777;
  font-size: 12px;
  font-weight: 900;
}

.records-toolbar .outline-pill {
  min-height: 34px;
  padding: 0 14px;
  font-size: 12px;
}

.records-intro {
  margin: 18px 0 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(31, 122, 22, 0.12), transparent 52%),
    #f6f6f6;
}

.records-intro h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.records-intro p {
  margin: 0;
  color: #777777;
  line-height: 1.6;
  font-size: 13px;
}

.records-intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: #666666;
  font-size: 12px;
  font-weight: 900;
}

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

.record-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f7f7f7;
  align-items: center;
}

.record-list strong {
  font-size: 15px;
}

.record-list span {
  display: block;
  margin-top: 4px;
  color: #777777;
  font-size: 12px;
}

.record-list b {
  align-self: center;
  font-size: 14px;
  text-align: right;
}

.record-list button {
  flex: 0 0 auto;
}

.record-list .outline-pill {
  min-width: 72px;
}

.record-list article.empty-record,
.record-list article.is-empty,
.merchant-locked-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 28px 18px;
  text-align: center;
}

.record-list article.empty-record strong,
.record-list article.is-empty strong,
.merchant-locked-card strong {
  font-size: 18px;
}

.record-list article.empty-record span,
.record-list article.is-empty span,
.merchant-locked-card span {
  max-width: 260px;
  margin-top: 0;
  line-height: 1.55;
}

.notification-card {
  position: relative;
  align-items: flex-start;
}

.notification-card.is-unread::before {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  content: "";
}

.notification-card-body {
  min-width: 0;
  padding-right: 12px;
}

.notification-card p {
  margin: 8px 0 0;
  color: #222222;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.notification-card small {
  display: block;
  margin-top: 10px;
  color: #999999;
  font-size: 11px;
  font-weight: 800;
}

.notification-tag {
  display: inline-flex;
  width: auto;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eeeeee;
  color: #555555;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.address-book-form {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f7f7;
}

.address-book-form label {
  display: grid;
  gap: 8px;
  color: #666666;
  font-size: 13px;
  font-weight: 800;
}

.address-book-form input,
.address-book-form select {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #ffffff;
  color: #111111;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 800;
}

.address-book-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.field-note {
  margin: -2px 0 2px;
  color: #777777;
  font-size: 12px;
  line-height: 1.55;
}

.invite-list {
  margin-top: 18px;
}

.merchant-locked-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #eaf8ee;
  color: var(--green);
}

.merchant-locked-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.8;
}

.address-book-card {
  align-items: flex-start;
}

.address-book-card div {
  min-width: 0;
}

.address-book-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.address-book-card .address-meta {
  display: inline-flex;
  width: auto;
  margin: 0 0 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eaf8ee;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.address-book-card .address-value {
  max-width: 100%;
  word-break: break-all;
}

/* 2026 UI refresh */
.records-page .record-list,
.records-page .address-book-form,
.records-intro,
.record-list article,
.merchant-locked-card,
.address-book-form {
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.records-intro,
.record-list article,
.merchant-locked-card,
.address-book-form {
  border-radius: 20px;
}

.records-intro p,
.record-list span,
.field-note,
.address-book-form label {
  color: var(--muted);
}

.records-toolbar .outline-pill,
.record-list .outline-pill {
  border-color: var(--line);
  background: #ffffff;
}

.notification-tag,
.address-book-card .address-meta {
  background: #ecfdf5;
  color: var(--green);
}

.address-book-form input,
.address-book-form select {
  border: 1px solid var(--line);
  background: #f8fafc;
  color: var(--text);
}

/* Tech blue refinement */
.records-intro {
  background:
    linear-gradient(135deg, rgba(36, 124, 255, 0.1), rgba(172, 221, 255, 0.18)),
    #ffffff;
}

.notification-tag,
.address-book-card .address-meta {
  background: #edf7ff;
  color: #1b65d8;
}

.merchant-locked-icon {
  background: #edf7ff;
  color: #247cff;
}

.address-book-form input,
.address-book-form select {
  background: #f7fbff;
}

/* Remove demo-like wrapper frames from list pages */
.records-page .record-list {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.records-list-page {
  gap: 12px;
  margin-top: 0;
}

.records-list-page article {
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(25, 92, 170, 0.08);
}

.records-list-page article div {
  min-width: 0;
}

.records-list-page strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}

.records-list-page span {
  display: grid;
  gap: 3px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.records-list-page span small {
  display: block;
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.records-list-page b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  min-width: 58px;
  max-width: 92px;
  padding: 0 10px;
  border-radius: 999px;
  background: #edf7ff;
  color: #1b65d8;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.records-list-page article.is-empty,
.records-list-page article.empty-record {
  justify-items: center;
  min-height: 126px;
  padding: 24px 18px;
  text-align: center;
}

/* Oh bits notifications and address book */
.records-page {
  background:
    radial-gradient(circle at 50% -10%, rgba(247, 167, 7, 0.08), transparent 30%),
    linear-gradient(180deg, #05080c 0%, #090d12 100%);
}

.records-header {
  min-height: 58px;
}

.records-header h1 {
  color: var(--text);
  font-size: 24px;
}

.mark-read-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  color: var(--brand);
  font-size: 14px;
  white-space: nowrap;
}

.notifications-header {
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 8px;
}

.notifications-header h1 {
  min-width: 0;
}

.notification-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0 18px;
  padding: 8px;
  border: 1px solid rgba(247, 167, 7, 0.3);
  border-radius: 18px;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.notification-tabs button {
  min-height: 52px;
  border: 1px solid #303741;
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
}

.notification-tabs button.active {
  border: 0;
  background: linear-gradient(180deg, #ffbe1a, #f7a707);
  color: #080b10;
}

.record-list {
  gap: 14px;
}

.notification-card {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr) 12px;
  align-items: center !important;
  min-height: 150px;
  padding: 20px 18px !important;
  border: 1px solid rgba(247, 167, 7, 0.3);
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%) !important;
  box-shadow: var(--shadow-soft) !important;
}

.notification-card.is-unread::before {
  top: 32px;
  right: 28px;
  width: 12px;
  height: 12px;
  background: var(--brand);
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px currentColor, 0 0 26px currentColor;
}

.notification-icon.green {
  color: var(--green-2);
  background: rgba(34, 199, 97, 0.18);
}

.notification-icon.red {
  color: var(--red);
  background: rgba(255, 77, 87, 0.15);
}

.notification-icon.gold,
.notification-icon.orange {
  color: var(--brand);
  background: rgba(247, 167, 7, 0.16);
}

.notification-card strong {
  color: var(--text);
  font-size: 22px;
}

.notification-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.notification-card small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.address-search {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  margin: 22px 0 28px;
  padding: 0 16px;
  border: 1px solid #4a4030;
  border-radius: 14px;
  background: linear-gradient(180deg, #101720, #0b1017);
  color: var(--muted);
}

.address-search input {
  flex: 1;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
}

.address-book-form {
  display: none;
}

body.address-form-open .address-book-form {
  display: grid;
  position: sticky;
  top: 10px;
  z-index: 8;
  margin-bottom: 18px;
  border-color: rgba(247, 167, 7, 0.45);
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%);
}

.address-section-title {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.address-book-card {
  display: block !important;
  padding: 18px !important;
  border: 1px solid rgba(247, 167, 7, 0.45) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #101720 0%, #0b1017 100%) !important;
  box-shadow: var(--shadow-soft) !important;
}

.address-book-head {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 24px;
  gap: 14px;
  align-items: center;
}

.address-coin-stack {
  position: relative;
  display: inline-grid;
  width: 60px;
  height: 60px;
}

.address-coin-stack .coin-icon {
  width: 58px;
  height: 58px;
}

.address-coin-stack small {
  position: absolute;
  right: -2px;
  bottom: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff2f3d;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
}

.address-book-head strong {
  color: var(--text);
  font-size: 20px;
}

.address-book-head span {
  color: var(--muted);
  font-size: 15px;
}

.address-book-head span b {
  color: var(--brand);
}

.address-book-head > i {
  color: var(--brand);
}

.address-value {
  margin-top: 18px !important;
  padding-top: 18px;
  border-top: 1px dashed #303741;
  color: var(--text) !important;
  font-size: 18px !important;
}

.address-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: -38px;
}

.address-card-actions button {
  display: grid;
  place-items: center;
  min-width: 58px !important;
  min-height: 44px;
  border-color: rgba(247, 167, 7, 0.6);
  background: transparent;
  color: var(--brand);
}

.address-card-actions button.danger {
  border-color: var(--red);
  color: var(--red);
}

.address-empty-panel {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 52px 18px;
  border: 1px dashed #666b73;
  border-radius: 16px;
  color: var(--muted);
  text-align: center;
}

.address-empty-panel i {
  width: 68px;
  height: 68px;
  color: var(--brand);
}

.address-empty-panel strong {
  color: var(--text);
  font-size: 22px;
}

.address-floating-add {
  position: fixed;
  right: calc(50% - min(430px, 100vw) / 2 + 26px);
  bottom: 34px;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffbe1a, #f7a707);
  color: #080b10;
  box-shadow: 0 12px 30px rgba(247, 167, 7, 0.3);
}

.address-floating-add svg,
.address-add-trigger svg {
  width: 34px;
  height: 34px;
}

.address-add-trigger {
  color: var(--brand);
}

.address-secure {
  justify-content: flex-start;
  margin-top: 28px;
}

/* Final Oh bits dark treatment for record, notification, and address states. */
.records-page {
  padding-bottom: calc(34px + env(safe-area-inset-bottom));
  color: var(--text);
}

.records-page .icon-button {
  color: var(--text);
}

.records-list-page article,
.record-list .history-record-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 84px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: var(--shadow-soft);
}

.records-list-page strong,
.record-list .history-record-card strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 900;
}

.records-list-page span,
.record-list .history-record-card span {
  color: var(--muted);
}

.records-list-page span small,
.record-list .history-record-card span small {
  color: inherit;
}

.records-list-page b,
.record-list .history-record-card b {
  max-width: 112px;
  border: 1px solid color-mix(in srgb, var(--brand) 35%, transparent);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
}

.records-list-page article.empty-record,
.record-list article.empty-record,
.record-list article.is-empty {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  min-height: 136px;
  padding: 28px 18px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, var(--line));
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
  color: var(--muted);
  text-align: center;
  box-shadow: none;
}

.records-list-page article.empty-record strong,
.record-list article.empty-record strong,
.record-list article.is-empty strong {
  color: var(--text);
}

.notification-tabs button {
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-card {
  grid-template-columns: 64px minmax(0, 1fr) 12px !important;
  min-height: 118px;
  padding: 16px !important;
}

.notification-icon {
  width: 54px;
  height: 54px;
  box-shadow: inset 0 0 0 1px currentColor, 0 0 18px color-mix(in srgb, currentColor 35%, transparent);
}

.notification-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.notification-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.notification-card small {
  margin-top: 8px;
  font-size: 12px;
}

.notification-card.is-unread::before {
  top: 22px;
  right: 22px;
}

.notification-card.is-empty {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 126px;
  align-items: center !important;
}

.notification-card.is-empty div {
  min-width: 0;
}

.notification-card.is-empty .outline-pill {
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  color: var(--brand);
}

.address-book-form {
  border-color: var(--line);
  background: linear-gradient(180deg, var(--card), var(--card-soft));
}

.address-book-form input,
.address-book-form select {
  border-color: var(--line);
  background: color-mix(in srgb, var(--card) 84%, var(--black));
  color: var(--text);
}

.address-empty-panel {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 42%),
    linear-gradient(180deg, var(--card), var(--card-soft));
  box-shadow: none;
}

/* Unified compact pass: address cards, notifications, and history records. */
.record-list .history-record-card {
  grid-template-columns: minmax(0, 1fr) minmax(86px, auto);
  gap: 12px;
  min-height: 82px;
  padding: 14px 15px;
}

.history-record-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.history-record-meta {
  display: grid;
  gap: 3px;
  margin-top: 0 !important;
}

.history-record-meta small {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-record-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
}

.notification-card {
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 12px;
  min-height: 92px;
  padding: 14px 15px !important;
}

.notification-icon {
  display: none !important;
}

.notification-card-body {
  min-width: 0;
  padding-right: 0;
}

.notification-tag {
  margin-bottom: 7px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
}

.notification-card strong,
.notification-card p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.notification-card strong {
  -webkit-line-clamp: 1;
  font-size: 16px;
}

.notification-card p {
  -webkit-line-clamp: 2;
  margin-top: 5px;
  font-size: 13px;
}

.notification-card small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
}

.notification-card small svg {
  width: 14px;
  height: 14px;
}

.notification-card.is-unread::before {
  top: 16px;
  right: 16px;
  background: var(--brand);
}

.notification-card .outline-pill {
  align-self: end;
  min-height: 30px;
  padding: 0 10px;
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  color: var(--brand);
  font-size: 12px;
}

.address-book-card.address-book-card--saved {
  display: grid !important;
  gap: 14px;
  padding: 16px !important;
  border-color: var(--line) !important;
}

.address-book-card--saved .address-book-head {
  display: block;
}

.address-book-card--saved .address-book-head strong {
  font-size: 17px;
}

.address-book-card--saved .address-book-head span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
}

.address-book-card--saved .address-value {
  display: block;
  margin-top: 0 !important;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--black) 24%, transparent);
  color: var(--text) !important;
  font-family: inherit;
  font-size: 13px !important;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.address-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  border: 1px solid color-mix(in srgb, var(--brand) 36%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  color: var(--brand);
  font-weight: 900;
}

.address-action-button.danger {
  border-color: color-mix(in srgb, var(--red) 50%, var(--line));
  background: color-mix(in srgb, var(--red) 8%, transparent);
  color: var(--red);
}

.address-action-button svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 380px) {
  .record-list .history-record-card,
  .notification-card {
    grid-template-columns: 1fr !important;
  }

  .history-record-status,
  .notification-card .outline-pill {
    justify-self: start;
  }
}

/* Final black-gold records pass */
.records-page {
  background:
    radial-gradient(circle at 48% -8%, color-mix(in srgb, var(--brand) 7%, transparent), transparent 30%),
    linear-gradient(180deg, var(--bg), #05080c);
}

.notification-tabs.ui-scroll-tabs {
  margin: 16px 0 18px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--card), var(--card-soft));
}

.notification-tabs.ui-scroll-tabs button {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
}

.notification-tabs.ui-scroll-tabs button.active {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}

.notification-card,
.record-list .history-record-card,
.address-book-card,
.empty-record {
  border: 1px solid var(--line) !important;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 28%),
    linear-gradient(180deg, var(--card), var(--card-soft)) !important;
  color: var(--text);
}

.notification-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.notification-view-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  align-self: end;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, var(--line));
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.notification-view-link svg {
  width: 14px;
  height: 14px;
}

.record-list .history-record-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  min-height: 82px;
}

.history-record-status {
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, transparent);
  color: var(--brand);
}

.history-record-status.success {
  border-color: color-mix(in srgb, var(--green-2) 34%, var(--line));
  background: color-mix(in srgb, var(--green-2) 9%, transparent);
  color: var(--green-2);
}

.history-record-status.pending {
  border-color: color-mix(in srgb, var(--brand) 34%, var(--line));
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
}

.history-record-status.danger {
  border-color: color-mix(in srgb, var(--red) 40%, var(--line));
  background: color-mix(in srgb, var(--red) 9%, transparent);
  color: var(--red);
}

.history-record-meta small {
  white-space: normal;
}

.address-value {
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.address-action-button {
  min-height: 44px;
}

/* Address book saved-card refinement */
.address-book-card.address-book-card--saved {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: auto;
  padding: 18px 16px !important;
  border-color: var(--line) !important;
  border-radius: 16px;
}

.address-book-card--saved .address-book-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.address-book-card--saved .address-book-head strong {
  display: block;
  color: var(--text);
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
}

.address-book-card--saved .address-book-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.2;
}

.address-book-card--saved .address-book-head span b {
  max-width: 190px;
  overflow: hidden;
  color: var(--brand);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.address-value-wrap {
  display: grid;
  gap: 7px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--black) 20%, transparent);
}

.address-value-wrap > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.address-book-card--saved .address-value {
  display: block;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text) !important;
  font-family: inherit;
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.45;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

.address-book-card--saved .address-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.address-book-card--saved .address-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 13px;
}

.address-secure {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  margin: 28px 0 96px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.address-secure svg {
  color: var(--brand);
}

.address-floating-add {
  bottom: calc(24px + env(safe-area-inset-bottom));
  width: 66px;
  height: 66px;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--brand) 26%, transparent);
}
