.composer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 12px max(18px, calc((100% - 900px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(18, 21, 26, .96);
  flex: 0 0 auto;
  position: relative;
  z-index: 8;
}
.composer textarea {
  flex: 1;
  resize: none;
  max-height: 180px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0d1014;
  color: var(--text);
  padding: 11px 13px;
  outline: none;
  line-height: 1.5;
  font: inherit;
}
.composer textarea:focus { border-color: #3b8d6b; }
.composer button {
  height: 44px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: #062016;
  font-weight: 750;
  padding: 0 20px;
  cursor: pointer;
}
.composer button:disabled { opacity: .45; cursor: not-allowed; }
.file-button { width: 44px; height: 44px; flex: 0 0 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: #0d1014; color: var(--accent); font-size: 22px; cursor: pointer; }
.file-button input { display: none; }
.file-list { display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px max(18px, calc((100% - 900px) / 2));border-top:1px solid var(--line);color:var(--muted);background:#0d1014;font-size:11px; }
.file-list span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-list button{flex:0 0 auto;border:1px solid #6f3c3c;border-radius:7px;background:#28191b;color:#ffb4b8;padding:5px 9px;cursor:pointer}
.task-strip {
  padding: 9px max(18px, calc((100% - 900px) / 2));
  border-top: 1px solid var(--line);
  background: #101b17;
  color: #bfe9d5;
  font-size: 12px;
  white-space: pre-wrap;
}
.task-strip.error { background: #241416; color: #ffb4b8; }
.task-strip.restart { background: #54231b; color: #ffd0b8; border-color: #b9563f; font-weight: 700; }
.steering-user { margin-top: 10px; }
.steering-user .bubble { border-style: dashed; background: #202c40; }
.summary span:last-child { display: flex; gap: 8px; }
.summary button { padding: 3px 5px; }
body.mobile-ui .shell { height: 100vh; height: 100dvh; }
body.mobile-ui .conversation { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
body.mobile-ui .messages { min-height: 0; }
body.mobile-ui .composer { padding: 9px 10px max(9px, env(safe-area-inset-bottom)); gap: 8px; }
body.mobile-ui .composer textarea { font-size: 16px; min-height: 46px; }
body.mobile-ui .composer button { height: 46px; padding: 0 15px; }
body.mobile-ui .task-strip { padding: 8px 12px; }
body.mobile-ui .file-list { padding: 7px 12px; }
body.mobile-ui .messages { padding-bottom: 20px; }
.thread-menu { position: fixed; z-index: 100; min-width: 170px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: #181c22; box-shadow: 0 14px 38px #0009; }
.thread-menu button { display: block; width: 100%; border: 0; border-radius: 8px; padding: 11px 12px; text-align: left; color: var(--text); background: transparent; cursor: pointer; }
.thread-menu button:hover { background: #242a33; }
.thread-menu #hide-thread { color: #ff9b9f; }
.quota-wrap { position: relative; }
button.quota { color: var(--text); text-align: left; cursor: pointer; }
.quota-details { position: absolute; z-index: 90; right: 0; top: calc(100% + 9px); width: min(310px, calc(100vw - 24px)); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #181c22; box-shadow: 0 14px 38px #0009; font-size: 12px; line-height: 1.75; }
.quota-details strong { display: block; color: var(--text); font-size: 13px; margin-bottom: 5px; }
.quota-details span { display: block; color: var(--muted); }
.quota-details .quota-note { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); color: #aeb8c6; }
.activity-wrap{position:relative}.activity{border:1px solid #3a8469;border-radius:9px;background:#14251f;color:#7ee2b8;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}.activity-details{position:absolute;z-index:95;right:0;top:calc(100% + 9px);width:min(330px,calc(100vw - 24px));padding:8px;border:1px solid var(--line);border-radius:12px;background:#181c22;box-shadow:0 14px 38px #0009}.activity-details>strong{display:block;padding:6px 8px 8px;font-size:12px}.activity-item{display:block;width:100%;border:0;border-radius:8px;background:transparent;color:var(--text);padding:9px;text-align:left;cursor:pointer}.activity-item:hover{background:#242a33}.activity-item span,.activity-item small{display:block}.activity-item small{margin-top:3px;color:var(--muted)}
.task-strip.interrupted{background:#fff2df;color:#965214;border-color:#e9a654}
.task-strip.cancelled{background:#edf0f3;color:#5c6570;border-color:#bac2ca}
