:root {
    --orange: #f47b20;
    --orange-dark: #d85f0c;
    --orange-soft: #fff2e8;
    --graphite: #303238;
    --graphite-2: #4c4f57;
    --muted: #747780;
    --line: #e6e7ea;
    --surface: #ffffff;
    --background: #f7f7f8;
    --success: #28865d;
    --danger: #b64040;
    --shadow: 0 18px 50px rgba(41, 43, 48, 0.08);
    --radius: 22px;
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 123, 32, 0.11), transparent 30rem),
        linear-gradient(180deg, #fbfbfc 0%, var(--background) 100%);
    color: var(--graphite);
    min-height: 100vh;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
    cursor: not-allowed;
    opacity: 0.58;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(244, 123, 32, 0.25);
    outline-offset: 2px;
}

.shell {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
}

.topbar {
    min-height: 86px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid rgba(48, 50, 56, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: white;
    font-size: 1.35rem;
    font-weight: 800;
    box-shadow: 0 9px 22px rgba(244, 123, 32, 0.24);
}

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

.brand strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.brand small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.76rem;
}

.node-control {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 0.86rem;
}

.node-control select {
    min-width: 180px;
    height: 42px;
    padding: 0 36px 0 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--graphite);
}

.status-dot {
    width: 9px;
    height: 9px;
    flex: 0 0 9px;
    display: inline-block;
    border-radius: 50%;
    background: #bfc1c7;
    box-shadow: 0 0 0 5px rgba(191, 193, 199, 0.16);
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 5px rgba(40, 134, 93, 0.14);
}

.status-dot.error {
    background: var(--danger);
    box-shadow: 0 0 0 5px rgba(182, 64, 64, 0.14);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
    gap: clamp(38px, 6vw, 80px);
    align-items: center;
    padding: clamp(54px, 8vw, 104px) 0 68px;
}

.hero-copy {
    max-width: 560px;
}

.eyebrow {
    display: block;
    margin-bottom: 12px;
    color: var(--orange-dark);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 20px;
    font-size: clamp(2.3rem, 5vw, 4.65rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.hero-copy p {
    max-width: 54ch;
    margin-bottom: 24px;
    color: var(--graphite-2);
    font-size: 1.06rem;
    line-height: 1.7;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-row span {
    padding: 8px 11px;
    border: 1px solid rgba(244, 123, 32, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--graphite-2);
    font-size: 0.78rem;
}

.card {
    border: 1px solid rgba(48, 50, 56, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.access-card {
    min-height: 560px;
    padding: 12px 28px 30px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 0 -16px 28px;
    padding: 8px;
    border-radius: 16px;
    background: #f2f2f4;
}

.tab {
    min-height: 42px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.tab.active {
    background: var(--surface);
    color: var(--graphite);
    box-shadow: 0 4px 15px rgba(34, 35, 39, 0.08);
}

.tab-panel h2,
.send-card h2,
.security-card h2,
.modal-card h2 {
    margin-bottom: 9px;
    font-size: 1.48rem;
    letter-spacing: -0.025em;
}

.muted {
    color: var(--muted);
    line-height: 1.55;
}

.compact {
    margin: 12px 0 0;
    font-size: 0.84rem;
}

.field {
    display: block;
    margin-top: 18px;
}

.field > span,
.secret-field > span {
    display: block;
    margin-bottom: 8px;
    color: var(--graphite-2);
    font-size: 0.83rem;
    font-weight: 700;
}

.field input,
.field textarea,
.field select,
.secret-field input,
.secret-field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fcfcfd;
    color: var(--graphite);
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

.field input,
.field select,
.secret-field input {
    height: 48px;
    padding: 0 13px;
}

.field textarea,
.secret-field textarea {
    padding: 12px 13px;
    resize: vertical;
    line-height: 1.45;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.secret-field input:focus,
.secret-field textarea:focus {
    border-color: rgba(244, 123, 32, 0.78);
    background: var(--surface);
    box-shadow: 0 0 0 4px rgba(244, 123, 32, 0.1);
    outline: 0;
}

.field small {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.45;
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 90px;
}

.show-password {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--orange-dark);
    font-size: 0.76rem;
    font-weight: 700;
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.primary-button,
.secondary-button,
.ghost-button {
    min-height: 48px;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 760;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.primary-button {
    border: 1px solid var(--orange);
    background: var(--orange);
    color: #fff;
    box-shadow: 0 10px 22px rgba(244, 123, 32, 0.22);
}

.primary-button:hover:not(:disabled) {
    transform: translateY(-1px);
    background: var(--orange-dark);
    border-color: var(--orange-dark);
}

.secondary-button {
    border: 1px solid rgba(244, 123, 32, 0.32);
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.secondary-button:hover:not(:disabled) {
    background: #ffe6d4;
}

.ghost-button {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--graphite-2);
}

.full {
    width: 100%;
    margin-top: 22px;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--graphite-2);
    font-weight: 800;
}

.text-button {
    margin-top: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--orange-dark);
    font-weight: 750;
}

.drop-zone {
    display: grid;
    place-items: center;
    min-height: 132px;
    margin-top: 20px;
    padding: 18px;
    border: 1.5px dashed rgba(244, 123, 32, 0.45);
    border-radius: 16px;
    background: var(--orange-soft);
    text-align: center;
    cursor: pointer;
}

.drop-zone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.drop-zone strong {
    color: var(--orange-dark);
}

.drop-zone span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.78rem;
}

.wallet-view {
    padding: 54px 0 70px;
}

.wallet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 30px;
}

.wallet-header h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.wallet-actions {
    display: flex;
    gap: 10px;
}

.sync-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.85rem;
}

.progress {
    width: min(440px, 100%);
    height: 6px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececef;
}

.progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--orange);
    transition: width 0.25s ease;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.dashboard-grid .card {
    padding: 26px;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.label {
    display: block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.balance {
    font-size: clamp(1.75rem, 4vw, 2.8rem);
    font-weight: 790;
    letter-spacing: -0.045em;
}

.balance small {
    color: var(--orange-dark);
    font-size: 0.36em;
    letter-spacing: 0;
}

.total-balance {
    margin-top: 16px;
    color: var(--muted);
    font-size: 0.85rem;
}

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

.copy-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-row code {
    min-width: 0;
    padding: 13px;
    overflow-wrap: anywhere;
    border-radius: 12px;
    background: #f5f5f7;
    color: var(--graphite);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.55;
}

.send-card,
.security-card {
    min-height: 455px;
}

.form-note {
    margin: 14px 0 0;
    color: var(--danger);
    font-size: 0.82rem;
    line-height: 1.5;
}

.security-card p {
    color: var(--muted);
    line-height: 1.65;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding: 38px 0 70px;
}

.features article {
    padding: 23px;
    border-top: 1px solid var(--line);
}

.feature-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 11px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-weight: 800;
}

.features h2 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.features p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.6;
}

footer {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.78rem;
}

.toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 50;
    max-width: min(420px, calc(100% - 40px));
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--graphite);
    color: white;
    box-shadow: 0 16px 38px rgba(25, 26, 29, 0.24);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: 0.2s ease;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    background: var(--danger);
}

.modal[hidden] {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(30, 31, 35, 0.58);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 30px;
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 24px 80px rgba(20, 21, 24, 0.28);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 11px;
    background: #f3f3f5;
    color: var(--graphite);
    font-size: 1.4rem;
}

.warning-box {
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid rgba(182, 64, 64, 0.18);
    border-radius: 12px;
    background: #fff4f4;
    color: #8e3232;
    font-size: 0.84rem;
    line-height: 1.55;
}

.secret-field {
    position: relative;
    display: block;
    margin-top: 16px;
}

.secret-field input,
.secret-field textarea {
    padding-right: 92px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
}

.secret-field button {
    position: absolute;
    right: 8px;
    bottom: 8px;
    min-height: 32px;
    padding: 0 9px;
    border: 0;
    border-radius: 8px;
    background: var(--orange-soft);
    color: var(--orange-dark);
    font-size: 0.7rem;
    font-weight: 700;
}

.tx-summary {
    margin: 20px 0;
}

.tx-summary > div {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.tx-summary dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.tx-summary dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
    font-weight: 700;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.build-notice {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 100;
    width: min(720px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px 12px;
    padding: 13px 16px;
    border: 1px solid #f1c69f;
    border-radius: 13px;
    background: #fff7ef;
    color: #74411e;
    box-shadow: var(--shadow);
    font-size: 0.82rem;
    text-align: center;
}

.build-notice code {
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(244, 123, 32, 0.11);
}

.balance-hidden #unlocked-balance,
.balance-hidden #total-balance {
    filter: blur(8px);
    user-select: none;
}

body.busy::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.38);
    cursor: progress;
    pointer-events: none;
}

@media (max-width: 920px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: 700px;
    }

    .access-card {
        min-height: 0;
    }

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

    .features article {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 14px;
    }

    .feature-icon {
        grid-row: span 2;
    }
}

@media (max-width: 720px) {
    .shell {
        width: min(100% - 22px, 1220px);
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 0;
    }

    .node-control {
        width: 100%;
    }

    .node-control label {
        display: none;
    }

    .node-control select {
        min-width: 0;
        flex: 1;
    }

    .hero {
        padding-top: 44px;
    }

    h1 {
        font-size: clamp(2.2rem, 13vw, 3.7rem);
    }

    .access-card {
        padding: 10px 18px 24px;
    }

    .tabs {
        margin-inline: -8px;
        overflow-x: auto;
    }

    .two-columns,
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .wallet-header,
    .wallet-actions,
    footer {
        align-items: stretch;
        flex-direction: column;
    }

    .wallet-actions button {
        flex: 1;
    }

    .send-card,
    .security-card {
        min-height: 0;
    }

    .modal-card {
        padding: 26px 18px;
    }

    .tx-summary > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .tx-summary dd {
        text-align: left;
    }
}

@media (max-width: 430px) {
    .brand small {
        display: none;
    }

    .tabs {
        grid-template-columns: repeat(4, minmax(76px, 1fr));
    }

    .tab {
        font-size: 0.76rem;
    }

    .trust-row {
        display: grid;
    }

    .dashboard-grid .card,
    .wallet-header {
        padding: 21px;
    }
}

.compact-drop {
    min-height: 104px;
    margin-top: 16px;
}

.section-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0 18px;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-divider::before,
.section-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

[hidden] {
    display: none !important;
}

body.wallet-open {
    background:
        radial-gradient(circle at 8% 0%, rgba(244, 123, 32, 0.08), transparent 32rem),
        #f5f5f7;
}

.wallet-shell {
    min-height: 100vh;
}

.wallet-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(48, 50, 56, 0.08);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.wallet-topbar-inner {
    width: min(1320px, calc(100% - 34px));
    min-height: 82px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.wallet-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-node-control select {
    min-width: 210px;
}

.wallet-main {
    width: min(1320px, calc(100% - 34px));
    margin: 0 auto;
    padding: 34px 0 60px;
}

.wallet-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 30px;
}

.wallet-overview h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.04;
}

.wallet-overview-note {
    min-width: 230px;
    padding: 16px 18px;
    border: 1px solid rgba(244, 123, 32, 0.18);
    border-radius: 14px;
    background: var(--orange-soft);
}

.wallet-overview-note strong,
.wallet-overview-note span {
    display: block;
}

.wallet-overview-note strong {
    margin-bottom: 5px;
    color: var(--orange-dark);
    font-size: 0.9rem;
}

.wallet-overview-note span {
    color: var(--graphite-2);
    font-size: 0.78rem;
    line-height: 1.45;
}

.wallet-shell .send-card,
.wallet-shell .security-card {
    min-height: 430px;
}

.wallet-shell .security-card {
    display: flex;
    flex-direction: column;
}

.wallet-shell .security-card .secondary-button {
    align-self: flex-start;
}

.wallet-shell .security-card .ghost-button {
    align-self: flex-start;
}

.transactions-card {
    margin-top: 18px;
    padding: 26px;
}

.transactions-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.transactions-heading h2 {
    margin-bottom: 0;
    font-size: 1.48rem;
    letter-spacing: -0.025em;
}

.transactions-count {
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f1f3;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.transactions-empty {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 30px;
    text-align: center;
}

.transactions-empty strong,
.transactions-empty span {
    display: block;
}

.transactions-empty strong {
    margin-bottom: 7px;
    color: var(--graphite-2);
}

.transactions-empty span {
    max-width: 520px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.transactions-list {
    display: grid;
}

.transaction-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px 2px;
    border-bottom: 1px solid var(--line);
}

.transaction-row:last-child {
    border-bottom: 0;
}

.transaction-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    font-size: 1.15rem;
    font-weight: 850;
}

.transaction-icon.incoming {
    background: #eaf7f1;
    color: var(--success);
}

.transaction-icon.outgoing {
    background: var(--orange-soft);
    color: var(--orange-dark);
}

.transaction-details,
.transaction-value {
    min-width: 0;
}

.transaction-details strong,
.transaction-details code,
.transaction-details span,
.transaction-value strong,
.transaction-value span {
    display: block;
}

.transaction-details strong {
    margin-bottom: 5px;
    font-size: 0.93rem;
}

.transaction-details code {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--graphite-2);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.78rem;
    text-overflow: ellipsis;
}

.transaction-details span {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.74rem;
}

.transaction-value {
    text-align: right;
}

.transaction-value strong {
    margin-bottom: 6px;
    white-space: nowrap;
    font-size: 0.92rem;
}

.transaction-status {
    color: var(--muted);
    font-size: 0.72rem;
}

.transaction-status.failed {
    color: var(--danger);
}

.recovery-confirmation {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.confirmation-check {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 14px;
    border: 1px solid rgba(244, 123, 32, 0.23);
    border-radius: 12px;
    background: var(--orange-soft);
    color: var(--graphite-2);
    cursor: pointer;
}

.confirmation-check input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    margin: 1px 0 0;
    accent-color: var(--orange);
}

.confirmation-check span {
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 1040px) {
    .wallet-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 15px 0;
    }

    .wallet-toolbar {
        width: 100%;
        flex-wrap: wrap;
    }

    .wallet-node-control {
        flex: 1 1 320px;
    }

    .wallet-node-control select {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .wallet-topbar-inner,
    .wallet-main {
        width: min(100% - 22px, 1320px);
    }

    .wallet-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wallet-node-control {
        grid-column: 1 / -1;
        width: 100%;
    }

    .wallet-toolbar > button {
        width: 100%;
    }

    .wallet-overview {
        align-items: stretch;
        flex-direction: column;
        padding: 22px;
    }

    .wallet-overview-note {
        min-width: 0;
    }

    .transactions-card {
        padding: 20px;
    }

    .transaction-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .transaction-value {
        grid-column: 2;
        text-align: left;
    }

    .transaction-value strong,
    .transaction-value span {
        display: inline;
    }

    .transaction-value span {
        margin-left: 8px;
    }
}


.fast-sync-panel {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(245, 102, 0, 0.28);
    border-radius: 14px;
    background: #fff8f2;
    display: grid;
    gap: 8px;
}
.fast-sync-panel[hidden] { display: none !important; }
.fast-sync-panel > strong { color: #2d3136; }
.fast-sync-panel > span,
.fast-sync-panel > small { color: #62676d; line-height: 1.5; }
.fast-sync-actions {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) auto auto;
    gap: 10px;
    align-items: end;
    margin-top: 4px;
}
.compact-field { margin: 0; }
.compact-field input { min-height: 44px; }
@media (max-width: 760px) {
    .fast-sync-actions { grid-template-columns: 1fr; }
    .fast-sync-actions button { width: 100%; }
}

.field-note {
    margin: 0.75rem 0 1rem;
    font-size: 0.88rem;
    line-height: 1.45;
}

.warning-note {
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(229, 103, 23, 0.22);
    border-radius: 10px;
    background: rgba(229, 103, 23, 0.07);
    color: #4a4039;
}

.sync-start-control {
    width: min(520px, 100%);
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
}

.sync-start-button {
    margin-top: 0;
    font-size: 0.82rem;
}

.sync-start-control > span {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.view-tags-note {
    width: min(560px, 100%);
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 0.74rem;
    line-height: 1.45;
}

.sync-start-modal-card {
    width: min(680px, 100%);
}

.sync-start-live {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 18px;
}

.sync-start-live > div {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f8f8fa;
}

.sync-start-live span,
.sync-start-live strong {
    display: block;
}

.sync-start-live span {
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sync-start-live strong {
    font-size: 1rem;
}

.sync-start-range {
    width: 100%;
    accent-color: var(--orange);
    cursor: pointer;
}

.sync-start-inputs .field {
    margin-top: 18px;
}

.confirm-modal-card {
    width: min(520px, 100%);
}

.danger-button {
    border-color: var(--danger);
    background: var(--danger);
    box-shadow: 0 10px 22px rgba(182, 64, 64, 0.2);
}

.danger-button:hover:not(:disabled) {
    border-color: #963535;
    background: #963535;
}

@media (max-width: 560px) {
    .sync-start-live {
        grid-template-columns: 1fr;
    }

    .sync-start-control {
        align-items: flex-start;
        flex-direction: column;
    }
}
