:root {
    color-scheme: dark;
    --app-bg: #070910;
    --app-bg-soft: #0b0e18;
    --app-panel: rgba(15, 18, 31, 0.88);
    --app-panel-solid: #101321;
    --app-panel-hover: #171b2d;
    --app-border: rgba(255, 255, 255, 0.075);
    --app-border-strong: rgba(139, 147, 255, 0.25);
    --app-text: #f7f8ff;
    --app-muted: #9aa3b8;
    --app-dim: #687189;
    --app-primary: #7c6cff;
    --app-primary-bright: #9b8cff;
    --app-cyan: #40d9ff;
    --app-success: #35d49a;
    --app-warning: #f5ba56;
    --app-danger: #fb7185;
    --app-radius-sm: 12px;
    --app-radius: 18px;
    --app-radius-lg: 26px;
    --app-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
    --app-shadow-soft: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Subscription overview and payment history. */
.subscription-overview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.subscription-stat { padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.subscription-stat > strong { font-size: clamp(20px, 2vw, 28px); letter-spacing: -.04em; line-height: 1.25; }
.subscription-stat > small { color: var(--app-muted); line-height: 1.65; }
.subscription-stat progress { width: 100%; height: 5px; accent-color: #8880b9; }
.app-main .subscription-slot-form { display: grid; grid-template-columns: minmax(110px,1fr) auto; gap: 12px; }
.subscription-slot-form [data-slot-quote] { grid-column: 1 / -1; margin: 0; }
.subscription-slot-form > button { grid-column: 2; grid-row: 1; align-self: end; }
.launch-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding-top: 20px; }
.payment-order-id { display: block; font-size: 10px; color: var(--app-dim); margin-top: 6px; overflow-wrap: anywhere; }
[data-payment-refresh][hidden] { display: none !important; }
@media (max-width: 1050px) { .subscription-overview { gap: 10px; } .subscription-stat { padding: 16px; } }
@media (max-width: 680px) {
    .app-main .subscription-slot-form { grid-template-columns: 1fr; }
    .subscription-slot-form > button { grid-column: 1; grid-row: auto; }
    .subscription-overview { grid-template-columns: 1fr; }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--app-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--app-text);
    background:
        radial-gradient(circle at 12% -10%, rgba(124, 108, 255, 0.17), transparent 32rem),
        radial-gradient(circle at 90% 8%, rgba(64, 217, 255, 0.09), transparent 28rem),
        linear-gradient(145deg, var(--app-bg) 0%, #090b14 55%, #070910 100%);
    font-family: "Plus Jakarta Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.22;
    background-image: linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

::selection {
    color: white;
    background: rgba(124, 108, 255, 0.55);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 3px solid rgba(64, 217, 255, 0.72) !important;
    outline-offset: 3px !important;
}

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:not(:disabled),
a[href] {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

/* Shared application shell */
.app-shell {
    min-height: 100dvh;
    background: transparent;
}

.app-main {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

.app-main--narrow {
    width: min(880px, calc(100% - 32px));
}

.app-page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.app-page-header h1,
.app-title {
    margin: 0;
    color: var(--app-text);
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.app-page-header p,
.app-subtitle {
    margin: 9px 0 0;
    max-width: 680px;
    color: var(--app-muted);
    font-size: 0.94rem;
    line-height: 1.65;
}

.app-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #b9b1ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.app-kicker::before {
    content: "";
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--app-primary), var(--app-cyan));
}

.app-eyebrow {
    display: inline-flex;
}

.app-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.app-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    padding: 0 15px;
    color: white;
    background: #4f46e5;
    box-shadow: var(--app-shadow-soft);
    transform: translateY(-150%);
    transition: transform .18s ease;
}

.app-skip-link:focus {
    transform: translateY(0);
}

.app-card {
    position: relative;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius-lg);
    background: linear-gradient(145deg, rgba(20, 24, 41, 0.9), rgba(12, 15, 26, 0.92));
    box-shadow: var(--app-shadow-soft);
    backdrop-filter: blur(20px);
}

.app-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255,255,255,.045), transparent 32%);
}

.app-card > * {
    position: relative;
    z-index: 1;
}

.app-section {
    padding: clamp(22px, 3vw, 34px);
    margin-bottom: 20px;
}

.app-section__header,
.app-section__intro {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 26px;
}

.app-section__header--compact {
    margin-bottom: 18px;
}

.app-section__header h2,
.app-section__intro h2,
.app-empty-state h3 {
    margin: 0;
    color: var(--app-text);
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: -.025em;
    font-weight: 800;
}

.app-section__header p,
.app-section__intro p,
.app-empty-state p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: .8rem;
    line-height: 1.6;
}

.app-section__icon {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 14px;
    color: #b9b1ff;
    background: rgba(124,108,255,.1);
}

.app-section__icon--primary {
    color: #b9b1ff;
    border-color: rgba(124,108,255,.2);
}

.app-section__icon--success {
    color: #6ee7b7;
    border-color: rgba(53,212,154,.2);
    background: rgba(53,212,154,.08);
}

.app-section--split {
    display: grid;
    grid-template-columns: minmax(220px, .72fr) minmax(360px, 1.28fr);
    align-items: end;
    gap: 34px;
}

.app-section--split .app-section__intro {
    margin: 0;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.app-field {
    display: grid;
    gap: 8px;
}

.app-form {
    display: grid;
    gap: 20px;
}

.app-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.app-field--grow {
    min-width: 0;
    flex: 1;
}

.app-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.app-label-note,
.app-help {
    color: var(--app-dim);
    font-size: .7rem;
    line-height: 1.55;
}

.app-help {
    margin: 0;
}

.app-help code {
    border: 1px solid var(--app-border);
    border-radius: 7px;
    padding: 2px 6px;
    color: #c4bfff;
    background: rgba(124,108,255,.08);
}

.app-input-wrap {
    position: relative;
}

.app-input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    color: var(--app-dim);
    transform: translateY(-50%);
    pointer-events: none;
}

.app-input--with-icon {
    padding-left: 46px !important;
}

.app-input--code {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
    font-size: .84rem !important;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.app-inline-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
}

.app-inline-form__button {
    flex: 0 0 auto;
}

.app-field label,
.app-label {
    color: #cbd1df;
    font-size: 0.79rem;
    font-weight: 700;
    letter-spacing: 0.015em;
}

.app-input,
.app-textarea,
.app-select,
.app-field input:not([type="checkbox"]):not([type="radio"]),
.app-field textarea,
.app-field select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    color: var(--app-text);
    background: rgba(7, 9, 16, 0.72);
    padding: 0 15px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-textarea,
.app-field textarea {
    min-height: 118px;
    padding-top: 13px;
    padding-bottom: 13px;
    resize: vertical;
}

.app-input:hover,
.app-textarea:hover,
.app-select:hover,
.app-field input:not([type="checkbox"]):not([type="radio"]):hover,
.app-field textarea:hover,
.app-field select:hover {
    border-color: rgba(255,255,255,.16);
    background: rgba(9, 12, 22, 0.9);
}

.app-input:focus,
.app-textarea:focus,
.app-select:focus,
.app-field input:not([type="checkbox"]):not([type="radio"]):focus,
.app-field textarea:focus,
.app-field select:focus {
    border-color: rgba(124, 108, 255, .72);
    box-shadow: 0 0 0 4px rgba(124, 108, 255, .12);
    outline: none;
}

.app-btn {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 0 17px;
    font-size: 0.82rem;
    font-weight: 750;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
}

.app-btn:hover {
    transform: translateY(-1px);
}

.app-btn:active {
    transform: translateY(0) scale(.985);
}

.app-btn--primary {
    color: white;
    background: linear-gradient(135deg, #6958ed, #8d70ff 55%, #725cff);
    box-shadow: 0 12px 28px rgba(105, 88, 237, .25), inset 0 1px rgba(255,255,255,.18);
}

.app-btn--primary:hover {
    box-shadow: 0 16px 35px rgba(105, 88, 237, .34), inset 0 1px rgba(255,255,255,.2);
}

.app-btn--secondary {
    color: #dce1ef;
    border-color: var(--app-border);
    background: rgba(255,255,255,.045);
}

.app-btn--secondary:hover {
    border-color: rgba(255,255,255,.15);
    background: rgba(255,255,255,.075);
}

.app-btn--danger {
    color: #fecdd3;
    border-color: rgba(251, 113, 133, .2);
    background: rgba(251, 113, 133, .09);
}

.app-btn--danger:hover {
    border-color: rgba(251, 113, 133, .42);
    background: rgba(251, 113, 133, .15);
}

.app-btn--large {
    min-height: 50px;
    border-radius: 15px;
    padding-inline: 20px;
    font-size: .86rem;
}

.app-btn--block {
    width: 100%;
}

.app-btn--telegram {
    color: #dff6ff;
    border-color: rgba(64, 217, 255, .22);
    background: linear-gradient(135deg, rgba(0,136,204,.18), rgba(64,217,255,.08));
}

.app-btn--telegram:hover {
    border-color: rgba(64,217,255,.4);
    background: linear-gradient(135deg, rgba(0,136,204,.25), rgba(64,217,255,.12));
}

.app-btn--danger-ghost {
    min-height: 38px;
    color: #fda4af;
    border-color: transparent;
    background: transparent;
}

.app-btn--danger-ghost:hover {
    border-color: rgba(251,113,133,.2);
    background: rgba(251,113,133,.08);
}

.app-divider {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 23px 0;
    color: var(--app-dim);
    font-size: .69rem;
}

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

.status-pill {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 0 10px;
    color: var(--app-muted);
    background: rgba(255,255,255,.035);
    font-size: 0.7rem;
    font-weight: 750;
}

.status-pill::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.status-pill--success { color: var(--app-success); }
.status-pill--warning { color: var(--app-warning); }
.status-pill--danger { color: var(--app-danger); }

.app-alert,
.flash-msg {
    border: 1px solid var(--app-border);
    border-radius: 15px;
    background: rgba(15, 18, 31, .94);
    box-shadow: var(--app-shadow-soft);
    backdrop-filter: blur(18px);
}

.app-alert--success { border-color: rgba(53, 212, 154, .25); color: #a7f3d0; }
.app-alert--error { border-color: rgba(251, 113, 133, .27); color: #fecdd3; }
.app-alert--info { border-color: rgba(64, 217, 255, .22); color: #bae6fd; }

.app-alert--warning { border-color: rgba(245, 186, 86, .27); color: #fde68a; }

.app-alerts {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.app-alert {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 13px 15px;
}

.app-alert__icon {
    display: grid;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    place-items: center;
}

.app-alert__message {
    margin: 1px 0 0;
    font-size: .78rem;
    line-height: 1.5;
}

.empty-state {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 34px;
    border: 1px dashed rgba(255,255,255,.11);
    border-radius: var(--app-radius);
    color: var(--app-muted);
    text-align: center;
    background: rgba(255,255,255,.018);
}

.app-empty-state {
    display: grid;
    min-height: 210px;
    place-items: center;
    align-content: center;
    gap: 7px;
    padding: 32px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 18px;
    color: var(--app-muted);
    text-align: center;
    background: rgba(255,255,255,.018);
}

.app-empty-state__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 6px;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    color: #9890df;
    background: rgba(124,108,255,.07);
}

.app-page-header__meta {
    display: grid;
    min-width: 142px;
    gap: 2px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 13px 16px;
    background: rgba(255,255,255,.028);
    text-align: right;
}

.app-page-header__meta-value {
    color: white;
    font-size: 1.35rem;
    line-height: 1;
    font-weight: 850;
}

.app-page-header__meta-label {
    color: var(--app-dim);
    font-size: .65rem;
}

/* Shared navigation */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--app-border);
    background: rgba(7, 9, 16, .78);
    box-shadow: 0 12px 35px rgba(0,0,0,.15);
    backdrop-filter: blur(24px) saturate(1.25);
}

.app-nav__inner {
    display: flex;
    width: min(1320px, calc(100% - 32px));
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.app-nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
}

.app-nav__logo,
.auth-logo {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: linear-gradient(145deg, #8c7cff, #5b4bd6);
    box-shadow: 0 10px 30px rgba(105, 88, 237, .35), inset 0 1px rgba(255,255,255,.24);
}

.app-nav__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.app-nav__subtitle {
    display: block;
    margin-top: 2px;
    color: var(--app-dim);
    font-size: 0.66rem;
    font-weight: 600;
}

.app-nav__links {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-nav__links a,
.app-nav__link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 13px;
    color: var(--app-muted);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
    transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.app-nav__links a:hover,
.app-nav__link:hover,
.app-nav__link[aria-current="page"] {
    color: white;
    border-color: var(--app-border);
    background: rgba(255,255,255,.05);
}

.app-nav__link--admin {
    color: #fcd34d !important;
}

.app-nav__link--logout {
    color: #fda4af !important;
}

.app-nav__brand-copy {
    min-width: 0;
}

.app-nav__toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    color: white;
    background: rgba(255,255,255,.045);
}

/* Authentication */
.auth-shell {
    display: grid;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr);
}

.auth-hero {
    position: relative;
    display: flex;
    min-height: 100dvh;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(32px, 6vw, 84px);
    border-right: 1px solid var(--app-border);
}

.auth-hero::after {
    content: "";
    position: absolute;
    right: -18%;
    bottom: -22%;
    width: min(620px, 72vw);
    aspect-ratio: 1;
    border: 1px solid rgba(124, 108, 255, .16);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124,108,255,.22), rgba(64,217,255,.04) 42%, transparent 68%);
    box-shadow: 0 0 140px rgba(124,108,255,.16);
}

.auth-copy {
    position: relative;
    z-index: 1;
    max-width: 620px;
}

.auth-copy h1 {
    margin: 0;
    max-width: 580px;
    font-size: clamp(2.5rem, 5.7vw, 5.2rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 850;
}

.auth-copy p {
    max-width: 500px;
    margin: 24px 0 0;
    color: var(--app-muted);
    font-size: clamp(.95rem, 1.5vw, 1.08rem);
    line-height: 1.75;
}

.auth-panel {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: 36px;
    background: rgba(8, 10, 18, .38);
}

.auth-card {
    width: min(460px, 100%);
    padding: clamp(26px, 4vw, 42px);
}

.auth-brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.auth-brand__name {
    color: white;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.auth-card > .auth-brand {
    display: none;
    margin-bottom: 28px;
}

.auth-heading {
    margin: 0 0 25px;
}

.auth-heading h1 {
    margin: 0;
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 850;
}

.auth-heading p {
    margin: 10px 0 0;
    color: var(--app-muted);
    font-size: .82rem;
    line-height: 1.65;
}

.auth-card__hint {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 22px;
    border: 1px solid rgba(124,108,255,.17);
    border-radius: 15px;
    padding: 13px;
    background: rgba(124,108,255,.065);
}

.auth-card__hint-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 11px;
    color: #b9b1ff;
    background: rgba(124,108,255,.12);
}

.auth-card__hint strong,
.auth-card__hint span {
    display: block;
}

.auth-card__hint strong {
    color: #e7e5ff;
    font-size: .74rem;
}

.auth-card__hint span {
    margin-top: 3px;
    color: var(--app-muted);
    font-size: .67rem;
    line-height: 1.45;
}

.auth-footer {
    margin: 23px 0 0;
    color: var(--app-dim);
    font-size: .67rem;
    line-height: 1.55;
    text-align: center;
}

.auth-hero__note {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--app-dim);
    font-size: .72rem;
}

/* Plans, licenses and reusable replies */
.app-plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.app-plan-form {
    min-width: 0;
}

.app-plan-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 188px;
    flex-direction: column;
    align-items: flex-start;
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 20px;
    color: white;
    background: rgba(255,255,255,.025);
    text-align: left;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.app-plan-card:hover {
    border-color: rgba(124,108,255,.35);
    background: rgba(124,108,255,.07);
    box-shadow: 0 15px 36px rgba(0,0,0,.2);
    transform: translateY(-3px);
}

.app-plan-card--featured {
    border-color: rgba(124,108,255,.38);
    background: linear-gradient(145deg, rgba(124,108,255,.13), rgba(124,108,255,.035));
}

.app-plan-card--value {
    border-color: rgba(53,212,154,.25);
    background: linear-gradient(145deg, rgba(53,212,154,.09), rgba(53,212,154,.02));
}

.app-plan-card__badge {
    position: absolute;
    top: 13px;
    right: 13px;
    border-radius: 999px;
    padding: 4px 7px;
    color: #d9d5ff;
    background: rgba(124,108,255,.16);
    font-size: .55rem;
    font-weight: 800;
}

.app-plan-card__badge--value {
    color: #a7f3d0;
    background: rgba(53,212,154,.12);
}

.app-plan-card__topline {
    color: var(--app-dim);
    font-size: .65rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.app-plan-card__duration {
    margin-top: 20px;
    color: var(--app-muted);
    font-size: .76rem;
}

.app-plan-card__duration strong {
    color: white;
    font-size: 1.75rem;
    letter-spacing: -.05em;
}

.app-plan-card__price {
    margin-top: 5px;
    color: var(--app-muted);
    font-size: .7rem;
}

.app-plan-card__price strong {
    color: #d7d3ff;
    font-size: 1rem;
}

.app-plan-card__action {
    margin-top: auto;
    color: #b9b1ff;
    font-size: .72rem;
    font-weight: 800;
}

.app-license-list,
.app-template-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.app-license,
.app-template-item {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 14px 15px;
    background: rgba(255,255,255,.022);
}

.app-license__state {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 12px;
    color: var(--app-success);
    background: rgba(53,212,154,.09);
}

.app-license.is-inactive .app-license__state {
    color: var(--app-dim);
    background: rgba(255,255,255,.04);
}

.app-license__content,
.app-template-item__content {
    min-width: 0;
    flex: 1;
}

.app-license__key-row {
    display: flex;
    align-items: center;
    gap: 7px;
}

.app-license__key {
    overflow: hidden;
    color: #e8e6ff;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-license__details {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 5px;
    color: var(--app-dim);
    font-size: .67rem;
}

.app-icon-btn {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--app-muted);
    background: transparent;
}

.app-icon-btn:hover {
    border-color: var(--app-border);
    color: white;
    background: rgba(255,255,255,.045);
}

.app-icon-btn__success,
.app-icon-btn.is-copied .app-icon-btn__default {
    display: none;
}

.app-icon-btn.is-copied .app-icon-btn__success {
    display: block;
    color: var(--app-success);
}

.app-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 6px 9px;
    color: var(--app-muted);
    font-size: .64rem;
    font-weight: 750;
}

.app-status-pill__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.app-status-pill--success { color: var(--app-success); border-color: rgba(53,212,154,.18); background: rgba(53,212,154,.06); }
.app-status-pill--neutral { color: var(--app-dim); }

.app-template-item__name {
    display: block;
    color: white;
    font-size: .82rem;
    font-weight: 800;
}

.app-template-item__content p {
    display: -webkit-box;
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--app-muted);
    font-size: .72rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.app-template-item__action {
    flex: 0 0 auto;
}

.app-nav__logo svg,
.auth-logo svg,
.auth-brand__logo svg,
.app-section__icon svg {
    width: 22px;
    height: 22px;
}

.app-btn svg,
.app-nav__link svg,
.app-nav__toggle svg,
.app-alert__icon svg,
.app-icon-btn svg,
.app-input-icon svg,
.app-license__state svg,
.auth-card__hint-icon svg {
    width: 18px;
    height: 18px;
}

.app-empty-state__icon svg {
    width: 30px;
    height: 30px;
}

/* Blacklist workspace — shared visual language with Licenses and Replies */
.blacklist-main {
    width: min(1320px, calc(100% - 32px));
}

.blacklist-invitations {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.blacklist-invitation-card,
.blacklist-member-card {
    display: flex;
    min-width: 0;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    padding: 13px 15px;
    background: rgba(255,255,255,.022);
}

.blacklist-invitation-card {
    min-height: 76px;
}

.blacklist-workspace {
    display: grid;
    grid-template-columns: minmax(330px, 405px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.blacklist-sidebar {
    position: sticky;
    top: 24px;
    min-width: 0;
}

.blacklist-content {
    display: grid;
    min-width: 0;
    gap: 20px;
}

.blacklist-lists-card,
.blacklist-selected-header,
.blacklist-no-selection {
    margin-bottom: 0;
}

.blacklist-lists-header {
    justify-content: space-between;
}

.blacklist-list-item {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--app-border);
    border-radius: 15px;
    padding: 12px;
    background: rgba(255,255,255,.022);
    cursor: grab;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.blacklist-list-item:hover {
    border-color: rgba(255,255,255,.14);
    background: rgba(255,255,255,.045);
}

.blacklist-list-item.is-selected {
    border-color: rgba(124,108,255,.32);
    background: linear-gradient(145deg, rgba(124,108,255,.12), rgba(124,108,255,.035));
    box-shadow: inset 3px 0 0 var(--app-primary);
}

.blacklist-list-item.dragging {
    cursor: grabbing;
    opacity: .4;
}

.blacklist-order-button {
    width: 44px;
    height: 44px;
    color: var(--app-dim);
    font-size: .62rem;
}

.blacklist-create-form {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--app-border);
}

.blacklist-inline-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.blacklist-selected-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.blacklist-selected-title {
    overflow: hidden;
    margin: 0;
    color: white;
    font-size: 1.2rem;
    line-height: 1.25;
    letter-spacing: -.035em;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.blacklist-role-pill {
    min-height: 26px;
    padding-inline: 9px;
    font-size: .6rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.blacklist-tabs-card {
    overflow: hidden;
}

.blacklist-tablist {
    display: flex;
    overflow-x: auto;
    padding: 0 14px;
    border-bottom: 1px solid var(--app-border);
    background: rgba(7,9,16,.42);
    scrollbar-width: thin;
}

.blacklist-tab {
    position: relative;
    min-height: 54px;
    flex: 0 0 auto;
    border: 0;
    padding: 0 17px;
    color: var(--app-muted);
    background: transparent;
    font-size: .76rem;
    font-weight: 780;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.blacklist-tab::after {
    content: "";
    position: absolute;
    right: 15px;
    bottom: 0;
    left: 15px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(90deg, var(--app-primary), var(--app-cyan));
    opacity: 0;
    transform: scaleX(.65);
    transition: opacity .18s ease, transform .18s ease;
}

.blacklist-tab:hover,
.blacklist-tab.is-active {
    color: white;
    background: rgba(255,255,255,.025);
}

.blacklist-tab.is-active::after {
    opacity: 1;
    transform: scaleX(1);
}

.blacklist-tab-panel {
    display: grid;
    gap: 22px;
    padding: clamp(18px, 2.5vw, 28px);
}

.blacklist-tab-panel.hidden {
    display: none;
}

.blacklist-subcard {
    border: 1px solid var(--app-border);
    border-radius: 18px;
    padding: 20px;
    background: rgba(7,9,16,.42);
}

.blacklist-subcard__header {
    margin-bottom: 17px;
}

.blacklist-subcard__header h3,
.blacklist-no-selection h2 {
    margin: 0;
    color: white;
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -.025em;
    font-weight: 800;
}

.blacklist-subcard__header p,
.blacklist-no-selection p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: .72rem;
    line-height: 1.6;
}

.blacklist-entry-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 12px;
}

.blacklist-entry-submit {
    min-width: 92px;
}

.blacklist-access-note {
    justify-content: center;
    margin: 0;
    color: var(--app-muted);
    font-size: .74rem;
    text-align: center;
}

.blacklist-table-wrap {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: 17px;
    background: rgba(255,255,255,.015);
}

.blacklist-entries {
    width: 100%;
    border-collapse: collapse;
    color: var(--app-muted);
    font-size: .72rem;
    text-align: left;
}

.blacklist-entries thead {
    background: rgba(7,9,16,.38);
}

.blacklist-entries th {
    color: var(--app-dim);
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.blacklist-entries tbody tr {
    border-top: 1px solid rgba(255,255,255,.055);
    transition: background .18s ease;
}

.blacklist-entries tbody tr:hover {
    background: rgba(255,255,255,.025);
}

.blacklist-delete-entry {
    width: 44px;
    height: 44px;
    color: var(--app-dim);
}

.blacklist-delete-entry:hover {
    color: #fda4af;
    border-color: rgba(251,113,133,.2);
    background: rgba(251,113,133,.08);
}

.blacklist-member-card {
    font-size: .72rem;
}

.blacklist-empty-state {
    min-height: 220px;
}

.blacklist-empty-state--compact {
    min-height: 118px;
    padding: 22px;
}

.blacklist-no-selection > .app-empty-state {
    min-height: 360px;
}

@media (max-width: 1180px) {
    .blacklist-entry-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blacklist-entry-submit {
        width: 100%;
    }
}

@media (max-width: 980px) {
    .blacklist-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .blacklist-sidebar {
        position: static;
    }

    .blacklist-invitations {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 700px) {
    .blacklist-selected-header {
        align-items: stretch;
        flex-direction: column;
    }

    .blacklist-selected-header > div:last-child .app-btn {
        width: 100%;
    }

    .blacklist-entry-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .blacklist-inline-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .blacklist-inline-form .app-btn {
        width: 100%;
    }

    .blacklist-tablist {
        padding-inline: 6px;
    }

    .blacklist-tab {
        padding-inline: 13px;
    }

    .blacklist-subcard {
        padding: 16px;
    }
}

@media (max-width: 639px) {
    .blacklist-entries,
    .blacklist-entries tbody,
    .blacklist-entries tr,
    .blacklist-entries td {
        display: block;
        width: 100%;
    }

    .blacklist-entries thead {
        display: none;
    }

    .blacklist-entries tbody {
        display: grid;
        gap: 10px;
        padding: 10px;
    }

    .blacklist-entries tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px 16px;
        border: 1px solid var(--app-border);
        border-radius: 15px;
        padding: 14px;
        background: rgba(255,255,255,.018);
    }

    .blacklist-entries tbody td {
        padding: 0;
    }

    .blacklist-entries tbody td.hidden {
        display: none;
    }

    .blacklist-entries tbody td:first-child {
        min-width: 0;
    }

    .blacklist-entries tbody td:nth-child(2) {
        text-align: right;
    }

    .blacklist-entries tbody td:last-child {
        grid-column: 1 / -1;
        padding-top: 10px;
        border-top: 1px solid var(--app-border);
        text-align: right;
    }
}

/* Reply template studio */
.reply-page {
    min-height: 100dvh;
}

.reply-main {
    width: min(1320px, calc(100% - 32px));
}

.reply-hero {
    align-items: center;
}

.reply-hero h1 {
    max-width: 760px;
}

.reply-summary {
    display: flex;
    min-width: 184px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    border: 1px solid rgba(124, 108, 255, .2);
    border-radius: 20px;
    padding: 15px 18px;
    background: linear-gradient(145deg, rgba(124, 108, 255, .1), rgba(64, 217, 255, .035));
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}

.reply-summary__value {
    color: white;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -.06em;
    font-weight: 850;
}

.reply-summary__label {
    color: var(--app-muted);
    font-size: .67rem;
    line-height: 1.35;
    font-weight: 700;
}

.reply-workspace {
    display: grid;
    grid-template-columns: minmax(330px, 405px) minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.reply-composer {
    position: sticky;
    top: 24px;
    padding: 25px;
}

.reply-composer__header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 25px;
}

.reply-composer__icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(124, 108, 255, .22);
    border-radius: 15px;
    color: #c2bcff;
    background: linear-gradient(145deg, rgba(124, 108, 255, .16), rgba(124, 108, 255, .055));
    box-shadow: inset 0 1px rgba(255,255,255,.06);
}

.reply-composer__icon svg {
    width: 21px;
    height: 21px;
}

.reply-composer__eyebrow,
.reply-library__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: #9d94ff;
    font-size: .59rem;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.reply-composer h2,
.reply-library h2 {
    margin: 0;
    color: white;
    font-size: 1.12rem;
    line-height: 1.25;
    letter-spacing: -.035em;
    font-weight: 850;
}

.reply-composer__header p,
.reply-library__header p {
    margin: 6px 0 0;
    color: var(--app-muted);
    font-size: .72rem;
    line-height: 1.55;
}

.reply-form {
    gap: 18px;
}

.reply-form__textarea {
    min-height: 168px;
    line-height: 1.6;
}

.reply-preview {
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 17px;
    padding: 14px;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.025) 1px, transparent 0) 0 0 / 18px 18px,
        rgba(7, 9, 16, .6);
}

.reply-preview__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
    color: var(--app-dim);
    font-size: .65rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.reply-preview__status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #6ee7b7;
}

.reply-preview__status::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 10px currentColor;
}

.reply-preview__message {
    display: flex;
    align-items: flex-end;
    gap: 9px;
}

.reply-preview__avatar {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(124,108,255,.18);
    border-radius: 10px;
    color: #c7c2ff;
    background: rgba(124,108,255,.1);
    font-size: .58rem;
    font-weight: 850;
}

.reply-preview__name {
    display: block;
    margin: 0 0 5px 4px;
    color: var(--app-dim);
    font-size: .59rem;
    font-weight: 750;
}

.reply-preview__bubble {
    display: inline-block;
    max-width: 285px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px 16px 16px 5px;
    padding: 10px 12px;
    color: #e8eaf3;
    background: rgba(25, 29, 47, .94);
    box-shadow: 0 8px 24px rgba(0,0,0,.16);
    font-size: .7rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.reply-preview__bubble.is-placeholder {
    color: var(--app-dim);
}

.reply-form__actions {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
}

.reply-form__submit {
    width: 100%;
}

.reply-library {
    min-width: 0;
    padding: 25px;
}

.reply-library__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 22px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--app-border);
}

.reply-search {
    display: flex;
    width: min(310px, 44%);
    min-height: 44px;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--app-border);
    border-radius: 13px;
    padding: 0 10px 0 13px;
    background: rgba(7,9,16,.66);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.reply-search:focus-within {
    border-color: rgba(124,108,255,.55);
    box-shadow: 0 0 0 4px rgba(124,108,255,.1);
}

.reply-search > svg {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--app-dim);
}

.reply-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: white;
    background: transparent;
    font-size: .72rem;
}

.reply-search input::placeholder {
    color: var(--app-dim);
}

.reply-search kbd {
    flex: 0 0 auto;
    border: 1px solid var(--app-border);
    border-radius: 7px;
    padding: 3px 6px;
    color: var(--app-dim);
    background: rgba(255,255,255,.035);
    font-family: inherit;
    font-size: .56rem;
}

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

.reply-card {
    --reply-accent: #8b7fff;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 218px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 17px;
    background: linear-gradient(145deg, rgba(20,24,40,.84), rgba(11,14,24,.92));
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.reply-card:hover {
    border-color: color-mix(in srgb, var(--reply-accent) 32%, transparent);
    box-shadow: 0 18px 42px rgba(0,0,0,.2);
    transform: translateY(-2px);
}

.reply-card:focus-within {
    border-color: color-mix(in srgb, var(--reply-accent) 38%, transparent);
    box-shadow: 0 16px 38px rgba(0,0,0,.18);
    transform: none;
}

.reply-card--accent-1 { --reply-accent: #40d9ff; }
.reply-card--accent-2 { --reply-accent: #35d49a; }
.reply-card--accent-3 { --reply-accent: #f5ba56; }

.reply-card__accent {
    position: absolute;
    inset: 0 0 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--reply-accent), transparent 72%);
}

.reply-card__top {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.reply-card__avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--reply-accent) 24%, transparent);
    border-radius: 12px;
    color: var(--reply-accent);
    background: color-mix(in srgb, var(--reply-accent) 9%, transparent);
    font-size: .73rem;
    font-weight: 850;
}

.reply-card__heading {
    min-width: 0;
    flex: 1;
}

.reply-card__index {
    display: block;
    margin-bottom: 2px;
    color: var(--app-dim);
    font-size: .53rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.reply-card__name-input {
    width: 100%;
    height: 31px;
    box-sizing: border-box;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 8px;
    outline: 0;
    padding: 5px 7px;
    color: white;
    background: rgba(7,9,16,.28);
    font-family: inherit;
    font-size: .83rem;
    line-height: 1.3;
    font-weight: 750;
    text-overflow: ellipsis;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.reply-card__name-input:hover {
    border-color: rgba(255,255,255,.12);
    background: rgba(7,9,16,.42);
}

.reply-card__name-input:focus-visible {
    border-color: color-mix(in srgb, var(--reply-accent) 48%, transparent);
    background: rgba(7,9,16,.68);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--reply-accent) 10%, transparent);
}

.reply-card__copy {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    color: var(--app-muted);
    background: rgba(255,255,255,.03);
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.reply-card__copy:hover {
    color: white;
    border-color: rgba(124,108,255,.25);
    background: rgba(124,108,255,.08);
    transform: translateY(-1px);
}

.reply-card__copy svg {
    width: 16px;
    height: 16px;
}

.reply-check-icon,
.reply-card__copy.is-copied .reply-copy-icon {
    display: none;
}

.reply-card__copy.is-copied {
    color: #6ee7b7;
    border-color: rgba(53,212,154,.24);
    background: rgba(53,212,154,.08);
}

.reply-card__copy.is-copied .reply-check-icon {
    display: block;
}

.reply-card__content-input {
    width: 100%;
    min-height: 116px;
    max-height: 260px;
    box-sizing: border-box;
    margin: 15px 0;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 12px;
    outline: 0;
    padding: 11px 12px;
    resize: none;
    color: #c3c9d8;
    background: rgba(7,9,16,.42);
    font-family: inherit;
    font-size: .72rem;
    line-height: 1.68;
    white-space: pre-wrap;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.reply-card__content-input:hover {
    border-color: rgba(255,255,255,.11);
    background: rgba(7,9,16,.52);
}

.reply-card__content-input:focus-visible {
    border-color: color-mix(in srgb, var(--reply-accent) 44%, transparent);
    background: rgba(7,9,16,.7);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--reply-accent) 9%, transparent);
}

.reply-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.055);
    color: var(--app-dim);
    font-size: .58rem;
}

.reply-card__meta {
    display: flex;
    min-width: 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 11px;
}

.reply-card__save-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--app-dim);
    font-weight: 750;
}

.reply-card__save-state::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.reply-card__save-state.is-dirty {
    color: #b8a778;
}

.reply-card__save-state.is-saving {
    color: #a7a0d8;
}

.reply-card__save-state.is-saved {
    color: #75ad99;
}

.reply-card__save-state.is-error {
    color: #c58a94;
}

.reply-card__delete {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0 9px;
    color: #8e97aa;
    background: transparent;
    font-size: .62rem;
    font-weight: 750;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.reply-card__delete:hover {
    color: #fda4af;
    border-color: rgba(251,113,133,.18);
    background: rgba(251,113,133,.07);
}

.reply-card__delete svg {
    width: 14px;
    height: 14px;
}

.reply-no-results,
.reply-empty-state {
    display: grid;
    min-height: 430px;
    place-items: center;
    align-content: center;
    gap: 8px;
    border: 1px dashed rgba(255,255,255,.1);
    border-radius: 19px;
    padding: 34px;
    text-align: center;
    background: rgba(255,255,255,.015);
}

.reply-no-results[hidden] {
    display: none;
}

.reply-no-results > span,
.reply-empty-state__icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 7px;
    border: 1px solid rgba(124,108,255,.17);
    border-radius: 20px;
    color: #9990ef;
    background: rgba(124,108,255,.07);
}

.reply-no-results svg,
.reply-empty-state__icon svg {
    width: 29px;
    height: 29px;
}

.reply-no-results h3,
.reply-empty-state h3 {
    margin: 0;
    color: white;
    font-size: 1rem;
    font-weight: 800;
}

.reply-no-results p,
.reply-empty-state p {
    max-width: 340px;
    margin: 0;
    color: var(--app-muted);
    font-size: .72rem;
    line-height: 1.6;
}

.reply-empty-state__badge {
    margin-bottom: 1px;
    border: 1px solid rgba(124,108,255,.17);
    border-radius: 999px;
    padding: 4px 9px;
    color: #b8b2f4;
    background: rgba(124,108,255,.06);
    font-size: .56rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Quick replies inside a conversation */
.quick-replies {
    margin-bottom: 12px;
}

.quick-replies__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 7px;
    padding: 0 2px;
}

.quick-replies__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--app-dim);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.quick-replies__label::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #8b7fff;
    box-shadow: 0 0 9px rgba(139,127,255,.8);
}

.quick-replies__manage {
    color: #8178c7;
    font-size: 9px;
    font-weight: 750;
    text-decoration: none;
    transition: color .18s ease;
}

.quick-replies__manage:hover {
    color: #b8b2ff;
}

.quick-replies__track {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding: 2px 2px 5px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}

.quick-reply-chip {
    display: inline-flex;
    flex: 0 0 auto;
    min-height: 34px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(255,255,255,.075);
    border-radius: 11px;
    padding: 0 11px 0 8px;
    color: #bac1d0;
    background: rgba(24,28,45,.82);
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.quick-reply-chip:hover {
    color: #dedbff;
    border-color: rgba(124,108,255,.27);
    background: rgba(124,108,255,.09);
    transform: translateY(-1px);
}

.quick-reply-chip__icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border-radius: 7px;
    color: #a79fff;
    background: rgba(124,108,255,.11);
}

.quick-reply-chip__icon svg {
    width: 12px;
    height: 12px;
}

@media (max-width: 980px) {
    .reply-workspace {
        grid-template-columns: 1fr;
    }

    .reply-composer {
        position: static;
    }
}

@media (max-width: 700px) {
    .reply-summary {
        width: 100%;
        min-width: 0;
        justify-content: flex-start;
    }

    .reply-composer,
    .reply-library {
        padding: 19px 16px;
    }

    .reply-library__header {
        align-items: stretch;
        flex-direction: column;
    }

    .reply-search {
        width: 100%;
    }

    .reply-card-grid {
        grid-template-columns: 1fr;
    }

    .reply-card {
        min-height: 200px;
    }

    .reply-form__actions {
        grid-template-columns: 1fr;
    }

    .reply-no-results,
    .reply-empty-state {
        min-height: 330px;
    }
}

/* Offer publishing wizard */
.posting-modal {
    --posting-accent: #8178d4;
    --posting-accent-strong: #6961b8;
    --posting-accent-text: #b8b3df;
    --posting-accent-border: rgba(139,147,255,.18);
    --posting-accent-soft: rgba(124,108,255,.055);
    z-index: 90 !important;
    padding: 24px;
    background: rgba(2, 4, 10, .8);
    backdrop-filter: blur(18px) saturate(1.15);
}

.posting-modal :where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline-color: rgba(139,147,255,.34) !important;
}

#kycModal {
    z-index: 110 !important;
}

.posting-dialog {
    position: relative;
    display: flex;
    width: min(1040px, 96vw);
    max-height: min(92dvh, 920px);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.095);
    border-radius: 26px;
    background:
        radial-gradient(circle at 8% 0%, rgba(124,108,255,.045), transparent 28rem),
        linear-gradient(160deg, rgba(18,21,35,.99), rgba(10,13,23,.99));
    box-shadow: 0 35px 110px rgba(0,0,0,.58), inset 0 1px rgba(255,255,255,.055);
}

.posting-modal:not(.hidden) .posting-dialog {
    animation: posting-dialog-in .28s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes posting-dialog-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.posting-dialog::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: 2px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(139,147,255,.54) 28%, rgba(124,108,255,.38) 68%, transparent);
}

.posting-header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 17px;
}

.posting-header__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
}

.posting-header__icon {
    display: grid;
    width: 45px;
    height: 45px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--posting-accent-border);
    border-radius: 15px;
    color: var(--posting-accent-text);
    background: linear-gradient(145deg, rgba(124,108,255,.08), rgba(124,108,255,.035));
    box-shadow: inset 0 1px rgba(255,255,255,.07), 0 12px 28px rgba(0,0,0,.18);
}

.posting-header__icon svg {
    width: 21px;
    height: 21px;
}

.posting-header__eyebrow {
    display: block;
    margin-bottom: 4px;
    color: #a6a1cf;
    font-size: .55rem;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.posting-header h2 {
    margin: 0;
    color: white;
    font-size: 1.02rem;
    line-height: 1.2;
    letter-spacing: -.035em;
    font-weight: 850;
}

.posting-header p {
    margin: 5px 0 0;
    color: var(--app-muted);
    font-size: .7rem;
    line-height: 1.5;
}

.posting-close {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    color: var(--app-muted);
    background: rgba(255,255,255,.025);
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.posting-close:hover {
    color: white;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    transform: rotate(3deg);
}

.posting-close svg {
    width: 17px;
    height: 17px;
}

.posting-steps {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,.065);
}

.posting-step {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 58px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 15px;
    padding: 9px 12px;
    color: var(--app-dim);
    background: rgba(255,255,255,.018);
    text-align: left;
    transition: color .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}

.posting-step:hover {
    color: #c7cddd;
    border-color: rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
}

.posting-step.is-active {
    color: white;
    border-color: var(--posting-accent-border);
    background: linear-gradient(135deg, rgba(124,108,255,.07), rgba(124,108,255,.035));
    box-shadow: inset 0 1px rgba(255,255,255,.045);
}

.posting-step.is-complete {
    color: #93c9b3;
    border-color: rgba(53,170,126,.14);
    background: rgba(53,170,126,.035);
}

.posting-step__number {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(255,255,255,.085);
    border-radius: 10px;
    color: inherit;
    background: rgba(7,9,16,.46);
    font-size: .64rem;
    font-weight: 850;
}

.posting-step.is-active .posting-step__number {
    border-color: rgba(139,147,255,.2);
    color: var(--posting-accent-text);
    background: rgba(124,108,255,.075);
    box-shadow: 0 0 16px rgba(124,108,255,.045);
}

.posting-step.is-complete .posting-step__number {
    color: #8dc4ad;
    border-color: rgba(53,170,126,.18);
    background: rgba(53,170,126,.055);
}

.posting-step__copy {
    min-width: 0;
}

.posting-step__copy strong,
.posting-step__copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posting-step__copy strong {
    font-size: .68rem;
    font-weight: 800;
}

.posting-step__copy small {
    margin-top: 3px;
    color: #8993a8;
    font-size: .65rem;
    font-weight: 600;
}

.posting-body {
    min-height: 0;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 20px 24px 22px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.1) transparent;
}

.posting-modal.is-publishing .posting-steps,
.posting-modal.is-publishing .posting-body,
.posting-modal.is-importing .posting-steps,
.posting-modal.is-importing .posting-body {
    pointer-events: none;
}

.posting-modal.is-publishing .posting-body,
.posting-modal.is-importing .posting-body {
    opacity: .72;
    transition: opacity .18s ease;
}

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

.posting-column {
    display: contents;
}

[data-posting-step-section] {
    display: none;
}

.posting-modal[data-step="1"] [data-posting-step-section="1"],
.posting-modal[data-step="2"] [data-posting-step-section="2"],
.posting-modal[data-step="3"] [data-posting-step-section="3"] {
    display: block;
    animation: posting-step-in .2s ease both;
}

@keyframes posting-step-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.posting-card {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 18px;
    padding: 17px;
    background: linear-gradient(150deg, rgba(18,22,37,.84), rgba(10,13,23,.9));
    box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.posting-card--wide {
    grid-column: 1 / -1;
}

.posting-card--import {
    border-color: rgba(139,147,255,.1);
    background: linear-gradient(145deg, rgba(124,108,255,.035), rgba(13,16,28,.9));
}

.posting-card--category {
    border-color: rgba(139,147,255,.1);
}

.posting-card--summary {
    border-color: rgba(139,147,255,.11);
    background: linear-gradient(145deg, rgba(124,108,255,.04), rgba(13,16,28,.9));
}

.posting-card__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.posting-card__step {
    display: block;
    margin-bottom: 4px;
    color: #b4accf;
    font-size: .57rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.posting-card h3 {
    margin: 0;
    color: white;
    font-size: .82rem;
    line-height: 1.3;
    font-weight: 800;
}

.posting-card__heading p {
    margin: 4px 0 0;
    color: var(--app-muted);
    font-size: .7rem;
    line-height: 1.5;
}

.posting-card__badge,
.posting-status-dot {
    display: inline-flex;
    min-height: 25px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid rgba(124,108,255,.16);
    border-radius: 999px;
    padding: 0 8px;
    color: #aba6d5;
    background: rgba(124,108,255,.05);
    font-size: .6rem;
    font-weight: 800;
    white-space: nowrap;
}

.posting-status-dot.is-ready,
.posting-card__badge.is-ready {
    color: #91c9b2;
    border-color: rgba(53,170,126,.17);
    background: rgba(53,170,126,.05);
}

.posting-card__action {
    min-height: 31px;
    flex: 0 0 auto;
    border: 1px solid rgba(139,147,255,.14);
    border-radius: 10px;
    padding: 0 10px;
    color: #aaa5d5;
    background: rgba(124,108,255,.04);
    font-size: .68rem;
    font-weight: 750;
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.posting-card__action:hover {
    color: white;
    border-color: rgba(139,147,255,.24);
    background: rgba(124,108,255,.075);
}

.posting-import-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
}

.posting-category-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    margin-bottom: 10px;
}

#postingSuggestions button[aria-pressed="true"] {
    border-color: rgba(139,147,255,.28) !important;
    background: rgba(124,108,255,.07) !important;
    box-shadow: inset 0 0 0 1px rgba(124,108,255,.045);
}

#postingSuggestions button:hover {
    border-color: rgba(139,147,255,.2) !important;
    background: rgba(124,108,255,.035) !important;
}

#postingSuggestions button div > span:last-child {
    color: #9f9ac9 !important;
}

.posting-field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.posting-field-heading label,
.posting-label {
    display: block;
    margin-bottom: 7px;
    color: #aeb6c8;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.posting-field-heading label {
    margin-bottom: 0;
}

.posting-field-heading label > span,
.posting-label > span:not(.posting-optional) {
    color: #fb7185;
}

.posting-field-heading > span {
    color: #8993a8;
    font-size: .62rem;
    font-weight: 700;
}

.posting-field-heading > span strong {
    color: #d7d3ff;
}

.posting-optional {
    margin-left: 4px;
    color: #8993a8;
    font-size: .58rem;
    font-weight: 700;
    text-transform: none;
}

.posting-field-hint {
    margin: 7px 0 0;
    color: #8993a8;
    font-size: .68rem;
    line-height: 1.5;
}

.posting-card input:not([type="checkbox"]):not([type="radio"]),
.posting-card textarea,
.posting-card select {
    border-color: rgba(255,255,255,.075) !important;
    background: rgba(6,8,15,.62) !important;
}

.posting-card input:not([type="checkbox"]):not([type="radio"]):focus,
.posting-card textarea:focus,
.posting-card select:focus {
    border-color: rgba(139,147,255,.36) !important;
    box-shadow: 0 0 0 4px rgba(124,108,255,.05) !important;
}

.posting-card [aria-invalid="true"] {
    border-color: rgba(251,113,133,.7) !important;
    box-shadow: 0 0 0 4px rgba(251,113,133,.08) !important;
}

.posting-selected-category {
    min-height: 58px;
    margin: 0;
    border: 1px dashed rgba(139,147,255,.12);
    border-radius: 13px;
    padding: 12px;
    color: var(--app-muted);
    background: rgba(124,108,255,.025);
    font-size: .7rem;
    line-height: 1.55;
}

#postingDropZone {
    border-color: rgba(255,255,255,.1) !important;
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,.027) 1px, transparent 0) 0 0 / 18px 18px,
        rgba(6,8,15,.48) !important;
}

#postingDropZone:hover,
#postingDropZone:focus-visible {
    border-color: rgba(139,147,255,.24) !important;
    background-color: rgba(124,108,255,.025) !important;
}

.posting-drop-hint {
    display: flex;
    width: 100%;
    min-height: 104px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 14px;
    color: inherit;
    background: transparent;
    text-align: center;
    transition: color .18s ease, background .18s ease, transform .18s ease;
}

.posting-drop-hint:hover,
.posting-drop-hint:focus-visible {
    color: white;
    background: rgba(124,108,255,.035);
    outline: 2px solid rgba(139,147,255,.14);
    outline-offset: 2px;
}

.posting-drop-hint__icon {
    display: block;
    margin-bottom: 8px;
    font-size: 1.45rem;
}

.posting-drop-hint--compact {
    order: 2;
    width: 96px;
    min-height: 96px;
    flex: 0 0 96px;
    border: 1px dashed rgba(139,147,255,.16);
    padding: 8px;
    background: rgba(124,108,255,.02);
}

.posting-drop-hint--compact .posting-drop-hint__icon {
    margin: 0;
}

.posting-drop-hint--compact p {
    display: none;
}

.posting-contact-field + .posting-contact-field {
    margin-top: 12px;
}

.posting-img-item {
    position: relative;
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    background: #080a12;
}

.posting-img-item > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.posting-img-order {
    position: absolute;
    top: 6px;
    left: 6px;
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 7px;
    color: white;
    background: rgba(5,7,12,.78);
    font-size: .53rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
    z-index: 3;
}

.posting-img-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(251,113,133,.28);
    border-radius: 8px;
    color: #fecdd3;
    opacity: 0;
    background: rgba(127,29,29,.84);
    transform: translateY(-2px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 4;
}

.posting-img-item:hover .posting-img-remove,
.posting-img-remove:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

.posting-img-controls {
    position: absolute;
    right: 6px;
    bottom: 6px;
    left: 6px;
    z-index: 4;
    display: flex;
    justify-content: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .18s ease, transform .18s ease;
}

.posting-img-item:hover .posting-img-controls,
.posting-img-controls:focus-within {
    opacity: 1;
    transform: translateY(0);
}

.posting-img-move {
    display: grid;
    width: 27px;
    height: 24px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 7px;
    color: white;
    background: rgba(5,7,12,.82);
    font-size: .7rem;
    backdrop-filter: blur(8px);
}

.posting-img-move:hover,
.posting-img-move:focus-visible {
    border-color: rgba(139,147,255,.28);
    background: rgba(73,68,126,.88);
    outline: none;
}

.posting-img-item.posting-drag-active,
#postingDropZone.posting-drag-active {
    border-color: rgba(139,147,255,.3) !important;
    box-shadow: inset 0 0 0 1px rgba(124,108,255,.055);
}

.posting-spinner {
    border-color: rgba(184,179,223,.58) !important;
    border-top-color: transparent !important;
}

.posting-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.posting-summary-grid > div {
    min-width: 0;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
    padding: 10px;
    background: rgba(6,8,15,.42);
}

.posting-summary-grid span,
.posting-summary-grid strong {
    display: block;
    overflow-wrap: anywhere;
    white-space: normal;
}

.posting-summary-grid span {
    margin-bottom: 5px;
    color: #8993a8;
    font-size: .58rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.posting-summary-grid strong {
    color: #e7e9f2;
    font-size: .7rem;
    font-weight: 750;
}

.posting-result {
    grid-column: 1 / -1;
    border: 1px solid;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: .72rem;
    line-height: 1.55;
}

.posting-result--success {
    border-color: rgba(53,170,126,.2);
    color: #9ccfba;
    background: linear-gradient(135deg, rgba(53,170,126,.065), rgba(16,140,102,.03));
}

.posting-result--error {
    border-color: rgba(217,102,120,.22);
    color: #e6b0b9;
    background: linear-gradient(135deg, rgba(217,102,120,.07), rgba(160,35,80,.03));
}

.posting-result a {
    color: inherit;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.posting-footer {
    display: flex;
    min-height: 76px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 24px;
    border-top: 1px solid rgba(255,255,255,.07);
    background: rgba(8,10,18,.9);
    backdrop-filter: blur(18px);
}

.posting-footer__status {
    min-width: 0;
}

.posting-footer__status > span {
    display: block;
    margin-bottom: 3px;
    color: #9f9ac9;
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.posting-footer__status p {
    margin: 0;
    overflow: hidden;
    color: var(--app-muted);
    font-size: .67rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posting-footer__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.posting-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 14px;
    font-size: .7rem;
    font-weight: 780;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.posting-btn:hover:not(:disabled) {
    transform: translateY(-1px);
}

.posting-btn svg {
    width: 15px;
    height: 15px;
}

.posting-btn--ghost {
    color: var(--app-muted);
    background: transparent;
}

.posting-btn--ghost:hover {
    color: white;
    background: rgba(255,255,255,.04);
}

.posting-btn--secondary {
    color: #ccd1dd;
    border-color: var(--app-border);
    background: rgba(255,255,255,.035);
}

.posting-btn--primary,
.posting-btn--publish {
    min-width: 112px;
    color: white;
    border-color: rgba(168,161,224,.17);
    background: linear-gradient(135deg, #6961b8, #565099);
    box-shadow: 0 9px 22px rgba(34,31,72,.34);
}

.posting-btn--primary:hover,
.posting-btn--publish:hover {
    background: linear-gradient(135deg, #746bc5, #5f58a6);
    box-shadow: 0 11px 25px rgba(38,34,82,.4);
}

#posting_klein_btn {
    color: var(--posting-accent-text) !important;
    border-color: rgba(139,147,255,.14) !important;
    background: rgba(124,108,255,.04) !important;
}

#posting_klein_btn:hover {
    color: #e9e7f4 !important;
    border-color: rgba(139,147,255,.22) !important;
    background: rgba(124,108,255,.07) !important;
}

.posting-modal input[type="checkbox"]:not(.sr-only),
.posting-modal input[type="radio"] {
    accent-color: var(--posting-accent-strong);
}

#postingShippingEnabled + div {
    background: #292d3d !important;
}

#postingShippingEnabled:checked + div {
    background: #655eae !important;
}

#postingCityDropdown button:hover {
    background: rgba(124,108,255,.04) !important;
}

.posting-shipping-message {
    margin: 0;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 12px;
    padding: 11px 12px;
    color: var(--app-muted);
    background: rgba(6,8,15,.38);
    font-size: .7rem;
}

.posting-shipping-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 13px;
    padding: 11px 12px;
    background: rgba(6,8,15,.36);
}

.posting-shipping-toolbar__copy strong,
.posting-shipping-toolbar__copy span {
    display: block;
}

.posting-shipping-toolbar__copy strong {
    color: #e4e6ef;
    font-size: .7rem;
    font-weight: 800;
}

.posting-shipping-toolbar__copy span {
    margin-top: 3px;
    color: #8993a8;
    font-size: .64rem;
    line-height: 1.45;
}

.posting-shipping-toolbar__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.posting-shipping-selection,
.posting-shipping-clear {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(139,147,255,.12);
    border-radius: 9px;
    padding: 0 9px;
    color: #a8a3d1;
    background: rgba(124,108,255,.035);
    font-size: .61rem;
    font-weight: 800;
    white-space: nowrap;
}

.posting-shipping-clear {
    color: #aeb5c6;
    border-color: rgba(255,255,255,.075);
    background: rgba(255,255,255,.025);
    transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.posting-shipping-clear:hover:not(:disabled) {
    color: white;
    border-color: rgba(255,255,255,.13);
    background: rgba(255,255,255,.05);
}

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

.posting-shipping-group {
    min-width: 0;
    margin: 0;
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 11px;
    background: linear-gradient(145deg, rgba(16,19,32,.82), rgba(8,10,18,.72));
    transition: border-color .18s ease, background .18s ease;
}

.posting-shipping-group.has-selection {
    border-color: rgba(139,147,255,.17);
    background: linear-gradient(145deg, rgba(124,108,255,.045), rgba(8,10,18,.76));
}

.posting-shipping-group.is-empty {
    opacity: .58;
}

.posting-shipping-group__header {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    margin-bottom: 9px;
}

.posting-shipping-size {
    display: grid;
    min-width: 34px;
    height: 34px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(139,147,255,.15);
    border-radius: 10px;
    padding: 0 5px;
    color: #b4afd9;
    background: rgba(124,108,255,.045);
    font-size: .68rem;
    font-weight: 850;
}

.posting-shipping-group__copy {
    min-width: 0;
    flex: 1;
}

.posting-shipping-group__copy strong,
.posting-shipping-group__copy small {
    display: block;
}

.posting-shipping-group__copy strong {
    overflow: hidden;
    color: #dfe2ec;
    font-size: .67rem;
    font-weight: 780;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.posting-shipping-group__copy small {
    margin-top: 2px;
    color: #7f899e;
    font-size: .58rem;
    font-weight: 750;
}

.posting-shipping-group__options {
    display: grid;
    gap: 6px;
}

.posting-shipping-group__empty {
    min-height: 48px;
    display: grid;
    place-items: center;
    border: 1px dashed rgba(255,255,255,.065);
    border-radius: 10px;
    padding: 8px;
    color: #737c90;
    font-size: .62rem;
    text-align: center;
}

.posting-shipping-option {
    display: grid;
    min-width: 0;
    min-height: 50px;
    grid-template-columns: 18px minmax(0, 1fr);
    align-items: flex-start;
    gap: 9px;
    border: 1px solid rgba(255,255,255,.065);
    border-radius: 11px;
    padding: 9px;
    background: rgba(6,8,15,.42);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.posting-shipping-option:hover {
    border-color: rgba(139,147,255,.14);
    background: rgba(124,108,255,.025);
}

.posting-shipping-option:has(.shipping-option:checked) {
    border-color: rgba(139,147,255,.22);
    background: rgba(124,108,255,.055);
    box-shadow: inset 0 0 0 1px rgba(124,108,255,.025);
}

.posting-shipping-option:has(.shipping-option:focus-visible) {
    outline: 2px solid rgba(139,147,255,.24);
    outline-offset: 2px;
}

.posting-shipping-option:has(.shipping-option[aria-invalid="true"]) {
    border-color: rgba(217,102,120,.38);
}

.posting-shipping-option .shipping-option {
    width: 17px;
    height: 17px;
    margin: 2px 0 0;
}

.posting-shipping-option__copy {
    min-width: 0;
}

.posting-shipping-option__copy strong,
.posting-shipping-option__copy span,
.posting-shipping-option__copy small {
    display: block;
    overflow-wrap: anywhere;
}

.posting-shipping-option__copy strong {
    color: #e2e4ec;
    font-size: .67rem;
    line-height: 1.35;
    font-weight: 780;
}

.posting-shipping-option__copy span {
    margin-top: 2px;
    color: #a1a9bb;
    font-size: .61rem;
    line-height: 1.4;
}

.posting-shipping-option__copy small {
    margin-top: 3px;
    color: #747e92;
    font-size: .57rem;
    line-height: 1.4;
}

#postingParameters label:has(input[type="checkbox"]):hover {
    border-color: rgba(139,147,255,.16) !important;
}

.posting-btn:disabled {
    cursor: not-allowed;
    opacity: .62;
    transform: none;
}

.posting-modal.is-publishing .posting-btn:disabled,
.posting-modal.is-importing .posting-btn:disabled {
    cursor: wait;
}

@media (max-width: 767px) {
    .posting-modal {
        align-items: stretch;
        padding: 0;
    }

    .posting-dialog {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .posting-header {
        padding: calc(15px + env(safe-area-inset-top)) 14px 12px;
    }

    .posting-header__icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .posting-header p {
        display: none;
    }

    .posting-steps {
        gap: 5px;
        padding: 0 12px 12px;
    }

    .posting-step {
        min-height: 50px;
        gap: 7px;
        border-radius: 12px;
        padding: 7px;
    }

    .posting-step__number {
        width: 26px;
        height: 26px;
        border-radius: 8px;
    }

    .posting-step__copy strong {
        font-size: .64rem;
    }

    .posting-step__copy small {
        display: none;
    }

    .posting-body {
        padding: 13px 12px 16px;
    }

    .posting-layout {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .posting-card,
    .posting-card--wide,
    .posting-result {
        grid-column: 1;
    }

    .posting-card {
        border-radius: 15px;
        padding: 14px;
    }

    .posting-import-row {
        grid-template-columns: 1fr;
    }

    .posting-category-search {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .posting-import-row button {
        min-height: 40px;
    }

    .posting-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .posting-shipping-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .posting-shipping-toolbar__actions {
        justify-content: space-between;
    }

    .posting-shipping-grid {
        grid-template-columns: 1fr;
    }

    .posting-shipping-option {
        min-height: 52px;
    }

    .posting-footer {
        min-height: 72px;
        flex-direction: column;
        align-items: stretch;
        gap: 7px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    }

    .posting-footer__status {
        display: block;
    }

    .posting-footer__status > span {
        display: none;
    }

    .posting-footer__status p {
        display: -webkit-box;
        overflow: hidden;
        color: #b8bfd0;
        line-height: 1.35;
        white-space: normal;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .posting-footer__actions {
        width: 100%;
    }

    .posting-btn--ghost {
        display: none;
    }

    .posting-btn--secondary,
    .posting-btn--primary,
    .posting-btn--publish {
        min-height: 46px;
        flex: 1;
    }

    .posting-img-remove {
        opacity: 1;
        transform: none;
    }

    .posting-img-controls {
        opacity: 1;
        transform: none;
    }
}

/* Main OLX workspace */
body.panel-body {
    min-width: 0;
    min-height: 100dvh;
    color: var(--app-text);
    background: var(--app-bg);
}

.panel-mobile-header,
.panel-mobile-overlay {
    display: none;
}

.app-sidebar-layout {
    padding-left: 76px;
    transition: padding-left .36s cubic-bezier(.4, 0, .2, 1);
}

html.app-sidebar-bootstrapping .app-sidebar-layout,
html.app-sidebar-bootstrapping [data-app-sidebar],
html.app-sidebar-bootstrapping [data-app-sidebar] * {
    animation: none !important;
    transition: none !important;
}

.app-sidebar-layout.app-sidebar-pinned,
html.app-sidebar-pinned .app-sidebar-layout {
    padding-left: 232px;
}

.primary-sidebar {
    position: relative;
    z-index: 40 !important;
    display: flex;
    width: 76px !important;
    height: 100dvh;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 18px 12px !important;
    border-right: 1px solid var(--app-border) !important;
    border-right-color: var(--app-border) !important;
    background: linear-gradient(180deg, rgba(17, 20, 34, .98), rgba(10, 12, 21, .98)) !important;
    box-shadow: 15px 0 45px rgba(0,0,0,.12);
    overflow-x: hidden !important;
    overflow-y: hidden !important;
    transition: width .4s cubic-bezier(.4, 0, .2, 1), margin-right .4s cubic-bezier(.4, 0, .2, 1), box-shadow .25s ease !important;
}

.app-sidebar--fixed {
    position: fixed;
    inset: 0 auto 0 0;
}

.primary-sidebar.is-preview-open,
.primary-sidebar.is-pinned {
    width: 232px !important;
}

.app-sidebar--workspace.is-preview-open:not(.is-pinned) {
    margin-right: -156px;
    box-shadow: 24px 0 55px rgba(0, 0, 0, .34);
}

.app-sidebar--fixed.is-preview-open {
    box-shadow: 24px 0 55px rgba(0, 0, 0, .34);
}

.primary-sidebar .nav-label {
    display: block;
    max-width: 0;
    overflow: hidden;
    opacity: 0 !important;
    visibility: hidden;
    transform: translateX(-5px);
    transition: max-width .42s cubic-bezier(.4, 0, .2, 1), opacity .28s ease .08s, transform .36s ease, visibility .28s ease;
}

.primary-sidebar .panel-brand {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid var(--app-border);
    border-radius: 17px;
    padding: 8px 10px;
    background: rgba(255,255,255,.025);
    justify-content: center;
    gap: 0 !important;
}

.primary-sidebar .panel-brand-icon {
    display: grid;
    width: 38px !important;
    height: 38px !important;
    flex: 0 0 auto;
    place-items: center;
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px !important;
    background: linear-gradient(145deg, #8c7cff, #5b4bd6);
    box-shadow: 0 10px 30px rgba(105, 88, 237, .3), inset 0 1px rgba(255,255,255,.2);
}

.primary-sidebar .panel-brand-icon svg {
    width: 19px;
    height: 19px;
}

.sidebar-brand-copy {
    min-width: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.sidebar-brand-copy strong,
.sidebar-brand-copy small {
    display: block;
}

.sidebar-brand-copy strong {
    color: white;
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.sidebar-brand-copy small {
    margin-top: 3px;
    color: var(--app-dim);
    font-size: .55rem;
    font-weight: 650;
}

.sidebar-pin {
    position: absolute;
    right: 8px;
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--app-border);
    border-radius: 10px;
    color: var(--app-dim);
    opacity: 0;
    visibility: hidden;
    background: rgba(255,255,255,.035);
    transform: translateX(4px);
    transition: color .18s ease, border-color .18s ease, background .18s ease, opacity .2s ease, transform .25s ease, visibility .2s ease;
}

.sidebar-pin:hover,
.sidebar-pin:focus-visible,
.sidebar-pin[aria-pressed="true"] {
    color: #b8b2ff;
    border-color: rgba(124,108,255,.3);
    background: rgba(124,108,255,.1);
}

.sidebar-pin[aria-pressed="true"] svg {
    transform: rotate(-35deg);
}

.sidebar-pin svg {
    width: 15px;
    height: 15px;
    transition: transform .22s ease;
}

.sidebar-nav {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 2px 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.08) transparent;
}

.sidebar-section-label {
    display: block;
    width: 28px;
    height: 1px;
    flex: 0 0 auto;
    margin: 8px auto 5px;
    overflow: hidden;
    color: transparent;
    background: rgba(255,255,255,.075);
    font-size: 0;
    white-space: nowrap;
    transition: width .3s ease, height .3s ease, margin .3s ease, color .18s ease, background .18s ease;
}

.sidebar-section-label--account {
    margin-top: auto;
}

.primary-sidebar .panel-nav-item {
    --sidebar-item-accent: #9b8cff;
    position: relative;
    display: flex;
    width: 100% !important;
    min-height: 46px !important;
    flex: 0 0 auto;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 14px !important;
    color: var(--app-muted) !important;
    background: transparent !important;
    justify-content: center !important;
    gap: 0 !important;
    padding-inline: 0 !important;
    font-size: .7rem;
    font-weight: 720;
    text-align: left;
    text-decoration: none;
    transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.primary-sidebar .panel-nav-item > :first-child {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
}

.primary-sidebar .panel-nav-item svg {
    width: 18px !important;
    height: 18px !important;
    color: currentColor !important;
}

.sidebar-item--fuchsia { --sidebar-item-accent: #e879f9 !important; }
.sidebar-item--emerald { --sidebar-item-accent: #6ee7b7 !important; }
.sidebar-item--amber { --sidebar-item-accent: #fcd34d !important; }
.sidebar-item--cyan { --sidebar-item-accent: #67e8f9 !important; }
.sidebar-item--primary { --sidebar-item-accent: #a79fff !important; }
.sidebar-item--danger { --sidebar-item-accent: #fda4af !important; }

@media (min-width: 768px) {
    html.app-sidebar-pinned .primary-sidebar {
        width: 232px !important;
    }

    html.app-sidebar-pinned .primary-sidebar .nav-label,
    .primary-sidebar.is-preview-open .nav-label,
    .primary-sidebar.is-pinned .nav-label {
        max-width: 142px;
        opacity: 1 !important;
        visibility: visible;
        transform: translateX(0);
    }

    html.app-sidebar-pinned .primary-sidebar .sidebar-pin,
    .primary-sidebar.is-preview-open .sidebar-pin,
    .primary-sidebar.is-pinned .sidebar-pin {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    html.app-sidebar-pinned .primary-sidebar .sidebar-pin svg,
    .primary-sidebar.is-pinned .sidebar-pin svg {
        transform: rotate(-35deg);
    }

    html.app-sidebar-pinned .primary-sidebar .panel-brand,
    .primary-sidebar.is-preview-open .panel-brand,
    .primary-sidebar.is-pinned .panel-brand {
        justify-content: flex-start;
        gap: 12px !important;
        padding-right: 44px;
    }

    html.app-sidebar-pinned .primary-sidebar .panel-nav-item,
    .primary-sidebar.is-preview-open .panel-nav-item,
    .primary-sidebar.is-pinned .panel-nav-item {
        justify-content: flex-start !important;
        gap: 13px !important;
        padding-inline: 14px !important;
    }

    html.app-sidebar-pinned .primary-sidebar .sidebar-section-label,
    .primary-sidebar.is-preview-open .sidebar-section-label,
    .primary-sidebar.is-pinned .sidebar-section-label {
        width: auto;
        height: 17px;
        margin: 10px 12px 2px;
        color: var(--app-dim);
        background: transparent;
        font-size: .52rem;
        font-weight: 850;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    html.app-sidebar-pinned .primary-sidebar .sidebar-section-label--account,
    .primary-sidebar.is-preview-open .sidebar-section-label--account,
    .primary-sidebar.is-pinned .sidebar-section-label--account {
        margin-top: auto;
    }
}

.primary-sidebar .panel-nav-item:hover,
.primary-sidebar .panel-nav-item:focus-visible,
.primary-sidebar .panel-nav-item.is-active,
.primary-sidebar .panel-nav-item[aria-current="page"] {
    border-color: color-mix(in srgb, var(--sidebar-item-accent) 24%, transparent) !important;
    color: var(--sidebar-item-accent) !important;
    background: color-mix(in srgb, var(--sidebar-item-accent) 9%, transparent) !important;
}

.primary-sidebar .panel-nav-item.is-active::before,
.primary-sidebar .panel-nav-item[aria-current="page"]::before {
    content: "";
    position: absolute;
    inset: 11px auto 11px -3px;
    width: 3px;
    border-radius: 999px;
    background: var(--sidebar-item-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--sidebar-item-accent) 70%, transparent);
}

.panel-body [id$="Modal"]:not(#postingModal),
.panel-body [data-dialog] {
    z-index: 80 !important;
}

.panel-body #kycModal[id$="Modal"] {
    z-index: 110 !important;
}

.secondary-sidebar {
    width: 340px !important;
    border-right-color: var(--app-border) !important;
    background: rgba(12, 15, 26, .92) !important;
    backdrop-filter: blur(24px) !important;
}

.secondary-sidebar .account-item,
.secondary-sidebar .conv-item {
    position: relative;
    min-height: 50px;
    border-radius: 14px !important;
}

.secondary-sidebar .account-actions {
    position: static;
    display: flex !important;
    align-items: center;
    padding: 0;
    border: 0;
    opacity: 1;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    transform: none;
}

.secondary-sidebar .account-item:hover .account-actions,
.secondary-sidebar .account-item:focus-within .account-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
}

.secondary-sidebar .account-actions :is(button, a) {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.secondary-sidebar .account-actions :is(button, a):focus-visible {
    outline: 2px solid #aebce7;
    outline-offset: 2px;
}

.account-proxy-shortcut { width: 100%; min-height: 40px; margin-bottom: 12px; font-size: 12px; }
.account-identity-copy { min-width: 0; flex: 1; }
.account-identity-copy > span { display: block; }
.secondary-sidebar .account-identity-copy .account-status { display: flex !important; margin-top: 4px; }
.secondary-sidebar .account-actions { flex-wrap: nowrap; width: auto; }
.account-more-trigger span { font-size: 23px; line-height: 1; }
.account-actions-menu { display: none; position: fixed; inset: auto; margin: 0; width: min(252px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; padding: 7px; border: 1px solid #363e52; border-radius: 12px; background: #191e2c; color: #d2daea; box-shadow: 0 16px 45px #0008; z-index: 120; }
.account-actions-menu:popover-open { display: block; }
.account-actions-menu[data-open="true"] { display: block; }
.account-actions-menu[hidden] { display: none !important; }
.account-menu-caption { margin: 0; padding: 8px 10px 11px; color: #8f9bb3; font-size: 11px; overflow-wrap: anywhere; }
.account-menu-item { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 10px; border: 0; border-radius: 7px; background: transparent; color: #d2daea; text-align: left; font-size: 12px; line-height: 1.5; cursor: pointer; }
.account-menu-item:hover, .account-menu-item:focus-visible { background: #2b3449; color: #edf0f8; }
.account-menu-item:focus-visible { outline: 2px solid #aebce7; outline-offset: -2px; }
.account-menu-item:disabled { color: #96a2b9; cursor: default; }
.account-menu-item--danger { color: #d6a8ae; }
.account-menu-item--danger:hover { background: #35252d; color: #e9bcc3; }
.account-actions-menu form { margin: 0; }
.account-actions-menu form:last-child { margin-top: 5px; padding-top: 5px; border-top: 1px solid #303849; }
.proxy-main { max-width: 880px; }
.proxy-current { display: grid; gap: 6px; margin-bottom: 26px; padding: 15px 17px; border: 1px solid var(--app-border); border-radius: 12px; background: rgba(255,255,255,.025); }
.proxy-current > span { color: var(--app-muted); font-size: 12px; }
.proxy-current > strong { color: var(--app-text); font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.proxy-mode-fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.proxy-mode-fieldset legend { margin-bottom: 10px; }
.proxy-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.proxy-choice { display: flex; align-items: flex-start; gap: 12px; min-height: 90px; padding: 18px; border: 1px solid var(--app-border); border-radius: 12px; cursor: pointer; background: rgba(255,255,255,.018); }
.proxy-choice:has(input:checked) { border-color: #667497; background: rgba(139,159,209,.07); }
.proxy-choice:focus-within { outline: 2px solid #aebce7; outline-offset: 2px; }
.proxy-choice input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 2px; accent-color: #aebce7; }
.proxy-choice strong { display: block; color: var(--app-text); font-size: 13px; font-weight: 600; line-height: 1.5; }
.proxy-choice small { display: block; margin-top: 4px; color: var(--app-muted); font-size: 12px; line-height: 1.55; }
.proxy-url-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.proxy-url-control .app-input { min-width: 0; }
.proxy-controls .app-form-hint { margin: 0; color: var(--app-muted); font-size: 12px; line-height: 1.65; }
.proxy-controls .proxy-current { margin-bottom: 0; }
.quick-proxy-section { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--app-border); border-radius: 12px; background: rgba(255,255,255,.015); }
.quick-proxy-section .proxy-choice { min-height: 72px; padding: 12px; gap: 9px; }
.quick-proxy-section .proxy-choice strong { font-size: 12px; }
.quick-proxy-section .proxy-choice small { font-size: 11px; }
.history-dialog.account-proxy-dialog { width: min(640px, calc(100% - 24px)); }
#accountProxyStatus { min-height: 20px; color: var(--app-muted); }
#accountProxyStatus:empty { min-height: 0; margin: 0; }
.panel-tour-trigger { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: center; margin-top: 16px; padding: 9px 12px; border: 1px solid #3b4358; border-radius: 10px; background: rgba(255,255,255,.025); color: #c5cee2; font-size: 12px; font-weight: 600; cursor: pointer; }
.panel-tour-trigger:hover { background: #202638; color: #f1f4fb; }
.panel-tour-trigger:focus-visible, .panel-tour-close:focus-visible { outline: 2px solid #aebce7; outline-offset: 3px; }
.panel-tour-mobile-trigger { width: auto !important; padding: 0 10px; font-size: 12px; }
.panel-tour-dialog { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; overflow: hidden; background: transparent; color: var(--app-text); }
.panel-tour-dialog::backdrop { background: transparent; }
.panel-tour-dimmer { position: absolute; inset: 0; background: rgba(3,5,10,.78); }
.panel-tour-ring { position: absolute; border: 2px solid #aebce7; border-radius: 12px; box-shadow: 0 0 0 100vmax rgba(3,5,10,.78); pointer-events: none; }
.panel-tour-card { position: absolute; display: flex; flex-direction: column; width: min(420px, calc(100% - 24px)); max-height: calc(100dvh - 24px); overflow: hidden; padding: 22px; border: 1px solid #454e65; border-radius: 16px; background: #121827; box-shadow: 0 24px 70px rgba(0,0,0,.4); }
.panel-tour-card > :not(.panel-tour-content) { flex-shrink: 0; }
.panel-tour-content { min-height: 0; overflow-y: auto; }
.panel-tour-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; font-size: 12px; color: #b6c1d8; }
.panel-tour-close { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #394255; border-radius: 8px; color: #d5ddef; background: #1d2536; font-size: 22px; cursor: pointer; }
.panel-tour-progress { display: block; width: 100%; height: 4px; margin-bottom: 16px; accent-color: #aebce7; }
.panel-tour-progress::-webkit-progress-bar { background: #2d3548; border-radius: 6px; }
.panel-tour-progress::-webkit-progress-value { background: #aebce7; border-radius: 6px; }
.panel-tour-topic { font-size: 12px !important; margin-bottom: 20px; }
.panel-tour-topic option { color: #e6ecfa; background: #121827; }
.panel-tour-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; line-height: 1.35; }
#panelTourDescription { margin: 0; color: #bec8dd; font-size: 13px; line-height: 1.75; }
.panel-tour-items { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.panel-tour-items li { display: flex; align-items: flex-start; gap: 10px; }
.panel-tour-items strong { display: block; font-size: 12px; color: #e2e9f7; }
.panel-tour-items div > span { display: block; margin-top: 3px; color: #acb8d1; font-size: 12px; line-height: 1.6; }
.panel-tour-symbol { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border: 1px solid #3c465d; border-radius: 8px; font-size: 10px; color: #c6d1e9; }
.panel-tour-symbol svg { width: 16px; height: 16px; }
.panel-tour-note { margin: 18px 0 0; padding: 12px; border-radius: 10px; background: #20283b; color: #bec8dd; font-size: 12px; line-height: 1.65; }
.panel-tour-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.panel-tour-actions button:disabled { opacity: .45; cursor: default; }
.secondary-sidebar .panel-tour-target .account-actions { opacity: 1; transform: none; transition: none; }
.proxy-scope-note { padding-top: 4px; color: var(--app-muted); font-size: 12px; line-height: 1.75; }
.proxy-form-actions { padding-top: 18px; border-top: 1px solid var(--app-border); }
@media (max-width: 640px) {
    .proxy-mode-options { grid-template-columns: 1fr; }
    .proxy-choice { min-height: 78px; padding: 16px; }
    .proxy-form-actions { flex-wrap: wrap; }
    .proxy-form-actions .app-btn { flex: 1 1 auto; }
}
@media (max-width: 767px) {
    .secondary-sidebar .account-item { flex-wrap: nowrap; }
    .secondary-sidebar .account-actions { width: auto; justify-content: flex-end; }
    .secondary-sidebar .account-actions :is(button, a) { width: 44px !important; height: 44px !important; }
}

.secondary-sidebar .account-health {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--app-border);
    border-radius: 999px;
    padding: 0 8px;
    color: var(--app-muted);
    background: rgba(255,255,255,.025);
    font-size: 9px;
    font-weight: 750;
}

.secondary-sidebar .account-health--success {
    color: #6ee7b7;
    border-color: rgba(53,212,154,.15);
    background: rgba(53,212,154,.055);
}

.secondary-sidebar .account-health--danger {
    color: #fda4af;
    border-color: rgba(251,113,133,.17);
    background: rgba(251,113,133,.06);
}

.secondary-sidebar .account-item:hover,
.secondary-sidebar .conv-item:hover {
    border-color: rgba(255,255,255,.09) !important;
    background: rgba(255,255,255,.04) !important;
}

.secondary-sidebar .conv-item.active {
    border-color: rgba(124, 108, 255, .32) !important;
    background: linear-gradient(135deg, rgba(124,108,255,.14), rgba(64,217,255,.035)) !important;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
}

.panel-main {
    min-width: 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(124,108,255,.075), transparent 32rem),
        #090b13 !important;
}

.panel-main .chat-box > header {
    min-height: 76px;
    height: auto !important;
    border-bottom-color: var(--app-border) !important;
    background: rgba(12, 15, 26, .89) !important;
    backdrop-filter: blur(24px) !important;
}

.panel-main .messages {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
}

.panel-main .msg-bubble-in,
.panel-main .msg-bubble-out {
    border-radius: 19px !important;
    font-size: 13.5px !important;
    line-height: 1.62 !important;
}

.panel-main .msg-bubble-in {
    background: rgba(24, 29, 47, .88) !important;
    border-color: rgba(255,255,255,.075) !important;
}

.panel-main .msg-bubble-out {
    background: linear-gradient(135deg, #5d4cd8, #7b68ee) !important;
    box-shadow: 0 10px 28px rgba(93,76,216,.25) !important;
}

.panel-main .chat-message-form {
    border-top-color: var(--app-border);
}

.panel-main input[name="message_text"] {
    min-height: 46px;
    font-size: 14px !important;
}

.panel-main .chat-box > div:last-child {
    background: rgba(12,15,26,.88);
    backdrop-filter: blur(20px);
}

[id$="Modal"]:not(#postingModal) {
    padding: 18px;
}

[id$="Modal"]:not(#postingModal) > div {
    border-color: rgba(255,255,255,.1) !important;
    background: linear-gradient(145deg, rgba(22,26,43,.98), rgba(10,13,23,.99)) !important;
    box-shadow: 0 34px 100px rgba(0,0,0,.52) !important;
}

#unreadToasts {
    gap: 10px !important;
}

/* Email archive — same shell and quiet surfaces as Replies and Blacklist. */
.email-main { width: min(1380px, calc(100% - 32px)); }
.email-filters { margin-bottom: 26px; }
.email-search-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.email-search-field { flex: 1 1 300px; }
.email-search-form .app-field { min-width: 0; }
.email-search-form select { min-width: 215px; }
.email-results-heading { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; margin: 0 0 14px; }
.email-results-heading h2 { font-size: 16px; font-weight: 600; }
.email-results-heading > span, .email-muted { color: #a6afc5; font-size: 12px; line-height: 1.55; }
.email-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.email-address { font-weight: 600; color: #e1e6f3; user-select: text; overflow-wrap: anywhere; }
.email-table { table-layout: fixed; }
.email-table th { color: #a6afc5; }
.email-table th:first-child { width: 27%; }
.email-table th:nth-child(2) { width: 21%; }
.email-table th:nth-child(3) { width: 20%; }
.email-table th:nth-child(4) { width: 12%; }
.email-table th:nth-child(5) { width: 20%; }
.email-table td { vertical-align: top; }
.email-copy { color: #bfcbed; font-size: 12px; min-height: 32px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.email-copy:focus-visible, .email-return:focus-visible { outline: 2px solid #aebce7; outline-offset: 3px; }
.email-state { display: inline-flex; font-size: 11px; padding: 4px 8px; border: 1px solid #3c4253; border-radius: 6px; color: #bbc3d4; background: #191e2b; }
.email-state--inactive { color: #dfc499; border-color: #5e513e; background: #2a251f; }
.email-state--active { color: #a9cfbe; border-color: #3c554c; background: #1b2926; }
.email-return { white-space: normal; text-align: center; }
.email-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 13px; color: #b8c1d5; }
.email-empty { padding: 36px; text-align: center; }
.email-empty h2 { font-size: 18px; font-weight: 600; }
.email-empty p { margin: 10px auto 18px; max-width: 550px; color: #a6afc5; font-size: 13px; line-height: 1.65; }
.email-archive-note { margin-top: 18px; max-width: 940px; color: #a6afc5; font-size: 12px; line-height: 1.7; }
.email-copy-status { min-height: 22px; margin-top: 16px; color: #c7d3ef; font-size: 13px; }
.email-copy-buffer { position: fixed; left: -10000px; top: 0; }
@media (max-width: 640px) {
    .email-search-form { flex-direction: column; align-items: stretch; }
    .email-search-field { flex-basis: auto; }
    .email-table .email-cell { align-items: flex-end; max-width: 75%; }
    .email-table td::before { color: #a6afc5; }
    .email-copy { min-height: 40px; }
}

.history-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; font-size: 13px; color: #b8c1d5; }
.history-select { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; }
.history-toolbar input, .history-table input { width: 18px; height: 18px; accent-color: #aebce7; }
.history-toolbar button { margin-left: auto; }
.history-toolbar button:disabled { opacity: .45; cursor: default; }
.history-table td { vertical-align: top; }
.history-table th:first-child { width: 80px; }
.history-dialog { margin: auto; width: min(520px, calc(100% - 32px)); max-height: 85dvh; overflow: auto; border: 1px solid #3c4253; border-radius: 16px; padding: 24px; background: #111624; color: #e1e6f3; }
.history-dialog::backdrop { background: rgba(0,0,0,.7); }
.history-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.history-dialog h2 { font-size: 18px; font-weight: 600; }
.history-dialog p { margin: 14px 0 8px; font-size: 13px; }
.history-code-row { display: flex; align-items: center; gap: 18px; }
#history2faCode { font-size: 32px; letter-spacing: .18em; user-select: all; }
.history-secret { display: block; padding: 12px; background: #1a2030; border-radius: 8px; overflow-wrap: anywhere; user-select: all; }
.history-info-fields > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid #2a3041; font-size: 13px; }
.history-info-fields dt { color: #a6afc5; }
.history-info-fields dd { overflow-wrap: anywhere; user-select: text; }
@media (max-width: 480px) { .history-info-fields > div { grid-template-columns: 1fr; gap: 4px; } }

/* General tables */
.app-table-wrap {
    overflow: hidden;
    border: 1px solid var(--app-border);
    border-radius: var(--app-radius);
    background: rgba(11,14,24,.72);
}

.app-table {
    width: 100%;
    border-collapse: collapse;
}

.app-table th {
    padding: 13px 16px;
    color: var(--app-dim);
    background: rgba(255,255,255,.025);
    font-size: .67rem;
    letter-spacing: .1em;
    text-align: left;
    text-transform: uppercase;
}

.app-table td {
    padding: 15px 16px;
    border-top: 1px solid var(--app-border);
    color: #dce1ee;
    font-size: .8rem;
}

@media (max-width: 1180px) {
    .secondary-sidebar {
        width: 316px !important;
    }
}

@media (max-width: 860px) {
    .app-nav__toggle {
        display: inline-flex;
    }

    .app-nav__links {
        position: fixed;
        top: 78px;
        right: 16px;
        left: 16px;
        display: none;
        max-height: calc(100dvh - 94px);
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        border: 1px solid var(--app-border);
        border-radius: 18px;
        padding: 10px;
        background: rgba(12,15,26,.98);
        box-shadow: var(--app-shadow);
    }

    .app-nav__links.is-open {
        display: flex;
    }

    .app-nav__links a {
        min-height: 46px;
    }

    .app-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-hero {
        display: none;
    }

    .auth-panel {
        min-height: 100dvh;
        padding: 22px;
    }

    .auth-card > .auth-brand {
        display: inline-flex;
    }

    .app-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-section--split {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 22px;
    }
}

@media (max-width: 767px) {
    body.app-sidebar-layout,
    html.app-sidebar-pinned body.app-sidebar-layout {
        padding-top: 64px;
        padding-left: 0;
    }

    body.panel-body {
        display: block !important;
        min-height: 100dvh;
        overflow: hidden !important;
        padding-top: 64px;
    }

    .panel-mobile-header {
        position: fixed;
        inset: 0 0 auto;
        z-index: 55;
        display: flex;
        height: 64px;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 0 14px;
        border-bottom: 1px solid var(--app-border);
        background: rgba(8,10,18,.92);
        backdrop-filter: blur(22px);
    }

    .panel-mobile-action {
        display: inline-flex;
        width: 42px;
        height: 42px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--app-border);
        border-radius: 13px;
        color: white;
        background: rgba(255,255,255,.045);
    }

    .panel-mobile-action svg,
    .app-mobile-brand-mark svg {
        width: 19px;
        height: 19px;
    }

    .app-mobile-brand-mark {
        display: grid;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        place-items: center;
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 13px;
        color: white;
        background: linear-gradient(145deg, #8c7cff, #5b4bd6);
        box-shadow: 0 8px 22px rgba(105,88,237,.25);
    }

    .panel-mobile-title {
        min-width: 0;
        flex: 1;
    }

    .panel-mobile-title strong {
        display: block;
        overflow: hidden;
        color: white;
        font-size: .84rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .panel-mobile-title span {
        display: block;
        margin-top: 2px;
        color: var(--app-dim);
        font-size: .64rem;
    }

    .panel-mobile-overlay {
        position: fixed;
        inset: 0;
        z-index: 59;
        display: block;
        visibility: hidden;
        opacity: 0;
        background: rgba(2,4,9,.68);
        backdrop-filter: blur(5px);
        transition: opacity .22s ease, visibility .22s ease;
    }

    .panel-mobile-overlay.is-open {
        visibility: visible;
        opacity: 1;
    }

    .primary-sidebar {
        position: fixed !important;
        inset: 0 auto 0 0;
        z-index: 60 !important;
        width: min(84vw, 320px) !important;
        min-height: 100dvh;
        transform: translateX(-105%);
        transition: transform .24s cubic-bezier(.22,1,.36,1) !important;
    }

    .primary-sidebar.is-pinned,
    .primary-sidebar.is-preview-open {
        width: min(84vw, 320px) !important;
    }

    .app-sidebar--workspace.is-preview-open:not(.is-pinned) {
        margin-right: 0;
    }

    .primary-sidebar.is-open {
        transform: translateX(0);
    }

    .primary-sidebar .nav-label {
        display: inline !important;
        max-width: 160px;
        opacity: 1 !important;
        visibility: visible;
        transform: none;
    }

    .primary-sidebar .panel-brand {
        justify-content: flex-start;
        gap: 12px !important;
        padding-right: 10px;
    }

    .primary-sidebar .sidebar-pin {
        display: none !important;
    }

    .primary-sidebar .sidebar-section-label {
        width: auto;
        height: 17px;
        margin: 10px 12px 2px;
        color: var(--app-dim);
        background: transparent;
        font-size: .52rem;
        font-weight: 850;
        letter-spacing: .13em;
        text-transform: uppercase;
    }

    .primary-sidebar .sidebar-section-label--account {
        margin-top: auto;
    }

    .primary-sidebar .panel-nav-item {
        justify-content: flex-start !important;
        gap: 16px !important;
        padding-inline: 14px !important;
    }

    .secondary-sidebar {
        width: 100% !important;
        height: calc(100dvh - 64px);
        border-right: 0 !important;
    }

    .secondary-sidebar .account-actions {
        position: static;
        flex-wrap: nowrap;
        border: 0;
        padding: 0;
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
        transform: none;
    }

    .secondary-sidebar .account-status {
        display: none !important;
    }

    .panel-main {
        display: none !important;
        width: 100%;
        height: calc(100dvh - 64px);
    }

    body.mobile-chat-open .secondary-sidebar {
        display: none !important;
    }

    body.mobile-chat-open .panel-main {
        display: flex !important;
    }

    body.mobile-chat-open .panel-mobile-menu {
        display: none;
    }

    body:not(.mobile-chat-open) .panel-mobile-back {
        display: none;
    }

    .panel-main .chat-box > header {
        min-height: 68px;
        padding-inline: 14px !important;
    }

    .panel-main .chat-box > header > div:first-child {
        min-width: 0;
        gap: 9px !important;
    }

    .panel-main .chat-box > header > div:first-child > div:last-child {
        min-width: 0;
    }

    .panel-main .chat-box > header a {
        max-width: 44vw !important;
    }

    .panel-main .messages {
        padding: 18px 13px 22px !important;
    }

    .panel-main .messages > div {
        max-width: 88% !important;
    }

    .panel-main .chat-message-form {
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) !important;
    }

    [id$="Modal"]:not(#postingModal) {
        align-items: flex-end !important;
        padding: 0 !important;
    }

    [id$="Modal"]:not(#postingModal) > div {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 92dvh !important;
        overflow-y: auto !important;
        border-radius: 24px 24px 0 0 !important;
        padding: 22px 18px calc(22px + env(safe-area-inset-bottom)) !important;
    }

    #unreadToasts {
        right: 12px !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        left: 12px !important;
        width: auto !important;
        max-width: none !important;
    }

    .app-main,
    .app-main--narrow {
        width: min(100% - 24px, 1240px);
        padding-top: 26px;
    }

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

    .app-card {
        border-radius: 20px;
    }

    .app-section {
        padding: 22px 17px;
    }

    .app-page-header__meta {
        min-width: 0;
        text-align: left;
    }

    .app-inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .app-inline-form__button {
        width: 100%;
    }

    .app-license,
    .app-template-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .app-license .app-status-pill {
        margin-left: 49px;
    }

    .app-template-item__action {
        width: 100%;
        padding-left: 49px;
    }

    .app-table-wrap {
        border: 0;
        overflow: visible;
        background: transparent;
    }

    .app-table thead {
        display: none;
    }

    .app-table,
    .app-table tbody,
    .app-table tr,
    .app-table td {
        display: block;
        width: 100%;
    }

    .app-table tr {
        margin-bottom: 12px;
        overflow: hidden;
        border: 1px solid var(--app-border);
        border-radius: 17px;
        background: rgba(13,16,28,.82);
    }

    .app-table td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 20px;
        border-top: 1px solid var(--app-border);
        text-align: right;
    }

    .app-table td:first-child {
        border-top: 0;
    }

    .app-table td::before {
        content: attr(data-label);
        color: var(--app-dim);
        font-size: .66rem;
        font-weight: 750;
        letter-spacing: .08em;
        text-align: left;
        text-transform: uppercase;
    }
}

@media (max-width: 520px) {
    .app-nav__inner {
        width: calc(100% - 24px);
    }

    .app-nav__subtitle {
        display: none;
    }

    .auth-panel {
        padding: 14px;
    }

    .auth-card {
        padding: 26px 20px;
        border-radius: 22px;
    }

    .app-page-header h1,
    .app-title {
        font-size: 1.75rem;
    }

    .app-plan-grid {
        grid-template-columns: 1fr;
    }

    .app-plan-card {
        min-height: 165px;
    }

    .app-page-header {
        margin-bottom: 22px;
    }
}

.contact-history-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: #9aa3b8;
    padding: 2px 4px;
    font-size: 11px;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    cursor: pointer;
}
.contact-history-trigger--small { font-size: 10px; }
.contact-history-trigger svg { flex-shrink: 0; }
.contact-history-trigger [hidden] { display: none !important; }
.contact-email-indicator { color: #b9c7e7; font-weight: 600; }
.contact-history-trigger:hover { background: #ffffff08; color: #d2d9e8; }
.contact-history-trigger:focus-visible,
.contact-history-dialog button:focus-visible,
.contact-history-dialog a:focus-visible { outline: 2px solid #aebce7; outline-offset: 3px; }
.contact-history-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(440px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-left: 1px solid #343849;
    padding: 24px;
    background: #161923;
    color: #e7eaf4;
    box-shadow: -15px 0 55px #0005;
    overflow-y: auto;
}
.contact-history-dialog::backdrop { background: #07091099; }
.contact-history-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.contact-history-heading h2 { font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
.contact-history-caption { font-size: 12px; color: #a6afc5; margin-bottom: 5px; }
.contact-history-close { flex-shrink: 0; min-width: 40px; min-height: 40px; border-radius: 8px; font-size: 24px; color: #ced4e3; background: #242939; cursor: pointer; }
.contact-history-summary { padding: 24px 0 18px; }
.contact-history-summary strong { font-size: 24px; font-weight: 600; }
.contact-history-summary p, .contact-history-footer p { margin-top: 8px; font-size: 12px; line-height: 1.65; color: #a6afc5; }
#contactHistoryStatus { font-size: 13px; color: #c4cbda; }
.contact-history-list { list-style: none; margin: 0; padding: 0; }
.contact-history-list li { margin: 0 0 10px; padding: 16px; background: #1e2330; border-radius: 10px; overflow-wrap: anywhere; }
.contact-history-list h3 { font-size: 14px; line-height: 1.5; font-weight: 600; }
.contact-history-details { font-size: 12px; color: #adb7ce; margin-top: 5px; }
.contact-history-list a { display: inline-block; padding-top: 9px; color: #c5d0fa; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.contact-history-footer { padding-top: 10px; }
.contact-history-list .contact-email-list { list-style: none; padding: 0; margin: 12px 0 0; }
.contact-history-list .contact-email-list li { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0; padding: 9px 11px; background: #171c28; border: 1px solid #333d52; border-radius: 7px; }
.contact-email-address { color: #d0d9ee; font-size: 13px; user-select: text; overflow-wrap: anywhere; }
#contactHistoryEmailSummary { color: #c4cee4; }
.contact-history-dialog [hidden] { display: none !important; }

@media (max-width: 640px) {
    .contact-history-dialog { padding: 20px; }
    .chat-box header > div:first-child > div:last-child > div:first-child { flex-wrap: wrap; gap: 4px 8px; }
}

.account-info-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #343849;
    background: #1e2330;
    color: #b9c2d8;
    cursor: pointer;
}
.account-info-trigger:hover { background: #2b3142; color: #e7eaf4; }
.account-info-dialog {
    position: fixed;
    inset: 0;
    margin: auto;
    width: min(460px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 24px;
    border: 1px solid #343849;
    border-radius: 18px;
    background: #161923;
    color: #e7eaf4;
    box-shadow: 0 24px 70px #0006;
}
.account-info-dialog::backdrop { background: #070910aa; }
.account-info-dialog [hidden] { display: none !important; }
.account-info-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.account-info-heading h2 { margin: 0; font-size: 18px; font-weight: 600; }
.account-info-heading p { margin: 5px 0 0; color: #a6afc5; font-size: 13px; overflow-wrap: anywhere; }
.account-info-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 8px; background: #242939; color: #ced4e3; font-size: 24px; cursor: pointer; }
.account-info-close:hover { background: #31394e; }
.account-info-status { margin: 20px 0 16px; color: #a6afc5; font-size: 13px; line-height: 1.6; }
.account-info-created { padding: 18px; border: 1px solid #343849; border-radius: 12px; background: #1e2330; }
.account-info-created p { margin: 0 0 6px; color: #b3bdd1; font-size: 12px; }
.account-info-created strong { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-info-fields { margin: 10px 0 0; }
.account-info-fields > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid #343849; font-size: 13px; }
.account-info-fields dt { color: #a6afc5; }
.account-info-fields dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.account-info-verification { color: #b3bdd1; }
.account-info-verification[data-state="confirmed"] { color: #a8c7b7; }
.account-info-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 20px; }
.account-info-footer p { flex: 1 1 160px; margin: 0; font-size: 11px; line-height: 1.6; color: #a6afc5; }
.account-info-footer button { flex-shrink: 0; }

.account-ads-shortcut { width: 100%; min-height: 40px; margin-bottom: 12px; font-size: 12px; }
.account-ads-dialog { width: min(860px, calc(100vw - 32px)); }
.account-ads-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.account-ads-dialog > :not(.account-ads-list) { flex-shrink: 0; }
.account-ads-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.account-ads-filters { display: flex; gap: 4px; padding: 4px; border: 1px solid #343849; border-radius: 11px; background: #11141d; }
.account-ads-filters button { min-height: 40px; padding: 8px 16px; border-radius: 7px; color: #a6afc5; font-size: 13px; cursor: pointer; }
.account-ads-filters button[aria-pressed="true"] { background: #293145; color: #e7eaf4; }
.account-ads-dialog button:focus-visible { outline: 2px solid #aebce7; outline-offset: 3px; }
.account-ads-dialog button:disabled { opacity: .45; cursor: default; }
.account-ads-dialog .account-info-status { margin: 16px 0; }
.account-ads-list { display: grid; flex: 1 1 auto; min-height: 0; gap: 12px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-width: thin; scrollbar-color: #3e475c #161923; }
.account-ad { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 16px; border: 1px solid #303648; border-radius: 12px; background: #1b202d; }
.account-ad-photo { display: grid; align-self: start; place-items: center; width: 116px; height: 96px; overflow: hidden; border-radius: 9px; background: #11141d; color: #8f9bb3; font-size: 11px; text-align: center; }
.account-ad-photo img { width: 100%; height: 100%; object-fit: cover; }
.account-ad-heading { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.account-ad-heading h3 { margin: 0; color: #e7eaf4; font-size: 14px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.account-ad-price { flex-shrink: 0; color: #d0d9ee; font-size: 14px; font-weight: 600; }
.account-ad-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; color: #a6afc5; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.account-ad-status { padding: 2px 7px; border: 1px solid #425044; border-radius: 6px; color: #b0c7b7; }
.account-ad-status[data-status="WAITING"] { border-color: #5c513b; color: #d4c7a7; }
.account-ad-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; color: #b7c1d6; font-size: 11px; font-variant-numeric: tabular-nums; }
.account-ad-dates { margin: 10px 0 0; color: #93a0b7; font-size: 11px; line-height: 1.7; }
.account-ads-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.account-ads-footer p { margin: 0; color: #a6afc5; font-size: 11px; }
.account-ads-footer > div { display: flex; gap: 8px; }
@media (max-width: 640px) {
    .account-ads-dialog { padding: 18px; }
    .account-ad { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; }
    .account-ad-photo { width: 72px; height: 72px; }
    .account-ad-heading { flex-direction: column; gap: 4px; }
    .account-ads-filters button { padding-inline: 12px; }
}

.conv-item-meta { display: flex; align-items: center; gap: 7px; flex-shrink: 0; }
.conv-last-message-time {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #9aa3b8;
    font-size: 10px;
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.conv-last-message-time svg { flex-shrink: 0; opacity: .8; }
.conv-last-message-time[hidden] { display: none !important; }
.conv-filter-empty { margin: 16px 4px; color: #a6afc5; font-size: 12px; line-height: 1.6; text-align: center; }

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
