/*
  外贸工作台 · eight-group layout (2026-09-06).

  Visual baseline = previews/workbench_20260905/public/styles.css (the 17
  figures of the task book): graphite 218px sidebar (#172230), white workspace,
  rose accent (#be123c), hairline tables, 570px right drawer with five tabs.
  This sheet re-tokens the GoodJob shell (goodjob-skin.css stays loaded for the
  older page components) and adds the `wb-*` components the new pages use.
*/

html[data-theme="goodjob"],
html[data-theme="fengmei"] {
  --wb-nav: #172230;
  --wb-ink: #1d2a32;
  --wb-text: #3c484f;
  --wb-muted: #6c7983;
  --wb-bg: #f5f7f8;
  --wb-line: #e2e7ea;
  --wb-soft: #f0f3f5;
  --wb-brand: #be123c;
  --wb-brand-soft: #fff1f3;
  --wb-green: #14745f;
  --wb-amber: #a36414;
  --wb-red: #b42343;
  --wb-radius: 7px;
  --wb-sidebar: 218px;
  --wb-drawer: 570px;
  --wb-font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wb-mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  --gj-bg: var(--wb-bg);
  --gj-ink: var(--wb-ink);
  --gj-text: var(--wb-text);
  --gj-muted: var(--wb-muted);
  --gj-line: var(--wb-line);
  --gj-line-soft: #eef1f3;
  --gj-nav: var(--wb-nav);
  --gj-nav-soft: #ffffff09;
  --gj-nav-text: #bdc6ce;
  --gj-brand: var(--wb-brand);
  --gj-brand-strong: #a60f34;
  --gj-brand-tint: var(--wb-brand-soft);
  --gj-lime: #e3506e;
  --gj-green: var(--wb-green);
  --gj-green-tint: #edf7f3;
  --gj-amber: var(--wb-amber);
  --gj-amber-tint: #fbf5e9;
  --gj-rose: var(--wb-red);
  --gj-rose-tint: #fff1f1;
  --gj-aqua: #345f7b;
  --gj-aqua-tint: #edf3f6;
  --gj-radius: var(--wb-radius);
  --gj-radius-sm: 5px;
  --gj-shadow-soft: none;
  --gj-shadow: 0 24px 100px #14243726;
  --gj-font-display: var(--wb-font);
  --gj-font-mono: var(--wb-mono);
  --ft-sidebar-width: var(--wb-sidebar);
  --ft-font-ui: var(--wb-font);
}

body.gj-shell { font-family: var(--wb-font); font-size: 16px; color: var(--wb-ink); background: var(--wb-bg); }
body.gj-shell h1, body.gj-shell h2, body.gj-shell h3, body.gj-shell p { margin-top: 0; }
body.gj-shell a { color: inherit; }
body.gj-shell .mono, body.gj-shell .gj-mono { font-family: var(--wb-mono); font-size: 12px; letter-spacing: -.1px; }
.wb-meta { color: var(--wb-muted); font-size: 13px; line-height: 1.65; }
.wb-sub { display: block; color: var(--wb-muted); font-size: 12px; line-height: 1.65; margin-top: 5px; }
.wb-quiet { font-size: 12px; color: var(--wb-muted); font-weight: 400; margin-left: 10px; }
.wb-icon { height: 19px; width: 19px; flex-shrink: 0; vertical-align: middle; }

/* ------------------------------------------------------------- shell */

body.gj-shell .gj-sidebar { padding: 0; gap: 0; color: #bdc6ce; border-right: 0; background: var(--wb-nav); }
body.gj-shell .gj-brand { display: flex; align-items: center; gap: 12px; padding: 28px 22px 32px; min-height: 0; border-bottom: 0; font-size: 18px; letter-spacing: .5px; font-weight: 600; color: #f7f9fc; }
body.gj-shell .gj-brand-mark { width: auto; height: auto; flex: 0 0 auto; border: 0; border-radius: 0; background: none; box-shadow: none; font-family: Georgia, serif; font-size: 37px; line-height: 1; font-weight: 400; color: #f7f9fc; }
body.gj-shell .gj-brand-mark::after { display: none; }
body.gj-shell .gj-brand-mark span:first-child { transform: none; }
body.gj-shell .gj-brand-mark span:last-child { color: #ed5d78; transform: none; }
body.gj-shell .gj-brand-text strong { display: block; color: #f7f9fc; font-size: 18px; font-weight: 600; line-height: 1.2; }
body.gj-shell .gj-brand-text span { display: block; margin-top: 6px; color: #8d9ba9; font-size: 9px; letter-spacing: 1.8px; font-weight: 400; text-transform: uppercase; line-height: 1.3; }
body.gj-shell .gj-nav { display: flex; flex-direction: column; flex: 1; gap: 0; padding: 0 12px; overflow-y: auto; }
body.gj-shell .gj-nav-group { display: block; }
body.gj-shell .gj-nav-group.gj-nav-bottom { margin-top: auto; padding-bottom: 6px; }
body.gj-shell .gj-nav-title { margin: 0 0 12px 13px; color: #7d8d9c; font-size: 11px; letter-spacing: 2px; text-transform: none; }
body.gj-shell .gj-nav-item { display: flex; align-items: center; gap: 14px; height: auto; min-height: 46px; margin: 5px 0; padding: 13px 15px; border-radius: 5px; color: #bdc6ce; font-size: 15px; transition: background .16s ease, color .16s ease; transform: none; grid-template-columns: none; }
body.gj-shell .gj-nav-item::before { left: 0; top: 12px; bottom: 12px; height: auto; width: 3px; border-radius: 2px; background: #e3506e; transform: none; }
body.gj-shell .gj-nav-item:hover { background: #ffffff09; color: #fff; transform: none; }
body.gj-shell .gj-nav-item.active { background: #ffffff0e; color: #fff; box-shadow: none; }
body.gj-shell .gj-nav-item img { width: 19px; height: 19px; filter: invert(83%) sepia(10%) saturate(230%); }
body.gj-shell .gj-nav-item span { flex: 1; }
body.gj-shell .gj-nav-badge { margin-left: auto; min-width: 0; height: auto; padding: 1px 5px; border-radius: 4px; background: #ffffff0d; color: #c1cbd4; font-size: 11px; font-weight: 500; line-height: 1.5; }
body.gj-shell .gj-nav-badge.is-hot { background: var(--wb-brand); color: #fff; }
body.gj-shell .gj-sidebar-foot { margin: 0 12px; padding: 0; border-top: 0; gap: 0; }
body.gj-shell .gj-sidebar-user { margin: 18px 7px 0; padding: 21px 2px; border-top: 1px solid #ffffff13; display: flex; gap: 10px; align-items: center; font-size: 12px; }
body.gj-shell .gj-sidebar-user strong { display: block; color: #d5dfe7; font-size: 12px; font-weight: 500; }
body.gj-shell .gj-sidebar-user small { display: block; color: #788b9b; font-size: 10px; margin-top: 4px; }
body.gj-shell .gj-avatar { width: 32px; height: 32px; background: #2b3c4c; color: #d5dfe7; font-family: Georgia, serif; font-size: 16px; font-weight: 600; }
body.gj-shell .gj-sidebar-truth { display: none; }
.wb-btn.gj-nav-close { display: none; }
/* the mobile backdrop is a body child: never a grid cell, only a fixed overlay */
.wb-nav-backdrop { display: none; position: fixed; inset: 0; background: #17223045; border: 0; z-index: 39; }

body.gj-shell .gj-topbar { min-height: 72px; padding: 0 32px; gap: 25px; justify-content: flex-start; border-bottom: 1px solid var(--wb-line); background: #fff; }
.wb-breadcrumb { font-size: 13px; color: var(--wb-muted); white-space: nowrap; }
.wb-breadcrumb span { margin: 0 12px; color: #bdc6cc; }
.wb-breadcrumb b { font-weight: 500; color: #253b49; }
.wb-global-search { margin-left: auto; width: 280px; display: flex; align-items: center; gap: 9px; font-size: 12px; }
.wb-global-search img { width: 16px; opacity: .5; }
.wb-global-search input { width: 100%; border: 0; min-width: 0; background: none; font: inherit; font-size: 12px; padding: 8px 0; outline: 0; color: var(--wb-ink); }
.wb-global-search kbd { border: 1px solid var(--wb-line); border-radius: 3px; padding: 2px 4px; color: #8e9aa3; font-family: inherit; font-size: 11px; }
.wb-approval-top { display: flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; border-left: 1px solid var(--wb-line); padding-left: 24px; text-decoration: none; color: var(--wb-ink); }
.wb-approval-top img { width: 17px; }
.wb-approval-top b { background: var(--wb-brand); color: #fff; font-size: 11px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; }
.wb-approval-top b[hidden] { display: none; }
.wb-top-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #eaf0f2; color: #3f5561; font-family: Georgia, serif; font-size: 16px; font-weight: 600; }
.wb-menu-toggle { display: none; }
.wb-logout { border: 0; background: none; color: var(--wb-muted); font: inherit; font-size: 12px; cursor: pointer; padding: 6px 0; }
.wb-logout:hover { color: var(--wb-brand); }

.wb-banner { min-height: 37px; border-bottom: 1px solid #e8ecef; background: #eaf3f0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; font-size: 11px; letter-spacing: .15px; color: #456b5d; }
.wb-banner i { display: inline-block; width: 5px; height: 5px; background: #37866a; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.wb-banner.is-aging { background: #fbf5e9; color: #7a5a1e; }
.wb-banner.is-aging i { background: #c69547; }
.wb-banner.is-historical { background: #fff1f1; color: #8c2e3c; }
.wb-banner.is-historical i { background: #c75a6b; }
.wb-banner label { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.wb-banner select { font: inherit; font-size: 11px; border: 0; color: #405667; background: transparent; padding: 5px; max-width: 140px; }
body.gj-shell .page-frame > .ui-notice { display: none; }

body.gj-shell .gj-content { width: 100%; max-width: none; margin: 0; align-self: stretch; padding: 30px 32px 0; flex: 1; min-width: 0; box-sizing: border-box; }
body.gj-shell .gj-footer { border-top: 1px solid var(--wb-line); margin: 20px 32px 0; padding: 18px 0 20px; font-size: 10px; color: #9ba7af; }

/* ------------------------------------------------------- page chrome */

.wb-title { margin-bottom: 23px; display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; flex-wrap: wrap; }
.wb-eyebrow { font-family: var(--wb-mono); font-size: 10px; letter-spacing: 1.65px; color: #81909b; margin-bottom: 7px; text-transform: uppercase; }
.wb-title h1 { font-size: 26px; line-height: 1.5; letter-spacing: -.6px; margin: 0; font-weight: 650; color: var(--wb-ink); }
.wb-title-note { font-size: 13px; color: #84919b; font-weight: 400; letter-spacing: 0; margin-left: 18px; }
.wb-title-side { display: flex; align-items: center; gap: 12px; padding-bottom: 6px; }

.wb-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--wb-line); margin-bottom: 22px; overflow: auto; white-space: nowrap; scrollbar-width: none; }
.wb-tabs::-webkit-scrollbar { display: none; }
.wb-tab { background: none; border: 0; padding: 0 2px 13px; color: #6b7b87; font: inherit; font-size: 14px; position: relative; cursor: pointer; text-decoration: none; }
.wb-tab b { font-weight: 400; color: #9aa6af; margin-left: 5px; font-family: var(--wb-mono); font-size: 11px; }
.wb-tab.active { color: var(--wb-brand); font-weight: 600; }
.wb-tab.active::after { content: ""; height: 2px; position: absolute; bottom: 0; left: 0; right: 0; background: var(--wb-brand); }
.wb-tabpanel[hidden] { display: none; }

.wb-filterbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.wb-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--wb-line); border-radius: 5px; padding: 6px 11px; width: 255px; }
.wb-search img { width: 15px; opacity: .55; }
.wb-search input { border: 0; background: none; font: inherit; font-size: 13px; width: 100%; min-width: 0; height: 25px; outline: 0; color: var(--wb-ink); }
.wb-filter { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--wb-line); border-radius: 5px; padding: 5px 9px; color: #85919a; font-size: 12px; white-space: nowrap; }
.wb-filter select { border: 0; color: #354955; background: transparent; font: inherit; font-size: 13px; height: 26px; max-width: 170px; outline: 0; }
.wb-push-right { margin-left: auto; }
.wb-active-filter { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 11px 14px; background: #edf3f6; color: #557084; border: 1px solid #dce6ec; border-radius: 5px; font-size: 12px; margin-bottom: 18px; }

.wb-btn { border: 1px solid #d8e0e5; border-radius: 5px; background: #fff; padding: 8px 13px; line-height: 1.45; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-size: 13px; min-height: 35px; white-space: nowrap; color: var(--wb-ink); cursor: pointer; text-decoration: none; }
.wb-btn:hover { background: #f4f7f9; border-color: #bdcbd4; }
.wb-btn:disabled { opacity: .38; cursor: not-allowed; }
.wb-btn img { width: 15px; height: 15px; opacity: .7; }
.wb-btn.primary { background: var(--wb-brand); border-color: var(--wb-brand); color: #fff; }
.wb-btn.primary:hover { background: #a60f34; }
.wb-btn.ghost { border-color: transparent; background: none; color: var(--wb-muted); }
.wb-btn.danger { color: var(--wb-red); border-color: #f3c6cf; background: #fff1f1; }
.wb-btn.sm { min-height: 30px; padding: 4px 10px; font-size: 12px; }
.wb-text-link, .wb-company-link { color: #345f7b; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; font-size: 13px; line-height: 1.7; text-decoration: none; }
.wb-text-link:hover, .wb-company-link:hover { color: var(--wb-brand); }
.wb-company-link { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; max-width: 340px; display: inline-block; color: var(--wb-ink); }
.wb-icon-btn { display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; padding: 5px; min-width: 30px; min-height: 30px; border-radius: 5px; color: var(--wb-muted); cursor: pointer; }
.wb-icon-btn:hover { background: var(--wb-soft); }
.wb-icon-btn img { width: 17px; opacity: .5; }

.wb-segmented { display: flex; gap: 3px; background: #eaf0f3; padding: 3px; border: 1px solid #e1e7eb; border-radius: 5px; }
.wb-segmented button { font: inherit; font-size: 12px; border: 0; background: none; color: #6f7f8a; min-width: 70px; padding: 7px 10px; border-radius: 3px; cursor: pointer; }
.wb-segmented button.selected { background: #fff; color: #223441; box-shadow: 0 1px 3px #22344112; }
.wb-toolbar { display: flex; justify-content: space-between; gap: 15px; align-items: center; margin: 0 0 20px; flex-wrap: wrap; }
.wb-toolbar-right { display: flex; align-items: center; gap: 17px; }

.wb-metric-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); background: #fff; border: 1px solid var(--wb-line); border-radius: var(--wb-radius); padding: 20px 0 18px; margin-bottom: 24px; }
.wb-metric { background: none; border: 0; text-align: left; padding: 0 23px; position: relative; font: inherit; cursor: pointer; color: inherit; text-decoration: none; display: block; }
.wb-metric:not(:first-child)::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 0; width: 1px; background: var(--wb-line); }
.wb-metric > span { font-size: 13px; color: #75828b; display: block; }
.wb-metric strong { display: block; font-family: ui-sans-serif, -apple-system, sans-serif; font-size: 31px; line-height: 1.55; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -1px; color: #263c4a; }
.wb-metric strong small { font-size: 11px; letter-spacing: 0; margin-left: 5px; font-weight: 400; color: #84929c; }
.wb-metric em { font-size: 10px; font-style: normal; color: #9ba6ae; line-height: 1.5; display: block; }
.wb-metric:hover strong { color: var(--wb-brand); }
.wb-metric.tone-danger strong, .wb-metric.tone-warn strong { color: var(--wb-brand); }

.wb-grid { display: grid; gap: 20px; margin-bottom: 24px; }
.wb-grid-3 { grid-template-columns: minmax(340px, 1.4fr) minmax(300px, 1.15fr) minmax(230px, .9fr); }
.wb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.wb-grid .wb-panel, .wb-two-col .wb-panel { margin-bottom: 0; }
.wb-grid > .wb-panel { max-height: 540px; overflow: auto; }

.wb-panel { background: #fff; border: 1px solid var(--wb-line); border-radius: var(--wb-radius); min-width: 0; margin-bottom: 22px; overflow: hidden; }
.wb-panel-head { min-height: 59px; padding: 17px 19px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--wb-line); gap: 12px; flex-wrap: wrap; }
.wb-panel-head h2 { font-size: 15px; line-height: 1.5; font-weight: 600; margin: 0; color: var(--wb-ink); }
.wb-panel-head .wb-text-link { font-size: 11px; white-space: nowrap; }
.wb-panel-body { padding: 18px 19px; }
.wb-panel-foot { font-size: 12px; color: var(--wb-muted); margin: 0; padding: 13px 18px; border-top: 1px solid var(--wb-line); }
.wb-source-foot { font-size: 11px; color: #84929c; overflow-wrap: anywhere; line-height: 1.8; padding: 16px 19px; margin: 0; }

.wb-table-wrap { overflow: auto; width: 100%; }
.wb-table { border-collapse: collapse; width: 100%; text-align: left; line-height: 1.65; font-size: 14px; }
.wb-table th { font-size: 12px; color: #7a8994; font-weight: 500; background: #fafbfc; white-space: nowrap; padding: 12px 18px; border-bottom: 1px solid var(--wb-line); text-align: left; }
.wb-table td { padding: 16px 18px; border-bottom: 1px solid #eef1f3; vertical-align: middle; }
.wb-table tbody tr:last-child td { border-bottom: 0; }
.wb-table tbody tr:hover { background: #fafcfd; }
.wb-table.compact th { padding: 11px 14px; font-size: 11px; }
.wb-table.compact td { padding: 14px; font-size: 12px; }
.wb-table.compact .wb-company-link { font-size: 13px; }
.wb-table .mono { overflow-wrap: anywhere; display: inline-block; max-width: 400px; }
.wb-table td.nowrap { white-space: nowrap; }
.wb-table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.wb-badge { display: inline-flex; align-items: center; white-space: nowrap; padding: 3px 7px; border: 1px solid transparent; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.wb-badge.green { color: #237766; background: #edf7f3; border-color: #daece6; }
.wb-badge.amber { color: #976123; background: #fbf5e9; border-color: #f2e6ca; }
.wb-badge.red { color: #b24355; background: #fff1f1; border-color: #f8dfe0; }
.wb-badge.muted { color: #76838e; background: #f4f6f7; border-color: #e8ecee; }
.wb-badge.tier-A { color: #a07522; border-color: #e8d6aa; background: #fffaf0; }
.wb-badge.tier-B { color: #1b8079; background: #f0f9f7; border-color: #c4e1dc; }
.wb-badge.tier-B_pending { color: #477baf; background: #f2f7fe; border-color: #d9e7f8; }
.wb-badge.tier-C { color: #71879b; background: #f4f7fa; border-color: #dce4eb; }
.wb-badge.tier-D, .wb-badge.tier-prior_pool, .wb-badge.tier-unknown { color: #7c8491; background: #f5f5f7; border-color: #e5e5e9; }
.compact .wb-badge { font-size: 10px; padding: 2px 5px; }
.wb-status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: middle; background: #91a1ad; }
.wb-status-dot.green { background: #389482; }
.wb-status-dot.amber { background: #c69547; }
.wb-status-dot.red { background: #c75a6b; }

.wb-pagination { display: flex; justify-content: space-between; align-items: center; padding: 18px; color: var(--wb-muted); font-size: 12px; border-top: 1px solid var(--wb-line); gap: 12px; flex-wrap: wrap; }
.wb-pagination > div { display: flex; gap: 12px; align-items: center; }
.wb-empty { padding: 55px 20px; text-align: center; }
.wb-empty img { width: 28px; height: 28px; opacity: .4; margin-bottom: 14px; }
.wb-empty h3 { font-size: 16px; margin: 0 0 5px; }
.wb-empty p { font-size: 13px; color: var(--wb-muted); margin: 0 0 20px; }
.wb-state { padding: 22px 20px; border-radius: 5px; font-size: 13px; line-height: 1.8; margin-bottom: 18px; border: 1px solid var(--wb-line); background: #fff; }
.wb-state strong { display: block; font-size: 14px; margin-bottom: 4px; }
.wb-state.error { border-color: #f5d9e0; background: #fff4f6; color: #a22543; }
.wb-state.warn { border-color: #f2e6ca; background: #fbf5e9; color: #7a5a1e; }
.wb-state.info { border-color: #dce6ec; background: #edf3f6; color: #557084; }
.wb-state.loading { color: var(--wb-muted); border-style: dashed; }
.wb-state .wb-btn { margin-top: 10px; }

.wb-facts { display: grid; grid-template-columns: 140px minmax(0, 1fr); line-height: 1.8; font-size: 13px; margin: 0 0 22px; }
.wb-facts dt, .wb-facts dd { padding: 10px 0; border-bottom: 1px solid #edf0f2; overflow-wrap: anywhere; }
.wb-facts dt { color: var(--wb-muted); }
.wb-facts dd { margin: 0; text-align: right; }
.wb-facts dd .wb-badge { vertical-align: middle; }
.wb-panel > .wb-facts { margin: 18px 24px; }
.wb-section-label { font-size: 15px; margin: 24px 0 12px; font-weight: 600; }
.wb-gap-list { padding-left: 21px; line-height: 2; font-size: 13px; color: #705764; margin: 0; }
.wb-gap-list li { padding: 4px 0; }
.wb-next-action { background: #fff4f6; border: 1px solid #f5d9e0; color: #a22543; padding: 13px 15px; border-radius: 4px; margin-bottom: 24px; }
.wb-next-action span { font-size: 11px; display: block; margin-bottom: 4px; }
.wb-next-action strong { font-size: 14px; font-weight: 500; }
.wb-raw-view { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.9 var(--wb-mono); background: #f5f7f9; padding: 18px; border: 1px solid var(--wb-line); border-radius: 5px; margin: 0; }
.wb-actual-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.9; margin: 18px 0; }
.wb-details { margin: 12px 0; }
.wb-details summary { cursor: pointer; font-size: 13px; color: #647b8d; }
.wb-details[open] summary { margin-bottom: 12px; }
.wb-button-row { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.wb-timeline { padding-left: 17px; border-left: 1px solid var(--wb-line); margin: 27px 5px; }
.wb-timeline article { position: relative; padding: 0 0 28px 14px; }
.wb-timeline article::before { content: ""; position: absolute; left: -22px; top: 8px; width: 8px; height: 8px; border: 2px solid #fff; background: #7896ab; border-radius: 50%; box-shadow: 0 0 0 1px #d3dfe6; }
.wb-timeline h3 { font-size: 14px; margin: 0 0 6px; font-weight: 600; }
.wb-timeline p { font-size: 12px; color: var(--wb-muted); margin: 0; }
.wb-evidence-entry { border: 1px solid var(--wb-line); border-radius: 5px; padding: 18px; margin-bottom: 16px; }
.wb-evidence-entry h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
.wb-evidence-entry p, .wb-detail-note { font-size: 13px; color: var(--wb-muted); line-height: 1.85; }
.wb-detail-note { margin-top: 20px; }
.wb-quote { border-left: 3px solid #ccdbe3; padding: 10px 17px; background: #f7f9fa; margin: 12px 0; font-size: 15px; line-height: 1.9; }
.wb-bottom-note { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: 11px; color: #91a0a9; line-height: 1.75; margin: 2px 0 24px; flex-wrap: wrap; }

/* ------------------------------------------------------ mail split */

.wb-split-mail { display: grid; grid-template-columns: 280px minmax(0, 1fr); background: #fff; border: 1px solid var(--wb-line); border-radius: var(--wb-radius); min-height: 590px; overflow: hidden; margin-bottom: 22px; }
.wb-mail-list { border-right: 1px solid var(--wb-line); padding: 16px 0; overflow: auto; max-height: 78vh; }
.wb-list-heading { display: flex; justify-content: space-between; padding: 8px 20px 20px; font-size: 14px; }
.wb-list-heading span { color: var(--wb-muted); }
.wb-mail-item { display: block; width: 100%; text-align: left; padding: 20px; border: 0; border-bottom: 1px solid var(--wb-line); background: #fff; position: relative; font: inherit; cursor: pointer; color: inherit; }
.wb-mail-item.selected { background: #f4f7f9; box-shadow: inset 3px 0 var(--wb-brand); }
.wb-mail-item > span { font-size: 14px; font-weight: 550; display: block; overflow-wrap: anywhere; }
.wb-mail-item small { font-size: 12px; color: var(--wb-muted); display: block; line-height: 1.7; margin: 6px 0; overflow-wrap: anywhere; }
.wb-mail-item em { font-size: 10px; font-style: normal; color: #9aa6af; }
.wb-conversation { padding: 28px 36px; min-width: 0; }
.wb-message-head { border-bottom: 1px solid var(--wb-line); padding-bottom: 20px; }
.wb-message-head h2 { font-size: 20px; margin: 12px 0; font-weight: 600; overflow-wrap: anywhere; }
.wb-message-head p { font-size: 13px; color: var(--wb-muted); margin-bottom: 7px; }
.wb-email-paper { padding: 24px; border: 1px solid var(--wb-line); border-radius: 5px; margin: 24px 0; font-size: 14px; max-width: 760px; }
.wb-email-paper h3 { font-size: 16px; margin: 0 0 12px; font-weight: 600; overflow-wrap: anywhere; }
.wb-email-paper .wb-actual-text { margin-bottom: 0; }
.wb-chat-line { margin: 23px 0; max-width: 100%; }
.wb-chat-line span { display: block; font-size: 11px; color: var(--wb-muted); margin-bottom: 9px; }
.wb-chat-line p { padding: 16px; border: 1px solid var(--wb-line); border-radius: 7px; font-size: 14px; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-chat-line.own p { background: #f3f7fa; }
.wb-reading { padding: 24px 26px; max-width: 850px; font-size: 14px; }
.wb-reading h3 { margin: 0 0 12px; }

/* ------------------------------------------------------ pipeline / flow */

.wb-pipeline { display: grid; grid-template-columns: repeat(6, minmax(165px, 1fr)); gap: 12px; overflow: auto; min-height: 335px; padding-bottom: 10px; }
.wb-pipeline-column { background: #ecf1f4; border-radius: 6px; padding: 12px; min-width: 0; }
.wb-pipeline-column > header { display: flex; align-items: center; justify-content: space-between; font-size: 13px; margin-bottom: 17px; white-space: nowrap; }
.wb-pipeline-column header i { font-size: 10px; color: #99a8b1; font-family: monospace; font-style: normal; margin-right: 8px; }
.wb-pipeline-column header b { font-size: 12px; color: #7e8f9a; font-weight: 400; }
.wb-opportunity { background: #fff; border: 1px solid #e0e7eb; border-radius: 5px; padding: 15px 12px; margin-bottom: 12px; cursor: pointer; }
.wb-opportunity:hover { border-color: var(--wb-brand); }
.wb-opportunity h3 { font-size: 14px; margin: 0 0 7px; font-weight: 600; overflow-wrap: anywhere; }
.wb-opportunity p { font-size: 11px; color: var(--wb-muted); margin: 7px 0 12px; }
.wb-opportunity.is-stalled { border-left: 3px solid var(--wb-amber); }
.wb-pipeline-empty { font-size: 11px; text-align: center; padding-top: 55px; color: #9ba8b0; }
.wb-flow-grid { display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 18px; margin-bottom: 22px; }
.wb-flow-step { background: #fff; border: 1px solid var(--wb-line); border-radius: 6px; padding: 20px; display: flex; flex-direction: column; align-items: flex-start; }
.wb-step-id { font-size: 11px; font-family: monospace; color: var(--wb-brand); border-bottom: 1px solid #dfe5e9; padding-bottom: 12px; width: 100%; margin-bottom: 14px; }
.wb-flow-step h3 { font-size: 16px; margin: 0 0 10px; font-weight: 600; }
.wb-flow-step p { font-size: 13px; line-height: 1.8; margin-bottom: 10px; }
.wb-flow-step small { color: var(--wb-muted); font-size: 12px; line-height: 1.8; margin-bottom: 20px; }
.wb-flow-step a { margin-top: auto; }
.wb-system-line { display: flex; justify-content: space-between; gap: 18px; padding: 17px 22px; border-bottom: 1px solid #eef1f3; font-size: 13px; }

/* ------------------------------------------------------------ drawer */

body.gj-shell .gj-drawer { width: min(var(--wb-drawer), 100vw); padding: 0; box-shadow: 0 24px 100px #14243726; border-left: 1px solid var(--wb-line); }
body.gj-shell .gj-drawer-backdrop { background: #17223029; }
body.gj-shell .gj-drawer-head { padding: 25px 28px 12px; margin: 0; align-items: flex-start; }
body.gj-shell .gj-drawer-head h2 { font-size: 22px; font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
body.gj-shell .gj-drawer-head p { font-size: 12px; color: var(--wb-muted); margin: 4px 0 0; }
.wb-drawer-body { padding: 0 28px 24px; }
.wb-drawer-body .wb-tabs { position: sticky; top: 0; background: #fff; padding-top: 5px; z-index: 1; margin-bottom: 20px; gap: 30px; }
.wb-drawer-body .wb-facts dt { min-width: 0; }
.wb-drawer-body .wb-table th, .wb-drawer-body .wb-table td { font-size: 12px; padding: 12px 10px; }
body.gj-shell .gj-drawer section { margin-top: 0; }
body.gj-shell .gj-drawer h3 { text-transform: none; letter-spacing: 0; }
.wb-modal-close { position: absolute; right: 20px; top: 22px; }

/* --------------------------------------------------- old desks inside tabs */

body.gj-shell .inbox, body.gj-shell .bsend-module, body.gj-shell .mail-module { border-radius: var(--wb-radius); }
body.gj-shell .inbox__account small { color: var(--wb-muted); }

/* ------------------------------------------------------------ toast */

body.gj-shell .gj-toast { left: 50%; bottom: 30px; border-radius: 6px; background: #253846; box-shadow: 0 8px 30px #17223024; font-size: 13px; padding: 14px 20px; }

/* ------------------------------------------------------- responsive */

@media (min-width: 1700px) {
  body.gj-shell .gj-content { padding-left: 44px; padding-right: 44px; }
  .wb-grid-3 { grid-template-columns: 1.4fr 1.15fr .85fr; }
  .wb-metric strong { font-size: 36px; }
}
@media (max-width: 1350px) {
  html[data-theme="goodjob"], html[data-theme="fengmei"] { --wb-sidebar: 192px; }
  body.gj-shell .gj-brand { padding-left: 19px; gap: 10px; }
  body.gj-shell .gj-brand-text strong { font-size: 16px; }
  body.gj-shell .gj-brand-text span { font-size: 8px; }
  body.gj-shell .gj-topbar { padding: 0 25px; gap: 18px; }
  body.gj-shell .gj-content { padding: 26px 25px 0; }
  .wb-banner { padding: 0 25px; }
  .wb-grid-3 { grid-template-columns: minmax(320px, 1.2fr) minmax(300px, 1fr); }
  .wb-grid-3 > .wb-panel:last-child { grid-column: 1 / -1; }
  .wb-metric { padding: 0 18px; }
  .wb-metric-strip { grid-template-columns: repeat(auto-fit, minmax(125px, 1fr)); }
  .wb-flow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1050px) {
  .wb-global-search { width: 210px; }
  .wb-title-note { display: block; margin: 7px 0 0; }
  .wb-metric-strip { grid-template-columns: repeat(3, 1fr); gap: 22px 0; }
  .wb-metric:nth-child(4)::before { display: none; }
  .wb-grid-3 { grid-template-columns: 1fr; }
  .wb-split-mail { grid-template-columns: 220px 1fr; }
  .wb-conversation { padding: 25px; }
  .wb-flow-grid { grid-template-columns: repeat(2, 1fr); }
  .wb-two-col { grid-template-columns: 1fr; }
  .wb-breadcrumb { display: none; }
}
@media (max-width: 760px) {
  body.gj-shell { grid-template-columns: 1fr; }
  body.gj-shell .gj-sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; height: 100vh; flex-direction: column; flex-wrap: nowrap; align-items: stretch; transform: translateX(-100%); transition: transform .16s; box-shadow: 20px 0 60px #17223022; z-index: 40; }
  body.gj-shell .gj-sidebar.mobile-open { transform: translateX(0); }
  body.gj-shell .gj-nav { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; }
  body.gj-shell .gj-nav-group { display: block; }
  body.gj-shell .gj-nav-title, body.gj-shell .gj-sidebar-foot, body.gj-shell .gj-brand-text span { display: block; }
  .wb-btn.gj-nav-close { display: block; margin: 0 24px 22px; }
  .wb-nav-backdrop.open { display: block; }
  .wb-menu-toggle { display: inline-flex; }
  body.gj-shell .gj-topbar { min-height: 60px; padding: 0 16px; gap: 14px; }
  .wb-global-search { width: auto; flex: 1; margin-left: 0; }
  .wb-global-search input { font-size: 11px; }
  .wb-global-search kbd { display: none; }
  .wb-approval-top { padding-left: 10px; font-size: 11px; border-left: 0; }
  .wb-approval-top img { display: none; }
  .wb-top-avatar { display: none; }
  .wb-banner { padding: 5px 18px; font-size: 10px; flex-wrap: wrap; }
  .wb-banner select { max-width: 100px; font-size: 10px; }
  body.gj-shell .gj-content { padding: 25px 18px 0; }
  .wb-title { margin-bottom: 22px; }
  .wb-title h1 { font-size: 24px; }
  .wb-title-note { font-size: 12px; }
  .wb-eyebrow { font-size: 9px; }
  .wb-toolbar { gap: 7px; }
  .wb-segmented button { min-width: 52px; padding: 6px 7px; font-size: 11px; }
  .wb-metric-strip { padding: 20px 0; gap: 20px 0; }
  .wb-metric { padding: 0 14px; }
  .wb-metric > span { font-size: 11px; }
  .wb-metric strong { font-size: 28px; }
  .wb-metric em { font-size: 9px; }
  .wb-grid { gap: 18px; margin-bottom: 18px; }
  .wb-panel-head { padding: 16px; }
  .wb-quiet { display: block; margin: 5px 0 0; font-size: 10px; }
  .wb-table.compact td { padding: 12px !important; }
  .wb-table.compact th { padding: 10px 12px !important; }
  .wb-table th { padding: 10px 12px; }
  .wb-table td { padding: 12px; }
  .wb-tabs { gap: 23px; }
  .wb-tab { font-size: 13px; padding-bottom: 12px; }
  .wb-filterbar { gap: 8px; }
  .wb-search { width: 100%; }
  .wb-filter { flex: 1; }
  .wb-push-right { margin-left: 0; }
  .wb-pagination { font-size: 11px; gap: 8px; padding: 14px; }
  .wb-pagination .wb-btn { font-size: 11px; padding: 6px 9px; }
  .wb-split-mail { display: flex; flex-direction: column; min-height: 0; }
  .wb-mail-list { border-right: 0; border-bottom: 1px solid var(--wb-line); display: flex; overflow: auto; padding: 0; max-height: none; }
  .wb-list-heading { display: none; }
  .wb-mail-item { min-width: 230px; padding: 16px; }
  .wb-conversation { padding: 22px; }
  .wb-message-head h2 { font-size: 18px; }
  .wb-actual-text { font-size: 14px; }
  .wb-pipeline { grid-template-columns: repeat(6, 200px); }
  .wb-flow-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .wb-flow-step { padding: 15px; }
  .wb-flow-step h3 { font-size: 14px; }
  .wb-flow-step p { font-size: 12px; }
  .wb-flow-step small { font-size: 11px; }
  .wb-facts { grid-template-columns: 115px 1fr; font-size: 12px; }
  /* narrow screens scroll tables sideways instead of squeezing names letter by letter */
  .wb-table { min-width: 760px; }
  .wb-table td:first-child { min-width: 200px; }
  body.gj-shell .gj-drawer { width: 100vw; }
  body.gj-shell .gj-drawer-head { padding: 22px 20px 10px; }
  body.gj-shell .gj-drawer-head h2 { font-size: 21px; }
  .wb-drawer-body { padding: 0 20px 22px; }
  .wb-drawer-body .wb-tabs { gap: 26px; }
  .wb-email-paper { padding: 17px; font-size: 13px; }
  .wb-bottom-note { display: block; font-size: 10px; }
  body.gj-shell .gj-footer { margin: 15px 18px 0; font-size: 9px; }
}
@media (max-width: 390px) {
  .wb-metric-strip { grid-template-columns: repeat(2, 1fr); }
  .wb-metric:nth-child(3)::before { display: none; }
  body.gj-shell .gj-content { padding: 18px 12px 0; }
  .wb-title h1 { font-size: 22px; }
  .wb-filter select { max-width: 120px; }
  .wb-facts { grid-template-columns: 1fr; }
  .wb-facts dd { text-align: left; padding-top: 0; }
  .wb-facts dt { border-bottom: 0; padding-bottom: 2px; }
  .wb-flow-grid { grid-template-columns: 1fr; }
  .wb-pipeline { grid-template-columns: repeat(6, 180px); }
  .wb-table th, .wb-table td { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
/* Persistent mail attention uses the shared workstation palette. */
.wb-mail-attention { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--wb-line); background: var(--gj-panel, #fff); font-size: 14px; }
.wb-mail-attention [hidden] { display: none !important; }
.wb-mail-attention [data-mail-attention-status] { min-width: 0; overflow-wrap: anywhere; }
.wb-mail-attention .wb-btn:disabled { opacity: 1; color: var(--wb-text); }
.wb-mail-attention-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.wb-chat-import { display: grid; gap: 16px; max-width: 760px; padding-block: 16px; }
.wb-chat-import label { display: grid; gap: 6px; }
.wb-chat-import input, .wb-chat-import select, .wb-chat-import textarea { max-width: 100%; min-width: 0; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #b7b7ae; border-radius: 6px; color: #25271f; background: #fff; }
.wb-chat-import textarea { resize: vertical; }
.wb-chat-import button { justify-self: start; }
.wb-mail-attention[data-tone="attention"], .wb-mail-attention[data-tone="warning"] { background: #fff3d6; color: #563b0c; }
@media (max-width: 700px) { .wb-mail-attention { align-items: flex-start; flex-direction: column; padding: 12px 16px; } }
