/* Approved DBJ visual language. Existing business behavior remains in each page. */
.dbj-ui {
  background: linear-gradient(120deg, var(--brand-mist) 0%, var(--surface) 38%, #f8f1ec 72%, #f2e5dc 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
.dbj-ui ::selection { background: var(--brand-mist); color: var(--brand-ink); }
.dbj-ui :is(input, textarea) { caret-color: var(--brand-ink); }
.dbj-ui [hidden] { display: none !important; }
.dbj-ui .app-nav {
  min-height: 72px; height: auto; background: rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.dbj-ui .app-nav-inner {
  width: min(1200px, calc(100% - 64px)); min-height: 72px; height: auto;
  padding: 10px 0; gap: 36px;
}
.dbj-ui .app-nav-brand { gap: 12px; font-size: 15px; line-height: 20px; }
.dbj-ui .app-nav-brand img { width: 40px; height: 40px; object-fit: contain; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.dbj-ui .app-nav-tabs { gap: 8px; overflow: visible; }
.dbj-ui .app-nav-tabs a {
  min-height: 44px; padding: 0 16px; font-size: 14px; line-height: 20px; border-radius: 99px;
}
.dbj-ui .app-nav-status { gap: 12px; font-size: 12px; line-height: 16px; }
.dbj-ui :is(button, .button, .mapping-button, .mapping-remove) {
  min-height: 44px; border: 0; border-radius: 99px; font-size: 14px; font-weight: 600;
  line-height: 20px; padding: 12px 18px; box-shadow: inset 0 0 0 1px var(--border-strong, var(--border));
  transition: color 150ms, background-color 150ms; transform: none;
}
.dbj-ui :is(button, .button):where(:not(.wish-heart, .wish-note-toggle, .wish-important, .more-button, .multi-trigger, .dbj-wishlist .wish-tabs button)):hover:not(:disabled) { background: var(--brand-mist); transform: none; }
.dbj-ui :is(button.primary, .button.primary), .dbj-ui #downloadBtn {
  background: var(--brand-ink); color: var(--card); box-shadow: none;
}
.dbj-ui :is(button.primary, .button.primary):hover:not(:disabled), .dbj-ui #downloadBtn:hover { background: var(--brand-ink-hover); }
.dbj-ui button:disabled {
  opacity: 1; color: var(--text-secondary); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border); cursor: not-allowed;
}
.dbj-ui :is(input:not([type=checkbox]):not([type=file]), select, textarea) {
  min-height: 44px; border-radius: 12px; font-size: 16px; line-height: 24px;
  padding: 9px 12px; box-shadow: none;
}
.dbj-ui :is(a, button, input, select, textarea, summary, [role=button], .table-wrap, .table-scroll, .feedback-rail):focus-visible {
  outline: 1px solid var(--brand-ink); outline-offset: 1px; box-shadow: none;
}
.dbj-ui :is(.table-wrap, .table-scroll, .feedback-rail) {
  max-width: 100%; scrollbar-width: auto;
  scrollbar-color: var(--control-border, var(--series-d)) var(--surface);
}
.dbj-ui :is(.table-wrap, .table-scroll, .feedback-rail)::-webkit-scrollbar { display: block; height: 10px; width: 10px; }
.dbj-ui :is(.table-wrap, .table-scroll, .feedback-rail)::-webkit-scrollbar-track { background: var(--surface); }
.dbj-ui :is(.table-wrap, .table-scroll, .feedback-rail)::-webkit-scrollbar-thumb {
  background: var(--control-border, var(--series-d)); border: 2px solid var(--surface); border-radius: 99px;
}
.dbj-ui :is(table, .kpis, .dashboard-kpis, .stats) { font-variant-numeric: tabular-nums; }
.dbj-ui :is(.panel, .card, .kpis, .upload-panel) { box-shadow: none; }
.dbj-ui :is(.panel, .card) { border-radius: 20px; }
.dbj-ui :is(.section-kicker, .eyebrow) { display: none; }
.dbj-ui :is(.hero-inline-mascot, .result-mascot) { display: none; }
.dbj-ui .dbj-scroll-note { margin: 8px 0 12px; color: var(--text-secondary); font-size: 12px; line-height: 20px; }
.dbj-ui .candidate-notice { color: var(--text-secondary); font-size: 12px; line-height: 20px; margin: 0 0 20px; }

/* Shared centered page width; complete tables scroll inside their own regions. */
.dbj-sales .wrap { width: min(1200px, calc(100% - 64px)); padding: 36px 0 64px; }
.dbj-sales .hero-shell {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px;
  min-height: 0; padding: 0; margin-bottom: 48px; align-items: center;
}
.dbj-sales .hero { max-width: 600px; padding: 0; }
.dbj-sales .hero h1 {
  margin: 0 0 18px; font-family: inherit; font-size: 40px; font-weight: 650;
  line-height: 1.3; letter-spacing: -.025em;
}
.dbj-sales .hero-lead { max-width: 60ch; font-size: 16px; line-height: 1.8; }
.dbj-sales .hero-points { gap: 8px 18px; margin-top: 20px; font-size: 14px; }
.dbj-sales .upload-panel {
  padding: 24px; border-radius: 24px; background: rgba(255, 255, 255, .6); border: 0;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.dbj-sales .upload-brand { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 0 0 20px; }
.dbj-sales .upload-brand__logo { display: none; }
.dbj-sales .panel-title { font-size: 20px; line-height: 28px; font-weight: 650; }
.dbj-sales .panel-description { margin: 4px 0 0; font-size: 14px; line-height: 22px; }
.dbj-sales .panel-meta { font-size: 12px; line-height: 20px; }
.dbj-sales #dropzone {
  min-height: 260px; padding: 28px 20px; border-radius: 16px; box-shadow: none;
  transform: none; transition: background-color 150ms, border-color 150ms;
}
.dbj-sales #dropzone:is(:hover, .dragover) { transform: none; box-shadow: none; background: var(--review-surface); }
.dbj-sales #dropzone:focus-visible { outline: 1px solid var(--brand-ink); outline-offset: 1px; box-shadow: none; }
.dbj-sales .upload-icon { width: 48px; height: 48px; border-radius: 12px; box-shadow: none; margin-bottom: 16px; }
.dbj-sales #dropzone .big { font-size: 18px; line-height: 28px; font-weight: 600; }
.dbj-sales #dropzone .hint { font-size: 14px; line-height: 22px; }
.dbj-sales .mascot-action { min-height: 44px; font-size: 14px; padding: 6px 16px 6px 6px; box-shadow: none; }
.dbj-sales .mascot-action__portrait { width: 32px; height: 32px; }
.dbj-sales #dropzone :is(.mascot-action, .mascot-action__portrait img, .mascot-action__arrow) { transform: none !important; box-shadow: none; }
.dbj-sales .upload-foot { margin-top: 16px; font-size: 12px; line-height: 20px; gap: 12px; }
.dbj-sales .chip { padding: 2px 6px; border: 0; font-size: 12px; line-height: 16px; font-weight: 500; }
.dbj-sales #error { font-size: 14px; line-height: 24px; }
.dbj-sales .recon-card { font-size: 14px; line-height: 24px; background: var(--review-surface); }
.dbj-sales .alert { background: var(--review-surface); box-shadow: none; }
.dbj-sales .alert::after { display: none; }
.dbj-sales .alert-label { display: none; }
.dbj-sales .result-section { margin-bottom: 40px; }
.dbj-sales .section-heading { margin-bottom: 16px; }
.dbj-sales .section-heading h2 { font-size: 21px; line-height: 30px; font-weight: 650; }
.dbj-sales .section-heading p { font-size: 14px; line-height: 24px; }
.dbj-sales .kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); border-radius: 20px; background: rgba(255, 255, 255, .92); }
.dbj-sales .kpi:nth-child(n) { grid-column: auto; min-height: 150px; padding: 24px 20px; border-bottom: 0; border-right: 1px solid var(--border); }
.dbj-sales .kpi:last-child { border-right: 0; }
.dbj-sales .kpi::after { display: none; }
.dbj-sales .kpi .label { font-size: 14px; font-weight: 500; }
.dbj-sales .kpi .value { font-size: 30px; line-height: 38px; margin-top: 8px; letter-spacing: -.02em; font-weight: 650; }
.dbj-sales .kpi .sub { position: static; margin-top: 8px; font-size: 12px; line-height: 20px; }
.dbj-sales .feedback-shell { grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; margin-top: 16px; }
.dbj-sales .feedback-card { background: var(--result-mist); border: 0; padding: 16px; }
.dbj-sales .feedback-card b { font-size: 14px; line-height: 22px; }
.dbj-sales .feedback-card span { font-size: 14px; line-height: 22px; }
.dbj-sales .rail-button { width: 44px; height: 44px; padding: 0; }
.dbj-sales .charts { gap: 20px; }
.dbj-sales .card { padding: 24px; background: rgba(255, 255, 255, .92); }
.dbj-sales .chart-card h2 { font-size: 18px; line-height: 28px; }
.dbj-sales :is(.chart-note, .table-note) { font-size: 14px; line-height: 24px; }
.dbj-sales .table-scroll { padding: 0; border: 1px solid var(--border); }
.dbj-sales .table-scroll :is(th, td) { font-size: 14px; line-height: 22px; padding: 10px 12px; }
.dbj-sales .download-card { padding: 24px; background: var(--brand-mist); color: var(--brand-ink); border-radius: 20px; box-shadow: none; }
.dbj-sales .download-card h2 { font-size: 20px; line-height: 28px; }
.dbj-sales .download-icon { background: var(--card); color: var(--brand-ink); }
.dbj-sales #downloadName { color: var(--text-secondary); font-size: 14px; line-height: 24px; }
.dbj-sales #downloadBtn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; }
.dbj-sales .app-footer { font-size: 12px; line-height: 20px; }

/* OM: retain all data columns and eligibility feedback; change only presentation. */
.dbj-om main { width: min(1200px, calc(100% - 64px)); max-width: none; padding: 32px 0 64px; }
.dbj-om .workspace-heading { grid-template-columns: minmax(180px, 1fr) minmax(360px, 600px); gap: 32px; margin-bottom: 28px; }
.dbj-om .workspace-heading h1 { font-size: 40px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin: 0 0 8px; }
.dbj-om .workspace-heading p { font-size: 14px; line-height: 24px; }
.dbj-om .workspace-heading button.om-dropzone {
  min-height: 88px; border: 1px dashed var(--control-border); padding: 16px; border-radius: 20px; gap: 16px; box-shadow: none;
  background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.dbj-om .workspace-heading .om-upload-copy strong { font-size: 16px; line-height: 24px; }
.dbj-om .workspace-heading .om-upload-copy small { font-size: 14px; line-height: 22px; }
.dbj-om .panel { padding: 24px; margin: 24px 0; border: 1px solid var(--border); background: rgba(255, 255, 255, .92); }
.dbj-om #all-companies {
  background: rgba(255, 255, 255, .6); border: 0;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.dbj-om :is(#om-dashboard, #preview-panel, .history-panel) h2 { font-size: 20px; line-height: 28px; font-weight: 650; }
.dbj-om #preview-panel h2 { margin-bottom: 0; }
.dbj-om #preview-count { font-size: 12px; font-weight: 500; line-height: 20px; margin-left: 8px; }
.dbj-om #latest-upload { font-size: 12px; line-height: 20px; margin-top: 8px; }
.dbj-om .dashboard-kpis { margin: 24px 0 18px; gap: 24px; }
.dbj-om .dashboard-kpi > span { font-size: 14px; line-height: 22px; }
.dbj-om .dashboard-kpi > strong { font-size: 34px; font-weight: 650; line-height: 42px; margin: 4px 0; }
.dbj-om .dashboard-kpi > small { font-size: 12px; line-height: 20px; }
.dbj-om .payment-legend { font-size: 12px; line-height: 20px; margin: 8px 0 16px; }
.dbj-om .dashboard-live { padding-top: 20px; margin-top: 20px; }
.dbj-om .action-row { gap: 16px 24px; }
.dbj-om .dashboard-live .stats { gap: 16px; }
.dbj-om .dashboard-live .stats span { font-size: 14px; }
.dbj-om .dashboard-live .stats strong { font-size: 20px; font-weight: 650; }
.dbj-om #export-blocker { margin: 12px 0; }
.dbj-om .usage-help { font-size: 14px; }
.dbj-om summary { min-height: 44px; padding: 10px 0; font-size: 14px; line-height: 24px; }
.dbj-om .usage-help p { font-size: 14px; line-height: 24px; }
.dbj-om .table-wrap { border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .92); }
.dbj-om :is(th, td) { padding: 12px 16px; font-size: 14px; line-height: 24px; }
.dbj-om th { font-size: 13px; font-weight: 600; }
.dbj-om .preview-table { min-width: 1150px; }
.dbj-om .preview-table td:first-child { font-weight: 500; min-width: 240px; }
.dbj-om .om-status { margin-left: 8px; padding: 2px 6px; border-radius: 99px; font-size: 12px; font-weight: 500; line-height: 16px; background: var(--surface); vertical-align: middle; }
.dbj-om .om-status-check { width: 12px; height: 12px; font-size: 10px; flex: none; }
.dbj-om .preview-state small { font-size: 12px; line-height: 20px; }
.dbj-om .preview-state strong { font-weight: 600; font-size: 14px; line-height: 24px; }
.dbj-om .upload-stats { min-width: 1030px; }
.dbj-om .history-panel .toolbar { margin-bottom: 16px; }
.dbj-om #all-companies > summary { font-size: 20px; font-weight: 650; line-height: 28px; padding: 0; }
.dbj-om #all-count { font-size: 12px; font-weight: 500; line-height: 20px; margin-left: 8px; }
.dbj-om #all-companies[open] > summary { margin-bottom: 20px; }
.dbj-om #all-companies table { min-width: 1380px; }
.dbj-om .check-target { border-radius: 12px; }
.dbj-om #editor { scroll-margin-top: 100px; }
.dbj-om #editor h2 { font-size: 21px; line-height: 30px; }
.dbj-om #editor label { font-size: 14px; line-height: 24px; }
.dbj-om #editor input { margin-top: 6px; }

@media (max-width: 1080px) {
  .dbj-ui .app-nav-inner { gap: 20px; }
  .dbj-ui .app-nav-meta { display: none; }
  .dbj-sales .hero-shell { grid-template-columns: 1fr 1fr; gap: 32px; }
  .dbj-sales .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dbj-sales .kpi:nth-child(n) { border-bottom: 1px solid var(--border); }
  .dbj-om .workspace-heading { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 760px) {
  .dbj-ui .app-nav { position: static; }
  .dbj-ui .app-nav-inner { width: calc(100% - 32px); flex-wrap: wrap; padding: 12px 0; gap: 12px; }
  .dbj-ui .app-nav-brand { flex: 1; }
  .dbj-ui .app-nav-brand span { display: inline; }
  .dbj-ui .app-nav-status { display: flex; flex: none; }
  .dbj-ui .app-nav-status .service-state { font-size: 12px; }
  .dbj-ui .app-nav-tabs { order: 3; flex-basis: 100%; flex-wrap: wrap; gap: 4px 8px; padding: 0; overflow: visible; }
  .dbj-ui .app-nav-tabs a { padding: 0 12px; font-size: 14px; }
  .dbj-sales .wrap { width: calc(100% - 32px); padding: 28px 0 40px; }
  .dbj-sales .hero-shell { grid-template-columns: 1fr; gap: 24px; margin-bottom: 36px; }
  .dbj-sales .hero h1 { font-size: 28px; line-height: 1.4; margin-bottom: 12px; }
  .dbj-sales .hero-points { gap: 8px; margin-top: 16px; }
  .dbj-sales .upload-panel { padding: 20px 16px; border-radius: 20px; }
  .dbj-sales .upload-brand { grid-template-columns: 1fr; gap: 8px; }
  .dbj-sales .panel-meta { grid-column: auto; margin: 0; }
  .dbj-sales #dropzone { min-height: 260px; padding: 24px 16px; }
  .dbj-sales .upload-foot { flex-wrap: wrap; gap: 8px 12px; }
  .dbj-sales .kpis { grid-template-columns: 1fr; }
  .dbj-sales .kpi:nth-child(n) { min-height: 104px; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; border-right: 0; border-bottom: 1px solid var(--border); }
  .dbj-sales .kpi:last-child { border-bottom: 0; }
  .dbj-sales .kpi .value { margin: 0; font-size: 26px; line-height: 34px; }
  .dbj-sales .kpi .sub { grid-column: 1 / -1; margin: 0; }
  .dbj-sales .feedback-shell { grid-template-columns: 1fr; }
  .dbj-sales .rail-button { display: none; }
  .dbj-sales .feedback-rail { grid-auto-columns: minmax(240px, 1fr); }
  .dbj-sales .charts { grid-template-columns: 1fr; }
  .dbj-sales .card { padding: 20px 16px; }
  .dbj-sales .table-scroll { padding: 0; }
  .dbj-sales .download-card { padding: 20px; }
  .dbj-om main { width: calc(100% - 32px); padding: 28px 0 40px; }
  .dbj-om .workspace-heading h1 { font-size: 28px; line-height: 1.4; }
  .dbj-om .workspace-heading button.om-dropzone { gap: 12px; padding: 16px; }
  .dbj-om .workspace-heading .mascot-action { display: none; }
  .dbj-om .panel { padding: 20px 16px; margin: 24px 0; }
  .dbj-om .dashboard-kpis { grid-template-columns: 1fr 1fr; gap: 20px 16px; margin: 20px 0; }
  .dbj-om .dashboard-kpi > strong { font-size: 30px; line-height: 38px; }
  .dbj-om .toolbar { gap: 12px; }
  .dbj-om .action-row { align-items: flex-start; }
  .dbj-om #preview-count { display: block; margin: 4px 0 0; }
  .dbj-om .preview-table td:first-child { min-width: 230px; position: static; }
  .dbj-om .preview-table th:first-child { position: static; }
  .dbj-om #search { width: 100%; }
  .dbj-om #editor .grid { grid-template-columns: 1fr; }
  .dbj-om #editor { scroll-margin-top: 20px; }
}
@media (max-width: 540px) {
  .dbj-ui .app-nav-tabs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 8px; }
  .dbj-ui .app-nav-tabs a { justify-content: center; text-align: center; padding: 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dbj-ui *, .dbj-ui *::before, .dbj-ui *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
@supports not ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .dbj-ui :is(.app-nav, .upload-panel, .panel, .card, .kpis, #all-companies),
  .dbj-om .workspace-heading button.om-dropzone { background: var(--card); }
}
@media (prefers-reduced-transparency: reduce) {
  .dbj-ui :is(.app-nav, .upload-panel, .panel, .card, .kpis, #all-companies),
  .dbj-om .workspace-heading button.om-dropzone {
    background: var(--card); -webkit-backdrop-filter: none; backdrop-filter: none;
  }
}


/* Confirmed compact controls and selected/focus separation. */
.dbj-ui .app-nav { border-bottom: 0; box-shadow: inset 0 -1px 0 rgba(255,255,255,.6); }
.dbj-ui .app-nav-tabs a[aria-current=page] { background: var(--brand-ink); color: var(--card); }
.dbj-ui .app-nav-tabs a:hover:not([aria-current=page]) { background: var(--brand-mist); }
.dbj-ui .app-nav a:focus-visible { outline: 0; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dbj-ui :is(button,.button,.mapping-button,.mapping-remove) { box-shadow: inset 0 0 0 1px var(--control-border,#778698); }
.dbj-ui :is(button.primary,.button.primary),.dbj-ui #downloadBtn { box-shadow: none; }
.dbj-ui :is(button,.button,.mapping-button,.mapping-remove):focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--brand-ink); }
.dbj-ui :is(button.primary,.button.primary):focus-visible,.dbj-ui #downloadBtn:focus-visible { outline: 0; box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dbj-ui :is(input:not([type=checkbox]):not([type=file]),select,textarea):focus-visible { outline: 0; border: 2px solid var(--brand-ink); padding: 8px 11px; box-shadow: none; }
.dbj-ui :is(button:disabled,.button[aria-disabled=true]) { background: var(--surface); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border); }
.dbj-sales #dropzone:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: -2px; box-shadow: none; }
.dbj-om button.om-dropzone:focus-visible { outline: 0; border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.dbj-ui :is(.mascot-action img,.mascot-action__portrait img) { object-fit: contain; border-radius: 0; padding: 0; background: transparent; box-shadow: none; }
.dbj-ui .mascot-action__portrait { border: 0; border-radius: 0; background: transparent; overflow: visible; }
.dbj-ui .check-target { position: relative; background: transparent; }
.dbj-ui .check-target:hover { background: transparent; }
.dbj-ui .check-target input { width: 18px; height: 18px; min-height: 18px; accent-color: var(--brand-ink); }
.dbj-ui .check-target input:focus-visible { outline: 0; box-shadow: none; }
.dbj-ui .check-target:has(input:focus-visible)::after { content: ''; position: absolute; width: 18px; height: 2px; bottom: 8px; background: var(--brand-ink); }
.dbj-om #all-companies tbody tr:has(input:checked) td { background: var(--brand-mist); }
.dbj-om :is(.preview-table th:first-child,.preview-table td:first-child,#all-companies th:nth-child(2),#all-companies td:nth-child(2)) { width: 300px; min-width: 240px; max-width: 300px; white-space: normal; overflow-wrap: anywhere; }
.dbj-om #all-companies .toolbar { gap: 12px; }
.dbj-om #all-companies #search { width: min(100%,460px); }
.dbj-om .pagination { gap: 12px; }
.dbj-om .pagination span { min-width: 0; font-size: 14px; line-height: 22px; }
@media(max-width:760px) {
 .dbj-om #all-companies :is(#search,#filter) { width: 100%; }
 .dbj-om .pagination span { flex: 1; text-align: center; }
}

/* Shared approved language for the three remaining workspaces. */
.dbj-ui {
  --brand-ink: #12233f; --brand-ink-hover: #1d3557; --brand-warm: #8d5537;
  --brand-mist: #eaf4ff; --surface: #f3f7fb; --card: #fff; --text-secondary: #5f6b7c;
  --border: #dce3ec; --control-border: #778698; --review-surface: #f8f1ec; --review-text: #70432d;
  min-height: 100vh; color: var(--brand-ink);
}
.dbj-ui :is(a,button,input,select,textarea,summary,.table-wrap,.table-scroll,.scroll,.category-wrap):focus-visible {
  outline: 2px solid var(--brand-ink); outline-offset: -2px; box-shadow: none;
}
.dbj-ui a:focus-visible { outline: 0; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dbj-ui :is(.scroll,.category-wrap) { max-width: 100%; scrollbar-color: var(--control-border) var(--surface); scrollbar-width: auto; }
.dbj-ui :is(.scroll,.category-wrap)::-webkit-scrollbar { height: 10px; width: 10px; }
.dbj-ui :is(.scroll,.category-wrap)::-webkit-scrollbar-track { background: var(--surface); }
.dbj-ui :is(.scroll,.category-wrap)::-webkit-scrollbar-thumb { background: var(--control-border); border: 2px solid var(--surface); border-radius: 99px; }
.dbj-ui :is(.scroll,.category-wrap) { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: rgba(255,255,255,.92); }
.dbj-ui :is(.scroll,.category-wrap) table { font-size: 14px; line-height: 24px; }
.dbj-ui :is(.scroll,.category-wrap) :is(th,td) { padding: 10px 12px; }
.dbj-ui .danger { color: var(--error,#b13d2d); box-shadow: inset 0 0 0 1px var(--error,#b13d2d); }
.dbj-ui :is(.wish-heart,.more-button,.sort-button) { min-width: 44px; min-height: 44px; box-shadow: none; background: transparent; border-radius: 12px; }
.dbj-ui .wish-heart { width: 44px; height: 44px; padding: 10px; color: #65748a; position: relative; }
.dbj-ui .wish-heart[aria-pressed=true] { color: #b42318; }
.dbj-ui .wish-heart:hover { background: transparent; }
.dbj-ui .wish-heart:disabled { background: transparent; box-shadow: none; opacity: .5; }
.dbj-ui .wish-heart:focus-visible { outline: 0; box-shadow: none; }
.dbj-ui .wish-heart:focus-visible::after { content: ''; position: absolute; bottom: 5px; left: 13px; width: 18px; height: 2px; background: var(--brand-ink); }
.dbj-ui .wish-note-toggle { background: transparent; color: var(--brand-ink); box-shadow: none; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.dbj-ui :is(.wish-note-toggle,.more-button):is(:hover,:active,:focus-visible) { color: var(--brand-ink-hover,#1d3557); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.dbj-ui :is(.wish-note-toggle,.more-button):focus-visible { outline: 0; }
.dbj-ui :is(.wish-status,.wish-note-preview) { font-size: 14px; line-height: 24px; }
.dbj-ui .wish-note button { min-height: 44px; }
.dbj-ui .wish-note textarea { font-size: 16px; min-height: 100px; }
.dbj-ui :is(.advanced-count,.new-icon) { font-size: 12px; line-height: 16px; min-height: 0; padding: 2px 6px; font-weight: 500; border-radius: 99px; }
.dbj-ui :is(.message,.edition-status) { font-size: 14px; line-height: 24px; }
.dbj-ui summary { min-height: 44px; font-size: 14px; line-height: 24px; padding: 10px 0; }
.dbj-ui input[aria-invalid=true] { border-color: var(--error,#b13d2d); }
.dbj-ui :is(.dbj-scroll-note,.candidate-scroll-note) { color: var(--text-secondary); font-size: 12px; line-height: 20px; margin: 8px 0 12px; }

.dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) main { width: min(1200px,calc(100% - 64px)); max-width: none; margin: auto; padding: 32px 0 64px; }
.dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) h1 { font-size: 40px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; margin: 0; }
.dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) h2 { font-size: 20px; line-height: 28px; font-weight: 650; }
.dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) .panel { padding: 24px; margin: 24px 0; border: 1px solid var(--border); background: rgba(255,255,255,.92); }

.dbj-forecast .workspace-heading { grid-template-columns: minmax(180px,1fr) minmax(360px,600px); gap: 32px; margin-bottom: 24px; }
.dbj-forecast button.om-dropzone { min-height: 88px; gap: 16px; padding: 16px; border: 1px dashed var(--control-border); border-radius: 20px; background: rgba(255,255,255,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.dbj-forecast button.om-dropzone:focus-visible { outline: 0; border-color: var(--brand-ink); box-shadow: inset 0 0 0 1px var(--brand-ink); }
.dbj-forecast .om-upload-copy strong { font-size: 16px; line-height: 24px; }
.dbj-forecast .om-upload-copy small { font-size: 14px; line-height: 22px; }
.dbj-forecast .mascot-action { font-size: 14px; }
.dbj-forecast .metric { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.92); }
.dbj-forecast .metric span { font-size: 14px; }
.dbj-forecast .metric strong { font-size: 30px; line-height: 38px; }
.dbj-forecast .progress-card { padding: 20px; border-radius: 20px; background: rgba(255,255,255,.92); }
.dbj-forecast :is(.card-heading,.card-amounts,.income-item span) { font-size: 14px; }
.dbj-forecast #monthlyReport > h2 small { font-size: 12px; font-weight: 500; line-height: 20px; }
.dbj-forecast #monthlyNhi { margin-top: 24px; }
.dbj-forecast #monthlyNhi h3 { font-size: 18px; line-height: 28px; margin: 0 0 12px; }
.dbj-forecast #monthlyNhi .formgroups { grid-template-columns: repeat(4,minmax(0,1fr)); grid-template-rows: auto; gap: 16px; }
.dbj-forecast #monthlyNhi label { font-size: 14px; line-height: 24px; }
.dbj-forecast .editor-toolbar { top: 72px; min-height: 60px; gap: 12px; background: rgba(255,255,255,.92); }
.dbj-forecast #settings { background: rgba(255,255,255,.6); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.dbj-forecast .inputrow > span { font-size: 14px; }
.dbj-forecast .rules { font-size: 14px; line-height: 24px; }
.dbj-forecast .scroll table { min-width: 760px; }
.dbj-forecast #monthlyReport .scroll table { min-width: 660px; }

.dbj-cphi .heading { align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.dbj-cphi .heading > div { margin-right: auto; }
.dbj-cphi .summary { gap: 20px; margin: 0 0 24px; }
.dbj-cphi .summary > div { padding: 20px; border-radius: 20px; background: rgba(255,255,255,.92); }
.dbj-cphi .summary > div > span { font-size: 14px; line-height: 22px; }
.dbj-cphi .summary strong { font-size: 30px; line-height: 38px; }
.dbj-cphi .movement-actions button { padding: 0; box-shadow: none; background: transparent; }
.dbj-cphi .movement-actions strong { font-size: 26px; }
.dbj-cphi .dash-panel { padding: 24px; border-radius: 20px; background: rgba(255,255,255,.92); }
.dbj-cphi .category-layout { grid-template-columns: minmax(0,2fr) minmax(240px,1fr); gap: 24px; }
.dbj-cphi .category-aside { padding-left: 24px; }
.dbj-cphi .new-zones-title { font-size: 14px; }
.dbj-cphi .category-panel > summary { padding: 0; margin-bottom: 16px; }
.dbj-cphi .category-wrap { border: 0; border-radius: 0; background: transparent; }
.dbj-cphi .category-table { font-size: 14px; }
.dbj-cphi .category-table :is(th,td) { padding: 8px 10px; }
.dbj-cphi .category-table th { font-size: 13px; }
.dbj-cphi .panel[aria-label="展商筛选"] { background: rgba(255,255,255,.6); border: 0; backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.dbj-cphi .viewbar { flex-wrap: wrap; gap: 12px; overflow: visible; white-space: normal; }
.dbj-cphi .viewbar .views { flex-wrap: wrap; gap: 8px; }
.dbj-cphi .viewbar .views button { padding: 12px 16px; min-height: 44px; border: 0; border-radius: 99px; font-size: 14px; box-shadow: none; }
.dbj-cphi .viewbar .views button[aria-selected=true] { background: var(--brand-ink); color: var(--card); }
.dbj-cphi .viewbar .views button:focus-visible { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dbj-cphi .filter-main { grid-template-columns: minmax(280px,2fr) minmax(160px,1fr) minmax(190px,1fr); gap: 16px; }
.dbj-cphi .filter-main[data-year="2025"] { grid-template-columns: minmax(280px,2fr) minmax(160px,1fr); }
.dbj-cphi label { font-size: 14px; font-weight: 500; line-height: 24px; }
.dbj-cphi { --cphi-dropdown-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%2312233f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.dbj-ui.dbj-cphi :is(.multi-trigger,select:not([multiple])) { border-radius: 99px; padding-right: 44px; background-image: var(--cphi-dropdown-chevron); background-repeat: no-repeat; background-size: 16px 16px; background-position: right 16px center; }
.dbj-cphi select:not([multiple]) { -webkit-appearance: none; appearance: none; }
.dbj-cphi .multi-trigger::after { content: none; }
.dbj-cphi .multi-trigger:hover:not(:disabled) { background-color: var(--brand-mist); }
.dbj-cphi .picker-button { min-height: 44px; font-size: 14px; border-radius: 12px; }
.dbj-cphi .reset { background: transparent; box-shadow: none; padding: 12px 0; }
.dbj-cphi .list-head { margin: 28px 0 12px; }
.dbj-cphi .table-wrap { background: rgba(255,255,255,.92); border-radius: 12px; }
.dbj-cphi #results table { font-size: 14px; line-height: 24px; }
.dbj-cphi #results :is(th,td) { padding: 12px; }
.dbj-cphi #results th { font-size: 13px; }
.dbj-cphi .bilingual-cell .primary { background: transparent; color: inherit; box-shadow: none; }
.dbj-cphi .sort-button { padding: 0; border-radius: 0; }
.dbj-cphi .more-button { padding: 0; }
.dbj-cphi .more-mobile-label { display: none; }
.dbj-cphi :is(.dash-panel p,.method) { font-size: 14px; line-height: 24px; }

.dbj-wishlist .page-head { margin-bottom: 20px; flex-wrap: wrap; }
.dbj-wishlist .page-head a { min-height: 44px; display: inline-flex; align-items: center; }
.dbj-wishlist .summary { font-size: 16px; line-height: 24px; }
.dbj-wishlist .wish-filters { margin: 24px 0; }
.dbj-wishlist .wish-tabs { display: inline-flex; width: min(100%,320px); gap: 4px; padding: 4px; border: 1px solid var(--border); border-radius: 99px; background: rgba(255,255,255,.8); }
.dbj-wishlist .wish-tabs button { flex: 1; border: 0; border-radius: 99px; min-height: 44px; padding: 10px 14px; box-shadow: none; white-space: nowrap; }
.dbj-wishlist .wish-tabs button[aria-selected=true] { background: var(--brand-mist); color: var(--brand-ink); }
.dbj-wishlist .wish-tabs button:hover:not([aria-selected=true]) { background: var(--surface); color: var(--brand-ink); }
.dbj-wishlist .wish-tabs button:focus-visible { box-shadow: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dbj-wishlist .cards { gap: 20px; }
.dbj-wishlist .wish-card { padding: 24px; border: 1px solid var(--border); border-radius: 20px; background: rgba(255,255,255,.92); }
.dbj-wishlist .wish-card.is-visited { border-left-width: 1px; border-color: var(--border); }
.dbj-wishlist .card-title { align-items: flex-start; gap: 12px; }
.dbj-wishlist .card-title h2 { font-size: 18px; line-height: 28px; padding-top: 8px; }
.dbj-wishlist .card-meta { font-size: 14px; line-height: 24px; margin: 12px 0; }
.dbj-wishlist .visit-label { gap: 12px; min-height: 44px; font-size: 14px; position: relative; }
.dbj-wishlist .visit-label input { width: 18px; height: 18px; min-height: 18px; padding: 0; margin: 0; }
.dbj-wishlist .visit-label input:focus-visible { outline: 0; box-shadow: none; }
.dbj-wishlist .visit-label:has(input:focus-visible)::after { content: ''; position: absolute; bottom: 8px; left: 0; width: 18px; height: 2px; background: var(--brand-ink); }

@media(max-width:1080px) {
  .dbj-forecast .workspace-heading { grid-template-columns: 1fr; gap: 20px; }
  .dbj-cphi .category-layout { grid-template-columns: 1fr; }
  .dbj-cphi .category-aside { padding: 0; border-left: 0; }
}
@media(max-width:760px) {
  .dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) main { width: calc(100% - 32px); padding: 28px 0 40px; }
  .dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) h1 { font-size: 28px; line-height: 1.4; }
  .dbj-ui:is(.dbj-forecast,.dbj-cphi,.dbj-wishlist) .panel { padding: 20px 16px; }
  .dbj-forecast .editor-toolbar { top: 0; }
  .dbj-forecast .mascot-action { display: none; }
  .dbj-forecast .om-upload-copy { flex-basis: auto; }
  .dbj-forecast button.om-dropzone { flex-wrap: nowrap; }
  .dbj-forecast #monthlyNhi .formgroups { grid-template-columns: 1fr 1fr; }
  .dbj-forecast .metric { padding: 20px 16px; }
  .dbj-forecast .metric strong { font-size: 26px; line-height: 34px; }
  .dbj-forecast #segments { grid-template-columns: 1fr; }
  .dbj-forecast .card-amounts { grid-template-columns: 1fr 1fr; }
  .dbj-cphi .summary { gap: 16px; grid-template-columns: 1fr 1fr; }
  .dbj-cphi .summary > div { padding: 16px; }
  .dbj-cphi .summary strong { font-size: 26px; line-height: 34px; }
  .dbj-cphi .movement-actions { grid-template-columns: 1fr; gap: 8px; }
  .dbj-cphi .movement-actions strong { font-size: 24px; }
  .dbj-cphi .dash-panel { padding: 20px 16px; }
  .dbj-cphi .filter-main,.dbj-cphi .filter-main[data-year="2025"],.dbj-cphi .advanced-grid { grid-template-columns: 1fr; }
  .dbj-cphi .search-unit { flex-wrap: wrap; }
  .dbj-cphi .search-unit label { flex-basis: 100%; }
  .dbj-cphi .viewbar .views button { padding: 12px; }
  .dbj-cphi .viewbar .views { flex: 0 1 100%; min-width: 0; max-width: 100%; }
  .dbj-cphi .list-status { flex-wrap: wrap; }
  .dbj-wishlist .cards { grid-template-columns: 1fr; }
  .dbj-wishlist .wish-card { padding: 20px 16px; }
}
@media(max-width:600px) {
  .dbj-cphi .category-table { min-width: 560px; display: table; width: 100%; }
  .dbj-cphi .category-table thead { display: table-header-group; position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .dbj-cphi .category-table tbody { display: table-row-group; }
  .dbj-cphi .category-table tr { display: table-row; margin: 0; padding: 0; border: 0; }
  .dbj-cphi .category-table :is(th,td) { display: table-cell; width: auto; }
  .dbj-cphi #results { background: transparent; border: 0; }
  .dbj-cphi #results tbody tr:not(.detail-row) { padding: 16px; border-radius: 16px; margin-bottom: 16px; }
  .dbj-cphi #results tbody tr:not(.detail-row):has(.wish-heart[aria-pressed=true]) { background: var(--brand-mist); }
  .dbj-cphi #results tbody tr:not(.detail-row):has(.more-button[aria-expanded=true]) { margin-bottom: 0; border-bottom: 0; border-radius: 16px 16px 0 0; }
  .dbj-cphi #results tbody tr.detail-row { background: var(--card); margin: 0 0 16px; padding: 4px 16px 16px; border-top: 0; border-radius: 0 0 16px 16px; }
  .dbj-cphi #results tbody tr:has(.wish-heart[aria-pressed=true]) + tr.detail-row { background: var(--brand-mist); }

  .dbj-cphi #results td { padding: 4px 0; }
  .dbj-cphi #results td.name-cell { padding-right: 0; }
  .dbj-cphi #results td.name-cell strong { font-size: 16px; line-height: 24px; }
  .dbj-cphi #results td.more-cell { position: static; width: auto; padding: 4px 0 0; margin-top: 8px; text-align: left; }
  .dbj-cphi .detail-row td { padding: 0; }
  .dbj-cphi #results td.more-cell { padding-top: 8px; border-top: 1px solid var(--border); }
  .dbj-cphi #results td.more-cell .wish-note { margin: 0; }
  .dbj-cphi #results td.more-cell .wish-time { display: block; margin-left: 0; }
  .dbj-cphi .cphi-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .dbj-cphi .cphi-card-actions .more-button { margin-left: auto; justify-content: flex-end; }
  .dbj-cphi .more-button { width: auto; justify-content: flex-start; text-decoration: underline; text-underline-offset: 3px; }
  .dbj-cphi .more-button:hover:not(:disabled) { background: transparent; }
  .dbj-cphi .more-button::before,.dbj-cphi .more-icon { display: none; }
  .dbj-cphi .more-mobile-label { display: inline; }
  .dbj-cphi .new-zones { grid-template-columns: 1fr; }
}
@media(max-width:360px) {
  .dbj-forecast #monthlyNhi .formgroups { grid-template-columns: 1fr; }
  .dbj-forecast .card-amounts { grid-template-columns: 1fr; }
}
@supports not ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  .dbj-ui :is(#settings,.panel[aria-label="展商筛选"],button.om-dropzone) { background: var(--card); }
}
@media(prefers-reduced-transparency:reduce) {
  .dbj-ui :is(#settings,.panel[aria-label="展商筛选"],button.om-dropzone) { background: var(--card); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

.dbj-cphi .multi-options label { position: relative; min-height: 44px; gap: 12px; align-items: center; }
.dbj-cphi .multi-options input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; padding: 0; }
.dbj-cphi .multi-options input:focus-visible { outline: 0; box-shadow: none; }
.dbj-cphi .multi-options label:has(input:focus-visible)::after { content: ''; position: absolute; bottom: 5px; left: 10px; width: 18px; height: 2px; background: var(--brand-ink); }
