:root {
    --atx-teal: #0B6E6B;
    --atx-teal-deep: #085855;
    --atx-gold: #C4A35A;
    --atx-paper: #F7F4EE;
    --atx-surface: #FFFcf6;
    --atx-ink: #1A1A1A;
    --atx-ink-muted: #5C6B6A;
    --atx-muted: #5C6B6A;
    --atx-line: #E4DDD2;
    --atx-radius: 12px;
}

html,
body {
    background: var(--atx-paper);
    color: var(--atx-ink);
    font-family: "Vazirmatn", Tahoma, sans-serif;
}

.atx-appbar,
.mud-appbar.atx-appbar {
    background: #fff !important;
    color: var(--atx-ink) !important;
    border-bottom: 1px solid var(--atx-line);
    min-height: 48px;
    height: 48px;
}
.mud-appbar.atx-staff-appbar {
    height: auto;
    width: 100%;
    align-items: stretch;
    gap: 0;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.mud-appbar.atx-staff-appbar > .mud-toolbar {
    width: 100%;
    align-self: stretch;
    height: auto;
    min-height: 48px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}
.mud-appbar.atx-staff-appbar > .mud-toolbar > * {
    flex-shrink: 0;
}
.mud-appbar.atx-staff-appbar .mud-spacer {
    flex: 1 1 auto;
}
.atx-staff-appbar .atx-appbar-meta {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
    flex-wrap: nowrap;
    min-width: 0;
}
.atx-staff-appbar .atx-header-slot,
.atx-staff-appbar .atx-session-timer {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.72rem;
    color: var(--atx-ink-muted);
    line-height: 1.4;
}
.atx-staff-appbar .atx-header-date { display: inline; }

.atx-test-bypass {
    background: #fff4d6;
    color: #6a4b00;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.45;
    padding: 0.28rem 0.7rem;
    border-bottom: 1px solid #e6d7a8;
}

/* pa-4 روی MudMainContent فاصلهٔ زیر AppBar را صفر می‌کرد و تیتر صفحه زیر نوار سبز می‌افتاد. */
.mud-main-content.atx-staff-main {
    padding-top: calc(var(--mud-appbar-height, 64px) + 2px + 1rem) !important;
}

@media (max-width: 600px) {
    .mud-main-content.atx-staff-main {
        padding-inline: 0.75rem !important;
        padding-bottom: 1rem !important;
        padding-top: calc(var(--mud-appbar-height, 64px) + 2px + 0.85rem) !important;
    }
}

.atx-drawer.mud-drawer {
    background: var(--atx-teal) !important;
}

.atx-drawer .mud-nav-link {
    color: #fff;
    border-radius: 8px;
    transition: background-color 160ms ease, color 160ms ease;
}

.atx-drawer .mud-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
}

.atx-drawer .mud-nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border-inline-start: 3px solid var(--atx-gold);
}

.atx-drawer:not(.atx-portal-drawer) .mud-nav-link.active .mud-nav-link-text {
    color: #fff !important;
    position: static;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    max-width: none;
    overflow: visible;
    white-space: nowrap;
    opacity: 1;
    visibility: visible;
}

.atx-portal-drawer.atx-drawer .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled),
.atx-portal-drawer.atx-drawer .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):hover,
.atx-portal-drawer.atx-drawer .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled):focus-visible,
.atx-portal-drawer.atx-drawer .mud-navmenu .mud-nav-link.active:not(.mud-nav-link-disabled) .mud-nav-link-text {
    color: var(--atx-paper);
}

.atx-portal-drawer.mud-drawer--closed.mud-drawer-mini > .mud-drawer-content > .mud-navmenu .mud-nav-link.active .mud-icon-root:first-child + .mud-nav-link-text {
    position: static;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    overflow: visible;
    white-space: nowrap;
}

.atx-drawer .atx-nav-group {
    padding: 0.75rem 1rem 0.25rem;
    color: var(--atx-gold);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

.atx-brand {
    font-weight: 700;
}

.atx-portal-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.atx-portal-mark {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.atx-field-error {
    color: #b42318;
    font-size: 0.8rem;
    margin: 0.35rem 0 0;
}

.atx-history {
    width: 100%;
    border-collapse: collapse;
}

.atx-history th,
.atx-history td {
    border: 0;
    border-bottom: 1px solid var(--atx-line);
    padding: 0.55rem 0.4rem;
    text-align: start;
    vertical-align: top;
    font-size: 0.85rem;
}

.atx-history tbody tr {
    transition: background-color 160ms ease;
}

.atx-history tbody tr:hover {
    background: rgba(11, 110, 107, 0.05);
}

.mud-table .mud-table-cell {
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--atx-line) !important;
}

.mud-table .mud-table-row {
    transition: background-color 160ms ease;
}

.mud-table .mud-table-row:hover {
    background: rgba(11, 110, 107, 0.05);
}

.atx-history-note {
    max-width: 16rem;
    white-space: pre-wrap;
}

.atx-mark {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    background: var(--atx-gold);
    border-radius: 2px;
    flex-shrink: 0;
}

.atx-main-login {
    padding: 0 !important;
    margin: 0;
}

.atx-portal-shell {
    --atx-teal: #0B6E6B;
    --atx-teal-deep: #085855;
    --atx-gold: #C4A35A;
    --atx-paper: #F7F4EE;
    --atx-surface: #FFFcf6;
    --atx-ink: #1A1A1A;
    --atx-ink-muted: #5C6B6A;
    --atx-muted: #5C6B6A;
    --atx-line: #E4DDD2;
    --atx-radius: 12px;
}

.atx-portal-shell-guest,
.atx-portal-shell-guest .mud-main-content {
    padding: 0 !important;
    margin: 0;
    min-height: 100dvh;
    max-width: none;
}

.atx-portal-split {
    position: relative;
}

.atx-portal-lang {
    position: relative;
    z-index: 31;
}

.atx-portal-lang-corner {
    position: absolute;
    top: 16px;
    right: 20px;
}

.atx-portal-lang-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: default;
}

.atx-portal-lang-trigger,
.atx-portal-lang-menu button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: var(--atx-ink);
    font: inherit;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
}

.atx-portal-lang-trigger {
    position: relative;
    z-index: 33;
    height: 28px;
    padding: 0 0.35rem 0 0.15rem;
    border-radius: 8px;
}

.atx-portal-lang-trigger:hover,
.atx-portal-lang.is-open .atx-portal-lang-trigger {
    background: rgba(253, 250, 240, 0.72);
}

.atx-portal-flag {
    display: inline-flex;
    width: 18px;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(45, 81, 85, 0.18);
    flex-shrink: 0;
}

.atx-portal-flag svg {
    display: block;
    width: 18px;
    height: 12px;
}

.atx-portal-lang-caret {
    color: var(--atx-ink-muted);
}

.atx-portal-lang-menu {
    position: absolute;
    z-index: 32;
    top: calc(100% + 4px);
    right: 0;
    min-width: 8.5rem;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(30, 58, 61, 0.12);
}

.atx-portal-lang-menu button {
    width: 100%;
    justify-content: flex-start;
    padding: 0.45rem 0.55rem;
    border-radius: 7px;
}

.atx-portal-lang-menu button:hover,
.atx-portal-lang-menu button.is-on {
    background: #F3EBD6;
}

.atx-portal-appbar {
    position: relative;
    gap: 0.75rem;
}

.atx-portal-shell .atx-portal-appbar .atx-portal-lang {
    position: relative;
    margin-inline-end: 1.75rem;
    flex-shrink: 0;
}

.atx-portal-shell .atx-portal-appbar .atx-portal-brand {
    flex-shrink: 0;
}

.atx-portal-split {
    display: grid;
    grid-template-columns: minmax(16rem, 44%) minmax(20rem, 1fr);
    min-height: 100dvh;
    width: 100%;
    background: var(--atx-paper);
}

.atx-portal-split-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 16%, rgba(196, 163, 90, 0.18), transparent 40%),
        linear-gradient(165deg, var(--atx-teal) 0%, var(--atx-teal-deep) 100%);
    color: var(--atx-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    border-right: 3px solid var(--atx-gold);
}

.atx-portal-split-brand-texture {
    position: absolute;
    inset: 0;
    background-image: url("/brand/portal-brand-texture.svg");
    background-size: 240px 240px;
    opacity: 0.38;
    pointer-events: none;
}

.atx-portal-split-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 24rem;
}

.atx-portal-split-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--atx-paper);
    text-decoration: none;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.01em;
}

.atx-portal-split-logo img {
    width: 4rem;
    height: 4rem;
    border-radius: 12px;
    box-shadow: 0 0 0 2px var(--atx-gold);
    background: var(--atx-teal-deep);
}

.atx-portal-split-headline {
    margin: 1.35rem 0 0.4rem;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--atx-paper);
}

.atx-portal-split-tag {
    margin: 0;
    color: var(--atx-gold);
    font-size: 0.95rem;
}

.atx-portal-split-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.atx-portal-split-chips li {
    border: 1px solid var(--atx-gold);
    color: var(--atx-paper);
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
}

.atx-portal-form-mark {
    display: grid;
    place-items: center;
    margin: 0 0 0.85rem;
}

.atx-portal-form-mark img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 8px;
    box-shadow: 0 0 0 1px var(--atx-gold);
}

.atx-portal-split-form {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background: var(--atx-paper);
}

.atx-portal-split-form-inner {
    width: min(20rem, 100%);
    background: #fff;
    border: 1px solid var(--atx-line);
    border-radius: var(--atx-radius);
    padding: 1.15rem 1.05rem 1rem;
}

h1.atx-portal-guest-title {
    all: unset;
    display: block;
    margin: 0 0 1rem;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--atx-teal-deep);
    background: none;
    border: 0;
    box-shadow: none;
    width: auto;
    padding: 0;
}

.atx-login-shell {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.atx-staff-login {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(18rem, 1.2fr);
    background: var(--atx-paper);
}

@media (max-width: 800px) {
    .atx-staff-login {
        grid-template-columns: 1fr;
    }

    .atx-staff-login-brand {
        min-height: 12rem;
    }
}

.atx-staff-login-brand {
    background: var(--atx-teal-deep);
    color: var(--atx-paper);
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    overflow: hidden;
}

.atx-staff-login-brand::after {
    content: "";
    position: absolute;
    inset: auto -20% -40% auto;
    width: 18rem;
    height: 18rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.atx-staff-login-brand-top {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    z-index: 1;
}

.atx-staff-login-brand h1 {
    margin: 1.5rem 0 0;
    font-size: 1.75rem;
    z-index: 1;
}

.atx-staff-login-brand p {
    margin: 0;
    opacity: 0.9;
    z-index: 1;
}

.atx-staff-login-pills {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    z-index: 1;
}

.atx-staff-login-pills span {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
}

.atx-staff-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--atx-paper);
}

.atx-login-card {
    width: min(22rem, 100%);
    border: 1px solid var(--atx-line);
    border-top: 4px solid var(--atx-gold);
    background: var(--atx-surface);
    border-radius: 12px;
}

.atx-field {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    border: 1px solid var(--atx-line);
    border-radius: var(--atx-radius);
    font: inherit;
    background: var(--atx-surface);
    color: var(--atx-ink);
}

.atx-field:focus {
    outline: 2px solid var(--atx-teal);
    outline-offset: 1px;
}

.atx-code {
    text-transform: uppercase;
    letter-spacing: 0.35em;
}

.atx-home-status {
    border: 1px solid var(--atx-line);
    border-top: 4px solid var(--atx-gold);
    background: var(--atx-surface);
    border-radius: 12px;
}

.atx-home-perms {
    color: var(--atx-ink-muted);
    word-break: break-word;
}

.atx-home-group {
    color: var(--atx-teal-deep);
    font-size: 0.8rem;
    font-weight: 500;
    margin: 0.25rem 0 0.5rem;
}

.atx-home-tile {
    justify-content: flex-start;
    min-height: 3rem;
    background: var(--atx-surface);
}

.atx-page {
    max-width: 48rem;
}

.atx-page.atx-home {
    max-width: 56rem;
}

.atx-section {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--atx-line);
}

.atx-cta {
    min-height: 3rem;
}

.atx-content {
    max-width: 56rem;
    margin-inline: auto;
}

.mud-main-content.atx-content.atx-staff-main {
    max-width: 80rem;
}

.atx-td-work > * { min-width: 0; }
.atx-td-work .mud-input-control,
.atx-td-work .mud-input { max-width: 100%; }

.mud-main-content.atx-content.atx-staff-main {
    max-width: 80rem;
}

.atx-td-work > * { min-width: 0; }
.atx-td-work .mud-input-control,
.atx-td-work .mud-input { max-width: 100%; }

.atx-page-wide {
    max-width: 72rem;
}

.atx-form {
    max-width: 32rem;
}

.atx-job-pick {
    display: grid;
    gap: 0.75rem;
}

.atx-forbidden,
.atx-empty {
    color: var(--atx-ink-muted);
}

@media (max-width: 600px) {
    .atx-cta,
    .atx-home-tile {
        min-height: 3rem;
        width: 100%;
    }
}

.atx-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--atx-ink);
}

.atx-login-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    margin-top: 1rem;
    justify-content: space-between;
}

.atx-portal-split-form .atx-field {
    background: #fff;
    border: 1px solid var(--atx-line);
    border-radius: var(--atx-radius);
    padding: 0.5rem 0.75rem;
    min-height: 2.5rem;
    color: var(--atx-ink);
}

.atx-portal-split-form .atx-field:focus {
    outline: 2px solid var(--atx-gold);
    background: #fff;
}

.atx-portal-shell {
    background: var(--atx-paper);
}

.atx-portal-appbar,
.atx-portal-shell .mud-appbar.atx-portal-appbar {
    background: var(--atx-surface) !important;
    color: var(--atx-ink) !important;
}

.atx-portal-kyc {
    border: 1px solid var(--atx-gold);
    color: var(--atx-gold);
    border-radius: 999px;
    padding: 0.2rem 0.7rem;
    font-size: 0.8rem;
    margin-inline-end: 0.5rem;
}

.atx-kyc-board {
    display: grid;
    direction: ltr;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.atx-kyc-card {
    direction: rtl;
    display: flex;
    flex-direction: column;
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 14px;
    padding: 0.85rem 0.75rem 0.75rem;
    min-width: 0;
}

.atx-kyc-card.is-current {
    border-color: var(--atx-gold);
    box-shadow: 0 0 0 1px var(--atx-gold);
    background: #fbf6e8;
}

.atx-kyc-card h2 {
    align-self: flex-start;
    margin: 0 0 0.45rem;
    font-size: 1rem;
    border: 0;
    padding: 0;
}

.atx-kyc-pill {
    align-self: flex-start;
    display: inline-block;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 0.55rem;
}

.atx-kyc-pill.is-done { background: #2f6b4f; color: #fff; }
.atx-kyc-pill.is-now { background: #3d6a52; color: #fff; }
.atx-kyc-pill.is-lock { background: #e6e1d4; color: var(--atx-ink-muted); }

.atx-kyc-items {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.atx-kyc-items li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem;
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    background: #fff;
    padding: 0.35rem 0.45rem;
    font-size: 0.82rem;
}

.atx-kyc-items li span { text-align: center; flex: 1; }
.atx-kyc-mark { color: #2f6b4f; font-weight: 700; width: 1rem; text-align: center; }
.atx-kyc-mark.is-off { color: #c5c1b4; }
.atx-kyc-mark.is-bad { color: #9c2f2f; }
.atx-file-offscreen { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.atx-kyc-mark.is-off { color: #b7ad9c; }

.atx-kyc-file {
    display: block;
    width: fit-content;
    align-self: flex-end;
    margin-top: 0.55rem;
    background: var(--atx-gold);
    color: #fff;
    border-radius: 8px;
    padding: 0.28rem 0.45rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
}

.atx-kyc-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 7.5rem;
    border: 1.5px dashed var(--atx-gold);
    border-radius: 14px;
    background: var(--atx-surface);
    color: var(--atx-ink);
    text-align: center;
    cursor: pointer;
}

.atx-kyc-drop svg { width: 42px; height: 32px; }
.atx-kyc-drop strong { font-size: 1rem; }
.atx-kyc-drop small { color: var(--atx-ink-muted); }
.atx-kyc-drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.atx-kyc-form {
    margin-bottom: 0.85rem;
}

.atx-kyc-form .atx-transfer-body {
    max-width: 34rem;
}

.atx-ltr {
    direction: ltr;
    text-align: left;
}

.atx-crypto .atx-transfer-body {
    max-width: 34rem;
}

.atx-crypto-tx-box {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    width: 36rem;
    max-width: 100%;
    min-width: min(100%, 36rem);
    flex: 0 0 auto;
    box-sizing: border-box;
}

.atx-crypto-tx-box > .atx-transfer-secondary,
.atx-crypto-tx-box > .atx-transfer-primary,
.atx-crypto-tx-box > .atx-crypto-mask-wrap,
.atx-crypto-tx-box > .atx-slip-chosen,
.atx-crypto-tx-box > .atx-crypto-tx-title {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex: 0 0 auto;
}

.atx-crypto-tx-box > .atx-transfer-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
}

.atx-crypto-tx-title {
    margin: 0;
    font-size: 0.82rem;
    font-weight: 700;
}

.atx-slip-chosen {
    display: block;
    height: auto;
    object-fit: contain;
}

.atx-crypto-tx-box .atx-field {
    height: 2rem;
    padding: 0 0.55rem;
}

.atx-crypto-tx-box .atx-transfer-secondary {
    height: 2rem;
    padding: 0 0.7rem;
    font-size: 0.82rem;
}

.atx-crypto-asset,
.atx-crypto-money,
.atx-crypto-tx {
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

@media (max-width: 960px) {
    .atx-kyc-board { grid-template-columns: 1fr 1fr; }
}

.atx-portal-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--atx-gold);
    color: var(--atx-teal-deep);
    display: grid;
    place-items: center;
    font-weight: 700;
    margin-inline-end: 0.5rem;
}

.atx-portal-title {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
    line-height: 1.25;
}

.atx-portal-shell h1:focus,
.atx-portal-shell h1:focus-visible,
.atx-portal-shell h2:focus,
.atx-portal-shell h2:focus-visible {
    outline: none;
    box-shadow: none;
}

.atx-portal-wallet-main .atx-portal-wallet-no {
    overflow-wrap: normal;
    white-space: nowrap;
    line-height: 1.2;
}

.atx-portal-muted {
    color: var(--atx-ink-muted);
    margin: 0 0 0.35rem;
    font-size: 0.8rem;
    line-height: 1.35;
}

.atx-ia-cross {
    margin: 0 0 0.85rem;
    color: var(--atx-ink-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.atx-ia-cross a {
    color: var(--atx-teal);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.atx-ia-wizard {
    margin-bottom: 1rem;
}

.atx-ia-steps {
    margin: 0.5rem 0 0.85rem;
    padding-inline-start: 1.25rem;
    color: var(--atx-ink);
    line-height: 1.7;
}

.atx-ia-steps a {
    color: var(--atx-teal);
    font-weight: 600;
}

.atx-ia-note {
    margin: 0.9rem 0 0;
    padding: 0.65rem 0.8rem;
    border-radius: 8px;
    border: 1px solid var(--atx-line);
    background: #fff;
    color: var(--atx-ink-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.atx-portal-card {
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-top: 3px solid var(--atx-gold);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}

.atx-portal-grid {
    display: grid;
    gap: 0.75rem;
}

.atx-portal-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.2rem, 1fr));
    gap: 8px;
    width: 100%;
}

.atx-portal-rate {
    background: var(--atx-paper);
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    padding: 8px 10px;
}

.atx-portal-wallet {
    justify-content: start;
    align-items: center;
    gap: 0;
    min-height: 0;
    padding: 0.06rem 0;
    border-bottom: 1px solid var(--atx-line);
    color: inherit;
    text-decoration: none;
}

.atx-portal-wallet:last-child {
    border-bottom: 0;
}

.atx-dial {
    display: flex;
    direction: ltr;
    gap: 8px;
    align-items: center;
}

.atx-field-help {
    margin-inline-start: 0.35rem;
    border: 0;
    background: transparent;
    color: #8a6a2f;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.atx-field-help-pop {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--atx-ink);
}

.atx-kyc-cols,
.atx-kyc-doc {
    display: flex;
    direction: rtl;
    align-items: center;
    gap: 0.5rem;
}

.atx-kyc-cols {
    font-size: 0.72rem;
    color: var(--atx-ink-muted);
    margin: 0.4rem 0;
}

.atx-kyc-name { flex: 1; text-align: right; }
.atx-kyc-marks { display: flex; direction: ltr; align-items: center; gap: 0.35rem; }

.atx-dial-code {
    font-weight: 700;
    direction: ltr;
    unicode-bidi: isolate;
    text-align: left;
}

.atx-ops-file {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0.6rem 0;
}

.atx-ops-file img,
.atx-ops-file embed {
    max-width: 100%;
    max-height: 16rem;
    background: #fff;
    border: 1px solid var(--atx-line);
}

.atx-portal-wallet.is-hidden {
    background: #f6f1e6;
    box-shadow: inset 4px 0 0 #b08968;
}

.atx-hidden-mark {
    display: inline-block;
    margin-inline-start: 0.2rem;
    font-size: 0.72em;
    line-height: 1;
}

.atx-collect-facts {
    display: inline-flex;
    flex-direction: row;
    direction: rtl;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    unicode-bidi: isolate;
}

.atx-collect-facts > bdi,
.atx-collect-sep,
.atx-collect-range {
    unicode-bidi: isolate;
}

.atx-collect-range {
    direction: rtl;
}

.atx-portal-amount {
    font-weight: 700;
    color: var(--atx-gold);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.atx-portal-wallet-scroll {
    display: grid;
    grid-template-columns:
        max-content
        max-content
        max-content
        max-content
        max-content
        max-content
        minmax(0.6rem, 1fr)
        max-content;
    column-gap: 0.4rem;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
}

.atx-portal-wallet-scroll > .atx-portal-subtitle {
    grid-column: 1 / -1;
}

.atx-portal-wallet-columns {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: end;
    color: var(--atx-ink-muted);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0 0 0.12rem;
}

.atx-portal-wallet-columns > span {
    justify-self: start;
    white-space: nowrap;
    padding-inline: 0;
}

.atx-portal-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    min-width: max-content;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.atx-portal-box-label {
    display: none;
    color: var(--atx-ink-muted);
    font-size: 0.68rem;
    font-weight: 500;
    line-height: 1.15;
    white-space: nowrap;
}

.atx-portal-box .atx-portal-amount {
    font-size: 0.8rem;
    line-height: 1.15;
}

.atx-portal-box-note {
    display: block;
    margin-top: 0.12rem;
    color: var(--atx-ink);
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}

.atx-portal-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.atx-portal-step {
    border: 1px solid var(--atx-line);
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.8rem;
    color: var(--atx-ink-muted);
}

.atx-portal-step.is-on {
    border-color: var(--atx-gold);
    color: var(--atx-gold);
    background: #fff8e7;
}

.atx-portal-balances {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.atx-portal-bottom {
    display: none;
}

.atx-portal-more {
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.atx-portal-shell {
    --mud-drawer-width-left: 200px;
    --mud-drawer-width-right: 200px;
}

.atx-portal-shell .atx-content,
.atx-portal-shell .atx-portal-main {
    max-width: none;
    width: auto;
}

.atx-portal-shell .atx-page,
.atx-portal-shell .atx-page.atx-home,
.atx-portal-shell .atx-page-wide {
    max-width: 1100px;
    width: 100%;
    margin-inline: auto;
}

.atx-portal-main.pa-4 {
    padding: 56px 16px 12px !important;
}

.atx-portal-shell .atx-page > .atx-portal-title:first-child,
.atx-portal-shell .atx-page-wide > .atx-portal-title:first-child {
    padding-bottom: 0.3rem;
    margin-bottom: 0.55rem;
    border-bottom: 2px solid var(--atx-gold);
}

.atx-portal-shell .mud-button-filled-primary,
.atx-portal-shell .mud-button-filled.mud-button-filled-primary {
    background-color: var(--atx-teal) !important;
    color: #fff !important;
}

.atx-portal-shell .mud-link {
    color: var(--atx-teal) !important;
}

.atx-portal-split-form .atx-field:-webkit-autofill,
.atx-portal-split-form .atx-field:-webkit-autofill:hover,
.atx-portal-split-form .atx-field:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--atx-ink);
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    box-shadow: 0 0 0 1000px #fff inset;
}

.atx-portal-shell .mud-input-outlined:not(.mud-disabled) .mud-input-outlined-border {
    border-color: var(--atx-gold) !important;
}

.atx-portal-card {
    box-shadow: none;
}

.atx-portal-drawer.mud-drawer {
    width: 200px !important;
}

.atx-portal-nav .mud-nav-link {
    min-height: 2.6rem;
    justify-content: flex-start;
    padding-inline: 0.9rem !important;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: var(--atx-paper);
}

.atx-portal-nav .mud-nav-link .mud-nav-link-text {
    display: inline;
}

.atx-portal-nav .mud-nav-link .mud-icon-root {
    font-size: 1.25rem;
    color: var(--atx-gold);
    margin: 0 !important;
}

.atx-portal-account {
    position: relative;
    flex-shrink: 0;
}

.atx-portal-account-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    position: relative;
    z-index: 33;
}

.atx-portal-account-backdrop,
.atx-portal-hide-dialog .atx-portal-account-backdrop {
    position: fixed;
    inset: 0;
    z-index: 30;
    border: 0;
    background: transparent;
    cursor: default;
}

.atx-portal-account-menu {
    position: absolute;
    z-index: 32;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 14rem;
    padding: 0.4rem;
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    box-shadow: 0 10px 28px rgba(30, 58, 61, 0.12);
}

.atx-portal-account-menu a,
.atx-portal-account-menu button {
    display: block;
    width: 100%;
    text-align: start;
    border: 0;
    background: transparent;
    color: var(--atx-ink);
    font: inherit;
    text-decoration: none;
    padding: 0.45rem 0.55rem;
    border-radius: 7px;
    cursor: pointer;
}

.atx-portal-account-menu a:hover,
.atx-portal-account-menu button:hover {
    background: #F3EBD6;
}

.atx-portal-account-kyc {
    margin: 0.2rem 0.55rem 0.35rem;
    color: var(--atx-ink-muted);
    font-size: 0.78rem;
}

.atx-portal-account-kyc strong {
    display: block;
    color: var(--atx-gold);
    font-size: 0.92rem;
}

.atx-portal-hide-dialog {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.atx-portal-hide-card {
    position: relative;
    z-index: 41;
    width: min(24rem, 100%);
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 12px;
    padding: 1rem;
}

.atx-portal-user {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
    margin-inline-end: 0.65rem;
}

.atx-portal-username {
    font-weight: 700;
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atx-portal-hero {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.atx-home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    margin-bottom: 12px;
}

.atx-home-split > .atx-portal-card {
    margin-bottom: 0;
    min-width: 0;
}

.atx-balance-rows {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin: 0.15rem 0 0.55rem;
}

.atx-balance-rows > div {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--atx-line);
    min-width: 0;
}

.atx-balance-rows > div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.atx-balance-rows span,
.atx-balance-rows em {
    font-style: normal;
    font-size: 0.82rem;
    color: var(--atx-ink-muted);
}

.atx-balance-rows strong {
    font-size: 1.35rem;
    line-height: 1.3;
    font-weight: 800;
    color: var(--atx-gold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    margin-inline-start: auto;
}

.atx-rate-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.atx-rate-list li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    direction: ltr;
    min-height: 2.15rem;
    padding: 0.2rem 0.1rem;
    border-bottom: 1px solid var(--atx-line);
    font-variant-numeric: tabular-nums;
}

.atx-rate-list li:last-child {
    border-bottom: 0;
}

.atx-rate-list strong {
    color: var(--atx-gold);
    font-size: 1.05rem;
}

.atx-rate-list .atx-field {
    width: 5.2rem;
    min-height: 2rem;
    padding: 0.15rem 0.35rem;
}

.atx-portal-hero-amount {
    font-size: clamp(1.4rem, 2.1vw, 1.8rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--atx-gold);
}

.atx-portal-hero .atx-portal-muted {
    margin: 0;
}

.atx-portal-rates {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10.2rem, 1fr));
    gap: 8px;
    width: 100%;
}

.atx-portal-rate {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 8px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem;
    border: 1px solid var(--atx-line);
    background: var(--atx-paper);
}

.atx-portal-rate-pick {
    flex-wrap: wrap;
}

.atx-portal-rate-pick .atx-field {
    width: 4.5rem;
    min-height: 2rem;
    padding: 0.2rem 0.35rem;
}

.atx-portal-rate .atx-portal-muted {
    margin: 0 0 0.15rem;
}

.atx-portal-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.55rem;
}

.atx-portal-wallet-head .atx-portal-title {
    margin: 0;
}

.atx-portal-wallet {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    align-items: center;
    justify-content: start;
    min-height: 0;
    column-gap: 0.4rem;
    row-gap: 0;
}

.atx-portal-wallet-row {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    grid-template-rows: auto auto;
    align-items: center;
    row-gap: 0.08rem;
    cursor: pointer;
    transition: background-color 160ms ease;
}

.atx-portal-wallet-row:hover {
    background: rgba(11, 110, 107, 0.05);
}

.atx-portal-wallet-main {
    display: contents;
}

.atx-portal-wallet-id,
.atx-portal-box-total,
.atx-portal-box-free,
.atx-portal-box-held,
.atx-portal-box-road,
.atx-portal-wallet-no,
.atx-portal-wallet-ops {
    grid-row: 1;
    align-self: center;
}

.atx-portal-wallet-id { grid-column: 1; }
.atx-portal-box-total { grid-column: 2; }
.atx-portal-box-free { grid-column: 3; }
.atx-portal-box-held { grid-column: 4; }
.atx-portal-box-road { grid-column: 5; }
.atx-portal-wallet-no { grid-column: 6; }

.atx-portal-wallet-ops {
    grid-column: 8;
    justify-self: end;
}

.atx-portal-wallet-alias,
.atx-portal-hold-notes {
    grid-row: 2;
    align-self: start;
    justify-self: start;
}

.atx-portal-wallet-alias { grid-column: 1; }

.atx-portal-hold-notes { grid-column: 4; }

.atx-portal-break {
    display: none;
}

.atx-portal-wallet-id {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
    width: max-content;
    max-width: 100%;
}

.atx-portal-wallet-id .atx-asset-mark {
    margin-top: 0;
}

.atx-portal-wallet-alias {
    color: var(--atx-ink-muted);
    font-size: 0.72rem;
    line-height: 1.2;
    white-space: nowrap;
}

.atx-portal-hold-notes {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.06rem;
    color: var(--atx-ink);
    font-size: 0.68rem;
    font-weight: 400;
    line-height: 1.3;
    white-space: nowrap;
}

.atx-portal-wallet-no {
    justify-self: start;
    white-space: nowrap;
}

.atx-portal-wallet-id strong {
    font-size: 0.84rem;
}

.atx-asset-mark {
    display: inline-flex;
    width: 22px;
    height: 16px;
    border-radius: 3px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(45, 81, 85, 0.16);
    vertical-align: middle;
}

.atx-asset-mark svg {
    display: block;
    width: 22px;
    height: 16px;
}

.atx-balance-rows em {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.atx-portal-hidden-bar,
.atx-portal-rename,
.atx-portal-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.atx-portal-hidden-bar {
    margin: 0 0 0.7rem;
    padding: 0.4rem 0.65rem;
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    background: var(--atx-paper);
}

.atx-portal-hidden-bar .atx-field,
.atx-portal-rename .atx-field {
    width: 12rem;
    min-height: 2.1rem;
}

.atx-portal-wallet {
    width: 100%;
    border-bottom: 1px solid var(--atx-line);
    padding: 0.06rem 0;
}

.atx-portal-wallet > .atx-portal-rename,
.atx-portal-wallet > .atx-portal-wallet-more,
.atx-portal-wallet > .atx-portal-subtitle {
    grid-column: 1 / -1;
}

.atx-portal-asset {
    display: inline-flex;
    justify-content: center;
    min-width: 3.4rem;
    padding: 0.12rem 0.35rem;
    border-radius: 6px;
    background: #F3EBD6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.atx-portal-wallet-more {
    margin: 0 0 0.55rem;
    padding: 0.7rem 0.8rem;
    background: var(--atx-paper);
    border: 1px solid var(--atx-line);
    border-radius: 8px;
}

.atx-portal-wallet-more p {
    margin: 0.2rem 0;
}

.atx-portal-mini-title {
    margin: 0;
    color: var(--atx-ink);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.atx-portal-mini {
    margin: 0.65rem 0 0;
    border-top: 1px solid var(--atx-line);
}

.atx-portal-mini-head,
.atx-portal-mini-line {
    display: grid;
    grid-template-columns: 7rem minmax(8rem, 1fr) 14ch;
    gap: 1rem;
    align-items: baseline;
    padding: 0.45rem 0;
}

.atx-portal-mini-head {
    color: var(--atx-ink-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.atx-portal-mini-line {
    border-top: 1px solid var(--atx-line);
    font-size: 0.85rem;
}

.atx-portal-mini-end {
    direction: rtl;
    justify-self: end;
    width: 14ch;
    text-align: right;
}

.atx-portal-mini-amount {
    direction: ltr;
    justify-self: end;
    width: 14ch;
    color: var(--atx-gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}

.atx-portal-wallet-ops .mud-button-root,
.atx-portal-wallet-ops .mud-button-root:hover,
.atx-portal-wallet-ops .mud-button-root:focus,
.atx-portal-wallet-ops .mud-button-root:focus-visible,
.atx-portal-wallet-ops .mud-button-root:active {
    min-width: 44px;
    min-height: 44px;
    padding: 0 0.35rem;
    border: 0 !important;
    border-width: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

@media (max-width: 700px) {
    .atx-portal-mini {
        overflow-x: auto;
    }

    .atx-portal-mini-head,
    .atx-portal-mini-line {
        grid-template-columns: 6.5rem minmax(8rem, 1fr) 14ch;
        min-width: 28rem;
    }
}

.atx-portal-text-btn,
.atx-portal-add {
    border: 0;
    background: transparent;
    color: var(--atx-teal);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.atx-portal-add {
    margin-top: 0.7rem;
}

.atx-portal-add-form,
.atx-portal-hidden-unlock {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.55rem;
    margin-top: 0.45rem;
}

.atx-portal-add-form label {
    display: grid;
    gap: 0.2rem;
    font-size: 0.8rem;
}

.atx-portal-subtitle {
    margin: 0.8rem 0 0.3rem;
    font-size: 0.95rem;
}


.atx-portal-wallet-row:last-child {
    border-bottom: 0;
}

.atx-portal-wallet-row .mud-button {
    min-height: 28px;
    height: 28px;
    padding: 0 0.45rem;
}

.atx-portal-flag {
    font-size: 1.15rem;
    line-height: 1;
}

.atx-portal-wallet-name {
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 0.45rem;
    min-width: 0;
}

.atx-portal-wallet-no {
    font-weight: 500;
    font-size: 0.75rem;
    color: var(--atx-ink-muted);
    letter-spacing: 0.01em;
}

.atx-portal-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.atx-portal-fields,
.atx-portal-card .mud-stack {
    max-width: none !important;
    width: 100%;
    gap: 0.55rem !important;
}

.atx-portal-card .mud-alert,
.atx-portal-card .atx-portal-muted.mt-3,
.atx-portal-card .mt-3,
.atx-portal-card .mb-3 {
    margin-top: 0.45rem !important;
    margin-bottom: 0.45rem !important;
}

.atx-portal-card .mud-input-control,
.atx-portal-card .mud-select,
.atx-portal-card table {
    width: 100%;
}

.atx-history-wrap {
    width: 100%;
    overflow-x: auto;
}

@media (max-width: 960px) {
    .atx-portal-main {
        padding-bottom: 5rem !important;
    }

    .atx-portal-rates,
    .atx-portal-tools {
        grid-template-columns: 1fr 1fr;
    }

    .atx-portal-bottom {
        display: flex;
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 1100;
        background: var(--atx-teal-deep);
        color: var(--atx-paper);
        border-top: 2px solid var(--atx-gold);
        justify-content: space-around;
        padding: 0.6rem 0.4rem calc(0.6rem + env(safe-area-inset-bottom));
    }

    .atx-portal-bottom a,
    .atx-portal-bottom button {
        color: var(--atx-paper);
        text-decoration: none;
        font-size: 0.8rem;
    }
}

@media (max-width: 560px) {
    .atx-portal-split {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .atx-portal-split-brand {
        min-height: 0;
        padding: 1.35rem 1rem 1.1rem;
        border-right: 0;
        border-bottom: 3px solid var(--atx-gold);
    }

    .atx-portal-split-brand-inner {
        max-width: 100%;
    }

    .atx-portal-split-logo {
        font-size: 1.45rem;
    }

    .atx-portal-split-logo img {
        width: 2.75rem;
        height: 2.75rem;
    }

    .atx-portal-split-headline {
        font-size: 1.35rem;
    }

    .atx-portal-split-form {
        align-items: flex-start;
        padding-top: 3.25rem;
    }
}

.atx-transfer-hint {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--atx-line);
    border-inline-start: 4px solid var(--atx-gold);
    background: var(--atx-surface);
    border-radius: 10px;
    color: var(--atx-ink-muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

.atx-settings-alert {
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid #bfd0e6;
    background: #eef4fb;
    color: #35506e;
    font-size: 0.88rem;
    line-height: 1.5;
}

.atx-transfer-body {
    max-width: 34rem;
    width: 100%;
}

.atx-transfer-field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.85rem;
    min-width: 0;
}

.atx-transfer-field span {
    color: var(--atx-ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.atx-transfer-field .atx-field {
    background: #fff;
}

.atx-transfer-dest-row {
    display: flex;
    gap: 0.55rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.atx-transfer-dest-row .atx-transfer-field {
    flex: 1;
    margin-bottom: 0;
}

.atx-transfer-dest {
    margin: 0 0 0.7rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: #fff;
}

.atx-transfer-dest strong {
    display: block;
}

.atx-transfer-dest small {
    color: var(--atx-ink-muted);
}

.atx-transfer-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.9rem;
    font-weight: 600;
}

.atx-transfer-amounts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
}

.atx-transfer-amounts .atx-transfer-field {
    margin-bottom: 0;
}

.atx-transfer-fee {
    color: var(--atx-gold) !important;
    font-weight: 700;
    background: var(--atx-paper) !important;
}

.atx-transfer-calc {
    margin: 0 0 0.75rem;
    color: var(--atx-ink-muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.atx-transfer-note {
    min-height: 4.5rem;
    resize: vertical;
}

.atx-transfer-primary,
.atx-transfer-secondary,
.atx-transfer-danger {
    height: 2.75rem;
    border-radius: 10px;
    font: inherit;
    font-weight: 700;
    padding: 0 1rem;
    cursor: pointer;
}

.atx-transfer-primary {
    width: 100%;
    min-height: 3rem;
    border: 0;
    background: var(--atx-teal);
    color: var(--atx-paper);
}

.atx-transfer-primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.atx-transfer-secondary {
    border: 1px solid var(--atx-teal);
    background: var(--atx-surface);
    color: var(--atx-teal);
    white-space: nowrap;
}

.atx-transfer-danger {
    border: 1px solid #9b3b3b;
    background: var(--atx-surface);
    color: #9b3b3b;
}

.atx-transfer-ok {
    margin-top: 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: #edf6f0;
    color: var(--atx-teal);
    font-size: 0.9rem;
}

.atx-transfer-outgoing {
    margin-top: 1rem;
}

.atx-transfer-outgoing .atx-portal-title {
    margin-bottom: 0.7rem;
}

.atx-transfer-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem 0.85rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--atx-line);
}

.atx-transfer-item:last-child {
    border-bottom: 0;
}

.atx-transfer-item strong {
    display: block;
}

.atx-transfer-item small {
    display: block;
    color: var(--atx-ink-muted);
    font-size: 0.82rem;
}

.atx-transfer-item-actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 700px) {
    .atx-transfer-dest-row {
        flex-direction: column;
        align-items: stretch;
    }

    .atx-transfer-item {
        grid-template-columns: 1fr;
    }

    .atx-transfer-item-actions {
        justify-content: flex-start;
    }
}

.atx-deposit-tabs {
    display: flex;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
}

.atx-deposit-tab {
    flex: 1;
    height: 2.6rem;
    border-radius: 10px;
    border: 1px solid var(--atx-line);
    background: #fff;
    color: var(--atx-ink);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.atx-deposit-tab.is-on {
    border-color: var(--atx-teal);
    background: var(--atx-teal);
    color: var(--atx-paper);
}

.atx-deposit-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0 0 0.95rem;
}

.atx-deposit-step {
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    border: 1px solid var(--atx-line);
    background: #fff;
    color: var(--atx-ink-muted);
    font-size: 0.8rem;
    font-weight: 600;
}

.atx-deposit-step.is-on {
    border-color: var(--atx-gold);
    color: var(--atx-teal);
    background: rgba(196, 163, 90, 0.12);
}

.atx-deposit-row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.atx-deposit-row2 .atx-transfer-field {
    margin-bottom: 0.85rem;
}

.atx-deposit-upload {
    border: 1px dashed var(--atx-gold);
    border-radius: 10px;
    background: #fff;
    padding: 0.85rem 1rem;
    color: var(--atx-ink-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.atx-deposit-upload strong {
    color: var(--atx-ink);
}

.atx-deposit-upload em {
    font-style: normal;
    color: var(--atx-teal);
    font-weight: 600;
}

.atx-deposit-section {
    margin-top: 1rem;
}

.atx-deposit-section .atx-portal-title {
    margin-bottom: 0.7rem;
}

.atx-crypto-board {
    border: 1px solid var(--atx-line);
    border-radius: 12px;
    padding: 0.75rem 0.85rem 0.35rem;
    margin-top: 0.9rem;
    background: #fff;
}

.atx-crypto-board > .atx-portal-title {
    display: block;
    margin: 0 0 0.55rem;
}

.atx-deposit-req {
    border-bottom: 1px solid var(--atx-line);
    padding: 0.8rem 0;
}

.atx-deposit-req:last-child {
    border-bottom: 0;
}

.atx-deposit-req {
    overflow: hidden;
}

.atx-deposit-req-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.65rem 1rem;
    align-items: center;
}

.atx-deposit-req-head > div {
    min-width: 0;
    max-width: 100%;
}

.atx-slip-shot {
    position: relative;
    display: block;
    width: 100%;
    max-width: 100%;
    margin-top: 0.45rem;
}

.atx-slip-shot img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
}

.atx-slip-dl {
    position: absolute;
    top: 0.35rem;
    inset-inline-end: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    background: rgba(20, 24, 22, 0.72);
    color: #fff;
}

.atx-slip-dl svg {
    width: 14px;
    height: 14px;
}

.atx-td-tk:has(.atx-slip-shot) {
    overflow: visible;
}

.atx-deposit-preview,
iframe.atx-deposit-preview {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 220px;
    height: auto;
    object-fit: contain;
    margin-top: 0.45rem;
    border: 0;
    box-sizing: border-box;
}

iframe.atx-deposit-preview {
    height: 220px;
}

.atx-point-map {
    height: 240px;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.atx-fee-miss {
    display: block;
    margin-top: 0.35rem;
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
    outline: 2px solid #c0392b;
    background: #fdecea;
}

.atx-deposit-req-head strong {
    display: block;
    font-size: 1rem;
}

.atx-deposit-req-head small {
    display: block;
    color: var(--atx-ink-muted);
    font-size: 0.82rem;
    margin-top: 0.15rem;
}

.atx-wire-fail-mark {
    color: #c0392b;
    font-weight: 700;
    margin-inline-end: 0.35rem;
}

.atx-deposit-badge {
    display: inline-block;
    margin-top: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(196, 163, 90, 0.14);
    color: var(--atx-teal);
    font-size: 0.78rem;
    font-weight: 700;
}

.atx-deposit-req-side {
    text-align: start;
}

.atx-deposit-req-side .atx-transfer-secondary {
    margin-top: 0.45rem;
}

.atx-deposit-req-body {
    margin-top: 0.7rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    background: #fff;
}

.atx-deposit-req-body p {
    margin: 0 0 0.55rem;
    color: var(--atx-ink-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.atx-deposit-mini-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0 0 0.7rem;
}

.atx-deposit-mini-steps span {
    font-size: 0.78rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--atx-line);
    background: #fff;
    color: var(--atx-ink-muted);
}

.atx-field.is-invalid,
.atx-deposit-upload.is-invalid {
    border-color: #b42318;
}

.atx-deposit-mini-steps span.done {
    border-color: #6a8f6a;
    color: #3d5c3d;
    background: #f0f6f0;
}

.atx-deposit-mini-steps span.now {
    border-color: var(--atx-gold);
    color: var(--atx-teal);
    background: rgba(196, 163, 90, 0.12);
    font-weight: 700;
}

.atx-deposit-req-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

@media (max-width: 700px) {
    .atx-deposit-row2 {
        grid-template-columns: 1fr;
    }

    .atx-deposit-req-head {
        grid-template-columns: 1fr;
    }
}

.atx-convert-swap {
    display: flex;
    justify-content: center;
    margin: -0.15rem 0 0.55rem;
}

.atx-convert-swap-btn {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    border: 1px solid var(--atx-line);
    background: #fff;
    color: var(--atx-teal);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    line-height: 1;
}

.atx-convert-swap-btn:hover {
    border-color: var(--atx-teal);
    background: var(--atx-surface);
}

.atx-wallet-detail .atx-back {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0 0 0.65rem;
    color: var(--atx-ink);
    font-weight: 700;
    text-decoration: none;
}

.atx-wallet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.atx-wallet-asset {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.atx-wallet-asset strong {
    display: block;
    font-size: 1.15rem;
}

.atx-wallet-asset span,
.atx-wallet-id small {
    color: var(--atx-ink-muted);
    font-size: 0.85rem;
}

.atx-wallet-id {
    text-align: end;
}

.atx-wallet-id small {
    display: block;
}

.atx-wallet-id b {
    font-weight: 600;
}

.atx-detail-bals {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.75rem;
}

.atx-detail-bal {
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 12px;
    text-align: center;
    padding: 0.7rem 0.35rem;
}

.atx-detail-bal span {
    display: block;
    color: var(--atx-ink-muted);
    font-size: 0.85rem;
}

.atx-detail-bal strong {
    color: var(--atx-gold);
    font-size: 1.35rem;
}

.atx-detail-acts {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 0.85rem 0;
}

.atx-detail-acts a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 7.2rem;
    height: 2.5rem;
    border-radius: 10px;
    border: 1px solid var(--atx-teal);
    background: var(--atx-surface);
    color: var(--atx-teal);
    font-weight: 700;
    text-decoration: none;
}

.atx-detail-acts a.is-primary {
    background: var(--atx-teal);
    color: var(--atx-paper);
}

.atx-detail-acts .mud-icon-root {
    font-size: 1.15rem;
    color: currentColor;
}

.atx-detail-filters {
    display: flex;
    align-items: end;
    gap: 0.45rem;
    margin-bottom: 0.7rem;
}

.atx-detail-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    color: var(--atx-ink-muted);
    font-size: 0.75rem;
}

.atx-detail-filters .atx-field {
    min-height: 2.15rem;
    padding: 0.35rem 0.45rem;
    background: #fff;
}

.atx-detail-filters button {
    height: 2.15rem;
    border: 0;
    border-radius: 8px;
    background: var(--atx-teal);
    color: var(--atx-paper);
    font: inherit;
    font-weight: 700;
    padding: 0 0.85rem;
}

.atx-history-filters {
    flex-wrap: wrap;
}

.atx-history-filters label {
    flex: 0 0 auto;
}

.atx-history-filters .atx-field {
    width: 9.2rem;
}

.atx-history-filters label.atx-history-date .atx-field {
    width: 10.5rem;
}

.atx-history-filters label.atx-history-q .atx-field {
    width: 12rem;
}

.atx-history-filters a {
    display: inline-flex;
    align-items: center;
    height: 2.15rem;
    padding: 0 0.85rem;
    border: 1px solid var(--atx-teal);
    border-radius: 8px;
    background: #fff;
    color: var(--atx-teal);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.atx-hist-pick {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 0 0 auto;
    min-width: 12rem;
}

.atx-hist-pick > span {
    font-weight: 700;
}

.atx-history-filters .atx-hist-pick .atx-field {
    width: 100%;
}

.atx-hist-pick-btn {
    text-align: start;
    cursor: pointer;
    position: relative;
    z-index: 32;
}

.atx-hist-pick-back {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: transparent;
    border: 0;
    padding: 0;
}

.atx-hist-pick-pop {
    position: absolute;
    z-index: 31;
    top: calc(100% - 0.1rem);
    inset-inline-start: 0;
    width: 20rem;
    max-width: 70vw;
    background: #fff;
    border: 1px solid #d7e0e4;
    border-radius: 8px;
    padding: 0.4rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.atx-hist-pick-list {
    max-height: 12rem;
    overflow: auto;
    margin-top: 0.35rem;
}

.atx-detail-filters .atx-hist-pick-list label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0.28rem 0.15rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--atx-ink);
}

.atx-detail-filters .atx-hist-pick-list input[type="checkbox"] {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
}

.atx-history-empty {
    margin: 0.85rem 0 0;
}

.atx-history-tx {
    max-width: 14rem;
    word-break: break-all;
    direction: ltr;
    text-align: left;
}

.atx-note {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.atx-note .atx-field {
    width: 7.5rem;
    min-height: 1.9rem;
    padding: 0.25rem 0.4rem;
    background: #fff;
}

.atx-note button {
    height: 1.9rem;
    border: 0;
    border-radius: 8px;
    background: var(--atx-teal);
    color: var(--atx-paper);
    font: inherit;
    font-weight: 700;
    padding: 0 0.65rem;
}

@media (max-width: 700px) {
    .atx-home-split,
    .atx-portal-rates,
    .atx-portal-tools,
    .atx-portal-balances,
    .atx-portal-hero-grid {
        grid-template-columns: 1fr;
    }

    .atx-portal-shell .atx-portal-appbar .atx-portal-lang {
        margin-inline-end: 0.85rem;
    }

    .atx-portal-username {
        max-width: 5.5rem;
    }

    .atx-portal-wallet-scroll {
        display: block;
        overflow-x: visible;
    }

    .atx-portal-wallet-columns {
        display: none;
    }

    .atx-portal-wallet {
        display: block;
        grid-template-columns: none;
    }

    .atx-portal-wallet-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        column-gap: 0.4rem;
        row-gap: 0.35rem;
        grid-template-columns: none;
    }

    .atx-portal-wallet-main {
        display: contents;
    }

    .atx-portal-wallet-id {
        order: 1;
        flex: 0 1 auto;
        min-width: 0;
        max-width: calc(100% - 14.5rem);
    }

    .atx-portal-wallet-names {
        min-width: 0;
    }

    .atx-portal-wallet-names strong,
    .atx-portal-wallet-alias {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .atx-portal-wallet-no {
        order: 2;
        flex: 0 0 auto;
    }

    .atx-portal-wallet-ops {
        order: 3;
        grid-column: auto;
        margin-inline-start: auto;
    }

    .atx-portal-break {
        display: block;
        flex: 0 0 100%;
        height: 0;
        overflow: hidden;
    }

    .atx-portal-break-a {
        order: 5;
    }

    .atx-portal-box-total {
        order: 6;
    }

    .atx-portal-box-free {
        order: 7;
    }

    .atx-portal-break-b {
        order: 8;
    }

    .atx-portal-box-held {
        order: 9;
    }

    .atx-portal-box-road {
        order: 10;
    }

    .atx-portal-wallet-alias {
        order: 4;
        flex: 1 0 100%;
        grid-column: auto;
        grid-row: auto;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .atx-portal-hold-notes {
        order: 11;
        flex: 1 0 100%;
        grid-column: auto;
        grid-row: auto;
    }

    .atx-portal-box-label {
        display: inline;
    }

    .atx-portal-box-total,
    .atx-portal-box-free,
    .atx-portal-box-held,
    .atx-portal-box-road {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: flex-start;
        gap: 0.35rem;
        flex: 1 1 calc(50% - 0.45rem);
        min-width: max-content;
        max-width: 100%;
    }

    .atx-portal-box-note {
        flex: 1 0 100%;
        margin-top: 0;
    }

    .atx-portal-wallet:not(.is-open) .atx-portal-box-held,
    .atx-portal-wallet:not(.is-open) .atx-portal-box-road,
    .atx-portal-wallet:not(.is-open) .atx-portal-break-b,
    .atx-portal-wallet:not(.is-open) .atx-portal-hold-notes {
        display: none;
    }

    .atx-portal-wallet-head {
        align-items: start;
    }

    .atx-detail-bals,
    .atx-detail-filters {
        grid-template-columns: 1fr 1fr;
        flex-wrap: wrap;
    }

    .atx-wallet-head {
        align-items: flex-start;
    }
}

.atx-guest-form .atx-transfer-field {
    margin-bottom: 0.85rem;
}

.atx-guest-form .atx-transfer-primary {
    margin-top: 0.25rem;
}

.atx-guest-form .atx-portal-muted {
    margin-top: 0.35rem;
}

.atx-enroll-page {
    min-height: 100dvh;
    padding: 1.25rem 1.5rem 2.5rem;
    background: var(--atx-paper);
    color: var(--atx-ink);
}

.atx-enroll-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.atx-enroll-brand img {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 0 0 2px var(--atx-gold);
    background: var(--atx-teal-deep);
}

.atx-enroll-brand strong {
    display: block;
    font-size: 1.15rem;
    color: var(--atx-teal-deep);
}

.atx-enroll-brand span {
    color: var(--atx-ink-muted);
    font-size: 0.85rem;
}

.atx-enroll-lang {
    margin-inline-start: auto;
}

.atx-enroll-title {
    margin: 0 auto 1.35rem;
    max-width: 52rem;
    text-align: center;
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--atx-teal-deep);
}

.atx-enroll-grid {
    display: grid;
    grid-template-columns: minmax(14rem, 0.9fr) minmax(18rem, 1.2fr);
    gap: 1.25rem;
    align-items: start;
    max-width: 52rem;
    margin: 0 auto;
}

.atx-enroll-alt {
    padding: 0.35rem 0.15rem;
}

.atx-enroll-alt p {
    margin: 0 0 0.9rem;
    color: var(--atx-ink-muted);
    font-size: 0.9rem;
    line-height: 1.65;
}

.atx-enroll-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.atx-enroll-channels button {
    flex: 1 1 auto;
    min-height: 2.5rem;
    border: 1px solid var(--atx-teal);
    border-radius: 10px;
    background: var(--atx-surface);
    color: var(--atx-teal);
    font: inherit;
    font-weight: 700;
    padding: 0 0.75rem;
    cursor: pointer;
}

.atx-enroll-channels button.is-on {
    background: var(--atx-teal);
    color: var(--atx-paper);
}

.atx-enroll-card {
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-top: 3px solid var(--atx-gold);
    border-radius: 12px;
    padding: 1.1rem 1.15rem 1.2rem;
    box-shadow: 0 10px 28px rgba(30, 58, 61, 0.08);
}

.atx-enroll-qr-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.85rem;
}

.atx-enroll-qr {
    display: grid;
    place-items: center;
    padding: 0.55rem;
    border: 1px dashed var(--atx-line);
    border-radius: 10px;
    background: #fff;
}

.atx-enroll-qr img {
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    flex-shrink: 0;
    background: #fff;
    border-radius: 0;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.atx-enroll-secret span {
    display: block;
    color: var(--atx-ink-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.atx-enroll-secret code {
    display: block;
    word-break: break-all;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--atx-teal-deep);
    line-height: 1.45;
}

.atx-enroll-apps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.15rem;
    margin: 0 0 1rem;
}

.atx-enroll-apps a {
    color: var(--atx-gold);
    font-weight: 700;
    text-decoration: none;
}

.atx-enroll-apps a:hover {
    text-decoration: underline;
}

@media (max-width: 860px) {
    .atx-enroll-grid {
        grid-template-columns: 1fr;
    }

    .atx-enroll-qr-row {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }
}

.atx-support-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.65rem;
    margin-bottom: 0.85rem;
}

.atx-support-filters .atx-transfer-field {
    margin-bottom: 0;
    min-width: 9rem;
}

.atx-support-apply {
    width: auto;
    min-height: 2.5rem;
    height: 2.5rem;
    padding: 0 0.95rem;
}

.atx-support-back {
    width: auto;
    margin-bottom: 0.85rem;
}

.atx-support-row {
    cursor: pointer;
}

.atx-support-row:hover {
    background: rgba(45, 81, 85, 0.04);
}

.atx-support-when {
    white-space: nowrap;
}

.atx-support-pill {
    display: inline-block;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    border: 1px solid var(--atx-line);
    background: #fff;
    font-size: 0.78rem;
    font-weight: 700;
}

.atx-support-pill.is-open {
    color: var(--atx-teal);
    border-color: #b9cdc8;
}

.atx-support-pill.is-wait {
    color: #8a6a20;
    border-color: #e2d2a4;
}

.atx-support-pill.is-done {
    color: var(--atx-ink-muted);
}

.atx-support-notes {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.atx-support-note {
    margin: 0;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: #fff;
}

.atx-support-note p {
    margin: 0 0 0.35rem;
    line-height: 1.5;
}

.atx-support-note small {
    color: var(--atx-ink-muted);
}

/* —— ADM shell (portal tokens; PDF v3 layout) —— */
.atx-adm-path {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.55rem;
    margin-bottom: 1rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    background: var(--atx-surface);
    font-size: 0.8rem;
    color: var(--atx-ink-muted);
}

.atx-adm-path-label {
    font-weight: 700;
    color: var(--atx-teal);
}

.atx-adm-path-sep {
    opacity: 0.5;
}

.atx-adm-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
    gap: 1rem;
    align-items: start;
}

@media (max-width: 960px) {
    .atx-adm-workbench {
        grid-template-columns: 1fr;
    }
}

.atx-adm-workbench.is-solo {
    grid-template-columns: 1fr;
}

.atx-adm-sideform {
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: var(--atx-surface);
    padding: 0.85rem 1rem 1.1rem;
    position: sticky;
    top: 4.5rem;
}

.atx-adm-sideform-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--atx-line);
}

.atx-adm-sideform-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.atx-adm-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.atx-adm-kpi {
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: var(--atx-surface);
    padding: 0.85rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.atx-adm-kpi:hover {
    border-color: var(--atx-gold);
    box-shadow: 0 0 0 1px var(--atx-gold);
}

.atx-adm-kpi-value {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--atx-teal-deep);
    line-height: 1.2;
}

.atx-adm-kpi-label {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: var(--atx-ink-muted);
}

.atx-adm-priority {
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem 0.9rem;
    margin-bottom: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.atx-adm-priority-text {
    flex: 1 1 12rem;
}

.atx-adm-locked {
    opacity: 0.72;
}

.atx-adm-locked .mud-input-control {
    pointer-events: none;
}

.atx-drawer .mud-nav-group .mud-nav-link {
    padding-inline-start: 1.75rem;
}

.atx-login-mark {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-inline: auto 0;
    margin-bottom: 0.75rem;
}

/* —— Command desk (CEO/ADM page language) —— */
.atx-desk-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    margin-bottom: 1rem;
}

.atx-desk-title {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--atx-teal-deep);
    line-height: 1.35;
}

.atx-desk-lead {
    margin: 0.35rem 0 0;
    max-width: 42rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--atx-ink-muted);
}

.atx-desk-head-extra {
    flex: 0 0 auto;
}

.atx-desk-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.65rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--atx-line);
    border-radius: 8px;
    background: var(--atx-surface);
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--atx-ink-muted);
}

.atx-desk-hint strong {
    color: var(--atx-teal-deep);
    font-weight: 700;
}

.atx-desk-hint.is-urgent {
    border-color: #d4a017;
    background: #fffbf0;
    color: #5c4a12;
}

.atx-desk-hint.is-urgent strong {
    color: #8a6a10;
}

.atx-desk-card {
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: #fff;
    padding: 0.75rem 0.85rem 1rem;
    margin-bottom: 1rem;
}

.atx-desk-cta-caption {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--atx-ink-muted);
}

/* —— CEO / ADM command home —— */
.atx-page.atx-home-desk {
    max-width: 70rem;
}

.atx-cx-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.atx-cx-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border: 1px solid var(--atx-line);
    border-radius: 999px;
    background: var(--atx-surface);
    font-size: 0.78rem;
    color: var(--atx-ink);
}

.atx-cx-pill.is-attn {
    background: var(--atx-teal-deep);
    border-color: var(--atx-teal-deep);
    color: #fff;
}

.atx-cx-pill.is-attn b {
    color: var(--atx-gold);
}

.atx-cx-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #2e7d5b;
    box-shadow: 0 0 0 3px #e6f2ec;
}

.atx-cx-dot.is-warn {
    background: #b7791f;
    box-shadow: 0 0 0 3px #fbf1de;
}

.atx-cx-pulse {
    display: grid;
    grid-template-columns: 5.2fr 2.8fr 3.8fr;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

@media (max-width: 1100px) {
    .atx-cx-pulse {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .atx-cx-pulse {
        grid-template-columns: 1fr;
    }
}

.atx-cx-card {
    background: var(--atx-surface);
    border: 1px solid var(--atx-line);
    border-radius: 12px;
    padding: 0.75rem 1rem;
}

.atx-cx-card.is-hero {
    background: linear-gradient(135deg, #0a3d3b 0%, #0b5a57 100%);
    border: 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.atx-cx-card.is-hero::after {
    content: "";
    position: absolute;
    left: -3.5rem;
    top: -3.5rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    border: 1.75rem solid rgba(196, 163, 90, 0.1);
    pointer-events: none;
}

.atx-cx-k {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--atx-ink-muted);
}

.atx-cx-card.is-hero .atx-cx-k {
    color: rgba(255, 255, 255, 0.72);
}

.atx-cx-v {
    margin: 0.35rem 0 0.15rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-feature-settings: "tnum";
    color: var(--atx-ink);
}

.atx-cx-card.is-hero .atx-cx-v {
    color: #fff;
}

.atx-cx-v small {
    margin-inline-start: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--atx-ink-muted);
}

.atx-cx-card.is-hero .atx-cx-v small {
    color: var(--atx-gold);
}

.atx-cx-bar {
    display: flex;
    gap: 2px;
    height: 0.625rem;
    margin: 0.75rem 0 0.6rem;
    border-radius: 6px;
    overflow: hidden;
}

.atx-cx-bar span {
    display: block;
    height: 100%;
}

.atx-cx-leg {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.7rem;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.85);
}

.atx-cx-leg i {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-inline-end: 0.3rem;
    border-radius: 2px;
    vertical-align: middle;
}

.atx-cx-leg b {
    margin-inline-start: 0.3rem;
    font-weight: 700;
    color: #fff;
}

.atx-cx-seg {
    display: flex;
    gap: 2px;
    height: 0.5rem;
    margin: 0.65rem 0 0.5rem;
    border-radius: 5px;
    overflow: hidden;
}

.atx-cx-seg span {
    display: block;
}

.atx-cx-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.65rem;
    font-size: 0.72rem;
    color: var(--atx-ink-muted);
}

.atx-cx-tags i {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    margin-inline-end: 0.3rem;
    border-radius: 2px;
    vertical-align: middle;
}

.atx-cx-tags b {
    margin-inline-start: 0.25rem;
    color: var(--atx-ink);
}

.atx-cx-age {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    background: #fbf1de;
    color: #b7791f;
    font-size: 0.72rem;
    font-weight: 600;
}

.atx-cx-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 21rem;
    gap: 0.75rem;
    align-items: start;
}

@media (max-width: 960px) {
    .atx-cx-main {
        grid-template-columns: 1fr;
    }
}

.atx-cx-sec {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}

.atx-cx-sec h2 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--atx-teal-deep);
}

.atx-cx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.atx-cx-tab {
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--atx-line);
    border-radius: 999px;
    background: #fff;
    color: var(--atx-ink-muted);
    font-size: 0.75rem;
    font-family: inherit;
    cursor: pointer;
}

.atx-cx-tab b {
    margin-inline-start: 0.35rem;
    color: var(--atx-ink);
}

.atx-cx-tab.is-on {
    background: var(--atx-teal);
    border-color: var(--atx-teal);
    color: #fff;
}

.atx-cx-tab.is-on b {
    color: #fff;
}

.atx-cx-tab.is-dim {
    opacity: 0.55;
}

.atx-cx-grp {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.1rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--atx-ink-muted);
}

.atx-cx-grp.is-urgent {
    color: #b42318;
}

.atx-cx-row {
    display: grid;
    grid-template-columns: 1.9rem minmax(0, 1fr) 6.5rem 3.8rem 5.5rem;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid #ece7dc;
    border-radius: 9px;
    background: #fff;
}

.atx-cx-row.is-urgent {
    border-color: #f0c9c3;
    background: #fff8f6;
}

@media (max-width: 720px) {
    .atx-cx-row {
        grid-template-columns: 1.9rem minmax(0, 1fr) auto;
        grid-template-areas:
            "ic ttl btn"
            "ic meta btn";
    }

    .atx-cx-row .atx-cx-ic { grid-area: ic; }
    .atx-cx-row .atx-cx-ttl-wrap { grid-area: ttl; }
    .atx-cx-row .atx-cx-amt,
    .atx-cx-row .atx-cx-tm {
        grid-area: meta;
        justify-self: start;
    }
    .atx-cx-row .atx-cx-btn { grid-area: btn; }
}

.atx-cx-ic {
    display: grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    background: #e3efee;
    color: var(--atx-teal);
    font-size: 0.85rem;
}

.atx-cx-ic.is-gold {
    background: #f5ecd8;
    color: #8a6d2b;
}

.atx-cx-ic.is-danger {
    background: #fbe9e7;
    color: #b42318;
}

.atx-cx-ttl {
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atx-cx-sub {
    margin-top: 0.05rem;
    font-size: 0.72rem;
    color: var(--atx-ink-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.atx-cx-amt {
    font-size: 0.8rem;
    font-weight: 700;
    text-align: left;
    direction: ltr;
    font-feature-settings: "tnum";
}

.atx-cx-tm {
    font-size: 0.72rem;
    text-align: center;
    color: var(--atx-ink-muted);
}

.atx-cx-tm.is-late {
    color: #b42318;
    font-weight: 700;
}

.atx-cx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 1.9rem;
    padding: 0 0.55rem;
    border: 1px solid var(--atx-teal);
    border-radius: 7px;
    background: #fff;
    color: var(--atx-teal);
    font-size: 0.75rem;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.atx-cx-btn.is-fill {
    background: var(--atx-teal);
    color: #fff;
}

.atx-cx-btn.is-gold {
    background: var(--atx-gold);
    border-color: var(--atx-gold);
    color: var(--atx-teal-deep);
}

.atx-cx-row-hint {
    grid-column: 2 / -1;
    display: flex;
    gap: 0.4rem;
    margin-top: 0.15rem;
    margin-bottom: 0.35rem;
    padding: 0.4rem 0.55rem;
    border-radius: 7px;
    background: #fbf1de;
    color: #7a5512;
    font-size: 0.72rem;
    line-height: 1.6;
}

.atx-cx-side {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.atx-cx-ctl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-bottom: 1px dashed #e6e0d3;
    font-size: 0.8rem;
}

.atx-cx-ctl:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.atx-cx-st {
    padding: 0.1rem 0.5rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

.atx-cx-st.is-ok {
    background: #e6f2ec;
    color: #2e7d5b;
}

.atx-cx-st.is-warn {
    background: #fbf1de;
    color: #b7791f;
}

.atx-cx-st.is-err {
    background: #fbe9e7;
    color: #b42318;
}

.atx-cx-rates {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.atx-cx-rate {
    padding: 0.5rem 0.6rem;
    border-radius: 9px;
    background: var(--atx-paper);
}

.atx-cx-rate .pr {
    font-size: 0.7rem;
    color: var(--atx-ink-muted);
    direction: ltr;
    text-align: right;
}

.atx-cx-rate .rv {
    margin-top: 0.15rem;
    font-size: 0.95rem;
    font-weight: 800;
    font-feature-settings: "tnum";
}

.atx-cx-rate .sp {
    font-size: 0.65rem;
    color: var(--atx-ink-muted);
}

.atx-cx-ev {
    display: flex;
    align-items: baseline;
    gap: 0.55rem;
    padding: 0.35rem 0;
    font-size: 0.78rem;
}

.atx-cx-ev .t {
    flex: 0 0 2.4rem;
    font-size: 0.7rem;
    color: var(--atx-ink-muted);
}

.atx-cx-ev .w {
    margin-inline-start: auto;
    font-size: 0.7rem;
    color: var(--atx-ink-muted);
}

.atx-cx-link {
    display: inline-flex;
    align-items: center;
    color: var(--atx-teal);
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
}

.atx-cx-more {
    text-align: center;
    padding: 0.25rem 0 0;
}

/* —— Teller / Dealer desk (approved mockups) —— */
.atx-page.atx-home-desk.atx-td-desk { max-width: 70rem; }
.atx-td-acts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
@media (max-width: 1100px) { .atx-td-acts { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .atx-td-acts { grid-template-columns: repeat(2, 1fr); } }
.atx-td-act {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.55rem 0.7rem; border-radius: 12px;
  border: 1px solid var(--atx-line); background: #fff;
  color: var(--atx-ink); text-decoration: none; font-weight: 700; font-size: 0.82rem;
}
.atx-td-act small { display: block; font-weight: 500; font-size: 0.68rem; color: var(--atx-ink-muted); margin-top: 0.1rem; }
.atx-td-act .ic {
  width: 2.1rem; height: 2.1rem; border-radius: 10px; display: grid; place-items: center;
  background: #e3efee; color: var(--atx-teal); flex-shrink: 0;
}
.atx-td-act.is-pri { background: var(--atx-teal); border-color: var(--atx-teal); color: #fff; }
.atx-td-act.is-pri .ic { background: rgba(255,255,255,.16); color: #fff; }
.atx-td-act.is-pri small { color: rgba(255,255,255,.75); }
.atx-td-act.is-gold .ic { background: #f5ecd8; color: #8a6d2b; }
.atx-td-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem; margin-bottom: 0.75rem;
}
@media (max-width: 900px) { .atx-td-kpis { grid-template-columns: repeat(2, 1fr); } }
.atx-td-kpi {
  display: block; padding: 0.7rem 0.85rem; border-radius: 12px;
  border: 1px solid var(--atx-line); background: var(--atx-surface);
  color: inherit; text-decoration: none;
}
.atx-td-kpi .k { display: flex; justify-content: space-between; gap: 0.4rem; font-size: 0.75rem; color: var(--atx-ink-muted); }
.atx-td-kpi .v { font-size: 1.4rem; font-weight: 800; margin-top: 0.2rem; color: var(--atx-teal-deep); }
.atx-td-kpi .v small { font-size: 0.78rem; font-weight: 600; color: var(--atx-ink-muted); margin-inline-start: 0.25rem; }
.atx-td-kpi .sub { font-size: 0.72rem; color: var(--atx-ink-muted); margin-top: 0.15rem; }
.atx-td-search {
  flex: 1; max-width: 26rem; display: flex; align-items: center; gap: 0.45rem;
  height: 2.4rem; padding: 0 0.75rem; border-radius: 10px;
  border: 1px solid var(--atx-line); background: #fff; color: var(--atx-ink-muted); font-size: 0.8rem;
}
.atx-td-search a { color: inherit; text-decoration: none; flex: 1; }
.atx-td-search kbd {
  margin-inline-start: auto; font-family: inherit; font-size: 0.7rem;
  border: 1px solid var(--atx-line); border-radius: 5px; padding: 0 0.35rem;
}
.atx-td-work {
  display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0.75rem; align-items: start;
}
@media (max-width: 960px) { .atx-td-work { grid-template-columns: 1fr; } }
.atx-td-form-grid {
  display: grid; grid-template-columns: 25rem minmax(0, 1fr); gap: 0.75rem; align-items: start;
}
.atx-td-stack {
  display: flex; flex-direction: column; gap: 0.75rem; width: 100%; min-width: 0;
}
.atx-td-stack > .atx-cx-card { width: 100%; min-width: 0; overflow: visible; }
.atx-td-stack .atx-td-table { width: 100%; }
.atx-td-stack .atx-td-actions { width: 100%; }
.atx-td-form-grid.atx-td-form-stack {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
@media (max-width: 1000px) {
  .atx-td-form-grid,
  .atx-td-form-grid.atx-td-form-stack { grid-template-columns: 1fr; }
}
.atx-td-desk-work .mud-input,
.atx-td-desk-work .mud-input-root,
.atx-td-desk-work .mud-input-slot,
.atx-td-desk-work .mud-input-label,
.atx-td-desk-work .mud-select-input,
.atx-td-desk-work input {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.35;
}
.atx-td-desk-work .mud-input-slot,
.atx-td-desk-work .mud-select-input {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
}
.atx-td-wallet-pop .mud-list {
  padding-top: 0;
  padding-bottom: 0;
}
.atx-td-wallet-pop .mud-list-item {
  min-height: 0;
  padding: 0.45rem 0.4rem;
  white-space: nowrap;
}
.atx-td-wallet-pop .mud-list-item-text {
  margin-top: 0;
  margin-bottom: 0;
}
.atx-td-wallet-pop .mud-list-item,
.atx-td-wallet-pop .mud-list-item-text,
.atx-td-wallet-pop .mud-typography,
.atx-td-wallet-pop p {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.atx-td-seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0.2rem;
  padding: 0.2rem; margin-bottom: 0.75rem; border-radius: 10px; background: #efebe2;
}
.atx-td-seg button, .atx-td-seg .seg {
  border: 0; background: transparent; border-radius: 8px; padding: 0.45rem 0.4rem;
  font: inherit; font-weight: 700; font-size: 0.8rem; color: var(--atx-ink-muted); cursor: pointer;
}
.atx-td-seg button.is-on, .atx-td-seg .seg.is-on {
  background: #fff; color: var(--atx-teal); box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.atx-td-steps { display: flex; align-items: center; gap: 0; margin: 0.4rem 0; flex-wrap: wrap; }
.atx-td-stp { display: flex; align-items: center; gap: 0.35rem; font-size: 0.72rem; color: var(--atx-ink-muted); white-space: nowrap; }
.atx-td-stp .c {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--atx-line);
  display: grid; place-items: center; font-size: 0.65rem; font-weight: 800; background: #fff;
}
.atx-td-stp.is-dn .c { background: #2e7d5b; border-color: #2e7d5b; color: #fff; }
.atx-td-stp.is-cur { color: var(--atx-ink); font-weight: 700; }
.atx-td-stp.is-cur .c { border-color: var(--atx-gold); background: #fbf5e6; color: #8a6d2b; }
.atx-td-ln { flex: 1; height: 2px; background: var(--atx-line); margin: 0 0.35rem; min-width: 0.8rem; }
.atx-td-ln.is-dn { background: #2e7d5b; }
.atx-td-kanban {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem;
}
.atx-wd-kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}
.atx-wd-kanban.is-short {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .atx-wd-kanban,
  .atx-wd-kanban.is-short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.atx-crypto-board,
.atx-crypto-board .atx-deposit-req {
  overflow-anchor: none;
}
@media (max-width: 1100px) { .atx-td-kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.atx-td-col { background: #efebe2; border-radius: 12px; padding: 0.5rem; min-width: 0; overflow: hidden; }
.atx-td-col h3 {
  margin: 0.15rem 0.25rem 0.5rem; font-size: 0.8rem; font-weight: 800; color: var(--atx-teal-deep);
  display: flex; justify-content: space-between;
}
.atx-td-col h3 b { background: #fff; border-radius: 999px; padding: 0 0.45rem; font-size: 0.7rem; }
.atx-td-tk {
  background: #fff; border: 1px solid #e3ded2; border-radius: 10px; padding: 0.55rem 0.65rem; margin-bottom: 0.4rem;
  min-width: 0; max-width: 100%; overflow: hidden;
}
.atx-td-tk .a { display: flex; justify-content: space-between; gap: 0.4rem; font-weight: 700; font-size: 0.8rem; min-width: 0; }
.atx-td-amt {
  white-space: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  overflow-wrap: normal;
  word-break: normal;
  max-width: 100%;
}
.atx-td-amt bdi {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.atx-td-tk .b {
  font-size: 0.72rem; color: var(--atx-ink-muted); margin: 0.15rem 0 0.45rem;
  min-width: 0; max-width: 100%;
}
.atx-td-tk .b:not(.atx-td-amt) {
  overflow-wrap: anywhere;
}
.atx-td-tk .b:not(.atx-td-amt) bdi {
  white-space: normal; overflow-wrap: anywhere; word-break: break-all;
}
.atx-td-sum {
  background: var(--atx-paper); border-radius: 10px; padding: 0.6rem 0.75rem; margin: 0.6rem 0;
}
.atx-td-sum .r { display: flex; justify-content: space-between; gap: 0.5rem; font-size: 0.8rem; padding: 0.2rem 0; }
.atx-td-sum .r span:first-child { color: var(--atx-ink-muted); }
.atx-td-sum .r.tot { border-top: 1px dashed var(--atx-line); margin-top: 0.25rem; padding-top: 0.45rem; font-weight: 700; }
.atx-td-ladder {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 0.75rem;
}
@media (max-width: 800px) { .atx-td-ladder { grid-template-columns: repeat(2, 1fr); } }
.atx-td-rung {
  position: relative; padding: 0.65rem 0.75rem; border-radius: 12px;
  border: 1px solid var(--atx-line); background: var(--atx-surface);
}
.atx-td-rung.is-me { border-color: var(--atx-teal); background: #f1f7f6; }
.atx-td-rung .n { font-size: 0.7rem; font-weight: 800; color: var(--atx-ink-muted); }
.atx-td-rung .t { font-weight: 800; font-size: 0.9rem; color: var(--atx-teal-deep); margin: 0.1rem 0; }
.atx-td-rung .w { font-size: 0.72rem; color: var(--atx-ink-muted); }
.atx-td-rung.is-me .w { color: var(--atx-teal); font-weight: 700; }
.atx-td-rung .c3 { position: absolute; top: 0.55rem; left: 0.7rem; font-size: 1.1rem; font-weight: 800; color: var(--atx-teal-deep); }

.atx-td-page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 0.9rem; padding-bottom: 0.65rem; border-bottom: 2px solid var(--atx-gold);
}
.atx-td-page-head h1 { margin: 0; color: var(--atx-teal-deep); font-size: 1.35rem; }
.atx-td-page-head p { margin: 0.2rem 0 0; color: var(--atx-ink-muted); font-size: 0.85rem; }
.atx-cx-card.is-warn { border-color: #e9c46a; background: #fffcf3; }
.atx-td-li {
  display: flex; align-items: center; justify-content: space-between; gap: 0.65rem;
  padding: 0.55rem 0; border-bottom: 1px dashed #e5decf; font-size: 0.82rem;
}
.atx-td-li:last-child { border-bottom: 0; }
.atx-td-li b { display: block; color: var(--atx-ink); font-weight: 800; }
.atx-td-li small { display: block; margin-top: 0.12rem; color: var(--atx-ink-muted); font-size: 0.72rem; }
.atx-td-li > bdi, .atx-td-li .amt { direction: ltr; font-weight: 800; white-space: nowrap; }
.atx-td-li .is-err { color: #b42318; font-weight: 800; }
.atx-td-inline-action {
  display: flex; align-items: center; gap: 0.45rem; min-width: min(20rem, 100%);
}
.atx-td-table {
  width: 100%; border-collapse: collapse; font-size: 0.82rem;
}
.atx-td-table th {
  padding: 0.5rem 0.45rem; border-bottom: 1px solid var(--atx-line);
  color: var(--atx-ink-muted); font-size: 0.72rem; text-align: right; font-weight: 800;
}
.atx-td-table td {
  padding: 0.65rem 0.45rem; border-bottom: 1px solid #ece7dc; vertical-align: middle;
}
.atx-td-table tr:last-child td { border-bottom: 0; }
.atx-td-table tr.is-selected, .atx-td-table tr.is-warn { background: #fff8ef; }
.atx-td-table tbody tr { cursor: pointer; }
.atx-td-table b { display: block; font-weight: 800; color: var(--atx-ink); }
.atx-td-table small { display: block; margin-top: 0.15rem; color: var(--atx-ink-muted); font-size: 0.72rem; }
.atx-td-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 1.45rem; padding: 0.12rem 0.5rem; border-radius: 999px;
  background: #edf3f2; color: var(--atx-teal); font-size: 0.72rem; font-weight: 800; white-space: nowrap;
}
.atx-td-badge.is-ok { background: #e6f2ec; color: #2e7d5b; }
.atx-td-badge.is-err { background: #fbe9e7; color: #b42318; }
.atx-td-badge.is-wrap {
  white-space: normal; max-width: 16rem; line-height: 1.35; text-align: center;
}
.atx-td-table th.atx-amt, .atx-td-table td.atx-amt { text-align: center; }
.atx-mailbox-table { table-layout: fixed; width: 100%; }
.atx-mailbox-body {
    white-space: normal;
    overflow: hidden;
    vertical-align: top;
    max-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.atx-mailbox-text {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.55;
    margin: 0 0 0.45rem;
}
.atx-mailbox-text a {
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--atx-teal);
}
.atx-td-table.atx-msg-log {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
}
.atx-td-table.atx-msg-log th,
.atx-td-table.atx-msg-log td {
    vertical-align: top;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.atx-msg-log .atx-msg-keep,
.atx-msg-log .atx-msg-keep small,
.atx-msg-log .atx-td-badge,
.atx-msg-log .atx-cx-btn,
.atx-msg-log.atx-mailbox-table .atx-mailbox-body {
    white-space: normal;
    overflow: visible;
    max-width: none;
    height: auto;
}
.atx-msg-log small {
    display: inline;
}
.atx-msg-log .atx-msg-file,
.atx-msg-log .atx-msg-body,
.atx-msg-log .atx-mailbox-text,
.atx-msg-log .atx-mailbox-text a {
    max-width: 100%;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.atx-msg-log .atx-msg-file,
.atx-msg-log .atx-msg-body,
.atx-msg-log .atx-mailbox-text {
    display: block;
}
.atx-approval-shell { grid-template-columns: minmax(0, 1fr) minmax(26rem, 34rem); overflow-x: clip; }
.atx-approval-shell .atx-td-table { table-layout: fixed; }
.atx-approval-shell .atx-cx-sub,
.atx-approval-shell .atx-td-sum .r b,
.atx-approval-shell .atx-td-table small,
.atx-approval-shell .atx-td-msg { white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 980px) {
  .atx-approval-shell { grid-template-columns: 1fr; }
}
.atx-td-fbar {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.75rem;
}
.atx-td-fbar button {
  border: 1px solid var(--atx-line); border-radius: 999px; background: #fff;
  color: var(--atx-ink-muted); padding: 0.3rem 0.65rem; font: inherit; font-size: 0.78rem; font-weight: 800; cursor: pointer;
}
.atx-td-fbar button.is-on { background: var(--atx-teal); border-color: var(--atx-teal); color: #fff; }
.atx-td-fbar b { margin-inline-start: 0.35rem; }
.atx-td-case-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem); gap: 0.75rem; align-items: start;
}
.atx-td-holds-shell {
  display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 0.75rem; align-items: start;
}
@media (max-width: 980px) {
  .atx-td-case-shell, .atx-td-holds-shell { grid-template-columns: 1fr; }
  .atx-td-page-head { align-items: flex-start; flex-direction: column; }
}
.atx-td-detail-empty {
  min-height: 12rem; display: flex; flex-direction: column; justify-content: center; color: var(--atx-ink-muted);
}
.atx-td-detail-empty h2 { margin: 0 0 0.35rem; color: var(--atx-teal-deep); }
.atx-td-case-detail .mud-input-control { margin-top: 0.35rem; }
.atx-td-msg {
  margin: 0.45rem 0; padding: 0.55rem 0.65rem; border-radius: 10px;
  background: #fff; border: 1px solid #ece7dc; line-height: 1.75; font-size: 0.82rem;
}
.atx-td-gd {
  background: #eef6f5; border: 1px solid #cfe3e1; border-radius: 12px;
  padding: 0.65rem 0.9rem 0.7rem; margin-bottom: 0.75rem;
}
.atx-td-gd-h {
  display: flex; align-items: center; gap: 0.35rem;
  font-weight: 800; color: var(--atx-teal-deep); font-size: 0.82rem; margin-bottom: 0.4rem;
}
.atx-td-gd ol {
  list-style: none; margin: 0; padding: 0; direction: rtl;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0.75rem;
}
.atx-td-gd li { display: flex; gap: 0.45rem; font-size: 0.75rem; line-height: 1.7; color: #24403e; }
.atx-td-gd li .n {
  width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--atx-teal); color: #fff;
  display: grid; place-items: center; font-size: 0.68rem; font-weight: 800; flex-shrink: 0; margin-top: 0.15rem;
}
.atx-td-gd li b { display: block; color: var(--atx-teal-deep); font-size: 0.78rem; }
.atx-td-gd-rule {
  display: flex; align-items: flex-start; gap: 0.35rem; margin-top: 0.5rem;
  padding: 0.4rem 0.6rem; border-radius: 8px; background: #fbf5e6; color: #7a5512;
  font-size: 0.72rem; line-height: 1.65;
}
.atx-td-msg > div:first-child {
  display: flex; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.25rem;
  color: var(--atx-ink-muted); font-size: 0.7rem; font-weight: 800;
}
.atx-td-actions {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.45rem; margin-top: 0.55rem;
}
@media (max-width: 700px) { .atx-td-actions { grid-template-columns: 1fr; } }
.atx-td-rate-head, .atx-td-rate-row {
  display: grid; grid-template-columns: minmax(9rem, 1.3fr) 5rem 6rem 8rem 6rem 5.5rem;
  align-items: center; gap: 0.55rem;
}
.atx-td-rate-head {
  padding: 0.35rem 0.45rem; color: var(--atx-ink-muted); font-size: 0.72rem; font-weight: 800;
}
.atx-td-rate-row {
  margin-bottom: 0.35rem; padding: 0.45rem 0.55rem; border: 1px solid #ece7dc; border-radius: 10px; background: #fff; font-size: 0.8rem;
}
.atx-td-rate-row.is-warn { border-color: #f0c9c3; background: #fff8f6; }
.atx-td-rate-row small { display: block; color: var(--atx-ink-muted); margin-top: 0.1rem; font-size: 0.68rem; }
.atx-td-rate-row bdi { direction: ltr; text-align: left; font-weight: 800; }
@media (max-width: 760px) {
  .atx-td-rate-head { display: none; }
  .atx-td-rate-row { grid-template-columns: 1fr auto; }
}
.atx-td-head-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.atx-td-search input {
  border: 0; outline: none; background: transparent; flex: 1; min-width: 0;
  font: inherit; color: var(--atx-ink);
}
button.atx-cx-btn { cursor: pointer; }
button.atx-cx-btn.is-err { border-color: #e7b4ae; color: #b42318; background: #fff; }
.atx-td-jhead, .atx-td-jline {
  display: grid;
  grid-template-columns: 1.5rem minmax(8rem, 1.6fr) 4rem minmax(5.5rem, 0.7fr) minmax(5.5rem, 0.7fr) 2rem;
  gap: 0.35rem; align-items: center;
}
.atx-td-jhead { padding: 0 0.15rem 0.3rem; color: var(--atx-ink-muted); font-size: 0.72rem; font-weight: 800; }
.atx-td-jline { margin-bottom: 0.35rem; }
.atx-td-jline .n { font-size: 0.75rem; font-weight: 800; color: var(--atx-ink-muted); text-align: center; }
@media (max-width: 800px) {
  .atx-td-jhead { display: none; }
  .atx-td-jline { grid-template-columns: 1fr 1fr; }
}

/* EXEC-SLICE-3: session timer + header date + error panel */
.atx-session-timer {
  font-size: 0.72rem; font-weight: 700; margin-inline: 0.55rem; color: var(--atx-ink-muted);
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.atx-session-timer-warn { color: #b42318; }
.atx-session-warn-note { margin-inline-start: 0.35rem; font-weight: 800; }
#components-reconnect-modal.atx-reconnect {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(255,255,255,.94); align-items: center; justify-content: center;
  font: 700 1rem Vazirmatn, sans-serif; color: var(--atx-ink);
}
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected,
#components-reconnect-modal.components-reconnect-paused { display: flex; }
.atx-header-date {
  font-size: 0.72rem; color: var(--atx-ink-muted); margin-inline: 0.4rem; white-space: nowrap;
}
@media (max-width: 900px) { .atx-header-date { display: none; } }
.atx-error-panel {
  max-width: 36rem; margin: 2rem auto; padding: 1.25rem 1.4rem;
  border: 1px solid #e7b4ae; border-radius: 12px; background: #fff8f6; color: var(--atx-ink);
}
.atx-error-panel h2 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.atx-error-ref code { direction: ltr; }
.atx-error-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.9rem; }
.atx-search-select { width: 100%; }
.atx-nav-queue { display: flex; align-items: center; gap: 0.4rem; padding: 0.65rem 1rem 0.2rem; font-size: 0.78rem; color: var(--atx-muted, #6d675c); }
.atx-queue-badge { min-width: 1.2rem; height: 1.2rem; padding: 0 0.3rem; border-radius: 999px; background: #9c2f2f; color: #fff; font-size: 0.72rem; line-height: 1.2rem; text-align: center; }

/* —— Public portal intro (portal host "/") —— */
.atx-intro {
    min-height: 100dvh;
    background: var(--atx-paper);
    color: var(--atx-ink);
    font-family: "Vazirmatn", Tahoma, sans-serif;
    overflow-x: clip;
}

.atx-intro *,
.atx-intro *::before,
.atx-intro *::after {
    box-sizing: border-box;
}

.atx-intro-hero,
.atx-intro-trust {
    position: relative;
    display: flex;
    overflow: hidden;
    background: var(--atx-teal-deep);
    color: #fff;
}

.atx-intro-hero {
    min-height: 100vh;
    min-height: 100dvh;
    align-items: center;
}

.atx-intro-trust {
    min-height: 70vh;
    min-height: 70dvh;
    align-items: flex-end;
}

.atx-intro-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.atx-intro-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(8, 88, 85, 0.94) 0%, rgba(8, 88, 85, 0.78) 32%, rgba(8, 88, 85, 0.28) 58%, rgba(8, 88, 85, 0) 78%);
}

.atx-intro-media img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    object-fit: cover;
    transform-origin: 30% 40%;
}

/* The right edge of the woman photo (laptop mark) stays outside the frame. */
.atx-intro-woman {
    width: 118%;
    object-position: 0% 35%;
}

.atx-intro-man {
    width: 100%;
    object-position: 35% 8%;
}

.atx-intro-text {
    position: relative;
    z-index: 1;
    width: min(34rem, 100%);
    margin-inline-start: clamp(1.5rem, 7vw, 7rem);
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.atx-intro-name {
    margin: 0;
    font-size: clamp(5rem, 12vw, 9.5rem);
    font-weight: 700;
    line-height: 1;
    color: #fff;
}

.atx-intro-sub {
    margin: 0.75rem 0 0;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.82);
}

.atx-intro-rule {
    display: block;
    width: 5rem;
    height: 1px;
    margin: 1.75rem 0;
    background: var(--atx-gold);
}

h1.atx-intro-lead {
    margin: 0 0 2.25rem;
    font-size: clamp(1.6rem, 2.8vw, 2.3rem);
    font-weight: 700;
    line-height: 1.5;
    color: #fff;
    border: 0;
    padding: 0;
    background: none;
}

.atx-intro-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 2.25rem;
    border-radius: var(--atx-radius);
    background: var(--atx-gold);
    color: var(--atx-teal-deep);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: background-color 200ms ease;
}

.atx-intro-cta:hover,
.atx-intro-cta:focus-visible {
    background: #d4b670;
}

.atx-intro-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.atx-intro-marks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.75rem;
    margin: 2.5rem 0 0;
    padding: 1.25rem 0 0;
    list-style: none;
    border-top: 1px solid rgba(196, 163, 90, 0.55);
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.9);
}

.atx-intro-trust-line {
    position: relative;
    z-index: 1;
    width: min(30rem, 100%);
    margin: 0;
    margin-inline-start: clamp(1.5rem, 7vw, 7rem);
    padding: 0 0 clamp(2.5rem, 8vh, 5rem);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.6;
    color: #fff;
}

.atx-intro-rates {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem);
}

.atx-intro-rates > h2 {
    margin: 0;
    font-size: clamp(1.5rem, 2.4vw, 1.9rem);
    font-weight: 700;
    color: var(--atx-teal-deep);
    border: 0;
    padding: 0;
}

.atx-intro-note {
    margin: 0.4rem 0 1.75rem;
    font-size: 0.9rem;
    color: var(--atx-ink-muted);
}

.atx-intro-empty {
    margin: 0;
    font-size: 1.1rem;
    color: var(--atx-ink-muted);
}

.atx-intro-rate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
    gap: 1.25rem;
}

.atx-intro-rate {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem 1.4rem 1.35rem;
    min-width: 0;
}

.atx-intro-rate::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #fff;
    border: 1px solid var(--atx-line);
    border-top: 1px solid var(--atx-gold);
    border-radius: var(--atx-radius);
}

.atx-intro-rate h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--atx-ink);
}

.atx-intro-pair {
    font-size: 0.8rem;
    color: var(--atx-ink-muted);
    text-align: start;
}

.atx-intro-amount {
    margin-top: 0.6rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--atx-teal-deep);
    overflow-wrap: anywhere;
}

.atx-intro-quote {
    font-size: 0.85rem;
    color: var(--atx-ink-muted);
}

.atx-intro-missing {
    margin-top: 0.6rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--atx-ink-muted);
}

.atx-intro-foot {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem 2rem;
    border-top: 1px solid var(--atx-line);
    font-size: 0.85rem;
    color: var(--atx-ink-muted);
}

@keyframes atx-intro-rise {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes atx-intro-drift {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.07);
    }
}

@keyframes atx-intro-lead-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.atx-intro-media img {
    animation: atx-intro-drift 12s ease-out both;
}

.atx-intro-lead {
    animation: atx-intro-lead-in 700ms ease-out 150ms both;
}

.atx-intro-rate::before {
    animation: atx-intro-rise 200ms ease-out both;
}

@media (prefers-reduced-motion: reduce) {
    .atx-intro-media img,
    .atx-intro-lead,
    .atx-intro-rate::before {
        animation: none;
    }

    .atx-intro-cta {
        transition: none;
    }
}

@media (max-width: 760px) {
    .atx-intro-hero,
    .atx-intro-trust {
        align-items: flex-end;
    }

    .atx-intro-trust {
        min-height: 60vh;
        min-height: 60dvh;
    }

    .atx-intro-media::after {
        background: linear-gradient(to top, rgba(8, 88, 85, 0.96) 0%, rgba(8, 88, 85, 0.82) 38%, rgba(8, 88, 85, 0.2) 66%, rgba(8, 88, 85, 0) 82%);
    }

    .atx-intro-woman {
        width: 118%;
        object-position: 30% 30%;
    }

    .atx-intro-man {
        object-position: 38% 25%;
    }

    .atx-intro-text {
        width: 100%;
        margin-inline: 0;
        padding: 0 1.25rem 2rem;
    }

    .atx-intro-name {
        font-size: 4.75rem;
    }

    .atx-intro-rule {
        margin: 1.1rem 0;
    }

    h1.atx-intro-lead {
        margin-bottom: 1.5rem;
        font-size: 1.45rem;
    }

    .atx-intro-cta {
        display: flex;
        width: 100%;
    }

    .atx-intro-marks {
        flex-direction: column;
        margin-top: 1.5rem;
    }

    .atx-intro-trust-line {
        margin-inline: 0;
        padding: 0 1.25rem 2rem;
        font-size: 1.5rem;
    }

    .atx-intro-rate-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* —— Customer portal at phone width —— */
@media (max-width: 700px) {
    .atx-portal-shell {
        width: 100%;
        max-width: 100vw;
        overflow-x: clip;
        --mud-drawer-width-left: min(19rem, 86vw);
        --mud-drawer-width-right: min(19rem, 86vw);
    }

    .atx-portal-shell .mud-main-content,
    .atx-portal-shell .atx-content,
    .atx-portal-shell .atx-portal-main {
        min-width: 0;
        max-width: 100%;
        margin-inline: 0 !important;
    }

    .atx-portal-main.pa-4 {
        padding: 54px 0.75rem calc(5rem + env(safe-area-inset-bottom)) !important;
    }

    .atx-portal-shell .atx-page,
    .atx-portal-shell .atx-page.atx-home,
    .atx-portal-shell .atx-page-wide,
    .atx-portal-card,
    .atx-transfer-body {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .atx-portal-drawer.mud-drawer {
        width: min(19rem, 86vw) !important;
        max-width: 86vw;
    }

    .atx-portal-shell .atx-portal-appbar {
        min-width: 0;
        gap: 0.3rem;
        padding-inline: 0.35rem !important;
    }

    .atx-portal-shell .atx-portal-appbar .atx-portal-brand span {
        display: none;
    }

    .atx-portal-shell .atx-portal-appbar .atx-portal-brand {
        gap: 0;
    }

    .atx-portal-shell .atx-portal-appbar .atx-portal-lang {
        margin-inline-end: 0;
    }

    .atx-portal-lang-trigger {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
        padding: 0;
    }

    .atx-portal-account-trigger {
        min-height: 44px;
        gap: 0.35rem;
    }

    .atx-portal-username {
        max-width: 5.25rem;
    }

    .atx-session-timer {
        margin-inline: 0.15rem;
        font-size: 0.68rem;
    }

    .atx-portal-bottom {
        min-height: 56px;
        align-items: stretch;
        padding: 0 calc(0.2rem + env(safe-area-inset-right))
            env(safe-area-inset-bottom)
            calc(0.2rem + env(safe-area-inset-left));
    }

    .atx-portal-bottom a,
    .atx-portal-bottom button {
        display: inline-flex;
        flex: 1 1 20%;
        min-width: 0;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.2rem;
        border: 0;
        background: transparent;
        text-align: center;
    }

    .atx-portal-wallet-scroll,
    .atx-portal-wallet,
    .atx-portal-wallet-row,
    .atx-portal-wallet-main {
        min-width: 0;
        max-width: 100%;
    }

    .atx-portal-wallet-row {
        display: grid;
        grid-template-columns: max-content minmax(0, 1fr) minmax(0, 1fr) 44px;
        grid-template-rows: auto auto auto auto auto;
        column-gap: 0.4rem;
        min-height: 44px;
        row-gap: 0.2rem;
    }

    .atx-portal-wallet-id {
        grid-column: 1 / 4;
        grid-row: 1;
        width: auto;
        max-width: 100%;
        min-height: 44px;
        align-items: center;
    }

    .atx-portal-wallet-ops {
        grid-column: 4;
        grid-row: 1;
        width: 44px;
        margin-inline-start: 0;
    }

    .atx-portal-wallet-no {
        grid-column: 2 / 5;
        grid-row: 2;
        width: auto;
        min-width: 0;
        max-width: 100%;
        direction: ltr;
        text-align: right;
        font-size: clamp(0.64rem, 2.7vw, 0.75rem);
        white-space: nowrap;
        align-self: baseline;
    }

    .atx-portal-wallet-alias {
        grid-column: 1;
        grid-row: 2;
        width: auto;
        max-width: none;
        font-size: clamp(0.64rem, 2.7vw, 0.72rem);
        white-space: nowrap;
        align-self: baseline;
    }

    .atx-portal-break {
        display: none !important;
    }

    .atx-portal-box-total,
    .atx-portal-box-free,
    .atx-portal-box-held,
    .atx-portal-box-road {
        min-height: 0;
        min-width: 0;
        padding-block: 0.1rem;
        line-height: 1.35;
    }

    .atx-portal-box-total {
        grid-column: 1 / 3;
        grid-row: 3;
    }

    .atx-portal-box-free {
        grid-column: 3 / 5;
        grid-row: 3;
    }

    .atx-portal-box-held {
        grid-column: 1 / 3;
        grid-row: 4;
    }

    .atx-portal-box-road {
        grid-column: 3 / 5;
        grid-row: 4;
    }

    .atx-portal-hold-notes {
        grid-column: 1 / 5;
        grid-row: 5;
        margin-top: 0;
        line-height: 1.35;
    }

    .atx-portal-wallet-more {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
    }

    .atx-portal-mini {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .atx-portal-shell .atx-field,
    .atx-portal-shell input.atx-field,
    .atx-portal-shell select.atx-field,
    .atx-portal-shell textarea.atx-field {
        width: 100%;
        max-width: 100%;
        min-height: 44px;
    }

    .atx-portal-shell .mud-input-control,
    .atx-portal-shell .mud-input,
    .atx-portal-shell .mud-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .atx-portal-shell .mud-input-root {
        min-height: 44px;
    }

    .atx-transfer-field,
    .atx-transfer-field > span:first-child {
        width: 100%;
        max-width: 100%;
    }

    .atx-transfer-primary,
    .atx-transfer-body > .atx-transfer-primary,
    .atx-guest-form .atx-transfer-primary {
        width: 100% !important;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .atx-transfer-dest-row,
    .atx-deposit-row2,
    .atx-transfer-amounts {
        grid-template-columns: minmax(0, 1fr);
        width: 100%;
        min-width: 0;
    }

    .atx-point-map,
    .atx-point-map > * {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .atx-history-wrap,
    .mud-table-container {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .atx-portal-card:has(> table),
    .atx-portal-card:has(> .mud-table) {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
    }

    .atx-portal-shell img,
    .atx-portal-shell iframe,
    .atx-portal-shell video {
        max-width: 100%;
    }
}

.atx-rates .atx-rate-board .mud-table-container {
    overflow-x: auto;
}

.atx-rates .atx-rate-board .mud-table-cell {
    font-size: 0.72rem !important;
    line-height: 1.25;
    padding: 0.2rem 0.32rem !important;
    white-space: nowrap;
    vertical-align: middle;
}

.atx-rates .atx-rate-board .mud-table-head .mud-table-cell {
    font-size: 0.66rem !important;
    font-weight: 700;
}

.atx-rates .atx-rate-board .mud-table .mud-button-root {
    width: auto;
    min-width: 0;
    min-height: 1.55rem;
    height: auto;
    margin: 0;
    padding: 0.08rem 0.32rem !important;
    font-size: 0.68rem !important;
    letter-spacing: 0;
    line-height: 1.2;
}

.atx-rates .atx-rate-board .mud-table .mud-button-label,
.atx-rates .atx-rate-board .mud-table .mud-typography-caption {
    font-size: 0.68rem !important;
    white-space: nowrap;
}

.atx-rates .atx-rate-action-row {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.2rem;
    white-space: nowrap;
}

.atx-rates .atx-rate-panel {
    font-size: 0.9rem;
}

.atx-rates .atx-rate-panel .mud-typography-subtitle1,
.atx-rates .atx-rate-panel .mud-input,
.atx-rates .atx-rate-panel .mud-input-label,
.atx-rates .atx-rate-panel .mud-select-input,
.atx-rates .atx-rate-panel label,
.atx-rates .atx-rate-panel p,
.atx-rates .atx-rate-panel .atx-field,
.atx-rates .atx-rate-panel .atx-td-sum .r,
.atx-rates .atx-rate-panel .atx-desk-cta-caption,
.atx-rates .atx-rate-panel .mud-button-label {
    font-size: 0.875rem;
}

.atx-rates .atx-rate-panel .mud-button-root {
    min-height: 2.5rem;
}

.atx-wallet-detail .atx-wallet-choose {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    max-width: 28rem;
    margin: 0 0 0.85rem;
}

.atx-wallet-detail .atx-wallet-fund {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 0.75rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--atx-line);
}

.atx-wallet-detail .atx-wallet-fund:last-child {
    border-bottom: 0;
}

.atx-wallet-detail .atx-ledger-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.7rem;
    margin: 0.35rem 0 0.6rem;
}

.atx-wallet-detail .atx-ledger-filters label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 8rem;
    color: var(--atx-ink-muted);
    font-size: 0.8rem;
}

.atx-wallet-detail .atx-ledger-acts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.atx-wallet-detail .atx-ledger-wrap {
    overflow-x: auto;
}

.atx-wallet-detail .atx-ledger {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.atx-wallet-detail .atx-ledger th,
.atx-wallet-detail .atx-ledger td {
    border-bottom: 1px solid var(--atx-line);
    padding: 0.4rem 0.35rem;
    text-align: right;
    vertical-align: top;
}

.atx-wallet-detail .atx-ledger th {
    color: var(--atx-ink-muted);
    font-size: 0.75rem;
    font-weight: 700;
}

.atx-saved-page {
    width: 100%;
}

.atx-saved-cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.65rem;
    align-items: start;
}

.atx-saved-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.atx-saved-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.atx-saved-head .atx-portal-title,
.atx-saved-col > .atx-portal-muted {
    margin: 0;
}

.atx-saved-col .atx-transfer-field {
    margin-bottom: 0;
}

.atx-saved-col .atx-desk-card {
    margin-bottom: 0;
    padding: 0.4rem 0.55rem 0.45rem;
}

.atx-saved-col .atx-td-sum .r b {
    min-width: 0;
    overflow-wrap: anywhere;
}

.atx-saved-box {
    border: 1px solid var(--atx-line);
    border-radius: 10px;
    background: #fff;
    padding: 0.5rem 0.6rem 0.55rem;
}

.atx-saved-box .atx-portal-title {
    margin-bottom: 0.35rem;
}

.atx-saved-box .atx-transfer-field,
.atx-saved-box .atx-deposit-upload {
    margin-bottom: 0.4rem;
}

.atx-saved-box .atx-deposit-upload {
    padding: 0.45rem 0.55rem;
}

.atx-saved-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

@media (max-width: 700px) {
    .atx-saved-cols {
        grid-template-columns: 1fr;
    }
}

.atx-crypto-shapes {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.atx-crypto-shapes .atx-transfer-secondary.is-on {
    background: var(--atx-teal);
    color: var(--atx-paper);
}

.atx-crypto-mask {
    display: flex;
    align-items: stretch;
    direction: ltr;
}

.atx-crypto-mask-prefix {
    display: inline-flex;
    align-items: center;
    padding: 0 0.45rem;
    border: 1px solid var(--atx-line);
    border-right: 0;
    border-radius: 8px 0 0 8px;
    background: #f7f4ea;
    color: var(--atx-ink);
    font-weight: 700;
    letter-spacing: 0;
}

.atx-crypto-mask-wrap {
    min-width: 0;
}

.atx-crypto-slots {
    position: relative;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    border: 1px solid var(--atx-line);
    border-radius: 0 8px 8px 0;
    background: #fff;
}

.atx-crypto-slots.is-full {
    border-radius: 8px;
}

.atx-crypto-ghost,
.atx-crypto-hit {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.4;
    letter-spacing: 0;
    white-space: pre;
    padding: 0.4rem 0.45rem;
}

.atx-crypto-ghost {
    display: block;
    width: max-content;
    min-width: 100%;
    color: var(--atx-ink);
    pointer-events: none;
}

.atx-crypto-dots {
    color: var(--atx-ink-muted);
}

.atx-crypto-hit {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    outline: none;
    margin: 0;
    background: transparent;
    color: transparent;
    caret-color: var(--atx-ink);
}

.atx-crypto-count {
    margin: 0.25rem 0 0;
}

.atx-support-code {
    margin: 0.35rem 0 0.75rem;
    font-weight: 700;
}

.atx-desk-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 1rem;
    align-items: start;
}

.atx-chat-threads {
    list-style: none;
    margin: 0 0 0.75rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.atx-chat-threads button {
    width: 100%;
    text-align: start;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    border: 1px solid var(--atx-line, #d7d2c8);
    background: transparent;
    color: inherit;
    border-radius: 0.6rem;
    padding: 0.45rem 0.6rem;
}

.atx-chat-threads button.is-on {
    border-color: var(--atx-ink, #1c1915);
}

.atx-chat-dock {
    position: fixed;
    z-index: 1260;
    inset-inline-end: 1.25rem;
    bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.atx-chat-fab {
    border: 2px solid var(--atx-gold, #C4A35A);
    border-radius: 999px;
    padding: 0.75rem 1.15rem;
    background: var(--atx-teal, #0B6E6B);
    color: var(--atx-paper, #F7F4EE);
    font: inherit;
    font-weight: 700;
    box-shadow: 0 10px 28px rgba(11, 110, 107, 0.35);
    cursor: pointer;
}

@media (max-width: 960px) {
    .atx-portal-shell .atx-chat-dock {
        bottom: calc(6.4rem + env(safe-area-inset-bottom));
    }

    .atx-chat-dock.is-home {
        display: none;
    }
}

.atx-chat-panel {
    width: min(22rem, calc(100vw - 2rem));
    margin-bottom: 0.6rem;
    background: #fffdf8;
    color: #1c1915;
    border: 1px solid #d7d2c8;
    border-radius: 0.9rem;
    box-shadow: 0 12px 32px rgba(28, 25, 21, 0.18);
    display: flex;
    flex-direction: column;
    max-height: min(28rem, calc(100vh - 8rem));
}

.atx-chat-head,
.atx-chat-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.atx-chat-picks {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.atx-chat-pdf {
    display: inline-block;
    margin-top: 0.35rem;
    font-weight: 700;
    color: var(--atx-teal, #0B6E6B);
    text-decoration: underline;
}

.atx-chat-head {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e6e0d4;
}

.atx-chat-close {
    border: 0;
    background: transparent;
    color: inherit;
}

.atx-chat-log {
    display: flex;
    flex-direction: column-reverse;
    gap: 0.45rem;
    overflow: auto;
    padding: 0.75rem;
    min-height: 8rem;
}

.atx-chat-line {
    max-width: 85%;
    border-radius: 0.7rem;
    padding: 0.4rem 0.55rem;
    background: #f3efe6;
}

.atx-chat-line.is-mine {
    align-self: flex-end;
    background: #e7f0e4;
}

.atx-chat-line.is-desk {
    align-self: flex-start;
}

.atx-chat-line p {
    margin: 0.2rem 0;
    white-space: pre-wrap;
}

.atx-chat-line img {
    display: block;
    max-width: 100%;
    margin-top: 0.35rem;
    border-radius: 0.45rem;
}

.atx-chat-compose {
    padding: 0.65rem 0.75rem 0.75rem;
    border-top: 1px solid #e6e0d4;
}

.atx-chat-pick {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-height: 2.2rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid #1c1915;
    border-radius: 0.55rem;
}

.atx-chat-pick input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.atx-td-work.atx-journal-stack {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    min-width: 0;
}

.atx-journal-stack > .atx-cx-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.atx-journal-stack .atx-cx-sec {
    flex-wrap: nowrap;
    min-width: 0;
}

.atx-journal-stack .atx-cx-sec h2 {
    min-width: 0;
}

.atx-journal-stack .atx-cx-sec .atx-td-badge {
    flex: none;
}

.atx-journal-list {
    table-layout: fixed;
    width: 100%;
}

.atx-journal-list col.ref { width: 38%; }
.atx-journal-list col.desc { width: 36%; }
.atx-journal-list col.when { width: 18%; }
.atx-journal-list col.count { width: 8%; }

.atx-journal-list th,
.atx-journal-list td {
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-list b {
    display: inline;
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-list .atx-journal-when,
.atx-journal-list .atx-journal-count {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.atx-journal-list tbody tr {
    cursor: pointer;
}

.atx-journal-pages {
    margin-top: 0.8rem;
}

.atx-journal-pages button:disabled {
    opacity: 0.45;
    cursor: default;
}

.atx-journal-window {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4rem 1rem 2rem;
    background: rgba(20, 16, 12, 0.45);
    overflow: auto;
}

.atx-journal-window-card {
    box-sizing: border-box;
    width: min(52rem, 100%);
    margin: 0;
}

.atx-journal-open-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 0.75rem;
}

.atx-journal-open-head h2 {
    margin: 0;
    max-width: 100%;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--atx-teal-deep);
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-open-head p {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.6rem;
    margin: 0;
    max-width: 100%;
    min-width: 0;
}

.atx-journal-open-head p span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-open-head .atx-journal-when {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.atx-journal-lines {
    width: 100%;
    table-layout: fixed;
}

.atx-journal-lines col.acct { width: 46%; }
.atx-journal-lines col.asset { width: 14%; }
.atx-journal-lines col.amt { width: 20%; }

.atx-journal-lines th,
.atx-journal-lines td {
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-lines b {
    display: inline;
    overflow-wrap: break-word;
    word-break: normal;
}

.atx-journal-lines .atx-journal-asset,
.atx-journal-lines .atx-journal-amt {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.atx-journal-open .atx-td-sum {
    max-width: 100%;
}

.atx-journal-open .atx-td-sum .r {
    max-width: 100%;
    min-width: 0;
}

.atx-home-mobile {
    display: none;
}

.atx-portal-theme {
    border: 1px solid var(--atx-gold);
    background: transparent;
    color: inherit;
    border-radius: 999px;
    min-height: 32px;
    padding: 0 0.7rem;
    font: inherit;
    cursor: pointer;
}

.atx-portal-shell.is-dark {
    --atx-paper: #12110f;
    --atx-surface: #1c1b19;
    --atx-ink: #f3ead7;
    --atx-ink-muted: #b7aa96;
    --atx-muted: #b7aa96;
    --atx-line: #3a342c;
    --atx-teal-deep: #161513;
    background: #12110f;
    color: #f3ead7;
}

.atx-portal-shell.is-dark .atx-portal-card,
.atx-portal-shell.is-dark .atx-orbit-card.is-side {
    background: #171512;
    color: #f3ead7;
    border-color: #3f382c;
}

.atx-portal-shell.is-dark .atx-orbit-card.is-center {
    background: #f6f0e4;
    color: #1c1915;
    border-color: #e4d3ae;
}

@media (max-width: 960px) {
    .atx-home-wide {
        display: none;
    }

    .atx-home-mobile {
        display: block;
    }

    .atx-portal-bottom a,
    .atx-portal-bottom button {
        flex: 1 1 16%;
        font-size: 0.72rem;
    }

    .atx-home-hello h1 {
        margin: 0;
        font-size: 1.35rem;
    }

    .atx-home-hello p,
    .atx-home-board h2,
    .atx-home-moves h2,
    .atx-home-actions h2 {
        margin: 0.35rem 0;
        color: var(--atx-ink-muted);
        font-size: 0.95rem;
    }

    .atx-home-mobile {
        padding-bottom: 1.25rem;
    }

    .atx-orbit {
        position: relative;
        height: 15.2rem;
        margin: 0.35rem 0 1.15rem;
        touch-action: pan-y;
        overflow: hidden;
    }

    .atx-orbit-floor {
        position: absolute;
        left: 50%;
        bottom: 0.15rem;
        z-index: 0;
        width: 86%;
        height: 2.8rem;
        transform: translateX(-50%);
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(ellipse at center, rgb(196 163 90 / 34%), transparent 68%);
    }

    .atx-orbit-card {
        position: absolute;
        left: 50%;
        top: 1.55rem;
        box-sizing: border-box;
        width: 8.6rem;
        height: 7.6rem;
        margin: 0;
        padding: 0.55rem 0.6rem;
        align-items: stretch;
        text-align: start;
        border: 1px solid #e4d8c4;
        border-radius: 1.15rem;
        background: #f4efe6;
        color: var(--atx-ink);
        text-align: start;
        box-shadow: 0 12px 22px rgb(28 25 21 / 10%);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 0.2rem;
        overflow: hidden;
        appearance: none;
        font: inherit;
        line-height: 1.25;
        cursor: pointer;
    }

    .atx-orbit-card.is-side .atx-orbit-name,
    .atx-orbit-card.is-side .atx-orbit-fa,
    .atx-orbit-card.is-side .atx-orbit-latin,
    .atx-orbit-card.is-side .atx-orbit-row {
        text-align: center;
        justify-content: center;
    }

    .atx-orbit-card.is-center {
        top: 0.15rem;
        width: 11.1rem;
        height: 12.4rem;
        padding: 0.7rem 0.75rem;
        border-color: #e7d7b4;
        background: #fffdf8;
        box-shadow: 0 22px 42px rgb(28 25 21 / 18%), 0 0 0 1px rgb(196 163 90 / 28%);
    }

    .atx-portal-shell.is-dark .atx-orbit-card.is-side {
        box-shadow: 0 16px 28px rgb(0 0 0 / 38%);
    }

    .atx-portal-shell.is-dark .atx-orbit-card.is-center {
        box-shadow: 0 26px 48px rgb(0 0 0 / 48%), 0 0 0 1px rgb(196 163 90 / 48%);
    }

    .atx-portal-shell.is-dark .atx-orbit-floor {
        background: radial-gradient(ellipse at center, rgb(196 163 90 / 42%), transparent 68%);
    }

    .atx-orbit-name,
    .atx-orbit-fa,
    .atx-orbit-asset,
    .atx-orbit-no,
    .atx-orbit-row,
    .atx-orbit-latin {
        align-self: stretch;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-style: normal;
        unicode-bidi: isolate;
    }

    .atx-orbit-name {
        font-size: 0.92rem;
        font-weight: 700;
    }

    .atx-orbit-fa,
    .atx-orbit-asset,
    .atx-orbit-row {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.35rem;
        font-size: 0.72rem;
    }

    .atx-orbit-asset > span,
    .atx-orbit-row > span {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .atx-orbit-latin,
    .atx-orbit-no,
    .atx-orbit-row > bdi,
    .atx-orbit-asset > bdi {
        direction: ltr;
        unicode-bidi: isolate;
        text-align: left;
        font-size: 0.72rem;
    }

    .atx-orbit-no {
        display: block;
        font-size: 0.7rem;
    }

    .atx-orbit-row > bdi,
    .atx-orbit-asset > bdi {
        flex: 0 1 auto;
    }

    .atx-home-board,
    .atx-home-glow,
    .atx-home-moves,
    .atx-home-actions,
    .atx-home-chat {
        position: relative;
        z-index: 1;
        margin-top: 0.95rem;
    }

    .atx-home-board,
    .atx-home-moves,
    .atx-home-actions {
        padding: 0.9rem;
        border: 1px solid var(--atx-line);
        border-radius: 1.15rem;
        background: var(--atx-surface);
    }

    .atx-home-board label {
        display: flex;
        align-items: center;
        gap: 0.45rem;
        margin: 0.35rem 0 0.55rem;
    }

    .atx-home-glow {
        min-height: 7.4rem;
        margin-bottom: 0;
        padding: 0.9rem 1rem;
        border: 1px solid var(--atx-line);
        border-radius: 1.15rem;
        display: flex;
        align-items: flex-end;
        color: var(--atx-ink-muted);
        background:
            radial-gradient(ellipse at 68% 38%, rgb(196 163 90 / 38%), transparent 58%),
            radial-gradient(ellipse at 24% 72%, rgb(11 110 107 / 16%), transparent 52%),
            var(--atx-surface);
    }

    .atx-portal-shell.is-dark .atx-home-glow {
        background:
            radial-gradient(ellipse at 68% 36%, rgb(196 163 90 / 46%), transparent 58%),
            radial-gradient(ellipse at 18% 78%, rgb(36 64 112 / 42%), transparent 54%),
            #1c1b19;
    }

    .atx-home-board-row,
    .atx-home-tiles {
        display: grid;
        gap: 0.45rem;
        align-items: center;
    }

    .atx-home-board-row {
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--atx-line);
    }

    .atx-home-board-row > span,
    .atx-home-board-row > bdi {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .atx-home-board-row > bdi {
        direction: ltr;
        unicode-bidi: isolate;
        text-align: left;
    }

    .atx-home-move {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "kind amt"
            "when asset";
        gap: 0.15rem 0.55rem;
        align-items: baseline;
        padding: 0.55rem 0;
        border-bottom: 1px solid var(--atx-line);
    }

    .atx-home-move-kind { grid-area: kind; }
    .atx-home-move-amt { grid-area: amt; direction: ltr; unicode-bidi: isolate; text-align: left; }
    .atx-home-move-when { grid-area: when; direction: ltr; unicode-bidi: isolate; color: var(--atx-ink-muted); font-size: 0.78rem; }
    .atx-home-move-asset { grid-area: asset; text-align: end; }

    .atx-home-move > span,
    .atx-home-move > bdi {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .atx-home-chat .atx-chat-dock {
        position: static;
        inset: auto;
        bottom: auto;
        z-index: 1;
        display: flex;
        width: 100%;
        margin: 0;
        align-items: flex-start;
    }

    .atx-home-chat .atx-chat-panel {
        width: 100%;
        max-height: 18rem;
    }

    .atx-home-tiles {
        grid-template-columns: 1fr 1fr;
    }

    .atx-home-tiles a,
    .atx-home-tiles button {
        min-height: 4.4rem;
        border: 1px solid var(--atx-line);
        border-radius: 0.9rem;
        background: transparent;
        color: inherit;
        text-decoration: none;
        font: inherit;
        padding: 0.55rem;
    }

    .atx-home-tiles button:disabled {
        opacity: 0.45;
    }
}
