/*
 * Web visual refresh V1
 * Reference direction: calm blue enterprise surfaces, separated KPI cards,
 * consistent form typography and a predictable 8px spacing rhythm.
 */

body[data-app-surface="web"] {
  --web-surface-gap: 16px;
  --web-surface-radius: 10px;
  --web-control-height: 36px;
  --web-card-shadow: 0 1px 2px rgb(15 38 68 / 4%), 0 8px 24px rgb(32 72 118 / 4%);
  background: #f3f6fc;
}

body[data-app-surface="web"] .web-content {
  padding: 18px 20px 32px;
  color: #344054;
  font-size: 14px;
  line-height: 1.5;
  background:
    radial-gradient(circle at 72% 0, rgb(219 231 255 / 46%), transparent 28rem),
    #f3f6fc;
}

body[data-app-surface="web"] .web-content > .page-header {
  min-height: 104px;
  margin-bottom: var(--web-surface-gap);
  padding: 17px 20px 19px;
  border: 1px solid #e3e9f3;
  border-radius: var(--web-surface-radius);
  background: rgb(255 255 255 / 96%);
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] .page-header h1,
body[data-app-surface="web"] .page-header__title,
body[data-app-surface="web"] .page-title {
  margin: 0;
  color: #101c36;
  font-size: 22px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: -.025em;
}

body[data-app-surface="web"] .page-header p,
body[data-app-surface="web"] .page-header__description,
body[data-app-surface="web"] .page-subtitle {
  margin: 5px 0 0;
  color: #66758c;
  font-size: 13px;
  line-height: 20px;
}

body[data-app-surface="web"] .el-breadcrumb {
  margin-bottom: 7px;
  color: #7b8ba4;
  font-size: 12px;
  line-height: 18px;
}

/* Common vertical rhythm for the three priority management domains. */
body[data-app-surface="web"] :is(.mat-module, .safe-module, .progress-module) {
  min-width: 0;
}

body[data-app-surface="web"] :is(.mat-module, .safe-module, .progress-module) > :is(.mat-kpis, .safe-kpis, .progress-kpis, .query-panel, .mat-query, .content-card, .mat-card) {
  margin-bottom: var(--web-surface-gap);
}

/* KPI cards are independent information units, not one segmented strip. */
body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .metric-grid, .business-summary, .contract-kpis) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: var(--web-surface-gap);
  border: 0;
  background: transparent;
}

body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .business-summary, .contract-kpis) > article,
body[data-app-surface="web"] .metric-card {
  position: relative;
  min-width: 0;
  min-height: 104px;
  padding: 16px 18px 15px;
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .business-summary, .contract-kpis) > article {
  border-right: 1px solid #e4eaf3;
}

body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .business-summary, .contract-kpis) > article::before {
  position: absolute;
  content: "";
  top: 16px;
  bottom: 16px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #409eff;
}

body[data-app-surface="web"] :is(.business-summary, .contract-kpis) > article:nth-child(2)::before { background: #67c23a; }
body[data-app-surface="web"] :is(.business-summary, .contract-kpis) > article:nth-child(3)::before { background: #e6a23c; }
body[data-app-surface="web"] :is(.business-summary, .contract-kpis) > article:nth-child(4)::before { background: #f56c6c; }

body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .business-summary, .contract-kpis) :is(span, small),
body[data-app-surface="web"] .metric-card__label,
body[data-app-surface="web"] .metric-card__meta {
  color: #7a879b;
  font-size: 12px;
  line-height: 18px;
}

body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .business-summary, .contract-kpis) :is(strong, b),
body[data-app-surface="web"] .metric-card__value {
  margin: 5px 0 4px;
  color: #14213d;
  font-size: 25px;
  font-weight: 700;
  line-height: 32px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

/* Search and filter surfaces share one label/control scale. */
body[data-app-surface="web"] :is(.mat-query, .query-panel) {
  margin-bottom: 12px;
  padding: 15px 16px 16px;
  border: 1px solid #e3e9f3;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 38 68 / 3%);
}

body[data-app-surface="web"] .mat-query form,
body[data-app-surface="web"] .query-panel__form {
  align-items: end;
  gap: 12px 16px;
}

body[data-app-surface="web"] :is(.mat-query, .query-panel, .el-form, .mat-form-grid) label > span:first-child,
body[data-app-surface="web"] .el-form-item__label {
  min-height: 20px;
  margin-bottom: 6px;
  color: #526078;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

body[data-app-surface="web"] .web-content :is(
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea,
  .el-input__wrapper,
  .el-select__wrapper
) {
  min-height: var(--web-control-height);
  padding-inline: 11px;
  border-color: #d7dfeb;
  border-radius: 6px;
  color: #27364f;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 20px;
  background-color: #fff;
}

body[data-app-surface="web"] .web-content textarea {
  min-height: 96px;
  padding-block: 9px;
}

body[data-app-surface="web"] .web-content :is(input, select, textarea)::placeholder {
  color: #98a4b6;
}

body[data-app-surface="web"] .web-content :is(input, select, textarea):hover {
  border-color: #aebbd0;
}

body[data-app-surface="web"] .web-content :is(input, select, textarea):focus {
  border-color: #4f7ee8;
  box-shadow: 0 0 0 3px rgb(79 126 232 / 14%);
}

/* Toolbars and cards use consistent height, spacing and optical alignment. */
body[data-app-surface="web"] :is(.mat-toolbar, .action-bar, .page-header__actions) {
  align-items: center;
  gap: 8px;
}

body[data-app-surface="web"] .mat-toolbar {
  min-height: 38px;
  margin: 0 0 10px;
}

body[data-app-surface="web"] .web-content :is(button, .el-button, [role="button"]) {
  min-height: var(--web-control-height);
  padding: 0 14px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

body[data-app-surface="web"] .web-content :is(button, .el-button, [role="button"]):hover {
  border-color: #89a7eb;
  box-shadow: 0 3px 10px rgb(45 82 148 / 10%);
  transform: translateY(-1px);
}

body[data-app-surface="web"] .web-content :is(button, .el-button, [role="button"]):active {
  box-shadow: none;
  transform: translateY(0);
}

body[data-app-surface="web"] :is(.mat-card, .content-card, .el-card) {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e8f1;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] :is(.el-card__header, .content-card__header) {
  min-height: 52px;
  padding: 14px 18px;
}

body[data-app-surface="web"] :is(.el-card__title, .content-card__title, .page-section__title) {
  color: #17233e;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

body[data-app-surface="web"] :is(.el-card__body, .content-card__body) {
  padding: 18px;
}

/* Tables stay dense, but gain readable row height and stronger column rhythm. */
body[data-app-surface="web"] :is(.mat-card, .content-card) .el-table-wrap {
  border: 0;
  border-radius: 0;
}

body[data-app-surface="web"] .el-table-wrap :is(th, td),
body[data-app-surface="web"] .el-table :is(th, td) {
  height: 46px;
  padding: 9px 14px;
  color: #4a5870;
  font-size: 13px;
  line-height: 20px;
}

body[data-app-surface="web"] .el-table-wrap th,
body[data-app-surface="web"] .el-table th {
  height: 42px;
  color: #526078;
  font-size: 12px;
  font-weight: 650;
  background: #f6f8fc;
}

body[data-app-surface="web"] .el-table-wrap tbody tr:hover,
body[data-app-surface="web"] .el-table tbody tr:hover {
  background: #f7faff;
}

body[data-app-surface="web"] :is(.el-table__footer, .pagination) {
  min-height: 48px;
  padding: 9px 14px;
  color: #66758c;
  font-size: 13px;
  background: #fff;
}

body[data-app-surface="web"] :is(.el-form, .mat-form-grid) {
  gap: 18px 22px;
}

body[data-app-surface="web"] .el-form-item {
  gap: 6px;
}

body[data-app-surface="web"] .el-form-item__help,
body[data-app-surface="web"] .el-form-item__error {
  font-size: 12px;
  line-height: 18px;
}

/* All Web business actions use one centered B2B modal. */
body[data-app-surface="web"] .el-overlay--domain-modal {
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: rgb(18 31 52 / 48%);
  backdrop-filter: blur(1px);
}

body[data-app-surface="web"] .el-dialog--domain {
  width: min(var(--layer-width, 760px), calc(100vw - 64px));
  max-height: min(88dvh, 900px);
  border: 1px solid #dce4f0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 24px 64px rgb(15 38 68 / 24%);
  animation: domain-dialog-enter 180ms cubic-bezier(.2, .8, .2, 1);
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__header {
  min-height: 56px;
  padding: 12px 20px;
  align-items: center;
  border-bottom-color: #e5eaf2;
  background: #fff;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__header h2 {
  color: #14213d;
  font-size: 18px;
  font-weight: 650;
  line-height: 26px;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__header > div {
  display: flex;
  min-height: 32px;
  flex-direction: column;
  justify-content: center;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__header p {
  margin-top: 3px;
  color: #748197;
  font-size: 12px;
  line-height: 18px;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__close {
  width: 32px;
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 6px;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__body {
  padding: 20px 22px 24px;
  background: #fff;
  scrollbar-gutter: stable;
}

body[data-app-surface="web"] .el-dialog--domain :is(.prg-form-grid, .saf-form-grid, .mat-form-grid) {
  gap: 16px 20px;
}

body[data-app-surface="web"] .el-dialog--domain :is(.el-form-item__label, label > span:first-child) {
  color: #526078;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__footer {
  min-height: 64px;
  padding: 12px 20px;
  justify-content: center;
  gap: 10px;
  border-top-color: #e5eaf2;
  background: #f8fafd;
}

body[data-app-surface="web"] .el-dialog--domain .el-layer__footer .el-button {
  min-width: 88px;
}

@keyframes domain-dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1366px) {
  body[data-app-surface="web"] .web-content { padding: 16px 16px 28px; }
  body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .metric-grid) { gap: 12px; }
  body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis) > article,
  body[data-app-surface="web"] .metric-card { padding-inline: 15px; }
  body[data-app-surface="web"] .el-table-wrap :is(th, td),
  body[data-app-surface="web"] .el-table :is(th, td) { padding-inline: 11px; }
}

@media (max-width: 1100px) {
  body[data-app-surface="web"] :is(.mat-kpis, .safe-kpis, .progress-kpis, .metric-grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-app-surface="web"] .el-overlay--domain-modal { padding: 20px; }
  body[data-app-surface="web"] .el-dialog--domain { width: min(var(--layer-width, 760px), calc(100vw - 40px)); }
}

/* Contract management: dense ledger-first layout. Business behavior remains unchanged. */
body[data-app-surface="web"] .contract-module-page {
  display: grid;
  min-width: 0;
  gap: 12px;
}

body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary, .contract-review-metrics, .metric-grid.compact) {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
  margin: 0;
}

body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary) > article,
body[data-app-surface="web"] .contract-module-page .metric-card {
  min-height: 78px;
  padding: 10px 14px 9px;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgb(15 38 68 / 3%);
}

body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary) > article::before {
  top: 11px;
  bottom: 11px;
}

body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary) :is(strong, b),
body[data-app-surface="web"] .contract-module-page .metric-value {
  margin: 2px 0 0;
  font-size: 21px;
  line-height: 27px;
}

body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary) :is(span, small),
body[data-app-surface="web"] .contract-module-page :is(.metric-label, .metric-meta) {
  font-size: 11px;
  line-height: 16px;
}

body[data-app-surface="web"] .contract-module-page :is(.business-list-card, .contract-list-card) {
  overflow: hidden;
  border-color: #dfe6ef;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgb(15 38 68 / 3%);
}

body[data-app-surface="web"] .contract-module-page :is(.business-list-toolbar, .contract-list-card > header) {
  min-height: 50px;
  padding: 8px 14px;
}

body[data-app-surface="web"] .contract-module-page :is(.business-list-toolbar, .contract-list-card > header) h2 {
  font-size: 15px;
}

body[data-app-surface="web"] .contract-module-page :is(.business-list-toolbar, .contract-list-card > header) p {
  margin-top: 2px;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-module-page .business-query {
  grid-template-columns: minmax(240px, 2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto auto;
  padding: 9px 14px 10px;
  gap: 10px;
  background: #f8fafc;
}

body[data-app-surface="web"] .contract-module-page .business-query :is(input, select) {
  min-height: 34px;
}

body[data-app-surface="web"] .contract-module-page .business-tabs {
  gap: 24px;
  padding-inline: 14px;
}

body[data-app-surface="web"] .contract-module-page .business-tabs button {
  min-height: 39px;
}

body[data-app-surface="web"] .contract-module-page .business-table :is(th, td) {
  padding-top: 10px;
  padding-bottom: 10px;
}

body[data-app-surface="web"] .contract-module-page .el-tag > i {
  display: none;
}

body[data-app-surface="web"] .contract-ledger-page .contract-ledger-query {
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(135px, 1fr)) auto auto;
}

body[data-app-surface="web"] .contract-ledger-page .contract-table :is(th, td).is-number {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

body[data-app-surface="web"] .contract-ledger-page .contract-table tr[hidden] {
  display: none;
}

body[data-app-surface="web"] .contract-ledger-page .contract-filter-empty {
  padding: 36px 16px;
  color: #7a879b;
  text-align: center;
  border-top: 1px solid #edf0f5;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-tabs {
  min-height: 44px;
  padding-inline: 10px;
  border-radius: 7px;
}

body[data-app-surface="web"] .contract-review-tabs button {
  padding-inline: 14px;
  font-size: 13px;
}

body[data-app-surface="web"] .contract-review-workbench .document-compare {
  min-height: 500px;
  grid-template-columns: minmax(360px, .92fr) minmax(560px, 1.45fr);
  border-radius: 8px;
}

body[data-app-surface="web"] .contract-review-workbench .document-preview {
  padding: 12px;
}

body[data-app-surface="web"] .contract-review-workbench .paper-preview {
  min-height: 420px;
  margin-top: 8px;
  padding: 34px 36px;
}

body[data-app-surface="web"] .contract-review-workbench .paper-preview h3 {
  margin-bottom: 22px;
  font-size: 21px;
}

body[data-app-surface="web"] .contract-review-workbench .paper-preview :is(p, mark) {
  margin-block: 13px;
}

body[data-app-surface="web"] .contract-review-workbench .ai-field-list article {
  min-height: 72px;
  padding: 10px 14px;
}

/* W16 contract review: task queue, source verification and human decisions. */
body[data-app-surface="web"] :is(.contract-review-queue, .contract-review-workbench.is-v2) {
  display: grid;
  gap: 12px;
  color: #172033;
}

body[data-app-surface="web"] .contract-review-queue-summary {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-queue-summary > div {
  display: grid;
  align-content: center;
  min-height: 88px;
  padding: 14px 18px;
  border-left: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-queue-summary > div:first-child {
  grid-template-columns: auto 1fr;
  border-left: 3px solid #409eff;
}

body[data-app-surface="web"] .contract-review-queue-summary span,
body[data-app-surface="web"] .contract-review-queue-summary b:first-child {
  color: #7a879b;
  font-size: 12px;
  font-weight: 500;
}

body[data-app-surface="web"] .contract-review-queue-summary strong,
body[data-app-surface="web"] .contract-review-queue-summary > div > b:last-child {
  margin-top: 4px;
  color: #172033;
  font-size: 24px;
  line-height: 30px;
  font-variant-numeric: tabular-nums;
}

body[data-app-surface="web"] .contract-review-queue-summary > div:first-child span {
  grid-column: 1 / -1;
}

body[data-app-surface="web"] .contract-review-queue-card,
body[data-app-surface="web"] .contract-review-main > section,
body[data-app-surface="web"] .contract-review-risk-layout > section,
body[data-app-surface="web"] .contract-review-risk-layout > aside {
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-queue-card > header,
body[data-app-surface="web"] .contract-review-main > section > header,
body[data-app-surface="web"] .contract-review-risk-layout > section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 16px;
  border-bottom: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-queue-card h2,
body[data-app-surface="web"] .contract-review-main h3,
body[data-app-surface="web"] .contract-review-risk-layout h3 {
  margin: 0;
  font-size: 15px;
}

body[data-app-surface="web"] .contract-review-queue-card header span,
body[data-app-surface="web"] .contract-review-main header span,
body[data-app-surface="web"] .contract-review-risk-layout header span {
  color: #7a879b;
  font-size: 12px;
}

body[data-app-surface="web"] .contract-module-page .contract-review-query {
  grid-template-columns: minmax(280px, 1fr) 220px 72px 64px;
}

body[data-app-surface="web"] .contract-module-page .contract-review-query > button {
  width: auto;
  min-width: 64px;
  justify-self: stretch;
}

body[data-app-surface="web"] .contract-review-table :is(th, td) {
  vertical-align: middle;
}

body[data-app-surface="web"] .contract-review-table td :is(strong, small, span:not(.el-tag)) {
  display: block;
}

body[data-app-surface="web"] .contract-review-table td small {
  margin-top: 3px;
  color: #8b97a8;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-review-table tr[hidden] {
  display: none;
}

body[data-app-surface="web"] .contract-review-table .el-tag {
  display: inline-flex;
  width: max-content;
  min-width: 0;
}

body[data-app-surface="web"] .contract-review-enter,
body[data-app-surface="web"] .contract-review-back {
  border: 0;
  color: #1677c8;
  background: transparent;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-review-empty {
  padding: 38px 16px;
  color: #7a879b;
  text-align: center;
  border-top: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-context {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 10px 14px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-context > div > p,
body[data-app-surface="web"] .contract-review-context dt {
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-review-context h2 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 3px;
  font-size: 16px;
}

body[data-app-surface="web"] .contract-review-context h2 small {
  color: #7a879b;
  font-size: 11px;
  font-weight: 500;
}

body[data-app-surface="web"] .contract-review-context p {
  margin: 0;
}

body[data-app-surface="web"] .contract-review-current-state {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid #b8dcbe;
  border-radius: 4px;
  color: #2f7d45;
  background: #eef9f0;
  font-size: 12px;
}

body[data-app-surface="web"] .contract-review-context dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  padding-left: 16px;
  border-left: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-context dl div {
  min-width: 0;
}

body[data-app-surface="web"] .contract-review-context dd {
  overflow: hidden;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-app-surface="web"] .contract-review-statusline {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 40px;
  overflow: hidden;
  border: 1px solid #dfe6ef;
  border-radius: 7px;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-statusline span {
  padding: 0 16px;
  color: #7a879b;
  font-size: 12px;
  border-left: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-statusline span:first-child {
  border-left: 0;
}

body[data-app-surface="web"] .contract-review-statusline b {
  margin-left: 4px;
  color: #172033;
}

body[data-app-surface="web"] .contract-review-tabs em {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-left: 5px;
  padding-inline: 4px;
  border-radius: 9px;
  color: #606266;
  background: #f1f4f8;
  font-size: 11px;
  font-style: normal;
}

body[data-app-surface="web"] .contract-review-tabs button.is-active em {
  color: #1677c8;
  background: #eaf4ff;
}

body[data-app-surface="web"] .contract-review-main {
  display: grid;
  grid-template-columns: minmax(380px, .92fr) minmax(600px, 1.45fr);
  min-height: 560px;
  gap: 12px;
}

body[data-app-surface="web"] .contract-source-panel,
body[data-app-surface="web"] .contract-field-panel {
  display: grid;
  min-width: 0;
  min-height: 0;
}

body[data-app-surface="web"] .contract-source-panel {
  grid-template-rows: auto 1fr;
  background: #eef2f7 !important;
}

body[data-app-surface="web"] .contract-source-panel > header > div,
body[data-app-surface="web"] .contract-field-panel > header > div {
  display: grid;
  gap: 2px;
}

body[data-app-surface="web"] .contract-source-pager {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 5px !important;
}

body[data-app-surface="web"] .contract-source-pager label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-source-pager input {
  box-sizing: border-box;
  width: 56px;
  min-width: 56px;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  color: #172033;
  background: #fff;
  text-align: center;
  appearance: textfield;
  -moz-appearance: textfield;
}

body[data-app-surface="web"] .contract-source-pager input::-webkit-inner-spin-button,
body[data-app-surface="web"] .contract-source-pager input::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

body[data-app-surface="web"] .contract-source-pager button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  color: #4e5969;
  background: #fff;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-source-pager button:disabled {
  color: #b6bec9;
  background: #f5f7fa;
  cursor: not-allowed;
}

body[data-app-surface="web"] .contract-source-paper {
  position: relative;
  width: calc(100% - 32px);
  min-height: 450px;
  margin: 16px;
  padding: 42px 40px;
  border: 1px solid #dfe3ea;
  background: #fff;
  box-shadow: 0 8px 22px rgb(31 54 91 / 8%);
}

body[data-app-surface="web"] .contract-source-paper h3 {
  margin: 0 0 30px;
  text-align: center;
  font: 600 19px/1.5 "Songti SC", SimSun, serif;
}

body[data-app-surface="web"] .contract-source-paper h4 {
  margin: 30px 0 10px;
  font-size: 14px;
}

body[data-app-surface="web"] .contract-source-paper p {
  margin: 12px 0;
  color: #3d4655;
  font: 14px/1.85 "Songti SC", SimSun, serif;
}

body[data-app-surface="web"] .paper-page-number {
  position: absolute;
  top: 14px;
  right: 18px;
  color: #9aa4b2;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-source-highlight {
  padding: 8px 10px;
  border-left: 3px solid #f5a623;
  background: #fff6dc;
}

body[data-app-surface="web"] .contract-field-panel {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

body[data-app-surface="web"] .contract-field-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-field-groups button {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #dfe6ef;
  border-radius: 5px;
  color: #5f6b7b;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-field-groups button.is-active {
  color: #1677c8;
  border-color: #9dcaf0;
  background: #eef7ff;
}

body[data-app-surface="web"] .contract-review-field-list {
  overflow-y: auto;
}

body[data-app-surface="web"] .contract-review-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 78px;
  padding: 10px 14px;
  gap: 12px;
  border-bottom: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-field[hidden] {
  display: none;
}

body[data-app-surface="web"] .contract-review-field.is-low-confidence {
  box-shadow: inset 3px 0 #f5a623;
}

body[data-app-surface="web"] .contract-review-field-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

body[data-app-surface="web"] .contract-review-field-main > div {
  display: grid;
  gap: 3px;
}

body[data-app-surface="web"] .contract-review-field-main span,
body[data-app-surface="web"] .contract-review-field-main small {
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-review-field-main i {
  color: #e5484d;
  font-style: normal;
}

body[data-app-surface="web"] .contract-review-field-main strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

body[data-app-surface="web"] .contract-review-field-main button,
body[data-app-surface="web"] .contract-risk-item footer button:not(.is-primary) {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #1677c8;
  background: transparent;
  font-size: 11px;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-review-field-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

body[data-app-surface="web"] .contract-review-field-actions > button,
body[data-app-surface="web"] .contract-risk-item button.is-primary {
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d7dee8;
  border-radius: 4px;
  color: #4e5969;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-review-field-actions > button:first-of-type,
body[data-app-surface="web"] .contract-risk-item button.is-primary {
  color: #1677c8;
  border-color: #9dcaf0;
}

body[data-app-surface="web"] .contract-field-panel > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  min-height: 54px;
  padding: 9px 14px;
  border-top: 1px solid #dfe6ef;
  background: #fff;
}

body[data-app-surface="web"] .contract-review-risk-layout {
  display: block;
}

body[data-app-surface="web"] .contract-risk-list {
  display: grid;
}

body[data-app-surface="web"] .contract-risk-item {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f5;
  box-shadow: inset 3px 0 #f5a623;
}

body[data-app-surface="web"] .contract-risk-item.is-high {
  box-shadow: inset 3px 0 #e5484d;
}

body[data-app-surface="web"] .contract-risk-item > header,
body[data-app-surface="web"] .contract-risk-item > footer {
  display: flex;
  align-items: center;
  gap: 10px;
}

body[data-app-surface="web"] .contract-risk-item > header {
  justify-content: space-between;
}

body[data-app-surface="web"] .contract-risk-item > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-app-surface="web"] .contract-risk-item p {
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.65;
}

body[data-app-surface="web"] .contract-risk-item > footer {
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-risk-item button.is-primary {
  margin-left: auto;
}

body[data-app-surface="web"] .contract-review-inline-risks {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

body[data-app-surface="web"] .contract-review-inline-risk {
  padding: 10px 12px;
  border: 1px solid #f0d39c;
  border-left: 3px solid #f5a623;
  border-radius: 4px;
  background: #fffaf1;
}

body[data-app-surface="web"] .contract-review-inline-risk.is-high {
  border-color: #efb6b8;
  border-left-color: #e5484d;
  background: #fff6f6;
}

body[data-app-surface="web"] .contract-review-inline-risk > header,
body[data-app-surface="web"] .contract-review-inline-risk > footer,
body[data-app-surface="web"] .contract-review-inline-risk > header > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

body[data-app-surface="web"] .contract-review-inline-risk > header {
  justify-content: space-between;
}

body[data-app-surface="web"] .contract-review-inline-risk p {
  margin: 7px 0;
  color: #48586b;
  font-size: 12px;
  line-height: 1.55;
}

body[data-app-surface="web"] .contract-review-inline-risk > footer {
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-review-inline-risk > footer button {
  margin-left: auto;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid #dfb66d;
  border-radius: 4px;
  color: #9a6413;
  background: #fff;
  cursor: pointer;
}

body[data-app-surface="web"] .contract-review-risk-supplement {
  align-items: start;
}

body[data-app-surface="web"] .claim-query {
  grid-template-columns: minmax(210px, 1.4fr) minmax(130px, .8fr) minmax(150px, .9fr) minmax(150px, .9fr) 150px;
}

body[data-app-surface="web"] .claim-deadline-overdue span,
body[data-app-surface="web"] .claim-deadline-overdue small {
  color: #d14343;
  font-weight: 600;
}

body[data-app-surface="web"] .variation-table.claim-table {
  width: 100%;
  min-width: 1775px !important;
  table-layout: fixed;
}

body[data-app-surface="web"] .claim-table col.claim-col-no { width: 118px; }
body[data-app-surface="web"] .claim-table col.claim-col-initiator { width: 72px; }
body[data-app-surface="web"] .claim-table col.claim-col-title { width: 195px; }
body[data-app-surface="web"] .claim-table col.claim-col-contract { width: 185px; }
body[data-app-surface="web"] .claim-table col.claim-col-claimant { width: 172px; }
body[data-app-surface="web"] .claim-table col.claim-col-respondent { width: 180px; }
body[data-app-surface="web"] .claim-table col.claim-col-source { width: 120px; }
body[data-app-surface="web"] .claim-table col.claim-col-due { width: 122px; }
body[data-app-surface="web"] .claim-table col.claim-col-amount { width: 116px; }
body[data-app-surface="web"] .claim-table col.claim-col-days { width: 86px; }
body[data-app-surface="web"] .claim-table col.claim-col-status { width: 126px; }
body[data-app-surface="web"] .claim-table col.claim-col-owner { width: 78px; }
body[data-app-surface="web"] .claim-table col.claim-col-updated { width: 135px; }
body[data-app-surface="web"] .claim-table col.claim-col-actions { width: 70px; }

body[data-app-surface="web"] .claim-table th {
  white-space: nowrap;
}

body[data-app-surface="web"] .claim-table td:nth-child(3) strong,
body[data-app-surface="web"] .claim-table td:nth-child(4) small,
body[data-app-surface="web"] .claim-table td:nth-child(5) span,
body[data-app-surface="web"] .claim-table td:nth-child(6) span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-app-surface="web"] .claim-detail-page .variation-section {
  min-height: 0;
}

body[data-app-surface="web"] .claim-detail-page .variation-section > header {
  align-items: flex-start;
  gap: 16px;
}

body[data-app-surface="web"] .claim-detail-page .variation-section > header small {
  display: block;
  margin-top: 5px;
  color: #7b8798;
}

body[data-app-surface="web"] .claim-detail-page .variation-section > header > div:last-child {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-app-surface="web"] .claim-subsection,
body[data-app-surface="web"] .claim-result-card {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e3eaf2;
}

body[data-app-surface="web"] .claim-subsection h4,
body[data-app-surface="web"] .claim-result-card h4 {
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
  color: #26364b;
  font-size: 14px;
}

body[data-app-surface="web"] .claim-subsection h4 span {
  color: #1677c8;
  font-weight: 600;
}

body[data-app-surface="web"] .claim-measure-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body[data-app-surface="web"] .claim-business-table {
  min-width: 980px;
}

body[data-app-surface="web"] .claim-business-table small {
  color: #8793a5;
}

body[data-app-surface="web"] .claim-source-link {
  margin: 12px 0 0;
}

body[data-app-surface="web"] .claim-source-link a {
  color: #1677c8;
  cursor: pointer;
}

body[data-app-surface="web"] .claim-text-danger {
  color: #d14343;
}

@media (max-width: 1280px) {
  body[data-app-surface="web"] .claim-measure-grid {
    grid-template-columns: 1fr;
  }
}

body[data-app-surface="web"] .contract-review-risk-layout > aside {
  padding: 16px;
}

body[data-app-surface="web"] .contract-review-risk-layout > aside dl {
  display: grid;
  gap: 0;
  margin: 14px 0;
}

body[data-app-surface="web"] .contract-review-risk-layout > aside dl div {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f5;
}

body[data-app-surface="web"] .contract-review-risk-layout > aside :is(dt, dd, p) {
  margin: 0;
  color: #7a879b;
  font-size: 12px;
  line-height: 1.65;
}

body[data-app-surface="web"] .contract-review-risk-layout > aside dd {
  color: #172033;
  font-weight: 650;
}

@media (max-width: 1250px) {
  body[data-app-surface="web"] .contract-review-context {
    grid-template-columns: auto minmax(240px, 1fr) auto;
  }

  body[data-app-surface="web"] .contract-review-context dl {
    grid-column: 2;
    padding: 10px 0 0;
    border-top: 1px solid #edf0f5;
    border-left: 0;
  }

  body[data-app-surface="web"] .contract-review-main,
  body[data-app-surface="web"] .contract-review-risk-layout {
    grid-template-columns: 1fr;
  }

  body[data-app-surface="web"] .contract-review-risk-layout > aside {
    display: none;
  }
}

body[data-app-surface="web"] .contract-record-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 10px 16px;
  border: 1px solid #dfe6ef;
  border-radius: 8px;
  background: #fff;
}

body[data-app-surface="web"] .contract-record-bar > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 2px 10px;
}

body[data-app-surface="web"] .contract-record-bar span,
body[data-app-surface="web"] .contract-record-bar small {
  color: #7a879b;
  font-size: 11px;
}

body[data-app-surface="web"] .contract-record-bar h2 {
  margin: 0;
  color: #172033;
  font-size: 16px;
}

body[data-app-surface="web"] .contract-record-bar small {
  grid-column: 2;
}

body[data-app-surface="web"] .contract-variation-page .two-column-layout {
  align-items: start;
}

body[data-app-surface="web"] .contract-variation-page .content-card {
  min-height: 0;
}

body[data-app-surface="web"] .contract-variation-page .content-card > header {
  min-height: 48px;
  padding: 9px 14px;
}

body[data-app-surface="web"] .contract-variation-page .drawer-detail-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  body[data-app-surface="web"] .contract-module-page :is(.contract-kpis, .business-summary, .contract-review-metrics, .metric-grid.compact) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body[data-app-surface="web"] .contract-module-page .business-query,
  body[data-app-surface="web"] .contract-review-workbench .document-compare {
    grid-template-columns: 1fr 1fr;
  }
}

/* System-wide Web shell and navigation baseline.
   The hierarchy follows the supplied light enterprise sidebar reference. */
body[data-app-surface="web"] .web-sidebar {
  color: #475467;
  border-right: 1px solid #e5eaf2;
  background: #fff;
  box-shadow: 5px 0 18px rgb(31 54 91 / 4%);
}

body[data-app-surface="web"] .web-brand {
  padding: 0 16px;
  gap: 11px;
  border-bottom: 1px solid #edf0f5;
  background: #fff;
}

body[data-app-surface="web"] .web-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #3268ef, #4e83f8);
  box-shadow: 0 6px 14px rgb(50 104 239 / 22%);
}

body[data-app-surface="web"] .web-brand strong {
  color: #17213a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

body[data-app-surface="web"] .web-brand small {
  color: #8995a8;
  letter-spacing: 0;
}

body[data-app-surface="web"] .web-nav-scroll {
  padding: 13px 10px 20px;
  scrollbar-color: #d8e0ec transparent;
}

body[data-app-surface="web"] .nav-group + .nav-group {
  margin-top: 4px;
}

body[data-app-surface="web"] .nav-group-title {
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  color: #525f72;
  font-size: 14px;
  transition: color 160ms ease, background-color 160ms ease;
}

body[data-app-surface="web"] .nav-group-title--direct {
  grid-template-columns: 28px minmax(0, 1fr);
}

body[data-app-surface="web"] .web-menu-icon {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  justify-self: start;
  background-repeat: no-repeat;
  background-size: 400% 200%;
}

/* The sprite tiles have different transparent gutters. Shift the icon boxes so
   the visible colored marks share one left edge while labels stay aligned. */
body[data-app-surface="web"] .web-menu-icon--workbench,
body[data-app-surface="web"] .web-menu-icon--quality,
body[data-app-surface="web"] .web-menu-icon--funds,
body[data-app-surface="web"] .web-menu-icon--system { transform: translateX(-7px); }
body[data-app-surface="web"] .web-menu-icon--contract,
body[data-app-surface="web"] .web-menu-icon--safety,
body[data-app-surface="web"] .web-menu-icon--subcontract { transform: translateX(-5px); }
body[data-app-surface="web"] .web-menu-icon--project,
body[data-app-surface="web"] .web-menu-icon--material,
body[data-app-surface="web"] .web-menu-icon--personnel { transform: translateX(-2px); }

body[data-app-surface="web"] .web-menu-icon--workbench,
body[data-app-surface="web"] .web-menu-icon--contract,
body[data-app-surface="web"] .web-menu-icon--project,
body[data-app-surface="web"] .web-menu-icon--progress,
body[data-app-surface="web"] .web-menu-icon--quality,
body[data-app-surface="web"] .web-menu-icon--safety,
body[data-app-surface="web"] .web-menu-icon--material,
body[data-app-surface="web"] .web-menu-icon--cost {
  background-image: url('../assets/web-menu-icons-a-v1.png');
}

body[data-app-surface="web"] .web-menu-icon--funds,
body[data-app-surface="web"] .web-menu-icon--subcontract,
body[data-app-surface="web"] .web-menu-icon--personnel,
body[data-app-surface="web"] .web-menu-icon--equipment,
body[data-app-surface="web"] .web-menu-icon--system {
  background-image: url('../assets/web-menu-icons-b-v1.png');
}

body[data-app-surface="web"] .web-menu-icon--workbench,
body[data-app-surface="web"] .web-menu-icon--funds { background-position: 0 0; }
body[data-app-surface="web"] .web-menu-icon--contract,
body[data-app-surface="web"] .web-menu-icon--subcontract { background-position: 33.333% 0; }
body[data-app-surface="web"] .web-menu-icon--project,
body[data-app-surface="web"] .web-menu-icon--personnel { background-position: 66.667% 0; }
body[data-app-surface="web"] .web-menu-icon--progress,
body[data-app-surface="web"] .web-menu-icon--equipment { background-position: 100% 0; }
body[data-app-surface="web"] .web-menu-icon--quality,
body[data-app-surface="web"] .web-menu-icon--system { background-position: 0 100%; }
body[data-app-surface="web"] .web-menu-icon--safety { background-position: 33.333% 100%; }
body[data-app-surface="web"] .web-menu-icon--material { background-position: 66.667% 100%; }
body[data-app-surface="web"] .web-menu-icon--cost { background-position: 100% 100%; }

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .web-menu-icon {
  transform: none;
}

@media (max-width: 1199px) {
  body[data-app-surface="web"] .web-menu-icon { transform: none; }
}

body[data-app-surface="web"] .nav-group-title > .ui-icon {
  color: #6f7b8d;
}

body[data-app-surface="web"] .nav-group-title:hover,
body[data-app-surface="web"] .nav-group.is-open > .nav-group-title {
  color: #245fd7;
  font-weight: 550;
  background: #f3f7fd;
}

body[data-app-surface="web"] .nav-group-title:hover > .ui-icon,
body[data-app-surface="web"] .nav-group.is-open > .nav-group-title > .ui-icon {
  color: #3972e6;
}

body[data-app-surface="web"] .nav-group-title--direct.is-active {
  color: #2864de;
  background: #eaf2ff;
}

body[data-app-surface="web"] .nav-group-title--direct.is-active::before,
body[data-app-surface="web"] .nav-item.is-active::before {
  display: none;
}

body[data-app-surface="web"] .nav-group-title--direct.is-active > .ui-icon {
  color: #2864de;
}

body[data-app-surface="web"] :is(.nav-group-items, .nav-group-items--sectioned) {
  position: relative;
  margin: 2px 0 3px 20px;
  padding: 2px 0 4px 10px;
  border-left: 1px solid #e2e8f2;
}

body[data-app-surface="web"] .nav-subgroup-items {
  position: relative;
  margin-left: 17px;
  padding: 1px 0 3px 9px;
  border-left: 1px solid #e7ecf3;
}

body[data-app-surface="web"] :is(.nav-subgroup-title, .nav-subgroup-label) {
  width: 100%;
  min-height: 38px;
  margin: 0;
  padding: 0 10px;
  border-radius: 7px;
  color: #667386;
  font-size: 13px;
}

body[data-app-surface="web"] .nav-subgroup summary.nav-subgroup-title {
  min-height: 38px;
  padding: 0 10px;
  color: #667386;
  font-size: 13px;
}

body[data-app-surface="web"] .nav-subgroup summary.nav-subgroup-title:hover,
body[data-app-surface="web"] .nav-subgroup-label:hover {
  color: #2864de;
  background: #f4f7fc;
}

body[data-app-surface="web"] .nav-item,
body[data-app-surface="web"] .nav-item--level-2,
body[data-app-surface="web"] .nav-item--level-3 {
  width: 100%;
  min-height: 38px;
  margin: 1px 0;
  padding: 8px 10px;
  border-radius: 7px;
  color: #687588;
  font-size: 13px;
}

body[data-app-surface="web"] .nav-item:hover {
  color: #2864de;
  background: #f4f7fc;
}

body[data-app-surface="web"] .nav-item.is-active {
  color: #2864de;
  font-weight: 650;
  background: #eaf2ff;
}

body[data-app-surface="web"] :is(.nav-group-title, .nav-subgroup-title, .nav-item):focus-visible {
  outline: 2px solid #7ca5f6;
  outline-offset: -2px;
}

body[data-app-surface="web"] .web-header {
  border-bottom-color: #e7ebf2;
  background: rgb(255 255 255 / 98%);
  box-shadow: 0 1px 8px rgb(31 54 91 / 3%);
}

/* Extend the accepted three-domain surface system to every Web page. */
body[data-app-surface="web"] .page-body {
  gap: var(--web-surface-gap);
}

body[data-app-surface="web"] .page-body > :is(
  .el-card,
  .content-card,
  .query-panel,
  .data-card,
  .summary-card,
  .dashboard-card,
  .panel
) {
  min-width: 0;
  border-color: #e2e8f1;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] .page-body > :is(.query-panel, .action-bar) {
  margin-bottom: 0;
}

body[data-app-surface="web"] :is(.metric-grid, .business-workbench__metrics) {
  gap: 14px;
  border: 0;
  background: transparent;
}

body[data-app-surface="web"] .business-workbench__metrics article {
  min-height: 104px;
  padding: 16px 18px;
  border: 1px solid #e4eaf3;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] .business-workbench__metrics article + article {
  border-left: 1px solid #e4eaf3;
}

body[data-app-surface="web"] :is(.business-workbench__hero, .workbench-card) {
  border-color: #e2e8f1;
  border-radius: var(--web-surface-radius);
  background: #fff;
  box-shadow: var(--web-card-shadow);
}

body[data-app-surface="web"] .business-workbench__hero {
  border-left: 4px solid #4f7ee8;
}

body[data-app-surface="web"] .business-workbench__hero span,
body[data-app-surface="web"] .workbench-card > header > button {
  color: #356edb;
}

body[data-app-surface="web"] .business-workbench__hero button.is-primary,
body[data-app-surface="web"] .workbench-ai-entry > button {
  border-color: #356edb;
  background: #356edb;
}

body[data-app-surface="web"] .workbench-quick-actions > button > span,
body[data-app-surface="web"] .workbench-ai-entry > header > span {
  color: #356edb;
  background: #edf3ff;
}

body[data-app-surface="web"] .web-content :is(table, th, td, input, select, textarea, button) {
  font-family: var(--font-sans);
}

body[data-app-surface="web"] .web-content :is(.content-card, .el-card, .workbench-card) > header {
  min-height: 52px;
  padding: 13px 18px;
}

body[data-app-surface="web"] .web-content :is(.content-card, .el-card, .workbench-card) > header h2,
body[data-app-surface="web"] .web-content :is(.content-card, .el-card, .workbench-card) > header h3 {
  color: #17233e;
  font-size: 15px;
  font-weight: 650;
  line-height: 22px;
}

@media (max-width: 1199px) {
  body[data-app-surface="web"] .web-shell:not(.is-sidebar-collapsed) :is(.nav-group-items, .nav-subgroup-items) {
    border-left: 0;
  }
}

/* 2026-09-14: compact Web page tabs, usable collapsed navigation and one-screen W01. */
body[data-app-surface="web"] .web-content > .page-tabs-header {
  display: flex;
  align-items: stretch;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 10px;
  border: 1px solid #e3e9f3;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(31 54 91 / 5%);
}

body[data-app-surface="web"] .page-tabs {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 auto;
  gap: 2px;
}

body[data-app-surface="web"] .page-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 0 13px;
  gap: 7px;
  color: #5f6c80;
  font-size: 13px;
  text-decoration: none;
}

body[data-app-surface="web"] .page-tab.is-active {
  color: #2864de;
  font-weight: 600;
  background: #f5f8ff;
}

body[data-app-surface="web"] .page-tab.is-active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 2px;
  border-radius: 2px 2px 0 0;
  background: #3478eb;
  content: "";
}

body[data-app-surface="web"] .page-tab > .ui-icon {
  width: 15px;
  height: 15px;
}

body[data-app-surface="web"] .page-tab > button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #8a96a7;
  background: transparent;
}

body[data-app-surface="web"] .page-tab > button:hover {
  color: #34445b;
  background: #e9eef7;
}

body[data-app-surface="web"] .page-tabs-header .page-header-actions {
  align-self: center;
}

body[data-app-surface="web"] .web-content--workbench {
  display: grid;
  height: calc(100dvh - var(--web-header-height));
  min-height: 0;
  grid-template-rows: 42px minmax(0, 1fr);
  padding: 10px 14px;
  overflow: hidden;
}

body[data-app-surface="web"] .web-content--workbench > .page-tabs-header {
  margin-bottom: 0;
}

body[data-app-surface="web"] .web-content--workbench > .page-body {
  min-height: 0;
  padding-top: 10px;
  overflow: hidden;
}

body[data-app-surface="web"] .business-workbench {
  height: 100%;
  min-height: 0;
  grid-template-rows: 76px 232px minmax(0, 1fr);
  gap: 10px;
}

body[data-app-surface="web"] .business-workbench__metrics {
  gap: 10px;
}

body[data-app-surface="web"] .business-workbench__metrics button {
  align-content: center;
  min-height: 76px;
  padding: 9px 14px;
  gap: 1px;
}

body[data-app-surface="web"] .business-workbench__metrics button::before {
  width: 3px;
}

body[data-app-surface="web"] .business-workbench__metrics span {
  font-size: 12px;
}

body[data-app-surface="web"] .business-workbench__metrics b {
  font-size: 23px;
  line-height: 28px;
}

body[data-app-surface="web"] .business-workbench__metrics small {
  overflow: hidden;
  font-size: 11px;
  line-height: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-app-surface="web"] :is(.business-workbench__primary, .business-workbench__secondary) {
  min-height: 0;
  gap: 10px;
}

body[data-app-surface="web"] .business-workbench__primary > .workbench-card,
body[data-app-surface="web"] .business-workbench__secondary > .workbench-card {
  min-height: 0;
}

body[data-app-surface="web"] .web-content .business-workbench .workbench-card > header {
  min-height: 40px;
  padding: 7px 14px;
}

body[data-app-surface="web"] .workbench-task-list > button {
  min-height: 38px;
  padding: 4px 12px;
  grid-template-columns: 3px minmax(0, 1fr) auto auto;
  gap: 8px;
}

body[data-app-surface="web"] .workbench-task-list > button > i {
  width: 3px;
  height: 24px;
}

body[data-app-surface="web"] .workbench-task-list b,
body[data-app-surface="web"] .workbench-focus b {
  font-size: 12px;
}

body[data-app-surface="web"] .workbench-task-list small,
body[data-app-surface="web"] .workbench-task-list time,
body[data-app-surface="web"] .workbench-task-list em,
body[data-app-surface="web"] .workbench-focus small,
body[data-app-surface="web"] .workbench-focus em {
  font-size: 10px;
}

body[data-app-surface="web"] .workbench-focus > button {
  min-height: 63px;
  padding: 9px 12px;
}

body[data-app-surface="web"] .workbench-focus i.is-primary {
  background: #409eff;
}

body[data-app-surface="web"] .business-workbench__secondary {
  min-height: 0;
}

body[data-app-surface="web"] .workbench-progress {
  display: grid;
  min-height: 0;
  grid-template-rows: 40px 42px minmax(120px, 1fr) auto;
}

body[data-app-surface="web"] .workbench-progress__meta {
  min-height: 42px;
  padding: 7px 14px 0;
}

body[data-app-surface="web"] .workbench-chart {
  min-height: 0;
  padding: 0 12px;
}

body[data-app-surface="web"] .workbench-chart svg {
  height: 100%;
  min-height: 150px;
  max-height: 210px;
}

body[data-app-surface="web"] .workbench-deviation {
  margin: 0 12px 10px;
}

body[data-app-surface="web"] .workbench-deviation > header {
  min-height: 30px;
}

body[data-app-surface="web"] .workbench-deviation > button {
  min-height: 34px;
}

body[data-app-surface="web"] .workbench-quick-actions > button {
  min-height: 39px;
}

/* Collapsed mode keeps only first-level icons; child menus open as a flyout. */
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .web-sidebar {
  overflow: visible;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .web-brand {
  justify-content: center;
  padding-inline: 8px;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .web-brand > div,
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-title > .nav-group-label,
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-title > .ui-icon:last-child {
  display: none;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .web-nav-scroll {
  padding-inline: 8px;
  overflow: visible;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group {
  position: relative;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-title {
  display: flex;
  justify-content: center;
  width: 54px;
  min-height: 44px;
  padding: 0;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-title > .ui-icon:first-child {
  display: block;
  width: 18px;
  height: 18px;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-title > .web-menu-icon {
  display: block;
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-items {
  position: absolute;
  z-index: 100;
  top: -4px;
  left: 60px;
  display: none !important;
  width: 250px;
  max-height: min(620px, calc(100dvh - 72px));
  margin: 0;
  padding: 8px;
  overflow: auto;
  border: 1px solid #dfe6ef;
  border-left: 1px solid #dfe6ef;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 10px 30px rgb(27 45 75 / 16%);
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group:hover > .nav-group-items,
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group:focus-within > .nav-group-items {
  display: block !important;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-items .nav-item {
  display: flex;
  min-height: 36px;
  padding: 7px 10px;
  color: #53657d;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-items .nav-item:hover,
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group-items .nav-item.is-active {
  color: #1d5fd0;
  background: #edf4ff;
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group--direct .nav-group-title > .nav-group-label {
  position: absolute;
  z-index: 101;
  top: 5px;
  left: 60px;
  display: none;
  width: max-content;
  padding: 7px 10px;
  border: 1px solid #dfe6ef;
  border-radius: 5px;
  color: #34445b;
  background: #fff;
  box-shadow: 0 8px 22px rgb(27 45 75 / 14%);
}

body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group--direct:hover .nav-group-title > .nav-group-label,
body[data-app-surface="web"] .web-shell.is-sidebar-collapsed .nav-group--direct:focus-within .nav-group-title > .nav-group-label {
  display: block;
}

@media (max-height: 760px) and (min-width: 1101px) {
  body[data-app-surface="web"] .business-workbench {
    grid-template-rows: 62px 202px minmax(0, 1fr);
    gap: 8px;
  }

  body[data-app-surface="web"] .business-workbench__metrics button {
    min-height: 62px;
    padding-block: 4px;
  }

  body[data-app-surface="web"] .workbench-task-list > button {
    min-height: 40px;
  }

  body[data-app-surface="web"] .workbench-focus > button {
    min-height: 53px;
  }

  body[data-app-surface="web"] .workbench-progress {
    grid-template-rows: 36px 36px minmax(100px, 1fr) auto;
  }

  body[data-app-surface="web"] .web-content .business-workbench .workbench-card > header {
    min-height: 36px;
    padding-block: 4px;
  }

  body[data-app-surface="web"] .workbench-progress__meta {
    min-height: 36px;
    padding-top: 4px;
  }

  body[data-app-surface="web"] .workbench-chart svg {
    min-height: 105px;
    max-height: 125px;
  }

  body[data-app-surface="web"] .workbench-deviation > header,
  body[data-app-surface="web"] .workbench-deviation > button {
    min-height: 28px;
  }

  body[data-app-surface="web"] .workbench-quick-actions > button {
    min-height: 36px;
  }
}

@media (max-width: 1100px) {
  body[data-app-surface="web"] .web-content--workbench {
    height: auto;
    min-height: calc(100dvh - var(--web-header-height));
    overflow: auto;
  }

  body[data-app-surface="web"] .web-content--workbench > .page-body {
    overflow: visible;
  }

  body[data-app-surface="web"] .business-workbench {
    height: auto;
    grid-template-rows: auto;
  }
}
/* Contract ledger: focused detail and compact entry form */
.contract-detail-page{display:flex;flex-direction:column;gap:12px;min-width:0}
.contract-detail-page .el-tag>i{display:none}
.contract-detail-toolbar{display:flex;min-height:60px;align-items:center;justify-content:space-between;gap:20px;padding:10px 16px;background:#fff;border:1px solid #dfe6ef;border-radius:6px}
.contract-detail-heading{display:flex;align-items:center;gap:12px;min-width:0}
.contract-back{display:inline-flex!important;width:32px!important;height:32px!important;flex:0 0 32px;align-items:center;justify-content:center;padding:0!important;border:1px solid #d7e0ea!important;border-radius:4px!important;color:#52657a!important;background:#fff!important;cursor:pointer}
.contract-back:hover{border-color:#9fc3e3!important;color:#1677c8!important;background:#f4f9fd!important}
.contract-back svg{width:15px;height:15px}
.contract-detail-title{display:flex;align-items:center;gap:12px;min-width:0}
.contract-detail-title h2{margin:0;font-size:20px;color:#17243a;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.contract-detail-title>span:not(.el-tag):not(.status-tag){color:#748399;font-size:13px;white-space:nowrap}
.contract-detail-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.contract-detail-actions button,.contract-analysis-layout button,.contract-file-empty button{height:32px;padding:0 14px;border:1px solid #cfd9e6;border-radius:4px;background:#fff;color:#34475e;cursor:pointer}
.contract-detail-actions .is-primary,.contract-analysis-layout .is-primary,.contract-file-empty .is-primary{border-color:#1677c8;background:#1677c8;color:#fff}
.contract-detail-tabs{display:flex;align-items:center;gap:24px;height:44px;padding:0 20px;background:#fff;border:1px solid #dfe6ef;border-radius:6px}
.contract-detail-tabs button{align-self:stretch;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#52657a;cursor:pointer}
.contract-detail-tabs button.is-active{border-bottom-color:#1677c8;color:#1677c8;font-weight:600}
.contract-detail-body{min-height:520px;padding:18px 20px;background:#fff;border:1px solid #dfe6ef;border-radius:6px}
.contract-detail-section h3{margin:0 0 16px;font-size:16px;color:#17243a}
.contract-detail-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-top:1px solid #e5ebf2;border-left:1px solid #e5ebf2}
.contract-detail-summary>div{display:grid;grid-template-columns:112px minmax(0,1fr);min-height:56px;border-right:1px solid #e5ebf2;border-bottom:1px solid #e5ebf2}
.contract-detail-summary dt,.contract-detail-summary dd{display:flex;align-items:center;margin:0;padding:10px 12px}
.contract-detail-summary dt{background:#f7f9fc;color:#63738a}
.contract-detail-summary dd{color:#1d2b3f;overflow-wrap:anywhere}
.contract-return-reason{display:flex;gap:14px;margin-top:16px;padding:13px 16px;border-left:3px solid #e6a23c;background:#fff8ec;color:#6f4d17}
.contract-file-version-heading{margin-top:20px!important}
.contract-file-version-list{display:grid;gap:8px}
.contract-file-version-list article{display:flex;min-height:64px;align-items:center;gap:12px;padding:10px 14px;border:1px solid #e0e7ef;border-radius:6px;background:#fff}
.contract-version-file-icon{display:inline-flex;width:36px;height:36px;flex:0 0 36px;align-items:center;justify-content:center;border-radius:5px;background:#eaf5fb;color:#1685b8}
.contract-version-file-icon svg{width:18px;height:18px}
.contract-file-version-list article>div{min-width:0;flex:1}
.contract-file-version-list b,.contract-file-version-list small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.contract-file-version-list b{color:#24354b;font-size:14px}
.contract-file-version-list small{margin-top:5px;color:#7a889b;font-size:12px}
.contract-version-file-state{flex:0 0 auto;padding:4px 9px;border:1px solid #d8e0e9;border-radius:4px;background:#f5f7fa;color:#647489;font-size:12px}
.contract-version-file-state.is-effective{border-color:#b9dfc6;background:#edf9f1;color:#23864a}
.contract-version-file-empty{padding:24px;border:1px dashed #d8e1eb;color:#8793a5;text-align:center}
.contract-document-layout{display:flex;justify-content:center;align-items:flex-start}
.contract-file-icon{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:4px;background:#eaf5fb;color:#1685b8}.contract-file-icon svg{width:18px;height:18px}
.contract-paper{width:min(100%,760px);min-height:560px;padding:42px 58px;border:1px solid #d9e0e8;background:#fff;box-shadow:0 5px 18px rgba(32,48,70,.08);color:#303b4b;line-height:1.9}
.contract-paper header{text-align:right;color:#6e7d90;font-size:12px}.contract-paper h2{margin:22px 0 30px;text-align:center;font-size:24px;color:#17243a}.contract-paper h4{margin:26px 0 6px;font-size:15px}.contract-paper p{margin:6px 0}.contract-party{padding-left:24px}
.contract-file-empty{display:flex;min-height:360px;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#758397;text-align:center}.contract-file-empty>span{display:flex;width:54px;height:54px;align-items:center;justify-content:center;border-radius:50%;background:#f1f5f9}.contract-file-empty svg{width:24px;height:24px}.contract-file-empty b{color:#34475e}.contract-file-empty p{margin:0}
.contract-analysis-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:20px}.contract-analysis-layout>section,.contract-source-preview{border:1px solid #dfe6ef;border-radius:6px}.contract-analysis-layout>section{padding:18px}.contract-analysis-layout>section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.contract-analysis-layout h3{margin:0;font-size:16px}
.contract-extraction-list{margin-bottom:16px;border-top:1px solid #e8edf3}.contract-extraction-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 4px;border-bottom:1px solid #e8edf3}.contract-extraction-list article div{display:grid;grid-template-columns:118px minmax(0,1fr);align-items:center;gap:4px 14px}.contract-extraction-list span{color:#68778c}.contract-extraction-list b{color:#1d2b3f}.contract-extraction-list small{grid-column:2;color:#8995a6}.contract-extraction-list em{font-style:normal;color:#67788f}
.contract-source-preview{padding:26px 30px;background:#fbfaf6;line-height:1.8}.contract-source-preview>span{color:#7b899c;font-size:12px}.contract-source-preview h4{margin:18px 0 10px;font-size:17px}.contract-source-preview mark{display:block;margin-top:22px;padding:12px;background:#fff1b8;color:#584719}
.contract-approval-history{max-width:760px;margin:8px 0 0;padding:0;list-style:none}.contract-approval-history li{position:relative;display:flex;gap:14px;min-height:78px;padding-left:5px}.contract-approval-history li:after{position:absolute;left:10px;top:22px;bottom:0;width:1px;background:#dce4ee;content:""}.contract-approval-history li:last-child:after{display:none}.contract-approval-history li>span{position:relative;z-index:1;width:12px;height:12px;margin-top:4px;border:3px solid #c8d3df;border-radius:50%;background:#fff}.contract-approval-history li.is-complete>span{border-color:#32a56d}.contract-approval-history li.is-returned>span{border-color:#e6a23c}.contract-approval-history b,.contract-approval-history small{display:block}.contract-approval-history small{margin-top:6px;color:#748399}
.contract-entry-form--compact{display:flex;flex-direction:column;gap:12px}.contract-entry-form--compact .contract-form-section{display:flex;flex-direction:column;gap:16px;margin:0;padding:16px 18px;border:1px solid #dfe6ef;border-radius:4px}.contract-entry-form--compact .contract-form-section header{margin-bottom:0}.contract-entry-form--compact .contract-form-section header h3{font-size:15px}.contract-entry-form--compact .form-two-columns{column-gap:22px}.contract-file-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;background:#f7f9fc;border:1px dashed #c8d5e3}.contract-file-row>div{display:flex;align-items:center;gap:12px;min-width:0}.contract-file-row b,.contract-file-row small{display:block}.contract-file-row b{color:#27364a}.contract-file-row small{margin-top:3px;color:#7b899c}.contract-file-button input{position:absolute;width:1px;height:1px;opacity:0}.contract-file-button span{display:inline-flex;height:32px;align-items:center;padding:0 14px;border:1px solid #b9ccdf;border-radius:4px;background:#fff;color:#1677c8;cursor:pointer}.contract-file-status{display:flex;align-items:center;gap:12px;margin-top:0;color:#738196}.contract-file-status b{color:#53657a}.contract-file-status.is-pending b{color:#b77715}.contract-file-status button{margin-left:auto;border:0;background:transparent;color:#1677c8;cursor:pointer}
@media(max-width:1100px){.contract-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.contract-document-layout,.contract-analysis-layout{grid-template-columns:1fr}.contract-paper{padding:32px 38px}}
/* W17 履约义务台账：合同依据、责任任务、证据审核与异常状态 */
.obligation-toolbar-actions{display:flex;gap:8px;align-items:center}
body[data-app-surface="web"] .contract-obligation-page .obligation-ledger-card .obligation-query{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(150px,.8fr)) auto!important;align-items:end}
.obligation-query-actions{display:flex;align-items:center;gap:8px;white-space:nowrap}
.obligation-query-actions button{width:auto!important;min-width:64px;flex:0 0 auto}
.obligation-table{min-width:1240px}
.obligation-table td{vertical-align:middle}
.obligation-table td strong,.obligation-table td span{display:block}
.obligation-table td small{display:block;margin-top:4px;color:#8793a6;line-height:1.35}
.obligation-table .obligation-due.is-overdue span,.obligation-table .obligation-due.is-overdue small{color:#d94a4a}
.obligation-table .obligation-due.is-soon small{color:#b7791f}
.obligation-status{display:inline-flex!important;align-items:center;min-height:26px;padding:2px 9px;border:1px solid #d8e0eb;border-radius:4px;background:#f5f7fa;color:#556274;font-size:12px;white-space:nowrap}
.obligation-status.is-pending_execution,.obligation-status.is-in_progress{border-color:#b8d5f5;background:#eef6ff;color:#1769aa}
.obligation-status.is-pending_review,.obligation-status.is-extension_pending{border-color:#f2d39d;background:#fff7e8;color:#a86709}
.obligation-status.is-returned,.obligation-status.is-overdue,.obligation-status.is-exception{border-color:#f3b8b8;background:#fff1f1;color:#c23b3b}
.obligation-status.is-completed,.obligation-status.is-closed,.obligation-status.is-approved{border-color:#b9dfc6;background:#edf9f1;color:#23864a}
.obligation-candidate-list{display:grid;gap:12px}
.obligation-candidate-list article{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:18px;border:1px solid #dce4ee;border-radius:8px;background:#fff}
.obligation-candidate-list article>div{min-width:0}
.obligation-candidate-list span,.obligation-candidate-list small{color:#7c899b;font-size:12px}
.obligation-candidate-list h3{margin:6px 0;font-size:16px}
.obligation-candidate-list p{margin:0 0 8px;color:#4e5d70;line-height:1.65}
.obligation-form{display:grid;gap:16px}
.obligation-form .contract-form-section{display:flex;flex-direction:column;gap:18px;padding:18px 20px;border-radius:6px}
.obligation-form .contract-form-section>header{min-height:24px;margin:0}
.obligation-form .contract-form-section>header h3{font-size:16px}
.obligation-form .form-two-columns{gap:18px 24px}
.obligation-form .el-form-item{gap:8px}
.obligation-form .el-form-item__label{margin-bottom:0!important}
.obligation-form textarea{min-height:88px!important}
.obligation-source-card>b{display:block;margin-bottom:8px;color:#1769aa}
.obligation-source-card>p{margin:0;padding:12px 14px;border-left:3px solid #3b82f6;background:#f6f9fd;color:#3f4d60;line-height:1.7}
.obligation-detail{display:grid;gap:16px}
.obligation-detail-hero{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 20px;border:1px solid #dce4ee;border-radius:8px;background:#f8fafc}
.obligation-detail-hero span{color:#7c899b;font-size:12px}
.obligation-detail-hero h2{margin:7px 0;font-size:20px}
.obligation-detail-hero p{margin:0;color:#58677a}
.obligation-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dce4ee;border-radius:8px;overflow:hidden}
.obligation-detail-grid div{padding:13px 16px;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3}
.obligation-detail-grid div:nth-child(3n){border-right:0}
.obligation-detail-grid div:nth-last-child(-n+3){border-bottom:0}
.obligation-detail-grid span{display:block;margin-bottom:5px;color:#7c899b;font-size:12px}
.obligation-detail-grid b{font-size:14px}
.obligation-detail-section{padding:17px 18px;border:1px solid #dce4ee;border-radius:8px}
.obligation-detail-section>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.obligation-detail-section h3{margin:0;font-size:15px}
.obligation-detail-section header span{color:#7c899b;font-size:12px}
.obligation-detail-section blockquote{margin:0;padding:13px 15px;border-left:3px solid #3b82f6;background:#f7f9fc;color:#405064;line-height:1.7}
.obligation-two{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.obligation-two p{margin:10px 0 0;color:#536174;line-height:1.65}
.obligation-evidence-list{display:grid;gap:8px}
.obligation-evidence-list article{display:flex;justify-content:space-between;gap:16px;padding:12px 14px;background:#f8fafc;border-radius:6px}
.obligation-evidence-list article span,.obligation-evidence-list article p,.obligation-evidence-list article small{display:block;margin:4px 0 0;color:#748195;font-size:12px}
.obligation-empty-line{margin:0;color:#8a96a8}
.obligation-history{margin:0;padding:0;list-style:none}
.obligation-history li{display:grid;grid-template-columns:14px 1fr;gap:10px;position:relative;padding-bottom:14px}
.obligation-history li:not(:last-child):before{content:"";position:absolute;left:5px;top:12px;bottom:0;border-left:1px solid #d8e1eb}
.obligation-history i{position:relative;z-index:1;width:11px;height:11px;margin-top:4px;border:2px solid #3b82f6;border-radius:50%;background:#fff}
.obligation-history b,.obligation-history span{display:block}
.obligation-history span,.obligation-history p{margin:3px 0 0;color:#7c899b;font-size:12px}
.obligation-review-summary dl{display:grid;grid-template-columns:1fr 1fr;margin:0 0 18px;border:1px solid #dce4ee;border-radius:8px;overflow:hidden}
.obligation-review-summary dl div{padding:12px 14px;border-right:1px solid #e8edf3;border-bottom:1px solid #e8edf3}
.obligation-review-summary dt{color:#7c899b;font-size:12px}.obligation-review-summary dd{margin:5px 0 0;line-height:1.5}
@media(max-width:1366px){body[data-app-surface="web"] .contract-obligation-page .obligation-ledger-card .obligation-query{grid-template-columns:repeat(2,minmax(180px,1fr))!important}.obligation-query-actions{grid-column:1/-1;justify-content:flex-end}.obligation-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.obligation-detail-grid div:nth-child(3n){border-right:1px solid #e8edf3}.obligation-detail-grid div:nth-child(2n){border-right:0}}

/* W15/W16/W17 列表分页：与查询区采用同一套 Element Plus 风格控件。 */
body[data-app-surface="web"] [data-list-pagination]{min-height:56px;padding:10px 16px;color:#6b7789;background:#fff}
body[data-app-surface="web"] .business-pagination__controls{display:flex;align-items:center;justify-content:flex-end;gap:8px}
body[data-app-surface="web"] .business-pagination__controls label{display:block}
body[data-app-surface="web"] .business-pagination__controls select{height:32px;min-width:104px;padding:0 28px 0 10px;border:1px solid #dcdfe6;border-radius:4px;color:#606266;background:#fff;cursor:pointer}
body[data-app-surface="web"] .business-pagination__controls button{display:inline-flex;align-items:center;justify-content:center;min-width:64px;height:32px;padding:0 12px;white-space:nowrap;cursor:pointer}
body[data-app-surface="web"] .business-pagination__controls button:disabled{cursor:not-allowed}
body[data-app-surface="web"] .business-pagination__controls [data-pagination-pages]{min-width:42px;color:#909399;text-align:left;white-space:nowrap}

/* W48 签证变更：台账入口、分维度状态与详情办理 */
.variation-ledger-page,.variation-detail-page{display:flex;flex-direction:column;gap:12px;min-width:0}
.variation-page-toolbar,.variation-detail-header,.variation-ledger-card,.variation-detail-tabs,.variation-section{border:1px solid #dfe6ef;border-radius:6px;background:#fff}
.variation-page-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:10px 16px}.variation-page-toolbar h1,.variation-detail-header h1{margin:0;color:#17243a;font-size:18px}.variation-page-toolbar>div:last-child,.variation-section>header>div{display:flex;gap:8px}
.variation-ledger-card{overflow:hidden}.variation-query{display:grid;grid-template-columns:minmax(220px,1.4fr) minmax(130px,.7fr) minmax(220px,1.2fr) minmax(145px,.75fr) minmax(120px,.65fr) minmax(145px,.75fr) auto;gap:10px;align-items:end;padding:14px 16px;border-bottom:1px solid #e7edf4;background:#fafbfd}.variation-query label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#617087;font-size:12px}.variation-query input,.variation-query select{width:100%;height:34px;padding:0 10px;border:1px solid #d5deea;border-radius:4px;background:#fff;color:#25344a}.variation-query-actions{display:flex;gap:8px;white-space:nowrap}.variation-query-actions button{width:auto!important;min-width:64px}
.variation-view-tabs{display:flex;align-items:center;gap:24px;height:42px;padding:0 16px;border-bottom:1px solid #e7edf4}.variation-view-tabs button{align-self:stretch;padding:0 2px;border:0;border-bottom:2px solid transparent;background:transparent;color:#596a80;cursor:pointer}.variation-view-tabs button.is-active{border-bottom-color:#1677c8;color:#1677c8;font-weight:600}
.variation-table-wrap{border:0!important;border-radius:0!important}.variation-table{min-width:1720px!important}.variation-table th,.variation-table td{padding:10px 12px!important;vertical-align:middle}.variation-table td strong,.variation-table td small,.variation-table td span:not(.el-tag){display:block}.variation-table td small{margin-top:4px;color:#8793a5}.variation-table a,.variation-row-actions button{border:0;background:transparent;color:#1677c8;cursor:pointer;text-decoration:none}.variation-row-actions{display:flex;gap:10px}.variation-table .el-tag{display:inline-flex;width:max-content;min-width:0;white-space:nowrap}.variation-ledger-card>footer{display:flex;align-items:center;justify-content:space-between;min-height:48px;padding:6px 16px;border-top:1px solid #e7edf4;color:#77859a}.variation-ledger-card>footer .el-pagination>span:first-child{display:none}.variation-filter-empty{padding:24px}
.variation-detail-header{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px 18px}.variation-detail-header>div:first-child{display:flex;align-items:center;gap:22px;min-width:0}.variation-detail-header a{flex:0 0 auto;color:#1677c8;cursor:pointer}.variation-detail-header h1{margin:4px 0}.variation-detail-header small,.variation-detail-header span{color:#76859a;font-size:12px}.variation-head-status{display:grid;grid-template-columns:repeat(2,max-content);gap:8px 18px;flex:0 0 auto}.variation-head-status>span{display:flex;align-items:center;justify-content:space-between;gap:8px}.variation-head-status .el-tag{width:max-content;min-width:0}
.variation-detail-tabs{display:flex;align-items:center;gap:24px;height:44px;padding:0 18px;overflow-x:auto}.variation-detail-tabs a{display:flex;align-items:center;height:100%;border-bottom:2px solid transparent;color:#58697f;white-space:nowrap;cursor:pointer}.variation-detail-tabs a.is-active{border-bottom-color:#1677c8;color:#1677c8;font-weight:600}
.variation-section{min-height:420px;padding:18px}.variation-section>header{display:flex;align-items:center;justify-content:space-between;min-height:34px;margin-bottom:14px}.variation-section h3{margin:0;font-size:16px;color:#1b2b40}.variation-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:0;border-top:1px solid #e3eaf2;border-left:1px solid #e3eaf2}.variation-detail-grid>div{display:grid;grid-template-columns:120px minmax(0,1fr);min-height:54px;border-right:1px solid #e3eaf2;border-bottom:1px solid #e3eaf2}.variation-detail-grid dt,.variation-detail-grid dd{display:flex;align-items:center;margin:0;padding:9px 12px}.variation-detail-grid dt{background:#f7f9fc;color:#6c7a8e}.variation-detail-grid dd{color:#26364b;overflow-wrap:anywhere}
.variation-evidence-summary{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.variation-evidence-summary span{padding:6px 10px;border:1px solid #d8e1eb;border-radius:4px;background:#f7f9fc;color:#68778a;font-size:12px}.variation-evidence-summary .is-complete{border-color:#b9dfc6;background:#edf9f1;color:#23864a}.variation-evidence-summary .is-missing{border-color:#f1c6a8;background:#fff6ed;color:#a65d20}.variation-evidence-list{display:grid;gap:8px}.variation-evidence-list article,.variation-source-list article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid #e3e9f0;border-radius:5px}.variation-evidence-list b,.variation-evidence-list small,.variation-source-list b,.variation-source-list small{display:block}.variation-evidence-list small,.variation-source-list small{margin-top:4px;color:#7b899c}.variation-evidence-list .el-tag{width:max-content}
.variation-amount-strip,.variation-status-columns{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:16px;border:1px solid #dfe6ef;border-radius:5px;overflow:hidden}.variation-amount-strip>div,.variation-status-columns>div{padding:13px 15px;border-right:1px solid #e4eaf1}.variation-amount-strip>div:last-child,.variation-status-columns>div:last-child{border-right:0}.variation-amount-strip span,.variation-status-columns span{display:block;margin-bottom:6px;color:#748297;font-size:12px}.variation-amount-strip b{font-size:18px}.variation-status-columns b{font-size:14px}.variation-alert{margin:0 0 14px;padding:10px 13px;border-left:3px solid #e6a23c;background:#fff7e9;color:#825a18}.variation-alert.is-danger{border-left-color:#e35d5d;background:#fff1f1;color:#a73a3a}
.variation-history{margin:0;padding:4px 0 0;list-style:none}.variation-history li{position:relative;display:grid;grid-template-columns:14px 1fr;gap:10px;padding-bottom:14px}.variation-history li:not(:last-child):before{position:absolute;top:12px;bottom:0;left:5px;border-left:1px solid #d8e1eb;content:""}.variation-history i{position:relative;z-index:1;width:11px;height:11px;margin-top:4px;border:2px solid #3b82f6;border-radius:50%;background:#fff}.variation-history b,.variation-history span{display:block}.variation-history span,.variation-history p{margin:3px 0 0;color:#7c899b;font-size:12px}.variation-sync-rule{margin:14px 0 0;color:#68778b}.variation-dialog-form{display:grid;grid-template-columns:1fr 1fr;gap:4px 18px}.variation-dialog-form .el-form-item:has(textarea),.variation-file-field{grid-column:1/-1}.variation-file-field{display:flex;flex-direction:column;gap:8px;color:#53647a}.variation-file-field input{height:38px;padding:7px;border:1px solid #d5deea;border-radius:4px}.variation-source-list{display:grid;gap:10px}.variation-source-list button{height:32px;padding:0 14px;border:1px solid #1677c8;border-radius:4px;background:#fff;color:#1677c8;cursor:pointer}
.variation-pricing-form{display:grid;gap:14px}.variation-pricing-toolbar,.variation-pricing-total{display:flex;align-items:center;justify-content:space-between;gap:16px}.variation-pricing-toolbar>div b,.variation-pricing-toolbar>div span{display:block}.variation-pricing-toolbar>div span{margin-top:4px;color:#77869a;font-size:12px}.variation-pricing-editor{min-width:980px!important}.variation-pricing-editor th,.variation-pricing-editor td{padding:8px!important}.variation-pricing-editor input,.variation-pricing-editor select{width:100%;height:34px;padding:0 8px;border:1px solid #d5deea;border-radius:4px;background:#fff;color:#26364b}.variation-pricing-editor th:nth-child(1){width:110px}.variation-pricing-editor th:nth-child(2){width:130px}.variation-pricing-editor th:nth-child(3){width:190px}.variation-pricing-editor th:nth-child(4){width:76px}.variation-pricing-editor th:nth-child(5),.variation-pricing-editor th:nth-child(6){width:112px}.variation-pricing-editor th:nth-child(7){width:120px}.variation-pricing-editor th:nth-child(8){width:130px}.variation-pricing-editor th:last-child{width:58px}.variation-pricing-editor [data-remove-pricing-row]{border:0;background:transparent;color:#d84a4a;cursor:pointer}.variation-pricing-total{justify-content:flex-end;padding:12px 14px;border:1px solid #dfe6ef;border-radius:4px;background:#f8fafc}.variation-pricing-total b{min-width:140px;color:#17243a;font-size:20px;text-align:right}.variation-pricing-total small{color:#77869a}
@media(max-width:1440px){.variation-query{grid-template-columns:minmax(220px,2fr) minmax(150px,1fr) minmax(220px,1.5fr) minmax(150px,1fr)}.variation-query-actions{grid-column:auto;justify-content:flex-start}.variation-detail-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.variation-head-status{grid-template-columns:max-content}.variation-table{min-width:1660px!important}}

/* W48 列表与 W15/W16/W17 共用合同域的查询、表格和分页视觉骨架。 */
body[data-app-surface="web"] .contract-module-page.variation-ledger-page{gap:0}
.variation-ledger-page .variation-page-toolbar{min-height:50px;padding:8px 14px;border-radius:8px 8px 0 0}
.variation-ledger-page .variation-page-toolbar h1{font-size:15px}
.variation-ledger-page .variation-ledger-card{border-top:0;border-radius:0 0 8px 8px}
.variation-ledger-page .variation-query{grid-template-columns:minmax(220px,1.4fr) minmax(130px,.7fr) minmax(220px,1.2fr) minmax(145px,.75fr) minmax(120px,.65fr) minmax(145px,.75fr) auto;padding:9px 14px 10px;background:#f8fafc}
.variation-ledger-page .variation-query-actions{flex-direction:row-reverse}
.variation-ledger-page .variation-table{border-collapse:collapse}
.variation-ledger-page .variation-table th{background:#f8fafc;color:#657388}
.variation-ledger-page .variation-table td{color:#34445a}
.variation-ledger-page .variation-ledger-card>[data-list-pagination]{min-height:56px;padding:10px 16px;color:#6b7789;background:#fff}

/* W48 v3：列表只展示主状态，详情补齐审核结论、动态证据和业务明细 */
.variation-table--single-status{min-width:1540px!important}.variation-table--single-status .el-tag{max-width:120px}.variation-detail-header--main{min-height:72px}.variation-main-status{display:flex;align-items:center;gap:10px;flex:0 0 auto;color:#748297}.variation-main-status .el-tag{width:max-content;min-width:0}
.variation-section>header>div:first-child h3,.variation-section>header>div:first-child small{display:block}.variation-section>header>div:first-child small{margin-top:4px;color:#7c899b}
.variation-review-conclusions{margin-top:18px}.variation-review-conclusions h4,.variation-section>h4,.variation-schedule-link h4{margin:0 0 10px;font-size:14px;color:#26364b}.variation-review-conclusions>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #dfe6ef;border-radius:5px;overflow:hidden}.variation-review-conclusions article{padding:13px 15px;border-right:1px solid #e4eaf1}.variation-review-conclusions article:last-child{border-right:0}.variation-review-conclusions span,.variation-review-conclusions b{display:block}.variation-review-conclusions span{margin-bottom:6px;color:#748297;font-size:12px}.variation-review-conclusions b{font-weight:500;line-height:1.55}
.variation-evidence-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0 20px}.variation-evidence-checklist article{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #e1e8f0;border-radius:5px;background:#fbfcfe}.variation-evidence-checklist b,.variation-evidence-checklist small{display:block}.variation-evidence-checklist small{margin-top:4px;color:#7c899b}.variation-evidence-checklist .el-tag{width:max-content;flex:0 0 auto}
.variation-pricing-summary{margin-bottom:12px;padding:10px 13px;border-left:3px solid #409eff;background:#f5f9fe;color:#53647a}.variation-pricing-summary b{color:#1d2b3f}.variation-schedule-link{margin-top:18px}.variation-log-table{min-width:900px!important}.variation-type-definitions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.variation-type-definitions article{padding:14px 16px;border:1px solid #dfe6ef;border-radius:5px}.variation-type-definitions b{color:#223249}.variation-type-definitions p{margin:7px 0 0;color:#617087;line-height:1.65}
@media(max-width:1100px){.variation-review-conclusions>div,.variation-evidence-checklist,.variation-type-definitions{grid-template-columns:1fr}.variation-review-conclusions article{border-right:0;border-bottom:1px solid #e4eaf1}.variation-review-conclusions article:last-child{border-bottom:0}}

/* W48 v4: compact detail header, aligned actions and reviewable evidence */
.variation-row-actions{display:inline-flex!important;align-items:center;gap:12px;height:28px;white-space:nowrap}
.variation-row-actions a,.variation-row-actions button{display:inline-flex!important;align-items:center;height:28px;min-height:28px!important;margin:0;padding:0!important;font:inherit;line-height:28px}
.variation-row-actions button span{display:inline!important;line-height:inherit}
.variation-detail-header--main{min-height:64px!important;padding:10px 16px!important}
.variation-detail-header--main>div:first-child{display:flex;align-items:center;gap:14px;min-width:0}
.variation-detail-header--main>div:first-child>a{display:inline-flex;align-items:center;flex:0 0 auto;height:30px;padding-right:14px;border-right:1px solid #e1e7ef;white-space:nowrap}
.variation-detail-header--main h1{margin:1px 0!important;font-size:17px!important;line-height:1.35}
.variation-detail-header--main small,.variation-detail-header--main span{line-height:1.35}
.variation-review-conclusions{margin-top:14px}
.variation-review-conclusions>div{background:#fafbfd}
.variation-review-conclusions article{min-height:62px;padding:9px 12px}
.variation-review-conclusions span{margin-bottom:3px}
.variation-evidence-actions{display:inline-flex;align-items:center;gap:10px;flex:0 0 auto}
.variation-evidence-actions button{display:inline-flex;align-items:center;height:28px;padding:0 10px;border:1px solid #b8d7f0;border-radius:4px;background:#fff;color:#1677c8;cursor:pointer}
.variation-evidence-detail>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.variation-evidence-detail>header h3{margin:0 0 5px;font-size:16px;color:#17253a}
.variation-evidence-detail>header small{color:#7b8798}
.variation-evidence-preview{margin-top:16px;border:1px solid #dfe6ef;border-radius:6px;background:#f7f9fc}
.variation-evidence-preview.is-document{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:230px;color:#6f7e92}
.variation-evidence-preview.is-document span{display:flex;align-items:center;justify-content:center;width:50px;height:58px;margin-bottom:12px;border-radius:5px;background:#e8f2fb;color:#1677c8;font-weight:700}
.variation-evidence-preview.is-document strong{max-width:80%;color:#26364b;text-align:center}
.variation-evidence-preview.is-document small{margin-top:8px}
.variation-evidence-preview.is-photo{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px}
.variation-evidence-preview.is-photo div{display:flex;align-items:center;justify-content:center;min-height:105px;background:#eaf0f6;color:#718096}
.variation-evidence-preview.is-sheet{padding:14px;background:#fff}
.variation-evidence-preview.is-sheet table{width:100%;border-collapse:collapse}
.variation-evidence-preview.is-sheet th,.variation-evidence-preview.is-sheet td{padding:9px;border:1px solid #dfe6ef;text-align:left}
.variation-evidence-status-note{margin:12px 0 0;color:#68778b;font-size:12px;line-height:1.6}

/* W01 V0.7: cross-project personal collaboration workbench */
body[data-app-surface="web"]:has(.web-content--workbench) .web-header .context-select{display:none}
body[data-app-surface="web"]:has(.web-content--workbench) .web-header-right::before{content:'全部授权项目';display:inline-flex;align-items:center;height:32px;padding:0 12px;border:1px solid #dbe4ee;border-radius:4px;background:#f8fafc;color:#536278;font-size:12px}
body[data-app-surface="web"] .business-workbench--v08{display:grid;min-height:0;height:auto;grid-template-rows:auto auto auto;gap:12px;align-content:start}
body[data-app-surface="web"] .business-workbench--v08 .business-workbench__metrics button{min-height:86px;padding:11px 16px}
body[data-app-surface="web"] .business-workbench__main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(330px,.9fr);gap:12px}
body[data-app-surface="web"] .business-workbench__lower{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(360px,1.15fr) minmax(270px,.72fr);gap:12px}
body[data-app-surface="web"] .workbench-task-tabs{display:flex;gap:18px;min-height:39px;padding:0 16px;border-bottom:1px solid #edf1f5;background:#fafbfd}
body[data-app-surface="web"] .workbench-task-tabs button{position:relative;border:0;background:transparent;color:#738095;font-size:12px;cursor:pointer}
body[data-app-surface="web"] .workbench-task-tabs button.is-active{color:#1677c8;font-weight:650}
body[data-app-surface="web"] .workbench-task-tabs button.is-active::after{position:absolute;right:0;bottom:0;left:0;height:2px;background:#1677c8;content:''}
body[data-app-surface="web"] .workbench-ai-launch{padding:12px 14px 6px}
body[data-app-surface="web"] .workbench-ai-tasks{min-width:0}
body[data-app-surface="web"] .workbench-ai-launch>button{display:grid;width:100%;grid-template-columns:38px minmax(0,1fr) 16px;align-items:center;gap:10px;min-height:62px;padding:10px 12px;border:1px solid #b9daf5;border-radius:6px;background:linear-gradient(135deg,#f2f8ff,#eef9f8);color:#1677c8;text-align:left;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-launch>button>span:first-child{display:grid;width:38px;height:38px;place-items:center;border-radius:6px;background:#1677c8;color:#fff}
body[data-app-surface="web"] .workbench-ai-launch b,body[data-app-surface="web"] .workbench-ai-launch small{display:block}
body[data-app-surface="web"] .workbench-ai-launch b{color:#1f3854;font-size:13px}
body[data-app-surface="web"] .workbench-ai-launch small{margin-top:4px;color:#718197;font-size:11px}
body[data-app-surface="web"] .workbench-ai-task-list{padding:0 14px 10px}
body[data-app-surface="web"] .workbench-ai-task-list>button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) 44px 72px;align-items:center;gap:8px;min-height:55px;padding:7px 0;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-task-list b,body[data-app-surface="web"] .workbench-ai-task-list small{display:block}
body[data-app-surface="web"] .workbench-ai-task-list b{font-size:12px}
body[data-app-surface="web"] .workbench-ai-task-list small{margin-top:3px;color:#8793a5;font-size:10px}
body[data-app-surface="web"] .workbench-ai-task-list em{color:#1677c8;font-size:11px;font-style:normal;text-align:right}
body[data-app-surface="web"] .workbench-ai-task-list strong{padding:3px 5px;border-radius:3px;background:#fff7e6;color:#a66600;font-size:10px;font-weight:500;text-align:center}
body[data-app-surface="web"] .workbench-project-list{padding:4px 12px 10px}
body[data-app-surface="web"] .workbench-project-tabs{display:flex;gap:3px}
body[data-app-surface="web"] .workbench-project-tabs button{min-height:26px;padding:0 7px;border:0;border-radius:3px;background:transparent;color:#7a8798;font-size:10px;cursor:pointer}
body[data-app-surface="web"] .workbench-project-tabs button.is-active{background:#eaf3fd;color:#1677c8}
body[data-app-surface="web"] .workbench-project-list .business-empty{padding:36px 12px}
body[data-app-surface="web"] .workbench-project-list .business-empty small{display:block;margin-top:6px;color:#8a96a7;font-size:11px}
body[data-app-surface="web"] .workbench-project-list>button{display:grid;width:100%;grid-template-columns:minmax(0,1fr) 42px 14px;align-items:center;gap:8px;min-height:55px;padding:6px 2px;border:0;border-bottom:1px solid #edf1f5;background:#fff;text-align:left;cursor:pointer}
body[data-app-surface="web"] .workbench-project-list b,body[data-app-surface="web"] .workbench-project-list small{display:block}
body[data-app-surface="web"] .workbench-project-list b{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-project-list small{margin-top:4px;color:#8793a5;font-size:10px}
body[data-app-surface="web"] .workbench-project-list em{color:#1677c8;font-size:12px;font-style:normal;text-align:right}
body[data-app-surface="web"] .project-health-card>header>div{display:flex;align-items:center;gap:10px}
body[data-app-surface="web"] .project-follow-button{display:grid;width:30px;height:30px;place-items:center;border:1px solid #d7e1eb;border-radius:50%;background:#fff;color:#91a0b2;cursor:pointer}
body[data-app-surface="web"] .project-follow-button.is-active{border-color:#f2c15b;background:#fff8e7;color:#d99b18}
body[data-app-surface="web"] .business-workbench--v08 .workbench-quick-actions{grid-template-columns:1fr 1fr;padding:4px 10px 8px}
body[data-app-surface="web"] .business-workbench--v08 .workbench-quick-actions>button{min-height:46px;padding:5px 4px}
body[data-app-surface="web"] .business-workbench--v08 .workbench-quick-actions>button.is-ai>span{background:#e8f3ff;color:#1677c8}
body[data-app-surface="web"] .ai-task-center{display:grid;gap:14px}
body[data-app-surface="web"] .ai-task-center__hero{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border:1px solid #dbe4ee;border-left:4px solid #1677c8;border-radius:6px;background:#fff}
body[data-app-surface="web"] .ai-task-center__hero>div{display:flex;align-items:center;gap:12px}
body[data-app-surface="web"] .ai-task-center__hero>div>span{display:grid;width:42px;height:42px;place-items:center;border-radius:8px;background:#e8f3ff;color:#1677c8}
body[data-app-surface="web"] .ai-task-center__hero h2{margin:0 0 5px;font-size:18px}
body[data-app-surface="web"] .ai-task-center__hero p{margin:0;color:#758397;font-size:12px}
body[data-app-surface="web"] .ai-task-center__hero>button{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 14px;border:1px solid #1677c8;border-radius:4px;background:#1677c8;color:#fff;cursor:pointer}
body[data-app-surface="web"] .ai-task-center__list>header>div:last-child{display:flex;gap:8px}
body[data-app-surface="web"] .ai-task-center__list>header button{min-height:30px;padding:0 10px;border:1px solid #cdd9e5;border-radius:4px;background:#fff;color:#456078;cursor:pointer}
@media(max-width:1260px){body[data-app-surface="web"] .business-workbench__main{grid-template-columns:minmax(0,1.35fr) 320px}body[data-app-surface="web"] .business-workbench__lower{grid-template-columns:1fr 1fr}body[data-app-surface="web"] .business-workbench__lower .workbench-actions{grid-column:1/-1}body[data-app-surface="web"] .business-workbench--v08 .workbench-quick-actions{grid-template-columns:repeat(3,1fr)}}
@media(max-width:980px){body[data-app-surface="web"] .business-workbench__main,body[data-app-surface="web"] .business-workbench__lower{grid-template-columns:1fr}body[data-app-surface="web"] .business-workbench__lower .workbench-actions{grid-column:auto}body[data-app-surface="web"] .business-workbench--v08 .workbench-quick-actions{grid-template-columns:1fr 1fr}}

/* W01 V0.8: personal actions, priority attention and proactive AI analysis */
body[data-app-surface="web"] .business-workbench--v08{gap:14px}
body[data-app-surface="web"] .workbench-overview{display:grid;grid-template-columns:minmax(360px,1fr) auto;align-items:center;gap:24px;padding:18px 20px;border:1px solid #dbe4ee;border-left:4px solid #1677c8;border-radius:8px;background:linear-gradient(100deg,#fff 0%,#fff 58%,#f6faff 100%)}
body[data-app-surface="web"] .workbench-overview__copy>span{display:block;margin-bottom:6px;color:#1677c8;font-size:12px;font-weight:650}
body[data-app-surface="web"] .workbench-overview__copy h2{margin:0;color:#20364f;font-size:18px;font-weight:650}
body[data-app-surface="web"] .workbench-overview__copy p{margin:8px 0 0;color:#68788e;font-size:12px;line-height:1.6}
body[data-app-surface="web"] .workbench-overview__stats{display:grid;grid-template-columns:repeat(5,minmax(72px,92px));gap:8px}
body[data-app-surface="web"] .workbench-overview__stats button{display:grid;min-height:62px;align-content:center;padding:7px 10px;border:1px solid #dfe7f0;border-radius:6px;background:#fff;color:#637388;text-align:left;cursor:pointer}
body[data-app-surface="web"] .workbench-overview__stats button:hover{border-color:#91bfe4;background:#f7fbff}
body[data-app-surface="web"] .workbench-overview__stats span{font-size:11px}
body[data-app-surface="web"] .workbench-overview__stats b{margin-top:3px;color:#213b58;font-size:21px;line-height:1}
body[data-app-surface="web"] .workbench-overview__stats .is-danger b{color:#d74b4b}
body[data-app-surface="web"] .workbench-overview__stats .is-warning b{color:#d48806}
body[data-app-surface="web"] .business-workbench--v08 .business-workbench__main{grid-template-columns:minmax(0,1.25fr) minmax(410px,1fr);gap:14px}
body[data-app-surface="web"] .business-workbench--v08 .business-workbench__lower{grid-template-columns:minmax(0,1.15fr) minmax(360px,.85fr);gap:14px}
body[data-app-surface="web"] .business-workbench--v08 .workbench-task-list>button{min-height:55px}
body[data-app-surface="web"] .business-workbench--v08 .workbench-task-list em.is-overdue{background:#fff1f0;color:#cf3d3d}
body[data-app-surface="web"] .workbench-ai-brief{overflow:hidden;border-color:#cfe0f2;background:linear-gradient(160deg,#f7fbff 0%,#fff 58%)}
body[data-app-surface="web"] .workbench-ai-brief>header{min-height:58px;border-bottom-color:#d9e7f5;background:rgba(240,247,255,.78)}
body[data-app-surface="web"] .workbench-ai-brief>header>div{display:flex;align-items:center;gap:10px}
body[data-app-surface="web"] .workbench-ai-brief>header small{display:block;margin-top:3px;color:#71839a;font-size:10px}
body[data-app-surface="web"] .workbench-ai-mark{display:grid;width:34px;height:34px;place-items:center;border-radius:7px;background:#1677c8;color:#fff}
body[data-app-surface="web"] .workbench-ai-summary{padding:14px 16px 9px}
body[data-app-surface="web"] .workbench-ai-summary>b{color:#1f3b5a;font-size:14px}
body[data-app-surface="web"] .workbench-ai-summary p{margin:5px 0 0;color:#6f8096;font-size:11px;line-height:1.55}
body[data-app-surface="web"] .workbench-ai-insights{display:grid;gap:9px;padding:0 14px 14px}
body[data-app-surface="web"] .workbench-ai-insights>article{padding:11px 12px;border:1px solid #dbe6f1;border-left:3px solid #4d9bd6;border-radius:6px;background:#fff}
body[data-app-surface="web"] .workbench-ai-insights>article.is-warning{border-left-color:#e2a128}
body[data-app-surface="web"] .workbench-ai-insights>article.is-danger{border-left-color:#d95555}
body[data-app-surface="web"] .workbench-ai-insights>article>header{display:flex;align-items:center;justify-content:space-between}
body[data-app-surface="web"] .workbench-ai-insights>article>header span{color:#1677c8;font-size:10px;font-weight:650}
body[data-app-surface="web"] .workbench-ai-insights>article>header em{color:#8795a6;font-size:9px;font-style:normal}
body[data-app-surface="web"] .workbench-ai-insights h4{margin:6px 0;color:#20364f;font-size:13px}
body[data-app-surface="web"] .workbench-ai-insights p{margin:4px 0;color:#62758d;font-size:10px;line-height:1.5}
body[data-app-surface="web"] .workbench-ai-insights p b{margin-right:6px;color:#2f4966;font-weight:650}
body[data-app-surface="web"] .workbench-ai-insights>article>small{display:flex;align-items:center;gap:5px;margin-top:7px;color:#7b899b;font-size:9px}
body[data-app-surface="web"] .workbench-ai-insights footer{display:flex;justify-content:flex-end;gap:7px;margin-top:9px}
body[data-app-surface="web"] .workbench-ai-insights footer button{min-height:27px;padding:0 9px;border:1px solid #cbd8e5;border-radius:4px;background:#fff;color:#4b6179;font-size:10px;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-insights footer button.is-primary{border-color:#1677c8;background:#1677c8;color:#fff}
body[data-app-surface="web"] .workbench-focus{padding:2px 14px 12px}
body[data-app-surface="web"] .workbench-focus>article{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;border-bottom:1px solid #edf1f5}
body[data-app-surface="web"] .workbench-focus>article>button:first-child{display:grid;width:100%;grid-template-columns:8px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:58px;padding:7px 0;border:0;background:transparent;text-align:left;cursor:pointer}
body[data-app-surface="web"] .workbench-focus>article>button:last-child{min-height:28px;padding:0 9px;border:1px solid #ccd9e6;border-radius:4px;background:#fff;color:#47627d;font-size:10px;cursor:pointer}
body[data-app-surface="web"] .workbench-focus>article>button:last-child:hover{border-color:#1677c8;color:#1677c8}
body[data-app-surface="web"] .workbench-project-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:12px 14px 5px}
body[data-app-surface="web"] .workbench-project-search input{min-width:0;height:32px;padding:0 10px;border:1px solid #d5e0ea;border-radius:4px;background:#fff;color:#263d56;font-size:11px;outline:0}
body[data-app-surface="web"] .workbench-project-search input:focus{border-color:#72add9;box-shadow:0 0 0 2px rgba(22,119,200,.08)}
body[data-app-surface="web"] .workbench-project-search button{display:flex;align-items:center;gap:5px;height:32px;padding:0 10px;border:1px solid #cbd8e5;border-radius:4px;background:#f8fafc;color:#4d6279;font-size:11px;cursor:pointer}
body[data-app-surface="web"] .business-workbench--v08 .workbench-project-list>button{grid-template-columns:minmax(0,1fr) auto 14px}
body[data-app-surface="web"] .business-workbench--v08 .workbench-project-list em{max-width:145px;color:#65778e;font-size:10px}
body[data-app-surface="web"] .workbench-project-empty{padding:18px 14px;color:#8794a4;font-size:11px;text-align:center}
body[data-app-surface="web"] .workbench-project-empty[hidden]{display:none}
body[data-app-surface="web"] .ai-supervision-draft{display:grid;gap:14px}
body[data-app-surface="web"] .ai-supervision-draft__notice{display:grid;gap:4px;padding:12px 14px;border:1px solid #cfe3f4;border-radius:6px;background:#f3f8fc;color:#274965}
body[data-app-surface="web"] .ai-supervision-draft__notice b{font-size:13px}
body[data-app-surface="web"] .ai-supervision-draft__notice span{color:#6b7f91;font-size:11px}
body[data-app-surface="web"] .ai-supervision-draft label{display:grid;gap:6px;color:#40566c;font-size:11px}
body[data-app-surface="web"] .ai-supervision-draft input,body[data-app-surface="web"] .ai-supervision-draft textarea{box-sizing:border-box;width:100%;padding:8px 10px;border:1px solid #d6e0e9;border-radius:4px;background:#fff;color:#263d56;font:inherit;outline:0}
body[data-app-surface="web"] .ai-supervision-draft input:focus,body[data-app-surface="web"] .ai-supervision-draft textarea:focus{border-color:#72add9;box-shadow:0 0 0 2px rgba(22,119,200,.08)}
body[data-app-surface="web"] .ai-supervision-draft input[readonly]{background:#f6f8fa;color:#667789}
body[data-app-surface="web"] .ai-supervision-draft__row{display:grid;grid-template-columns:1fr 180px;gap:12px}
body[data-app-surface="web"] .ai-supervision-draft dl{display:grid;gap:7px;margin:0;padding:11px 13px;border-radius:5px;background:#f7f9fb}
body[data-app-surface="web"] .ai-supervision-draft dl div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;font-size:11px}
body[data-app-surface="web"] .ai-supervision-draft dt{color:#8190a0}
body[data-app-surface="web"] .ai-supervision-draft dd{margin:0;color:#465b70}

/* W01 V1.0: AI workbench, common apps, business chains and personal tasks */
body[data-app-surface="web"] .business-workbench--v10{display:grid;height:auto;min-height:0;grid-template-rows:auto auto;align-content:start;gap:14px;min-width:0;color:#25384d}
body[data-app-surface="web"] .workbench-v10-top{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:14px;min-width:0}
body[data-app-surface="web"] .workbench-v10-bottom{display:grid;grid-template-columns:minmax(520px,1.15fr) minmax(500px,.85fr);gap:14px;min-width:0}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card{overflow:hidden;border:1px solid #dce4ed;border-radius:6px;background:#fff;box-shadow:0 2px 8px rgba(31,55,78,.05)}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header{min-height:50px;padding:0 16px;border-bottom:1px solid #e8edf3}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header h3{font-size:14px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header small{display:block;margin-top:2px;color:#8996a6;font-size:10px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header>button{color:#2879c5}
body[data-app-surface="web"] .workbench-ai-stage{height:326px;border-top:3px solid #5b8def!important}
body[data-app-surface="web"] .workbench-ai-stage>header{background:#f7faff}
body[data-app-surface="web"] .workbench-ai-stage>header>div{display:flex;align-items:center;gap:9px}
body[data-app-surface="web"] .workbench-ai-stage__body{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:12px;height:199px;padding:12px 14px;background:#fbfdff}
body[data-app-surface="web"] .workbench-ai-stage__body>article{min-width:0;padding:12px 14px;border:1px solid #dbe6f3;border-left:3px solid #5b8def;border-radius:5px;background:#fff}
body[data-app-surface="web"] .workbench-ai-stage__body>article.is-danger{border-left-color:#df5a5a}
body[data-app-surface="web"] .workbench-ai-stage__body>article.is-warning{border-left-color:#e39a35}
body[data-app-surface="web"] .workbench-ai-stage__body>article>div:first-child{display:flex;justify-content:space-between;color:#6b7f94;font-size:10px}
body[data-app-surface="web"] .workbench-ai-stage__body h4{margin:7px 0 6px;color:#253b53;font-size:14px}
body[data-app-surface="web"] .workbench-ai-stage__body p{margin:4px 0;color:#5f7184;font-size:11px;line-height:1.55}
body[data-app-surface="web"] .workbench-ai-stage__body p b{margin-right:6px;color:#334d66}
body[data-app-surface="web"] .workbench-ai-stage__body article footer{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-top:8px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer small{display:flex;align-items:center;gap:4px;min-width:0;color:#8291a1;font-size:9px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer>div{display:flex;gap:5px;white-space:nowrap}
body[data-app-surface="web"] .workbench-ai-stage__body article footer button{height:26px;padding:0 8px;border:1px solid #c9d8e8;border-radius:3px;background:#fff;color:#52708d;font-size:10px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer button.is-primary{border-color:#3981ca;background:#3981ca;color:#fff}
body[data-app-surface="web"] .workbench-ai-stage__body>aside{display:grid;align-content:start;gap:8px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside>button{display:grid;grid-template-columns:7px minmax(0,1fr) 14px;align-items:center;gap:8px;padding:10px;border:1px solid #e2e8ef;border-radius:4px;background:#fff;text-align:left}
body[data-app-surface="web"] .workbench-ai-stage__body>aside i{width:7px;height:7px;border-radius:50%;background:#4a91d5}
body[data-app-surface="web"] .workbench-ai-stage__body>aside i.is-danger{background:#df5a5a}
body[data-app-surface="web"] .workbench-ai-stage__body>aside i.is-warning{background:#e39a35}
body[data-app-surface="web"] .workbench-ai-stage__body>aside b,body[data-app-surface="web"] .workbench-ai-stage__body>aside small{display:block}
body[data-app-surface="web"] .workbench-ai-stage__body>aside b{font-size:11px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside small{margin-top:3px;color:#8896a5;font-size:9px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside p{padding:16px;color:#8a97a6;text-align:center}
body[data-app-surface="web"] .workbench-ai-composer{box-sizing:border-box;display:grid;grid-template-columns:130px minmax(180px,1fr) auto auto 34px;align-items:center;gap:6px;height:71px;padding:10px 14px;border-top:1px solid #e4ebf3;background:#fff}
body[data-app-surface="web"] .workbench-ai-composer select,body[data-app-surface="web"] .workbench-ai-composer textarea{box-sizing:border-box;height:36px;border:1px solid #d5e0eb;border-radius:4px;background:#fff;color:#41566d;font:inherit;outline:0}
body[data-app-surface="web"] .workbench-ai-composer select{padding:0 8px;font-size:10px}
body[data-app-surface="web"] .workbench-ai-composer textarea{padding:9px 10px;resize:none;font-size:11px;line-height:16px}
body[data-app-surface="web"] .workbench-ai-composer>button{height:30px;padding:0 8px;border:1px solid #dbe5ef;border-radius:3px;background:#f7f9fc;color:#687b90;font-size:10px}
body[data-app-surface="web"] .workbench-ai-composer>button.is-send{display:grid;width:34px;height:34px;padding:0;place-items:center;border-color:#4a89d0;background:#4a89d0;color:#fff}
body[data-app-surface="web"] .workbench-common-apps{height:326px;border-top:3px solid #76a7dd!important}
body[data-app-surface="web"] .workbench-common-apps>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:62px;gap:0;padding:10px 12px}
body[data-app-surface="web"] .workbench-common-apps>div>button{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:8px;padding:6px 7px;border:0;border-radius:4px;background:#fff;text-align:left}
body[data-app-surface="web"] .workbench-common-apps>div>button:hover{background:#f2f7fc}
body[data-app-surface="web"] .workbench-common-apps>div>button>span{display:grid;width:32px;height:32px;place-items:center;border-radius:6px;background:#edf5fd;color:#3e86cd}
body[data-app-surface="web"] .workbench-common-apps>div>button:nth-child(3n+2)>span{background:#eef8f5;color:#2a9b78}
body[data-app-surface="web"] .workbench-common-apps>div>button:nth-child(3n)>span{background:#fff5e8;color:#d88727}
body[data-app-surface="web"] .workbench-common-apps>div>button b{overflow:hidden;color:#40546a;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-common-apps>div>button em{position:absolute;top:5px;right:5px;min-width:16px;height:16px;padding:0 4px;border-radius:8px;background:#e85b5b;color:#fff;font-size:9px;font-style:normal;line-height:16px;text-align:center}
body[data-app-surface="web"] .workbench-flow{min-height:340px;border-top:3px solid #478fe4!important}
body[data-app-surface="web"] .workbench-flow>nav{display:flex;gap:2px;padding:0 14px;border-bottom:1px solid #e7ecf2}
body[data-app-surface="web"] .workbench-flow>nav button{height:38px;padding:0 14px;border:0;border-bottom:2px solid transparent;background:#fff;color:#66778a;font-size:11px}
body[data-app-surface="web"] .workbench-flow>nav button.is-active{border-bottom-color:#3282d3;color:#2575c1;font-weight:600}
body[data-app-surface="web"] .workbench-flow__canvas{display:flex;align-items:center;justify-content:center;min-height:172px;padding:20px;background:#f4f7fb}
body[data-app-surface="web"] .workbench-flow__canvas>button{display:grid;min-width:108px;min-height:74px;align-content:center;gap:4px;padding:9px;border:1px solid #d7e1ec;border-radius:4px;background:#fff;box-shadow:0 2px 6px rgba(35,61,88,.06);text-align:left}
body[data-app-surface="web"] .workbench-flow__canvas>button:hover{border-color:#6da6dd}
body[data-app-surface="web"] .workbench-flow__canvas>button span{color:#87a2bb;font-size:9px}
body[data-app-surface="web"] .workbench-flow__canvas>button b{color:#3b5067;font-size:11px}
body[data-app-surface="web"] .workbench-flow__canvas>button em{color:#2f7fc9;font-size:10px;font-style:normal}
body[data-app-surface="web"] .workbench-flow__canvas>i{display:grid;width:28px;place-items:center;color:#91acd0}
body[data-app-surface="web"] .workbench-flow>footer{display:flex;align-items:center;gap:12px;min-height:43px;padding:0 15px;border-top:1px solid #e8edf3;background:#fbfcfe}
body[data-app-surface="web"] .workbench-flow>footer span{color:#347fc6;font-size:10px;font-weight:600}
body[data-app-surface="web"] .workbench-flow>footer p{margin:0;color:#8b97a6;font-size:10px}
body[data-app-surface="web"] .workbench-todo{min-height:340px;border-top:3px solid #76a7dd!important}
body[data-app-surface="web"] .workbench-todo>.workbench-task-tabs{height:39px;padding:0 13px;border-bottom:1px solid #e7ecf2}
body[data-app-surface="web"] .workbench-todo-head,body[data-app-surface="web"] .workbench-todo-row{display:grid;grid-template-columns:minmax(150px,1.4fr) 82px minmax(110px,1fr) 76px 86px 70px;align-items:center;gap:8px;padding:0 13px}
body[data-app-surface="web"] .workbench-todo-head{height:34px;background:#f6f8fb;color:#758397;font-size:10px;font-weight:600}
body[data-app-surface="web"] .workbench-todo-row{min-height:43px;border-bottom:1px solid #edf1f5;color:#596b7e;font-size:10px}
body[data-app-surface="web"] .workbench-todo-row>b{overflow:hidden;color:#344b62;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-todo-row>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-todo-row>.el-tag{justify-self:start;max-width:100%}
body[data-app-surface="web"] .workbench-todo-row time{color:#66788c}
body[data-app-surface="web"] .workbench-todo-row time.is-near{color:#d74343;font-weight:600}
body[data-app-surface="web"] .workbench-todo-row>button{height:26px;padding:0 7px;border:1px solid #bcd2e8;border-radius:3px;background:#fff;color:#2877bd;font-size:10px}
body[data-app-surface="web"] .workbench-app-editor{display:grid;grid-template-columns:1fr 1fr;gap:8px}
body[data-app-surface="web"] .workbench-app-editor>p{grid-column:1/-1;margin:0 0 4px;color:#7b8998;font-size:11px}
body[data-app-surface="web"] .workbench-app-editor label{display:flex;align-items:center;gap:8px;padding:10px;border:1px solid #e1e7ee;border-radius:4px;color:#465a70;font-size:12px}
@media(max-width:1320px){body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-flow,body[data-app-surface="web"] .workbench-todo{min-height:320px}}
@media(max-width:1050px){body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-common-apps{height:auto}body[data-app-surface="web"] .workbench-common-apps>div{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-app-surface="web"] .workbench-ai-stage__body{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-ai-stage__body>aside{display:none}}
@media(max-width:1240px){body[data-app-surface="web"] .workbench-overview{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-overview__stats{grid-template-columns:repeat(5,1fr)}body[data-app-surface="web"] .business-workbench--v08 .business-workbench__main{grid-template-columns:minmax(0,1.15fr) minmax(370px,.85fr)}}
@media(max-width:1040px){body[data-app-surface="web"] .business-workbench--v08 .business-workbench__main,body[data-app-surface="web"] .business-workbench--v08 .business-workbench__lower{grid-template-columns:1fr}}
@media(max-width:720px){body[data-app-surface="web"] .workbench-overview__stats{grid-template-columns:repeat(2,1fr)}}

/* W01 V1.0 visual scale pass: readable 2K desktop rhythm */
body[data-app-surface="web"] .web-content--workbench>.page-body{box-sizing:border-box;padding:18px 24px 28px}
body[data-app-surface="web"] .business-workbench--v10{width:100%;max-width:1920px;margin:0 auto;gap:24px}
body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:minmax(0,1fr) 360px;gap:20px}
body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:20px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card{border-color:#d7e1eb;border-radius:8px;box-shadow:0 4px 14px rgba(31,55,78,.07)}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header{min-height:56px;padding:0 20px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header h3{font-size:16px;font-weight:650;line-height:22px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header small{margin-top:3px;color:#6f7f91;font-size:12px;line-height:17px}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header>button{min-height:32px;font-size:12px}
body[data-app-surface="web"] .workbench-ai-stage{height:370px;border-top-width:4px!important}
body[data-app-surface="web"] .workbench-ai-stage>header>div{gap:12px}
body[data-app-surface="web"] .workbench-ai-mark{width:38px;height:38px;border-radius:8px}
body[data-app-surface="web"] .workbench-ai-stage__body{grid-template-columns:minmax(0,1fr) 260px;gap:16px;height:236px;padding:16px 18px}
body[data-app-surface="web"] .workbench-ai-stage__body>article{padding:15px 18px;border-radius:6px}
body[data-app-surface="web"] .workbench-ai-stage__body>article>div:first-child{font-size:12px;line-height:18px}
body[data-app-surface="web"] .workbench-ai-stage__body h4{margin:9px 0 8px;font-size:17px;line-height:24px}
body[data-app-surface="web"] .workbench-ai-stage__body p{margin:6px 0;font-size:13px;line-height:1.6}
body[data-app-surface="web"] .workbench-ai-stage__body p b{margin-right:8px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer{gap:14px;margin-top:11px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer small{font-size:11px;line-height:16px}
body[data-app-surface="web"] .workbench-ai-stage__body article footer button{height:32px;padding:0 11px;font-size:12px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside{gap:10px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside>button{grid-template-columns:8px minmax(0,1fr) 16px;gap:10px;min-height:64px;padding:12px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside b{font-size:13px;line-height:18px}
body[data-app-surface="web"] .workbench-ai-stage__body>aside small{margin-top:4px;font-size:11px;line-height:16px}
body[data-app-surface="web"] .workbench-ai-composer{grid-template-columns:150px minmax(220px,1fr) auto auto 40px;gap:8px;height:74px;padding:12px 18px}
body[data-app-surface="web"] .workbench-ai-composer select,body[data-app-surface="web"] .workbench-ai-composer textarea{height:40px;font-size:13px}
body[data-app-surface="web"] .workbench-ai-composer textarea{padding:11px 12px;line-height:17px}
body[data-app-surface="web"] .workbench-ai-composer>button{height:34px;padding:0 11px;font-size:12px}
body[data-app-surface="web"] .workbench-ai-composer>button.is-send{width:40px;height:40px}
body[data-app-surface="web"] .workbench-common-apps{height:370px;border-top:1px solid #d7e1eb!important}
body[data-app-surface="web"] .workbench-common-apps>div{grid-auto-rows:72px;padding:12px 14px}
body[data-app-surface="web"] .workbench-common-apps>div>button{grid-template-columns:42px minmax(0,1fr);gap:10px;padding:8px 9px}
body[data-app-surface="web"] .workbench-common-apps>div>button>span{width:40px;height:40px;border-radius:8px}
body[data-app-surface="web"] .workbench-common-apps>div>button b{font-size:13px;line-height:18px}
body[data-app-surface="web"] .workbench-common-apps>div>button em{top:7px;right:7px;min-width:18px;height:18px;font-size:10px;line-height:18px}
body[data-app-surface="web"] .workbench-flow,body[data-app-surface="web"] .workbench-todo{min-height:420px;border-top:1px solid #d7e1eb!important}
body[data-app-surface="web"] .workbench-flow>nav{gap:6px;padding:0 18px}
body[data-app-surface="web"] .workbench-flow>nav button{height:44px;padding:0 15px;font-size:13px}
body[data-app-surface="web"] .workbench-flow__canvas{min-height:238px;padding:28px 20px}
body[data-app-surface="web"] .workbench-flow__canvas>button{min-width:116px;min-height:82px;gap:6px;padding:12px}
body[data-app-surface="web"] .workbench-flow__canvas>button span{font-size:11px}
body[data-app-surface="web"] .workbench-flow__canvas>button b{font-size:13px;line-height:18px}
body[data-app-surface="web"] .workbench-flow__canvas>button em{font-size:12px}
body[data-app-surface="web"] .workbench-flow__canvas>i{width:34px}
body[data-app-surface="web"] .workbench-flow>footer{min-height:55px;padding:0 18px}
body[data-app-surface="web"] .workbench-flow>footer span,body[data-app-surface="web"] .workbench-flow>footer p{font-size:12px;line-height:18px}
body[data-app-surface="web"] .workbench-todo>.workbench-task-tabs{height:44px;padding:0 16px;gap:22px}
body[data-app-surface="web"] .workbench-todo>.workbench-task-tabs button{font-size:13px}
body[data-app-surface="web"] .workbench-todo-head,body[data-app-surface="web"] .workbench-todo-row{grid-template-columns:minmax(130px,1.4fr) 76px minmax(100px,1fr) 76px 90px 84px;gap:8px;padding:0 14px}
body[data-app-surface="web"] .workbench-todo-head{height:40px;font-size:12px}
body[data-app-surface="web"] .workbench-todo-row{min-height:51px;font-size:12px}
body[data-app-surface="web"] .workbench-todo-row>b{font-size:13px;line-height:18px}
body[data-app-surface="web"] .workbench-todo-row time{font-size:12px;white-space:nowrap}
body[data-app-surface="web"] .workbench-todo-row>button{height:32px;padding:0 9px;font-size:12px;white-space:nowrap}
@media(max-width:1500px){body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:minmax(0,1fr) 340px}body[data-app-surface="web"] .workbench-ai-stage__body{grid-template-columns:minmax(0,1fr) 230px}body[data-app-surface="web"] .workbench-todo-head,body[data-app-surface="web"] .workbench-todo-row{grid-template-columns:minmax(120px,1.35fr) 70px minmax(96px,1fr) 72px 86px 80px;gap:6px;padding-inline:12px}}
@media(max-width:1380px){body[data-app-surface="web"] .web-content--workbench>.page-body{overflow-x:hidden;overflow-y:auto}body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-flow,body[data-app-surface="web"] .workbench-todo{min-height:400px}}
@media(max-width:1120px){body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-common-apps{height:auto}body[data-app-surface="web"] .workbench-ai-stage__body{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-ai-stage__body>aside{display:none}}

/* W01 approved workbench composition: conversation-first AI area and stateful assistant */
body[data-app-surface="web"] .business-workbench--v10{gap:20px}
body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:minmax(0,2.18fr) minmax(340px,1fr);gap:18px;align-items:start}
body[data-app-surface="web"] .workbench-ai-stage{height:500px;overflow:hidden;border-top:3px solid #2f80d0!important}
body[data-app-surface="web"] .workbench-ai-stage>header{box-sizing:border-box;height:56px;background:#f8fbff}
body[data-app-surface="web"] .workbench-ai-stage>header>div{height:100%;align-items:center}
body[data-app-surface="web"] .workbench-ai-stage>header h3{margin:0}
body[data-app-surface="web"] .workbench-ai-stage__body{box-sizing:border-box;display:flex;height:380px;padding:14px 18px 12px;overflow-y:auto;flex-direction:column;gap:12px;background:#fbfdff;scrollbar-gutter:stable}
body[data-app-surface="web"] .workbench-ai-greeting{box-sizing:border-box;display:flex;flex:0 0 88px;align-items:center;flex-direction:column;justify-content:center;padding-top:14px;text-align:center}
body[data-app-surface="web"] .workbench-ai-greeting strong{color:#20364d;font-size:20px;font-weight:700;line-height:28px}
body[data-app-surface="web"] .workbench-ai-greeting span{margin-top:3px;color:#42576d;font-size:13px;font-weight:400;line-height:21px}
body[data-app-surface="web"] .workbench-ai-stage__body.has-conversation{gap:0}
body[data-app-surface="web"] .workbench-ai-stage__body.has-conversation .workbench-ai-greeting{display:none}
body[data-app-surface="web"] .workbench-ai-conversation{display:flex;min-height:0;flex:1;flex-direction:column;gap:14px;padding:6px 4px 14px;overflow-y:auto;background:#fbfdff;scroll-behavior:smooth}
body[data-app-surface="web"] .workbench-chat-message{display:flex;width:100%;align-items:flex-start;gap:9px}
body[data-app-surface="web"] .workbench-chat-avatar{display:grid;width:34px;height:34px;flex:0 0 34px;place-items:center;border:1px solid #cfe0ef;border-radius:50%;background:#fff;color:#2778c2;font-size:11px;font-weight:700;box-shadow:0 2px 6px rgba(38,76,112,.08)}
body[data-app-surface="web"] .workbench-chat-content{display:flex;max-width:76%;min-width:0;flex-direction:column;align-items:flex-start}
body[data-app-surface="web"] .workbench-chat-sender{margin:0 4px 4px;color:#75869a;font-size:10px;line-height:15px}
body[data-app-surface="web"] .workbench-chat-bubble{padding:9px 12px;border:1px solid #dce6f0;border-radius:3px 10px 10px 10px;background:#fff;box-shadow:0 2px 6px rgba(38,76,112,.05)}
body[data-app-surface="web"] .workbench-chat-message p{margin:0;color:#334b63;font-size:12px;line-height:20px;white-space:pre-wrap}
body[data-app-surface="web"] .workbench-chat-message.is-user{justify-content:flex-start;flex-direction:row-reverse}
body[data-app-surface="web"] .workbench-chat-message.is-user .workbench-chat-content{align-items:flex-end}
body[data-app-surface="web"] .workbench-chat-message.is-user .workbench-chat-avatar{border-color:#2f80d0;background:#2f80d0;color:#fff}
body[data-app-surface="web"] .workbench-chat-message.is-user .workbench-chat-bubble{border-color:#3b88cf;border-radius:10px 3px 10px 10px;background:#3b88cf}
body[data-app-surface="web"] .workbench-chat-message.is-user p{color:#fff}
body[data-app-surface="web"] .workbench-chat-message.is-planning .workbench-chat-bubble{background:#f5f8fb}
body[data-app-surface="web"] .workbench-chat-message.is-planning p{color:#6d7f92}
body[data-app-surface="web"] .workbench-chat-message.is-answering .workbench-chat-avatar{animation:workbench-chat-avatar-pulse 1s ease-in-out infinite}
@keyframes workbench-chat-avatar-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
body[data-app-surface="web"] .workbench-ai-composer{box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:10px;height:64px;padding:10px 18px 12px;border-top:1px solid #e5edf5;background:#fff}
body[data-app-surface="web"] .workbench-ai-composer input{box-sizing:border-box;width:100%;height:42px;padding:0 13px;border:1px solid #cfdceb;border-radius:5px;background:#fff;color:#263b50;font:inherit;font-size:13px;line-height:40px}
body[data-app-surface="web"] .workbench-ai-composer input:focus{border-color:#5d9bd7;outline:2px solid rgba(61,137,207,.12)}
body[data-app-surface="web"] .workbench-ai-composer>button.is-send{display:grid;width:42px;height:42px;padding:0;place-items:center;border:1px solid #337fc5;border-radius:5px;background:#337fc5;color:#fff}
body[data-app-surface="web"] .workbench-side{display:flex;height:500px;min-width:0;flex-direction:column;gap:0}
body[data-app-surface="web"] .workbench-common-apps{box-sizing:border-box;height:300px;flex:0 0 300px;border-top:1px solid #d7e1eb!important}
body[data-app-surface="web"] .workbench-common-apps>header{box-sizing:border-box;height:56px}
body[data-app-surface="web"] .workbench-common-apps>div{display:grid;box-sizing:border-box;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,1fr);grid-auto-rows:auto;gap:0 8px;height:244px;padding:8px 12px 10px}
body[data-app-surface="web"] .workbench-common-apps>div>button{box-sizing:border-box;grid-template-columns:36px minmax(0,1fr);gap:8px;min-width:0;min-height:0;align-items:center;padding:5px 7px;border:1px solid transparent;border-radius:5px}
body[data-app-surface="web"] .workbench-common-apps>div>button:hover{border-color:#e0e9f2;background:#f6f9fc}
body[data-app-surface="web"] .workbench-common-apps>div>button>span{width:34px;height:34px;border-radius:7px}
body[data-app-surface="web"] .workbench-common-apps>div>button b{font-size:12px;line-height:17px}
body[data-app-surface="web"] .workbench-common-apps>div>button em{top:3px;right:3px;min-width:17px;height:17px;font-size:9px;line-height:17px}
body[data-app-surface="web"] .workbench-assistant{position:relative;min-height:0;flex:1;overflow:hidden;background:transparent}
body[data-app-surface="web"] .workbench-assistant-status{position:absolute;top:18px;left:max(8px,calc(31% - 136px));z-index:3;display:flex;height:30px;align-items:center;gap:7px;padding:0 12px;border:1px solid #d5e6f5;border-radius:16px;background:#fff;color:#3b607e;font-size:12px;line-height:30px;box-shadow:0 4px 14px rgba(55,105,147,.08)}
body[data-app-surface="web"] .workbench-assistant-status i{width:7px;height:7px;border-radius:50%;background:#45a47a;box-shadow:0 0 0 4px rgba(69,164,122,.1)}
body[data-app-surface="web"] .workbench-assistant-visual{position:absolute;bottom:-28px;left:31%;width:220px;height:236px;transform:translateX(-50%)}
body[data-app-surface="web"] .workbench-assistant-visual::before{position:absolute;left:50%;bottom:32px;width:176px;height:176px;border-radius:50%;background:#edf6fd;box-shadow:0 0 0 14px rgba(237,246,253,.55);content:"";transform:translateX(-50%)}
body[data-app-surface="web"] .workbench-assistant-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;opacity:0;transform:translateY(5px) scale(.985);transform-origin:center bottom;transition:opacity .26s ease,transform .26s ease;pointer-events:none}
body[data-app-surface="web"] .workbench-assistant-visual img.is-visible{opacity:1;transform:translateY(0) scale(1)}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="thinking"] .workbench-assistant-status i,body[data-app-surface="web"] .workbench-assistant[data-assistant-state="answering"] .workbench-assistant-status i{background:#2f80d0;box-shadow:0 0 0 4px rgba(47,128,208,.1);animation:workbench-assistant-status-pulse 1.1s ease-in-out infinite}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="complete"] .workbench-assistant-status{border-color:#cce8d9;color:#32745a;background:#f7fcf9}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="idle"] img[data-assistant-frame="idle"].is-visible{animation:workbench-assistant-breathe 5.5s ease-in-out infinite}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="thinking"] .workbench-assistant-visual{animation:workbench-assistant-thinking 1.5s ease-in-out infinite}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="answering"] .workbench-assistant-visual{animation:workbench-assistant-answering .75s ease-in-out infinite}
@keyframes workbench-assistant-breathe{0%,100%{transform:translateY(0) scale(1)}50%{transform:translateY(-2px) scale(1.003)}}
@keyframes workbench-assistant-thinking{0%,100%{transform:translateX(-50%) rotate(0)}50%{transform:translateX(-50%) translateY(-3px) rotate(-1.5deg)}}
@keyframes workbench-assistant-answering{0%,100%{transform:translateX(-50%) translateY(0)}45%{transform:translateX(-50%) translateY(-8px)}}
@keyframes workbench-assistant-status-pulse{0%,100%{opacity:.45;transform:scale(.85)}50%{opacity:1;transform:scale(1.12)}}
body[data-app-surface="web"] .workbench-flow__canvas{min-height:318px}
body[data-app-surface="web"] .workbench-flow-graph{position:relative;display:grid;width:100%;height:calc(var(--flow-rows,3)*80px);grid-template-columns:repeat(var(--flow-columns),minmax(0,1fr));grid-template-rows:repeat(var(--flow-rows,3),80px);align-items:center}
body[data-app-surface="web"] .workbench-flow-graph>svg{position:absolute;inset:0;z-index:0;width:100%;height:100%;overflow:visible}
body[data-app-surface="web"] .workbench-flow-graph>svg g>path{fill:none;stroke:#79aee4;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
body[data-app-surface="web"] .workbench-flow-graph>svg marker path{fill:#79aee4;stroke:none}
body[data-app-surface="web"] .workbench-flow-graph>button{position:relative;z-index:1;box-sizing:border-box;display:grid;width:calc(100% - 8px);max-width:96px;min-width:0;height:48px;grid-column:var(--flow-col);grid-row:var(--flow-row);align-content:center;justify-self:center;padding:5px 6px;border:1px solid #d2deea;border-radius:5px;background:#fff;box-shadow:0 2px 7px rgba(35,61,88,.07);text-align:center}
body[data-app-surface="web"] .workbench-flow-graph>button:hover{border-color:#5e9bd7;background:#f8fbff}
body[data-app-surface="web"] .workbench-flow-graph>button b{overflow:hidden;color:#334b63;font-size:11px;font-weight:600;line-height:16px;text-overflow:ellipsis}

/* High-fidelity business icon sprite derived from the approved workbench concept */
body[data-app-surface="web"] .workbench-flow-graph>button{width:76%;max-width:none;height:72px;grid-template-rows:40px minmax(0,1fr);align-content:center;gap:2px;padding:5px 7px 4px;border-color:#d9e4ef;border-radius:8px;box-shadow:0 4px 10px rgba(35,61,88,.08)}
body[data-app-surface="web"] .workbench-flow-graph>button:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(35,61,88,.12)}
body[data-app-surface="web"] .workbench-flow-icon{display:block;width:40px;height:40px;justify-self:center;background-image:url('../assets/workbench-flow-icons-v1.png');background-repeat:no-repeat;background-size:400% 300%}
body[data-app-surface="web"] .workbench-flow-icon--project{background-position:0 0}
body[data-app-surface="web"] .workbench-flow-icon--organization{background-position:33.333% 0}
body[data-app-surface="web"] .workbench-flow-icon--wbs{background-position:66.667% 0}
body[data-app-surface="web"] .workbench-flow-icon--plan{background-position:100% 0}
body[data-app-surface="web"] .workbench-flow-icon--milestone{background-position:0 50%}
body[data-app-surface="web"] .workbench-flow-icon--report{background-position:33.333% 50%}
body[data-app-surface="web"] .workbench-flow-icon--review{background-position:66.667% 50%}
body[data-app-surface="web"] .workbench-flow-icon--analysis{background-position:100% 50%}
body[data-app-surface="web"] .workbench-flow-icon--corrective{background-position:0 100%}
body[data-app-surface="web"] .workbench-flow-icon--safety{background-position:33.333% 100%}
body[data-app-surface="web"] .workbench-flow-icon--material{background-position:66.667% 100%}
body[data-app-surface="web"] .workbench-flow-icon--warehouse{background-position:100% 100%}
body[data-app-surface="web"] .workbench-flow-graph>button b{font-size:11px;line-height:14px;white-space:nowrap}
@media(max-width:1380px) and (min-width:1181px){body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr)}}
@media(max-width:1280px){body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:minmax(0,2fr) minmax(320px,1fr);gap:14px}body[data-app-surface="web"] .workbench-assistant-visual{left:36%}body[data-app-surface="web"] .workbench-assistant-status{left:max(8px,calc(36% - 136px))}body[data-app-surface="web"] .workbench-flow__canvas{padding-inline:12px}body[data-app-surface="web"] .workbench-flow__canvas>button{min-width:0;flex:1}body[data-app-surface="web"] .workbench-flow__canvas>i{width:14px;flex:0 0 14px}}
@media(max-width:1180px){body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:1fr}}
@media(max-width:1120px){body[data-app-surface="web"] .workbench-v10-top{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-side{height:auto;gap:12px}body[data-app-surface="web"] .workbench-common-apps{height:300px;flex-basis:300px}body[data-app-surface="web"] .workbench-assistant{min-height:190px}body[data-app-surface="web"] .workbench-assistant-visual{left:26%}body[data-app-surface="web"] .workbench-assistant-status{left:max(8px,calc(26% - 136px))}}
@media(max-width:760px){body[data-app-surface="web"] .workbench-ai-stage{height:auto;min-height:610px}body[data-app-surface="web"] .workbench-ai-stage__body{height:490px}body[data-app-surface="web"] .workbench-common-apps>div{grid-template-columns:1fr;height:auto}body[data-app-surface="web"] .workbench-common-apps{height:auto;flex-basis:auto}body[data-app-surface="web"] .workbench-chat-content{max-width:82%}}
@media(prefers-reduced-motion:reduce){body[data-app-surface="web"] .workbench-assistant-visual,body[data-app-surface="web"] .workbench-assistant-visual img{animation:none!important;transition-duration:.01ms!important}}

/* W01 three-region composition: full-width AI stage above the existing business flow and todo */
body[data-app-surface="web"] .web-content--workbench>.page-body{padding:18px 20px 28px}
body[data-app-surface="web"] .business-workbench--v10{width:100%;max-width:none;margin:0;gap:20px}
body[data-app-surface="web"] .workbench-v10-top{display:block;width:100%}
body[data-app-surface="web"] .workbench-ai-stage{width:100%;height:600px}
body[data-app-surface="web"] .workbench-ai-stage__main{display:grid;height:544px;grid-template-columns:minmax(0,1fr) 280px;background:#fbfdff}
body[data-app-surface="web"] .workbench-ai-dialogue{display:grid;min-width:0;min-height:0;grid-template-rows:minmax(0,1fr) 64px}
body[data-app-surface="web"] .workbench-ai-stage__body{height:auto;min-height:0;padding:18px 24px 14px}
body[data-app-surface="web"] .workbench-ai-greeting{flex-basis:96px;padding-top:20px}
body[data-app-surface="web"] .workbench-ai-composer{height:64px;padding-inline:24px}
body[data-app-surface="web"] .workbench-assistant{box-sizing:border-box;height:544px;border-left:1px solid #e0eaf4;background:linear-gradient(155deg,#f7fbff 0%,#edf6ff 100%)}
body[data-app-surface="web"] .workbench-assistant-status{top:22px;left:22px}
body[data-app-surface="web"] .workbench-assistant-visual{top:82px;bottom:auto;left:50%;width:220px;height:293px}
body[data-app-surface="web"] button.workbench-assistant-visual{appearance:none;margin:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
body[data-app-surface="web"] button.workbench-assistant-visual:focus-visible{outline:3px solid rgba(47,128,208,.32);outline-offset:5px;border-radius:42%}
body[data-app-surface="web"] button.workbench-assistant-visual.is-reacting{animation:workbench-assistant-click-response .82s cubic-bezier(.2,.8,.2,1)}
body[data-app-surface="web"] .workbench-assistant:has(.workbench-assistant-visual.is-reacting) .workbench-assistant-status{border-color:#a8d7c1;background:#f7fffb;box-shadow:0 6px 18px rgba(45,135,96,.13)}
body[data-app-surface="web"] .workbench-assistant-visual::before{bottom:36px;width:186px;height:186px;box-shadow:0 0 0 14px rgba(237,246,253,.48)}
body[data-app-surface="web"] .workbench-assistant-visual img{image-rendering:auto;backface-visibility:hidden}
body[data-app-surface="web"] .workbench-assistant[data-assistant-state="idle"] img[data-assistant-frame="idle"].is-visible{animation:workbench-assistant-breathe-sharp 5.5s ease-in-out infinite}
@keyframes workbench-assistant-breathe-sharp{0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes workbench-assistant-click-response{0%,100%{transform:translateX(-50%) translateY(0) scale(1)}18%{transform:translateX(-50%) translateY(3px) scale(.985)}48%{transform:translateX(-50%) translateY(-10px) scale(1.025)}68%{transform:translateX(-50%) translateY(-4px) scale(1.012)}82%{transform:translateX(-50%) translateY(-6px) scale(1.016)}}
body[data-app-surface="web"] .workbench-assistant-caption{position:absolute;top:397px;right:18px;left:18px;margin:0;color:#456781;font-size:14px;font-style:italic;font-weight:500;line-height:22px;letter-spacing:.08em;text-align:center;white-space:nowrap}
body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:minmax(0,1.04fr) minmax(0,.96fr);gap:20px}
body[data-app-surface="web"] .workbench-flow,body[data-app-surface="web"] .workbench-todo{min-height:420px}
@media(max-width:1280px){body[data-app-surface="web"] .workbench-ai-stage__main{grid-template-columns:minmax(0,1fr) 240px}body[data-app-surface="web"] .workbench-assistant-visual{width:190px;height:253px}body[data-app-surface="web"] .workbench-assistant-caption{top:365px;font-size:12px}}
@media(max-width:1180px){body[data-app-surface="web"] .workbench-v10-bottom{grid-template-columns:1fr}}
@media(max-width:760px){body[data-app-surface="web"] .web-content--workbench>.page-body{padding-inline:12px}body[data-app-surface="web"] .workbench-ai-stage{height:610px;min-height:610px}body[data-app-surface="web"] .workbench-ai-stage__main{height:554px;grid-template-columns:minmax(0,1fr) 168px}body[data-app-surface="web"] .workbench-ai-stage__body{height:auto;padding-inline:14px}body[data-app-surface="web"] .workbench-ai-composer{padding-inline:14px}body[data-app-surface="web"] .workbench-assistant-status{left:10px;padding-inline:9px}body[data-app-surface="web"] .workbench-assistant-visual{top:104px;width:136px;height:181px}body[data-app-surface="web"] .workbench-assistant-caption{top:310px;right:8px;left:8px;font-size:10px;letter-spacing:0;white-space:normal}}

/* W01 file-driven AI analysis: upload, structured result, and human-confirmed draft preview */
body[data-app-surface="web"] .workbench-ai-dialogue{grid-template-rows:minmax(0,1fr) auto}
body[data-app-surface="web"] .workbench-ai-composer{display:block;height:auto;min-height:64px;padding:10px 24px 12px}
body[data-app-surface="web"] .workbench-ai-composer-row{display:grid;grid-template-columns:42px minmax(0,1fr) 42px;gap:8px;align-items:center}
body[data-app-surface="web"] .workbench-ai-composer input[type="file"]{display:none}
body[data-app-surface="web"] .workbench-ai-composer-row>input[type="text"]{box-sizing:border-box;width:100%;height:42px;padding:0 13px;border:1px solid #cfdceb;border-radius:5px;background:#fff;color:#263b50;font:inherit;font-size:13px;line-height:40px}
body[data-app-surface="web"] .workbench-ai-composer-row>input[type="text"]:focus{border-color:#5d9bd7;outline:2px solid rgba(61,137,207,.12)}
body[data-app-surface="web"] .workbench-ai-composer-row>button{display:grid;width:42px;height:42px;padding:0;place-items:center;border:1px solid #cfdceb;border-radius:5px;background:#fff;color:#47647e;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-composer-row>button:hover{border-color:#82add5;background:#f4f9fe;color:#2476bc}
body[data-app-surface="web"] .workbench-ai-composer-row>button.is-send{border-color:#337fc5;background:#337fc5;color:#fff}
body[data-app-surface="web"] .workbench-ai-composer-row svg{width:17px;height:17px}
body[data-app-surface="web"] .workbench-ai-attachments{display:flex;gap:8px;margin-bottom:8px;overflow-x:auto}
body[data-app-surface="web"] .workbench-ai-attachments[hidden]{display:none}
body[data-app-surface="web"] .workbench-ai-file-chip{display:grid;min-width:210px;max-width:300px;grid-template-columns:28px minmax(0,1fr) 24px;grid-template-rows:19px 17px;column-gap:8px;align-items:center;padding:6px 7px;border:1px solid #dbe7f2;border-radius:6px;background:#f8fbfe;color:#344d65}
body[data-app-surface="web"] .workbench-ai-file-chip>i{display:grid;grid-row:1/3;width:28px;height:28px;place-items:center;border-radius:5px;background:#e9f3fc;color:#2477bd}
body[data-app-surface="web"] .workbench-ai-file-chip>i svg{width:15px;height:15px}
body[data-app-surface="web"] .workbench-ai-file-chip>b{overflow:hidden;font-size:12px;line-height:18px;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-ai-file-chip>small{color:#7b8da0;font-size:10px;line-height:16px}
body[data-app-surface="web"] .workbench-ai-file-chip>button{grid-column:3;grid-row:1/3;width:24px;height:24px;padding:0;border:0;background:transparent;color:#7d8ea0;font-size:18px;cursor:pointer}
body[data-app-surface="web"] .workbench-chat-message.has-analysis-card .workbench-chat-content{width:min(760px,90%);max-width:90%}
body[data-app-surface="web"] .workbench-chat-message.has-analysis-card .workbench-chat-bubble{padding:0;border-color:#d6e5f2;background:#fff;overflow:hidden}
body[data-app-surface="web"] .workbench-ai-analysis-card{min-width:560px}
body[data-app-surface="web"] .workbench-ai-analysis-card>header{display:flex;flex-direction:column;gap:3px;padding:12px 15px;border-bottom:1px solid #e6eef5;background:#f6faff}
body[data-app-surface="web"] .workbench-ai-analysis-card>header span{color:#347fbe;font-size:11px}
body[data-app-surface="web"] .workbench-ai-analysis-card>header b{color:#21384e;font-size:14px;line-height:22px}
body[data-app-surface="web"] .workbench-ai-analysis-card>dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:12px 15px;gap:10px}
body[data-app-surface="web"] .workbench-ai-analysis-card>dl div{min-width:0}
body[data-app-surface="web"] .workbench-ai-analysis-card dt{margin-bottom:4px;color:#8293a4;font-size:10px}
body[data-app-surface="web"] .workbench-ai-analysis-card dd{margin:0;color:#2d4358;font-size:12px;line-height:18px}
body[data-app-surface="web"] .workbench-ai-analysis-card>p{margin:0;padding:0 15px 12px;color:#667b8f;font-size:11px}
body[data-app-surface="web"] .workbench-ai-analysis-card>footer{display:flex;justify-content:flex-end;gap:8px;padding:10px 15px;border-top:1px solid #edf2f7}
body[data-app-surface="web"] .workbench-ai-analysis-card button{height:30px;padding:0 11px;border:1px solid #cbdbea;border-radius:4px;background:#fff;color:#41627f;font-size:11px;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-analysis-card button.is-primary{border-color:#347fc3;background:#347fc3;color:#fff}
body[data-app-surface="web"] .workbench-ai-preview-context{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px;padding:13px;border:1px solid #dfe9f2;border-radius:6px;background:#f8fbfe}
body[data-app-surface="web"] .workbench-ai-preview-context label{display:flex;flex-direction:column;gap:6px;color:#63788d;font-size:12px}
body[data-app-surface="web"] .workbench-ai-preview-context input,body[data-app-surface="web"] .workbench-ai-preview-context select{box-sizing:border-box;width:100%;height:36px;padding:0 9px;border:1px solid #ccd9e5;border-radius:4px;background:#fff;color:#2f465d}
body[data-app-surface="web"] .workbench-ai-preview-context>span{grid-column:1/3;color:#526a80;font-size:12px}
body[data-app-surface="web"] .workbench-ai-draft-preview table,body[data-app-surface="web"] .workbench-ai-batch-preview table{width:100%;border-collapse:collapse;table-layout:fixed}
body[data-app-surface="web"] .workbench-ai-draft-preview th,body[data-app-surface="web"] .workbench-ai-draft-preview td,body[data-app-surface="web"] .workbench-ai-batch-preview th,body[data-app-surface="web"] .workbench-ai-batch-preview td{padding:9px 10px;border:1px solid #e2eaf2;color:#40566c;font-size:12px;text-align:left;vertical-align:middle}
body[data-app-surface="web"] .workbench-ai-draft-preview th,body[data-app-surface="web"] .workbench-ai-batch-preview th{background:#f5f8fb;color:#65798c;font-weight:600}
body[data-app-surface="web"] .workbench-ai-draft-preview td:first-child,body[data-app-surface="web"] .workbench-ai-draft-preview th:first-child,body[data-app-surface="web"] .workbench-ai-batch-preview td:first-child,body[data-app-surface="web"] .workbench-ai-batch-preview th:first-child{width:48px;text-align:center}
body[data-app-surface="web"] .workbench-ai-draft-preview td input:not([type="checkbox"]){box-sizing:border-box;width:100%;height:32px;padding:0 8px;border:1px solid #d5e0ea;border-radius:3px}
body[data-app-surface="web"] .workbench-ai-draft-preview>p,body[data-app-surface="web"] .workbench-ai-batch-preview>p{margin:12px 0 0;color:#7a8c9d;font-size:11px}
body[data-app-surface="web"] .workbench-ai-batch-preview .is-warning{color:#c47718}
body[data-app-surface="web"] .workbench-ai-source{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}
body[data-app-surface="web"] .workbench-ai-source-preview{display:flex;min-height:200px;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px dashed #bfcfdd;border-radius:6px;background:#f5f8fb;color:#52718d;text-align:center}
body[data-app-surface="web"] .workbench-ai-source-preview svg{width:34px;height:34px;color:#3981bf}
body[data-app-surface="web"] .workbench-ai-source-preview span{max-width:82%;font-size:12px;line-height:20px}
body[data-app-surface="web"] .workbench-ai-source dl{margin:0;border:1px solid #e1e9f0;border-radius:6px}
body[data-app-surface="web"] .workbench-ai-source dl div{padding:12px;border-bottom:1px solid #e8eef4}
body[data-app-surface="web"] .workbench-ai-source dl div:last-child{border-bottom:0}
body[data-app-surface="web"] .workbench-ai-source dt{margin-bottom:5px;color:#7a8d9f;font-size:11px}
body[data-app-surface="web"] .workbench-ai-source dd{margin:0;color:#30475e;font-size:12px;line-height:19px}
body[data-app-surface="web"] .workbench-ai-pagebar{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin:0 0 10px}
body[data-app-surface="web"] .workbench-ai-pagebar button{height:30px;padding:0 11px;border:1px solid #cbd9e6;border-radius:4px;background:#fff;color:#42627e;cursor:pointer}
body[data-app-surface="web"] .workbench-ai-pagebar button:disabled{color:#a6b2bd;background:#f6f8fa;cursor:not-allowed}
body[data-app-surface="web"] .workbench-ai-pagebar span{min-width:46px;color:#526a80;font-size:12px;text-align:center}
body[data-app-surface="web"] .workbench-ai-batch-summary{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;padding:11px 13px;border:1px solid #dce8f2;border-radius:6px;background:#f7fbff}
body[data-app-surface="web"] .workbench-ai-batch-summary b{color:#29455f;font-size:13px}
body[data-app-surface="web"] .workbench-ai-batch-summary span{color:#b56c12;font-size:12px}
body[data-app-surface="web"] .workbench-ai-form-preview{border:1px solid #dce6ef;border-radius:7px;background:#fff;overflow:hidden}
body[data-app-surface="web"] .workbench-ai-form-preview>header{display:flex;min-height:52px;align-items:center;justify-content:space-between;gap:16px;padding:8px 14px;border-bottom:1px solid #e2e9f0;background:#f7fafe}
body[data-app-surface="web"] .workbench-ai-form-preview>header>div{display:flex;min-width:0;flex-direction:column;gap:2px}
body[data-app-surface="web"] .workbench-ai-form-preview>header small{color:#778b9e;font-size:10px}
body[data-app-surface="web"] .workbench-ai-form-preview>header b{overflow:hidden;color:#29445e;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
body[data-app-surface="web"] .workbench-ai-form-preview>header>span{padding:4px 8px;border-radius:4px;background:#eaf4fd;color:#2876b9;font-size:11px;white-space:nowrap}
body[data-app-surface="web"] .workbench-ai-form-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);min-height:330px}
body[data-app-surface="web"] .workbench-ai-extraction{min-width:0;padding:14px;border-right:1px solid #e4ebf2}
body[data-app-surface="web"] .workbench-ai-extraction h3,body[data-app-surface="web"] .workbench-ai-linked-form h3{margin:0 0 11px;color:#263f58;font-size:14px}
body[data-app-surface="web"] .workbench-ai-extraction table{width:100%;border-collapse:collapse;table-layout:fixed}
body[data-app-surface="web"] .workbench-ai-extraction th,body[data-app-surface="web"] .workbench-ai-extraction td{padding:8px;border:1px solid #e1e8ef;color:#40576d;font-size:11px;line-height:17px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
body[data-app-surface="web"] .workbench-ai-extraction th{background:#f4f7fa;color:#687b8e;font-weight:600}
body[data-app-surface="web"] .workbench-ai-extraction th:nth-child(1){width:18%}
body[data-app-surface="web"] .workbench-ai-extraction th:nth-child(2){width:34%}
body[data-app-surface="web"] .workbench-ai-extraction th:nth-child(3){width:30%}
body[data-app-surface="web"] .workbench-ai-extraction th:nth-child(4){width:18%}
body[data-app-surface="web"] .workbench-ai-linked-form{min-width:0;padding:14px;background:#fbfdff}
body[data-app-surface="web"] .workbench-ai-linked-form__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
body[data-app-surface="web"] .workbench-ai-linked-form__head h3{margin-bottom:2px}
body[data-app-surface="web"] .workbench-ai-linked-form__head p{margin:0;color:#718497;font-size:11px}
body[data-app-surface="web"] .workbench-ai-linked-form__head>label{display:flex;min-width:180px;flex-direction:column;gap:4px;color:#718497;font-size:10px}
body[data-app-surface="web"] .workbench-ai-linked-form__head select{box-sizing:border-box;width:100%;height:32px;padding:0 8px;border:1px solid #cfdbe7;border-radius:4px;background:#fff;color:#334d66;font-size:11px}
body[data-app-surface="web"] .workbench-ai-linked-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}
body[data-app-surface="web"] .workbench-ai-linked-fields>label{display:flex;min-width:0;flex-direction:column;gap:5px;color:#536a7f;font-size:11px}
body[data-app-surface="web"] .workbench-ai-linked-fields>label.is-wide{grid-column:1/-1}
body[data-app-surface="web"] .workbench-ai-linked-fields>label>span{display:flex;align-items:center;justify-content:space-between;gap:6px}
body[data-app-surface="web"] .workbench-ai-linked-fields em{padding:1px 5px;border-radius:3px;background:#eaf6ef;color:#268057;font-size:9px;font-style:normal;font-weight:400}
body[data-app-surface="web"] .workbench-ai-linked-fields input,body[data-app-surface="web"] .workbench-ai-linked-fields textarea{box-sizing:border-box;width:100%;border:1px solid #ccd9e5;border-radius:4px;background:#fff;color:#2e465d;font:inherit;font-size:12px}
body[data-app-surface="web"] .workbench-ai-linked-fields input{height:34px;padding:0 8px}
body[data-app-surface="web"] .workbench-ai-linked-fields textarea{min-height:64px;padding:8px;line-height:18px;resize:vertical}
body[data-app-surface="web"] .workbench-ai-linked-fields :is(input,textarea)[readonly]{background:#f7f9fb;color:#40566d}
body[data-app-surface="web"] .workbench-ai-batch-forms .workbench-ai-form-preview{margin-top:0}
@media(max-width:900px){body[data-app-surface="web"] .workbench-ai-analysis-card{min-width:0}body[data-app-surface="web"] .workbench-ai-analysis-card>dl{grid-template-columns:1fr 1fr}body[data-app-surface="web"] .workbench-ai-source{grid-template-columns:1fr}}
@media(max-width:900px){body[data-app-surface="web"] .workbench-ai-form-layout{grid-template-columns:1fr}body[data-app-surface="web"] .workbench-ai-extraction{border-right:0;border-bottom:1px solid #e4ebf2}body[data-app-surface="web"] .workbench-ai-form-preview>header,body[data-app-surface="web"] .workbench-ai-batch-summary{align-items:flex-start;flex-direction:column}body[data-app-surface="web"] .workbench-ai-linked-form__head{flex-direction:column}body[data-app-surface="web"] .workbench-ai-linked-form__head>label{width:100%}}

/* W01 homepage polish: unified visual identifiers and lighter workflow nodes */
body[data-app-surface="web"] .web-brand .brand-mark.brand-mark--construction{
  width:38px;
  height:38px;
  border-radius:0;
  color:transparent;
  background-color:transparent;
  background-image:url('../assets/web-menu-icons-a-v1.png');
  background-repeat:no-repeat;
  background-position:66.667% 0;
  background-size:400% 200%;
  box-shadow:none;
}
body[data-app-surface="web"] .workbench-title-icon{
  display:block;
  width:34px;
  height:34px;
  flex:0 0 34px;
  background-repeat:no-repeat;
  background-size:400% 200%;
}
body[data-app-surface="web"] .workbench-title-icon--ai,
body[data-app-surface="web"] .workbench-title-icon--todo{background-image:url('../assets/web-menu-icons-b-v1.png')}
body[data-app-surface="web"] .workbench-title-icon--ai{background-position:100% 100%}
body[data-app-surface="web"] .workbench-title-icon--todo{background-position:33.333% 100%}
body[data-app-surface="web"] .workbench-title-icon--flow{
  background-image:url('../assets/web-menu-icons-a-v1.png');
  background-position:100% 0;
}
body[data-app-surface="web"] .workbench-ai-mark.workbench-title-icon{
  width:36px;
  height:36px;
  flex-basis:36px;
  border-radius:0;
  background-color:transparent;
  box-shadow:none;
}
body[data-app-surface="web"] .business-workbench--v10 .workbench-card>header>div{gap:10px}
body[data-app-surface="web"] .workbench-todo>header small{
  margin:0 0 0 -2px!important;
  padding:2px 7px;
  border-radius:4px;
  color:#62778c!important;
  background:#eef4fa;
  font-size:11px!important;
  line-height:18px!important;
}
body[data-app-surface="web"] .workbench-view-all{
  display:inline-flex;
  align-items:center;
  gap:4px;
  color:#2778c2!important;
}
body[data-app-surface="web"] .workbench-view-all .ui-icon{width:14px;height:14px}
body[data-app-surface="web"] .workbench-flow__canvas{
  border-top:1px solid rgba(215,227,239,.62);
  background:linear-gradient(180deg,#f8fbff 0%,#f2f7fc 100%);
}
body[data-app-surface="web"] .workbench-flow-graph>svg g>path{stroke:#86b7e8;stroke-width:1.4}
body[data-app-surface="web"] .workbench-flow-graph>svg marker path{fill:#86b7e8}
body[data-app-surface="web"] .workbench-flow-graph>button{
  width:90%;
  max-width:none;
  height:76px;
  grid-template-rows:46px 18px;
  align-content:center;
  gap:4px;
  padding:4px 2px;
  border:1px solid transparent;
  border-radius:10px;
  background:transparent;
  box-shadow:none;
  transition:transform 160ms ease,background-color 160ms ease,box-shadow 160ms ease,border-color 160ms ease;
}
body[data-app-surface="web"] .workbench-flow-graph>button:hover{
  border-color:rgba(185,211,237,.75);
  background:rgba(255,255,255,.72);
  box-shadow:0 7px 18px rgba(47,91,132,.09);
  transform:translateY(-2px);
}
body[data-app-surface="web"] .workbench-flow-graph>button:active{transform:translateY(0) scale(.98)}
body[data-app-surface="web"] .workbench-flow-graph>button:focus-visible{outline:2px solid #4b92da;outline-offset:2px}
body[data-app-surface="web"] .workbench-flow-icon{
  width:44px;
  height:44px;
  transition:transform 160ms ease;
}
body[data-app-surface="web"] .workbench-flow-graph>button:hover .workbench-flow-icon{transform:scale(1.04)}
body[data-app-surface="web"] .workbench-flow-graph>button b{
  overflow:visible;
  color:#2f4861;
  font-size:12px;
  font-weight:650;
  line-height:18px;
  text-overflow:clip;
  white-space:nowrap;
}
@media(prefers-reduced-motion:reduce){
  body[data-app-surface="web"] .workbench-flow-graph>button,
  body[data-app-surface="web"] .workbench-flow-icon{transition:none}
}
/* Web metric cards: use the compact contract-ledger card as the global visual baseline. */
body[data-app-surface="web"] :is(
  .metric-grid,
  .business-summary,
  .contract-kpis,
  .mat-kpis,
  .saf-kpis,
  .prg-kpis,
  .prg-impact-summary,
  .business-workbench__metrics
) {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px;
  margin-top: 0;
  margin-bottom: var(--web-surface-gap, 12px);
  overflow: visible;
  border: 0;
  background: transparent;
}

body[data-app-surface="web"] :is(
  .business-summary,
  .contract-kpis,
  .mat-kpis,
  .saf-kpis,
  .prg-kpis,
  .prg-impact-summary,
  .business-workbench__metrics
) > :is(article, button),
body[data-app-surface="web"] .metric-card {
  position: relative;
  box-sizing: border-box;
  display: grid;
  min-width: 0;
  min-height: 78px;
  align-content: center;
  gap: 0;
  padding: 10px 14px 9px;
  overflow: hidden;
  border: 1px solid #e4eaf3;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(15 38 68 / 3%);
}

body[data-app-surface="web"] :is(.saf-kpis, .prg-kpis) > article {
  border-left: 1px solid #e4eaf3;
  border-right: 1px solid #e4eaf3;
}

body[data-app-surface="web"] :is(
  .business-summary,
  .contract-kpis,
  .mat-kpis,
  .saf-kpis,
  .prg-kpis,
  .prg-impact-summary
) > article::before,
body[data-app-surface="web"] .business-workbench__metrics > :is(article, button)::before,
body[data-app-surface="web"] .metric-card::after {
  position: absolute;
  top: 11px;
  bottom: 11px;
  left: 0;
  width: 3px;
  height: auto;
  border-radius: 0 3px 3px 0;
  background: #409eff;
  content: "";
}

body[data-app-surface="web"] :is(.mat-kpis, .saf-kpis, .prg-kpis) > .tone-success::before,
body[data-app-surface="web"] .metric-card.tone-success::after { background: #67c23a; }
body[data-app-surface="web"] :is(.mat-kpis, .saf-kpis, .prg-kpis) > .tone-warning::before,
body[data-app-surface="web"] .business-workbench__metrics > .is-warning::before,
body[data-app-surface="web"] .metric-card.tone-warning::after { background: #e6a23c; }
body[data-app-surface="web"] :is(.mat-kpis, .saf-kpis, .prg-kpis) > .tone-danger::before,
body[data-app-surface="web"] .business-workbench__metrics > .is-danger::before,
body[data-app-surface="web"] .metric-card.tone-danger::after { background: #f56c6c; }
body[data-app-surface="web"] :is(.mat-kpis, .saf-kpis, .prg-kpis) > .tone-info::before { background: #909399; }
body[data-app-surface="web"] .prg-impact-summary > article:nth-child(2)::before { background: #67c23a; }
body[data-app-surface="web"] .prg-impact-summary > article:nth-child(3)::before { background: #e6a23c; }
body[data-app-surface="web"] .prg-impact-summary > article:nth-child(4)::before { background: #f56c6c; }

body[data-app-surface="web"] :is(
  .business-summary,
  .contract-kpis,
  .mat-kpis,
  .saf-kpis,
  .prg-kpis,
  .prg-impact-summary
) :is(span, small),
body[data-app-surface="web"] :is(.metric-label, .metric-meta, .metric-card__label, .metric-card__meta),
body[data-app-surface="web"] .business-workbench__metrics :is(span, small) {
  color: #7a879b;
  font-size: 11px;
  line-height: 16px;
}

body[data-app-surface="web"] :is(
  .business-summary,
  .contract-kpis,
  .mat-kpis,
  .saf-kpis,
  .prg-kpis,
  .prg-impact-summary
) :is(strong, b),
body[data-app-surface="web"] :is(.metric-value, .metric-card__value),
body[data-app-surface="web"] .business-workbench__metrics b {
  display: block;
  margin: 2px 0 0;
  color: #14213d;
  font-size: 21px;
  font-weight: 700;
  line-height: 27px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums lining-nums;
}

@media (max-width: 1100px) {
  body[data-app-surface="web"] :is(
    .metric-grid,
    .business-summary,
    .contract-kpis,
    .mat-kpis,
    .saf-kpis,
    .prg-kpis,
    .prg-impact-summary,
    .business-workbench__metrics
  ) {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
/* Enterprise system management workspace */
.sys-page{display:flex;flex-direction:column;gap:16px;padding:0 2px 24px;color:#172b4d}.sys-page-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;background:#fff;border:1px solid #dbe5f1;border-radius:10px}.sys-page-head>div{display:flex;align-items:center;gap:12px}.sys-page-head__icon{display:grid;place-items:center;width:42px;height:42px;border-radius:10px;background:linear-gradient(135deg,#2586ef,#1768d5);color:#fff;font-size:20px}.sys-page-head h2{margin:0;font-size:20px}.sys-page-head p{margin:5px 0 0;color:#718096;font-size:13px}.sys-tabs{display:flex;gap:4px;overflow:auto;padding:0 14px;background:#fff;border:1px solid #dbe5f1;border-radius:10px}.sys-tabs a{flex:0 0 auto;padding:14px 16px 12px;color:#53657d;text-decoration:none;border-bottom:3px solid transparent}.sys-tabs a.is-active{color:#1677e8;font-weight:700;border-color:#1677e8}.sys-panel{background:#fff;border:1px solid #dbe5f1;border-radius:10px;overflow:hidden}.sys-panel>header{min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid #e8eef6}.sys-panel>header h3{margin:0;font-size:16px}.sys-panel__tools{display:flex;gap:8px}.sys-query{display:flex;align-items:flex-end;gap:12px;padding:16px 18px;background:#f8fbff;border-bottom:1px solid #e8eef6}.sys-query label,.sys-form label,.sys-flow-properties label,.sys-test-sample label{display:flex;flex-direction:column;gap:6px;color:#51647d;font-size:12px}.sys-query input,.sys-query select,.sys-form input,.sys-form select,.sys-form textarea,.sys-flow-properties input,.sys-flow-properties select,.sys-test-sample input,.sys-test-sample select,.sys-preview select{height:36px;min-width:210px;padding:0 10px;border:1px solid #cdd9e8;border-radius:6px;background:#fff;color:#243b5a}.sys-query>div{display:flex;gap:8px}.sys-table-wrap{position:relative;overflow:auto}.sys-table{width:100%;border-collapse:collapse;white-space:nowrap}.sys-table th{height:42px;padding:0 14px;background:#f6f8fb;color:#62748a;text-align:left;font-size:12px}.sys-table td{height:48px;padding:0 14px;border-top:1px solid #edf1f6;font-size:13px}.sys-table tr:hover td{background:#f9fcff}.sys-empty{padding:44px;text-align:center;color:#8594a8}.sys-status{display:inline-flex;align-items:center;padding:3px 8px;border-radius:12px;background:#edf3fa;color:#52677f;font-size:12px}.sys-status--success{background:#e8f8f0;color:#158559}.sys-status--warning{background:#fff5df;color:#b66b08}.sys-status--danger{background:#fff0f0;color:#d83a45}.sys-status--info{background:#eaf3ff;color:#286fca}.sys-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.sys-metric{position:relative;padding:16px 18px;background:#fff;border:1px solid #dbe5f1;border-radius:10px;overflow:hidden}.sys-metric:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#3988e8}.sys-metric--green:before{background:#25ad79}.sys-metric--red:before{background:#ec5d63}.sys-metric--orange:before{background:#f29b38}.sys-metric span,.sys-metric small{display:block;color:#718096}.sys-metric strong{display:block;margin:7px 0 4px;font-size:24px}.sys-split{display:grid;grid-template-columns:300px 1fr;gap:16px}.sys-tree{display:flex;flex-direction:column;padding:12px}.sys-tree button,.sys-role-list button{padding:10px 12px;border:0;background:transparent;text-align:left;color:#334c6d;border-radius:6px}.sys-tree button:hover,.sys-tree button.is-current,.sys-role-list button.is-current{background:#eaf3ff;color:#1677e8}.sys-card-grid,.sys-env-grid,.sys-policy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;padding:16px}.sys-card-grid article,.sys-env-grid article,.sys-policy-grid article{padding:16px;border:1px solid #dbe5f1;border-radius:8px;background:#fbfdff}.sys-card-grid h4,.sys-env-grid h4,.sys-policy-grid h3{margin:0 0 10px}.sys-card-grid p,.sys-env-grid p{color:#53657d}.sys-callout{display:flex;gap:14px;align-items:center;margin:16px;padding:12px 14px;background:#edf6ff;border-left:4px solid #2f86e9;border-radius:6px}.sys-callout span{color:#53657d;font-size:13px}.sys-role-layout{display:grid;grid-template-columns:240px 1fr;gap:16px}.sys-role-list{background:#fff;border:1px solid #dbe5f1;border-radius:10px;padding:12px}.sys-role-list header{display:flex;justify-content:space-between;align-items:center;padding:4px 4px 12px}.sys-role-list button{display:flex;width:100%;justify-content:space-between}.sys-legend{display:flex;gap:18px;padding:13px 18px;color:#65778e;font-size:12px}.sys-permission-toggle{min-width:72px;padding:5px 10px;border:1px solid #ccd8e7;border-radius:14px;background:#fff;color:#65778e}.sys-permission-toggle.is-on{border-color:#76b9ff;background:#eaf4ff;color:#1677e8}.sys-preview{padding:18px}.sys-preview>div{display:flex;gap:12px}.sys-preview ul{padding:12px 0 0;list-style:none}.sys-preview li{margin-top:10px;padding:12px;border-radius:6px}.sys-preview li.is-risk{background:#fff5ec;color:#9b5c11}.sys-preview li.is-ok{background:#ebf8f2;color:#177b56}.sys-flow-designer{display:grid;grid-template-columns:1fr 280px;gap:16px}.sys-flow-canvas{min-height:380px;display:flex;align-items:center;justify-content:center;gap:14px;padding:28px;background-color:#f5f9fe;background-image:radial-gradient(#cedceb 1px,transparent 1px);background-size:18px 18px}.sys-flow-node{display:flex;flex-direction:column;gap:5px;min-width:140px;padding:14px;border:1px solid #9bc5f6;border-radius:8px;background:#fff;box-shadow:0 4px 12px rgba(47,99,154,.08)}.sys-flow-node small,.sys-flow-node span{color:#718096}.sys-flow-node.is-start{border-color:#75c89e}.sys-flow-node.is-condition{transform:rotate(3deg);border-color:#f1a84b}.sys-flow-branch{display:flex;flex-direction:column;gap:26px;color:#55799e;font-size:12px}.sys-flow-properties{padding:18px;background:#fff;border:1px solid #dbe5f1;border-radius:10px}.sys-flow-properties h3{margin:0 0 18px}.sys-flow-properties label{margin-bottom:14px}.sys-version-layout,.sys-rule-layout{display:grid;grid-template-columns:1fr 300px;gap:16px}.sys-version{padding:18px;background:#fff;border:1px solid #dbe5f1;border-radius:10px}.sys-version__head{display:flex;justify-content:space-between}.sys-version__head b{display:block;font-size:20px}.sys-version__head span{color:#718096;font-size:12px}.sys-version__steps{display:flex;flex-direction:column;gap:8px;margin:20px 0}.sys-version__steps span{color:#8291a5}.sys-version__steps i{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:8px;border-radius:50%;background:#e6edf5;font-style:normal}.sys-version__steps span.is-done{color:#1677e8}.sys-version__steps span.is-done i{background:#1677e8;color:#fff}.sys-version dl,.sys-policy-grid dl,.sys-evidence{display:grid;grid-template-columns:100px 1fr;gap:8px;font-size:13px}.sys-version dt,.sys-policy-grid dt,.sys-evidence dt{color:#718096}.sys-rule-builder,.sys-test-sample{padding:18px}.sys-rule-builder p{display:flex;align-items:center;gap:10px}.sys-rule-builder select,.sys-rule-builder input{height:34px;border:1px solid #cdd9e8;border-radius:6px;padding:0 8px}.sys-test-sample{margin:0 18px 18px;background:#f7faff;border-radius:8px}.sys-settings-panel{position:relative;padding-right:316px}.sys-settings-panel>.sys-version{position:absolute;right:16px;top:72px;width:282px}.sys-mapping{display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:16px}.sys-field-list{display:flex;flex-direction:column;padding:12px}.sys-field-list button{display:flex;flex-direction:column;gap:5px;padding:12px;border:0;border-radius:6px;background:transparent;text-align:left}.sys-field-list button.is-current{background:#eaf4ff;color:#1677e8}.sys-field-list span{font-size:12px;color:#718096}.sys-transform{padding:18px}.sys-transform p{display:flex;gap:12px}.sys-trend{height:190px;display:flex;align-items:flex-end;gap:7%;padding:18px 28px 36px;position:relative;background:linear-gradient(#fff,#f7fbff)}.sys-trend span{flex:1;background:linear-gradient(#83c5ff,#2380e8);border-radius:5px 5px 0 0}.sys-trend i{position:absolute;left:28px;right:28px;bottom:12px;color:#8b99aa;font-size:11px;font-style:normal}.sys-lineage{display:flex;align-items:center;justify-content:center;gap:18px;min-height:260px;padding:24px;background:#f7fbff}.sys-lineage div{display:flex;flex-direction:column;gap:5px;min-width:155px;padding:16px;border:1px solid #9bc5f6;border-radius:8px;background:#fff}.sys-lineage small,.sys-lineage span{color:#718096}.sys-impact{display:flex;gap:14px;margin:16px;padding:12px 16px;background:#fff5df;border-radius:6px}.sys-policy-grid{grid-template-columns:repeat(2,1fr);padding:0}.sys-policy-grid article header{display:flex;justify-content:space-between}.sys-layer{padding:4px}.sys-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sys-form textarea{height:96px;padding-top:8px}.sys-preview-screen,.sys-trace{padding:8px}.sys-trace div{display:flex;justify-content:space-between;padding:14px;border-left:3px solid #2f86e9;border-bottom:1px solid #edf1f6}.sys-trace span{color:#718096}.sys-evidence{padding:18px;background:#f7faff;border-radius:8px}.sys-evidence dd{margin:0}.sys-env-grid{grid-template-columns:repeat(3,1fr)}
@media(max-width:1200px){.sys-metrics{grid-template-columns:repeat(2,1fr)}.sys-mapping{grid-template-columns:1fr}.sys-settings-panel{padding-right:0}.sys-settings-panel>.sys-version{position:static;width:auto;margin:16px}.sys-flow-designer,.sys-version-layout,.sys-rule-layout{grid-template-columns:1fr}.sys-policy-grid{grid-template-columns:1fr}}
.sys-required{margin-right:3px;color:#e34d59}.sys-form-error{grid-column:1/-1;margin:0;padding:9px 12px;border-radius:6px;background:#fff0f0;color:#c93643;font-size:13px}.sys-result-strip{display:flex;align-items:center;gap:18px;margin:14px 18px;padding:12px 14px;border:1px solid #b9dafc;border-radius:7px;background:#f0f7ff;color:#355b83}.sys-result-strip span{font-size:13px}

/* System management visual consolidation: one continuous enterprise workspace. */
.sys-page{gap:0;padding:0;background:#fff;border:1px solid #d9e2ee;border-radius:8px;overflow:hidden}
.sys-page-head{min-height:64px;padding:0 18px;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:#fff}
.sys-page-head__icon{width:22px;height:22px;border-radius:0;background:transparent;color:#1677d2;font-size:15px}
.sys-page-head__icon svg{width:18px;height:18px}
.sys-page-head h2{font-size:17px;line-height:24px}
.sys-page-head p{margin-top:2px;font-size:12px;color:#7b899b}
.sys-page-head>div:last-child:empty{display:none}
.sys-tabs{gap:20px;min-height:44px;padding:0 18px;border:0;border-bottom:1px solid #e7edf4;border-radius:0;background:#fbfcfe}
.sys-tabs a{display:flex;align-items:center;padding:0 2px;border-width:2px;font-size:13px}
.sys-page-body{display:flex;flex-direction:column;gap:14px;padding:16px;background:#f5f7fa}
.sys-page-body>.sys-panel,.sys-page-body>.sys-split,.sys-page-body>.sys-role-layout,.sys-page-body>.sys-flow-designer,.sys-page-body>.sys-version-layout,.sys-page-body>.sys-rule-layout,.sys-page-body>.sys-mapping,.sys-page-body>.sys-policy-grid{min-width:0}
.sys-panel{border-color:#dce4ed;border-radius:6px;box-shadow:none}
.sys-panel>header{min-height:48px;padding:0 14px}
.sys-panel>header h3{font-size:15px}
.sys-panel__tools .el-button{height:30px;padding:0 12px}
.sys-query{padding:12px 14px;background:#fafbfd}
.sys-query input,.sys-query select{height:32px}
.sys-table{table-layout:auto}
.sys-table th{height:38px;padding:0 12px;background:#f4f6f9;color:#55677d;font-weight:600}
.sys-table td{height:44px;padding:0 12px;color:#263b56}
.sys-table th:last-child,.sys-table td:last-child{width:112px;text-align:center;white-space:nowrap}
.sys-table td:last-child .el-button{height:auto;min-width:0;margin:0 5px;padding:0;border:0;background:transparent;box-shadow:none;color:#1677d2;line-height:22px}
.sys-table td:last-child .el-button:hover{background:transparent;color:#0b5cab;text-decoration:underline}
.sys-table td:last-child .el-button--primary{background:transparent;color:#1677d2}
.sys-table td:not(:last-child){max-width:300px;overflow:hidden;text-overflow:ellipsis}
.sys-status{padding:2px 7px;border-radius:4px}
.sys-metrics{display:flex;gap:0;border:1px solid #dce4ed;border-radius:6px;background:#fff;overflow:hidden}
.sys-metric{flex:1;min-width:0;padding:14px 18px;border:0;border-right:1px solid #e7edf4;border-radius:0;background:#fff}
.sys-metric:last-child{border-right:0}
.sys-metric:before{width:3px}
.sys-metric strong{margin:4px 0 2px;font-size:21px}
.sys-split{grid-template-columns:260px minmax(0,1fr);gap:14px}
.sys-tree{padding:8px}
.sys-tree button{min-height:34px;padding:7px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sys-role-layout{grid-template-columns:272px minmax(0,1fr);gap:14px}
.sys-role-list{padding:0;border-color:#dce4ed;border-radius:6px;overflow:hidden}
.sys-role-list header{min-height:48px;padding:0 14px;border-bottom:1px solid #e7edf4;white-space:nowrap}
.sys-role-list header b{font-size:15px}
.sys-role-list button{min-height:40px;padding:0 14px;border-radius:0;white-space:nowrap}
.sys-role-list button small{flex:none;margin-left:14px}
.sys-legend{padding:10px 14px;border-bottom:1px solid #edf1f5}
.sys-card-grid,.sys-env-grid,.sys-policy-grid{gap:0;padding:0;border:1px solid #dce4ed;border-radius:6px;background:#fff;overflow:hidden}
.sys-card-grid article,.sys-env-grid article,.sys-policy-grid article{padding:16px 18px;border:0;border-right:1px solid #e7edf4;border-radius:0;background:#fff}
.sys-card-grid article:last-child,.sys-env-grid article:last-child{border-right:0}
.sys-policy-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.sys-policy-grid article{border-bottom:1px solid #e7edf4}
.sys-risk-summary{display:flex;align-items:center;min-height:54px;padding:0 16px;border:1px solid #dce4ed;border-radius:6px;background:#fff}
.sys-risk-summary span{display:flex;align-items:baseline;gap:7px;min-width:160px;color:#596b80;font-size:13px}
.sys-risk-summary span+span{padding-left:20px;border-left:1px solid #e7edf4}
.sys-risk-summary b{font-size:20px;color:#243b5a}
.sys-risk-summary em{margin-left:auto;color:#8492a5;font-size:12px;font-style:normal}
.sys-preview{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;padding:14px}
.sys-preview__filters{display:flex!important;flex-direction:column;gap:12px;padding-right:18px;border-right:1px solid #e7edf4}
.sys-preview__filters select{width:100%;min-width:0}
.sys-conflict-list{display:flex;flex-direction:column}
.sys-conflict-list article{display:grid;grid-template-columns:70px minmax(0,1fr) 180px;align-items:center;min-height:48px;padding:0 12px;border-bottom:1px solid #edf1f5}
.sys-conflict-list article:last-child{border-bottom:0}
.sys-conflict-list article b{font-size:12px}
.sys-conflict-list article small{color:#77879a;text-align:right}
.sys-conflict-list article[data-level="high"] b{color:#d33f49}.sys-conflict-list article[data-level="medium"] b{color:#b36b09}.sys-conflict-list article[data-level="normal"] b{color:#16835b}
.sys-flow-designer{grid-template-columns:minmax(0,1fr) 300px;gap:14px}
.sys-flow-properties{border-color:#dce4ed;border-radius:6px}
.sys-version-layout,.sys-rule-layout{grid-template-columns:minmax(0,1fr) 300px;gap:14px}
.sys-version{border-color:#dce4ed;border-radius:6px;box-shadow:none}
.sys-mapping{grid-template-columns:minmax(220px,.8fr) minmax(320px,1.2fr) minmax(220px,.8fr);gap:14px}
.sys-mapping{gap:0;border:1px solid #dce4ed;border-radius:6px;background:#fff;overflow:hidden}
.sys-mapping>.sys-panel{border:0;border-right:1px solid #e7edf4;border-radius:0}
.sys-mapping>.sys-panel:last-child{border-right:0}
.sys-callout{margin:12px 14px;border-radius:4px}
.sys-role-layout{align-items:start}
.sys-role-list{align-self:start;height:auto}
.sys-role-list>button{align-items:center;line-height:20px}
.sys-role-list header .el-button{display:inline-flex;width:auto;height:auto;min-width:0;justify-content:flex-start;padding:0;border:0;background:transparent;box-shadow:none;color:#1677d2;line-height:20px}
.sys-role-list header .el-button:hover{background:transparent;color:#0b5cab;text-decoration:underline}
.sys-permission-check{display:inline-flex;align-items:center;gap:7px;color:#7a8798;font-size:13px;line-height:20px;cursor:pointer}
.sys-permission-check input{width:15px;height:15px;margin:0;accent-color:#1677d2;cursor:pointer}
.sys-permission-check.is-on{color:#1677d2}
.sys-permission-check:has(input:disabled){color:#5c6f84;cursor:default}
.sys-permission-check input:disabled{cursor:default;opacity:.72}
.sys-settings-workspace{display:flex;min-width:0;flex-direction:column;gap:14px}
.sys-settings-workspace>.sys-settings-panel{position:static;padding-right:0}
.sys-settings-workspace>.sys-version{display:grid;grid-template-columns:170px minmax(420px,1fr) auto 250px;align-items:center;gap:20px;padding:14px 16px}
.sys-settings-workspace .sys-version__steps{display:grid;grid-template-columns:repeat(4,minmax(92px,1fr));gap:0;margin:0}
.sys-settings-workspace .sys-version__steps span{position:relative;white-space:nowrap}
.sys-settings-workspace .sys-version__steps span:not(:last-child):after{content:"";position:absolute;left:24px;right:8px;top:11px;height:1px;background:#d8e2ee;z-index:0}
.sys-settings-workspace .sys-version__steps i{position:relative;z-index:1}
.sys-settings-workspace .sys-version__actions{white-space:nowrap}
.sys-settings-workspace .sys-version dl{grid-template-columns:68px 1fr;margin:0;padding-left:18px;border-left:1px solid #e7edf4}
.sys-policy-list .sys-table th:nth-child(2),.sys-policy-list .sys-table td:nth-child(2){width:34%;white-space:normal;line-height:20px}
.sys-policy-list .sys-table td{height:58px}
@media(max-width:1100px){.sys-role-layout,.sys-split{grid-template-columns:220px minmax(0,1fr)}.sys-preview{grid-template-columns:1fr}.sys-preview__filters{display:grid!important;grid-template-columns:1fr 1fr;padding-right:0;padding-bottom:14px;border-right:0;border-bottom:1px solid #e7edf4}.sys-conflict-list article{grid-template-columns:64px minmax(0,1fr)}.sys-conflict-list article small{grid-column:2;text-align:left}.sys-metrics{display:grid;grid-template-columns:repeat(2,1fr)}.sys-metric:nth-child(2){border-right:0}.sys-mapping{grid-template-columns:1fr}}
@media(max-width:1280px){.sys-settings-workspace>.sys-version{grid-template-columns:150px minmax(380px,1fr) auto}.sys-settings-workspace .sys-version dl{display:none}}

/* Mobile progress form section titles: override later global card/header rules. */
body[data-app-surface="mobile"] .phone-frame .mobile-content[data-page-code="M20"] .m-prg-form-section>header{justify-content:flex-start;text-align:left}
body[data-app-surface="mobile"] .phone-frame .mobile-content[data-page-code="M20"] .m-prg-form-section>header h2{flex:1;width:100%;margin:0;color:var(--el-text-color-primary);font-size:15px;font-weight:600;line-height:22px;text-align:left}

/* System management task-layout refinements. */
.sys-preview{display:grid;grid-template-columns:1fr;gap:0;padding:0}
.sys-preview__filters{display:grid!important;grid-template-columns:minmax(240px,320px) minmax(240px,320px) minmax(280px,1fr);align-items:end;gap:14px;padding:14px 16px;border-right:0;border-bottom:1px solid #e7edf4;background:#fafbfd}
.sys-preview__filters label{display:grid;gap:6px;color:#596b80;font-size:12px}
.sys-preview__filters select{height:34px}
.sys-preview__filters>span{align-self:center;color:#8190a2;font-size:12px;text-align:right}
.sys-conflict-list{display:block}
.sys-conflict-list article{display:grid;grid-template-columns:78px minmax(320px,1.5fr) minmax(240px,1fr) minmax(220px,.9fr);align-items:center;min-height:54px;padding:0 16px;gap:16px;border-bottom:1px solid #edf1f5}
.sys-conflict-list article:last-child{border-bottom:0}
.sys-conflict-list article small{color:#77879a;text-align:left}
.sys-conflict-list article em{color:#53677f;font-size:12px;font-style:normal;text-align:right}
.sys-version-layout,.sys-rule-layout{align-items:start}
.sys-version-layout>.sys-version,.sys-rule-layout>.sys-version{align-self:start;padding:16px}
.sys-version-layout>.sys-version .sys-version__steps,.sys-rule-layout>.sys-version .sys-version__steps{gap:0;margin:14px 0}
.sys-version-layout>.sys-version .sys-version__steps span,.sys-rule-layout>.sys-version .sys-version__steps span{position:relative;min-height:34px}
.sys-version-layout>.sys-version .sys-version__steps span:not(:last-child):after,.sys-rule-layout>.sys-version .sys-version__steps span:not(:last-child):after{content:"";position:absolute;top:22px;bottom:-2px;left:10px;width:1px;background:#dbe4ee}
.sys-version-layout>.sys-version dl,.sys-rule-layout>.sys-version dl{grid-template-columns:72px 1fr;margin:14px 0 0;padding-top:12px;border-top:1px solid #e7edf4}
.sys-rule-workspace{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);min-height:230px}
.sys-rule-builder{display:grid;align-content:start;gap:12px;padding:16px;border-right:1px solid #e7edf4}
.sys-rule-builder p{display:grid;grid-template-columns:44px minmax(140px,1fr) 118px minmax(150px,1fr);align-items:center;gap:8px;margin:0}
.sys-rule-builder p:last-child{grid-template-columns:44px minmax(210px,1fr) minmax(190px,1.1fr)}
.sys-rule-builder p>b{color:#35506e}
.sys-rule-builder select,.sys-rule-builder input{width:100%;min-width:0}
.sys-test-sample{display:grid;align-content:start;gap:12px;margin:0;padding:16px;border-radius:0;background:#f8fafc}
.sys-test-sample h4{margin:0 0 2px}
.sys-test-sample>div{padding:10px 12px;border-left:3px solid #e6a23c;background:#fff}
.sys-settings-workspace>.sys-version{min-height:76px;padding:12px 16px}
.sys-settings-workspace .sys-version__head{justify-content:flex-start;align-items:center;gap:10px}
.sys-settings-workspace .sys-version__head>div{min-width:76px}
.sys-settings-workspace .sys-version__head b{font-size:18px}
.sys-settings-workspace .sys-version__steps span{font-size:12px}
.sys-mapping>.sys-panel{align-self:stretch}
.sys-field-list{padding:0}
.sys-field-list button{min-height:58px;padding:10px 14px;border-bottom:1px solid #edf1f5;border-radius:0}
.sys-field-list button:last-child{border-bottom:0}
.sys-field-list button.is-current{box-shadow:inset 3px 0 #1677d2}
.sys-transform{display:grid;gap:0;padding:0}
.sys-map-rule{display:grid;gap:5px;min-height:58px;padding:10px 14px;border-bottom:1px solid #edf1f5;background:#fff}
.sys-map-rule>div{display:grid;grid-template-columns:minmax(120px,1fr) 24px minmax(120px,1fr);align-items:center;gap:8px}
.sys-map-rule i{color:#1677d2;font-style:normal;text-align:center}
.sys-map-rule small{color:#78889b}
.sys-map-result{display:flex;align-items:center;gap:8px;padding:12px 14px;background:#f4fbf7;color:#45645a}
@media(max-width:1280px){.sys-preview__filters{grid-template-columns:1fr 1fr}.sys-preview__filters>span{grid-column:1/-1;text-align:left}.sys-conflict-list article{grid-template-columns:72px minmax(260px,1.4fr) minmax(200px,1fr)}.sys-conflict-list article em{grid-column:2/-1;text-align:left}.sys-rule-workspace{grid-template-columns:1fr}.sys-rule-builder{border-right:0;border-bottom:1px solid #e7edf4}}

/* Basic settings: keep version publishing in the same right rail used by other configuration pages. */
.sys-settings-workspace{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:14px}
.sys-settings-workspace>.sys-settings-panel{min-width:0}
.sys-settings-workspace>.sys-version{display:block;align-self:start;min-height:0;padding:16px}
.sys-settings-workspace .sys-version__head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.sys-settings-workspace .sys-version__head>div{min-width:0}
.sys-settings-workspace .sys-version__steps{display:flex;flex-direction:column;gap:0;margin:14px 0}
.sys-settings-workspace .sys-version__steps span{position:relative;min-height:34px;white-space:normal}
.sys-settings-workspace .sys-version__steps span:not(:last-child):after{content:"";position:absolute;top:22px;right:auto;bottom:-2px;left:10px;width:1px;height:auto;background:#dbe4ee;z-index:0}
.sys-settings-workspace .sys-version__actions{white-space:normal}
.sys-settings-workspace .sys-version dl{display:grid;grid-template-columns:72px 1fr;margin:14px 0 0;padding:12px 0 0;border-top:1px solid #e7edf4;border-left:0}
@media(max-width:1100px){.sys-settings-workspace{grid-template-columns:1fr}.sys-settings-workspace>.sys-version{width:auto}.sys-settings-workspace .sys-version dl{display:grid}}

/* Organization and account management: reuse the system-management form, drawer and table language. */
.sys-form-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 16px;padding:0 0 18px;border-bottom:1px solid #e7edf4}
.sys-form-section:last-of-type{padding-bottom:0;border-bottom:0}
.sys-form-section h3{grid-column:1/-1;margin:0;color:#243b5a;font-size:14px;line-height:22px}
.sys-form-section textarea{width:100%;min-width:0;resize:vertical}
.sys-detail-block{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid #e7edf4}
.sys-detail-block:last-child{margin-bottom:0;border-bottom:0}
.sys-detail-block h3{margin:0 0 14px;color:#243b5a;font-size:14px}
.sys-detail-grid{display:grid;grid-template-columns:112px minmax(0,1fr) 112px minmax(0,1fr);gap:12px 16px;margin:0;font-size:13px}
.sys-detail-grid dt{color:#718096}
.sys-detail-grid dd{min-width:0;margin:0;color:#263b56;overflow-wrap:anywhere}
.sys-layer>.sys-panel{margin:0 0 18px;border-radius:6px}
.sys-layer>.sys-panel .sys-table-wrap{max-height:330px}
.sys-task-steps{display:flex;flex-direction:column;border:1px solid #e2e9f1;border-radius:6px;overflow:hidden}
.sys-task-steps>div{display:grid;grid-template-columns:28px minmax(0,1fr) 72px;align-items:center;min-height:44px;padding:0 12px;border-bottom:1px solid #edf1f5;color:#6f8094}
.sys-task-steps>div:last-child{border-bottom:0}
.sys-task-steps b{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:#e8eef5;font-size:11px}
.sys-task-steps em{text-align:right;font-size:12px;font-style:normal}
.sys-task-steps .is-done{color:#177b56}.sys-task-steps .is-done b{background:#e8f8f0}
.sys-task-steps .is-failed{color:#c33c46}.sys-task-steps .is-failed b{background:#fff0f0}
.sys-confirm-business .sys-form{margin-top:16px}
.sys-subpage-toolbar{display:flex;align-items:center;justify-content:space-between;min-height:58px;padding:0 14px;border:1px solid #dce4ed;border-radius:6px;background:#fff}
.sys-subpage-toolbar>div{display:flex;align-items:center;gap:12px}
.sys-subpage-toolbar h3{margin:0;color:#243b5a;font-size:16px;line-height:22px}
.sys-subpage-toolbar span{display:block;margin-top:2px;color:#718096;font-size:12px}
.sys-query{flex-wrap:wrap}
.sys-query label{min-width:180px}
.sys-query>div{margin-left:auto}
@media(max-width:1100px){.sys-detail-grid{grid-template-columns:104px minmax(0,1fr)}.sys-form-section{grid-template-columns:1fr}.sys-query>div{margin-left:0}}

/* System management overlays: shared enterprise form anatomy. */
body[data-app-surface="web"] .el-dialog--domain .sys-layer{padding:0}
body[data-app-surface="web"] .el-dialog--domain .sys-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;align-items:start}
body[data-app-surface="web"] .el-dialog--domain .sys-form-section{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin:0;padding:0 0 22px;border-bottom:1px solid #e5eaf2}
body[data-app-surface="web"] .el-dialog--domain .sys-form-section+.sys-form-section{padding-top:2px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-section:last-of-type{padding-bottom:0;border-bottom:0}
body[data-app-surface="web"] .el-dialog--domain .sys-form-section h3{grid-column:1/-1;margin:0 0 2px;color:#243b5a;font-size:15px;font-weight:600;line-height:22px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item{display:flex;min-width:0;margin:0;flex-direction:column;gap:6px;color:#526078;font-size:13px;line-height:20px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item__label{display:flex;min-height:20px;align-items:center;gap:4px;color:#526078;font-size:13px;font-weight:500;line-height:20px}
body[data-app-surface="web"] .el-dialog--domain .sys-required{flex:0 0 auto;margin:0;color:#e34d59;font-size:13px;font-style:normal;font-weight:600;line-height:20px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item :is(input,select,textarea){box-sizing:border-box;width:100%;min-width:0;margin:0;color:#243b5a;font-size:14px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item :is(input,select){height:36px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item textarea{height:auto;min-height:88px;padding:8px 10px;line-height:20px;resize:vertical}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item--wide{grid-column:1/-1}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item__error{color:#d83a45;font-size:12px;line-height:18px}
body[data-app-surface="web"] .el-dialog--domain .sys-form-item.is-error :is(input,select,textarea){border-color:#e34d59;box-shadow:0 0 0 1px rgb(227 77 89 / 8%)}
body[data-app-surface="web"] .el-dialog--domain .sys-form-error{grid-column:1/-1;margin:0;padding:9px 12px;border:1px solid #ffd7da;border-radius:6px;background:#fff5f5;color:#c93643;font-size:13px}
body[data-app-surface="web"] .el-dialog--domain .sys-confirm-business .sys-form{grid-template-columns:1fr;margin-top:18px;padding-top:18px;border-top:1px solid #e5eaf2}
body[data-app-surface="web"] .el-dialog--domain input[type="file"]{height:36px;padding:5px 8px;background:#fff}
body[data-app-surface="web"] .el-dialog--domain input[type="file"]::file-selector-button{height:24px;margin:-1px 10px -1px -2px;padding:0 10px;border:1px solid #cdd9e8;border-radius:4px;background:#f6f8fb;color:#334c6d;cursor:pointer}
@media(max-width:760px){body[data-app-surface="web"] .el-dialog--domain .sys-form,body[data-app-surface="web"] .el-dialog--domain .sys-form-section{grid-template-columns:1fr}body[data-app-surface="web"] .el-dialog--domain .sys-form-item--wide{grid-column:auto}}

/* Project team detail: compact summary and ledger-first content. */
.sys-team-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:4px 18px}
.sys-team-summary__item{min-width:0;padding:12px 16px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5}
.sys-team-summary__item:nth-child(5n){border-right:0}
.sys-team-summary__item:nth-last-child(-n+5){border-bottom:0}
.sys-team-summary__item span{display:block;margin-bottom:5px;color:#718096;font-size:12px;line-height:18px}
.sys-team-summary__item b{display:block;color:#243b5a;font-size:14px;font-weight:600;line-height:20px;overflow-wrap:anywhere}
.sys-team-summary__item b.is-success{color:#177b56}.sys-team-summary__item b.is-warning{color:#b66b08}.sys-team-summary__item b.is-danger{color:#c93643}
.sys-panel-count{align-self:center;color:#718096;font-size:12px;font-weight:400}
.sys-inner-tabs{display:flex;align-items:center;gap:24px;min-height:50px;padding:0 18px;border:1px solid #dce4ed;border-radius:8px;background:#fff}
.sys-inner-tabs a{display:flex;align-items:center;align-self:stretch;padding:0 2px;border-bottom:3px solid transparent;color:#52677f;text-decoration:none;font-size:14px}
.sys-inner-tabs a.is-active{border-color:#1677e8;color:#1677e8;font-weight:600}
.sys-resource-picker{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-height:360px;overflow:auto;border:1px solid #dce4ed;border-radius:7px;background:#fff}
.sys-resource-picker>label{display:flex;min-width:0;align-items:flex-start;gap:10px;padding:11px 12px;border-right:1px solid #edf1f5;border-bottom:1px solid #edf1f5;cursor:pointer}
.sys-resource-picker>label:nth-child(2n){border-right:0}.sys-resource-picker input{flex:0 0 auto;width:16px!important;height:16px!important;min-width:16px!important;margin:2px 0 0!important}
.sys-resource-picker span{display:flex;min-width:0;flex-direction:column;gap:3px}.sys-resource-picker b{color:#2e4663;font-size:13px}.sys-resource-picker small{color:#718096;line-height:18px;overflow-wrap:anywhere}
.sys-form--compact{grid-template-columns:1fr 1fr;margin-top:16px}.sys-form-section--wide{display:block}.sys-form-section--wide .sys-resource-picker{margin-top:12px}
@media(max-width:900px){.sys-resource-picker,.sys-form--compact{grid-template-columns:1fr}.sys-resource-picker>label{border-right:0}}
.sys-lineage-chain{display:grid;grid-template-columns:minmax(150px,1fr) 28px minmax(150px,1fr) 28px minmax(150px,1fr) 28px minmax(180px,1.15fr);align-items:stretch;gap:8px;margin:0 0 18px;padding:18px;border:1px solid #dce8f5;border-radius:8px;background:#f7fbff}
.sys-lineage-chain>div{display:flex;min-width:0;flex-direction:column;gap:7px;justify-content:center;padding:14px;border:1px solid #b7d4f2;border-radius:7px;background:#fff}
.sys-lineage-chain small{color:#718096;font-size:12px}.sys-lineage-chain b{color:#294463;font-size:13px;line-height:20px;overflow-wrap:anywhere}
.sys-lineage-chain>i{display:grid;place-items:center;color:#3185dc;font-style:normal;font-size:18px}
@media(max-width:900px){.sys-lineage-chain{grid-template-columns:1fr}.sys-lineage-chain>i{transform:rotate(90deg)}}
@media(max-width:1400px){.sys-team-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.sys-team-summary__item:nth-child(5n){border-right:1px solid #edf1f5}.sys-team-summary__item:nth-child(3n){border-right:0}.sys-team-summary__item:nth-last-child(-n+5){border-bottom:1px solid #edf1f5}.sys-team-summary__item:nth-last-child(-n+3){border-bottom:0}}
@media(max-width:900px){.sys-team-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.sys-team-summary__item:nth-child(3n){border-right:1px solid #edf1f5}.sys-team-summary__item:nth-child(2n){border-right:0}.sys-team-summary__item:nth-last-child(-n+3){border-bottom:1px solid #edf1f5}.sys-team-summary__item:nth-last-child(-n+2){border-bottom:0}}

/* Role and permission center: enterprise release, preview and evidence layouts. */
.sys-release-bar{display:grid;grid-template-columns:150px minmax(420px,1fr) minmax(260px,auto) auto;align-items:center;gap:20px;min-height:72px;padding:10px 16px;border:1px solid #dce4ed;border-radius:6px;background:#fff}
.sys-release-bar>div:first-child b{display:block;color:#243b5a;font-size:18px;line-height:24px}.sys-release-bar>div:first-child span{display:block;margin-top:2px;color:#7b899b;font-size:12px}
.sys-release-steps{display:flex;align-items:center}.sys-release-steps span{position:relative;display:flex;flex:1;align-items:center;gap:7px;color:#93a0b1;font-size:12px;white-space:nowrap}.sys-release-steps span:not(:last-child):after{content:"";height:1px;flex:1;margin:0 10px;background:#dce5ef}.sys-release-steps i{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#e8eef5;color:#7d8b9d;font-style:normal}.sys-release-steps span.is-done{color:#1677d2}.sys-release-steps span.is-done i{background:#1677d2;color:#fff}.sys-release-steps span.is-done:not(:last-child):after{background:#82baf1}
.sys-release-bar dl{display:grid;grid-template-columns:58px minmax(160px,1fr);gap:4px 10px;margin:0;font-size:12px}.sys-release-bar dt{color:#8190a2}.sys-release-bar dd{margin:0;color:#3b506c;white-space:nowrap}.sys-release-actions{justify-self:end}
.sys-preview-filterbar{display:flex;align-items:flex-end;gap:12px;padding:14px 18px;border-bottom:1px solid #e7edf4;background:#f8fbff}.sys-preview-filterbar label{display:grid;gap:6px;min-width:250px;color:#596b80;font-size:12px}.sys-preview-filterbar select{height:36px;padding:0 10px;border:1px solid #cdd9e8;border-radius:6px;background:#fff;color:#243b5a}
.sys-preview-screen .sys-panel{margin-top:14px}.sys-preview-screen>.sys-detail-block:first-child{margin-top:0}
.sys-panel+.sys-release-bar,.sys-release-bar+.sys-panel,.sys-subpage-toolbar+.sys-panel{margin-top:14px}
.sys-release-bar+.sys-panel+.sys-panel{margin-top:14px}
@media(max-width:1400px){.sys-release-bar{grid-template-columns:130px minmax(360px,1fr) auto}.sys-release-bar dl{grid-column:1/3;grid-row:2}.sys-release-actions{grid-column:3;grid-row:1/3}.sys-preview-filterbar{flex-wrap:wrap}.sys-preview-filterbar label{flex:1;min-width:220px}}
@media(max-width:900px){.sys-release-bar{grid-template-columns:1fr}.sys-release-steps,.sys-release-bar dl,.sys-release-actions{grid-column:1;grid-row:auto}.sys-release-actions{justify-self:start}.sys-preview-filterbar{display:grid}.sys-preview-filterbar label{min-width:0}}

/* Hierarchical permission resource catalogue shared by templates and roles. */
.sys-permission-tree{width:100%;border:1px solid #dfe7f2;border-radius:8px;overflow:hidden;background:#fff}
.sys-permission-tree__toolbar{min-height:56px;padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e8edf5;background:#fbfcfe}
.sys-permission-tree__toolbar>div:first-child{display:flex;align-items:baseline;gap:14px;min-width:0}.sys-permission-tree__toolbar b{font-size:15px;color:#142b4a}.sys-permission-tree__toolbar span{font-size:13px;color:#6a7890}.sys-permission-tree__toolbar strong{color:#1677d2}
.sys-permission-tree__toolbar .el-button{height:30px;padding:0 11px;margin-left:6px}
.sys-permission-tree__head,.sys-permission-node__row{display:grid;grid-template-columns:minmax(420px,1fr) minmax(170px,260px) 76px 190px;align-items:center}
.sys-permission-tree__head{min-height:36px;padding:0 12px;background:#f3f6fa;color:#6a7890;font-size:12px;font-weight:600}.sys-permission-tree__head span:first-child{padding-left:34px}
.sys-permission-tree__body{max-height:560px;overflow:auto;scrollbar-gutter:stable}
.sys-permission-tree[data-tree-mode="catalog"] .sys-permission-tree__body{height:calc(100vh - 330px);min-height:640px;max-height:none}
.sys-permission-node__row{min-height:48px;padding:0 12px;border-top:1px solid #edf1f6;background:#fff}.sys-permission-node:first-child>.sys-permission-node__row{border-top:0}.sys-permission-node__row:hover{background:#f8fbff}
.sys-permission-node__row>*{grid-row:1}.sys-tree-toggle,.sys-tree-spacer{grid-column:1;width:24px;height:28px;margin-left:calc(var(--permission-level)*20px);align-self:center}.sys-tree-toggle{display:grid;place-items:center;border:0;border-radius:4px;background:transparent;cursor:pointer}.sys-tree-toggle:hover{background:#eaf3ff}.sys-tree-toggle i{display:block;width:7px;height:7px;border-right:1.5px solid #607795;border-bottom:1.5px solid #607795;transform:rotate(45deg) translate(-1px,-1px);transition:transform .16s ease}.sys-tree-toggle.is-collapsed i{transform:rotate(-45deg) translate(-1px,1px)}
.sys-tree-check{grid-column:1;margin-left:calc(var(--permission-level)*20px + 28px);width:18px;height:18px;display:flex;align-items:center}.sys-tree-check input{width:16px;height:16px;margin:0;accent-color:#1677d2}
.sys-permission-node__type{grid-column:1;margin-left:calc(var(--permission-level)*20px + 52px);width:max-content;max-width:84px;padding:2px 7px;border-radius:3px;background:#eef4fb;color:#526d8e;font-size:11px;white-space:nowrap}
.sys-permission-node__main{grid-column:1;margin-left:calc(var(--permission-level)*20px + 142px);min-width:0;display:flex;flex-direction:column;gap:2px}.sys-permission-node__main b,.sys-permission-node__main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sys-permission-node__main b{font-size:13px;color:#1c3555}.sys-permission-node__main small{color:#8996a8;font-size:11px}
.sys-permission-node__route{grid-column:2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#586b84;font-size:12px}.sys-permission-node__status{grid-column:3}
.sys-permission-node__actions{grid-column:4;display:flex;justify-content:flex-end;gap:2px}.sys-permission-node__actions .el-button{height:28px;padding:0 7px;border-color:transparent;background:transparent;color:#1677d2}.sys-permission-node__actions .el-button:hover{background:#eaf3ff}
.sys-permission-node.is-disabled>.sys-permission-node__row{background:#f8f9fb}.sys-permission-node.is-disabled>.sys-permission-node__row .sys-permission-node__main,.sys-permission-node.is-disabled>.sys-permission-node__row .sys-permission-node__route{opacity:.55}.sys-permission-node.is-partial>.sys-permission-node__row{background:#f7fbff}.sys-permission-node__children[hidden]{display:none}
.sys-form-section--wide .sys-permission-tree{grid-column:1/-1;margin-top:4px}
@media(max-width:1200px){.sys-permission-tree__head,.sys-permission-node__row{grid-template-columns:minmax(360px,1fr) 84px 170px}.sys-permission-tree__head span:nth-child(2),.sys-permission-node__route{display:none}.sys-permission-node__status{grid-column:2}.sys-permission-node__actions{grid-column:3}}
@media(max-height:900px){.sys-permission-tree[data-tree-mode="catalog"] .sys-permission-tree__body{height:calc(100vh - 300px);min-height:420px}}

/* W48 工程量与计价：业务操作独立于标题，避免标题层级影响操作可见性 */
.variation-pricing-section>.variation-pricing-actions{display:flex;justify-content:flex-end;align-items:center;min-height:34px;margin:-48px 0 14px;position:relative;z-index:1}
.variation-pricing-section>.variation-pricing-actions .el-button{display:inline-flex!important;width:auto!important;min-width:112px;align-items:center;justify-content:center}
/* W01: use spare height below the lower cards for the conversation on desktop. */
body[data-app-surface="web"] .workbench-ai-stage{height:calc(clamp(250px,32dvh,420px) + 20px)}
/* 663px = stage top (134) + section gap (20) + lower cards (441) + bottom breathing room (68). */
@media(min-width:1181px){body[data-app-surface="web"] .workbench-ai-stage{height:max(calc(clamp(250px,32dvh,420px) + 20px),calc(100dvh - 663px))}}
body[data-app-surface="web"] .workbench-ai-stage__main{height:calc(100% - 56px)}
body[data-app-surface="web"] .workbench-ai-greeting{flex-basis:72px;padding-top:6px}
body[data-app-surface="web"] .workbench-ai-stage__body:not(.has-conversation) .workbench-ai-conversation:empty{display:none}
body[data-app-surface="web"] .workbench-assistant{height:100%}
body[data-app-surface="web"] .workbench-assistant-status{top:16px}
body[data-app-surface="web"] .workbench-assistant-visual{top:50%;width:min(75%,200px);height:min(260px,calc(100% - 100px));translate:0 -50%}
/* The source PNG has about 7% transparent space below the feet; keep the caption 10px below the visible figure. */
body[data-app-surface="web"] .workbench-assistant-caption{top:calc(50% + min(111px,42.8% - 42.8px) + 10px);bottom:auto;font-size:11px;line-height:17px;white-space:normal}
@media(min-width:1101px){body[data-app-surface="web"] .web-content--workbench>.page-body{overflow-x:hidden;overflow-y:auto;scrollbar-gutter:auto}}
@media(max-width:760px){body[data-app-surface="web"] .workbench-ai-stage{height:400px;min-height:0}body[data-app-surface="web"] .workbench-ai-stage__main{grid-template-columns:minmax(0,1fr)}body[data-app-surface="web"] .workbench-assistant{display:none}}

/* All Web metric groups use the compact contract-ledger unit. Fewer metrics keep
   the same card width instead of stretching across the full row. */
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.collab-metrics,.project-health-summary,.metric-grid,.business-summary,.contract-kpis,.mat-kpis,.saf-kpis,.prg-kpis,.prg-impact-summary,.business-workbench__metrics){
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px;
  margin:0 0 var(--web-surface-gap,12px);
  overflow:visible;
  border:0;
  background:transparent;
}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article{
  position:relative;
  box-sizing:border-box;
  display:grid;
  min-width:0;
  min-height:78px;
  align-content:center;
  gap:0;
  padding:10px 14px 9px;
  overflow:hidden;
  border:1px solid #e4eaf3;
  border-radius:7px;
  background:#fff;
  box-shadow:0 1px 2px rgb(15 38 68 / 3%);
}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article::before{
  position:absolute;
  top:11px;
  bottom:11px;
  left:0;
  width:3px;
  border-radius:0 3px 3px 0;
  background:#409eff;
  content:"";
}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article:nth-child(2)::before{background:#67c23a}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article:nth-child(3)::before{background:#e6a23c}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article:nth-child(4)::before{background:#f56c6c}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article :is(small,span){color:#7a879b;font-size:11px;line-height:16px}
body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.project-health-summary)>article :is(strong,b){
  display:block;
  margin:2px 0 0;
  color:#14213d;
  font-size:21px;
  font-weight:700;
  line-height:27px;
  letter-spacing:-.03em;
  font-variant-numeric:tabular-nums lining-nums;
}
@media(max-width:1100px){body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.collab-metrics,.project-health-summary,.metric-grid,.business-summary,.contract-kpis,.mat-kpis,.saf-kpis,.prg-kpis,.prg-impact-summary,.business-workbench__metrics){grid-template-columns:repeat(2,minmax(0,1fr)) !important}}
@media(max-width:640px){body[data-app-surface="web"] :is(.cost-summary,.sys-metrics,.collab-metrics,.project-health-summary,.metric-grid,.business-summary,.contract-kpis,.mat-kpis,.saf-kpis,.prg-kpis,.prg-impact-summary,.business-workbench__metrics){grid-template-columns:minmax(0,1fr) !important}}
body[data-app-surface="web"] :is(.metric-grid,.business-summary,.contract-kpis,.cost-summary,.sys-metrics,.collab-metrics,.project-health-summary,.mat-kpis,.saf-kpis,.prg-kpis):empty{display:none}
