:root {
    --premium-navy: #081225;
    --premium-navy-soft: #101f3d;
    --premium-blue: #4f7cff;
    --premium-blue-deep: #275be8;
    --premium-violet: #8b5cf6;
    --premium-cyan: #23c9e8;
    --premium-green: #16b981;
    --premium-surface: rgba(255, 255, 255, .94);
    --premium-border: rgba(135, 157, 195, .2);
    --premium-shadow: 0 20px 55px rgba(29, 52, 95, .1);
    --premium-radius: 22px;
}

html {
    background: #eef3fb;
}

body {
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.admin-body {
    background:
        radial-gradient(circle at 82% -5%, rgba(79, 124, 255, .13), transparent 29%),
        radial-gradient(circle at 58% 108%, rgba(139, 92, 246, .09), transparent 28%),
        #f3f6fc;
}

/* Navigation */
.admin-nav {
    width: 252px;
    padding: 22px 17px 18px;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 0, rgba(79, 124, 255, .24), transparent 32%),
        radial-gradient(circle at 100% 68%, rgba(139, 92, 246, .17), transparent 30%),
        linear-gradient(180deg, #071225 0%, #0a152a 54%, #081120 100%);
    border-right: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 20px 0 60px rgba(11, 25, 50, .12);
}

.admin-nav::before {
    content: "";
    position: absolute;
    width: 165px;
    height: 165px;
    left: -95px;
    bottom: 14%;
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255, 255, 255, .018), 0 0 0 68px rgba(255, 255, 255, .012);
    pointer-events: none;
}

.nav-brand {
    height: 74px;
    padding: 5px 8px 13px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.nav-brand > span {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(145deg, #3f8cff, #8057f4);
    box-shadow: 0 12px 30px rgba(64, 125, 255, .35), inset 0 1px rgba(255, 255, 255, .35);
}

.nav-brand strong {
    font-size: 17px;
    letter-spacing: -.02em;
}

.nav-brand small {
    margin-top: 2px;
    color: #7f91b3;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-close {
    display: none;
    margin-left: auto;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 11px;
    color: #c8d4e9;
    background: rgba(255, 255, 255, .06);
    cursor: pointer;
}

.nav-section-label {
    margin: 23px 12px 8px;
    color: #536684;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.admin-nav nav {
    margin-top: 0;
    gap: 7px;
}

.admin-nav nav a {
    min-height: 47px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    color: #8394b3;
    font-size: 13px;
    transition: .2s ease;
}

.admin-nav nav a i {
    width: 25px;
    color: #64789a;
    font-size: 17px;
    text-align: center;
    transition: .2s ease;
}

.admin-nav nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, .055);
    border-color: rgba(255, 255, 255, .05);
    transform: translateX(2px);
}

.admin-nav nav a.active {
    color: #fff;
    background: linear-gradient(110deg, rgba(79, 124, 255, .28), rgba(139, 92, 246, .14));
    border-color: rgba(122, 158, 255, .2);
    box-shadow: inset 3px 0 #6a92ff, 0 10px 28px rgba(0, 0, 0, .1);
}

.admin-nav nav a.active i {
    color: #83a5ff;
}

.nav-user {
    position: relative;
    margin-top: auto;
    padding: 16px 12px;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
}

.nav-user::before {
    content: "";
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(79, 124, 255, .95), rgba(139, 92, 246, .9));
    box-shadow: 0 8px 20px rgba(54, 92, 208, .28);
}

.nav-user .presence {
    position: absolute;
    left: 37px;
    bottom: 15px;
    z-index: 2;
    border: 2px solid #0b172c;
}

.nav-user strong,
.nav-user small {
    max-width: 145px;
}

.nav-user strong {
    color: #eef4ff;
    font-size: 12px;
}

.nav-user small {
    color: #7184a5;
}

.logout-link {
    margin-top: 7px;
    padding: 9px 14px;
    border-radius: 11px;
    color: #7183a1;
    text-align: center;
    transition: .2s;
}

.logout-link:hover {
    color: #ffb1bd;
    background: rgba(255, 92, 117, .08);
}

.nav-scrim {
    display: none;
}

/* Main workspaces */
.owner-main,
.settings-main {
    margin-left: 252px;
    min-height: 100vh;
    padding: 34px clamp(24px, 3.3vw, 52px) 48px;
    background: transparent;
}

.owner-main {
    max-width: 1740px;
}

.owner-head,
.settings-header {
    position: relative;
    min-height: 82px;
    margin-bottom: 25px;
    padding: 8px 0 12px;
}

.owner-head::before,
.settings-header::before {
    content: "CONTROL CENTER";
    position: absolute;
    top: -3px;
    left: 0;
    color: var(--premium-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .2em;
}

.owner-head h1,
.settings-header h1 {
    margin-top: 12px;
    color: #10203c;
    font-size: clamp(25px, 2vw, 32px);
    letter-spacing: -.04em;
}

.owner-head p,
.settings-header p {
    color: #71809a;
    font-size: 13px;
}

.owner-head-actions {
    align-items: center;
}

.primary-btn {
    min-height: 43px;
    padding: 11px 18px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--premium-blue), var(--premium-blue-deep));
    box-shadow: 0 10px 24px rgba(49, 96, 226, .22), inset 0 1px rgba(255, 255, 255, .25);
    transition: .2s ease;
}

.primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(49, 96, 226, .3), inset 0 1px rgba(255, 255, 255, .25);
}

.secondary-btn {
    min-height: 39px;
    border-color: #dbe4f2;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(35, 56, 95, .05);
}

.delete-conversation {
    border-color: #ffd6dc;
    color: #c93249;
    background: #fff7f8;
}

.delete-conversation:hover {
    border-color: #ffb8c3;
    color: #a91f35;
    background: #fff0f3;
}

.mobile-menu {
    border: 1px solid #dfe7f4;
    border-radius: 12px;
    background: #fff;
    color: #32425d;
    box-shadow: 0 7px 20px rgba(38, 58, 92, .08);
}

/* Dashboard cards */
.owner-grid {
    gap: 17px;
    margin-bottom: 23px;
}

.metric-card {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    padding: 21px;
    border: 1px solid rgba(137, 158, 193, .18);
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow);
    transition: .22s ease;
}

.metric-card::before {
    content: "";
    position: absolute;
    width: 110px;
    height: 110px;
    right: -48px;
    top: -48px;
    border-radius: 50%;
    background: rgba(79, 124, 255, .08);
}

.metric-card:hover {
    transform: translateY(-3px);
    border-color: rgba(79, 124, 255, .28);
    box-shadow: 0 25px 65px rgba(29, 52, 95, .14);
}

.metric-card .metric-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, #e9f0ff, #f5f8ff);
    box-shadow: inset 0 0 0 1px rgba(79, 124, 255, .1);
}

.metric-card strong {
    position: relative;
    margin-top: 16px;
    color: #10203c;
    font-size: 30px;
    letter-spacing: -.04em;
}

.metric-card small {
    position: relative;
    color: #7f8ca2;
    font-weight: 650;
}

.metric-card.purple::before { background: rgba(139, 92, 246, .09); }
.metric-card.green::before { background: rgba(22, 185, 129, .09); }
.metric-card.orange::before { background: rgba(245, 158, 11, .1); }

.content-card,
.client-form,
.client-list,
.form-card,
.site-list-card {
    border: 1px solid var(--premium-border);
    border-radius: var(--premium-radius);
    background: var(--premium-surface);
    box-shadow: var(--premium-shadow);
}

.content-card,
.client-form,
.client-list {
    padding: 23px;
}

.content-card h2,
.client-form h2,
.client-list h2 {
    color: #172743;
    font-size: 17px;
    letter-spacing: -.025em;
}

.content-head {
    min-height: 38px;
    padding-bottom: 11px;
    border-bottom: 1px solid #edf1f7;
}

.content-head a,
.owner-link {
    color: #3568ed;
}

.owner-table th {
    padding-top: 15px;
    color: #92a0b5;
    letter-spacing: .08em;
}

.owner-table td {
    height: 68px;
    border-color: #edf1f7;
}

.owner-table tbody tr {
    transition: .18s;
}

.owner-table tbody tr:hover {
    background: #f7f9fe;
}

.status-chip,
.active-pill {
    padding: 5px 9px;
    border-radius: 999px;
    font-weight: 850;
}

.quick-grid,
.client-layout,
.notification-layout {
    gap: 21px;
}

.install-box {
    position: relative;
    overflow: hidden;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--premium-radius);
    background:
        radial-gradient(circle at 94% 0, rgba(92, 132, 255, .34), transparent 35%),
        radial-gradient(circle at 0 100%, rgba(139, 92, 246, .2), transparent 36%),
        linear-gradient(145deg, #0b1730, #14294c);
    box-shadow: 0 24px 55px rgba(13, 30, 62, .22);
}

.install-box::after {
    content: "</>";
    position: absolute;
    right: 22px;
    top: 16px;
    color: rgba(255, 255, 255, .08);
    font-size: 54px;
    font-weight: 900;
}

.install-box h2,
.install-box p,
.install-line {
    position: relative;
    z-index: 1;
}

.install-line input {
    min-height: 43px;
    padding: 10px 13px;
    border-color: rgba(255, 255, 255, .12);
    border-radius: 12px 0 0 12px;
    background: rgba(4, 12, 27, .52);
}

.install-line button {
    border-radius: 0 12px 12px 0;
    background: linear-gradient(135deg, #5b86ff, #744ee8);
}

.limit-bar {
    height: 11px;
    padding: 2px;
    background: #edf1f8;
}

.limit-bar span {
    border-radius: inherit;
    box-shadow: 0 2px 9px rgba(79, 124, 255, .28);
}

/* Forms */
.client-form label,
.form-card label,
.site-card > label,
.login-card label {
    color: #52617a;
    letter-spacing: .01em;
}

.client-form input,
.client-form textarea,
.client-form select,
.form-card input,
.form-card textarea,
.form-card select,
.login-card input,
.client-search {
    min-height: 45px;
    padding: 11px 13px;
    border: 1px solid #dce4f0;
    border-radius: 13px;
    background: #f9fbfe;
    color: #16243d;
    transition: .18s ease;
}

.client-form textarea,
.form-card textarea {
    min-height: 92px;
}

.client-form input:focus,
.client-form textarea:focus,
.client-form select:focus,
.form-card input:focus,
.form-card textarea:focus,
.form-card select:focus,
.login-card input:focus,
.client-search:focus {
    border-color: #6f97ff;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(79, 124, 255, .11);
}

input[type="color"] {
    min-height: 52px;
    padding: 6px;
    cursor: pointer;
}

.check-row {
    min-height: 44px;
    margin-top: 12px !important;
    padding: 10px 12px;
    border: 1px solid #e3e9f3;
    border-radius: 12px;
    background: #f8faff;
}

.check-row input {
    min-height: auto;
    accent-color: var(--premium-blue);
}

.client-card,
.site-card {
    padding: 17px;
    border: 1px solid #e3e9f3;
    border-radius: 17px;
    background: linear-gradient(145deg, #fff, #fbfcff);
    transition: .2s ease;
}

.client-card:hover,
.site-card:hover {
    border-color: rgba(79, 124, 255, .3);
    box-shadow: 0 14px 35px rgba(36, 62, 108, .09);
    transform: translateY(-1px);
}

.client-avatar,
.agent-avatar {
    width: 49px;
    height: 49px;
    border-radius: 16px;
    box-shadow: 0 9px 20px rgba(62, 98, 207, .2);
}

.client-stat {
    min-height: 62px;
    padding: 11px;
    border: 1px solid #eef2f8;
    border-radius: 12px;
    background: #f7f9fd;
}

.client-code input,
.copy-row input {
    background: #f5f8fd;
}

.client-code button,
.copy-row button {
    color: #315fd0;
    background: #eaf0ff;
}

.readiness-row {
    min-height: 51px;
}

.setup-note {
    border: 1px solid #dce7fb;
    border-radius: 14px;
}

/* Conversation workspace */
.chat-workspace {
    margin-left: 252px;
    height: 100vh;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 0;
    background: #eaf0f8;
}

.inbox-panel {
    border-right: 1px solid #dfe7f1;
    background: rgba(255, 255, 255, .97);
    box-shadow: 12px 0 35px rgba(27, 48, 84, .045);
}

.panel-header {
    min-height: 92px;
    padding: 25px 20px 17px;
    background: linear-gradient(180deg, #fff, #fbfcff);
}

.panel-header h1 {
    color: #12223d;
    font-size: 24px;
    letter-spacing: -.04em;
}

.panel-header p {
    color: #8190a8;
}

.online-dot {
    width: 8px;
    height: 8px;
    margin-right: 3px;
    box-shadow: 0 0 0 5px rgba(53, 189, 104, .1);
}

.filters {
    padding: 5px 16px 11px;
    gap: 9px;
}

.filters select {
    height: 39px;
    padding: 8px 10px;
    border-color: #dfe6f1;
    border-radius: 11px;
    background: #f8faff;
}

.search-wrap {
    height: 43px;
    margin-bottom: 12px;
    border-color: #dfe6f1;
    border-radius: 13px;
    background: #f6f8fc;
}

.conversation-list {
    padding: 4px 10px 16px;
}

.conversation-item {
    margin: 5px 0;
    padding: 13px 11px;
    border: 1px solid transparent;
    border-radius: 15px;
    transition: .18s ease;
}

.conversation-item:hover {
    border-color: #e3e9f3;
    background: #f8faff;
}

.conversation-item.active {
    border-color: rgba(79, 124, 255, .2);
    background: linear-gradient(120deg, #eef3ff, #f7f4ff);
    box-shadow: 0 9px 23px rgba(45, 77, 132, .08);
}

.conversation-item.active::before {
    left: -1px;
    top: 12px;
    bottom: 12px;
    width: 4px;
    background: linear-gradient(180deg, var(--premium-blue), var(--premium-violet));
}

.conv-avatar {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, #5e8bff, #8b5cf6);
    box-shadow: 0 8px 19px rgba(79, 124, 255, .2);
}

.site-tag {
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: 850;
}

.unread-badge {
    background: linear-gradient(145deg, #4f7cff, #704fed);
    box-shadow: 0 5px 12px rgba(79, 124, 255, .25);
}

.conversation-panel {
    background:
        radial-gradient(circle at 85% 0, rgba(79, 124, 255, .09), transparent 29%),
        radial-gradient(circle at 0 100%, rgba(139, 92, 246, .07), transparent 33%),
        #f4f7fb;
}

.empty-chat::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(79, 124, 255, .07);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(79, 124, 255, .025), 0 0 0 110px rgba(139, 92, 246, .016);
}

.empty-chat > * {
    position: relative;
}

.empty-icon {
    width: 78px;
    height: 78px;
    border-radius: 27px;
    color: #fff;
    background: linear-gradient(145deg, var(--premium-blue), var(--premium-violet));
    box-shadow: 0 18px 35px rgba(79, 124, 255, .25), inset 0 1px rgba(255, 255, 255, .35);
}

.conversation-head {
    height: 82px;
    flex-basis: 82px;
    padding: 0 25px;
    border-color: #e2e9f3;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.visitor-avatar {
    width: 47px;
    height: 47px;
    border-radius: 16px;
    background: linear-gradient(145deg, #4f7cff, #8b5cf6);
    box-shadow: 0 10px 22px rgba(79, 124, 255, .24);
}

.visitor-title strong {
    color: #172742;
    font-size: 16px;
}

.admin-messages {
    padding: 28px min(5vw, 68px) 24px;
}

.admin-message {
    margin-bottom: 18px;
}

.admin-message .admin-mini {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, .8);
    box-shadow: 0 6px 14px rgba(37, 55, 91, .13);
}

.admin-bubble {
    padding: 12px 15px;
    border-color: #e1e8f2;
    border-radius: 10px 19px 19px 19px;
    box-shadow: 0 9px 24px rgba(30, 48, 80, .07);
}

.admin-message.agent .admin-bubble {
    border: 0;
    border-radius: 19px 10px 19px 19px;
    background: linear-gradient(145deg, #376fe9, #5f75ee);
    box-shadow: 0 12px 28px rgba(51, 99, 221, .2);
}

.admin-bubble img {
    border-radius: 13px;
}

.admin-composer {
    margin: 0 24px 22px;
    padding: 9px;
    border-color: #dce4ef;
    border-radius: 17px;
    box-shadow: 0 14px 34px rgba(30, 49, 83, .12);
}

.attach-btn {
    border-radius: 12px;
    color: #536781;
    background: #edf1f7;
}

.send-admin {
    height: 42px;
    min-width: 78px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--premium-blue), #6f52eb);
    box-shadow: 0 8px 18px rgba(79, 124, 255, .23);
}

.assignment-note {
    border: 1px solid #f1dda9;
    border-radius: 12px;
}

/* Push */
.push-enable-btn {
    min-height: 40px;
    padding: 0 12px;
    border-color: #dce5f2;
    border-radius: 12px;
    color: #354862;
    box-shadow: 0 6px 18px rgba(32, 52, 87, .06);
}

.push-enable-btn.active {
    border-color: #b8ead5;
    background: linear-gradient(145deg, #ecfbf5, #f6fffb);
}

.alert-status {
    border-radius: 13px;
}

.global-alert-toast,
.admin-toast {
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 15px;
    background: rgba(8, 19, 39, .94);
    box-shadow: 0 18px 45px rgba(2, 10, 25, .28);
    backdrop-filter: blur(14px);
}

/* Login */
.login-body {
    display: block;
    padding: 0;
    background:
        radial-gradient(circle at 12% 12%, rgba(79, 124, 255, .28), transparent 26%),
        radial-gradient(circle at 78% 85%, rgba(139, 92, 246, .25), transparent 25%),
        linear-gradient(145deg, #071326, #0d1d38 52%, #0a1429);
}

.login-stage {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(430px, .75fr);
}

.login-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: clamp(42px, 7vw, 105px);
    color: #fff;
}

.login-showcase::before,
.login-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-showcase::before {
    width: 440px;
    height: 440px;
    right: -125px;
    top: -110px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .018), 0 0 0 140px rgba(255, 255, 255, .012);
}

.login-showcase::after {
    width: 270px;
    height: 270px;
    left: 8%;
    bottom: -145px;
    background: rgba(79, 124, 255, .13);
    filter: blur(8px);
}

.showcase-mark {
    position: relative;
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(79, 124, 255, .95), rgba(139, 92, 246, .92));
    box-shadow: 0 18px 42px rgba(41, 83, 201, .4);
    font-size: 30px;
}

.login-showcase h2 {
    position: relative;
    max-width: 640px;
    margin: 28px 0 14px;
    font-size: clamp(38px, 4.5vw, 66px);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.login-showcase > p {
    position: relative;
    max-width: 570px;
    color: #94a8ca;
    font-size: 16px;
    line-height: 1.7;
}

.showcase-points {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.showcase-points span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 999px;
    color: #c6d4eb;
    background: rgba(255, 255, 255, .045);
    font-size: 11px;
    font-weight: 750;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 36px;
    background: rgba(255, 255, 255, .96);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .18);
}

.login-card {
    width: min(430px, 100%);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-logo {
    width: 52px;
    height: 52px;
    border-radius: 17px;
}

.login-card h1 {
    margin-top: 23px;
    color: #10203b;
    font-size: 29px;
    letter-spacing: -.04em;
}

.login-card > p {
    color: #7b899f;
}

.login-card .primary-btn {
    min-height: 49px;
}

.login-security {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 19px;
    color: #8d9aae;
    font-size: 10px;
    text-align: center;
    justify-content: center;
}

.login-security::before {
    content: "●";
    color: var(--premium-green);
    font-size: 8px;
}

@media (max-width: 1180px) {
    .admin-nav { width: 222px; }
    .owner-main,
    .settings-main,
    .chat-workspace { margin-left: 222px; }
    .chat-workspace { grid-template-columns: 340px 1fr; }
}

@media (max-width: 920px) {
    .login-stage { grid-template-columns: 1fr minmax(390px, .85fr); }
    .login-showcase { padding: 42px; }
    .login-showcase h2 { font-size: 42px; }
    .showcase-points { display: none; }
}

@media (max-width: 760px) {
    .admin-nav {
        width: min(292px, 86vw);
        padding: 18px;
        transform: translateX(-105%);
    }

    .admin-nav.open { transform: none; }
    .nav-close { display: grid; place-items: center; }
    .nav-scrim {
        position: fixed;
        z-index: 45;
        inset: 0;
        border: 0;
        background: rgba(4, 11, 24, .54);
        backdrop-filter: blur(3px);
    }
    .admin-nav.open + .nav-scrim { display: block; }

    .owner-main,
    .settings-main,
    .chat-workspace {
        margin-left: 0;
    }

    .owner-main,
    .settings-main {
        padding: 21px 16px 34px;
    }

    .owner-head,
    .settings-header {
        min-height: 72px;
        margin-bottom: 18px;
    }

    .owner-head h1,
    .settings-header h1 {
        font-size: 24px;
    }

    .owner-head-actions {
        flex-direction: row;
        align-items: center;
    }

    .owner-grid { gap: 11px; }
    .metric-card { min-height: 137px; padding: 16px; border-radius: 18px; }
    .metric-card strong { font-size: 26px; }
    .content-card,
    .client-form,
    .client-list { padding: 17px; border-radius: 18px; }

    .chat-workspace {
        display: block;
        height: var(--lc-app-height, 100dvh);
    }

    .inbox-panel {
        height: var(--lc-app-height, 100dvh);
    }

    .conversation-panel {
        height: var(--lc-app-height, 100dvh);
    }

    .panel-header {
        min-height: 88px;
        padding: 22px 16px 14px;
    }

    .conversation-head {
        height: 76px;
        min-height: 76px;
        flex-basis: 76px;
        padding: 0 11px;
    }

    .conversation-head .head-actions {
        gap: 4px;
    }

    .conversation-head .delete-conversation {
        padding-inline: 8px;
    }

    .admin-messages { padding: 20px 14px; }
    .admin-composer {
        margin: 0;
        border-radius: 17px 17px 0 0;
    }

    .login-stage { display: block; }
    .login-showcase { display: none; }
    .login-panel {
        min-height: 100vh;
        padding: 25px 20px;
        background:
            radial-gradient(circle at 90% 0, rgba(79, 124, 255, .13), transparent 32%),
            #f8faff;
    }
    .login-card {
        padding: 27px 22px;
        border: 1px solid #e2e8f2;
        border-radius: 23px;
        background: #fff;
        box-shadow: 0 20px 60px rgba(31, 52, 87, .12);
    }
}

@media (max-width: 420px) {
    .conversation-head .delete-conversation {
        width: 34px;
        min-width: 34px;
        padding: 0;
    }

    .conversation-head .delete-conversation span {
        display: none;
    }
}

@media (max-width: 480px) {
    .owner-head { display: flex; }
    .owner-head > div { min-width: 0; }
    .owner-head p { max-width: 235px; }
    .owner-head-actions { margin-top: 0; }
    .owner-head-actions .primary-btn { display: none !important; }
    .owner-grid { grid-template-columns: 1fr 1fr; }
    .metric-card { min-height: 126px; }
    .metric-card .metric-icon { width: 38px; height: 38px; }
    .metric-card strong { margin-top: 11px; font-size: 24px; }
    .metric-card small { font-size: 11px; }
    .client-stats { grid-template-columns: repeat(3, 1fr); }
    .client-stat { padding: 8px; }
    .client-stat strong { font-size: 11px; }
    .client-stat small { font-size: 8px; }
    .push-enable-btn { width: 40px; }
}

/* Compact mobile overview: keep key data above the fold. */
@media (max-width: 760px) {
    .overview-page .owner-main {
        padding: 14px 12px 28px;
    }

    .overview-page .owner-head {
        position: relative;
        display: block;
        min-height: 0;
        margin-bottom: 13px;
        padding: 3px 0 0;
    }

    .overview-page .owner-head::before {
        display: none;
    }

    .overview-page .owner-head > div:first-child {
        min-width: 0;
        padding-right: 92px;
    }

    .overview-page .owner-head h1 {
        margin: 0;
        font-size: 21px;
        line-height: 1.18;
        letter-spacing: -.035em;
    }

    .overview-page .owner-head p {
        max-width: 290px;
        margin: 4px 0 0;
        font-size: 11px;
        line-height: 1.42;
    }

    .overview-page .owner-head-actions {
        display: flex;
        flex-flow: row wrap;
        align-items: center;
        gap: 7px;
        margin-top: 12px;
    }

    .overview-page .owner-head-actions .push-enable-btn,
    .overview-page .owner-head-actions .mobile-menu {
        position: absolute;
        top: 0;
        width: 39px;
        min-width: 39px;
        height: 39px;
        min-height: 39px;
        margin: 0;
        padding: 0;
        justify-content: center;
        border-radius: 12px;
    }

    .overview-page .owner-head-actions .push-enable-btn {
        right: 47px;
    }

    .overview-page .owner-head-actions .push-enable-btn b {
        display: none;
    }

    .overview-page .owner-head-actions .mobile-menu {
        right: 0;
    }

    .overview-page .owner-head-actions .primary-btn {
        display: inline-flex !important;
        width: 100%;
        min-height: 41px;
        margin: 0;
        padding: 9px 14px;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        font-size: 13px;
    }

    .overview-page .owner-main > .alert-status {
        margin: 0 0 10px;
        padding: 9px 11px;
        border-radius: 11px;
        font-size: 10px;
        line-height: 1.4;
    }

    .overview-page .owner-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px;
        margin-bottom: 12px;
    }

    .overview-page .metric-card {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 9px;
        align-content: center;
        min-height: 82px;
        padding: 11px;
        border-radius: 15px;
        box-shadow: 0 10px 28px rgba(29, 52, 95, .08);
    }

    .overview-page .metric-card::before {
        width: 70px;
        height: 70px;
        top: -38px;
        right: -34px;
    }

    .overview-page .metric-card .metric-icon {
        grid-row: 1 / 3;
        width: 34px;
        height: 34px;
        border-radius: 11px;
        font-size: 16px;
        align-self: center;
    }

    .overview-page .metric-card strong {
        align-self: end;
        margin: 0;
        font-size: 21px;
        line-height: 1;
    }

    .overview-page .metric-card small {
        align-self: start;
        margin-top: 5px;
        font-size: 9px;
        line-height: 1.18;
    }

    .overview-page .content-card {
        padding: 14px;
        border-radius: 16px;
    }

    .overview-page .content-head {
        min-height: 31px;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .overview-page .content-head h2,
    .overview-page .content-card h2,
    .overview-page .install-box h2 {
        font-size: 14px;
    }

    .overview-page .content-head a {
        font-size: 10px;
    }

    .overview-page .quick-grid {
        gap: 10px;
    }

    .overview-page .quick-grid > * {
        margin-bottom: 10px;
    }

    .overview-page .install-box {
        padding: 15px;
        border-radius: 16px;
    }
}

@media (max-width: 365px) {
    .overview-page .owner-main {
        padding-inline: 10px;
    }

    .overview-page .metric-card {
        grid-template-columns: 30px minmax(0, 1fr);
        column-gap: 7px;
        min-height: 78px;
        padding: 9px;
    }

    .overview-page .metric-card .metric-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .overview-page .metric-card strong {
        font-size: 19px;
    }
}
