/* QShip board: external styles only; the existing featurebar owns the split layout. */
.qb-board {
  --qb-ink: #343947;
  --qb-muted: #7c7f88;
  box-sizing: border-box;
  width: 100%; height: 100%; min-width: 0; min-height: 0;
  overflow: auto; overscroll-behavior: contain;
  padding: 22px 26px 12px;
  color: var(--qb-ink); background: #f8f9f6;
  font-family: inherit; font-size: 13px; line-height: 1.5;
  scrollbar-width: thin; scrollbar-color: #cdd1c7 transparent;
}
.qb-board *, .qb-board *::before, .qb-board *::after { box-sizing: border-box; }
.qb-board [hidden] { display: none !important; }
.qb-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 12px; }
.qb-header .fb-avatar { margin-left: auto; }
.qb-heading { display: flex; align-items: center; gap: 12px; min-width: 0; }
.qb-title { margin: 0; color: var(--qb-ink); font-size: 20px; letter-spacing: .03em; font-weight: 750; }
.qb-board :where(button, input) { font: inherit; }
.qb-board button { cursor: pointer; }
.qb-board button:disabled { cursor: wait; opacity: .55; }
.qb-board button:focus-visible, .qb-board input:focus-visible,
.qb-board summary:focus-visible, .qb-board a:focus-visible { outline: 2px solid #668b73; outline-offset: 3px; }
.qb-new, .qb-submit { flex-shrink: 0; border: 1px solid #cbd5c5; border-radius: 10px; padding: 7px 12px; color: #425c45; background: #e9efdf; font-weight: 650; }
/* 面板缩放（2026-11-20）：桌面手机都可用，任务多时缩到 50% 一览。 */
.qb-zoom { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.qb-zoom-btn { border: 1px solid #cbd5c5; border-radius: 10px; padding: 6px 10px; color: #425c45; background: #e9efdf; font-weight: 650; font-size: 12px; }
.qb-zoom-btn:hover { background: #dfe9cf; }
.qb-zoom-label { min-width: 40px; text-align: center; font-size: 12px; color: var(--qb-muted); }
.qb-collapse { display: inline-flex; flex-shrink: 0; border: 1px solid #cbd5c5; border-radius: 10px; padding: 6px 10px; color: #425c45; background: #e9efdf; font-weight: 650; font-size: 12px; }
.qb-new:hover, .qb-submit:hover { background: #dfe9cf; }
.qb-counts { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.qb-header .qb-counts { margin-top: 0; }
.qb-count { display: inline-flex; align-items: center; gap: 10px; padding: 6px 13px; border: 1px solid #e3e7df; border-radius: 100px; background: #fff; color: #5f665f; font-size: 12px; }
.qb-count strong { font-size: 17px; line-height: 1.2; color: #3b463c; }
.qb-count-doing { background: #e6f0e7; border-color: #d9e8da; }
.qb-count-unclaimed { background: #ffe26a; border-color: #f1d25c; color: #705925; }
.qb-count-unclaimed strong { color: #6d5320; }
.qb-count-review { background: #f9c2b4; border-color: #efb2a3; color: #8b5043; }
.qb-count-review strong { color: #814337; }
.qb-summary { color: #787e75; margin: 12px 0 0; font-size: 12px; }
.qb-composer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 15px 0 8px; padding: 10px; border: 1px solid #dce2d6; border-radius: 12px; background: #fffef8; }
.qb-input { flex: 1 1 180px; min-width: 0; min-height: 36px; border: 1px solid #d8ddcf; border-radius: 8px; padding: 7px 10px; color: var(--qb-ink); background: white; }
.qb-cancel, .qb-refresh { border: 0; border-radius: 7px; padding: 6px 8px; background: transparent; color: #6e756d; font-size: 12px; }
.qb-cancel:hover, .qb-refresh:hover { background: #e9ede4; }
.qb-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin: 13px 0 5px; border: 1px solid #e1e7da; border-radius: 10px; padding: 9px 12px; background: #f0f4e9; color: #52664c; font-size: 12px; }
.qb-notice-error { border-color: #e6c1b6; background: #fff0e9; color: #925541; }
.qb-notice-text { flex: 1 1 220px; margin: 0; }
.qb-notice button { border: 1px solid currentColor; border-radius: 7px; padding: 4px 9px; background: transparent; color: inherit; font: inherit; }
.qb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); align-items: stretch; gap: 21px 20px; margin-top: 22px; padding: 3px 3px 8px; }
.qb-card { position: relative; min-width: 0; border: 1px solid #e8e0aa; border-radius: 5px 12px 10px 10px; padding: 16px 15px 12px; background: #fff4bc; box-shadow: 0 5px 10px #626b4a0c, 0 10px 24px #626b4a0b; transform: rotate(-1deg); transition: box-shadow .15s ease, transform .15s ease; }
.qb-card:nth-child(4n + 2) { background: #eef1d6; border-color: #dce2bc; transform: rotate(1.2deg); }
.qb-card:nth-child(4n + 3) { background: #e7eef5; border-color: #d0dce8; transform: rotate(-1.4deg); }
.qb-card:nth-child(4n) { background: #f4e6ef; border-color: #e5d1df; transform: rotate(1deg); }
.qb-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: #e2bd38; }
.qb-card-doing::before { background: #78a88c; }
.qb-card-review, .qb-card-review:nth-child(n) { background: #ffe6dd; border-color: #e9a89a; }
.qb-card-review::before { width: 4px; background: #e5917c; }
.qb-card:hover, .qb-card:focus-within { transform: rotate(0); box-shadow: 0 6px 18px #626b4a17; }
.qb-card-top { display: flex; gap: 8px; align-items: center; }
.qb-card-title { min-width: 0; margin: 9px 0 0; color: #44483f; font-size: 14px; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.qb-state { flex-shrink: 0; margin-top: 1px; border-radius: 5px; padding: 2px 7px; border: 1px solid transparent; font-size: 11px; font-weight: 700; white-space: nowrap; }
.qb-state.qb-state-captain { background: #d92d20; color: #fff; border-color: #b42318; }
.qb-state.qb-state-review { background: #f9c2b4; color: #814337; border-color: #efb2a3; }
.qb-state.qb-state-unclaimed { background: #ffe26a; color: #6d5320; border-color: #f1d25c; }
.qb-state.qb-state-doing { background: #dcefe0; color: #3f6b4f; border-color: #c4dfc9; }
.qb-state.qb-state-waiting { background: #fde8c8; color: #8a5a00; border-color: #f0cf96; }
.qb-state.qb-state-neutral, .qb-state.qb-state-completed { background: #e8eae4; color: #5f665f; border-color: #d8dbd2; }
.qb-description { margin: 8px 0 14px; color: #82806a; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 18px; }
.qb-follower { display: flex; align-items: center; gap: 5px; margin: 0; color: #7a7e70; font-size: 11px; }
.qb-follower-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #616858; }
.qb-description-assigned { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 6; white-space: pre-line; overflow-wrap: anywhere; color: #676951; line-height: 1.6; }
.qb-crew { display: flex; flex-direction: column; gap: 6px; }
.qb-crew-empty { margin: 0; display: flex; align-items: center; gap: 7px; color: #9a9d8f; font-size: 12px; line-height: 1.5; letter-spacing: .02em; }
.qb-crew-empty::before { content: ''; width: 24px; height: 24px; flex: 0 0 24px; border: 1.5px dashed #b6baaa; border-radius: 50%; box-sizing: border-box; }
.qb-assignee { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 100%; margin: 0; color: #515b4b; font-size: 12px; line-height: 1.5; }
.qb-assignee-avatar, .qb-assignee-image { width: 24px; height: 24px; min-width: 24px; min-height: 24px; max-width: 24px; max-height: 24px; flex: 0 0 24px; border-radius: 50%; object-fit: cover; }
.qb-assignee-avatar { display: inline-flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; font-size: 12px; font-weight: 700; }
.qb-assignee-image { display: block; }
.qb-assignee-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qb-assignee-vacant { color: #9a9d8f; }
.qb-vacant-avatar { background: transparent; border: 1.5px dashed #b6baaa; color: #a3a797; }
.qb-avatar-0 { background: #743c50; }
.qb-avatar-1 { background: #365c4c; }
.qb-avatar-2 { background: #3e527c; }
.qb-avatar-3 { background: #604878; }
.qb-avatar-4 { background: #70522f; }
.qb-avatar-5 { background: #315e66; }
.qb-empty { padding: 24px 10px; text-align: center; color: #8b9184; font-size: 13px; }
.qb-completed { margin-top: 20px; border-top: 1px dashed #d9ddd3; padding-top: 12px; }
.qb-completed summary { cursor: pointer; color: #8b9184; font-size: 12px; width: fit-content; }
.qb-completed .qb-grid { margin-top: 14px; }
.qb-card-completed, .qb-card-completed:nth-child(n) { background: #f0f1ec; border-color: #e2e4dc; box-shadow: none; opacity: .65; }
.qb-card-completed::before { background: #b9c2b0; }
.qb-card-completed .qb-card-title { text-decoration: line-through; text-decoration-color: #b6beaa; font-weight: 550; }
@media (max-width: 650px) {
  .qb-board { padding: 15px 14px 9px; }
  .qb-title { font-size: 18px; }
  .qb-new { padding: 6px 9px; font-size: 12px; }
  .qb-counts { gap: 6px; margin-top: 12px; }
  .qb-count { gap: 6px; padding: 5px 9px; font-size: 11px; }
  .qb-count strong { font-size: 15px; }
  .qb-summary { line-height: 1.65; }
  .qb-grid { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); gap: 16px; margin-top: 16px; }
}
@media (max-width: 390px) {
  .qb-count { padding: 5px 7px; gap: 4px; }
  .qb-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .qb-card { transition: none; }
  .qb-status-doing .qb-status-dot { animation: none; }
  .qb-status-tip { animation: none; }
}
.qb-count-blocked { background: #eee7fa; border-color: #c8b3e8; color: #65428e; }
.qb-count-blocked strong, .qb-card-blocked .qb-state { color: #65428e; }
.qb-card-blocked, .qb-card-blocked:nth-child(n) { background: #eee7fa; border-color: #c8b3e8; }
.qb-card-blocked::before { width: 4px; background: #8560b5; }
.qb-card-blocked .qb-state { white-space: normal; max-width: 45%; }
.qb-card-pending::before { background: #969eac; }
.qb-card { cursor: pointer; }
.qb-card-menu { flex: none; border: 0; background: transparent; color: #7c7f88; font-size: 15px; line-height: 1; padding: 4px 6px; margin: -2px -4px -2px auto; border-radius: 7px; cursor: pointer; }
.qb-card-menu:hover { background: #ffffff80; color: #44483f; }
.qb-card-menu:active, .qb-card-menu:active:not(:disabled) { transform: scale(.95); }
.qb-agent-status { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 4px; border-radius: 6px; color: #7a7e70; font-size: 11px; line-height: 1.4; cursor: help; }
.qb-agent-status:focus-visible { outline: 2px solid #7687ea; outline-offset: 1px; }
.qb-status-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #c3c7bb; box-sizing: border-box; }
.qb-status-doing { color: #2e6b45; font-weight: 600; }
.qb-status-doing .qb-status-dot { background: #3f9e63; animation: qb-status-pulse 1.8s ease-out infinite; }
.qb-status-busy { color: #8a5a00; }
.qb-status-busy .qb-status-dot { background: #e0a63f; }
.qb-status-standby .qb-status-dot { background: #a9c6ae; }
.qb-status-offline { color: #a3a697; }
.qb-status-offline .qb-status-dot { background: transparent; border: 1.5px solid #c3c7bb; }
@keyframes qb-status-pulse { 0% { box-shadow: 0 0 0 0 rgba(63, 158, 99, .45); } 70% { box-shadow: 0 0 0 6px rgba(63, 158, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(63, 158, 99, 0); } }
.qb-status-tip { position: fixed; z-index: 90; width: max-content; max-width: min(430px, 92vw); padding: 8px 11px; border: 1px solid #d8ddcf; border-radius: 12px; background: #fffef9; color: var(--qb-ink); box-shadow: 0 5px 10px #626b4a0c, 0 14px 30px #626b4a17; font-size: 12px; line-height: 1.55; pointer-events: none; animation: qb-tip-in .14s ease-out; }
.qb-status-tip[hidden] { display: none; }
@keyframes qb-tip-in { from { opacity: 0; transform: translateY(3px); } }
.qb-tip-title { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--qb-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qb-tip-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #c3c7bb; box-sizing: border-box; }
.qb-tip-doing .qb-tip-dot { background: #3f9e63; }
.qb-tip-busy .qb-tip-dot { background: #e0a63f; }
.qb-tip-standby .qb-tip-dot { background: #a9c6ae; }
.qb-tip-offline .qb-tip-dot { background: transparent; border: 1.5px solid #c3c7bb; }
.qb-approval { margin: 14px 0 4px; padding: 12px; border: 1px solid #f0b8b0; border-left: 4px solid #d92d20; border-radius: 10px; background: #fdf1f0; }
.qb-approval-text { margin: 0 0 10px; font-size: 14px; line-height: 1.55; color: #7a271a; }
.qb-approval-actions { display: flex; gap: 10px; }
.qb-approval-btn { flex: 1 1 0; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.qb-approval-yes { background: #d92d20; color: #fff; }
.qb-approval-no { background: #fff; color: #b42318; border-color: #e5a49c; }
.qb-approval-btn:disabled { opacity: .55; cursor: default; }
.qb-approval-error { margin: 8px 0 0; color: #b42318; font-size: 12px; }
