/* Formal production-center visual contract. This file is intentionally last:
   it replaces the retired Expo preview layer without touching business data. */
:root {
  --system-blue: #1bb1c8;
  --system-blue-ink: #08758a;
  --system-ink: #17272b;
  --system-muted: #647980;
  --system-line: rgba(27, 177, 200, .18);
  --system-surface: rgba(255, 255, 255, .58);
  --system-surface-strong: rgba(255, 255, 255, .76);
  --system-glass-shadow: 0 8px 32px rgba(27, 177, 200, .10), inset 0 1px 0 rgba(255, 255, 255, .30), inset 0 -1px 0 rgba(0, 0, 0, .05);
}

html,
body,
body.preview-workbench { background: #fff !important; color: var(--system-ink) !important; }

html body .app-shell.preview-workbench {
  margin: 0 !important;
  min-height: 100vh !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body .app-shell.preview-workbench .sidebar,
html body .app-shell.preview-workbench .topbar {
  background: var(--system-surface-strong) !important;
  border-color: rgba(255, 255, 255, .82) !important;
  box-shadow: var(--system-glass-shadow) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

html body .app-shell.preview-workbench .main-content,
html body .app-shell.preview-workbench .content-wrap { background: #fff !important; }

html body .app-shell.preview-workbench .main-content,
html body .app-shell.preview-workbench .main-content * {
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
}

/* Five-size text scale for equal information levels. */
html body .app-shell.preview-workbench .page-intro h1 { font-size: 22px !important; font-weight: 600 !important; }
html body .app-shell.preview-workbench .section-head h2,
html body .app-shell.preview-workbench .modal-head h2,
html body .app-shell.preview-workbench .notice-modal h2 { font-size: 18px !important; font-weight: 600 !important; }
html body .app-shell.preview-workbench .page-intro p,
html body .app-shell.preview-workbench .nav-item,
html body .app-shell.preview-workbench button:not(.icon-btn),
html body .app-shell.preview-workbench input,
html body .app-shell.preview-workbench select,
html body .app-shell.preview-workbench textarea,
html body .app-shell.preview-workbench .table-card td { font-size: 14px !important; font-weight: 400 !important; letter-spacing: 0 !important; }
html body .app-shell.preview-workbench .table-card th,
html body .app-shell.preview-workbench .eyebrow,
html body .app-shell.preview-workbench .page-intro small,
html body .app-shell.preview-workbench .metric-card small,
html body .app-shell.preview-workbench .metric-card span { font-size: 12px !important; }
html body .app-shell.preview-workbench .metric-card strong,
html body .app-shell.preview-workbench .budget-summary strong { font-size: 22px !important; font-weight: 600 !important; }

html body .app-shell.preview-workbench .nav-item { color: var(--system-muted) !important; }
html body .app-shell.preview-workbench .nav-item:hover { color: var(--system-ink) !important; background: rgba(27, 177, 200, .06) !important; }
html body .app-shell.preview-workbench .nav-item.active,
html body .app-shell.preview-workbench .nav-item.is-active {
  color: var(--system-ink) !important;
  background: rgba(27, 177, 200, .12) !important;
  border-color: rgba(27, 177, 200, .34) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78) !important;
}

html body .app-shell.preview-workbench .metric-card,
html body .app-shell.preview-workbench .project-card,
html body .app-shell.preview-workbench .activity-panel,
html body .app-shell.preview-workbench .notice-panel,
html body .app-shell.preview-workbench .table-card,
html body .app-shell.preview-workbench .table-view,
html body .app-shell.preview-workbench .settle-card,
html body .app-shell.preview-workbench .person-card,
html body .app-shell.preview-workbench .template-card,
html body .app-shell.preview-workbench .budget-summary,
html body .app-shell.preview-workbench .website-credential-section,
html body .app-shell.preview-workbench .department-purchase-section,
html body .app-shell.preview-workbench .external-payment-section {
  color: var(--system-ink) !important;
  background: var(--system-surface) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 16px !important;
  box-shadow: var(--system-glass-shadow) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}

html body .app-shell.preview-workbench .table-card th { color: var(--system-muted) !important; background: rgba(255, 255, 255, .32) !important; font-weight: 600 !important; }
html body .app-shell.preview-workbench .table-card td { color: var(--system-ink) !important; border-bottom-color: rgba(27, 177, 200, .10) !important; }

html body .app-shell.preview-workbench .main-content .primary-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .outline-btn:not(.danger):not(.danger-outline):not(.danger-button),
html body .app-shell.preview-workbench .main-content .text-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .icon-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .modal .primary-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .modal .outline-btn:not(.danger):not(.danger-outline):not(.danger-button) {
  color: var(--system-blue-ink) !important;
  background: rgba(27, 177, 200, .12) !important;
  border: 1px solid rgba(27, 177, 200, .34) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(27, 177, 200, .12), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(8, 117, 138, .08) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
}
html body .app-shell.preview-workbench .main-content .primary-btn:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .outline-btn:not(.danger):not(.danger-outline):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .text-btn:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .icon-btn:not(.danger):not(.danger-button):hover {
  background: rgba(27, 177, 200, .20) !important;
  border-color: rgba(27, 177, 200, .50) !important;
  transform: translateY(-1px) !important;
}

html body .app-shell.preview-workbench input,
html body .app-shell.preview-workbench select,
html body .app-shell.preview-workbench textarea { color: var(--system-ink) !important; background: rgba(255, 255, 255, .72) !important; border-color: var(--system-line) !important; }

/* Ledger geometry belongs to the formal contract, not the retired Expo skin. */
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] { min-width: 1204px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(1) { width: 260px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(2) { width: 92px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(3) { width: 150px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(4) { width: 126px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(5) { width: 126px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(6) { width: 92px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(7) { width: 108px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(8) { width: 86px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(9) { width: 116px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(10) { width: 48px !important; }
html body .app-shell.preview-workbench .asset-license-ledger { overflow-x: auto !important; }
html body .app-shell.preview-workbench .asset-license-ledger table { min-width: 1238px !important; table-layout: fixed !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(1) { width: 120px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(2) { width: 135px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(3) { width: 210px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(4) { width: 100px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(5) { width: 125px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(6) { width: 150px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(7) { width: 160px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(8) { width: 190px !important; }
html body .app-shell.preview-workbench .asset-license-ledger th:nth-child(9),
html body .app-shell.preview-workbench .asset-license-ledger td:nth-child(9) { width: 48px !important; }
html body .app-shell.preview-workbench .asset-license-ledger input,
html body .app-shell.preview-workbench .asset-license-ledger select,
html body .app-shell.preview-workbench .asset-license-ledger .attachment-add,
html body .app-shell.preview-workbench .asset-license-ledger .attachment-link { font-size: 14px !important; }

/* Final operational controls. These IDs are intentional: legacy component
   styles used the same IDs and otherwise won the cascade. */
html body .app-shell.preview-workbench .main-content #newProjectBtn,
html body .app-shell.preview-workbench .main-content #newProjectBtn2,
html body .app-shell.preview-workbench .main-content #openNoticeBtn,
html body .app-shell.preview-workbench .main-content #openNoticeBtn2,
html body .app-shell.preview-workbench .main-content #openNoticeBtn3,
html body .app-shell.preview-workbench .main-content #addBudgetRow,
html body .app-shell.preview-workbench .main-content #addBudgetBatch,
html body .app-shell.preview-workbench .main-content #exportPropsInvoices,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchaseBottom,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchasesBatch,
html body .app-shell.preview-workbench .main-content #addRegularPurchaseBottom,
html body .app-shell.preview-workbench .main-content #addExternalPaymentBottom {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  color: #08758a !important;
  background: rgba(27, 177, 200, .12) !important;
  border: 1px solid rgba(27, 177, 200, .34) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(27, 177, 200, .12), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(8, 117, 138, .08) !important;
  backdrop-filter: blur(16px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(180%) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease !important;
}

html body .app-shell.preview-workbench .main-content #newProjectBtn *,
html body .app-shell.preview-workbench .main-content #newProjectBtn2 *,
html body .app-shell.preview-workbench .main-content #openNoticeBtn *,
html body .app-shell.preview-workbench .main-content #openNoticeBtn2 *,
html body .app-shell.preview-workbench .main-content #openNoticeBtn3 *,
html body .app-shell.preview-workbench .main-content #addBudgetRow *,
html body .app-shell.preview-workbench .main-content #addBudgetBatch *,
html body .app-shell.preview-workbench .main-content #exportPropsInvoices *,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchaseBottom *,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchasesBatch *,
html body .app-shell.preview-workbench .main-content #addRegularPurchaseBottom *,
html body .app-shell.preview-workbench .main-content #addExternalPaymentBottom * {
  color: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  stroke: currentColor !important;
}

html body .app-shell.preview-workbench .main-content #newProjectBtn svg,
html body .app-shell.preview-workbench .main-content #newProjectBtn2 svg,
html body .app-shell.preview-workbench .main-content #openNoticeBtn svg,
html body .app-shell.preview-workbench .main-content #openNoticeBtn2 svg,
html body .app-shell.preview-workbench .main-content #openNoticeBtn3 svg,
html body .app-shell.preview-workbench .main-content #addBudgetRow svg,
html body .app-shell.preview-workbench .main-content #addBudgetBatch svg,
html body .app-shell.preview-workbench .main-content #exportPropsInvoices svg,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchaseBottom svg,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchasesBatch svg,
html body .app-shell.preview-workbench .main-content #addRegularPurchaseBottom svg,
html body .app-shell.preview-workbench .main-content #addExternalPaymentBottom svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}

html body .app-shell.preview-workbench .main-content #newProjectBtn:hover,
html body .app-shell.preview-workbench .main-content #newProjectBtn2:hover,
html body .app-shell.preview-workbench .main-content #openNoticeBtn:hover,
html body .app-shell.preview-workbench .main-content #openNoticeBtn2:hover,
html body .app-shell.preview-workbench .main-content #openNoticeBtn3:hover,
html body .app-shell.preview-workbench .main-content #addBudgetRow:hover,
html body .app-shell.preview-workbench .main-content #addBudgetBatch:hover,
html body .app-shell.preview-workbench .main-content #exportPropsInvoices:hover,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchaseBottom:hover,
html body .app-shell.preview-workbench .main-content #addDepartmentPurchasesBatch:hover,
html body .app-shell.preview-workbench .main-content #addRegularPurchaseBottom:hover,
html body .app-shell.preview-workbench .main-content #addExternalPaymentBottom:hover {
  background: rgba(27, 177, 200, .20) !important;
  border-color: rgba(27, 177, 200, .50) !important;
  box-shadow: 0 10px 22px rgba(27, 177, 200, .16), inset 0 1px 0 rgba(255, 255, 255, .86), inset 0 -1px 0 rgba(8, 117, 138, .10) !important;
  transform: translateY(-1px) !important;
}

/* Account popover: the avatar and its action rows are one centred card. */
html body .app-shell.preview-workbench .account-card .user-panel-head,
html body .app-shell.preview-workbench .account-card .user-panel-head > div {
  display: grid !important;
  place-items: center !important;
  justify-items: center !important;
  text-align: center !important;
}
html body .app-shell.preview-workbench .account-card .panel-avatar,
html body .app-shell.preview-workbench .account-card .panel-avatar > span {
  display: grid !important;
  place-items: center !important;
}
html body .app-shell.preview-workbench .account-card .panel-avatar > span img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
html body .app-shell.preview-workbench .account-card .popover-action {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 38px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}
html body .app-shell.preview-workbench .account-card .popover-action svg {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}

/* Website-account utilities stay compact even when generic icon rules load. */
html body .app-shell.preview-workbench .website-credential-card .icon-btn,
html body .app-shell.preview-workbench .website-credential-preview-actions .icon-btn {
  display: inline-grid !important;
  width: 28px !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 !important;
  place-items: center !important;
  border-radius: 8px !important;
}
html body .app-shell.preview-workbench .website-credential-card .icon-btn svg,
html body .app-shell.preview-workbench .website-credential-preview-actions .icon-btn svg {
  width: 14px !important;
  height: 14px !important;
}
html body .app-shell.preview-workbench .website-credential-card .website-credential-title strong,
html body .app-shell.preview-workbench .website-credential-card .website-credential-title a,
html body .app-shell.preview-workbench .website-credential-card .website-credential-line > span { font-size: 14px !important; font-weight: 400 !important; }

/* Material copyright entries are normal body text; only table labels are mini. */
html body .app-shell.preview-workbench .asset-license-ledger td,
html body .app-shell.preview-workbench .asset-license-ledger input,
html body .app-shell.preview-workbench .asset-license-ledger select,
html body .app-shell.preview-workbench .asset-license-ledger .attachment-add,
html body .app-shell.preview-workbench .asset-license-ledger .attachment-link { font-size: 14px !important; font-weight: 400 !important; }
html body .app-shell.preview-workbench .asset-license-ledger th { font-size: 12px !important; font-weight: 600 !important; }

/* Permission status uses a fixed icon block and cannot be stretched by icons. */
html body .app-shell.preview-workbench .permission-strip {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  color: #08758a !important;
  background: rgba(27, 177, 200, .10) !important;
  border: 1px solid rgba(27, 177, 200, .24) !important;
  border-radius: 16px !important;
}
html body .app-shell.preview-workbench .permission-strip > div { display: flex !important; align-items: center !important; min-width: 0 !important; gap: 10px !important; }
html body .app-shell.preview-workbench .permission-strip > div > svg {
  display: block !important;
  width: 32px !important;
  height: 32px !important;
  flex: 0 0 32px !important;
  padding: 7px !important;
  color: #08758a !important;
  background: rgba(27, 177, 200, .12) !important;
  border-radius: 10px !important;
}
html body .app-shell.preview-workbench .permission-strip strong,
html body .app-shell.preview-workbench .permission-strip small,
html body .app-shell.preview-workbench .permission-strip > span { color: inherit !important; font-weight: 400 !important; }

/* Account entry and popover match booking and storyboard. */
html body .app-shell.preview-workbench .top-actions { position: relative !important; }
html body .app-shell.preview-workbench .user-menu-trigger { display: inline-flex !important; align-items: center !important; min-height: 42px !important; gap: 8px !important; padding: 3px 6px 3px 3px !important; color: #17272b !important; border: 1px solid transparent !important; border-radius: 12px !important; background: transparent !important; text-align: left !important; }
html body .app-shell.preview-workbench .user-menu-trigger:hover { background: rgba(27,177,200,.08) !important; border-color: rgba(27,177,200,.24) !important; }
html body .app-shell.preview-workbench .user-trigger-avatar { display: grid !important; width: 32px !important; height: 32px !important; place-items: center !important; overflow: hidden !important; color: #08758a !important; background: rgba(27,177,200,.16) !important; border: 1px solid rgba(27,177,200,.28) !important; border-radius: 50% !important; }
html body .app-shell.preview-workbench .user-trigger-avatar img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body .app-shell.preview-workbench .user-menu-trigger .user-meta { display: grid !important; gap: 1px !important; min-width: 0 !important; }
html body .app-shell.preview-workbench .user-menu-trigger .user-meta strong { color: #17272b !important; font-size: 14px !important; font-weight: 400 !important; }
html body .app-shell.preview-workbench .user-menu-trigger .user-meta span { color: #647980 !important; font-size: 12px !important; font-weight: 400 !important; }
html body .app-shell.preview-workbench .user-menu-trigger > svg { width: 14px !important; height: 14px !important; color: #647980 !important; }
html body .app-shell.preview-workbench .top-popover.user-panel.account-card { position: fixed !important; top: 72px !important; right: 24px !important; z-index: 80 !important; display: none; width: 280px !important; gap: 6px !important; padding: 16px !important; color: #17272b !important; background: rgba(255,255,255,.94) !important; border: 1px solid rgba(27,177,200,.22) !important; border-radius: 16px !important; box-shadow: 0 16px 36px rgba(17,67,74,.16), inset 0 1px 0 rgba(255,255,255,.96) !important; backdrop-filter: blur(16px) saturate(180%) !important; -webkit-backdrop-filter: blur(16px) saturate(180%) !important; }
html body .app-shell.preview-workbench .top-popover.user-panel.account-card.show { display: grid !important; }
html body .app-shell.preview-workbench .account-card .user-panel-head { display: grid !important; place-items: center !important; gap: 8px !important; padding-bottom: 14px !important; text-align: center !important; }
html body .app-shell.preview-workbench .account-card .panel-avatar > span { display: grid !important; width: 64px !important; height: 64px !important; place-items: center !important; overflow: hidden !important; border: 1px solid rgba(27,177,200,.32) !important; border-radius: 50% !important; background: rgba(27,177,200,.12) !important; }
html body .app-shell.preview-workbench .account-card .panel-avatar > span img { display: block !important; width: 100% !important; height: 100% !important; object-fit: cover !important; }
html body .app-shell.preview-workbench .account-card .user-panel-head > div { display: grid !important; justify-items: center !important; gap: 3px !important; min-width: 0 !important; }
html body .app-shell.preview-workbench .account-card .user-panel-head strong { color: #17272b !important; font-size: 16px !important; font-weight: 600 !important; }
html body .app-shell.preview-workbench .account-card .user-panel-head > div > span { max-width: 100% !important; overflow-wrap: anywhere !important; color: #647980 !important; font-size: 12px !important; font-weight: 400 !important; }
html body .app-shell.preview-workbench .account-card .user-access-row { display: flex !important; align-items: center !important; justify-content: space-between !important; margin: 0 !important; padding: 12px 0 !important; color: #647980 !important; border-top: 1px solid rgba(27,177,200,.18) !important; border-bottom: 1px solid rgba(27,177,200,.18) !important; font-size: 14px !important; }
html body .app-shell.preview-workbench .account-card .user-access-row strong { color: #08758a !important; font-size: 14px !important; font-weight: 600 !important; }
html body .app-shell.preview-workbench .account-card .popover-action { display: inline-flex !important; align-items: center !important; gap: 8px !important; min-height: 38px !important; padding: 0 10px !important; color: #17272b !important; background: transparent !important; border: 1px solid transparent !important; border-radius: 12px !important; font-size: 14px !important; font-weight: 400 !important; }
html body .app-shell.preview-workbench .account-card .popover-action svg { width: 16px !important; height: 16px !important; flex: 0 0 16px !important; color: #08758a !important; }
html body .app-shell.preview-workbench .account-card .popover-action:hover { background: rgba(27,177,200,.08) !important; border-color: rgba(27,177,200,.24) !important; }
html body .app-shell.preview-workbench .account-card #panelLogout,
html body .app-shell.preview-workbench .account-card #panelLogout svg { color: #b42318 !important; }

/* Compact procurement columns so the invoice control stays inside its cell.
   These selectors intentionally close over the legacy fixed-width rules. */
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"],
html body .app-shell.preview-workbench #departmentPurchaseLedger {
  min-width: 1068px !important;
  table-layout: fixed !important;
}
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(2),
html body .app-shell.preview-workbench #departmentPurchaseLedger th:nth-child(2) { width: 64px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(3),
html body .app-shell.preview-workbench #departmentPurchaseLedger th:nth-child(3) { width: 100px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] th:nth-child(5),
html body .app-shell.preview-workbench #departmentPurchaseLedger th:nth-child(5) { width: 118px !important; }
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] td:nth-child(5),
html body .app-shell.preview-workbench #departmentPurchaseLedger td:nth-child(5) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  overflow: hidden !important;
}
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] .attachment-cell,
html body .app-shell.preview-workbench #departmentPurchaseLedger .attachment-cell {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] .attachment-add,
html body .app-shell.preview-workbench #departmentPurchaseLedger .attachment-add {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] .attachment-add > span,
html body .app-shell.preview-workbench #departmentPurchaseLedger .attachment-add > span,
html body .app-shell.preview-workbench #budgetLedger[data-category="道具费用"] .attachment-link span,
html body .app-shell.preview-workbench #departmentPurchaseLedger .attachment-link span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .app-shell.preview-workbench #regularPurchaseLedger {
  min-width: 1120px !important;
  table-layout: fixed !important;
}
html body .app-shell.preview-workbench #regularPurchaseLedger th:nth-child(3) { width: 64px !important; }
html body .app-shell.preview-workbench #regularPurchaseLedger th:nth-child(4) { width: 100px !important; }
html body .app-shell.preview-workbench #regularPurchaseLedger th:nth-child(6),
html body .app-shell.preview-workbench #regularPurchaseLedger td:nth-child(6) {
  width: 118px !important;
  min-width: 118px !important;
  max-width: 118px !important;
  overflow: hidden !important;
}
html body .app-shell.preview-workbench #regularPurchaseLedger .attachment-cell {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}
html body .app-shell.preview-workbench #regularPurchaseLedger .attachment-add {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
html body .app-shell.preview-workbench #regularPurchaseLedger .attachment-add > span,
html body .app-shell.preview-workbench #regularPurchaseLedger .attachment-link span {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Final regular-action contract. Legacy component sheets declare heavier
   labels, so keep all non-destructive content actions at the shared 14/400
   level while leaving headings, metrics and danger actions untouched. */
html body .app-shell.preview-workbench .main-content .primary-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .outline-btn:not(.danger):not(.danger-outline):not(.danger-button),
html body .app-shell.preview-workbench .main-content .text-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .purchase-batch-btn:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .secondary-button:not(.danger):not(.danger-button),
html body .app-shell.preview-workbench .main-content .small-button:not(.danger):not(.danger-button) {
  min-height: 36px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  color: #08758a !important;
  background: rgba(27, 177, 200, .12) !important;
  border: 1px solid rgba(27, 177, 200, .34) !important;
  border-radius: 12px !important;
  box-shadow: 0 6px 18px rgba(27, 177, 200, .12), inset 0 1px 0 rgba(255, 255, 255, .78), inset 0 -1px 0 rgba(8, 117, 138, .08) !important;
}
html body .app-shell.preview-workbench .main-content .primary-btn:not(.danger):not(.danger-button) *,
html body .app-shell.preview-workbench .main-content .outline-btn:not(.danger):not(.danger-outline):not(.danger-button) *,
html body .app-shell.preview-workbench .main-content .text-btn:not(.danger):not(.danger-button) *,
html body .app-shell.preview-workbench .main-content .purchase-batch-btn:not(.danger):not(.danger-button) *,
html body .app-shell.preview-workbench .main-content .secondary-button:not(.danger):not(.danger-button) *,
html body .app-shell.preview-workbench .main-content .small-button:not(.danger):not(.danger-button) * {
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  color: currentColor !important;
  stroke: currentColor !important;
}
html body .app-shell.preview-workbench .main-content .primary-btn:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .outline-btn:not(.danger):not(.danger-outline):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .text-btn:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .purchase-batch-btn:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .secondary-button:not(.danger):not(.danger-button):hover,
html body .app-shell.preview-workbench .main-content .small-button:not(.danger):not(.danger-button):hover {
  background: rgba(27, 177, 200, .20) !important;
  border-color: rgba(27, 177, 200, .50) !important;
  transform: translateY(-1px) !important;
}
