:root {
    --bg: #f6f8fb;
    --panel: #ffffff;
    --panel-soft: #f1f5f9;
    --text: #0f172a;
    --muted: #64748b;
    --line: #dbe3ef;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --success: #059669;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.hidden {
    display: none !important;
}

.space-shell {
    height: 100vh;
    overflow: hidden;
}

.login-layout {
    min-height: 100vh;
    overflow-y: auto;
}

.dashboard {
    height: 100%;
    overflow: hidden;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    background: #f8fafc;
}

.brand-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 56px;
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.88), rgba(15, 23, 42, 0.96)),
        url("https://workcosmo.in/src/images/app_recruit.png") center / cover;
    color: #ffffff;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.brand-lockup img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    object-fit: contain;
    background: #ffffff;
}

.brand-lockup.compact {
    color: var(--text);
}

.brand-copy {
    max-width: 680px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.brand-panel .eyebrow {
    color: #bfdbfe;
}

h1,
h2,
p {
    margin-top: 0;
}

.brand-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(40px, 5vw, 68px);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.brand-copy p:last-child {
    max-width: 560px;
    color: #dbeafe;
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
}

.login-card {
    align-self: center;
    margin: 40px;
    padding: 48px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    width: calc(100% - 80px);
    max-width: 440px;
    justify-self: center;
}

.login-card h2 {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

label {
    display: grid;
    gap: 6px;
    margin-bottom: 20px;
}

label span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

button[type="submit"],
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
}

button[type="submit"] {
    width: 100%;
    margin-top: 12px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2), 0 2px 4px -1px rgba(37, 99, 235, 0.1);
    transition: all 0.2s ease;
}

button[type="submit"]:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 12px -1px rgba(37, 99, 235, 0.3), 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

button[type="submit"]:active {
    transform: translateY(1px);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.link-button {
    display: block;
    margin: 18px auto 0;
    border: 0;
    background: transparent;
    color: #2563eb;
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px;
    transition: color 0.15s ease;
}

.link-button:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.feedback {
    margin: 18px 0 0;
    padding: 12px;
    border: 1px solid #fecaca;
    border-radius: 8px;
    background: #fff1f2;
    color: #be123c;
    font-size: 13px;
    font-weight: 800;
}

.dashboard {
    display: flex;
    flex-direction: column;
    height: 100%;
    background:
        radial-gradient(ellipse 80% 50% at 20% -10%, rgba(37, 99, 235, 0.18), transparent),
        radial-gradient(ellipse 60% 40% at 90% 10%, rgba(168, 85, 247, 0.14), transparent),
        radial-gradient(ellipse 50% 30% at 50% 100%, rgba(16, 185, 129, 0.1), transparent),
        linear-gradient(160deg, #eef2ff 0%, #f8fafc 40%, #f0fdf4 100%);
    background-attachment: fixed;
}

.dashboard-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px 36px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    min-height: 64px;
    flex-shrink: 0;
}

.dashboard-brand {
    flex-shrink: 0;
}

.dashboard-brand img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.dashboard-brand span {
    font-size: 15px;
    font-weight: 900;
}

.workspace-top-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
}

.workspace-top-info h1 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.workspace-top-info p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.user-top-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.role-badge {
    display: inline-flex;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px !important;
    font-weight: 800 !important;
    text-transform: capitalize;
}

.user-top-info>div {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.user-top-info small {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.user-top-info span {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.top-bar-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.top-bar-button:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #0f172a;
}

.dashboard-main {
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

.dashboard-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 40px 40px 200px;
    max-width: 960px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 64px);
}

.dashboard-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
    padding: 36px 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.92) 0%, rgba(124, 58, 237, 0.88) 55%, rgba(16, 185, 129, 0.85) 100%);
    color: #ffffff;
    box-shadow: 0 24px 60px rgba(37, 99, 235, 0.22);
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("https://workcosmo.in/src/images/app_recruit.png") center / cover;
    opacity: 0.12;
    mix-blend-mode: overlay;
}

.hero-copy {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    color: #bfdbfe !important;
    margin-bottom: 8px;
}

.dashboard-hero h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-subtitle {
    margin: 0;
    font-size: 16px;
    color: #dbeafe;
    font-weight: 500;
}

.hero-badge {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.status-pill {
    display: inline-flex;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(167, 243, 208, 0.5);
    color: #ecfdf5;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 0;
}

.dashboard-dock {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: 0;
    height: auto;
    min-height: 0;
    pointer-events: none;
    width: min(920px, calc(100% - 48px));
}

.modules-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px 32px;
    width: 100%;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 28px;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    pointer-events: auto;
}

.dock-module {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    max-width: 180px;
    height: 110px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    cursor: pointer;
    transition: all 0.22s ease;
    text-decoration: none;
    color: inherit;
    padding: 12px 16px;
}

.dock-module:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
    background: rgba(255, 255, 255, 1);
}

.dock-module.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.dock-module i {
    font-size: 36px;
    margin-bottom: 10px;
}

.dock-module-label {
    font-size: 12px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.04em;
    color: #0f172a;
    text-transform: uppercase;
}

.dock-module[data-module="hire"] {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.05) 100%);
    border-color: rgba(37, 99, 235, 0.25);
}

.dock-module[data-module="hire"] i {
    color: #2563eb;
}

.dock-module[data-module="core"] {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: rgba(168, 85, 247, 0.25);
}

.dock-module[data-module="core"] i {
    color: #a855f7;
}

.dock-module[data-module="perform"] {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: rgba(16, 185, 129, 0.25);
}

.dock-module[data-module="perform"] i {
    color: #10b981;
}

.dock-module[data-module="ai"] {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-color: rgba(249, 115, 22, 0.25);
}

.dock-module[data-module="ai"] i {
    color: #f97316;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.stat-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 20px;
    flex-shrink: 0;
}

.stat-card--blue .stat-icon {
    background: #eff6ff;
    color: #2563eb;
}

.stat-card--purple .stat-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.stat-card--green .stat-icon {
    background: #ecfdf5;
    color: #059669;
}

.stat-card--orange .stat-icon {
    background: #fff7ed;
    color: #ea580c;
}

.stat-label {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.stat-value {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.dashboard-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h3 {
    margin: 4px 0 0;
    font-size: 24px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.section-hint {
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.dashboard-footer {
    text-align: center;
    padding: 24px 0 8px;
}

.dashboard-footer p {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.02em;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.library-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    color: inherit;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
}

.library-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
    flex-shrink: 0;
}

.library-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.library-copy strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.library-copy small {
    font-size: 12.5px;
    color: #64748b;
    line-height: 1.4;
}

.library-arrow {
    font-size: 13px;
    color: #94a3b8;
    transition: color 0.2s ease, transform 0.2s ease;
}

.library-card:hover .library-arrow {
    color: #2563eb;
    transform: translate(2px, -2px);
}

.library-card--blue {
    border-left: 4px solid #2563eb;
}

.library-card--blue .library-icon {
    background: #eff6ff;
    color: #2563eb;
}

.library-card--blue:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

.library-card--purple {
    border-left: 4px solid #7c3aed;
}

.library-card--purple .library-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.library-card--purple:hover {
    border-color: rgba(124, 58, 237, 0.3);
}

.library-card--green {
    border-left: 4px solid #059669;
}

.library-card--green .library-icon {
    background: #ecfdf5;
    color: #059669;
}

.library-card--green:hover {
    border-color: rgba(5, 150, 105, 0.3);
}

.library-card--orange {
    border-left: 4px solid #ea580c;
}

.library-card--orange .library-icon {
    background: #fff7ed;
    color: #ea580c;
}

.library-card--orange:hover {
    border-color: rgba(234, 88, 12, 0.3);
}

.library-card--teal {
    border-left: 4px solid #0d9488;
}

.library-card--teal .library-icon {
    background: #f0fdfa;
    color: #0d9488;
}

.library-card--teal:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

.library-card--rose {
    border-left: 4px solid #e11d48;
}

.library-card--rose .library-icon {
    background: #fff1f2;
    color: #e11d48;
}

.library-card--rose:hover {
    border-color: rgba(225, 29, 72, 0.3);
}

.workspace-panel {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    border-right: 1px solid #e2e8f0;
    background: #ffffff;
    overflow-y: auto;
}

.workspace-identity {
    padding: 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(124, 58, 237, 0.05) 100%);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.workspace-identity h1 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.workspace-identity p {
    margin: 0;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.meta-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
}

.meta-list div {
    padding: 12px 16px;
    border: 1px solid #f1f5f9;
    border-radius: 10px;
    background: #f8fafc;
    transition: all 0.2s ease;
}

.meta-list div:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.meta-list dt {
    margin-bottom: 2px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.meta-list dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
    font-size: 13px;
    color: #1e293b;
}

.powered {
    margin: auto 0 0;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.02em;
}

.modules-panel {
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.modules-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.modules-panel h2 {
    margin-bottom: 0;
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.ghost-button {
    padding: 10px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    color: #334155;
    font-size: 13.5px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.ghost-button:hover {
    background: #f8fafc;
    border-color: #94a3b8;
    color: #0f172a;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    align-content: start;
}

.module-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    color: inherit;
}

.module-card:hover {
    transform: translateY(-4px);
}

.module-card-disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.module-card-disabled:hover {
    transform: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    border-color: #e2e8f0 !important;
}

.module-icon {
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border-radius: 14px;
    font-size: 26px;
    transition: all 0.2s ease;
}

/* Hire module colors (Blue) */
.module-card[data-module="hire"] {
    border-top: 4px solid #2563eb;
}

.module-card[data-module="hire"] .module-icon {
    background: #eff6ff;
    color: #2563eb;
}

.module-card[data-module="hire"]:not(.module-card-disabled):hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.08), 0 10px 10px -5px rgba(37, 99, 235, 0.03);
}

.module-card[data-module="hire"] .module-state {
    background: #eff6ff;
    color: #2563eb;
}

.module-card[data-module="hire"]:not(.module-card-disabled):hover .module-state {
    background: #2563eb;
    color: #ffffff;
}

/* Core module colors (Purple) */
.module-card[data-module="core"] {
    border-top: 4px solid #7c3aed;
}

.module-card[data-module="core"] .module-icon {
    background: #f5f3ff;
    color: #7c3aed;
}

.module-card[data-module="core"]:not(.module-card-disabled):hover {
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 20px 25px -5px rgba(124, 58, 237, 0.08), 0 10px 10px -5px rgba(124, 58, 237, 0.03);
}

.module-card[data-module="core"] .module-state {
    background: #f5f3ff;
    color: #7c3aed;
}

.module-card[data-module="core"]:not(.module-card-disabled):hover .module-state {
    background: #7c3aed;
    color: #ffffff;
}

/* Perform module colors (Emerald Green) */
.module-card[data-module="perform"] {
    border-top: 4px solid #059669;
}

.module-card[data-module="perform"] .module-icon {
    background: #ecfdf5;
    color: #059669;
}

.module-card[data-module="perform"]:not(.module-card-disabled):hover {
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 20px 25px -5px rgba(5, 150, 105, 0.08), 0 10px 10px -5px rgba(5, 150, 105, 0.03);
}

.module-card[data-module="perform"] .module-state {
    background: #ecfdf5;
    color: #059669;
}

.module-card[data-module="perform"]:not(.module-card-disabled):hover .module-state {
    background: #059669;
    color: #ffffff;
}

.module-copy {
    display: grid;
    gap: 4px;
}

/* AI module colors (Orange) */
.module-card[data-module="ai"] {
    border-top: 4px solid #f97316;
}

.module-card[data-module="ai"] .module-icon {
    background: #fff7ed;
    color: #f97316;
}

.module-card[data-module="ai"]:not(.module-card-disabled):hover {
    border-color: rgba(249, 115, 22, 0.3);
    box-shadow: 0 20px 25px -5px rgba(249, 115, 22, 0.08), 0 10px 10px -5px rgba(249, 115, 22, 0.03);
}

.module-card[data-module="ai"] .module-state {
    background: #fff7ed;
    color: #f97316;
}

.module-card[data-module="ai"]:not(.module-card-disabled):hover .module-state {
    background: #f97316;
    color: #ffffff;
}

.module-copy strong {
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
}

.module-copy small {
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.4;
}

.module-state {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.module-card-disabled .module-state {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .space-shell {
        height: auto;
        overflow: visible;
    }

    .login-layout,
    .dashboard {
        grid-template-columns: 1fr;
        height: auto;
        overflow: visible;
        flex-direction: column;
    }

    .brand-panel {
        min-height: 44vh;
        padding: 28px;
    }

    .login-card {
        margin: 20px;
        padding: 28px;
    }

    .dashboard-top-bar {
        padding: 14px 16px;
    }

    .dashboard-scroll {
        padding: 20px 16px 220px;
        min-height: auto;
        justify-content: flex-start;
    }

    .dashboard-hero {
        flex-direction: column;
        padding: 28px 24px;
    }

    .hero-badge {
        flex-direction: row;
        align-items: flex-start;
        width: 100%;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .dashboard-dock {
        bottom: 16px;
        left: 16px;
        right: 16px;
        transform: none;
        width: auto;
    }

    .modules-dock {
        flex-wrap: wrap;
        gap: 12px;
        padding: 16px;
    }

    .dock-module {
        flex: 1 1 calc(50% - 12px);
        max-width: none;
        height: 96px;
    }

    .dock-module i {
        font-size: 30px;
    }

    .workspace-panel {
        border-right: 0;
        border-bottom: 1px solid var(--line);
        overflow-y: visible;
    }

    .modules-panel {
        height: auto;
        overflow: visible;
    }

    .modules-grid {
        overflow-y: visible;
    }

    .modules-panel header {
        align-items: flex-start;
        flex-direction: column;
    }

    .workspace-grid {
        grid-template-columns: 1fr;
    }
}

/* ─── Teams-style Messenger ─── */

.messenger-area {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    width: 100%;
}

.messenger-shell {
    display: grid;
    grid-template-columns: 300px 1fr;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
    height: 650px;
    width: 100%;
}

/* Sidebar: Contacts */
.messenger-sidebar {
    background: #f8fafc;
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px 24px;
    border-bottom: none;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-contacts {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 24px;
    border: none;
    background: transparent;
    border-radius: 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    position: relative;
    border-left: 3px solid transparent;
}

.contact-item:hover {
    background: #f8fafc;
}

.contact-item.active {
    background: #eff6ff;
    border-left-color: #2563eb;
}

.contact-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.team-avatar {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.support-avatar {
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
}

.contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-name {
    font-size: 13px;
    font-weight: 750;
    color: #1e293b;
}

.contact-preview {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.online-dot.live {
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.support-badge {
    background: #0ea5e9;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* Chat Pane */
.messenger-chat {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    position: relative;
}

.channel-pane {
    display: none;
    flex-direction: column;
    height: 100%;
}

.channel-pane.active {
    display: flex;
}

.chat-pane-header {
    padding: 20px 32px;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-pane-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
}

.chat-pane-title h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #1e293b;
}

.chat-pane-status {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-pane-status i {
    font-size: 6px;
}

.chat-pane-status.support-label {
    color: #0ea5e9;
    font-weight: 600;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #fafbfe;
}

.chat-msg {
    display: flex;
    flex-direction: row;
    gap: 10px;
    max-width: 75%;
    animation: msg-fade-in 0.2s ease-out;
}

.msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #64748b;
    font-size: 18px;
}

.chat-msg.own .msg-avatar {
    order: 2;
    background: #c7d2fe;
    color: #4338ca;
}

.msg-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

@keyframes msg-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-msg.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg.own .msg-content {
    align-items: flex-end;
}

.chat-msg-meta {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    margin: 0 4px;
}

.chat-bubble {
    padding: 12px 16px;
    border-radius: 4px 16px 16px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    background: #ffffff;
    color: #334155;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.chat-msg.own .chat-bubble {
    background: #2563eb;
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    border-radius: 16px 16px 4px 16px;
}

/* AI support specific */
.support-msg.assistant {
    max-width: 80%;
    align-self: flex-start;
    display: flex;
    gap: 10px;
}

.support-msg.assistant .msg-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #0284c7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 14px;
}

.support-msg.assistant .msg-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.support-msg.assistant .msg-content p {
    margin: 0;
    padding: 12px 16px;
    border-radius: 4px 16px 16px 16px;
    font-size: 13.5px;
    line-height: 1.55;
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.support-msg.user {
    max-width: 80%;
    align-self: flex-end;
    align-items: flex-end;
}

.support-msg.user p {
    margin: 0;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    background: #0ea5e9;
    color: #ffffff;
    border-top-right-radius: 2px;
}

.support-msg.thinking p {
    font-style: italic;
    color: #64748b;
    background: #f8fafc;
    border: 1.5px dashed #e2e8f0;
}

/* Composers */
.chat-composer {
    display: flex;
    align-items: center;
    padding: 20px 32px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.composer-inner {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    border-radius: 24px;
    padding: 6px 12px;
    gap: 8px;
    width: 100%;
}

.composer-inner input {
    flex: 1;
    height: 38px;
    padding: 0 12px;
    border: none;
    background: transparent;
    font-size: 13.5px;
    outline: none;
}

.composer-icon-btn {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.composer-icon-btn:hover {
    color: #475569;
}

.send-btn {
    background: #2563eb;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #1d4ed8;
    transform: scale(1.05);
}

/* Ticket form overlay */
.ticket-inline-form {
    position: absolute;
    bottom: 72px;
    left: 20px;
    right: 20px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    animation: slide-up-form 0.2s ease-out;
}

@keyframes slide-up-form {
    from {
        transform: translateY(12px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.ticket-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ticket-form-header h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #b45309;
}

.ticket-close {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 14px;
}

.ticket-inline-form form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ticket-inline-form input,
.ticket-inline-form textarea {
    padding: 8px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
}

.ticket-inline-form textarea {
    resize: none;
}

.btn-primary {
    background: #f59e0b;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    font-weight: 700;
    padding: 9px;
    cursor: pointer;
    font-size: 12px;
}

.ticket-success {
    padding: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ticket-success i {
    font-size: 24px;
    color: #10b981;
}

.ticket-success h5 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    color: #1e293b;
}

.ticket-success p {
    margin: 0;
    font-size: 11px;
    color: #64748b;
}

.ticket-success button {
    margin-top: 4px;
    padding: 6px 12px;
    font-size: 11px;
    border: 1px solid #cbd5e1;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #94a3b8;
}

.chat-empty i {
    font-size: 28px;
    margin-bottom: 8px;
}

.chat-empty p {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .messenger-shell {
        grid-template-columns: 1fr;
        height: 520px;
    }

    .messenger-sidebar {
        display: none;
        /* simple stack or sidebar toggle (sidebar active handled by simple tabs for desktop/mobile) */
    }
}

/* ─── Fullscreen Chat Modal Overlay ─── */
.chat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: fadeInOverlay 0.25s ease-out;
}

.chat-modal-overlay.hidden {
    display: none !important;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.chat-modal-container {
    background: #ffffff;
    border-radius: 24px;
    width: min(1200px, 95vw);
    height: min(720px, 90vh);
    position: relative;
    box-shadow: 0 30px 100px rgba(15, 23, 42, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: scaleUpContainer 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleUpContainer {
    from {
        transform: scale(0.9) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.chat-modal-close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 0.2s;
}

.chat-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.chat-modal-container .messenger-area {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    height: 100%;
}

.chat-modal-container .messenger-shell {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ==============================================================
   Chat Modal & New Component Overrides
============================================================== */

/* Enlarge modal for immersive chat */
.chat-modal-container {
    width: 95% !important;
    max-width: 1200px !important;
    height: 90vh !important;
}

/* New message button */
.new-message-btn {
    background: #eff6ff;
    color: #2563eb;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.new-message-btn:hover {
    background: #dbeafe;
}

/* Search bar */
.sidebar-search {
    padding: 0 24px 16px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.sidebar-search input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sidebar-search .search-icon {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* Tabs */
.sidebar-tabs {
    display: flex;
    gap: 16px;
    padding: 0 24px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-tabs .tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px 8px;
    cursor: pointer;
    position: relative;
}

.sidebar-tabs .tab.active {
    color: #2563eb;
}

.sidebar-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
    border-radius: 2px 2px 0 0;
}

/* Contact row inner structure */
.contact-top,
.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.verified-icon {
    color: #2563eb;
    font-size: 12px;
}

.contact-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

.unread-badge {
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Chat pane action buttons */
.chat-pane-actions {
    display: flex;
    gap: 8px;
}

.chat-pane-actions button {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-pane-actions button:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Date divider */
.date-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.date-divider span {
    background: #f8fafc;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 12px;
}

.chat-modal-close-btn:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.chat-modal-container .messenger-area {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    height: 100%;
}

.chat-modal-container .messenger-shell {
    height: 100%;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

/* ==============================================================
   Chat Modal & New Component Overrides
============================================================== */

/* Enlarge modal for immersive chat */
.chat-modal-container {
    width: 95% !important;
    max-width: 1200px !important;
    height: 90vh !important;
}

/* New message button */
.new-message-btn {
    background: #eff6ff;
    color: #2563eb;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.new-message-btn:hover {
    background: #dbeafe;
}

/* Search bar */
.sidebar-search {
    padding: 0 24px 16px;
    position: relative;
}

.sidebar-search input {
    width: 100%;
    padding: 10px 12px 10px 36px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
    font-size: 13px;
    outline: none;
    transition: all 0.2s;
}

.sidebar-search input:focus {
    background: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sidebar-search .search-icon {
    position: absolute;
    left: 36px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 13px;
}

/* Tabs */
.sidebar-tabs {
    display: flex;
    gap: 16px;
    padding: 0 24px 12px;
    border-bottom: 1px solid #e2e8f0;
}

.sidebar-tabs .tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    padding: 0 4px 8px;
    cursor: pointer;
    position: relative;
}

.sidebar-tabs .tab.active {
    color: #2563eb;
}

.sidebar-tabs .tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #2563eb;
    border-radius: 2px 2px 0 0;
}

/* Contact row inner structure */
.contact-top,
.contact-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.verified-icon {
    color: #2563eb;
    font-size: 12px;
}

.contact-time {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
    flex-shrink: 0;
}

.unread-badge {
    background: #2563eb;
    color: white;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Chat pane action buttons */
.chat-pane-actions {
    display: flex;
    gap: 8px;
}

.chat-pane-actions button {
    background: none;
    border: 1px solid #e2e8f0;
    color: #64748b;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-pane-actions button:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}

/* Date divider */
.date-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.date-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #e2e8f0;
    z-index: 1;
}

.date-divider span {
    background: #f8fafc;
    padding: 0 16px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Message timestamp & read receipts */
.msg-time {
    font-size: 10px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.msg-time i {
    color: #2563eb;
    font-size: 11px;
}

/* ==============================================================
   Chat Modal & New Component Overrides
============================================================== */

/* Enlarge modal for immersive chat */
.chat-modal-container {
    width: 95% !important;
    max-width: 1200px !important;
    height: 90vh !important;
}

/* Sidebar header styling */
.sidebar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
}

/* Sidebar Messages list layout sizing */
.messenger-shell {
    grid-template-columns: 320px 1fr !important;
    background: #f8fafc !important;
}

.messenger-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

/* Add padding to header right side to prevent overlap with absolute X button */
.chat-pane-header {
    padding: 20px 80px 20px 32px !important;
}

/* Hide own avatars to match the reference image aesthetics */
.chat-msg.own .msg-avatar {
    display: none !important;
}

/* Reset submit button overrides on the composer send button */
.chat-composer .send-btn {
    width: 40px !important;
    height: 40px !important;
    margin-top: 0 !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    color: white !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
}

.chat-composer .send-btn:hover {
    background: #1d4ed8 !important;
    transform: scale(1.05) !important;
}

/* Support specific send button overrides */
.support-composer .send-btn {
    background: #0ea5e9 !important;
}

.support-composer .send-btn:hover {
    background: #0284c7 !important;
}

/* Fix text input overrides in composer */
.composer-inner input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #334155 !important;
    margin-top: 0 !important;
    height: 38px !important;
    font-size: 13.5px !important;
}