/* Sales workbench layout and page-specific refinements. */
body {
  background:
    linear-gradient(180deg, #fbfcfe 0, #f2f5f9 300px),
    var(--faq-bg) !important;
}

.navbar {
  width: min(1480px, calc(100vw - 24px));
  margin: 12px auto 0;
  border: 1px solid var(--faq-border) !important;
  border-radius: 10px 10px 0 0;
  box-shadow: var(--faq-shadow-sm);
}

.navbar .container {
  max-width: none;
  padding-inline: 18px !important;
}

.nav-inner {
  padding: 10px 0 !important;
}

.logo {
  font-size: 1.5rem !important;
  line-height: 1;
}

.logo-area {
  align-items: center !important;
}

.container {
  max-width: 1360px;
}

.product-shell {
  width: min(1480px, calc(100vw - 24px));
  margin: 0 auto 24px;
  display: grid;
  grid-template-columns: 212px minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--faq-border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: #ffffff;
  box-shadow: var(--faq-shadow-sm);
  min-height: calc(100vh - 84px);
  overflow: hidden;
}

.product-sidebar {
  background: #ffffff;
  color: #475467;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid #eef2f7;
}

.sidebar-section-title {
  margin: 10px 10px 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
}

.sidebar-nav-item,
.sidebar-mini-link {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  min-height: 38px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.sidebar-nav-item:hover,
.sidebar-mini-link:hover,
.sidebar-nav-item.is-active {
  background: #fef2f2;
  color: #dc2626;
}

.sidebar-nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f2f4f7;
  color: #667085;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.sidebar-nav-item.is-active .sidebar-nav-icon,
.sidebar-nav-item:hover .sidebar-nav-icon {
  background: #fee2e2;
  color: #dc2626;
}

.sidebar-divider {
  height: 1px;
  background: #eef2f7;
  margin: 14px 8px 8px;
}

.sidebar-mini-link {
  min-height: 31px;
  padding-left: 12px;
  color: #667085;
  font-size: 13px;
}

.product-main {
  min-width: 0;
  background: #f6f8fb;
}

.product-main > .container {
  max-width: none;
  padding: 0 16px 20px !important;
}

.product-topline {
  min-height: 76px;
  padding: 16px 20px 13px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  background: #ffffff;
  border-bottom: 1px solid var(--faq-border);
}

.product-topline h1 {
  margin: 0;
  color: #111827;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 850;
}

.product-topline p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.topline-actions,
.operation-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topline-btn,
.operation-btn {
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  background: #ffffff;
  min-height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.topline-btn.primary,
.operation-btn.danger {
  border-color: transparent;
  background: #b4232a;
  color: #ffffff;
}

.operation-btn.blue {
  border-color: transparent;
  background: #2563eb;
  color: #ffffff;
}

#faqView.main-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  grid-template-areas:
    "search side"
    "overview side"
    "ops side"
    "gap side"
    "todo side"
    "focus side"
    "progress side"
    "platform side"
    "main side";
  gap: 12px 16px;
  align-items: start;
}

.workbench-search-card {
  grid-area: search;
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 8px;
}

.search-card-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
}

.search-card-head h2 {
  margin: 0;
  color: #111827;
  font-size: 16px;
  line-height: 1.25;
}

.search-card-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
}

.search-mode-label {
  align-self: flex-start;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #f8fafc;
  color: #64748b;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 800;
}

.workbench-search-card .search-controls {
  border-radius: 9px;
}

.search-hint-row {
  margin-top: 12px;
}

.workbench-search-card .search-hint {
  margin-top: 10px;
}

.workbench-search-card .search-controls,
.search-hint-row,
.workbench-search-card .search-hint,
.workbench-search-card .system-status {
  max-width: none;
}

.main-grid {
  margin-top: 12px !important;
}

.sales-workbench-shell {
  display: contents;
}

.workbench-overview {
  grid-area: overview;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.overview-card {
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 11px 12px;
  box-shadow: var(--faq-shadow-sm);
}

.overview-card.primary {
  border-color: rgba(180, 35, 42, 0.22);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
}

.overview-label {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.overview-value {
  margin-top: 6px;
  color: #111827;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.overview-note {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 12px;
}

.operations-strip {
  grid-area: ops;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 10px;
}

.operation-panel {
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
  box-shadow: var(--faq-shadow-sm);
}

.operation-title {
  margin-bottom: 9px;
  color: #111827;
  font-size: 14px;
  font-weight: 850;
}

.gap-list {
  display: grid;
  gap: 8px;
}

.knowledge-gap-panel {
  grid-area: gap;
}

.todo-panel {
  grid-area: todo;
}

.customer-focus-panel {
  grid-area: focus;
}

.personal-progress-panel {
  grid-area: progress;
}

.platform-insight-panel {
  grid-area: platform;
}

.workbench-action-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.workbench-action-metrics > div {
  min-width: 0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 10px;
}

.workbench-action-metrics span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workbench-action-metrics strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
}

.customer-focus-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-focus-title {
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.customer-focus-list {
  display: grid;
  gap: 8px;
}

.customer-focus-item,
.profile-workbench-card,
.profile-notification-card,
.conversion-progress-card {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #ffffff;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-align: left;
}

.customer-focus-item,
.profile-workbench-card,
.profile-notification-card,
.personal-status-item {
  cursor: pointer;
}

.customer-focus-item:hover,
.profile-workbench-card:hover,
.profile-notification-card:hover,
.personal-status-item:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.customer-focus-item span,
.profile-workbench-card span,
.profile-notification-card span,
.conversion-progress-card span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.customer-focus-item strong,
.profile-workbench-card strong,
.profile-notification-card strong,
.conversion-progress-card strong,
.customer-focus-item small,
.profile-workbench-card small,
.profile-notification-card small,
.conversion-progress-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-focus-item strong,
.profile-workbench-card strong,
.profile-notification-card strong,
.conversion-progress-card strong {
  color: #111827;
  font-size: 13px;
}

.customer-focus-item small,
.profile-workbench-card small,
.profile-notification-card small,
.conversion-progress-card small {
  color: #64748b;
  font-size: 12px;
}

.customer-focus-item b,
.conversion-progress-card b {
  overflow: hidden;
  color: #166534;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-workbench-card b {
  color: #b4232a;
}

.profile-workbench-card.is-complete b {
  color: #166534;
}

.personal-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.personal-status-item {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 10px;
  color: inherit;
  text-align: left;
}

.personal-status-item span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.personal-status-item strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-notification-card {
  margin-top: 8px;
  background: #fff;
}

.profile-notification-card b {
  color: #1d4ed8;
  font-size: 13px;
  white-space: nowrap;
}

.conversion-progress-card {
  margin-top: 8px;
  background: #f8fafc;
}

.conversion-progress-card > b {
  color: #1d4ed8;
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.platform-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.platform-insight-metric {
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 10px;
  min-width: 0;
}

.platform-insight-metric span {
  display: block;
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-insight-metric strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #111827;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-order-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.platform-order-item {
  width: 100%;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-align: left;
}

button.platform-order-item {
  cursor: pointer;
}

button.platform-order-item:hover,
.platform-order-item.is-clickable:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
}

.platform-order-item span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.platform-order-item strong,
.platform-order-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-order-item strong {
  color: #111827;
  font-size: 13px;
}

.platform-order-item small {
  color: #64748b;
  font-size: 12px;
}

.platform-order-item b {
  color: #166534;
  font-size: 13px;
}

.todo-mini-list,
.followup-list {
  display: grid;
  gap: 8px;
}

.todo-mini-item {
  width: 100%;
  border: 0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.todo-mini-item:hover {
  background: #eef4ff;
}

.todo-mini-kind {
  align-self: start;
  border-radius: 999px;
  background: #ffffff;
  color: #b4232a;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 850;
}

.todo-mini-main {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.todo-mini-main strong {
  overflow: hidden;
  color: #111827;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-mini-main small {
  overflow: hidden;
  color: #64748b;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-flow-group {
  min-width: 0;
  border: 1px solid var(--faq-border-soft);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.action-flow-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: #0f172a;
}

.action-flow-head strong {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-flow-head span {
  flex: 0 0 auto;
  min-width: 22px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 12px;
  font-weight: 850;
  line-height: 20px;
  text-align: center;
}

.action-flow-list {
  display: grid;
  gap: 7px;
}

.action-flow-item {
  min-width: 0;
  border-radius: 7px;
  background: #f8fafc;
  padding: 8px;
  display: grid;
  gap: 7px;
}

.action-flow-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.action-flow-main strong,
.action-flow-main small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-flow-main strong {
  color: #111827;
  font-size: 13px;
  line-height: 1.3;
}

.action-flow-main small {
  color: #64748b;
  font-size: 12px;
}

.action-flow-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.action-flow-btn {
  flex: 0 1 auto;
  max-width: 100%;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 8px;
  white-space: nowrap;
}

.action-flow-btn:hover {
  border-color: #f0b8bc;
  color: #b4232a;
}

.action-flow-btn.primary,
.action-flow-btn.strong {
  border-color: #b4232a;
  background: #b4232a;
  color: #ffffff;
}

.action-flow-btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.workbench-followup-editor {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(135px, 0.72fr) minmax(160px, 1.2fr) auto;
  gap: 6px;
}

.workbench-followup-editor.hidden {
  display: none;
}

.workbench-followup-editor input {
  min-width: 0;
  width: 100%;
  border: 1px solid var(--faq-border);
  border-radius: 7px;
  color: #111827;
  font-size: 12px;
  padding: 6px 8px;
}

.action-flow-empty {
  border-radius: 7px;
  background: #f8fafc;
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
  padding: 8px;
}

.followup-panel,
.customer-external-panel {
  grid-column: 1 / -1;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 10px;
}

.customer-external-panel {
  background: #f7fbff;
}

.followup-head,
.followup-item-head,
.followup-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.followup-head {
  margin-bottom: 10px;
}

.followup-form {
  display: grid;
  grid-template-columns: 112px 178px minmax(0, 1fr) 92px;
  gap: 8px;
  align-items: start;
  margin-bottom: 10px;
}

.followup-form textarea {
  min-height: 38px;
}

.customer-external-orders {
  display: grid;
  gap: 8px;
}

.customer-external-order {
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.customer-external-order span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.customer-external-order strong,
.customer-external-order small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-external-order strong {
  color: #111827;
  font-size: 13px;
}

.customer-external-order small {
  color: #64748b;
  font-size: 12px;
}

.customer-external-order b {
  color: #166534;
  font-size: 13px;
}

.customer-external-order-actions {
  display: inline-grid;
  justify-items: end;
  gap: 6px;
}

.mini-action-btn {
  border: 1px solid #bfdbfe;
  border-radius: 7px;
  background: #eff6ff;
  color: #1d4ed8;
  min-height: 28px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.mini-action-btn:hover {
  background: #dbeafe;
}

.mini-action-btn:disabled {
  cursor: default;
  opacity: 0.65;
}

.followup-item,
.followup-empty {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.followup-item-head strong {
  color: #111827;
  font-size: 13px;
}

.followup-item-head span,
.followup-meta,
.followup-empty {
  color: #64748b;
  font-size: 12px;
}

.followup-content {
  margin: 7px 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.operation-actions.compact {
  margin-top: 10px;
}

.platform-card {
  display: grid;
  gap: 8px;
}

.platform-status {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #64748b;
  font-size: 12px;
}

.platform-status strong {
  color: #111827;
}

.platform-card.is-bound .platform-status {
  background: #ecfdf3;
  color: #15803d;
}

.platform-card.is-bound .platform-status strong {
  color: #166534;
}

.gap-item {
  border: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-radius: 7px;
  background: #f8fafc;
  padding: 8px 10px;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.gap-item span:last-child {
  color: #b4232a;
}

.sales-workbench-main {
  grid-area: main;
  padding: 12px;
  border-radius: 8px;
}

.sales-workbench-main > .content-tabs {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px !important;
}

.sales-workbench-main > .content-tabs .content-tab {
  min-height: 36px;
  font-weight: 750;
}

.page-tools {
  display: none !important;
}

.faq-content-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.faq-list {
  gap: 8px !important;
}

.compact-record {
  padding: 10px 12px !important;
}

.faq-card {
  grid-template-columns: 48px minmax(0, 1fr) 120px;
  gap: 12px;
  min-height: 78px;
}

.faq-card-title-row .open-link-btn {
  font-size: 14px;
}

.faq-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.faq-tag-row {
  margin-top: 6px;
}

.faq-card-stats {
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: end;
  gap: 6px;
}

.faq-card-stats .metric-btn {
  min-width: 54px;
  padding-inline: 9px !important;
}

.hot-discussion-card {
  padding: 11px 12px;
}

.hot-discussion-card h3 {
  font-size: 13px;
}

.sales-side-panel {
  grid-area: side;
  padding: 12px;
  top: 82px;
  align-self: start;
}

.side-block {
  padding: 11px;
}

.side-signal-list,
.side-reminder-list {
  display: grid;
  gap: 9px;
}

.side-signal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #edf2f7;
  padding-bottom: 9px;
  color: #64748b;
  font-size: 12px;
}

.side-signal:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.side-signal strong {
  color: #111827;
  font-size: 13px;
}

.side-reminder {
  border-radius: 7px;
  background: #f8fafc;
  padding: 9px 10px;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.side-action-btn,
.mobile-action-btn {
  min-height: 40px;
}

.notif-trigger {
  position: relative;
  display: flex;
  align-items: center;
}

.modal-discussion-block {
  margin: 14px 0;
}

.modal-file-input,
.modal-reply-textarea {
  margin-top: 10px;
}

.modal-help-text {
  margin-bottom: 10px;
}

.modal-pager {
  margin-top: 12px;
}

.inline-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-check input {
  width: auto;
}

.thread-author {
  font-weight: 600;
  color: #121212;
}

.thread-title {
  font-weight: 700;
  color: #121212;
}

.detail-summary-spaced {
  margin-top: 10px;
}

.state-card-title {
  margin-bottom: 6px;
  color: #111827;
  font-weight: 800;
}

.state-card-action {
  margin-top: 12px;
}

.temp-highlight {
  background: #fff1cf !important;
  border-left: 4px solid #d62c2c !important;
  transition: 0.2s;
}

.notif-highlight {
  box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.3) !important;
}

.work-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.26);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  z-index: 240;
}

.work-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.work-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(520px, calc(100vw - 28px));
  height: 100vh;
  background: #ffffff;
  border-left: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: -18px 0 42px rgba(15, 23, 42, 0.16);
  transform: translateX(104%);
  transition: transform 0.22s ease;
  z-index: 241;
  display: flex;
  flex-direction: column;
}

.work-drawer.is-open {
  transform: translateX(0);
}

.work-drawer-header {
  min-height: 78px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--faq-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
}

.work-drawer-kicker {
  font-size: 12px;
  color: var(--faq-muted);
  font-weight: 700;
  margin-bottom: 4px;
}

.work-drawer-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: #111827;
}

.work-drawer-close {
  width: 36px;
  height: 36px;
  border: 1px solid var(--faq-border);
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.work-drawer-close:hover {
  border-color: rgba(214, 44, 44, 0.28);
  color: var(--sport-red);
}

.work-drawer-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 16px 18px 24px;
  background: #f8fafc;
}

.work-drawer-body > .content-view {
  display: block !important;
}

.work-drawer-body .nav-board,
.work-drawer-body .customer-board {
  gap: 14px;
}

.work-drawer-body .nav-section,
.work-drawer-body .customer-board > .nav-section {
  border: 1px solid var(--faq-border);
  border-radius: 14px;
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--faq-shadow-sm);
}

.work-drawer-body .customer-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.work-drawer-body .customer-toolbar,
.work-drawer-body .nav-form {
  grid-template-columns: 1fr;
}

.work-drawer-body input,
.work-drawer-body select,
.work-drawer-body textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 11px;
  color: #111827;
  font: inherit;
  font-size: 13px;
  outline: none;
}

.work-drawer-body textarea {
  min-height: 86px;
  padding-top: 9px;
}

.work-drawer-body input:focus,
.work-drawer-body select:focus,
.work-drawer-body textarea:focus {
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.work-drawer-body .page-tool-btn {
  min-height: 38px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
}

.work-drawer-body .customer-list {
  gap: 8px;
}

.work-drawer-body .nav-grid {
  grid-template-columns: 1fr;
  gap: 8px;
}

.work-drawer-body .nav-card {
  min-height: 58px;
}

body.drawer-open {
  overflow: hidden;
}

body.drawer-open .mobile-action-bar {
  display: none !important;
}

.customer-transfer-list,
.customer-list,
.followup-list,
.platform-order-list,
.todo-mini-list {
  display: grid;
  gap: 7px;
}

.customer-transfer-card {
  border-left: 3px solid var(--faq-red) !important;
  background: #fffafa !important;
}

.customer-transfer-actions,
.customer-quick-action-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.customer-quick-action-bar .page-tool-btn,
.customer-transfer-actions .page-tool-btn,
.followup-form .page-tool-btn {
  min-height: 32px;
  border-radius: 7px !important;
}

.customer-quick-action-bar .page-tool-btn:first-child,
.customer-transfer-actions .page-tool-btn:first-child {
  border-color: transparent !important;
  background: var(--faq-red) !important;
  color: #ffffff !important;
}

.customer-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) 180px auto auto;
  gap: 8px;
}

.customer-toolbar input,
.customer-toolbar select {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12.5px;
}

.customer-list .compact-record,
.work-drawer-body .customer-list .compact-record {
  border-left: 3px solid transparent !important;
}

.customer-list .compact-record:hover,
.work-drawer-body .customer-list .compact-record:hover {
  border-left-color: var(--faq-red) !important;
}

.followup-head {
  margin-bottom: 8px;
}

.followup-form textarea {
  resize: vertical;
}

.followup-content {
  margin: 6px 0;
  line-height: 1.5;
}

.customer-external-panel,
.followup-panel {
  border-color: #dbe3ee;
  background: #f8fafc;
}

.customer-external-order,
.platform-order-item,
.todo-mini-item,
.side-reminder {
  box-shadow: none;
}

.work-drawer {
  width: min(560px, calc(100vw - 28px));
}

.work-drawer-header {
  min-height: 66px;
  padding: 14px 16px 12px;
}

.work-drawer-header h2 {
  font-size: 18px;
}

.work-drawer-body {
  padding: 14px 14px 20px;
}

.work-drawer-body .nav-section,
.work-drawer-body .customer-board > .nav-section {
  border-radius: var(--faq-radius) !important;
  padding: 12px !important;
}

#profileModal .policy-panel,
#customerModal .policy-panel {
  width: min(760px, calc(100vw - 40px));
}

#customerModal .policy-panel {
  width: min(900px, calc(100vw - 40px));
}

#profileModal .form-grid,
#customerModal .form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

#profileModal .form-wide,
#customerModal .form-wide {
  grid-column: 1 / -1;
}

#profileModal .form-group,
#customerModal .form-group {
  display: grid;
  gap: 5px;
}

#profileModal label,
#customerModal label {
  color: #475467;
  font-size: 12px;
  font-weight: 800;
}

#profileModal input,
#profileModal select,
#customerModal input,
#customerModal select,
#customerModal textarea {
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

#customerModal textarea {
  min-height: 78px;
}

@media (max-width: 980px) {
  .product-shell {
    width: 100%;
    grid-template-columns: 1fr;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .product-sidebar {
    display: none;
  }

  .product-topline {
    min-height: auto;
    padding: 16px;
  }

  .workbench-overview,
  .operations-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
  }

  #faqView.main-grid {
    display: block !important;
  }

  .sales-workbench-shell {
    display: block;
  }

  .sales-workbench-main > .content-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .faq-card-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-end;
  }
}

@media (max-width: 1180px) {
  .faq-content-grid {
    grid-template-columns: 1fr;
  }

  .hot-discussion-rail {
    display: none;
  }

  .operations-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .nav-inner {
    gap: 10px !important;
  }

  .nav-actions {
    flex-wrap: nowrap !important;
    gap: 12px !important;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .nav-actions::-webkit-scrollbar {
    display: none;
  }

  .nav-link,
  .nav-link-btn {
    flex: 0 0 auto;
  }

  .notif-trigger {
    flex: 0 0 auto;
  }

  .main-grid {
    margin-top: 8px !important;
    margin-bottom: 96px !important;
  }

  .workbench-search-card {
    border-radius: var(--faq-radius-lg);
    margin: 8px 0;
    padding: 10px;
  }

  .search-hint-row {
    gap: 6px;
    margin-top: 8px;
  }

  .workbench-search-card .search-hint {
    display: none;
  }

  .search-chip {
    padding: 3px 7px;
    font-size: 11px;
  }

  .sales-workbench-shell {
    display: block !important;
  }

  .sales-workbench-main {
    width: 100%;
    min-width: 0;
  }

  .sales-workbench-main > .content-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px;
    margin-bottom: 10px !important;
  }

  .sales-workbench-main > .content-tabs .content-tab {
    min-width: 0;
    min-height: 38px;
    writing-mode: horizontal-tb;
    white-space: nowrap;
  }

  .faq-content-grid {
    display: block !important;
  }

  .hot-discussion-rail {
    margin-top: 18px;
  }

  .sales-side-panel {
    margin-top: 18px;
    display: grid !important;
    width: 100%;
  }

  .faq-card {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 50px !important;
    gap: 10px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 74px;
  }

  .compact-record {
    padding: 10px !important;
  }

  .faq-card-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

  .faq-card-main,
  .faq-card-title-row {
    min-width: 0;
  }

  .faq-card-title-row .open-link-btn {
    display: block;
    width: 100%;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
  }

  .faq-card-desc {
    line-height: 1.45;
  }

  .faq-tag-row {
    gap: 4px;
    margin-top: 5px;
  }

  .faq-mini-tag {
    font-size: 10px;
    padding: 2px 5px;
  }

  .faq-card-stats {
    display: flex !important;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    white-space: nowrap;
  }

  .faq-card-stats .metric-btn {
    min-width: 44px;
    padding: 5px 7px !important;
    font-size: 12px;
  }

  .pin-badge {
    margin-bottom: 5px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .work-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: min(85vh, 720px);
    border-left: 0;
    border-top: 1px solid var(--faq-border);
    border-radius: 18px 18px 0 0;
    transform: translateY(104%);
    box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.18);
  }

  .work-drawer.is-open {
    transform: translateY(0);
  }

  .work-drawer-header {
    min-height: 68px;
    padding: 14px 16px 12px;
  }

  .work-drawer-body {
    padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
  }

  .work-drawer-body .customer-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* U4 visual convergence: sales-side user profile and notification states. */
.profile-card,
.side-block,
.platform-status,
.todo-mini-item,
.side-reminder,
.followup-item,
.customer-external-order {
  border-radius: 8px !important;
  box-shadow: none !important;
}

.profile-card,
.side-block {
  border-color: var(--faq-border) !important;
  background: #ffffff !important;
}

.platform-status,
.side-reminder,
.todo-mini-item {
  border: 1px solid var(--faq-border-soft);
  background: #f8fafc;
}

.platform-card.is-bound .platform-status {
  border-color: var(--state-success-border) !important;
  background: var(--state-success-bg) !important;
  color: var(--state-success-text) !important;
}

.customer-status-badge,
.pending-status,
.pill,
.faq-mini-tag,
.pin-badge {
  border-radius: 6px !important;
  min-height: 22px;
  padding: 3px 7px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.notif-trigger {
  min-width: 36px;
}

.navbar .notif-bell-btn {
  width: 36px !important;
  height: 36px !important;
  border: 1px solid var(--faq-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
}

.navbar .notif-panel {
  top: 44px;
  right: 0;
}

#profileModal .policy-panel,
#salesPlatformModal .policy-panel,
#customerModal .policy-panel {
  border-radius: 10px !important;
  box-shadow: var(--faq-shadow);
}

#profileModal .text-small,
#salesPlatformModal .text-small {
  color: var(--faq-muted) !important;
}

.status-chip,
.risk-chip,
.permission-chip,
.approval-chip,
.notification-chip,
.lifecycle-chip {
  border-radius: 6px !important;
  min-height: 22px;
  padding: 3px 7px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

.product-shell,
.product-main,
.sales-workbench-main,
.sales-side-panel,
.faq-content-grid,
.work-drawer,
.policy-panel,
.customer-toolbar,
.followup-form {
  min-width: 0;
}

.customer-toolbar,
.followup-form {
  max-width: 100%;
}

.customer-toolbar > *,
.followup-form > *,
.platform-order-item > *,
.todo-mini-item > *,
.customer-external-order > * {
  min-width: 0;
}

.platform-order-item strong,
.platform-order-item small,
.todo-mini-main strong,
.todo-mini-main small,
.customer-external-order strong,
.customer-external-order small,
.compact-record-sub,
.notif-snippet {
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-action-btn,
.mobile-action-btn,
.topline-btn,
.operation-btn,
.mini-action-btn,
.page-tool-btn,
.content-tab {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Visual correction: sales workbench follows the approved light operations desk reference. */
:root {
  --sales-red: #dc2626;
  --sales-red-dark: #b91c1c;
  --sales-red-soft: #fef2f2;
  --sales-blue: #2563eb;
  --sales-blue-soft: #eff6ff;
  --sales-page: #f5f7fb;
  --sales-panel: #ffffff;
  --sales-border: #e5e7eb;
  --sales-border-soft: #eef2f7;
  --sales-text: #101828;
  --sales-muted: #667085;
}

body {
  background: var(--sales-page) !important;
  color: var(--sales-text);
}

.navbar {
  width: 100%;
  margin: 0;
  border-width: 0 0 1px !important;
  border-radius: 0;
  box-shadow: none;
  background: #ffffff;
}

.navbar .container {
  max-width: none;
  padding-inline: 24px !important;
}

.nav-inner {
  min-height: 68px;
  display: grid !important;
  grid-template-columns: 206px minmax(420px, 1fr);
  gap: 24px;
  padding: 0 !important;
}

.logo-area {
  min-width: 0;
}

.logo {
  color: var(--sales-red) !important;
  font-size: 1.45rem !important;
  letter-spacing: 0;
  white-space: nowrap;
}

.logo-sub {
  color: #344054 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  white-space: nowrap;
}

.nav-actions {
  min-width: 0;
  justify-content: flex-end;
  gap: 10px !important;
  overflow: visible !important;
}

.nav-actions .nav-duplicate,
.sidebar-quick-duplicate,
.top-duplicate,
.quick-duplicate,
.tab-duplicate,
.side-nav-duplicate,
.inline-more-duplicate {
  display: none !important;
}

.nav-actions::before {
  content: "搜索知识库问题 / 答案 / 关键词，如 “兑奖流程”";
  flex: 1 1 560px;
  max-width: 680px;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
  background: #ffffff;
  color: #98a2b3;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 600;
}

.nav-link,
.nav-link-btn {
  flex: 0 0 auto;
  box-sizing: border-box;
  min-width: max-content;
  min-height: 34px;
  border-radius: 7px !important;
  color: #344054 !important;
  font-size: 13px !important;
  font-weight: 800 !important;
}

.nav-link.is-active,
.nav-link-btn.is-active {
  color: var(--sales-red) !important;
  background: var(--sales-red-soft) !important;
}

.product-shell {
  width: 100%;
  min-height: calc(100vh - 69px);
  margin: 0;
  grid-template-columns: 186px minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--sales-page);
  overflow: visible;
}

.product-sidebar {
  position: sticky;
  top: 69px;
  height: calc(100vh - 69px);
  overflow-y: auto;
  padding: 14px 12px;
  background: #ffffff;
  border-right: 1px solid var(--sales-border);
  box-shadow: none;
}

.product-sidebar::before {
  content: "口袋球吧 FAQ";
  display: block;
  margin: 4px 10px 18px;
  color: var(--sales-red);
  font-size: 15px;
  font-weight: 900;
}

.sidebar-section-title {
  margin: 14px 10px 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.sidebar-nav-item,
.sidebar-mini-link {
  min-height: 36px;
  border-radius: 7px;
  color: #475467;
  font-size: 13px;
  font-weight: 780;
}

.sidebar-nav-item.is-active {
  background: var(--sales-red-soft);
  color: var(--sales-red);
}

.sidebar-nav-item:hover,
.sidebar-mini-link:hover {
  background: #f9fafb;
  color: var(--sales-red);
}

.sidebar-nav-icon {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: transparent;
  color: currentColor;
  font-size: 12px;
}

.product-main {
  background: var(--sales-page);
  overflow-x: clip;
}

.product-main > .container {
  padding: 16px 18px 22px !important;
}

.product-topline {
  min-height: 62px;
  padding: 17px 22px 12px;
  align-items: center;
  background: transparent;
  border-bottom: 0;
}

.product-topline h1 {
  font-size: 22px;
  font-weight: 880;
}

.product-topline p {
  display: inline;
  margin-left: 10px;
  color: #667085;
  font-size: 13px;
}

.topline-actions {
  gap: 8px;
}

.topline-btn,
.operation-btn,
.page-tool-btn,
.side-action-btn {
  border-radius: 7px;
  box-shadow: none !important;
}

.topline-btn.primary,
.operation-btn.danger,
.mobile-action-btn.primary {
  background: var(--sales-red) !important;
  color: #ffffff !important;
}

.operation-btn.blue,
.mobile-action-btn.blue {
  background: var(--sales-blue) !important;
  color: #ffffff !important;
}

#faqView.main-grid {
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas:
    "search side"
    "todo side"
    "focus side"
    "gap side"
    "main side"
    "overview side"
    "ops side"
    "progress side"
    "platform side";
  gap: 12px;
}

.workbench-search-card {
  margin: 0;
}

.workbench-search-card,
.operation-panel,
.overview-card,
.sales-workbench-main,
.sales-side-panel,
.faq-primary-list,
.hot-discussion-rail,
.side-block {
  border: 1px solid var(--sales-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
}

.workbench-search-card .search-controls {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 7px;
}

.search-card-head p,
.search-mode-label,
.search-hint-row,
.workbench-search-card .search-hint {
  display: none;
}

.workbench-overview {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.overview-card {
  min-height: 82px;
  padding: 12px;
}

.overview-card.primary {
  background: #fffafa !important;
  border-color: #fecaca !important;
}

.overview-value {
  font-size: 26px;
}

.operations-strip {
  grid-template-columns: 1fr;
}

.operations-strip .operation-panel:nth-child(2) {
  display: none;
}

.todo-panel {
  padding: 14px;
}

.todo-panel .operation-title,
.customer-focus-panel .operation-title,
.knowledge-gap-panel .operation-title,
.side-title {
  color: #101828;
  font-size: 15px;
  font-weight: 880;
}

.workbench-action-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--sales-border-soft);
  padding-bottom: 10px;
}

.workbench-action-metrics > div {
  border-radius: 7px;
  background: #f9fafb;
}

.todo-mini-item,
.gap-item,
.customer-focus-item,
.platform-order-item,
.side-reminder {
  border: 1px solid var(--sales-border-soft);
  border-radius: 7px;
  background: #ffffff;
  box-shadow: none !important;
}

.todo-mini-item {
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 40px;
}

.todo-mini-kind {
  border-radius: 4px;
  background: #eff6ff;
  color: var(--sales-blue);
}

.customer-focus-panel {
  padding: 14px;
}

.customer-focus-columns {
  grid-template-columns: 1fr;
}

.customer-focus-list {
  gap: 0;
}

.customer-focus-item {
  border-width: 0 0 1px;
  border-radius: 0;
  padding: 11px 0;
}

.customer-focus-item:last-child {
  border-bottom: 0;
}

.knowledge-gap-panel,
.sales-workbench-main {
  padding: 14px;
}

.sales-workbench-main > .content-tabs {
  display: flex !important;
  border-bottom: 1px solid var(--sales-border-soft);
  gap: 22px;
  margin: 0 0 10px !important;
}

.sales-workbench-main > .content-tabs .content-tab {
  min-height: 34px;
  border: 0 !important;
  border-bottom: 2px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #667085 !important;
  padding: 0 2px !important;
}

.sales-workbench-main > .content-tabs .content-tab.is-active {
  border-bottom-color: var(--sales-red) !important;
  color: var(--sales-red) !important;
}

.faq-content-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 12px;
}

.faq-primary-list,
.hot-discussion-rail {
  padding: 12px !important;
}

.sales-side-panel {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 1181px) {
  .operations-strip {
    grid-area: side;
    align-self: start;
    position: sticky;
    top: 82px;
    z-index: 2;
  }

  .operations-strip .operation-panel {
    padding: 14px;
  }

  .operations-strip .operation-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .operations-strip .operation-btn {
    min-height: 38px;
  }

  .sales-side-panel {
    margin-top: 158px;
  }
}

.side-block {
  padding: 14px;
}

.side-action-grid {
  display: grid;
  gap: 8px;
}

.side-action-btn {
  min-height: 36px;
  border-color: var(--sales-border);
  background: #ffffff;
}

.side-block:nth-child(4) .side-action-btn:first-child {
  border-color: transparent;
  background: var(--sales-red);
  color: #ffffff;
}

.side-block:nth-child(4) .side-action-btn:nth-child(2) {
  border-color: transparent;
  background: var(--sales-blue);
  color: #ffffff;
}

.notif-panel {
  border-radius: 8px !important;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.16) !important;
}

@media (min-width: 1181px) {
  .knowledge-gap-panel {
    grid-column: auto;
  }

  .personal-progress-panel,
  .platform-insight-panel,
  .workbench-overview,
  .operations-strip .operation-panel:nth-child(2) {
    display: none;
  }
}

@media (max-width: 1180px) {
  .nav-inner {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px 0 !important;
  }

  .nav-actions::before {
    flex-basis: 100%;
    order: -1;
    max-width: none;
  }

  #faqView.main-grid {
    grid-template-areas:
      "search"
      "todo"
      "focus"
      "gap"
      "main"
      "side"
      "overview"
      "ops"
      "progress"
      "platform";
  }
}

/* Density pass: keep the first 720px focused on work, customers and side signals. */
@media (min-width: 1181px) {
  .nav-inner {
    min-height: 62px;
  }

  .navbar .container {
    padding-inline: 20px !important;
  }

  .nav-actions::before {
    min-height: 36px;
    max-width: 640px;
    padding-inline: 14px;
  }

  .product-shell {
    min-height: calc(100vh - 63px);
  }

  .product-sidebar {
    top: 63px;
    height: calc(100vh - 63px);
    padding-top: 12px;
  }

  .product-sidebar::before {
    margin-bottom: 14px;
  }

  .sidebar-section-title {
    margin-top: 11px;
    margin-bottom: 5px;
  }

  .sidebar-nav-item,
  .sidebar-mini-link {
    min-height: 34px;
  }

  .product-main > .container {
    padding: 10px 14px 18px !important;
  }

  .product-topline {
    min-height: 46px;
    padding: 9px 18px 5px;
  }

  .product-topline h1 {
    font-size: 20px;
  }

  .product-topline p {
    display: block;
    margin: 2px 0 0;
    font-size: 12px;
    line-height: 1.25;
  }

  #faqView.main-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 9px 10px;
  }

  .todo-panel,
  .customer-focus-panel,
  .knowledge-gap-panel,
  .sales-workbench-main {
    padding: 11px 12px;
  }

  .todo-panel .operation-title,
  .customer-focus-panel .operation-title,
  .knowledge-gap-panel .operation-title,
  .side-title {
    margin-bottom: 7px;
    font-size: 14px;
  }

  .workbench-action-metrics {
    gap: 7px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .workbench-action-metrics > div {
    padding: 7px 9px;
  }

  .workbench-action-metrics strong {
    font-size: 18px;
  }

  .todo-mini-list,
  .customer-focus-list,
  .gap-list,
  .side-signal-list,
  .side-reminder-list {
    gap: 6px;
  }

  .todo-mini-list,
  .customer-focus-list {
    max-height: 310px;
    overflow-y: auto;
    padding-right: 3px;
  }

  .todo-mini-list::-webkit-scrollbar,
  .customer-focus-list::-webkit-scrollbar {
    width: 6px;
  }

  .todo-mini-list::-webkit-scrollbar-thumb,
  .customer-focus-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d0d5dd;
  }

  .todo-mini-item {
    min-height: 32px;
    padding: 6px 8px;
  }

  .customer-focus-item {
    padding: 7px 0;
  }

  .gap-item,
  .side-reminder {
    padding: 7px 9px;
    line-height: 1.35;
  }

  .operations-strip {
    top: 72px;
  }

  .operations-strip .operation-panel,
  .side-block {
    padding: 11px 12px;
  }

  .operations-strip .operation-actions,
  .side-action-grid {
    gap: 7px;
  }

  .operations-strip .operation-btn,
  .side-action-btn {
    min-height: 34px;
  }

  .sales-side-panel {
    top: 72px;
    gap: 9px;
    margin-top: 135px;
  }

  .side-signal {
    padding-bottom: 7px;
  }

  .side-block:nth-child(3) .side-title::after {
    content: " / 系统通知";
    color: #98a2b3;
    font-weight: 700;
  }

  .sales-workbench-main > .content-tabs {
    gap: 18px;
    margin-bottom: 8px !important;
  }

  .sales-workbench-main > .content-tabs .content-tab {
    min-height: 30px;
  }

  .faq-content-grid {
    gap: 10px;
  }

  .faq-primary-list,
  .hot-discussion-rail {
    padding: 10px !important;
  }
}

/* Final overflow guard: long FAQ/question titles are button text, but behave like table cells. */
.faq-card-main,
.faq-card-title-row,
.compact-record-head {
  min-width: 0;
}

.faq-card-title-row .open-link-btn,
.faq-primary-list .open-link-btn,
.hot-discussion-rail .open-link-btn,
.sales-workbench-main .compact-record .open-link-btn {
  display: -webkit-box;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}
