/* Tool surfaces for the approved dark-navigation / light-workspace design.
   UI only: generated reports keep their own independent document styles. */
body.workbench-theme :is(#releaseModule, #demandModule, #planSplitModule, #reportCheckModule, #hoursModule, #effortMergeModule, #jingdaiModule) {
  min-width: 0;
  color: var(--wb-ink);
  font-size: 16px;
  line-height: 1.6;
}

body.workbench-theme :is(.oa-shell, .jingdai-shell) {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 24px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.workbench-theme .tool-surface :is(.hero, .oa-topbar, .jingdai-module-head) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

body.workbench-theme .tool-surface :is(.hero, .oa-topbar, .jingdai-module-head)::before,
body.workbench-theme .tool-surface :is(.hero, .oa-topbar, .jingdai-module-head)::after {
  display: none;
}

body.workbench-theme .tool-surface :is(.hero h1, .oa-title, .jingdai-module-head h1) {
  margin: 0 0 10px;
  color: var(--wb-ink);
  font-size: 30px;
  font-weight: 740;
  line-height: 1.35;
  letter-spacing: -.025em;
}

body.workbench-theme .tool-surface :is(.eyebrow, .oa-eyebrow, .jingdai-module-head > p) {
  display: none;
}

body.workbench-theme .tool-surface :is(.hero__copy, .oa-subtitle, .jingdai-module-head > span) {
  display: block;
  max-width: 830px;
  margin: 0;
  color: var(--wb-muted);
  font-size: 15px;
  line-height: 1.75;
}

body.workbench-theme .hero__content { min-width: 0; gap: 14px; }
body.workbench-theme .hero__content .brand-mark { display: none; }
body.workbench-theme .jingdai-module-head { flex-direction: column; gap: 0; }
body.workbench-theme .oa-topbar > div:first-child { flex: 1; min-width: 0; }
body.workbench-theme .oa-topbar-actions { flex: 0 0 280px; gap: 9px; }

body.workbench-theme :is(.oa-status-card, .privacy-pill) {
  flex: 0 1 295px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: #edf3ef;
  color: var(--wb-muted);
  box-shadow: none;
  backdrop-filter: none;
  font-size: 12px;
  line-height: 1.65;
}

body.workbench-theme .oa-status-card strong { color: var(--wb-ink); font-size: 13px; }
body.workbench-theme .oa-status-card span:last-child { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme :is(.oa-status-dot, .privacy-pill__dot) { width: 7px; height: 7px; flex-basis: 7px; background: #459873; box-shadow: 0 0 0 3px #dcebe2; }

body.workbench-theme :is(.oa-security-notice, .jingdai-scope) {
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 14px;
  border: 1px solid var(--wb-line);
  border-radius: 8px;
  background: #edf2ef;
  color: var(--wb-muted);
  font-size: 13px;
  line-height: 1.75;
}

body.workbench-theme .oa-security-notice strong { color: var(--wb-ink); font-size: 13px; }
body.workbench-theme .oa-security-notice span { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme .oa-quick-run { margin-bottom: 0; }

body.workbench-theme :is(.oa-panel, .jingdai-card, #releaseModule .workspace, #releaseModule .results) {
  min-width: 0;
  border: 1px solid var(--wb-line);
  border-radius: 12px;
  background: var(--wb-surface);
  box-shadow: 0 2px 5px #233a3204;
}

body.workbench-theme :is(.jingdai-card, #releaseModule .workspace, #releaseModule .results) { padding: 24px; }
body.workbench-theme .oa-panel-head {
  min-height: 0;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--wb-line);
  background: var(--wb-surface);
}

body.workbench-theme .oa-panel-head h2 { color: var(--wb-ink); font-size: 19px; line-height: 1.5; font-weight: 700; }
body.workbench-theme .oa-panel-head p { margin-top: 5px; color: var(--wb-muted); font-size: 14px; line-height: 1.6; }
body.workbench-theme .oa-panel .oa-step { width: 34px; height: 34px; border-radius: 9px; background: #e2f2e9; color: #336b53; font-size: 13px; }
body.workbench-theme .oa-form { gap: 20px; padding: 24px; }
body.workbench-theme .oa-field { min-width: 0; }
body.workbench-theme .oa-field > span:first-child { margin-bottom: 9px; color: var(--wb-ink); font-size: 15px; font-weight: 650; }
body.workbench-theme .oa-field > small { display: block; margin-top: 8px; color: var(--wb-muted); font-size: 12px; line-height: 1.65; }

body.workbench-theme :is(.oa-file-picker, .hours-dropzone, .jingdai-upload) {
  min-height: 132px;
  padding: 20px;
  border: 1px dashed #a8bcb1;
  border-radius: 9px;
  background: #f8faf9;
  color: var(--wb-ink);
  box-shadow: none;
  transition: border-color 160ms ease, background-color 160ms ease;
}

body.workbench-theme :is(.oa-file-picker, .hours-dropzone, .jingdai-upload):hover,
body.workbench-theme :is(.oa-file-picker, .hours-dropzone, .jingdai-upload):focus-within,
body.workbench-theme :is(.oa-file-picker, .hours-dropzone, .jingdai-upload).is-dragging {
  border-color: #548d72;
  background: #eef8f2;
  box-shadow: 0 0 0 3px #def1e7;
  transform: none;
}

body.workbench-theme :is(.oa-file-picker, .hours-dropzone, .jingdai-upload).has-file {
  border-color: #78b495;
  border-style: solid;
  background: #f0f9f4;
}

body.workbench-theme .oa-file-picker .oa-file-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 38px;
  height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #e4eee8;
  color: #38614e;
  font-size: 14px;
  font-weight: 650;
}

body.workbench-theme .hours-dropzone .oa-file-action { width: 38px; padding: 0; font-size: 23px; }
body.workbench-theme .hours-file-copy b { color: var(--wb-ink); font-size: 14px; font-weight: 650; line-height: 1.65; }
body.workbench-theme :is(.oa-file-name, .jingdai-file-name) { color: var(--wb-muted); font-size: 13px; line-height: 1.6; }
body.workbench-theme .hours-file-copy .oa-file-name { white-space: normal; overflow-wrap: anywhere; }
body.workbench-theme :is(.oa-launch-field input, .version-date-control input, .monthly-period-control input) { min-height: 43px; border-color: var(--wb-line); border-radius: 8px; background: #fff; color: var(--wb-ink); font-size: 14px; }

body.workbench-theme :is(.oa-result-list, .hours-output-list) { min-height: 0; padding: 15px 17px; border: 1px solid var(--wb-line); border-radius: 9px; background: #f7f9f8; }
body.workbench-theme :is(.oa-result-list > span, .hours-output-list > span, .hours-output-list b) { color: var(--wb-ink); font-size: 14px; }
body.workbench-theme :is(.oa-result-list p, .hours-output-list em, .hours-output-list li) { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme .hours-output-list ol { gap: 10px; }
body.workbench-theme .oa-status-text { color: var(--wb-muted); font-size: 13px; }

body.workbench-theme .tool-surface :is(.oa-primary-button, .primary-button, .export-button, .jingdai-generate, .jingdai-download-row a) {
  min-height: 46px;
  height: auto;
  padding: 12px 20px;
  border: 1px solid #90d5b7;
  border-radius: 8px;
  background: var(--wb-accent);
  color: var(--wb-accent-ink);
  box-shadow: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  transition: background-color 150ms ease, border-color 150ms ease;
}

body.workbench-theme .tool-surface :is(.oa-primary-button, .primary-button, .export-button, .jingdai-generate, .jingdai-download-row a):hover:not(:disabled) { border-color: #70be9b; background: #8bd7b6; box-shadow: none; transform: none; }
body.workbench-theme .tool-surface :is(.oa-primary-button, .primary-button, .export-button, .jingdai-generate):disabled { border-color: #d5e0da; background: #e4ece7; color: #8c9d93; cursor: not-allowed; opacity: 1; box-shadow: none; transform: none; }
body.workbench-theme .tool-surface :is(button.is-busy, button[aria-busy="true"]) { cursor: wait; }
body.workbench-theme .jingdai-spinner { border-color: #619e8240; border-top-color: #3c775b; }

body.workbench-theme .tool-surface :is(.secondary-button, .jingdai-copy-card button) { min-height: 42px; border: 1px solid var(--wb-line); border-radius: 8px; background: #fff; color: #3b5b4c; box-shadow: none; font-size: 14px; }
body.workbench-theme .tool-surface :is(.secondary-button, .jingdai-copy-card button):hover:not(:disabled) { border-color: #95b5a3; background: #f0f6f2; transform: none; box-shadow: none; }
body.workbench-theme .tool-surface :is(button, a, input, select, textarea):focus-visible { outline: 3px solid #57a47f; outline-offset: 3px; }

body.workbench-theme :is(.plan-split-rule-grid, .effort-merge-rule-grid) { min-width: 0; gap: 10px; }
body.workbench-theme :is(.plan-split-rule-grid, .effort-merge-rule-grid) > div { gap: 3px 9px; align-content: start; padding: 15px 12px; border-color: var(--wb-line); border-radius: 9px; background: #f7f9f8; }
body.workbench-theme :is(.plan-split-rule-grid, .effort-merge-rule-grid) span { color: #6b9180; }
body.workbench-theme :is(.plan-split-rule-grid, .effort-merge-rule-grid) b { color: var(--wb-ink); font-size: 14px; }
body.workbench-theme :is(.plan-split-rule-grid, .effort-merge-rule-grid) small { color: var(--wb-muted); font-size: 12px; line-height: 1.55; }

/* Result screens use the same quiet surface; warning and success remain semantic. */
body.workbench-theme .hours-results-panel { min-width: 0; padding: 24px; border-top: 1px solid var(--wb-line); border-radius: 0; background: #fafcfb; }
body.workbench-theme .hours-results-heading { gap: 14px; margin-bottom: 20px; }
body.workbench-theme .hours-results-heading span:first-child { color: var(--wb-muted); letter-spacing: 0; font-size: 12px; }
body.workbench-theme .hours-results-heading h3 { color: var(--wb-ink); font-size: 21px; line-height: 1.45; }
body.workbench-theme .hours-results-heading p { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme .hours-result-badge { border-radius: 6px; background: #fff1df; color: #956419 !important; font-size: 12px !important; font-weight: 650; }
body.workbench-theme .hours-result-badge.is-complete { background: #e1f3e8; color: #2b7650 !important; }
body.workbench-theme :is(.plan-split-result-badge, .plan-split-table-heading > span) { background: #e5f0e9; color: #3c6c52 !important; }
body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) { gap: 10px; }
body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) > div { min-width: 0; padding: 16px; border: 1px solid var(--wb-line); border-radius: 9px; background: #fff; }
body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) span { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) strong { margin-top: 7px; color: var(--wb-ink); font-size: 28px; font-weight: 720; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
body.workbench-theme .report-check-summary > div:nth-child(2) strong { color: #30835b; }
body.workbench-theme .report-check-summary > div:nth-child(3) strong { color: #a97422; }
body.workbench-theme .report-check-summary > div:nth-child(4) strong { color: #b65b37; }
body.workbench-theme .plan-split-summary > div:nth-child(2) strong { color: #a97422; }
body.workbench-theme .hours-results-layout { min-width: 0; gap: 18px; grid-template-columns: minmax(0, 1fr) 252px; }
body.workbench-theme :is(.hours-table-card, .hours-download-card) { min-width: 0; max-width: 100%; border-color: var(--wb-line); border-radius: 9px; background: #fff; box-shadow: none; }
body.workbench-theme .hours-table-scroll { width: 100%; max-width: 100%; border-radius: 9px; overscroll-behavior-inline: contain; }
body.workbench-theme .hours-result-table { color: var(--wb-ink); font-size: 13px; line-height: 1.65; }
body.workbench-theme .hours-result-table :is(th, td) { padding: 13px 15px; border-bottom-color: var(--wb-line); }
body.workbench-theme .hours-result-table th { background: #edf3ef; color: #405d4f; font-size: 12px; font-weight: 650; }
body.workbench-theme .hours-result-table tbody tr:hover { background: #f1f7f3; }
body.workbench-theme .report-check-row.is-missing { background: #fff8f3; }
body.workbench-theme .report-check-row.is-empty { background: #fffbf2; }
body.workbench-theme .report-check-row.is-ready { background: #f2f9f5; }
body.workbench-theme .effort-merge-table tbody tr.is-merged td { background: #f1f8f4; }
body.workbench-theme .hours-result-table.effort-merge-table { min-width: 640px; }
body.workbench-theme .hours-result-table.plan-split-table { min-width: 650px; }
body.workbench-theme :is(.hours-status-pill, .report-check-status) { border-radius: 5px; font-size: 12px; font-weight: 650; }
body.workbench-theme .hours-download-card { padding: 18px; }
body.workbench-theme .hours-download-card > span { color: var(--wb-muted); letter-spacing: 0; font-size: 12px; }
body.workbench-theme .hours-download-card h4 { color: var(--wb-ink); font-size: 18px; }
body.workbench-theme :is(.hours-download-card p, .hours-download-card > span:not(:first-child)) { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme .hours-download-button { border-color: var(--wb-line); border-radius: 8px; background: #f8faf9; color: #375c48; box-shadow: none; }
body.workbench-theme .hours-download-button:hover { border-color: #8bb49d; background: #edf6f0; box-shadow: none; transform: none; }
body.workbench-theme .tool-surface .hours-download-button.is-primary { border-color: #91d4b6; background: var(--wb-accent); color: var(--wb-accent-ink); }
body.workbench-theme .tool-surface .hours-download-button.is-primary:hover { background: #8bd7b6; }
body.workbench-theme .hours-download-button b { font-size: 14px; }
body.workbench-theme .hours-download-button small { color: inherit; font-size: 12px; opacity: .8; }

/* Test report audit: a compact upload column beside a persistent result canvas. */
body.workbench-theme #reportCheckModule .report-check-panel { display: grid; grid-template-columns: 320px minmax(0, 1fr); align-items: stretch; overflow: hidden; }
body.workbench-theme #reportCheckModule .oa-panel-head { grid-column: 1 / -1; padding: 14px 22px; gap: 12px; }
body.workbench-theme #reportCheckModule .oa-panel-head h2 { font-size: 18px; }
body.workbench-theme #reportCheckModule .oa-panel-head p { margin-top: 3px; font-size: 13px; }
body.workbench-theme #reportCheckForm { grid-column: 1; grid-row: 2; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; padding: 18px 22px; border-right: 1px solid var(--wb-line); background: #fff; }
body.workbench-theme #reportCheckForm .hours-dropzone { display: flex; flex-direction: row; justify-content: flex-start; gap: 11px; min-height: 110px; padding: 14px 12px; text-align: left; }
body.workbench-theme #reportCheckForm .oa-file-action { width: 32px; min-width: 32px; height: 32px; border-radius: 8px; }
body.workbench-theme #reportCheckForm .hours-file-copy b { font-size: 14px; }
body.workbench-theme #reportCheckForm .oa-field > small { margin-top: 6px; font-size: 12px; }
body.workbench-theme #reportCheckForm .oa-field > span:first-child { margin-bottom: 7px; }
body.workbench-theme #reportCheckForm .report-check-rule-grid { grid-template-columns: minmax(0, 1fr); gap: 5px; }
body.workbench-theme #reportCheckForm .report-check-rule-grid > div { grid-template-columns: 24px auto minmax(0, 1fr); gap: 5px; padding: 0; border: 0; background: transparent; }
body.workbench-theme #reportCheckForm .report-check-rule-grid span { grid-row: auto; align-self: center; font-size: 12px; }
body.workbench-theme #reportCheckForm .report-check-rule-grid b { font-size: 13px; font-weight: 600; }
body.workbench-theme #reportCheckForm .report-check-rule-grid small { font-size: 12px; text-align: right; }
body.workbench-theme #reportCheckResultsPanel { grid-column: 2; grid-row: 2; min-width: 0; border: 0; padding: 24px; background: #fbfdfc; }
body.workbench-theme #reportCheckResultsPanel .hours-results-heading { flex-wrap: wrap; }
body.workbench-theme #reportCheckResultsPanel .hours-results-heading h3 { font-size: 19px; }
body.workbench-theme #reportCheckResultsPanel .report-check-result-actions { display: flex; align-items: center; gap: 10px; max-width: 100%; margin-left: auto; }
body.workbench-theme #reportCheckDownloadButton { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 7px; width: auto; min-height: 38px; padding: 8px 12px; color: #3d6851; font-size: 13px; font-weight: 650; line-height: 1.5; white-space: nowrap; cursor: pointer; }
body.workbench-theme #reportCheckDownloadButton .wb-icon { display: inline-flex; flex: 0 0 16px; width: 16px; height: 16px; }
body.workbench-theme #reportCheckDownloadButton .wb-icon svg { width: 100%; height: 100%; }
body.workbench-theme #reportCheckResultsPanel .hours-result-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.workbench-theme #reportCheckResultsPanel .hours-result-grid > div { padding: 14px 12px; }
body.workbench-theme #reportCheckResultsPanel .hours-result-grid strong { font-size: 28px; }
body.workbench-theme #reportCheckResultsPanel .report-check-table { width: 100%; min-width: 520px; table-layout: fixed; }
body.workbench-theme #reportCheckResultsPanel .report-check-table :is(th, td) { padding: 13px 12px; white-space: normal; overflow-wrap: anywhere; text-align: left; }
body.workbench-theme #reportCheckResultsPanel .report-check-table th:nth-child(1) { width: 18%; }
body.workbench-theme #reportCheckResultsPanel .report-check-table th:nth-child(2) { width: 35%; }
body.workbench-theme #reportCheckResultsPanel .report-check-table th:nth-child(3) { width: 20%; }
body.workbench-theme #reportCheckResultsPanel .report-check-table th:nth-child(4) { width: 27%; }
body.workbench-theme #reportCheckResultsPanel .report-check-table td:last-child { text-align: left !important; white-space: normal; }
body.workbench-theme #reportCheckResultsPanel .report-check-table details { margin-top: 7px; font-size: 12px; color: var(--wb-muted); }
body.workbench-theme #reportCheckResultsPanel .report-check-table details summary { display: list-item; width: fit-content; padding: 3px 0; color: #42745a; font-size: 13px; cursor: pointer; }
body.workbench-theme #reportCheckResultsPanel .report-check-table details[open] summary { margin-bottom: 6px; }
body.workbench-theme #reportCheckResultsPanel .report-check-table details p { margin: 0 0 5px; font-size: 12px; line-height: 1.65; }
body.workbench-theme #reportCheckEmptyState {
  display: flex;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  min-height: 440px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 32px;
  background: #fafcfb;
  color: var(--wb-muted);
  text-align: center;
}
body.workbench-theme #reportCheckEmptyState svg { width: 54px; height: 54px; color: #8aae99; }
body.workbench-theme #reportCheckEmptyState .wb-icon { width: 48px; height: 48px; }
body.workbench-theme #reportCheckEmptyState h3 { margin: 5px 0 0; color: #426552; font-size: 21px; font-weight: 650; }
body.workbench-theme #reportCheckEmptyState p { max-width: 340px; margin: 0; color: #6f8779; font-size: 14px; line-height: 1.9; }
body.workbench-theme #reportCheckEmptyState.is-hidden { display: none; }

/* The weekly workspace stays information-dense while sharing the same chrome. */
body.workbench-theme #releaseModule :is(.workspace, .results) { overflow: hidden; }
body.workbench-theme #releaseModule .section-heading { align-items: flex-start; gap: 20px; margin-bottom: 22px; }
body.workbench-theme #releaseModule .section-heading h2 { color: var(--wb-ink); font-size: 21px; line-height: 1.5; }
body.workbench-theme #releaseModule .section-heading > p { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme #releaseModule .section-kicker { color: #648c77; font-size: 11px; letter-spacing: .08em; }
body.workbench-theme #releaseModule .release-config-strip { gap: 12px; margin-bottom: 24px; }
body.workbench-theme :is(.department-rule-entry, .system-team-rule-entry, .report-archive-entry) { border-color: var(--wb-line); border-radius: 9px; background: #f6f9f7; color: var(--wb-ink); box-shadow: none; }
body.workbench-theme :is(.department-rule-entry, .system-team-rule-entry, .report-archive-entry):hover { border-color: #94b5a2; background: #edf6f0; box-shadow: none; transform: none; }
body.workbench-theme :is(.system-team-rule-entry, .report-archive-entry) > span:first-child { background: #e4efe8; color: #49725b; border-radius: 8px; }
body.workbench-theme :is(.system-team-rule-entry, .report-archive-entry) small { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme :is(.system-team-rule-entry, .report-archive-entry) em { color: #3f7056; font-size: 14px; }
body.workbench-theme #releaseModule .release-config-strip > a { border-color: var(--wb-line); border-radius: 8px; background: #fff; color: #3f7056; font-size: 14px; }
body.workbench-theme #releaseModule .upload-grid { gap: 16px; }
body.workbench-theme #releaseModule .upload-group-heading { align-items: center; padding-bottom: 12px; border-bottom-color: var(--wb-line); }
body.workbench-theme #releaseModule .upload-group-heading > span { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme #releaseModule .upload-group-heading h3 { color: var(--wb-ink); font-size: 17px; }
body.workbench-theme #releaseModule .upload-group-heading p { color: #698d79; font-size: 11px; }
body.workbench-theme #releaseModule .upload-card { padding: 18px; border-color: var(--wb-line); border-radius: 10px; background: #fff; box-shadow: none; }
body.workbench-theme #releaseModule .upload-card.is-ready { border-color: #96c5ab; background: #fbfefc; }
body.workbench-theme #releaseModule .upload-card.is-dragging { border-color: #548d72; box-shadow: 0 0 0 3px #def1e7; transform: none; }
body.workbench-theme #releaseModule .upload-card__top { gap: 10px; min-height: 60px; margin-bottom: 13px; }
body.workbench-theme #releaseModule .upload-card h3 { color: var(--wb-ink); font-size: 15px; }
body.workbench-theme #releaseModule .upload-card p { color: var(--wb-muted); font-size: 12px; line-height: 1.65; }
body.workbench-theme #releaseModule .step-badge { width: 26px; min-width: 26px; height: 26px; border-radius: 7px; background: #e6f1ea; color: #4c775f; font-size: 12px; }
body.workbench-theme #releaseModule .step-badge--optional { width: auto; padding: 4px 8px; white-space: nowrap; }
body.workbench-theme #releaseModule .dropzone { min-height: 130px; padding: 15px 12px; border-color: #b9c9c0; border-radius: 8px; background: #f8faf9; box-shadow: none; }
body.workbench-theme #releaseModule .dropzone:hover,
body.workbench-theme #releaseModule .dropzone:focus-visible { border-color: #548d72; background: #eef8f2; box-shadow: 0 0 0 3px #def1e7; }
body.workbench-theme #releaseModule .file-icon { border-radius: 6px; background: #e0efe5; color: #417357; }
body.workbench-theme #releaseModule .dropzone__main { color: var(--wb-ink); font-size: 14px; }
body.workbench-theme #releaseModule .dropzone__hint { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme #releaseModule .file-status { font-size: 12px; overflow-wrap: anywhere; }
body.workbench-theme #releaseModule .action-row { margin-top: 22px; padding-top: 20px; border-color: var(--wb-line); }
body.workbench-theme #releaseModule .action-note { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme #releaseModule :is(.version-date-control, .monthly-period-control) > span { font-size: 14px; }
body.workbench-theme #releaseModule .result-tabs { border-radius: 8px; background: #edf3ef; }
body.workbench-theme #releaseModule .result-tab { border-radius: 6px; color: var(--wb-muted); font-size: 14px; }
body.workbench-theme #releaseModule .result-tab.is-active { background: #fff; color: #2d6145; box-shadow: 0 1px 3px #254e3412; }
body.workbench-theme #releaseModule :is(.dashboard-toolbar, .table-toolbar) { border-color: var(--wb-line); background: #f8faf9; }
body.workbench-theme #releaseModule :is(.dashboard-card, .table-panel, .metric-card) { min-width: 0; border-color: var(--wb-line); border-radius: 10px; background: #fff; box-shadow: none; }
body.workbench-theme #releaseModule .dashboard-card__heading h3 { color: var(--wb-ink); font-size: 18px; }
body.workbench-theme #releaseModule .dashboard-card__heading > span { color: var(--wb-muted); font-size: 12px; }
body.workbench-theme #releaseModule .search-box { border-color: var(--wb-line); border-radius: 8px; background: #fff; }
body.workbench-theme #releaseModule .filter-button { border-radius: 7px; }
body.workbench-theme #releaseModule .filter-button.is-active { background: #e4f2e9; color: #3c7052; }
body.workbench-theme #releaseModule footer { padding: 22px 0 0; color: var(--wb-muted); font-size: 12px; }

/* Agency analysis uses the same input and output rhythm as the release tools. */
body.workbench-theme .jingdai-upload { min-height: 195px; }
body.workbench-theme .jingdai-badge { width: 36px; height: 36px; border-radius: 8px; background: #e1efe7; color: #477a5e; }
body.workbench-theme .jingdai-upload > strong { color: var(--wb-ink); font-size: 16px; }
body.workbench-theme :is(.jingdai-status, .jingdai-footnote, .jingdai-result-head > span, .jingdai-download-row > span) { color: var(--wb-muted); font-size: 13px; }
body.workbench-theme .jingdai-status.is-success { color: #367651; }
body.workbench-theme .jingdai-status.is-error { color: #b44837; }
body.workbench-theme .jingdai-result { border-color: var(--wb-line); }
body.workbench-theme .jingdai-result-head h2 { color: var(--wb-ink); font-size: 21px; }
body.workbench-theme .jingdai-copy-card { border-color: var(--wb-line); border-radius: 9px; background: #f7faf8; }
body.workbench-theme .jingdai-copy-card h3 { color: var(--wb-ink); font-size: 17px; }
body.workbench-theme .jingdai-copy-card pre { border-color: var(--wb-line); border-radius: 7px; color: var(--wb-ink); font-size: 14px; }

@media (min-width: 1500px) {
  body.workbench-theme #reportCheckModule .report-check-panel { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (max-width: 1320px) {
  body.workbench-theme .tool-surface :is(.hero, .oa-topbar) { flex-wrap: wrap; }
  body.workbench-theme .oa-topbar-actions { flex-basis: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workbench-theme .oa-topbar > .oa-status-card { flex-basis: auto; }
  body.workbench-theme #releaseModule .upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workbench-theme #releaseModule .upload-card--monthly { grid-column: 1 / -1; }
  body.workbench-theme #releaseModule .upload-group-heading { flex-wrap: wrap; }
  body.workbench-theme #releaseModule .upload-group-heading > span { width: 100%; }
  body.workbench-theme .hours-results-layout { grid-template-columns: minmax(0, 1fr); }
  body.workbench-theme .hours-download-card { position: static; }
  body.workbench-theme .hours-download-actions { grid-template-columns: repeat(auto-fit, minmax(195px, 1fr)); }
  body.workbench-theme .plan-split-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.workbench-theme .effort-merge-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1160px) {
  body.workbench-theme #reportCheckModule .report-check-panel { grid-template-columns: minmax(0, 1fr); }
  body.workbench-theme #reportCheckForm { grid-column: 1; grid-row: 2; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid var(--wb-line); }
  body.workbench-theme #reportCheckForm .report-check-rule-grid { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  body.workbench-theme #reportCheckForm .report-check-rule-grid > div { grid-template-columns: 20px minmax(0, 1fr); }
  body.workbench-theme #reportCheckForm .report-check-rule-grid small { grid-column: 2; text-align: left; }
  body.workbench-theme #reportCheckResultsPanel,
  body.workbench-theme #reportCheckEmptyState { grid-column: 1; grid-row: 3; }
  body.workbench-theme #reportCheckEmptyState { min-height: 300px; }
  body.workbench-theme .plan-split-form > .oa-field,
  body.workbench-theme .effort-merge-form > .oa-field,
  body.workbench-theme .plan-split-form > .plan-split-rule-grid,
  body.workbench-theme .effort-merge-form > .effort-merge-rule-grid { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body.workbench-theme .tool-surface :is(.hero h1, .oa-title, .jingdai-module-head h1) { font-size: 26px; }
  body.workbench-theme .tool-surface :is(.hero, .oa-topbar, .jingdai-module-head) { flex-direction: column; align-items: stretch; gap: 14px; margin-bottom: 18px; }
  body.workbench-theme .tool-surface :is(.hero__content, .oa-topbar > div:first-child) { flex: none; width: 100%; min-width: 0; }
  body.workbench-theme .tool-surface :is(.hero__copy, .oa-subtitle, .jingdai-module-head > span) { width: 100%; max-width: none; }
  body.workbench-theme .tool-surface :is(.oa-topbar-actions, .oa-topbar > .oa-status-card, .privacy-pill) { flex: none; width: 100%; max-width: none; }
  body.workbench-theme .oa-topbar-actions { grid-template-columns: minmax(0, 1fr); }
  body.workbench-theme .tool-surface :is(.oa-status-card, .privacy-pill) { align-self: stretch; padding: 9px 12px; gap: 10px; }
  body.workbench-theme .tool-surface .oa-status-card strong { font-size: 12px; }
  body.workbench-theme .tool-surface .oa-status-card span:last-child { margin-top: 1px; font-size: 12px; }
  body.workbench-theme .oa-security-notice { display: block; padding: 10px 12px; }
  body.workbench-theme .oa-security-notice strong { margin-right: 6px; }
  body.workbench-theme .oa-panel-head { padding: 18px; gap: 10px; }
  body.workbench-theme .oa-panel-head h2 { font-size: 17px; }
  body.workbench-theme :is(.oa-form, .jingdai-card, #releaseModule .workspace, #releaseModule .results, .hours-results-panel) { padding: 18px; }
  body.workbench-theme :is(.oa-form, .jingdai-upload-grid) { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  body.workbench-theme :is(.hours-result-grid, .jingdai-metrics, .effort-merge-summary, .plan-split-summary) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workbench-theme .hours-results-heading { flex-wrap: wrap; }
  body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) > div { padding: 13px; }
  body.workbench-theme :is(.hours-result-grid, .jingdai-metrics) strong { font-size: 25px; }
  body.workbench-theme #reportCheckForm { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  body.workbench-theme #reportCheckForm .report-check-rule-grid { grid-template-columns: minmax(0, 1fr); }
  body.workbench-theme #reportCheckForm .report-check-rule-grid > div { grid-template-columns: 24px auto minmax(0, 1fr); }
  body.workbench-theme #reportCheckForm .report-check-rule-grid small { grid-column: auto; text-align: right; }
  body.workbench-theme #reportCheckResultsPanel { padding: 18px; }
  body.workbench-theme #reportCheckResultsPanel .report-check-result-actions { flex-wrap: wrap; gap: 9px; margin-left: 0; }
  body.workbench-theme #reportCheckResultsPanel .hours-result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.workbench-theme #reportCheckEmptyState { min-height: 260px; padding: 32px 22px; }
  body.workbench-theme #releaseModule .upload-grid { grid-template-columns: minmax(0, 1fr); }
  body.workbench-theme #releaseModule .section-heading { flex-direction: column; gap: 8px; }
  body.workbench-theme #releaseModule .section-heading > p { max-width: none; text-align: left; }
  body.workbench-theme #releaseModule .action-row { flex-direction: column; align-items: stretch; }
  body.workbench-theme #releaseModule .action-buttons { flex-wrap: wrap; }
  body.workbench-theme #releaseModule .action-buttons button { flex: 1; }
  body.workbench-theme :is(.jingdai-actions, .jingdai-result-head, .jingdai-download-row) { flex-wrap: wrap; align-items: flex-start; }
  body.workbench-theme .jingdai-status { flex-basis: 100%; }
  body.workbench-theme .jingdai-generate { width: 100%; }
  body.workbench-theme .tool-surface .privacy-pill { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
  body.workbench-theme .tool-surface:not(.is-hidden) { animation: none; }
  body.workbench-theme .tool-surface :is(button, a, .hours-dropzone, .upload-card, .jingdai-upload) { transition: none; }
}
