/* Compact database-style goals. Scoped so home TDL sizing stays untouched. */
.sbSrOnly { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sbWorkspace { margin-top: 20px; min-width: 0; font-size: 13px; }
.sbConnectedGoals { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; min-width: 0; }
.sbGoalsHeading h3 { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.sbGoalsHeading p { margin: 4px 0 0; font-size: 12px; color: var(--sub); line-height: 1.6; }
.sbConnectedGoals .sbWorkspace { margin-top: 12px; }
.sbGoalContext { margin: 0; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.sbGoalContext small { display: block; margin-top: 4px; color: var(--sub); }
.sbGuide, .sbRoster { margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.sbGuide summary, .sbRoster summary { padding: 12px 16px; cursor: pointer; color: var(--ink); font-weight: 550; min-height: 44px; }
.sbGuide summary:hover, .sbRoster summary:hover { background: var(--bg); border-radius: 8px; }
.sbGuide > div { padding: 0 16px 12px; max-width: 900px; line-height: 1.7; }
.sbGuide p { margin: 8px 0; }
.sbGuide ol { margin: 8px 0; padding-left: 20px; }
.sbGuideNote { font-size: 12px; line-height: 1.6; color: var(--sub); overflow-wrap: anywhere; }
.sbRoster > p { margin: 0; padding: 0 16px 12px; }
.sbRosterGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; padding: 0 16px 16px; }
.sbRosterGrid section { min-width: 0; }
.sbRosterGrid h4 { margin: 0 0 8px; color: var(--sub); font-size: 12px; }
.sbPerson { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
#collaborationView .sbPerson button { min-height: 44px; padding: 4px 8px; border: 0; background: transparent; color: var(--collab-blue); font-size: 12px; }
#collaborationView .sbPerson button:first-child { display: flex; flex: 1; align-items: center; gap: 8px; min-width: 0; color: var(--ink); text-align: left; }
.sbPerson button span:not(.sbAvatar) { min-width: 0; overflow-wrap: anywhere; }
.sbPerson small { display: block; color: var(--sub); font-size: 12px; font-weight: 400; }
.sbAvatar { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; color: var(--collab-blue); background: var(--collab-soft); }
.sbPeopleToolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 16px 0 12px; }
.sbPeopleToolbar label { display: flex; gap: 8px; align-items: center; color: var(--sub); font-size: 12px; margin: 0; min-width: 0; }
#collaborationView .sbPeopleToolbar select, #collaborationView .sbPeopleToolbar button { min-height: 32px; height: 32px; width: auto; max-width: 180px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px; background: var(--surface); color: var(--ink); font-size: 12px; }
#collaborationView .sbPeopleToolbar .selected { background: var(--collab-soft); color: var(--collab-blue); border-color: var(--collab-blue); }
.sbSwimlane { margin-top: 16px; }
.sbSwimlane h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.sbExamples { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.sbExamples button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 12px; min-height: 36px; padding: 4px 8px; }
.sbDods .collabTextButton { white-space: nowrap; font-size: 12px; }
.sbWorkspace :is(button, select, input, summary):focus-visible, .sbExamples button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sbSprintSummary .collabSprintIntro { padding-bottom: 0; gap: 16px; }
.sbSprintSummary .collabSprintIntro h3 { font-size: 18px; }
.sbSprintSummary .collabSprintProgress strong { font-size: 24px; }
.sbFolders { display: flex; align-items: center; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 0 0 4px; scrollbar-width: thin; }
#collaborationView .sbFolderTab { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; border: 0; border-radius: 6px; background: transparent; color: var(--sub); min-height: 32px; padding: 4px 10px; font-size: 13px; font-weight: 500; white-space: nowrap; }
#collaborationView .sbFolderTab[aria-pressed="true"] { background: var(--collab-soft); color: var(--collab-blue); font-weight: 650; }
.sbFolderTab span, .sbCount { color: var(--sub); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sbToolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0; }
.sbToolbar label, .sbToolbar form { min-width: 0; margin: 0; }
.sbToolbar form { display: flex; gap: 4px; flex: 1 1 180px; max-width: 300px; }
#collaborationView .sbToolbar input, #collaborationView .sbToolbar select { min-height: 32px; height: 32px; padding: 4px 8px; width: 100%; font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
#collaborationView .sbToolbar select { width: auto; max-width: 150px; }
#collaborationView .sbToolbar button { min-height: 32px; padding: 4px 10px; border-radius: 6px; font-size: 12px; white-space: nowrap; }
.sbToolbar .sbAdd { margin-left: auto; }
.sbNotice { margin: 8px 0; color: var(--sub); font-size: 12px; overflow-wrap: anywhere; }
.sbNotice:empty { display: none; }
.sbTable { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; background: var(--surface); font-size: 13px; }
.sbTable th, .sbTable td { padding: 0 6px; height: 40px; vertical-align: middle; border-bottom: 1px solid var(--line); text-align: left; }
.sbTable thead th { height: 32px; color: var(--sub); font-size: 12px; font-weight: 500; background: var(--bg); }
.sbTable thead th:first-child { width: auto; padding-left: 12px; }
.sbTable thead th:nth-child(2) { width: 108px; }
.sbTable thead th:nth-child(3) { width: 96px; }
.sbTable thead th:nth-child(4) { width: 112px; }
.sbTable thead th:nth-child(5) { width: 60px; }
.sbTable thead th:last-child { width: 40px; }
.sbTable .sbFolderRow th { background: var(--bg); font-weight: 600; height: 36px; }
.sbFolderRow th > span { margin-right: 12px; vertical-align: middle; }
.sbTitleCell > div { display: flex; align-items: center; min-width: 0; }
#collaborationView .sbCellButton, #collaborationView .sbCardTitle { min-height: 32px; max-width: 100%; border: 0; background: transparent; color: var(--ink); border-radius: 4px; padding: 4px 6px; font-size: 13px; font-weight: 400; text-align: left; overflow-wrap: anywhere; }
.sbTitleCell .sbCellButton, .sbTitleCell .sbCellValue { min-width: 0; flex: 1; }
.sbCellValue { display: inline-block; padding: 4px 6px; overflow-wrap: anywhere; }
#collaborationView .sbCellButton:hover, #collaborationView .sbCardTitle:hover { background: var(--bg); }
#collaborationView .sbDisclosure, #collaborationView .sbMore button { width: 28px; min-width: 28px; min-height: 32px; padding: 4px; border: 0; border-radius: 4px; background: transparent; color: var(--sub); }
#collaborationView .sbDisclosure svg { width: 14px; height: 14px; vertical-align: middle; }
.sbDisclosure[aria-expanded="true"] svg { transform: rotate(90deg); }
.sbDodRow td { padding: 8px 16px 12px 40px; background: color-mix(in srgb, var(--bg) 50%, var(--surface)); }
.sbDods { max-width: 680px; }
.sbDods .collabDod { min-height: 36px; margin: 0; }
.sbDods .collabDod label { font-size: 13px; }
.sbDods .collabHelp { margin: 0; }
.sbStatus { display: inline-flex; align-items: center; gap: 6px; padding: 2px 7px; border-radius: 4px; font-size: 12px; line-height: 18px; white-space: nowrap; background: var(--bg); color: var(--ink); }
.sbStatus::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sbStatus.planned { background: color-mix(in srgb, var(--sub) 10%, var(--surface)); }
.sbStatus.active { background: color-mix(in srgb, var(--blue) 12%, var(--surface)); color: var(--collab-blue); }
.sbStatus.done { background: color-mix(in srgb, var(--collab-teal) 12%, var(--surface)); color: var(--ink); }
.sbStatus.paused { background: color-mix(in srgb, var(--collab-orange) 12%, var(--surface)); color: var(--ink); }
.sbEditor { min-width: 0; width: 100%; margin: 4px 0; }
#collaborationView .sbEditor input, #collaborationView .sbEditor select { height: 32px; min-height: 32px; padding: 4px 6px; font-size: 13px; width: 100%; border: 1px solid var(--blue); border-radius: 4px; background: var(--surface); color: var(--ink); }
.sbEditorActions { display: flex; gap: 4px; margin-top: 4px; }
#collaborationView .sbEditorActions button { min-height: 28px; padding: 2px 6px; font-size: 12px; background: var(--surface); color: var(--sub); border: 1px solid var(--line); border-radius: 4px; }
.sbEditor small { display: block; color: var(--sub); font-size: 12px; margin-top: 4px; }
.sbEditor p { color: var(--ink); font-size: 12px; margin: 4px 0; border-left: 2px solid var(--collab-orange); padding-left: 6px; }
.sbKanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.sbColumn { min-width: 0; min-height: 200px; padding: 8px; border: 1px solid transparent; border-radius: 8px; background: color-mix(in srgb, var(--surface) 40%, var(--bg)); }
.sbColumn > header { display: flex; align-items: center; gap: 8px; padding: 0 0 12px; }
.sbColumn.dropTarget { border-color: var(--blue); background: var(--collab-soft); }
.sbCards { display: grid; gap: 8px; }
.sbCard { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgb(0 0 0 / .03); }
.sbCard[draggable="true"] { cursor: grab; }
.sbCard.dragging { opacity: .4; }
#collaborationView .sbCardTitle { display: block; width: 100%; padding: 4px 0 8px; line-height: 1.5; font-weight: 550; }
.sbFolderLabel { font-size: 12px; color: var(--sub); overflow-wrap: anywhere; }
.sbCardMeta, .sbCardBottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--sub); margin-top: 8px; overflow-wrap: anywhere; }
.sbCardBottom .sbCellButton { margin-left: auto; }
.sbColumnEmpty { font-size: 12px; color: var(--sub); padding: 12px 4px; }
.sbMobileStatus { display: none; }
.sbWorkspace [hidden] { display: none !important; }
@media (max-width: 1024px) and (min-width: 769px) {
  .sbKanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  #collaborationView .sbPeopleToolbar select, #collaborationView .sbPeopleToolbar button, .sbExamples button { min-height: 44px; height: auto; }
  .sbPeopleToolbar label { flex-wrap: wrap; }
  .sbRosterGrid { grid-template-columns: minmax(0, 1fr); }
  .sbWorkspace { margin-top: 16px; }
  #collaborationView .sbFolderTab, #collaborationView .sbToolbar button, #collaborationView .sbToolbar input, #collaborationView .sbToolbar select { min-height: 44px; height: auto; }
  .sbToolbar form { flex: 1 1 100%; max-width: none; }
  .sbToolbar .sbAdd { margin-left: 0; }
  .sbTable, .sbTable tbody, .sbTable tr, .sbTable td, .sbTable th { display: block; width: 100%; height: auto; }
  .sbTable tbody { gap: 0; }
  .sbTable tbody tr { padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .sbTable tbody td { gap: 0; text-align: left; }
  .sbTable tbody td::before { content: none; }
  .sbTable thead { display: none; }
  .sbTable .sbGoalRow { position: relative; padding: 4px 48px 4px 0; border-bottom: 1px solid var(--line); }
  .sbTable .sbGoalRow td { border: 0; }
  .sbGoalRow td:not(.sbTitleCell):not(.sbMore) { display: none; }
  .sbGoalRow.isExpanded td:not(.sbTitleCell):not(.sbMore) { display: flex; align-items: center; gap: 8px; padding-left: 36px; }
  .sbGoalRow.isExpanded td[data-label]::before { content: attr(data-label); min-width: 70px; color: var(--sub); font-size: 12px; }
  .sbTable .sbMore { position: absolute; right: 0; top: 4px; width: 44px; padding: 0; }
  #collaborationView .sbDisclosure, #collaborationView .sbMore button { min-width: 44px; width: 44px; min-height: 44px; }
  #collaborationView .sbCellButton, #collaborationView .sbCardTitle, #collaborationView .sbEditorActions button { min-height: 44px; }
  #collaborationView .sbEditor input, #collaborationView .sbEditor select { min-height: 44px; }
  .sbKanban { grid-template-columns: minmax(0, 1fr); }
  .sbColumn:not(.mobileSelected) { display: none; }
  .sbMobileStatus { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); margin-bottom: 12px; }
  .sbMobileStatus select { width: auto; min-height: 44px; }
  .sbDodRow td { padding-left: 16px; }
}
