@import url('./custom-select.css');
/* Shared console theme: existing console layout, Yojoin orange brand palette. */
:root {
  --brand: #FF9B19;
  --brand-light: #FFC557;
  --brand-hover: #E08510;
  --brand-ink: #452c14;
  --brand-text: #99520b;
  --success: #28745c;
  --success-soft: #eaf4ef;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  color: #302c27;
  background: #f7f5f1;
  --ink: #302c27;
  --muted: #817c75;
  --line: #e6e1da;
  --ground: #f7f5f1;
  --surface: #fff;
  --panel: #fff;
  --green: #99520b;
  --green-dark: #7e4309;
  --green-soft: #fff2df;
  --sidebar: #302a23;
  --blue: #99520b;
  --blue-soft: #fff2df;
  --shadow: 0 8px 24px #302a2312;
}
body { min-width: 320px; background: var(--ground); color: var(--ink); font-size: 12px; line-height: 1.5; }
button, input, select, textarea { font-family: inherit; font-size: 12px; }
a { color: var(--green); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
[hidden], .hidden { display: none !important; }
.workbench-chrome { position: fixed; inset: 0 0 auto; height: 100px; z-index: 30; }
.console-top { height: 56px; display: flex; align-items: center; gap: 20px; padding: 0 24px; background: var(--sidebar); color: #f0ede8; }
.workbench-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.console-top .workbench-logo { color: white; }
.workbench-logo strong { font-size: 18px; font-weight: 500; letter-spacing: 1px; }
.console-logo-mark { display: grid; place-items: center; width: 28px; height: 28px; color: #302a23; background: #ffc557; border-radius: 2px; font-size: 17px; font-weight: 600; }
.console-top-spacer { flex: 1; }
.console-account-name { max-width: 180px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.console-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: #302a23; background: #ffc557; }
.console-logout { height: 32px; border: 0; padding: 0; color: #d5cec5; background: transparent; }
.console-logout:hover { color: white; }
.console-modules { height: 44px; display: flex; align-items: stretch; gap: 0; padding: 0 24px; background: white; border-bottom: 1px solid var(--line); }
.console-module { display: flex; align-items: center; gap: 8px; min-width: 140px; justify-content: center; padding: 0 20px; border-bottom: 2px solid transparent; text-decoration: none; color: #615a52; font-size: 13px; }
.console-module:hover { color: var(--green); background: #faf8f6; }
.console-module.active { color: var(--green); border-bottom-color: var(--brand); background: #f8f6f4; }
.console-module[aria-disabled="true"] { color: #ada9a3; cursor: not-allowed; }
.console-user-menu { position: relative; flex: 0 0 auto; }
.console-user-menu summary { display: flex; align-items: center; justify-content: flex-end; gap: 10px; height: 40px; padding: 0 4px 0 12px; cursor: pointer; list-style: none; }
.console-user-menu summary::-webkit-details-marker { display: none; }
.console-user-menu summary:focus-visible { outline: 2px solid #ffc557; outline-offset: 2px; }
.console-user-menu[open] summary { background: #ffffff0d; }
.console-account-name { text-align: right; }
.console-user-dropdown { position: absolute; right: 0; top: 48px; width: 232px; max-width: calc(100vw - 32px); padding: 0 0 6px; background: #fff; color: #4f4334; border: 1px solid #e6e1db; border-radius: 0; box-shadow: 0 10px 30px #302a2324; }
.console-menu-identity { display: flex; align-items: center; gap: 12px; margin: 0 16px 6px; padding: 16px 0; border-bottom: 1px solid #ece8e3; }
.console-menu-identity > div { min-width: 0; }
.console-menu-identity .console-menu-avatar { display: grid; width: 36px; height: 36px; flex-basis: 36px; font-size: 15px; }
.console-menu-name { display: block; color: #3c3329; font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.console-menu-role { display: block; margin-top: 2px; font-size: 12px; line-height: 18px; color: #8b847a; }
.console-settings-group { padding: 0; }
.console-user-dropdown a, .console-user-dropdown .console-logout { display: flex; align-items: center; gap: 10px; box-sizing: border-box; width: 100%; min-height: 40px; padding: 10px 18px; height: auto; border: 0; text-align: left; text-decoration: none; font-size: 13px; line-height: 20px; font-weight: 400; color: #4f4334; background: transparent; border-radius: 0; cursor: pointer; }
.console-user-dropdown svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.console-user-dropdown a:hover, .console-user-dropdown .console-logout:hover { background: #f4f1ed; color: #99520b; }
.console-menu-footer { margin-top: 6px; padding: 0; }
.console-menu-footer::before { content: ''; display: block; height: 1px; margin: 0 16px 6px; background: #ece8e3; }
.console-menu-error { display: block; color: #a33b35; font-size: 11px; }
.console-menu-error:not(:empty) { padding: 0 20px 12px; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 200px minmax(0, 1fr); padding-top: 100px; }
.sidebar { position: sticky; top: 100px; width: 200px; height: calc(100vh - 100px); padding: 20px 12px; background: var(--sidebar); border-right: 1px solid #43392c; color: white; }
.sidebar .brand, .sidebar .brand-block { display: flex; justify-content: flex-start; gap: 10px; padding: 0 10px 20px; }
.sidebar .brand-mark { width: 28px; height: 28px; border-radius: 2px; background: #ffc557; color: #302a23; font-size: 14px; font-weight: 600; }
.sidebar .brand strong, .sidebar .brand-block strong { display: block; font-size: 14px; font-weight: 500; }
.sidebar .brand div > span, .sidebar .brand-block small { display: block; margin-top: 2px; color: #bcae9c; font-size: 11px; }
.sidebar nav { display: grid; grid-template-columns: 1fr; gap: 3px; }
.sidebar .nav-item { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 2px; color: #d0c8bd; font-size: 12px; font-weight: 400; text-align: left; }
.sidebar .nav-item span { width: 16px; font-size: 14px; }
.sidebar .nav-item:hover { background: #40362a; color: white; }
.sidebar .nav-item.active { background: #493f31; color: #f7f4ef; box-shadow: inset 2px 0 #ffc557; }
.sidebar .sidebar-account { display: none; }
.sidebar-status { margin-top: auto; border-color: #504435; color: #bcae9c; font-size: 11px; }
.mobile-workbench-account { display: none; }
.app-shell > main, .app-shell > .main { min-width: 0; padding: 24px; }
.topbar { display: flex; align-items: center; min-height: 85px; max-width: none; margin: -24px -24px 24px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: white; }
h1, .topbar h1 { font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
h2 { font-size: 16px; font-weight: 500; }
h3 { font-size: 14px; font-weight: 500; }
.topbar p { font-size: 12px; font-weight: 400; color: var(--muted); }
.topbar #page-kicker { margin: 0 0 3px; }
.view { padding-top: 0; }
.view-root { max-width: none; }
.admin-layout { grid-template-columns: minmax(0, 1fr); }
.admin-layout > * { min-width: 0; }
.button, .mini-button { min-height: 30px; padding: 0 14px; border-radius: 2px; font-size: 12px; font-weight: 400; }
.button.small, .mini-button { min-height: 26px; padding: 0 9px; font-size: 12px; }
.button.primary, .mini-button.primary { background: var(--green); border-color: var(--green); color: white; }
.button.primary:hover, .mini-button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.secondary { border-color: #d7d2cb; color: #504940; background: white; }
.button.secondary:hover { color: var(--green); border-color: var(--green); }
input, select, textarea { border-color: #d7d2cb; border-radius: 2px; color: var(--ink); font-size: 12px; font-weight: 400; }
input, select { min-height: 32px; padding: 0 10px; }
textarea { line-height: 1.6; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px #99520b10; }
.field input, .field select, .field textarea, .filter-bar input, .filter-bar select, .bi-date-range input, .bi-filter select { border-radius: 2px; border-color: #d7d2cb; font-size: 12px; }
.field input, .field select, .filter-bar input, .filter-bar select, .bi-date-range input, .bi-filter select { min-height: 32px; padding: 0 10px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px #99520b10; }
label, .field > span { font-size: 12px; font-weight: 400; color: #615a52; }
.metric-grid, .metrics, .bi-metrics, .section-band, .data-band, .side-band, .inventory-panel, .reward-chart, .settings-card, .catalog-module-guide, .catalog-section, .data-table-wrap, .master-sync-bar { border: 1px solid var(--line); border-radius: 2px; background: white; box-shadow: none; }
.metric { min-height: 104px; padding: 20px; }
.metric-label { color: #817c75; font-size: 12px; font-weight: 400; }
.metric-value { margin-top: 9px; font-size: 28px; line-height: 1.3; font-weight: 400; font-variant-numeric: tabular-nums; }
.metric-note { font-size: 11px; }
.queue, .data-section, .settings-section, .bi-metric, .bi-filter-band, .catalog-module-card, .role-guide article, .drop-zone, .batch-upload-panel, .recognized-product-lines, .reward-preview, .quick-action button { border-radius: 2px; }
.quick-action button, .segmented button { font-weight: 400; }
.segmented, .segmented button, .tab-button, .inventory-icon, .batch-retry { border-radius: 2px; }
.section-band { margin-top: 20px; padding: 20px; }
.section-head { min-height: 52px; }
.section-head h2, .section-heading h2 { font-size: 14px; font-weight: 500; }
.section-head, .section-heading { border-color: var(--line); }
.work-list { border: 1px solid var(--line); background: white; }
.work-row { padding: 14px 16px; }
.work-title, .cell-main { font-size: 12px; font-weight: 500; }
.work-meta { font-size: 11px; }
.table-wrap, .data-table-wrap { max-width: 100%; overflow-x: auto; }
table { font-size: 12px; }
th { color: #756f68; background: #f8f7f5; font-weight: 400; }
th, td { padding: 12px; border-bottom-color: #efece8; }
tbody tr:hover { background: #faf9f7; }
.tag, .status-pill, .inventory-badge, .inventory-counts span, .confidence, .count-badge { border-radius: 2px; font-size: 11px; font-weight: 400; }
.tag.good, .status-pill.good { background: var(--green-soft); color: var(--green); }
.notice:not(.error) { border-color: var(--green); background: var(--green-soft); color: #4f4435; }
.activity-list { padding: 4px 18px; }
.activity-list strong { font-size: 12px; font-weight: 500; }
.activity-list small { font-size: 11px; }
.dialog, .detail-dialog { max-width: min(1100px, calc(100vw - 32px)); border: 1px solid var(--line); border-radius: 2px; box-shadow: 0 16px 60px #302a2333; }
.dialog::backdrop, .detail-dialog::backdrop { background: #302a2366; }
.dialog-head, .dialog-actions { border-color: var(--line); }
.dialog-head h2 { font-size: 18px; font-weight: 500; }
.form-layout { padding: 20px; border: 1px solid var(--line); border-radius: 2px; background: white; }
.form-section { background: white; }
.segmented-control { border-radius: 2px; background: #efece9; }
.segmented-control button { min-height: 30px; border-radius: 1px; font-size: 12px; font-weight: 400; }
.segmented-control button.active { color: var(--green); box-shadow: none; }
/* One login page for both business modules. */
.login-screen { position: relative; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; min-height: 100vh; padding: 0; overflow: hidden; background: #f8f3eb; }
.login-top { display: flex; align-items: center; gap: 20px; height: 72px; padding: 0 40px; z-index: 1; color: #615a52; }
.login-top .workbench-logo { color: #302a23; }
.login-top-divider { width: 1px; height: 20px; background: #d7d2cb; }
.login-company { margin-left: auto; color: #8b847c; font-size: 11px; letter-spacing: 1px; }
.login-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); align-items: center; gap: 80px; width: min(1040px, calc(100% - 80px)); margin: auto; padding: 40px 0; z-index: 1; }
.login-panel { width: 100%; margin: 0; padding: 36px 40px 28px; border: 1px solid #e9e5e0; border-radius: 2px; background: white; box-shadow: 0 8px 32px #302a2308; }
.login-heading { padding: 0 0 26px; }
.login-heading h1 { margin: 0; font-size: 22px; font-weight: 500; }
.login-heading p { margin: 8px 0 0; font-size: 12px; color: #817c75; }
.login-modules { display: flex; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.login-modules button { flex: 1; min-height: 40px; padding: 0; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #777169; font-size: 14px; }
.login-modules button[aria-selected="true"] { color: var(--green); border-bottom-color: var(--brand); }
.login-modules button:hover { color: var(--green); }
.login-module-description { margin: 0 0 24px; padding: 9px 12px; color: #746552; background: #f6f2ed; font-size: 12px; }
.login-panel label { display: grid; gap: 8px; font-size: 12px; font-weight: 400; }
.login-panel label + label { margin-top: 18px; }
.login-panel input { height: 40px; font-size: 14px; }
.login-panel input::placeholder { font-size: 12px; color: #aaa6a0; }
.login-panel .login-submit { width: 100%; height: 40px; margin-top: 28px; font-size: 14px; font-weight: 400; }
.login-help { margin: 20px 0 0; color: #a6a19a; text-align: center; font-size: 11px; }
.login-error { padding: 10px 12px; border-left: 2px solid var(--red); font-size: 12px; }
.login-intro { position: relative; min-height: 480px; padding-top: 20px; }
.login-eyebrow { font-size: 11px; letter-spacing: 3px; color: #8f8475; }
.login-intro h2 { margin: 20px 0 16px; color: #302a23; font-size: 32px; line-height: 1.5; font-weight: 500; }
.login-intro > p { margin: 0; color: #817c75; font-size: 13px; line-height: 1.9; }
.login-intro ul { display: grid; gap: 7px; list-style: none; margin: 24px 0 0; padding: 0; color: #746552; font-size: 12px; }
.login-intro li::before { content: '✓'; color: var(--green); padding-right: 10px; }
.login-geometry { position: relative; height: 170px; margin: 34px 0 0; pointer-events: none; }
.geometry-platform { position: absolute; bottom: 15px; left: 18px; width: 370px; height: 70px; transform: skewY(-10deg); border: 1px solid #eadbc4; background: linear-gradient(150deg, #f7ead6, #fff); box-shadow: 16px 16px 0 #ded7ce59; }
.geometry-card { position: absolute; top: 0; width: 146px; height: 116px; padding: 16px; border: 1px solid #ecdbc1; border-radius: 2px; transform: skewY(-10deg); background: #ffffffd9; box-shadow: 6px 6px 0 #efdec2; color: #746552; }
.geometry-orders { left: 48px; }
.geometry-sales { top: 24px; left: 218px; background: #fff0cf; }
.geometry-card span { font-size: 12px; }
.geometry-card i { display: block; height: 4px; margin-top: 10px; background: #e7cda7; width: 82%; }
.geometry-card i + i { width: 60%; }
.geometry-card b { display: block; margin-top: 12px; font-size: 11px; font-weight: 400; color: var(--green); }
.geometry-cube { position: absolute; width: 36px; height: 36px; top: 4px; right: 38px; background: #ff9b19; transform: rotate(30deg) skewY(-10deg); box-shadow: 10px 10px 0 #ffe5b3; }
.login-footer { padding: 20px; color: #a09a91; font-size: 11px; text-align: center; z-index: 1; }
.login-screen::before { content: ''; position: absolute; width: 1100px; height: 450px; right: -260px; bottom: -180px; border: 1px solid #e9e5e0; background: #eeeae580; transform: rotate(-20deg); }
.login-screen::after { content: ''; position: absolute; width: 650px; height: 240px; right: -200px; top: 100px; border: 1px solid #e9e5e0; transform: rotate(-20deg); }
@media (max-width: 1100px) {
  .login-layout { gap: 40px; grid-template-columns: 380px minmax(0, 1fr); }
  .login-intro h2 { font-size: 28px; }
  .geometry-platform { width: 300px; }
  .geometry-orders { left: 0; }
  .geometry-sales { left: 155px; }
  .geometry-cube { display: none; }
}
@media (max-width: 900px) {
  .login-layout { width: min(400px, calc(100% - 40px)); grid-template-columns: 1fr; padding: 30px 0; }
  .login-intro { display: none; }
  .app-shell { grid-template-columns: 176px minmax(0, 1fr); }
  .sidebar { width: 176px; }
  .sidebar .brand div { display: block; }
  .work-grid, .reward-dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .console-top { padding: 0 14px; gap: 12px; }
  .workbench-logo strong { font-size: 15px; letter-spacing: 0; }
  .console-user-menu summary { gap: 8px; padding-left: 6px; }
  .console-account-name { max-width: 64px; font-size: 11px; }
  .console-logout { font-size: 11px; }
  .console-modules { padding: 0 8px; }
  .console-module { min-width: 0; flex: 1; padding: 0 10px; font-size: 12px; }
  .app-shell { display: block; padding-top: 100px; padding-bottom: 0; }
  .sidebar { position: sticky; top: 100px; bottom: auto; width: 100%; height: auto; padding: 6px 8px; z-index: 20; background: white; border-top: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand, .sidebar .brand-block, .sidebar-status { display: none; }
  .sidebar nav { display: flex; height: 36px; gap: 4px; overflow-x: auto; }
  .sidebar .nav-item, .sidebar .nav-item:not(.active) { display: flex; flex: 0 0 auto; width: auto; min-height: 32px; min-width: auto; padding: 0 10px; color: #756e64; font-size: 12px; }
  .sidebar .nav-item span { display: none; }
  .sidebar .nav-item.active, .sidebar .nav-item:hover { color: var(--green); background: #fff2df; box-shadow: none; }
  .app-shell > main, .app-shell > .main { padding: 16px; }
  .topbar { min-height: 74px; padding: 16px; margin: -16px -16px 16px; gap: 12px; }
  .topbar h1 { font-size: 18px; }
  .topbar p { display: none; }
  .top-actions { gap: 6px; }
  .top-actions .secondary { display: inline-block; }
  .top-actions .button { padding: 0 8px; font-size: 11px; }
  .metrics, .metric-grid, .bi-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 14px; min-height: 92px; }
  .metric-value { font-size: 24px; }
  .metric:last-child { grid-column: 1 / -1; }
  .section-band { padding: 16px; }
  .status-row { grid-template-columns: 80px 64px minmax(0, 1fr); gap: 8px; }
  .integration-actions { align-items: flex-start; flex-wrap: wrap; }
  #workload-filter { align-items: stretch; }
  #workload-filter label { width: 100%; }
  .work-title, .work-meta { overflow-wrap: anywhere; }
  .work-actions { flex-wrap: wrap; }
  .login-top { height: 64px; padding: 0 20px; gap: 14px; }
  .login-company { display: none; }
  .login-panel { padding: 28px 24px; }
  .login-heading h1 { font-size: 20px; }
  .login-layout { margin: auto; }
  .dialog, .dialog.wide-dialog, .detail-dialog { width: calc(100vw - 24px); height: auto; max-height: calc(100dvh - 24px); max-width: calc(100vw - 24px); border-radius: 2px; }
}

/* Balanced console: orange, gold, slate blue and warm neutral surfaces. */
.workbench-chrome, .app-shell {
  --ink: #38322c;
  --muted: #7a7369;
  --line: #e6e1da;
  --green: #99520b;
  --green-dark: #7e4309;
  --green-soft: #fff2df;
  --blue: #526d89;
  --blue-soft: #eef3f8;
}
.console-top { background: #302a23; box-shadow: 0 2px 8px #302a2314; }
.console-top .console-logo-mark { background: #ffc557; border-radius: 5px; }
.console-top .workbench-logo strong { font-size: 17px; font-weight: 600; letter-spacing: .5px; }
.console-avatar { background: #f6dfba; color: #68471f; }
.console-logout { padding: 0 10px; border-radius: 4px; }
.console-logout:hover { background: #ffffff0d; }
.console-modules { padding: 0 20px; border-bottom-color: #e6e1da; box-shadow: none; }
.console-module { min-width: 140px; color: #746c61; font-weight: 500; }
.console-module.active { background: #fff2df; color: #99520b; border-bottom-color: var(--brand); }
.app-shell { background: #f6f4f0; font-size: 13px; }
.app-shell .sidebar { background: linear-gradient(180deg, #faf6ef, #eee6d9); border-right: 1px solid #e3d8c8; color: #534738; }
.app-shell .sidebar .brand, .app-shell .sidebar .brand-block { padding-top: 4px; padding-bottom: 26px; }
.app-shell .sidebar .brand-mark { background: #ffc557; color: #302a23; border-radius: 5px; }
.app-shell .sidebar .brand strong, .app-shell .sidebar .brand-block strong { color: #43392c; font-size: 14px; font-weight: 600; }
.app-shell .sidebar .brand div > span, .app-shell .sidebar .brand-block small { color: #847869; }
.app-shell .sidebar nav { gap: 5px; }
.app-shell .sidebar .nav-item { min-height: 40px; border-radius: 6px; color: #6f6353; gap: 10px; font-size: 13px; }
.app-shell .sidebar .nav-item:hover { background: #e7e0d7; color: #99520b; }
.app-shell .sidebar .nav-item.active { background: var(--brand); color: var(--brand-ink); font-weight: 500; box-shadow: inset 3px 0 #ffc557, 0 3px 8px #99520b16; }
.app-shell .sidebar .nav-item svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.app-shell .sidebar .nav-item span { opacity: .8; }
.app-shell .sidebar-status { margin-top: auto; color: #847869; border-color: #dcd6cd; line-height: 1.8; }
.app-shell > main, .app-shell > .main { padding: 24px; }
.app-shell .topbar { margin: -24px -24px 24px; padding: 20px 24px; min-height: 88px; background: #fff; border-bottom: 1px solid #eae6e1; }
.app-shell .topbar h1 { color: #3c3329; font-size: 22px; font-weight: 600; margin-bottom: 5px; }
.app-shell .topbar p { color: #837c73; }
.app-shell .button, .app-shell .mini-button { border-radius: 5px; min-height: 32px; font-weight: 500; }
.app-shell .button.secondary { border-color: #d8d2cb; color: #5e5140; background: #fff; }
.app-shell .button.secondary:hover { border-color: #c4b7a6; color: #5e503e; background: #fbfaf8; }
.app-shell input, .app-shell select, .app-shell textarea { border-radius: 5px; border-color: #e0dad3; }
.app-shell .metric-grid, .app-shell .metrics, .app-shell .bi-metrics { gap: 16px; background: transparent; border: 0; overflow: visible; }
.app-shell .bi-metrics > .metric:last-child { grid-column: auto; }
.app-shell .metric {
  position: relative; overflow: hidden; min-height: 120px; padding: 22px 24px;
  border: 1px solid #e7e2dc; border-radius: 8px;
  background: linear-gradient(120deg, #fff, #fdf5e9);
  box-shadow: 0 3px 12px #342c2210;
  --metric-accent: #a66520;
}
.app-shell .metric:nth-child(2) { background: linear-gradient(120deg, #fff, #edf3f8); border-color: #dce5ee; --metric-accent: #526d89; }
.app-shell .metric:nth-child(3) { background: linear-gradient(120deg, #fff9e8, #ffedc2); border-color: #f0dfb5; --metric-accent: #99520b; }
.app-shell .metric:nth-child(3) .metric-label { color: #84541d; }
.app-shell .metric:nth-child(4) { background: linear-gradient(120deg, #fff, #f8eee6); --metric-accent: #936c4d; }
.app-shell .metric:nth-child(5) { background: linear-gradient(120deg, #fff, #f3f0eb); --metric-accent: #716252; }

.app-shell .metric-label { color: #72685c; font-size: 12px; font-weight: 500; }
.app-shell .metric-label::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 7px 1px 0; border-radius: 50%; background: var(--metric-accent); opacity: .65; }
.app-shell .metric-value { color: var(--metric-accent); font-size: 30px; font-weight: 500; letter-spacing: -.5px; }
.app-shell .metric-note { color: #897f73; }
.app-shell .section-band, .app-shell .queue, .app-shell .data-section, .app-shell .settings-section,
.app-shell .data-band, .app-shell .side-band, .app-shell .inventory-panel,
.app-shell .settings-card, .app-shell .catalog-section, .app-shell .reward-chart, .app-shell .data-table-wrap {
  border-color: #e8e4de; border-radius: 8px; box-shadow: 0 3px 12px #2f281f08;
}
.app-shell .section-band { margin-top: 22px; padding: 24px; }
.app-shell .section-heading { margin-bottom: 18px; }
.app-shell .section-heading h2, .app-shell .section-head h2 { color: #443a2d; font-size: 15px; font-weight: 600; }
.app-shell .section-band h3 { color: #5e513f; margin: 24px 0 12px; font-size: 13px; }
.app-shell #workload-filter { padding: 14px 16px; background: #f7f6f4; border: 1px solid #edeae6; border-radius: 6px; gap: 12px; }
.app-shell #workload-filter label { color: #756b5d; font-size: 12px; gap: 7px; }
.app-shell #workload-summary { color: #615442; background: #f4f1ed; border-left: 2px solid #c4b7a7; padding: 10px 12px; font-size: 12px; margin: 16px 0 0; }
.app-shell .workload-chart { gap: 12px; padding: 12px 8px 18px; border-bottom-color: #eeebe6; background: repeating-linear-gradient(to top, transparent 0, transparent 44px, #f3f0ed 44px, #f3f0ed 45px) left 8px top 32px / 100% 180px no-repeat; }
.app-shell .workload-column { flex: 1 0 72px; --bar-top: #ffb747; --bar-bottom: #99520b; }
.app-shell .workload-column:nth-child(3n+2) { --bar-top: #96b0c8; --bar-bottom: #526d89; }
.app-shell .workload-column:nth-child(3n) { --bar-top: #ffd889; --bar-bottom: #c89334; }
.app-shell .workload-count { color: #544838; font-weight: 600; font-size: 12px; }
.app-shell .workload-track { width: 34px; height: 160px; }
.app-shell .workload-bar { background: linear-gradient(180deg, var(--bar-top), var(--bar-bottom)); border-radius: 4px 4px 0 0; }
.app-shell .workload-label { color: #776c5d; font-size: 11px; }
.app-shell .department-chart .workload-column { --bar-top: #ffc557; --bar-bottom: #bb842c; }
.app-shell .department-chart .workload-column:nth-child(2n) { --bar-top: #a6b6c7; --bar-bottom: #647b96; }
.app-shell .table-wrap { border-radius: 4px; border: 1px solid #e8e4de; }
.app-shell th { background: #f5f3f0; color: #736758; font-size: 12px; font-weight: 500; border-bottom-color: #e8e4df; }
.app-shell td { color: #594e40; border-bottom-color: #eeebe6; }
.app-shell tbody tr:hover { background: #faf8f6; }
.app-shell .tag, .app-shell .status-pill, .app-shell .inventory-badge, .app-shell .count-badge { border-radius: 4px; }
.app-shell .bi-metric { border-radius: 8px; background: linear-gradient(120deg, #fff, #f6f4f1); border-color: #e7e2dc; }
.app-shell .bi-metric strong { color: #99520b; font-weight: 600; }
.app-shell .bi-metric:nth-child(2n) { background: linear-gradient(120deg, #fff, #edf3f8); border-color: #dce5ee; }
.app-shell .bi-metric:nth-child(2n) strong { color: #526d89; }
.app-shell .bi-bar-track { background: #faf9f7; border-bottom-color: #e8e3dc; }
.app-shell .bi-bar-track i, .app-shell .reward-bar-track i { background: linear-gradient(180deg, #ffb747, #99520b); }
.app-shell .tone-blue .bi-bar-track i, .app-shell .tone-blue .reward-bar-track i { background: linear-gradient(180deg, #96b0c8, #526d89); }
.app-shell .tone-amber .bi-bar-track i, .app-shell .tone-amber .reward-bar-track i { background: linear-gradient(180deg, #ffd889, #c89334); }
.app-shell .quick-action button { border-radius: 6px; color: #645542; border-color: #e6e1da; }
@media (max-width: 1100px) {
  .app-shell .metrics { gap: 10px; }
  .app-shell .metrics .metric { padding: 18px 14px; }
  .app-shell .metrics .metric-value { font-size: 25px; }
}
@media (max-width: 640px) {
  .console-top .workbench-logo strong { font-size: 15px; }
  .console-logout { padding: 0; }
  .console-module { min-width: 0; }
  .app-shell > main, .app-shell > .main { padding: 18px 16px; }
  .app-shell .sidebar { background: #fff; border-color: #e6e1da; }
  .app-shell .sidebar nav { height: 38px; gap: 4px; }
  .app-shell .sidebar .nav-item { min-height: 34px; color: #796e60; padding: 0 10px; }
  .app-shell .sidebar .nav-item.active { background: #efeae4; color: #574a3a; box-shadow: none; }
  .app-shell .sidebar .nav-item:hover { background: #f4f1ed; color: #574a3a; }
  .app-shell .sidebar .nav-item svg { display: none; }
  .app-shell .topbar { min-height: 64px; padding: 16px; margin: -18px -16px 18px; }
  .app-shell .topbar h1 { font-size: 20px; }
  .app-shell .metric-grid, .app-shell .metrics { gap: 10px; }
  .app-shell .metric, .app-shell .metrics .metric { padding: 16px; min-height: 94px; border-width: 1px; }
  .app-shell .metric-value { font-size: 26px; }
  .app-shell .section-band { padding: 16px; margin-top: 18px; }
  .app-shell #workload-filter { padding: 12px; }
}

/* Brand actions use dark text to retain contrast on the company's orange.
   Legacy --green names remain aliases used by the original module styles. */
.button.primary, .mini-button.primary {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
}
.button.primary:hover, .mini-button.primary:hover {
  background: var(--brand-hover); border-color: var(--brand-hover); color: var(--brand-ink);
}
.segmented button.active, .tab-button.active, .catalog-module-card.active > span {
  background: var(--brand); border-color: var(--brand); color: var(--brand-ink);
}
input, select, textarea, progress { accent-color: var(--brand-hover); }
input:focus, select:focus, textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand-hover); box-shadow: 0 0 0 2px #ff9b191a;
}
/* Success stays distinct from orange brand actions and warning states. */
.tag.good, .status-pill.good, .audit-pass, .status-ready, .status-approved,
.confidence.high, .binding-status.bound { color: var(--success); background: var(--success-soft); }
.batch-upload-status.ready, .batch-upload-status.saved { color: var(--success); }
.submit-complete { border-left-color: var(--success); background: var(--success-soft); color: var(--success); }

/* Intake management is shared by the text and receipt queues. */
.intake-list-controls,.intake-bulk-bar,.intake-review-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.intake-list-controls{margin:20px 0 16px}.intake-list-controls label{display:flex;align-items:center;gap:10px;font-size:13px}
.intake-list-controls select,.intake-list-controls input{height:34px;padding:0 10px;border:1px solid var(--line);background:#fff;max-width:100%;min-width:0;font-size:13px}.intake-list-controls>input{width:280px}
.intake-bulk-bar{min-height:52px;padding:10px 16px;margin:0 0 20px;border:1px solid var(--line);background:#faf8f5;font-size:12px;color:var(--muted)}
.intake-bulk-bar label{display:flex!important;align-items:center;gap:8px;margin:0;cursor:pointer;font-size:12px;color:var(--ink)}
.intake-bulk-bar input[type=checkbox],input.intake-select{width:16px!important;height:16px!important;min-height:16px;flex:0 0 16px;margin:0;padding:0;accent-color:#ff9b19}
.intake-check-column{width:44px}.intake-review-actions{justify-content:flex-end}
.intake-delete-dialog{width:min(480px,calc(100vw - 32px));height:auto;max-height:90dvh;margin:auto;padding:0;border:1px solid var(--line);border-radius:0;background:#fff;color:var(--ink)}
.intake-delete-dialog::backdrop{background:#302a2366}
.intake-delete-dialog header,.intake-delete-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px}
.intake-delete-dialog header{border-bottom:1px solid var(--line)}.intake-delete-dialog h2{margin:0;font-size:17px}.intake-delete-dialog footer{justify-content:flex-end;border-top:1px solid var(--line)}
.intake-delete-body{padding:16px 24px;font-size:14px;line-height:1.8}.intake-delete-hint{color:var(--muted);font-size:12px}.intake-delete-error{color:#b34535;font-size:13px;overflow-wrap:anywhere}.intake-delete-error:empty{display:none}
@media(max-width:600px){.intake-bulk-bar{gap:10px;padding:12px}.intake-list-controls>input{width:100%}.auto-order-row .auto-order-content{flex-basis:calc(100% - 40px)}.intake-review-actions{gap:8px}}
.intake-delete-dialog{height:fit-content;min-height:0}

