/* bluWorkSpace v3.0 - main.css */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
a { text-decoration: none; }

:root {
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-text: #0f172a;
    --color-muted: #64748b;
    --color-border: #e2e8f0;
    --color-border-soft: #eef2f7;
    --color-primary: #2952CC;
    --color-primary-600: #2244BB;
    --color-primary-50: #EEF2FF;
    --color-accent: #4B7BEC;
    --color-success: #15803d;
    --color-warning: #b45309;
    --color-danger: #b91c1c;
    --color-danger-bg: #fef2f2;
    --color-success-bg: #f0fdf4;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 18px -8px rgba(15, 23, 42, 0.18);
    --shadow-lg: 0 24px 60px -28px rgba(15, 23, 42, 0.30);

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;

    --font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    font-size: 14px;
}

.hidden { display: none !important; }
.muted { color: var(--color-muted); }
.link {
    color: var(--color-accent);
    text-decoration: none;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}
.link:hover { text-decoration: none; }

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: 120ms;
    background: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.btn-primary:hover { background: var(--color-primary-600); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--color-text); }
.btn-ghost:hover { background: var(--color-border-soft); }
.btn-danger { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ----- Auth ----- */
.auth-screen {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(circle at 0% 0%, rgba(11, 58, 130, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(37, 99, 235, 0.06), transparent 50%),
        var(--color-bg);
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
}
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand h1 { font-size: 22px; font-weight: 700; margin: 16px 0 4px; font-family: var(--font-heading); }
.auth-tagline { color: var(--color-muted); font-size: 13px; margin: 0; }
.brand-mark {
    width: 56px; height: 56px; border-radius: 16px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff; font-weight: 800; font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto;
    box-shadow: var(--shadow);
}
.brand-mark svg { width: 58%; height: 58%; }
.brand-mark.sm { width: 36px; height: 36px; border-radius: 10px; margin: 0; }

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--color-border-soft);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
}
.auth-tab {
    background: transparent; border: 0; cursor: pointer;
    font: inherit; font-weight: 600; padding: 8px;
    border-radius: 10px;
    color: var(--color-muted);
    transition: 120ms;
}
.auth-tab.is-active {
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.auth-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--color-muted); }
.field input, .field select, .field textarea {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    font: inherit;
    color: var(--color-text);
    width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid var(--color-primary-50);
    border-color: var(--color-primary);
}
.field span:first-child { color: var(--color-text); font-weight: 500; }
.field .hint { color: var(--color-muted); font-size: 12px; font-weight: 400; }

.password-wrap { position: relative; }
.password-wrap input { padding-right: 40px; }
.password-toggle {
    position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
    background: transparent; border: 0; padding: 6px; cursor: pointer;
    color: var(--color-muted);
    border-radius: 6px;
}
.password-toggle:hover { color: var(--color-text); background: var(--color-border-soft); }

.field-row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--color-text); }
.checkbox input { accent-color: var(--color-primary); }
.auth-note { color: var(--color-muted); font-size: 12px; margin: 0; text-align: center; }
.auth-footer { color: var(--color-muted); font-size: 12px; margin-top: 24px; }

/* ----- App shell ----- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.app-header {
    display: flex; align-items: center; gap: 16px;
    padding: 12px 24px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 50;
}
.app-header-left { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.app-title-block { display: flex; flex-direction: column; line-height: 1.1; }
.app-title { font-weight: 700; font-size: 16px; }
.app-version { font-size: 11px; color: var(--color-muted); }

.app-nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.nav-item {
    background: transparent; border: 0; cursor: pointer;
    font: inherit; font-weight: 500; font-size: 13px;
    color: var(--color-muted);
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    transition: 120ms;
}
.nav-item:hover { background: var(--color-border-soft); color: var(--color-text); }
.nav-item.is-active { background: var(--color-primary-50); color: var(--color-primary); }

.app-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 10px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-muted);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 120ms;
    text-decoration: none;
}
.icon-btn:hover { color: var(--color-text); border-color: var(--color-text); }

.user-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px 4px 4px;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    font-size: 13px;
}
.user-avatar {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: #fff; font-weight: 600; font-size: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.user-name {
    max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ----- Search overlay ----- */
.search-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 100;
    padding-top: 14vh;
    display: flex; justify-content: center; align-items: flex-start;
}
.search-box {
    width: min(640px, 90vw);
    background: var(--color-surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    display: flex; align-items: center; gap: 12px;
    color: var(--color-muted);
}
.search-box input {
    border: 0; outline: 0; background: transparent; flex: 1;
    font: inherit; font-size: 16px; color: var(--color-text);
}
.search-box kbd {
    background: var(--color-border-soft);
    border-radius: 6px;
    font-size: 11px;
    padding: 2px 8px;
    color: var(--color-muted);
    font-family: inherit;
}

/* ----- Main + panes ----- */
.app-main {
    flex: 1;
    padding: 28px max(24px, calc((100vw - 1280px) / 2));
}
.pane { display: none; }
.pane.is-active { display: block; }
.pane-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 20px; gap: 16px; flex-wrap: wrap;
}
.pane-header h2 { font-size: 22px; margin: 0 0 4px 0; font-family: var(--font-heading); }
.pane-sub { color: var(--color-muted); margin: 0; font-size: 14px; }
.pane-section { margin-top: 32px; }
.section-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 16px;
}
.section-head h3 { font-size: 16px; font-weight: 600; margin: 0; }

/* ----- Stat cards ----- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 8px;
}
.stat-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 20px;
    cursor: pointer;
    transition: 120ms;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-label { color: var(--color-muted); font-size: 13px; }
.stat-value { font-size: 28px; font-weight: 700; margin-top: 4px; }

/* ----- Tile grid ----- */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.tile {
    position: relative;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: 120ms;
    user-select: none;
    display: flex; flex-direction: column;
    min-height: 132px;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--color-primary-50); }
.tile:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.tile-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.tile-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--color-primary-50);
    color: var(--color-primary);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}
.tile-icon img { width: 100%; height: 100%; object-fit: cover; }
.tile-name {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.tile-desc {
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile-foot {
    display: flex; justify-content: space-between; align-items: center;
    margin-top: auto; padding-top: 10px;
    border-top: 1px solid var(--color-border-soft);
    font-size: 11px;
    color: var(--color-muted);
}
.badge {
    display: inline-block; padding: 2px 8px;
    border-radius: 6px;
    background: var(--color-border-soft);
    color: var(--color-muted);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.badge.cat { background: var(--color-primary-50); color: var(--color-primary); }
.badge.sub { background: #f0fdf4; color: var(--color-success); }
.badge.shared { background: #fef3c7; color: var(--color-warning); }
.tile.dragging { opacity: 0.5; }
.tile.drag-over { outline: 2px dashed var(--color-primary); outline-offset: -4px; }

/* ----- Filter row ----- */
.filter-row {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 20px;
}
.filter-chip {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit; font-size: 13px;
    transition: 120ms;
}
.filter-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.filter-chip.is-active {
    background: var(--color-primary);
    color: #fff; border-color: var(--color-primary);
}

/* ----- Subsidiaries ----- */
.sub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.sub-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px 20px;
    cursor: pointer;
    transition: 120ms;
}
.sub-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.sub-card h4 { margin: 0 0 4px; font-weight: 600; font-size: 15px; }
.sub-card p { color: var(--color-muted); margin: 0 0 14px; font-size: 13px; }
.sub-card .open { font-size: 13px; color: var(--color-primary); font-weight: 600; }

/* ----- Empty state ----- */
.empty {
    text-align: center; padding: 40px;
    color: var(--color-muted);
    background: var(--color-surface);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
}

/* ----- Modal ----- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 200;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
}
.modal {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: min(560px, 100%);
    max-height: 80vh;
    display: flex; flex-direction: column;
    padding: 24px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.modal-head h3 { margin: 0; }
.icon-btn.close {
    border: 0; background: transparent; font-size: 24px; line-height: 1;
    width: 32px; height: 32px;
}
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.checkbox-list {
    overflow: auto;
    margin: 16px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    max-height: 360px;
}
.checkbox-list label {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-soft);
    cursor: pointer;
}
.checkbox-list label:last-child { border-bottom: 0; }
.checkbox-list label:hover { background: var(--color-border-soft); }

/* ----- Toasts ----- */
#toast-container {
    position: fixed; bottom: 24px; right: 24px;
    display: flex; flex-direction: column; gap: 10px;
    z-index: 300;
    pointer-events: none;
}
.toast {
    background: var(--color-text);
    color: #fff;
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
    max-width: 360px;
    font-size: 13px;
    pointer-events: auto;
    animation: toast-in 200ms ease-out;
}
.toast.success { background: var(--color-success); }
.toast.error { background: var(--color-danger); }
.toast.warning { background: var(--color-warning); }
@keyframes toast-in {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* ----- Request-account screen ----- */
.request-screen {
    min-height: 100vh;
    padding: 24px max(24px, calc((100vw - 880px) / 2));
    background:
        radial-gradient(circle at 0% 0%, rgba(41, 82, 204, 0.08), transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(75, 123, 236, 0.06), transparent 50%),
        var(--color-bg);
}
.request-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px;
}
.request-brand {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--color-text); font-weight: 700; font-size: 16px;
}
.request-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 32px;
    max-width: 880px;
    margin: 0 auto;
}
.request-intro { margin-bottom: 28px; text-align: center; }
.request-intro h1 {
    font-family: var(--font-heading);
    font-size: 24px; font-weight: 700;
    margin: 0 0 8px;
}
.request-intro p { color: var(--color-muted); margin: 0; line-height: 1.55; }
.request-intro-success h1 { color: var(--color-text); }
.request-section-h {
    font-size: 14px; font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin: 8px 0 -4px;
}

/* ----- Shared form utilities (request-account + admin) ----- */
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row > .field { flex: 1; min-width: 180px; }
.form-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    padding-top: 12px; border-top: 1px solid var(--color-border-soft);
}

/* ----- Auth split layout (login page) ----- */
.auth-split {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.auth-hero {
    position: sticky;
    top: 0;
    min-height: 100vh;
    align-self: start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 56px 52px;
    background: linear-gradient(160deg, #17349e 0%, #2952CC 55%, #3e6ddf 100%);
    overflow: hidden;
}
.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(255,255,255,0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 45%);
    pointer-events: none;
}
.auth-hero-brand {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 48px;
    position: relative;
}
.auth-hero-brand .brand-mark { margin: 0; flex-shrink: 0; }
.auth-hero-name {
    font-family: var(--font-heading);
    font-size: 18px; font-weight: 700;
    color: rgba(255,255,255,0.92);
    margin: 0;
}
.auth-hero-headline {
    font-family: var(--font-heading);
    font-size: 34px; font-weight: 800;
    color: #fff;
    line-height: 1.2; letter-spacing: -0.02em;
    margin: 0 0 16px;
    position: relative;
}
.auth-hero-sub {
    color: rgba(255,255,255,0.68);
    font-size: 14px; line-height: 1.65;
    margin: 0 0 44px;
    max-width: 340px;
    position: relative;
}
.auth-hero-features {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 14px;
    position: relative;
}
.auth-hero-features li {
    display: flex; align-items: center; gap: 12px;
    color: rgba(255,255,255,0.84); font-size: 13.5px;
    line-height: 1.4;
}
.feat-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.14);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: rgba(255,255,255,0.9);
}
.auth-hero-foot {
    margin-top: auto; padding-top: 36px;
    color: rgba(255,255,255,0.35); font-size: 12px;
    position: relative;
}

.auth-panel {
    display: flex; flex-direction: column;
    background: var(--color-surface);
    min-height: 100vh;
}
.auth-panel-nav {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 52px;
    border-bottom: 1px solid var(--color-border-soft);
    flex-shrink: 0;
}
.auth-panel-nav .brand-mark { margin: 0; }
.auth-panel-body {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 52px;
}
.auth-form-wrap { width: 100%; max-width: 360px; }
.auth-form-header { margin-bottom: 28px; }
.auth-form-header h2 {
    font-family: var(--font-heading);
    font-size: 26px; font-weight: 700;
    color: var(--color-text);
    margin: 0 0 6px;
}
.auth-form-header p { color: var(--color-muted); margin: 0; font-size: 14px; }

/* ----- Inline auth alert ----- */
.auth-alert {
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 16px;
    display: flex; align-items: flex-start; gap: 10px;
    line-height: 1.5;
    animation: alertIn 150ms ease-out;
}
@keyframes alertIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-alert-error {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border: 1px solid rgba(185,28,28,0.2);
}
.auth-alert-success {
    background: var(--color-success-bg);
    color: var(--color-success);
    border: 1px solid rgba(21,128,61,0.2);
}
.auth-alert svg { flex-shrink: 0; margin-top: 1px; }

/* ----- Field validation states ----- */
.field.has-error input, .field.has-error select, .field.has-error textarea {
    border-color: var(--color-danger);
    background: var(--color-danger-bg);
}
.field.has-error input:focus, .field.has-error select:focus {
    outline-color: rgba(185,28,28,0.15);
    border-color: var(--color-danger);
}
.field-error-msg {
    color: var(--color-danger); font-size: 12px; font-weight: 500;
    margin-top: -2px;
}

/* ----- Auth switch link ----- */
.auth-switch {
    text-align: center; margin-top: 24px;
    font-size: 13px; color: var(--color-muted);
}
.auth-switch a { color: var(--color-primary); font-weight: 600; }

/* ----- Button loading state ----- */
.btn.is-loading {
    pointer-events: none; opacity: 0.75;
    position: relative;
}
.btn.is-loading .btn-text { opacity: 0; }
.btn.is-loading::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 16px; height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- Password strength meter ----- */
.password-strength { margin-top: 5px; }
.pw-bar {
    height: 3px; border-radius: 2px;
    background: var(--color-border); overflow: hidden; margin-bottom: 5px;
}
.pw-bar-fill {
    height: 100%; border-radius: 2px;
    transition: width 200ms ease, background 200ms ease;
    width: 0%;
}
.pw-bar-fill.s-weak   { width: 33%; background: var(--color-danger); }
.pw-bar-fill.s-fair   { width: 66%; background: var(--color-warning); }
.pw-bar-fill.s-strong { width: 100%; background: var(--color-success); }
.pw-strength-text { font-size: 11px; color: var(--color-muted); }
.pw-strength-text.s-weak   { color: var(--color-danger); }
.pw-strength-text.s-fair   { color: var(--color-warning); }
.pw-strength-text.s-strong { color: var(--color-success); }

/* ----- Section dividers (request account) ----- */
.request-section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0 20px;
}
.request-section-divider span {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.07em;
    color: var(--color-muted); white-space: nowrap;
}
.request-section-divider::before,
.request-section-divider::after {
    content: ''; flex: 1; height: 1px;
    background: var(--color-border);
}
.request-section-divider:first-child::before { display: none; }

.request-card-v2 {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.request-intro-v2 { margin-bottom: 8px; }
.request-intro-v2 h1 {
    font-family: var(--font-heading);
    font-size: 24px; font-weight: 700;
    margin: 0 0 8px;
}
.request-intro-v2 p { color: var(--color-muted); margin: 0; line-height: 1.55; font-size: 14px; }

.request-pw-hint {
    font-size: 12px; color: var(--color-muted);
    background: var(--color-border-soft);
    border-radius: 8px; padding: 10px 12px;
    line-height: 1.5; margin-bottom: 0;
}

/* ----- Mobile ----- */
@media (max-width: 860px) {
    .auth-split {
        grid-template-columns: 1fr;
    }
    .auth-hero {
        position: static; min-height: auto;
        padding: 28px 28px 24px;
        align-self: auto;
    }
    .auth-hero-headline { font-size: 24px; margin-bottom: 0; }
    .auth-hero-sub { display: none; }
    .auth-hero-features { display: none; }
    .auth-hero-foot { display: none; }
    .auth-hero-brand { margin-bottom: 16px; }
    .auth-panel-nav { padding: 16px 28px; }
    .auth-panel-body { padding: 32px 28px; align-items: flex-start; }
    .auth-form-wrap { max-width: 100%; }
    .request-card-v2 { padding: 24px; }
}
@media (max-width: 720px) {
    .app-header { gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
    .app-nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; }
    .app-main { padding: 20px 14px; }
    .pane-header h2 { font-size: 18px; }
    .nav-item span { display: none; }
    .user-name { display: none; }
    .request-card { padding: 20px; }
    .request-intro h1 { font-size: 20px; }
}
@media (max-width: 480px) {
    .auth-hero { padding: 20px 20px 20px; }
    .auth-hero-headline { font-size: 20px; }
    .auth-panel-nav { padding: 14px 20px; }
    .auth-panel-body { padding: 24px 20px; }
    .auth-form-header h2 { font-size: 22px; }
    .request-card-v2 { padding: 20px; }
    .request-screen { padding: 16px; }
    .form-row { flex-direction: column; gap: 14px; }
}
