:root {
    color-scheme: light;
    --ink: #202435;
    --muted: #85899a;
    --purple: #6858dc;
    --purple-dark: #5747c7;
    --line: #ececf2;
    --canvas: #f7f8fc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font-family: "DM Sans", "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }
a { color: inherit; }

.auth-layout {
    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
    min-height: 100vh;
}

.auth-aside {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: hidden;
    padding: 40px clamp(32px, 6vw, 88px);
    background: #6655d7;
    color: white;
}

.auth-aside::before, .auth-aside::after {
    position: absolute;
    z-index: 0;
    border: 1px solid rgb(255 255 255 / 11%);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.auth-aside::before { width: 600px; height: 600px; right: -370px; top: 22%; }
.auth-aside::after { width: 450px; height: 450px; right: -295px; top: 32%; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--ink);
    font-family: Manrope, sans-serif;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.8px;
    text-decoration: none;
}

.brand-light { color: white; }
.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 12px;
    background: #f1efff;
    color: var(--purple);
    font-family: Manrope, sans-serif;
    font-size: 22px;
    font-weight: 800;
}
.site-brand-logo { display: block; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; object-fit: contain; }
.brand-light .brand-mark { background: white; }

.aside-copy {
    position: relative;
    z-index: 1;
    width: min(100%, 470px);
    margin: auto 0;
    padding: 72px 0;
}
.aside-spark { display: block; margin-bottom: 34px; color: #d5ceff; font-size: 30px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.55px; }
.auth-aside .eyebrow { color: #d7d2ff; }
.aside-copy h1 {
    margin: 0;
    font-family: Manrope, sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 700;
    letter-spacing: -3.6px;
    line-height: 1.08;
}
.aside-copy h1 span { color: #d5ceff; }
.aside-copy > p:last-child { max-width: 330px; margin: 22px 0 0; color: #e0dcff; font-size: 15px; line-height: 1.8; }
.aside-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; color: #e0dcff; font-size: 12px; }
.online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #85e5b3; box-shadow: 0 0 0 3px rgb(133 229 179 / 18%); }

.auth-main { display: grid; place-items: center; padding: 48px 32px; }
.auth-card { width: min(100%, 410px); }
.mobile-brand { display: none; margin-bottom: 40px; }
.auth-card > .eyebrow { margin-bottom: 11px; }
.auth-card h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 30px; letter-spacing: -1.1px; }
.form-intro { margin: 9px 0 29px; color: var(--muted); font-size: 14px; }
.auth-form { display: flex; flex-direction: column; }
.auth-form label { margin: 0 0 8px; color: #4a4e5d; font-size: 12px; font-weight: 700; }
.auth-form input {
    width: 100%;
    height: 48px;
    margin-bottom: 19px;
    padding: 0 14px;
    border: 1px solid #e4e5ec;
    border-radius: 9px;
    outline: none;
    background: white;
    color: var(--ink);
    font-size: 13px;
    transition: border-color 150ms, box-shadow 150ms;
}
.auth-form input::placeholder { color: #a7a9b5; }
.auth-form input:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 12%); }
.password-input-wrap { position: relative; display: block; width: 100%; min-width: 0; }
.password-input-wrap input[type="password"], .password-input-wrap input[type="text"] { padding-right: 46px; }
.auth-form .password-input-wrap { margin-bottom: 19px; }
.auth-form .password-input-wrap input { margin-bottom: 0; }
.password-visibility-toggle { position: absolute; top: 50%; right: 8px; display: grid; width: 34px; height: 34px; transform: translateY(-50%); place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: #777b8b; cursor: pointer; }
.password-visibility-toggle:hover { background: #f1efff; color: var(--purple-dark); }
.password-visibility-toggle:focus-visible { outline: 2px solid #8b7fe6; outline-offset: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field { min-width: 0; }
.field label span { color: #a0a2af; font-weight: 400; }
.field-hint { margin: -10px 0 20px; color: #8b8e9c; font-size: 11px; }
.primary-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 49px;
    margin-top: 4px;
    padding: 0 16px;
    border: 0;
    border-radius: 9px;
    background: var(--purple);
    color: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: background 150ms, transform 150ms;
}
.primary-button:hover { transform: translateY(-1px); background: var(--purple-dark); }
.primary-button span { font-size: 20px; font-weight: 400; }
.auth-switch { margin: 23px 0 0; color: #777b8b; text-align: center; font-size: 12px; }
.auth-switch a { margin-left: 3px; color: var(--purple); font-weight: 700; text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 48px 0 0; color: #a0a2af; font-size: 11px; }
.privacy-note span { color: var(--purple); }
.message { margin: 14px 0; padding: 11px 13px; border-radius: 8px; font-size: 12px; line-height: 1.5; }
.message-error { border: 1px solid #f2d5d5; background: #fff8f8; color: #a54141; }
.message-success { border: 1px solid #cdebd8; background: #f4fff7; color: #287046; }

.workspace { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 100vh; background: white; }
.sidebar { display: flex; flex-direction: column; min-height: 100vh; padding: 29px 22px 18px; border-right: 1px solid var(--line); }
.sidebar > .brand { margin: 0 0 21px 4px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 16px; border-bottom: 1px solid var(--line); }
.sidebar-heading .eyebrow { margin-bottom: 7px; font-size: 9px; }
.sidebar-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 21px; letter-spacing: -0.6px; }
.notification-count { display: grid; min-width: 23px; height: 23px; padding: 0 6px; place-items: center; border-radius: 8px; background: #f0edff; color: var(--purple); font-size: 11px; font-weight: 700; }
.empty-conversations { margin: auto 7px; padding: 22px 0 30px; }
.empty-icon { display: grid; width: 37px; height: 37px; margin-bottom: 17px; place-items: center; border-radius: 12px; background: #f2f0ff; color: var(--purple); font-size: 20px; }
.empty-conversations h2 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 15px; }
.empty-conversations p { max-width: 235px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-card { margin-bottom: 31px; padding: 12px 2px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.account-menu-desktop { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-menu-mobile { display: none; }
.account-links { display: flex; align-items: center; gap: 0; }
.account-links .text-button { padding-right: 3px; padding-left: 3px; font-size: 10px; }
.account-links form { margin: 0; }
.account-menu-items { display: grid; gap: 3px; padding: 8px 0 0 45px; }
.account-menu-items a, .account-menu-items button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #5d6271; cursor: pointer; font: inherit; font-size: 12px; text-align: left; text-decoration: none; }
.account-menu-items a:hover, .account-menu-items button:hover { background: #f4f2ff; color: var(--purple-dark); }
.account-menu-items form { margin: 0; }
.account-menu-heading { display: flex; align-items: center; gap: 10px; padding: 9px 10px 12px; border-bottom: 1px solid #f0f0f5; color: #454958; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.account-menu-identity { display: grid; min-width: 0; gap: 4px; }
.account-menu-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu-identity small { color: var(--muted); font-size: 9px; font-weight: 500; }
.account-menu-kebab { display: grid; width: 38px; height: 38px; place-items: center; color: #5d6271; font-size: 25px; font-weight: 700; line-height: 1; }
.avatar { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 12px; background: #eeeaff; color: var(--purple); font-weight: 700; }
.avatar-photo { object-fit: cover; }
.account-name { overflow: hidden; flex: 1; color: #454958; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.account-card form { margin: 0; }
.text-button { padding: 7px 5px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.text-button:hover { color: var(--purple); }
.member-plans { margin: 0 3px 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.member-plans > .eyebrow { margin-bottom: 5px; font-size: 9px; }
.member-plans h2 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 15px; }
.member-plan-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 0; border-top: 1px solid #f0f0f5; }
.member-plan-row > span { display: grid; gap: 3px; min-width: 0; }
.member-plan-row strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.member-plan-row small { color: var(--muted); font-size: 9px; }
.mini-subscribe { padding: 5px 8px; border: 1px solid #e3e1f4; border-radius: 6px; background: white; color: var(--purple); cursor: pointer; font-size: 9px; font-weight: 700; }
.member-subscription-status { margin: 17px auto; padding: 10px 12px; border: 1px solid #e9eaf0; border-radius: 9px; background: white; text-align: left; }
.member-subscription-status .eyebrow { margin: 0 0 6px; color: var(--purple); }
.member-subscription-status p:last-child { margin: 0; color: #606575; font-size: 11px; }
.plan-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 17px; text-align: left; }
.member-plan-card { width: min(100%, 220px); padding: 13px; border: 1px solid #e9e7f7; border-radius: 10px; background: rgb(255 255 255 / 88%); }
.member-plan-card h3 { margin: 0 0 5px; font-family: Manrope, sans-serif; font-size: 12px; }
.member-plan-card > div > span { color: var(--ink); font-size: 15px; font-weight: 700; }
.member-plan-card > div > span small { color: var(--muted); font-size: 9px; font-weight: 400; }
.member-plan-card p { margin: 8px 0; color: #777b8b; font-size: 10px; line-height: 1.5; }
.member-plan-card .plan-terms { font-size: 9px; }
.member-plan-card .admin-button { width: 100%; }
.welcome-panel { position: relative; display: grid; min-height: 100vh; overflow: hidden; place-items: center; padding: 48px 25px; background: radial-gradient(ellipse at 52% 40%, #fff 5%, #fbfaff 42%, #f7f8fc 78%); text-align: center; }
.welcome-content { max-width: 460px; }
.welcome-art { display: grid; width: 94px; height: 94px; margin: 0 auto 29px; place-items: center; border: 1px solid #e8e4ff; border-radius: 30px; background: linear-gradient(145deg, white, #f1eeff); box-shadow: 0 16px 42px rgb(74 59 161 / 10%); transform: rotate(-5deg); }
.welcome-art span { color: var(--purple); font-family: Manrope, sans-serif; font-size: 57px; font-weight: 800; transform: rotate(5deg); }
.welcome-content .eyebrow { margin-bottom: 12px; color: var(--purple); }
.welcome-content h2 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(29px, 3vw, 40px); letter-spacing: -1.8px; line-height: 1.2; }
.welcome-copy { max-width: 350px; margin: 16px auto 21px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.coming-next { display: inline-flex; align-items: center; gap: 9px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: #666b7a; font-size: 11px; }
.coming-next .online-dot { width: 6px; height: 6px; }
.install-button { position: absolute; top: 23px; right: 25px; padding: 9px 13px; border: 1px solid #e2defb; border-radius: 8px; background: white; color: var(--purple); cursor: pointer; font-size: 11px; font-weight: 700; }

@media (max-width: 760px) {
    .auth-layout { display: block; min-height: 100svh; }
    .auth-aside { display: none; }
    .auth-main { min-height: 100svh; padding: 34px 24px; }
    .auth-card { max-width: 430px; }
    .mobile-brand { display: inline-flex; margin-bottom: 51px; }
    .privacy-note { margin-top: 38px; }
    .workspace { display: flex; flex-direction: column; min-height: 100svh; }
    .sidebar { min-height: 100svh; padding: 21px 18px 15px; border-right: 0; }
    .sidebar > .brand { margin-bottom: 33px; }
    .sidebar-heading h1 { font-size: 20px; }
    .empty-conversations { margin: auto 4px; }
    .welcome-panel { display: none; }
}

@media (max-width: 390px) {
    .auth-main { padding: 27px 19px; }
    .field-row { grid-template-columns: 1fr; gap: 0; }
    .field-hint { margin-top: -9px; }
}

@media (max-width: 360px) {
    .sidebar { column-gap: 8px; }
    .sidebar > .brand { gap: 0; }
    .sidebar > .brand > span:last-child { display: none; }
    .account-menu-mobile .account-name { max-width: 100px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}

.find-people-link { display: flex; min-height: 42px; align-items: center; gap: 10px; margin: 16px 3px 0; padding: 0 12px; border: 1px solid #e8e4ff; border-radius: 9px; background: #fbfaff; color: var(--purple-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.find-people-link:hover { border-color: #d6d0ff; background: #f4f1ff; }
.find-people-link span { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 7px; background: #eeeaff; font-size: 18px; font-weight: 400; }

.chat-page { height: 100vh; height: 100svh; min-height: 420px; overflow: hidden; background: white; }
.chat-topbar { position: relative; z-index: 5; display: flex; height: 68px; align-items: center; justify-content: space-between; gap: 15px; padding: 0 clamp(16px, 3vw, 30px); border-bottom: 1px solid var(--line); background: white; }
.chat-topbar .brand-mark { width: 32px; height: 32px; }
.chat-account { position: relative; }
.chat-account-desktop { display: flex; align-items: center; gap: 9px; }
.chat-account-desktop .avatar { width: 32px; height: 32px; }
.chat-account-desktop .account-name { max-width: 150px; }
.chat-account-desktop form { margin: 0; }
.chat-account-mobile { display: none; }
.chat-account-mobile[open] .account-menu-items { position: absolute; top: 45px; right: 0; display: grid; width: min(260px, calc(100vw - 24px)); gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 14px 34px rgb(28 35 67 / 14%); }
.chat-account-mobile .account-menu-heading { padding: 9px 8px 12px; }
.chat-account-mobile .account-menu-heading .avatar { width: 34px; height: 34px; }
.chat-account-mobile .account-menu-items a, .chat-account-mobile .account-menu-items button { padding: 10px; }
.chat-account-mobile .account-menu-items form { margin: 0; }
.chat-layout { display: grid; height: calc(100vh - 68px); height: calc(100svh - 68px); min-height: 0; grid-template-columns: minmax(285px, 350px) minmax(0, 1fr); background: white; }
.chat-sidebar { display: flex; min-width: 0; min-height: 0; flex-direction: column; padding: 19px 14px 12px; border-right: 1px solid var(--line); }
.chat-sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px 14px; }
.chat-sidebar-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.chat-sidebar-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 21px; letter-spacing: -.6px; }
.people-search { padding: 13px 3px 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.people-search > label { display: block; margin-bottom: 8px; color: #4a4e5d; font-size: 11px; font-weight: 700; }
.people-search-row { display: flex; min-width: 0; gap: 7px; }
.people-search-row input { min-width: 0; height: 39px; flex: 1; padding: 0 10px; border: 1px solid #e3e4ec; border-radius: 7px; outline: none; font-size: 11px; }
.people-search-row input:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 10%); }
.people-search-row button, .search-message-button { min-height: 37px; padding: 0 11px; border: 0; border-radius: 7px; background: var(--purple); color: white; cursor: pointer; font-size: 10px; font-weight: 700; }
.people-search-row button:hover, .search-message-button:hover { background: var(--purple-dark); }
.search-help { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.search-results { max-height: 250px; flex: 0 1 auto; overflow-y: auto; border-bottom: 1px solid var(--line); }
.search-results[hidden] { display: none; }
.search-result { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 2px; border-bottom: 1px solid #f0f0f5; }
.search-result:last-child { border-bottom: 0; }
.search-result-identity { display: flex; min-width: 0; align-items: center; gap: 9px; }
.search-result-identity .conversation-avatar { width: 34px; height: 34px; }
.search-result-copy, .conversation-link-copy { display: grid; min-width: 0; gap: 4px; }
.search-result-copy strong, .conversation-link-copy strong { overflow: hidden; color: #35394a; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-copy small, .conversation-link-copy small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-message-button { min-height: 32px; flex: 0 0 auto; padding: 0 9px; }
.search-message-button:disabled { cursor: wait; opacity: .65; }
.search-empty { margin: 0; padding: 12px 3px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.search-error { color: #a54141; }
.conversation-list-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 5px 8px; }
.conversation-list-heading h2 { margin: 0; color: #686c7b; font-size: 10px; font-weight: 700; }
.conversation-list-heading a { color: var(--purple-dark); font-size: 9px; font-weight: 700; text-decoration: none; }
.conversation-list { min-height: 0; overflow-y: auto; }
.conversation-link { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 10px 7px; border-radius: 8px; text-decoration: none; }
.conversation-link:hover, .conversation-link.is-active { background: #f5f3ff; }
.conversation-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border-radius: 14px; background: #eeeaff; color: var(--purple); font-size: 13px; font-weight: 700; object-fit: cover; }
.conversation-link-copy { flex: 1; }
.conversation-link-copy small { max-width: 190px; }
.conversation-unread { display: grid; min-width: 20px; height: 20px; flex: 0 0 auto; padding: 0 5px; place-items: center; border-radius: 7px; background: #eeeaff; color: var(--purple-dark); font-size: 9px; font-weight: 700; }
.no-conversations { margin: 8px 5px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.chat-back-home { margin: auto 4px 0; padding: 13px 4px 0; border-top: 1px solid var(--line); color: #737788; font-size: 10px; text-decoration: none; }
.chat-back-home:hover { color: var(--purple); }
.chat-main { position: relative; display: flex; min-width: 0; min-height: 0; flex-direction: column; background: #fafaff; }
.chat-thread-heading { display: flex; min-height: 70px; flex: 0 0 auto; align-items: center; gap: 11px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: white; }
.chat-thread-heading > div { min-width: 0; }
.thread-avatar { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; border-radius: 15px; background: #eeeaff; color: var(--purple); font-size: 14px; font-weight: 700; object-fit: cover; }
.chat-thread-heading h2 { overflow: hidden; margin: 0; font-family: Manrope, sans-serif; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.chat-thread-heading p { overflow: hidden; margin: 4px 0 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.chat-back-button { display: none; color: var(--purple); font-size: 21px; text-decoration: none; }
.chat-thread { display: flex; min-height: 0; flex: 1; flex-direction: column; gap: 9px; overflow-y: auto; padding: 18px clamp(13px, 3vw, 34px); scroll-behavior: smooth; }
.chat-messages { display: flex; flex-direction: column; gap: 9px; margin-top: auto; }
.chat-load-state { margin: auto; padding: 18px; color: var(--muted); font-size: 11px; text-align: center; }
.chat-load-state[hidden] { display: none; }
.chat-message { max-width: min(76%, 560px); align-self: flex-start; padding: 10px 13px 7px; border: 1px solid #ecebf3; border-radius: 13px 13px 13px 4px; background: white; box-shadow: 0 2px 6px rgb(28 35 67 / 3%); }
.chat-message.mine { align-self: flex-end; border-color: #e2ddff; border-radius: 13px 13px 4px 13px; background: #f0edff; }
.chat-message > p { margin: 0; color: #3c4050; font-size: 12px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-message-meta { display: flex; justify-content: flex-end; gap: 7px; margin-top: 5px; color: #9295a2; font-size: 8px; }
.chat-message.mine .chat-message-meta span { color: var(--purple-dark); font-weight: 700; }
.chat-compose { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 9px; padding: 12px clamp(13px, 3vw, 34px) 8px; border-top: 1px solid var(--line); background: white; }
.chat-compose textarea { min-height: 42px; max-height: 120px; flex: 1; resize: vertical; padding: 11px 12px; border: 1px solid #e3e4ec; border-radius: 9px; outline: none; color: var(--ink); font: inherit; font-size: 12px; }
.chat-compose textarea:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 10%); }
.chat-compose button { min-height: 42px; padding: 0 14px; border: 0; border-radius: 9px; background: var(--purple); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.chat-compose button:hover { background: var(--purple-dark); }
.chat-compose button:disabled { cursor: wait; opacity: .65; }
.chat-compose-error { margin: 0; padding: 0 20px 10px; background: white; color: #a54141; font-size: 10px; }
.chat-compose-error[hidden] { display: none; }
.chat-page-error { margin: 12px 20px 0; }
.chat-empty-state { display: flex; width: min(100% - 30px, 430px); flex-direction: column; align-items: center; justify-content: center; margin: auto; text-align: center; }
.chat-empty-state .welcome-art { width: 72px; height: 72px; margin-bottom: 23px; border-radius: 23px; }
.chat-empty-state .welcome-art span { font-size: 44px; }
.chat-empty-state .eyebrow { color: var(--purple); }
.chat-empty-state h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.8px; }
.chat-empty-state > p:last-child { max-width: 340px; margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 760px) {
    .chat-topbar { height: 62px; }
    .chat-account-desktop { display: none; }
    .chat-account-mobile { display: block; }
    .chat-layout { height: calc(100vh - 62px); height: calc(100svh - 62px); grid-template-columns: minmax(0, 1fr); }
    .chat-sidebar { padding: 15px 15px 11px; border-right: 0; }
    .chat-layout.has-conversation .chat-sidebar { display: none; }
    .chat-layout:not(.has-conversation) .chat-main { display: none; }
    .chat-layout.has-conversation .chat-main { display: flex; }
    .chat-thread-heading { min-height: 64px; padding: 8px 13px; }
    .chat-back-button { display: block; }
    .chat-thread { padding: 13px; }
}

@media (max-width: 360px) {
    .chat-topbar .brand { gap: 0; }
    .chat-topbar .brand > span:last-child { display: none; }
    .chat-sidebar { padding-right: 11px; padding-left: 11px; }
    .search-result { gap: 5px; }
    .search-result-identity { gap: 6px; }
    .search-result-copy strong { max-width: 120px; }
    .search-message-button { padding: 0 7px; }
}

.notification-link { text-decoration: none; }
.notification-full-link { display: inline-flex; width: auto; align-items: center; gap: 6px; padding: 0 8px; }
.notification-full-link span { font-size: 9px; font-weight: 700; }
.notification-full-link b { font-size: 9px; }
.notification-link:hover { background: #e7e3ff; }
.notifications-page { min-height: 100vh; background: var(--canvas); }
.notifications-shell { min-height: 100vh; }
.notifications-shell .profile-topbar { padding: 0 clamp(17px, 4vw, 48px); }
.notifications-content { width: min(100% - 32px, 820px); margin: 0 auto; padding: 32px 0 60px; }
.notifications-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.notifications-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 29px; letter-spacing: -1px; }
.notifications-heading p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.notifications-heading form { margin: 0; }
.notification-list { display: grid; gap: 10px; }
.notification-card { padding: 16px 18px; border: 1px solid #e9eaf0; border-radius: 10px; background: white; box-shadow: 0 3px 12px rgb(28 35 67 / 2%); }
.notification-card.notification-unread { border-color: #dcd6ff; box-shadow: 0 0 0 2px rgb(104 88 220 / 5%); }
.notification-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.notification-kind { color: var(--purple-dark); font-size: 9px; font-weight: 700; letter-spacing: .35px; text-transform: uppercase; }
.notification-card time { color: var(--muted); font-size: 9px; }
.notification-card h2 { margin: 9px 0 5px; font-family: Manrope, sans-serif; font-size: 14px; }
.notification-card > p { margin: 0; color: #646879; font-size: 11px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.notification-card-actions { display: flex; align-items: center; gap: 13px; margin-top: 11px; }
.notification-card-actions .profile-back { font-size: 10px; }
.notification-card-actions form { margin: 0; }
.notification-card-actions .text-button { padding: 5px 0; font-size: 10px; }
.notification-empty { padding: 45px 20px; border: 1px solid #e9eaf0; border-radius: 10px; background: white; text-align: center; }
.notification-empty h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; }
.notification-empty p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.admin-notice-form { max-width: 620px; }
.admin-notice-form .panel-note { margin: 0; }
.site-settings-form { max-width: 680px; }
.site-settings-form > input[type="color"] { width: 72px; min-height: 42px; padding: 4px; cursor: pointer; }
.branding-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: #fbfbfd; }
.branding-preview > div { display: grid; gap: 9px; }
.branding-preview strong { color: #656a79; font-size: 10px; }
.branding-logo-preview { display: flex; align-items: center; gap: 9px; color: #363a4a; font-size: 13px; font-weight: 700; }
.branding-logo-preview .brand-mark { width: 34px; height: 34px; }
.branding-logo-preview img { width: 170px; height: 50px; object-fit: contain; object-position: left center; }
.branding-favicon-preview { width: 36px; height: 36px; object-fit: contain; }
.branding-remove { display: flex; min-width: 0; align-items: center; gap: 8px; color: #666b7a; font-size: 10px; font-weight: 500; overflow-wrap: anywhere; }
.branding-remove input { width: 14px; height: 14px; flex: 0 0 auto; margin: 0; accent-color: var(--purple); }
.admin-form .branding-remove input[type="checkbox"] { width: 14px; min-width: 14px; height: 14px; min-height: 14px; flex: 0 0 14px; padding: 0; border: 0; }
.settings-subheading { margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.settings-subheading .eyebrow { margin-bottom: 4px; }
.settings-subheading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 15px; }
.role-edit-form { display: flex; flex-wrap: wrap; max-width: 210px; margin-top: 6px; }
.role-edit-form select { min-width: 68px; min-height: 29px; padding: 4px 6px; border: 1px solid #e3e4ec; border-radius: 6px; background: white; color: var(--ink); font-size: 9px; }
.user-edit-details { min-width: 160px; margin-top: 8px; white-space: normal; }
.user-edit-details > summary { color: var(--purple-dark); cursor: pointer; font-size: 9px; font-weight: 700; }
.user-edit-form { min-width: min(250px, 75vw); margin-top: 9px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fbfbfd; }
.user-edit-form input, .user-edit-form textarea { font-size: 10px; }

.admin-body { min-height: 100vh; background: #f5f6fa; }
.admin-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.admin-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 25px 16px 16px;
    border-right: 1px solid #e9eaf0;
    background: white;
}
.admin-sidebar > .brand { gap: 9px; padding: 0 9px 28px; font-size: 17px; }
.admin-sidebar .brand-mark { width: 32px; height: 32px; }
.admin-kicker { margin: 7px 10px 10px; color: #9b9eaa; font-size: 9px; font-weight: 700; letter-spacing: 1.35px; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a {
    display: flex;
    min-height: 40px;
    align-items: center;
    gap: 11px;
    padding: 0 11px;
    border-radius: 8px;
    color: #717586;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 140ms, color 140ms;
}
.admin-nav a:hover { background: #f7f6ff; color: var(--purple); }
.admin-nav a.active { background: #f0eeff; color: #5747c7; }
.nav-dot { width: 7px; height: 7px; flex: 0 0 auto; border: 1.5px solid currentColor; border-radius: 3px; opacity: .75; }
.admin-nav a.active .nav-dot { border: 0; background: currentColor; }
.nav-count { display: grid; min-width: 19px; height: 19px; margin-left: auto; padding: 0 5px; place-items: center; border-radius: 7px; background: #ffe9e8; color: #bd554c; font-size: 10px; }
.admin-profile { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 2px 0; border-top: 1px solid var(--line); }
.admin-profile .avatar { width: 32px; height: 32px; border-radius: 10px; }
.admin-profile .account-name { font-size: 11px; }
.admin-profile .text-button { text-decoration: none; }
.admin-main { min-width: 0; }
.admin-topbar { display: flex; min-height: 86px; align-items: center; justify-content: space-between; gap: 20px; padding: 17px clamp(20px, 4vw, 48px); border-bottom: 1px solid #e9eaf0; background: white; }
.admin-topbar .eyebrow { margin-bottom: 5px; font-size: 9px; }
.admin-topbar h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 21px; letter-spacing: -.7px; }
.admin-topbar-actions { display: flex; align-items: center; gap: 9px; }
.admin-desktop-actions { display: flex; align-items: center; gap: 9px; }
.admin-mobile-menu { display: none; }
.admin-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #e8e9ef; border-radius: 999px; background: #fff; color: #666b7a; font-size: 10px; font-weight: 600; }
.admin-pill .online-dot { width: 6px; height: 6px; }
.admin-profile-link { color: var(--purple-dark); font-size: 10px; font-weight: 700; text-decoration: none; }
.admin-profile-link:hover { text-decoration: underline; }
.admin-logout-form { margin: 0; }
.admin-logout { min-height: 34px; padding: 0 11px; border: 1px solid #e5e6ed; border-radius: 7px; background: white; color: #5c6070; cursor: pointer; font: inherit; font-size: 10px; font-weight: 700; }
.admin-logout:hover { border-color: #d8d3f8; background: #f7f6ff; color: var(--purple-dark); }
.admin-logout:focus-visible { outline: 3px solid rgb(104 88 220 / 28%); outline-offset: 2px; }
.admin-content { width: min(100%, 1440px); margin: 0 auto; padding: 28px clamp(20px, 4vw, 48px) 50px; }
.admin-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
.admin-stat { display: grid; min-height: 99px; align-content: space-between; padding: 16px 18px; border: 1px solid #ebecf2; border-radius: 11px; background: white; box-shadow: 0 3px 12px rgb(28 35 67 / 2%); }
.admin-stat span { color: #85899a; font-size: 11px; font-weight: 600; }
.admin-stat strong { font-family: Manrope, sans-serif; font-size: 25px; letter-spacing: -.7px; }
.admin-panel { margin-bottom: 18px; padding: 20px; border: 1px solid #e9eaf0; border-radius: 11px; background: white; box-shadow: 0 3px 12px rgb(28 35 67 / 2%); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 19px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 9px; }
.panel-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.45px; }
.panel-heading p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.panel-heading code, .panel-note code { overflow-wrap: anywhere; padding: 2px 4px; border-radius: 4px; background: #f3f3f8; font-size: 10px; }
.quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-links a { display: grid; gap: 5px; padding: 14px; border: 1px solid #ececf2; border-radius: 8px; text-decoration: none; transition: border-color 140ms, background 140ms; }
.quick-links a:hover { border-color: #d7d1ff; background: #fbfaff; }
.quick-links strong { font-size: 12px; }
.quick-links span { color: var(--muted); font-size: 10px; }
.admin-search { display: flex; gap: 9px; margin-bottom: 17px; }
.admin-search input { flex: 1; }
.admin-form, .admin-search, .test-form { min-width: 0; }
.admin-form { display: grid; gap: 8px; }
.admin-form label, .test-form label { margin-top: 5px; color: #4a4e5d; font-size: 11px; font-weight: 700; }
.admin-form input, .admin-form select, .admin-form textarea, .admin-search input, .test-form input, .report-actions select {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 11px;
    border: 1px solid #e3e4ec;
    border-radius: 7px;
    outline: none;
    background: white;
    color: var(--ink);
    font-size: 11px;
}
.admin-form textarea { resize: vertical; }
.admin-form input:focus, .admin-form select:focus, .admin-form textarea:focus, .admin-search input:focus, .test-form input:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 10%); }
.admin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.admin-field-grid > div { display: grid; gap: 8px; }
.admin-button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; width: fit-content; margin-top: 9px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--purple); color: white; cursor: pointer; font-size: 11px; font-weight: 700; }
.admin-button:hover { background: var(--purple-dark); }
.secondary-button { border: 1px solid #e3e1f4; background: #f7f6ff; color: var(--purple-dark); }
.secondary-button:hover { background: #eeebff; }
.test-form { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.test-form .admin-field-grid { grid-template-columns: minmax(0, 1fr) auto; margin-top: 8px; }
.test-form .admin-button { margin-top: 0; }
.panel-note { margin: 9px 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.table-scroll { width: 100%; overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
.admin-table th { padding: 10px 11px; border-bottom: 1px solid var(--line); color: #9194a0; font-size: 9px; font-weight: 700; letter-spacing: .45px; text-transform: uppercase; }
.admin-table td { padding: 12px 11px; border-bottom: 1px solid #f0f0f5; color: #5d6271; font-size: 10px; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: 0; }
.admin-table td strong { display: block; color: #343849; font-size: 10px; }
.admin-table td small { display: block; margin-top: 4px; color: #9699a6; font-size: 9px; }
.admin-table code { color: #686d7d; font-size: 9px; }
.admin-table .report-reason { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: normal; }
.status-tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 9px; font-weight: 700; }
.status-active { background: #e8f8ef; color: #327750; }
.status-muted { background: #f0f1f5; color: #747888; }
.inline-form { display: inline-flex; align-items: center; gap: 5px; }
.table-action { padding: 6px 8px; border: 1px solid #e9e8f3; border-radius: 6px; background: white; color: #6152cb; cursor: pointer; font-size: 9px; font-weight: 700; }
.table-action:hover { background: #f5f3ff; }
.report-actions { display: flex; margin-top: 7px; }
.report-actions select { min-height: 29px; padding: 4px 6px; font-size: 9px; }
.empty-table { padding: 25px 12px !important; color: #8c909d !important; text-align: center; }
.muted { color: #9699a6; font-size: 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

.profile-page { background: #f5f6fa; }
.profile-shell { min-height: 100vh; }
.profile-topbar { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(18px, 5vw, 64px); border-bottom: 1px solid #e9eaf0; background: white; }
.profile-topbar .brand { gap: 9px; font-size: 16px; text-decoration: none; }
.profile-topbar .brand-mark { width: 31px; height: 31px; }
.profile-back { color: var(--purple-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.profile-back:hover { text-decoration: underline; }
.profile-content { width: min(100% - 32px, 760px); margin: 0 auto; padding: 42px 0 60px; }
.profile-heading { margin-bottom: 22px; }
.profile-heading .eyebrow { margin-bottom: 7px; color: var(--purple); }
.profile-heading h1 { margin: 0; font-family: Manrope, sans-serif; font-size: 29px; letter-spacing: -1px; }
.profile-heading > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.profile-card { margin-bottom: 15px; padding: 23px; border: 1px solid #e8e9ef; border-radius: 13px; background: white; box-shadow: 0 5px 18px rgb(28 35 67 / 3%); }
.profile-summary { display: flex; align-items: center; gap: 15px; padding-bottom: 20px; border-bottom: 1px solid #f0f0f5; }
.profile-avatar { display: grid; width: 68px; height: 68px; flex: 0 0 auto; place-items: center; border-radius: 21px; object-fit: cover; }
.profile-avatar-fallback { background: #eeeaff; color: var(--purple); font-size: 28px; font-weight: 700; }
.profile-summary .eyebrow { margin: 0 0 5px; color: var(--purple); font-size: 9px; }
.profile-summary h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 19px; letter-spacing: -.4px; }
.profile-summary div > p:last-child { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.profile-form { display: grid; gap: 9px; padding-top: 19px; }
.profile-form label { margin-top: 5px; color: #454958; font-size: 11px; font-weight: 700; }
.profile-form label span { margin-left: 5px; color: #9296a3; font-size: 10px; font-weight: 400; }
.profile-form input:not([type="hidden"]):not([type="file"]), .profile-form textarea { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #e3e4ec; border-radius: 8px; outline: none; background: white; color: var(--ink); font-size: 12px; }
.profile-form select { width: 100%; min-width: 0; min-height: 42px; padding: 10px 12px; border: 1px solid #e3e4ec; border-radius: 8px; outline: none; background: white; color: var(--ink); font-size: 12px; }
.profile-form textarea { resize: vertical; line-height: 1.5; }
.profile-form input[type="file"] { width: 100%; min-width: 0; padding: 8px; border: 1px dashed #dcdde8; border-radius: 8px; background: #fafaff; color: #666b7a; font-size: 11px; }
.profile-form input:focus, .profile-form textarea:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 10%); }
.profile-form select:focus { border-color: #8b7fe6; box-shadow: 0 0 0 3px rgb(104 88 220 / 10%); }
.support-request-list { display: grid; gap: 11px; }
.support-request-card { min-width: 0; padding: 15px; border: 1px solid #ececf2; border-radius: 9px; background: #fff; }
.support-request-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.support-request-heading h3 { margin: 3px 0 0; color: #363a4a; font-family: Manrope, sans-serif; font-size: 14px; }
.support-request-card > p { margin: 10px 0 0; color: #5d6271; font-size: 11px; line-height: 1.65; overflow-wrap: anywhere; }
.support-request-meta { color: var(--muted) !important; font-size: 10px !important; }
.support-request-details { white-space: pre-wrap; }
.support-admin-response { margin-top: 12px; padding: 11px 12px; border-left: 3px solid #8b7fe6; border-radius: 0 7px 7px 0; background: #f7f6ff; color: #4d496f; font-size: 11px; line-height: 1.6; }
.support-admin-response > strong { font-size: 10px; }
.support-admin-response > p { margin: 5px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.support-request-response-form { margin-top: 13px; }
.admin-role-badge { align-self: center; padding: 4px 7px; border-radius: 999px; background: #f0eeff; color: #5747c7; font-size: 9px; font-weight: 700; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 8px; }
.profile-actions .admin-button { margin-top: 0; }
.profile-details > .eyebrow { margin: 0 0 8px; color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.profile-details > div { display: grid; grid-template-columns: minmax(90px, .35fr) 1fr; gap: 4px 16px; padding: 13px 0; border-top: 1px solid #f0f0f5; }
.profile-details > div > span { grid-row: span 2; color: #85899a; font-size: 11px; }
.profile-details strong { min-width: 0; overflow-wrap: anywhere; color: #3b3f50; font-size: 12px; }
.profile-details small { color: #9296a3; font-size: 10px; }
.profile-section-heading { margin: 30px 2px 15px; scroll-margin-top: 18px; }
.profile-section-heading .eyebrow { margin: 0 0 6px; color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.profile-section-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 20px; letter-spacing: -.5px; }
.profile-section-heading > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.account-settings-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.account-settings-nav a { padding: 8px 11px; border: 1px solid #e8e9ef; border-radius: 8px; background: white; color: var(--purple-dark); font-size: 11px; font-weight: 700; text-decoration: none; }
.account-settings-nav a:hover, .account-settings-nav a:focus-visible { border-color: #d8d3f8; background: #f7f6ff; }
.account-settings-nav a[aria-current="page"] { border-color: #d8d3f8; background: #f0eeff; color: #5747c7; }
.profile-card[id] { scroll-margin-top: 16px; }
.settings-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-card-heading .eyebrow { margin: 0 0 5px; color: var(--purple); font-size: 9px; font-weight: 700; letter-spacing: 1px; }
.settings-card-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.35px; }
.settings-description { margin: 9px 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.pending-email-note { margin: 10px 0; padding: 10px 12px; border: 1px solid #f1e2bd; border-radius: 8px; background: #fffbf0; color: #786331; font-size: 11px; overflow-wrap: anywhere; }
.settings-form { max-width: 560px; }
.preference-toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #f0f0f5; cursor: pointer; }
.preference-toggle > span { display: grid; gap: 4px; }
.preference-toggle strong { color: #454958; font-size: 12px; }
.preference-toggle small { color: var(--muted); font-size: 10px; font-weight: 400; line-height: 1.5; }
.preference-toggle input { width: 17px; height: 17px; flex: 0 0 auto; accent-color: var(--purple); }
.profile-form label.preference-toggle input[type="checkbox"] { width: 17px; height: 17px; min-height: 17px; padding: 0; border: 0; box-shadow: none; }
.session-list { display: grid; margin-top: 14px; }
.session-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f5; }
.session-device-icon { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border-radius: 10px; background: #f1efff; color: var(--purple); font-size: 12px; }
.session-item > div { display: grid; min-width: 0; flex: 1; gap: 4px; }
.session-item strong { overflow: hidden; color: #454958; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.session-item small { color: var(--muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.session-current { color: #327750; font-size: 10px; font-weight: 700; }

@media (max-width: 900px) {
    .admin-layout { grid-template-columns: 210px minmax(0, 1fr); }
    .admin-sidebar { padding-right: 11px; padding-left: 11px; }
    .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-content { padding-right: 20px; padding-left: 20px; }
}

@media (max-width: 650px) {
    .admin-layout { display: block; }
    .admin-sidebar { position: sticky; z-index: 5; top: 0; height: auto; padding: 12px 13px 9px; border-right: 0; border-bottom: 1px solid #e9eaf0; }
    .admin-sidebar > .brand { padding: 0 3px 11px; font-size: 15px; }
    .admin-sidebar .brand-mark { width: 27px; height: 27px; border-radius: 9px; font-size: 18px; }
    .admin-kicker, .admin-profile { display: none; }
    .admin-nav { display: flex; gap: 5px; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; }
    .admin-nav a { min-height: 33px; flex: 0 0 auto; gap: 7px; padding: 0 9px; font-size: 10px; }
    .nav-dot { width: 6px; height: 6px; }
    .admin-topbar { min-height: 69px; padding: 13px 16px; }
    .admin-topbar h1 { font-size: 18px; }
    .admin-content { padding: 17px 13px 35px; }
    .admin-stats { gap: 9px; }
    .admin-stat { min-height: 83px; padding: 12px; }
    .admin-stat strong { font-size: 22px; }
    .admin-panel { padding: 14px; }
    .quick-links { grid-template-columns: 1fr; }
    .admin-field-grid { grid-template-columns: 1fr; }
    .test-form .admin-field-grid { grid-template-columns: 1fr; }
    .admin-search { flex-wrap: wrap; }
    .admin-profile .account-name { display: none; }
    .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 0 12px; }
    .sidebar > .brand { grid-column: 1; grid-row: 1; align-self: center; margin: 0; }
    .account-card { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding: 0; border: 0; }
    .sidebar-heading, .sidebar > .message, .empty-conversations, .member-plans { grid-column: 1 / -1; }
    .account-menu-desktop { display: none; }
    .account-menu-mobile { position: relative; display: block; }
    .account-menu-mobile > summary { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e8e9ef; border-radius: 11px; background: white; cursor: pointer; list-style: none; }
    .account-menu-mobile > summary:focus-visible, .admin-mobile-menu > summary:focus-visible { outline: 3px solid rgb(104 88 220 / 28%); outline-offset: 2px; }
    .account-menu-mobile > summary::-webkit-details-marker { display: none; }
    .account-menu-mobile .account-menu-items { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; min-width: 180px; padding: 7px; border: 1px solid #e8e9ef; border-radius: 10px; background: white; box-shadow: 0 12px 30px rgb(28 35 67 / 12%); }
    .account-menu-mobile .account-menu-items { padding: 7px; }
    .account-menu-items { padding: 7px 0 0 44px; }
    .account-menu-items a, .account-menu-items button { min-height: 38px; }
    .admin-desktop-actions { display: none; }
    .admin-mobile-menu { position: relative; display: block; }
    .admin-mobile-menu > summary { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid #e8e9ef; border-radius: 11px; background: white; color: #555a69; cursor: pointer; list-style: none; }
    .admin-mobile-menu > summary::-webkit-details-marker { display: none; }
    .admin-mobile-menu .avatar { width: 27px; height: 27px; border-radius: 9px; }
    .admin-mobile-menu .account-menu-items { position: absolute; z-index: 10; top: calc(100% + 8px); right: 0; min-width: 175px; padding: 7px; border: 1px solid #e8e9ef; border-radius: 10px; background: white; box-shadow: 0 12px 30px rgb(28 35 67 / 12%); }
    .profile-section-heading { margin-top: 25px; }
    .profile-content { width: min(100% - 26px, 760px); padding-top: 27px; }
    .profile-card { padding: 17px; }
    .profile-details > div { grid-template-columns: 90px minmax(0, 1fr); }
}
