/* One shared create form sits beside the conversation on desktop. */
:root { --create-drawer-width: min(560px, 43vw); }
.form-recovery-dialog { max-width: min(460px, 90vw); padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.form-recovery-dialog::backdrop { background: #14263b55; backdrop-filter: blur(5px); }
.form-recovery-dialog h2 { font-size: 19px; }
.form-recovery-dialog p { margin: 16px 0 22px; line-height: 1.8; overflow-wrap: anywhere; }
.form-recovery-dialog button { min-height: 44px; }
#legacy > .legacy-form { width: 100%; max-width: 960px; margin-inline: auto; }
#legacy > .heading-row { width: 100%; max-width: 960px; margin-inline: auto; }
.task-create-drawer { position: fixed; inset: 0 0 0 auto; z-index: 75; width: var(--create-drawer-width); display: flex; flex-direction: column; min-width: 0; background: var(--glass); backdrop-filter: blur(var(--glass-blur)); -webkit-backdrop-filter: blur(var(--glass-blur)); border-left: 1px solid var(--glass-edge); box-shadow: -12px 0 48px #18345418; }
.task-create-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 23px 24px 18px; border-bottom: 1px solid var(--line); background: transparent; flex: 0 0 auto; }
.task-create-drawer-head h2 { font-size: 18px; }
.task-create-drawer-head p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.task-create-drawer-head > button { flex: 0 0 40px; font-size: 25px; }
.task-create-drawer-body { min-height: 0; overflow: auto; overscroll-behavior: contain; flex: 1; padding: 0 22px 22px; }
.task-create-drawer .legacy-form { margin: 0; padding: 20px 0 0; max-width: none; width: 100%; border: 0; border-radius: 0; box-shadow: none; background: transparent; gap: 16px; }
.task-create-drawer .legacy-heading { grid-column: 1 / -1; }
.task-create-drawer .legacy-heading h2 { font-size: 14px; }
.task-create-drawer .legacy-form input, .task-create-drawer .legacy-form select, .task-create-drawer .legacy-form textarea { font-size: 13px; }
.task-create-drawer .legacy-actions { position: static; z-index: auto; margin: 12px 0 0; padding: 15px 0 calc(17px + env(safe-area-inset-bottom, 0px)); background: transparent; border-top: 1px solid var(--line); box-shadow: none; align-items: center; }
.task-create-drawer .legacy-actions p { flex: 1; }
.task-create-drawer .legacy-actions button { flex-shrink: 0; }
.task-create-drawer .plan-card { overflow-wrap: anywhere; margin: 0 0 25px; }
.task-create-drawer .document-preview pre { max-height: 200px; overflow: auto; white-space: pre-wrap; }
.task-create-drawer-notice { padding: 12px 24px; background: var(--blue-tint); color: var(--accent); border-bottom: 1px solid var(--line); font-size: 12px; }
.task-create-drawer-notice button { text-decoration: underline; font-size: 12px; padding: 0 8px; }
.create-template-details { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.create-template-details > summary { cursor: pointer; font-size: 13px; font-weight: 550; }
.create-template-details .template-inputs { display: grid; gap: 14px; padding-top: 12px; }
.create-template-details h3 { margin: 0; }
.create-template-details label { display: grid; gap: 5px; }
@media (min-width: 1001px) {
  body.home-layout-active.task-create-open .shell { max-width: none; margin-right: var(--create-drawer-width); grid-template-columns: 174px minmax(0, 1fr); gap: 18px; }
  body.home-layout-active.task-create-open .shell { right: var(--create-drawer-width); margin-right: 0; }
  body.task-create-open #workspace.chat-home > .heading-row { flex-wrap: wrap; gap: 10px; }
  body.task-create-open #workspace.chat-home .home-create-task { font-size: 12px; padding: 7px 12px; }
  body.task-create-open #workspace.chat-home .hello-orb { display: none; }
  body.task-create-open .floating-assistant, body.task-create-open #assistant-bubble { right: calc(var(--create-drawer-width) + 24px); }
}
@media (max-width: 1000px) {
  .task-create-drawer { width: min(580px, 92vw); }
}
@media (max-width: 600px) {
  .task-create-drawer { width: 100%; height: 100dvh; }
  .task-create-drawer-head { padding: 16px; }
  .task-create-drawer-body { padding: 0 16px 16px; }
  .task-create-drawer .legacy-form { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .task-create-drawer .legacy-actions { margin: 12px 0 0; padding: 12px 0 calc(14px + env(safe-area-inset-bottom, 0px)); }
  .task-create-drawer .legacy-actions button { min-height: 44px; }
}
body[data-clear=true] .task-create-drawer { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce), (forced-colors: active) { .task-create-drawer { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
