:root {
    --bg: #0c1222;
    --surface: #151d32;
    --border: #243050;
    --text: #e8edf7;
    --muted: #8b9ab8;
    --accent: #3d9cf0;
    --accent-hover: #5eb0f7;
    --btn-bg: #2563eb;
    --btn-bg-hover: #1d4ed8;
    --btn-text: #ffffff;
    --danger-bg: #3a1f28;
    --danger-text: #f0b4c4;
    --success-bg: #1a3328;
    --success-text: #a8e6c5;
    --radius: 10px;
    --font: system-ui, "Segoe UI", Roboto, Ubuntu, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: radial-gradient(ellipse 120% 80% at 50% -20%, #1a2850 0%, var(--bg) 55%);
    color: var(--text);
    line-height: 1.5;
}

body.has-session-user-footer {
    padding-bottom: 3.25rem;
}

.session-user-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2500;
    padding: 0.4rem clamp(0.75rem, 2vw, 1.25rem);
    font-size: 0.75rem;
    line-height: 1.35;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    background: var(--header-bg);
    border-top: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.session-user-footer__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.85rem;
    align-items: center;
}

.session-user-footer__meta strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.session-user-footer__theme-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface-2);
    color: var(--text-secondary);
    border-radius: 8px;
    font-size: 0.75rem;
    padding: 0.26rem 0.55rem;
    cursor: pointer;
}

.session-user-footer__theme-btn:hover {
    background: var(--bg-surface-3);
    color: var(--text-primary);
}

/*
 * Session footer variants per roles-shells-navigation.mdc §5.
 * --admin: bg #1e293b, text #94a3b8 (superadmin, no impersonation).
 * --customer: bg #f8fafc, text #64748b, border-top #e2e8f0.
 */
.session-user-footer--admin {
    background: #1e293b;
    color: #94a3b8;
    border-top: 1px solid #0f172a;
}
.session-user-footer--admin .session-user-footer__meta strong {
    color: #cbd5e1;
}
.session-user-footer--admin .session-user-footer__theme-btn {
    background: #334155;
    border-color: #475569;
    color: #e2e8f0;
}
.session-user-footer--admin .session-user-footer__theme-btn:hover {
    background: #475569;
    color: #f8fafc;
}

.session-user-footer--customer {
    background: #f8fafc;
    color: #64748b;
    border-top: 1px solid #e2e8f0;
}
.session-user-footer--customer .session-user-footer__meta strong {
    color: #334155;
}
.session-user-footer--customer .session-user-footer__theme-btn {
    background: #ffffff;
    border-color: #e2e8f0;
    color: #64748b;
}
.session-user-footer--customer .session-user-footer__theme-btn:hover {
    background: #f1f5f9;
    color: #334155;
}

.shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 520px;
    margin: 0 auto;
    padding: 2rem 1.25rem;
}

.shell-marketing {
    max-width: 520px;
}

.top {
    margin-bottom: 2rem;
}

/* ——— Logged-in app: light theme, sidebar + main ——— */
body.app-shell {
    --bg: var(--bg-app);
    --surface: var(--bg-surface);
    --border: var(--border-color);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --accent: var(--color-primary);
    --accent-hover: var(--color-primary-hover);
    --accent-soft: rgba(37, 99, 235, 0.1);
    --btn-bg: var(--color-primary);
    --btn-bg-hover: var(--color-primary-hover);
    --btn-text: var(--color-primary-text, #ffffff);
    --danger-bg: var(--color-danger-bg);
    --danger-text: var(--color-danger);
    --success-bg: var(--color-success-bg);
    --success-text: var(--color-success);
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.app-frame {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.app-sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 1.25rem 0;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04);
}

.app-sidebar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.75rem;
}

.app-sidebar-brand:hover {
    color: var(--accent);
}

.app-nav-block {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.65rem;
}

.app-nav-block--sub {
    padding-left: 1rem;
    border-left: 2px solid var(--border);
    margin-left: 1rem;
}

.app-nav-heading {
    margin: 1rem 1rem 0.4rem;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.app-side-link {
    display: block;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    font-size: 0.9375rem;
    color: var(--muted);
    text-decoration: none;
}

.app-side-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.app-side-link.is-active {
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 600;
}

.app-side-link--sub {
    font-size: 0.875rem;
}

.app-sidebar-spacer {
    flex: 1;
    min-height: 1rem;
}

.app-sidebar-logout {
    margin: 0.5rem 0.65rem 0;
    padding: 0.5rem 0.65rem;
    font-size: 0.875rem;
    color: var(--muted);
    text-decoration: none;
    border-radius: 8px;
}

.app-sidebar-logout:hover {
    color: var(--danger-text);
    background: var(--danger-bg);
}

.app-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #f8fafc 0%, var(--bg) 100%);
}

.app-main-inner {
    flex: 1;
    padding: 1.75rem clamp(1rem, 3vw, 2.5rem);
    max-width: 960px;
    width: 100%;
}

.app-main-foot {
    padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
    font-size: 0.8125rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

body.app-shell .panel {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

body.app-shell .lead {
    color: var(--muted);
}

body.app-shell .lead a {
    color: var(--accent);
}

body.app-shell .field label {
    color: var(--muted);
}

body.app-shell .field input,
body.app-shell .field textarea {
    background: var(--input-bg);
    border-color: var(--border);
    color: var(--input-text);
}

body.app-shell .info-box {
    background: var(--bg-surface-2);
    border-color: var(--border);
    color: var(--muted);
}

body.app-shell .badge {
    background: var(--badge-grey-bg);
    border-color: var(--border);
    color: var(--badge-grey-text);
}

body.app-shell .badge--ok {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: #a7f3d0;
}

body.app-shell .flash-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

body.app-shell .flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #a7f3d0;
}

/* App shell: Lesbare Kontraste (WCAG) — Primär: helle Schrift auf Brandfarbe; Sekundär: feste Fläche + dunkle Schrift */
body.app-shell .btn:not(.btn-secondary):not(.btn-danger) {
    color: var(--btn-text, var(--color-primary-text, #ffffff));
    background: var(--btn-bg, var(--color-primary));
    border: 1px solid transparent;
}

body.app-shell .btn:not(.btn-secondary):not(.btn-danger):hover {
    color: var(--btn-text, var(--color-primary-text, #ffffff));
    background: var(--btn-bg-hover, var(--color-primary-hover));
}

body.app-shell .btn:not(.btn-secondary):not(.btn-danger):focus-visible {
    outline: 2px solid var(--btn-bg, var(--color-primary));
    outline-offset: 2px;
}

body.app-shell .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
}

body.app-shell .btn-secondary:hover {
    background: var(--btn-secondary-hover);
    color: var(--btn-secondary-text);
    border-color: var(--border-color-strong);
}

body.app-shell .btn-secondary:focus-visible {
    outline: 2px solid var(--border-focus);
    outline-offset: 2px;
}

@media (max-width: 768px) {
    .app-frame {
        flex-direction: column;
    }

    .app-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border);
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem 0;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    }

    .app-sidebar-brand {
        border-bottom: none;
        margin-bottom: 0;
        padding: 0.25rem 1rem;
        flex: 1 1 auto;
    }

    .app-nav-heading {
        width: 100%;
        margin: 0.5rem 1rem 0;
    }

    .app-nav-block {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .app-nav-block--sub {
        border-left: none;
        margin-left: 0;
        padding-left: 0.65rem;
        width: 100%;
    }

    .app-sidebar-spacer {
        display: none;
    }

    .app-sidebar-logout {
        margin-left: auto;
    }
}

.link-list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--muted);
}

.link-list a:not(.btn) {
    color: var(--accent);
}

.info-box {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.info-box p {
    margin: 0;
}

.meta-line {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 0.8125rem;
    text-transform: capitalize;
}

.muted-inline {
    font-size: 0.85rem;
}

.field textarea {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
    resize: vertical;
    min-height: 6rem;
}

.field textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(61, 156, 240, 0.25);
}

.brand {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
}

.brand:hover {
    color: var(--accent);
}

.main {
    flex: 1;
}

.foot {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.8125rem;
    color: var(--muted);
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.panel h1 {
    margin: 0 0 0.5rem;
    font-size: 1.35rem;
    font-weight: 600;
}

.lead {
    margin: 0 0 1.5rem;
    color: var(--muted);
    font-size: 0.9375rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    margin-bottom: 0.4rem;
    color: var(--muted);
}

.field input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font: inherit;
}

.field input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(61, 156, 240, 0.25);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.1rem;
    border-radius: 8px;
    border: none;
    background: var(--btn-bg, var(--accent));
    color: var(--btn-text, #ffffff);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    background: var(--btn-bg-hover, var(--accent-hover));
    color: var(--btn-text, #ffffff);
}

.btn:focus-visible {
    outline: 2px solid var(--btn-bg, var(--accent));
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    color: var(--text);
    border-color: var(--muted);
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-top: 0.5rem;
}

.flash {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.flash-error {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #5c2a3a;
}

.flash-success {
    background: var(--success-bg);
    color: var(--success-text);
    border: 1px solid #2a5c45;
}

.landing {
    text-align: center;
    padding: 0.5rem 0 1rem;
}

.landing p {
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    align-items: center;
}

.auth-switch {
    margin: 0 0 1.25rem;
    font-size: 0.9375rem;
    color: var(--muted);
}

.auth-switch a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.customer-select-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.customer-select-item {
    margin: 0;
}

.customer-select-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--panel-bg, #121820);
    color: var(--text);
    font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.customer-select-card:hover {
    border-color: var(--accent);
}

.customer-select-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.customer-select-card__logo {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
}

.customer-select-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.customer-select-card__initials {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
}

.customer-select-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.customer-select-card__name {
    font-weight: 600;
}

.customer-select-card__role {
    font-size: 0.8125rem;
    color: var(--muted);
}

/* Editorial calendar & form (app shell) */
body.app-shell .panel--flush {
    padding: 0;
    overflow: hidden;
}

body.app-shell .panel--flush .cal-toolbar,
body.app-shell .panel--flush .cal-lead,
body.app-shell .panel--flush .cal-footer-actions {
    padding-left: 1.75rem;
    padding-right: 1.75rem;
}

body.app-shell .panel--flush .cal-lead {
    padding-bottom: 0;
    margin-top: 0;
}

.cal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.75rem 0.5rem;
    flex-wrap: wrap;
}

.cal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    flex: 1 1 auto;
    text-align: center;
}

.cal-nav-btn {
    flex: 0 0 auto;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border);
    background: #f1f5f9;
}

.cal-weekday {
    padding: 0.5rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    text-align: center;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: none;
}

.cal-cell {
    background: var(--surface);
    min-height: 7.5rem;
    padding: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cal-cell--pad {
    background: #f8fafc;
    min-height: 4rem;
}

.cal-cell--today {
    background: #eff6ff;
    box-shadow: inset 0 0 0 2px var(--accent);
}

.cal-cell-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
}

.cal-day-num {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.cal-add {
    font-size: 1rem;
    line-height: 1;
    text-decoration: none;
    color: var(--accent);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

.cal-add:hover {
    background: var(--accent-soft);
}

.cal-cell-items {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 0;
}

.cal-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0.35rem;
    border-radius: 6px;
    font-size: 0.75rem;
    text-decoration: none;
    color: var(--text);
    border-left: 3px solid var(--border);
    background: #f8fafc;
}

.cal-item:hover {
    background: #f1f5f9;
}

.cal-item--post {
    border-left-color: #2563eb;
}

.cal-item--reel {
    border-left-color: #7c3aed;
}

.cal-item--story {
    border-left-color: #ea580c;
}

.cal-item-time {
    font-weight: 600;
    color: var(--muted);
}

.cal-item-type {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

.cal-item-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    color: var(--text);
}

.cal-footer-actions {
    padding: 1rem 1.75rem 1.5rem;
}

.editorial-back {
    margin-bottom: 0.5rem;
}

.editorial-back a {
    color: var(--accent);
    text-decoration: none;
}

.editorial-back a:hover {
    text-decoration: underline;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.field--half {
    flex: 1 1 140px;
    margin-bottom: 1.25rem;
}

body.app-shell select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #fafbfc;
    color: var(--text);
    font: inherit;
}

body.app-shell select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

body.app-shell .btn-danger {
    background: #dc2626;
    color: #fff;
    margin-left: auto;
}

body.app-shell .btn-danger:hover {
    background: #b91c1c;
}

/* Instagram settings: OAuth connection card */
body.app-shell .ig-connect-section {
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

body.app-shell .ig-connect-heading,
body.app-shell .ig-form-heading {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
    letter-spacing: -0.01em;
}

body.app-shell .ig-connect-lead {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

body.app-shell .ig-connect-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius, 10px);
    max-width: 32rem;
}

body.app-shell .ig-connect-card__avatar-wrap {
    flex-shrink: 0;
}

body.app-shell .ig-connect-card__avatar {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

body.app-shell .ig-connect-card__avatar--placeholder {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

body.app-shell .ig-connect-card__body {
    flex: 1;
    min-width: 0;
}

body.app-shell .ig-connect-card__name {
    font-weight: 600;
    font-size: 0.95rem;
}

body.app-shell .ig-connect-card__username {
    font-size: 0.875rem;
    color: var(--muted);
}

body.app-shell .ig-connect-card__actions {
    margin: 0;
    margin-left: auto;
}

body.app-shell .ig-connect-card__actions .btn-danger {
    margin-left: 0;
}

body.app-shell .ig-editorial-form {
    margin-top: 0.5rem;
}

/* Admin: customer groups */
body.app-shell--admin .admin-form-section {
    margin-bottom: 0.5rem;
}

body.app-shell--admin .admin-table-actions {
    white-space: nowrap;
    text-align: right;
}

body.app-shell--admin .admin-table-actions a {
    margin-right: 0.75rem;
}

body.app-shell--admin .admin-inline-form {
    display: inline-block;
    margin: 0;
    vertical-align: middle;
}

body.app-shell--admin .admin-btn-compact {
    padding: 0.45rem 0.75rem;
    font-size: 0.8125rem;
}

/*
 * Impersonation banner — roles-shells-navigation.mdc §4.
 * Fixed to top, z-index 9999, non-dismissible, amber palette.
 */
.impersonation-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: 0.65rem 1rem;
    margin: 0 0 1rem;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 8px;
    color: #92400e;
    font-size: 0.9rem;
}

.impersonation-banner--top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #f59e0b;
    padding: 0.75rem 1.25rem;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.impersonation-banner__icon {
    margin-right: 0.35rem;
}

.impersonation-banner__scope {
    opacity: 0.75;
    margin-left: 0.35rem;
}

.impersonation-banner__btn {
    background: #92400e;
    color: #fef3c7;
    border: none;
    padding: 0.4rem 0.85rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.impersonation-banner__btn:hover,
.impersonation-banner__btn:focus-visible {
    background: #78350f;
    color: #fef3c7;
    text-decoration: none;
}

/* While impersonating, the top banner replaces the footer bar (§4/§5). */
body.is-impersonating .session-user-footer {
    display: none !important;
}

/* Push page content down so the fixed top banner does not overlay nav/content. */
body.is-impersonating {
    padding-top: 3rem;
}

.impersonation-banner--danger {
    background: #fee2e2;
    border-color: #f87171;
    color: #7f1d1d;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-badge--active {
    background: rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

.status-badge--pending {
    background: rgba(251, 191, 36, 0.2);
    color: #fde68a;
}

.status-badge--suspended {
    background: rgba(248, 113, 113, 0.2);
    color: #fecaca;
}

.admin-actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: flex-start;
}

.admin-actions-cell--stack {
    flex-direction: column;
    align-items: stretch;
    min-width: 12rem;
}

.admin-inline-form {
    display: inline;
}

.admin-reject-form {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.admin-reject-textarea {
    width: 100%;
    max-width: 16rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--panel-bg, #121820);
    color: var(--text);
    font: inherit;
    font-size: 0.8125rem;
    resize: vertical;
}

.admin-back-link {
    margin: 0 0 1rem;
    font-size: 0.9rem;
}

.admin-back-link a {
    color: var(--accent);
    text-decoration: none;
}

.admin-back-link a:hover {
    text-decoration: underline;
}

.admin-impersonate-form {
    margin-top: 0.75rem;
}

.impersonation-banner__btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
}

body.app-shell .impersonation-banner .btn-secondary {
    border-color: #d97706;
    color: #92400e;
}

body.app-shell .impersonation-banner .btn-secondary:hover {
    color: #451a03;
    border-color: #92400e;
}

@media (max-width: 900px) {
    .cal-cell {
        min-height: 5rem;
    }

    .cal-item-title {
        display: none;
    }
}

/* Planned posts list / grid */
.posts-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.posts-view-toggle {
    display: inline-flex;
    gap: 0.35rem;
}

body.app-shell .posts-view-toggle .btn-secondary.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.posts-table-wrap {
    overflow-x: auto;
    margin-top: 0.5rem;
}

.posts-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.posts-table th,
.posts-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.posts-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

body.app-shell--admin .posts-table th.admin-sortable-th {
    cursor: pointer;
    user-select: none;
}

body.app-shell--admin .posts-table th.admin-sortable-th:hover {
    color: var(--accent);
}

.posts-table a:not(.btn) {
    color: var(--accent);
}

.posts-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.posts-type--post {
    color: #2563eb;
}

.posts-type--reel {
    color: #7c3aed;
}

.posts-type--story {
    color: #ea580c;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.posts-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.posts-card:hover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.posts-card-date {
    font-size: 0.8rem;
    color: var(--muted);
}

.posts-card-type {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.posts-card-title {
    font-weight: 600;
    line-height: 1.3;
}

.posts-card-status {
    font-size: 0.8rem;
    color: var(--muted);
}

body.app-shell code {
    font-size: 0.85em;
    background: #f1f5f9;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Dashboard stats + quota (admin + customer) */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.stat-card {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fafbfc;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-card__value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

.stat-card__label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.35rem;
}

.h2-spaced {
    font-size: 1.15rem;
    margin: 0 0 0.75rem;
}

.dashboard-project-list {
    margin: 0;
    padding-left: 1.15rem;
}

body.app-shell--admin .dashboard-project-list {
    color: var(--text);
}

.project-dashboard-card {
    margin-top: 1rem;
}

.dashboard-muted {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 0.5rem;
}

.dashboard-account-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dashboard-account-item {
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-account-item:last-child {
    border-bottom: none;
}

.dashboard-account-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}

.dashboard-account-id {
    font-weight: 600;
}

.dashboard-account-meta {
    font-size: 0.85rem;
    color: var(--muted);
}

.dashboard-foot {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.quota-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    margin-top: 0.45rem;
    overflow: hidden;
}

.quota-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), #2563eb);
    border-radius: 4px;
    min-width: 0;
    transition: width 0.2s ease;
}

.quota-bar--warning .quota-bar__fill {
    background: linear-gradient(90deg, #ea580c, #dc2626);
}

/* Customer account detail */
.account-detail-page {
    max-width: 960px;
}

.account-detail-back {
    margin: 0 0 1rem;
}

.account-detail-back a {
    color: var(--accent);
    text-decoration: none;
}

.account-detail-back a:hover {
    text-decoration: underline;
}

.account-profile-card__main {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: flex-start;
}

.account-profile-card__avatar-wrap {
    flex-shrink: 0;
}

.account-profile-card__avatar,
.account-profile-card__avatar--ph {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    background: #f1f5f9;
}

.account-profile-card__avatar--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--muted);
}

.account-profile-card__title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

.account-profile-card__handle {
    font-weight: 400;
    font-size: 0.95rem;
    margin-left: 0.35rem;
}

.account-badge {
    display: inline-block;
    margin: 0.35rem 0 0.5rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 6px;
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #bae6fd;
}

.account-profile-card__bio {
    margin: 0.5rem 0 0.75rem;
    max-width: 42rem;
}

.account-profile-card__links a {
    color: var(--accent);
}

.account-profile-card__sync {
    margin: 0.75rem 0 0;
}

.account-detail-sync-btn {
    margin-left: 0.75rem;
    vertical-align: middle;
}

.account-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.account-kpi-card__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.account-kpi-card__value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
}

.account-kpi-card__delta {
    font-size: 0.8rem;
    margin-top: 0.35rem;
    color: var(--muted);
}

.account-kpi-card__delta.is-up {
    color: #15803d;
}

.account-kpi-card__delta.is-down {
    color: #b91c1c;
}

.account-chart-section {
    margin-top: 1.25rem;
}

.account-chart-wrap {
    position: relative;
    height: 280px;
    margin-top: 0.5rem;
}

.account-posts-section {
    margin-top: 1.25rem;
}

/* ——— Follower insights dashboard ——— */
.follower-insights-page {
    max-width: 960px;
}

.follower-insights-header .lead {
    margin-bottom: 0;
}

.fi-account-badge {
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-radius: 6px;
    background: var(--accent-soft);
    color: var(--accent);
}

.follower-insights-kpis {
    margin-top: 1rem;
}

.follower-insights-tabs-wrap {
    margin-top: 1.25rem;
}

.follower-insights-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1rem;
}

.fi-tab {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
}

.fi-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.fi-tab.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.follower-insights-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fi-days-filter {
    display: flex;
    gap: 0.35rem;
}

.fi-day-btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.fi-table-wrap {
    overflow-x: auto;
}

.fi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.fi-table th,
.fi-table td {
    padding: 0.6rem 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.fi-table th {
    color: var(--muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.fi-th-avatar {
    width: 3.5rem;
}

.fi-cell-avatar {
    width: 3.5rem;
}

.fi-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
}

.fi-avatar--ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
}

.fi-actions {
    white-space: nowrap;
}

.fi-actions .btn {
    margin-right: 0.25rem;
    margin-bottom: 0.15rem;
}

.btn-sm {
    padding: 0.25rem 0.55rem;
    font-size: 0.8rem;
}

.fi-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    vertical-align: middle;
}

.fi-badge--warn {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fcd34d;
}

.fi-badge--alert {
    background: var(--danger-bg);
    color: var(--danger-text);
    border: 1px solid #fecaca;
}

/* ——— Media crop tool (Cropper.js) ——— */
.crop-tool-page {
    max-width: 1100px;
}

.crop-tool-layout {
    display: grid;
    grid-template-columns: 1fr minmax(260px, 320px);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .crop-tool-layout {
        grid-template-columns: 1fr;
    }
}

.crop-tool-canvas-wrap {
    max-height: 70vh;
    overflow: hidden;
    background: #0f172a;
    border-radius: var(--radius);
}

body.app-shell .crop-tool-canvas-wrap {
    background: #e8ecf4;
}

.crop-tool-canvas-wrap img {
    max-width: 100%;
}

.crop-tool-aside-title {
    margin-top: 0;
}

.crop-tool-ratio-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.crop-ratio-btn {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
    justify-content: flex-start;
}

.crop-ratio-btn.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.crop-ratio-preview {
    flex-shrink: 0;
    border: 2px solid var(--border);
    border-radius: 4px;
    background: linear-gradient(135deg, #dbeafe 0%, #93c5fd 100%);
}

.crop-ratio-preview--1-1 {
    width: 28px;
    height: 28px;
}

.crop-ratio-preview--4-5 {
    width: 22px;
    height: 28px;
}

.crop-ratio-preview--191 {
    width: 34px;
    height: 18px;
}

.crop-tool-info.panel--inset,
.crop-tool-hint.panel--inset {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--accent-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.crop-tool-info-line {
    margin: 0.25rem 0 0;
}

.crop-tool-preview-block {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.crop-tool-ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.crop-tool-preview-img {
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    object-fit: contain;
    background: var(--accent-soft);
}

/* ——— Post history ——— */
.post-history-page {
    max-width: 1100px;
}

.post-history-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.post-history-filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-end;
}

.post-history-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--muted);
}

.post-history-label input,
.post-history-label select {
    min-width: 10rem;
}

.post-history-label--grow {
    flex: 1 1 200px;
}

.post-history-label--grow input {
    width: 100%;
}

.post-history-toolbar .btn.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.post-history-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 900px) {
    .post-history-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 520px) {
    .post-history-grid {
        grid-template-columns: 1fr;
    }
}

.post-history-card {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
}

.post-history-card__media {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    background: #0f172a;
}

body.app-shell .post-history-card__media {
    background: #e2e8f0;
}

.post-history-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-history-card__overlay {
    position: absolute;
    inset: 0;
    padding: 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent 55%);
    color: #f8fafc;
    opacity: 0;
    transition: opacity 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 0.8rem;
}

.post-history-card__media:hover .post-history-card__overlay,
.post-history-card__media:focus .post-history-card__overlay {
    opacity: 1;
}

.post-history-card__cap {
    margin: 0 0 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-history-card__meta,
.post-history-card__date {
    margin: 0;
}

.post-history-card__ph {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.9rem;
}

.post-history-table-wrap {
    overflow-x: auto;
}

.post-history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.post-history-table th,
.post-history-table td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    text-align: left;
}

.post-history-table th {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.post-history-th-thumb {
    width: 4.5rem;
}

.post-history-list-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid var(--border);
}

.post-history-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--accent-soft);
    color: var(--accent);
}

.post-history-badge--published {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.post-history-badge--synced-from-platform {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.post-history-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

/* ——— Grid preview (Instagram planner) ——— */
.grid-preview-page .grid-preview-header {
    margin-bottom: 1rem;
}

.grid-preview-sub {
    margin: 0.25rem 0 0;
}

.grid-preview-hint {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
}

.grid-preview-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (min-width: 960px) {
    .grid-preview-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}

.grid-preview-canvas {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 420px;
}

.grid-preview-cell {
    position: relative;
    aspect-ratio: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--border);
    border: 2px solid transparent;
}

.grid-preview-cell--grouped {
    border-color: var(--grid-group-color, var(--accent));
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.grid-preview-cell--published {
    cursor: default;
}

.grid-preview-cell--scheduled {
    cursor: grab;
}

.grid-preview-cell--scheduled:active {
    cursor: grabbing;
}

.grid-preview-cell--ghost {
    opacity: 0.45;
}

.grid-preview-cell--empty {
    background: repeating-linear-gradient(
        -45deg,
        var(--surface),
        var(--surface) 6px,
        var(--border) 6px,
        var(--border) 7px
    );
    opacity: 0.85;
}

.grid-preview-cell__inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-preview-cell__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-preview-cell__ph {
    font-size: 0.7rem;
    color: var(--muted);
    padding: 0.5rem;
    text-align: center;
}

.grid-preview-cell__empty-label {
    color: var(--muted);
    font-size: 1.25rem;
}

.grid-preview-cell__clock {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.grid-preview-cell__clock svg {
    width: 16px;
    height: 16px;
}

.grid-preview-cell--placeholder .grid-preview-cell__placeholder-inner {
    border: 2px dashed var(--border);
    border-radius: calc(var(--radius) - 2px);
    background: var(--surface);
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.grid-preview-cell__plus {
    font-size: 1.75rem;
    font-weight: 300;
    color: var(--muted);
    line-height: 1;
}

.grid-preview-msg {
    min-height: 1.25rem;
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}

.grid-preview-msg--ok {
    color: var(--success-text);
}

.grid-preview-msg--err {
    color: var(--danger-text);
}

.grid-preview-composer__size {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin: 0.75rem 0;
}

.grid-preview-composer__size label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
}

.grid-preview-composer__name,
.grid-preview-composer__color {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.grid-preview-composer__name input,
.grid-preview-composer__color input {
    width: 100%;
    max-width: 100%;
}

.grid-preview-composer__color input[type="color"] {
    height: 40px;
    padding: 4px;
    cursor: pointer;
}

.grid-preview-mini {
    display: grid;
    gap: 4px;
    margin: 0.5rem 0 0;
    max-width: 180px;
}

.grid-preview-mini__cell {
    aspect-ratio: 1;
    min-width: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--border);
}

.grid-preview-mini__cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-preview-library-heading {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
}

.grid-preview-library {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
}

.grid-preview-lib-item {
    display: block;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--border);
    aspect-ratio: 1;
}

.grid-preview-lib-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.grid-preview-lib-item:hover {
    border-color: var(--accent);
}

.grid-preview-lib-item.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}

.grid-preview-page .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ——— Media library ——— */
.media-library-page .media-library-sub {
    margin: 0.25rem 0 0;
}

.media-library-upload {
    position: relative;
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    margin-bottom: 1rem;
}

.media-library-upload:hover,
.media-library-upload:focus-within {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.media-library-upload.is-dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.media-library-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.media-library-upload__title {
    margin: 0 0 0.35rem;
}

.media-library-upload__formats,
.media-library-upload__rejected {
    font-size: 0.875rem;
    margin: 0.35rem 0 0;
}

.media-library-page .text-ok {
    color: var(--success-text);
}

.media-library-page .text-warn {
    color: #b45309;
}

.media-upload-queue {
    margin-bottom: 1rem;
}

.media-upload-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 0.5rem 0.75rem;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.media-upload-row__name {
    font-size: 0.85rem;
    grid-column: 1 / -1;
}

.media-upload-row__bar {
    grid-column: 1 / -1;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.media-upload-row__fill {
    height: 100%;
    width: 0;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.media-upload-row__state {
    grid-column: 1 / -1;
    font-size: 0.8rem;
    color: var(--muted);
}

.media-upload-row--ok .media-upload-row__fill {
    background: var(--success-text);
}

.media-upload-row--err .media-upload-row__fill {
    background: var(--danger-text);
}

.media-library-filters__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

.media-library-label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.media-library-label input,
.media-library-label select {
    min-width: 10rem;
}

.media-library-masonry {
    column-count: 2;
    column-gap: 1rem;
}

@media (min-width: 720px) {
    .media-library-masonry {
        column-count: 3;
    }
}

@media (min-width: 1100px) {
    .media-library-masonry {
        column-count: 4;
    }
}

.media-library-card {
    break-inside: avoid;
    margin-bottom: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    overflow: hidden;
}

.media-library-card__thumb-wrap {
    position: relative;
    background: var(--border);
}

.media-library-card__thumb {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.media-library-card__badges {
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    pointer-events: none;
}

.media-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
}

.media-badge--ratio.media-badge--warn {
    background: rgba(180, 83, 9, 0.92);
}

.media-badge--ready {
    background: rgba(4, 120, 87, 0.92);
    padding: 4px 6px;
}

.media-badge--warnico {
    background: rgba(202, 138, 4, 0.95);
    color: #1a1a1a;
    padding: 4px 6px;
}

.media-badge__icon {
    display: block;
}

.media-library-card__body {
    padding: 0.65rem 0.75rem 0.75rem;
}

.media-library-card__name {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 600;
    word-break: break-word;
}

.media-library-card__meta {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
}

.media-library-card__usage {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
}

.media-library-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

body.app-shell .media-library-card__actions .btn-danger {
    margin-left: 0;
}

.media-library-toast {
    min-height: 1.25rem;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.media-library-toast--ok {
    color: var(--success-text);
}

.media-library-toast--err {
    color: var(--danger-text);
}

/* Post composer (Instagram-style mockup) */
.post-composer-grid {
    display: grid;
    grid-template-columns: 1fr minmax(16rem, 22rem);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 960px) {
    .post-composer-grid {
        grid-template-columns: 1fr;
    }
}

.post-composer-radio {
    display: block;
    margin: 0.35rem 0;
    cursor: pointer;
}

.ig-phone-mockup {
    max-width: 280px;
    margin: 0 auto;
    border-radius: 28px;
    border: 2px solid var(--border);
    background: #0a0f1a;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.ig-phone-mockup--large {
    max-width: 340px;
}

.ig-phone-notch {
    height: 14px;
    background: #0a0f1a;
}

.ig-phone-screen {
    background: #0a0f1a;
    color: #f2f4f8;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}

.ig-phone-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 1px solid #1c2438;
}

.ig-phone-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e84855;
    box-shadow: 14px 0 0 #f5b942, 28px 0 0 #4cd964;
}

.ig-phone-title {
    font-weight: 600;
    margin-left: 0.25rem;
}

.ig-phone-media {
    flex: 1;
    min-height: 200px;
    background: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ig-phone-media img {
    width: 100%;
    height: auto;
    max-height: 280px;
    object-fit: cover;
    display: block;
}

.ig-phone-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    width: 100%;
    gap: 0;
}

.ig-phone-carousel img {
    flex: 0 0 100%;
    scroll-snap-align: start;
    max-height: 280px;
}

.ig-phone-media-placeholder {
    padding: 1rem;
    text-align: center;
}

.ig-phone-caption {
    padding: 0.75rem;
    font-size: 0.82rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    border-top: 1px solid #1c2438;
}

.post-composer-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-composer-thumb {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.post-composer-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.post-composer-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

/* Customer dashboard */
.dashboard-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

@media (max-width: 980px) {
    .dashboard-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .dashboard-summary-grid {
        grid-template-columns: 1fr;
    }
}

.dashboard-summary-card {
    padding: 1rem 1.1rem;
}

.dashboard-summary-label {
    margin: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.dashboard-summary-value {
    margin: 0.25rem 0 0;
    font-size: 1.9rem;
    font-weight: 700;
}

.dashboard-table {
    width: 100%;
}

.dashboard-inline-form {
    display: inline;
}

.dashboard-link-btn {
    appearance: none;
    background: none;
    border: 0;
    color: var(--accent);
    cursor: pointer;
    padding: 0;
    font: inherit;
    text-decoration: underline;
}

.dashboard-link-btn:hover {
    color: var(--accent-hover);
}

/* Customer dashboard — project cards */
.dashboard-projects-section {
    margin-top: 0.25rem;
}

.dashboard-projects-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.dashboard-projects-intro {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: var(--muted, var(--text-muted, #64748b));
    max-width: 42rem;
    line-height: 1.45;
}

.dashboard-projects-header__link {
    flex-shrink: 0;
}

.dashboard-project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.1rem;
}

.dashboard-project-card {
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border, var(--border-color, #e2e8f0));
    border-radius: var(--card-radius, var(--radius, 12px));
    background: var(--card-bg, #fff);
    box-shadow: var(--card-shadow, 0 1px 3px rgba(0, 0, 0, 0.06));
    overflow: hidden;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.dashboard-project-card:hover {
    border-color: var(--border-focus, var(--color-primary, #3b82f6));
    box-shadow: var(--card-shadow-hover, 0 4px 14px rgba(0, 0, 0, 0.1));
    transform: translateY(-2px);
}

.dashboard-project-card__accent {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--color-primary, #3b82f6), var(--color-accent, #f97316));
    flex-shrink: 0;
}

.dashboard-project-card__body {
    padding: 1.1rem 1.2rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.dashboard-project-card__header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.dashboard-project-card__avatar {
    flex-shrink: 0;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-on-primary, #fff);
    background: linear-gradient(135deg, var(--color-primary, #3b82f6), #6366f1);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

.dashboard-project-card__titles {
    min-width: 0;
}

.dashboard-project-card__name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 650;
    line-height: 1.25;
    color: var(--text-primary, var(--text, #0f172a));
    word-break: break-word;
}

.dashboard-project-card__id {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    color: var(--muted, var(--text-muted, #64748b));
    font-variant-numeric: tabular-nums;
}

.dashboard-project-card__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 1rem;
    margin: 0;
}

.dashboard-project-card__stat {
    margin: 0;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
    background: var(--bg-surface-2, rgba(148, 163, 184, 0.12));
    border: 1px solid var(--border-color, rgba(148, 163, 184, 0.25));
}

.dashboard-project-card__stat dt {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted, var(--text-muted, #64748b));
}

.dashboard-project-card__stat dd {
    margin: 0.2rem 0 0;
    font-size: 1.05rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-primary, var(--text, #0f172a));
}

.dashboard-project-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: auto;
    padding-top: 0.15rem;
}

.dashboard-project-card__actions .btn {
    font-size: 0.875rem;
    padding: 0.4rem 0.75rem;
}

/* Customer layout uses app-layout-body (not app-shell); still load app.css tokens — force readable buttons on project cards */
.dashboard-project-card__actions .btn-secondary {
    background: var(--btn-secondary-bg, #f1f5f9);
    color: var(--btn-secondary-text, #334155);
    border: 1px solid var(--btn-secondary-border, #e2e8f0);
}

.dashboard-project-card__actions .btn-secondary:hover {
    background: var(--btn-secondary-hover, #e2e8f0);
    color: var(--btn-secondary-text, #334155);
    border-color: var(--btn-secondary-border, #e2e8f0);
}

.dashboard-project-card__actions .btn:not(.btn-secondary):not(.btn-danger) {
    background: var(--btn-bg, var(--color-primary, var(--accent, #3b82f6)));
    color: var(--btn-text, var(--text-on-primary, #fff));
    border: 1px solid transparent;
}

.dashboard-project-card__actions .btn:not(.btn-secondary):not(.btn-danger):hover {
    background: var(--btn-bg-hover, var(--color-primary-hover, var(--accent-hover, #2563eb)));
    color: var(--btn-text, var(--text-on-primary, #fff));
}

@media (max-width: 520px) {
    .dashboard-project-card__stats {
        grid-template-columns: 1fr;
    }
}

.dashboard-activity-list {
    margin: 0;
    padding-left: 1rem;
}

.dashboard-activity-list li {
    margin: 0.3rem 0;
}

.platform-pill {
    display: inline-block;
    min-width: 2rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.15rem 0.45rem;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.18rem 0.5rem;
    border: 1px solid transparent;
}

.badge-draft {
    color: #c5ccdd;
    background: rgba(130, 140, 160, 0.2);
    border-color: rgba(130, 140, 160, 0.45);
}

.badge-scheduled {
    color: #a9d8ff;
    background: rgba(45, 140, 220, 0.22);
    border-color: rgba(45, 140, 220, 0.5);
}

.badge-posted {
    color: #9ee5c0;
    background: rgba(36, 145, 82, 0.22);
    border-color: rgba(36, 145, 82, 0.5);
}

.badge-failed {
    color: #ffc3c3;
    background: rgba(179, 45, 45, 0.22);
    border-color: rgba(179, 45, 45, 0.5);
}

/* New global app layout */
.app-layout-body {
    margin: 0;
    background: var(--bg-app);
    color: var(--text-primary);
    --bg: var(--bg-app);
    --surface: var(--bg-surface);
    --border: var(--border-color);
    --text: var(--text-primary);
    --muted: var(--text-secondary);
    --accent: var(--color-primary);
    --accent-hover: var(--color-primary-hover);
    --btn-bg: var(--color-primary);
    --btn-bg-hover: var(--color-primary-hover);
    --btn-text: var(--color-primary-text, #ffffff);
    --danger-bg: var(--color-danger-bg);
    --danger-text: var(--color-danger);
    --success-bg: var(--color-success-bg);
    --success-text: var(--color-success);
}

.app-layout-body .field label {
    color: var(--text-secondary);
}

.app-layout-body .field input,
.app-layout-body .field textarea,
.app-layout-body .field select {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--input-text);
}

.app-layout-body select {
    background: var(--input-bg);
    border-color: var(--border-color);
    color: var(--input-text);
}

.app-layout-body .panel {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.app-layout-body .lead {
    color: var(--text-secondary);
}

.app-layout-body .info-box {
    background: var(--bg-surface-2);
    border-color: var(--border-color);
    color: var(--text-secondary);
}

.app-layout-body .flash-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid var(--color-danger-border);
}

.app-layout-body .flash-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid var(--color-success-border);
}

.app-layout-body .btn:not(.btn-secondary):not(.btn-danger) {
    color: var(--btn-text, var(--color-primary-text, #ffffff));
    background: var(--btn-bg, var(--color-primary));
    border: 1px solid transparent;
}

.app-layout-body .btn:not(.btn-secondary):not(.btn-danger):hover {
    color: var(--btn-text, var(--color-primary-text, #ffffff));
    background: var(--btn-bg-hover, var(--color-primary-hover));
}

.app-layout-body .btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border: 1px solid var(--btn-secondary-border);
}

.app-layout-body .btn-secondary:hover {
    background: var(--btn-secondary-hover);
}

.app-layout-body .btn-danger {
    background: var(--color-danger);
    color: #fff;
    border: 1px solid transparent;
}

.app-layout-body .btn-danger:hover {
    background: #b91c1c;
}

.app-layout-header {
    position: sticky;
    top: 0;
    height: 60px;
    z-index: 60;
    background: var(--header-bg);
    color: var(--text-primary);
    border-bottom: 1px solid var(--header-border);
}

.app-layout-header-inner {
    height: 60px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px;
}

.app-layout-title {
    font-size: 16px;
    font-weight: 600;
}

.app-layout-user {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
}

.sidebar-mobile-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

.sidebar {
    width: 240px;
    min-height: calc(100vh - 60px);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 60px;
    left: 0;
    overflow-y: auto;
    transition: width 0.2s ease;
    z-index: 50;
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar.collapsed .nav-label,
.sidebar.collapsed .nav-section-title {
    display: none;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 9px 14px 9px 16px;
    border-radius: 8px;
    margin: 2px 8px;
    color: var(--sidebar-text);
    text-decoration: none;
    font-size: 0.875rem;
    transition: background 0.15s, color 0.15s;
}

.sidebar-nav-item:hover {
    background: var(--sidebar-hover-bg);
    color: var(--sidebar-text-hover);
}

.sidebar-nav-item.active {
    background: var(--sidebar-active-bg);
    color: var(--sidebar-active-text);
    font-weight: 600;
}

.sidebar-nav-item .nav-icon {
    width: 20px;
    flex-shrink: 0;
}

.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 12px 16px;
    color: var(--text-secondary);
    font-size: 13px;
    border-bottom: 1px solid var(--sidebar-border);
    margin-bottom: 8px;
    text-decoration: none;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sidebar-section-text);
    padding: 16px 16px 4px;
    margin-top: 8px;
}

.app-layout-main {
    margin-left: 240px;
    transition: margin-left 0.2s ease;
    min-height: calc(100vh - 60px);
}

.app-layout-main.sidebar-collapsed {
    margin-left: 60px;
}

.app-layout-main-inner {
    padding: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

.tab-bar {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--tab-border);
    margin-bottom: 24px;
}

.tab-btn {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s, border-color 0.15s;
}

.tab-btn:hover {
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--tab-active-color);
    border-bottom-color: var(--tab-active-color);
    font-weight: 600;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.section-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid transparent;
    user-select: none;
}

.section-header:hover {
    background: var(--bg-surface-2);
}

.section-card.open .section-header {
    border-bottom-color: var(--card-border);
}

.section-badge {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--badge-grey-bg);
    color: var(--badge-grey-text);
    font-size: 12px;
    font-weight: 600;
}

.section-chevron {
    margin-left: 8px;
    transition: transform 0.2s;
}

.section-card.open .section-chevron {
    transform: rotate(180deg);
}

.section-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s;
    padding: 0 20px;
}

.section-card.open .section-body {
    max-height: 2000px;
    padding: 20px;
}

.section-required-highlight {
    border-color: #f59e0b;
    box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}

@media (max-width: 900px) {
    .sidebar-mobile-toggle {
        display: inline-block;
    }

    .sidebar {
        width: 240px;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .app-layout-main,
    .app-layout-main.sidebar-collapsed {
        margin-left: 0;
    }
}

/* --- Module 22.5 Analyse dashboard --- */
.analyse-dashboard {
    max-width: 1200px;
    margin: 0 auto;
}

.analyse-dashboard__sub {
    margin-top: 0.35rem;
}

.analyse-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1rem 0 0.75rem;
}

.analyse-tab {
    border: 1px solid var(--border, #243050);
    background: var(--surface, #151d32);
    color: var(--text, #e8edf7);
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius, 10px);
    cursor: pointer;
    font-size: 0.9rem;
}

.analyse-tab:hover {
    border-color: var(--accent, #3d9cf0);
}

.analyse-tab.is-active {
    background: rgba(61, 156, 240, 0.15);
    border-color: var(--accent, #3d9cf0);
}

.analyse-panel[hidden] {
    display: none !important;
}

.analyse-panel.is-visible {
    display: block;
}

.analyse-overview-kpis {
    margin-top: 0.5rem;
}

.analyse-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.analyse-kpi-hint {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.analyse-gauge-wrap {
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.analyse-gauge {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.analyse-gauge--sm {
    width: 100px;
    height: 100px;
    margin: 0.5rem auto;
}

.analyse-gauge__value {
    position: relative;
    z-index: 1;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text, #e8edf7);
}

.analyse-gauge--sm .analyse-gauge__value {
    font-size: 1.35rem;
}

.analyse-score-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.analyse-score-bar {
    display: grid;
    grid-template-columns: 100px 1fr 52px;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.85rem;
}

.analyse-score-bar__track {
    height: 8px;
    background: var(--border, #243050);
    border-radius: 4px;
    overflow: hidden;
}

.analyse-score-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, #3d9cf0, #5eb0f7);
    border-radius: 4px;
}

.analyse-score-bar__num {
    text-align: right;
    color: var(--muted, #8b9ab8);
    font-size: 0.8rem;
}

.analyse-diff-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.analyse-diff-period {
    padding: 0.75rem 1rem;
}

.analyse-diff-period-title {
    margin: 0 0 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.analyse-diff-line {
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}

.analyse-diff-line.is-up .analyse-diff-delta {
    color: var(--success-text, #a8e6c5);
}

.analyse-diff-line.is-down .analyse-diff-delta {
    color: var(--danger-text, #f0b4c4);
}

.analyse-suggestions-list {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

.analyse-suggestion-item {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border, #243050);
}

.analyse-suggestion-priority {
    font-size: 0.7rem;
    background: var(--border, #243050);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    color: var(--muted, #8b9ab8);
}

.analyse-suggestion-text {
    flex: 1 1 200px;
    font-size: 0.9rem;
}

.analyse-timeline-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.analyse-metric-chips,
.analyse-range-presets {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.analyse-chip {
    font-size: 0.85rem;
    cursor: pointer;
}

.analyse-chart-panel {
    position: relative;
    min-height: 240px;
}

.analyse-diff-mini {
    margin-top: 0.75rem;
}

.analyse-follower-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.analyse-follower-donut-wrap {
    min-height: 220px;
}

.analyse-dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
    font-size: 0.9rem;
}

.analyse-dl dt {
    color: var(--muted, #8b9ab8);
}

.analyse-report-types {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 0.5rem;
}

.analyse-report-type-card {
    display: block;
    border: 1px solid var(--border, #243050);
    border-radius: var(--radius, 10px);
    padding: 0.5rem 0.65rem;
    cursor: pointer;
    font-size: 0.85rem;
}

.analyse-report-dates {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.analyse-format-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

@media (max-width: 640px) {
    .analyse-score-bar {
        grid-template-columns: 1fr;
    }

    .analyse-score-bar__num {
        text-align: left;
    }
}

/* ─── Auth-Card (helles Karten-Design für Login/Register/Setup) ──────── */
/* Gemeinsames Light-Card-Basis-Styling: angewendet auf .auth-card       */
/* (Login, Register, Setup, Select-Customer, Activate).                  */
/* Wizard-spezifische Elemente (Schritte, Pläne, Review) unten weiter    */
/* an .reg-wizard gebunden — register.php trägt beide Klassen.           */

.auth-card {
    /* Lokale Farb-Tokens (light card auf dark bg). */
    --reg-bg:         #ffffff;
    --reg-bg-soft:    #f8fafc;
    --reg-border:     #e2e8f0;
    --reg-border-str: #cbd5e1;
    --reg-text:       #1f2937;
    --reg-text-soft:  #475569;
    --reg-muted:      #64748b;
    --reg-primary:    #2563eb;
    --reg-primary-h:  #1d4ed8;
    --reg-primary-bg: #eff6ff;

    max-width: 760px;
    margin: 0 auto;
    background: var(--reg-bg);
    color: var(--reg-text);
    border: 1px solid var(--reg-border);
    border-radius: 14px;
    padding: 2rem clamp(1rem, 3vw, 2.25rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.auth-card h1,
.auth-card h2,
.auth-card h3 {
    color: var(--reg-text);
}

.auth-card .lead,
.auth-card .muted-inline {
    color: var(--reg-muted);
}

.auth-card .auth-switch {
    color: var(--reg-text-soft);
}

.auth-card .auth-switch a {
    color: var(--reg-primary);
}

.auth-card .auth-switch a:hover {
    color: var(--reg-primary-h);
    text-decoration: underline;
}

/* Form-Felder: weiß mit weichem Rahmen (überschreibt globale .field input) */
.auth-card .field label,
.auth-card .reg-radio-group legend {
    color: var(--reg-text-soft);
    font-weight: 600;
}

.auth-card .field input[type="text"],
.auth-card .field input[type="email"],
.auth-card .field input[type="tel"],
.auth-card .field input[type="password"],
.auth-card .field input[type="number"],
.auth-card .field input[type="url"],
.auth-card .field select,
.auth-card .field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--reg-border-str);
    background: var(--reg-bg);
    color: var(--reg-text);
    font: inherit;
    line-height: 1.3;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.auth-card .field input::placeholder {
    color: #94a3b8;
}

.auth-card .field input:hover,
.auth-card .field select:hover,
.auth-card .field textarea:hover {
    border-color: #94a3b8;
}

.auth-card .field input:focus,
.auth-card .field select:focus,
.auth-card .field textarea:focus {
    outline: none;
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
    background: var(--reg-bg);
}

.auth-card .field input:disabled,
.auth-card .field select:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
}

/* Native select-Pfeil (da appearance: none) */
.auth-card .field select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M6 8 0 0h12z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 10px 7px;
    padding-right: 2.2rem;
}

/* Checkbox-Label */
.auth-card .field label:has(input[type="checkbox"]) {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    color: var(--reg-text-soft);
    font-weight: 500;
    cursor: pointer;
}

.auth-card input[type="checkbox"],
.auth-card input[type="radio"] {
    accent-color: var(--reg-primary);
}

.reg-steps {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    counter-reset: reg-step;
    position: relative;
}

.reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: var(--reg-muted);
    font-size: 0.85rem;
    text-align: center;
    position: relative;
}

.reg-step::before {
    content: "";
    position: absolute;
    top: 14px;
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
    height: 2px;
    background: var(--reg-border);
    z-index: 0;
}

.reg-step:last-child::before {
    display: none;
}

.reg-step.is-done::before {
    background: var(--reg-primary);
}

.reg-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--reg-bg);
    color: var(--reg-muted);
    border: 2px solid var(--reg-border-str);
    font-weight: 600;
    font-size: 0.85rem;
    position: relative;
    z-index: 1;
}

.reg-step.is-active .reg-step__num {
    background: var(--reg-primary);
    color: #ffffff;
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
}

.reg-step.is-active .reg-step__label {
    color: var(--reg-text);
    font-weight: 600;
}

.reg-step.is-done .reg-step__num {
    background: var(--reg-primary);
    color: #ffffff;
    border-color: var(--reg-primary);
}

.reg-step.is-done .reg-step__label {
    color: var(--reg-text-soft);
}

.reg-step__label {
    line-height: 1.2;
}

.reg-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.reg-step-title {
    margin: 0.25rem 0 0.5rem;
    font-size: 1.15rem;
}

.reg-step-subtitle {
    margin: 0.75rem 0 0.25rem;
    font-size: 1rem;
    color: var(--text);
}

.reg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.reg-grid-plz-city {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
}

.reg-wizard .reg-required {
    color: #dc2626;
    font-weight: 700;
    margin-left: 0.1rem;
}

.reg-wizard .reg-optional {
    color: var(--reg-muted);
    font-weight: 400;
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.reg-wizard .reg-password-intro {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--reg-border);
}

.reg-wizard .reg-password-intro p {
    margin: 0 0 0.25rem;
    color: var(--reg-text);
}

.reg-wizard .reg-pw-rules {
    margin: 0.5rem 0 0;
    padding: 0.6rem 0.9rem 0.6rem 2rem;
    font-size: 0.82rem;
    color: var(--reg-text-soft);
    background: var(--reg-bg-soft);
    border: 1px solid var(--reg-border);
    border-radius: 8px;
    line-height: 1.55;
}

.reg-wizard .reg-pw-rules li::marker {
    color: var(--reg-primary);
}

.reg-wizard .reg-pw-rules code {
    background: var(--reg-bg);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    border: 1px solid var(--reg-border);
    font-family: "SFMono-Regular", "Consolas", "Monaco", monospace;
    font-size: 0.82em;
    color: var(--reg-text);
}

.reg-wizard .reg-pw-auto-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
}

.reg-wizard .reg-pw-auto-row input[type="text"] {
    flex: 1 1 auto;
    font-family: "SFMono-Regular", "Consolas", "Monaco", monospace;
    letter-spacing: 0.02em;
    background: var(--reg-bg-soft);
}

.reg-wizard .reg-pw-regen {
    flex: 0 0 auto;
    white-space: nowrap;
}

@media (max-width: 560px) {
    .reg-grid-2,
    .reg-grid-plz-city {
        grid-template-columns: 1fr;
    }

    .reg-steps {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.25rem;
    }

    .reg-step__label {
        font-size: 0.72rem;
    }
}

.reg-radio-group {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.reg-radio-group legend {
    padding: 0;
    margin: 0 0 0.35rem;
    color: var(--text);
    font-weight: 600;
}

.reg-wizard .reg-radio {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--reg-border-str);
    border-radius: 8px;
    cursor: pointer;
    background: var(--reg-bg);
    color: var(--reg-text-soft);
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.reg-wizard .reg-radio:hover {
    border-color: var(--reg-primary);
    background: var(--reg-bg-soft);
}

.reg-wizard .reg-radio input[type="radio"] {
    margin-top: 0.2rem;
}

.reg-wizard .reg-radio input[type="radio"]:checked + span {
    color: var(--reg-text);
}

.reg-wizard .reg-radio:has(input[type="radio"]:checked) {
    border-color: var(--reg-primary);
    background: var(--reg-primary-bg);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.reg-nav {
    justify-content: space-between;
    margin-top: 0.75rem;
}

.reg-next {
    background: var(--btn-bg, #2563eb);
    color: var(--btn-text, #ffffff);
    font-weight: 600;
    padding: 0.75rem 1.4rem;
    min-width: 140px;
}

.reg-next:hover {
    background: var(--btn-bg-hover, #1d4ed8);
}

/* Plan selection (step 3) */
.reg-wizard .reg-billing-cycle {
    margin-top: 0.25rem;
}

.reg-wizard .reg-cycle-toggle {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: var(--reg-bg-soft);
    border: 1px solid var(--reg-border);
    gap: 2px;
}

.reg-wizard .reg-cycle-opt {
    cursor: pointer;
}

.reg-wizard .reg-cycle-opt input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reg-wizard .reg-cycle-opt span {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    color: var(--reg-text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.reg-wizard .reg-cycle-opt input[type="radio"]:checked + span {
    background: var(--reg-primary);
    color: #ffffff;
}

.reg-wizard .reg-plan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.reg-wizard .reg-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.95rem 1rem 1rem;
    border: 2px solid var(--reg-border);
    border-radius: 10px;
    background: var(--reg-bg-soft);
    color: var(--reg-text);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.reg-wizard .reg-plan:hover {
    border-color: var(--reg-primary);
    background: var(--reg-bg);
}

.reg-wizard .reg-plan.is-selected {
    border-color: var(--reg-primary);
    background: var(--reg-primary-bg);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.reg-wizard .reg-plan input[type="radio"] {
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    accent-color: var(--reg-primary);
}

.reg-wizard .reg-plan__head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reg-wizard .reg-plan__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--reg-text);
}

.reg-wizard .reg-plan__badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #166534;
    background: #dcfce7;
    border: 1px solid #86efac;
    border-radius: 999px;
}

.reg-wizard .reg-plan__desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--reg-muted);
    line-height: 1.4;
}

.reg-wizard .reg-plan__price strong {
    font-size: 1.25rem;
    color: var(--reg-text);
}

.reg-wizard .reg-plan__per {
    color: var(--reg-muted);
    font-size: 0.8rem;
    margin-left: 0.25rem;
}

.reg-wizard .reg-plan__price-yearly {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.85rem;
    opacity: 0.85;
}

.reg-wizard .reg-payment-section {
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--reg-border);
}

.reg-wizard .reg-skip-note {
    margin: 0.75rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
    font-size: 0.9rem;
}

/* Review step */
.reg-wizard .reg-review {
    margin: 0.5rem 0 0.25rem;
    padding: 0;
    display: grid;
    gap: 0;
    border: 1px solid var(--reg-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--reg-bg-soft);
}

.reg-wizard .reg-review__row {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1rem;
    padding: 0.7rem 0.95rem;
    border-bottom: 1px solid var(--reg-border);
}

.reg-wizard .reg-review__row:last-child {
    border-bottom: none;
}

.reg-wizard .reg-review dt {
    color: var(--reg-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.reg-wizard .reg-review dd {
    margin: 0;
    color: var(--reg-text);
    font-weight: 500;
    word-break: break-word;
}

/* Sekundär-Button innerhalb der Auth-Card (hellere Variante) */
.auth-card .btn-secondary {
    background: var(--reg-bg);
    color: var(--reg-text-soft);
    border: 1px solid var(--reg-border-str);
}

.auth-card .btn-secondary:hover {
    background: var(--reg-bg-soft);
    color: var(--reg-text);
    border-color: var(--reg-muted);
}

/* Flash / Alert-Box in der Auth-Card: helle Variante */
.auth-card .flash-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-card .flash-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

@media (max-width: 560px) {
    .reg-review__row {
        grid-template-columns: 1fr;
        gap: 0.15rem;
    }
}

/* ─── Auth login (Freelancer-style: Google first, OR divider) ─────────── */

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.shell-marketing:has(.auth-login) {
    max-width: 420px;
    padding-top: 2.5rem;
}

.shell-marketing:has(.auth-login) .top {
    display: none;
}

.auth-login {
    max-width: 420px;
    padding: 2rem 1.75rem 1.75rem;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 8px 24px rgba(15, 23, 42, 0.06);
}

.auth-login__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    text-decoration: none;
    color: var(--reg-text);
}

.auth-login__brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-login__logo {
    display: block;
    filter: drop-shadow(0 3px 8px rgba(2, 47, 73, 0.2));
}

.auth-login__title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.02em;
}

.auth-login__lang {
    text-align: center;
    margin: -0.75rem 0 1rem;
    font-size: 0.8125rem;
}

.auth-login__social {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-login__social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 4px;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.auth-login__social-btn:hover {
    background: #f8f9fa;
    border-color: #c6c9cc;
    box-shadow: 0 1px 2px rgba(60, 64, 67, 0.15);
    color: #3c4043;
}

.auth-login__divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 0 1.25rem;
    color: var(--reg-text);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-login__divider::before,
.auth-login__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--reg-border);
}

.auth-login__form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.auth-login__field {
    position: relative;
}

.auth-login__field input {
    width: 100%;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border-radius: 4px;
    border: 1px solid var(--reg-border-str);
    background: var(--reg-bg);
    color: var(--reg-text);
    font: inherit;
    line-height: 1.3;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-login__field input:focus {
    outline: none;
    border-color: var(--reg-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.auth-login__field--password input {
    padding-right: 2.75rem;
}

.auth-login__pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #64748b;
    cursor: pointer;
}

.auth-login__pw-toggle:hover {
    color: var(--reg-text);
    background: #f1f5f9;
}

.auth-login__submit {
    width: 100%;
    min-height: 44px;
    margin-top: 0.35rem;
    border-radius: 4px;
    font-size: 0.9375rem;
    font-weight: 600;
}

.auth-login__footer {
    margin: 1.35rem 0 0;
    text-align: center;
    font-size: 0.9375rem;
}

.auth-login__footer a {
    font-weight: 600;
}
