* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "Segoe UI", Arial, sans-serif;
  color: #1f2933;
  background: #f4f6f8;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 220px;
  border-right: 1px solid #d9e2ec;
  background: #fff;
  z-index: 50;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

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

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border-radius: 8px;
  padding: 0 12px;
  color: #334e68;
  text-decoration: none;
  font-weight: 700;
}

.side-nav a:hover {
  background: #f0f4f8;
  color: #0b7285;
}

.side-nav a.active {
  background: #e6f6f8;
  color: #0b7285;
}

.user-account-panel {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 14px 12px;
  border-top: 1px solid #d9e2ec;
  color: #334e68;
  font-size: 12px;
}

.user-account-panel strong { font-size: 13px; }
.user-account-panel span { color: #627d98; }
.user-account-panel em { color: #b45309; font-style: normal; font-weight: 700; }
.user-account-panel form { margin: 0; }
.user-logout-button { min-width: 0; padding: 7px 10px; font-size: 12px; background: #fff; color: #0b7285; border: 1px solid #9fb3c8; }
.user-logout-button:hover { background: #e6f6f8; }

.user-auth-page { display: grid; min-height: 100vh; place-items: center; padding: 24px; background: #eaf1f6; }
.user-auth-card { width: min(420px, 100%); padding: 34px; border: 1px solid #d9e2ec; border-radius: 8px; background: #fff; box-shadow: 0 16px 36px rgba(23, 50, 77, 0.12); }
.user-auth-kicker { margin: 0 0 8px; color: #0b7285; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.user-auth-card h1 { margin: 0 0 10px; color: #17324d; font-size: 26px; }
.user-auth-card > p { color: #627d98; line-height: 1.6; }
.user-auth-form { display: grid; gap: 14px; margin-top: 24px; }
.user-auth-form input { width: 100%; border: 1px solid #bcccdc; border-radius: 6px; padding: 10px; background: #fff; }
.user-auth-form button { width: 100%; background: #0b7285; }
.user-auth-notice { margin-top: 18px; padding: 10px 12px; border: 1px solid #f5c2c7; border-radius: 6px; color: #9b2c2c; background: #fff7f7; }
.user-auth-notice p { margin: 0; }
.user-status-card { text-align: center; }
.user-status-meta { font-size: 13px; }
.user-status-link { display: inline-flex; margin-top: 16px; color: #0b7285; font-weight: 700; text-decoration: none; }

.app-main {
  min-width: 0;
  margin-left: 220px;
}

.topbar {
  background: #17324d;
  color: #fff;
  padding: 22px 32px;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0;
}

.topbar p {
  margin: 0;
  color: #d8e2ed;
}

.management-mode-banner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 32px;
  border-bottom: 1px solid #e3b25e;
  background: #fff3d9;
  color: #543b12;
}

.management-mode-banner strong,
.management-mode-banner span {
  display: inline-block;
  margin-right: 12px;
}

.management-mode-banner p {
  margin: 4px 0 0;
  font-size: 13px;
}

.management-mode-banner form {
  flex: 0 0 auto;
  margin: 0;
}

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

/* Task results need room for summaries, filters, and the wide opportunity table. */
.container.task-result-page {
  width: calc(100% - 32px);
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
  padding: 24px 0;
}

.panel {
  background: #fff;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.panel h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea,
button {
  font: inherit;
}

input[type="file"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 10px;
  background: #fff;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

.wide {
  grid-column: 1 / -1;
}

.filter-analysis-submit { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.filter-preview-header .section-title-row { align-items: flex-start; gap: 16px; }
.filter-preview-query { display: flex; flex-wrap: wrap; gap: 12px 20px; padding-top: 8px; color: #486581; }
.filter-preview-query strong { color: #102a43; }
.filter-preview-form { display: grid; gap: 18px; }
.filter-preview-reanalyze { margin-bottom: 0; }
.filter-preview-section + .filter-preview-section { border-top: 1px solid #e6edf3; margin-top: 18px; padding-top: 18px; }
.filter-preview-section h3 { margin: 0 0 12px; font-size: 15px; }
.preview-summary-grid { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 8px; }
.preview-summary-grid span { border: 1px solid #d9e2ec; border-radius: 6px; padding: 9px 10px; color: #627d98; }
.preview-summary-grid b { color: #102a43; margin-left: 4px; }
.preview-warnings { margin-top: 12px; color: #7c2d12; }
.preview-warnings ul { margin: 8px 0 0; padding-left: 20px; }
.preview-result-count { white-space: nowrap; color: #0b7285; }
.rule-card-list { display: grid; gap: 12px; }
.rule-card { border: 1px solid #d9e2ec; border-left: 4px solid #0b7285; border-radius: 6px; padding: 14px; overflow-wrap: anywhere; }
.rule-card--unsupported, .rule-card--ambiguous { border-left-color: #c92a2a; }
.rule-card--warning { border-left-color: #b45309; }
.rule-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rule-status { color: #627d98; font-size: 12px; white-space: nowrap; }
.rule-card p { margin: 9px 0; }
.rule-detail-grid { display: grid; grid-template-columns: repeat(3, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.rule-detail-grid span { padding: 10px; background: #f7fafc; border-radius: 5px; color: #486581; }
.rule-detail-grid label { font-size: 12px; gap: 5px; }
.rule-detail-grid input, .rule-detail-grid select { padding: 8px; }
.rule-warning { color: #9c2f12; font-weight: 600; }
.rule-resolution { border: 1px solid #f0c36d; border-radius: 6px; display: grid; gap: 8px; margin: 12px 0 0; padding: 10px; }
.funnel-list { display: grid; gap: 7px; }
.funnel-list p, .funnel-list div { margin: 0; display: flex; justify-content: space-between; gap: 16px; padding: 9px 10px; border-bottom: 1px solid #edf2f7; }
.filter-preview-confirm { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

@media (max-width: 860px) {
  .preview-summary-grid, .rule-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .preview-summary-grid, .rule-detail-grid { grid-template-columns: minmax(0, 1fr); }
  .filter-preview-header .section-title-row, .rule-card header, .funnel-list div { align-items: flex-start; flex-direction: column; }
}

.check {
  flex-direction: row;
  align-items: center;
  font-weight: 500;
}

button {
  width: fit-content;
  min-width: 160px;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  background: #0b7285;
  color: #fff;
  cursor: pointer;
}

button:hover {
  background: #095c6b;
}

.secondary-button {
  border: 1px solid #9fb3c8;
  background: #fff;
  color: #0b7285;
}

.secondary-button:hover {
  border-color: #0b7285;
  background: #e6f6f8;
}

.small-button {
  min-width: 0;
  padding: 7px 10px;
  font-size: 12px;
}

.danger-button {
  width: fit-content;
  min-width: 0;
  border: 1px solid #f5b7b1;
  border-radius: 6px;
  padding: 7px 10px;
  background: #fff5f5;
  color: #c92a2a;
  font-size: 12px;
  font-weight: 700;
}

.danger-button:hover {
  border-color: #d64545;
  background: #ffe3e3;
}

.icon-button {
  min-width: 52px;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

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

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title-row h2 {
  margin: 0;
}

/* Shared top-right operations for the profit and store workbenches. */
.page-title-action-row {
  align-items: center;
}

.page-title-action-row > h2 {
  flex: 1 1 auto;
}

.page-action-bar {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.page-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  margin: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

button.page-action-button {
  width: auto;
}

.page-action-button.page-action-primary {
  border: 1px solid #0b7285;
  background: #0b7285;
  color: #fff;
}

.page-action-button.page-action-primary:hover {
  border-color: #095c6b;
  background: #095c6b;
}

.page-action-button.page-action-secondary {
  border: 1px solid #0b7285;
  background: #fff;
  color: #0b7285;
}

.page-action-button.page-action-secondary:hover {
  background: #e6f6f8;
}

.page-action-button.page-action-tertiary {
  border: 1px solid #bcccdc;
  background: #fff;
  color: #52606d;
}

.page-action-button.page-action-tertiary:hover {
  border-color: #9fb3c8;
  background: #f0f4f8;
  color: #334e68;
}

.page-action-button:focus-visible {
  outline: 3px solid rgba(11, 114, 133, 0.32);
  outline-offset: 2px;
}

.page-action-button:disabled,
.page-action-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.55;
}

/* Account-management summary is display-only and intentionally isolated from other stat grids. */
.account-summary-panel {
  padding: 18px 20px 16px;
}

.account-summary-header {
  margin-bottom: 12px;
}

.account-summary-header .hint {
  margin: 5px 0 0;
  color: #627d98;
  line-height: 1.5;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.account-stat-card {
  min-width: 0;
  min-height: 88px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.account-stat-label,
.account-stat-value {
  display: block;
}

.account-stat-label {
  color: #627d98;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}

.account-stat-value {
  margin-top: 8px;
  color: #17324d;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
}

.account-stat-card--normal .account-stat-value { color: #15803d; }
.account-stat-card--paused .account-stat-value { color: #b45309; }
.account-stat-card--deleted .account-stat-value { color: #829ab1; }
.account-stat-card--quota .account-stat-value { color: #0b7285; }

.deleted-task-panel {
  border-color: #f5b7b1;
}

.filter-summary {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 10px 12px;
  margin: 12px 0;
  background: #f8fafc;
}

.filter-summary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.filter-summary li {
  color: #334e68;
  font-size: 13px;
}

.profit-table-wrap {
  max-height: 720px;
}

.workspace-pool-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border-left: 3px solid #0f766e;
  background: #f0fdfa;
  color: #134e4a;
  font-size: 13px;
}

.workspace-scope-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.workspace-scope-tabs a {
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 10px;
  color: #334e68;
  text-decoration: none;
  font-size: 13px;
}

.workspace-scope-tabs a:hover,
.workspace-scope-tabs a:focus-visible,
.workspace-scope-tabs a.active {
  border-color: #0f766e;
  background: #e6fffa;
  color: #115e59;
  outline: 2px solid transparent;
}

.profit-source-column {
  min-width: 190px;
  max-width: 240px;
}

.profit-source-column strong,
.profit-source-column small {
  display: block;
  overflow-wrap: anywhere;
}

.profit-source-column small {
  margin-top: 3px;
}

.store-queue-state {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 7px;
  border: 1px solid #9fb3c8;
  border-radius: 5px;
  color: #334e68;
  background: #f0f4f8;
  font-size: 12px;
  font-weight: 700;
}

.store-queue-state.pending {
  border-color: #0f766e;
  color: #115e59;
  background: #f0fdfa;
}

.profit-table {
  min-width: 2920px;
}

.profit-table th {
  position: sticky;
  top: 0;
}

.profit-table input {
  width: 110px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 6px 8px;
  background: #fff;
  font-size: 12px;
}

.profit-table input[type="checkbox"] {
  width: auto;
  min-width: 0;
}

.profit-table .wide-input {
  width: 180px;
}

.profit-table .number-input {
  width: 86px;
}

.profit-list-price-cell {
  min-width: 132px;
  white-space: normal;
}

.profit-table .profit-list-price-input {
  width: 96px;
}

.profit-list-price-meta {
  display: block;
  margin-top: 4px;
  color: #627d98;
  font-size: 11px;
  line-height: 1.35;
  white-space: nowrap;
}

.profit-list-price-cell .restore-auto-list-price {
  margin-top: 6px;
  padding: 4px 7px;
  font-size: 11px;
  white-space: nowrap;
}

.profit-filter-panel {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 12px;
  margin: 0 0 14px;
  background: #f8fafc;
}

.profit-filter-summary {
  display: inline-block;
  margin-left: 10px;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
}

.profit-filter-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.profit-owner-filter {
  display: flex;
  align-items: end;
  margin: 0 0 10px;
}

.profit-owner-filter label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #627d98;
  font-size: 12px;
  font-weight: 700;
}

.profit-owner-filter select {
  min-width: 170px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 9px;
  color: #243b53;
  font-size: 13px;
}

.profit-filter-form[hidden] {
  display: none;
}

.profit-filter-form label {
  gap: 5px;
  color: #627d98;
  font-size: 12px;
}

.profit-filter-form input,
.profit-filter-form select {
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  font-size: 13px;
}

.profit-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.profit-quick-filters {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #627d98;
  font-size: 13px;
  font-weight: 700;
}

.quick-profit-filter.active {
  border-color: #0b7285;
  background: #e6fffa;
  color: #0b7285;
}

.small-thumb {
  width: 64px;
  height: 64px;
}

.profit-positive {
  color: #15803d;
  font-weight: 700;
}

.profit-negative {
  color: #c92a2a;
  font-weight: 700;
}

.profit-low {
  color: #d97706;
  font-weight: 700;
}

.profit-mid {
  color: #2563eb;
  font-weight: 700;
}

.profit-high {
  color: #15803d;
  font-weight: 700;
}

.profit-save-state {
  display: block;
  margin-top: 6px;
  color: #829ab1;
  font-size: 12px;
}

.profit-save-state.ok {
  color: #0b7285;
  font-weight: 700;
}

.assigned-store {
  margin-bottom: 6px;
  color: #0b7285;
  font-size: 12px;
  font-weight: 700;
}

.store-create {
  margin-bottom: 14px;
}

.compact-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.compact-form input,
.inline-shop-form input,
.store-list-wrap input,
.store-items-table select,
.store-note-cell textarea,
#assign-store-select {
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  font-size: 13px;
}

.compact-form input {
  min-width: 220px;
}

.store-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.store-tabs a {
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  padding: 7px 12px;
  background: #fff;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.store-tabs a.active {
  border-color: #0b7285;
  background: #e6fffa;
  color: #0b7285;
}

.store-status-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
}

.store-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
  margin: 12px 0 6px;
  padding: 12px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #f8fbff;
}

.store-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #52606d;
  font-size: 12px;
  font-weight: 700;
}

.store-filter-form input {
  min-width: 180px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 9px;
  background: #fff;
  color: #102a43;
  font-size: 13px;
}

.store-filter-form input[name="store_keyword"] {
  min-width: 360px;
}

.workspace-scope-banner,
.store-queue-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 0;
  color: #334e68;
  font-size: 13px;
}

.workspace-scope-banner {
  padding: 10px 12px;
  border-left: 3px solid #0b7285;
  background: #f0fdfb;
}

.store-queue-summary strong {
  color: #0f766e;
}

.store-queue-batch-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #cfe7e3;
  border-radius: 6px;
  background: #f4fbfa;
}

.store-queue-batch-bar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #334e68;
  font-size: 13px;
  font-weight: 700;
}

.store-queue-batch-bar select {
  max-width: 260px;
}

.store-filter-form input[name="keyword"] {
  min-width: 300px;
}

.store-list-wrap {
  max-height: 360px;
}

.store-items-table {
  min-width: 2200px;
}

.store-product-title {
  min-width: 260px;
  white-space: normal;
}

.store-product-title strong,
.store-product-title span,
.store-product-title small {
  display: block;
}

.store-product-title span,
.store-product-title small {
  color: #829ab1;
  margin-top: 4px;
}

.store-note-cell textarea {
  display: block;
  width: 180px;
  min-height: 44px;
  margin-bottom: 6px;
  resize: vertical;
}

.store-save-state {
  display: block;
  margin-top: 6px;
  color: #829ab1;
  font-size: 12px;
}

.store-save-state.ok {
  color: #0b7285;
  font-weight: 700;
}

.backup-restore-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
}

.backup-restore-form label {
  min-width: 280px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 42, 67, 0.42);
}

.modal-backdrop[hidden] {
  display: none;
}

.confirm-modal {
  width: min(420px, 100%);
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(16, 42, 67, 0.22);
}

.confirm-modal h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.confirm-modal p {
  margin: 0 0 14px;
  color: #334e68;
  line-height: 1.6;
}

.modal-check {
  margin: 4px 0 16px;
  color: #334e68;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  max-height: 620px;
  border: 1px solid #e6edf3;
  border-radius: 6px;
}

table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  font-size: 13px;
}

.table-wrap.compact table {
  min-width: 900px;
}

th,
td {
  border-bottom: 1px solid #e6edf3;
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  background: #f0f4f8;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

.cell-text {
  display: inline-block;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.thumb {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #f8fafc;
}

.image-cell {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

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

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  padding: 7px 10px;
  background: #f8fafc;
  color: #0b7285;
  text-decoration: none;
  font-weight: 700;
}

.link-button.small {
  min-width: 72px;
  padding: 5px 8px;
  font-size: 12px;
}

.link-button:hover {
  border-color: #0b7285;
  background: #e6f6f8;
}

.copy-button {
  min-width: 92px;
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  padding: 6px 9px;
  background: #fff;
  color: #334e68;
  font-size: 12px;
}

.copy-button:hover {
  border-color: #0b7285;
  background: #e6f6f8;
}

.manual-source-form {
  display: grid;
  grid-template-columns: 220px 110px 220px auto;
  align-items: end;
  gap: 8px;
  min-width: 700px;
}

.manual-source-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
}

.manual-source-form input {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 8px;
  background: #fff;
}

.save-source-button {
  min-width: 72px;
  padding: 8px 10px;
  border-radius: 6px;
}

.source-status {
  align-self: center;
  color: #0b7285;
  font-weight: 700;
  font-size: 12px;
}

.muted {
  color: #829ab1;
}

.hint {
  color: #627d98;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.shipping-settings {
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 14px;
}

.shipping-settings legend {
  padding: 0 8px;
  font-weight: 700;
}

.shipping-settings-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  color: #334e68;
  font-weight: 700;
}

.shipping-settings-summary button {
  flex: 0 0 auto;
  min-width: 150px;
  padding: 8px 12px;
  font-size: 13px;
}

.shipping-setting-details {
  margin-top: 12px;
}

.shipping-setting-details[hidden] {
  display: none;
}

.shipping-setting-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 14px;
}

.shipping-setting-block {
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.shipping-setting-block h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.shipping-setting-block label {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  margin-bottom: 8px;
  gap: 8px;
  font-size: 13px;
}

.shipping-setting-block input {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 7px 8px;
}

.compact-setting {
  grid-column: 1 / -1;
  max-width: 420px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.workbench-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: start;
}

.operator-box {
  display: grid;
  gap: 10px;
}

.operator-box input,
.note-panel textarea {
  width: 100%;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 9px 10px;
}

.workbench-sticky {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 14px -10px 18px;
  padding: 10px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 22px rgba(16, 42, 67, 0.08);
}

.progress-stats {
  display: grid;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 10px;
  margin: 0 0 10px;
}

.progress-stats .stat-card {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  background: #f8fafc;
  padding: 10px;
  color: #1f2933;
  text-align: left;
  min-width: 0;
  width: 100%;
}

.progress-stats .total {
  background: #eef2f6;
}

.progress-stats b,
.progress-stats span {
  display: block;
}

.progress-stats span {
  margin-top: 4px;
  font-size: 18px;
}

.progress-stats button.stat-card {
  cursor: pointer;
}

.progress-stats button.stat-card:hover,
.progress-stats button.stat-card.active {
  border-color: #0b7285;
  background: #e6f6f8;
}

.progress-stats button.stat-card.active b,
.progress-stats button.stat-card.active span {
  color: #0b7285;
}

.progress-stats button.stat-card[data-filter="未处理"].active {
  border-color: #829ab1;
  background: #f0f4f8;
}

.progress-stats button.stat-card[data-filter="已打开商品卡"].active {
  border-color: #2f80ed;
  background: #eaf3ff;
}

.progress-stats button.stat-card[data-filter="已采集"].active {
  border-color: #1f9d55;
  background: #e3f9e5;
}

.progress-stats button.stat-card[data-filter="编辑中"].active {
  border-color: #f59e0b;
  background: #fff4d6;
}

.progress-stats button.stat-card[data-filter="已上架"].active {
  border-color: #0f766e;
  background: #dff8f4;
}

.progress-stats button.stat-card[data-filter="已淘汰"].active {
  border-color: #d64545;
  background: #ffe3e3;
}

.progress-stats button.stat-card[data-filter="需要复核"].active {
  border-color: #7c3aed;
  background: #f1e9ff;
}

.current-view-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.batch-actions button,
.batch-actions .link-button {
  min-width: 112px;
  padding: 7px 10px;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
  gap: 12px;
}

.product-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  align-items: start;
}

.product-card[hidden] {
  display: none;
}

.product-card-media {
  position: relative;
}

.product-thumb {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #f8fafc;
}

.product-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #829ab1;
}

.status-pill {
  display: inline-flex;
  justify-content: center;
  margin-top: 6px;
  max-width: 110px;
  width: 110px;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 700;
}

.status-pill,
.status-pill[data-status="未处理"] {
  background: #eef2f6;
  color: #52606d;
}

.status-pill[data-status="已打开商品卡"] {
  background: #eaf3ff;
  color: #2f80ed;
}

.status-pill[data-status="已采集"] {
  background: #e3f9e5;
  color: #1f9d55;
}

.status-pill[data-status="编辑中"] {
  background: #fff4d6;
  color: #b7791f;
}

.status-pill[data-status="已上架"] {
  background: #dff8f4;
  color: #0f766e;
}

.status-pill[data-status="已淘汰"] {
  background: #ffe3e3;
  color: #d64545;
}

.status-pill[data-status="需要复核"] {
  background: #f1e9ff;
  color: #7c3aed;
}

.product-card-body {
  min-width: 0;
}

.product-card h3 {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 1.32;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cn-title {
  margin: 0 0 7px;
  color: #52606d;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px 8px;
  margin: 0 0 7px;
}

.product-meta div {
  min-width: 0;
}

.product-meta dt {
  color: #829ab1;
  font-size: 11px;
  line-height: 1.15;
}

.product-meta dd {
  margin: 1px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.shipping-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
  border: 1px solid #e6edf3;
  border-radius: 8px;
  padding: 5px 7px;
  background: #f8fafc;
  color: #627d98;
  font-size: 12px;
  line-height: 1.4;
}

.shipping-summary > b {
  color: #334e68;
}

.shipping-summary label,
.shipping-summary div {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 3px;
  min-width: 0;
  color: #627d98;
  font-size: 12px;
  font-weight: 600;
}

.shipping-summary strong {
  color: #1f2933;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shipping-summary .shipping-status {
  color: #627d98;
  font-size: 12px;
  font-weight: 600;
}

.shipping-summary input {
  width: 74px;
  border: 1px solid #bcccdc;
  border-radius: 6px;
  padding: 4px 6px;
  background: #fff;
}

.product-actions,
.status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.card-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.product-actions button,
.status-actions button,
.operator-box button {
  min-width: 0;
  padding: 6px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.primary-action {
  background: #0b7285;
  font-weight: 700;
  min-height: 30px;
}

.status-actions button {
  background: #334e68;
}

.status-actions {
  display: flex;
  flex-wrap: wrap;
}

.status-actions button:hover {
  background: #243b53;
}

button:disabled {
  background: #bcccdc;
  cursor: not-allowed;
}

.more-actions,
.note-panel {
  border: 1px solid #e6edf3;
  border-radius: 8px;
  background: #f8fafc;
  margin-top: 6px;
}

.more-actions summary,
.note-panel summary {
  cursor: pointer;
  padding: 5px 8px;
  color: #334e68;
  font-size: 12px;
  font-weight: 700;
}

.more-actions-body {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 8px 8px;
}

.more-actions-body button {
  min-width: 0;
  border: 1px solid #9fb3c8;
  background: #fff;
  color: #334e68;
  padding: 5px 7px;
  font-size: 12px;
}

.more-actions-body button:hover {
  border-color: #0b7285;
  background: #e6f6f8;
}

.note-panel textarea {
  resize: vertical;
  min-height: 56px;
  margin: 0 8px 8px;
  width: calc(100% - 16px);
}

.process-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
  color: #627d98;
  font-size: 12px;
}

.save-state.ok {
  color: #0b7285;
  font-weight: 700;
}

.stats div {
  border: 1px solid #d9e2ec;
  border-radius: 6px;
  padding: 12px;
  background: #f8fafc;
}

.stats b,
.stats span {
  display: block;
}

.stats span {
  margin-top: 6px;
  font-size: 20px;
}

.downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.downloads a,
td a {
  color: #0b7285;
  text-decoration: none;
  font-weight: 600;
}

.downloads a {
  border: 1px solid #9fb3c8;
  border-radius: 6px;
  padding: 8px 10px;
  background: #f8fafc;
}

.compact-actions {
  margin-top: 8px;
}

.notice {
  border: 1px solid #f0b429;
  background: #fffbea;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.message {
  color: #52606d;
}

@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: auto;
    border-right: 0;
    border-bottom: 1px solid #d9e2ec;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-main {
    margin-left: 0;
  }

  .management-mode-banner {
    align-items: flex-start;
    padding: 12px 16px;
  }

  .management-mode-banner strong,
  .management-mode-banner span {
    display: block;
    margin: 0 0 4px;
  }

  .form-grid,
  .stats,
  .workbench-head,
  .progress-stats,
  .product-card,
  .shipping-setting-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 14px;
  }

  .container.task-result-page {
    width: calc(100% - 28px);
    padding: 14px 0;
  }

  .page-title-action-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .page-action-bar {
    width: 100%;
    justify-content: flex-start;
  }

  .account-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .store-filter-form input[name="keyword"],
  .store-filter-form input {
    min-width: 0;
    width: 100%;
  }

  .workspace-scope-banner,
  .store-queue-summary {
    flex-direction: column;
    gap: 6px;
  }

  .store-queue-batch-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .store-queue-batch-bar select,
  .store-queue-batch-bar button {
    width: 100%;
    max-width: none;
  }
}
.team-actions { min-width: 260px; }
.team-actions details { margin: 0 0 6px; }
.team-actions summary { cursor: pointer; color: #315fba; font-size: 13px; }
.team-operation-form { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.team-operation-form input, .team-operation-form select { min-width: 100px; max-width: 160px; padding: 5px 7px; }
.team-action-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-account-summary { display: flex; flex-wrap: wrap; gap: 12px; }
.permission-account-summary div { min-width: 180px; border: 1px solid #e6edf3; border-radius: 6px; padding: 10px; background: #f8fafc; }
.permission-account-summary span, .permission-account-summary strong { display: block; }
.permission-account-summary span { color: #829ab1; font-size: 12px; }
.permission-account-summary strong { margin-top: 4px; color: #334e68; }
.permission-group-panel { margin-bottom: 14px; }
.permission-table { min-width: 980px; }
.permission-table code { color: #52606d; font-size: 12px; }
.permission-choice { min-width: 112px; border: 1px solid #bcccdc; border-radius: 6px; padding: 6px 8px; background: #fff; }
.permission-save-panel { display: flex; justify-content: flex-end; }
.permission-reset-panel { border-color: #f5b7b1; }
.audit-log-header { margin-bottom: 12px; }
.audit-log-header h2 { margin-bottom: 6px; }
.audit-log-header .hint { margin: 0; max-width: 760px; line-height: 1.6; }
.audit-log-filter-panel { padding: 16px 20px; }
.audit-filter-heading { margin: 0 0 14px !important; font-size: 15px !important; color: #334e68; }
.audit-log-filter-form { display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 12px; align-items: end; }
.audit-log-filter-form label { color: #486581; font-size: 13px; }
.audit-log-filter-form .wide-field { grid-column: span 2; }
.audit-log-filter-form input, .audit-log-filter-form select { min-height: 40px; }
.audit-log-filter-form select:disabled { color: #52606d; background: #f0f4f8; cursor: not-allowed; }
.audit-log-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.audit-log-filter-actions button, .audit-log-filter-actions .link-button { min-width: 0; min-height: 40px; }
.audit-log-summary { margin: 0 0 14px; color: #52606d; font-size: 13px; }
.audit-log-summary strong { color: #17324d; }
.audit-log-table { min-width: 1240px; }
.audit-log-table td { vertical-align: top; }
.audit-log-table th { white-space: nowrap; }
.audit-log-workspace { display: block; margin-top: 4px; color: #829ab1; font-size: 12px; }
.audit-log-tag { display: inline-flex; align-items: center; min-height: 25px; border-radius: 5px; padding: 3px 8px; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.audit-log-tag.entity-info, .audit-log-tag.action-info { color: #0b7285; background: #e6f6f8; }
.audit-log-tag.entity-teal { color: #0f766e; background: #e6fffb; }
.audit-log-tag.entity-gold { color: #9a6700; background: #fff8c5; }
.audit-log-tag.entity-violet { color: #6b21a8; background: #f3e8ff; }
.audit-log-tag.entity-blue { color: #1d4ed8; background: #e8f1ff; }
.audit-log-tag.entity-slate, .audit-log-tag.action-neutral { color: #52606d; background: #edf2f7; }
.audit-log-tag.action-success { color: #166534; background: #dcfce7; }
.audit-log-tag.action-danger { color: #b42318; background: #fee4e2; }
.audit-log-tag.direction-info { color: #0b7285; background: #e6f6f8; }
.audit-log-tag.direction-success { color: #166534; background: #dcfce7; }
.audit-log-tag.direction-violet { color: #6b21a8; background: #f3e8ff; }
.audit-log-tag.action-warning { color: #9a6700; background: #fff8c5; }
.audit-log-summary-text, .audit-log-entity-id { display: block; max-width: 280px; overflow-wrap: anywhere; line-height: 1.5; }
.audit-log-entity-id { color: #334e68; font-size: 12px; white-space: normal; }
.audit-log-detail-link { white-space: nowrap; }
.audit-log-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; color: #52606d; font-size: 13px; }
.audit-log-pagination .link-button { min-width: 0; padding: 7px 10px; }
.audit-log-meta { display: grid; grid-template-columns: repeat(2, minmax(240px, 1fr)); gap: 0; margin: 0; border: 1px solid #e6edf3; border-bottom: 0; }
.audit-log-meta div { display: grid; grid-template-columns: 112px minmax(0, 1fr); border-bottom: 1px solid #e6edf3; }
.audit-log-meta dt, .audit-log-meta dd { margin: 0; padding: 10px 12px; }
.audit-log-meta dt { background: #f8fafc; color: #52606d; font-weight: 700; }
.audit-log-payload { display: grid; gap: 10px; }
.audit-log-payload details { border: 1px solid #e6edf3; border-radius: 6px; background: #fff; }
.audit-log-payload summary { padding: 9px 12px; cursor: pointer; color: #334e68; font-weight: 700; }
.audit-log-payload pre { max-height: 320px; margin: 0; overflow: auto; padding: 10px 12px; border-top: 1px solid #e6edf3; white-space: pre-wrap; word-break: break-word; color: #334e68; font-family: Consolas, "Courier New", monospace; font-size: 12px; }
.audit-log-empty { display: grid; justify-items: start; gap: 8px; margin: 0; padding: 28px 0; color: #627d98; text-align: left; }
.audit-log-empty strong { color: #334e68; font-size: 15px; }
.audit-log-empty p { margin: 0; line-height: 1.6; }
.audit-log-detail-summary { margin: 0 0 6px; color: #334e68; font-weight: 700; line-height: 1.6; }
.audit-log-reader-note { margin: 0 0 18px; color: #627d98; font-size: 12px; line-height: 1.6; }
.team-overview-header { margin-bottom: 12px; }
.team-overview-header h2 { margin-bottom: 6px; }
.team-overview-header .hint { margin: 0; line-height: 1.6; }
.team-overview-employee-link { color: #1f4e9e; text-decoration: none; }
.team-overview-employee-link:hover { color: #163d7a; text-decoration: underline; }
.team-overview-employee-link:focus-visible { outline: 3px solid #7fb3ff; outline-offset: 3px; border-radius: 3px; }
.team-employee-detail-header h2 { margin: 12px 0 6px; }
.team-employee-profile { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 10px; margin: 18px 0 0; }
.team-employee-profile div { min-width: 0; padding: 10px 12px; border: 1px solid #e6edf3; border-radius: 6px; background: #f8fafc; }
.team-employee-profile dt { color: #627d98; font-size: 12px; }
.team-employee-profile dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #334e68; font-weight: 700; }
.team-employee-detail-filter-panel .hint { margin: 12px 0 0; }
.team-employee-detail-stats { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.team-employee-detail-stats article { min-width: 0; border: 1px solid #dce7f2; border-radius: 6px; padding: 13px; background: #fff; }
.team-employee-detail-stats span { display: block; min-height: 34px; color: #627d98; font-size: 12px; line-height: 1.4; }
.team-employee-detail-stats strong { display: block; margin-top: 8px; overflow-wrap: anywhere; color: #1f4e9e; font-size: 20px; }
.team-employee-detail-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; margin: 14px 0; }
.team-employee-detail-section { min-width: 0; }
.team-employee-status-list { display: grid; gap: 7px; }
.team-employee-status-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border-bottom: 1px solid #edf2f7; padding: 8px 0; color: #334e68; }
.team-employee-status-row span:first-child { overflow-wrap: anywhere; }
.team-employee-status-row strong { color: #1f4e9e; font-size: 12px; }
.team-employee-store-table, .team-employee-items-table { width: 100%; table-layout: fixed; }
.team-employee-store-table { min-width: 980px; }
.team-employee-items-table { min-width: 1440px; }
.team-employee-store-table td, .team-employee-items-table td { overflow: hidden; vertical-align: middle; }
.team-employee-store-col-name { width: 200px; }
.team-employee-store-col-owner { width: 220px; }
.team-employee-store-col-count { width: 100px; }
.team-employee-store-col-status { width: 280px; }
.team-employee-store-col-time { width: 170px; }
.team-employee-item-col-product { width: 360px; }
.team-employee-item-col-owner { width: 220px; }
.team-employee-item-col-store { width: 170px; }
.team-employee-item-col-category { width: 250px; }
.team-employee-item-col-price { width: 110px; }
.team-employee-item-col-status { width: 120px; }
.team-employee-item-col-time { width: 170px; }
.team-employee-product-cell { min-width: 0; }
  .team-employee-product-cell strong, .team-employee-product-cell code { display: block; overflow-wrap: anywhere; }
.team-employee-product-cell strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: 1.5; }
  .team-employee-product-cell code { margin-top: 5px; color: #52606d; font-size: 12px; white-space: normal; }
  .team-employee-product-cell .team-product-sku, .team-employee-product-cell .team-product-sku-fallback { margin-top: 5px; }
.team-employee-log-list { display: grid; gap: 10px; }
.team-employee-log-row { display: grid; gap: 6px; border-bottom: 1px solid #edf2f7; padding: 0 0 10px; color: #334e68; }
.team-employee-log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.team-employee-log-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.team-employee-log-row > div strong { color: #52606d; font-size: 12px; }
.team-employee-log-row p { margin: 0; overflow-wrap: anywhere; line-height: 1.5; }
.team-employee-log-row code { overflow-wrap: anywhere; white-space: normal; color: #52606d; font-size: 12px; }
.team-employee-log-row a { width: fit-content; color: #1f4e9e; font-size: 13px; font-weight: 700; }
.team-overview-filter-panel { padding: 16px 20px; }
.team-overview-filter-form { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.team-overview-filter-form label { display: grid; min-width: 0; gap: 5px; color: #486581; font-size: 13px; }
.team-overview-filter-form input, .team-overview-filter-form select { min-width: 0; min-height: 40px; }
.team-overview-filter-form select:disabled { color: #52606d; background: #f0f4f8; cursor: not-allowed; }
.team-overview-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.team-overview-filter-actions button, .team-overview-filter-actions .link-button { min-width: 0; min-height: 40px; }
.team-overview-date-notice { margin: 12px 0 0; color: #9a6700; font-size: 13px; }
.team-overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
.team-overview-stats article { min-width: 0; border: 1px solid #d9e2ec; border-radius: 6px; padding: 14px; background: #fff; }
.team-overview-stats span, .team-overview-stats strong { display: block; }
.team-overview-stats span { color: #627d98; font-size: 13px; line-height: 1.4; }
.team-overview-stats strong { margin-top: 8px; color: #17324d; font-size: 24px; overflow-wrap: anywhere; }
.team-overview-unassigned-card { border-color: #e0b45a !important; background: #fffdf5 !important; }
.team-overview-unassigned-card p { margin: 7px 0 10px; color: #7c5b16; font-size: 12px; line-height: 1.5; }
.team-overview-unassigned-card .link-button { min-width: 0; }
.team-overview-charts { margin: 12px 0; }
.team-overview-chart-drilldown-note { margin: 0 0 10px; color: #627d98; font-size: 13px; }
.team-overview-chart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(380px, 5fr); align-items: start; gap: 16px; }
.team-overview-chart-card { min-width: 0; margin: 0; border-color: #d9e2ec; padding: 16px 18px; }
.team-overview-chart-right-stack { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; min-width: 0; }
.team-overview-chart-card .section-title-row { margin-bottom: 12px; }
.team-overview-chart-card h2 { margin-bottom: 5px; }
.team-overview-chart-card .hint { margin: 0; }
.team-overview-chart-list { display: grid; gap: 8px; }
.team-overview-chart-row { display: grid; align-items: center; gap: 10px; min-width: 0; }
.team-overview-category-chart .team-overview-chart-row { grid-template-columns: minmax(150px, 220px) minmax(120px, 1fr) minmax(100px, auto); min-height: 44px; }
.team-overview-price-chart .team-overview-chart-row, .team-overview-status-chart .team-overview-chart-row { grid-template-columns: minmax(90px, 110px) minmax(120px, 1fr) minmax(100px, auto); min-height: 38px; }
.team-overview-chart-link { margin: -4px; border: 1px solid transparent; border-radius: 6px; padding: 4px; color: inherit; text-decoration: none; cursor: pointer; }
.team-overview-chart-link:visited { color: inherit; }
.team-overview-chart-link:hover { border-color: #9fb3c8; background: #f8fafc; box-shadow: 0 1px 2px rgba(51, 78, 104, 0.12); }
.team-overview-chart-link:focus-visible, .team-overview-invalid-price-link:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.team-overview-chart-label { min-width: 0; overflow: hidden; color: #334e68; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.team-overview-category-chart .team-overview-chart-label { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.team-overview-price-chart .team-overview-chart-label, .team-overview-status-chart .team-overview-chart-label { white-space: nowrap; text-overflow: ellipsis; }
.team-overview-chart-track { height: 12px; overflow: hidden; border-radius: 3px; background: #e6f6f8; }
.team-overview-chart-track span { display: block; width: var(--team-overview-bar-size); min-width: 0; height: 100%; border-radius: inherit; background: #0b7285; }
.team-overview-chart-track.price { background: #fff4d6; }
.team-overview-chart-track.price span { background: #d97706; }
.team-overview-chart-track.status { background: #e8f1ff; }
.team-overview-chart-track.status span { background: #315fba; }
.team-overview-chart-value { color: #52606d; font-size: 12px; text-align: right; white-space: nowrap; }
.team-overview-chart-note { margin: 14px 0 0; color: #627d98; font-size: 13px; }
.team-overview-invalid-price-link { display: inline-block; color: #9a6700; text-decoration: none; cursor: pointer; }
.team-overview-invalid-price-link:hover { color: #7c5200; text-decoration: underline; }
.team-overview-chart-empty { margin: 0; padding: 12px 0; color: #627d98; }
.team-overview-items-header { display: grid; justify-items: start; gap: 8px; }
.team-overview-items-header h2, .team-overview-items-header p { margin: 0; }
.team-overview-items-drilldown { color: #17324d; font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.team-overview-items-filter-panel { margin-top: 12px; padding: 16px 20px; }
.team-overview-items-filter-form { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.team-overview-items-filter-form label { display: grid; gap: 5px; color: #486581; font-size: 13px; }
.team-overview-items-filter-form input, .team-overview-items-filter-form select { min-width: 0; min-height: 40px; }
.team-overview-items-filter-form select:disabled { color: #52606d; background: #f0f4f8; cursor: not-allowed; }
.team-overview-items-list-panel { margin-top: 12px; }
.team-overview-items-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.team-overview-items-summary { margin: 0 0 14px; color: #52606d; font-size: 13px; }
.team-overview-items-summary strong { color: #17324d; }
.team-overview-current-page-note { margin: 0 0 14px; color: #627d98; font-size: 12px; }
.team-overview-table-wrap { width: 100%; max-width: 100%; max-height: none; overflow-x: auto; overflow-y: visible; scrollbar-gutter: stable; }
.team-overview-table-wrap > table { width: 100%; table-layout: fixed; }
.team-overview-items-table { table-layout: fixed; }
.team-overview-table-wrap > table.team-detail-table--category, .team-overview-table-wrap > table.team-detail-table--price, .team-overview-table-wrap > table.team-detail-table--status, .team-overview-table-wrap > table.team-detail-table--responsibility { width: 2135px; min-width: 2135px; }
.team-overview-items-table th, .team-overview-items-table td, .team-overview-table th, .team-overview-table td, .team-employee-store-table th, .team-employee-store-table td, .team-employee-items-table th, .team-employee-items-table td { overflow: hidden; vertical-align: middle; line-height: 1.4; }
.team-overview-items-table th, .team-overview-table th, .team-employee-store-table th, .team-employee-items-table th { white-space: normal; }
.team-overview-items-table tbody tr { height: 62px; }
.team-overview-item-col-select { width: 72px; }
.team-overview-item-col-title { width: 370px; }
  .team-overview-item-col-id { width: 130px; }
.team-overview-item-col-responsible { width: 135px; }
.team-overview-item-col-owner { width: 145px; }
.team-overview-item-col-workspace { width: 170px; }
.team-overview-item-col-store { width: 140px; }
.team-overview-item-col-category { width: 250px; }
.team-overview-item-col-price { width: 110px; }
.team-overview-item-col-status { width: 125px; }
.team-overview-item-col-time { width: 170px; }
.team-overview-item-col-actions { width: 298px; }
.team-overview-item-title, .team-overview-item-category { min-width: 0; overflow: hidden; overflow-wrap: anywhere; line-height: 1.45; }
.team-overview-item-title, .team-overview-item-category { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .team-overview-item-id-cell { min-width: 0; overflow: hidden; }
  .team-product-sku, .team-product-sku-fallback { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.35; }
  .team-product-sku { color: #334e68; }
  .team-product-sku-fallback { color: #627d98; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; }
.team-overview-item-nowrap, .team-overview-nowrap { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-responsibility-feedback { margin: 0 0 12px; border: 1px solid #bcccdc; border-radius: 6px; padding: 9px 11px; color: #334e68; background: #f8fafc; font-size: 13px; }
.team-responsibility-feedback[data-kind="success"] { border-color: #86c7bb; color: #075c55; background: #e6f6f1; }
.team-responsibility-feedback[data-kind="error"] { border-color: #e3a4a4; color: #9b1c1c; background: #fff5f5; }
.team-responsibility-bulk { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 16px; margin: 0 0 12px; border: 1px solid #9fb3c8; border-radius: 6px; padding: 12px; background: #f8fafc; }
.team-responsibility-bulk > div:first-child { display: grid; gap: 3px; color: #334e68; }
.team-responsibility-bulk [data-workspace-summary] { color: #627d98; font-size: 12px; }
.team-responsibility-bulk label { display: grid; flex: 1 1 300px; gap: 5px; min-width: min(300px, 100%); color: #486581; font-size: 12px; font-weight: 700; }
.team-responsibility-bulk select { min-width: 300px; min-height: 38px; }
.team-responsibility-bulk-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.team-responsibility-bulk-actions button { min-height: 38px; }
.team-responsibility-fixed-target { margin: 0; color: #334e68; font-size: 13px; }
.team-responsibility-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.team-responsibility-select, .team-responsibility-check input { width: 16px; height: 16px; accent-color: #0b7285; cursor: pointer; }
.team-responsibility-single { min-width: 210px; }
.team-responsibility-single summary { color: #175d78; cursor: pointer; font-weight: 700; }
.team-responsibility-single[open] { display: grid; gap: 8px; padding-top: 2px; }
.team-responsibility-single p { margin: 0; color: #52606d; font-size: 12px; }
.team-responsibility-single label { display: grid; gap: 5px; color: #486581; font-size: 12px; }
.team-responsibility-single select { min-width: 210px; min-height: 36px; }
.team-responsibility-single button { width: fit-content; min-height: 34px; }
.team-overview-items-pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; color: #52606d; font-size: 13px; }
.team-overview-items-pagination .link-button { min-width: 0; padding: 7px 10px; }
.team-overview-list-panel { margin-top: 12px; }
.team-overview-list-panel .section-title-row { margin-bottom: 12px; }
.team-overview-list-panel h2 { margin-bottom: 5px; }
.team-overview-list-panel .hint { margin: 0; }
.team-overview-table { min-width: 1710px; }
.team-overview-table tbody tr { height: 58px; }
.team-overview-col-employee { width: 190px; }
.team-overview-col-account-status { width: 100px; }
.team-overview-col-role { width: 125px; }
.team-overview-col-load { width: 205px; }
.team-overview-col-count { width: 82px; }
.team-overview-col-listed { width: 120px; }
.team-overview-col-store-count { width: 125px; }
.team-overview-col-assigned-at { width: 170px; }
.team-overview-col-actions { width: 135px; }
.team-overview-employee-cell { overflow: hidden; }
.team-overview-employee-cell > strong, .team-overview-employee-cell .team-overview-employee-link { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-overview-username { display: block; margin-top: 4px; color: #829ab1; font-size: 12px; }
.team-overview-status { display: inline-flex; border-radius: 5px; padding: 3px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.team-overview-status.is-active { color: #0b7285; background: #e6f6f8; }
.team-overview-status.is-inactive { color: #9a6700; background: #fff8c5; }
.team-overview-disabled-link { color: #829ab1; font-size: 13px; white-space: nowrap; cursor: not-allowed; }
.team-overview-pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; margin-top: 16px; color: #52606d; font-size: 13px; }
.team-overview-pagination .link-button { min-width: 0; padding: 7px 10px; }
.team-overview-empty { padding: 28px 0; color: #627d98; }
.team-overview-empty strong { color: #334e68; }
.team-overview-empty p { margin: 8px 0 0; }
.result-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; border-bottom: 1px solid #d9e2ec; }
.result-tabs a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 12px; color: #52606d; text-decoration: none; font-weight: 700; border-bottom: 3px solid transparent; }
.result-tabs a:hover { color: #0b7285; }
.result-tabs a.is-active { color: #0b7285; border-bottom-color: #0b7285; }
.opportunity-panel { min-width: 0; }
.opportunity-empty { padding: 28px 0; color: #627d98; }
.opportunity-empty h2 { margin: 0 0 8px; color: #17324d; }
.opportunity-empty p { margin: 0; line-height: 1.6; }
.opportunity-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: start; gap: 12px 20px; }
.opportunity-heading h2, .opportunity-heading p { margin: 0; }
.opportunity-heading h2 { color: #17324d; }
.opportunity-heading p { margin-top: 5px; max-width: 760px; color: #627d98; line-height: 1.55; }
.opportunity-explainer { flex: 0 1 390px; min-width: min(100%, 280px); border: 1px solid #d9e2ec; border-radius: 6px; padding: 9px 11px; color: #486581; background: #f8fafc; font-size: 13px; }
.opportunity-explainer summary { color: #175d78; cursor: pointer; font-weight: 700; }
.opportunity-explainer p { margin: 8px 0 0; color: #486581; font-size: 13px; }
.opportunity-summary-grid, .opportunity-tier-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.opportunity-summary-card, .opportunity-tier-card { min-width: 0; border: 1px solid #d9e2ec; border-radius: 6px; padding: 13px; background: #fff; }
.opportunity-summary-card span, .opportunity-summary-card strong { display: block; }
.opportunity-summary-card span { color: #627d98; font-size: 12px; line-height: 1.4; }
.opportunity-summary-card strong { margin-top: 7px; color: #17324d; font-size: 22px; overflow-wrap: anywhere; }
.opportunity-tier-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.opportunity-tier-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; color: #334e68; text-decoration: none; }
.opportunity-tier-card:hover, .opportunity-tier-card.is-selected { border-color: #0b7285; background: #f0fbfc; }
.opportunity-tier-card strong { color: #17324d; font-size: 22px; line-height: 1; }
.opportunity-tier-card span { color: #627d98; font-size: 12px; text-align: right; }
.opportunity-tier-card small { grid-column: 1 / -1; color: #627d98; line-height: 1.45; }
.opportunity-tier-card.tier-priority { border-top: 3px solid #0b7285; }
.opportunity-tier-card.tier-calculate { border-top: 3px solid #315fba; }
.opportunity-tier-card.tier-watch { border-top: 3px solid #d97706; }
.opportunity-tier-card.tier-not_recommended { border-top: 3px solid #829ab1; }
.opportunity-filter-form { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 12px; align-items: end; margin-top: 18px; padding: 14px; border: 1px solid #d9e2ec; border-radius: 6px; background: #f8fafc; }
.opportunity-filter-form label { display: grid; min-width: 0; gap: 5px; color: #486581; font-size: 12px; font-weight: 700; }
.opportunity-filter-form input, .opportunity-filter-form select { min-width: 0; min-height: 38px; }
.opportunity-filter-actions { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; min-height: 38px; }
.opportunity-filter-actions .primary-button, .opportunity-filter-actions .secondary-button { min-height: 38px; min-width: 0; }
.opportunity-warning { display: grid; gap: 6px; margin-top: 14px; border: 1px solid #e0b45a; border-radius: 6px; padding: 10px 12px; color: #7c5b16; background: #fffdf5; font-size: 13px; line-height: 1.5; }
.opportunity-list-meta { margin: 16px 0 10px; color: #627d98; font-size: 13px; }
.opportunity-bulk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; border: 1px solid #d9e2ec; border-radius: 6px; padding: 9px 11px; color: #334e68; background: #f8fafc; }
.opportunity-bulk-toolbar > strong { min-width: 92px; font-size: 13px; }
.opportunity-bulk-toolbar .secondary-button { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
.opportunity-bulk-status { min-width: 0; color: #52606d; font-size: 12px; font-weight: 700; }
.opportunity-bulk-status.is-success { color: #075c55; }
.opportunity-bulk-status.is-error { color: #9b1c1c; }
.opportunity-table-wrap { position: relative; width: 100%; max-width: 100%; overflow-x: auto; overflow-y: visible; scrollbar-gutter: stable; }
.opportunity-table { width: 1540px; min-width: 1540px; table-layout: fixed; }
.opportunity-table--selectable { width: 1604px; min-width: 1604px; }
.opportunity-table th, .opportunity-table td { overflow: hidden; padding: 10px 12px; vertical-align: middle; line-height: 1.4; }
.opportunity-table th { white-space: normal; }
.opportunity-table tbody tr { min-height: 62px; }
.opportunity-table .opportunity-col-select { width: 64px; }
.opportunity-table .opportunity-col-rank { width: 64px; }
.opportunity-table .opportunity-col-title { width: 320px; }
.opportunity-table .opportunity-col-id { width: 145px; }
.opportunity-table .opportunity-col-score { width: 90px; }
.opportunity-table .opportunity-col-tier { width: 120px; }
.opportunity-table .opportunity-col-confidence { width: 90px; }
.opportunity-table .opportunity-col-reason, .opportunity-table .opportunity-col-risk { width: 280px; }
.opportunity-table .opportunity-col-detail { width: 145px; }
.opportunity-table .opportunity-cell-select, .opportunity-table .opportunity-cell-rank, .opportunity-table .opportunity-cell-score, .opportunity-table .opportunity-cell-tier, .opportunity-table .opportunity-cell-confidence, .opportunity-table .opportunity-cell-detail { padding-left: 10px; padding-right: 10px; }
.opportunity-table .opportunity-cell-select, .opportunity-table .opportunity-cell-rank, .opportunity-table .opportunity-cell-tier, .opportunity-table .opportunity-cell-confidence, .opportunity-table .opportunity-cell-detail { text-align: center; }
.opportunity-select-current-page-label { display: grid; justify-items: center; gap: 2px; color: #486581; font-size: 11px; line-height: 1.2; cursor: pointer; }
.opportunity-row-select, .opportunity-select-current-page { width: 16px; height: 16px; margin: 0; accent-color: #0b7285; cursor: pointer; }
.opportunity-row-select:disabled, .opportunity-select-current-page:disabled { cursor: not-allowed; }
.opportunity-selection-submitted { color: #075c55; font-size: 11px; font-weight: 700; white-space: nowrap; }
.opportunity-table .opportunity-cell-score { text-align: right; }
.opportunity-title, .opportunity-line { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
.opportunity-title { color: #17324d; font-weight: 700; }
.opportunity-id { display: -webkit-box; overflow: hidden; overflow-wrap: anywhere; word-break: normal; white-space: normal; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; color: #52606d; font-size: 12px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.opportunity-line.risk { color: #8a4b08; }
.opportunity-badge { display: inline-flex; max-width: 100%; align-items: center; border-radius: 5px; padding: 3px 7px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 700; }
.opportunity-badge.tier-priority, .opportunity-badge.confidence-high { color: #075c55; background: #e6f6f1; }
.opportunity-badge.tier-calculate, .opportunity-badge.confidence-medium { color: #1f4e9e; background: #e8f1ff; }
.opportunity-badge.tier-watch { color: #8a4b08; background: #fff4d6; }
.opportunity-badge.tier-not_recommended, .opportunity-badge.confidence-low { color: #52606d; background: #edf2f7; }
.opportunity-detail-toggle { min-height: 30px; min-width: 112px; border: 0; border-radius: 4px; padding: 4px 6px; color: #075c55; background: transparent; font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; text-align: left; }
.opportunity-detail-toggle:hover { background: #e6f6f8; }
.opportunity-detail-toggle:focus-visible { outline: 3px solid #f0b429; outline-offset: 2px; }
.opportunity-detail-row[hidden] { display: none; }
.opportunity-detail-row { background: #f8fafc; }
.opportunity-table td.opportunity-detail-cell { padding: 0; overflow: visible; white-space: normal; line-height: normal; }
.opportunity-detail-viewport { position: sticky; left: 0; z-index: 1; box-sizing: border-box; width: var(--opportunity-detail-visible-width, 100%); max-width: var(--opportunity-detail-visible-width, 100%); overflow: visible; padding: 12px 16px; white-space: normal; }
.opportunity-detail-panel { box-sizing: border-box; width: 100%; overflow: visible; border: 1px solid #d9e2ec; border-radius: 6px; padding: 14px; color: #334e68; background: #f8fafc; white-space: normal; }
.opportunity-detail-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px 16px; border-bottom: 1px solid #d9e2ec; padding-bottom: 10px; }
.opportunity-detail-heading { min-width: 0; flex: 1 1 500px; }
.opportunity-detail-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 2px; }
.opportunity-detail-actions .link-button { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
.opportunity-detail-actions .opportunity-submit-profit { min-height: 34px; padding: 7px 10px; white-space: nowrap; }
.opportunity-profit-status { align-self: center; color: #52606d; font-size: 12px; font-weight: 700; }
.opportunity-profit-status.is-submitted { color: #075c55; }
.opportunity-detail-panel h3, .opportunity-detail-panel p { margin: 0; }
.opportunity-detail-panel h3 { color: #17324d; font-size: 15px; }
.opportunity-detail-panel p { margin-top: 5px; color: #627d98; font-size: 12px; line-height: 1.5; }
.opportunity-detail-kicker { margin: 0 !important; color: #175d78 !important; font-size: 12px !important; font-weight: 700; }
.opportunity-score-overview { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; margin: 10px 0; }
.opportunity-score-overview > div, .opportunity-dimension-card { min-width: 0; border: 1px solid #d9e2ec; border-radius: 5px; padding: 10px; background: #fff; }
.opportunity-score-overview dt { color: #627d98; font-size: 12px; }
.opportunity-score-overview dd { margin: 5px 0 0; overflow-wrap: anywhere; color: #17324d; font-size: 15px; font-weight: 700; line-height: 1.35; }
.opportunity-detail-section { margin-top: 12px; }
.opportunity-detail-section > h3, .opportunity-reason-risk-grid h3, .opportunity-detail-warning h3 { margin: 0 0 8px; color: #334e68; font-size: 14px; }
.opportunity-dimension-grid { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; }
.opportunity-dimension-card span, .opportunity-dimension-card strong { display: block; }
.opportunity-dimension-card span { overflow-wrap: anywhere; color: #627d98; font-size: 12px; line-height: 1.4; }
.opportunity-dimension-card strong { margin-top: 5px; color: #17324d; }
.opportunity-dimension-card i { display: block; height: 7px; overflow: hidden; margin-top: 8px; border-radius: 3px; background: #e6f6f8; }
.opportunity-dimension-card i b { display: block; height: 100%; border-radius: inherit; background: #0b7285; }
.opportunity-reason-risk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.opportunity-reason-risk-grid > div, .opportunity-detail-warning { min-width: 0; border: 1px solid #d9e2ec; border-radius: 6px; padding: 12px; background: #fff; }
.opportunity-reason-risk-grid ul, .opportunity-detail-warning ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: #486581; font-size: 13px; line-height: 1.55; white-space: normal; }
.opportunity-reason-risk-grid li, .opportunity-detail-warning li { overflow-wrap: anywhere; }
.opportunity-reason-risk-grid small { color: #829ab1; }
.opportunity-detail-warning { margin-top: 14px; border-color: #e0b45a; background: #fffdf5; }
.opportunity-detail-warning h3, .opportunity-detail-warning ul { color: #7c5b16; }
.opportunity-metric-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: visible; scrollbar-gutter: stable; }
.opportunity-metric-table { width: 100%; min-width: 760px; table-layout: fixed; margin: 0; }
.opportunity-metric-table th, .opportunity-metric-table td { overflow: hidden; vertical-align: middle; line-height: 1.45; }
.opportunity-metric-table th { white-space: normal; }
.opportunity-metric-table td { white-space: normal; overflow-wrap: anywhere; }
.opportunity-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; color: #52606d; font-size: 13px; }
.opportunity-pagination .link-button { min-width: 0; padding: 7px 10px; }
@media (max-width: 1200px) {
  .opportunity-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opportunity-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-filter-form { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .team-overview-chart-grid { grid-template-columns: 1fr; }
  .team-overview-items-filter-form { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
}
@media (max-width: 900px) {
  .account-stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .opportunity-filter-form { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
  .opportunity-score-overview, .opportunity-dimension-grid { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
  .opportunity-pagination { justify-content: flex-start; }
  .audit-log-filter-form { grid-template-columns: 1fr; }
  .audit-log-filter-form .wide-field { grid-column: auto; }
  .audit-log-meta { grid-template-columns: 1fr; }
  .audit-log-filter-panel { padding: 16px; }
  .audit-log-pagination { justify-content: flex-start; flex-wrap: wrap; }
  .team-overview-filter-form { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .team-overview-filter-panel { padding: 16px; }
  .team-employee-profile { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-employee-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-employee-detail-grid { grid-template-columns: 1fr; }
  .team-overview-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-overview-category-chart .team-overview-chart-row { grid-template-columns: minmax(145px, 220px) minmax(120px, 1fr) minmax(100px, auto); }
  .team-overview-items-pagination { justify-content: flex-start; }
  .team-overview-pagination { justify-content: flex-start; }
  .team-overview-items-filter-form { grid-template-columns: repeat(2, minmax(160px, 1fr)); }
  .team-overview-items-filter-panel { padding: 16px; }
  .team-responsibility-bulk { align-items: stretch; }
  .team-responsibility-bulk select { width: 100%; min-width: 0; }
  .team-responsibility-bulk-actions { width: 100%; }
}
@media (max-width: 620px) {
  .account-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opportunity-summary-grid, .opportunity-tier-grid, .opportunity-filter-form, .opportunity-score-overview, .opportunity-dimension-grid, .opportunity-reason-risk-grid { grid-template-columns: 1fr; }
  .opportunity-heading { display: grid; }
  .opportunity-explainer { min-width: 0; }
  .opportunity-filter-actions { display: grid; grid-template-columns: 1fr; }
  .opportunity-filter-actions .primary-button, .opportunity-filter-actions .secondary-button { width: 100%; }
  .team-overview-filter-form, .team-overview-items-filter-form { grid-template-columns: 1fr; }
  .team-overview-chart-card { padding: 14px; }
  .team-overview-category-chart .team-overview-chart-row, .team-overview-price-chart .team-overview-chart-row, .team-overview-status-chart .team-overview-chart-row { grid-template-columns: minmax(105px, 1fr) minmax(110px, 1fr) minmax(90px, auto); gap: 8px; }
  .team-responsibility-bulk-actions { display: grid; grid-template-columns: 1fr; }
  .team-responsibility-bulk-actions button { width: 100%; }
}
