.image-preview {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 64px 20px 24px;
    border: 0;
    background: rgba(12, 20, 32, .94);
    color: #fff;
}
.image-preview[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.image-preview::backdrop { background: rgba(0, 0, 0, .7); }
.image-preview img { max-width: 100%; max-height: calc(100dvh - 140px); min-height: 0; object-fit: contain; }
.image-preview-caption { margin: 0; overflow-wrap: anywhere; text-align: center; }
.image-preview .image-preview-close { position: absolute; top: 14px; right: 16px; width: 44px; height: 44px; padding: 0; background: #fff; color: #172126; border-radius: 50%; font-size: 30px; }
.attachment a[data-image-preview] { cursor: zoom-in; }

.image-editor { width: min(1000px, 96vw); max-height: 94dvh; padding: 20px; border: 0; border-radius: 12px; color: #252b34; background: #fff; }
.image-editor::backdrop { background: #152238b8; }
.image-editor h2 { margin: 0 0 16px; font-size: 20px; }
.image-editor-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.image-editor-tools label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.image-editor-tools select { width: auto; padding: 6px; }
.image-editor-tools input[type=color] { width: 44px; height: 36px; padding: 3px; }
.image-editor-stage { display: flex; justify-content: center; background: #edf0f4; overflow: auto; }
.image-editor canvas { display: block; max-width: 100%; max-height: 60dvh; width: auto; height: auto; object-fit: contain; touch-action: none; cursor: crosshair; }
.image-editor p { font-size: 13px; color: #526175; }
.image-editor-actions { display: flex; justify-content: flex-end; gap: 10px; }
.image-editor [data-send] { background: #175fc2; }
.image-editor [data-cancel], .image-editor [data-clear], .image-editor [data-undo] { color: #304761; background: #e9eff7; }

.long-message-content { overflow-wrap: anywhere; }
.long-message-content.is-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    max-height: 3.5em;
}
.long-message-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.long-message-emails { margin-top: 12px; padding-top: 10px; border-top: 1px solid #afc5e3; color: #243b58; overflow-wrap: anywhere; user-select: text; }
.long-message-emails strong { display: block; margin-bottom: 4px; font-size: 12px; }
.long-message-emails span { display: block; font-size: 16px; line-height: 1.6; }
.message .bubble .message-copy-button,
.message .bubble .message-expand-button {
    display: block;
    margin-top: 0;
    padding: 6px 12px;
    min-height: 34px;
    border: 1px solid #afc5e3;
    border-radius: 6px;
    background: #edf3fc;
    color: #174f96;
    font-size: 13px;
    font-weight: 600;
}
.message .bubble .message-copy-button:hover,
.message .bubble .message-expand-button:hover { background: #dce9fc; }

:root {
    --bg: #f4f7f8;
    --panel: #ffffff;
    --line: #d8e0e3;
    --text: #172126;
    --muted: #61717a;
    --primary: #147c72;
    --primary-dark: #0e6059;
    --accent: #d9563d;
    --soft: #edf6f4;
    --shadow: 0 16px 45px rgba(23, 33, 38, 0.12);
}

* {
    box-sizing: border-box;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    min-height: 40px;
    padding: 0 16px;
}

button:hover {
    background: var(--primary-dark);
}

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

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    outline: 0;
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(20, 124, 114, 0.12);
}

a {
    color: var(--primary);
    text-decoration: none;
}

.chat-page {
    height: 100vh;
    overflow: hidden;
    display: grid;
    place-items: center;
    padding: 24px;
}

.chat-shell {
    width: min(920px, 100%);
    height: min(760px, calc(100vh - 48px));
    min-height: 0;
}

.chat-panel,
.login-box,
.conversation-pane,
.workspace-pane,
.settings-pane {
    background: var(--panel);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.chat-panel {
    height: 100%;
    min-height: 0;
    display: grid;
    grid-template-rows: auto 1fr auto;
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
    color: #fff;
    background: #123f3c;
}

.chat-header > div {
    min-width: 0;
}

.chat-header h1,
.chat-header p {
    margin: 0;
}

.chat-header h1 {
    display: inline-block;
    max-width: min(520px, 58vw);
    overflow: hidden;
    margin-left: 8px;
    font-size: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: bottom;
}

.chat-header p {
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.78);
}

.profile-edit-button {
    flex: 0 0 auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.32);
}

.profile-edit-button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #a9b5b7;
}

.status-dot.online {
    background: #39d083;
    box-shadow: 0 0 0 5px rgba(57, 208, 131, 0.18);
}

.status-dot.offline {
    background: #e9a33b;
}

.status-dot.tiny {
    width: 8px;
    height: 8px;
    margin-right: 4px;
    vertical-align: 1px;
}

.profile-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(10, 24, 26, 0.42);
}

.profile-modal[hidden] {
    display: none;
}

.visitor-card {
    width: min(430px, 100%);
    display: grid;
    gap: 14px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.visitor-card h2 {
    margin: 0;
    font-size: 20px;
}

.profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.profile-save-button {
    min-width: 76px;
}

.profile-email-tip {
    display: block;
    margin-top: 7px;
    color: #c62828;
    font-size: 12px;
    line-height: 1.5;
}

.profile-notice {
    color: var(--muted);
    font-size: 13px;
    min-height: 18px;
}

.visitor-card input[readonly] {
    color: var(--muted);
    background: #f4f7f8;
}

label span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 13px;
}

.quick-reply-setting small {
    display: block;
    color: var(--muted);
    line-height: 1.5;
}

.messages {
    min-height: 0;
    overflow-y: auto;
    padding: 24px;
    background: linear-gradient(180deg, #f8fbfb 0%, #f2f6f6 100%);
}

.message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 14px;
}

.message.admin,
.message.visitor {
    position: relative;
    min-height: 40px;
    padding-left: 50px;
}

.message.visitor {
    padding-left: 0;
    padding-right: 50px;
}

.message.admin::before,
.message.visitor::before {
    content: "";
    position: absolute;
    top: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background-size: cover;
    background-repeat: no-repeat;
}

.message.admin::before {
    left: 0;
    background-image: var(--chat-admin-avatar, url("avatar-admin.svg?v=2"));
}

.message.visitor::before {
    right: 0;
    background-image: var(--chat-visitor-avatar, url("avatar-visitor.svg?v=2"));
}

.message .bubble {
    max-width: min(680px, 82%);
    border-radius: 8px;
    padding: 11px 13px;
    line-height: 1.55;
    background: #fff;
    border: 1px solid var(--line);
    word-break: break-word;
}

.message .bubble a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.message time {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.message.visitor {
    align-items: flex-end;
}

.message.visitor .bubble {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.message.visitor .bubble a {
    color: #fff;
}

.message.admin .bubble {
    background: #fff;
}

.message.system .bubble {
    background: #fff7ea;
    border-color: #efd6a7;
}

.welcome-links {
    display: grid;
    gap: 6px;
    margin-top: 10px;
}

.welcome-links a,
.welcome-links button {
    color: #126ac2;
    padding: 0;
    text-align: left;
    background: transparent;
    border: 0;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.welcome-links button:disabled {
    opacity: 0.55;
}

.composer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.chat-email-reminder {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 11px;
    color: #b42318;
    background: #fff0ee;
    border: 1px solid #efb1aa;
    border-left: 4px solid #dc5548;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
}

.composer-tools {
    position: relative;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
}

.quick-reply-select {
    width: min(260px, 42vw);
    min-height: 32px;
    padding: 5px 10px;
}

.tool-button {
    min-height: 32px;
    padding: 0 12px;
    color: var(--text);
    background: #eef4f4;
    border: 1px solid var(--line);
}

.tool-button:hover {
    color: #fff;
    background: var(--primary);
}

.sound-enable-button {
    color: #9a3412;
    background: #fff4e5;
    border-color: #f0c58a;
}

.sound-enable-button.enabled {
    color: #17663a;
    background: #eaf7ef;
    border-color: #9bd2ad;
}

.upload-state {
    color: var(--muted);
    font-size: 13px;
}

.emoji-panel {
    position: absolute;
    left: 0;
    bottom: 40px;
    z-index: 20;
    width: min(330px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 4px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.emoji-panel[hidden] {
    display: none;
}

.emoji-panel button {
    min-height: 34px;
    padding: 0;
    color: var(--text);
    background: #fff;
    border-radius: 6px;
    font-size: 20px;
}

.emoji-panel button:hover {
    background: var(--soft);
}

.quick-reply-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 18px;
    background: rgba(10, 24, 26, 0.38);
}

.quick-reply-modal[hidden] {
    display: none;
}

.quick-reply-manager {
    width: min(680px, 100%);
    max-height: min(720px, calc(100vh - 36px));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    overflow: hidden;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.quick-reply-manager header,
.quick-reply-add,
.quick-reply-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: center;
}

.quick-reply-manager header {
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.quick-reply-manager h2 {
    margin: 0;
    font-size: 18px;
}

.quick-reply-rows {
    min-height: 160px;
    overflow-y: auto;
    padding: 12px 16px;
    background: #fbfcfc;
}

.quick-reply-row {
    margin-bottom: 10px;
}

.quick-reply-row textarea,
.quick-reply-add textarea {
    min-height: 42px;
    resize: vertical;
}

.quick-reply-row textarea:disabled {
    color: var(--text);
    background: #f4f7f8;
}

.quick-reply-add {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}

.quick-reply-manager .notice {
    min-height: 42px;
    padding: 0 16px 14px;
}

.composer textarea {
    min-height: 48px;
    max-height: 150px;
}

.attachment {
    display: grid;
    gap: 8px;
}

.attachment img,
.attachment video {
    width: min(360px, 100%);
    max-height: 320px;
    border-radius: 8px;
    object-fit: contain;
    background: #0f181b;
}

.attachment a {
    font-size: 13px;
    word-break: break-all;
}

.file-attachment a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 8px 10px;
    color: var(--text);
    background: #eef4f4;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.file-attachment a::before {
    content: "";
    width: 18px;
    height: 22px;
    flex: 0 0 auto;
    display: inline-block;
    background:
        linear-gradient(135deg, transparent 0 48%, #d7e3e3 50% 100%) top right / 8px 8px no-repeat,
        #fff;
    border: 1px solid #b8caca;
    border-radius: 3px;
    box-shadow: inset 0 -6px 0 rgba(20, 124, 114, 0.12);
}

.loading,
.empty,
.alert,
.notice {
    color: var(--muted);
    padding: 14px;
}

.alert {
    color: #962d20;
    background: #fff0ed;
    border: 1px solid #fac8bd;
    border-radius: 6px;
}

.login-page {
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-shell {
    width: min(420px, 100%);
}

.login-box {
    display: grid;
    gap: 16px;
    border-radius: 8px;
    padding: 28px;
}

.login-box h1,
.login-box p {
    margin: 0;
}

.login-box p,
.login-box small {
    color: var(--muted);
}

.admin-page {
    min-height: 100vh;
}

.admin-topbar {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    color: #fff;
    background: #123f3c;
}

.admin-topbar div,
.admin-topbar nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-topbar span {
    color: rgba(255, 255, 255, 0.72);
}

.admin-topbar a {
    color: #fff;
}

.admin-layout {
    height: calc(100vh - 58px);
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 330px;
    gap: 14px;
    padding: 14px;
}

.conversation-pane,
.workspace-pane,
.settings-pane {
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.conversation-pane,
.workspace-pane {
    display: grid;
    grid-template-rows: auto 1fr;
}

.pane-head,
.workspace-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--line);
}

.mobile-back-button {
    display: none;
}

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

.conversation-filter {
    display: flex;
    align-items: center;
    padding: 2px;
    background: #eef4f4;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.conversation-filter button {
    min-height: 28px;
    padding: 0 10px;
    color: var(--muted);
    background: transparent;
    border: 0;
}

.conversation-filter button.active {
    color: #fff;
    background: var(--primary);
}

.workspace-pane {
    grid-template-rows: auto auto 1fr auto;
}

.workspace-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-button {
    color: #fff;
    background: #b9342b;
    border-color: #b9342b;
}

.danger-button:hover {
    background: #962d20;
    border-color: #962d20;
}

.conversation-notebar {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #fff;
}

.conversation-notebar summary {
    cursor: pointer;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    list-style: none;
}

.conversation-notebar summary::-webkit-details-marker {
    display: none;
}

.conversation-notebar summary::after {
    content: "展开";
    float: right;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.conversation-notebar[open] summary {
    margin-bottom: 10px;
}

.conversation-notebar[open] summary::after {
    content: "收起";
}

.conversation-note-editor {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.conversation-note-editor label {
    min-width: 0;
}

.conversation-notebar textarea {
    min-height: 42px;
    max-height: 92px;
    resize: vertical;
}

.small-button {
    min-height: 32px;
    padding: 0 12px;
    font-size: 13px;
}

.pane-head h1,
.workspace-head h2,
.workspace-head p,
.settings-form h2 {
    margin: 0;
}

.pane-head h1,
.workspace-head h2,
.settings-form h2 {
    font-size: 18px;
}

.workspace-head p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.conversation-list {
    overflow-y: auto;
    padding: 8px;
    background: #fbfcfc;
}

.conversation-item {
    width: 100%;
    min-height: 82px;
    display: block;
    margin-bottom: 8px;
    padding: 12px;
    color: var(--text);
    text-align: left;
    background: #fff;
    border: 1px solid var(--line);
}

.conversation-item:hover,
.conversation-item.active {
    color: var(--text);
    background: var(--soft);
    border-color: rgba(20, 124, 114, 0.45);
}

.conversation-item .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.conversation-title {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.conversation-item strong,
.workspace-head h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.conversation-service-badge,
.conversation-note-badge {
    max-width: 110px;
    flex: 0 1 auto;
    display: inline-block;
    overflow: hidden;
    padding: 2px 6px;
    color: #7a5b10;
    background: #fff3cd;
    border: 1px solid #ead48c;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

.conversation-service-badge {
    color: #185d86;
    background: #e8f4ff;
    border: 1px solid #abd3ef;
}

.conversation-note-badge {
    color: #7a5b10;
    background: #fff3cd;
    border: 1px solid #ead48c;
}

.workspace-head h2 .conversation-note-badge {
    max-width: 180px;
    margin-left: 8px;
}

.workspace-head h2 .conversation-service-badge {
    max-width: 180px;
    margin-left: 8px;
}

.conversation-item em {
    min-width: 22px;
    height: 22px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
}

.conversation-item small,
.conversation-item .meta {
    display: block;
    overflow: hidden;
    margin-top: 7px;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-messages {
    min-height: 0;
}

.admin-messages .message.visitor {
    align-items: flex-start;
    padding-left: 50px;
    padding-right: 0;
}

.admin-messages .message.visitor::before {
    left: 0;
    right: auto;
}

.admin-messages .message.visitor .bubble {
    color: var(--text);
    background: #fff;
    border-color: var(--line);
}

.admin-messages .message.admin {
    align-items: flex-end;
    padding-left: 0;
    padding-right: 50px;
}

.admin-messages .message.admin::before {
    left: auto;
    right: 0;
}

.admin-messages .message.admin .bubble {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.admin-messages .message.admin .bubble a {
    color: #fff;
}

.admin-messages .message.visitor .bubble a {
    color: var(--primary);
}

.admin-composer {
    grid-template-columns: 1fr 82px;
}

.settings-pane {
    overflow-y: auto;
    padding: 16px;
}

.settings-form {
    display: grid;
    gap: 13px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.settings-form.compact {
    margin-top: 18px;
    border-bottom: 0;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.check-row input {
    width: 18px;
    height: 18px;
}

.smtp-test-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.smtp-test-row label {
    min-width: 0;
}

.check-row span {
    margin: 0;
}

@media (max-width: 1080px) {
    .admin-layout {
        height: auto;
        grid-template-columns: 280px 1fr;
    }

    .settings-pane {
        grid-column: 1 / -1;
    }

    .conversation-pane,
    .workspace-pane {
        height: 640px;
    }
}

@media (max-width: 760px) {
    .chat-page,
    .login-page {
        padding: 0;
    }

    .chat-panel {
        height: 100vh;
        min-height: 0;
        border-radius: 0;
    }

    .chat-shell {
        height: 100vh;
    }

    .chat-header,
    .composer {
        padding-left: 14px;
        padding-right: 14px;
    }

    .composer,
    .admin-composer {
        grid-template-columns: 1fr;
    }

    .chat-header {
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .chat-header h1 {
        font-size: 18px;
    }

    .profile-edit-button {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }

    .quick-reply-select {
        width: 100%;
    }

    .quick-reply-manager header,
    .quick-reply-add,
    .quick-reply-row,
    .smtp-test-row {
        grid-template-columns: 1fr;
    }

    .messages {
        padding: 16px 14px;
    }

    .message .bubble {
        max-width: 92%;
    }

    .admin-topbar {
        height: auto;
        align-items: flex-start;
        gap: 8px;
        flex-direction: column;
        padding: 12px 14px;
    }

    .admin-layout {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .conversation-pane,
    .workspace-pane {
        height: 520px;
    }

    .admin-layout {
        position: relative;
        display: block;
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        padding: 0;
    }

    .conversation-pane,
    .workspace-pane {
        height: 100%;
        min-height: 0;
        border-radius: 0;
    }

    .conversation-pane {
        display: grid;
    }

    .workspace-pane {
        display: none;
    }

    body.mobile-chat-open .conversation-pane {
        display: none;
    }

    body.mobile-chat-open .workspace-pane {
        display: grid;
        grid-template-rows: auto auto 1fr auto;
    }

    .workspace-head {
        min-height: 72px;
        padding: 10px 14px;
    }

    .workspace-head > div:first-child {
        min-width: 0;
    }

    .mobile-back-button {
        display: inline-block;
        margin-bottom: 8px;
        min-height: 36px;
        padding: 0 12px;
        color: #fff;
        background: var(--primary);
        border: 1px solid var(--primary);
        border-radius: 8px;
        font-size: 16px;
        font-weight: 700;
    }

    .workspace-head h2 {
        max-width: 58vw;
        font-size: 17px;
    }

    .workspace-head p {
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .workspace-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
    }

    .workspace-actions button {
        min-height: 30px;
        padding: 0 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .conversation-notebar {
        padding: 8px 12px;
    }

    .conversation-note-editor {
        grid-template-columns: 1fr auto;
        gap: 8px;
    }

    .conversation-notebar textarea {
        min-height: 34px;
        max-height: 58px;
    }

    .small-button {
        min-height: 30px;
        padding: 0 10px;
        font-size: 12px;
    }

    .admin-messages {
        padding: 14px 12px;
    }

    .admin-composer {
        padding: 10px 12px;
    }

    .admin-composer .composer-tools {
        flex-wrap: wrap;
    }

    .admin-composer .tool-button {
        padding: 0 8px;
        font-size: 12px;
    }
}
