.account-area {
    --account-ink: var(--vs-color-ink);
    --account-muted: var(--vs-color-muted);
    --account-border: var(--vs-color-border);
    --account-surface: var(--vs-color-surface);
    --account-canvas: var(--vs-color-canvas);
    --account-primary: var(--vs-color-primary);
    --account-primary-dark: var(--vs-color-primary-strong);
    min-height: calc(100vh - 3.5rem);
    color: var(--account-ink);
    background: var(--account-canvas);
}

.account-hero {
    position: relative;
    overflow: hidden;
    padding: 3.2rem 0 6.4rem;
    color: #14251c;
    background:
        radial-gradient(circle at 78% 15%, rgba(21, 150, 106, .12), transparent 29%),
        linear-gradient(145deg, #f4f7f5 0%, #e7eee9 55%, #dfe9e3 100%);
}

.account-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .06;
    background-image:
        linear-gradient(rgba(8, 74, 49, .3) 1px, transparent 1px),
        linear-gradient(90deg, rgba(8, 74, 49, .3) 1px, transparent 1px);
    background-size: 52px 52px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 80%);
    mask-image: linear-gradient(90deg, #000, transparent 80%);
}

.account-container {
    position: relative;
    width: min(100% - 2rem, 78rem);
    margin-inline: auto;
}

.account-hero-inner {
    position: relative;
    z-index: 1;
}

.account-hero h1 {
    margin: 0;
    max-width: 14ch;
    font-size: clamp(2.15rem, 4vw, 3.35rem);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.055em;
    color: #10231a;
}

.account-layout {
    z-index: 2;
    display: grid;
    grid-template-columns: 17.5rem minmax(0, 1fr);
    gap: 1.7rem;
    align-items: start;
    margin-top: -3.75rem;
    padding-bottom: 5rem;
}

.account-sidebar {
    position: sticky;
    top: 4.75rem;
    overflow: hidden;
    border: 1px solid rgba(223, 230, 226, .9);
    border-radius: .72rem;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 10px 28px rgba(7, 26, 20, .08), 0 1px 3px rgba(7, 26, 20, .04);
}

.account-sidebar-user {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.2rem;
    border-bottom: 1px solid #edf1ef;
}

.account-sidebar-avatar {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .48rem;
    color: #d1fae5;
    background: #0b2a20;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.account-sidebar-copy {
    min-width: 0;
}

.account-sidebar-copy strong,
.account-sidebar-copy span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar-copy strong {
    color: #1b2821;
    font-size: .8rem;
}

.account-sidebar-copy span {
    max-width: 11.3rem;
    margin-top: .15rem;
    color: #89948e;
    font-size: .66rem;
}

.account-nav {
    display: grid;
    gap: .22rem;
    padding: .72rem;
}

.account-nav-link {
    display: grid;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .42rem .65rem;
    border-radius: .5rem;
    color: #5f6b64;
    font-size: .78rem;
    font-weight: 650;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.account-nav-link:hover {
    color: #174b39;
    background: #f2f7f4;
}

.account-nav-link:active {
    transform: translateY(1px);
}

.account-nav-link.is-active {
    color: #075f45;
    background: #eaf7f0;
}

.account-nav-icon {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    place-items: center;
    border: 1px solid #e7ece9;
    border-radius: .44rem;
    color: #839087;
    background: #fff;
    font-size: .75rem;
}

.account-nav-link.is-active .account-nav-icon {
    border-color: rgba(16, 185, 129, .22);
    color: #047857;
    background: rgba(255, 255, 255, .72);
}

.account-nav-arrow {
    color: #bdc6c1;
    font-size: .58rem;
}

.account-nav-link.is-active .account-nav-arrow {
    color: #34d399;
}

.account-main {
    min-width: 0;
}

.account-email-alert,
.account-flash {
    display: flex;
    align-items: flex-start;
    gap: .72rem;
    margin-bottom: 1rem;
    padding: .9rem 1rem;
    border: 1px solid;
    border-radius: .58rem;
    font-size: .78rem;
    line-height: 1.5;
}

.account-email-alert {
    border-color: #fde68a;
    color: #854d0e;
    background: #fffbeb;
}

.account-email-alert i,
.account-flash i {
    margin-top: .15rem;
}

.account-email-alert a {
    margin-left: .2rem;
    color: #713f12;
    font-weight: 750;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.account-content-stack {
    display: grid;
    gap: 1rem;
}

.account-card {
    border: 1px solid rgba(223, 230, 226, .95);
    border-radius: .72rem;
    background: var(--account-surface);
    box-shadow: 0 5px 16px rgba(7, 26, 20, .055), 0 1px 2px rgba(7, 26, 20, .035);
}

.account-section {
    padding: 1.55rem;
}

.account-section-header {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.account-section-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #d1fae5;
    border-radius: .48rem;
    color: #047857;
    background: #ecfdf5;
    font-size: .8rem;
}

.account-section-heading h3 {
    margin: .08rem 0 0;
    color: #1b2821;
    font-size: .88rem;
    font-weight: 750;
}

.account-section-heading p {
    margin-top: .25rem;
    color: #7b8780;
    font-size: .74rem;
    line-height: 1.5;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #e5ebe7;
    border-radius: .58rem;
    background: #fbfcfb;
}

.account-info-item {
    min-width: 0;
    padding: 1rem 1.1rem;
}

.account-info-item:nth-child(odd) {
    border-right: 1px solid #e5ebe7;
}

.account-info-item:nth-child(n+3) {
    border-top: 1px solid #e5ebe7;
}

.account-info-label,
.account-info-value {
    display: block;
}

.account-info-label {
    margin-bottom: .34rem;
    color: #89948e;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.account-info-value {
    overflow: hidden;
    color: #26332c;
    font-size: .82rem;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-info-note {
    display: block;
    margin-top: .3rem;
    color: #a16207;
    font-size: .65rem;
}

.account-security-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.account-security-copy {
    min-width: 0;
}

.account-security-copy .account-section-header {
    margin-bottom: 0;
}

.account-primary-button {
    display: inline-flex;
    min-height: 2.8rem;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: .48rem;
    color: #fff;
    background: var(--account-primary);
    box-shadow: 0 4px 10px rgba(8, 122, 85, .14);
    font-size: .76rem;
    font-weight: 750;
    transition: background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.account-primary-button:hover {
    background: var(--account-primary-dark);
    box-shadow: 0 5px 13px rgba(8, 122, 85, .18);
}

.account-primary-button:active {
    transform: translateY(1px);
}

.account-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.account-field label {
    display: block;
    margin-bottom: .42rem;
    color: #455249;
    font-size: .72rem;
    font-weight: 700;
}

.account-field--wide {
    grid-column: 1 / -1;
}

.account-select,
.account-text-input {
    display: block;
    width: 100%;
    min-height: 3rem;
    border: 1px solid #d6ded9;
    border-radius: .48rem;
    color: #25322b;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(7, 26, 20, .025);
    font-size: .78rem;
}

.account-select {
    padding: 0 2.4rem 0 .85rem;
}

.account-text-input {
    padding: 0 .85rem;
}

.account-select:focus,
.account-text-input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .1);
}

.account-form-actions {
    display: flex;
    justify-content: flex-end;
    padding-top: .15rem;
}

.account-preference-status {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-top: .75rem;
    color: #89948e;
    font-size: .68rem;
}

.account-preference-status.is-active {
    color: #047857;
}

.account-secondary-button {
    display: inline-flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .48rem;
    padding: .62rem .85rem;
    border: 1px solid #d8e0db;
    border-radius: .48rem;
    color: #405048;
    background: #fff;
    font-size: .72rem;
    font-weight: 750;
}

.account-secondary-button:hover {
    border-color: #aebbb4;
    color: #075f45;
    background: #f9fbfa;
}

.account-subscription-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.45rem 1.55rem;
}

.account-subscription-status.is-premium {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #fff 0%, #f0fdf7 100%);
}

.account-subscription-main,
.account-subscription-actions {
    display: flex;
    align-items: center;
    gap: .9rem;
}

.account-subscription-icon {
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .5rem;
    color: #64716a;
    background: #eef2f0;
}

.is-premium .account-subscription-icon {
    color: #d1fae5;
    background: #087a55;
    box-shadow: 0 5px 12px rgba(8, 122, 85, .14);
}

.account-subscription-copy {
    min-width: 0;
}

.account-subscription-label {
    display: block;
    margin-bottom: .3rem;
    color: #047857;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.account-subscription-copy h2 {
    margin: 0;
    color: #1a2820;
    font-size: 1.08rem;
    font-weight: 750;
}

.account-subscription-copy p {
    margin-top: .22rem;
    color: #78847d;
    font-size: .72rem;
}

.account-subscription-copy small {
    display: block;
    margin-top: .24rem;
    color: #2563eb;
    font-size: .65rem;
    font-weight: 700;
}

.account-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .45rem .65rem;
    border-radius: 999px;
    color: #66736b;
    background: #eef2f0;
    font-size: .64rem;
    font-weight: 750;
}

.account-status-badge i {
    width: .42rem;
    height: .42rem;
    border-radius: 99px;
    background: #9ca9a2;
}

.account-status-badge.is-active {
    color: #047857;
    background: #dcfce7;
}

.account-status-badge.is-active i {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .1);
}

.account-subscription-offer {
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
}

.account-benefits-panel,
.account-pricing-panel {
    padding: clamp(1.5rem, 3vw, 2.35rem);
}

.account-section-icon--large {
    width: 3rem;
    height: 3rem;
    margin-bottom: 1.4rem;
    font-size: 1rem;
}

.account-benefits-panel h2 {
    max-width: 17ch;
    margin: .45rem 0 0;
    color: #18251e;
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.045em;
}

.account-offer-lead {
    max-width: 34rem;
    margin-top: .75rem;
    color: #758079;
    font-size: .78rem;
    line-height: 1.6;
}

.account-benefit-list {
    display: grid;
    gap: 1rem;
    margin-top: 1.7rem;
}

.account-benefit {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.account-benefit > span {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .44rem;
    color: #047857;
    background: #ecfdf5;
    font-size: .7rem;
}

.account-benefit strong {
    display: block;
    color: #28362e;
    font-size: .75rem;
}

.account-benefit p {
    margin-top: .15rem;
    color: #839087;
    font-size: .68rem;
    line-height: 1.45;
}

.account-pricing-panel {
    color: #fff;
    background:
        radial-gradient(circle at 90% 0, rgba(52, 211, 153, .17), transparent 32%),
        linear-gradient(145deg, #0a2119, #102b21 60%, #071a14);
}

.account-pricing-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-pricing-topline span {
    padding: .38rem .58rem;
    border: 1px solid rgba(110, 231, 183, .22);
    border-radius: 999px;
    color: #a7f3d0;
    background: rgba(52, 211, 153, .09);
    font-size: .62rem;
    font-weight: 750;
}

.account-pricing-topline i {
    color: rgba(255, 255, 255, .26);
    font-size: .65rem;
}

.account-plan-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .25rem;
    margin-top: 1.4rem;
    padding: .25rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .045);
}

.account-plan-switch button {
    min-height: 2.75rem;
    padding: .55rem;
    border-radius: .36rem;
    color: rgba(255, 255, 255, .52);
    font-size: .7rem;
    font-weight: 750;
}

.account-plan-switch button.is-active {
    color: #064e3b;
    background: #6ee7b7;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .14);
}

.account-plan-switch small {
    margin-left: .2rem;
    font-size: .55rem;
}

.account-price-display {
    min-height: 8.4rem;
    padding-top: 1.7rem;
}

.account-price-display p {
    color: #a7f3d0;
    font-size: .68rem;
}

.account-price-display del {
    margin-right: .35rem;
    color: rgba(255, 255, 255, .36);
}

.account-price-display strong {
    display: block;
    margin-top: .55rem;
    color: #fff;
    font-size: clamp(2.25rem, 5vw, 3rem);
    line-height: 1;
    letter-spacing: -.055em;
}

.account-price-display strong small {
    margin-left: .35rem;
    color: rgba(255, 255, 255, .5);
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: 0;
}

.account-price-display > div > span {
    display: block;
    margin-top: .75rem;
    color: rgba(255, 255, 255, .58);
    font-size: .7rem;
}

.account-pricing-cta {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    border-radius: .48rem;
    color: #064e3b;
    background: #6ee7b7;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .16);
    font-size: .76rem;
    font-weight: 800;
}

.account-pricing-cta:hover {
    background: #a7f3d0;
}

.account-pricing-secure {
    margin-top: .65rem;
    color: rgba(255, 255, 255, .34);
    font-size: .61rem;
    text-align: center;
}

.account-customization-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}

.account-customization-header .account-section-header {
    margin-bottom: 0;
}

.account-empty-state {
    display: grid;
    min-height: 15rem;
    place-items: center;
    align-content: center;
    gap: .8rem;
    padding: 2.5rem 1.25rem;
    border: 1px dashed #d5ded8;
    border-radius: .58rem;
    color: #7b8780;
    background: #fafcfb;
}

.account-empty-state > span {
    display: grid;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border-radius: .5rem;
    color: #0b7a56;
    background: #eaf7f0;
    font-size: 1rem;
}

.account-empty-state p {
    max-width: 30rem;
    font-size: .76rem;
    line-height: 1.55;
}

.account-config-list {
    display: grid;
    gap: .65rem;
}

.account-config-item {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .9rem;
    border: 1px solid #e3e9e5;
    border-radius: .52rem;
    background: #fbfcfb;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.account-config-item:hover {
    border-color: #cbd7d0;
    background: #fff;
    transform: translateY(-1px);
}

.account-config-icon {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: .46rem;
    color: #047857;
    background: #eaf7f0;
    font-size: .78rem;
}

.account-config-copy {
    min-width: 0;
}

.account-config-title {
    display: flex;
    align-items: center;
    gap: .45rem;
}

.account-config-title h4 {
    overflow: hidden;
    margin: 0;
    color: #25322b;
    font-size: .78rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-config-title span {
    color: #d97706;
    font-size: .64rem;
}

.account-config-copy p,
.account-config-copy small {
    display: block;
    margin-top: .18rem;
    color: #7d8982;
    font-size: .65rem;
}

.account-config-copy small {
    color: #9aa49f;
}

.account-config-actions {
    display: flex;
    gap: .35rem;
}

.account-config-actions button,
.account-modal-header button {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    place-items: center;
    border: 1px solid #dde4e0;
    border-radius: .4rem;
    color: #76827b;
    background: #fff;
    font-size: .68rem;
}

.account-config-actions button:hover,
.account-modal-header button:hover {
    border-color: #b8c6be;
    color: #075f45;
}

.account-config-actions button.is-favorite {
    border-color: #fde68a;
    color: #d97706;
    background: #fffbeb;
}

.account-config-actions button.is-danger:hover {
    border-color: #fecaca;
    color: #dc2626;
    background: #fff5f5;
}

.account-modal {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: grid;
    overflow-y: auto;
    place-items: center;
    padding: 1.5rem;
}

.account-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(4, 19, 14, .68);
    backdrop-filter: blur(4px);
}

.account-modal-panel {
    position: relative;
    width: min(100%, 58rem);
    max-height: calc(100vh - 3rem);
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .7rem;
    background: #fff;
    box-shadow: 0 20px 52px rgba(3, 18, 13, .28);
}

.account-modal-header {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    border-bottom: 1px solid #e7ece9;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.account-modal-header h3 {
    margin: .18rem 0 0;
    color: #18251e;
    font-size: 1rem;
    font-weight: 750;
}

.account-modal-body {
    display: grid;
    gap: 1.35rem;
    padding: 1.4rem;
}

.account-modal-basics {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.account-favorite-check {
    display: flex;
    min-height: 3rem;
    align-items: center;
    padding: .5rem .85rem;
    border: 1px solid #d9e1dc;
    border-radius: .48rem;
    color: #5f6c64;
    background: #fbfcfb;
    cursor: pointer;
}

.account-favorite-check input {
    width: 1rem;
    height: 1rem;
    margin-right: .55rem;
    accent-color: #087a55;
}

.account-favorite-check span {
    display: flex;
    gap: .42rem;
    align-items: center;
    font-size: .7rem;
    font-weight: 700;
}

.account-favorite-check i {
    color: #d97706;
}

.account-modal-section {
    min-width: 0;
}

.account-modal-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .55rem;
}

.account-modal-section-heading strong,
.account-available-title {
    color: #34423a;
    font-size: .72rem;
    font-weight: 750;
}

.account-modal-section-heading div {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.account-modal-section-heading div > span {
    display: grid;
    min-width: 1.35rem;
    height: 1.35rem;
    place-items: center;
    padding: 0 .25rem;
    border-radius: 999px;
    color: #047857;
    background: #dcfce7;
    font-size: .6rem;
    font-weight: 800;
}

.account-modal-section-heading button {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #b91c1c;
    font-size: .65rem;
    font-weight: 700;
}

.account-selected-stats {
    min-height: 5rem;
    padding: .65rem;
    border: 1px solid #dde4e0;
    border-radius: .5rem;
    background: #f8faf9;
}

.account-selected-stats > div {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
}

.account-selected-stats p {
    padding: .5rem;
    color: #929d97;
    font-size: .7rem;
}

.account-stat-chip {
    display: inline-flex;
    min-height: 2rem;
    align-items: center;
    gap: .42rem;
    padding: .35rem .45rem;
    border: 1px solid #cce9da;
    border-radius: .36rem;
    color: #126347;
    background: #eaf7f0;
    font-size: .67rem;
    font-weight: 700;
}

.account-stat-chip .fa-grip-vertical {
    color: #72a18f;
    cursor: grab;
}

.account-stat-chip button {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border-radius: .24rem;
    color: #578170;
}

.account-stat-chip button:hover {
    color: #b91c1c;
    background: rgba(255, 255, 255, .8);
}

.account-field-error {
    margin-top: .35rem;
    color: #dc2626;
    font-size: .65rem;
}

.account-text-input.is-invalid,
.account-selected-stats.is-invalid {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .1);
}

.account-stat-groups {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    margin-top: .55rem;
    padding-bottom: .45rem;
}

.account-stat-groups button {
    flex: 0 0 auto;
    padding: .5rem .7rem;
    border: 1px solid #dce4df;
    border-radius: .4rem;
    color: #68756d;
    background: #fff;
    font-size: .67rem;
    font-weight: 700;
}

.account-stat-groups button.is-active {
    border-color: #a7e3c8;
    color: #047857;
    background: #eaf7f0;
}

.account-available-stats {
    max-height: 17rem;
    overflow-y: auto;
    margin-top: .35rem;
    padding: .65rem;
    border: 1px solid #e0e7e3;
    border-radius: .5rem;
    background: #fbfcfb;
}

.account-available-stats > div {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
}

.account-stat-option {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .5rem;
    padding: .58rem .62rem;
    border: 1px solid #e2e8e4;
    border-radius: .36rem;
    color: #526058;
    background: #fff;
    font-size: .67rem;
    cursor: pointer;
}

.account-stat-option:hover {
    border-color: #b9d9c9;
    background: #f3faf6;
}

.account-stat-option input {
    width: .95rem;
    height: .95rem;
    flex: 0 0 auto;
    accent-color: #087a55;
}

.account-stat-option span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-modal-footer {
    position: sticky;
    z-index: 3;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    padding: 1rem 1.4rem;
    border-top: 1px solid #e7ece9;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
}

.account-alert-info {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border: 1px solid #bae6d3;
    border-radius: .58rem;
    color: #145c43;
    background: #edf9f3;
}

.account-alert-info > span {
    display: grid;
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .38rem;
    color: #047857;
    background: #d9f5e7;
    font-size: .72rem;
}

.account-alert-info strong {
    display: block;
    font-size: .76rem;
}

.account-alert-info p {
    margin-top: .22rem;
    color: #42725f;
    font-size: .68rem;
    line-height: 1.55;
}

.account-section-icon--telegram {
    border-color: #bae6fd;
    color: #0284c7;
    background: #f0f9ff;
}

.account-telegram-state {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: .85rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid #dce5e0;
    border-radius: .56rem;
    background: #fafcfb;
}

.account-telegram-state.is-connected {
    border-color: #c9ead9;
    background: linear-gradient(135deg, #fbfefc, #f0faf5);
}

.account-telegram-status-icon,
.account-telegram-empty-icon {
    display: grid;
    width: 2.7rem;
    height: 2.7rem;
    place-items: center;
    border-radius: .48rem;
    color: #047857;
    background: #dcfce7;
    font-size: .78rem;
}

.account-telegram-empty-icon {
    color: #0284c7;
    background: #e0f2fe;
    font-size: 1rem;
}

.account-telegram-copy {
    min-width: 0;
}

.account-telegram-copy strong {
    display: block;
    color: #26342c;
    font-size: .76rem;
    font-weight: 750;
}

.account-telegram-copy p {
    margin-top: .22rem;
    color: #7c8881;
    font-size: .68rem;
    line-height: 1.5;
}

.account-telegram-actions {
    display: flex;
    gap: .45rem;
}

.account-action-button {
    display: inline-flex;
    min-height: 2.5rem;
    align-items: center;
    justify-content: center;
    gap: .42rem;
    padding: .55rem .75rem;
    border: 1px solid #d7e0db;
    border-radius: .44rem;
    color: #516058;
    background: #fff;
    font-size: .68rem;
    font-weight: 750;
}

.account-action-button:hover {
    border-color: #b9c7bf;
    color: #26342c;
    background: #f8faf9;
}

.account-action-button--telegram {
    border-color: #bae6fd;
    color: #0369a1;
    background: #f0f9ff;
}

.account-action-button--telegram:hover {
    border-color: #7dd3fc;
    color: #075985;
    background: #e0f2fe;
}

.account-telegram-state--empty {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.account-telegram-state--empty small {
    grid-column: 2 / -1;
    color: #9aa49f;
    font-size: .61rem;
}

.account-entity-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
    padding: .3rem;
    border: 1px solid #e0e7e3;
    border-radius: .52rem;
    background: #f4f7f5;
}

.account-entity-tabs button {
    display: flex;
    min-height: 2.65rem;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem .65rem;
    border: 1px solid transparent;
    border-radius: .38rem;
    color: #77847c;
    font-size: .7rem;
    font-weight: 750;
}

.account-entity-tabs button:hover {
    color: #365347;
    background: rgba(255, 255, 255, .65);
}

.account-entity-tabs button.is-active {
    border-color: #dce5e0;
    color: #047857;
    background: #fff;
    box-shadow: 0 1px 4px rgba(7, 26, 20, .07);
}

.account-entity-tabs i {
    font-size: .68rem;
}

.account-alert-tabs-content {
    margin-top: 1.25rem;
}

.account-entity-panel {
    display: grid;
    gap: 1rem;
}

.account-alert-create-toggle {
    display: flex;
    justify-content: flex-end;
}

.account-alert-form {
    display: grid;
    gap: 1rem;
    padding: 1.1rem;
    border: 1px solid #dce6e0;
    border-radius: .56rem;
    background: #f8faf9;
}

.account-alert-form-heading {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid #e3e9e5;
}

.account-alert-form-heading > span {
    display: grid;
    width: 2.1rem;
    height: 2.1rem;
    flex: 0 0 auto;
    place-items: center;
    border-radius: .4rem;
    color: #047857;
    background: #e5f6ed;
    font-size: .65rem;
}

.account-alert-form-heading h4,
.account-alert-list-heading h4 {
    margin: .05rem 0 0;
    color: #28362e;
    font-size: .78rem;
    font-weight: 750;
}

.account-alert-form-heading p {
    margin-top: .2rem;
    color: #808c85;
    font-size: .66rem;
}

.account-alert-field > label,
.account-alert-types-heading > label {
    display: block;
    margin-bottom: .42rem;
    color: #455249;
    font-size: .7rem;
    font-weight: 750;
}

.account-alert-search {
    position: relative;
}

.account-alert-search > input {
    display: block;
    width: 100%;
    min-height: 3rem;
    padding: 0 2.7rem 0 .85rem;
    border: 1px solid #d6ded9;
    border-radius: .48rem;
    color: #25322b;
    background: #fff;
    font-size: .78rem;
}

.account-alert-search > input:focus {
    border-color: #10b981;
    outline: none;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .1);
}

.account-alert-search > i {
    position: absolute;
    top: 50%;
    right: .95rem;
    color: #98a39d;
    font-size: .72rem;
    transform: translateY(-50%);
    pointer-events: none;
}

.account-alert-search-results {
    position: absolute;
    z-index: 50;
    top: calc(100% + .35rem);
    right: 0;
    left: 0;
    max-height: 17rem;
    overflow-y: auto;
    border: 1px solid #dce4df;
    border-radius: .46rem;
    background: #fff;
    box-shadow: 0 9px 24px rgba(7, 26, 20, .13);
}

.account-alert-search-results .search-result-item:last-child {
    border-bottom: 0;
}

.account-alert-types-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .5rem;
}

.account-alert-types-heading > label {
    margin-bottom: 0;
}

.account-alert-types-heading > div {
    display: flex;
    gap: .35rem;
}

.account-alert-types-heading button {
    padding: .36rem .55rem;
    border: 1px solid #d7e0db;
    border-radius: .34rem;
    color: #68756d;
    background: #fff;
    font-size: .61rem;
    font-weight: 700;
}

.account-alert-types-heading button:hover {
    border-color: #aebdb4;
    color: #075f45;
}

.account-alert-type-grid > div {
    overflow: hidden;
    border-radius: .44rem;
}

.account-alert-save-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: .9rem;
    border-top: 1px solid #e3e9e5;
}

.account-alert-save-bar > span {
    color: #77847c;
    font-size: .66rem;
    font-weight: 650;
}

.account-alert-save-bar .account-primary-button:disabled {
    color: #9ca7a1;
    background: #e6ebe8;
    box-shadow: none;
    cursor: not-allowed;
}

.account-alert-list-section {
    padding-top: 1.05rem;
    border-top: 1px solid #e8edea;
}

.account-alert-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}

.account-alert-list-heading .account-subscription-label {
    margin-bottom: .12rem;
}

.account-alert-selection-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.account-alert-selection-actions > span {
    color: #7b8780;
    font-size: .64rem;
}

.account-alert-selection-actions button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .42rem .58rem;
    border: 1px solid #fecaca;
    border-radius: .36rem;
    color: #b91c1c;
    background: #fff5f5;
    font-size: .62rem;
    font-weight: 750;
}

.account-alert-empty {
    display: grid;
    min-height: 12rem;
    place-items: center;
    align-content: center;
    gap: .45rem;
    padding: 2rem 1rem;
    border: 1px dashed #d8e1dc;
    border-radius: .52rem;
    background: #fafcfb;
}

.account-alert-empty > span {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border-radius: .46rem;
    color: #7e8b83;
    background: #edf1ef;
    font-size: .85rem;
}

.account-alert-empty h3 {
    margin: .2rem 0 0;
    color: #4a584f;
    font-size: .76rem;
    font-weight: 750;
}

.account-alert-empty p {
    color: #8a958f;
    font-size: .67rem;
}

.account-alert-row,
[id^="alerts-list-"] > div {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .72rem .78rem;
    border: 1px solid #e1e7e3;
    border-radius: .46rem;
    box-shadow: 0 1px 2px rgba(7, 26, 20, .02);
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.account-alert-row {
    cursor: pointer;
}

.account-alert-row:hover,
[id^="alerts-list-"] > div:hover {
    border-color: #c7d3cc;
}

.account-alert-row.is-selected {
    border-color: #86d5b4;
    background: #effaf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .08);
}

.account-alert-row-main {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: .65rem;
}

.account-alert-row-main > input {
    width: .9rem;
    height: .9rem;
    flex: 0 0 auto;
    accent-color: #087a55;
    pointer-events: none;
}

.account-alert-entity-image {
    width: 2rem;
    height: 2rem;
    flex: 0 0 auto;
    border: 1px solid #e4e9e6;
    border-radius: .32rem;
    object-fit: contain;
    background: #fff;
}

.account-alert-entity-image.is-avatar {
    border-radius: 999px;
    object-fit: cover;
}

.account-alert-row-copy {
    min-width: 0;
}

.account-alert-row-title {
    display: flex;
    align-items: center;
    gap: .42rem;
}

.account-alert-row-title strong {
    overflow: hidden;
    color: #2c3931;
    font-size: .71rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-alert-row-copy p {
    overflow: hidden;
    margin-top: .15rem;
    color: #69766e;
    font-size: .65rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-alert-row-copy small {
    color: #929d97;
}

.account-alert-threshold {
    flex: 0 0 auto;
    padding: .2rem .38rem;
    border-radius: 999px;
    color: #1d4ed8;
    background: #dbeafe;
    font-size: .55rem;
    font-weight: 750;
}

.account-alert-row-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: .4rem;
}

.account-premium-badge {
    padding: .24rem .42rem;
    border-radius: 999px;
    color: #a16207;
    background: #fef3c7;
    font-size: .54rem;
    font-weight: 800;
    text-transform: uppercase;
}

.toggle-alert,
.delete-alert {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: .36rem;
    font-size: .75rem;
}

.toggle-alert.text-primary-600 {
    color: #059669;
    background: #ecfdf5;
}

.toggle-alert.text-gray-500 {
    color: #9aa49f;
    background: #f3f5f4;
}

.toggle-alert:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.delete-alert {
    color: #dc2626;
    background: #fff5f5;
}

.account-danger-card {
    border-color: #fecaca;
    background: #fffafa;
    box-shadow: none;
}

.account-danger-row {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}

.account-danger-icon {
    display: grid;
    width: 2.45rem;
    height: 2.45rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: .48rem;
    color: #dc2626;
    background: #fef2f2;
    font-size: .78rem;
}

.account-danger-copy h3 {
    margin: .05rem 0 0;
    color: #7f1d1d;
    font-size: .86rem;
    font-weight: 750;
}

.account-danger-copy p {
    max-width: 47rem;
    margin-top: .32rem;
    color: #7c6868;
    font-size: .74rem;
    line-height: 1.55;
}

.account-danger-copy .account-danger-warning {
    color: #b91c1c;
    font-weight: 650;
}

.account-danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: .9rem;
    padding: .58rem .8rem;
    border: 1px solid #fca5a5;
    border-radius: .44rem;
    color: #b91c1c;
    background: #fff;
    font-size: .7rem;
    font-weight: 750;
}

.account-danger-button:hover {
    border-color: #ef4444;
    background: #fef2f2;
}

.account-flash--success {
    border-color: #bbf7d0;
    color: #166534;
    background: #f0fdf4;
}

.account-flash--error {
    border-color: #fecaca;
    color: #b91c1c;
    background: #fef2f2;
}

.account-flash--warning {
    border-color: #fde68a;
    color: #854d0e;
    background: #fffbeb;
}

/* Gives untouched settings screens a cleaner surface while they are migrated. */
.account-main > .bg-white.rounded-lg,
.account-main > .space-y-6 > .bg-white.rounded-lg {
    border: 1px solid var(--account-border);
    border-radius: .72rem;
    box-shadow: 0 5px 16px rgba(7, 26, 20, .055);
}

@media (max-width: 900px) {
    .account-hero {
        padding: 2.6rem 0 5.5rem;
    }

    .account-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: -3.1rem;
    }

    .account-sidebar {
        position: static;
    }

    .account-sidebar-user {
        padding: .9rem 1rem;
    }

    .account-nav {
        display: flex;
        gap: .4rem;
        overflow-x: auto;
        padding: .65rem;
        scrollbar-width: none;
    }

    .account-nav::-webkit-scrollbar {
        display: none;
    }

    .account-nav-link {
        display: flex;
        min-height: 2.6rem;
        flex: 0 0 auto;
        padding: .35rem .65rem .35rem .4rem;
        white-space: nowrap;
    }

    .account-nav-icon {
        width: 1.9rem;
        height: 1.9rem;
    }

    .account-nav-arrow {
        display: none;
    }

    .account-subscription-offer {
        grid-template-columns: 1fr;
    }

    .account-available-stats > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .account-telegram-state,
    .account-telegram-state--empty {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .account-telegram-actions,
    .account-telegram-state--empty .account-action-button,
    .account-telegram-state--empty small {
        grid-column: 2;
    }
}

@media (max-width: 640px) {
    .account-container {
        width: min(100% - 1.25rem, 78rem);
    }

    .account-hero {
        padding-top: 2rem;
        padding-bottom: 5rem;
    }

    .account-hero h1 {
        font-size: 2.15rem;
    }

    .account-layout {
        margin-top: -2.6rem;
        padding-bottom: 3rem;
    }

    .account-security-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-section {
        padding: 1.15rem;
    }

    .account-info-grid {
        grid-template-columns: 1fr;
    }

    .account-form-grid {
        grid-template-columns: 1fr;
    }

    .account-info-item:nth-child(odd) {
        border-right: 0;
    }

    .account-info-item:nth-child(n+2) {
        border-top: 1px solid #e5ebe7;
    }

    .account-primary-button {
        width: 100%;
    }

    .account-subscription-status,
    .account-subscription-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-subscription-actions,
    .account-secondary-button {
        width: 100%;
    }

    .account-customization-header {
        flex-direction: column;
    }

    .account-customization-header .account-primary-button {
        width: 100%;
    }

    .account-config-item {
        grid-template-columns: 2.6rem minmax(0, 1fr);
    }

    .account-config-actions {
        grid-column: 1 / -1;
        justify-content: flex-end;
        padding-top: .3rem;
        border-top: 1px solid #edf1ef;
    }

    .account-modal {
        align-items: end;
        padding: 0;
    }

    .account-modal-panel {
        width: 100%;
        max-height: 94vh;
        border-radius: .68rem .68rem 0 0;
    }

    .account-modal-basics,
    .account-available-stats > div {
        grid-template-columns: 1fr;
    }

    .account-modal-footer .account-secondary-button,
    .account-modal-footer .account-primary-button {
        width: auto;
        flex: 1;
    }

    .account-alert-info {
        padding: .85rem;
    }

    .account-telegram-state,
    .account-telegram-state--empty {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .account-telegram-status-icon,
    .account-telegram-empty-icon {
        margin-inline: auto;
    }

    .account-telegram-actions,
    .account-telegram-state--empty .account-action-button,
    .account-telegram-state--empty small {
        grid-column: auto;
    }

    .account-telegram-actions {
        display: grid;
        width: 100%;
    }

    .account-action-button {
        width: 100%;
    }

    .account-entity-tabs {
        grid-template-columns: repeat(4, minmax(4.1rem, 1fr));
        overflow-x: auto;
    }

    .account-entity-tabs button {
        flex-direction: column;
        gap: .28rem;
        min-height: 3.25rem;
    }

    .account-alert-create-toggle .account-primary-button,
    .account-alert-save-bar .account-primary-button {
        width: 100%;
    }

    .account-alert-save-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .account-alert-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .account-alert-selection-actions {
        width: 100%;
        justify-content: space-between;
    }

    .account-alert-row,
    [id^="alerts-list-"] > div {
        align-items: flex-start;
        gap: .55rem;
    }

    .account-alert-row-title {
        align-items: flex-start;
        flex-direction: column;
        gap: .25rem;
    }

    .account-alert-entity-image {
        display: none;
    }
}

/* Private area dark mode */
[data-theme="dark"] .account-area {
    color-scheme: dark;
}

[data-theme="dark"] .account-hero {
    color: #fff;
    background:
        radial-gradient(circle at 78% 15%, rgba(52, 211, 153, .12), transparent 29%),
        linear-gradient(145deg, #071a13 0%, #0b2119 55%, #06150f 100%);
}

[data-theme="dark"] .account-hero::before {
    opacity: .13;
    background-image:
        linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
}

[data-theme="dark"] .account-hero h1 {
    color: #fff;
}

[data-theme="dark"] .account-sidebar,
[data-theme="dark"] .account-card {
    border-color: var(--account-border);
    background: var(--account-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2), 0 1px 2px rgba(0, 0, 0, .22);
}

[data-theme="dark"] .account-sidebar-user,
[data-theme="dark"] .account-info-item:nth-child(n+3),
[data-theme="dark"] .account-config-actions,
[data-theme="dark"] .account-alert-list-section {
    border-color: #263a30;
}

[data-theme="dark"] .account-sidebar-copy strong,
[data-theme="dark"] .account-section-heading h3,
[data-theme="dark"] .account-info-value,
[data-theme="dark"] .account-subscription-copy h2,
[data-theme="dark"] .account-benefits-panel h2,
[data-theme="dark"] .account-benefit strong,
[data-theme="dark"] .account-config-title h4,
[data-theme="dark"] .account-modal-header h3,
[data-theme="dark"] .account-alert-form-heading h4,
[data-theme="dark"] .account-alert-list-heading h4,
[data-theme="dark"] .account-alert-row-title strong,
[data-theme="dark"] .account-telegram-copy strong,
[data-theme="dark"] .account-alert-empty h3 {
    color: #e7f0eb;
}

[data-theme="dark"] .account-sidebar-copy span,
[data-theme="dark"] .account-section-heading p,
[data-theme="dark"] .account-info-label,
[data-theme="dark"] .account-subscription-copy p,
[data-theme="dark"] .account-offer-lead,
[data-theme="dark"] .account-benefit p,
[data-theme="dark"] .account-config-copy p,
[data-theme="dark"] .account-config-copy small,
[data-theme="dark"] .account-empty-state,
[data-theme="dark"] .account-alert-form-heading p,
[data-theme="dark"] .account-alert-save-bar > span,
[data-theme="dark"] .account-alert-selection-actions > span,
[data-theme="dark"] .account-alert-row-copy p,
[data-theme="dark"] .account-alert-row-copy small,
[data-theme="dark"] .account-telegram-copy p,
[data-theme="dark"] .account-telegram-state--empty small,
[data-theme="dark"] .account-alert-empty p,
[data-theme="dark"] .account-preference-status {
    color: #91a39a;
}

[data-theme="dark"] .account-nav-link {
    color: #9aada3;
}

[data-theme="dark"] .account-nav-link:hover {
    color: #dff7eb;
    background: #16281f;
}

[data-theme="dark"] .account-nav-link.is-active {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .13);
}

[data-theme="dark"] .account-nav-icon {
    border-color: #2b4036;
    color: #8ba097;
    background: #0c1813;
}

[data-theme="dark"] .account-nav-link.is-active .account-nav-icon {
    border-color: rgba(52, 211, 153, .28);
    color: #6ee7b7;
    background: rgba(8, 45, 32, .8);
}

[data-theme="dark"] .account-nav-arrow {
    color: #54685e;
}

[data-theme="dark"] .account-section-icon,
[data-theme="dark"] .account-benefit > span,
[data-theme="dark"] .account-empty-state > span,
[data-theme="dark"] .account-config-icon,
[data-theme="dark"] .account-alert-form-heading > span {
    border-color: rgba(52, 211, 153, .18);
    color: #6ee7b7;
    background: rgba(16, 185, 129, .11);
}

[data-theme="dark"] .account-section-icon--telegram {
    border-color: rgba(56, 189, 248, .22);
    color: #7dd3fc;
    background: rgba(14, 165, 233, .11);
}

[data-theme="dark"] .account-info-grid {
    border-color: #293d33;
    background: #0c1813;
}

[data-theme="dark"] .account-info-item:nth-child(odd),
[data-theme="dark"] .account-info-item:nth-child(n+2) {
    border-color: #263a30;
}

[data-theme="dark"] .account-info-note {
    color: #fbbf24;
}

[data-theme="dark"] .account-field label,
[data-theme="dark"] .account-alert-field > label,
[data-theme="dark"] .account-alert-types-heading > label,
[data-theme="dark"] .account-modal-section-heading strong,
[data-theme="dark"] .account-available-title {
    color: #c8d6cf;
}

[data-theme="dark"] .account-select,
[data-theme="dark"] .account-text-input,
[data-theme="dark"] .account-alert-search > input {
    border-color: #33483d;
    color: #e4ede8;
    background-color: #0b1712;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}

[data-theme="dark"] .account-select:focus,
[data-theme="dark"] .account-text-input:focus,
[data-theme="dark"] .account-alert-search > input:focus {
    border-color: #34d399;
    box-shadow: 0 0 0 4px rgba(52, 211, 153, .1);
}

[data-theme="dark"] .account-select option,
[data-theme="dark"] .account-select optgroup {
    color: #e4ede8;
    background: #0b1712;
}

[data-theme="dark"] .account-secondary-button,
[data-theme="dark"] .account-action-button,
[data-theme="dark"] .account-config-actions button,
[data-theme="dark"] .account-modal-header button,
[data-theme="dark"] .account-alert-types-heading button {
    border-color: #344a3e;
    color: #c0cfc7;
    background: #13231b;
}

[data-theme="dark"] .account-secondary-button:hover,
[data-theme="dark"] .account-action-button:hover,
[data-theme="dark"] .account-config-actions button:hover,
[data-theme="dark"] .account-modal-header button:hover,
[data-theme="dark"] .account-alert-types-heading button:hover {
    border-color: #4b6658;
    color: #8af0c1;
    background: #182b22;
}

[data-theme="dark"] .account-preference-status.is-active,
[data-theme="dark"] .account-subscription-label {
    color: #6ee7b7;
}

[data-theme="dark"] .account-subscription-status.is-premium {
    border-color: rgba(52, 211, 153, .35);
    background: linear-gradient(135deg, #101d17 0%, #10271d 100%);
}

[data-theme="dark"] .account-subscription-icon,
[data-theme="dark"] .account-status-badge {
    color: #9aada3;
    background: #1a2922;
}

[data-theme="dark"] .account-status-badge.is-active {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .14);
}

[data-theme="dark"] .account-subscription-copy small {
    color: #60a5fa;
}

[data-theme="dark"] .account-empty-state,
[data-theme="dark"] .account-alert-empty {
    border-color: #34483e;
    background: #0c1813;
}

[data-theme="dark"] .account-config-item {
    border-color: #2c4036;
    background: #0d1a14;
}

[data-theme="dark"] .account-config-item:hover {
    border-color: #40594c;
    background: #13231b;
}

[data-theme="dark"] .account-config-actions button.is-favorite {
    border-color: rgba(251, 191, 36, .32);
    color: #fbbf24;
    background: rgba(217, 119, 6, .11);
}

[data-theme="dark"] .account-config-actions button.is-danger:hover {
    border-color: rgba(248, 113, 113, .35);
    color: #f87171;
    background: rgba(220, 38, 38, .1);
}

[data-theme="dark"] .account-modal-panel {
    border-color: #30463a;
    color: #dce8e1;
    background: #101d17;
    box-shadow: 0 22px 58px rgba(0, 0, 0, .5);
}

[data-theme="dark"] .account-modal-header,
[data-theme="dark"] .account-modal-footer {
    border-color: #293d33;
    background: rgba(16, 29, 23, .97);
}

[data-theme="dark"] .account-favorite-check,
[data-theme="dark"] .account-selected-stats,
[data-theme="dark"] .account-available-stats {
    border-color: #30453a;
    color: #b7c7bf;
    background: #0b1712;
}

[data-theme="dark"] .account-modal-section-heading div > span,
[data-theme="dark"] .account-stat-chip {
    border-color: rgba(52, 211, 153, .22);
    color: #8ceabd;
    background: rgba(16, 185, 129, .12);
}

[data-theme="dark"] .account-stat-chip button:hover {
    color: #f87171;
    background: rgba(255, 255, 255, .06);
}

[data-theme="dark"] .account-stat-groups button,
[data-theme="dark"] .account-stat-option {
    border-color: #31473b;
    color: #adbbb4;
    background: #101d17;
}

[data-theme="dark"] .account-stat-groups button:hover,
[data-theme="dark"] .account-stat-option:hover {
    border-color: #476456;
    color: #dce9e2;
    background: #172920;
}

[data-theme="dark"] .account-stat-groups button.is-active {
    border-color: rgba(52, 211, 153, .35);
    color: #6ee7b7;
    background: rgba(16, 185, 129, .13);
}

[data-theme="dark"] .account-alert-info {
    border-color: rgba(52, 211, 153, .28);
    color: #a7f3d0;
    background: rgba(16, 185, 129, .1);
}

[data-theme="dark"] .account-alert-info > span {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .14);
}

[data-theme="dark"] .account-alert-info p {
    color: #9fc8b5;
}

[data-theme="dark"] .account-telegram-state,
[data-theme="dark"] .account-telegram-state.is-connected {
    border-color: #30463a;
    background: #0c1913;
}

[data-theme="dark"] .account-telegram-status-icon {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .14);
}

[data-theme="dark"] .account-telegram-empty-icon,
[data-theme="dark"] .account-action-button--telegram {
    border-color: rgba(56, 189, 248, .24);
    color: #7dd3fc;
    background: rgba(14, 165, 233, .11);
}

[data-theme="dark"] .account-action-button--telegram:hover {
    border-color: rgba(125, 211, 252, .4);
    color: #bae6fd;
    background: rgba(14, 165, 233, .16);
}

[data-theme="dark"] .account-entity-tabs {
    border-color: #2d4237;
    background: #0b1712;
}

[data-theme="dark"] .account-entity-tabs button {
    color: #91a39a;
}

[data-theme="dark"] .account-entity-tabs button:hover {
    color: #d7e5de;
    background: rgba(255, 255, 255, .045);
}

[data-theme="dark"] .account-entity-tabs button.is-active {
    border-color: #385044;
    color: #6ee7b7;
    background: #14251c;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .account-alert-form {
    border-color: #2e4338;
    background: #0c1813;
}

[data-theme="dark"] .account-alert-form-heading,
[data-theme="dark"] .account-alert-save-bar {
    border-color: #293d33;
}

[data-theme="dark"] .account-alert-search-results {
    border-color: #33493d;
    background: #101d17;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .32);
}

[data-theme="dark"] .account-alert-save-bar .account-primary-button:disabled {
    color: #63756c;
    background: #1d2c25;
}

[data-theme="dark"] .account-alert-selection-actions button,
[data-theme="dark"] .delete-alert {
    border-color: rgba(248, 113, 113, .25);
    color: #f87171;
    background: rgba(220, 38, 38, .1);
}

[data-theme="dark"] .account-alert-row,
[data-theme="dark"] [id^="alerts-list-"] > div {
    border-color: #2d4237;
    background-color: #0e1b15;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

[data-theme="dark"] .account-alert-row:hover,
[data-theme="dark"] [id^="alerts-list-"] > div:hover {
    border-color: #456052;
}

[data-theme="dark"] .account-alert-row.is-selected {
    border-color: rgba(52, 211, 153, .55);
    background: rgba(16, 185, 129, .1);
}

[data-theme="dark"] .account-alert-entity-image {
    border-color: #34483e;
    background: #fff;
}

[data-theme="dark"] .account-alert-threshold {
    color: #93c5fd;
    background: rgba(37, 99, 235, .18);
}

[data-theme="dark"] .account-premium-badge {
    color: #fcd34d;
    background: rgba(217, 119, 6, .16);
}

[data-theme="dark"] .toggle-alert.text-primary-600 {
    color: #6ee7b7;
    background: rgba(16, 185, 129, .13);
}

[data-theme="dark"] .toggle-alert.text-gray-500 {
    color: #70837a;
    background: #1a2922;
}

[data-theme="dark"] .account-danger-card {
    border-color: rgba(248, 113, 113, .3);
    background: rgba(127, 29, 29, .09);
    box-shadow: none;
}

[data-theme="dark"] .account-danger-icon {
    border-color: rgba(248, 113, 113, .28);
    color: #f87171;
    background: rgba(220, 38, 38, .12);
}

[data-theme="dark"] .account-danger-copy h3 {
    color: #fca5a5;
}

[data-theme="dark"] .account-danger-copy p {
    color: #b9a5a5;
}

[data-theme="dark"] .account-danger-copy .account-danger-warning {
    color: #f87171;
}

[data-theme="dark"] .account-danger-button {
    border-color: rgba(248, 113, 113, .35);
    color: #fca5a5;
    background: rgba(127, 29, 29, .14);
}

[data-theme="dark"] .account-danger-button:hover {
    border-color: #f87171;
    background: rgba(220, 38, 38, .16);
}

[data-theme="dark"] .account-email-alert,
[data-theme="dark"] .account-flash--warning {
    border-color: rgba(251, 191, 36, .3);
    color: #fde68a;
    background: rgba(161, 98, 7, .15);
}

[data-theme="dark"] .account-email-alert a {
    color: #fcd34d;
}

[data-theme="dark"] .account-flash--success {
    border-color: rgba(52, 211, 153, .3);
    color: #a7f3d0;
    background: rgba(16, 185, 129, .12);
}

[data-theme="dark"] .account-flash--error {
    border-color: rgba(248, 113, 113, .3);
    color: #fecaca;
    background: rgba(220, 38, 38, .12);
}

[data-theme="dark"] .account-main > .bg-white.rounded-lg,
[data-theme="dark"] .account-main > .space-y-6 > .bg-white.rounded-lg {
    border-color: var(--account-border);
    background: var(--account-surface);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
}

[data-theme="dark"] .account-delete-modal {
    background: rgba(2, 9, 6, .76);
}

[data-theme="dark"] .account-delete-modal-panel {
    border: 1px solid #354a3f;
    border-radius: .7rem;
    color: #dce8e1;
    background: #101d17;
    box-shadow: 0 24px 62px rgba(0, 0, 0, .55);
}

[data-theme="dark"] .account-delete-modal-panel #delete-account-title,
[data-theme="dark"] .account-delete-modal-panel label {
    color: #f1f6f3;
}

[data-theme="dark"] .account-delete-modal-panel p {
    color: #9eafa6;
}

[data-theme="dark"] .account-delete-modal-panel input {
    border-color: #40564a;
    color: #edf4f0;
    background: #0a1611;
}

[data-theme="dark"] .account-delete-modal-panel button[type="button"] {
    border-color: #3b5145;
    color: #cad7d0;
    background: #17271f;
}

[data-theme="dark"] .account-delete-modal-panel button[type="button"]:hover {
    background: #1d3026;
}

@media (prefers-reduced-motion: reduce) {
    .account-nav-link,
    .account-primary-button {
        transition: none;
    }
}
