/* ============================================================
   Chatbot — floating AI button, quick popup, revise sheet,
   full chat screen, fake iOS keyboard.
   Merged from business-app v4 (latest chatbot work).
   ============================================================ */

/* ── FLOATING CHAT BUTTON ── */
.float-chat-btn {
    position: absolute;
    bottom: 100px;
    right: 16px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 70;
    background: transparent;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18), 0 1px 4px rgba(0,0,0,0.1);
    -webkit-tap-highlight-color: transparent;
    transition: transform .15s, opacity .2s;
    overflow: hidden
}
.float-chat-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}
.float-chat-btn:active { transform: scale(.92) }
.float-chat-btn.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(.8)
}

/* ── FLOAT CHAT BTN WOBBLE ── */
@keyframes cat-wobble {
    0%   { transform: rotate(0deg) scale(1) }
    15%  { transform: rotate(-15deg) scale(1.06) }
    35%  { transform: rotate(13deg) scale(1.06) }
    55%  { transform: rotate(-9deg) scale(1.02) }
    75%  { transform: rotate(6deg) scale(1.01) }
    100% { transform: rotate(0deg) scale(1) }
}

.float-chat-btn.wobbling {
    animation: cat-wobble 0.55s cubic-bezier(0.25, 1, 0.5, 1)
}

@media (prefers-reduced-motion: reduce) {
    .float-chat-btn.wobbling { animation: none }
}

/* ── FLOAT CHAT BTN DRAG ── */
.float-chat-btn {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    z-index: 74
}
.float-chat-btn.dragging {
    transition: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28), 0 2px 8px rgba(0,0,0,0.18)
}
.float-chat-btn img {
    pointer-events: none;
    -webkit-user-drag: none
}

/* ── FLOAT CHAT QUICK POPUP ── */
.float-chat-popup-backdrop {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 72;
    pointer-events: none
}
.float-chat-popup-backdrop.open {
    pointer-events: all
}
.float-chat-popup {
    position: absolute;
    z-index: 73;
    display: flex;
    flex-direction: column;
    width: 272px;
    max-width: calc(100% - 24px);
    background: var(--surface-white);
    border: 1px solid #EAE6F5;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    transform-origin: bottom right;
    transition: opacity .18s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1);
    pointer-events: none
}
.float-chat-popup.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all
}
.float-chip-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 8px 6px
}
.float-chip-list::before {
    content: 'Suggested';
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink-300);
    padding: 4px 8px 2px
}
.float-chip {
    background: transparent;
    border: 0;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--ink-700);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s;
    animation: chip-pop .22s cubic-bezier(0.34,1.56,0.64,1) backwards
}
.float-chip:nth-child(1) { animation-delay: .02s }
.float-chip:nth-child(2) { animation-delay: .06s }
.float-chip:nth-child(3) { animation-delay: .10s }
.float-chip:hover { background: #F6F4FB }
.float-chip:active { background: #ECE6FA }
@keyframes chip-pop {
    from { opacity: 0; transform: translateY(4px) }
    to   { opacity: 1; transform: translateY(0) }
}

/* Input row at bottom of mini panel */
.float-chat-inp-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--surface-white);
    border-top: 1px solid #F0EDF7;
    padding: 8px 8px 8px 14px;
    animation: chip-pop .22s cubic-bezier(0.34,1.56,0.64,1) .14s backwards
}
.float-chat-inp {
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    line-height: 18px;
    color: var(--ink-700);
    padding: 6px 0;
    min-width: 0
}
.float-chat-inp::placeholder { color: var(--ink-300) }
.float-chat-send, .float-chat-expand {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform .12s, background .12s;
    flex-shrink: 0
}
.float-chat-send {
    background: linear-gradient(135deg, var(--purple-500), var(--color-primary));
    box-shadow: 0 2px 6px rgba(95,46,234,0.3)
}
.float-chat-send:active { transform: scale(.92) }
.float-chat-expand {
    background: #F1EEF9;
    color: var(--color-primary)
}
.float-chat-expand svg path { stroke: var(--color-primary) }
.float-chat-expand:active { transform: scale(.92); background: #E5DEF7 }

/* ── FAKE iOS KEYBOARD (simulation only) ── */
.fake-kbd {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    background: #D1D5DB;
    padding: 6px 3px 0;
    transform: translateY(100%);
    transition: transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif
}
.fake-kbd.show {
    transform: translateY(0);
    pointer-events: auto
}
.fk-predict {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4px 6px;
    height: 38px;
    border-bottom: 0.5px solid rgba(0,0,0,0.08)
}
.fk-pred-item {
    font-size: 15px;
    color: #000;
    padding: 6px 14px;
    border-radius: 5px;
    background: rgba(255,255,255,0.001)
}
.fk-pred-dim { color: #000; opacity: 0.6 }
.fk-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 5px 3px;
    height: 46px
}
.fk-row-2 {
    padding-left: 22px;
    padding-right: 22px
}
.fk-row-bot {
    height: 46px;
    gap: 6px
}
.fk-key {
    flex: 1;
    background: var(--surface-white);
    border-radius: 5px;
    box-shadow: 0 1px 0 rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #000;
    min-width: 0;
    cursor: default;
    -webkit-tap-highlight-color: transparent
}
.fk-key-fn {
    background: #ABB2BD;
    font-size: 16px;
    color: #000;
    flex: 0 0 32px
}
.fk-key-123 { flex: 0 0 42px; font-size: 13px }
.fk-key-globe { flex: 0 0 38px }
.fk-key-space { flex: 1.6; font-size: 13px; color: #444; font-weight: 400 }
.fk-key-return { flex: 0 0 76px; font-size: 13px }
.fk-home-bar {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center
}
.fk-home-bar > span {
    width: 135px;
    height: 5px;
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.55)
}

/* Popup override when keyboard is up — anchor input above keyboard */
.phone.kbd-up .float-chat-popup {
    top: auto !important;
    bottom: 306px !important;
    transition: bottom 0.22s cubic-bezier(0.32, 0.72, 0, 1), opacity .18s ease, transform .18s cubic-bezier(0.34,1.56,0.64,1)
}
/* FAB locked while keyboard up — JS handles its position to track popup */
.phone.kbd-up .float-chat-btn {
    pointer-events: none
}
.phone.kbd-up .float-chat-btn.wobbling {
    animation: none !important
}


.ai-chat-wrap {
    background: var(--surface-white);
    border-radius: 36px;
    border: 1px solid var(--border-medium);
    padding: 8px 8px 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px
}

.ai-chat-inp {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: var(--ink-700);
    font-family: inherit;
    background: transparent;
    min-width: 0
}

.ai-chat-inp::placeholder {
    color: rgba(61,61,61,0.5)
}

.ai-chat-mic {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: #e87972;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0
}

.ai-chat-send {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    padding: 0
}

.ai-chat-send:active {
    opacity: .7
}

.ai-sheet-trigger {
    display: none;
    justify-content: center;
    align-items: center;
    padding: 0 0 8px 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent
}

.ai-sheet-trigger.show {
    display: flex
}

.actions-btn-row {
    display: flex;
    gap: 8px
}

.btn-save-draft-sm { flex: 0 0 auto }


/* === S3B: AI REVISE CHAT === */
.aie-nav {
    background: var(--surface-white);
    padding: 10px 16px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 0.5px solid var(--purple-05);
    flex-shrink: 0
}

.aie-back {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--purple-25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s
}

.aie-back:active {
    background: var(--purple-75)
}

.aie-ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent-pink), var(--purple-400));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.aie-info {
    flex: 1
}

.aie-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-900)
}

.aie-sub {
    font-size: 11px;
    color: var(--purple-400);
    font-weight: 500;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px
}

.aie-sub-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--purple-400);
    flex-shrink: 0
}

.aie-ctx {
    padding: 7px 16px;
    background: var(--purple-15);
    border-bottom: 0.5px solid var(--purple-75);
    flex-shrink: 0
}

.aie-ctx-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 500;
    color: var(--purple-500)
}

.aie-chat {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 14px 16px;
    -webkit-overflow-scrolling: touch;
    background: var(--surface-canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M9 2h2v16H9zm-7 7h16v2H2z' fill='%23EDE9FE' fill-opacity='.4'/%3E%3C/svg%3E")
}

.aie-chat::-webkit-scrollbar {
    display: none
}

.aie-chat>* {
    margin-bottom: 10px
}

.aie-chat>*:last-child {
    margin-bottom: 0
}

.wc-card {
    background: var(--surface-white);
    border-radius: 15px;
    border: 0.5px solid var(--purple-75);
    overflow: hidden;
    margin-top: 7px;
    max-width: 90%
}

.wc-hd {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 12px;
    background: var(--purple-15);
    border-bottom: 0.5px solid var(--purple-75)
}

.wc-ico {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: var(--purple-500);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.wc-hd-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-900)
}

.wc-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-bottom: 0.5px solid var(--purple-25)
}

.wc-row:last-child {
    border-bottom: none
}

.wc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0
}

.wc-lbl {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-900);
    flex: 1
}

.wc-val {
    font-size: 11px;
    color: var(--ink-250)
}

.ud-card {
    background: var(--surface-white);
    border-radius: 16px;
    border: 0.5px solid var(--purple-75);
    overflow: hidden;
    margin-top: 7px;
    max-width: 92%
}

.ud-hd {
    background: linear-gradient(135deg, #F0EEFF, #EAE6FD);
    padding: 11px 14px
}

.ud-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--purple-500);
    color: var(--surface-white);
    border-radius: 20px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    margin-bottom: 7px
}

.ud-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-900)
}

.ud-body {
    padding: 11px 13px
}

.ud-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px
}

.ud-mlbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-200);
    letter-spacing: .06em;
    margin-bottom: 2px
}

.ud-mval {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-900)
}

.ud-sep {
    height: 0.5px;
    background: var(--purple-10);
    margin-bottom: 9px
}

.ud-ch-title {
    font-size: 10px;
    font-weight: 600;
    color: var(--purple-400);
    letter-spacing: .07em;
    margin-bottom: 6px
}

.ud-ch {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px;
    background: var(--purple-15);
    border-radius: 10px;
    margin-bottom: 5px
}

.ud-ch:last-child {
    margin-bottom: 0
}

.ud-ch-ico {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--purple-75);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.ud-ch-field {
    font-size: 11px;
    font-weight: 600;
    color: var(--purple-500)
}

.ud-ch-val {
    font-size: 11px;
    color: var(--ink-900);
    margin-top: 1px
}

.aie-bottom {
    background: var(--surface-white);
    border-top: 0.5px solid var(--purple-05);
    padding: 11px 16px 0;
    flex-shrink: 0
}

.btn-approve-v2 {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-success);
    color: var(--surface-white);
    font-family: inherit;
    position: relative;
    overflow: hidden;
    margin-bottom: 8px;
    transition: opacity .15s
}

.btn-approve-v2:active {
    opacity: .85
}

svg {
    display: block
}

/* MANUAL EDIT */
.me-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 0;
    -webkit-overflow-scrolling: touch
}

.me-scroll::-webkit-scrollbar {
    display: none
}

.me-section {
    margin-bottom: 20px
}

.me-lbl {
    font-size: 10px;
    font-weight: 600;
    color: var(--ink-200);
    letter-spacing: .09em;
    margin-bottom: 8px
}

.me-input {
    width: 100%;
    background: var(--surface-white);
    border: 1px solid var(--purple-75);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--ink-900);
    font-family: inherit;
    outline: none;
    transition: border-color .2s
}

.me-input:focus {
    border-color: var(--purple-400)
}

.me-textarea {
    width: 100%;
    background: var(--surface-white);
    border: 1px solid var(--purple-75);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--ink-900);
    font-family: inherit;
    outline: none;
    resize: none;
    line-height: 1.6;
    transition: border-color .2s
}

.me-textarea:focus {
    border-color: var(--purple-400)
}

.me-chips {
    display: flex;
    gap: 7px;
    flex-wrap: wrap
}

.me-chip {
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: var(--purple-900);
    background: var(--purple-10);
    border: 0.5px solid var(--purple-200);
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent
}

.me-chip:active {
    transform: scale(.96)
}

.me-chip.on {
    background: var(--purple-500);
    color: var(--surface-white);
    border-color: var(--purple-500)
}

.me-actions {
    padding: 12px 16px 24px;
    background: var(--surface-white);
    border-top: 0.5px solid var(--purple-05);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 8px
}

.me-save {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    background: var(--color-success);
    color: var(--surface-white);
    font-family: inherit;
    transition: opacity .15s
}

.me-save:active {
    opacity: .85
}

.me-cancel {
    width: 100%;
    padding: 11px;
    background: transparent;
    border: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-200);
    cursor: pointer;
    font-family: inherit
}

.me-cancel:active {
    color: var(--purple-500)
}

/* ── AI REVISE SHEET ── */
.ai-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    z-index: 80;
    pointer-events: none;
    transition: background 0.28s ease
}
.ai-sheet-backdrop.open {
    background: rgba(0,0,0,0.38);
    pointer-events: all
}
.ai-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: var(--surface-white);
    border-radius: 20px 20px 0 0;
    z-index: 81;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32,0.72,0,1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.12)
}
.ai-sheet.open {
    transform: translateY(0)
}
.ai-sheet.expanded {
    height: 78%
}
.ai-sheet-handle-row {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px
}
.ai-sheet-handle {
    width: 36px;
    height: 4px;
    background: #E0DDF0;
    border-radius: 2px
}
.ai-sheet-hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px 16px
}
.ai-sheet-hd-left {
    display: flex;
    align-items: center;
    gap: 12px
}
.ai-sheet-ava-lg {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover
}
.ai-sheet-ava-sm {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover
}
.ai-sheet-hd-info {
    display: flex;
    flex-direction: column;
    gap: 4px
}
.ai-sheet-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-600)
}
.ai-sheet-hd-sub {
    display: flex;
    align-items: center;
    gap: 4px
}
.ai-sheet-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--color-success-dark);
    flex-shrink: 0
}
.ai-sheet-status-txt {
    font-size: 12px;
    color: rgba(61,61,61,0.7)
}
.ai-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 12px;
    background: var(--border-weak);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0
}
.ai-sheet-chat {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    -webkit-overflow-scrolling: touch
}
.sheet-suggestions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px
}
.sheet-sugg-lbl {
    font-size: 11px;
    font-weight: 600;
    color: rgba(61,61,61,0.4);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 2px
}
.sheet-sugg-chip {
    background: var(--surface-white);
    border: 1px solid var(--purple-100);
    border-radius: 10px;
    padding: 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--ink-700);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.35;
    transition: background .12s, border-color .12s;
    -webkit-tap-highlight-color: transparent;
    width: 100%
}
.sheet-sugg-chip:active {
    background: var(--purple-25);
    border-color: var(--purple-300)
}
.ai-sheet-cta {
    align-self: flex-start;
    background: var(--color-primary);
    color: var(--surface-white);
    border: none;
    border-radius: 20px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: opacity .15s
}
.ai-sheet-cta:active { opacity: .8 }
.ai-sheet-bubble-usr {
    align-self: flex-end;
    background: linear-gradient(to right, #e69bb5, #e87972);
    color: var(--surface-white);
    border-radius: 12px 12px 4px 12px;
    padding: 8px 12px;
    font-size: 14px;
    max-width: 80%;
    line-height: 1.45
}
.ai-sheet-row-ai {
    display: flex;
    gap: 16px;
    align-items: flex-start
}
.ai-sheet-row-ai-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 0
}
.ai-sheet-bubble-ai {
    background: var(--surface-white);
    color: var(--ink-700);
    border: 1px solid var(--purple-300);
    border-radius: 12px 12px 12px 4px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.45
}
.ai-sheet-wc {
    background: linear-gradient(to bottom, var(--surface-white-warm), #f0eaff);
    border: 1px solid var(--purple-300);
    border-radius: 12px 12px 12px 4px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.1);
    overflow: hidden
}
.ai-sheet-wc-hd {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-600)
}
.ai-sheet-wc-icon {
    width: 24px;
    height: 24px;
    background: var(--purple-50);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}
.ai-sheet-wc-divider {
    height: 1px;
    background: var(--purple-300)
}
.ai-sheet-wc-list {
    background: var(--surface-white)
}
.ai-sheet-wc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-bottom: 1px solid var(--purple-50)
}
.ai-sheet-wc-row:last-child {
    border-bottom: none
}
.ai-sheet-wc-lft {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1
}
.ai-sheet-wc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0
}
.ai-sheet-wc-lbl {
    font-size: 12px;
    color: rgba(61,61,61,0.7)
}
.ai-sheet-wc-val {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink-700);
    text-align: right
}
.ai-sheet-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 4px 0
}
.ai-sheet-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-200);
    animation: sheetDot 1.2s infinite
}
.ai-sheet-typing span:nth-child(2) { animation-delay: .2s }
.ai-sheet-typing span:nth-child(3) { animation-delay: .4s }
@keyframes sheetDot {
    0%,60%,100% { transform: translateY(0); opacity:.5 }
    30% { transform: translateY(-4px); opacity:1 }
}
.ai-sheet-inp-row {
    padding: 0 16px 20px
}
.ai-sheet-chatbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface-white);
    border: 1px solid var(--border-medium);
    border-radius: 36px;
    padding: 8px 8px 8px 16px
}
.ai-sheet-inp {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 14px;
    color: var(--ink-700);
    font-family: inherit;
    outline: none;
    min-width: 0
}
.ai-sheet-inp::placeholder { color: rgba(61,61,61,0.5) }
.ai-sheet-inp-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0
}
.ai-sheet-mic {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: #e87972;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0
}
.ai-sheet-send {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background: var(--color-primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0
}
