/**
 * News archive + workbench UI
 */

/* Filters panel (no view toggle mixed in) */
.cb-news-filters {
  margin: 1.25rem 0 0.75rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid var(--color-border, #e2e8f0);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.cb-news-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}
.cb-news-filters__row--search {
  gap: 0.6rem;
}
.cb-news-filters__row--search input {
  flex: 1 1 200px;
  min-width: 160px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 14px;
  background: #fff;
  color: #0f172a;
}
.cb-news-filters__label {
  flex: 0 0 4.5rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cb-news-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 auto;
}

/* Chips: explicit on/off so deselect always looks off (beat theme :focus) */
.cb-filter-chip {
  border: 1px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border-radius: 999px !important;
  padding: 0.35rem 0.8rem !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
  box-shadow: none !important;
  outline: none;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.cb-filter-chip:hover,
.cb-filter-chip:focus,
.cb-filter-chip:focus-visible {
  background: #E8F0F6 !important;
  border-color: #93c5fd !important;
  color: #265077 !important;
}
.cb-filter-chip.is-active,
.cb-filter-chip.is-active:hover,
.cb-filter-chip.is-active:focus,
.cb-filter-chip.is-active:focus-visible,
.cb-filter-chip[aria-pressed="true"] {
  background: #265077 !important;
  border-color: #265077 !important;
  color: #fff !important;
}
.cb-filter-chip:not(.is-active):not([aria-pressed="true"]),
.cb-filter-chip:not(.is-active):not([aria-pressed="true"]):focus,
.cb-filter-chip:not(.is-active):not([aria-pressed="true"]):focus-visible {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}
.cb-filter-chip:not(.is-active):not([aria-pressed="true"]):hover {
  background: #E8F0F6 !important;
  border-color: #93c5fd !important;
  color: #265077 !important;
}

.cb-news-reset {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #64748b;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.cb-news-reset:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

/* Results bar: count left, view toggle right (separate from filters) */
.cb-news-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.25rem 0 0.85rem;
  padding: 0.15rem 0;
}
.cb-news-count {
  font-size: 13px;
  color: #64748b;
  min-height: 1.2em;
  margin: 0;
}
.cb-news-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  background: #f1f5f9;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}
.cb-news-view-toggle__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding: 0 0.4rem;
}
.cb-view-btn {
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.75rem !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer;
  font-family: inherit;
  box-shadow: none !important;
}
.cb-view-btn:hover {
  color: #265077 !important;
}
.cb-view-btn.is-active,
.cb-view-btn.is-active:focus {
  background: #fff !important;
  color: #265077 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

/* Floating workbench dock — one for many adds */
.cb-wb-dock {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 100050;
  max-width: min(92vw, 420px);
  width: 100%;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cb-wb-dock.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cb-wb-dock__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem 0.7rem 1rem;
  background: #0f172a;
  color: #f8fafc;
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.35);
  font-size: 13px;
  font-weight: 500;
}
.cb-wb-dock__text {
  flex: 1 1 auto;
  min-width: 0;
}
.cb-wb-dock__go {
  flex: 0 0 auto;
  background: #0d9488;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 12px;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}
.cb-wb-dock__go:hover {
  background: #0f766e;
  color: #fff !important;
}
.cb-wb-dock__close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.2rem;
}
.cb-wb-dock__close:hover {
  color: #fff;
}

/* Results layouts */
.cb-news-results--feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.cb-news-results--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cb-news-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-news-item:hover {
  border-color: #bfdbfe;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.08);
}
.cb-news-results--cards .cb-news-item {
  flex-direction: column;
  height: 100%;
}
.cb-news-item__date {
  margin: 0 0 0.25rem;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 600;
}
.cb-news-item__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  line-height: 1.35;
  font-family: Montserrat, system-ui, sans-serif;
}
.cb-news-item__title a {
  text-decoration: none;
  color: #0f172a;
}
.cb-news-item__title a:hover {
  color: #265077;
}
.cb-news-item__teaser {
  margin: 0.5rem 0 0;
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
}
.cb-news-item__actions {
  flex: 0 0 auto;
}
.cb-news-results--cards .cb-news-item__actions {
  width: 100%;
  margin-top: auto;
}
.cb-news-empty {
  color: #64748b;
  padding: 1.5rem 0;
}

/* Chips */
.cb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0;
}
.cb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15em 0.55em;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
}
.cb-chip--juris {
  background: #E8F0F6;
  border-color: #c7d2fe;
  color: #265077;
}
.cb-chip--risk-high {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.cb-chip--risk-medium {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.cb-chip--risk-low {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.cb-chip--deadline {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}
.cb-chip--deadline.is-past {
  opacity: 0.75;
  text-decoration: line-through;
}

/* Workbench star: high-contrast icon, label on hover */
.cb-wb-btn {
  border: 2px solid #265077 !important;
  background: #265077 !important;
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0.4rem;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: Montserrat, system-ui, sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: padding 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(30, 58, 138, 0.25);
}
.cb-wb-btn--icon {
  min-width: 2.25rem;
  min-height: 2.25rem;
  justify-content: center;
}
.cb-wb-btn__icon {
  font-size: 1.05rem;
  line-height: 1;
  color: #fff !important;
}
.cb-wb-btn__label {
  display: none;
  font-size: 11px;
  font-weight: 700;
  color: #fff !important;
}
.cb-wb-btn--icon:hover,
.cb-wb-btn--icon:focus-visible {
  padding: 0.4rem 0.8rem 0.4rem 0.55rem;
  background: #1B3A56 !important;
  border-color: #1B3A56 !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.35);
}
.cb-wb-btn--icon:hover .cb-wb-btn__label,
.cb-wb-btn--icon:focus-visible .cb-wb-btn__label {
  display: inline;
}
.cb-wb-btn.is-tracked {
  background: #0f766e !important;
  border-color: #0f766e !important;
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.35);
}
.cb-wb-btn.is-tracked .cb-wb-btn__icon,
.cb-wb-btn.is-tracked .cb-wb-btn__label {
  color: #fff !important;
}
.cb-wb-btn.is-tracked:hover {
  background: #115e59 !important;
  border-color: #115e59 !important;
}
.cb-news-item__deadline {
  margin: 0.35rem 0 0.15rem;
}
.cb-news-item .cb-chips {
  margin: 0 0 0.4rem;
}
.cb-news-item__date {
  margin: 0 0 0.2rem;
}
.cb-news-single__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0.5rem;
}
.cb-btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #265077;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

/* Single dual brief labels already styled in child.css — slight tighten */
.cb-news-single .cb-meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Workbench: hide WP page title; keep same site container width as rest of site */
body.cb-is-workbench .entry-header,
body.cb-is-workbench .page-title,
body.cb-is-workbench h1.entry-title,
body.cb-is-workbench .ast-archive-description {
  display: none !important;
}
body.cb-is-workbench .entry-content {
  margin: 0 !important;
}

/* ===== Workbench app shell: left nav | center only (no right rail) ===== */
.cb-wb-app {
  display: block;
  width: 100%;
  margin: 0;
  min-height: calc(100vh - 120px);
}
/* Dual layout: sidebar + main work area. */
.cb-wb-app--dual,
.cb-wb-app--tri,
.cb-wb-app--fluid {
  --cb-wb-shell: var(--container-max, 1280px);
  --cb-wb-surface: var(--color-bg, #f8fafc);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 0;
  width: min(100% - 2rem, var(--cb-wb-shell));
  max-width: var(--cb-wb-shell);
  margin-inline: auto;
  border: none;
  border-radius: 0;
  overflow: visible;
  background: var(--cb-wb-surface);
  box-shadow: none;
  min-height: calc(100vh - 120px);
}
/* Right rail removed — keep class inert if markup ever reappears. */
.cb-wb-rail {
  display: none !important;
}
.cb-wb-top__eyebrow {
  margin: 0 0 0.15rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
}
.cb-wb-back {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: center;
  margin: 0 0 1rem;
  font-size: 13px;
  font-weight: 600;
}
.cb-wb-back a {
  color: #265077 !important;
  text-decoration: none !important;
}
.cb-wb-back__external {
  color: #64748b !important;
  font-weight: 500;
}
.cb-wb-legend--compact {
  font-size: 11px;
  margin: 0 0 0.5rem;
  gap: 0.5rem;
}
.cb-wb-calendar-list--slim .cb-wb-cal-item {
  padding: 0.45rem 0.5rem;
  border-left-width: 3px;
}
.cb-wb-calendar-list--slim .cb-wb-cal-title {
  font-size: 12px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cb-wb-calendar-list--slim .cb-wb-cal-date {
  font-size: 11px;
  margin-bottom: 0.15rem;
}
.cb-wb-sidebar {
  background: transparent;
  color: #0f172a;
  border-right: 1px solid #e2e8f0;
  padding: 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cb-wb-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.45rem 0.85rem;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0.2rem;
}
.cb-wb-sidebar__logo {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 8px;
  background: #265077;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cb-wb-sidebar__name {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  display: block;
}
.cb-wb-sidebar__panel-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
}
.cb-wb-nav__list,
.cb-wb-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.cb-wb-nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  color: #475569 !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
}
.cb-wb-nav a:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}
.cb-wb-nav .current-menu-item > a,
.cb-wb-nav .menu-item.is-active > a {
  background: #e2e8f0;
  color: #0f172a !important;
}
.cb-wb-sidebar__hint {
  margin-top: auto;
  font-size: 10px;
  line-height: 1.4;
  color: #94a3b8;
  padding: 0.45rem;
}
.cb-wb-center {
  padding: 1.15rem 1.25rem 1.75rem;
  background: transparent;
  min-width: 0;
  border-right: 1px solid #e2e8f0;
}
.cb-wb-rail {
  background: transparent;
  padding: 1rem 0.85rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: auto;
}
.cb-wb-rail__card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 0.9rem;
}
.cb-wb-rail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.cb-wb-rail__head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}
.cb-wb-rail__head a {
  font-size: 11px;
  font-weight: 600;
  color: #265077 !important;
  text-decoration: none !important;
  white-space: nowrap;
}
.cb-wb-kpis--cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.cb-wb-kpi-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.cb-wb-kpi-card__label {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}
.cb-wb-kpi-card__num {
  font-size: 1.65rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
  font-family: Montserrat, system-ui, sans-serif;
}
.cb-wb-kpi-card__num--risk {
  color: #dc2626;
}
.cb-wb-kpi-card--muted .cb-wb-kpi-card__num {
  font-size: 1.25rem;
  color: #64748b;
}
.cb-wb-userchip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.3rem 0.7rem 0.3rem 0.3rem;
}
.cb-wb-userchip__av {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: #265077;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cb-wb-userchip__name {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}
.cb-wb-panel__count {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}
.cb-wb-tools-grid--compact {
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.cb-wb-tools-grid--compact .cb-wb-tool-card {
  padding: 0.65rem 0.75rem;
}
.cb-wb-tools-grid--compact .cb-wb-tool-card strong {
  font-size: 13px;
}
.cb-wb-checkchip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}
.cb-wb-checkchip input {
  accent-color: #265077;
}
.cb-wb-checkchip:has(input:checked),
.cb-wb-checkchip.is-active {
  background: #265077;
  border-color: #265077;
  color: #fff;
}
.cb-wb-news-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.cb-wb-news-filters__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.cb-wb-news-filters__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.35rem;
}
/* Primary save affordance — high contrast */
.cb-wb-btn-save-default {
  border: none !important;
  background: #0d9488 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.95rem !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  font-family: Montserrat, system-ui, sans-serif !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}
.cb-wb-btn-save-default:hover,
.cb-wb-btn-save-default:focus-visible {
  background: #0f766e !important;
  color: #fff !important;
}
.cb-wb-news-filters__actions .cb-wb-layout-btn.is-active {
  background: #265077 !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
}
.cb-wb-news-results {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.cb-wb-member-hero {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
}
.cb-wb-member-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin: 0 0 0.5rem;
}
.cb-wb-member-status.is-active {
  color: #0f766e;
  background: #ccfbf1;
}
.cb-wb-member-hero h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}
.cb-wb-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}
.cb-wb-member-actions .cb-btn--primary,
.cb-btn--primary {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  background: #265077;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 13px;
  border: none;
}
.cb-wb-member-perks {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}
.cb-wb-member-embed {
  margin-top: 1.25rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem;
}
.cb-wb-mini-status {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin: 0 0 0.35rem;
}
.cb-wb-mini-status.is-active {
  color: #0f766e;
}
.cb-wb-mini-copy {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 0.55rem;
  line-height: 1.4;
}
.cb-wb-mini-btn {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  color: #265077 !important;
  background: #fff;
}
.cb-wb-mini-btn--primary {
  background: #265077 !important;
  border-color: #265077 !important;
  color: #fff !important;
}
.cb-wb-calendar-list--rail .cb-wb-cal-item {
  grid-template-columns: 1fr;
  padding: 0.55rem 0.65rem;
}
.cb-wb-main {
  padding: 1.15rem 1.35rem 1.75rem;
  background: transparent;
  min-width: 0;
}

/* Workbench page: same canvas as rest of site (no grey frame outside shell) */
body.cb-is-workbench,
body.cb-is-workbench #page,
body.cb-is-workbench .site-content,
body.cb-is-workbench .entry-content {
  background-color: var(--color-bg, #f8fafc) !important;
}
.cb-wb-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}
.cb-wb-top__title {
  margin: 0;
  font-size: 1.35rem;
  font-family: Montserrat, system-ui, sans-serif;
  color: #0f172a;
}
.cb-wb-top__sub {
  margin: 0.25rem 0 0;
  font-size: 13px;
  color: #64748b;
  max-width: 36rem;
}
.cb-wb-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cb-wb-kpi {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 12px;
  color: #475569;
}
.cb-wb-kpi strong {
  color: #0f172a;
  margin-right: 0.2rem;
}
.cb-wb-kpi--muted {
  color: #94a3b8;
}
.cb-wb-panel__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.cb-wb-layout-toggle {
  display: inline-flex;
  background: #e2e8f0;
  border-radius: 10px;
  padding: 0.2rem;
  gap: 0.15rem;
}
.cb-wb-layout-btn {
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none !important;
  color: #64748b !important;
}
.cb-wb-layout-btn.is-active {
  background: #fff;
  color: #265077 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.cb-wb-link-news {
  font-size: 13px;
  font-weight: 600;
  color: #265077 !important;
  text-decoration: none !important;
}

/* List layout — clear columns: market | title+due | risk | actions */
.cb-wb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cb-wb-list-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
}
.cb-wb-list-item__grid {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.85rem 1rem;
}
.cb-wb-list-item__col--title {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.cb-wb-list-item__title {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  color: #0f172a !important;
  text-decoration: none !important;
}
.cb-wb-list-item__title:hover {
  color: #265077 !important;
}
.cb-wb-list-item__due {
  font-size: 12px;
  color: #0369a1;
  font-weight: 600;
}
.cb-wb-list-item__col--risk {
  justify-self: center;
}
.cb-wb-list-item__col--actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}
.cb-wb-mkt {
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #265077;
  background: #E8F0F6;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  min-width: 2.5rem;
  justify-content: center;
}
.cb-wb-mkt--empty {
  background: #f1f5f9;
  color: #94a3b8;
}
.cb-wb-due {
  font-size: 12px;
  color: #0369a1;
  font-weight: 600;
}
.cb-wb-list-item .cb-wb-status {
  min-width: 7.5rem;
  font-size: 12px;
  padding: 0.4rem 0.5rem;
}
.cb-wb-list-item .cb-wb-remove {
  font-size: 12px;
  padding: 0.4rem 0.65rem;
}
@media (max-width: 720px) {
  .cb-wb-list-item__grid {
    grid-template-columns: 3.5rem 1fr;
    grid-template-areas:
      "mkt title"
      "risk risk"
      "actions actions";
  }
  .cb-wb-list-item__col--mkt { grid-area: mkt; }
  .cb-wb-list-item__col--title { grid-area: title; }
  .cb-wb-list-item__col--risk { grid-area: risk; justify-self: start; }
  .cb-wb-list-item__col--actions { grid-area: actions; justify-content: flex-start; }
}

/* Board by market */
.cb-wb-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
  align-items: start;
}
.cb-wb-board__col {
  background: #E8F0F6;
  border-radius: 12px;
  padding: 0.55rem;
  min-height: 120px;
}
.cb-wb-board__head {
  margin: 0 0 0.5rem;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #265077;
  display: flex;
  justify-content: space-between;
}
.cb-wb-board__head span {
  color: #64748b;
  font-weight: 600;
}
.cb-wb-board-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cb-wb-board-card__title {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.35;
}
.cb-wb-board-card__foot {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.cb-wb-status {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  font-size: 11px;
  background: #fff;
}
.cb-wb-remove {
  border: 1px solid #fecaca;
  background: #fff;
  color: #b91c1c;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.cb-wb-login {
  padding: 2rem;
  text-align: center;
}

/* Guest workbench: full UI preview + blur + join gate */
.cb-wb-app--guest-preview {
  position: relative;
  isolation: isolate;
  min-height: min(78vh, 900px);
}
.cb-wb-app--guest-preview .cb-wb-preview-shell {
  filter: blur(5px);
  transform: scale(1.01);
  opacity: 0.72;
  pointer-events: none;
  user-select: none;
  max-height: min(78vh, 900px);
  overflow: hidden;
}
.cb-wb-app--guest-preview .cb-wb-preview-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.15) 0%, rgba(15, 23, 42, 0.22) 100%);
  pointer-events: none;
}
.cb-wb-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(2px);
}
.cb-wb-gate__card {
  width: min(100%, 440px);
  padding: 1.65rem 1.5rem 1.35rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 60px -16px rgba(15, 23, 42, 0.45);
  text-align: left;
}
.cb-wb-gate__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0d9488;
}
.cb-wb-gate__title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: #0f172a;
  font-family: var(--font-title, Montserrat, sans-serif);
}
.cb-wb-gate__lead {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}
.cb-wb-gate__bullets {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #334155;
}
.cb-wb-gate__bullets li {
  margin: 0.2rem 0;
}
.cb-wb-gate__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cb-wb-gate__primary,
.cb-wb-gate__secondary {
  text-align: center;
  text-decoration: none !important;
  justify-content: center;
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
}
.cb-wb-gate__secondary {
  border: 1px solid #cbd5e1 !important;
  color: #265077 !important;
  background: #fff !important;
}
.cb-wb-gate__note {
  margin: 0.85rem 0 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #94a3b8;
  text-align: center;
}
@media (min-width: 520px) {
  .cb-wb-gate__actions {
    flex-direction: row;
  }
  .cb-wb-gate__primary,
  .cb-wb-gate__secondary {
    width: auto;
    flex: 1 1 0;
  }
}
.cb-wb-legend {
  font-size: 13px;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.cb-wb-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  margin-right: 0.25rem;
  vertical-align: middle;
}
.cb-wb-dot--official {
  background: #265077;
}
.cb-wb-dot--tracked {
  background: transparent;
  border: 2px solid #0d9488;
  box-sizing: border-box;
}
.cb-wb-markets {
  font-size: 12px;
  color: #94a3b8;
  margin: 0.25rem 0 0.75rem;
}
.cb-wb-calendar-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.cb-wb-cal-item {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  border-left: 4px solid #cbd5e1;
}
.cb-wb-cal-item--official {
  border-left-color: #265077;
}
.cb-wb-cal-item--tracked {
  border-left-color: #0d9488;
}
.cb-wb-cal-date {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}
.cb-wb-cal-title {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  font-size: 14px;
}
.cb-wb-cal-sum {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  margin-top: 0.2rem;
}
.cb-wb-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.85rem;
}
.cb-wb-tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cb-wb-tool-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.08);
}
.cb-wb-tool-badge {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
}
.cb-wb-tool-card strong {
  font-size: 15px;
  color: #0f172a;
}
.cb-wb-tool-card span:last-child {
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}
.cb-wb-empty a {
  margin-left: 0.35rem;
}
.cb-wb-loading {
  color: #94a3b8;
  font-size: 14px;
}

@media (max-width: 1100px) {
  .cb-wb-app--dual,
  .cb-wb-app--tri {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .cb-wb-app--dual,
  .cb-wb-app--tri {
    grid-template-columns: 1fr;
  }
  .cb-wb-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }
  .cb-wb-center {
    border-right: none;
  }
  .cb-wb-sidebar__hint {
    display: none;
  }
  .cb-wb-nav__list,
  .cb-wb-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
@media (max-width: 640px) {
  .cb-news-item {
    flex-direction: column;
  }
  .cb-wb-cal-item {
    grid-template-columns: 1fr;
  }
  .cb-news-reset {
    margin-left: 0;
  }
}

/* —— W1.5.1: Dual layout + modular Radar + filters —— */
.cb-wb-center {
  min-width: 0;
  padding: 1rem 1.25rem 2rem;
}
.cb-wb-radar-modules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.cb-wb-radar-mod {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid #dbe3ec;
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-height: 5.5rem;
  box-shadow: 0 1px 2px rgba(38, 80, 119, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}
a.cb-wb-radar-mod:hover {
  border-color: #265077;
  box-shadow: 0 2px 8px rgba(38, 80, 119, 0.1);
}
.cb-wb-radar-mod__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
}
.cb-wb-radar-mod__num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #265077;
}
.cb-wb-radar-mod__sub {
  font-size: 0.75rem;
  color: #5a6b7a;
  line-height: 1.3;
}
.cb-wb-radar-mod--due {
  border-top: 3px solid #c45c26;
}
.cb-wb-radar-mod--due .cb-wb-radar-mod__num {
  color: #c45c26;
}
.cb-wb-radar-mod--fresh {
  border-top: 3px solid #265077;
}
.cb-wb-radar-mod--markets {
  border-top: 3px solid #5a8f6a;
}
.cb-wb-radar-mod--cases {
  border-top: 3px solid #6b7280;
}

/* Workbench news detail title is long — allow wrap */
.cb-is-workbench .cb-wb-top__title {
  font-size: 1.25rem;
  line-height: 1.3;
  max-width: 42rem;
}
.cb-wb-news-detail .entry-title {
  display: none; /* chrome shows title */
}
.cb-news-single__wb-meta {
  margin: 0 0 1rem;
}
/* Workbench article: chips + date + deadline + In cases on one row */
.cb-news-single__wb-meta--row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #e8eef3;
}
.cb-meta-strip--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
}
.cb-meta-strip--inline .cb-news-item__deadline,
.cb-meta-strip--inline .cb-chip {
  margin: 0;
}
.cb-news-single__actions--inline {
  flex: 0 0 auto;
  margin: 0;
}
.cb-news-single__actions--inline .cb-wb-btn {
  white-space: nowrap;
}

/* Month calendar */
.cb-wb-panel--calendar {
  max-width: 52rem;
}
.cb-wb-cal-month {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
}
.cb-wb-cal-month__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.cb-wb-cal-month__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #1a2b3c;
}
.cb-wb-cal-nav {
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  background: #f8fafc;
  color: #265077;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.cb-wb-cal-nav:hover {
  border-color: #265077;
  background: #e8f0f7;
}
.cb-wb-cal-month__dow {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
  margin-bottom: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
  text-align: center;
}
.cb-wb-cal-month__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}
.cb-wb-cal-day {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 4.6rem;
  padding: 0.3rem 0.25rem;
  border: 1px solid #e8eef3;
  border-radius: 8px;
  background: #fbfcfe;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
}
.cb-wb-cal-day.is-empty {
  background: transparent;
  border-color: transparent;
  cursor: default;
  min-height: 0;
  pointer-events: none;
}
.cb-wb-cal-day.is-today {
  border-color: #265077;
  box-shadow: inset 0 0 0 1px #265077;
}
.cb-wb-cal-day.is-selected {
  background: #e8f0f7;
  border-color: #265077;
}
.cb-wb-cal-day.has-events {
  background: #fff;
}
.cb-wb-cal-day__num {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3d4f5f;
  margin-bottom: 0.15rem;
}
.cb-wb-cal-day__marks {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-height: 0;
}
.cb-wb-cal-mark {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.1rem 0.2rem;
  border-radius: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cb-wb-cal-mark--tracked {
  background: #dbeafe;
  color: #1e3a5f;
}
.cb-wb-cal-mark--official {
  background: #d1fae5;
  color: #065f46;
}
.cb-wb-cal-mark--more {
  background: #f1f5f9;
  color: #64748b;
}
.cb-wb-cal-detail {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.9rem 1rem;
}
.cb-wb-cal-detail__title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1a2b3c;
}
.cb-wb-cal-detail__title span {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #e8f0f7;
  color: #265077;
}
.cb-wb-cal-detail__list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.cb-wb-cal-item__type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
  margin-bottom: 0.15rem;
}
@media (max-width: 720px) {
  .cb-wb-cal-day {
    min-height: 3.2rem;
  }
  .cb-wb-cal-mark {
    font-size: 0;
    height: 0.35rem;
    padding: 0;
    border-radius: 2px;
  }
  .cb-wb-cal-mark--more {
    font-size: 0.55rem;
    height: auto;
    padding: 0 0.15rem;
  }
}
.cb-wb-note-badge {
  display: inline-block;
  margin-right: 0.25rem;
  font-size: 0.85em;
  vertical-align: middle;
  line-height: 1;
}
.cb-news-item__title .cb-wb-note-badge {
  margin-right: 0.35rem;
}
.cb-wb-case-tools {
  margin: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
  width: 100%;
}
.cb-wb-stickies {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0 0 0.65rem;
  min-height: 0;
}
.cb-wb-sticky {
  position: relative;
  padding: 0.65rem 1.6rem 0.65rem 0.7rem;
  border-radius: 4px 10px 10px 4px;
  background: #fff8c5;
  border: 1px solid #f0e4a0;
  box-shadow: 2px 2px 0 rgba(38, 80, 119, 0.06);
}
.cb-wb-sticky__text {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.4;
  color: #3d3418;
  white-space: pre-wrap;
  word-break: break-word;
}
.cb-wb-sticky__x {
  position: absolute;
  top: 0.2rem;
  right: 0.3rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8a7a3a;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.cb-wb-sticky__x:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #5a4a10;
}
.cb-wb-note-composer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #d5dde5;
}
.cb-wb-case-tools__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.cb-wb-case-tools__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #1a2b3c;
}
.cb-wb-case-tools__badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #265077;
  color: #fff;
}
.cb-wb-case-tools__hint,
.cb-wb-case-tools__lock {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #5a6b7a;
  line-height: 1.4;
}
.cb-wb-case-tools__lock a {
  color: #265077;
  font-weight: 600;
}
.cb-wb-case-tools__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}
.cb-wb-case-tools__field > span:first-child {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
}
.cb-wb-case-tools__field textarea,
.cb-wb-case-tools__field input[type='date'] {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  font: inherit;
  color: #1a2b3c;
  background: #fff;
}
.cb-wb-case-tools__sys {
  font-size: 0.75rem;
  color: #5a6b7a;
}
.cb-wb-case-tools__check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #1a2b3c;
  margin-bottom: 0.75rem;
  cursor: pointer;
}
.cb-wb-case-tools__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.cb-wb-case-tools__msg {
  font-size: 0.85rem;
  color: #1b6b3a;
}
.cb-wb-case-tools__msg.is-error {
  color: #b42318;
}

/* W2: email alert prefs (Membership) */
.cb-wb-alerts {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}
.cb-wb-alerts__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 800;
  color: #1a2b3c;
}
.cb-wb-alerts__hint {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: #5a6b7a;
  line-height: 1.4;
}
.cb-wb-alerts__row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
  color: #1a2b3c;
  cursor: pointer;
}
.cb-wb-alerts__row input {
  margin-top: 0.2rem;
}
.cb-wb-alerts__row.is-locked {
  opacity: 0.85;
}
.cb-wb-alerts__row a {
  color: #265077;
  font-weight: 600;
  margin-left: 0.25rem;
}
.cb-wb-alerts__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.65rem;
}
.cb-wb-alerts__msg {
  font-size: 0.85rem;
  color: #1b6b3a;
}
.cb-wb-alerts__msg.is-error {
  color: #b42318;
}

/* For you: compact dropdown filters */
.cb-wb-radar-filters--foryou {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid #e8eef3;
  background: #f8fafc;
}
.cb-wb-radar-filters__selects {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  align-items: flex-end;
}
.cb-wb-radar-select {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 9.5rem;
  flex: 1 1 9.5rem;
  max-width: 16rem;
}
.cb-wb-radar-select span {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
}
.cb-wb-radar-select select {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #d5dde5;
  border-radius: 8px;
  background: #fff;
  color: #1a2b3c;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
}
.cb-wb-radar-select select:focus {
  outline: 2px solid rgba(38, 80, 119, 0.25);
  border-color: #265077;
}
.cb-wb-radar-filters__result {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #5a6b7a;
}
.cb-wb-list--radar-fresh {
  margin: 0;
  padding: 0;
  list-style: none;
}
.cb-wb-list-item--fresh.is-hidden,
[data-radar-item].is-hidden {
  display: none !important;
}
.cb-wb-list-item--fresh {
  border-left: 3px solid #7aa3c4;
  background: #fbfcfe;
}

.cb-wb-panel--radar .cb-wb-radar-section {
  margin: 0 0 1.15rem;
}
.cb-wb-radar-section--card {
  padding: 0.9rem 1rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.cb-wb-radar-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}
.cb-wb-radar-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2b3c;
}
.cb-wb-radar-section__count {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #265077;
  background: #e8f0f7;
}
.cb-wb-radar-section__link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #265077;
  text-decoration: none;
  white-space: nowrap;
}
.cb-wb-radar-section__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #5a6b7a;
  line-height: 1.4;
}

.cb-wb-radar-board {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.cb-wb-radar-market-mod {
  border: 1px solid #e8eef3;
  border-radius: 10px;
  background: #fbfcfe;
  padding: 0.65rem 0.75rem 0.75rem;
}
.cb-wb-radar-market-mod.is-hidden,
.cb-wb-radar-type-mod.is-hidden,
.cb-wb-radar-card.is-hidden,
[data-radar-item].is-hidden {
  display: none !important;
}
.cb-wb-radar-market-mod__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.55rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #e8eef3;
}
.cb-wb-radar-market-mod__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #265077;
}
.cb-wb-radar-market-mod__head span {
  font-size: 0.8rem;
  font-weight: 700;
  color: #5a6b7a;
}
.cb-wb-radar-type-mod {
  margin: 0.55rem 0 0.35rem;
}
.cb-wb-radar-type-mod__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #3d4f5f;
}
.cb-wb-radar-type-mod__n {
  font-size: 0.72rem;
  color: #5a6b7a;
}
.cb-wb-radar-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.55rem;
}
.cb-wb-radar-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  border-left: 3px solid #7aa3c4;
  margin: 0;
  list-style: none;
}
.cb-wb-radar-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.cb-wb-radar-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1a2b3c;
  text-decoration: none;
  line-height: 1.35;
}
.cb-wb-radar-card__title:hover {
  color: #265077;
}
.cb-wb-radar-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #5a6b7a;
}
.cb-wb-radar-card__actions {
  margin-top: auto;
  padding-top: 0.2rem;
}
.cb-wb-type-badge {
  display: inline-block;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #265077;
  background: #e8f0f7;
  vertical-align: middle;
}
.cb-wb-type-badge--insight {
  color: #6b4f1d;
  background: #f7f0dd;
}
.cb-wb-type-badge--report {
  color: #4a3d6b;
  background: #efeaf7;
}
.cb-wb-type-badge--regulation {
  color: #1d4d3a;
  background: #e3f3eb;
}
.cb-wb-in-cases {
  display: inline-block;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #3d6b4f;
  background: #e8f5ec;
  vertical-align: middle;
}
.cb-wb-cases-hint {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  font-size: 0.82rem;
  color: #3d4f5f;
  line-height: 1.45;
}
.cb-wb-empty--soft {
  color: #5a6b7a;
  font-size: 0.88rem;
}
.cb-wb-radar-footer {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}
.cb-wb-radar-footer a {
  color: #265077;
  font-weight: 600;
}
.cb-wb-radar-footer__sep {
  margin: 0 0.35rem;
  color: #94a3b8;
}
@media (max-width: 900px) {
  .cb-wb-radar-modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .cb-wb-radar-modules {
    grid-template-columns: 1fr;
  }
  .cb-wb-radar-filters__label {
    flex-basis: 100%;
  }
}

/* —— W1: My Markets profile + Today radar (legacy section styles) —— */
.cb-wb-profile {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid #dbe3ec;
  border-radius: 10px;
  background: linear-gradient(180deg, #f7fafc 0%, #fff 100%);
}
.cb-wb-profile__summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}
.cb-wb-profile__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cb-wb-profile__chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #265077;
  background: #e8f0f7;
  border: 1px solid #c5d6e6;
}
.cb-wb-profile__chip--pt {
  color: #3d4f5f;
  background: #eef2f5;
  border-color: #d5dde5;
  font-weight: 500;
}
.cb-wb-profile__edit {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #265077;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cb-wb-profile__cta-text {
  margin: 0;
  flex: 1 1 12rem;
  font-size: 0.9rem;
  color: #3d4f5f;
  line-height: 1.4;
}
.cb-wb-profile__form {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e2e8f0;
}
.cb-wb-profile__form-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2b3c;
}
.cb-wb-profile__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #5a6b7a;
}
.cb-wb-profile__field {
  margin-bottom: 0.75rem;
}
.cb-wb-profile__label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6b7a;
}
.cb-wb-profile__options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.cb-wb-profile__cap-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #5a6b7a;
}
.cb-wb-profile__cap-note a {
  color: #265077;
  font-weight: 600;
}
.cb-wb-profile__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.cb-wb-profile__msg {
  font-size: 0.85rem;
  color: #1b6b3a;
}
.cb-wb-profile__msg.is-error {
  color: #b42318;
}
.cb-wb-today-summary {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  background: #eef5fb;
  border: 1px solid #d0e0ef;
  font-size: 0.88rem;
  color: #265077;
  line-height: 1.4;
}
.cb-wb-list-item--radar {
  background: #fbfcfe;
  border-left: 3px solid #265077;
}
.cb-wb-radar-badge {
  display: inline-block;
  margin-right: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: #265077;
  vertical-align: middle;
}
.cb-wb-list-item--radar .cb-wb-list-item__title {
  display: inline;
}
