/* 21 表格文档：参考企业电子表格的信息结构，只改变桌面端呈现，不改变业务语义。 */

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page {
  min-width: 1280px;
  color: #1f2329;
  background: #f5f6f7 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(h1, h2, h3, h4) {
  color: #1f2329;
  font-family: inherit;
  letter-spacing: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .page-texture {
  display: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-shell {
  width: 100% !important;
  max-width: none;
  margin: 0 !important;
  padding: 0 !important;
}

/* 文档头：面包屑、标题和轻量操作区。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header {
  position: sticky;
  z-index: 40;
  display: grid !important;
  min-height: 88px !important;
  grid-template-columns: minmax(420px, 1fr) auto;
  margin: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-bottom: 1px solid #dfe3e8 !important;
  border-radius: 0 !important;
  box-shadow: 0 1px 3px rgba(31, 35, 41, 0.04) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup {
  position: relative;
  min-width: 0;
  min-height: 54px;
  padding: 9px 18px 6px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header :is(.brand-stamp, .brand-lockup > div:last-child) {
  position: absolute;
  opacity: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup::before {
  content: "塔斯汀 / 运营巡检 / 巡检登记";
  position: absolute;
  top: 9px;
  left: 18px;
  color: #1f2329;
  font-size: 16px;
  font-weight: 650;
  line-height: 22px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup::after {
  content: "添加快捷方式 · D级内部文件";
  position: absolute;
  top: 32px;
  left: 18px;
  color: #6b727c;
  font-size: 11px;
  line-height: 18px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions {
  min-height: 54px;
  padding: 8px 16px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::before,
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::after {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 28px;
  pointer-events: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::before {
  content: "分享";
  color: #ffffff;
  background: #3370ff;
  border: 1px solid #2b5cd9;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::after {
  content: "编辑";
  margin-left: 6px;
  color: #3f4654;
  background: #ffffff;
  border: 1px solid #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .theme-picker {
  min-width: 112px !important;
  margin-right: 6px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .theme-picker select {
  min-height: 28px !important;
  padding: 0 7px !important;
  color: #3f4654 !important;
  background: #ffffff !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 2px !important;
  font-size: 12px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .account-badge {
  min-height: 28px;
  padding: 0 9px;
  color: #3f4654 !important;
  background: #f2f4f7;
  border: 1px solid #dfe3e8;
  border-radius: 2px;
  font-size: 12px;
  line-height: 26px;
}

/* 视图入口：保持原链接和跳转能力，呈现为表格工具栏。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav {
  min-height: 34px;
  padding: 0 10px !important;
  background: #ffffff;
  border-top: 1px solid #edf0f3 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav-link {
  min-height: 34px;
  padding: 0 12px !important;
  color: #4d5460;
  border: 0 !important;
  border-top: 2px solid transparent !important;
  font-size: 12px;
  font-weight: 520;
  line-height: 34px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav-link:hover {
  color: #1f2329;
  background: #f4f6f8 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav-link:is(.is-active, [aria-current="page"]) {
  color: #3370ff !important;
  border-top-color: #3370ff !important;
  background: #ffffff !important;
  font-weight: 650;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page main {
  padding: 10px 12px 22px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.storage-warning, .conflict-warning, .debug-sandbox-banner) {
  margin: 8px 12px 0;
  color: #6d4200 !important;
  background: #fdf6e3 !important;
  border: 1px solid #eadfbe !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.panel, .workspace-panel, .planning-panel, .forecast-panel, .monthly-calendar-panel, .rules-overview, .rule-card, .admin-panel, .admin-import-panel) {
  color: #1f2329;
  background: #ffffff !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.panel-heading, .admin-section-heading, .forecast-panel-heading) {
  min-height: 44px;
  padding: 7px 12px;
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.panel-heading h2, .panel-heading h3, .admin-section-heading h2) {
  color: #1f2329;
  font-size: 14px;
  font-weight: 660;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(
  .task-panel .panel-heading h2,
  .forecast-panel-heading h2,
  .task-heading-note,
  .completion-more-row,
  .planning-tree-category strong,
  .planning-task-choice small,
  .section-kicker
) {
  font-family: inherit !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .section-kicker {
  color: #6b727c !important;
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.04em;
}

/* 顶部摘要改成表格信息条。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.summary-board, .workspace-grid-progress, .metric-grid, .monthly-summary-grid) {
  margin: 0;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 0;
  box-shadow: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .summary-board {
  display: grid !important;
  grid-template-columns: 170px minmax(0, 1fr) 310px !important;
  overflow: hidden;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.summary-toolbar, .metric-grid, .metric-grid-four, .workspace-grid-progress) {
  display: grid !important;
  gap: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .metric-grid-four {
  grid-template-columns: repeat(3, minmax(126px, 1fr)) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.metric-card, .metric-primary, .metric-warning, .metric-success) {
  min-height: 56px !important;
  padding: 8px 12px 7px !important;
  color: #1f2329 !important;
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid #eef0f3 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .metric-label {
  color: #6b727c !important;
  font-size: 11px;
  font-weight: 520;
  opacity: 1;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.metric-card > strong, .metric-primary > strong) {
  color: #1f2329 !important;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 19px !important;
  font-weight: 650;
  line-height: 25px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .metric-foot {
  color: #767d87 !important;
  font-size: 11px;
  opacity: 1;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.date-controls, .summary-toolbar > div:first-child) {
  color: #1f2329;
  background: #f7f8fa !important;
  border-radius: 0 !important;
  box-shadow: inset 3px 0 0 #3370ff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .monthly-summary-card {
  color: #3f4654;
  background: #f7f8fa;
  border-color: #dfe3e8;
}

/* 电子表格主体。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .table-wrap {
  overflow: auto;
  background: #ffffff;
  border-top: 1px solid #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table {
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table :is(th, td) {
  height: 34px;
  padding: 5px 9px !important;
  color: #1f2329;
  border-right: 1px solid #eef0f3 !important;
  border-bottom: 1px solid #eef0f3 !important;
  font-size: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th {
  position: sticky;
  z-index: 3;
  top: 0;
  color: #4d5460;
  background: #f7f8fa !important;
  border-bottom: 1px solid #dfe3e8 !important;
  font-size: 11px;
  font-weight: 640;
  white-space: nowrap;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .table-wrap {
  counter-reset: sheet-row;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table tbody tr.task-row {
  counter-increment: sheet-row;
}


html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table tbody tr:hover td {
  background: #f7f9fd;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-category-row th {
  color: #1f2329 !important;
  background: #f7f8fa !important;
  border-bottom: 1px solid #cfd4da !important;
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.task-name, .planning-task-name, .tree-category-toggle strong) {
  color: #1f2329 !important;
  font-family: inherit !important;
  font-size: 12px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.quantity-control, .planning-limit-control, .recommendation-preference-control) {
  height: 26px;
  color: #1f2329 !important;
  background: #ffffff !important;
  border: 1px solid #d5dae0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: ui-monospace, Consolas, monospace;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.quantity-control input, .planning-limit-control input, .recommendation-preference-control input) {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: right;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(input, select, textarea) {
  color: #1f2329 !important;
  background: #ffffff !important;
  border-color: #d5dae0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: inherit;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(input, select, textarea):focus-visible {
  outline: 2px solid #3370ff;
  outline-offset: -2px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-search-panel {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 5px 10px;
  background: #ffffff;
  border-bottom: 1px solid #eef0f3;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-search-control input {
  height: 27px;
  min-width: 280px;
  padding: 0 8px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-search-status {
  color: #6b727c;
  font-size: 11px;
}

/* 按钮：主操作蓝色，次操作白底灰边。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button, .button-primary, .button-secondary, .button-ghost, .button-dark, .text-button) {
  min-height: 27px;
  padding: 0 10px !important;
  border-radius: 2px !important;
  font-size: 12px;
  font-weight: 560;
  line-height: 25px;
  box-shadow: none !important;
  transition: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button, .button-secondary, .button-ghost, .button-dark) {
  color: #32405b !important;
  background: #ffffff !important;
  border: 1px solid #d5dae0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button-primary, .button-dark) {
  color: #ffffff !important;
  background: #3370ff !important;
  border-color: #2b5cd9 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button-primary, .button-dark):hover:not(:disabled) {
  background: #2b5cd9 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button, .button-secondary, .button-ghost):hover:not(:disabled) {
  color: #3370ff !important;
  background: #f2f6ff !important;
  border-color: #a8bdf8 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .text-button {
  color: #3370ff;
  background: transparent;
  border: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button-ghost, .text-button) {
  min-height: 22px;
  padding: 0 !important;
  color: #3370ff !important;
  background: transparent !important;
  border: 0 !important;
  font-weight: 500;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.button, .button-primary, .button-secondary, .button-ghost, .button-dark):focus-visible {
  outline: 2px solid #3370ff;
  outline-offset: 1px;
}

/* 弹窗、提示和浮层统一为轻边框白色面板。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(dialog, .admin-dialog, .company-import-dialog, .debug-time-dialog, .quantity-source-dialog, .required-time-dialog, .password-dialog) {
  color: #1f2329;
  background: #ffffff !important;
  border: 1px solid #d5dae0 !important;
  border-radius: 2px !important;
  box-shadow: 0 10px 28px rgba(31, 35, 41, 0.14) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(dialog, .company-import-dialog, .admin-dialog)::backdrop {
  background: rgba(31, 35, 41, 0.24) !important;
  backdrop-filter: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.company-import-shell, .debug-time-shell, .quantity-source-shell, .required-time-dialog-form, .password-form) {
  background: #ffffff;
  border: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.company-import-header, .admin-dialog header, .required-time-dialog-heading) {
  padding-bottom: 8px;
  border-bottom: 1px solid #eef0f3;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.company-import-preview, .company-import-summary, .company-review-item, .company-media-placeholder, .quantity-source-events, .company-match-status:not(.is-matched):not(.is-warning)) {
  color: #1f2329 !important;
  background: #ffffff !important;
  border-color: #eef0f3 !important;
  border-radius: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.company-mapping-table th, .company-evidence-row > td) {
  color: #4d5460 !important;
  background: #f7f8fa !important;
  border-color: #eef0f3 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .toast {
  color: #ffffff !important;
  background: #1f2329 !important;
  border-color: #1f2329 !important;
  border-radius: 2px !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-footer {
  min-height: 28px;
  margin: 0;
  padding: 0 14px !important;
  color: #767d87 !important;
  background: #ffffff;
  border-top: 1px solid #e2e6eb;
  font-size: 11px !important;
}

/* 规划、预测、台账和后台沿用同一表格语言。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.planning-task-options, .active-plan-items, .recommendation-results, .forecast-input-grid, .forecast-stat-grid, .monthly-detail, .monthly-toolbar, .admin-filter, .admin-catalog-list, .admin-usage-list) {
  background: #ffffff;
  border-color: #eef0f3;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.planning-task-options > *, .active-plan-items > *, .forecast-stat-grid > div, .monthly-stat, .admin-usage-metrics > div) {
  border-color: #eef0f3 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.monthly-calendar, .calendar-weekdays, .monthly-calendar-day, .rule-facts, .rule-formula, .rule-warning) {
  border-color: #e2e6eb !important;
  border-radius: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .calendar-weekdays {
  color: #4d5460;
  background: #f7f8fa;
  font-weight: 640;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.admin-status-badge, .forecast-status-badge, .combination-tag, .metric-primary .metric-foot) {
  border-radius: 2px !important;
}

/* 登录和无权限页保持同一文档外壳，不新增营销样式。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(body.login-page, body.login-body) {
  min-height: 100vh;
  padding: 72px 16px;
  background: #f5f6f7 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.login-shell, .login-panel) {
  width: min(100%, 430px);
  margin: 0 auto;
  min-height: 0 !important;
  padding: 24px;
  background: #ffffff !important;
  border: 1px solid #dfe3e8 !important;
  border-radius: 0 !important;
  box-shadow: 0 4px 16px rgba(31, 35, 41, 0.06) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.login-card) {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.login-page :is(.login-brand h1, .login-panel h1) {
  color: #1f2329;
  font-size: 20px;
  font-weight: 660;
}

/* 高相似表格外壳：文档头、工作表签、工具栏、编辑栏和底部状态栏。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page {
  padding-bottom: 34px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header {
  min-height: 56px !important;
  grid-template-columns: minmax(560px, 1fr) auto !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e6eb !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup {
  min-height: 56px;
  padding: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .fs-header-left-icons {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  width: 52px;
  height: 36px;
  align-items: center;
  gap: 10px;
  color: #4d5460;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .fs-header-left-icons svg,
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .fs-header-right-icons svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup::before {
  left: 64px;
  top: 7px;
  color: #1f2329;
  font-size: 15px;
  font-weight: 640;
  line-height: 21px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-header .brand-lockup::after {
  left: 64px;
  top: 29px;
  color: #6b727c;
  font-size: 11px;
  line-height: 16px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions {
  min-height: 56px;
  padding: 8px 12px !important;
  gap: 6px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions {
  display: flex !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::before {
  order: 1;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .header-actions::after {
  content: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .fs-header-right-icons {
  order: 2;
  display: flex;
  width: 94px;
  align-items: center;
  justify-content: space-between;
  color: #4d5460;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .theme-picker {
  order: 5;
  min-width: 28px !important;
  width: 28px;
  margin-right: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .theme-picker select {
  width: 28px !important;
  min-width: 28px !important;
  padding: 0 !important;
  color: transparent !important;
  appearance: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5v10M5 10h10' stroke='%234d5460' stroke-width='1.6'/%3E%3C/svg%3E") center / 14px 14px no-repeat #ffffff !important;
  font-size: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .theme-picker select option {
  color: #1f2329;
  font-size: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .account-badge {
  order: 6;
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;
  color: #ffffff !important;
  background: #3370ff !important;
  border: 0 !important;
  border-radius: 50% !important;
  overflow: hidden;
  font-size: 0 !important;
  line-height: 28px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .account-badge::after {
  content: "巡";
  font-size: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .feishu-sheet-chrome {
  position: sticky;
  z-index: 35;
  top: 56px;
  background: #ffffff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-bar {
  display: flex;
  height: 31px;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #e2e6eb;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-tab {
  display: inline-flex;
  min-width: 112px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1f2329;
  background: #ffffff;
  border-right: 1px solid #e2e6eb;
  border-bottom: 2px solid #3370ff;
  font-size: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-tab svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #3370ff;
  stroke-width: 1.2;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-add {
  display: inline-flex;
  width: 28px;
  align-items: center;
  justify-content: center;
  color: #5f6673;
  border-right: 1px solid #e2e6eb;
  font-size: 15px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-tools {
  display: flex;
  width: 56px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-left: auto;
  padding-right: 10px;
  color: #5f6673;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-worksheet-tools svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-toolbar {
  display: flex;
  height: 37px;
  align-items: center;
  gap: 3px;
  overflow-x: auto;
  padding: 0 8px;
  color: #4d5460;
  background: #f5f6f7;
  border-bottom: 1px solid #e2e6eb;
  font-size: 12px;
  white-space: nowrap;
  scrollbar-width: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-toolbar::-webkit-scrollbar {
  display: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-tool {
  display: inline-flex;
  height: 24px;
  min-width: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 12px;
  line-height: 24px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-tool:hover {
  background: #eef0f3;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.fs-tool.fs-wide) {
  min-width: 64px;
  padding: 0 7px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.fs-tool.fs-primary, .fs-worksheet-add) {
  color: #3370ff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-divider {
  width: 1px;
  height: 16px;
  margin: 0 5px;
  background: #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.fs-icon, .fs-font, .fs-color, .fs-fill, .fs-merge, .fs-currency, .fs-percent, .fs-decimal) {
  font-family: ui-sans-serif, system-ui, sans-serif;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-tool svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linejoin: round;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] :is(.fs-font, .fs-color, .fs-currency, .fs-percent, .fs-decimal) {
  font-weight: 700;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-italic {
  font-style: italic;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-underline {
  text-decoration: underline;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-color {
  color: #d83931;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-formula-bar {
  display: flex;
  height: 31px;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #dfe3e8;
  font-size: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-cell-name {
  display: flex;
  width: 58px;
  align-items: center;
  justify-content: center;
  color: #1f2329;
  background: #f5f6f7;
  border-right: 1px solid #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-function {
  display: flex;
  width: 32px;
  align-items: center;
  justify-content: center;
  color: #6b727c;
  font-style: italic;
  border-right: 1px solid #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] .fs-cell-value {
  display: flex;
  align-items: center;
  padding: 0 10px;
  color: #1f2329;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav {
  position: fixed;
  z-index: 40;
  bottom: 0;
  left: 0;
  width: min(72vw, 1080px);
  height: 32px;
  min-height: 32px;
  padding: 0 8px !important;
  background: #f5f6f7 !important;
  border-top: 1px solid #dfe3e8 !important;
  overflow-x: auto;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav-link {
  min-height: 32px;
  padding: 0 11px !important;
  border-top: 0 !important;
  border-bottom: 2px solid transparent !important;
  line-height: 32px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .product-nav-link:is(.is-active, [aria-current="page"]) {
  color: #3370ff !important;
  border-bottom-color: #3370ff !important;
  background: #ffffff !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-footer {
  position: fixed;
  z-index: 40;
  right: 0;
  bottom: 0;
  width: max(28vw, 360px);
  height: 32px;
  min-height: 32px;
  justify-content: flex-end;
  padding: 0 12px !important;
  color: transparent !important;
  background: #f5f6f7 !important;
  border-top: 1px solid #dfe3e8;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .app-footer::after {
  content: "工作表 · 自动保存";
  color: #6b727c;
  font-size: 11px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page main {
  padding: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.summary-board, .panel) {
  margin: 0;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .summary-board {
  display: block !important;
  background: #ffffff !important;
  border-bottom: 1px solid #dfe3e8 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .summary-toolbar {
  display: flex !important;
  min-height: 32px;
  align-items: center;
  background: #f5f6f7;
  border-bottom: 1px solid #e2e6eb;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .summary-toolbar > div:first-child {
  min-width: 260px;
  padding: 0 10px !important;
  background: transparent !important;
  box-shadow: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .summary-toolbar h2 {
  color: #1f2329 !important;
  font-size: 12px !important;
  font-weight: 640;
  line-height: 32px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .metric-grid-four {
  grid-template-columns: repeat(4, minmax(120px, 1fr)) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.metric-card, .metric-primary, .metric-warning, .metric-success) {
  min-height: 40px !important;
  padding: 4px 10px !important;
  border-right: 1px solid #eef0f3 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.metric-card > strong, .metric-primary > strong) {
  display: block;
  font-size: 13px !important;
  line-height: 17px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page :is(.metric-foot, .monthly-summary-card small) {
  display: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .monthly-summary-card {
  min-height: 32px;
  align-items: center;
  padding: 0 10px;
  background: #f5f6f7;
  border-bottom: 1px solid #e2e6eb;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .panel-heading {
  min-height: 36px;
  padding: 0 8px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #e2e6eb;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .panel-heading h2 {
  font-size: 12px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-heading-note {
  display: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-search-status {
  display: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table {
  table-layout: fixed;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table :is(th, td) {
  height: 30px;
  padding: 3px 8px !important;
  border-right: 1px solid #e2e6eb !important;
  border-bottom: 1px solid #e2e6eb !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th {
  display: table-cell;
  height: 50px;
  vertical-align: bottom;
  background: #ffffff !important;
  border-bottom: 1px solid #cfd4da !important;
  color: #1f2329 !important;
  font-size: 12px;
  font-weight: 700;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th::before {
  content: attr(data-column-letter);
  display: block;
  height: 19px;
  margin: -3px -8px 3px;
  padding: 2px 8px;
  color: #6b727c;
  background: #f5f6f7;
  border-bottom: 1px solid #e2e6eb;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th:nth-child(1)::before {
  content: "A";
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th:nth-child(2)::before {
  content: "B";
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th:nth-child(3)::before {
  content: "C";
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th:nth-child(4)::before {
  content: "D";
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .task-table thead th:nth-child(5)::before {
  content: "E";
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page::after {
  content: "";
  position: fixed;
  z-index: 100;
  inset: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='150'%3E%3Ctext x='8' y='76' fill='%231f2329' fill-opacity='0.035' font-family='PingFang SC' font-size='15' transform='rotate(-24 130 75)'%3E%E5%86%85%E9%83%A8%E8%B5%84%E6%96%99%3C/text%3E%3C/svg%3E") repeat;
}

/* 完成量工作表：连续网格、独立行号栏及真实编辑焦点。 */
html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page main:has(#completionView) {
  gap: 0 !important;
  background: #fff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #workspacePanel {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView :is(.task-panel, .workspace-grid-progress) {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary {
  padding-left: 36px !important;
  border-left: 1px solid #e2e6eb !important;
  background: linear-gradient(to right, #f5f6f7 35px, #e2e6eb 35px, #e2e6eb 36px, #fff 36px) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .date-controls {
  width: 100%;
  min-height: 42px;
  padding: 4px 12px !important;
  background: #fff !important;
  box-shadow: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .date-controls .field-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .date-controls .compact-field {
  flex-wrap: wrap;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .date-controls .save-state {
  margin-left: auto;
  font-size: 11px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .metric-grid-four {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .metric-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 34px !important;
  padding: 5px 12px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #todaySummary .monthly-summary-card {
  min-height: 28px;
  padding: 0 12px;
  background: #fff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .panel-heading {
  min-height: 42px;
  padding: 4px 12px 4px 48px !important;
  margin: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-search-panel {
  min-height: 30px;
  padding: 0;
  border: 0;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .table-wrap {
  margin: 0 !important;
  padding-left: 36px;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(to right, #f5f6f7 35px, #e2e6eb 35px, #e2e6eb 36px, #fff 36px);
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table {
  width: 100%;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table :is(th, td):first-child {
  position: relative;
  overflow: visible;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table thead th:first-child {
  position: sticky;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table thead th {
  height: 54px;
  font-weight: 500;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table thead th::before {
  height: 22px;
  text-align: center;
  line-height: 18px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table thead th:first-child::after {
  content: "";
  position: absolute;
  left: -36px;
  top: 0;
  bottom: 0;
  width: 36px;
  background: #f5f6f7;
  border-right: 1px solid #e2e6eb;
  border-bottom: 1px solid #e2e6eb;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table tbody :is(td, th):first-child::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 0;
  bottom: 0;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8f959e;
  background: #f5f6f7;
  border-right: 1px solid #e2e6eb;
  border-bottom: 1px solid #e2e6eb;
  font: 11px ui-monospace, monospace;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table tbody tr.task-row td:first-child::before {
  content: counter(sheet-row);
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-category-row th {
  height: 32px;
  padding: 0 8px !important;
  background: #fafbfc !important;
  box-shadow: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .tree-category-toggle {
  min-height: 32px;
  padding: 4px 8px !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .tree-category-summary {
  color: #8f959e;
  font-size: 11px;
  font-weight: 400;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .tree-chevron {
  font-size: 12px;
  color: #646a73;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .quantity-control {
  width: 100%;
  min-width: 0;
  height: 28px;
  min-height: 28px;
  padding: 0 !important;
  border-color: transparent !important;
  background: transparent !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .quantity-control input {
  width: 100%;
  height: 28px;
  padding: 0 4px !important;
  background: transparent !important;
  font-variant-numeric: tabular-nums;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-row td:has(.quantity-control) {
  cursor: text;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-row td:has(.quantity-control):hover {
  background: #f5f8ff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-row td:has(.quantity-control:focus-within) {
  box-shadow: inset 0 0 0 2px #3370ff;
  background: #fff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .quantity-control input:focus-visible {
  outline: none !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .quantity-control:has(input.is-invalid) {
  border-color: #d83931 !important;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-row:focus-within td:first-child::before {
  color: #245bdb;
  background: #e8f0ff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .task-table:has(.quantity-control:focus-within) thead th:nth-child(3)::before {
  color: #245bdb;
  background: #e8f0ff;
  box-shadow: inset 0 -2px #3370ff;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .action-panel {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid #e2e6eb;
  padding: 8px 12px 8px 48px;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page .fs-formula-bar :is(.fs-cell-value, .fs-cell-name) {
  visibility: hidden;
}


html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView :is(.task-error, .task-alias):empty {
  display: none;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView :is(.task-name, .task-work, .standard-chip) {
  font-weight: 400;
}

html[data-theme="theme-21"][data-theme-layout="feishu-sheet"] body.workbench-page #completionView .standard-chip {
  padding: 0;
  background: transparent !important;
}
