.ba-workspace {
  --ba-blue: #286c9e;
  --ba-muted: #5d6a80;
  --ba-line: #e1e8f1;
  --ba-pale: #f1f5fa;
  --ba-red: #c42842;
  display: grid;
  gap: 18px;
  min-width: 0;
}
.ba-workspace .card { min-width: 0; }
.ba-workspace .card-heading { gap: 12px; flex-wrap: wrap; }
.ba-workspace h2 { font-size: 1.15rem; }
.ba-workspace h3 { font-size: .875rem; }
.ba-meta { color: var(--ba-muted); font-size: .79rem; line-height: 1.5; }
.ba-plan-heading > div > p { margin-top: 4px; }
.ba-plan-controls { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; }
.ba-plan-controls select { min-width: 148px; width: auto; }
.ba-plan-controls .btn { min-height: 39px; }
.ba-outside { margin-left: 4px; }
.ba-table-wrap { overflow-x: auto; border: 1px solid var(--ba-line); border-radius: 12px; }
.ba-timeline { width: 100%; min-width: 565px; border-spacing: 0; table-layout: fixed; font-size: .8rem; }
.ba-title-col { width: 34%; }
.ba-timeline th, .ba-timeline td { border-bottom: 1px solid var(--ba-line); border-right: 1px solid var(--ba-line); }
.ba-timeline tr:last-child td, .ba-timeline tbody tr:last-child th { border-bottom: 0; }
.ba-timeline th:last-child, .ba-timeline td:last-child { border-right: 0; }
.ba-timeline th:first-child { text-align: left; padding: 8px 10px; position: sticky; left: 0; z-index: 1; background: #fff; }
.ba-timeline th[scope="row"] { font-weight: 500; }
.ba-timeline thead th:first-child, .ba-timeline thead th { background: var(--ba-pale); }
.ba-timeline thead th { padding: 0; height: 48px; }
.ba-timeline thead button { display: grid; justify-items: center; place-content: center; position: relative; gap: 2px; width: 100%; min-height: 48px; border: 0; background: transparent; color: inherit; border-radius: 4px; }
.ba-timeline thead button span { font-size: .7rem; }
.ba-timeline thead button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--ba-blue); background: #e0ecf7; }
.ba-timeline .ba-weekend { background: #f2f5f9; }
.ba-timeline .ba-today, .ba-legend .ba-today { box-shadow: inset 2px 0 0 var(--ba-red), inset -2px 0 0 var(--ba-red); background: #fff0f2; color: #a51b33; }
.ba-timeline th.ba-today button[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--ba-red); background: #c4284218; }
.ba-timeline td { position: relative; }
.ba-timeline td.ba-bar::before, .ba-timeline td.ba-milestone::before { content: ''; display: block; background: #b7d6ed; height: 12px; width: 100%; }
.ba-timeline td.ba-milestone::before { width: 10px; height: 10px; transform: rotate(45deg); margin: auto; border-radius: 1px; background: #1f4e79; }
.ba-timeline td.ba-today::before { width: calc(100% - 4px); margin-inline: auto; }
.ba-timeline td.ba-today.ba-milestone::before { width: 10px; }
.ba-due-dot { display: inline-block; width: 7px; height: 7px; background: #ae6707; border-radius: 50%; }
.ba-timeline .ba-due-dot { position: absolute; top: 5px; right: 5px; }
.ba-legend { display: flex; flex-wrap: wrap; gap: 7px 16px; margin: 12px 0; color: var(--ba-muted); font-size: .75rem; }
.ba-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ba-legend i { display: inline-block; width: 11px; height: 11px; }
.ba-legend .ba-bar { background: #b7d6ed; }
.ba-legend .ba-milestone { width: 8px; height: 8px; background: #1f4e79; transform: rotate(45deg); margin: 0 2px; }
.ba-legend .ba-due-dot { width: 7px; height: 7px; }
.ba-day { padding: 12px 14px; background: var(--ba-pale); border-radius: 10px; }
.ba-day ul { margin: 5px 0 1px; padding-left: 1.1rem; font-size: .82rem; line-height: 1.55; }
.ba-day .ba-item-heading { flex-wrap: wrap; }
.ba-text-button { border: 0; padding: 0; background: none; color: #14578a; text-decoration: underline; text-align: left; }
.ba-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#ba-board { display: grid; gap: 16px; min-width: 0; }
.ba-links { display: flex; gap: 5px 10px; flex-wrap: wrap; }
.ba-links a { display: inline-block; padding: 7px 13px; border: 1px solid #dce5f1; background: #fff; border-radius: 20px; font-size: .82rem; color: #304766; }
.ba-links a:hover { border-color: var(--ba-blue); }
.ba-card { scroll-margin-top: 90px; }
.ba-grid, .ba-board, .ba-files { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.ba-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ba-column { padding: 12px; background: var(--ba-pale); border: 1px solid var(--ba-line); border-radius: 12px; }
.ba-column h3 { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.ba-status { width: 8px; height: 8px; border-radius: 50%; background: #7988a0; }
.ba-status.doing { background: #a86305; }
.ba-status.done { background: #128051; }
.ba-count { color: var(--ba-muted); margin-left: auto; }
.ba-item { border: 1px solid var(--ba-line); border-radius: 9px; background: #fff; padding: 10px; min-width: 0; overflow-wrap: anywhere; }
.ba-item + .ba-item { margin-top: 8px; }
.ba-item-heading, .ba-byline { display: flex; justify-content: space-between; align-items: center; gap: 7px; }
.ba-item-heading strong, .ba-byline strong { font-size: .875rem; }
.ba-item-heading .btn { flex-shrink: 0; }
.ba-copy { white-space: pre-wrap; font-size: .875rem; line-height: 1.5; margin-top: 5px; }
.ba-byline { align-items: baseline; flex-wrap: wrap; }
.ba-byline small { font-size: .73rem; color: var(--ba-muted); }
.ba-messages { margin-top: 12px; max-height: 28rem; overflow-y: auto; }
#ba-message-form .btn { margin-top: 8px; }
.ba-upload { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ba-upload label { min-width: 0; max-width: 100%; }
.ba-upload input { max-width: 100%; }
#ba-upload-note { margin: 9px 0 12px; }
.ba-file { display: flex; align-items: center; gap: 10px; }
.ba-file .btn { margin-left: auto; flex-shrink: 0; }
.ba-file + .ba-file { margin-top: 0; }
.ba-file img { display: block; width: 50px; height: 50px; object-fit: cover; border-radius: 6px; }
.ba-file-name { color: #14578a; text-decoration: underline; font-size: .875rem; font-weight: 600; }
.ba-delete { margin-top: 13px; }
@media (max-width: 780px) {
  .ba-grid, .ba-files { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .ba-board { grid-template-columns: minmax(0, 1fr); }
  .ba-title-col { width: 25%; }
  .ba-timeline { min-width: 495px; }
  .scope-switch #ba-nav { padding-inline: 10px; }
}
@media (max-width: 380px) {
  .scope-switch #ba-nav span { display: none; }
}
