/* Leave the thread, Capy and Comms' native side host in their existing flex flow. */
.aoa-basecamp-split { position: relative; min-width: 0; --aoa-bc-reserved-width: min(var(--aoa-bc-pane-width, 400px), 65%); }
.aoa-basecamp-split > .aoa-basecamp-pane { order: 100; flex: 0 0 var(--aoa-bc-reserved-width); min-width: 0; }
.aoa-basecamp-pane { display: flex; flex-direction: column; height: 100%; border-inline-start: 1px solid var(--border); background: var(--surface); color: var(--body); z-index: 3; font: 400 14px/1.5 var(--font-body); }
.aoa-basecamp-pane *, .aoa-bc-dialog * { box-sizing: border-box; }
.aoa-basecamp-pane[hidden], .aoa-basecamp-pane [hidden], .aoa-bc-dialog [hidden] { display: none !important; }
.aoa-basecamp-pane[hidden] + .aoa-bc-resize { display: none; }
/* Fills the drawer below its header, so popups such as the assignee list have the
   whole drawer to open into, not just the height of what is in it. */
.aoa-bc-panel-content { flex: 1 1 auto; overflow: auto; min-height: 0; padding: 16px 20px; overscroll-behavior: contain; scrollbar-width: thin; }
/* As tall as Comms' thread header beside it (64px with its 1px rule), so the two
   bottom rules meet in one line. */
.aoa-bc-panel-header { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; box-sizing: border-box; height: 64px; min-height: 64px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--border); }
.aoa-bc-project-mode .aoa-bc-panel-header { padding-inline-start: 24px; }
/* The header names the current list and opens a menu to switch it, like
   Twist's own menus: raised, rounded, 34px rows and a tick on the current one. */
.aoa-bc-switch { position: relative; display: flex; flex: 1 1 auto; min-width: 0; }
.aoa-bc-switcher-button { display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; height: 28px; margin-inline-start: -6px; padding: 0 4px 0 6px; border: 0; border-radius: 4px; background: transparent; color: var(--heading); cursor: pointer; text-align: start; font: 500 15px/1.4 var(--font-head) !important; }
.aoa-bc-switcher-button:hover, .aoa-bc-switcher-button[aria-expanded="true"] { background: var(--track); }
.aoa-bc-switcher-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aoa-bc-switcher-button svg { flex: 0 0 16px; width: 16px; height: 16px; color: var(--muted); stroke-width: 1.5; }
.aoa-bc-panel-close { margin-inline-start: auto; }
/* The list menu is styled as Twist's own menus (reactist_menulist): every choice in
   one 13px regular face and colour, with a grey 24px icon column (this thread's
   list, a Basecamp project, a new project), 32px rows, and the current list ticked.
   The "Basecamp projects" label and status lines are the only muted text. */
.aoa-bc-switcher { position: absolute; top: calc(100% + 6px); left: -6px; z-index: 12; display: flex; flex-direction: column; width: min(300px, calc(100% + 40px)); max-height: min(460px, calc(100vh - 120px)); padding: 6px 0; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--heading); box-shadow: 0 0 8px #0000001f, 0 10px 28px #00000024; font: 400 13px/1.5 var(--font-body); }
.aoa-bc-switcher-menu { display: flex; flex-direction: column; min-height: 0; }
.aoa-bc-switcher-projects { min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.aoa-bc-switcher-item { display: flex; align-items: center; gap: 10px; flex-shrink: 0; width: calc(100% - 12px); min-height: 32px; margin: 0 6px; padding: 0 6px; border: 0; border-radius: 5px; background: transparent; color: var(--heading); text-align: start; cursor: pointer; font: 400 13px/1.5 var(--font-body) !important; }
.aoa-bc-switcher-item:hover { background: var(--track); }
html body .aoa-basecamp-pane .aoa-bc-switcher-item:focus-visible { outline: 2px solid var(--aoa-orange) !important; outline-offset: -2px; background: var(--track); }
.aoa-bc-switcher-item:disabled { color: var(--muted); cursor: default; }
.aoa-bc-switcher-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aoa-bc-switcher-item .aoa-bc-switcher-icon { flex: 0 0 24px; width: 24px; height: 24px; color: var(--muted); stroke-width: 1.25; }
.aoa-bc-switcher-item .aoa-bc-switcher-check { flex: 0 0 18px; width: 18px; height: 18px; color: var(--aoa-orange); stroke-width: 1.75; }
.aoa-bc-switcher-heading { flex-shrink: 0; padding: 4px 12px 2px; color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.aoa-bc-switcher-divider { flex-shrink: 0; height: 1px; margin: 4px 0; background: var(--border); }
/* The filter is a row of its own: its words start where the choices' names do. */
.aoa-bc-switcher-find { position: relative; flex-shrink: 0; margin: 0 6px 4px; }
.aoa-bc-switcher-find svg { position: absolute; top: 7px; left: 9px; width: 18px; height: 18px; color: var(--muted); stroke-width: 1.25; pointer-events: none; }
.aoa-bc-switcher-filter { width: 100%; height: 32px; margin: 0; padding: 0 6px 0 39px; border: 1px solid var(--border); border-radius: 5px; background: transparent; color: var(--heading); font: 400 13px/1.5 var(--font-body) !important; }
.aoa-bc-switcher-filter::placeholder { color: var(--muted); opacity: 1; }
.aoa-bc-switcher-status, .aoa-bc-switcher-error { margin: 0; padding: 6px 12px 6px 46px; color: var(--muted); font: 400 13px/1.5 var(--font-body); }
.aoa-bc-switcher-error { color: #c8463b; }
.aoa-bc-icon-button { display: inline-flex; justify-content: center; align-items: center; flex: 0 0 28px; width: 28px; height: 28px; border: 0; border-radius: 4px; padding: 0; color: var(--muted); background: transparent; cursor: pointer; }
.aoa-bc-icon-button svg { flex-shrink: 0; }
.aoa-bc-icon-button:hover, .aoa-bc-icon-button[aria-pressed="true"], .aoa-bc-menu[open] > summary { background: var(--track); color: var(--heading); }
.aoa-bc-toggle { margin-inline: 4px; }
.aoa-bc-list-title h3 { margin: 0; color: var(--heading); font: 500 14px/1.4 var(--font-head); }
.aoa-bc-secondary { color: var(--muted); font: 400 12px/1.5 var(--font-body); }
.aoa-bc-text-button { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 4px 0; background: transparent; color: var(--muted); font: 400 13px/1.5 var(--font-body); cursor: pointer; text-align: start; }
.aoa-bc-text-button:hover { color: var(--aoa-link); }
.aoa-bc-text-button svg { width: 20px; height: 20px; }
.aoa-bc-task { display: flex; align-items: flex-start; gap: 8px; padding: 3px 0; min-width: 0; }
.aoa-bc-check { display: flex; align-items: center; justify-content: center; flex: 0 0 16px; height: 16px; margin: 3px 0 0; padding: 0; border: 1px solid var(--muted); border-radius: 3px; color: var(--done-fg); background: transparent; cursor: pointer; }
.aoa-bc-check[aria-pressed="true"] { color: var(--aoa-orange); background: var(--track); border-color: var(--aoa-orange); }
.aoa-bc-check svg { width: 14px; height: 14px; stroke-width: 1.5; }
.aoa-bc-check:hover { border-color: var(--aoa-link); }
.aoa-bc-task-body { flex: 1; min-width: 0; padding: 0; border: 0; text-align: start; background: transparent; color: var(--body); cursor: pointer; font: 400 14px/1.5 var(--font-body) !important; }
.aoa-bc-task-body:hover { color: var(--heading); }
.aoa-bc-task-source { flex: 0 0 28px; width: 28px; height: 28px; margin-top: -3px; color: var(--muted); }
.aoa-bc-task-source svg { width: 20px; height: 20px; stroke-width: 1.5; }

.aoa-bc-task:has(> :focus-visible) { border-radius: 4px; background: var(--track); }
.aoa-bc-task-body:focus-visible, .aoa-bc-list-title:focus-visible { color: var(--heading); }
/* In the list a long title is one line, ending "…"; opened, it wraps in full. */
.aoa-bc-task-body { display: flex; flex-wrap: wrap; align-items: center; gap: 0; }
.aoa-bc-task-title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aoa-bc-task-body > .aoa-bc-task-meta { flex: 0 1 auto; }
.aoa-bc-task-done .aoa-bc-task-title { text-decoration: line-through; color: var(--muted); }
.aoa-bc-task-completing { position: relative; isolation: isolate; border-radius: 4px; background: var(--track); }
.aoa-bc-task-completing::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--aoa-orange); opacity: .12; pointer-events: none; animation: aoa-bc-completion-track 360ms ease-out both; animation-delay: var(--aoa-completion-elapsed, 0ms); }
.aoa-bc-task-completing .aoa-bc-task-title { color: var(--body); }
.aoa-bc-task-completing .aoa-bc-check svg { animation: aoa-bc-completion-tick 200ms cubic-bezier(.2, .8, .3, 1) both; animation-delay: var(--aoa-completion-elapsed, 0ms); }
@keyframes aoa-bc-completion-track { from { opacity: .24; } to { opacity: .12; } }
@keyframes aoa-bc-completion-tick { from { transform: scale(.6); } to { transform: scale(1); } }
.aoa-bc-task-meta { display: inline-flex; align-items: center; flex-wrap: wrap; vertical-align: middle; gap: 6px; margin: 1px 0 1px 3px; padding: 2px 6px; max-width: 100%; border-radius: 5px; background: var(--track); color: var(--muted); font-size: 12px; line-height: 1.4; }
.aoa-bc-assignee-inline { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.aoa-bc-assignee-inline > span:last-child { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aoa-bc-assignee-inline .aoa-bc-avatar { width: 18px; height: 18px; flex-basis: 18px; font-size: 10px; }
.aoa-bc-due { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.aoa-bc-due svg { width: 14px; height: 14px; }
.aoa-bc-overdue { color: #c8463b; }
.aoa-bc-task-location { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.aoa-bc-assignees { display: flex; align-items: center; margin-top: 1px; flex-shrink: 0; }
.aoa-bc-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; color: white; background: #a8a8a8; font: 400 12px/1 Helvetica, Arial, sans-serif; overflow: hidden; }
.aoa-bc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.aoa-bc-assignees .aoa-bc-avatar + .aoa-bc-avatar { margin-left: -7px; box-shadow: 0 0 0 2px var(--surface); }
.aoa-bc-overflow-avatar { background: var(--track); color: var(--muted); font-size: 10px; }
.aoa-bc-menu { position: relative; flex-shrink: 0; }
.aoa-bc-menu > summary { list-style: none; }
.aoa-bc-menu > summary::-webkit-details-marker { display: none; }
.aoa-bc-menu-popover { position: absolute; right: 0; top: 30px; width: 196px; border: 1px solid var(--border); border-radius: 6px; padding: 4px; background: var(--surface); box-shadow: 0 4px 18px #0002; z-index: 8; }
.aoa-bc-menu-item { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; color: var(--body); background: transparent; border: 0; border-radius: 3px; text-decoration: none; cursor: pointer; text-align: start; padding: 8px; font: 400 12px/1.4 var(--font-body) !important; }
.aoa-bc-menu-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.aoa-bc-menu-item:hover { background: var(--track); color: var(--heading); }
.aoa-bc-danger { color: #c8463b; }
.aoa-bc-completed { margin: 8px 0; }
.aoa-bc-completed > summary { cursor: pointer; color: var(--muted); font-size: 12px; padding: 4px 0; }
.aoa-bc-project-mode .aoa-bc-panel-content { padding: 24px; }
.aoa-bc-project-description { color: var(--muted); font-size: 13px; margin: 0 0 12px; white-space: pre-wrap; }
.aoa-bc-progress { height: 3px; background: var(--track); border-radius: 2px; margin: 6px 0 16px; overflow: hidden; }
.aoa-bc-progress > span { display: block; height: 100%; background: var(--aoa-link); }
.aoa-bc-project-summary { display: flex; align-items: center; gap: 12px; }
.aoa-bc-project-summary > .aoa-bc-secondary { flex: 1; min-width: 0; }
.aoa-bc-project-section { margin-top: 20px; }
.aoa-bc-list-heading { display: flex; align-items: center; gap: 4px; padding-bottom: 8px; }
.aoa-bc-list-title { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--muted); text-align: start; cursor: pointer; }
.aoa-bc-section-collapse { display: flex; align-items: center; justify-content: center; flex: 0 0 18px; height: 24px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-section-collapse svg { width: 16px; height: 16px; transition: transform .15s; }
.aoa-bc-section-collapse.aoa-bc-collapsed svg { transform: rotate(-90deg); }
.aoa-bc-list-title:hover h3 { color: var(--aoa-link); }
.aoa-bc-list-title h3 { overflow-wrap: anywhere; }
.aoa-bc-count { color: var(--muted); font: 400 11px/1.5 var(--font-body); margin-left: 2px; }
.aoa-bc-nested-section { margin-inline-start: 16px; margin-top: 16px; }
.aoa-bc-nested-section .aoa-bc-list-title h3 { font-size: 13px; }
.aoa-bc-add-section { display: block; width: 100%; padding: 8px 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 400 13px/1.5 var(--font-body); text-align: start; cursor: pointer; }
.aoa-bc-add-section:hover { color: var(--aoa-link); text-decoration: underline; text-underline-offset: 3px; }
.aoa-bc-section-composer { display: flex; flex-direction: column; gap: 4px; padding: 4px 0; }
.aoa-bc-section-composer input { width: 100%; min-width: 0; padding: 6px 0; border: 0; border-radius: 0; background: transparent; color: var(--body); font: 400 13px/1.5 var(--font-body); }
.aoa-bc-section-composer input:focus-visible { outline: none; box-shadow: 0 1px var(--aoa-link); }
.aoa-bc-add-todo { display: block; width: calc(100% - 16px); padding: 10px 8px; margin-inline-start: 16px; border: 0; border-radius: 4px; background: transparent; color: var(--muted); font: 400 14px/1.5 var(--font-body); text-align: start; cursor: pointer; }
.aoa-bc-add-todo:hover { color: var(--aoa-link); text-decoration: underline; text-underline-offset: 3px; }
html body :is(.aoa-basecamp-pane, .aoa-bc-dialog) .aoa-bc-add-todo:focus { background: var(--track); color: var(--heading); outline: 2px solid var(--aoa-orange) !important; outline-offset: 2px; }
.aoa-bc-inline-composer { margin: 3px 0 12px; min-width: 0; font: 400 14px/1.5 var(--font-body); }
.aoa-bc-composer-title { display: flex; align-items: flex-start; gap: 8px; }
.aoa-bc-composer-title > .aoa-bc-title-field { flex: 1; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--body); font: 400 14px/1.5 var(--font-body); }
.aoa-bc-task-delete { display: flex; align-items: center; justify-content: center; flex: 0 0 24px; width: 24px; height: 24px; margin-inline-start: auto; padding: 0; border: 0; border-radius: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-task-delete svg { width: 18px; height: 18px; }
.aoa-bc-task-delete:hover { background: var(--track); color: #c8463b; }
.aoa-basecamp-pane .aoa-bc-task-pending > :disabled { opacity: 1; }
.aoa-bc-composer-fields { margin: 12px 0 0 24px; }
.aoa-bc-composer-fields .aoa-bc-field { margin-bottom: 12px; }
.aoa-bc-composer-fields .aoa-bc-field > span { color: var(--muted); font-weight: 400; }
.aoa-bc-composer-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0 24px; }
.aoa-bc-inline-error { margin: 8px 0 0 24px; color: #c8463b; font-size: 12px; }
.aoa-bc-assign { width: 100%; min-width: 0; position: relative; }
.aoa-bc-assign-control { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px; width: 100%; min-height: 36px; }
.aoa-bc-assignee-chips { display: contents; }
.aoa-bc-assign-control > .aoa-bc-assign-input { flex: 1; min-width: 110px; width: 110px; padding: 5px 0; border: 0; border-radius: 0; background: transparent; color: var(--body); font: 400 13px/1.5 var(--font-body); }
.aoa-bc-assign-control > .aoa-bc-assign-input:focus-visible { outline: none; box-shadow: 0 1px var(--aoa-link); }
.aoa-bc-assign-options { position: absolute; top: 100%; left: 0; width: min(300px, 100%); max-height: 240px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); box-shadow: 0 4px 18px #0002; z-index: 9; }
.aoa-bc-assign-option { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; border-radius: 4px; background: transparent; color: var(--body); font: 400 13px/1.5 var(--font-body); text-align: start; cursor: pointer; }
.aoa-bc-assign-option:hover, .aoa-bc-assign-option[aria-selected="true"] { background: var(--track); color: var(--heading); }
.aoa-bc-assign-options > p { padding: 4px 8px; }
.aoa-bc-person-chip { display: inline-flex; align-items: center; flex: 0 1 auto; gap: 5px; min-width: 0; max-width: 100%; padding: 3px 5px 3px 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--track); font-size: 13px; }
.aoa-bc-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.aoa-bc-chip-remove { display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-chip-remove svg { width: 12px; height: 12px; }
.aoa-bc-chip-remove:hover { color: var(--heading); }
.aoa-bc-person-chip .aoa-bc-avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 10px; }
.aoa-bc-project-mode .aoa-bc-composer-fields > .aoa-bc-field { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; align-items: start; }
.aoa-bc-project-mode .aoa-bc-composer-fields > .aoa-bc-field > span { padding-top: 8px; }
.aoa-bc-project-mode .aoa-bc-composer-fields > .aoa-bc-assignee-field { display: block; width: 100%; }
.aoa-bc-loose-title { padding-bottom: 8px; color: var(--heading); font: 500 14px/1.4 var(--font-head); }
.aoa-bc-alert { padding: 12px 16px; background: var(--track); color: #c8463b; font-size: 12px; }
.aoa-bc-skeleton { height: 42px; margin: 8px 0; border-radius: 4px; background: var(--track); animation: aoa-bc-pulse 1.6s ease-in-out infinite; }
@keyframes aoa-bc-pulse { 50% { opacity: .45; } }
.aoa-bc-resize { position: absolute; top: 0; bottom: 0; right: calc(var(--aoa-bc-reserved-width) - 3px); width: 6px; cursor: col-resize; z-index: 4; }
.aoa-bc-resize:hover { background: var(--aoa-link); opacity: .35; }
.aoa-bc-dialog { width: min(480px, calc(100vw - 32px)); max-height: min(760px, calc(100vh - 48px)); padding: 0; border: 1px solid var(--border); border-radius: 8px; color: var(--body); background: var(--surface); box-shadow: 0 12px 50px #0003; font: 400 14px/1.5 var(--font-body); }
.aoa-bc-dialog::backdrop { background: #0006; }
.aoa-bc-dialog[open] { display: flex; flex-direction: column; }
.aoa-bc-dialog > header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.aoa-bc-dialog h2 { margin: 0; color: var(--heading); font: 500 16px/1.5 var(--font-head); }
.aoa-bc-dialog-body { overflow: auto; padding: 20px; min-height: 0; }
.aoa-bc-dialog-body > p { margin: 0 0 12px; }
.aoa-bc-dialog > footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--border); }
.aoa-bc-detail-task { padding-block: 5px; }
.aoa-bc-detail-add-todo { width: 100%; margin: 8px 0 0; }
.aoa-bc-editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; flex-basis: 100%; margin-bottom: 4px; }
.aoa-bc-editor-actions .aoa-bc-text-button { font-size: 12px; }
.aoa-bc-editor-actions .aoa-bc-danger { color: #c8463b; }
.aoa-bc-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.aoa-bc-field > span { font: 500 12px/1.5 var(--font-head); color: var(--heading); }
.aoa-bc-field :is(input, textarea, select), .aoa-bc-search { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); color: var(--body); font: 400 13px/1.5 var(--font-body); }
.aoa-bc-field textarea { resize: vertical; min-height: 80px; }
.aoa-bc-field :disabled { color: var(--muted); background: var(--track); }
.aoa-bc-field input[type="date"] { min-width: 0; color-scheme: light; cursor: pointer; }
html[data-theme="dark"] .aoa-bc-field input[type="date"] { color-scheme: dark; }
.aoa-bc-date-control { display: flex; align-items: center; width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 5px; background: var(--surface); }
.aoa-bc-date-control:focus-within { border-color: var(--aoa-link); }
.aoa-bc-date-launch { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; width: 34px; height: 36px; border: 0; padding: 0; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-date-launch svg { width: 20px; height: 20px; }
.aoa-bc-date-control > .aoa-bc-date-input { flex: 1; min-width: 0; padding-inline-start: 0; border: 0; background: transparent; }
.aoa-bc-date-control > .aoa-bc-date-input:focus-visible { outline: none; }
.aoa-bc-date-input[aria-invalid="true"] { color: #c8463b; }
.aoa-bc-date-unset { display: flex; align-items: center; justify-content: center; flex: 0 0 18px; width: 18px; height: 18px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-date-unset svg { width: 12px; height: 12px; stroke-width: 1.75; }
.aoa-bc-date-unset:hover { color: var(--heading); background: var(--aoa-bc-fill); }
.aoa-bc-date-control:focus-within .aoa-bc-date-unset { display: none; }
/* The When picker, after Things: Today and Tomorrow, four weeks from this one, and
   Clear, in one 13px face. Today is a sun and tomorrow a sunrise; the 1st of a month
   shows the month. */
.aoa-basecamp-pane, .aoa-bc-date-popover, .aoa-bc-task-editor { --aoa-sun: #f5b400; --aoa-bc-fill: color-mix(in srgb, var(--heading) 8%, transparent); --aoa-bc-fill-strong: color-mix(in srgb, var(--heading) 13%, transparent); }
.aoa-bc-date-popover { width: min(280px, 100%); margin: 0; padding: 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--heading); box-shadow: 0 0 8px #0000001f, 0 12px 32px #0000002e; font: 400 13px/1.5 var(--font-body); overflow: auto; overscroll-behavior: contain; transform-origin: top left; animation: aoa-bc-pop-in 220ms cubic-bezier(.3, 1.3, .5, 1) both; }
.aoa-bc-date-popover[data-floating] { position: fixed; inset: auto; z-index: 12; box-sizing: border-box; }
.aoa-bc-date-popover:focus-visible, .aoa-bc-date-popover :focus-visible { outline: 2px solid var(--aoa-orange); outline-offset: -1px; }
.aoa-bc-date-popover button { font-family: var(--font-body) !important; }
.aoa-bc-date-preview, .aoa-bc-date-alternative, .aoa-bc-date-shortcut { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--heading); text-align: start; font: 400 14px/1.5 var(--font-body); cursor: pointer; }
.aoa-bc-date-preview { background: var(--aoa-bc-fill); }
.aoa-bc-date-suggestions { display: flex; flex-direction: column; gap: 2px; }
.aoa-bc-date-suggestions svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--muted); }
.aoa-bc-date-suggestion-label { flex: 1; }
.aoa-bc-date-suggestion-weekday { color: var(--muted); }
.aoa-bc-date-alternative:hover, .aoa-bc-date-shortcut:hover, .aoa-bc-date-day:hover, .aoa-bc-date-page:hover { background: var(--aoa-bc-fill); }
.aoa-bc-date-popover .aoa-bc-date-preview:disabled { color: var(--muted); cursor: default; opacity: 1; }
.aoa-bc-date-preview.aoa-bc-date-invalid { color: #c8463b; }
.aoa-bc-date-shortcuts { display: flex; flex-direction: column; padding-bottom: 2px; }
.aoa-bc-date-shortcut { font-weight: 500; }
.aoa-bc-date-shortcut svg { flex: 0 0 18px; width: 18px; height: 18px; }
.aoa-bc-date-shortcut .aoa-bc-date-icon-sun { fill: var(--aoa-sun); stroke: var(--aoa-sun); stroke-width: 1.75; }
.aoa-bc-date-shortcut .aoa-bc-date-icon-sunrise { color: var(--aoa-orange); stroke-width: 1.5; }
.aoa-bc-date-shortcut-label { flex: 1; }
.aoa-bc-date-shortcut .aoa-bc-date-tick { visibility: hidden; color: var(--aoa-orange); stroke-width: 1.75; }
.aoa-bc-date-shortcut[aria-pressed="true"] .aoa-bc-date-tick { visibility: visible; }
.aoa-bc-date-calendar { padding: 0 2px; }
.aoa-bc-date-grid { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: center; }
.aoa-bc-date-grid th { padding: 6px 0 2px; color: var(--muted); font: 500 11px/1.5 var(--font-body); }
.aoa-bc-date-grid td { height: 36px; padding: 1px 0; border: 0; }
.aoa-bc-date-day, .aoa-bc-date-page { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--heading); font: 500 14px/1 var(--font-body); font-variant-numeric: tabular-nums; cursor: pointer; }
.aoa-bc-date-month-start { font-size: 11px; font-weight: 600; color: var(--aoa-orange); }
.aoa-bc-date-today svg { width: 18px; height: 18px; fill: var(--aoa-sun); stroke: var(--aoa-sun); stroke-width: 1.75; }
.aoa-bc-date-day[aria-pressed="true"] { background: var(--aoa-link); color: #fff; box-shadow: inset 0 0 0 2px color-mix(in srgb, #fff 70%, transparent); animation: aoa-bc-day-pick 260ms cubic-bezier(.3, 1.6, .5, 1) both; }
.aoa-bc-date-day[aria-pressed="true"] svg { fill: #fff; stroke: #fff; }
.aoa-bc-date-page svg { width: 15px; height: 15px; color: var(--muted); stroke-width: 1.5; }
.aoa-bc-date-previous svg { transform: rotate(90deg); }
.aoa-bc-date-next svg { transform: rotate(-90deg); }
.aoa-bc-date-clear { display: block; width: 100%; min-height: 34px; margin-top: 4px; padding: 0 8px; border: 0; border-radius: 7px; background: var(--aoa-bc-fill); color: var(--heading); text-align: center; font: 500 13px/1.5 var(--font-body); cursor: pointer; }
.aoa-bc-date-clear:hover { background: var(--aoa-bc-fill-strong); }
.aoa-bc-date-help { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* The pop-ups' first row is their search field, as in Things: When's typed day,
   and the people list's name filter. */
.aoa-bc-date-search { padding-bottom: 2px; }
html body .aoa-bc-date-popover .aoa-bc-date-input, html body .aoa-bc-assign-sheet .aoa-bc-assign-input { appearance: none; display: block; box-sizing: border-box; width: 100%; height: 36px; min-height: 36px; margin: 0; padding: 0 8px !important; border: 0 !important; border-radius: 8px; background: transparent !important; box-shadow: none !important; color: var(--heading) !important; font: 400 15px/1.5 var(--font-body) !important; caret-color: var(--aoa-link); }
html body :is(.aoa-bc-date-popover .aoa-bc-date-input, .aoa-bc-assign-sheet .aoa-bc-assign-input):focus { outline: none !important; box-shadow: none !important; }
:is(.aoa-bc-date-popover .aoa-bc-date-input, .aoa-bc-assign-sheet .aoa-bc-assign-input)::placeholder { color: var(--muted); opacity: 1; }
.aoa-bc-date-popover .aoa-bc-date-input[aria-invalid="true"] { color: #c8463b !important; }
.aoa-bc-assign-sheet { position: absolute; top: calc(100% + 4px); left: 0; z-index: 9; box-sizing: border-box; width: min(300px, 100%); padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--heading); box-shadow: 0 0 8px #0000001f, 0 12px 32px #0000002e; animation: aoa-bc-pop-in 220ms cubic-bezier(.3, 1.3, .5, 1) both; transform-origin: top left; }
.aoa-bc-assign-sheet[data-floating] { position: fixed; inset: auto; margin: 0; z-index: 12; overflow: auto; overscroll-behavior: contain; }
/* The people list's first row, a Tag field: the people assigned as chips, then the typing. */
.aoa-bc-assign-search { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 36px; padding: 2px 2px 2px 4px; cursor: text; }
.aoa-bc-assign-search > .aoa-bc-assignee-chips { display: contents; }
html body .aoa-bc-assign-search > .aoa-bc-assign-input { flex: 1 1 80px; width: 80px; min-width: 80px; padding: 0 4px !important; }
.aoa-bc-assign-search .aoa-bc-person-chip { height: 28px; }
.aoa-bc-assign-sheet > .aoa-bc-assign-options { position: static; width: auto; max-height: 240px; margin: 2px 0 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
/* Chips and the people list are buttons, which Twist's theme sets in Poppins; the
   editor keeps one face, so they stay in the body font like "Today". */
html body :is(.aoa-bc-task-editor .aoa-bc-person-chip, .aoa-bc-assign-option, .aoa-bc-task-editor .aoa-bc-date-trigger) { font-family: var(--font-body) !important; }
/* The row's day button reads as plain words inside its chip. */
.aoa-bc-date-trigger, .aoa-bc-assign-trigger { appearance: none; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.aoa-bc-date-trigger { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: start; }
@keyframes aoa-bc-pop-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes aoa-bc-day-pick { from { transform: scale(.88); } to { transform: none; } }
.aoa-bc-primary-button, .aoa-bc-secondary-button { padding: 7px 12px; border: 1px solid transparent; border-radius: 5px; font: 500 13px/1.5 var(--font-head); cursor: pointer; }
.aoa-bc-primary-button { color: var(--done-fg); background: var(--done-bg); }
.aoa-bc-secondary-button { color: var(--heading); background: var(--track); }
.aoa-bc-destructive-button { background: #c8463b; color: white; }
.aoa-bc-dialog-error { margin: 0; padding: 8px 20px 16px; color: #c8463b; font-size: 12px; }
.aoa-basecamp-pane :focus-visible, .aoa-bc-dialog :focus-visible, .aoa-bc-toggle:focus-visible, .aoa-bc-resize:focus-visible { outline: 2px solid var(--aoa-orange); outline-offset: 2px; box-shadow: none; }
/* Expanding a task keeps its title on the original text baseline. Native input
   rules and the shared keyboard ring must not turn it into a boxed form field. */
.aoa-bc-task-editor { position: relative; isolation: isolate; }
/* The open card's background reaches past its text (--aoa-bc-bleed), and the
   card keeps that much more room above and below, so it never touches its
   neighbours. Suggested drafts (from an AN line) stack above Add a to-do. */
:root { --aoa-bc-bleed: 12px; }
/* Opening and closing a to-do moves like Things: a spring with no bounce (stiffness 449,
   damping 42, mass 1) that settles in 0.44s, sampled into a linear() curve. Its row and its
   card are one thing changing shape (morph() in basecamp-threads.js): the box springs from
   the old size, spacing and background to the new, the rows below move with it, and the
   title never moves or blinks. Only what the two don't share fades, out or in. */
:root { --aoa-bc-spring: linear(0, 0.059, 0.184, 0.326, 0.462, 0.581, 0.68, 0.759, 0.82, 0.868, 0.903, 0.93, 0.949, 0.964, 0.974, 0.982, 0.987, 0.991, 0.994, 0.996, 0.997, 0.998, 0.998, 0.999, 1); }
/* While it changes shape its contents are cut off at its edge. A card in the drawer has a
   background that reaches past its box (and so does the copy of one left to fade), so there
   the cut is that much further out. A clip-path does it in every browser: Safari has no
   overflow-clip-margin, and would cut the background off until the animation ended. */
.aoa-bc-morphing { position: relative; box-sizing: border-box; overflow: clip; }
:is(.aoa-bc-task-editor, .aoa-bc-task, .aoa-bc-add-todo).aoa-bc-morphing, .aoa-bc-ghost.aoa-bc-task-editor { overflow: visible; clip-path: inset(calc(-4px - var(--aoa-bc-bleed))); }
/* A list or date picker opened straight away (L on a to-do) is never cut off. Those shown as
   native popovers sit above the page anyway; this is for where they can't be. */
.aoa-bc-morphing:has(:is(.aoa-bc-date-popover, .aoa-bc-assign-sheet):not([hidden], [data-floating])) { overflow: visible; clip-path: none; }
/* The copy of what was there, laid over what replaced it, fading out. The checkbox and the
   title's first line are the new one's already, in the same place, so the copy leaves them
   out; unless the new text is a different one (.aoa-bc-ghost-whole). */
.aoa-bc-ghost { position: absolute !important; z-index: 1; grid-area: auto !important; margin: 0 !important; box-sizing: border-box; pointer-events: none; }
.aoa-bc-ghost, .aoa-bc-ghost * { animation: none !important; transition: none !important; }
.aoa-bc-ghost:not(.aoa-bc-ghost-whole) .aoa-bc-check { visibility: hidden; }
/* A long title is cut short in its row ("…") and shown in full in its card, so the two share
   only the start of the first line (--aoa-bc-kept wide). That part is the new one's from the
   start and never changes. Of the old title, only the rest is kept to fade out: the row's
   last letters and "…" (--aoa-bc-cut wide), or the card's further words and lines. */
.aoa-bc-ghost:not(.aoa-bc-ghost-whole) .aoa-bc-task-title { clip-path: inset(0 0 0 calc(100% - var(--aoa-bc-cut, 0px))); }
.aoa-bc-ghost:not(.aoa-bc-ghost-whole) .aoa-bc-title-field { clip-path: polygon(var(--aoa-bc-kept, 100%) 0, 100% 0, 100% 100%, 0 100%, 0 calc(1.5px + 1lh), var(--aoa-bc-kept, 100%) calc(1.5px + 1lh)); }
/* Of the new title, the rest fades in (--aoa-bc-rest, 0 to 1). */
@property --aoa-bc-rest { syntax: "<number>"; inherits: false; initial-value: 1; }
.aoa-bc-title-arriving { -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(rgb(0 0 0 / var(--aoa-bc-rest)), rgb(0 0 0 / var(--aoa-bc-rest))); mask-image: linear-gradient(#000, #000), linear-gradient(rgb(0 0 0 / var(--aoa-bc-rest)), rgb(0 0 0 / var(--aoa-bc-rest))); -webkit-mask-size: var(--aoa-bc-kept) calc(1.5px + 1lh), 100% 100%; mask-size: var(--aoa-bc-kept) calc(1.5px + 1lh), 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
/* A card with no row to become (a cancelled new to-do, a deleted one): a copy shrinks away. */
.aoa-bc-departing { overflow: clip; pointer-events: none; }
.aoa-bc-task-editor { --aoa-bc-text-x: 24px; --aoa-bc-icon-x: 0px; margin-block: 14px 18px; }
.aoa-bc-suggested-draft { margin-bottom: 32px; }
.aoa-bc-task-editor::before { content: ""; position: absolute; inset: calc(-1 * var(--aoa-bc-bleed)); z-index: -1; border-radius: 12px; background: var(--track); box-shadow: 0 2px 10px #0000000d; pointer-events: none; }
/* What only the card shows arrives as it opens (its background too, where the row had none),
   and what only the row shows arrives as the card settles into it. These run only during
   the morph: put back into the page later (the drawer rebuilds its list), nothing replays.
   --aoa-bc-morph-elapsed lets one that had to start again pick up where it was. */
.aoa-bc-task-editor.aoa-bc-morph-open::before { animation: aoa-bc-card-in 200ms ease-out var(--aoa-bc-morph-elapsed, 0ms) both; }
.aoa-bc-morph-open :is(.aoa-bc-composer-fields, .aoa-bc-composer-actions) { animation: aoa-bc-rows-in 440ms var(--aoa-bc-spring, cubic-bezier(.2, .9, .25, 1)) calc(60ms + var(--aoa-bc-morph-elapsed, 0ms)) both; }
.aoa-bc-morph-open .aoa-bc-task-delete, .aoa-bc-morph-close :is(.aoa-bc-task-meta, .aoa-bc-task-source) { animation: aoa-bc-fade-in 200ms ease-out calc(60ms + var(--aoa-bc-morph-elapsed, 0ms)) both; }
.aoa-bc-task-editor [hidden], .aoa-bc-date-popover [hidden] { display: none !important; }
@keyframes aoa-bc-card-in { from { opacity: 0; } to { opacity: 1; } }
/* Offset, not transform: a transform would paint them on a layer of their own, and they would
   shift by a fraction of a pixel when the animation let go of it. */
@keyframes aoa-bc-rows-in { from { opacity: 0; top: -6px; } to { opacity: 1; top: 0; } }
@keyframes aoa-bc-fade-in { from { opacity: 0; } }
@keyframes aoa-bc-fade-out { to { opacity: 0; } }
.aoa-bc-task-editor:focus-within { z-index: 1; }
html body .aoa-bc-task-editor .aoa-bc-composer-title > .aoa-bc-title-field { appearance: none; box-sizing: border-box; height: 21px; min-height: 21px; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; color: var(--body) !important; font: 400 14px/1.5 var(--font-body) !important; }
html body .aoa-bc-task-editor :is(.aoa-bc-composer-title > .aoa-bc-title-field, .aoa-bc-assign-input, .aoa-bc-date-input):focus { outline: none !important; box-shadow: none !important; }
/* The open card, after Things: the title, then one line of details and the action.
   A detail that is set is a compact chip under the title (each person, the day:
   "⭐ Today"); one that isn't is a 32px icon button. People always come before When,
   so the order on screen is the order Tab follows; the action sits on the right.
   Chips and icons open their lists, whose first row is the field to type in.
   There is no Cancel: Escape discards. */
/* The details and the button share one line that wraps: details take the whole width
   they need, and the button drops below, still on the right, only when they don't fit. */
.aoa-bc-task-editor { display: flex; flex-wrap: wrap; align-items: flex-end; column-gap: 8px; }
.aoa-bc-task-editor > :is(.aoa-bc-composer-title, .aoa-bc-inline-error) { flex: 0 0 100%; }
.aoa-bc-task-editor > .aoa-bc-composer-fields { flex: 1 1 auto; }
.aoa-bc-task-editor > .aoa-bc-composer-actions { flex: none; margin-left: auto; padding-top: 10px; }
html body .aoa-bc-task-editor .aoa-bc-composer-title > .aoa-bc-title-field { display: block; height: auto; min-height: 24px; max-height: none; padding: 1.5px 0 !important; overflow: hidden; resize: none; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--aoa-bc-title-color) !important; field-sizing: content; }
/* Its colour is a registered property so opening can ease it from the row's (an !important
   colour can't be animated itself). */
@property --aoa-bc-title-color { syntax: "<color>"; inherits: true; initial-value: transparent; }
.aoa-bc-task-editor { --aoa-bc-title-color: var(--heading); }
/* The checkbox stays beside the title's first line however many lines it wraps to. */
.aoa-bc-task-editor .aoa-bc-composer-title { min-height: 24px; align-items: flex-start; }
.aoa-bc-task-editor .aoa-bc-composer-title > .aoa-bc-check { margin-top: 4px; }
.aoa-bc-task-editor input::placeholder { color: var(--muted); opacity: 1; }
/* The details' layer sits above the action's, so a list or picker hanging below a
   chip covers the button rather than slipping under it. */
html body .aoa-bc-task-editor .aoa-bc-composer-fields { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; margin: 14px 0 0 calc(var(--aoa-bc-text-x) - 6px); }
.aoa-bc-task-editor .aoa-bc-composer-actions { position: relative; z-index: 1; }
html body .aoa-bc-task-editor .aoa-bc-composer-fields > .aoa-bc-field { display: flex; width: auto; margin: 0; min-width: 0; }
.aoa-bc-task-editor .aoa-bc-composer-fields > .aoa-bc-field > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Chips: 30px, the icon or avatar first, the words, then their own ×. */
.aoa-bc-task-editor .aoa-bc-assign { width: auto; min-width: 0; }
.aoa-bc-task-editor .aoa-bc-assign-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; width: auto; min-height: 0; padding: 0; background: transparent; }
.aoa-bc-task-editor .aoa-bc-person-chip, .aoa-bc-task-editor .aoa-bc-date-control:not([data-empty]) { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 5px; border: 0; border-radius: 8px; background: var(--aoa-bc-fill); color: var(--heading); font: 500 13px/1 var(--font-body); cursor: pointer; transition: background-color 120ms ease; }
.aoa-bc-task-editor .aoa-bc-person-chip:hover, .aoa-bc-task-editor .aoa-bc-date-control:not([data-empty]):hover { background: var(--aoa-bc-fill-strong); }
.aoa-bc-task-editor .aoa-bc-person-chip .aoa-bc-avatar { width: 20px; height: 20px; flex-basis: 20px; font-size: 9px; }
.aoa-bc-task-editor .aoa-bc-chip-name { max-width: 140px; }
.aoa-bc-task-editor :is(.aoa-bc-chip-remove, .aoa-bc-date-unset) { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.aoa-bc-task-editor :is(.aoa-bc-chip-remove, .aoa-bc-date-unset) svg { width: 12px; height: 12px; stroke-width: 1.75; }
.aoa-bc-task-editor :is(.aoa-bc-chip-remove, .aoa-bc-date-unset):hover { color: var(--heading); background: var(--aoa-bc-fill); }
/* Icon buttons: 32px targets with an 18px icon. */
.aoa-bc-task-editor .aoa-bc-assign-trigger, .aoa-bc-task-editor .aoa-bc-date-control[data-empty] .aoa-bc-date-launch { position: static; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; min-width: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; transition: background-color 120ms ease, color 120ms ease; }
.aoa-bc-task-editor :is(.aoa-bc-assign-trigger, .aoa-bc-date-launch) svg { width: 18px; height: 18px; stroke-width: 1.4; }
.aoa-bc-task-editor .aoa-bc-assign-control:not([data-empty]) .aoa-bc-assign-trigger { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.aoa-bc-task-editor .aoa-bc-assign-trigger:hover, .aoa-bc-task-editor .aoa-bc-date-control[data-empty] .aoa-bc-date-launch:hover { background: var(--aoa-bc-fill); color: var(--heading); }
/* When, as a chip or an icon. */
.aoa-bc-task-editor .aoa-bc-when-field { position: relative; min-width: 0; }
.aoa-bc-task-editor .aoa-bc-date-control { display: inline-flex; align-items: center; width: auto; min-height: 0; padding: 0; border: 0; background: transparent; }
.aoa-bc-task-editor .aoa-bc-date-control:not([data-empty]) .aoa-bc-date-launch { position: static; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 20px; width: 20px; height: 20px; padding: 0; border: 0; background: transparent; color: var(--heading); }
.aoa-bc-task-editor .aoa-bc-date-control:not([data-empty]) .aoa-bc-date-launch svg { width: 16px; height: 16px; }
.aoa-bc-task-editor .aoa-bc-date-control[data-today] .aoa-bc-date-launch svg { fill: var(--aoa-sun); stroke: var(--aoa-sun); }
.aoa-bc-task-editor .aoa-bc-date-control[data-empty] .aoa-bc-date-trigger { display: none; }
.aoa-bc-task-editor .aoa-bc-date-trigger { height: 30px; font: 500 13px/30px var(--font-body) !important; color: var(--heading); }
.aoa-bc-task-editor .aoa-bc-when-field .aoa-bc-date-popover:not([data-floating]) { position: absolute; top: calc(100% + 4px); left: 0; width: min(280px, calc(100vw - 32px)); z-index: 9; }

/* Lists open under what opened them. */
.aoa-bc-task-editor .aoa-bc-assign-sheet { left: 0; width: 280px; }
/* The action, bottom-right, 32px tall. */
.aoa-bc-task-editor .aoa-bc-composer-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: nowrap; gap: 8px; margin: 0 0 0 auto; }
.aoa-bc-task-editor .aoa-bc-composer-actions > button { flex-shrink: 0; white-space: nowrap; }
.aoa-bc-task-editor .aoa-bc-primary-button { height: 32px; min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px; color: #15191e; background: var(--aoa-orange); font: 500 13px/1 var(--font-body) !important; }
.aoa-bc-task-editor .aoa-bc-primary-button:hover { background: color-mix(in srgb, var(--aoa-orange) 88%, white); }
.aoa-basecamp-pane button:disabled, .aoa-bc-dialog button:disabled { cursor: progress; opacity: .5; }
@media (max-width: 1100px) {
  .aoa-basecamp-split { --aoa-bc-reserved-width: 0px; }
  .aoa-basecamp-split > .aoa-basecamp-pane { position: absolute; inset: 0 0 0 auto; width: min(420px, 100%); box-shadow: -12px 0 30px #0002; }
  .aoa-bc-resize { display: none; }
  .aoa-bc-project-mode .aoa-bc-panel-content { padding: 16px; }
  .aoa-bc-project-mode .aoa-bc-panel-header { padding-inline-start: 16px; }
}
@media (max-width: 800px) {
  .aoa-bc-project-mode .aoa-bc-composer-fields > .aoa-bc-field { display: flex; gap: 6px; }
  .aoa-bc-project-mode .aoa-bc-composer-fields > .aoa-bc-field > span { padding-top: 0; }
  .aoa-bc-dialog { max-height: calc(100dvh - 32px); }
}
@media (prefers-reduced-motion: reduce) { .aoa-bc-date-popover, .aoa-bc-date-day, .aoa-bc-task-editor::before, .aoa-bc-morphing, .aoa-bc-morphing * { animation: none !important; } html body .aoa-bc-task-editor .aoa-bc-date-input, .aoa-bc-task-editor .aoa-bc-date-control { transition: none; } .aoa-bc-skeleton, .aoa-bc-task-completing::before, .aoa-bc-task-completing .aoa-bc-check svg { animation: none; } .aoa-bc-section-collapse svg { transition: none; } }

/* After a to-do is deleted: "Deleted '…'  Undo  ⌘Z", bottom-centre, for a few seconds. */
.aoa-bc-undo-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2147483000; display: flex; align-items: center; gap: 12px; max-width: min(520px, calc(100vw - 32px)); padding: 6px 8px 6px 16px; border-radius: 12px; background: #1f252c; color: #fafafa; box-shadow: 0 10px 32px #00000066; font: 400 13px/1.4 var(--font-body, Helvetica, Arial, sans-serif); transform: translateX(-50%); animation: aoa-bc-toast-in 220ms cubic-bezier(.3, 1.3, .5, 1) both; }
.aoa-bc-undo-toast[hidden] { display: none !important; }
.aoa-bc-undo-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aoa-bc-undo-action { flex: none; height: 28px; padding: 0 12px; border: 0; border-radius: 8px; background: #ffffff1f; color: #fff; font: 500 13px/1 var(--font-body, Helvetica, Arial, sans-serif) !important; cursor: pointer; }
.aoa-bc-undo-action:hover { background: #ffffff33; }
.aoa-bc-undo-toast kbd { flex: none; padding-right: 6px; color: #ffffff80; font: 400 12px/1 var(--font-body, Helvetica, Arial, sans-serif); }
@keyframes aoa-bc-toast-in { from { opacity: 0; transform: translate(-50%, 8px) scale(.98); } to { opacity: 1; transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .aoa-bc-undo-toast { animation: none; } }

/* To-do rows are picked, not read as text: no text selection (editors keep it). They
   take a hover fill like Twist's thread rows, and the keyboard's row a stronger one. */
.aoa-bc-task, .aoa-bc-list-heading { -webkit-user-select: none; user-select: none; }
.aoa-bc-task-editor { -webkit-user-select: text; user-select: text; }
.aoa-bc-task { margin-inline: -6px; padding-inline: 6px; border-radius: 6px; }
.aoa-bc-task:hover { background: var(--card, rgba(255, 255, 255, .04)); }
.aoa-bc-task:has(> .aoa-bc-task-body:focus-visible) { background: var(--aoa-bc-fill); }
.aoa-bc-task-open { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 24px; height: 24px; margin-inline-start: auto; border-radius: 4px; color: var(--muted); }
.aoa-bc-task-open svg { width: 18px; height: 18px; }
.aoa-bc-task-open:hover { color: var(--heading); background: var(--hover); }
.aoa-bc-task-open + .aoa-bc-task-delete { margin-inline-start: 0; }
