.chat-workspace{max-width:1512px;margin:auto;padding:34px 38px 48px}.chat-intro{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:26px}.chat-intro h1{font-size:34px;letter-spacing:-1px;margin:8px 0 10px}.chat-intro p{color:#657085;font-size:15px;line-height:1.6;margin:0}.chat-toolbar{display:flex;gap:20px;align-items:center}.chat-connected{display:flex;gap:12px;align-items:center;background:#fff;border:1px solid #e3e8ed;padding:15px 19px;border-radius:12px;min-width:215px;max-width:400px}.chat-connected strong,.chat-connected span:not(.live-dot){display:block}.chat-connected strong{font-size:14px;word-break:break-word}.chat-connected div>span{font-size:12px;color:#718094;margin-top:6px}.chat-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.84fr);gap:24px;align-items:start}.conversation{padding:0;overflow:hidden;position:sticky;top:20px}.conversation-top{display:flex;justify-content:space-between;gap:14px;padding:20px 24px;border-bottom:1px solid #edf0f4}.chat-rule-label{font-size:10px;letter-spacing:1.2px;color:#7b8798}.chat-messages{height:390px;overflow:auto;padding:24px;display:flex;flex-direction:column;gap:20px;scroll-behavior:smooth}.chat-message{max-width:94%;align-self:flex-start}.chat-message.user{align-self:flex-end;max-width:86%}.chat-speaker{font-size:10px;letter-spacing:1px;text-transform:uppercase;color:#7a8796;display:block;margin:0 0 7px 2px}.user .chat-speaker{text-align:right}.chat-bubble{background:#f2f5f8;border:1px solid #e9eef2;border-radius:2px 13px 13px;padding:13px 16px;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65;font-size:14px;color:#34435a}.user .chat-bubble{background:#243d36;color:#fff;border-color:#243d36;border-radius:13px 2px 13px 13px}.chat-suggestions{display:flex;flex-wrap:wrap;gap:8px;padding:0 24px 18px;max-height:165px;overflow:auto}.chat-choice{border:1px solid #d8e1df;background:#fff;border-radius:7px;color:#325b50;padding:8px 11px;font-size:12px;cursor:pointer;text-align:left}.chat-choice:hover{background:#edf5f2}.chat-choice:disabled{opacity:.5;cursor:wait}.chat-composer{padding:19px 24px 18px;border-top:1px solid #edf0f4;background:#fcfdfd}.chat-composer>div{display:flex;gap:10px;margin-top:10px;align-items:flex-end}.chat-composer textarea{width:100%;min-height:74px;resize:vertical;border:1px solid #d7dfdf;border-radius:8px;font:inherit;font-size:14px;padding:12px;line-height:1.5}.chat-composer textarea:focus{outline:2px solid #a4c0b5;outline-offset:1px}.chat-composer button{min-height:45px}.chat-composer small{display:block;font-size:10px;color:#7e8899;margin-top:10px}.chat-review-column{display:grid;gap:20px;min-width:0}.chat-draft,.chat-review{padding:24px}.chat-draft dl{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;margin:18px 0 0;font-size:13px}.chat-draft dt{color:#7b8798}.chat-draft dd{margin:0;color:#34435a;overflow-wrap:anywhere}.chat-review .section-heading{align-items:center;gap:12px}.chat-review h2{font-size:21px;margin-top:8px}.chat-review .section-heading .badge{font-size:10px;white-space:nowrap}.chat-note{padding:0 7px;color:#68768b;font-size:12px;line-height:1.6}.chat-note strong{color:#3a4b61;font-size:13px}.chat-note p{margin:8px 0}.chat-plan{border:1px solid #e3e8ee;border-radius:8px;margin-top:14px;overflow:hidden}.chat-plan summary{padding:12px 14px;cursor:pointer;background:#f6f8fa;font-size:12px;line-height:1.6;overflow-wrap:anywhere}.chat-table-scroll{max-height:340px;overflow:auto}.chat-plan table{border-collapse:collapse;font-size:11px;width:100%}.chat-plan th,.chat-plan td{border-bottom:1px solid #e7ebef;border-right:1px solid #edf0f4;padding:10px 12px;text-align:left;min-width:130px;max-width:270px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.chat-plan th{position:sticky;top:0;background:#f6f8fa;color:#5d6d83}.chat-plan .protected-cell{background:#f0f1f3;color:#8a929c}.chat-plan-note{font-size:10px;color:#758196;padding:9px 14px;margin:0}.chat-apply{border-top:1px solid #e5eaee;margin-top:20px;padding-top:18px}.chat-apply label{display:flex;gap:9px;align-items:flex-start;font-size:12px;color:#52637a;line-height:1.5}.chat-apply input{width:auto;margin:2px 0 0;accent-color:#325b50}.chat-apply button{margin-top:14px}.chat-page .hidden{display:none!important}.chat-page button:focus-visible,.chat-page a:focus-visible{outline:2px solid #648a7c;outline-offset:3px}@media(min-width:1600px){.chat-messages{height:465px}}@media(max-width:1000px){.chat-grid{grid-template-columns:1fr}.conversation{position:static}.chat-connected{min-width:0}.chat-messages{height:350px}.chat-workspace{padding:24px}.chat-review-column{grid-template-columns:1fr}}@media(max-width:650px){.chat-intro{align-items:flex-start;flex-direction:column;gap:18px}.chat-intro h1{font-size:28px}.chat-workspace{padding:20px 14px}.chat-toolbar{gap:10px}.chat-toolbar .quiet-link{font-size:11px}.chat-toolbar button{padding:8px 10px;font-size:10px}.chat-page .brand-light{display:none}.chat-messages{padding:18px;height:330px}.chat-composer{padding:16px}.chat-suggestions{padding:0 16px 16px}.chat-review,.chat-draft{padding:18px}.chat-rule-label{font-size:8px}}
.chat-message{flex:0 0 auto}@media(max-width:650px){.chat-page .topbar{padding:14px 16px;gap:12px;flex-wrap:wrap;height:auto;min-height:70px}.chat-toolbar{margin-left:auto;flex-shrink:0}.chat-toolbar .quiet-link{white-space:nowrap}.chat-toolbar button{max-width:140px}}

.chat-messages{scroll-behavior:auto}

/* v9: a single, wider chat conversation with previews embedded as messages. */
.chat-workspace{max-width:1100px}.chat-intro{margin-bottom:18px}.conversation{position:static;width:100%}.chat-messages{height:min(67vh,690px);min-height:430px}.preview-message{width:100%;max-width:100%!important}.chat-preview{border:1px solid #dce6e2;background:#fff;border-radius:12px;padding:18px;min-width:0}.chat-preview-title{font-size:14px;font-weight:700;color:#243d36}.chat-inline-review{display:flex;align-items:center;gap:10px;font-size:12px;margin-top:18px;color:#3d4b56}.chat-inline-review input{width:auto}.chat-inline-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.chat-inline-actions button{padding:10px 16px}.chat-plan .chat-table-scroll{max-height:300px}.chat-preview .chat-plan{margin-top:10px}@media(max-width:650px){.chat-messages{height:58vh;min-height:350px}.chat-preview{padding:10px}.chat-intro h1{font-size:25px}}

.chat-page .conversation-top{align-items:center}.chat-page .conversation-top .chat-connected{border:0;padding:0;min-width:0;background:transparent}.chat-page .conversation-top .chat-connected strong{font-size:12px}.chat-page .chat-workspace{padding-top:22px}@media(max-width:650px){.chat-page .conversation-top{flex-wrap:wrap}.chat-page .conversation-top .chat-connected{width:100%}}

/* =========================================================
   CONFIGBOT - PROFESSIONAL DARK THEME
   ========================================================= */

.chat-page {
    --dark-bg: #0b1120;
    --dark-panel: #111827;
    --dark-panel-light: #182235;
    --dark-panel-hover: #202d42;
    --dark-border: #28364a;
    --dark-text: #e5edf7;
    --dark-muted: #91a0b5;
    --dark-accent: #34d399;
    --dark-accent-hover: #10b981;
    --dark-accent-soft: rgba(52, 211, 153, .12);

    background: var(--dark-bg);
    color: var(--dark-text);
    min-height: 100vh;
}

/* Main header */

.chat-page .topbar {
    background: #0f1726;
    border-bottom: 1px solid var(--dark-border);
    color: var(--dark-text);
}

.chat-page .brand {
    color: #f1f5f9;
}

.chat-page .brand-light {
    color: var(--dark-muted);
}

.chat-page .brand-mark {
    color: var(--dark-accent);
}

.chat-page .chat-toolbar button {
    background: var(--dark-panel-light);
    color: var(--dark-text);
    border: 1px solid var(--dark-border);
    border-radius: 8px;
    transition: .2s ease;
}

.chat-page .chat-toolbar button:hover {
    background: var(--dark-panel-hover);
    border-color: #3c506c;
}

/* Workspace */

.chat-page .chat-workspace {
    background: var(--dark-bg);
}

/* Conversation panel */

.chat-page .conversation {
    background: var(--dark-panel);
    border: 1px solid var(--dark-border);
    border-radius: 14px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, .22);
}

/* Conversation header */

.chat-page .conversation-top {
    background: #131e30;
    border-bottom: 1px solid var(--dark-border);
}

.chat-page .eyebrow {
    color: #a6b5c9;
}

.chat-page .chat-rule-label {
    color: #71839d;
}

.chat-page .chat-connected {
    background: transparent;
    border: 0;
    color: var(--dark-text);
}

.chat-page .chat-connected strong {
    color: #e5edf7;
}

.chat-page .chat-connected div > span {
    color: var(--dark-muted);
}

.chat-page .live-dot {
    background: var(--dark-accent);
    box-shadow: 0 0 10px rgba(52, 211, 153, .45);
}

/* Messages area */

.chat-page .chat-messages {
    background: #0e1726;
}

.chat-page .chat-speaker {
    color: #8495ad;
}

/* Assistant messages */

.chat-page .chat-message.assistant .chat-bubble {
    background: #192538;
    color: #dce6f3;
    border: 1px solid #293a51;
    border-radius: 3px 13px 13px 13px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .12);
}

/* User messages */

.chat-page .chat-message.user .chat-bubble {
    background: #075c4b;
    color: #ecfdf5;
    border: 1px solid #08745c;
    border-radius: 13px 3px 13px 13px;
}

/* Suggested replies */

.chat-page .chat-suggestions {
    background: #0e1726;
}

.chat-page .chat-choice {
    background: #172438;
    border: 1px solid #30445c;
    color: #8ee7c4;
    border-radius: 8px;
    transition: all .2s ease;
}

.chat-page .chat-choice:hover {
    background: #20354b;
    border-color: #34a985;
    color: #c1f7e2;
    transform: translateY(-1px);
}

.chat-page .chat-choice:disabled {
    opacity: .45;
}

/* Message composer */

.chat-page .chat-composer {
    background: #131e30;
    border-top: 1px solid var(--dark-border);
}

.chat-page .chat-composer label {
    color: #a6b5c9;
}

.chat-page .chat-composer textarea {
    background: #0b1423;
    border: 1px solid #304158;
    color: #e5edf7;
    border-radius: 9px;
    caret-color: var(--dark-accent);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.chat-page .chat-composer textarea::placeholder {
    color: #667891;
}

.chat-page .chat-composer textarea:focus {
    outline: none;
    border-color: var(--dark-accent);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .12);
}

.chat-page .chat-composer textarea:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.chat-page .chat-composer small {
    color: #71839d;
}

/* Primary and secondary buttons */

.chat-page button.primary {
    background: #059669;
    color: #ffffff;
    border: 1px solid #059669;
    border-radius: 8px;
    font-weight: 600;
    transition: all .2s ease;
}

.chat-page button.primary:hover:not(:disabled) {
    background: #10b981;
    border-color: #10b981;
    transform: translateY(-1px);
}

.chat-page button.secondary {
    background: #1b293d;
    color: #dce6f3;
    border: 1px solid #34465e;
    border-radius: 8px;
    transition: all .2s ease;
}

.chat-page button.secondary:hover:not(:disabled) {
    background: #26374e;
    border-color: #4b607d;
}

.chat-page button:disabled {
    opacity: .45;
    cursor: not-allowed;
}

/* Inline preview */

.chat-page .chat-preview {
    background: #131e30;
    border: 1px solid #304158;
    border-radius: 12px;
    color: var(--dark-text);
}

.chat-page .chat-preview-title {
    color: #8ee7c4;
}

.chat-page .chat-plan {
    background: #111c2d;
    border: 1px solid #304158;
    border-radius: 9px;
}

.chat-page .chat-plan summary {
    background: #1a2940;
    color: #dce6f3;
}

.chat-page .chat-plan summary:hover {
    background: #22334c;
}

.chat-page .chat-table-scroll {
    background: #111c2d;
}

/* Preview table */

.chat-page .chat-plan table {
    background: #111c2d;
    color: #dce6f3;
}

.chat-page .chat-plan th {
    background: #1c2b40;
    color: #a9bad0;
    border-bottom: 1px solid #394b63;
    border-right: 1px solid #304158;
}

.chat-page .chat-plan td {
    color: #d2ddeb;
    border-bottom: 1px solid #26364b;
    border-right: 1px solid #26364b;
}

.chat-page .chat-plan tr:hover td {
    background: #19283c;
}

.chat-page .chat-plan .protected-cell {
    background: #222c3a;
    color: #8997a9;
}

.chat-page .chat-plan-note {
    color: #91a0b5;
}

/* Preview approval */

.chat-page .chat-inline-review {
    color: #bdc9d8;
}

.chat-page .chat-inline-review input {
    accent-color: var(--dark-accent);
}

.chat-page .chat-apply {
    border-top: 1px solid var(--dark-border);
}

.chat-page .chat-inline-actions button {
    min-height: 40px;
}

/* Status messages */

.chat-page #chatStatus {
    background: #172438;
    color: #dce6f3;
    border: 1px solid #304158;
    border-radius: 9px;
}

.chat-page #chatStatus.success {
    background: rgba(5, 150, 105, .13);
    color: #6ee7b7;
    border-color: #087c5b;
}

.chat-page #chatStatus.warning {
    background: rgba(217, 119, 6, .12);
    color: #fcd34d;
    border-color: #a16207;
}

.chat-page #chatStatus.error {
    background: rgba(220, 38, 38, .12);
    color: #fca5a5;
    border-color: #991b1b;
}

/* Focus accessibility */

.chat-page button:focus-visible,
.chat-page a:focus-visible,
.chat-page textarea:focus-visible,
.chat-page input:focus-visible {
    outline: 2px solid var(--dark-accent);
    outline-offset: 3px;
}

/* Scrollbars */

.chat-page .chat-messages,
.chat-page .chat-suggestions,
.chat-page .chat-table-scroll {
    scrollbar-width: thin;
    scrollbar-color: #40516a #111c2d;
}

.chat-page .chat-messages::-webkit-scrollbar,
.chat-page .chat-suggestions::-webkit-scrollbar,
.chat-page .chat-table-scroll::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

.chat-page .chat-messages::-webkit-scrollbar-thumb,
.chat-page .chat-suggestions::-webkit-scrollbar-thumb,
.chat-page .chat-table-scroll::-webkit-scrollbar-thumb {
    background: #40516a;
    border-radius: 10px;
}

.chat-page .chat-messages::-webkit-scrollbar-track,
.chat-page .chat-suggestions::-webkit-scrollbar-track,
.chat-page .chat-table-scroll::-webkit-scrollbar-track {
    background: #111c2d;
}

/* Responsive adjustments */

@media (max-width: 650px) {
    .chat-page .conversation {
        border-radius: 10px;
    }

    .chat-page .conversation-top {
        background: #131e30;
    }

    .chat-page .chat-message {
        max-width: 96%;
    }

    .chat-page .chat-message.user {
        max-width: 90%;
    }

    .chat-page .chat-composer textarea {
        min-height: 65px;
    }
}

/* =====================================================
   CODEBOT BRANDING
   ===================================================== */

.chat-page .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.5px;
}

.chat-page .brand-mark {
    width: 37px;
    height: 37px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 11px;
    background: linear-gradient(145deg, #10b981, #047857);
    color: #ffffff;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(16, 185, 129, .22);
}

.chat-page .brand-mark span {
    color: #a7f3d0;
}

.chat-page .brand-name {
    color: #f1f5f9;
}

.chat-page .brand-light {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Loading status */

.chat-page #chatStatus {
    margin: 14px auto;
    max-width: 1100px;
    padding: 12px 16px;
}

/* Responsive branding */

@media(max-width:650px) {
    .chat-page .brand {
        font-size: 17px;
    }

    .chat-page .brand-mark {
        width: 33px;
        height: 33px;
    }
}



/* Assistant "..." while a reply is on its way */

.chat-page .typing-bubble,
.typing-bubble {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 22px;
    padding: 14px 18px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6ee7b7;
    opacity: .35;
    animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: .15s; }
.typing-dot:nth-child(3) { animation-delay: .3s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: .35; }
    30% { transform: translateY(-5px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .typing-dot { animation: typing-fade 1.2s infinite ease-in-out; }
    @keyframes typing-fade { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
}

/* Workbook type detected without model knowledge */

.chat-page .model-notice {
    margin: 14px auto;
    max-width: 1100px;
    padding: 12px 16px;
    background: #3a2f12;
    border: 1px solid #8a6d1f;
    color: #fde68a;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
}

/* =====================================================
   Wider chat, records tables, badges, code pills
   ===================================================== */

.chat-page .chat-workspace { max-width: 1440px; }
.chat-page #chatStatus, .chat-page .model-notice { max-width: 1440px; }
.chat-page .chat-messages { height: min(72vh, 760px); }
.chat-page .chat-message { max-width: 88%; }
.chat-page .chat-message.records-message { width: 100%; max-width: 100%; }
.chat-page .chat-message.records-message .chat-bubble { max-width: 88%; }

/* Context (workbook + matched sheets) above the answer, split by a subtle divider */
.chat-context {
    display: flex; flex-wrap: wrap; gap: 6px;
    padding-bottom: 10px; margin-bottom: 10px;
    border-bottom: 1px dashed #31435c;
    white-space: normal;
}
.badge-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px 9px; border-radius: 999px;
    font-size: 11px; line-height: 1.7;
    background: #13233a; border: 1px solid #2c3f58; color: #b8c6d8;
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.badge-pill .pill-key { color: #71839d; font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
.badge-pill .pill-score {
    padding: 0 6px; border-radius: 999px; font-size: 10px;
    background: rgba(52, 211, 153, .14); color: #6ee7b7;
}
.workbook-pill { border-color: #2f4a64; }

/* Technical syntax inside assistant text */
.chat-page .code-pill {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    font-size: .88em;
    background: #0d1729; border: 1px solid #2a3a52; color: #a5f3d0;
    padding: 1px 6px; border-radius: 6px;
    white-space: pre-wrap; overflow-wrap: anywhere;
}
.chat-page .value-pill { color: #fcd9a6; }
.chat-page .user .code-pill { background: transparent; border: 0; color: inherit; padding: 0; }

/* Records table */
.chat-records {
    margin-top: 10px; border: 1px solid #304158; border-radius: 10px;
    background: #111c2d; overflow: hidden;
}
.records-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 9px 12px; background: #16243a; border-bottom: 1px solid #2a3b52;
}
.records-title { font-size: 13px; font-weight: 650; color: #8ee7c4; }
.chat-page .records-scroll { max-height: 420px; overflow: auto; }
.records-table { border-collapse: separate; border-spacing: 0; font-size: 12px; width: max-content; min-width: 100%; color: #d2ddeb; }
.records-table th, .records-table td {
    padding: 8px 12px; text-align: left; vertical-align: top;
    border-bottom: 1px solid #26364b; border-right: 1px solid #22324a;
    max-width: 320px; white-space: pre-wrap; overflow-wrap: anywhere;
}
.records-table th {
    position: sticky; top: 0; z-index: 1;
    background: #1c2b40; color: #a9bad0; font-weight: 600; white-space: nowrap;
}
.records-table tbody tr:nth-child(even) td { background: #13202f; }
.records-table tbody tr:hover td { background: #1b2a3f; }
.records-table .select-cell {
    position: sticky; left: 0; z-index: 2; width: 34px; min-width: 34px; text-align: center;
    background: #18263a;
}
.records-table th.select-cell { z-index: 3; }
.records-table input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: #34d399; cursor: pointer; }
.records-table tr:has(input:checked) td { background: rgba(52, 211, 153, .09); }

/* Ticked rows notice above the request box */
.selection-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 10px; padding: 8px 12px; border-radius: 8px;
    background: rgba(52, 211, 153, .08); border: 1px solid #1f6f57; color: #b7f0d9; font-size: 12px;
}
.chat-page .link-button {
    background: none; border: 0; padding: 0; min-height: 0;
    color: #6ee7b7; font-size: 12px; text-decoration: underline; cursor: pointer;
}

/* Send button: label and arrow icon side by side, aligned with the request box */
.chat-page .chat-composer > div { align-items: flex-end; gap: 12px; }
.chat-page .send-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 48px; min-height: 48px; min-width: 112px; padding: 0 8px 0 20px;
    border-radius: 12px; white-space: nowrap; flex-shrink: 0; line-height: 1;
    font-size: 14px; font-weight: 650; letter-spacing: .2px;
    background: linear-gradient(180deg, #10b981, #059669);
    border: 1px solid #0ea371;
    box-shadow: 0 6px 18px rgba(16, 185, 129, .22), inset 0 1px 0 rgba(255, 255, 255, .15);
}
.chat-page .send-button:hover:not(:disabled) {
    background: linear-gradient(180deg, #34d399, #10b981);
    box-shadow: 0 8px 22px rgba(16, 185, 129, .3), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.chat-page .send-button:active:not(:disabled) { transform: translateY(0); box-shadow: 0 3px 10px rgba(16, 185, 129, .25); }
.chat-page .send-icon, .chat-page .send-spinner {
    width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .16);
}
.chat-page .send-icon svg { display: block; }
.chat-page .send-button:hover:not(:disabled) .send-icon svg { transform: translateY(-1px); transition: transform .15s ease; }
.chat-page .send-spinner { display: none; }
.chat-page .send-spinner::after {
    content: ''; width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff;
    animation: send-spin .8s linear infinite;
}
/* While a reply is on its way the arrow becomes a small spinner. */
body[aria-busy="true"] .send-button .send-icon { display: none; }
body[aria-busy="true"] .send-button .send-spinner { display: inline-flex; }
.chat-page .send-button:disabled { opacity: .55; box-shadow: none; }
@keyframes send-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chat-page .send-spinner::after { animation-duration: 2s; } }

@media (max-width: 650px) {
    .chat-page .chat-message.records-message .chat-bubble { max-width: 100%; }
    .chat-page .send-button { min-width: 0; padding: 0 6px 0 14px; }
}
