/**
 * LexPost AI v6.3.0 — Admin CSS
 * Design System: Dark Atelier (matching tucamaria.ro)
 *
 * Palette:
 *   --lx-burgundy:   #800020
 *   --lx-gold:       #c9a96e
 *   --lx-gold-dark:  #a8782e
 *   --lx-dark:       #110208
 *   --lx-dark-card:  #1a0810
 *   --lx-cream:      #ede4d8
 *   --lx-text:       #e8ddd0
 *   --lx-muted:      #9a8d80
 */

/* ─── Variables ──────────────────────────────────────────────── */

:root {
    --lx-burgundy: #800020;
    --lx-burgundy-light: #a0244a;
    --lx-gold: #c9a96e;
    --lx-gold-dark: #a8782e;
    --lx-gold-gradient: linear-gradient(135deg, #c9a96e 0%, #a8782e 100%);
    --lx-dark: #110208;
    --lx-dark-card: #1a0810;
    --lx-dark-surface: #200e16;
    --lx-dark-border: #3a1a28;
    --lx-cream: #ede4d8;
    --lx-text: #e8ddd0;
    --lx-text-secondary: #b8a898;
    --lx-muted: #9a8d80;
    --lx-success: #2ecc71;
    --lx-warning: #f1c40f;
    --lx-danger: #e74c3c;
    --lx-info: #6ea8c9;
    --lx-radius: 8px;
    --lx-radius-sm: 4px;
    --lx-radius-lg: 12px;
    --lx-shadow: 0 4px 24px rgba(0,0,0,.35);
    --lx-shadow-sm: 0 2px 8px rgba(0,0,0,.25);
    --lx-font: 'Roboto Condensed', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --lx-font-serif: 'Roboto Slab', Georgia, serif;
    --lx-transition: .2s ease;
}

/* ─── Base ───────────────────────────────────────────────────── */

.lexpost-wrap {
    font-family: var(--lx-font);
    color: var(--lx-text);
    background: var(--lx-dark);
    margin: -20px -20px 0 -2px;
    min-height: 100vh;
}

.lexpost-wrap *,
.lexpost-wrap *::before,
.lexpost-wrap *::after {
    box-sizing: border-box;
}

.lexpost-wrap h1, .lexpost-wrap h2, .lexpost-wrap h3, .lexpost-wrap h4 {
    font-family: var(--lx-font-serif);
    color: var(--lx-cream);
    margin: 0 0 .5em;
}

.lexpost-wrap a { color: var(--lx-gold); text-decoration: none; }
.lexpost-wrap a:hover { color: var(--lx-cream); }

/* ─── Header ─────────────────────────────────────────────────── */

.lx-header {
    background: radial-gradient(circle at 38% 32%, #3a0a18, #110208);
    border-bottom: 2px solid var(--lx-gold-dark);
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    position: sticky;
    top: 32px; /* WP admin bar */
    z-index: 100;
}

.lx-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.lx-header__brand h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: .04em;
    margin: 0;
}

.lx-version {
    font-size: 11px;
    font-weight: 400;
    background: var(--lx-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-left: 6px;
}

.lx-header__nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
}

.lx-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--lx-muted) !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: all var(--lx-transition);
    white-space: nowrap;
}

.lx-nav-item:hover {
    color: var(--lx-cream) !important;
    background: rgba(128,0,32,.15);
}

.lx-nav-item.active {
    color: var(--lx-gold) !important;
    border-bottom-color: var(--lx-gold);
}

.lx-nav-item .dashicons { font-size: 16px; width: 16px; height: 16px; }

/* ─── Main ───────────────────────────────────────────────────── */

.lx-main {
    padding: 24px;
    max-width: 1400px;
}

/* ─── Loading ────────────────────────────────────────────────── */

.lx-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 0;
    color: var(--lx-muted);
}

.lx-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--lx-dark-border);
    border-top-color: var(--lx-gold);
    border-radius: 50%;
    animation: lx-spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes lx-spin { to { transform: rotate(360deg); } }

/* ─── Buttons ────────────────────────────────────────────────── */

.lx-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: var(--lx-radius-sm);
    cursor: pointer;
    transition: all var(--lx-transition);
    font-family: var(--lx-font);
    white-space: nowrap;
}

.lx-btn--primary {
    background: var(--lx-gold-gradient);
    color: var(--lx-dark);
    border-color: var(--lx-gold-dark);
}
.lx-btn--primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 12px rgba(201,169,110,.35);
}

.lx-btn--ghost {
    background: transparent;
    color: var(--lx-text-secondary);
    border-color: var(--lx-dark-border);
}
.lx-btn--ghost:hover {
    color: var(--lx-cream);
    border-color: var(--lx-muted);
    background: rgba(255,255,255,.04);
}

.lx-btn--danger {
    background: transparent;
    color: var(--lx-danger);
    border-color: rgba(231,76,60,.3);
}
.lx-btn--danger:hover {
    background: rgba(231,76,60,.1);
    border-color: var(--lx-danger);
}

.lx-btn--warning {
    background: transparent;
    color: #e67e22;
    border-color: rgba(230,126,34,.3);
}
.lx-btn--warning:hover {
    background: rgba(230,126,34,.1);
    border-color: #e67e22;
}

.lx-btn--sm { padding: 4px 10px; font-size: 12px; }
.lx-btn--lg { padding: 12px 28px; font-size: 15px; }

.lx-btn--connect {
    background: transparent;
    color: var(--lx-cream);
    border: 1px solid var(--net-color, var(--lx-dark-border));
    padding: 10px 18px;
}
.lx-btn--connect:hover {
    background: var(--net-color, var(--lx-burgundy));
    color: #fff;
}
.lx-btn--connect .dashicons { color: var(--net-color, inherit); }

/* ─── Badges ─────────────────────────────────────────────────── */

.lx-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-radius: 3px;
    color: #fff;
    background: var(--lx-muted);
}

.lx-badge--outline {
    background: transparent;
    border: 1px solid;
}

.lx-badge--success { background: var(--lx-success); }
.lx-badge--warning { background: var(--lx-warning); color: var(--lx-dark); }
.lx-badge--danger  { background: var(--lx-danger); }
.lx-badge--info    { background: var(--lx-info); }
.lx-badge--muted   { background: var(--lx-dark-border); color: var(--lx-muted); }

/* ─── Stats Bar ──────────────────────────────────────────────── */

.lx-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lx-analytics-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.lx-analytics-note {
    margin-bottom: 20px;
}

.lx-stat {
    flex: 1;
    min-width: 140px;
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    padding: 16px 20px;
    text-align: center;
}

.lx-stat__value {
    font-family: var(--lx-font-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--lx-cream);
}

.lx-stat--info .lx-stat__value { color: var(--lx-info); }
.lx-stat--success .lx-stat__value { color: var(--lx-success); }
.lx-stat--warning .lx-stat__value { color: var(--lx-warning); }
.lx-stat--danger .lx-stat__value { color: var(--lx-danger); }

.lx-stat__label {
    font-size: 12px;
    color: var(--lx-muted);
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-top: 4px;
}

/* ─── Filters ────────────────────────────────────────────────── */

.lx-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.lx-filter { display: flex; flex-direction: column; gap: 4px; }
.lx-filter__label { font-size: 11px; color: var(--lx-muted); text-transform: uppercase; letter-spacing: .04em; }

/* ─── Inputs ─────────────────────────────────────────────────── */

.lx-input {
    background: var(--lx-dark-surface);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius-sm);
    color: var(--lx-text);
    padding: 8px 12px;
    font-family: var(--lx-font);
    font-size: 13px;
    transition: border-color var(--lx-transition);
    width: 100%;
}

.lx-input:focus {
    outline: none;
    border-color: var(--lx-gold);
    box-shadow: 0 0 0 2px rgba(201,169,110,.15);
}

.lx-input--sm { padding: 4px 8px; width: auto; }

.lx-textarea { resize: vertical; }

select.lx-input { cursor: pointer; }

/* ─── Tables ─────────────────────────────────────────────────── */

.lx-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.lx-table thead th {
    background: var(--lx-dark-surface);
    color: var(--lx-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--lx-dark-border);
}

.lx-table tbody td {
    padding: 10px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(58,26,40,.4);
    vertical-align: middle;
}

.lx-table tbody tr:hover {
    background: rgba(128,0,32,.06);
}

.lx-queue-row--failed td { opacity: .7; }
.lx-queue-row--published td:first-child { color: var(--lx-muted); }

.lx-actions { display: flex; gap: 6px; }

/* ─── Pagination ─────────────────────────────────────────────── */

.lx-pagination {
    display: flex;
    gap: 4px;
    justify-content: center;
    margin-top: 16px;
}

/* ─── Calendar ───────────────────────────────────────────────── */

.lx-cal-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.lx-cal-nav {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lx-cal-title {
    font-size: 22px;
    min-width: 200px;
    text-align: center;
}

.lx-cal-actions { display: flex; gap: 8px; }

.lx-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--lx-dark-border);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    overflow: hidden;
}

.lx-cal-header {
    background: var(--lx-dark-surface);
    padding: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--lx-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.lx-cal-day {
    background: var(--lx-dark-card);
    min-height: 110px;
    padding: 8px;
    position: relative;
}

.lx-cal-day--empty { background: var(--lx-dark); }

.lx-cal-day--today {
    background: rgba(128,0,32,.12);
}

.lx-cal-day--today .lx-cal-day__num {
    background: var(--lx-burgundy);
    color: #fff;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-cal-day__num {
    font-size: 13px;
    font-weight: 600;
    color: var(--lx-text-secondary);
    margin-bottom: 6px;
    display: inline-flex;
}

.lx-cal-day__events {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lx-cal-event {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 2px;
    border-left: 3px solid var(--lx-gold);
    background: rgba(255,255,255,.04);
    color: var(--lx-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--lx-transition);
}

.lx-cal-event:hover { background: rgba(255,255,255,.08); }
.lx-cal-event--published { opacity: .6; text-decoration: line-through; }
.lx-cal-event--failed { border-left-color: var(--lx-danger); background: rgba(231,76,60,.08); }
.lx-cal-event--more { border-left: none; color: var(--lx-gold); font-style: italic; text-align: center; }

/* ─── Section Header ─────────────────────────────────────────── */

.lx-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.lx-section-header--stack {
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.lx-section-header__copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 840px;
}

.lx-section-header__copy h2 {
    margin: 0;
}

.lx-section-header__actions {
    display: flex;
    gap: 8px;
}

.lx-section-header__actions--wrap {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lx-page-curation__intro {
    margin: 0;
    max-width: 760px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--lx-text-secondary);
}

/* ─── Rules Grid ─────────────────────────────────────────────── */

.lx-rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
}

.lx-rule-card {
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    overflow: hidden;
    transition: border-color var(--lx-transition);
}

.lx-rule-card:hover { border-color: rgba(201,169,110,.3); }
.lx-rule-card--inactive { opacity: .65; }

.lx-rule-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-left: 4px solid var(--lx-burgundy);
    background: var(--lx-dark-surface);
}

.lx-rule-card__header h3 {
    font-size: 15px;
    margin: 0;
}

.lx-rule-card__body {
    padding: 14px 16px;
}

.lx-rule-card__body p {
    margin: 4px 0;
    font-size: 13px;
    color: var(--lx-text-secondary);
}

.lx-rule-card__actions {
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--lx-dark-border);
}

/* ─── Content Grid ───────────────────────────────────────────── */

.lx-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.lx-content-card {
    display: flex;
    gap: 14px;
    padding: 18px;
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    cursor: pointer;
    transition: all var(--lx-transition);
}

.lx-content-card:hover {
    border-color: var(--lx-gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--lx-shadow);
}

.lx-content-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--lx-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lx-content-card__icon .dashicons {
    color: #fff;
    font-size: 22px;
    width: 22px;
    height: 22px;
}

.lx-content-card__info h3 { font-size: 15px; margin: 0 0 4px; }
.lx-content-card__info p { font-size: 12px; color: var(--lx-muted); margin: 0 0 4px; }
.lx-content-card__count { font-size: 12px; color: var(--lx-gold); font-weight: 600; }

/* ─── Content List (modal) ───────────────────────────────────── */

.lx-content-list { max-height: 60vh; overflow-y: auto; }

.lx-content-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--lx-dark-border);
}

.lx-content-item__img {
    width: 64px;
    height: 42px;
    border-radius: var(--lx-radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--lx-dark-surface);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lx-content-item__img img { width: 100%; height: 100%; object-fit: cover; }
.lx-content-item__img .dashicons { color: var(--lx-muted); font-size: 20px; }

.lx-content-item__info h4 { margin: 0 0 4px; font-size: 14px; font-family: var(--lx-font); }
.lx-content-item__info p { font-size: 12px; color: var(--lx-muted); margin: 0 0 4px; }
.lx-content-item__info a { font-size: 12px; }

/* ─── Accounts Grid ──────────────────────────────────────────── */

.lx-connect-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.lx-accounts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.lx-account-card {
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    overflow: hidden;
}

.lx-account-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

.lx-account-card__header .dashicons { font-size: 18px; width: 18px; height: 18px; }

.lx-account-card__body {
    padding: 14px 16px;
}

.lx-account-card__body h4 { margin: 0 0 6px; font-size: 15px; font-family: var(--lx-font); }
.lx-account-card__body p { margin: 2px 0; font-size: 13px; color: var(--lx-text-secondary); }
.lx-account-card__meta { font-size: 11px !important; color: var(--lx-muted) !important; }

.lx-account-card__actions {
    padding: 10px 16px;
    display: flex;
    gap: 8px;
    border-top: 1px solid var(--lx-dark-border);
}

/* ─── Settings ───────────────────────────────────────────────── */

.lx-settings-form {
    max-width: 700px;
}

.lx-fieldset {
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius);
    padding: 16px 20px;
    margin: 0 0 20px;
    background: var(--lx-dark-card);
}

.lx-fieldset legend {
    font-family: var(--lx-font-serif);
    font-size: 15px;
    font-weight: 700;
    color: var(--lx-gold);
    padding: 0 8px;
}

.lx-field {
    margin-bottom: 14px;
}

.lx-field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--lx-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.lx-field-row {
    display: flex;
    gap: 16px;
}

.lx-field-row .lx-field { flex: 1; }

.lx-help {
    display: block;
    font-size: 11px;
    color: var(--lx-muted);
    margin-top: 4px;
}

.lx-form-actions {
    padding-top: 16px;
}

.lx-checkbox-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.lx-checkbox {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    color: var(--lx-text-secondary) !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    cursor: pointer;
}

.lx-checkbox input[type="checkbox"] {
    accent-color: var(--lx-gold);
}

.lx-checkbox--center {
    justify-content: center;
}


.lx-page-picker__info {
    min-width: 0;
}

.lx-page-picker__title {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--lx-text);
}

.lx-page-picker__url {
    display: inline-block;
    font-size: 12px;
    color: var(--lx-muted);
    word-break: break-all;
}

.lx-page-picker__factor {
    display: inline-flex;
    margin-left: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--lx-gold);
}

.lx-filter--grow {
    flex: 1 1 320px;
    min-width: 280px;
}

/* ─── Modal ──────────────────────────────────────────────────── */

.lx-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
}

.lx-modal {
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    border-radius: var(--lx-radius-lg);
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--lx-shadow);
}

.lx-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--lx-dark-border);
}

.lx-modal__title { margin: 0; font-size: 17px; }

.lx-modal__close {
    background: none;
    border: none;
    color: var(--lx-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}
.lx-modal__close:hover { color: var(--lx-cream); }

.lx-modal__body { padding: 20px; }
.lx-modal__footer {
    padding: 12px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--lx-dark-border);
}

.lx-modal-form .lx-field { margin-bottom: 14px; }

/* ─── Toast ──────────────────────────────────────────────────── */

.lx-toast-container {
    position: fixed;
    top: 48px;
    right: 20px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lx-toast {
    padding: 10px 18px;
    border-radius: var(--lx-radius-sm);
    font-size: 13px;
    font-weight: 500;
    background: var(--lx-dark-card);
    border: 1px solid var(--lx-dark-border);
    color: var(--lx-cream);
    box-shadow: var(--lx-shadow);
    opacity: 0;
    transform: translateX(40px);
    transition: all .3s ease;
    max-width: 360px;
}

.lx-toast--show { opacity: 1; transform: translateX(0); }
.lx-toast--success { border-left: 3px solid var(--lx-success); }
.lx-toast--error   { border-left: 3px solid var(--lx-danger); }
.lx-toast--warning { border-left: 3px solid var(--lx-warning); }
.lx-toast--info    { border-left: 3px solid var(--lx-info); }

/* ─── Empty State ────────────────────────────────────────────── */

.lx-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--lx-muted);
}

.lx-error {
    text-align: center;
    padding: 60px 20px;
    color: var(--lx-danger);
}

/* ─── Chart ──────────────────────────────────────────────────── */

.lx-chart {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 120px;
    padding: 10px 0;
    border-bottom: 1px solid var(--lx-dark-border);
    margin-bottom: 20px;
}

.lx-chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.lx-chart-bar__fill {
    width: 100%;
    background: var(--lx-gold-gradient);
    border-radius: 2px 2px 0 0;
    min-height: 4px;
    transition: height .3s ease;
}

.lx-chart-bar__label {
    font-size: 9px;
    color: var(--lx-muted);
    margin-top: 4px;
    transform: rotate(-45deg);
    white-space: nowrap;
}

/* ─── Responsive ─────────────────────────────────────────────── */

@media (max-width: 960px) {
    .lx-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .lx-header__nav { width: 100%; overflow-x: auto; }
    .lx-cal-grid { font-size: 11px; }
    .lx-cal-day { min-height: 80px; padding: 4px; }
    .lx-field-row { flex-direction: column; gap: 0; }
    .lx-section-header--stack { flex-direction: column; }
    .lx-section-header__actions--wrap { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .lx-main { padding: 12px; }
    .lx-stats-bar { flex-direction: column; }
    .lx-rules-grid { grid-template-columns: 1fr; }
    .lx-content-grid { grid-template-columns: 1fr; }
    .lx-accounts-grid { grid-template-columns: 1fr; }
    .lx-filter--grow { min-width: 100%; }
}

/* ─── WP Admin Overrides ─────────────────────────────────────── */

.lexpost-wrap .notice {
    margin: 16px 24px 0;
    border-radius: var(--lx-radius-sm);
}

/* ─── Frontend Mode ──────────────────────────────────────────── */

.lexpost-wrap--frontend {
    margin: 0;
    border-radius: var(--lx-radius-lg);
    overflow: hidden;
    box-shadow: var(--lx-shadow);
}

.lexpost-wrap--frontend .lx-header {
    top: 0; /* No WP admin bar */
    position: relative; /* No sticky on frontend */
    border-radius: var(--lx-radius-lg) var(--lx-radius-lg) 0 0;
}

.lexpost-wrap--frontend .lx-main {
    min-height: 600px;
}
