:root {
    font-family: "Segoe UI", "Microsoft YaHei UI", sans-serif;
    color: #292825;
    background: #f6f5f2;
    font-synthesis: none;
}

* { box-sizing: border-box; letter-spacing: 0; }
html, body { min-height: 100%; margin: 0; }
body { background: #f6f5f2; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(181, 87, 47, .24); outline-offset: 2px; }
.app-frame { min-height: 100vh; }
.content-width, .topbar-inner { width: min(1200px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 66px; display: flex; align-items: center; background: #fff; border-bottom: 1px solid #dedbd5; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: 11px; color: #292825; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 6px; color: #fff; background: #b5572f; font-size: 15px; font-weight: 800; }
.brand-copy { min-width: 0; display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 3px; color: #79746c; font-size: 11px; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.service-state { display: inline-flex; align-items: center; gap: 8px; color: #6a665e; font-size: 13px; white-space: nowrap; }
.service-state i { width: 8px; height: 8px; border-radius: 50%; background: #aaa59d; box-shadow: 0 0 0 3px #eceae6; }
.service-state.online i { background: #278d66; box-shadow: 0 0 0 3px #e0f0e8; }
.service-state.pending i { background: #c58a20; box-shadow: 0 0 0 3px #f5ead3; }
.service-state.offline i { background: #c84e4e; box-shadow: 0 0 0 3px #f6e1e1; }
.new-chat-button { min-height: 36px; padding: 7px 12px; color: #3f3a35; background: #fff; border: 1px solid #cfc9c0; border-radius: 5px; cursor: pointer; font-size: 13px; font-weight: 600; }
.new-chat-button:hover { color: #9e4a28; border-color: #c88769; }
.new-chat-button span { margin-right: 4px; font-size: 15px; }
.chat-page { min-height: calc(100vh - 66px); }
.chat-band { padding: 20px 0 32px; }
.chat-workspace { position: relative; height: max(570px, calc(100dvh - 118px)); max-height: 860px; overflow: hidden; background: #fff; border: 1px solid #d5d0c8; border-radius: 8px; box-shadow: 0 8px 24px rgba(55, 44, 33, .07); }
.marketing-ai-chat { width: 100%; height: 100%; }
.slash-command-menu { position: absolute; left: var(--slash-left, 32px); bottom: var(--slash-bottom, 136px); z-index: 20; width: min(420px, var(--slash-width, calc(100% - 64px))); max-height: min(510px, calc(100dvh - 220px)); padding: 6px; overflow-y: auto; background: #fff; border: 1px solid #cec8bf; border-radius: 7px; box-shadow: 0 12px 30px rgba(42, 35, 28, .18); }
.slash-command-heading { padding: 7px 9px 6px; color: #777168; font-size: 11px; font-weight: 800; }
.slash-command-empty { padding: 12px 9px; color: #777168; font-size: 12px; }
.slash-command-item { width: 100%; min-width: 0; display: grid; gap: 3px; padding: 9px; color: #38342f; background: transparent; border: 0; border-radius: 4px; cursor: pointer; text-align: left; }
.slash-command-item:hover, .slash-command-item:focus-visible, .slash-command-item.selected { background: #f6eee9; outline: none; }
.slash-command-item span { font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.slash-command-item small { color: #777168; font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.marketing-ai-chat .dxbl-chat-message-button { display: none; }
.marketing-ai-chat .chat-markdown { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overflow-wrap: anywhere; scrollbar-width: thin; }
.marketing-ai-chat .chat-markdown table { display: table; width: max-content; min-width: min(100%, 560px); margin: 12px 0; border: 1px solid #d2ccc3; border-radius: 6px; border-spacing: 0; border-collapse: separate; background: #fff; }
.marketing-ai-chat .chat-markdown thead { background: #f3eee9; }
.marketing-ai-chat .chat-markdown th, .marketing-ai-chat .chat-markdown td { min-width: 110px; max-width: 360px; padding: 9px 12px; border-right: 1px solid #e1ddd7; border-bottom: 1px solid #e1ddd7; color: #393631; font-size: 13px; line-height: 1.5; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.marketing-ai-chat .chat-markdown th { color: #302c27; font-weight: 700; white-space: nowrap; }
.marketing-ai-chat .chat-markdown tr > :last-child { border-right: 0; }
.marketing-ai-chat .chat-markdown tbody tr:last-child > td { border-bottom: 0; }
.marketing-ai-chat .chat-markdown tbody tr:nth-child(even) { background: #fbfaf8; }
.marketing-ai-chat .chat-markdown tbody tr:hover { background: #fff5ef; }
.chat-empty-state { display: grid; justify-items: center; gap: 16px; color: #6a655e; }
.chat-empty-state strong { color: #3e3933; font-size: 17px; }
.data-glyph { width: 56px; height: 46px; display: flex; align-items: end; justify-content: center; gap: 6px; padding: 9px 10px; background: #f5e6dd; border: 1px solid #e6c6b5; border-radius: 8px; }
.data-glyph span { width: 7px; border-radius: 2px 2px 0 0; background: #b5572f; }
.data-glyph span:nth-child(1) { height: 13px; }
.data-glyph span:nth-child(2) { height: 26px; background: #2b8970; }
.data-glyph span:nth-child(3) { height: 19px; }
.not-found { padding: 80px 24px; text-align: center; }
.not-found a { color: #a24c2b; }
@media (max-width: 700px) {
    .content-width, .topbar-inner { width: min(100% - 28px, 1200px); }
    .topbar { height: 60px; }
    .brand-mark { width: 32px; height: 32px; flex-basis: 32px; }
    .brand-copy small { display: none; }
    .topbar-actions { gap: 10px; }
    .chat-band { padding: 12px 0 18px; }
    .chat-workspace { width: 100%; height: calc(100dvh - 90px); min-height: 510px; max-height: none; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
    .slash-command-menu { width: min(340px, var(--slash-width, calc(100% - 64px))); max-height: min(430px, calc(100dvh - 190px)); }
    .marketing-ai-chat .dxbl-chatui .dxbl-chatui-messages .dxbl-chatui-prompt-suggestions { width: calc(100% - 28px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .marketing-ai-chat .dxbl-chatui .dxbl-chatui-messages .dxbl-chatui-prompt-suggestions .dxbl-chatui-prompt-suggestion { width: 100%; min-width: 0; }
    .marketing-ai-chat .chat-markdown table { min-width: 100%; }
    .marketing-ai-chat .chat-markdown th, .marketing-ai-chat .chat-markdown td { min-width: 96px; max-width: 260px; padding: 8px 10px; }
}
@media (max-width: 440px) {
    .service-state { font-size: 0; gap: 0; }
    .new-chat-button { padding-inline: 9px; font-size: 0; }
    .new-chat-button span { margin-right: 0; font-size: 18px; }
    .brand-copy strong { font-size: 14px; }
}
