.wbpatch-menu-icon { color: currentColor; }
.work-surface.wbpatch-active > :not(.wbpatch-page) { display: none !important; }
.wbpatch-page { min-width: 0; }
.wbpatch-header { margin-bottom: 28px; }
.wbpatch-layout { display: grid; grid-template-columns: 256px minmax(0, 1fr); border: 1px solid #e2e5f1; border-radius: 8px; overflow: hidden; min-height: 650px; background: #fff; }
.wbpatch-task-rail { border-right: 1px solid #e2e5f1; padding: 18px 14px; min-width: 0; background: #fff; }
.wbpatch-task-rail > header { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 12px; }
.wbpatch-task-rail h2 { margin: 0; color: #1d2129; font-size: 16px; line-height: 24px; font-weight: 600; }
.wbpatch-task-rail > header span { color: #a3a9b6; font-size: 12px; }
.wbpatch-all-scope, .wbpatch-task-item { appearance: none; border: 0; width: 100%; text-align: left; background: transparent; cursor: pointer; font: inherit; }
.wbpatch-all-scope { height: 44px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; border-radius: 6px; color: #4e5969; }
.wbpatch-all-scope > span { display: flex; align-items: center; gap: 8px; }
.wbpatch-all-scope svg { width: 18px; height: 18px; }
.wbpatch-all-scope strong { font-size: 13px; font-weight: 600; }
.wbpatch-all-scope em { font-style: normal; color: #86909c; font-size: 12px; }
.wbpatch-all-scope:hover, .wbpatch-task-item:hover { background: #f6f8fa; }
.wbpatch-all-scope.active, .wbpatch-task-item.active { background: #edf3ff; box-shadow: inset 0 0 0 1px #cfdcff; }
.wbpatch-task-list { display: grid; gap: 6px; margin-top: 8px; }
.wbpatch-task-item { padding: 12px 10px; border-radius: 6px; }
.wbpatch-task-item strong { display: -webkit-box; overflow: hidden; color: #1d2129; font-size: 13px; line-height: 20px; font-weight: 600; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wbpatch-task-item > span { display: block; margin-top: 7px; color: #86909c; font-size: 11px; }
.wbpatch-task-item > span i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: #20b2aa; }
.wbpatch-task-item small { display: flex; justify-content: space-between; margin-top: 8px; color: #86909c; font-size: 11px; }
.wbpatch-task-item small em { font-style: normal; }
.wbpatch-task-item small b { color: #f04438; font-weight: 500; }
.wbpatch-main { min-width: 0; padding: 18px 20px 22px; }
.wbpatch-scope-heading { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wbpatch-scope-heading > div { min-width: 0; }
.wbpatch-scope-heading span { color: #86909c; font-size: 12px; }
.wbpatch-scope-heading h2 { margin: 3px 0 2px; overflow: hidden; color: #0c0d0e; font-size: 20px; line-height: 28px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.wbpatch-scope-heading p { margin: 0; color: #86909c; font-size: 12px; }
.wbpatch-secondary, .wbpatch-clear { flex: none; height: 34px; border: 1px solid #d9dde7; border-radius: 6px; background: #fff; padding: 0 14px; color: #4e5969; font-size: 13px; cursor: pointer; box-shadow: 0 1px 2px rgba(31, 35, 41, .04); }
.wbpatch-secondary:hover, .wbpatch-clear:hover { border-color: #7b8cff; color: #3546e9; }
.wbpatch-secondary span { margin-left: 8px; font-size: 18px; }
.wbpatch-status-grid { display: grid; grid-template-columns: repeat(6, minmax(92px, 1fr)); gap: 10px; margin: 12px 0 16px; }
.wbpatch-status-card { --wb-color: #3578ff; height: 68px; border: 1px solid #e2e5f1; border-radius: 7px; background: #fff; padding: 10px 13px; text-align: left; cursor: pointer; transition: .16s ease; }
.wbpatch-status-card:hover { transform: translateY(-1px); border-color: #cdd4e4; box-shadow: 0 4px 12px rgba(31, 35, 41, .06); }
.wbpatch-status-card.active { border-color: var(--wb-color); background: color-mix(in srgb, var(--wb-color) 6%, white); }
.wbpatch-status-card span { display: block; color: #737a87; font-size: 12px; }
.wbpatch-status-card strong { display: block; margin-top: 3px; color: #1d2129; font-size: 22px; line-height: 28px; font-weight: 600; }
.wbpatch-status-card.active strong { color: var(--wb-color); }
.wbpatch-status-card.green { --wb-color: #33a56f; } .wbpatch-status-card.red { --wb-color: #e64949; } .wbpatch-status-card.orange { --wb-color: #ed8b2f; } .wbpatch-status-card.purple { --wb-color: #805ad5; } .wbpatch-status-card.cyan { --wb-color: #1199a7; }
.wbpatch-tools { position: relative; display: grid; grid-template-columns: 170px minmax(220px, 1fr) minmax(320px, 1.15fr) 66px; gap: 10px; align-items: center; }
.wbpatch-select, .wbpatch-search, .wbpatch-date { height: 34px; border: 1px solid #e2e5f1; border-radius: 6px; background: #fff; color: #4e5969; font-size: 12px; }
.wbpatch-select { display: grid; grid-template-columns: auto 1fr auto; align-items: center; padding: 0; cursor: pointer; overflow: hidden; }
.wbpatch-select > span, .wbpatch-search > span, .wbpatch-date > span { padding: 0 10px; border-right: 1px solid #e2e5f1; color: #4e5969; white-space: nowrap; }
.wbpatch-select strong { padding-left: 10px; color: #4e5969; font-weight: 400; text-align: left; }
.wbpatch-select i { padding-right: 10px; color: #86909c; font-style: normal; }
.wbpatch-status-menu { position: absolute; z-index: 5; top: 38px; left: 0; width: 170px; border: 1px solid #e2e5f1; border-radius: 6px; background: #fff; padding: 4px; box-shadow: 0 8px 24px rgba(31, 35, 41, .12); }
.wbpatch-status-menu button { width: 100%; height: 30px; border: 0; border-radius: 4px; background: transparent; text-align: left; padding: 0 10px; color: #4e5969; cursor: pointer; }
.wbpatch-status-menu button:hover { background: #f2f3f5; color: #3546e9; }
.wbpatch-search, .wbpatch-date { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.wbpatch-search input, .wbpatch-date input { min-width: 0; height: 100%; flex: 1; border: 0; outline: 0; padding: 0 10px; color: #1d2129; font: inherit; background: transparent; }
.wbpatch-date input { width: 94px; }
.wbpatch-date i { color: #c2c7d0; font-style: normal; }
.wbpatch-results-heading { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 10px; }
.wbpatch-results-heading strong { color: #1d2129; font-size: 14px; }
.wbpatch-results-heading span { color: #86909c; font-size: 12px; }
.wbpatch-question-list { display: grid; gap: 10px; }
.wbpatch-question-card { min-height: 106px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; border: 1px solid #e2e5f1; border-radius: 7px; padding: 15px 16px; background: #fff; transition: .16s ease; }
.wbpatch-question-card:hover { border-color: #cfd5e3; box-shadow: 0 4px 12px rgba(31, 35, 41, .05); }
.wbpatch-question-copy { min-width: 0; }
.wbpatch-question-meta { display: flex; align-items: center; gap: 12px; color: #86909c; font-size: 12px; }
.wbpatch-status { display: inline-flex; align-items: center; height: 24px; border-radius: 4px; padding: 0 8px; background: #edf3ff; color: #3578ff; font-size: 12px; }
.wbpatch-status.green { background: #eaf8f0; color: #2c9664; } .wbpatch-status.red { background: #fff0f0; color: #e64949; } .wbpatch-status.orange { background: #fff4e8; color: #d97620; } .wbpatch-status.purple { background: #f4efff; color: #805ad5; } .wbpatch-status.cyan { background: #e8f8f8; color: #118e99; }
.wbpatch-question-copy h3 { margin: 10px 0 8px; color: #1d2129; font-size: 14px; line-height: 22px; font-weight: 600; }
.wbpatch-tag { display: inline-flex; border-radius: 4px; padding: 2px 6px; background: #f5f6f7; color: #737a87; font-size: 11px; }
.wbpatch-question-card > .wbpatch-secondary { min-width: 112px; }
.wbpatch-empty { min-height: 250px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #86909c; gap: 8px; }
.wbpatch-empty strong { color: #4e5969; font-size: 15px; }
.wbpatch-empty button { margin-top: 6px; border: 0; background: transparent; color: #3546e9; cursor: pointer; }
.wbpatch-overlay { position: fixed; z-index: 10000; inset: 0; background: rgba(15, 18, 25, .48); }
.wbpatch-drawer { position: absolute; top: 0; right: 0; width: min(560px, 48vw); height: 100%; background: #fff; box-shadow: -12px 0 30px rgba(0,0,0,.14); }
.wbpatch-drawer header { height: 58px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e6eb; padding: 0 22px; }
.wbpatch-drawer h2 { margin: 0; font-size: 18px; }
.wbpatch-drawer header button { border: 0; background: transparent; font-size: 25px; color: #4e5969; cursor: pointer; }
.wbpatch-drawer-body { padding: 24px; color: #4e5969; }
.wbpatch-drawer-body h3 { margin: 18px 0; color: #1d2129; font-size: 20px; line-height: 30px; }
.wbpatch-drawer-body dl { display: grid; grid-template-columns: 86px 1fr; gap: 14px; border: 1px solid #e2e5f1; border-radius: 8px; padding: 18px; }
.wbpatch-drawer-body dt { color: #86909c; }
.wbpatch-drawer-body dd { margin: 0; color: #1d2129; }
.wbpatch-drawer-body p { margin-top: 20px; border-radius: 8px; padding: 16px; background: #f7f8fa; line-height: 24px; }
@media (max-width: 1280px) {
  .wbpatch-layout { grid-template-columns: 230px minmax(0, 1fr); }
  .wbpatch-status-grid { grid-template-columns: repeat(3, 1fr); }
  .wbpatch-tools { grid-template-columns: 150px minmax(180px, 1fr) 1fr 66px; }
}
