/* =========================================================================
   OC Manager – Components
   Pfad: app/static/css/components.css
   Enthält: Buttons, Inputs, Cards, KPI-Tiles, Tabellen, Badges, Modals,
            Toasts, Tabs, Form-Sections, Terminal, Empty States.
   ========================================================================= */

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
    --btn-bg: var(--color-surface);
    --btn-fg: var(--color-text);
    --btn-border: var(--color-border-strong);
    --btn-bg-hover: var(--color-surface-muted);

    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: inherit;
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--duration-1) var(--ease),
                border-color var(--duration-1) var(--ease),
                color var(--duration-1) var(--ease);
}
.btn:hover { background: var(--btn-bg-hover); }
.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--color-brand-cyan-soft);
    border-color: var(--color-brand-cyan);
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
.btn svg { width: 14px; height: 14px; }

.btn--sm  { height: 30px; padding: 0 12px; font-size: var(--text-sm); }
.btn--lg  { height: 44px; padding: 0 20px; font-size: var(--text-md); }
.btn--icon { width: 36px; padding: 0; }
.btn--block { width: 100%; }

.btn--primary {
    --btn-bg: var(--color-brand-cyan);
    --btn-fg: white;
    --btn-border: var(--color-brand-cyan);
    --btn-bg-hover: var(--color-brand-cyan-hover);
}
.btn--primary:hover { border-color: var(--color-brand-cyan-hover); }

.btn--purple {
    --btn-bg: var(--color-brand-purple);
    --btn-fg: white;
    --btn-border: var(--color-brand-purple);
    --btn-bg-hover: var(--color-brand-purple-hover);
}
.btn--purple:hover { border-color: var(--color-brand-purple-hover); }

.btn--ghost {
    --btn-bg: transparent;
    --btn-border: transparent;
    --btn-fg: var(--color-text-muted);
}
.btn--ghost:hover { color: var(--color-text); background: var(--color-surface-muted); }

.btn--danger {
    --btn-bg: var(--color-surface);
    --btn-fg: var(--color-danger);
    --btn-border: var(--color-border-strong);
}
.btn--danger:hover { background: var(--color-danger-soft); border-color: var(--color-danger); }

.btn--success {
    --btn-bg: var(--color-success);
    --btn-fg: white;
    --btn-border: var(--color-success);
    --btn-bg-hover: #0B7A4A;
}
.btn--success:hover { border-color: #0B7A4A; }

/* ===================================================
   INPUTS / SELECTS / TEXTAREA
   =================================================== */
.input, .select, .textarea {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--text-base);
    transition: border-color var(--duration-1) var(--ease), box-shadow var(--duration-1) var(--ease);
}
.textarea { height: auto; padding: 8px 12px; min-height: 64px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--color-text-subtle); }
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--color-brand-cyan);
    box-shadow: 0 0 0 3px var(--color-brand-cyan-soft);
}
.input.mono, .input--mono { font-family: var(--font-mono); font-size: var(--text-sm); }
.input--sm { height: 32px; font-size: var(--text-sm); }

.input-changed { border-color: var(--color-warning); background: var(--color-warning-soft); }
.input-saved   { border-color: var(--color-success); background: var(--color-success-soft); }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B6374' d='M6 8L1.5 3.5h9z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

.label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--color-text);
    margin-bottom: 6px;
}
.field-help { font-size: var(--text-xs); color: var(--color-text-subtle); margin-top: 4px; line-height: 1.45; }

.form-field { display: flex; flex-direction: column; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.form-row .full { grid-column: 1 / -1; }

/* Search input with leading icon */
.input-search {
    position: relative;
}
.input-search .input { padding-left: 34px; }
.input-search svg {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    width: 14px; height: 14px; color: var(--color-text-subtle); pointer-events: none;
}

/* ===================================================
   CARDS
   =================================================== */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}
.card--flush { padding: 0; }
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--color-divider);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
}
.card-title { font-size: var(--text-md); font-weight: var(--weight-semibold); }
.card-subtitle { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: 2px; }
.card-body { padding: 18px; }
.card-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--color-divider);
    background: var(--color-surface-muted);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* ===================================================
   KPI TILES
   =================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.kpi {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex; flex-direction: column; gap: 4px;
    min-width: 0;
}
.kpi-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-subtle);
    font-weight: var(--weight-semibold);
}
.kpi-value {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.kpi-delta { font-size: var(--text-sm); color: var(--color-text-muted); }
.kpi-delta--up { color: var(--color-success); }
.kpi-delta--down { color: var(--color-danger); }

/* ===================================================
   TABLES
   =================================================== */
.table-wrap {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.table-toolbar {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-divider);
    flex-wrap: wrap;
}
.table-toolbar .input-search { flex: 1; min-width: 220px; }
.table-scroll { overflow-x: auto; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-base);
}
.table th {
    text-align: left;
    font-weight: var(--weight-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
    background: var(--color-surface-muted);
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-border);
    white-space: nowrap;
}
.table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-divider);
    vertical-align: middle;
    color: var(--color-text);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--color-surface-muted); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { width: 1%; white-space: nowrap; text-align: right; }
.table-cell-primary { font-weight: var(--weight-semibold); color: var(--color-text); }
.table-cell-meta { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ===================================================
   BADGES
   =================================================== */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 8px;
    height: 20px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    line-height: 1;
    background: var(--color-surface-muted);
    color: var(--color-text-muted);
    border: 1px solid var(--color-border);
}
.badge--success { background: var(--color-success-soft); color: var(--color-success); border-color: transparent; }
.badge--warning { background: var(--color-warning-soft); color: var(--color-warning); border-color: transparent; }
.badge--danger  { background: var(--color-danger-soft);  color: var(--color-danger);  border-color: transparent; }
.badge--info    { background: var(--color-info-soft);    color: var(--color-info);    border-color: transparent; }
.badge--cyan    { background: var(--color-brand-cyan-soft); color: var(--color-brand-cyan-hover); border-color: transparent; }
.badge--purple  { background: var(--color-brand-purple-soft); color: var(--color-brand-purple); border-color: transparent; }

.badge-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: currentColor; display: inline-block;
}

.kbd, .id-chip {
    font-family: var(--font-mono);
    font-size: 11px;
    background: var(--color-surface-muted);
    border: 1px solid var(--color-border);
    color: var(--color-text-muted);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

/* ===================================================
   MODALS
   =================================================== */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 22, 36, 0.45);
    z-index: var(--z-modal);
    display: flex;
    align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 100ms ease;
    overflow-y: auto;
}
.modal-backdrop.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-modal);
    width: 100%;
    max-width: 520px;
    max-height: calc(100vh - 40px);
    display: flex; flex-direction: column;
    overflow: hidden;
    transform: translateZ(0);
    contain: layout paint;
}
.modal--md { max-width: 680px; }
.modal--lg { max-width: 900px; }
.modal-header {
    padding: 18px 22px;
    border-bottom: 1px solid var(--color-divider);
    display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); }
.modal-close {
    width: 28px; height: 28px;
    display: grid; place-items: center;
    border: none; background: transparent;
    border-radius: var(--radius-md);
    color: var(--color-text-subtle); cursor: pointer;
}
.modal-close:hover { background: var(--color-surface-muted); color: var(--color-text); }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-footer {
    padding: 14px 22px;
    border-top: 1px solid var(--color-divider);
    background: var(--color-surface-muted);
    display: flex; justify-content: flex-end; gap: 8px;
}

/* ===================================================
   TOASTS
   =================================================== */
.toast-region {
    position: fixed; top: 72px; right: 20px;
    z-index: var(--z-toast);
    display: flex; flex-direction: column; gap: 8px;
    pointer-events: none;
}
.toast {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-info);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    font-size: var(--text-base);
    max-width: 360px;
    pointer-events: auto;
    animation: toastIn 160ms cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
    will-change: opacity, transform;
}
@keyframes toastIn {
    from { transform: translate3d(8px,0,0); opacity: 0; }
    to   { transform: translate3d(0,0,0); opacity: 1; }
}
.toast--success { border-left-color: var(--color-success); }
.toast--warning { border-left-color: var(--color-warning); }
.toast--error   { border-left-color: var(--color-danger); }
.toast--info    { border-left-color: var(--color-info); }

/* ===================================================
   FLASH ALERTS (Server-rendered)
   =================================================== */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: var(--text-base);
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    display: flex; align-items: flex-start; gap: 10px;
    border-left: 3px solid var(--color-info);
}
.alert svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }
.alert--success { border-left-color: var(--color-success); background: var(--color-success-soft); }
.alert--warning { border-left-color: var(--color-warning); background: var(--color-warning-soft); }
.alert--error   { border-left-color: var(--color-danger);  background: var(--color-danger-soft); }
.alert--info    { border-left-color: var(--color-info);    background: var(--color-info-soft); }

/* ===================================================
   TABS
   =================================================== */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 18px;
    overflow-x: auto;
}
.tab {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: var(--text-base);
    font-weight: var(--weight-medium);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: inline-flex; align-items: center; gap: 6px;
    white-space: nowrap;
    font-family: inherit;
}
.tab:hover { color: var(--color-text); }
.tab.active { color: var(--color-brand-purple); border-bottom-color: var(--color-brand-purple); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===================================================
   FORM SECTIONS (collapsible groups in modals & settings)
   =================================================== */
.form-section {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    margin-bottom: 14px;
    overflow: hidden;
}
.form-section-header {
    padding: 12px 16px;
    background: var(--color-surface-muted);
    border-bottom: 1px solid var(--color-border);
    display: flex; align-items: center; gap: 8px;
    font-size: var(--text-base);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    cursor: pointer; user-select: none;
}
.form-section-header.no-collapse { cursor: default; }
.form-section-toggle {
    margin-left: auto;
    color: var(--color-text-subtle);
    transition: transform var(--duration-2) var(--ease);
}
.form-section[data-open="true"] .form-section-toggle { transform: rotate(90deg); }
.form-section-body { padding: 16px; }
.form-section[data-open="false"] .form-section-body { display: none; }
.form-section[data-open="false"] .form-section-header { border-bottom: none; }

/* ===================================================
   TERMINAL (instance OCC commands)
   =================================================== */
.terminal {
    background: #0E1117;
    border-radius: var(--radius-lg);
    overflow: hidden;
    font-family: var(--font-mono);
    color: #C7D2D9;
    border: 1px solid #1F2630;
}
.terminal-header {
    background: #161B22;
    padding: 8px 14px;
    display: flex; align-items: center; gap: 8px;
    border-bottom: 1px solid #1F2630;
    font-size: var(--text-sm);
    color: #9AA4B0;
}
.terminal-dots { display: flex; gap: 6px; }
.terminal-dots span { width: 10px; height: 10px; border-radius: 50%; background: #3A434F; }
.terminal-host { font-size: var(--text-sm); color: #9AA4B0; }
.terminal-actions { margin-left: auto; display: flex; gap: 6px; }
.terminal-body {
    padding: 14px 16px;
    font-size: var(--text-sm);
    line-height: 1.55;
    max-height: 360px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}
.terminal-line { display: block; }
.terminal-line--prompt::before { content: '$ '; color: #40C4D9; }
.terminal-line--ok { color: #6EE7B7; }
.terminal-line--err { color: #FCA5A5; }
.terminal-line--dim { color: #6B7280; }

/* OCC command grid */
.occ-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
}
.occ-btn {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-surface);
    cursor: pointer;
    display: flex; flex-direction: column; gap: 2px;
    transition: border-color var(--duration-1) var(--ease), background var(--duration-1) var(--ease);
    font-family: inherit;
}
.occ-btn:hover { border-color: var(--color-brand-cyan); background: var(--color-brand-cyan-soft); }
.occ-btn-name { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--color-text); font-weight: var(--weight-medium); }
.occ-btn-desc { font-size: var(--text-xs); color: var(--color-text-muted); }

/* ===================================================
   EMPTY STATE
   =================================================== */
.empty {
    text-align: center;
    padding: 56px 20px;
    color: var(--color-text-muted);
}
.empty-icon {
    width: 44px; height: 44px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--color-surface-muted);
    display: grid; place-items: center;
    color: var(--color-text-subtle);
}
.empty-icon svg { width: 20px; height: 20px; }
.empty-title { font-size: var(--text-md); font-weight: var(--weight-semibold); color: var(--color-text); margin-bottom: 4px; }
.empty-desc { font-size: var(--text-base); margin-bottom: 16px; }

/* ===================================================
   META ROW (label/value pairs in detail pages)
   =================================================== */
.meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px 24px;
}
.meta-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.meta-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-subtle);
    font-weight: var(--weight-semibold);
}
.meta-value {
    font-size: var(--text-base);
    color: var(--color-text);
    word-break: break-word;
}
.meta-value.mono { font-family: var(--font-mono); font-size: var(--text-sm); }

/* ===================================================
   PROGRESS BAR (quota)
   =================================================== */
.progress {
    height: 6px; width: 100%;
    background: var(--color-surface-muted);
    border-radius: var(--radius-pill);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: var(--color-brand-cyan);
    border-radius: var(--radius-pill);
    transition: width var(--duration-3) var(--ease);
}
.progress-bar--warn { background: var(--color-warning); }
.progress-bar--danger { background: var(--color-danger); }

/* ===================================================
   UNSAVED CHANGES BAR (settings)
   =================================================== */
.unsaved-bar {
    position: fixed; bottom: 0; left: var(--sidebar-width); right: 0;
    background: var(--color-text);
    color: white;
    padding: 12px 24px;
    display: none;
    align-items: center; justify-content: space-between;
    z-index: var(--z-toast);
}
.unsaved-bar.visible { display: flex; }
@media (max-width: 960px) {
    .unsaved-bar { left: 0; }
}

/* ===================================================
   BRAND BLOCK (logo + text, used everywhere)
   =================================================== */
.brand-mark {
    flex-shrink: 0;
    display: block;
    border-radius: 13px;
    box-shadow: 0 4px 16px rgba(65, 18, 99, 0.12);
}
.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    color: var(--color-text);
    line-height: 1.1;
    letter-spacing: -0.01em;
}
.brand-subtitle {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    line-height: 1.2;
    margin-top: 2px;
}

/* ===================================================
   STANDALONE PAGES (login, 2fa, forgot password)
   Split-screen: hero left, form right
   =================================================== */
.auth-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--color-bg);
}

/* Form-only side (always visible) */
.auth-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    min-height: 100vh;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.auth-card--md { max-width: 480px; }

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
/* Legacy gradient mark (used as fallback in setup_2fa) */
.auth-brand-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-purple));
    display: grid; place-items: center;
    color: white; font-weight: var(--weight-bold); font-size: 22px;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 16px rgba(65, 18, 99, 0.15);
}
.auth-brand-text {
    font-weight: var(--weight-bold);
    font-size: var(--text-md);
    color: var(--color-text);
    text-align: center;
    letter-spacing: -0.01em;
}
.auth-brand-sub {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    text-align: center;
    margin-top: -8px;
}
.auth-title {
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    text-align: center;
    margin: 0;
    letter-spacing: -0.02em;
}
.auth-subtitle {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    text-align: center;
    margin: -10px 0 0;
    line-height: 1.5;
}
.auth-footer {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    margin-top: 6px;
}
.auth-link {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    text-align: right;
}
.auth-link a { color: var(--color-brand-purple); font-weight: var(--weight-medium); }
.auth-link a:hover { color: var(--color-brand-purple-hover); text-decoration: underline; }

/* ===== HERO PANEL (left side, ≥900px only) ===== */
.auth-hero {
    display: none;
    background: linear-gradient(135deg, #1A0830 0%, #2D0D45 50%, #411263 100%);
    color: white;
    padding: 64px 56px;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    isolation: isolate;
}
.auth-hero-content {
    position: relative;
    z-index: 3;
    max-width: 460px;
}
.auth-hero-footer {
    position: relative;
    z-index: 3;
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.5);
    margin-top: auto;
}
.auth-hero-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 60px;
}
.auth-hero-headline {
    font-size: 48px;
    font-weight: var(--weight-bold);
    line-height: 1.05;
    letter-spacing: -0.035em;
    margin-bottom: 14px;
    color: white;
}
.auth-hero-headline .highlight {
    background: linear-gradient(135deg, var(--color-brand-cyan), #B891F1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.auth-hero-tagline {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.65);
    font-weight: var(--weight-medium);
    letter-spacing: 0.01em;
}

/* Hero image (BW-Tech illustration, behind bubbles) */
.auth-hero-image {
    position: absolute;
    z-index: 2;
    bottom: -8%;
    right: -8%;
    width: 70%;
    max-width: 540px;
    height: auto;
    pointer-events: none;
    user-select: none;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
    will-change: transform;
    animation: heroImageFloat 6s ease-in-out infinite;
}
@keyframes heroImageFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50%      { transform: translate3d(0, -12px, 0); }
}

/* Animated lila bubbles in the hero — inspired by bw.tech */
.auth-hero-blob {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(50px);
    will-change: transform;
    mix-blend-mode: screen;
}
.auth-hero-blob--1 {
    width: 540px; height: 540px;
    background: radial-gradient(circle, rgba(184, 145, 241, 0.65), transparent 70%);
    top: -200px; right: -160px;
    animation: blobFloat1 18s ease-in-out infinite;
}
.auth-hero-blob--2 {
    width: 460px; height: 460px;
    background: radial-gradient(circle, rgba(160, 100, 230, 0.55), transparent 70%);
    bottom: -160px; left: -120px;
    animation: blobFloat2 22s ease-in-out infinite;
}
.auth-hero-blob--3 {
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(64, 196, 217, 0.45), transparent 70%);
    top: 35%; left: 20%;
    animation: blobFloat3 26s ease-in-out infinite;
}
.auth-hero-blob--4 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(216, 180, 255, 0.5), transparent 65%);
    top: 55%; right: 5%;
    animation: blobFloat4 20s ease-in-out infinite;
}
.auth-hero-blob--5 {
    width: 240px; height: 240px;
    background: radial-gradient(circle, rgba(184, 145, 241, 0.7), transparent 65%);
    top: 12%; left: 38%;
    animation: blobFloat5 16s ease-in-out infinite;
    filter: blur(40px);
}
.auth-hero-blob--6 {
    width: 180px; height: 180px;
    background: radial-gradient(circle, rgba(140, 80, 220, 0.65), transparent 65%);
    bottom: 18%; right: 28%;
    animation: blobFloat6 14s ease-in-out infinite;
    filter: blur(35px);
}
@keyframes blobFloat1 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(-40px, 70px, 0) scale(1.1); }
    66%      { transform: translate3d(50px, 40px, 0) scale(0.95); }
}
@keyframes blobFloat2 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(70px, -60px, 0) scale(1.15); }
}
@keyframes blobFloat3 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33%      { transform: translate3d(90px, -50px, 0) scale(0.9); }
    66%      { transform: translate3d(-60px, 40px, 0) scale(1.08); }
}
@keyframes blobFloat4 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(-80px, -40px, 0) scale(1.18); }
}
@keyframes blobFloat5 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    25%      { transform: translate3d(40px, 60px, 0) scale(1.1); }
    50%      { transform: translate3d(-30px, 80px, 0) scale(0.9); }
    75%      { transform: translate3d(-60px, 20px, 0) scale(1.05); }
}
@keyframes blobFloat6 {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50%      { transform: translate3d(60px, -40px, 0) scale(1.2); }
}

/* Subtle moving dot grid */
.auth-hero-pattern {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    animation: gridDrift 60s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0; }
    to   { background-position: 280px 280px; }
}

/* Logo subtle glow pulse */
.auth-hero-brand .brand-mark {
    box-shadow:
        0 8px 28px rgba(64, 196, 217, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    animation: logoPulse 4s ease-in-out infinite;
}
@keyframes logoPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(64, 196, 217, 0.35), 0 0 0 1px rgba(255,255,255,0.08) inset; }
    50%      { box-shadow: 0 12px 40px rgba(64, 196, 217, 0.55), 0 0 0 1px rgba(255,255,255,0.12) inset; }
}

/* Hero entrance animation */
.auth-hero-content > * {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
    animation: heroFadeUp 600ms cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.auth-hero-content > *:nth-child(1) { animation-delay: 100ms; }
.auth-hero-content > *:nth-child(2) { animation-delay: 200ms; }
.auth-hero-content > *:nth-child(3) { animation-delay: 300ms; }
.auth-hero-content > *:nth-child(4) { animation-delay: 400ms; }
@keyframes heroFadeUp {
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Form entrance */
.auth-card {
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    animation: formFadeUp 500ms cubic-bezier(0.4, 0, 0.2, 1) 200ms forwards;
}
@keyframes formFadeUp {
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* Primary button shimmer hover effect */
.auth-card .btn--primary {
    position: relative;
    overflow: hidden;
}
.auth-card .btn--primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        100deg,
        transparent 30%,
        rgba(255,255,255,0.25) 50%,
        transparent 70%
    );
    transform: translateX(-110%);
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}
.auth-card .btn--primary:hover::after {
    transform: translateX(110%);
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {
    .auth-hero-blob, .auth-hero-pattern, .auth-hero-brand .brand-mark,
    .auth-hero-content > *, .auth-card, .auth-card .btn--primary::after {
        animation: none !important;
    }
    .auth-hero-content > *, .auth-card { opacity: 1; transform: none; }
}

@media (min-width: 900px) {
    .auth-wrap {
        grid-template-columns: 5fr 6fr;
    }
    .auth-hero { display: flex; }
}

/* Mobile-only top brand badge in form */
.auth-mobile-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 8px;
}
@media (min-width: 900px) {
    .auth-mobile-brand { display: none; }
}

/* Polished input states */
.auth-card .input {
    height: 42px;
    font-size: var(--text-md);
}
.auth-card .label {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
}

/* ===================================================
   TOGGLE SWITCH
   =================================================== */
.switch {
    position: relative;
    display: inline-block;
    width: 36px; height: 20px;
    flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: var(--color-border-strong);
    transition: var(--duration-2);
    border-radius: var(--radius-pill);
}
.switch-slider::before {
    position: absolute;
    content: '';
    height: 14px; width: 14px;
    left: 3px; bottom: 3px;
    background: white;
    transition: var(--duration-2);
    border-radius: 50%;
}
.switch input:checked + .switch-slider { background: var(--color-success); }
.switch input:checked + .switch-slider::before { transform: translateX(16px); }
.switch input:disabled + .switch-slider { opacity: 0.5; cursor: not-allowed; }

/* ===================================================
   GRID HELPERS
   =================================================== */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.grid-2-1 {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
}
@media (max-width: 800px) {
    .grid-2, .grid-3, .grid-2-1 { grid-template-columns: 1fr; }
}

/* ===================================================
   BREADCRUMB
   =================================================== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: var(--text-sm);
    color: var(--color-text-subtle);
    margin-bottom: 8px;
}
.breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
}
.breadcrumb a:hover { color: var(--color-brand-purple); }
.breadcrumb svg { color: var(--color-text-subtle); }

/* ===================================================
   META-LIST EXTENSION (used in detail pages)
   =================================================== */
.meta-list--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 18px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

/* ===================================================
   LOG VIEWER (terminal-like, used in logs pages)
   =================================================== */
.log-viewer {
    background: #0E1117;
    color: #C7D2D9;
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.55;
    padding: 14px 16px;
    border-radius: var(--radius-lg);
    overflow: auto;
    max-height: 560px;
    white-space: pre-wrap;
    word-break: break-word;
    border: 1px solid #1F2630;
}
.log-line { display: block; }
.log-line--info { color: #C7D2D9; }
.log-line--success { color: #6EE7B7; }
.log-line--warning { color: #FCD34D; }
.log-line--error { color: #FCA5A5; }
.log-line--time { color: #6B7280; }

/* ===================================================
   CARDS (slight hover for clickable cards)
   =================================================== */
.card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color var(--duration-1) var(--ease), box-shadow var(--duration-1) var(--ease);
}
.card-link:hover {
    border-color: var(--color-brand-cyan);
    box-shadow: var(--shadow-sm);
}
.card--inactive {
    opacity: 0.7;
    background: var(--color-surface-muted);
}

/* ===================================================
   PAGINATION
   =================================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 18px;
    flex-wrap: wrap;
}
.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    min-width: 32px;
    padding: 0 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: var(--text-sm);
    background: var(--color-surface);
    transition: background var(--duration-1) var(--ease);
}
.pagination-link:hover { background: var(--color-surface-muted); color: var(--color-text); }
.pagination-link.active {
    background: var(--color-brand-purple);
    border-color: var(--color-brand-purple);
    color: white;
    font-weight: var(--weight-semibold);
}
.pagination-link.disabled { opacity: 0.5; pointer-events: none; }

/* ===================================================
   SIDEBAR USER (clickable button at bottom of sidebar)
   =================================================== */
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    width: 100%;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    border-top: 1px solid var(--color-divider);
    transition: background var(--duration-1) var(--ease);
}
.sidebar-user:hover { background: var(--color-surface-muted); }
.sidebar-user[aria-expanded="true"] { background: var(--color-surface-muted); }
.sidebar-user-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-brand-cyan), var(--color-brand-purple));
    color: white;
    display: grid; place-items: center;
    font-size: var(--text-sm); font-weight: var(--weight-bold);
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(65, 18, 99, 0.18);
}
.sidebar-user-info { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sidebar-user-name {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sidebar-user-role {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}
.sidebar-user-chev {
    color: var(--color-text-subtle);
    transition: transform var(--duration-1) var(--ease);
    flex-shrink: 0;
}
.sidebar-user[aria-expanded="true"] .sidebar-user-chev { transform: rotate(180deg); }

/* ===================================================
   OVERLAY (mobile sidebar)
   =================================================== */
.sidebar-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 22, 36, 0.4);
    z-index: calc(var(--z-sidebar) - 1);
}
@media (max-width: 960px) {
    .sidebar.open ~ .sidebar-overlay,
    body.sidebar-open .sidebar-overlay { display: block; }
}

/* ===================================================
   UTILITY CLASSES
   =================================================== */
.text-muted { color: var(--color-text-muted); }
.text-subtle { color: var(--color-text-subtle); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-danger { color: var(--color-danger); }
.text-cyan { color: var(--color-brand-cyan-hover); }
.text-purple { color: var(--color-brand-purple); }
.text-mono { font-family: var(--font-mono); font-size: var(--text-sm); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.w-full { width: 100%; }
.hidden { display: none; }
.no-wrap { white-space: nowrap; }
.gap-row > * + * { margin-top: 8px; }

/* ===================================================
   STATUS DOT (small inline status indicator)
   =================================================== */
.status-dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-text-subtle);
    margin-right: 6px;
}
.status-dot--success { background: var(--color-success); }
.status-dot--warning { background: var(--color-warning); }
.status-dot--danger { background: var(--color-danger); }
.status-dot--info { background: var(--color-info); }

/* ===================================================
   MOBILE & RESPONSIVE OPTIMIZATIONS
   =================================================== */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .occ-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
    .form-row { grid-template-columns: 1fr; }
    .form-row .full { grid-column: 1; }
}

/* Mobile (≤ 768px) */
@media (max-width: 768px) {
    /* Tighter spacing */
    .content { padding: 16px 14px 60px; }
    .page-header { gap: 10px; margin-bottom: 16px; }
    .page-header h1 { font-size: var(--text-xl); }
    .page-header-actions { flex-wrap: wrap; gap: 6px; }
    .page-header-actions .btn { font-size: var(--text-sm); padding: 0 10px; height: 30px; }

    /* KPI tiles stack 2-up on mobile, 1-up on smaller */
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }
    .kpi { padding: 10px 12px; }
    .kpi-value { font-size: var(--text-xl); }
    .kpi-label { font-size: 10px; }

    /* Tables: keep horizontal scroll, smaller font */
    .table { font-size: var(--text-sm); }
    .table th, .table td { padding: 8px 10px; }
    .table th { font-size: 10px; }

    /* Toolbar wraps */
    .table-toolbar { padding: 8px 10px; gap: 6px; }
    .table-toolbar .input-search { min-width: 100%; flex: 1 1 100%; }
    .table-toolbar .select { flex: 1; min-width: calc(50% - 4px); }
    .table-toolbar form { flex-direction: column; }
    .table-toolbar form > * { width: 100%; }

    /* Modals: full-width with margin */
    .modal-backdrop { padding: 12px; align-items: flex-start; padding-top: 24px; }
    .modal { max-height: calc(100vh - 48px); border-radius: var(--radius-lg); }
    .modal-header { padding: 14px 16px; }
    .modal-body { padding: 16px; }
    .modal-footer {
        padding: 12px 16px;
        flex-direction: column-reverse;
        gap: 6px;
    }
    .modal-footer .btn { width: 100%; justify-content: center; }

    /* Cards & containers */
    .card { padding: 14px; }
    .card-body { padding: 14px; }
    .card-header { padding: 12px 14px; flex-wrap: wrap; }

    /* Meta-list inline becomes stacked */
    .meta-list--inline {
        gap: 12px;
        padding: 12px 14px;
    }
    .meta-list--inline .meta-item { flex: 1 1 calc(50% - 6px); }

    /* Form sections */
    .form-section-header { padding: 10px 14px; font-size: var(--text-sm); }
    .form-section-body { padding: 14px; }

    /* Topbar */
    .topbar { padding: 0 14px; gap: 10px; }
    .topbar-title { font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-user span { display: none; }

    /* Sidebar: full slide-in with overlay */
    .sidebar { width: 280px; left: -300px; }
    .sidebar.open { left: 0; }

    /* Buttons: adjust sizes */
    .btn { font-size: var(--text-sm); height: 30px; padding: 0 10px; }
    .btn--sm { height: 24px; padding: 0 8px; font-size: 11px; }
    .btn--lg { height: 36px; padding: 0 14px; font-size: var(--text-base); }

    /* OCC grid 1-up */
    .occ-grid { grid-template-columns: 1fr; }

    /* Terminal: reduce height */
    .terminal-body { max-height: 280px; padding: 12px 14px; }
    .log-viewer { max-height: 50vh !important; padding: 12px 14px; }

    /* Breadcrumb wraps */
    .breadcrumb { font-size: var(--text-xs); flex-wrap: wrap; }

    /* Pagination compact */
    .pagination-link { height: 28px; min-width: 28px; padding: 0 8px; font-size: var(--text-xs); }

    /* Auth-card full-width on mobile */
    .auth-card { padding: 24px 20px; max-width: 100%; }
    .auth-title { font-size: var(--text-xl); }

    /* Unsaved-bar: stack on mobile */
    .unsaved-bar {
        flex-direction: column;
        gap: 8px;
        padding: 12px 16px;
        text-align: center;
    }
    .unsaved-bar > div { width: 100%; justify-content: center; }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
    .kpi-grid { grid-template-columns: 1fr; }
    .meta-list--inline .meta-item { flex: 1 1 100%; }
    .meta-list { grid-template-columns: 1fr; }
    .table th, .table td { padding: 6px 8px; }
    .table th { font-size: 9px; }
    .auth-card { padding: 18px 16px; }
    .auth-brand { gap: 8px; }
    .auth-brand-mark { width: 40px; height: 40px; }
}

/* Touch targets: ensure minimum 44px tap area on mobile */
@media (max-width: 768px) and (hover: none) and (pointer: coarse) {
    .btn--sm { min-height: 32px; }
    .sidebar-link { padding: 12px 10px; min-height: 44px; }
    .tab { padding: 12px 14px; min-height: 44px; }
    select.select { min-height: 36px; }
    input.input { min-height: 36px; }
}

/* Force tables to never break out of viewport */
.table-wrap, .card { max-width: 100%; overflow: visible; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.content { overflow-x: hidden; }

/* Ensure modal-backdrop scrolls on small screens if modal is tall */
.modal-backdrop { overflow-y: auto; }

/* Selects: native dropdown improvements */
.select {
    -webkit-appearance: none;
    -moz-appearance: none;
    text-overflow: ellipsis;
    max-width: 100%;
}
.select option { background: var(--color-surface); color: var(--color-text); }

/* Long text in cells should not break layout */
.table td { word-break: break-word; }
.id-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: middle; }
.meta-value { overflow-wrap: break-word; min-width: 0; }

/* ===================================================
   PRICE-ROW (used in products create/edit modals)
   =================================================== */
.price-row {
    display: grid;
    grid-template-columns: 1fr 100px 130px 100px 1fr 130px 36px;
    gap: 8px;
    align-items: end;
}
@media (max-width: 1024px) {
    .price-row { grid-template-columns: 1fr 1fr; }
    .price-row .form-field:last-of-type,
    .price-row > button { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
    .price-row { grid-template-columns: 1fr; }
}

/* ===================================================
   PRODUCT GRID (cards on products page)
   =================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}
@media (max-width: 480px) {
    .products-grid { grid-template-columns: 1fr; }
}

/* ===================================================
   SETTINGS-FIELD (label/input grid)
   =================================================== */
.setting-row {
    display: grid;
    grid-template-columns: minmax(220px, 280px) 1fr;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-divider);
}
@media (max-width: 768px) {
    .setting-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ===================================================
   DROPDOWN MENU (Action menus, context menus)
   =================================================== */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 200px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 4px;
    z-index: var(--z-dropdown);
    display: none;
    flex-direction: column;
    gap: 1px;
}
.dropdown-menu.open { display: flex; }
.dropdown-menu--up { top: auto; bottom: calc(100% + 4px); }
.dropdown-menu--left { right: auto; left: 0; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--color-text);
    font-family: inherit;
    font-size: var(--text-sm);
    text-align: left;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: background var(--duration-1) var(--ease);
    width: 100%;
    white-space: nowrap;
    text-decoration: none;
}
.dropdown-item:hover:not(:disabled) { background: var(--color-surface-muted); }
.dropdown-item:disabled { opacity: 0.5; cursor: not-allowed; }
.dropdown-item--danger { color: var(--color-danger); }
.dropdown-item--danger:hover:not(:disabled) { background: var(--color-danger-soft); }
.dropdown-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.dropdown-divider {
    height: 1px;
    background: var(--color-divider);
    margin: 4px 0;
}
.dropdown-label {
    padding: 6px 12px 4px;
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.dropdown-user-info {
    padding: 10px 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dropdown-user-name {
    font-weight: var(--weight-semibold);
    font-size: var(--text-base);
    color: var(--color-text);
    line-height: 1.2;
}
.dropdown-user-role {
    font-size: var(--text-xs);
    color: var(--color-text-subtle);
}

