/* Coinkun dashboard: locally hosted type, a quiet palette, and one shared UI system. */
@font-face { font-family: "Noto Sans Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/noto-sans-display-regular-bddfb3ad.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/noto-sans-display-medium-2d7597e7.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/noto-sans-display-bold-a8f876b0.woff2") format("woff2"); }

:root {
  --dashboard-blue: #6489ae;
  --dashboard-blue-dark: #4e759d;
  --dashboard-ink: #6c757d;
  --dashboard-title: #2f2e41;
  --dashboard-muted: #969da3;
  --dashboard-line: #d3d7db;
  --dashboard-error: #c8555b;
  --dashboard-surface: #fff;
  --dashboard-background: #fff;
  --dashboard-fill: #f1f3f4;
  --dashboard-success: #599e5c;
  --dashboard-radius: 3px;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
.dashboard-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--dashboard-ink); background: #fff; font-family: "Noto Sans Display", sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--dashboard-blue); text-decoration: none; }
a:hover { color: var(--dashboard-blue-dark); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; }
h1, h2, h3 { color: var(--dashboard-title); font-weight: 700; line-height: 1.3; }
h1, h2 { font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 17px; margin: 20px 0 10px; }
p { margin: 0 0 14px; }
code { font: inherit; overflow-wrap: anywhere; }
button svg, a svg, .ui-icon { flex: 0 0 auto; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--dashboard-blue); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; background: #fff; padding: 10px 16px; border: 1px solid var(--dashboard-blue); }
.skip-link:focus { top: 12px; }

/* The frame stays identical on every page, including the entry screens. */
.dashboard-header { min-height: 60px; background: #fff; box-shadow: 0 3px 15px rgb(0 0 0 / 4%); }
.dashboard-header__inner, .dashboard-main, .dashboard-footer { width: 90%; max-width: 1140px; margin-inline: auto; }
.dashboard-header__inner { min-height: 60px; display: flex; align-items: center; }
.dashboard-brand { display: inline-flex; gap: 7px; align-items: center; color: var(--dashboard-blue); flex-shrink: 0; }
.dashboard-brand__mark { width: 49px; height: 40px; }
.dashboard-brand__name { font-size: 34px; font-weight: 700; font-style: italic; letter-spacing: -1px; line-height: 1; }
.dashboard-product { display: flex; align-items: start; margin-left: 15px; color: #303c46; font-size: 20px; white-space: nowrap; }
.dashboard-product small { font-size: 10px; margin: 2px 0 0 3px; color: var(--dashboard-muted); }
.dashboard-header__actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-balance { display: grid; gap: 3px; text-align: right; font-variant-numeric: tabular-nums; }
.header-balance small { color: var(--dashboard-muted); font-size: 12px; }
.header-unlock { width: 29px !important; }
.dashboard-main { flex: 1; min-width: 0; display: flex; }
.dashboard-footer { min-height: 44px; display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; gap: 14px; padding: 10px 0; font-size: 13px; }
.dashboard-footer > :nth-child(2) { justify-self: center; }
.dashboard-footer__support { justify-self: end; color: var(--dashboard-title) !important; }
.account-menu { position: relative; }
.account-menu__toggle { height: 42px; width: 42px; border: 3px solid #f5f6f7; border-radius: 50%; color: var(--dashboard-ink); display: grid; place-items: center; padding: 0; background: #fff; }
.popup-menu { position: absolute; top: calc(100% + 8px); right: 0; width: 235px; z-index: 20; padding: 8px 0; background: #fff; border: 1px solid #eee; border-radius: 3px; box-shadow: 0 4px 18px rgb(0 0 0 / 13%); }
.popup-menu__identity { padding: 7px 15px 2px; font-weight: 500; }
.popup-menu__status { display: block; padding: 0 15px 10px; font-size: 12px; color: var(--dashboard-muted); border-bottom: 1px solid #eee; margin-bottom: 5px; }
.popup-menu__item { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 15px; color: var(--dashboard-ink); border: 0; background: #fff; text-align: left; }
.popup-menu__item:hover { background: var(--dashboard-fill); color: var(--dashboard-blue); }
.popup-menu form { margin: 0; }

/* Shared controls */
.dashboard-button, .segmented-controls button { display: inline-flex; justify-content: center; align-items: center; gap: 7px; min-height: 35px; padding: 6px 13px; border: 1px solid var(--dashboard-blue); border-radius: 3px; font-weight: 400; line-height: 1.4; text-decoration: none; white-space: nowrap; transition: background .12s, box-shadow .12s; }
.dashboard-button--primary { background: var(--dashboard-blue); color: #fff; }
.dashboard-button--primary:hover { background: var(--dashboard-blue-dark); color: #fff; }
.dashboard-button--secondary, .segmented-controls button { background: #fff; color: var(--dashboard-blue); }
.dashboard-button--secondary:hover, .segmented-controls button:hover { background: #f3f6fa; color: var(--dashboard-blue-dark); }
.dashboard-button:disabled, .segmented-controls button:disabled { opacity: .55; }
.icon-button, .copy-button, .text-button, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 0; padding: 0; background: transparent; color: var(--dashboard-blue); font: inherit; text-decoration: none; }
.icon-button, .copy-button { min-width: 30px; min-height: 30px; border-radius: 3px; }
.icon-button:hover, .copy-button:hover { background: #f0f4f8; }
.text-button:hover, .text-link:hover { color: var(--dashboard-blue-dark); }
input:not([type=checkbox]):not([type=hidden]), select, textarea { min-width: 0; max-width: 100%; border: 1px solid var(--dashboard-line); border-radius: 3px; background: #fff; color: var(--dashboard-ink); padding: 7px 11px; font: inherit; box-shadow: inset 0 1px 2px rgb(0 0 0 / 3%); }
input:not([type=checkbox]):not([type=hidden]), select { min-height: 35px; }
input::placeholder, textarea::placeholder { color: #83898e; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--dashboard-blue); outline: none; box-shadow: 0 0 0 2px rgb(100 137 174 / 18%); }
input:disabled, select:disabled, textarea:disabled { background: #eff0f2; color: #90969b; }
.dashboard-input, .dashboard-select { width: 100%; }
.field-label { display: block; margin-bottom: 7px; }
.field-hint, .muted, .is-muted, .page-description { color: var(--dashboard-muted); }
.field-hint { font-size: 12px; margin: 8px 0; }
.input-group { display: flex; align-items: center; border: 1px solid var(--dashboard-line); border-radius: 3px; min-width: 0; background: #fff; }
.input-group input:not([type=checkbox]) { border: 0; box-shadow: none; flex: 1; width: 100%; min-width: 0; }
.input-group:focus-within { border-color: var(--dashboard-blue); box-shadow: 0 0 0 2px rgb(100 137 174 / 18%); }
.input-group > span { padding: 0 12px; color: var(--dashboard-blue); }
.input-group__button { background: none; border: 0; padding: 5px 10px; color: var(--dashboard-title); }
.checkbox-label { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--dashboard-blue); }
.form-error, .dashboard-entry__error { color: var(--dashboard-error); font-size: 13px; margin: 8px 0; }
.form-field { margin-bottom: 16px; }
.form-field > label { display: block; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; }

/* Entry, saved accounts and one-time credentials */
.dashboard-entry { width: 392px; max-width: 100%; margin: auto; padding: 28px 0; transform: translateY(-5px); }
.dashboard-entry__form { width: 100%; }
.dashboard-entry__field-row { display: flex; height: 36px; }
.dashboard-entry__input { flex: 1; min-width: 0; border-radius: 3px 0 0 3px !important; border-right: 0 !important; }
.dashboard-entry__selector { display: grid; place-items: center; width: 36px; flex-shrink: 0; border: 0; border-radius: 0 3px 3px 0; background: var(--dashboard-blue); color: #fff; }
.dashboard-entry__selector:hover { background: var(--dashboard-blue-dark); }
.dashboard-entry__selector[aria-expanded=true] svg { transform: rotate(180deg); }
.dashboard-entry__actions { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; gap: 12px; }
.dashboard-entry__create-form { margin: 0; }
.dashboard-entry__error--empty { display: none; }
.saved-accounts-selector { position: relative; }
.saved-accounts-menu { position: absolute; z-index: 25; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--dashboard-line); border-radius: 3px; box-shadow: 0 3px 12px rgb(0 0 0 / 12%); overflow: hidden; }
.saved-accounts-list { list-style: none; padding: 0; margin: 0; max-height: 230px; overflow-y: auto; }
.saved-account { display: grid; grid-template-columns: minmax(0,1fr) 36px; border-bottom: 1px solid #eef0f2; }
.saved-account:last-child { border-bottom: 0; }
.saved-account__option, .saved-account__forget { padding: 11px 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; text-align: left; background: #fff; color: var(--dashboard-ink); }
.saved-account__option { font-size: 12px; }
.saved-account__forget { text-align: center; font-size: 19px; line-height: 1; color: var(--dashboard-muted); }
.saved-account__option:hover, .saved-account__option:focus-visible, .saved-account__forget:hover { background: #f0f4f8; color: var(--dashboard-blue-dark); }
.saved-accounts-empty { margin: 0; padding: 16px; text-align: center; color: var(--dashboard-muted); }
.creation-entry h1 { font-size: 24px; margin-bottom: 16px; }
.creation-entry__field { margin-bottom: 14px; }
.creation-entry__description { font-size: 14px; margin: 14px 0; }
.creation-entry__form > .dashboard-entry__actions { margin-top: 16px; }
.credentials-shell { width: 100%; display: flex; align-items: center; justify-content: center; padding: 40px 0; }
.credentials-card { width: 620px; max-width: 100%; padding: 30px; border: 1px solid var(--dashboard-line); border-radius: 3px; background: #fff; box-shadow: 0 3px 18px rgb(0 0 0 / 3%); }
.credentials-card__header { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; }
.credentials-card__header h1 { margin: 2px 0; }
.credentials-card__status { font-size: 28px; color: var(--dashboard-blue); width: 44px; height: 44px; border: 2px solid var(--dashboard-blue); border-radius: 50%; display: grid; place-items: center; }
.credentials-card__eyebrow { margin: 0; color: var(--dashboard-blue); text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.credentials-card__lead { margin-bottom: 23px; }
.credentials-list { margin: 0; }
.credentials-list__item { background: var(--dashboard-fill); border: 1px solid var(--dashboard-line); border-radius: 3px; padding: 12px 15px; margin-bottom: 12px; }
.credentials-list dt { font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.credentials-list dd { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--dashboard-title); }
.credentials-list dd code { flex: 1; min-width: 0; }
.credentials-warning { margin: 20px 0 24px; padding: 12px 15px; background: #fbf8f1; border-left: 3px solid #c6a260; color: #8a754d; font-size: 13px; }
.credentials-warning strong { display: block; }
.credentials-card__actions { display: flex; justify-content: space-between; gap: 14px; }

/* Navigation and workspaces */
.account-shell { width: 100%; min-width: 0; padding: 24px 0 40px; }
.dashboard-nav { display: flex; align-items: stretch; border-bottom: 2px solid #d7dadd; margin-bottom: 14px; min-height: 42px; gap: 0; }
.dashboard-nav__item { display: inline-flex; align-items: center; gap: 8px; color: var(--dashboard-ink); font-weight: 700; padding: 10px 13px 12px; margin-bottom: -2px; border-bottom: 2px solid transparent; white-space: nowrap; }
.dashboard-nav__item:hover { background: #fafbfc; color: var(--dashboard-blue); }
.dashboard-nav__item.is-active { color: var(--dashboard-blue); border-bottom-color: var(--dashboard-blue); background: linear-gradient(#fff,#fafbfd); }
.dashboard-nav__help { margin: 0 0 0 auto; align-self: center; }
.page-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 14px; }
.page-toolbar__refresh, .refresh-link { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.search-form { display: flex; gap: 10px; min-width: 0; }
.address-search-form { align-items: center; flex-wrap: wrap; }
.search-field { display: flex; align-items: center; gap: 7px; width: 354px; max-width: 100%; position: relative; }
.search-field > .ui-icon { position: absolute; left: 9px; pointer-events: none; color: var(--dashboard-ink); }
.search-field input:not([type=hidden]) { width: 100%; padding-left: 31px; }
.search-field--compact { width: 200px; }
.filter-panel { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--dashboard-fill); border: 1px solid var(--dashboard-line); border-radius: 3px; margin-bottom: 0; }
.filter-panel__end { margin-left: auto; }
.filter-panel select { min-width: 150px; }
.filter-panel .form-field { margin-bottom: 0; }
.page-heading { display: flex; align-items: center; gap: 13px; margin: 17px 0 15px; }
.page-heading h1 { margin: 0; display: flex; align-items: center; gap: 11px; }
.page-heading > .network-badge { margin-left: auto; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; }
.network-badge { display: inline-flex; align-items: center; background: #f0f4f8; color: #6482a0; border-radius: 3px; padding: 2px 7px; font-size: 11px; font-weight: 400; white-space: nowrap; }
.coin-mark { display: inline-grid; place-items: center; color: white; background: #36598b; width: 23px; height: 23px; border-radius: 50%; font-family: Arial, sans-serif; font-size: 20px; font-weight: 700; font-style: italic; flex-shrink: 0; line-height: 1; }
.coin-mark--btc { background: #df9b36; font-style: normal; font-size: 17px; }
.coin-mark--large { width: 32px; height: 32px; font-size: 27px; }
.data-table-wrap, .table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-spacing: 0; border-collapse: separate; font-size: 14px; }
.data-table th { background: var(--dashboard-fill); text-align: left; font-weight: 400; padding: 13px 12px; border-top: 1px solid var(--dashboard-line); border-bottom: 1px solid var(--dashboard-line); white-space: nowrap; }
.data-table th:first-child { border-left: 1px solid var(--dashboard-line); border-radius: 3px 0 0 3px; }
.data-table th:last-child { border-right: 1px solid var(--dashboard-line); border-radius: 0 3px 3px 0; }
.data-table td { padding: 17px 14px; border-bottom: 1px solid var(--dashboard-line); vertical-align: middle; }
.data-table tbody tr:hover { background: #fafbfc; }
.assets-table td { height: 65px; }
.assets-table th:first-child { width: 33%; }
.assets-table th:nth-child(2), .assets-table th:nth-child(3) { width: 19%; }
.asset-link { display: flex; align-items: center; gap: 14px; color: var(--dashboard-ink); }
.asset-link strong { font-weight: 700; }
.asset-link:hover { color: var(--dashboard-blue); }
.table-link { color: var(--dashboard-ink); }
.amount-cell, .data-table th.amount-cell, .text-right { text-align: right; font-variant-numeric: tabular-nums; }
.amount-value { font-weight: 400; white-space: nowrap; }
.amount-cell small { display: block; color: var(--dashboard-muted); margin-top: 4px; }
.account-context { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; font-size: 12px; color: var(--dashboard-muted); }
.access-status { display: inline-flex; align-items: center; gap: 6px; }
.account-context__id { margin-left: auto; overflow-wrap: anywhere; }
.deposit-panel { margin-top: 28px; }
.deposit-panel .section-heading h2 { font-size: 20px; }
.deposit-panel__body { display: flex; align-items: center; gap: 16px; padding: 18px; border: 1px solid var(--dashboard-line); border-radius: 3px; }
.deposit-panel__icon { color: var(--dashboard-blue); }
.deposit-panel__details { flex: 1; min-width: 0; }
.deposit-panel__details p { margin: 3px 0 8px; }
.deposit-panel__details .field-hint[data-testid] { display: block; margin: 2px 0 7px; }
.copy-row, .address-copy-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.address-link, .address-copy-row code { overflow-wrap: anywhere; color: var(--dashboard-ink); }
.addresses-table .amount-cell { white-space: nowrap; }
.address-list-warning { padding: 12px 15px; background: #fbf8f1; border-left: 3px solid #c6a260; color: #8a754d; }
.status-label { font-size: 12px; color: var(--dashboard-muted); }
.status-label--success { color: var(--dashboard-success); }
.development-note { display: flex; align-items: start; gap: 7px; font-size: 12px; color: var(--dashboard-muted); margin: 14px 0 18px; line-height: 1.6; }
.development-note .ui-icon { margin-top: 2px; }
.empty-state { padding: 65px 20px; text-align: center; color: var(--dashboard-muted); }
.empty-state > .ui-icon { width: 44px; height: 44px; margin-bottom: 14px; stroke-width: 1; color: #aab0b5; }
.empty-state h1, .empty-state h2 { margin-bottom: 8px; font-size: 18px; font-weight: 500; color: #777f87; }
.empty-state p { font-size: 14px; max-width: 450px; margin-inline: auto; }
.empty-state--compact { padding: 25px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 20px; font-size: 13px; }
.pagination__size, .pagination__links { display: flex; align-items: center; gap: 14px; }
.pagination select { width: 65px; }

/* History mirrors the reference's date-grouped list, with real scoped receipts. */
.history-search input:not([type=hidden]) { padding-left: 12px; padding-right: 38px; }
.history-search > button { position: absolute; right: 3px; }
.history-filters select { width: 180px; }
.history-date-filter { position: relative; min-width: 0; }
.history-date-filter summary { display: flex; align-items: center; gap: 9px; min-height: 35px; padding: 7px 11px; border: 1px solid var(--dashboard-line); border-radius: 3px; background: #fff; cursor: pointer; list-style: none; }
.history-date-filter summary::-webkit-details-marker { display: none; }
.history-date-filter summary > span { flex: 1; }
.history-date-filter__panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 10; width: 295px; max-width: 82vw; padding: 16px; background: #fff; border: 1px solid var(--dashboard-line); border-radius: 3px; box-shadow: 0 4px 16px rgb(0 0 0 / 10%); }
.history-date-filter__panel .form-field { margin-bottom: 14px; }
.history-date-filter__actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.history-scope-note { margin: 12px 0 16px; font-size: 13px; color: #7c848c; }
.history-day { padding: 12px 14px; margin: 0; font-size: 14px; font-weight: 500; color: var(--dashboard-ink); border-bottom: 1px solid var(--dashboard-line); background: #fafbfc; }
.history-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 24px; padding: 17px 14px; color: var(--dashboard-ink); border-bottom: 1px solid var(--dashboard-line); }
.history-row:hover { color: var(--dashboard-ink); background: #f6f8fa; }
.history-row__identity { display: flex; align-items: center; gap: 7px; min-width: 0; }
.history-row__identity .coin-mark { width: 16px; height: 16px; font-size: 14px; }
.history-txid { min-width: 0; overflow-wrap: anywhere; }
.history-direction { color: #75a172; display: inline-flex; }
.history-direction--outgoing { color: #a8655d; }
.address-history-row .history-txid { flex: 1; }
.address-history-row .history-row__identity > .icon-button { flex-shrink: 0; }
.address-history-row .history-row__amount > small { display: block; }
.address-history .empty-state h3 { margin-bottom: 8px; font-size: 18px; font-weight: 500; }
.history-row__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; font-size: 13px; }
.history-row > .history-row__meta { grid-column: 1; }
.history-status { display: inline-flex; align-items: center; gap: 4px; }
.history-status .ui-icon { width: 14px; height: 14px; }
.history-status--recorded .ui-icon { color: #75a172; border: 1px solid currentColor; border-radius: 50%; padding: 1px; }
.history-status--pending { color: #926517; }
.history-status--not_seen { color: #687584; }
.history-status--orphaned { color: #a24436; }
.history-conflict { color: #a24436; font-size: 12px; }
.history-row__amount { grid-column: 2; grid-row: 1 / 3; align-self: center; text-align: right; }
.history-row__amount > small { display: block; margin-top: 4px; font-size: 12px; color: var(--dashboard-muted); }
.history-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-amount__precision { font-size: 12px; }
.history-pagination { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 16px; margin: 25px 0; font-size: 14px; }
.history-pagination__pages { display: flex; align-items: center; gap: 3px; }
.history-pagination [aria-disabled=true] { color: #b5bcc3; }
.history-pagination [aria-current=page] { background: #e6edf4; }
.history-pagination__size { margin: 0; }
.history-pagination__size select { width: 72px; }
.receipt-detail { width: 600px; max-width: 100%; }
.receipt-detail > h1 { margin-top: 20px; }
.receipt-identity { padding: 16px 14px; border-bottom: 1px solid var(--dashboard-line); }
.receipt-identity > p { display: flex; align-items: center; gap: 8px; }
.receipt-identity .history-row__meta { margin-top: 9px; }
.receipt-outputs { margin-top: 28px; }
.receipt-output { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 15px 14px; }
.receipt-output p { margin-bottom: 4px; }
.receipt-output small { margin-left: 8px; font-size: 12px; color: var(--dashboard-muted); }
.receipt-output .address-copy-row { gap: 5px; }
.receipt-output a { overflow-wrap: anywhere; min-width: 0; }
.receipt-total { display: flex; justify-content: space-between; gap: 16px; background: var(--dashboard-fill); border: 1px solid var(--dashboard-line); border-radius: 3px; padding: 20px 14px; }
.receipt-total strong { color: var(--dashboard-title); }
.receipt-chain { margin-top: 40px; }
.receipt-chain h2 { padding: 0 14px; font-size: 14px; color: var(--dashboard-ink); }
.receipt-chain h2 > span { font-weight: 400; }
.receipt-chain__transaction { padding: 14px; border-block: 1px solid var(--dashboard-line); }
.receipt-chain__transaction .history-row__meta { margin: 9px 0 14px; }
.history-observation-note { margin-top: 14px; }
.receipt-block { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13px; }
.receipt-block > span { grid-column: 1 / -1; color: var(--dashboard-muted); }

/* Detail and form pages deliberately share the reference's restrained layout. */
.content-panel { margin: 25px 0; }
.summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 28px; max-width: 740px; margin: 18px 0 30px; }
.summary-card { padding: 16px 14px; border-bottom: 1px solid var(--dashboard-line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3px 12px; }
.summary-card > strong { font-weight: 400; text-align: right; color: var(--dashboard-ink); }
.summary-card > small { grid-column: 2; color: var(--dashboard-muted); font-size: 12px; text-align: right; }
.summary-card small { font-size: 12px; }
.summary-list { margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 15px; padding: 18px 14px; border-bottom: 1px solid var(--dashboard-line); }
.summary-list dt, .summary-list dd { margin: 0; }
.summary-list dd { text-align: right; font-variant-numeric: tabular-nums; }
.summary-list dd small { display: block; font-size: 13px; color: var(--dashboard-muted); margin-top: 3px; }
.summary-list > div:last-child { background: var(--dashboard-fill); border: 1px solid var(--dashboard-line); border-radius: 3px; }
.summary-list > div:last-child dt { color: var(--dashboard-title); font-weight: 700; }
.address-overview { display: grid; grid-template-columns: minmax(0,1fr) 160px; gap: 40px; margin-top: 20px; }
.address-overview svg:not(.ui-icon) { width: 160px; height: 160px; display: block; }
.address-overview__details { min-width: 0; }
.address-overview__actions { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.address-overview__actions > .dashboard-button { width: 100%; }
.address-overview__actions > button:disabled { cursor: not-allowed; }
.address-overview__details > .detail-list { max-width: 740px; }
.address-overview .summary-grid { width: 100%; }
.detail-list { margin: 15px 0; }
.detail-list > div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid #eceeef; }
.detail-list dt { color: var(--dashboard-muted); }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.segmented-controls { display: flex; flex-wrap: wrap; gap: 14px; margin: 16px 0 25px; }
.segmented-controls button.is-active { background: #d8e2f0; box-shadow: 0 0 0 2px rgb(100 137 174 / 16%); }
.transfer-layout { max-width: 600px; margin-top: 22px; }
.transfer-form .form-field { display: grid; grid-template-columns: 106px minmax(0,1fr); gap: 14px; align-items: center; }
.transfer-form .form-field > label { margin: 0; }
.transfer-form .form-field > small { grid-column: 2; }
.transfer-form .checkbox-label { margin-left: 120px; margin-bottom: 18px; }
.fee-preview { display: flex; gap: 14px; min-width: 0; }
.fee-preview .input-group { flex: 1; min-width: 0; background: #eff0f2; }
.fee-preview .input-group span { white-space: nowrap; color: var(--dashboard-muted); }
.fee-preview select { width: 110px; }
.form-refresh { text-align: right; }
.form-refresh button:disabled { color: var(--dashboard-muted); }
.transfer-summary h2 { display: none; }
.transfer-summary > button { margin-top: 20px; float: right; }
.transfer-summary > p { clear: both; padding-top: 12px; font-size: 12px; }
.transfer-review { margin-top: 20px; }
.transfer-review form { text-align: right; margin-top: 20px; }
.transfer-destination, .receipt-chain code, .receipt-output code { overflow-wrap: anywhere; }
.history-execution { color: var(--dashboard-muted); font-size: 12px; }
.settings-form { max-width: 600px; }
.settings-form > .checkbox-label { margin-bottom: 24px; }
.settings-form .form-field { margin-bottom: 22px; }
.settings-form > .dashboard-button { margin-top: 12px; }
.method-badge { display: inline-block; padding: 3px 8px; background: #e9f2ec; color: #477950; font-size: 12px; border-radius: 3px; margin-right: 8px; }
.code-block { position: relative; background: var(--dashboard-fill); border: 1px solid var(--dashboard-line); border-radius: 3px; padding: 18px; overflow: auto; }
.code-block pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; font-family: ui-monospace, monospace; line-height: 1.8; padding-right: 25px; }
.code-block__copy { position: absolute; top: 8px; right: 8px; }
.integration-panel { max-width: 600px; }
.integration-note { background: var(--dashboard-fill); padding: 10px; border: 1px solid var(--dashboard-line); border-radius: 3px; margin-bottom: 14px; }
.integration-note p { margin: 0; }
.integration-note .address-copy-row { flex-wrap: wrap; gap: 5px; }

/* Native dialogs supply focus trapping, Escape and accessible modality. */
.dashboard-dialog { width: 500px; max-width: calc(100% - 32px); padding: 24px 21px; border: 1px solid #e5e5e5; border-radius: 3px; color: var(--dashboard-ink); background: white; box-shadow: 0 4px 20px rgb(0 0 0 / 13%); overflow-wrap: anywhere; }
.dashboard-dialog::backdrop { background: rgb(0 0 0 / 11%); }
.dashboard-dialog:not([open]) { display: none; }
.dashboard-dialog h2 { margin: 0 0 23px; }
.dialog-description { font-size: 13px; margin-top: -12px; color: var(--dashboard-muted); }
.dialog-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 28px; }
.dialog-actions--end { justify-content: flex-end; }
.receive-address-dialog { --dashboard-blue: #5d8ab9; width: 440px; max-height: calc(100dvh - 32px); padding: 24px 20px; border-color: #ced4da; }
.receive-address-dialog::backdrop { background: rgb(0 0 0 / 10%); }
.receive-address-dialog h2 { margin-bottom: 22px; line-height: 1.35; }
.receive-address-qr { width: 351px; max-width: 100%; margin-inline: auto; background: #fff; }
.receive-address-qr svg { display: block; width: 100%; height: auto; }
.receive-address-copy { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 16px; color: var(--dashboard-blue); font-size: 14px; }
.receive-address-copy span { min-width: 0; overflow-wrap: anywhere; }
.receive-address-copy .icon-button { min-width: 18px; min-height: 18px; }
.receive-address-copy-status { margin: 10px 0 0; text-align: center; font-size: 12px; color: var(--dashboard-blue); }
.receive-address-dialog .dialog-actions .dashboard-button { min-width: 94px; }
.dashboard-toast { position: fixed; right: 25px; bottom: 25px; z-index: 100; background: #fff; color: var(--dashboard-ink); padding: 12px 20px; border: 1px solid var(--dashboard-line); border-left: 3px solid var(--dashboard-success); border-radius: 3px; box-shadow: 0 3px 16px rgb(0 0 0 / 12%); max-width: calc(100% - 40px); font-size: 13px; }

@media (max-width: 800px) {
  .dashboard-brand__name { font-size: 29px; }
  .dashboard-product { font-size: 18px; margin-left: 10px; }
  .header-balance { font-size: 13px; }
  .dashboard-header__actions { gap: 5px; }
  .dashboard-nav__item { gap: 6px; padding-inline: 9px; font-size: 13px; }
  .assets-table .network-badge { display: none; }
  .assets-table th:first-child { width: 35%; }
  .assets-table th:nth-child(2), .assets-table th:nth-child(3) { width: auto; }
  .deposit-panel__body { flex-wrap: wrap; }
  .deposit-panel__body form { margin-left: 44px; }
}
@media (max-width: 600px) {
  .history-filters { align-items: stretch; }
  .history-filters select { flex: 1; width: auto; }
  .history-date-filter { order: 3; width: 100%; }
  .history-date-filter__panel { width: 100%; max-width: 100%; }
  .history-row { column-gap: 10px; padding-inline: 8px; }
  .history-row__identity { grid-column: 1 / -1; }
  .history-row > .history-row__meta { grid-row: 2; }
  .history-row__amount { grid-row: 2; }
  .history-row__amount > small { display: none; }
  .history-row__meta { gap: 4px 7px; }
  .history-pagination { gap: 12px; }
  .history-pagination > span { width: 100%; text-align: center; }
  .receipt-output { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .receipt-output > .history-amount { text-align: right; }
  .receipt-detail .history-row__identity { align-items: start; }
  .dashboard-brand__name { display: none; }
  .dashboard-brand__mark { width: 46px; }
  .dashboard-product { font-size: 14px; margin-left: 9px; }
  .dashboard-product small { font-size: 9px; }
  .header-balance { font-size: 12px; }
  .header-balance small { font-size: 11px; }
  .header-unlock { min-width: 25px; }
  .account-menu__toggle { width: 39px; height: 39px; }
  .account-shell { padding-top: 26px; }
  .dashboard-nav { min-height: 42px; }
  .dashboard-nav__item { flex: 1; justify-content: center; padding-inline: 5px; min-width: 0; }
  .dashboard-nav__item span { display: none; }
  .dashboard-nav__item .ui-icon { width: 17px; height: 17px; }
  .dashboard-nav__item.is-active { flex: 1.8; gap: 6px; }
  .dashboard-nav__item.is-active span { display: inline; font-size: 12px; }
  .dashboard-nav__help { display: none; }
  .page-toolbar { gap: 13px; }
  .page-toolbar .search-field, .search-form { width: 100%; }
  .search-form .search-field { flex: 1; min-width: 0; }
  .address-search-form .search-field { flex-basis: calc(100% - 100px); }
  .addresses-table tr { display: grid; }
  .addresses-table td:first-child { border-bottom: 0; padding-bottom: 0; }
  .addresses-table td.amount-cell { padding-top: 8px; }
  .checkbox-label { font-size: 13px; gap: 7px; }
  .page-toolbar__refresh { margin-left: auto; }
  .assets-table th:nth-child(2), .assets-table td:nth-child(2), .assets-table th:nth-child(3), .assets-table td:nth-child(3) { display: none; }
  .asset-link { gap: 10px; }
  .data-table td { padding: 15px 10px; }
  .data-table td:not(:first-child) { white-space: nowrap; }
  .amount-value { font-size: 13px; }
  .account-context__id { order: 3; margin-left: 0; width: calc(100% - 40px); font-size: 11px; }
  .account-context > .icon-button { order: 4; }
  .deposit-panel { margin-top: 20px; }
  .deposit-panel__body { padding: 14px; gap: 12px; }
  .deposit-panel__details { min-width: 0; }
  .deposit-panel__icon { display: none; }
  .deposit-panel__body form, .deposit-panel__body > .dashboard-button { margin: 0; width: 100%; }
  .deposit-panel__body form button { width: 100%; }
  .section-heading h2 { font-size: 19px; }
  .section-heading .text-button, .section-heading .text-link { font-size: 12px; }
  .filter-panel { flex-wrap: wrap; gap: 10px; padding: 12px; }
  .filter-panel select, .filter-panel input { flex: 1; width: 100%; min-width: 0; }
  .filter-panel .form-field { width: 100%; }
  .page-heading h1 { font-size: 22px; }
  .summary-grid { gap: 0 16px; }
  .summary-card { grid-template-columns: 1fr; padding-inline: 0; }
  .summary-card > strong { text-align: left; }
  .summary-card > small { grid-column: 1; text-align: left; }
  .address-overview { grid-template-columns: 1fr; gap: 20px; }
  .address-overview > :last-child { justify-self: start; }
  .detail-list > div { grid-template-columns: 1fr; gap: 5px; }
  .transfer-form .form-field { grid-template-columns: 1fr; gap: 6px; }
  .transfer-form .form-field > small { grid-column: 1; }
  .transfer-form .checkbox-label { margin-left: 0; }
  .segmented-controls { gap: 8px; }
  .segmented-controls button { flex: 1; padding-inline: 8px; font-size: 12px; }
  .pagination { flex-direction: column; align-items: stretch; gap: 14px; }
  .pagination__links { justify-content: space-between; }
  .credentials-card { padding: 22px 18px; }
  .credentials-card__header h1 { font-size: 22px; }
  .credentials-list__item { padding: 10px; }
  .credentials-list code { font-size: 12px; }
  .dashboard-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px 0; font-size: 12px; }
  .dashboard-footer > :first-child { order: 2; width: calc(100% - 75px); }
  .dashboard-footer > :nth-child(2) { order: 1; width: 100%; margin-bottom: 8px; }
  .dashboard-footer > :last-child { order: 3; }
  .dashboard-entry { transform: translateY(-5px); }
  .empty-state { padding: 50px 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.transfer-fields { margin: 0; padding: 0; border: 0; min-width: 0; }
.callback-log__address, .callback-attempt code { overflow-wrap: anywhere; }
.callback-attempt { border-top: 1px solid #e1e5eb; padding: 16px 0; }
.callback-attempt summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.callback-attempt summary::after { content: "⌄"; color: var(--dashboard-blue); }
.callback-attempt summary strong { color: #385f8b; }
.callback-attempt summary span { margin-left: auto; color: #7c8797; }
.callback-attempt h3 { margin: 18px 0 8px; font-size: 14px; }
.callback-attempt pre { max-width: 100%; overflow: auto; padding: 14px; background: #f5f7fa; border-radius: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .callback-attempt summary { flex-direction: column; align-items: flex-start; }
  .callback-attempt summary span { margin-left: 0; }
}
