: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);
}

*,
*::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;
}

/* 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-replies__form {
    flex: 0 0 auto;
}

.quick-reply-chip {
    display: inline-flex;
    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);
}

.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) {
    .primary-sidebar.is-preview-open .nav-label,
    .primary-sidebar.is-pinned .nav-label {
        max-width: 142px;
        opacity: 1 !important;
        visibility: visible;
        transform: translateX(0);
    }

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

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

    .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;
    }

    .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;
    }

    .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: absolute;
    right: 8px;
    z-index: 3;
    display: flex !important;
    align-items: center;
    padding: 4px;
    border: 1px solid var(--app-border);
    border-radius: 11px;
    opacity: 0;
    pointer-events: none;
    background: rgba(10, 13, 23, .96);
    box-shadow: 0 8px 22px rgba(0,0,0,.32);
    transform: translateX(5px);
    transition: opacity .16s ease, transform .16s ease;
}

.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 button {
    width: 32px !important;
    height: 32px !important;
    border-radius: 9px !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;
}

/* 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: wrap;
        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;
    }
}

@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;
    }
}
