/*
  GoodJob-layout skin for the 峰美外贸工作台 (2026-09-04 cutover).

  Layout vocabulary borrowed from the GoodJob CRM production theme
  (Apache-2.0: graphite command deck, rose brand, KPI cards with an accent
  bar, list→detail drawers).  Colours are re-tokened here so every existing
  page component (built on --ft-* tokens) adopts the same palette.  Switching
  <html data-theme="fengmei"> restores the earlier paper look.
*/

html[data-theme="goodjob"] {
  --gj-bg: #f2f6f5;
  --gj-surface: #ffffff;
  --gj-surface-2: #f4f7f7;
  --gj-surface-3: #eaf0ef;
  --gj-ink: #10211f;
  --gj-text: #2b3a36;
  --gj-muted: #6a7975;
  --gj-line: #e1e8e6;
  --gj-line-soft: #eef3f2;
  --gj-nav: #172230;
  --gj-nav-soft: #22252f;
  --gj-nav-text: #aeb5c4;
  --gj-brand: #be123c;
  --gj-brand-strong: #9f1239;
  --gj-brand-tint: #fdecee;
  --gj-lime: #c9f26b;
  --gj-green: #15803d;
  --gj-green-tint: #e7f6ee;
  --gj-amber: #b45309;
  --gj-amber-tint: #fbf1dc;
  --gj-rose: #be123c;
  --gj-rose-tint: #fdeceb;
  --gj-aqua: #0e7490;
  --gj-aqua-tint: #e6f4f7;
  --gj-violet: #64748b;
  --gj-radius: 10px;
  --gj-radius-sm: 7px;
  --gj-shadow-soft: 0 6px 20px rgba(16, 33, 31, .06);
  --gj-shadow: 0 12px 36px rgba(16, 33, 31, .10);
  --gj-font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", "Songti SC", Georgia, serif;
  --gj-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --ft-color-brand: var(--gj-brand);
  --ft-color-brand-strong: var(--gj-brand-strong);
  --ft-color-brand-soft: var(--gj-brand-tint);
  --ft-color-page: var(--gj-bg);
  --ft-color-panel: var(--gj-surface);
  --ft-color-border: var(--gj-line);
  --ft-color-border-strong: #cbd5d2;
  --ft-color-text: var(--gj-text);
  --ft-color-muted: var(--gj-muted);
  --ft-color-warning-bg: var(--gj-amber-tint);
  --ft-color-warning-text: var(--gj-amber);
  --ft-color-warning-border: #ead9ad;
  --ft-color-success-bg: var(--gj-green-tint);
  --ft-color-success-text: var(--gj-green);
  --ft-color-danger: var(--gj-rose);
  --ft-color-danger-bg: var(--gj-rose-tint);
  --ft-color-neutral-bg: var(--gj-surface-3);
  --ft-color-neutral-text: var(--gj-muted);
  --ft-gradient-brand: linear-gradient(45deg, #be123c 0%, #db2777 100%);
  --ft-gradient-brand-deep: linear-gradient(45deg, #9f1239 0%, #be123c 100%);
  --ft-focus-ring: 0 0 0 3px rgba(190, 18, 60, .18);
  --ft-sidebar-width: 236px;
  --ft-radius-card: 10px;
  --ft-radius-md: 8px;
  --ft-shadow-card: var(--gj-shadow-soft);
  --ft-font-display: var(--gj-font-display);
}

html[data-theme="fengmei"] {
  --gj-bg: var(--ft-color-page);
  --gj-surface: var(--ft-color-panel);
  --gj-surface-2: #f6f3ec;
  --gj-surface-3: #efe9dc;
  --gj-ink: var(--ft-color-text);
  --gj-text: var(--ft-color-text);
  --gj-muted: var(--ft-color-muted);
  --gj-line: var(--ft-color-border);
  --gj-line-soft: #ece7dc;
  --gj-nav: #2c2622;
  --gj-nav-soft: #3a332e;
  --gj-nav-text: #cfc6b8;
  --gj-brand: var(--ft-color-brand);
  --gj-brand-strong: var(--ft-color-brand-strong);
  --gj-brand-tint: var(--ft-color-brand-soft);
  --gj-lime: #d7e88a;
  --gj-green: var(--ft-color-success-text);
  --gj-green-tint: var(--ft-color-success-bg);
  --gj-amber: var(--ft-color-warning-text);
  --gj-amber-tint: var(--ft-color-warning-bg);
  --gj-rose: var(--ft-color-danger);
  --gj-rose-tint: var(--ft-color-danger-bg);
  --gj-aqua: #3b6f8f;
  --gj-aqua-tint: #e8f0f5;
  --gj-violet: #6b6f7c;
  --gj-radius: var(--ft-radius-card);
  --gj-radius-sm: var(--ft-radius-sm);
  --gj-shadow-soft: var(--ft-shadow-card);
  --gj-shadow: var(--ft-shadow-card);
  --gj-font-display: var(--ft-font-display, Georgia, serif);
  --gj-font-mono: var(--ft-font-mono);
}

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

body.gj-shell {
  margin: 0;
  display: grid;
  grid-template-columns: var(--ft-sidebar-width) minmax(0, 1fr);
  min-height: 100vh;
  color: var(--gj-text);
  background: var(--gj-bg);
  font-family: var(--ft-font-ui);
}

.gj-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 11px 12px;
  color: #edf0f7;
  background: var(--gj-nav);
  border-right: 1px solid rgba(255, 255, 255, .08);
  box-sizing: border-box;
}

.gj-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 4px 8px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: inherit;
  text-decoration: none;
}
.gj-brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 13px;
  color: #1f2332;
  background: var(--gj-brand-tint);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(7, 9, 16, .18);
}
.gj-brand-mark span:last-child { color: var(--gj-brand); transform: translate(-1px, 3px); }
.gj-brand-mark span:first-child { transform: translateX(2px); }
.gj-brand-mark::after {
  content: "";
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 3px;
  border-radius: 2px;
  background: var(--gj-brand);
}
.gj-brand-text strong { display: block; color: #f7f8fc; font-size: 14px; font-weight: 700; line-height: 1.2; }
.gj-brand-text span { display: block; margin-top: 3px; color: #858da0; font-size: 10.5px; line-height: 1.2; }

.gj-nav { display: grid; gap: 10px; min-height: 0; overflow-y: auto; padding: 2px 2px 6px 0; scrollbar-width: none; }
.gj-nav::-webkit-scrollbar { display: none; }
.gj-nav-group { display: grid; gap: 2px; }
.gj-nav-title { margin: 6px 0 4px 10px; color: #6f778a; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; }
.gj-nav-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr auto;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 9px;
  border-radius: 10px;
  color: var(--gj-nav-text);
  font-size: 13.5px;
  text-decoration: none;
  transition: background .26s ease, color .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}
.gj-nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 3px;
  height: 20px;
  border-radius: 0 3px 3px 0;
  background: var(--gj-lime);
  opacity: 0;
  transform: scaleY(.35);
  transition: opacity .2s ease, transform .32s ease;
}
.gj-nav-item svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; justify-self: center; }
.gj-nav-item:hover { color: #fff; background: var(--gj-nav-soft); transform: translateX(3px); }
.gj-nav-item.active { color: #f8fbe9; background: rgba(201, 242, 107, .14); box-shadow: inset 0 0 0 1px rgba(201, 242, 107, .28); }
.gj-nav-item.active::before { opacity: 1; transform: scaleY(1); }
.gj-nav-badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--gj-brand); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center; }
.gj-nav-badge[hidden] { display: none; }

.gj-sidebar-foot { margin-top: auto; display: grid; gap: 8px; padding: 10px 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.gj-sidebar-user { margin: 0; display: flex; align-items: center; gap: 10px; }
.gj-sidebar-user strong { display: block; color: #f3f5fa; font-size: 12.5px; }
.gj-sidebar-user small { display: block; color: #858da0; font-size: 10.5px; }
.gj-avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--gj-brand), #db2777); font-size: 12px; font-weight: 700; }
.gj-sidebar-truth { margin: 0; display: flex; align-items: center; gap: 7px; color: #858da0; font-size: 10.5px; line-height: 1.4; }
.gj-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gj-lime); box-shadow: 0 0 0 3px rgba(201, 242, 107, .18); flex: 0 0 auto; }

.gj-frame { min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.gj-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: var(--gj-surface);
  border-bottom: 1px solid var(--gj-line);
}
.gj-topbar-title small { display: block; color: var(--gj-muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.gj-topbar-title h1 { margin: 2px 0 0; color: var(--gj-ink); font-family: var(--gj-font-display); font-size: 21px; font-weight: 500; letter-spacing: -.01em; }
.gj-topbar-actions { display: flex; align-items: center; gap: 8px; }
.gj-sync-stamp { color: var(--gj-muted); font-size: 12px; font-family: var(--gj-font-mono); }
.gj-content { width: min(1560px, 100%); padding: 20px 28px 40px; box-sizing: border-box; }
.gj-footer { display: flex; justify-content: space-between; gap: 16px; padding: 14px 28px 22px; color: var(--gj-muted); font-size: 11px; }

.page-frame > .ui-notice { padding: 8px 28px; color: var(--gj-muted); background: var(--gj-surface-2); border-bottom: 1px solid var(--gj-line); font-size: 12px; }

/* --------------------------------------------------------- primitives */

.gj-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius-sm);
  background: var(--gj-surface);
  color: var(--gj-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.gj-btn:hover:not(:disabled) { background: var(--gj-surface-2); }
.gj-btn:disabled { opacity: .55; cursor: not-allowed; }
.gj-btn-primary { color: #fff; border-color: transparent; background: var(--gj-brand); box-shadow: 0 1px 2px rgba(20, 32, 60, .2), 0 8px 18px rgba(190, 18, 60, .18); font-weight: 600; }
.gj-btn-primary:hover:not(:disabled) { background: var(--gj-brand-strong); transform: translateY(-1px); }
.gj-btn-ghost { background: transparent; }
.gj-btn-danger { color: var(--gj-rose); border-color: #f3c6cf; background: var(--gj-rose-tint); }
.gj-btn-sm { min-height: 26px; padding: 0 8px; font-size: 12px; }

.gj-panel {
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius);
  background: var(--gj-surface);
  box-shadow: var(--gj-shadow-soft);
  padding: 16px 18px;
  box-sizing: border-box;
}
.gj-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.gj-panel-head h2 { margin: 0; color: var(--gj-ink); font-family: var(--gj-font-display); font-size: 16px; font-weight: 600; }
.gj-panel-head p, .gj-hint { margin: 0; color: var(--gj-muted); font-size: 12.5px; line-height: 1.5; }
.gj-eyebrow { margin: 0 0 6px; color: var(--gj-muted); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; }

.gj-grid { display: grid; gap: 14px; }
.gj-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gj-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gj-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gj-grid-kpi { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.gj-two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 14px; align-items: start; }
.gj-stack { display: grid; gap: 14px; }

.gj-kpi {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 14px 16px;
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 251, 255, .96));
  box-shadow: var(--gj-shadow-soft);
  color: inherit;
  text-decoration: none;
  display: block;
  box-sizing: border-box;
}
.gj-kpi::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: var(--accent, var(--gj-aqua)); }
.gj-kpi::after { content: ""; position: absolute; right: -34px; bottom: -42px; width: 118px; height: 118px; border-radius: 50%; background: color-mix(in srgb, var(--accent, var(--gj-aqua)) 12%, transparent); }
.gj-kpi > * { position: relative; z-index: 1; }
.gj-kpi label { display: block; color: var(--gj-muted); font-size: 12px; }
.gj-kpi b { display: block; margin-top: 8px; color: var(--gj-ink); font-family: var(--gj-font-mono); font-size: 30px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.gj-kpi b small { font-size: 12px; color: var(--gj-muted); margin-left: 4px; font-family: var(--ft-font-ui); }
.gj-kpi p { margin: 8px 0 0; color: var(--gj-muted); font-size: 12px; line-height: 1.4; }
.gj-kpi.tone-danger { --accent: var(--gj-rose); }
.gj-kpi.tone-warn { --accent: var(--gj-amber); }
.gj-kpi.tone-neutral { --accent: var(--gj-aqua); }
.gj-kpi.tone-good { --accent: var(--gj-green); }

.gj-verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--gj-radius);
  color: #f8fbe9;
  background: linear-gradient(120deg, #172230 0%, #22303f 60%, #2b3a36 100%);
  box-shadow: var(--gj-shadow);
}
.gj-verdict-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(201, 242, 107, .16); color: var(--gj-lime); font-family: var(--gj-font-display); font-size: 22px; }
.gj-verdict h2 { margin: 0; font-family: var(--gj-font-display); font-size: 19px; font-weight: 500; line-height: 1.35; }
.gj-verdict p { margin: 4px 0 0; color: #b8c0cd; font-size: 12.5px; }

.gj-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--gj-line); background: var(--gj-surface-2); color: var(--gj-text); font-size: 12px; white-space: nowrap; }
.gj-chip.is-active { color: #fff; border-color: transparent; background: var(--gj-ink); }
.gj-chip b { font-family: var(--gj-font-mono); font-weight: 600; }
.gj-chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.gj-chip-button { cursor: pointer; font: inherit; font-size: 12px; }

.gj-tier { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; font-family: var(--gj-font-mono); font-size: 12px; font-weight: 700; }
.gj-tier-A { color: #fff; background: var(--gj-green); }
.gj-tier-B { color: #1f2937; background: var(--gj-lime); }
.gj-tier-C { color: var(--gj-amber); background: var(--gj-amber-tint); }
.gj-tier-D { color: var(--gj-rose); background: var(--gj-rose-tint); }
.gj-tier-unknown { color: var(--gj-muted); background: var(--gj-surface-3); }

.gj-tag { display: inline-flex; align-items: center; min-height: 20px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.gj-tag-good { color: var(--gj-green); background: var(--gj-green-tint); }
.gj-tag-warn { color: var(--gj-amber); background: var(--gj-amber-tint); }
.gj-tag-danger { color: var(--gj-rose); background: var(--gj-rose-tint); }
.gj-tag-info { color: var(--gj-aqua); background: var(--gj-aqua-tint); }
.gj-tag-muted { color: var(--gj-muted); background: var(--gj-surface-3); }

.gj-five { display: inline-flex; gap: 3px; }
.gj-five i { width: 9px; height: 9px; border-radius: 2px; background: var(--gj-surface-3); border: 1px solid var(--gj-line); }
.gj-five i.on { background: var(--gj-green); border-color: var(--gj-green); }

.gj-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.gj-table th { position: sticky; top: 62px; z-index: 1; padding: 9px 10px; text-align: left; color: var(--gj-muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; background: var(--gj-surface); border-bottom: 1px solid var(--gj-line); }
.gj-table td { padding: 10px 10px; border-bottom: 1px solid var(--gj-line-soft); vertical-align: middle; }
.gj-table td.nowrap, .gj-table th.nowrap { white-space: nowrap; }
.gj-table .gj-cell-name { min-width: 200px; }
.gj-table .gj-cell-next { min-width: 160px; }
.gj-table tr:hover td { background: var(--gj-surface-2); }
.gj-table .gj-cell-name a { color: var(--gj-ink); font-weight: 600; text-decoration: none; }
.gj-table .gj-cell-name a:hover { color: var(--gj-brand); }
.gj-table .gj-cell-name small { display: block; color: var(--gj-muted); font-size: 11.5px; }
.gj-table td.num { font-family: var(--gj-font-mono); font-variant-numeric: tabular-nums; }

.gj-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.gj-toolbar input[type="search"], .gj-input, .gj-textarea, .gj-select {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--gj-line);
  border-radius: var(--gj-radius-sm);
  background: var(--gj-surface);
  color: var(--gj-text);
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.gj-textarea { min-height: 88px; resize: vertical; width: 100%; }
.gj-input:focus, .gj-textarea:focus, .gj-select:focus, .gj-toolbar input:focus { outline: 0; border-color: var(--gj-brand); box-shadow: var(--ft-focus-ring); }
.gj-field { display: grid; gap: 4px; font-size: 12.5px; color: var(--gj-muted); }
.gj-field > span { font-weight: 600; color: var(--gj-text); }

.gj-empty { padding: 26px 18px; border: 1px dashed var(--gj-line); border-radius: var(--gj-radius); color: var(--gj-muted); text-align: center; font-size: 13px; line-height: 1.6; background: var(--gj-surface-2); }
.gj-empty strong { display: block; color: var(--gj-text); margin-bottom: 4px; }

.gj-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.gj-list li { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--gj-line-soft); border-radius: var(--gj-radius-sm); background: var(--gj-surface); }
.gj-list li strong { display: block; color: var(--gj-ink); font-size: 13px; }
.gj-list li small { display: block; margin-top: 2px; color: var(--gj-muted); font-size: 12px; line-height: 1.45; }
.gj-list li .gj-score { font-family: var(--gj-font-mono); font-size: 13px; font-weight: 700; color: var(--gj-brand); }

.gj-feed { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; }
.gj-feed li { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--gj-line-soft); font-size: 12.5px; }
.gj-feed time { color: var(--gj-muted); font-family: var(--gj-font-mono); font-size: 11.5px; }
.gj-feed a { color: var(--gj-ink); text-decoration: none; font-weight: 600; }
.gj-feed span { color: var(--gj-text); }

.gj-kanban { display: grid; grid-template-columns: repeat(6, minmax(150px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 8px; }
.gj-kanban-col { display: grid; gap: 10px; min-height: 240px; padding: 10px; border: 1px solid var(--gj-line); border-radius: var(--gj-radius); background: var(--gj-surface-2); }
.gj-kanban-col.is-terminal { background: var(--gj-surface-3); }
.gj-kanban-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gj-kanban-head h3 { margin: 0; color: var(--gj-ink); font-size: 14px; }
.gj-kanban-head small { color: var(--gj-muted); font-family: var(--gj-font-mono); font-size: 11.5px; }
.gj-card { padding: 10px 12px; border: 1px solid var(--gj-line); border-radius: var(--gj-radius-sm); background: var(--gj-surface); box-shadow: var(--gj-shadow-soft); cursor: pointer; }
.gj-card:hover { border-color: var(--gj-brand); }
.gj-card strong { display: block; color: var(--gj-ink); font-size: 13.5px; }
.gj-card small { display: block; margin-top: 4px; color: var(--gj-muted); font-size: 11.5px; line-height: 1.45; }
.gj-card .gj-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.gj-card.is-stalled { border-left: 3px solid var(--gj-amber); }

.gj-drawer-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(16, 33, 31, .38); display: none; }
.gj-drawer-backdrop.open { display: block; }
.gj-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 61; width: min(560px, 94vw); overflow-y: auto; padding: 22px 24px 40px; background: var(--gj-surface); box-shadow: -18px 0 48px rgba(16, 33, 31, .2); transform: translateX(100%); transition: transform .28s cubic-bezier(.16, 1, .3, 1); box-sizing: border-box; visibility: hidden; }
.gj-drawer.open { transform: translateX(0); visibility: visible; }
.gj-drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.gj-drawer-head h2 { margin: 0; color: var(--gj-ink); font-family: var(--gj-font-display); font-size: 19px; font-weight: 500; }
.gj-drawer-head p { margin: 4px 0 0; color: var(--gj-muted); font-size: 12.5px; }
.gj-drawer section { margin-top: 18px; }
.gj-drawer h3 { margin: 0 0 8px; color: var(--gj-ink); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }

.gj-timeline { margin: 0; padding: 0 0 0 14px; list-style: none; border-left: 2px solid var(--gj-line); display: grid; gap: 12px; }
.gj-timeline li { position: relative; font-size: 12.5px; }
.gj-timeline li::before { content: ""; position: absolute; left: -19px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--gj-brand); }
.gj-timeline li.is-system::before { background: var(--gj-aqua); }
.gj-timeline time { display: block; color: var(--gj-muted); font-family: var(--gj-font-mono); font-size: 11px; }
.gj-timeline strong { color: var(--gj-ink); }
.gj-timeline p { margin: 3px 0 0; color: var(--gj-text); line-height: 1.5; }
.gj-timeline .gj-evidence { display: inline-block; margin-top: 3px; color: var(--gj-aqua); font-size: 11.5px; word-break: break-all; }

.gj-steps { display: flex; flex-wrap: wrap; gap: 6px; }
.gj-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--gj-line); background: var(--gj-surface); font-size: 11.5px; color: var(--gj-muted); }
.gj-step.done { color: var(--gj-green); border-color: #bfe3cc; background: var(--gj-green-tint); }
.gj-step.running { color: var(--gj-aqua); border-color: #b7dbe3; background: var(--gj-aqua-tint); }
.gj-step.halted, .gj-step.failed { color: var(--gj-rose); border-color: #f3c6cf; background: var(--gj-rose-tint); }
.gj-step.waiting { color: var(--gj-amber); border-color: #ead9ad; background: var(--gj-amber-tint); }

.gj-meter { height: 8px; border-radius: 999px; background: var(--gj-surface-3); overflow: hidden; }
.gj-meter > i { display: block; height: 100%; background: var(--gj-brand); }
.gj-meter.good > i { background: var(--gj-green); }

.gj-chat { display: grid; gap: 8px; }
.gj-bubble { max-width: 78%; padding: 8px 12px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: var(--gj-surface-2); color: var(--gj-text); }
.gj-bubble.us { justify-self: end; background: #e7f6ee; border-bottom-right-radius: 4px; }
.gj-bubble.them { justify-self: start; background: var(--gj-surface-2); border-bottom-left-radius: 4px; }
.gj-bubble time { display: block; margin-top: 3px; color: var(--gj-muted); font-family: var(--gj-font-mono); font-size: 10.5px; }
.gj-bubble.note { justify-self: center; max-width: 100%; color: var(--gj-muted); background: transparent; border: 1px dashed var(--gj-line); font-size: 12px; }

.gj-kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 12.5px; }
.gj-kv dt { color: var(--gj-muted); }
.gj-kv dd { margin: 0; color: var(--gj-text); word-break: break-word; }

.gj-rules { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--gj-radius-sm); background: var(--gj-surface-2); color: var(--gj-muted); font-size: 12px; line-height: 1.6; }
.gj-rules li { margin-left: 16px; }

.gj-alert { padding: 10px 14px; border-radius: var(--gj-radius-sm); font-size: 12.5px; line-height: 1.5; }
.gj-alert-warn { color: var(--gj-amber); background: var(--gj-amber-tint); border: 1px solid #ead9ad; }
.gj-alert-danger { color: var(--gj-rose); background: var(--gj-rose-tint); border: 1px solid #f3c6cf; }
.gj-alert-info { color: var(--gj-aqua); background: var(--gj-aqua-tint); border: 1px solid #b7dbe3; }
.gj-alert-good { color: var(--gj-green); background: var(--gj-green-tint); border: 1px solid #bfe3cc; }

.gj-mono { font-family: var(--gj-font-mono); font-size: 12px; }
.gj-muted { color: var(--gj-muted); }
.gj-right { text-align: right; }
.gj-toast { position: fixed; left: 50%; bottom: 26px; z-index: 80; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: var(--gj-ink); color: #fff; font-size: 13px; box-shadow: var(--gj-shadow); }
.gj-toast.error { background: var(--gj-rose); }

pre.gj-pre { margin: 0; padding: 12px; border-radius: var(--gj-radius-sm); background: var(--gj-surface-2); font-family: var(--gj-font-mono); font-size: 12px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }

/* ------------------------------------------------------------ utilities */

.gj-mt-8 { margin-top: 8px; }
.gj-mt-10 { margin-top: 10px; }
.gj-mt-12 { margin-top: 12px; }
.gj-mt-14 { margin-top: 14px; }
.gj-mb-10 { margin-bottom: 10px; }
.gj-mb-12 { margin-bottom: 12px; }
.gj-gap-8 { gap: 8px; }
.gj-gap-10 { gap: 10px; }
.gj-block { display: block; }
.gj-quote { margin: 10px 0 0; padding: 10px 12px; border-left: 3px solid var(--gj-lime); background: var(--gj-surface-2); border-radius: 6px; }
.gj-quote p { margin: 0 0 6px; font-style: italic; }
.gj-quote small { display: block; color: var(--gj-muted); }

/* 中东 / 非洲 region split (user 2026-09-04): filters + per-region tier bands */
.gj-select-sm { flex: 0 0 auto; width: auto; min-width: 170px; max-width: 280px; min-height: 28px; padding: 3px 8px; font-size: 12px; }
.gj-filter-label { color: var(--gj-muted); font-size: 12px; white-space: nowrap; }
.gj-region-tiers { display: grid; gap: 6px; margin-top: 10px; }
.gj-region-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--gj-line); border-radius: var(--gj-radius-sm); background: var(--gj-surface-2); font-size: 12.5px; }
.gj-region-row.is-empty { border-style: dashed; color: var(--gj-muted); }
.gj-region-row.is-active { border-color: var(--gj-brand); box-shadow: inset 0 0 0 1px var(--gj-brand); }
.gj-region-name { min-width: 3.5em; color: var(--gj-ink); font-weight: 600; text-decoration: none; }
.gj-region-name:hover { color: var(--gj-brand); }
.gj-region-total { font-family: var(--gj-font-mono); font-weight: 600; font-variant-numeric: tabular-nums; }
.gj-region-note { color: var(--gj-muted); }
.gj-region-sep { color: var(--gj-line); }
.gj-full { width: 100%; }
.gj-nomargin { margin: 0; }
.gj-panel-table { padding: 0; overflow: auto; }
.gj-panel-flush { padding: 0; overflow: hidden; }
.gj-panel-tight { padding: 10px 12px; }
.gj-num-lg { display: block; font-size: 22px; font-family: var(--gj-font-mono); }
.gj-flex-end { display: flex; gap: 6px; justify-content: flex-end; }
.gj-stack-2 { display: grid; gap: 2px; }
.gj-eyebrow-light { color: #9aa4b2; }
.gj-lead { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; }
.gj-amber { color: var(--gj-amber); }
.gj-chat-split { display: grid; grid-template-columns: 260px 1fr; min-height: 420px; }
.gj-chat-list { border-right: 1px solid var(--gj-line); overflow: auto; }
.gj-chat-list .gj-chat-company { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--gj-line-soft); border-radius: 0; padding: 12px 14px; min-height: 0; background: transparent; }
.gj-chat-list .gj-chat-company.is-selected { background: var(--gj-brand-tint); }
.gj-chat-list .gj-chat-company strong { display: block; font-size: 13.5px; }
.gj-chat-thread { padding: 14px 16px; overflow: auto; max-height: 70vh; }
.gj-life-row { display: grid; grid-template-columns: 72px 1fr 32px; gap: 8px; align-items: center; text-decoration: none; color: inherit; font-size: 12.5px; }
.gj-inherit-link { color: inherit; text-decoration: none; }
.gj-textarea-sm { min-height: 70px; }
.gj-textarea-xs { min-height: 56px; }
.gj-center-pad { text-align: center; padding: 14px 0; }
.gj-status-lg { font-size: 20px; }

/* -------------------------------------------------------- old pages fit */

html[data-theme="goodjob"] .surface-nav,
html[data-theme="goodjob"] .view-heading { display: none; }
html[data-theme="goodjob"] .panel,
html[data-theme="goodjob"] .dashboard-panel,
html[data-theme="goodjob"] .station-mail-hero { border-radius: var(--gj-radius); box-shadow: var(--gj-shadow-soft); }

/* ------------------------------------------------------------ mobile */

@media (max-width: 1100px) {
  .gj-kanban { grid-template-columns: repeat(6, 220px); }
  .gj-two-col { grid-template-columns: 1fr; }
  .gj-grid-3, .gj-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  body.gj-shell { grid-template-columns: 1fr; }
  .gj-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .gj-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .gj-nav-group { display: contents; }
  .gj-nav-title, .gj-sidebar-foot, .gj-brand-text span { display: none; }
  .gj-topbar { padding: 0 14px; }
  .gj-content { padding: 14px; }
  .gj-grid-2, .gj-grid-3, .gj-grid-4 { grid-template-columns: 1fr; }
  .gj-table th { top: 0; }
}
