/* Kimi Office task pane. Sizes and colours follow the kimi-office components the old demo was aligned to
   (App.vue topbar, MessageBubble, ToolItem, MessageAttachmentCard, ChatComposer, collapsed StepsPanel). */
.sidebar{background:#fff;border:1px solid #e6e8eb;border-radius:10px;overflow:hidden;color:#262626;font-family:'PingFang SC','Microsoft YaHei',sans-serif}
.sidebar svg{display:block;width:100%;height:100%}
.sb-top{position:absolute;left:16px;right:16px;top:12px;height:38px;display:flex;justify-content:space-between;z-index:2}
.sb-group{display:inline-flex;align-items:center;gap:16px;height:38px;padding:0 16px;border-radius:999px;background:#fff;box-shadow:0 2px 12px #0000001f}
.sb-group.single{padding:10px}
.sb-ghost{width:18px;height:18px;color:#262626}

.chat{position:absolute;left:0;right:0;top:58px;bottom:191px;overflow:hidden;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%);
  mask-image:linear-gradient(to bottom,transparent 0,#000 14px,#000 calc(100% - 14px),transparent 100%)}
.chat-log{position:absolute;left:16px;right:16px;top:14px}
.grow{overflow:hidden;height:0}
.grow-in{padding-bottom:12px}

.user-msg{display:flex;justify-content:flex-end}
.bubble{max-width:calc(100% - 40px);margin-right:8px;padding:12px 16px;background:#f5f5f5;border-radius:12px;font-size:14px;line-height:20px;overflow-wrap:anywhere;white-space:pre-wrap}
.attachments{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin:0 8px 12px 0}
.agent-copy{margin:0 8px 0 0;font-size:14px;line-height:22px;color:#262626}

.trace{position:relative;transform-origin:0 16px;color:#737373}
.tsum{height:32px;display:flex;align-items:center;gap:8px;font-size:14px;line-height:20px}
.tsum-icon{width:20px;height:20px;flex:none;display:grid;place-items:center;font-size:14px;color:#8c8c8c}
.tsum-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tsum-chev{width:4px;height:4px;flex:none;border-right:1.25px solid currentColor;border-bottom:1.25px solid currentColor;transform:rotate(-45deg)}
.trace.open .tsum-chev{transform:rotate(45deg)}
.trace.active .tsum{color:#262626}
.tdet{position:relative;overflow:hidden;height:0}
.tdet-in{margin-left:28px;padding:0 0 8px;max-width:340px}
.tdet::before{content:'';position:absolute;left:10px;top:0;bottom:4px;width:1px;background:repeating-linear-gradient(to bottom,#ddd 0 2px,transparent 2px 4px)}
.tdet-text{font-size:12px;line-height:18px;color:#8c8c8c;overflow-wrap:anywhere}
.src{overflow:hidden;height:0}
.src-in{display:flex;align-items:center;gap:8px;height:26px;font-size:12px;color:#595959}
.src-in b{flex:none;font-weight:500;font-size:11px;color:#8c8c8c;min-width:64px}
.src-in span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.spinner{width:12px;height:12px;border:1.5px solid #ddd;border-top-color:#737373;border-radius:50%}

.card{display:flex;align-items:center;gap:10px;border-radius:12px;background:#fafafa;box-shadow:inset 0 0 0 1px transparent}
.att{width:202px;height:72px;padding:0 12px}
.card .tile{width:30px;height:30px;flex:none}
.card-meta-wrap{min-width:0}
.card-name{font-size:12px;line-height:18px;color:#262626;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-meta{font-size:12px;line-height:16px;color:#8c8c8c}
.chip{width:calc(50% - 4px);height:44px;padding:0 10px;gap:8px}
.chip .tile{width:24px;height:24px}
.cmp-chips{display:flex;flex-wrap:wrap;gap:8px;padding:0 0 8px}
.pill{position:absolute;left:16px;bottom:148px;height:35px;display:flex;align-items:center;gap:8px;padding:6px 12px;border-radius:12px;background:#f5f5f5;font-size:12px;color:#737373;white-space:nowrap}
.pill-div{width:1px;height:12px;background:#d9d9d9}
.pill-ok{color:#52a36b;font-size:13px}
.pill-chev{font-size:16px;margin-left:4px}

.composer{position:absolute;left:16px;right:16px;bottom:16px;min-height:124px;padding:8px 8px 52px;border:1px solid #e5e5e5;border-radius:24px;background:#fff;transform-origin:50% 50%}
.cmp-text{position:relative;padding:0 8px;font-size:15px;line-height:23px;color:#262626;min-height:64px;white-space:pre-wrap;overflow-wrap:anywhere}
.cmp-ph{position:absolute;left:8px;top:0;color:#a3a3a3;white-space:nowrap}
.caret{display:inline-block;width:2px;height:1.05em;margin-left:1px;vertical-align:-.15em;background:#1783ff}
.cmp-bar{position:absolute;left:8px;right:8px;bottom:8px;display:flex;align-items:center;gap:8px}
.cmp-add{width:36px;height:36px;padding:9px;color:#262626}
.cmp-model{margin-left:auto;font-size:12px;color:#737373}
.cmp-btn{position:relative;width:36px;height:36px;border-radius:50%;background:#262626;color:#fff;display:grid;place-items:center}
.cmp-btn.idle{background:#e5e5e5}
.cmp-btn svg{width:18px;height:18px}
.cmp-stop{width:12.5px;height:12.5px;border-radius:2.5px;background:#fff}
/* Picked slide object: candidate row atop the composer, then a tag at the head of the prompt and the sent bubble. */
.cmp-ref{display:flex;align-items:center;gap:9px;margin:0 0 8px;padding:9px 11px;border-radius:9px;background:#f2f2f3;color:#5b6067;font-size:14px;line-height:1.2}
.cmp-ref b{flex:none;width:2px;height:16px;border-radius:1px;background:#9aa0a8}
.cmp-ref span{flex:1 1 auto}
.cmp-ref svg{flex:none;width:15px;height:15px;opacity:.5}
.q-ref{display:inline-flex;align-items:center;gap:.28em;margin:0 .35em 0 0;padding:.06em .42em;border-radius:.22em;background:#eef2f6;color:#5b6773;font-weight:400;font-size:.94em;vertical-align:-.06em;white-space:nowrap}
.q-ref svg{width:.86em;height:.86em;flex:0 0 auto;opacity:.7}
